Allow the size of the heap to be specified at build time.

This commit is contained in:
thorpej 2002-04-25 22:11:51 +00:00
parent 695f28419c
commit 248e944701
3 changed files with 9 additions and 9 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: i80312_mem.c,v 1.1 2002/02/23 05:12:01 thorpej Exp $ */
/* $NetBSD: i80312_mem.c,v 1.2 2002/04/25 22:11:51 thorpej Exp $ */
/*
* Copyright (c) 2002 Wasabi Systems, Inc.
@ -73,9 +73,9 @@ mem_init(void)
size = bank0 + bank1;
heap = (start + size) - 0x30000;
heap = (start + size) - HEAP_SIZE;
printf(">> RAM 0x%x - 0x%x, heap at 0x%x\n",
start, (start + size) - 1, heap);
setheap((void *)heap, (void *)(start + size));
setheap((void *)heap, (void *)(start + size - 1));
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: i80321_mem.c,v 1.1 2002/03/27 04:13:39 thorpej Exp $ */
/* $NetBSD: i80321_mem.c,v 1.2 2002/04/25 22:11:51 thorpej Exp $ */
/*
* Copyright (c) 2002 Wasabi Systems, Inc.
@ -73,9 +73,9 @@ mem_init(void)
size = bank0 + bank1;
heap = (start + size) - 0x30000;
heap = (start + size) - HEAP_SIZE;
printf(">> RAM 0x%x - 0x%x, heap at 0x%x\n",
start, (start + size) - 1, heap);
setheap((void *)heap, (void *)(start + size));
setheap((void *)heap, (void *)(start + size - 1));
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: integrator_mem.c,v 1.1 2002/04/18 05:30:45 thorpej Exp $ */
/* $NetBSD: integrator_mem.c,v 1.2 2002/04/25 22:11:51 thorpej Exp $ */
/*
* Copyright (c) 2002 Wasabi Systems, Inc.
@ -83,8 +83,8 @@ mem_init(void)
}
/* Start is always 0. */
heap = size - 0x30000;
heap = size - HEAP_SIZE;
printf(">> RAM 0x%x - 0x%x, heap at 0x%x\n", 0, size - 1, heap);
setheap((void *)heap, (void *)size);
setheap((void *)heap, (void *)(size - 1));
}