From 4bcd0f6a77e20c78632b64fe6ee57129556a531d Mon Sep 17 00:00:00 2001 From: rsc Date: Fri, 24 Aug 2007 20:04:53 +0000 Subject: Add yield system call, for zombie test program (bad idea?). --- syscall.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'syscall.c') diff --git a/syscall.c b/syscall.c index eddf725..4853e35 100644 --- a/syscall.c +++ b/syscall.c @@ -105,6 +105,7 @@ extern int sys_sbrk(void); extern int sys_unlink(void); extern int sys_wait(void); extern int sys_write(void); +extern int sys_yield(void); static int (*syscalls[])(void) = { [SYS_chdir] sys_chdir, @@ -126,6 +127,7 @@ static int (*syscalls[])(void) = { [SYS_unlink] sys_unlink, [SYS_wait] sys_wait, [SYS_write] sys_write, +[SYS_yield] sys_yield, }; void -- cgit v1.2.3