From 8ee69c320fa06fb8ba9e6255030ece368c74308b Mon Sep 17 00:00:00 2001 From: deraadt Date: Thu, 1 Feb 2018 07:41:33 +0000 Subject: [PATCH] handle ramdisk not containing ddb, so that builds can proceed --- sys/arch/arm64/dev/bcm2836_intr.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sys/arch/arm64/dev/bcm2836_intr.c b/sys/arch/arm64/dev/bcm2836_intr.c index 5d1198ca5c3..c2275960f4c 100644 --- a/sys/arch/arm64/dev/bcm2836_intr.c +++ b/sys/arch/arm64/dev/bcm2836_intr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bcm2836_intr.c,v 1.5 2018/01/31 10:52:12 kettenis Exp $ */ +/* $OpenBSD: bcm2836_intr.c,v 1.6 2018/02/01 07:41:33 deraadt Exp $ */ /* * Copyright (c) 2007,2009 Dale Rahn * Copyright (c) 2015 Patrick Wildt @@ -457,7 +457,9 @@ bcm_intc_call_handler(int irq, void *frame) static int cnt = 0; if ((cnt++ % 100) == 0) { printf("irq %d fired * _100\n", irq); +#ifdef DDB db_enter(); +#endif } } #endif @@ -639,7 +641,9 @@ bcm_intc_handle_ipi(void) switch (ipi) { case ARM_IPI_DDB: /* XXX */ +#ifdef DDB db_enter(); +#endif break; case ARM_IPI_NOP: break; -- 2.20.1