mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
syscalls: getpid
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
#include <kernel/syscalls.h>
|
||||
#include <arch/cls.h>
|
||||
|
||||
syscallret syscall_getpid(){
|
||||
syscallret retv = { arch_getcls()->thread->proc->pid, 0 };
|
||||
return retv;
|
||||
}
|
||||
Reference in New Issue
Block a user