summaryrefslogtreecommitdiff
path: root/sys/arch/macppc/stand/boot.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2005-12-24 01:05:18 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2005-12-24 01:05:18 +0000
commit15bf20b7ed143995f0e3cb87a5654e05ddb6461a (patch)
treea8a4acc24188f7fe33ac6ce0822b0b3057907258 /sys/arch/macppc/stand/boot.c
parent884b2fcc1b9c4f87a0444ce4ced7923ffd660721 (diff)
Claim a bit more memory such that we can load bsd.rd.
tested by many; ok deraadt@
Diffstat (limited to 'sys/arch/macppc/stand/boot.c')
-rw-r--r--sys/arch/macppc/stand/boot.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/sys/arch/macppc/stand/boot.c b/sys/arch/macppc/stand/boot.c
index 020f1c69e93..6995ed7a1a1 100644
--- a/sys/arch/macppc/stand/boot.c
+++ b/sys/arch/macppc/stand/boot.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: boot.c,v 1.12 2005/10/09 15:14:48 drahn Exp $ */
+/* $OpenBSD: boot.c,v 1.13 2005/12/24 01:05:17 kettenis Exp $ */
/* $NetBSD: boot.c,v 1.1 1997/04/16 20:29:17 thorpej Exp $ */
/*
@@ -158,6 +158,12 @@ chain(void (*entry)(), char *args, void *ssym, void *esym)
panic("chain");
}
+/*
+ * XXX This limits the maximum size of the (uncompressed) bsd.rd to a
+ * little under 11MB.
+ */
+#define CLAIM_LIMIT 0x00c00000
+
int
main()
{
@@ -188,7 +194,7 @@ main()
gets(bootline);
parseargs(bootline, &boothowto);
}
- OF_claim((void *)0x00100000, 0x00800000, 0); /* XXX */
+ OF_claim((void *)0x00100000, CLAIM_LIMIT, 0); /* XXX */
marks[MARK_START] = 0;
if (loadfile(bootline, marks, LOAD_ALL) >= 0)
break;
@@ -230,7 +236,7 @@ main()
{
u_int32_t lastpage;
lastpage = roundup(marks[MARK_END], NBPG);
- OF_release((void*)lastpage, 0x00800000 - lastpage);
+ OF_release((void*)lastpage, CLAIM_LIMIT - lastpage);
}
chain((void *)entry, bootline, ssym, esym);