matos/core/syscall.h

13 lines
238 B
C
Raw Normal View History

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