1 #ifndef OPENRISC_TARGET_SYSCALL_H 2 #define OPENRISC_TARGET_SYSCALL_H 3 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 */ 10 }; 11 struct { 12 /* Old style */ 13 target_ulong offset[2]; 14 target_ulong gprs[30]; 15 }; 16 struct { 17 /* New style */ 18 target_ulong gpr[32]; 19 }; 20 }; 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 */ 25 }; 26 27 #define UNAME_MACHINE "openrisc" 28 #define UNAME_MINIMUM_RELEASE "2.6.32" 29 30 #define TARGET_MINSIGSTKSZ 2048 31 #define TARGET_MLOCKALL_MCL_CURRENT 1 32 #define TARGET_MLOCKALL_MCL_FUTURE 2 33 34 #define MMAP_SHIFT TARGET_PAGE_BITS 35 36 #endif /* OPENRISC_TARGET_SYSCALL_H */ 37