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

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

1991/0718/sys/src/9/ss/trap.c:235,2401991/0722/sys/src/9/ss/trap.c:235,248 (short | long | prev | next)
1991/0717    
		u->svpsr = ur->psr; 
1990/1223    
		sp = ur->usp; 
		sp -= sizeof(Ureg); 
1991/0722    
		if(waserror()){ 
			pprint("suicide: trap in notify\n"); 
			unlock(&u->p->debug); 
			pexit("Suicide", 0); 
		} 
		validaddr((ulong)u->notify, 1, 0); 
		validaddr(sp-ERRLEN-3*BY2WD, sizeof(Ureg)+ERRLEN-3*BY2WD, 0); 
		poperror(); 
1990/1223    
		u->ureg = (void*)sp; 
1991/0318    
		memmove((Ureg*)sp, ur, sizeof(Ureg)); 
1990/1223    
		sp -= ERRLEN; 


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