projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f26790
)
x86: Dont clobber %eax after getting memory size
author
Graeme Russ
<graeme.russ@gmail.com>
Thu, 7 Oct 2010 09:03:28 +0000
(20:03 +1100)
committer
Graeme Russ
<graeme.russ@gmail.com>
Thu, 7 Oct 2010 09:03:28 +0000
(20:03 +1100)
By using another register, reduce code size by one instruction
arch/i386/cpu/start.S
patch
|
blob
|
history
diff --git
a/arch/i386/cpu/start.S
b/arch/i386/cpu/start.S
index
63f7334
..
66ff4f3
100644
(file)
--- a/
arch/i386/cpu/start.S
+++ b/
arch/i386/cpu/start.S
@@
-114,8
+114,8
@@
mem_ok:
/* Test the stack */
pushl $0
- popl %e
a
x
- cmpl $0, %e
a
x
+ popl %e
c
x
+ cmpl $0, %e
c
x
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! */