From 217d216516ebb7426ee5ab903358e1a2623f8700 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Mon, 23 May 2022 20:07:00 +0300 Subject: rename sys_switch to sys_swap --- include/apos/syscalls.h | 22 +++++++++++----------- include/apos/uapi.h | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) (limited to 'include') diff --git a/include/apos/syscalls.h b/include/apos/syscalls.h index 19e27ea..e89d07a 100644 --- a/include/apos/syscalls.h +++ b/include/apos/syscalls.h @@ -14,10 +14,10 @@ enum { SYS_NOOP, /* memory management */ - SYS_REQ_MEM, /* request memory from anywhere */ - SYS_REQ_PMEM, /* request physical address */ + SYS_REQ_MEM, /* request memory from anywhere */ + SYS_REQ_PMEM, /* request physical address */ SYS_REQ_FIXMEM, /* request memory at fixed address */ - SYS_FREE_MEM, /* free memory */ + SYS_FREE_MEM, /* free memory */ /* timers */ SYS_TIMEBASE, @@ -29,21 +29,21 @@ enum { /* I really should try to find my notes about the server/client * structure of the OS, but these following syscalls are probably * required */ - SYS_IPC_SERVER, /* inform kernel that process should be treated as a server */ - SYS_IPC_REQ_PROC, /* IPC request to server on behalf of process */ + SYS_IPC_SERVER, /* inform kernel that process should be treated as a server */ + SYS_IPC_REQ_PROC, /* IPC request to server on behalf of process */ SYS_IPC_REQ_THREAD, /* IPC request to server on behalf of thread */ - SYS_IPC_RESP, /* IPC response from server */ + 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_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 */ + SYS_SWAP /* switch running process */ /* kernel management */ - SYS_CONF, /* config system parameters (stack size etc.) */ + SYS_CONF, /* config system parameters (stack size etc.) */ SYS_POWEROFF, /* shutdown/reboot etc. */ }; diff --git a/include/apos/uapi.h b/include/apos/uapi.h index d33a855..dc20187 100644 --- a/include/apos/uapi.h +++ b/include/apos/uapi.h @@ -108,7 +108,7 @@ SYSCALL_DECLARE(create); SYSCALL_DECLARE(fork); SYSCALL_DECLARE(exec); SYSCALL_DECLARE(signal); -SYSCALL_DECLARE(switch); +SYSCALL_DECLARE(swap); /* conf */ SYSCALL_DECLARE(conf); -- cgit v1.3