aboutsummaryrefslogtreecommitdiff
path: root/machine/mcall.h
diff options
context:
space:
mode:
authorAndrew Waterman <andrew@sifive.com>2017-02-20 19:05:55 -0800
committerAndrew Waterman <andrew@sifive.com>2017-02-20 19:05:55 -0800
commit59484c94e161b0f1870096cfb183533b20569669 (patch)
treeb2e3d43e1b14a37bf0ce7b86cc53eb27ca47be94 /machine/mcall.h
parent66fda264c796e7bcfe63282ae46c398d4a25c4d9 (diff)
downloadpk-59484c94e161b0f1870096cfb183533b20569669.zip
pk-59484c94e161b0f1870096cfb183533b20569669.tar.gz
pk-59484c94e161b0f1870096cfb183533b20569669.tar.bz2
WIP on SBI
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