diff options
author | Marvin Borner | 2020-09-16 21:38:19 +0200 |
---|---|---|
committer | Marvin Borner | 2020-09-16 21:38:19 +0200 |
commit | 11490a493511c4f760af74c12cb7da15b2b404a2 (patch) | |
tree | 92837dcface3dbe825a6d6e90cd983e72a62578f /kernel/features/syscall.c | |
parent | 857c228909603d1a27a40f2714f8b9076fabba6e (diff) |
Added *very* basic keymap parsing
Diffstat (limited to 'kernel/features/syscall.c')
-rw-r--r-- | kernel/features/syscall.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/features/syscall.c b/kernel/features/syscall.c index 25770a4..f6e3f15 100644 --- a/kernel/features/syscall.c +++ b/kernel/features/syscall.c @@ -100,6 +100,11 @@ void syscall_handler(struct regs *r) r->eax = (u32)(msg ? msg->msg : NULL); break; } + case SYS_GETPID: { + printf("getpid\n"); + r->eax = proc_current()->pid; + break; + } default: { printf("unknown\n"); loop(); |