syscalls: gettid

This commit is contained in:
Matheus
2024-04-14 19:09:58 -03:00
parent 82151cf1d2
commit 47910a616f
+10
View File
@@ -0,0 +1,10 @@
#include <kernel/syscalls.h>
#include <kernel/scheduler.h>
syscallret_t syscall_gettid(context_t *) {
syscallret_t ret = {
.errno = 0,
.ret = _cpu()->thread->tid
};
return ret;
}