diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2005-10-09 15:14:49 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2005-10-09 15:14:49 +0000 |
commit | 8baeebcab4a9c1c255109117a833a8ff89bc2720 (patch) | |
tree | 9bcbd834edb1c9aaaa6c7ab1162d9704e414cf10 /sys | |
parent | cf0567ecdec309b2995b80d2a634b5fb25391e0f (diff) |
Try to recover part of the reserved space from the OF_claim above.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/macppc/stand/boot.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/arch/macppc/stand/boot.c b/sys/arch/macppc/stand/boot.c index 8f4d22aaa74..020f1c69e93 100644 --- a/sys/arch/macppc/stand/boot.c +++ b/sys/arch/macppc/stand/boot.c @@ -1,4 +1,4 @@ -/* $OpenBSD: boot.c,v 1.11 2005/10/08 06:27:58 drahn Exp $ */ +/* $OpenBSD: boot.c,v 1.12 2005/10/09 15:14:48 drahn Exp $ */ /* $NetBSD: boot.c,v 1.1 1997/04/16 20:29:17 thorpej Exp $ */ /* @@ -227,6 +227,11 @@ main() entry = marks[MARK_ENTRY]; ssym = (void *)marks[MARK_SYM]; esym = (void *)marks[MARK_END]; + { + u_int32_t lastpage; + lastpage = roundup(marks[MARK_END], NBPG); + OF_release((void*)lastpage, 0x00800000 - lastpage); + } chain((void *)entry, bootline, ssym, esym); |