aboutsummaryrefslogtreecommitdiff
path: root/pk/mcall.h
diff options
context:
space:
mode:
Diffstat (limited to 'pk/mcall.h')
-rw-r--r--pk/mcall.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/pk/mcall.h b/pk/mcall.h
new file mode 100644
index 0000000..9992891
--- /dev/null
+++ b/pk/mcall.h
@@ -0,0 +1,15 @@
+#ifndef _PK_MCALL_H
+#define _PK_MCALL_H
+
+#define MCALL_HART_ID 0
+#define MCALL_CONSOLE_PUTCHAR 1
+#define MCALL_SEND_DEVICE_REQUEST 2
+#define MCALL_RECEIVE_DEVICE_RESPONSE 3
+
+#ifndef __ASSEMBLER__
+
+extern uintptr_t do_mcall(uintptr_t which, ...);
+
+#endif
+
+#endif