From e160e41361105109a12edd6dfe04058ddcefac84 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 9 Oct 2014 15:15:55 -0500 Subject: powerpc/ep1a: Remove if 0 sections There may be useful nuggets for debug and alternate configurations in this code. There may be methods directly called by the application which are beyond normal APIs. We have no way of knowing this based on the comments in these files. There were no public prototypes so the routines and code in question should have be unused private methods. These will always be in the source code control system as a deletion. If some of the code is needed, justify it and provide a patch to restore it along with a prototype in a public place if needed and a better name. --- .../lib/libbsp/powerpc/ep1a/irq/openpic_xxx_irq.c | 28 ---------------------- 1 file changed, 28 deletions(-) (limited to 'c/src/lib/libbsp/powerpc/ep1a/irq/openpic_xxx_irq.c') diff --git a/c/src/lib/libbsp/powerpc/ep1a/irq/openpic_xxx_irq.c b/c/src/lib/libbsp/powerpc/ep1a/irq/openpic_xxx_irq.c index 728ffd43a2..67af151e13 100644 --- a/c/src/lib/libbsp/powerpc/ep1a/irq/openpic_xxx_irq.c +++ b/c/src/lib/libbsp/powerpc/ep1a/irq/openpic_xxx_irq.c @@ -149,34 +149,6 @@ int BSP_setup_the_pic(rtems_irq_global_settings* config) default_rtems_entry = config->defaultEntry; rtems_hdl_tbl = config->irqHdlTbl; - /* - * set up internal tables used by rtems interrupt prologue - */ -#if 0 -#ifdef BSP_PCI_ISA_BRIDGE_IRQ - /* - * start with ISA IRQ - */ - compute_i8259_masks_from_prio (config); - - for (i=BSP_ISA_IRQ_LOWEST_OFFSET; i < BSP_ISA_IRQ_LOWEST_OFFSET + BSP_ISA_IRQ_NUMBER; i++) { - if (rtems_hdl_tbl[i].hdl != default_rtems_entry.hdl) { - BSP_irq_enable_at_i8259s (i); - } - else { - BSP_irq_disable_at_i8259s (i); - } - } - - if ( BSP_ISA_IRQ_NUMBER > 0 ) { - /* - * must enable slave pic anyway - */ - BSP_irq_enable_at_i8259s (2); - } -#endif -#endif - /* * continue with PCI IRQ */ -- cgit v1.2.3