Searched refs:csr (Results 1 – 1 of 1) sorted by relevance
/DragonStub/inc/dragonstub/linux/arch/riscv/asm/ |
H A D | csr.h | 456 #define csr_swap(csr, val) \ argument 459 __asm__ __volatile__ ("csrrw %0, " __ASM_STR(csr) ", %1"\ 465 #define csr_read(csr) \ argument 468 __asm__ __volatile__ ("csrr %0, " __ASM_STR(csr) \ 474 #define csr_write(csr, val) \ argument 477 __asm__ __volatile__ ("csrw " __ASM_STR(csr) ", %0" \ 482 #define csr_read_set(csr, val) \ argument 485 __asm__ __volatile__ ("csrrs %0, " __ASM_STR(csr) ", %1"\ 491 #define csr_set(csr, val) \ argument 494 __asm__ __volatile__ ("csrs " __ASM_STR(csr) ", %0" \ [all …]
|