Lines Matching +full:0 +full:x00018000
13 #define SR_SIE _AC(0x00000002, UL) /* Supervisor Interrupt Enable */
14 #define SR_MIE _AC(0x00000008, UL) /* Machine Interrupt Enable */
15 #define SR_SPIE _AC(0x00000020, UL) /* Previous Supervisor IE */
16 #define SR_MPIE _AC(0x00000080, UL) /* Previous Machine IE */
17 #define SR_SPP _AC(0x00000100, UL) /* Previously Supervisor */
18 #define SR_MPP _AC(0x00001800, UL) /* Previously Machine */
19 #define SR_SUM _AC(0x00040000, UL) /* Supervisor User Memory Access */
21 #define SR_FS _AC(0x00006000, UL) /* Floating-point Status */
22 #define SR_FS_OFF _AC(0x00000000, UL)
23 #define SR_FS_INITIAL _AC(0x00002000, UL)
24 #define SR_FS_CLEAN _AC(0x00004000, UL)
25 #define SR_FS_DIRTY _AC(0x00006000, UL)
27 #define SR_XS _AC(0x00018000, UL) /* Extension Status */
28 #define SR_XS_OFF _AC(0x00000000, UL)
29 #define SR_XS_INITIAL _AC(0x00008000, UL)
30 #define SR_XS_CLEAN _AC(0x00010000, UL)
31 #define SR_XS_DIRTY _AC(0x00018000, UL)
34 #define SR_SD _AC(0x80000000, UL) /* FS/XS dirty */
36 #define SR_SD _AC(0x8000000000000000, UL) /* FS/XS dirty */
41 #define SATP_PPN _AC(0x003FFFFF, UL)
42 #define SATP_MODE_32 _AC(0x80000000, UL)
45 #define SATP_PPN _AC(0x00000FFFFFFFFFFF, UL)
46 #define SATP_MODE_39 _AC(0x8000000000000000, UL)
62 #define EXC_INST_MISALIGNED 0
73 #define PMP_R 0x01
74 #define PMP_W 0x02
75 #define PMP_X 0x04
76 #define PMP_A 0x18
77 #define PMP_A_TOR 0x08
78 #define PMP_A_NA4 0x10
79 #define PMP_A_NAPOT 0x18
80 #define PMP_L 0x80
83 #define CSR_CYCLE 0xc00
84 #define CSR_TIME 0xc01
85 #define CSR_INSTRET 0xc02
86 #define CSR_CYCLEH 0xc80
87 #define CSR_TIMEH 0xc81
88 #define CSR_INSTRETH 0xc82
90 #define CSR_SSTATUS 0x100
91 #define CSR_SIE 0x104
92 #define CSR_STVEC 0x105
93 #define CSR_SCOUNTEREN 0x106
94 #define CSR_SSCRATCH 0x140
95 #define CSR_SEPC 0x141
96 #define CSR_SCAUSE 0x142
97 #define CSR_STVAL 0x143
98 #define CSR_SIP 0x144
99 #define CSR_SATP 0x180
101 #define CSR_MSTATUS 0x300
102 #define CSR_MISA 0x301
103 #define CSR_MIE 0x304
104 #define CSR_MTVEC 0x305
105 #define CSR_MSCRATCH 0x340
106 #define CSR_MEPC 0x341
107 #define CSR_MCAUSE 0x342
108 #define CSR_MTVAL 0x343
109 #define CSR_MIP 0x344
110 #define CSR_PMPCFG0 0x3a0
111 #define CSR_PMPADDR0 0x3b0
112 #define CSR_MHARTID 0xf14
151 #define IE_SIE (_AC(0x1, UL) << RV_IRQ_SOFT)
152 #define IE_TIE (_AC(0x1, UL) << RV_IRQ_TIMER)
153 #define IE_EIE (_AC(0x1, UL) << RV_IRQ_EXT)
160 __asm__ __volatile__ ("csrrw %0, " __ASM_STR(csr) ", %1"\
169 __asm__ __volatile__ ("csrr %0, " __ASM_STR(csr) \
178 __asm__ __volatile__ ("csrw " __ASM_STR(csr) ", %0" \
186 __asm__ __volatile__ ("csrrs %0, " __ASM_STR(csr) ", %1"\
195 __asm__ __volatile__ ("csrs " __ASM_STR(csr) ", %0" \
203 __asm__ __volatile__ ("csrrc %0, " __ASM_STR(csr) ", %1"\
212 __asm__ __volatile__ ("csrc " __ASM_STR(csr) ", %0" \