summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormickey <mickey@openbsd.org>2007-03-01 15:00:57 +0000
committermickey <mickey@openbsd.org>2007-03-01 15:00:57 +0000
commitef7f02c4048046917fa28985c8ebe6fc7403e31d (patch)
treec7baa15838ff67cb3a089963b614e705332890f9
parenttypos, from raga (raga at comcast dot com) (diff)
downloadwireguard-openbsd-ef7f02c4048046917fa28985c8ebe6fc7403e31d.tar.xz
wireguard-openbsd-ef7f02c4048046917fa28985c8ebe6fc7403e31d.zip
proper softint treatment (that get missed otherwise); found and tested by mpf@ on pppoe; drahn@ ok
-rw-r--r--sys/arch/macppc/dev/macintr.c4
-rw-r--r--sys/arch/macppc/dev/openpic.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/macppc/dev/macintr.c b/sys/arch/macppc/dev/macintr.c
index 322c8c11d05..0d3848b5dde 100644
--- a/sys/arch/macppc/dev/macintr.c
+++ b/sys/arch/macppc/dev/macintr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: macintr.c,v 1.30 2006/03/12 02:49:50 brad Exp $ */
+/* $OpenBSD: macintr.c,v 1.31 2007/03/01 15:00:57 mickey Exp $ */
/*-
* Copyright (c) 1995 Per Fogelstrom
@@ -589,7 +589,7 @@ mac_intr_do_pending_int()
ipending &= ~SINT_TTY;
softtty();
}
- } while (ipending & (SINT_NET|SINT_CLOCK|SINT_TTY) & ~cpl);
+ } while (ipending & (SINT_NET|SINT_CLOCK|SINT_TTY) & ~pcpl);
ipending &= pcpl;
cpl = pcpl; /* Don't use splx... we are here already! */
ppc_intr_enable(s);
diff --git a/sys/arch/macppc/dev/openpic.c b/sys/arch/macppc/dev/openpic.c
index fbac0e07a9d..95d73abdd3b 100644
--- a/sys/arch/macppc/dev/openpic.c
+++ b/sys/arch/macppc/dev/openpic.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: openpic.c,v 1.35 2006/06/19 22:42:33 miod Exp $ */
+/* $OpenBSD: openpic.c,v 1.36 2007/03/01 15:00:57 mickey Exp $ */
/*-
* Copyright (c) 1995 Per Fogelstrom
@@ -503,7 +503,7 @@ openpic_do_pending_int()
ipending &= ~SINT_TTY;
softtty();
}
- } while (ipending & (SINT_NET|SINT_CLOCK|SINT_TTY) & ~cpl);
+ } while (ipending & (SINT_NET|SINT_CLOCK|SINT_TTY) & ~pcpl);
ipending &= pcpl;
cpl = pcpl; /* Don't use splx... we are here already! */
ppc_intr_enable(s);