summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2015-11-05 19:54:18 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2015-11-05 19:54:18 +0000
commit6179f955223c5e6261e6b01111a08e45fb9661fe (patch)
tree933a598f3fe744a5eb776c8596c8a5e702ec32e4 /sys
parent4c64afcbe21f0a75f61fad9b003ebd0dcf01cf95 (diff)
Fix build with DEBUG_INTC defined; from Daniel Bolgheroni on tech@
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/arm/cortex/ampintc.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/sys/arch/arm/cortex/ampintc.c b/sys/arch/arm/cortex/ampintc.c
index 64c53cb419d..fb8daabc5a2 100644
--- a/sys/arch/arm/cortex/ampintc.c
+++ b/sys/arch/arm/cortex/ampintc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ampintc.c,v 1.7 2015/07/15 21:09:40 jsg Exp $ */
+/* $OpenBSD: ampintc.c,v 1.8 2015/11/05 19:54:17 miod Exp $ */
/*
* Copyright (c) 2007,2009,2011 Dale Rahn <drahn@openbsd.org>
*
@@ -386,13 +386,6 @@ ampintc_calc_mask(void)
if (max == IPL_NONE)
min = IPL_NONE;
-#ifdef DEBUG_INTC
- if (min != IPL_NONE) {
- printf("irq %d to block at %d %d reg %d bit %d\n",
- irq, max, min, AMPINTC_IRQ_TO_REG(irq),
- AMPINTC_IRQ_TO_REGi(irq));
- }
-#endif
/* Enable interrupts at lower levels, clear -> enable */
/* Set interrupt priority/enable */
if (min != IPL_NONE) {
@@ -494,15 +487,16 @@ ampintc_irq_handler(void *frame)
int irq, pri, s;
iack_val = ampintc_iack();
-//#define DEBUG_INTC
#ifdef DEBUG_INTC
if (iack_val != 27)
- printf("irq %d fired\n", iack_val);
+ printf("irq %d fired\n", iack_val);
else {
static int cnt = 0;
if ((cnt++ % 100) == 0) {
printf("irq %d fired * _100\n", iack_val);
+#ifdef DDB
Debugger();
+#endif
}
}