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

1991/0719/gnot/fault68020.c (diff list | history)

1991/0710/sys/src/9/gnot/fault68020.c:47,521991/0719/sys/src/9/gnot/fault68020.c:47,53 (short | long | prev | next)
1990/1212    
{ 
1990/1214    
	ulong addr, badvaddr; 
	int user, read, insyscall; 
1991/0719    
	char buf[ERRLEN]; 
1990/1212    
 
	if(u == 0){ 
		dumpregs(ur); 
1991/0710/sys/src/9/gnot/fault68020.c:88,961991/0719/sys/src/9/gnot/fault68020.c:89,99
1990/1212    
 
	if(fault(addr, read) < 0){ 
		if(user){ 
			pprint("user %s error addr=0x%lux\n", read? "read" : "write", badvaddr); 
1991/0710    
			pprint("status=0x%lux pc=0x%lux sp=0x%lux\n", ur->sr, ur->pc, ur->usp); 
1990/1212    
			pexit("Suicide", 0); 
1991/0719    
			sprint(buf, "sys: fault %s pc=0x%lux addr=0x%lux", 
				read? "read" : "write", ur->pc, badvaddr); 
			postnote(u->p, 1, buf, NDebug); 
			notify(ur); 
			return; 
1990/1212    
		} 
		u->p->state = MMUing; 
		dumpregs(ur); 


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