From ca3decda2795030c25ef6c94a1b2462b3ab210bb Mon Sep 17 00:00:00 2001 From: kettenis Date: Wed, 21 Apr 2021 18:11:17 +0000 Subject: [PATCH] Turn panic for unknown event type into a printf and return. ok patrick@ --- sys/arch/arm64/dev/aplintc.c | 8 +++++--- 1 file 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); -- 2.20.1