From 58e2a93c7c002da62d144238cfbb41e3a4629a01 Mon Sep 17 00:00:00 2001 From: jsg Date: Mon, 29 Apr 2024 12:42:06 +0000 Subject: [PATCH] remove unused intc_intr_bootstrap() --- sys/arch/armv7/omap/intc.c | 14 +------------- sys/arch/armv7/omap/intc.h | 12 +----------- 2 files changed, 2 insertions(+), 24 deletions(-) diff --git a/sys/arch/armv7/omap/intc.c b/sys/arch/armv7/omap/intc.c index 4c4fe605579..507a4a85f96 100644 --- a/sys/arch/armv7/omap/intc.c +++ b/sys/arch/armv7/omap/intc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: intc.c,v 1.13 2024/04/29 12:33:17 jsg Exp $ */ +/* $OpenBSD: intc.c,v 1.14 2024/04/29 12:42:06 jsg Exp $ */ /* * Copyright (c) 2007,2009 Dale Rahn * @@ -308,18 +308,6 @@ intc_setipl(int new) restore_interrupts(psw); } -void -intc_intr_bootstrap(vaddr_t addr) -{ - int i, j; - extern struct bus_space armv7_bs_tag; - intc_iot = &armv7_bs_tag; - intc_ioh = addr; - for (i = 0; i < INTC_NUM_BANKS; i++) - for (j = 0; j < NIPL; j++) - intc_imask[i][j] = 0xffffffff; -} - void intc_irq_handler(void *frame) { diff --git a/sys/arch/armv7/omap/intc.h b/sys/arch/armv7/omap/intc.h index c5d5880290e..ba6122eac8b 100644 --- a/sys/arch/armv7/omap/intc.h +++ b/sys/arch/armv7/omap/intc.h @@ -1,4 +1,4 @@ -/* $OpenBSD: intc.h,v 1.6 2024/04/29 12:33:17 jsg Exp $ */ +/* $OpenBSD: intc.h,v 1.7 2024/04/29 12:42:06 jsg Exp $ */ /* * Copyright (c) 2007,2009 Dale Rahn * @@ -47,16 +47,6 @@ find_first_bit( uint32_t bits ) return 31-count; } - -/* - * This function *MUST* be called very early on in a port's - * initarm() function, before ANY spl*() functions are called. - * - * The parameter is the virtual address of the OMAPINTC's Interrupt - * Controller registers. - */ -void intc_intr_bootstrap(vaddr_t); - void intc_irq_handler(void *); void *intc_intr_establish(int irqno, int level, struct cpu_info *ci, int (*func)(void *), void *cookie, char *name); -- 2.20.1