summaryrefslogtreecommitdiff
path: root/arch/x86/realmode/rm/trampoline_32.S
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2012-05-16 13:44:10 -0700
committerH. Peter Anvin <hpa@linux.intel.com>2012-05-16 13:44:10 -0700
commit51edbe6a2f47c78c6c6e529999ee0a044fe59a89 (patch)
tree8e68fcbac877e409e04596e97f6868d7db8f3fe2 /arch/x86/realmode/rm/trampoline_32.S
parent796038799a72adb279d785c9154df6eeb98b6e8d (diff)
x86, realmode: Move not-common bits out of trampoline_common.S
Move the bits that aren't actually common out of trampoline_common.S and into the arch-specific files. Furthermore, make sure the page directory is first in the .bss section for trampoline_64.S in order to not waste an entire page of memory. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com> Cc: Jarkko Sakkinen <jarkko.sakkinen@intel.com>
Diffstat (limited to 'arch/x86/realmode/rm/trampoline_32.S')
-rw-r--r--arch/x86/realmode/rm/trampoline_32.S8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/x86/realmode/rm/trampoline_32.S b/arch/x86/realmode/rm/trampoline_32.S
index 6fc064b4d2b9..c1b2791183e7 100644
--- a/arch/x86/realmode/rm/trampoline_32.S
+++ b/arch/x86/realmode/rm/trampoline_32.S
@@ -63,4 +63,12 @@ ENTRY(trampoline_start)
ENTRY(startup_32) # note: also used from wakeup_asm.S
jmp *%eax
+ .bss
+ .balign 8
+GLOBAL(trampoline_header)
+ tr_start: .space 4
+ tr_gdt_pad: .space 2
+ tr_gdt: .space 6
+END(trampoline_header)
+
#include "trampoline_common.S"