x86/boot/compressed/64: Use LEA to initialize boot stack pointer
It's shorter, and it's what is used in every other place, so make it consistent. Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu> Signed-off-by: Borislav Petkov <bp@suse.de> Link: https://lkml.kernel.org/r/20200107194436.2166846-2-nivedita@alum.mit.edu
This commit is contained in:
parent
bb6d3fb354
commit
48bfdb9def
@ -81,9 +81,7 @@ SYM_FUNC_START(startup_32)
|
|||||||
subl $1b, %ebp
|
subl $1b, %ebp
|
||||||
|
|
||||||
/* setup a stack and make sure cpu supports long mode. */
|
/* setup a stack and make sure cpu supports long mode. */
|
||||||
movl $boot_stack_end, %eax
|
leal boot_stack_end(%ebp), %esp
|
||||||
addl %ebp, %eax
|
|
||||||
movl %eax, %esp
|
|
||||||
|
|
||||||
call verify_cpu
|
call verify_cpu
|
||||||
testl %eax, %eax
|
testl %eax, %eax
|
||||||
|
Loading…
x
Reference in New Issue
Block a user