summaryrefslogtreecommitdiff
path: root/kernel/cpu
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2023-11-15 21:13:36 +0100
committerAnton Kling <anton@kling.gg>2023-11-15 22:11:26 +0100
commit835101f96e7c9fca00940e967c471c33e4e4dae9 (patch)
tree9c48b871d4b547fac8c3a2eda6c21242e593fdfd /kernel/cpu
parentc9358cdeac4522922df46fb6e3ab6a517203ec99 (diff)
VFS/LibC: Add getcwd()
Diffstat (limited to 'kernel/cpu')
-rw-r--r--kernel/cpu/syscall.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/cpu/syscall.c b/kernel/cpu/syscall.c
index 31fa055..40a5b07 100644
--- a/kernel/cpu/syscall.c
+++ b/kernel/cpu/syscall.c
@@ -11,6 +11,7 @@
#include <scalls/bind.h>
#include <scalls/chdir.h>
#include <scalls/ftruncate.h>
+#include <scalls/getcwd.h>
#include <scalls/kill.h>
#include <scalls/mkdir.h>
#include <scalls/mmap.h>
@@ -169,6 +170,7 @@ void (*syscall_functions[])() = {
(void(*))syscall_mkdir, (void(*))syscall_recvfrom,
(void(*))syscall_sendto, (void(*))syscall_kill,
(void(*))syscall_sigaction, (void(*))syscall_chdir,
+ (void(*))syscall_getcwd,
};
void syscall_function_handler(u32 eax, u32 arg1, u32 arg2, u32 arg3, u32 arg4,