aboutsummaryrefslogtreecommitdiff
path: root/machine/mcall.h
diff options
context:
space:
mode:
Diffstat (limited to 'machine/mcall.h')
-rw-r--r--machine/mcall.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/machine/mcall.h b/machine/mcall.h
index a704480..6a2c037 100644
--- a/machine/mcall.h
+++ b/machine/mcall.h
@@ -1,13 +1,14 @@
-#ifndef _RISCV_MCALL_H
-#define _RISCV_MCALL_H
+#ifndef _RISCV_SBI_H
+#define _RISCV_SBI_H
-#define MCALL_CONSOLE_PUTCHAR 1
-#define MCALL_CONSOLE_GETCHAR 2
-#define MCALL_SEND_IPI 4
-#define MCALL_CLEAR_IPI 5
-#define MCALL_SHUTDOWN 6
-#define MCALL_SET_TIMER 7
-#define MCALL_REMOTE_SFENCE_VM 8
-#define MCALL_REMOTE_FENCE_I 9
+#define SBI_SET_TIMER 0
+#define SBI_CONSOLE_PUTCHAR 1
+#define SBI_CONSOLE_GETCHAR 2
+#define SBI_CLEAR_IPI 3
+#define SBI_SEND_IPI 4
+#define SBI_REMOTE_FENCE_I 5
+#define SBI_REMOTE_SFENCE_VMA 6
+#define SBI_REMOTE_SFENCE_VMA_ASID 7
+#define SBI_SHUTDOWN 8
#endif