Commit 99aa4559 authored by H. Peter Anvin's avatar H. Peter Anvin

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: default avatarH. Peter Anvin <hpa@zytor.com>
parent 40b387a8
......@@ -99,16 +99,6 @@ ENTRY(startup_32)
cld
popl %esi
/*
* Compute the kernel start address.
*/
#ifdef CONFIG_RELOCATABLE
addl $(CONFIG_PHYSICAL_ALIGN - 1), %ebp
andl $(~(CONFIG_PHYSICAL_ALIGN - 1)), %ebp
#else
movl $LOAD_PHYSICAL_ADDR, %ebp
#endif
/*
* Jump to the relocated address.
*/
......
......@@ -226,10 +226,8 @@ ENTRY(startup_64)
leaq startup_32(%rip) /* - $startup_32 */, %rbp
addq $(PMD_PAGE_SIZE - 1), %rbp
andq $PMD_PAGE_MASK, %rbp
movq %rbp, %rbx
#else
movq $LOAD_PHYSICAL_ADDR, %rbp
movq %rbp, %rbx
#endif
/* Target address to relocate to for decompression */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment