aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArvind Sankar <[email protected]>2020-01-07 14:44:35 -0500
committerBorislav Petkov <[email protected]>2020-02-12 11:11:06 +0100
commit48bfdb9deffdc6b683feb25e15f4f26aac503501 (patch)
tree27e0e0f9cfdae92ea40dddc7f7dcd63a7b8d63b5
parentbb6d3fb354c5ee8d6bde2d576eb7220ea09862b9 (diff)
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]
-rw-r--r--arch/x86/boot/compressed/head_64.S4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/x86/boot/compressed/head_64.S b/arch/x86/boot/compressed/head_64.S
index 1f1f6c8139b3..d1220de1de52 100644
--- a/arch/x86/boot/compressed/head_64.S
+++ b/arch/x86/boot/compressed/head_64.S
@@ -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