aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/xen/xen-asm_64.S
diff options
context:
space:
mode:
authorBrian Gerst <brgerst@gmail.com>2009-01-18 10:38:58 -0500
committerTejun Heo <tj@kernel.org>2009-01-18 10:38:58 -0500
commit3d1e42a7cf945e289d6ba26159aa0e2b0645401b (patch)
tree0b020226f5fce3abecf74e6680224ecb96fd18a8 /arch/x86/xen/xen-asm_64.S
parent9af45651f1f7c89942e016a1a00a7ebddfa727f8 (diff)
x86-64: Move oldrsp from PDA to per-cpu.
tj: * in asm-offsets_64.c, pda.h inclusion shouldn't be removed as pda is still referenced in the file * s/oldrsp/old_rsp/ Signed-off-by: Brian Gerst <brgerst@gmail.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'arch/x86/xen/xen-asm_64.S')
-rw-r--r--arch/x86/xen/xen-asm_64.S8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/x86/xen/xen-asm_64.S b/arch/x86/xen/xen-asm_64.S
index 5a23e8993678..d6fc51f4ce85 100644
--- a/arch/x86/xen/xen-asm_64.S
+++ b/arch/x86/xen/xen-asm_64.S
@@ -194,11 +194,11 @@ RELOC(xen_sysexit, 1b+1)
194ENTRY(xen_sysret64) 194ENTRY(xen_sysret64)
195 /* We're already on the usermode stack at this point, but still 195 /* We're already on the usermode stack at this point, but still
196 with the kernel gs, so we can easily switch back */ 196 with the kernel gs, so we can easily switch back */
197 movq %rsp, %gs:pda_oldrsp 197 movq %rsp, PER_CPU_VAR(old_rsp)
198 movq PER_CPU_VAR(kernel_stack),%rsp 198 movq PER_CPU_VAR(kernel_stack),%rsp
199 199
200 pushq $__USER_DS 200 pushq $__USER_DS
201 pushq %gs:pda_oldrsp 201 pushq PER_CPU_VAR(old_rsp)
202 pushq %r11 202 pushq %r11
203 pushq $__USER_CS 203 pushq $__USER_CS
204 pushq %rcx 204 pushq %rcx
@@ -211,11 +211,11 @@ RELOC(xen_sysret64, 1b+1)
211ENTRY(xen_sysret32) 211ENTRY(xen_sysret32)
212 /* We're already on the usermode stack at this point, but still 212 /* We're already on the usermode stack at this point, but still
213 with the kernel gs, so we can easily switch back */ 213 with the kernel gs, so we can easily switch back */
214 movq %rsp, %gs:pda_oldrsp 214 movq %rsp, PER_CPU_VAR(old_rsp)
215 movq PER_CPU_VAR(kernel_stack), %rsp 215 movq PER_CPU_VAR(kernel_stack), %rsp
216 216
217 pushq $__USER32_DS 217 pushq $__USER32_DS
218 pushq %gs:pda_oldrsp 218 pushq PER_CPU_VAR(old_rsp)
219 pushq %r11 219 pushq %r11
220 pushq $__USER32_CS 220 pushq $__USER32_CS
221 pushq %rcx 221 pushq %rcx