aboutsummaryrefslogtreecommitdiff
path: root/include/apos
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2022-05-23 20:07:00 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2022-05-23 20:07:00 +0300
commit217d216516ebb7426ee5ab903358e1a2623f8700 (patch)
tree667fecd542808bfa150efdc9aead825bc48f1188 /include/apos
parenta99f70d8d7d6f771f4450ac8a12dd963bfe5fb08 (diff)
downloadkmi-217d216516ebb7426ee5ab903358e1a2623f8700.tar.gz
kmi-217d216516ebb7426ee5ab903358e1a2623f8700.zip
rename sys_switch to sys_swap
Diffstat (limited to 'include/apos')
-rw-r--r--include/apos/syscalls.h22
-rw-r--r--include/apos/uapi.h2
2 files changed, 12 insertions, 12 deletions
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);