syscall_32.c 643 B

12345678910111213141516171819202122232425
  1. // SPDX-License-Identifier: GPL-2.0
  2. /* System call table for i386. */
  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. #ifdef CONFIG_IA32_EMULATION
  9. #define __SYSCALL_WITH_COMPAT(nr, native, compat) __SYSCALL(nr, compat)
  10. #else
  11. #define __SYSCALL_WITH_COMPAT(nr, native, compat) __SYSCALL(nr, native)
  12. #endif
  13. #define __SYSCALL(nr, sym) extern long __ia32_##sym(const struct pt_regs *);
  14. #include <asm/syscalls_32.h>
  15. #undef __SYSCALL
  16. #define __SYSCALL(nr, sym) __ia32_##sym,
  17. __visible const sys_call_ptr_t ia32_sys_call_table[] = {
  18. #include <asm/syscalls_32.h>
  19. };