From b94c7a4b07f96f24ae7411780abf874416549f7b Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Wed, 9 Mar 2016 23:58:17 -0800 Subject: Refactor pk, bbl, machine into separate libraries Yuck. --- machine/mcall.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 machine/mcall.h (limited to 'machine/mcall.h') diff --git a/machine/mcall.h b/machine/mcall.h new file mode 100644 index 0000000..2096d16 --- /dev/null +++ b/machine/mcall.h @@ -0,0 +1,21 @@ +#ifndef _RISCV_MCALL_H +#define _RISCV_MCALL_H + +#define MCALL_HART_ID 0 +#define MCALL_CONSOLE_PUTCHAR 1 +#define MCALL_CONSOLE_GETCHAR 2 +#define MCALL_HTIF_SYSCALL 3 +#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 + +#ifndef __ASSEMBLER__ + +extern uintptr_t do_mcall(uintptr_t which, ...); + +#endif + +#endif -- cgit v1.1