syscall.h 490 B

123456789101112131415161718192021
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __UM_ASM_SYSCALL_H
  3. #define __UM_ASM_SYSCALL_H
  4. #include <asm/syscall-generic.h>
  5. #include <uapi/linux/audit.h>
  6. typedef asmlinkage long (*sys_call_ptr_t)(unsigned long, unsigned long,
  7. unsigned long, unsigned long,
  8. unsigned long, unsigned long);
  9. static inline int syscall_get_arch(struct task_struct *task)
  10. {
  11. #ifdef CONFIG_X86_32
  12. return AUDIT_ARCH_I386;
  13. #else
  14. return AUDIT_ARCH_X86_64;
  15. #endif
  16. }
  17. #endif /* __UM_ASM_SYSCALL_H */