2021-11-05 23:02:23 +01:00
|
|
|
#pragma once
|
|
|
|
#ifdef __KERNEL__
|
2024-02-10 23:25:24 +01:00
|
|
|
#include "cpu_context.h"
|
2021-11-05 23:02:23 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#define SYSCALL_ID_EXIT 1
|
2023-11-11 00:07:26 +01:00
|
|
|
#define SYSCALL_ID_HELO 2
|
2021-11-05 23:02:23 +01:00
|
|
|
#define SYSCALL_ID_PUTC 3
|
2021-11-06 00:13:40 +01:00
|
|
|
#define SYSCALL_ID_READ 4
|
2021-11-08 23:22:03 +01:00
|
|
|
#define SYSCALL_ID_TEST 5
|
2024-02-10 23:25:24 +01:00
|
|
|
#define SYSCALL_ID_BRK 6
|
2023-03-24 23:43:09 +01:00
|
|
|
#define SYSCALL_ID_MMAP 7
|
2024-02-10 23:25:24 +01:00
|
|
|
#define SYSCALL_ID_MUNMAP 8
|
2024-02-13 00:19:39 +01:00
|
|
|
#define SYSCALL_ID_NEW_THREAD 9
|
2024-02-14 18:43:47 +01:00
|
|
|
#define SYSCALL_ID_USLEEP 10
|
2024-02-14 23:20:46 +01:00
|
|
|
#define SYSCALL_ID_GETPID 11
|
|
|
|
#define SYSCALL_ID_GETTID 12
|
2021-11-05 23:02:23 +01:00
|
|
|
|
|
|
|
#ifdef __KERNEL__
|
|
|
|
int syscallExecute(int syscallId, const struct cpu_state *user_ctx);
|
|
|
|
#endif
|