aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/boot/x86_64.S
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-12-29 16:59:12 +0100
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-12-29 16:59:12 +0100
commitb33ac9e43315d6e9864e2d324f8f5a620d5ec421 (patch)
tree4cc74f4bf055b004e4bc1b4ef7d11c177d64f86d /xen/arch/x86/boot/x86_64.S
parent484a058c48287df3fc9fa0b146dd8c827ffff7be (diff)
downloadxen-b33ac9e43315d6e9864e2d324f8f5a620d5ec421.tar.gz
xen-b33ac9e43315d6e9864e2d324f8f5a620d5ec421.tar.bz2
xen-b33ac9e43315d6e9864e2d324f8f5a620d5ec421.zip
Various fixes to Xen stack management. Ensure the cpu0_stack
is always sufficiently aligned (requires some linker script tricks). Small fixes to show_trace() and ensure that Xen stack pointers are always below the 'struct cpu_info' region. Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/arch/x86/boot/x86_64.S')
-rw-r--r--xen/arch/x86/boot/x86_64.S8
1 files changed, 2 insertions, 6 deletions
diff --git a/xen/arch/x86/boot/x86_64.S b/xen/arch/x86/boot/x86_64.S
index 126850a0f8..0d82c2087f 100644
--- a/xen/arch/x86/boot/x86_64.S
+++ b/xen/arch/x86/boot/x86_64.S
@@ -219,7 +219,7 @@ idt:
.quad idt_table
ENTRY(stack_start)
- .quad cpu0_stack + STACK_SIZE - 200
+ .quad cpu0_stack + STACK_SIZE
high_start:
.quad __high_start
@@ -265,10 +265,6 @@ ENTRY(idle_pg_table_l2)
.org 0x4000 + PAGE_SIZE
.code64
-#if (STACK_ORDER == 0)
-.section ".bss.page_aligned","w"
-#else
-.section ".bss.twopage_aligned","w"
-#endif
+.section ".bss.stack_aligned","w"
ENTRY(cpu0_stack)
.fill STACK_SIZE,1,0