mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
11 lines
188 B
C
11 lines
188 B
C
#include <kernel/syscalls.h>
|
|
#include <arch/cpu.h>
|
|
|
|
syscallret_t syscall_getpid(context_t *ctx) {
|
|
syscallret_t ret = {
|
|
.ret = _cpu()->thread->proc->pid,
|
|
.errno = 0
|
|
};
|
|
return ret;
|
|
}
|