6 MB limit of initrd (again)
Leonardo Rangel
lrangel at linux.vnet.ibm.com
Sat Feb 9 01:59:19 EST 2008
Hi guys,
Sorry, there was a cut-and-paste issue in my previous message.
Here's the patch that works for large initrds.
diff --git a/second/yaboot.c b/second/yaboot.c
index 5fc1213..211fb1e 100644
--- a/second/yaboot.c
+++ b/second/yaboot.c
@@ -1198,7 +1198,7 @@ yaboot_text_ui(void)
}
else {
#define INITRD_CHUNKSIZE 0x100000
- initrd_base =
prom_claim(loadinfo.base+loadinfo.memsize, INITRD_CHUNKSIZE, 0);
+ initrd_base =
prom_claim_chunk(loadinfo.base+loadinfo.memsize, INITRD_CHUNKSIZE, 0);
if (initrd_base == (void *)-1) {
prom_printf("Claim failed for initrd memory\n");
initrd_base = 0;
More information about the Yaboot-users
mailing list