forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/arch/x86/entry/syscall_64.c
....@@ -5,21 +5,17 @@
55 #include <linux/sys.h>
66 #include <linux/cache.h>
77 #include <linux/syscalls.h>
8
-#include <asm/asm-offsets.h>
8
+#include <asm/unistd.h>
99 #include <asm/syscall.h>
1010
11
-extern asmlinkage long sys_ni_syscall(void);
11
+#define __SYSCALL_X32(nr, sym)
12
+#define __SYSCALL_COMMON(nr, sym) __SYSCALL_64(nr, sym)
1213
13
-SYSCALL_DEFINE0(ni_syscall)
14
-{
15
- return sys_ni_syscall();
16
-}
17
-
18
-#define __SYSCALL_64(nr, sym, qual) extern asmlinkage long sym(const struct pt_regs *);
14
+#define __SYSCALL_64(nr, sym) extern long __x64_##sym(const struct pt_regs *);
1915 #include <asm/syscalls_64.h>
2016 #undef __SYSCALL_64
2117
22
-#define __SYSCALL_64(nr, sym, qual) [nr] = sym,
18
+#define __SYSCALL_64(nr, sym) [nr] = __x64_##sym,
2319
2420 asmlinkage const sys_call_ptr_t sys_call_table[__NR_syscall_max+1] = {
2521 /*