|
@@ -94,7 +94,7 @@ do { \
|
|
"call __switch_to\n\t" \
|
|
"call __switch_to\n\t" \
|
|
".globl thread_return\n" \
|
|
".globl thread_return\n" \
|
|
"thread_return:\n\t" \
|
|
"thread_return:\n\t" \
|
|
- "movq %%gs:%P[pda_pcurrent],%%rsi\n\t" \
|
|
|
|
|
|
+ "movq "__percpu_seg_str"%P[current_task],%%rsi\n\t" \
|
|
"movq %P[thread_info](%%rsi),%%r8\n\t" \
|
|
"movq %P[thread_info](%%rsi),%%r8\n\t" \
|
|
LOCK_PREFIX "btr %[tif_fork],%P[ti_flags](%%r8)\n\t" \
|
|
LOCK_PREFIX "btr %[tif_fork],%P[ti_flags](%%r8)\n\t" \
|
|
"movq %%rax,%%rdi\n\t" \
|
|
"movq %%rax,%%rdi\n\t" \
|
|
@@ -106,7 +106,7 @@ do { \
|
|
[ti_flags] "i" (offsetof(struct thread_info, flags)), \
|
|
[ti_flags] "i" (offsetof(struct thread_info, flags)), \
|
|
[tif_fork] "i" (TIF_FORK), \
|
|
[tif_fork] "i" (TIF_FORK), \
|
|
[thread_info] "i" (offsetof(struct task_struct, stack)), \
|
|
[thread_info] "i" (offsetof(struct task_struct, stack)), \
|
|
- [pda_pcurrent] "i" (offsetof(struct x8664_pda, pcurrent)) \
|
|
|
|
|
|
+ [current_task] "m" (per_cpu_var(current_task)) \
|
|
: "memory", "cc" __EXTRA_CLOBBER)
|
|
: "memory", "cc" __EXTRA_CLOBBER)
|
|
#endif
|
|
#endif
|
|
|
|
|