Skip to contentSkip to conversation

bzImage > 0xefff0 will not boot from floppy

PATCH Pavel Machek 1 participant 1 message Jun 28, 2001

lore
Share & tools
lore
#0 lore raw

Hi!

...it will loop forever. I have fix that allows up-to 0xffff0 bzImages, but it is *ugly*. This seems better; please apply.

Pavel
Index: build.c
===================================================================
RCS file: /home/cvs/Repository/linux/arch/i386/boot/tools/build.c,v retrieving revision 1.2

build.c +1 -1
diff -u -u -r1.2 build.c
@@ -154,7 +154,7 @@
 	if (sys_size > (is_big_kernel ? 0x28000 : DEF_SYSSIZE))
 		die("System is too big. Try using %smodules.",
 			is_big_kernel ? "" : "bzImage or ");
-	if (sys_size > 0xffff)
+	if (sys_size > 0xefff)
 		fprintf(stderr,"warning: kernel is too big for standalone boot "
 		    "from floppy\n");
 	while (sz > 0) {
Signature · 2 lines
I'm [email protected]. "In my country we have almost anarchy and I don't care."
Panos Katsaloulis describing me w.r.t. patents at [email protected]