diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2005-10-08 06:27:59 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2005-10-08 06:27:59 +0000 |
commit | f4c311c6bc09d7141bb30534956119bf56d27eef (patch) | |
tree | b7eff86468ffb6ea381788db7422b3c990f615ed /sys/arch | |
parent | 8b44c07d430add95f7d9f2622e322256e51e37c2 (diff) |
Preallocate the space where the kernel would live, needs to be at least
as large as the ramdisk kernel, however currently on GENERIC this causes
about 4MB loss of avail mem, once the kernel is loaded, the remainder
needs to be returned.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/macppc/stand/boot.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/macppc/stand/boot.c b/sys/arch/macppc/stand/boot.c index d63e2a1565f..8f4d22aaa74 100644 --- a/sys/arch/macppc/stand/boot.c +++ b/sys/arch/macppc/stand/boot.c @@ -1,4 +1,4 @@ -/* $OpenBSD: boot.c,v 1.10 2003/10/16 04:30:09 drahn Exp $ */ +/* $OpenBSD: boot.c,v 1.11 2005/10/08 06:27:58 drahn Exp $ */ /* $NetBSD: boot.c,v 1.1 1997/04/16 20:29:17 thorpej Exp $ */ /* @@ -188,6 +188,7 @@ main() gets(bootline); parseargs(bootline, &boothowto); } + OF_claim((void *)0x00100000, 0x00800000, 0); /* XXX */ marks[MARK_START] = 0; if (loadfile(bootline, marks, LOAD_ALL) >= 0) break; |