diff options
Diffstat (limited to 'src/arch/riscv/include/mcall.h')
-rw-r--r-- | src/arch/riscv/include/mcall.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/arch/riscv/include/mcall.h b/src/arch/riscv/include/mcall.h index e303d0d28d..1e74ed345d 100644 --- a/src/arch/riscv/include/mcall.h +++ b/src/arch/riscv/include/mcall.h @@ -23,6 +23,20 @@ /* We save 37 registers, currently. */ #define MENTRY_FRAME_SIZE (HLS_SIZE + 37 * 8) +#define MCALL_HART_ID 0 +#define MCALL_NUM_HARTS 1 +#define MCALL_QUERY_MEMORY 2 +#define MCALL_CONSOLE_PUTCHAR 3 +#define MCALL_CONSOLE_GETCHAR 4 +#define MCALL_SEND_IPI 6 +#define MCALL_CLEAR_IPI 7 +#define MCALL_SHUTDOWN 8 +#define MCALL_SET_TIMER 9 +#define MCALL_REMOTE_SFENCE_VM 10 +#define MCALL_REMOTE_FENCE_I 11 +#define MCALL_CONFIG_STRING_BASE 12 +#define MCALL_CONFIG_STRING_SIZE 13 + #ifndef __ASSEMBLER__ #include <arch/encoding.h> |