systbl.S 860 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * This file contains the table of syscall-handling functions.
  4. * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org)
  5. *
  6. * Largely rewritten by Cort Dougan (cort@cs.nmt.edu)
  7. * and Paul Mackerras.
  8. *
  9. * Adapted for iSeries by Mike Corrigan (mikejc@us.ibm.com)
  10. * PPC64 updates by Dave Engebretsen (engebret@us.ibm.com)
  11. */
  12. #include <asm/ppc_asm.h>
  13. .section .rodata,"a"
  14. #ifdef CONFIG_PPC64
  15. .p2align 3
  16. #define __SYSCALL(nr, entry) .8byte entry
  17. #else
  18. #define __SYSCALL(nr, entry) .long entry
  19. #endif
  20. .globl sys_call_table
  21. sys_call_table:
  22. #ifdef CONFIG_PPC64
  23. #include <asm/syscall_table_64.h>
  24. #else
  25. #include <asm/syscall_table_32.h>
  26. #endif
  27. #ifdef CONFIG_COMPAT
  28. .globl compat_sys_call_table
  29. compat_sys_call_table:
  30. #define compat_sys_sigsuspend sys_sigsuspend
  31. #include <asm/syscall_table_c32.h>
  32. #endif