kern

diff src/proc.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 4eaecb14fe31
children 0be4615594df
line diff
     1.1 --- a/src/proc.h	Sun Aug 14 16:57:23 2011 +0300
     1.2 +++ b/src/proc.h	Mon Aug 15 04:03:39 2011 +0300
     1.3 @@ -26,6 +26,9 @@
     1.4  	int id, parent;
     1.5  	enum proc_state state;
     1.6  
     1.7 +	/* when blocked it's waiting for a wakeup on this address */
     1.8 +	void *wait_addr;
     1.9 +
    1.10  	int ticks_left;
    1.11  
    1.12  	/* extends of the process heap, increased by sbrk */