mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
syscalls: gettid
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user