syscall_64.c 451 B

123456789101112131415161718
  1. // SPDX-License-Identifier: GPL-2.0
  2. /* System call table for x86-64. */
  3. #include <linux/linkage.h>
  4. #include <linux/sys.h>
  5. #include <linux/cache.h>
  6. #include <linux/syscalls.h>
  7. #include <asm/syscall.h>
  8. #define __SYSCALL(nr, sym) extern long __x64_##sym(const struct pt_regs *);
  9. #include <asm/syscalls_64.h>
  10. #undef __SYSCALL
  11. #define __SYSCALL(nr, sym) __x64_##sym,
  12. asmlinkage const sys_call_ptr_t sys_call_table[] = {
  13. #include <asm/syscalls_64.h>
  14. };