[coreboot-gerrit] Change in ...coreboot[master]: arch/riscv: Define and use SBI_ENOSYS
Jonathan Neuschäfer (Code Review)
gerrit at coreboot.org
Wed Dec 12 02:15:08 CET 2018
Jonathan Neuschäfer has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/30175
Change subject: arch/riscv: Define and use SBI_ENOSYS
......................................................................
arch/riscv: Define and use SBI_ENOSYS
Change-Id: Ia7f409ebc7e50383a7e445ef8806953347501dab
Signed-off-by: Jonathan Neuschäfer <j.neuschaefer at gmx.net>
---
M src/arch/riscv/include/sbi.h
M src/arch/riscv/sbi.c
2 files changed, 3 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/75/30175/1
diff --git a/src/arch/riscv/include/sbi.h b/src/arch/riscv/include/sbi.h
index e9301f6..2943704 100644
--- a/src/arch/riscv/include/sbi.h
+++ b/src/arch/riscv/include/sbi.h
@@ -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
diff --git a/src/arch/riscv/sbi.c b/src/arch/riscv/sbi.c
index 832d4d3..e540828 100644
--- a/src/arch/riscv/sbi.c
+++ b/src/arch/riscv/sbi.c
@@ -113,7 +113,7 @@
ret = send_ipi((uintptr_t *)arg0, IPI_SHUTDOWN);
break;
default:
- ret = -38;
+ ret = -SBI_ENOSYS;
break;
}
tf->gpr[10] = ret;
--
To view, visit https://review.coreboot.org/c/coreboot/+/30175
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ia7f409ebc7e50383a7e445ef8806953347501dab
Gerrit-Change-Number: 30175
Gerrit-PatchSet: 1
Gerrit-Owner: Jonathan Neuschäfer <j.neuschaefer at gmx.net>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20181212/8220a866/attachment.html>
More information about the coreboot-gerrit
mailing list