aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/um
diff options
context:
space:
mode:
authorBrian Gerst2020-03-13 15:51:37 -0400
committerThomas Gleixner2020-03-21 16:03:22 +0100
commit8210efcb153625d2bf4bb79875ddc78eee2aba3e (patch)
tree726257f93ebdbc00bfe771dd4d906239794ba334 /arch/x86/um
parentb5592e5c0d8682e0e82b42c91fd7265c3cce19e1 (diff)
x86/entry/64: Add __SYSCALL_COMMON()
Add a __SYSCALL_COMMON() macro to the syscall table, which simplifies syscalltbl.sh. Signed-off-by: Brian Gerst <brgerst@gmail.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lkml.kernel.org/r/20200313195144.164260-12-brgerst@gmail.com
Diffstat (limited to 'arch/x86/um')
-rw-r--r--arch/x86/um/sys_call_table_64.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/um/sys_call_table_64.c b/arch/x86/um/sys_call_table_64.c
index 7d057ea53d54..2e8544dafbb0 100644
--- a/arch/x86/um/sys_call_table_64.c
+++ b/arch/x86/um/sys_call_table_64.c
@@ -36,6 +36,9 @@
#define stub_execveat sys_execveat
#define stub_rt_sigreturn sys_rt_sigreturn
+#define __SYSCALL_X32(nr, sym)
+#define __SYSCALL_COMMON(nr, sym) __SYSCALL_64(nr, sym)
+
#define __SYSCALL_64(nr, sym) extern asmlinkage long sym(unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long) ;
#include <asm/syscalls_64.h>