2 * This struct defines the way the registers are stored on the
3 * stack during a system call.
5 * Reference: linux/arch/riscv/include/uapi/asm/ptrace.h
8 #ifndef LINUX_USER_RISCV_TARGET_SYSCALL_H
9 #define LINUX_USER_RISCV_TARGET_SYSCALL_H
11 struct target_pt_regs
{
47 #define UNAME_MACHINE "riscv32"
49 #define UNAME_MACHINE "riscv64"
51 #define UNAME_MINIMUM_RELEASE "4.15.0"
53 #define TARGET_MINSIGSTKSZ 2048
54 #define TARGET_MLOCKALL_MCL_CURRENT 1
55 #define TARGET_MLOCKALL_MCL_FUTURE 2
57 /* clone(flags, newsp, ptidptr, tls, ctidptr) for RISC-V */
58 /* This comes from linux/kernel/fork.c, CONFIG_CLONE_BACKWARDS */
59 #define TARGET_CLONE_BACKWARDS