projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb6d3fb
)
x86/boot/compressed/64: Use LEA to initialize boot stack pointer
author
Arvind Sankar
<nivedita@alum.mit.edu>
Tue, 7 Jan 2020 19:44:35 +0000
(14:44 -0500)
committer
Borislav Petkov
<bp@suse.de>
Wed, 12 Feb 2020 10:11:06 +0000
(11:11 +0100)
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
arch/x86/boot/compressed/head_64.S
patch
|
blob
|
history
diff --git
a/arch/x86/boot/compressed/head_64.S
b/arch/x86/boot/compressed/head_64.S
index 1f1f6c8139b38c9c72bb6e7b11b6da2cf238eb0a..d1220de1de520d3e693216fd69ff89c020b61003 100644
(file)
--- 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