arch/riscv: Define and use SBI_ENOSYS

Change-Id: Ia7f409ebc7e50383a7e445ef8806953347501dab
Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Reviewed-on: https://review.coreboot.org/c/30175
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Philipp Hug <philipp@hug.cx>
This commit is contained in:
Jonathan Neuschäfer 2018-12-11 17:53:17 +01:00 committed by Patrick Georgi
parent 7d81718cb8
commit ecf25fda86
2 changed files with 3 additions and 1 deletions

View File

@ -26,6 +26,8 @@
#define SBI_REMOTE_SFENCE_VMA_ASID 7
#define SBI_SHUTDOWN 8
#define SBI_ENOSYS 38
#define IPI_SOFT 1
#define IPI_FENCE_I 2
#define IPI_SFENCE_VMA 4

View File

@ -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;