syscall_32.c 645 B

1234567891011121314151617181920212223242526
  1. /* System call table for i386. */
  2. #include <linux/linkage.h>
  3. #include <linux/sys.h>
  4. #include <linux/cache.h>
  5. #include <asm/asm-offsets.h>
  6. #define __SYSCALL_I386(nr, sym, compat) extern asmlinkage void sym(void) ;
  7. #include <asm/syscalls_32.h>
  8. #undef __SYSCALL_I386
  9. #define __SYSCALL_I386(nr, sym, compat) [nr] = sym,
  10. typedef asmlinkage void (*sys_call_ptr_t)(void);
  11. extern asmlinkage void sys_ni_syscall(void);
  12. const sys_call_ptr_t sys_call_table[__NR_syscall_max+1] = {
  13. /*
  14. * Smells like a compiler bug -- it doesn't work
  15. * when the & below is removed.
  16. */
  17. [0 ... __NR_syscall_max] = &sys_ni_syscall,
  18. #include <asm/syscalls_32.h>
  19. };