Replace yield system call with sleep.

This commit is contained in:
rsc 2007-08-27 13:34:35 +00:00
parent e1872bb130
commit efc12b8e61
9 changed files with 52 additions and 26 deletions

2
defs.h
View file

@ -139,7 +139,9 @@ void syscall(void);
// trap.c
void idtinit(void);
extern int ticks;
void tvinit(void);
extern struct spinlock tickslock;
// number of elements in fixed-size array
#define NELEM(x) (sizeof(x)/sizeof((x)[0]))