psw.h
上传用户:lgb322
上传日期:2013-02-24
资源大小:30529k
文件大小:1k
源码类别:

嵌入式Linux

开发平台:

Unix_Linux

  1. #ifndef _PARISC_PSW_H
  2. #define PSW_I 0x00000001
  3. #define PSW_D 0x00000002
  4. #define PSW_P 0x00000004
  5. #define PSW_Q 0x00000008
  6. #define PSW_R 0x00000010
  7. #define PSW_F 0x00000020
  8. #define PSW_G 0x00000040 /* PA1.x only */
  9. #define PSW_O 0x00000080 /* PA2.0 only */
  10. #define PSW_M 0x00010000
  11. #define PSW_V 0x00020000
  12. #define PSW_C 0x00040000
  13. #define PSW_B 0x00080000
  14. #define PSW_X 0x00100000
  15. #define PSW_N 0x00200000
  16. #define PSW_L 0x00400000
  17. #define PSW_H 0x00800000
  18. #define PSW_T 0x01000000
  19. #define PSW_S 0x02000000
  20. #define PSW_E 0x04000000
  21. #define PSW_W 0x08000000 /* PA2.0 only */
  22. #define PSW_Z 0x40000000 /* PA1.x only */
  23. #define PSW_Y 0x80000000 /* PA1.x only */
  24. /* PSW bits to be used with ssm/rsm */
  25. #define PSW_SM_I        0x1
  26. #define PSW_SM_D        0x2
  27. #define PSW_SM_P        0x4
  28. #define PSW_SM_Q        0x8
  29. #define PSW_SM_R        0x10
  30. #define PSW_SM_F        0x20
  31. #define PSW_SM_G        0x40
  32. #define PSW_SM_O        0x80
  33. #define PSW_SM_E        0x100
  34. #define PSW_SM_W        0x200
  35. #ifdef __LP64__
  36. #  define USER_PSW (PSW_C | PSW_D | PSW_Q | PSW_I)
  37. #  define USER_INIT_PSW (PSW_C | PSW_D | PSW_Q | PSW_I | PSW_N)
  38. #  define KERNEL_PSW (PSW_C | PSW_D | PSW_Q | PSW_W)
  39. #  define PDC_PSW (PSW_Q | PSW_W)
  40. #else
  41. #  define USER_PSW (PSW_C | PSW_D | PSW_Q | PSW_I | PSW_P)
  42. #  define USER_INIT_PSW (PSW_C | PSW_D | PSW_Q | PSW_I | PSW_N)
  43. #  define KERNEL_PSW (PSW_C | PSW_D | PSW_Q)
  44. #  define PDC_PSW (PSW_Q)
  45. #endif
  46. #endif