From a4851206bef5ceecef18b3fde5be6918a67cca21 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sat, 21 May 2022 21:23:12 +0300 Subject: add create syscall for threads --- include/apos/syscalls.h | 2 ++ include/apos/uapi.h | 1 + 2 files changed, 3 insertions(+) (limited to 'include/apos') diff --git a/include/apos/syscalls.h b/include/apos/syscalls.h index b8553bc..9346da3 100644 --- a/include/apos/syscalls.h +++ b/include/apos/syscalls.h @@ -29,8 +29,10 @@ enum { SYS_IPC_RESP, /* IPC response from server */ /* process management */ + SYS_CREATE, /* create new thread */ SYS_FORK, /* duplicate process */ SYS_EXEC, /* execute new binary in process space */ + SYS_KILL, /* kill thread */ SYS_SIGNAL, /* send signal to process (kill etc.) */ SYS_SWITCH, /* switch running process */ diff --git a/include/apos/uapi.h b/include/apos/uapi.h index ff3f4d0..a3b54d5 100644 --- a/include/apos/uapi.h +++ b/include/apos/uapi.h @@ -98,6 +98,7 @@ SYSCALL_DECLARE(ipc_req); SYSCALL_DECLARE(ipc_resp); /* proc */ +SYSCALL_DECLARE(create); SYSCALL_DECLARE(fork); SYSCALL_DECLARE(exec); SYSCALL_DECLARE(signal); -- cgit v1.3