]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - arch/x86/boot/compressed/head_32.S
x86: Fix boot protocol KEEP_SEGMENTS check.
[mv-sheeva.git] / arch / x86 / boot / compressed / head_32.S
index a0ae2e7f6cecbcf0c0311a0ce6029408fd350268..036e635f18a3f14391fa39033fb70d37f8cad8d2 100644 (file)
        .globl startup_32
 
 startup_32:
-       /* check to see if KEEP_SEGMENTS flag is meaningful */
-       cmpw $0x207, BP_version(%esi)
-       jb 1f
-
+       cld
        /* test KEEP_SEGMENTS flag to see if the bootloader is asking
         * us to not reload segments */
        testb $(1<<6), BP_loadflags(%esi)
-       jnz 2f
+       jnz 1f
 
-1:     cli
+       cli
        movl $(__BOOT_DS),%eax
        movl %eax,%ds
        movl %eax,%es
        movl %eax,%fs
        movl %eax,%gs
        movl %eax,%ss
-
-2:     cld
+1:
 
 /* Calculate the delta between where we were compiled to run
  * at and where we were actually loaded at.  This can only be done