From b0a57f94a42b1b177dab551243d9e0dec4a70379 Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Fri, 24 Jan 1992 00:00:00 +0000 Subject: [PATCH] Plan 9 from Bell Labs 1992-01-24 --- gnot/trap.c | 6 ++++-- pc/trap.c | 6 ++++-- port/devkprof.c | 2 +- power/trap.c | 6 ++++-- ss/trap.c | 6 ++++-- 5 files changed, 17 insertions(+), 9 deletions(-) diff --git a/gnot/trap.c b/gnot/trap.c index 2a5d2d747d93a0ad8ee600f086c3d79031205af9..40bc63c28c40cd9d220648d6a9a99a4a21d2bbb2 100644 --- a/gnot/trap.c +++ b/gnot/trap.c @@ -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; } /* diff --git a/pc/trap.c b/pc/trap.c index 891baef9a9797e6946e01c5c0bb6f6a822ac573c..3fbba6a22a576c23014a0a38a9c3fb8a5bdddcc1 100644 --- a/pc/trap.c +++ b/pc/trap.c @@ -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; } /* diff --git a/port/devkprof.c b/port/devkprof.c index 82191a187833c6afd63896f273d2555f6b6b45d5..4497e9f1c29088d224739175b8480a89bf6d842e 100644 --- a/port/devkprof.c +++ b/port/devkprof.c @@ -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) diff --git a/power/trap.c b/power/trap.c index 7b28dcdad94a88f80e3343072f38684a212986c3..dd0b58c34e900cfb9e9f8b8fed7eb5d5f8754ceb 100644 --- a/power/trap.c +++ b/power/trap.c @@ -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; } /* diff --git a/ss/trap.c b/ss/trap.c index afcbc181594e1278e3a040fac46fd59cc6a3af0f..f33f8dacffc4561dadae39db062ba5357a3aa082 100644 --- a/ss/trap.c +++ b/ss/trap.c @@ -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; } /*