13 lines
243 B
C++
13 lines
243 B
C++
#include "sys/Syscall.h"
|
|
#include "thread/Scheduler.h"
|
|
|
|
Result<u64> sys_getpid(Registers*, SyscallArgs)
|
|
{
|
|
return Scheduler::current()->id;
|
|
}
|
|
|
|
Result<u64> sys_getppid(Registers*, SyscallArgs)
|
|
{
|
|
return Scheduler::current()->parent_id;
|
|
}
|