sys_call_table.c 775 B

1234567891011121314151617181920212223242526272829
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. /*
  3. * OpenRISC sys_call_table.c
  4. *
  5. * Linux architectural port borrowing liberally from similar works of
  6. * others. All original copyrights apply as per the original source
  7. * declaration.
  8. *
  9. * Modifications for the OpenRISC architecture:
  10. * Copyright (C) 2010-2011 Jonas Bonn <jonas@southpole.se>
  11. */
  12. #include <linux/syscalls.h>
  13. #include <linux/signal.h>
  14. #include <linux/unistd.h>
  15. #include <asm/syscalls.h>
  16. #define __SYSCALL(nr, call) [nr] = (call),
  17. #define __SYSCALL_WITH_COMPAT(nr, native, compat) __SYSCALL(nr, native)
  18. #define sys_mmap2 sys_mmap_pgoff
  19. #define sys_clone __sys_clone
  20. #define sys_clone3 __sys_clone3
  21. #define sys_fork __sys_fork
  22. void *sys_call_table[__NR_syscalls] = {
  23. #include <asm/syscall_table_32.h>
  24. };