13622634bSMarkus Armbruster #ifndef OPENRISC_TARGET_SYSCALL_H 23622634bSMarkus Armbruster #define OPENRISC_TARGET_SYSCALL_H 3460c579fSLluís Vilanova 4e8f29049SRichard Henderson /* Note that in linux/arch/openrisc/include/uapi/asm/ptrace.h, 5e8f29049SRichard Henderson * this is called user_regs_struct. Given that this is what 6e8f29049SRichard Henderson * is used within struct sigcontext we need this definition. 7e8f29049SRichard Henderson * However, elfload.c wants this name. 8e8f29049SRichard Henderson */ 9460c579fSLluís Vilanova struct target_pt_regs { 10e8f29049SRichard Henderson abi_ulong gpr[32]; 11e8f29049SRichard Henderson abi_ulong pc; 12e8f29049SRichard Henderson abi_ulong sr; 13460c579fSLluís Vilanova }; 14460c579fSLluís Vilanova 15460c579fSLluís Vilanova #define UNAME_MACHINE "openrisc" 16460c579fSLluís Vilanova #define UNAME_MINIMUM_RELEASE "2.6.32" 17460c579fSLluís Vilanova 18*02e5d7d7SFilip Bozuta #define TARGET_MCL_CURRENT 1 19*02e5d7d7SFilip Bozuta #define TARGET_MCL_FUTURE 2 20*02e5d7d7SFilip Bozuta #define TARGET_MCL_ONFAULT 4 21460c579fSLluís Vilanova 22ab902338SRichard Henderson #define MMAP_SHIFT TARGET_PAGE_BITS 23ab902338SRichard Henderson 243622634bSMarkus Armbruster #endif /* OPENRISC_TARGET_SYSCALL_H */ 25