* [PATCH] Make bootsector stub 16-bit-only (x86_64)
@ 2007-05-05 10:49 Alexander van Heukelum
0 siblings, 0 replies; only message in thread
From: Alexander van Heukelum @ 2007-05-05 10:49 UTC (permalink / raw)
To: Andi Kleen, Andrew Morton, H. Peter Anvin, lkml
Hi!
The x86 bzImage contains a stub to inform people that it is not possible
any more to run a Linux kernel by catting it to a floppy and then
booting from it. This was meant to be all 16-bit code. The first
instruction, however, ended up as being coded as a 16:32-bit far jump. I
assume the intention was a 16:16-bit far jump.
This patch changes only x86_64.
Greetings,
Alexander
Signed-off-by: Alexander van Heukelum <heukelum@mailshack.com>
---
diff --git a/arch/x86_64/boot/bootsect.S b/arch/x86_64/boot/bootsect.S
index 011b7a4..ae9df0d 100644
--- a/arch/x86_64/boot/bootsect.S
+++ b/arch/x86_64/boot/bootsect.S
@@ -44,7 +44,7 @@ #endif
_start:
# Normalize the start address
- jmpl $BOOTSEG, $start2
+ jmpw $BOOTSEG, $start2
start2:
movw %cs, %ax
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2007-05-05 17:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-05 10:49 [PATCH] Make bootsector stub 16-bit-only (x86_64) Alexander van Heukelum
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox