matos/userspace/kernel/syscall.h

14 lines
264 B
C
Raw Normal View History

2021-11-05 23:02:23 +01:00
#pragma once
#ifdef __KERNEL__
#include "cpu_context.h"
#endif
#define SYSCALL_ID_EXIT 1
#define SYSCALL_ID_YOLO 2
#define SYSCALL_ID_PUTC 3
2021-11-06 00:13:40 +01:00
#define SYSCALL_ID_READ 4
2021-11-05 23:02:23 +01:00
#ifdef __KERNEL__
int syscallExecute(int syscallId, const struct cpu_state *user_ctx);
#endif