aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/boot/compressed/head_32.S
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2009-04-26 13:12:47 -0400
committerIngo Molnar <mingo@elte.hu>2009-04-27 00:35:24 -0400
commit51b26ada79b605ed709ddcedbb6012e8f8e0ebed (patch)
treeb6b9a353cf32db8debe602b9bf23625bc26388a0 /arch/x86/boot/compressed/head_32.S
parent0a3ec21fcd311b26ab0f249d62960e127bc20ca8 (diff)
x86: unify arch/x86/boot/compressed/vmlinux_*.lds
Look at the: diff -u arch/x86/boot/compressed/vmlinux_*.lds output and realize that they're basially exactly the same except for trivial naming differences, and the fact that the 64-bit version has a "pgtable" thing. So unify them. There's some trivial cleanup there (make the output format a Kconfig thing rather than doing #ifdef's for it, and unify both 32-bit and 64-bit BSS end to "_ebss", where 32-bit used to use the traditional "_end"), but other than that it's really very mindless and straigt conversion. For example, I think we should aim to remove "startup_32" vs "startup_64", and just call it "startup", and get rid of one more difference. I didn't do that. Also, notice the comment in the unified vmlinux.lds.S talks about "head_64" and "startup_32" which is an odd and incorrect mix, but that was actually what the old 64-bit only lds file had, so the confusion isn't new, and now that mixing is arguably more accurate thanks to the vmlinux.lds.S file being shared between the two cases ;) [ Impact: cleanup, unification ] Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Acked-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/boot/compressed/head_32.S')
-rw-r--r--arch/x86/boot/compressed/head_32.S8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/x86/boot/compressed/head_32.S b/arch/x86/boot/compressed/head_32.S
index 3a8a866fb2e2..85bd3285706d 100644
--- a/arch/x86/boot/compressed/head_32.S
+++ b/arch/x86/boot/compressed/head_32.S
@@ -88,9 +88,9 @@ ENTRY(startup_32)
88 * where decompression in place becomes safe. 88 * where decompression in place becomes safe.
89 */ 89 */
90 pushl %esi 90 pushl %esi
91 leal _end(%ebp), %esi 91 leal _ebss(%ebp), %esi
92 leal _end(%ebx), %edi 92 leal _ebss(%ebx), %edi
93 movl $(_end - startup_32), %ecx 93 movl $(_ebss - startup_32), %ecx
94 std 94 std
95 rep 95 rep
96 movsb 96 movsb
@@ -121,7 +121,7 @@ relocated:
121 */ 121 */
122 xorl %eax,%eax 122 xorl %eax,%eax
123 leal _edata(%ebx),%edi 123 leal _edata(%ebx),%edi
124 leal _end(%ebx), %ecx 124 leal _ebss(%ebx), %ecx
125 subl %edi,%ecx 125 subl %edi,%ecx
126 cld 126 cld
127 rep 127 rep