Skip to content

Commit

Permalink
x86/boot/compressed/64: Use LEA to initialize boot stack pointer
Browse files Browse the repository at this point in the history
It's shorter, and it's what is used in every other place, so make it
consistent.

Signed-off-by: Arvind Sankar <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
  • Loading branch information
nivedita76 authored and suryasaimadhu committed Feb 12, 2020
1 parent bb6d3fb commit 48bfdb9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions arch/x86/boot/compressed/head_64.S
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,7 @@ SYM_FUNC_START(startup_32)
subl $1b, %ebp

/* setup a stack and make sure cpu supports long mode. */
movl $boot_stack_end, %eax
addl %ebp, %eax
movl %eax, %esp
leal boot_stack_end(%ebp), %esp

call verify_cpu
testl %eax, %eax
Expand Down

0 comments on commit 48bfdb9

Please sign in to comment.