From b667ea0fbd26af222f828199e7b9a7e62ad98081 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 22 Aug 2020 23:31:47 +0200 Subject: Some window fb and yield implementation --- kernel/features/syscall.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'kernel/features/syscall.c') diff --git a/kernel/features/syscall.c b/kernel/features/syscall.c index 9bd5e9b..2a310ef 100644 --- a/kernel/features/syscall.c +++ b/kernel/features/syscall.c @@ -17,7 +17,7 @@ void syscall_handler(struct regs *r) enum sys num = r->eax; r->eax = 0; - if (num != SYS_RECEIVE) + if (num != SYS_RECEIVE && num != SYS_YIELD) printf("[SYSCALL] %d: ", num); switch (num) { @@ -69,6 +69,11 @@ void syscall_handler(struct regs *r) proc_exit(proc_current(), r->ebx); break; } + case SYS_YIELD: { + /* printf("yield\n"); */ + proc_yield(); + break; + } case SYS_TIME: { printf("time\n"); r->eax = timer_get(); -- cgit v1.2.3