summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2021-04-21 18:11:18 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2021-04-21 18:11:18 +0000
commit247390cd5e4086723f7bd857d0f00d1a71da740f (patch)
treeea1287a0e3444f47cd0435669f747d35b9414d44
parenteae14e1a60b2f61bde9c0220fdcc7d1bd4bb9a75 (diff)
Turn panic for unknown event type into a printf and return.
ok patrick@
-rw-r--r--sys/arch/arm64/dev/aplintc.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/arch/arm64/dev/aplintc.c b/sys/arch/arm64/dev/aplintc.c
index b7758ec6619..edaa6099f7d 100644
--- a/sys/arch/arm64/dev/aplintc.c
+++ b/sys/arch/arm64/dev/aplintc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aplintc.c,v 1.2 2021/03/11 10:40:22 kettenis Exp $ */
+/* $OpenBSD: aplintc.c,v 1.3 2021/04/21 18:11:17 kettenis Exp $ */
/*
* Copyright (c) 2021 Mark Kettenis
*
@@ -212,8 +212,10 @@ aplintc_irq_handler(void *frame)
return;
}
- if (type != AIC_EVENT_TYPE_IRQ)
- panic("%s: unexpected event type %d\n", __func__, type);
+ if (type != AIC_EVENT_TYPE_IRQ) {
+ printf("%s: unexpected event type %d\n", __func__, type);
+ return;
+ }
if (irq >= sc->sc_nirq)
panic("%s: unexpected irq %d\n", __func__, irq);