prctl.h 940 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * IRIX prctl interface
  3. *
  4. * The IRIX kernel maps a page at PRDA_ADDRESS with the
  5. * contents of prda and fills it the bits on prda_sys.
  6. */
  7. #ifndef __PRCTL_H__
  8. #define __PRCTL_H__
  9. #define PRDA_ADDRESS 0x200000L
  10. #define PRDA ((struct prda *) PRDA_ADDRESS)
  11. struct prda_sys {
  12. pid_t t_pid;
  13. u32 t_hint;
  14. u32 t_dlactseq;
  15. u32 t_fpflags;
  16. u32 t_prid; /* processor type, $prid CP0 register */
  17. u32 t_dlendseq;
  18. u64 t_unused1[5];
  19. pid_t t_rpid;
  20. s32 t_resched;
  21. u32 t_unused[8];
  22. u32 t_cpu; /* current/last cpu */
  23. /* FIXME: The signal information, not supported by Linux now */
  24. u32 t_flags; /* if true, then the sigprocmask is in userspace */
  25. u32 t_sigprocmask [1]; /* the sigprocmask */
  26. };
  27. struct prda {
  28. char fill [0xe00];
  29. struct prda_sys prda_sys;
  30. };
  31. #define t_sys prda_sys
  32. ptrdiff_t prctl(int op, int v1, int v2);
  33. #endif