summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/idtentry.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2020-07-23 00:00:04 +0200
committerThomas Gleixner <tglx@linutronix.de>2020-07-24 15:04:59 +0200
commit27d6b4d14f5c3ab21c4aef87dd04055a2d7adf14 (patch)
treeff1aaa49f6efd1be5955afd50c0e22423352b6d9 /arch/x86/include/asm/idtentry.h
parent0bf019ea59e330770883ede4499d7f711d8c3adf (diff)
downloadlwn-27d6b4d14f5c3ab21c4aef87dd04055a2d7adf14.tar.gz
lwn-27d6b4d14f5c3ab21c4aef87dd04055a2d7adf14.zip
x86/entry: Use generic syscall entry function
Replace the syscall entry work handling with the generic version. Provide the necessary helper inlines to handle the real architecture specific parts, e.g. ptrace. Use a temporary define for idtentry_enter_user which will be cleaned up seperately. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Kees Cook <keescook@chromium.org> Link: https://lkml.kernel.org/r/20200722220520.376213694@linutronix.de
Diffstat (limited to 'arch/x86/include/asm/idtentry.h')
-rw-r--r--arch/x86/include/asm/idtentry.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/x86/include/asm/idtentry.h b/arch/x86/include/asm/idtentry.h
index 1bc6f878bd30..449910fd454b 100644
--- a/arch/x86/include/asm/idtentry.h
+++ b/arch/x86/include/asm/idtentry.h
@@ -6,11 +6,14 @@
#include <asm/trapnr.h>
#ifndef __ASSEMBLY__
+#include <linux/entry-common.h>
#include <linux/hardirq.h>
#include <asm/irq_stack.h>
-void idtentry_enter_user(struct pt_regs *regs);
+/* Temporary define */
+#define idtentry_enter_user irqentry_enter_from_user_mode
+
void idtentry_exit_user(struct pt_regs *regs);
typedef struct idtentry_state {