summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormickey <mickey@openbsd.org>2003-06-23 18:24:32 +0000
committermickey <mickey@openbsd.org>2003-06-23 18:24:32 +0000
commit8b64df6fdfc1f94f2dc520c06e761c1891174631 (patch)
tree1d1cb0380719bd84d83602d309e2bc715288f2a4
parentand we have a copyright (TNF) (diff)
downloadwireguard-openbsd-8b64df6fdfc1f94f2dc520c06e761c1891174631.tar.xz
wireguard-openbsd-8b64df6fdfc1f94f2dc520c06e761c1891174631.zip
strange things happen if we ack latched lasi ints on older machines
-rw-r--r--sys/arch/hppa/hppa/intr.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/hppa/hppa/intr.c b/sys/arch/hppa/hppa/intr.c
index 0ce77b35eb0..de854ab5590 100644
--- a/sys/arch/hppa/hppa/intr.c
+++ b/sys/arch/hppa/hppa/intr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: intr.c,v 1.8 2003/06/19 03:05:21 mickey Exp $ */
+/* $OpenBSD: intr.c,v 1.9 2003/06/23 18:24:32 mickey Exp $ */
/*
* Copyright (c) 2002 Michael Shalayeff
@@ -143,7 +143,8 @@ cpu_intr_init(void)
mtctl(cpu_mask, CR_EIEM);
/* ack the unwanted interrupts */
- mtctl(cpu_mask, CR_EIRR);
+ mfctl(CR_EIRR, mask);
+ mtctl(mask & (1 << 31), CR_EIRR);
/* in spl*() we trust, clock is started in initclocks() */
kpsw |= PSL_I;