Skip to content
Snippets Groups Projects
Commit 5a3876d2 authored by Graeme Russ's avatar Graeme Russ
Browse files

x86: Dont clobber %eax after getting memory size

By using another register, reduce code size by one instruction
parent 5f267905
No related branches found
No related tags found
No related merge requests found
...@@ -114,8 +114,8 @@ mem_ok: ...@@ -114,8 +114,8 @@ mem_ok:
/* Test the stack */ /* Test the stack */
pushl $0 pushl $0
popl %eax popl %ecx
cmpl $0, %eax cmpl $0, %ecx
jne die jne die
push $0x55aa55aa push $0x55aa55aa
popl %ecx popl %ecx
...@@ -125,7 +125,6 @@ mem_ok: ...@@ -125,7 +125,6 @@ mem_ok:
wbinvd wbinvd
/* Set the upper memory limit parameter */ /* Set the upper memory limit parameter */
movl %esp, %eax
subl $CONFIG_SYS_STACK_SIZE, %eax subl $CONFIG_SYS_STACK_SIZE, %eax
call board_init_f /* Enter, U-boot! */ call board_init_f /* Enter, U-boot! */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment