ucontext_i.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /* Copyright (C) 2002 Hewlett-Packard Co.
  2. Contributed by David Mosberger-Tang <davidm@hpl.hp.com>.
  3. This file is part of libunwind.
  4. Permission is hereby granted, free of charge, to any person obtaining
  5. a copy of this software and associated documentation files (the
  6. "Software"), to deal in the Software without restriction, including
  7. without limitation the rights to use, copy, modify, merge, publish,
  8. distribute, sublicense, and/or sell copies of the Software, and to
  9. permit persons to whom the Software is furnished to do so, subject to
  10. the following conditions:
  11. The above copyright notice and this permission notice shall be
  12. included in all copies or substantial portions of the Software.
  13. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  14. EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  15. MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  16. NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  17. LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  18. OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  19. WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
  20. /* Constants shared between setcontext() and getcontext(). Don't
  21. install this header file. */
  22. #define SIG_BLOCK 0
  23. #define SIG_UNBLOCK 1
  24. #define SIG_SETMASK 2
  25. #define IA64_SC_FLAG_SYNCHRONOUS_BIT 63
  26. #define SC_FLAGS 0x000
  27. #define SC_NAT 0x008
  28. #define SC_BSP 0x048
  29. #define SC_RNAT 0x050
  30. #define SC_UNAT 0x060
  31. #define SC_FPSR 0x068
  32. #define SC_PFS 0x070
  33. #define SC_LC 0x078
  34. #define SC_PR 0x080
  35. #define SC_BR 0x088
  36. #define SC_GR 0x0c8
  37. #define SC_FR 0x1d0
  38. #define SC_MASK 0x9d0
  39. #define rTMP r10
  40. #define rPOS r11
  41. #define rCPOS r14
  42. #define rNAT r15
  43. #define rFLAGS r16
  44. #define rB5 r18
  45. #define rB4 r19
  46. #define rB3 r20
  47. #define rB2 r21
  48. #define rB1 r22
  49. #define rB0 r23
  50. #define rRSC r24
  51. #define rBSP r25
  52. #define rRNAT r26
  53. #define rUNAT r27
  54. #define rFPSR r28
  55. #define rPFS r29
  56. #define rLC r30
  57. #define rPR r31