diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2000-07-04 10:52:29 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2000-07-04 10:52:29 +0000 |
commit | 91f75622cba1c2d70922523653e5085e197abf32 (patch) | |
tree | 90d59b495b143e04c913d9687aba0ab6f8497fcc | |
parent | a9f7725c2b75dac91b92ed1da3a3199224962261 (diff) |
Cleaner spl handling in userret.
-rw-r--r-- | sys/arch/sparc/sparc/trap.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/sparc/sparc/trap.c b/sys/arch/sparc/sparc/trap.c index fe67507ebd6..f9105049e4c 100644 --- a/sys/arch/sparc/sparc/trap.c +++ b/sys/arch/sparc/sparc/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.24 2000/06/08 22:25:22 niklas Exp $ */ +/* $OpenBSD: trap.c,v 1.25 2000/07/04 10:52:28 art Exp $ */ /* $NetBSD: trap.c,v 1.58 1997/09/12 08:55:01 pk Exp $ */ /* @@ -217,7 +217,7 @@ userret(p, pc, oticks) int pc; u_quad_t oticks; { - int sig; + int sig, s; /* take pending signals */ while ((sig = CURSIG(p)) != 0) @@ -239,11 +239,11 @@ userret(p, pc, oticks) * but before we switched, we might not be on the queue * indicated by our priority. */ - (void) splstatclock(); + s = splstatclock(); setrunqueue(p); p->p_stats->p_ru.ru_nivcsw++; mi_switch(); - (void) spl0(); + splx(s); while ((sig = CURSIG(p)) != 0) postsig(sig); } |