diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2011-11-09 00:17:16 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2011-11-09 00:17:16 +0000 |
commit | 830140ea20df6405303df5157ee9d493f5664e43 (patch) | |
tree | f4163c6b613f670635aea007fdfeabe50bc007db /sys/arch | |
parent | a2cbbf1c48a2df3486f3bb6f599a556c6fca68e4 (diff) |
Use the new priority as the priority to check against,
not the current (not yet lowered) priority. problem spotted by miod.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/beagle/dev/ampintc.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/beagle/dev/ampintc.c b/sys/arch/beagle/dev/ampintc.c index 6eaf310511c..f3c1aa3c465 100644 --- a/sys/arch/beagle/dev/ampintc.c +++ b/sys/arch/beagle/dev/ampintc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ampintc.c,v 1.5 2011/11/09 00:15:06 drahn Exp $ */ +/* $OpenBSD: ampintc.c,v 1.6 2011/11/09 00:17:15 drahn Exp $ */ /* * Copyright (c) 2007,2009,2011 Dale Rahn <drahn@openbsd.org> * @@ -399,8 +399,9 @@ ampintc_splx(int new) { struct cpu_info *ci = curcpu(); - if (ci->ci_ipending & arm_smask[ci->ci_cpl]) - arm_do_pending_intr(ci->ci_cpl); + if (ci->ci_ipending & arm_smask[new]) + arm_do_pending_intr(new); + ampintc_setipl(new); } |