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

2000/1013/bitsy/dat.h (diff list | history)

2000/1013/sys/src/9/bitsy/dat.h:99,1122000/1014/sys/src/9/bitsy/dat.h:99,107 (short | long | prev | next)
2000/0831    
	int	machno;			/* physical id of processor */ 
	ulong	splpc;			/* pc of last caller to splhi */ 
 
	ulong*	pdb;			/* page directory base for this processor (va) */ 
                 
	Proc*	proc;			/* current process on this processor */ 
	Proc*	externup;		/* extern register Proc *up */ 
 
	Page*	pdbpool; 
	int	pdbcnt; 
                 
	ulong	ticks;			/* of the clock since boot time */ 
	Label	sched;			/* scheduler wakeup */ 
	Lock	alarmlock;		/* access to alarm list */ 
2000/1013/sys/src/9/bitsy/dat.h:172,1862000/1014/sys/src/9/bitsy/dat.h:167,173
2000/0831    
	int	ispanic;		/* shutdown in response to a panic */ 
}active; 
 
/* 
2000/0929    
 *  Each processor sees its own Mach structure at address MACHADDR. 
 *  However, the Mach structures must also be available via the per-processor 
 *  MMU information array machp, mainly for disambiguation and access to 
 *  the clock which is only maintained by the bootstrap processor (0). 
2000/0831    
 */ 
Mach* machp[MAXMACH]; 
	                 
#define	MACHP(n)	(machp[n]) 
2000/1014    
#define	MACHP(n)	((Mach*)MACHADDR) 
2000/0831    
 
extern Mach	*m; 
#define up	(((Mach*)MACHADDR)->externup) 


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