diff options
author | rsc <rsc> | 2007-08-24 20:04:53 +0000 |
---|---|---|
committer | rsc <rsc> | 2007-08-24 20:04:53 +0000 |
commit | 4bcd0f6a77e20c78632b64fe6ee57129556a531d (patch) | |
tree | f7cc23fb6d5b036a22fe9a16819a02883493ee48 /sysproc.c | |
parent | 1b789e1d50df4e7b98fa131fc29caf29a5f38bfa (diff) | |
download | xv6-labs-4bcd0f6a77e20c78632b64fe6ee57129556a531d.tar.gz xv6-labs-4bcd0f6a77e20c78632b64fe6ee57129556a531d.tar.bz2 xv6-labs-4bcd0f6a77e20c78632b64fe6ee57129556a531d.zip |
Add yield system call, for zombie test program (bad idea?).
Diffstat (limited to 'sysproc.c')
-rw-r--r-- | sysproc.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -68,3 +68,10 @@ sys_sbrk(void) setupsegs(cp); return addr; } + +int +sys_yield(void) +{ + yield(); + return 0; +} |