aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv64/kernel/sbi.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2022-05-23 20:40:53 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2022-05-23 20:41:08 +0300
commitb096078c282af7233062ba242a213e6f5574cfb1 (patch)
tree56f08b2898d4721255c8a91caa7b1978488959c6 /arch/riscv64/kernel/sbi.c
parent20d9959b74fdfba26250579f8a75374042bfaaaf (diff)
downloadkmi-b096078c282af7233062ba242a213e6f5574cfb1.tar.gz
kmi-b096078c282af7233062ba242a213e6f5574cfb1.zip
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.
Diffstat (limited to 'arch/riscv64/kernel/sbi.c')
-rw-r--r--arch/riscv64/kernel/sbi.c25
1 files changed, 13 insertions, 12 deletions
diff --git a/arch/riscv64/kernel/sbi.c b/arch/riscv64/kernel/sbi.c
index feadd8d..6a417d8 100644
--- a/arch/riscv64/kernel/sbi.c
+++ b/arch/riscv64/kernel/sbi.c
@@ -12,19 +12,20 @@ struct sbiret sbi_ecall(int ext, int fid, unsigned long arg0,
{
struct sbiret ret;
- register uintptr_t a0 __asm__("a0") = (uintptr_t)(arg0);
- register uintptr_t a1 __asm__("a1") = (uintptr_t)(arg1);
- register uintptr_t a2 __asm__("a2") = (uintptr_t)(arg2);
- register uintptr_t a3 __asm__("a3") = (uintptr_t)(arg3);
- register uintptr_t a4 __asm__("a4") = (uintptr_t)(arg4);
- register uintptr_t a5 __asm__("a5") = (uintptr_t)(arg5);
- register uintptr_t a6 __asm__("a6") = (uintptr_t)(fid);
- register uintptr_t a7 __asm__("a7") = (uintptr_t)(ext);
+ register uintptr_t a0 __asm__ ("a0") = (uintptr_t)(arg0);
+ register uintptr_t a1 __asm__ ("a1") = (uintptr_t)(arg1);
+ register uintptr_t a2 __asm__ ("a2") = (uintptr_t)(arg2);
+ register uintptr_t a3 __asm__ ("a3") = (uintptr_t)(arg3);
+ register uintptr_t a4 __asm__ ("a4") = (uintptr_t)(arg4);
+ register uintptr_t a5 __asm__ ("a5") = (uintptr_t)(arg5);
+ register uintptr_t a6 __asm__ ("a6") = (uintptr_t)(fid);
+ register uintptr_t a7 __asm__ ("a7") = (uintptr_t)(ext);
- __asm__ volatile("ecall"
- : "+r"(a0), "+r"(a1)
- : "r"(a2), "r"(a3), "r"(a4), "r"(a5), "r"(a6), "r"(a7)
- : "memory");
+ __asm__ volatile ("ecall"
+ : "+r" (a0), "+r" (a1)
+ : "r" (a2), "r" (a3), "r" (a4), "r" (a5), "r" (a6),
+ "r" (a7)
+ : "memory");
ret.error = a0;
ret.value = a1;