From 458bd343e24cda7169c75f079705979891c9abc1 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 5 Nov 1999 16:44:02 +0000 Subject: This is another pass at making sure that nothing outside the BSP unnecessarily uses any variables defined by the BSP. On this sweep, use of BSP_Configuration and Cpu_table was eliminated. A significant part of this modification was the addition of macros to access fields in the RTEMS configuration structures. This is necessary to strengthen the division between the BSP independent parts of RTEMS and the BSPs themselves. This started after comments and analysis by Ralf Corsepius . --- c/src/lib/libcpu/powerpc/ppc403/ictrl/ictrl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'c/src/lib/libcpu/powerpc/ppc403/ictrl') diff --git a/c/src/lib/libcpu/powerpc/ppc403/ictrl/ictrl.c b/c/src/lib/libcpu/powerpc/ppc403/ictrl/ictrl.c index 8f808d432d..6ba3947bc8 100644 --- a/c/src/lib/libcpu/powerpc/ppc403/ictrl/ictrl.c +++ b/c/src/lib/libcpu/powerpc/ppc403/ictrl/ictrl.c @@ -108,7 +108,7 @@ disable_ext_irq( unsigned32 mask) * this function is called, when a external interrupt is present and * enabled but there is no handler installed. It will clear * the corresponding enable bits and call the spurious handler - * present in the _CPU_Table, if any. + * present in the CPU Configuration Table, if any. * */ void @@ -125,8 +125,8 @@ ictrl_spurious_handler(unsigned32 spurious_mask, printf("spurious external interrupt: %d at pc 0x%x; disabling\n", vector, cpu_frame->Interrupt.pcoqfront); #endif - if (_CPU_Table.spurious_handler) { - _CPU_Table.spurious_handler(v + PPC_IRQ_EXT_BASE,cpu_frame); + if (rtems_cpu_configuration_get_spurious_handler()) { + rtems_cpu_configuration_get_spurious_handler()(v + PPC_IRQ_EXT_BASE,cpu_frame); } } } -- cgit v1.2.3