aboutsummaryrefslogtreecommitdiff
path: root/src/arch/riscv/sbi.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/riscv/sbi.c')
-rw-r--r--src/arch/riscv/sbi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/riscv/sbi.c b/src/arch/riscv/sbi.c
index 832d4d3d97..e5408288af 100644
--- a/src/arch/riscv/sbi.c
+++ b/src/arch/riscv/sbi.c
@@ -113,7 +113,7 @@ void handle_sbi(trapframe *tf)
ret = send_ipi((uintptr_t *)arg0, IPI_SHUTDOWN);
break;
default:
- ret = -38;
+ ret = -SBI_ENOSYS;
break;
}
tf->gpr[10] = ret;