/** * This file has no copyright assigned and is placed in the Public Domain. * This file is part of the mingw-w64 runtime package. * No warranty is given; refer to the file DISCLAIMER.PD within this package. */ #define SHADOW_IRQL_IMPLEMENTATION 1 #define PS0 0x0001 #define PS1 0x0002 #define PS2 0x0004 #define PS3 0x0008 #define PS4 0x0010 #define PS5 0x0020 #define PRP 0x0080 #define PT0 0x0040 #define PT1 0x0100 #define PT2 0x0200 #define PT3 0x0400 #define PT4 0x0800 #define PT5 0x1000 #define PT6 0x2000 #define PT7 0x4000 #define PT8 0x8000 #define NOM_BS0 0x0001 #define NOM_BS1 0x0002 #define NOM_BS2 0x0004 #define NOM_BS3 0x0008 #define NOM_BS4 0x0010 #define NOM_BS5 0x0020 #define NOM_BRP 0x0080 #define NOM_BT0 0x0040 #define NOM_BT1 0x0100 #define NOM_BT2 0x0200 #define NOM_BT3 0x0400 #define NOM_BT4 0x0800 #define NOM_BT5 0x1000 #define NOM_BT6 0x2000 #define NOM_BT7 0x4000 #define NOM_BT8 0x8000 #define PSR_MBZ4 0 #define PSR_BE 1 #define PSR_UP 2 #define PSR_AC 3 #define PSR_MFL 4 #define PSR_MFH 5 #define PSR_MBZ0 6 #define PSR_MBZ0_V 0x7fll #define PSR_IC 13 #define PSR_I 14 #define PSR_PK 15 #define PSR_MBZ1 16 #define PSR_MBZ1_V 0x1ll #define PSR_DT 17 #define PSR_DFL 18 #define PSR_DFH 19 #define PSR_SP 20 #define PSR_PP 21 #define PSR_DI 22 #define PSR_SI 23 #define PSR_DB 24 #define PSR_LP 25 #define PSR_TB 26 #define PSR_RT 27 #define PSR_MBZ2 28 #define PSR_MBZ2_V 0xfll #define PSR_CPL 32 #define PSR_CPL_LEN 2 #define PSR_IS 34 #define PSR_MC 35 #define PSR_IT 36 #define PSR_ID 37 #define PSR_DA 38 #define PSR_DD 39 #define PSR_SS 40 #define PSR_RI 41 #define PSR_RI_LEN 2 #define PSR_ED 43 #define PSR_BN 44 #define PSR_IA 45 #define PSR_MBZ3 46 #define PSR_MBZ3_V 0x3ffffll #define PL_KERNEL 0 #define PL_USER 3 #define IS_EM 0 #define IS_IA 1 #define FPSR_VD 0 #define FPSR_DD 1 #define FPSR_ZD 2 #define FPSR_OD 3 #define FPSR_UD 4 #define FPSR_ID 5 #define FPSR_FTZ0 6 #define FPSR_WRE0 7 #define FPSR_PC0 8 #define FPSR_RC0 10 #define FPSR_TD0 12 #define FPSR_V0 13 #define FPSR_D0 14 #define FPSR_Z0 15 #define FPSR_O0 16 #define FPSR_U0 17 #define FPSR_I0 18 #define FPSR_FTZ1 19 #define FPSR_WRE1 20 #define FPSR_PC1 21 #define FPSR_RC1 23 #define FPSR_TD1 25 #define FPSR_V1 26 #define FPSR_D1 27 #define FPSR_Z1 28 #define FPSR_O1 29 #define FPSR_U1 30 #define FPSR_I1 31 #define FPSR_FTZ2 32 #define FPSR_WRE2 33 #define FPSR_PC2 34 #define FPSR_RC2 36 #define FPSR_TD2 38 #define FPSR_V2 39 #define FPSR_D2 40 #define FPSR_Z2 41 #define FPSR_O2 42 #define FPSR_U2 43 #define FPSR_I2 44 #define FPSR_FTZ3 45 #define FPSR_WRE3 46 #define FPSR_PC3 47 #define FPSR_RC3 49 #define FPSR_TD3 51 #define FPSR_V3 52 #define FPSR_D3 53 #define FPSR_Z3 54 #define FPSR_O3 55 #define FPSR_U3 56 #define FPSR_I3 57 #define FPSR_MBZ0 58 #define FPSR_MBZ0_V 0x3fll #define FPSR_FOR_KERNEL 0x9804C0270033F #define TPR_MIC 4 #define TPR_MIC_LEN 4 #define TPR_MMI 16 #define TPR_IRQL_SHIFT TPR_MIC #define VECTOR_IRQL_SHIFT TPR_IRQL_SHIFT #define ISR_CODE 0 #define ISR_CODE_LEN 16 #define ISR_CODE_MASK 0xFFFF #define ISR_NA_CODE_MASK 0xF #define ISR_IA_VECTOR 16 #define ISR_IA_VECTOR_LEN 8 #define ISR_MBZ0 24 #define ISR_MBZ0_V 0xff #define ISR_X 32 #define ISR_W 33 #define ISR_R 34 #define ISR_NA 35 #define ISR_SP 36 #define ISR_RS 37 #define ISR_IR 38 #define ISR_NI 39 #define ISR_MBZ1 40 #define ISR_EI 41 #define ISR_ED 43 #define ISR_MBZ2 44 #define ISR_MBZ2_V 0xfffff #define ISR_TPA 0 #define ISR_FC 1 #define ISR_PROBE 2 #define ISR_TAK 3 #define ISR_LFETCH 4 #define ISR_PROBE_FAULT 5 #define ISR_ILLEGAL_OP 0 #define ISR_PRIV_OP 1 #define ISR_PRIV_REG 2 #define ISR_RESVD_REG 3 #define ISR_ILLEGAL_ISA 4 #define ISR_ILLEGAL_HAZARD 8 #define ISR_NAT_REG 1 #define ISR_NAT_PAGE 2 #define ISR_FP_TRAP 0 #define ISR_LP_TRAP 1 #define ISR_TB_TRAP 2 #define ISR_SS_TRAP 3 #define ISR_UI_TRAP 4 #define DCR_PP 0 #define DCR_BE 1 #define DCR_LC 2 #define DCR_DM 8 #define DCR_DP 9 #define DCR_DK 10 #define DCR_DX 11 #define DCR_DR 12 #define DCR_DA 13 #define DCR_DD 14 #define DCR_DEFER_ALL 0x7f00 #define DCR_MBZ1 2 #define DCR_MBZ1_V 0xffffffffffffll #define RSC_MODE 0 #define RSC_PL 2 #define RSC_BE 4 #define RSC_MBZ0 5 #define RSC_MBZ0_V 0x3ff #define RSC_LOADRS 16 #define RSC_LOADRS_LEN 14 #define RSC_MBZ1 30 #define RSC_MBZ1_LEN 34 #define RSC_MBZ1_V 0x3ffffffffll #define RSC_MODE_LY (0x0) #define RSC_MODE_SI (0x1) #define RSC_MODE_LI (0x2) #define RSC_MODE_EA (0x3) #define RSC_BE_LITTLE 0 #define RSC_BE_BIG 1 #define RSC_KERNEL ((RSC_MODE_EA<