target_syscall.h 642 B

123456789101112131415161718192021222324
  1. #ifndef OPENRISC_TARGET_SYSCALL_H
  2. #define OPENRISC_TARGET_SYSCALL_H
  3. /* Note that in linux/arch/openrisc/include/uapi/asm/ptrace.h,
  4. * this is called user_regs_struct. Given that this is what
  5. * is used within struct sigcontext we need this definition.
  6. * However, elfload.c wants this name.
  7. */
  8. struct target_pt_regs {
  9. abi_ulong gpr[32];
  10. abi_ulong pc;
  11. abi_ulong sr;
  12. };
  13. #define UNAME_MACHINE "openrisc"
  14. #define UNAME_MINIMUM_RELEASE "2.6.32"
  15. #define TARGET_MINSIGSTKSZ 2048
  16. #define TARGET_MLOCKALL_MCL_CURRENT 1
  17. #define TARGET_MLOCKALL_MCL_FUTURE 2
  18. #define MMAP_SHIFT TARGET_PAGE_BITS
  19. #endif /* OPENRISC_TARGET_SYSCALL_H */