summaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorH. J. Lu2012-02-14 22:49:48 +0100
committerH. Peter Anvin2012-02-20 21:48:48 +0100
commitd046ff8b30319d9aa38d877a0ba4206771e54346 (patch)
tree9d53f5a886b895eca0df95f38d3afffd45ab340a /arch/x86
parentelf: Allow core dump-related fields to be overridden (diff)
downloadkernel-qcow2-linux-d046ff8b30319d9aa38d877a0ba4206771e54346.tar.gz
kernel-qcow2-linux-d046ff8b30319d9aa38d877a0ba4206771e54346.tar.xz
kernel-qcow2-linux-d046ff8b30319d9aa38d877a0ba4206771e54346.zip
x86-64: Add prototype for old_rsp to a header file
So far this has only been used in process_64.c, but the x32 code will need it in additional code. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/include/asm/processor.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/include/asm/processor.h b/arch/x86/include/asm/processor.h
index 9f748b5fb701..e34f95129f16 100644
--- a/arch/x86/include/asm/processor.h
+++ b/arch/x86/include/asm/processor.h
@@ -948,6 +948,12 @@ extern unsigned long thread_saved_pc(struct task_struct *tsk);
#define task_pt_regs(tsk) ((struct pt_regs *)(tsk)->thread.sp0 - 1)
extern unsigned long KSTK_ESP(struct task_struct *task);
+
+/*
+ * User space RSP while inside the SYSCALL fast path
+ */
+DECLARE_PER_CPU(unsigned long, old_rsp);
+
#endif /* CONFIG_X86_64 */
extern void start_thread(struct pt_regs *regs, unsigned long new_ip,