aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/processor.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/include/asm/processor.h')
-rw-r--r--arch/x86/include/asm/processor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/include/asm/processor.h b/arch/x86/include/asm/processor.h
index 2d5a50cb61a2..20c11d1aa4cc 100644
--- a/arch/x86/include/asm/processor.h
+++ b/arch/x86/include/asm/processor.h
@@ -766,7 +766,7 @@ extern unsigned long thread_saved_pc(struct task_struct *tsk);
766 * Return saved PC of a blocked thread. 766 * Return saved PC of a blocked thread.
767 * What is this good for? it will be always the scheduler or ret_from_fork. 767 * What is this good for? it will be always the scheduler or ret_from_fork.
768 */ 768 */
769#define thread_saved_pc(t) (*(unsigned long *)((t)->thread.sp - 8)) 769#define thread_saved_pc(t) READ_ONCE_NOCHECK(*(unsigned long *)((t)->thread.sp - 8))
770 770
771#define task_pt_regs(tsk) ((struct pt_regs *)(tsk)->thread.sp0 - 1) 771#define task_pt_regs(tsk) ((struct pt_regs *)(tsk)->thread.sp0 - 1)
772extern unsigned long KSTK_ESP(struct task_struct *task); 772extern unsigned long KSTK_ESP(struct task_struct *task);