mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-02 07:28:21 +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