diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-05-23 20:40:53 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-05-23 20:41:08 +0300 |
| commit | b096078c282af7233062ba242a213e6f5574cfb1 (patch) | |
| tree | 56f08b2898d4721255c8a91caa7b1978488959c6 /arch/riscv64/kernel/proc.c | |
| parent | 20d9959b74fdfba26250579f8a75374042bfaaaf (diff) | |
| download | kmi-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/proc.c')
| -rw-r--r-- | arch/riscv64/kernel/proc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/riscv64/kernel/proc.c b/arch/riscv64/kernel/proc.c index 51a4ab3..b378a72 100644 --- a/arch/riscv64/kernel/proc.c +++ b/arch/riscv64/kernel/proc.c @@ -12,8 +12,8 @@ stat_t jump_to_userspace(struct tcb *t, int argc, char **argv) { csr_write(CSR_SEPC, t->entry); csr_write(CSR_SSCRATCH, t); - __asm__ volatile("mv sp, %0\n" ::"r"(t->proc_stack_top) : "memory"); - __asm__ volatile("sret\n" ::: "memory"); + __asm__ volatile ("mv sp, %0\n" : : "r" (t->proc_stack_top) : "memory"); + __asm__ volatile ("sret\n" ::: "memory"); /* we should never reach this */ return ERR_ADDR; } |
