]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/x86/boot/pmjump.S
x86 setup: add a near jump to serialize %cr0 on 386/486
[linux-2.6-omap-h63xx.git] / arch / x86 / boot / pmjump.S
index 2e559233725a453845d03e19179e8620399f15ce..26baeab3a4d4e68f2a0d222732998d696521a9ec 100644 (file)
@@ -31,14 +31,14 @@ protected_mode_jump:
        xorl    %ebx, %ebx              # Flag to indicate this is a boot
        movl    %edx, %esi              # Pointer to boot_params table
        movl    %eax, 2f                # Patch ljmpl instruction
-       jmp     1f                      # Short jump to flush instruction q.
 
-1:
        movw    $__BOOT_DS, %cx
 
        movl    %cr0, %edx
        orb     $1, %dl                 # Protected mode (PE) bit
        movl    %edx, %cr0
+       jmp     1f                      # Short jump to serialize on 386/486
+1:
 
        movw    %cx, %ds
        movw    %cx, %es