syscall.h 379 B

123456789101112131415161718
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _ASM_ALPHA_SYSCALL_H
  3. #define _ASM_ALPHA_SYSCALL_H
  4. #include <uapi/linux/audit.h>
  5. static inline int syscall_get_arch(struct task_struct *task)
  6. {
  7. return AUDIT_ARCH_ALPHA;
  8. }
  9. static inline long syscall_get_return_value(struct task_struct *task,
  10. struct pt_regs *regs)
  11. {
  12. return regs->r0;
  13. }
  14. #endif /* _ASM_ALPHA_SYSCALL_H */