diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2003-06-23 18:24:33 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2003-06-23 18:24:33 +0000 |
commit | 7484afdb022ff3fd52003d8ec4746710906cbb97 (patch) | |
tree | b5ad310c344387dab510507f401d1b6e459b1cb4 /sys/arch | |
parent | 43731809f3ee50dbe79fd3917a748fddc44a3b17 (diff) |
strange things happen if we ack latched lasi ints on older machines
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/hppa/hppa/intr.c | 5 |
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; |