From b096078c282af7233062ba242a213e6f5574cfb1 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Mon, 23 May 2022 20:40:53 +0300 Subject: switch from clang-format to uncrustify The output is close enough, and I like that uncrustify is a third-party tool, so people can install a single tool for formatting instead of having to lug around a whole toolchain. I fully expect to have to add settings to uncrustify.conf, but let's see how this goes. --- arch/riscv64/include/csr.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'arch/riscv64/include/csr.h') diff --git a/arch/riscv64/include/csr.h b/arch/riscv64/include/csr.h index 93bba2b..ade397c 100644 --- a/arch/riscv64/include/csr.h +++ b/arch/riscv64/include/csr.h @@ -55,15 +55,15 @@ #endif #define csr_read(csr, res) \ - __asm__ volatile("csrr %0, " __ASM_STR(csr) : "=r"(res) : : "memory") + __asm__ volatile ("csrr %0, " __ASM_STR(csr) : "=r" (res) : : "memory") #define csr_write(csr, val) \ - __asm__ volatile("csrw " __ASM_STR(csr) ", %0" : : "r"(val) : "memory") + __asm__ volatile ("csrw " __ASM_STR(csr) ", %0" : : "r" (val) : "memory") #define csr_set(csr, val) \ - __asm__ volatile("csrs " __ASM_STR(csr) ", %0" : : "r"(val) : "memory") + __asm__ volatile ("csrs " __ASM_STR(csr) ", %0" : : "r" (val) : "memory") #define csr_clear(csr, val) \ - __asm__ volatile("csrc " __ASM_STR(csr) ", %0" : : "r"(val) : "memory") + __asm__ volatile ("csrc " __ASM_STR(csr) ", %0" : : "r" (val) : "memory") #endif /* APOS_CSR_H */ -- cgit v1.3