* [patch] x86_64-enable-large-bzImage.patch
@ 2006-04-19 6:30 Ingo Molnar
2006-04-20 0:24 ` Andi Kleen
0 siblings, 1 reply; 2+ messages in thread
From: Ingo Molnar @ 2006-04-19 6:30 UTC (permalink / raw)
To: Andrew Morton; +Cc: Andi Kleen, linux-kernel
From: Ingo Molnar <mingo@elte.hu>
enable large bzImages on x86_64. (fix is from x86's build.c) Using this
patch i have successfully built and booted an allyesconfig 13MB+ bzImage
on x86_64 too:
$ size64 vmlinux
text data bss dec hex filename
23444831 8202642 3439360 35086833 21761f1 vmlinux
-rw-rw-r-- 1 mingo mingo 13121740 Apr 19 09:32 arch/x86_64/boot/bzImage
Signed-off-by: Ingo Molnar <mingo@elte.hu>
----
arch/x86_64/boot/tools/build.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
Index: linux/arch/x86_64/boot/tools/build.c
===================================================================
--- linux.orig/arch/x86_64/boot/tools/build.c
+++ linux/arch/x86_64/boot/tools/build.c
@@ -149,10 +150,8 @@ int main(int argc, char ** argv)
sz = sb.st_size;
fprintf (stderr, "System is %d kB\n", sz/1024);
sys_size = (sz + 15) / 16;
- /* 0x40000*16 = 4.0 MB, reasonable estimate for the current maximum */
- if (sys_size > (is_big_kernel ? 0x40000 : DEF_SYSSIZE))
- die("System is too big. Try using %smodules.",
- is_big_kernel ? "" : "bzImage or ");
+ if (!is_big_kernel && sys_size > DEF_SYSSIZE)
+ die("System is too big. Try using bzImage or modules.");
while (sz > 0) {
int l, n;
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-04-20 0:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-19 6:30 [patch] x86_64-enable-large-bzImage.patch Ingo Molnar
2006-04-20 0:24 ` Andi Kleen
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.