x86, boot: remove dead code from boot/compressed/head_*.S
authorH. Peter Anvin <hpa@zytor.com>
Mon, 11 May 2009 23:02:10 +0000 (16:02 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Mon, 11 May 2009 23:17:05 +0000 (16:17 -0700)
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 <hpa@zytor.com>
arch/x86/boot/compressed/head_32.S
arch/x86/boot/compressed/head_64.S

index 470474bafc4dcb26bbf85179d309e0b0d827c710..2b8e0dfa4b2764bfdeaf1d911be95fcb314b0174 100644 (file)
@@ -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.
  */
index 4135d438b66269c37f85d4e2bce3d708a8a0f7c9..2bb500af1bd760cc55f72973f03de94604fded9b 100644 (file)
@@ -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 */