syscall_table.c 458 B

123456789101112131415161718
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (C) 2009 Arnd Bergmann <[email protected]>
  4. * Copyright (C) 2012 Regents of the University of California
  5. */
  6. #include <linux/linkage.h>
  7. #include <linux/syscalls.h>
  8. #include <asm-generic/syscalls.h>
  9. #include <asm/syscall.h>
  10. #undef __SYSCALL
  11. #define __SYSCALL(nr, call) [nr] = (call),
  12. void * const sys_call_table[__NR_syscalls] = {
  13. [0 ... __NR_syscalls - 1] = sys_ni_syscall,
  14. #include <asm/unistd.h>
  15. };