x86, boot: use BP_scratch in arch/x86/boot/compressed/head_*.S
authorH. Peter Anvin <hpa@zytor.com>
Wed, 6 May 2009 06:24:50 +0000 (23:24 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Sat, 9 May 2009 00:16:22 +0000 (17:16 -0700)
Use the BP_scratch symbol from asm-offsets.h instead of hard-coding
the location.

[ 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 85bd328..e3398f3 100644 (file)
@@ -53,7 +53,7 @@ ENTRY(startup_32)
  * data at 0x1e4 (defined as a scratch field) are used as the stack
  * for this calculation. Only 4 bytes are needed.
  */
-       leal (0x1e4+4)(%esi), %esp
+       leal (BP_scratch+4)(%esi), %esp
        call 1f
 1:     popl %ebp
        subl $1b, %ebp
index ed4a829..06cc7e5 100644 (file)
@@ -56,7 +56,7 @@ ENTRY(startup_32)
  * data at 0x1e4 (defined as a scratch field) are used as the stack
  * for this calculation. Only 4 bytes are needed.
  */
-       leal    (0x1e4+4)(%esi), %esp
+       leal    (BP_scratch+4)(%esi), %esp
        call    1f
 1:     popl    %ebp
        subl    $1b, %ebp