summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
Diffstat (limited to 'usr')
-rw-r--r--usr/syscall.c6
-rw-r--r--usr/syscall.d2
-rw-r--r--usr/syscall.h1
-rw-r--r--usr/umode.d3
4 files changed, 7 insertions, 5 deletions
diff --git a/usr/syscall.c b/usr/syscall.c
index 0ea5700..834bd5b 100644
--- a/usr/syscall.c
+++ b/usr/syscall.c
@@ -1,4 +1,5 @@
#include "syscall.h"
+#include "tsk/tasking.h"
#include "mem/memory.h"
#include "io/log.h"
@@ -10,6 +11,11 @@ int _syscall_handler_log(struct syscall_log *req)
return 0;
}
+intmax_t _syscall_handler_tid(syscall_t *req)
+{
+ return task_current->id;
+}
+
void *_syscall_handlers[SYSCALL_COUNT] = {
_syscall_handler_log
};
diff --git a/usr/syscall.d b/usr/syscall.d
deleted file mode 100644
index 9d5acbf..0000000
--- a/usr/syscall.d
+++ /dev/null
@@ -1,2 +0,0 @@
-usr/syscall.o: usr/syscall.c usr/syscall.h abi/syscall.h mem/memory.h \
- mem/slab.h io/log.h
diff --git a/usr/syscall.h b/usr/syscall.h
index 49beb85..fe7843c 100644
--- a/usr/syscall.h
+++ b/usr/syscall.h
@@ -6,5 +6,6 @@
typedef int (*syscall_handler_t)(syscall_t*);
int _syscall_handler_log(struct syscall_log *req);
+intmax_t _syscall_handler_tid(syscall_t *req);
#endif
diff --git a/usr/umode.d b/usr/umode.d
deleted file mode 100644
index 54c004b..0000000
--- a/usr/umode.d
+++ /dev/null
@@ -1,3 +0,0 @@
-usr/umode.o: usr/umode.c usr/umode.h usr/elf.h boot/cmdline.h \
- lib/hashtable.h lib/linkedlist.h lib/jove.h ird/initrd.h ird/tar.h \
- lib/linkedlist.h mem/memory.h mem/slab.h