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

1990/11211/gnot/trap.c (diff list | history)

1990/11211/sys/src/9/gnot/trap.c:91,1001990/1127/sys/src/9/gnot/trap.c:91,100 (short | long | prev | next)
1990/03091    
	if(u) 
		u->p->pc = ur->pc;		/* BUG */ 
	if(user){ 
1990/1110    
		sprint(buf, "sys: trap: %s", ur->pc, excname(ur->vo)); 
1990/1127    
		sprint(buf, "sys: trap: pc=0x%lux %s", ur->pc, excname(ur->vo)); 
1990/03091    
		postnote(u->p, 1, buf, NDebug); 
	}else{ 
1990/0905    
		print("kernel trap vo=0x%ux pc=%lux\n", ur->vo, ur->pc); 
1990/1127    
		print("kernel trap vo=0x%ux pc=0x%lux\n", ur->vo, ur->pc); 
1990/03091    
		dumpregs(ur); 
		exit(); 
	} 


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