summaryrefslogtreecommitdiff
path: root/sys/arch/hppa/hppa/intr.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/hppa/hppa/intr.c')
-rw-r--r--sys/arch/hppa/hppa/intr.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/arch/hppa/hppa/intr.c b/sys/arch/hppa/hppa/intr.c
index 83af9991634..7f4ba5f7a9e 100644
--- a/sys/arch/hppa/hppa/intr.c
+++ b/sys/arch/hppa/hppa/intr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: intr.c,v 1.25 2008/05/19 18:42:12 miod Exp $ */
+/* $OpenBSD: intr.c,v 1.26 2009/07/30 14:50:20 kettenis Exp $ */
/*
* Copyright (c) 2002-2004 Michael Shalayeff
@@ -284,8 +284,11 @@ cpu_intr(void *v)
{
struct trapframe *frame = v;
u_long mask;
- int s = cpl;
+ int s;
+ mtctl(0, CR_EIEM);
+
+ s = cpl;
if (cpu_inintr++)
frame->tf_flags |= TFF_INTR;
@@ -321,6 +324,8 @@ cpu_intr(void *v)
}
cpu_inintr--;
cpl = s;
+
+ mtctl(frame->tf_eiem, CR_EIEM);
}