systbls_64.S 956 B

1234567891011121314151617181920212223242526272829
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /* systbls.S: System call entry point tables for OS compatibility.
  3. * The native Linux system call table lives here also.
  4. *
  5. * Copyright (C) 1995, 1996, 2007 David S. Miller ([email protected])
  6. * Copyright (C) 1997 Jakub Jelinek ([email protected])
  7. *
  8. * Based upon preliminary work which is:
  9. *
  10. * Copyright (C) 1995 Adrian M. Rodriguez ([email protected])
  11. */
  12. #define __SYSCALL(nr, entry) .word entry
  13. .text
  14. .align 4
  15. #ifdef CONFIG_COMPAT
  16. .globl sys_call_table32
  17. sys_call_table32:
  18. #define __SYSCALL_WITH_COMPAT(nr, native, compat) __SYSCALL(nr, compat)
  19. #include <asm/syscall_table_32.h> /* Compat syscalls */
  20. #undef __SYSCALL_WITH_COMPAT
  21. #endif /* CONFIG_COMPAT */
  22. .align 4
  23. .globl sys_call_table64, sys_call_table
  24. sys_call_table64:
  25. sys_call_table:
  26. #define __SYSCALL_WITH_COMPAT(nr, native, compat) __SYSCALL(nr, native)
  27. #include <asm/syscall_table_64.h> /* 64-bit native syscalls */