]> git.sur5r.net Git - u-boot/blobdiff - arch/x86/cpu/start16.S
patman: Use the full commit hash for 'git checkout'
[u-boot] / arch / x86 / cpu / start16.S
index 445d5a17345585b1cf467b9d80c649bf95f6e68e..9550502e9ae8f58e79f24929945058a006924d4a 100644 (file)
@@ -21,6 +21,9 @@
 .code16
 .globl start16
 start16:
+       /* Save BIST */
+       movl    %eax, %ecx
+
        /* Set the Cold Boot / Hard Reset flag */
        movl    $GD_FLG_COLD_BOOT, %ebx
 
@@ -45,9 +48,11 @@ o32 cs       lgdt    gdt_ptr
        /* Flush the prefetch queue */
        jmp     ff
 ff:
-       /* Finally jump to the 32bit initialization code */
+
+       /* Finally restore BIST and jump to the 32bit initialization code */
        movw    $code32start, %ax
        movw    %ax, %bp
+       movl    %ecx, %eax
 o32 cs ljmp    *(%bp)
 
        /* 48-bit far pointer */