diff options
author | Ingo Molnar <mingo@kernel.org> | 2015-03-17 09:42:59 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2015-03-17 11:01:42 -0400 |
commit | c38e503804b0402c510f82437069f7769fa0cea9 (patch) | |
tree | 8818741487f678f07da939e417a78e1fd76b86d7 /arch/x86/xen/xen-asm_64.S | |
parent | 7fcb3bc361c724a75bc642dbdd9d9bf0bdf07260 (diff) |
x86/asm/entry/64: Rename 'old_rsp' to 'rsp_scratch'
Make clear that the usage of PER_CPU(old_rsp) is purely temporary,
by renaming it to 'rsp_scratch'.
Cc: Alexei Starovoitov <ast@plumgrid.com>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Will Drewry <wad@chromium.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/xen/xen-asm_64.S')
-rw-r--r-- | arch/x86/xen/xen-asm_64.S | 8 |
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 53adefda4275..985fc3ee0973 100644 --- a/arch/x86/xen/xen-asm_64.S +++ b/arch/x86/xen/xen-asm_64.S | |||
@@ -68,11 +68,11 @@ ENTRY(xen_sysret64) | |||
68 | * We're already on the usermode stack at this point, but | 68 | * We're already on the usermode stack at this point, but |
69 | * still with the kernel gs, so we can easily switch back | 69 | * still with the kernel gs, so we can easily switch back |
70 | */ | 70 | */ |
71 | movq %rsp, PER_CPU_VAR(old_rsp) | 71 | movq %rsp, PER_CPU_VAR(rsp_scratch) |
72 | movq PER_CPU_VAR(kernel_stack), %rsp | 72 | movq PER_CPU_VAR(kernel_stack), %rsp |
73 | 73 | ||
74 | pushq $__USER_DS | 74 | pushq $__USER_DS |
75 | pushq PER_CPU_VAR(old_rsp) | 75 | pushq PER_CPU_VAR(rsp_scratch) |
76 | pushq %r11 | 76 | pushq %r11 |
77 | pushq $__USER_CS | 77 | pushq $__USER_CS |
78 | pushq %rcx | 78 | pushq %rcx |
@@ -87,11 +87,11 @@ ENTRY(xen_sysret32) | |||
87 | * We're already on the usermode stack at this point, but | 87 | * We're already on the usermode stack at this point, but |
88 | * still with the kernel gs, so we can easily switch back | 88 | * still with the kernel gs, so we can easily switch back |
89 | */ | 89 | */ |
90 | movq %rsp, PER_CPU_VAR(old_rsp) | 90 | movq %rsp, PER_CPU_VAR(rsp_scratch) |
91 | movq PER_CPU_VAR(kernel_stack), %rsp | 91 | movq PER_CPU_VAR(kernel_stack), %rsp |
92 | 92 | ||
93 | pushq $__USER32_DS | 93 | pushq $__USER32_DS |
94 | pushq PER_CPU_VAR(old_rsp) | 94 | pushq PER_CPU_VAR(rsp_scratch) |
95 | pushq %r11 | 95 | pushq %r11 |
96 | pushq $__USER32_CS | 96 | pushq $__USER32_CS |
97 | pushq %rcx | 97 | pushq %rcx |