[PATCH 1/1] include: sbi: SBI function IDs for RFENCE extension
Heinrich Schuchardt
xypron.glpk at gmx.de
Tue Mar 9 11:31:22 GMT 2021
The SBI function IDs for RFENCE extension must match the SBI specification.
Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
---
The same bug exists in the Linux kernel:
https://lore.kernel.org/linux-riscv/20210306054801.18263-1-xypron.glpk@gmx.de/
---
include/sbi/sbi_ecall_interface.h | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/include/sbi/sbi_ecall_interface.h b/include/sbi/sbi_ecall_interface.h
index 7fcb373..559a33e 100644
--- a/include/sbi/sbi_ecall_interface.h
+++ b/include/sbi/sbi_ecall_interface.h
@@ -48,10 +48,10 @@
#define SBI_EXT_RFENCE_REMOTE_FENCE_I 0x0
#define SBI_EXT_RFENCE_REMOTE_SFENCE_VMA 0x1
#define SBI_EXT_RFENCE_REMOTE_SFENCE_VMA_ASID 0x2
-#define SBI_EXT_RFENCE_REMOTE_HFENCE_GVMA 0x3
-#define SBI_EXT_RFENCE_REMOTE_HFENCE_GVMA_VMID 0x4
-#define SBI_EXT_RFENCE_REMOTE_HFENCE_VVMA 0x5
-#define SBI_EXT_RFENCE_REMOTE_HFENCE_VVMA_ASID 0x6
+#define SBI_EXT_RFENCE_REMOTE_HFENCE_GVMA_VMID 0x3
+#define SBI_EXT_RFENCE_REMOTE_HFENCE_GVMA 0x4
+#define SBI_EXT_RFENCE_REMOTE_HFENCE_VVMA_ASID 0x5
+#define SBI_EXT_RFENCE_REMOTE_HFENCE_VVMA 0x6
/* SBI function IDs for HSM extension */
#define SBI_EXT_HSM_HART_START 0x0
--
2.30.1
More information about the opensbi
mailing list