]> git.sur5r.net Git - u-boot/blobdiff - arch/i386/cpu/start.S
x86: Dont clobber %eax after getting memory size
[u-boot] / arch / i386 / cpu / start.S
index 551965f42ecb932ef889025478af0240ffae6dcb..66ff4f3e06d08ee1ce411a202a11d45f4ea0888f 100644 (file)
@@ -114,18 +114,17 @@ mem_ok:
 
        /* Test the stack */
        pushl   $0
-       popl    %eax
-       cmpl    $0, %eax
+       popl    %ecx
+       cmpl    $0, %ecx
        jne     die
        push    $0x55aa55aa
-       popl    %ebx
-       cmpl    $0x55aa55aa, %ebx
+       popl    %ecx
+       cmpl    $0x55aa55aa, %ecx
        jne     die
 
        wbinvd
 
        /* Set the upper memory limit parameter */
-       movl    %esp, %eax
        subl    $CONFIG_SYS_STACK_SIZE, %eax
 
        call    board_init_f    /* Enter, U-boot! */