| 1 | /* |
| 2 | * This struct defines the way the registers are stored on the |
| 3 | * stack during a system call. |
| 4 | * |
| 5 | * Reference: linux/arch/riscv/include/uapi/asm/ptrace.h |
| 6 | */ |
| 7 | |
| 8 | #ifndef LINUX_USER_RISCV_TARGET_SYSCALL_H |
| 9 | #define LINUX_USER_RISCV_TARGET_SYSCALL_H |
| 10 | |
| 11 | #ifdef TARGET_RISCV32 |
| 12 | #define UNAME_MACHINE "riscv32" |
| 13 | #define UNAME_MINIMUM_RELEASE "5.4.0" |
| 14 | #else |
| 15 | #define UNAME_MACHINE "riscv64" |
| 16 | #define UNAME_MINIMUM_RELEASE "4.15.0" |
| 17 | #endif |
| 18 | |
| 19 | #define TARGET_MCL_CURRENT 1 |
| 20 | #define TARGET_MCL_FUTURE 2 |
| 21 | #define TARGET_MCL_ONFAULT 4 |
| 22 | |
| 23 | /* clone(flags, newsp, ptidptr, tls, ctidptr) for RISC-V */ |
| 24 | /* This comes from linux/kernel/fork.c, CONFIG_CLONE_BACKWARDS */ |
| 25 | #define TARGET_CLONE_BACKWARDS |
| 26 | |
| 27 | #endif |