diff options
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 e2cbcea..ef8f24e 100644 --- a/arch/riscv64/kernel/proc.c +++ b/arch/riscv64/kernel/proc.c @@ -5,8 +5,8 @@ stat_t jump_to_userspace(struct tcb *t, int argc, char **argv) { csr_write(CSR_SEPC, t->entry); - __asm__ volatile ("mv sp, %0\n" : "=r" (t->proc_stack) :: "memory"); - __asm__ volatile ("sret\n" ::: "memory"); + __asm__ volatile("mv sp, %0\n" : "=r"(t->proc_stack)::"memory"); + __asm__ volatile("sret\n" ::: "memory"); /* we should never reach this */ return ERR_ADDR; } |
