Skip to content

Commit 99aa455

Browse files
author
H. Peter Anvin
committed
x86, boot: remove dead code from boot/compressed/head_*.S
Remove a couple of lines of dead code from arch/x86/boot/compressed/head_*.S; all of these update registers that are dead in the current code. [ Impact: cleanup ] Signed-off-by: H. Peter Anvin <[email protected]>
1 parent 40b387a commit 99aa455

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

arch/x86/boot/compressed/head_32.S

-10
Original file line numberDiff line numberDiff line change
@@ -99,16 +99,6 @@ ENTRY(startup_32)
9999
cld
100100
popl %esi
101101

102-
/*
103-
* Compute the kernel start address.
104-
*/
105-
#ifdef CONFIG_RELOCATABLE
106-
addl $(CONFIG_PHYSICAL_ALIGN - 1), %ebp
107-
andl $(~(CONFIG_PHYSICAL_ALIGN - 1)), %ebp
108-
#else
109-
movl $LOAD_PHYSICAL_ADDR, %ebp
110-
#endif
111-
112102
/*
113103
* Jump to the relocated address.
114104
*/

arch/x86/boot/compressed/head_64.S

-2
Original file line numberDiff line numberDiff line change
@@ -226,10 +226,8 @@ ENTRY(startup_64)
226226
leaq startup_32(%rip) /* - $startup_32 */, %rbp
227227
addq $(PMD_PAGE_SIZE - 1), %rbp
228228
andq $PMD_PAGE_MASK, %rbp
229-
movq %rbp, %rbx
230229
#else
231230
movq $LOAD_PHYSICAL_ADDR, %rbp
232-
movq %rbp, %rbx
233231
#endif
234232

235233
/* Target address to relocate to for decompression */

0 commit comments

Comments
 (0)