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

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

1990/08163/sys/src/9/gnot/trap.c:94,1001990/0905/sys/src/9/gnot/trap.c:94,100 (short | long | prev | next)
1990/03091    
		sprint(buf, "pc=%lux trap: %s", ur->pc, excname(ur->vo)); 
		postnote(u->p, 1, buf, NDebug); 
	}else{ 
		print("kernel trap vo=%ux pc=%lux\n", ur->vo, ur->pc); 
1990/0905    
		print("kernel trap vo=0x%ux pc=%lux\n", ur->vo, ur->pc); 
1990/03091    
		dumpregs(ur); 
		exit(); 
	} 
1990/08163/sys/src/9/gnot/trap.c:243,2491990/0905/sys/src/9/gnot/trap.c:243,248
1990/03091    
	ulong r0; 
	Ureg *ur; 
1990/0513    
	char *msg; 
1990/08163    
	long fpnull = 0; 
1990/03091    
 
	u->p->insyscall = 1; 
	ur = aur; 
1990/08163/sys/src/9/gnot/trap.c:258,2641990/0905/sys/src/9/gnot/trap.c:257,263
1990/08163    
	splhi(); 
	fpsave(&u->fpsave); 
	if(u->p->fpstate==FPactive || u->fpsave.type){ 
		fprestore((FPsave*)&fpnull); 
1990/0905    
		fprestore(&initfp); 
1990/08163    
		u->p->fpstate = FPinit; 
		m->fpstate = FPinit; 
1990/03091    
	} 


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