Merge remote-tracking branch 'remotes/kraxel/tags/vga-20180618-pull-request' into...
[qemu.git] / linux-user / openrisc / target_syscall.h
blob03104f80afcaa0cc4c90f5f53c0b1d93154d7d4c
1 #ifndef OPENRISC_TARGET_SYSCALL_H
2 #define OPENRISC_TARGET_SYSCALL_H
4 struct target_pt_regs {
5 union {
6 struct {
7 /* Named registers */
8 uint32_t sr; /* Stored in place of r0 */
9 target_ulong sp; /* r1 */
11 struct {
12 /* Old style */
13 target_ulong offset[2];
14 target_ulong gprs[30];
16 struct {
17 /* New style */
18 target_ulong gpr[32];
21 target_ulong pc;
22 target_ulong orig_gpr11; /* For restarting system calls */
23 uint32_t syscallno; /* Syscall number (used by strace) */
24 target_ulong dummy; /* Cheap alignment fix */
27 #define UNAME_MACHINE "openrisc"
28 #define UNAME_MINIMUM_RELEASE "2.6.32"
30 #define TARGET_MINSIGSTKSZ 2048
31 #define TARGET_MLOCKALL_MCL_CURRENT 1
32 #define TARGET_MLOCKALL_MCL_FUTURE 2
34 #define MMAP_SHIFT TARGET_PAGE_BITS
36 #endif /* OPENRISC_TARGET_SYSCALL_H */