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

1992/0807/ss/trap.c (diff list | history)

1992/0806/sys/src/9/ss/trap.c:109,1161992/0807/sys/src/9/ss/trap.c:109,116 (short | long | prev | next)
Created.
rsc Fri Mar 4 12:44:25 2005
1991/01151    
	user = !(ur->psr&PSRPSUPER); 
	tbr = (ur->tbr&0xFFF)>>4; 
1992/0801    
	/* SS2 bug: flush cache line holding trap entry in table */ 
	if(conf.ss2) 
1992/0806    
		putsysspace(CACHETAGS+((TRAPS+16*tbr)&(VACSIZE-1)), 0); 
1992/0807    
	if(conf.ss2cachebug) 
		putsysspace(CACHETAGS+((TRAPS+16*tbr)&(conf.vacsize-1)), 0); 
1991/01151    
	if(tbr > 16){			/* interrupt */ 
		if(u && u->p->state==Running){ 
1992/0802    
			/* if active, FPop at head of Q is probably an excep */ 
1992/0806/sys/src/9/ss/trap.c:133,1381992/0807/sys/src/9/ss/trap.c:133,141
1991/01151    
		case 5:				/* lance */ 
			lanceintr(); 
			break; 
1992/0807    
		case 3:				/* lance */ 
			scsiintr(); 
			break; 
1991/01151    
		default: 
			goto Error; 
		} 
1992/0806/sys/src/9/ss/trap.c:521,5271992/0807/sys/src/9/ss/trap.c:524,530
1992/0801    
 
	/* SS2 bug: flush cache line holding trap entry in table */ 
	if(conf.ss2) 
1992/0806    
		putsysspace(CACHETAGS+((TRAPS+16*128)&(VACSIZE-1)), 0); 
1992/0807    
		putsysspace(CACHETAGS+((TRAPS+16*128)&(conf.vacsize-1)), 0); 
1991/01151    
 
	if(u->p->fpstate == FPactive) { 
1992/0727    
		fpquiet(); 


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