diff options
author | Graeme Russ <graeme.russ@gmail.com> | 2010-10-07 20:03:28 +1100 |
---|---|---|
committer | Graeme Russ <graeme.russ@gmail.com> | 2010-10-07 20:03:28 +1100 |
commit | 5a3876d2ac0aaaf16d50ce91b03c2030822da66f (patch) | |
tree | 9985fd87c08b61820fa80b301caaf40d94708c85 /arch/i386 | |
parent | 5f2679055d5f58db9548efe5545fac256d1c7d4d (diff) | |
download | u-boot-5a3876d2ac0aaaf16d50ce91b03c2030822da66f.tar.gz u-boot-5a3876d2ac0aaaf16d50ce91b03c2030822da66f.tar.bz2 u-boot-5a3876d2ac0aaaf16d50ce91b03c2030822da66f.zip |
x86: Dont clobber %eax after getting memory size
By using another register, reduce code size by one instruction
Diffstat (limited to 'arch/i386')
-rw-r--r-- | arch/i386/cpu/start.S | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/i386/cpu/start.S b/arch/i386/cpu/start.S index 63f733421b..66ff4f3e06 100644 --- a/arch/i386/cpu/start.S +++ b/arch/i386/cpu/start.S @@ -114,8 +114,8 @@ mem_ok: /* Test the stack */ pushl $0 - popl %eax - cmpl $0, %eax + popl %ecx + cmpl $0, %ecx jne die push $0x55aa55aa popl %ecx @@ -125,7 +125,6 @@ mem_ok: wbinvd /* Set the upper memory limit parameter */ - movl %esp, %eax subl $CONFIG_SYS_STACK_SIZE, %eax call board_init_f /* Enter, U-boot! */ |