Skip to content

Commit 48bfdb9

Browse files
nivedita76suryasaimadhu
authored andcommitted
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 <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent bb6d3fb commit 48bfdb9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

arch/x86/boot/compressed/head_64.S

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,7 @@ SYM_FUNC_START(startup_32)
8181
subl $1b, %ebp
8282

8383
/* setup a stack and make sure cpu supports long mode. */
84-
movl $boot_stack_end, %eax
85-
addl %ebp, %eax
86-
movl %eax, %esp
84+
leal boot_stack_end(%ebp), %esp
8785

8886
call verify_cpu
8987
testl %eax, %eax

0 commit comments

Comments
 (0)