Replace yield system call with sleep.
This commit is contained in:
parent
e1872bb130
commit
efc12b8e61
9 changed files with 52 additions and 26 deletions
2
defs.h
2
defs.h
|
|
@ -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]))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue