diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-01-18 12:37:14 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-01-18 12:37:14 -0500 |
commit | b2b062b8163391c42b3219d466ca1ac9742b9c7b (patch) | |
tree | f3f920c09b8de694b1bc1d4b878cfd2b0b98c913 /arch/x86/include/asm/system.h | |
parent | a9de18eb761f7c1c860964b2e5addc1a35c7e861 (diff) | |
parent | 99937d6455cea95405ac681c86a857d0fcd530bd (diff) |
Merge branch 'core/percpu' into stackprotector
Conflicts:
arch/x86/include/asm/pda.h
arch/x86/include/asm/system.h
Also, moved include/asm-x86/stackprotector.h to arch/x86/include/asm.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/include/asm/system.h')
-rw-r--r-- | arch/x86/include/asm/system.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/include/asm/system.h b/arch/x86/include/asm/system.h index 2f6340a44291..8cadfe9b1194 100644 --- a/arch/x86/include/asm/system.h +++ b/arch/x86/include/asm/system.h | |||
@@ -94,7 +94,7 @@ do { \ | |||
94 | "call __switch_to\n\t" \ | 94 | "call __switch_to\n\t" \ |
95 | ".globl thread_return\n" \ | 95 | ".globl thread_return\n" \ |
96 | "thread_return:\n\t" \ | 96 | "thread_return:\n\t" \ |
97 | "movq %%gs:%P[pda_pcurrent],%%rsi\n\t" \ | 97 | "movq "__percpu_arg([current_task])",%%rsi\n\t" \ |
98 | "movq %P[task_canary](%%rsi),%%r8\n\t" \ | 98 | "movq %P[task_canary](%%rsi),%%r8\n\t" \ |
99 | "movq %%r8,%%gs:%P[pda_canary]\n\t" \ | 99 | "movq %%r8,%%gs:%P[pda_canary]\n\t" \ |
100 | "movq %P[thread_info](%%rsi),%%r8\n\t" \ | 100 | "movq %P[thread_info](%%rsi),%%r8\n\t" \ |
@@ -109,7 +109,7 @@ do { \ | |||
109 | [tif_fork] "i" (TIF_FORK), \ | 109 | [tif_fork] "i" (TIF_FORK), \ |
110 | [thread_info] "i" (offsetof(struct task_struct, stack)), \ | 110 | [thread_info] "i" (offsetof(struct task_struct, stack)), \ |
111 | [task_canary] "i" (offsetof(struct task_struct, stack_canary)),\ | 111 | [task_canary] "i" (offsetof(struct task_struct, stack_canary)),\ |
112 | [pda_pcurrent] "i" (offsetof(struct x8664_pda, pcurrent)), \ | 112 | [current_task] "m" (per_cpu_var(current_task)), \ |
113 | [pda_canary] "i" (offsetof(struct x8664_pda, stack_canary))\ | 113 | [pda_canary] "i" (offsetof(struct x8664_pda, stack_canary))\ |
114 | : "memory", "cc" __EXTRA_CLOBBER) | 114 | : "memory", "cc" __EXTRA_CLOBBER) |
115 | #endif | 115 | #endif |