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

1991/0115/ss/trap.c (diff list | history)

1991/0112/sys/src/9/ss/trap.c:74,791991/0115/sys/src/9/ss/trap.c:74,81 (short | long | prev | next)
1990/1231    
		lanceintr(); 
1990/1227    
		return; 
	} 
1991/0115    
	if(tbr == 8)				/* floating point exception */ 
		clearfpintr(); 
1990/1227    
 
1990/1226    
	user = !(ur->psr&PSRPSUPER); 
 
1991/0112/sys/src/9/ss/trap.c:81,861991/0115/sys/src/9/ss/trap.c:83,90
1990/1223    
		u->p->pc = ur->pc;		/* BUG */ 
	if(user){ 
1990/1227    
		sprint(buf, "sys: trap: pc=0x%lux %s", ur->pc, excname(tbr)); 
1991/0115    
		if(tbr == 8) 
			sprint(buf+strlen(buf), " FSR %lux", getfsr()); 
1990/1223    
		postnote(u->p, 1, buf, NDebug); 
	}else{ 
1990/1227    
		print("kernel trap: %s pc=0x%lux\n", excname(tbr), ur->pc); 
1991/0112/sys/src/9/ss/trap.c:328,3341991/0115/sys/src/9/ss/trap.c:332,338
1990/1223    
void 
error(int code) 
{ 
	strncpy(u->error, errstrtab[code], NAMELEN); 
1991/0115    
	strncpy(u->error, errstrtab[code], ERRLEN); 
1990/1223    
	nexterror(); 
} 
 


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