[lkml]   [2007]   [May]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Patch in this message
    Subject[PATCH] Make bootsector stub 16-bit-only (i386)

    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 i386.


    Signed-off-by: Alexander van Heukelum <>


    diff --git a/arch/i386/boot/bootsect.S b/arch/i386/boot/bootsect.S
    index 011b7a4..ae9df0d 100644
    --- a/arch/i386/boot/bootsect.S
    +++ b/arch/i386/boot/bootsect.S
    @@ -44,7 +44,7 @@ #endif

    # Normalize the start address
    - jmpl $BOOTSEG, $start2
    + jmpw $BOOTSEG, $start2

    movw %cs, %ax
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at
     \ /
      Last update: 2007-05-05 19:03    [W:0.019 / U:26.084 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site