kern

diff src/sched.h @ 55:88a6c4e192f9

Fixed most important task switching bugs. Now it seems that I can switch in and out of user space reliably.
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 15 Aug 2011 04:03:39 +0300
parents b1e8c8251884
children 3941e82b07f2
line diff
     1.1 --- a/src/sched.h	Sun Aug 14 16:57:23 2011 +0300
     1.2 +++ b/src/sched.h	Mon Aug 15 04:03:39 2011 +0300
     1.3 @@ -5,8 +5,9 @@
     1.4  
     1.5  void schedule(void);
     1.6  
     1.7 -int add_proc(int pid, enum proc_state state);
     1.8 -int block_proc(int pid);
     1.9 -int unblock_proc(int pid);
    1.10 +void add_proc(int pid);
    1.11 +
    1.12 +void wait(void *wait_addr);
    1.13 +void wakeup(void *wait_addr);
    1.14  
    1.15  #endif	/* SCHED_H_ */