plan 9 kernel history: overview | file list | diff list

1990/1226/ss/dat.h (diff list | history)

1990/1223/sys/src/9/ss/dat.h:45,511990/1226/sys/src/9/ss/dat.h:45,51 (short | long | prev | next)
1990/1223    
 
struct Lock 
{ 
	char	key;			/* addr of sync bus semaphore */ 
1990/1226    
	ulong	key; 
1990/1223    
	ulong	pc; 
}; 
 
1990/1223/sys/src/9/ss/dat.h:67,731990/1226/sys/src/9/ss/dat.h:67,72
1990/1223    
{ 
	ulong	sp; 
	ulong	pc; 
	ushort	sr; 
}; 
 
struct Alarm 
1990/1223/sys/src/9/ss/dat.h:216,2241990/1226/sys/src/9/ss/dat.h:215,226
1990/1223    
	Lock	alarmlock;		/* access to alarm list */ 
	void	*alarm;			/* alarms bound to this clock */ 
	int	fpstate;		/* state of fp registers on machine */ 
	void	(*intr)(ulong, ulong);	/* !!Compatability with mips!! */ 
1990/1226    
	void	(*intr)(ulong, ulong);	/* !!Compatibility with mips!! */ 
1990/1223    
	ulong	cause;			/*	... */ 
	ulong	pc;			/*	... */ 
1990/1226    
	char	pidhere[NCONTEXT];	/* is this tlbpid possibly in this mmu? */ 
	int	lastpid;		/* last pid allocated on this machine */ 
	Proc	*pidproc[NCONTEXT];	/* process that owns this pid on this mach */ 
1990/1223    
	int	stack[1]; 
}; 
 
1990/1223/sys/src/9/ss/dat.h:323,3291990/1226/sys/src/9/ss/dat.h:325,330
1990/1223    
	char	text[NAMELEN]; 
	Proc	*rnext;			/* next process in run queue */ 
	Proc	*qnext;			/* next process on queue for a QLock */ 
	QLock	*qlock;			/* address of qlock being queued for DEBUG */ 
	int	state; 
	int	spin;			/* spinning instead of unscheduled */ 
	Page	*upage;			/* BUG: should be unlinked from page list */ 
1990/1223/sys/src/9/ss/dat.h:347,3531990/1226/sys/src/9/ss/dat.h:348,354
1990/1223    
	int	wokeup;			/* whether sleep was interrupted */ 
	ulong	pc;			/* DEBUG only */ 
	int	kp;			/* true if a kernel process */ 
	int	pidonmach[1];		/* !!Compatability with mips!! */ 
1990/1226    
	int	pidonmach[MAXMACH];	/* TLB pid on each mmu */ 
1990/1223    
}; 
 
struct MMU 
1990/1223/sys/src/9/ss/dat.h:511,5181990/1226/sys/src/9/ss/dat.h:512,519
1990/1223    
 
#define	PRINTSIZE	256 
 
extern register Mach	*m; 
extern register User	*u; 
1990/1226    
extern register Mach	*m;		/* R6 */ 
extern register User	*u;		/* R5 */ 
1990/1223    
 
/* 
 * Process states 
1990/1223/sys/src/9/ss/dat.h:609,6131990/1226/sys/src/9/ss/dat.h:610,614
1990/1223    
/* 
 *  parameters for sysproc.c 
 */ 
#define AOUT_MAGIC	A_MAGIC 
1990/1226    
#define AOUT_MAGIC	K_MAGIC 
1990/1223    
#define ENTRYOFFSET	0 


source code copyright © 1990-2005 Lucent Technologies; see license
Plan 9 distribution
comments to russ cox (rsc@swtch.com)