matos/core/syscall.h

13 lines
238 B
C

#pragma once
#ifdef __KERNEL__
#include "cpu_context.h"
#endif
#define SYSCALL_ID_EXIT 1
#define SYSCALL_ID_YOLO 2
#define SYSCALL_ID_PUTC 3
#ifdef __KERNEL__
int syscallExecute(int syscallId, const struct cpu_state *user_ctx);
#endif