[rhype] not loading image for 2.6.11
Muli Ben-Yehuda
mulix at mulix.org
Tue Mar 29 22:04:01 EST 2005
On Tue, Mar 29, 2005 at 06:47:34AM -0500, Jimi Xenidis wrote:
> >>>>> "MB" == Muli Ben-Yehuda <mulix at mulix.org> writes:
>
> MB> Does it have the patch to limit lboot memory to 64MB? I don't think it
> MB> has made it into CVS... again. Granted, it's a hack, but if it gets a
> MB> system booting while otherwise it wouldn't...
>
> Muli could you resend this patch?
Sure thing, here it is.
Index: lboot/x86/lboot.c
===================================================================
RCS file: /u/kitchawa/cvsroot/rhype/lboot/x86/lboot.c,v
retrieving revision 1.1
diff -u -r1.1 lboot.c
--- lboot/x86/lboot.c 16 Mar 2005 16:51:26 -0000 1.1
+++ lboot/x86/lboot.c 18 Mar 2005 15:12:12 -0000
@@ -39,6 +39,8 @@
#define LOADADDR 0x100000
+#define MAX_CONTROLLER_MEMORY 64
+
/*
* Linux initially maps 4MB and assumes everything it needs
* is contained in that. The bootparams are stored in the
@@ -126,6 +128,11 @@
}
}
hprintf(" = %ld MB\n", memsize >> 20);
+ if ((memsize >> 20) > MAX_CONTROLLER_MEMORY) {
+ memsize = MAX_CONTROLLER_MEMORY * 1024 * 1024;
+ printf("Limiting memory size to %dMB.\n",
+ MAX_CONTROLLER_MEMORY);
+ }
}
/*
--
Muli Ben-Yehuda
http://www.mulix.org | http://mulix.livejournal.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.ozlabs.org/pipermail/rhype/attachments/20050329/23d9153b/attachment.pgp>
More information about the rhype
mailing list