M gnot/trap.c => gnot/trap.c +4 -2
@@ 158,7 158,7 @@ dumpregs(Ureg *ur)
int
notify(Ureg *ur)
{
- int l;
+ int l, sent;
ulong s, sp;
Note *n;
@@ 184,9 184,11 @@ notify(Ureg *ur)
qunlock(&u->p->debug);
pexit(n->msg, n->flag!=NDebug);
}
+ sent = 0;
if(!u->notified){
if(!u->notify)
goto Die;
+ sent = 1;
u->svvo = ur->vo;
u->svsr = ur->sr;
sp = ur->usp;
@@ 217,7 219,7 @@ notify(Ureg *ur)
}
qunlock(&u->p->debug);
splx(s);
- return 1;
+ return sent;
}
/*
M pc/trap.c => pc/trap.c +4 -2
@@ 360,7 360,7 @@ syscall(Ureg *ur)
int
notify(Ureg *ur)
{
- int l;
+ int l, sent;
ulong s, sp;
Note *n;
@@ 386,9 386,11 @@ notify(Ureg *ur)
qunlock(&u->p->debug);
pexit(n->msg, n->flag!=NDebug);
}
+ sent = 0;
if(!u->notified){
if(!u->notify)
goto Die;
+ sent = 1;
u->svcs = ur->cs;
u->svss = ur->ss;
u->svflags = ur->flags;
@@ 419,7 421,7 @@ notify(Ureg *ur)
}
qunlock(&u->p->debug);
splx(s);
- return 1;
+ return sent;
}
/*
M port/devkprof.c => port/devkprof.c +1 -1
@@ 184,7 184,7 @@ kproftimer(ulong pc)
if(kprof.time == 0)
return;
/*
- * if the pc is coming out of slplo pr splx,
+ * if the pc is coming out of spllo or splx,
* use the pc saved when we went splhi.
*/
if(pc>=(ulong)spllo && pc<=(ulong)spldone)
M power/trap.c => power/trap.c +4 -2
@@ 367,7 367,7 @@ dumpregs(Ureg *ur)
int
notify(Ureg *ur)
{
- int l;
+ int l, sent;
ulong s, sp;
Note *n;
@@ 393,9 393,11 @@ notify(Ureg *ur)
qunlock(&u->p->debug);
pexit(n->msg, n->flag!=NDebug);
}
+ sent = 0;
if(!u->notified){
if(!u->notify)
goto Die;
+ sent = 1;
u->svstatus = ur->status;
sp = ur->usp;
sp -= sizeof(Ureg);
@@ 424,7 426,7 @@ notify(Ureg *ur)
}
qunlock(&u->p->debug);
splx(s);
- return 1;
+ return sent;
}
/*
M ss/trap.c => ss/trap.c +4 -2
@@ 228,7 228,7 @@ dumpregs(Ureg *ur)
int
notify(Ureg *ur)
{
- int l;
+ int l, sent;
ulong s, sp;
Note *n;
@@ 254,9 254,11 @@ notify(Ureg *ur)
qunlock(&u->p->debug);
pexit(n->msg, n->flag!=NDebug);
}
+ sent = 0;
if(!u->notified){
if(!u->notify)
goto Die;
+ sent = 1;
u->svpsr = ur->psr;
sp = ur->usp;
sp -= sizeof(Ureg);
@@ 287,7 289,7 @@ notify(Ureg *ur)
}
qunlock(&u->p->debug);
splx(s);
- return 1;
+ return sent;
}
/*