summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPer Fogelstrom <pefo@cvs.openbsd.org>2004-09-27 18:52:02 +0000
committerPer Fogelstrom <pefo@cvs.openbsd.org>2004-09-27 18:52:02 +0000
commit563b254b6af0261ec3cf9d1fab15537507f340b7 (patch)
treefb6af58c811c73f40d7265748c655a1d1a2acc02
parentd2aac574548451bc6ca609a97ad7bbc64f0df406 (diff)
comment and clean
-rw-r--r--sys/arch/sgi/localbus/macectrl.S11
1 files changed, 8 insertions, 3 deletions
diff --git a/sys/arch/sgi/localbus/macectrl.S b/sys/arch/sgi/localbus/macectrl.S
index 97103b87111..8dba3ddf70d 100644
--- a/sys/arch/sgi/localbus/macectrl.S
+++ b/sys/arch/sgi/localbus/macectrl.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: macectrl.S,v 1.4 2004/09/10 08:58:27 pefo Exp $ */
+/* $OpenBSD: macectrl.S,v 1.5 2004/09/27 18:52:01 pefo Exp $ */
/*
* Copyright (c) 2004 Opsycon AB (www.opsycon.se / www.opsycon.com)
@@ -36,11 +36,16 @@
.set mips3
.set noreorder # Noreorder is default style!
+/*
+ * Update the HW interrupt mask anding the argument with the
+ * interrupt mask for enabled interrupts. Only enabled interrupt
+ * sources can be unmasked.
+ */
.globl hw_setintrmask
LEAF(hw_setintrmask, 0)
- lw v0, mace_intem
PTR_L v1, hwmask_addr
- nor a0, zero, a0
+ lw v0, mace_intem
+ not a0, a0
beqz v1, 1f # addr not set, skip.
and v0, a0
jr ra