diff options
author | Anton Kling <anton@kling.gg> | 2024-04-29 22:20:47 +0200 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2024-04-29 22:20:47 +0200 |
commit | db496f358fc2165a99880bd0c01f0273e24cc0ae (patch) | |
tree | 54adc6edba3466dd08b38eab76e30525bdd99c49 | |
parent | 231301a6190605bd3ced4d961ee0d5d3fcd49d65 (diff) |
Kernel/LibC: Remove unused syscalls
-rw-r--r-- | kernel/cpu/syscall.c | 6 | ||||
-rw-r--r-- | userland/libc/include/syscall.h | 17 |
2 files changed, 5 insertions, 18 deletions
diff --git a/kernel/cpu/syscall.c b/kernel/cpu/syscall.c index b72beff..897703a 100644 --- a/kernel/cpu/syscall.c +++ b/kernel/cpu/syscall.c @@ -193,12 +193,6 @@ int (*syscall_functions[])() = { (void(*))syscall_virtual_to_physical, (void(*))syscall_install_irq, (void(*))syscall_tmp_handle_packet, - (void(*))NULL, - (void(*))NULL, - (void(*))NULL, - (void(*))NULL, - (void(*))NULL, - (void(*))NULL, (void(*))syscall_munmap, (void(*))syscall_open_process, (void(*))syscall_lseek, diff --git a/userland/libc/include/syscall.h b/userland/libc/include/syscall.h index dcc4742..32a9e81 100644 --- a/userland/libc/include/syscall.h +++ b/userland/libc/include/syscall.h @@ -49,18 +49,11 @@ #define SYS_INSTALL_IRQ 40 #define SYS_TMP_KERNEL_HANDLE_PACKET 41 -#define SYS_TCP_CONNECT 42 -#define SYS_TCP_WRITE 43 -#define SYS_TCP_READ 44 - -#define SYS_QUEUE_CREATE 45 -#define SYS_QUEUE_ADD 46 -#define SYS_QUEUE_WAIT 47 -#define SYS_MUNMAP 48 -#define SYS_OPEN_PROCESS 49 -#define SYS_LSEEK 50 -#define SYS_CONNECT 51 -#define SYS_SETSOCKOPT 52 +#define SYS_MUNMAP 42 +#define SYS_OPEN_PROCESS 43 +#define SYS_LSEEK 44 +#define SYS_CONNECT 45 +#define SYS_SETSOCKOPT 46 int syscall(uint32_t eax, uint32_t ebx, uint32_t ecx, uint32_t edx, uint32_t esi, uint32_t edi); |