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

2002/0116/alphapc/main.c (diff list | history)

2002/0112/sys/src/9/alphapc/main.c:233,2502002/0116/sys/src/9/alphapc/main.c:233,240 (short | long | prev | next)
Remove comment about fpsave. Call mmupark to switch to per-CPU page tables.
rsc Fri Mar 4 12:44:25 2005
1999/0515    
	if(p->fpstate == FPactive){ 
		if(p->state == Moribund) 
			fpenab(0); 
		else{ 
			/* 
			 * Fpsave() stores without handling pending 
			 * unmasked exeptions. Postnote() can't be called 
			 * here as sleep() already has up->rlock, so 
			 * the handling of pending exceptions is delayed 
			 * until the process runs again and generates an 
			 * emulation fault to activate the FPU. 
			 */ 
2002/0116    
		else 
1999/0515    
			savefpregs(&up->fpsave); 
//print("PS=%lux+", up->fpsave.fpstatus); 
		} 
		p->fpstate = FPinactive; 
	} 
 
2002/0112/sys/src/9/alphapc/main.c:256,2612002/0116/sys/src/9/alphapc/main.c:246,252
1999/0515    
	 * When this processor eventually has to get an entry from the 
	 * trashed page tables it will crash. 
	 */ 
2002/0116    
	mmupark(); 
1999/0415    
} 
2002/0109    
 
2002/0112    
/* still to do */ 


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