diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-05-29 11:23:29 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-05-29 11:23:29 +0300 |
| commit | e148f38dc937c34b222ba8df8612b3fa2b6bc349 (patch) | |
| tree | c51f045c6632b2073cb0e3183bd9d3b559ccd228 /arch/riscv64/kernel/csr.h | |
| parent | 360c18fcbe228220e5c9799fb30b2032982c06cf (diff) | |
| download | kmi-e148f38dc937c34b222ba8df8612b3fa2b6bc349.tar.gz kmi-e148f38dc937c34b222ba8df8612b3fa2b6bc349.zip | |
modify formatting rules
Diffstat (limited to 'arch/riscv64/kernel/csr.h')
| -rw-r--r-- | arch/riscv64/kernel/csr.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/riscv64/kernel/csr.h b/arch/riscv64/kernel/csr.h index ade397c..9cb5799 100644 --- a/arch/riscv64/kernel/csr.h +++ b/arch/riscv64/kernel/csr.h @@ -54,16 +54,16 @@ #define __ASM_STR(x) #x #endif -#define csr_read(csr, res) \ +#define csr_read(csr, res) \ __asm__ volatile ("csrr %0, " __ASM_STR(csr) : "=r" (res) : : "memory") -#define csr_write(csr, val) \ +#define csr_write(csr, val) \ __asm__ volatile ("csrw " __ASM_STR(csr) ", %0" : : "r" (val) : "memory") -#define csr_set(csr, val) \ +#define csr_set(csr, val) \ __asm__ volatile ("csrs " __ASM_STR(csr) ", %0" : : "r" (val) : "memory") -#define csr_clear(csr, val) \ +#define csr_clear(csr, val) \ __asm__ volatile ("csrc " __ASM_STR(csr) ", %0" : : "r" (val) : "memory") #endif /* APOS_CSR_H */ |
