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_VS _AC(0x00000600, UL) /* Vector Status */
28 #define SR_VS_OFF _AC(0x00000000, UL)
29 #define SR_VS_INITIAL _AC(0x00000200, UL)
30 #define SR_VS_CLEAN _AC(0x00000400, UL)
31 #define SR_VS_DIRTY _AC(0x00000600, UL)
33 #define SR_VS_THEAD _AC(0x01800000, UL) /* xtheadvector Status */
34 #define SR_VS_OFF_THEAD _AC(0x00000000, UL)
35 #define SR_VS_INITIAL_THEAD _AC(0x00800000, UL)
36 #define SR_VS_CLEAN_THEAD _AC(0x01000000, UL)
37 #define SR_VS_DIRTY_THEAD _AC(0x01800000, UL)
39 #define SR_XS _AC(0x00018000, UL) /* Extension Status */
40 #define SR_XS_OFF _AC(0x00000000, UL)
41 #define SR_XS_INITIAL _AC(0x00008000, UL)
42 #define SR_XS_CLEAN _AC(0x00010000, UL)
43 #define SR_XS_DIRTY _AC(0x00018000, UL)
48 #define SR_SD _AC(0x80000000, UL) /* FS/VS/XS dirty */
50 #define SR_SD _AC(0x8000000000000000, UL) /* FS/VS/XS dirty */
54 #define SR_UXL _AC(0x300000000, UL) /* XLEN mask for U-mode */
55 #define SR_UXL_32 _AC(0x100000000, UL) /* XLEN = 32 for U-mode */
56 #define SR_UXL_64 _AC(0x200000000, UL) /* XLEN = 64 for U-mode */
61 #define SATP_PPN _AC(0x003FFFFF, UL)
62 #define SATP_MODE_32 _AC(0x80000000, UL)
66 #define SATP_ASID_MASK _AC(0x1FF, UL)
68 #define SATP_PPN _AC(0x00000FFFFFFFFFFF, UL)
69 #define SATP_MODE_39 _AC(0x8000000000000000, UL)
70 #define SATP_MODE_48 _AC(0x9000000000000000, UL)
71 #define SATP_MODE_57 _AC(0xa000000000000000, UL)
75 #define SATP_ASID_MASK _AC(0xFFFF, UL)
94 #define IRQ_LOCAL_MASK GENMASK((IRQ_LOCAL_MAX - 1), 0)
97 #define EXC_INST_MISALIGNED 0
117 #define PMP_R 0x01
118 #define PMP_W 0x02
119 #define PMP_X 0x04
120 #define PMP_A 0x18
121 #define PMP_A_TOR 0x08
122 #define PMP_A_NA4 0x10
123 #define PMP_A_NAPOT 0x18
124 #define PMP_L 0x80
128 #define HSTATUS_HUPMM _AC(0x3000000000000, UL)
129 #define HSTATUS_HUPMM_PMLEN_0 _AC(0x0000000000000, UL)
130 #define HSTATUS_HUPMM_PMLEN_7 _AC(0x2000000000000, UL)
131 #define HSTATUS_HUPMM_PMLEN_16 _AC(0x3000000000000, UL)
132 #define HSTATUS_VSXL _AC(0x300000000, UL)
135 #define HSTATUS_VTSR _AC(0x00400000, UL)
136 #define HSTATUS_VTW _AC(0x00200000, UL)
137 #define HSTATUS_VTVM _AC(0x00100000, UL)
138 #define HSTATUS_VGEIN _AC(0x0003f000, UL)
140 #define HSTATUS_HU _AC(0x00000200, UL)
141 #define HSTATUS_SPVP _AC(0x00000100, UL)
142 #define HSTATUS_SPV _AC(0x00000080, UL)
143 #define HSTATUS_GVA _AC(0x00000040, UL)
144 #define HSTATUS_VSBE _AC(0x00000020, UL)
147 #define HGATP_MODE_OFF _AC(0, UL)
156 #define HGATP32_PPN GENMASK(21, 0)
161 #define HGATP64_PPN GENMASK(43, 0)
186 #define TOPI_IID_MASK GENMASK(11, 0)
187 #define TOPI_IPRIO_MASK GENMASK(7, 0)
191 #define TOPEI_ID_MASK GENMASK(10, 0)
192 #define TOPEI_PRIO_MASK GENMASK(10, 0)
194 #define ISELECT_IPRIO0 0x30
195 #define ISELECT_IPRIO15 0x3f
196 #define ISELECT_MASK GENMASK(8, 0)
203 #define HVICTL_IPRIO GENMASK(7, 0)
209 #define ENVCFG_PMM (_AC(0x3, ULL) << 32)
210 #define ENVCFG_PMM_PMLEN_0 (_AC(0x0, ULL) << 32)
211 #define ENVCFG_PMM_PMLEN_7 (_AC(0x2, ULL) << 32)
212 #define ENVCFG_PMM_PMLEN_16 (_AC(0x3, ULL) << 32)
216 #define ENVCFG_CBIE (_AC(0x3, UL) << ENVCFG_CBIE_SHIFT)
217 #define ENVCFG_CBIE_ILL _AC(0x0, UL)
218 #define ENVCFG_CBIE_FLUSH _AC(0x1, UL)
219 #define ENVCFG_CBIE_INV _AC(0x3, UL)
220 #define ENVCFG_FIOM _AC(0x1, UL)
241 #define CSR_CYCLE 0xc00
242 #define CSR_TIME 0xc01
243 #define CSR_INSTRET 0xc02
244 #define CSR_HPMCOUNTER3 0xc03
245 #define CSR_HPMCOUNTER4 0xc04
246 #define CSR_HPMCOUNTER5 0xc05
247 #define CSR_HPMCOUNTER6 0xc06
248 #define CSR_HPMCOUNTER7 0xc07
249 #define CSR_HPMCOUNTER8 0xc08
250 #define CSR_HPMCOUNTER9 0xc09
251 #define CSR_HPMCOUNTER10 0xc0a
252 #define CSR_HPMCOUNTER11 0xc0b
253 #define CSR_HPMCOUNTER12 0xc0c
254 #define CSR_HPMCOUNTER13 0xc0d
255 #define CSR_HPMCOUNTER14 0xc0e
256 #define CSR_HPMCOUNTER15 0xc0f
257 #define CSR_HPMCOUNTER16 0xc10
258 #define CSR_HPMCOUNTER17 0xc11
259 #define CSR_HPMCOUNTER18 0xc12
260 #define CSR_HPMCOUNTER19 0xc13
261 #define CSR_HPMCOUNTER20 0xc14
262 #define CSR_HPMCOUNTER21 0xc15
263 #define CSR_HPMCOUNTER22 0xc16
264 #define CSR_HPMCOUNTER23 0xc17
265 #define CSR_HPMCOUNTER24 0xc18
266 #define CSR_HPMCOUNTER25 0xc19
267 #define CSR_HPMCOUNTER26 0xc1a
268 #define CSR_HPMCOUNTER27 0xc1b
269 #define CSR_HPMCOUNTER28 0xc1c
270 #define CSR_HPMCOUNTER29 0xc1d
271 #define CSR_HPMCOUNTER30 0xc1e
272 #define CSR_HPMCOUNTER31 0xc1f
273 #define CSR_CYCLEH 0xc80
274 #define CSR_TIMEH 0xc81
275 #define CSR_INSTRETH 0xc82
276 #define CSR_HPMCOUNTER3H 0xc83
277 #define CSR_HPMCOUNTER4H 0xc84
278 #define CSR_HPMCOUNTER5H 0xc85
279 #define CSR_HPMCOUNTER6H 0xc86
280 #define CSR_HPMCOUNTER7H 0xc87
281 #define CSR_HPMCOUNTER8H 0xc88
282 #define CSR_HPMCOUNTER9H 0xc89
283 #define CSR_HPMCOUNTER10H 0xc8a
284 #define CSR_HPMCOUNTER11H 0xc8b
285 #define CSR_HPMCOUNTER12H 0xc8c
286 #define CSR_HPMCOUNTER13H 0xc8d
287 #define CSR_HPMCOUNTER14H 0xc8e
288 #define CSR_HPMCOUNTER15H 0xc8f
289 #define CSR_HPMCOUNTER16H 0xc90
290 #define CSR_HPMCOUNTER17H 0xc91
291 #define CSR_HPMCOUNTER18H 0xc92
292 #define CSR_HPMCOUNTER19H 0xc93
293 #define CSR_HPMCOUNTER20H 0xc94
294 #define CSR_HPMCOUNTER21H 0xc95
295 #define CSR_HPMCOUNTER22H 0xc96
296 #define CSR_HPMCOUNTER23H 0xc97
297 #define CSR_HPMCOUNTER24H 0xc98
298 #define CSR_HPMCOUNTER25H 0xc99
299 #define CSR_HPMCOUNTER26H 0xc9a
300 #define CSR_HPMCOUNTER27H 0xc9b
301 #define CSR_HPMCOUNTER28H 0xc9c
302 #define CSR_HPMCOUNTER29H 0xc9d
303 #define CSR_HPMCOUNTER30H 0xc9e
304 #define CSR_HPMCOUNTER31H 0xc9f
306 #define CSR_SCOUNTOVF 0xda0
308 #define CSR_SSTATUS 0x100
309 #define CSR_SIE 0x104
310 #define CSR_STVEC 0x105
311 #define CSR_SCOUNTEREN 0x106
312 #define CSR_SENVCFG 0x10a
313 #define CSR_SSTATEEN0 0x10c
314 #define CSR_SSCRATCH 0x140
315 #define CSR_SEPC 0x141
316 #define CSR_SCAUSE 0x142
317 #define CSR_STVAL 0x143
318 #define CSR_SIP 0x144
319 #define CSR_SATP 0x180
321 #define CSR_STIMECMP 0x14D
322 #define CSR_STIMECMPH 0x15D
325 #define CSR_VXSAT 0x9
326 #define CSR_VXRM 0xa
334 #define CSR_SISELECT 0x150
335 #define CSR_SIREG 0x151
338 #define CSR_STOPEI 0x15c
339 #define CSR_STOPI 0xdb0
342 #define CSR_SIEH 0x114
343 #define CSR_SIPH 0x154
345 #define CSR_VSSTATUS 0x200
346 #define CSR_VSIE 0x204
347 #define CSR_VSTVEC 0x205
348 #define CSR_VSSCRATCH 0x240
349 #define CSR_VSEPC 0x241
350 #define CSR_VSCAUSE 0x242
351 #define CSR_VSTVAL 0x243
352 #define CSR_VSIP 0x244
353 #define CSR_VSATP 0x280
354 #define CSR_VSTIMECMP 0x24D
355 #define CSR_VSTIMECMPH 0x25D
357 #define CSR_HSTATUS 0x600
358 #define CSR_HEDELEG 0x602
359 #define CSR_HIDELEG 0x603
360 #define CSR_HIE 0x604
361 #define CSR_HTIMEDELTA 0x605
362 #define CSR_HCOUNTEREN 0x606
363 #define CSR_HGEIE 0x607
364 #define CSR_HENVCFG 0x60a
365 #define CSR_HTIMEDELTAH 0x615
366 #define CSR_HENVCFGH 0x61a
367 #define CSR_HTVAL 0x643
368 #define CSR_HIP 0x644
369 #define CSR_HVIP 0x645
370 #define CSR_HTINST 0x64a
371 #define CSR_HGATP 0x680
372 #define CSR_HGEIP 0xe12
375 #define CSR_HVIEN 0x608
376 #define CSR_HVICTL 0x609
377 #define CSR_HVIPRIO1 0x646
378 #define CSR_HVIPRIO2 0x647
381 #define CSR_VSISELECT 0x250
382 #define CSR_VSIREG 0x251
385 #define CSR_VSTOPEI 0x25c
386 #define CSR_VSTOPI 0xeb0
389 #define CSR_HIDELEGH 0x613
390 #define CSR_HVIENH 0x618
391 #define CSR_HVIPH 0x655
392 #define CSR_HVIPRIO1H 0x656
393 #define CSR_HVIPRIO2H 0x657
394 #define CSR_VSIEH 0x214
395 #define CSR_VSIPH 0x254
398 #define CSR_HSTATEEN0 0x60c
399 #define CSR_HSTATEEN0H 0x61c
401 #define CSR_MSTATUS 0x300
402 #define CSR_MISA 0x301
403 #define CSR_MIDELEG 0x303
404 #define CSR_MIE 0x304
405 #define CSR_MTVEC 0x305
406 #define CSR_MENVCFG 0x30a
407 #define CSR_MENVCFGH 0x31a
408 #define CSR_MSCRATCH 0x340
409 #define CSR_MEPC 0x341
410 #define CSR_MCAUSE 0x342
411 #define CSR_MTVAL 0x343
412 #define CSR_MIP 0x344
413 #define CSR_PMPCFG0 0x3a0
414 #define CSR_PMPADDR0 0x3b0
415 #define CSR_MSECCFG 0x747
416 #define CSR_MSECCFGH 0x757
417 #define CSR_MVENDORID 0xf11
418 #define CSR_MARCHID 0xf12
419 #define CSR_MIMPID 0xf13
420 #define CSR_MHARTID 0xf14
423 #define CSR_MISELECT 0x350
424 #define CSR_MIREG 0x351
427 #define CSR_MTOPEI 0x35c
428 #define CSR_MTOPI 0xfb0
431 #define CSR_MVIEN 0x308
432 #define CSR_MVIP 0x309
435 #define CSR_MIDELEGH 0x313
436 #define CSR_MIEH 0x314
437 #define CSR_MVIENH 0x318
438 #define CSR_MVIPH 0x319
439 #define CSR_MIPH 0x354
441 #define CSR_VSTART 0x8
442 #define CSR_VCSR 0xf
443 #define CSR_VL 0xc20
444 #define CSR_VTYPE 0xc21
445 #define CSR_VLENB 0xc22
448 #define CSR_SEED 0x015
449 #define SEED_OPST_MASK _AC(0xC0000000, UL)
450 #define SEED_OPST_BIST _AC(0x00000000, UL)
451 #define SEED_OPST_WAIT _AC(0x40000000, UL)
452 #define SEED_OPST_ES16 _AC(0x80000000, UL)
453 #define SEED_OPST_DEAD _AC(0xC0000000, UL)
454 #define SEED_ENTROPY_MASK _AC(0xFFFF, UL)
507 # define SIP_LCOFIP (_AC(0x1, UL) << IRQ_PMU_OVF)
512 #define IE_SIE (_AC(0x1, UL) << RV_IRQ_SOFT)
513 #define IE_TIE (_AC(0x1, UL) << RV_IRQ_TIMER)
514 #define IE_EIE (_AC(0x1, UL) << RV_IRQ_EXT)
521 __asm__ __volatile__ ("csrrw %0, " __ASM_STR(csr) ", %1"\
530 __asm__ __volatile__ ("csrr %0, " __ASM_STR(csr) \
539 __asm__ __volatile__ ("csrw " __ASM_STR(csr) ", %0" \
547 __asm__ __volatile__ ("csrrs %0, " __ASM_STR(csr) ", %1"\
556 __asm__ __volatile__ ("csrs " __ASM_STR(csr) ", %0" \
564 __asm__ __volatile__ ("csrrc %0, " __ASM_STR(csr) ", %1"\
573 __asm__ __volatile__ ("csrc " __ASM_STR(csr) ", %0" \