aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv64/kernel/csr.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/riscv64/kernel/csr.h')
-rw-r--r--arch/riscv64/kernel/csr.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/arch/riscv64/kernel/csr.h b/arch/riscv64/kernel/csr.h
index 9a23127..9b7b78a 100644
--- a/arch/riscv64/kernel/csr.h
+++ b/arch/riscv64/kernel/csr.h
@@ -146,8 +146,9 @@
* @param csr Name of CSR.
* @param val Value to be written.
*/
-#define csr_write(csr, val) \
- __asm__ volatile ("csrw " __ASM_STR(csr) ", %0" : : "r" (val) : "memory")
+#define csr_write(csr, val) \
+ __asm__ volatile ("csrw " __ASM_STR( \
+ csr) ", %0" : : "r" (val) : "memory")
/**
* Set bits in CSR.
@@ -155,8 +156,9 @@
* @param csr Name of CSR.
* @param val Mask of bits to set.
*/
-#define csr_set(csr, val) \
- __asm__ volatile ("csrs " __ASM_STR(csr) ", %0" : : "r" (val) : "memory")
+#define csr_set(csr, val) \
+ __asm__ volatile ("csrs " __ASM_STR( \
+ csr) ", %0" : : "r" (val) : "memory")
/**
* Clear bits in CSR.
@@ -164,7 +166,8 @@
* @param csr Name of CSR.
* @param val Mask of bits to clear.
*/
-#define csr_clear(csr, val) \
- __asm__ volatile ("csrc " __ASM_STR(csr) ", %0" : : "r" (val) : "memory")
+#define csr_clear(csr, val) \
+ __asm__ volatile ("csrc " __ASM_STR( \
+ csr) ", %0" : : "r" (val) : "memory")
#endif /* KMI_CSR_H */