diff --git a/defs.h b/defs.h index dca91bb..f2724ad 100644 --- a/defs.h +++ b/defs.h @@ -101,6 +101,7 @@ int kill(int); void pinit(void); void procdump(void); void scheduler(void) __attribute__((noreturn)); +void sched(void); void sleep(void*, struct spinlock*); void userinit(void); int wait(void); diff --git a/proc.c b/proc.c index 8197377..a72ec6c 100644 --- a/proc.c +++ b/proc.c @@ -17,6 +17,8 @@ int nextpid = 1; extern void forkret(void); extern void trapret(void); +static void wakeup1(void *chan); + void pinit(void) {