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

1992/1130/power/trap.c (diff list | history)

1992/1129/sys/src/9/power/trap.c:103,1111992/1130/sys/src/9/power/trap.c:103,112 (short | long | prev | next)
1990/0227    
		if(u == 0) 
1990/0802    
			panic("fault u==0 pc %lux addr %lux", ur->pc, ur->badvaddr); 
1992/1129    
 
1990/0227    
		spllo(); 
		x = u->p->insyscall; 
		u->p->insyscall = 1; 
1992/1130    
 
		spllo(); 
1990/1212    
		faultmips(ur, user, ecode); 
1990/0227    
		u->p->insyscall = x; 
		break; 
1992/1129/sys/src/9/power/trap.c:165,1761992/1130/sys/src/9/power/trap.c:166,176
1990/0227    
void 
1991/0209    
intr(Ureg *ur) 
1990/0227    
{ 
1991/0212    
	int i, any; 
1991/0316    
	uchar xxx; 
1991/0212    
	uchar pend, npend; 
1990/0227    
	long v; 
1992/1130    
	int i, any; 
1991/0209    
	ulong cause; 
1991/0219    
	static int bogies; 
1992/1130    
	uchar pend, npend, xxx; 
1990/0227    
 
1991/0425    
	m->intr++; 
1991/0209    
	cause = ur->cause&(INTR5|INTR4|INTR3|INTR2|INTR1); 
1992/1129/sys/src/9/power/trap.c:450,4561992/1130/sys/src/9/power/trap.c:450,456
1991/0503    
	Ureg *nur; 
 
	nur = u->ureg; 
1992/1129    
	if(nur->status!=u->svstatus) { 
1992/1130    
	if(nur->status != u->svstatus) { 
1991/0717    
		pprint("bad noted ureg status %lux\n", nur->status); 
1991/0503    
		pexit("Suicide", 0); 
	} 
1992/1129/sys/src/9/power/trap.c:505,5161992/1130/sys/src/9/power/trap.c:505,512
1990/0227    
	ur = aur; 
1992/0805    
	p->pc = ur->pc; 
1991/1110    
	u->dbgreg = aur; 
1990/0901    
	ur->cause = 15<<2;		/* for debugging: system call is undef 15; 
1990/0227    
	/* 
	 * since the system call interface does not 
1991/0314    
	 * guarantee anything about registers, we can 
	 * smash them.  but we must save fpstatus. 
1990/0227    
	 */ 
1992/1130    
	ur->cause = 15<<2;		/* for debugging: system call is undef 15; */ 
 
1992/0407    
	if(p->fpstate == FPactive) { 
1992/1129    
		if((ur->status&CU1) == 0) 
			panic("syscall: FPactive but no CU1"); 
1992/1129/sys/src/9/power/trap.c:525,5321992/1130/sys/src/9/power/trap.c:521,528
1992/0803    
		procctl(p); 
 
1992/06271    
	u->scallnr = ur->r1; 
1990/0227    
	sp = ur->sp; 
	u->nerrlab = 0; 
1992/1130    
	sp = ur->sp; 
1990/0227    
	ret = -1; 
1990/0511    
	if(!waserror()){ 
1992/06271    
		if(u->scallnr >= sizeof systab/sizeof systab[0]) { 


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