1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __ASM_H8300_SYSCALLS_32_H
3 #define __ASM_H8300_SYSCALLS_32_H
7 #include <linux/compiler.h>
8 #include <linux/linkage.h>
9 #include <linux/types.h>
10 #include <linux/ptrace.h>
11 #include <uapi/linux/audit.h>
14 syscall_get_nr(struct task_struct
*task
, struct pt_regs
*regs
)
16 return regs
->orig_er0
;
20 syscall_get_arguments(struct task_struct
*task
, struct pt_regs
*regs
,
32 syscall_get_arch(struct task_struct
*task
)
34 return AUDIT_ARCH_H8300
;
38 /* Misc syscall related bits */
39 asmlinkage
long do_syscall_trace_enter(struct pt_regs
*regs
);
40 asmlinkage
void do_syscall_trace_leave(struct pt_regs
*regs
);
42 #endif /* __KERNEL__ */
43 #endif /* __ASM_H8300_SYSCALLS_32_H */