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

1993/1116/pc/trap.c (diff list | history)

1993/1115/sys/src/9/pc/trap.c:234,2391993/1116/sys/src/9/pc/trap.c:234,240 (short | long | prev | next)
1991/0731    
	int c; 
1991/1113    
	char buf[ERRLEN]; 
1993/0217    
	Handler *h; 
1993/1116    
	static int iret_traps; 
1991/0703    
 
1991/0731    
	v = ur->trap; 
 
1993/1115/sys/src/9/pc/trap.c:240,2451993/1116/sys/src/9/pc/trap.c:241,252
1993/1113    
	user = (ur->cs&0xffff) == UESEL; 
1991/1112    
	if(user) 
1993/0915    
		up->dbgreg = ur; 
1993/1116    
	else if(ur->pc <= (ulong)end && *(uchar*)ur->pc == 0xCF) { 
		if(iret_traps++ > 10) 
			panic("iret trap"); 
		return; 
	} 
	iret_traps = 0; 
1991/1112    
 
1991/0709    
	/* 
	 *  tell the 8259 that we're done with the 


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