From 0a029a5ee5261bd5388a638fef553d42bc0e23a3 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 6 Jul 2007 21:09:33 +0000 Subject: 2007-07-06 Joel Sherrill * Makefile.am: Add startup/bspclean.c * console/console.c: Remove warning. * include/bsp.h: Add conditionals for prompt for reset and resetting board. * start/start.S: Remove if 1 around section. * vectors/vectors_init.c: Do not print unless noisy init enabled. * startup/bspclean.c: New file. Will prompt for reset and reset. --- c/src/lib/libbsp/powerpc/gen5200/console/console.c | 44 +++++++++++----------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'c/src/lib/libbsp/powerpc/gen5200/console/console.c') diff --git a/c/src/lib/libbsp/powerpc/gen5200/console/console.c b/c/src/lib/libbsp/powerpc/gen5200/console/console.c index e897d869fc..991fe405d1 100644 --- a/c/src/lib/libbsp/powerpc/gen5200/console/console.c +++ b/c/src/lib/libbsp/powerpc/gen5200/console/console.c @@ -116,29 +116,29 @@ uint32_t mpc5200_uart_avail_mask = GEN5200_UART_AVAIL_MASK; -uint8_t psc_minor_to_irqname[NUM_PORTS] = - {BSP_SIU_IRQ_PSC1, - BSP_SIU_IRQ_PSC2, - BSP_SIU_IRQ_PSC3, - BSP_SIU_IRQ_PSC4, - BSP_SIU_IRQ_PSC5, - BSP_SIU_IRQ_PSC6}; -static int mpc5200_psc_irqname_to_minor(int name) -{ - int minor; - uint8_t *chrptr; - - chrptr = memchr(psc_minor_to_irqname, - name, - sizeof(psc_minor_to_irqname)); - if (chrptr != NULL) { - minor = chrptr - psc_minor_to_irqname; - } - else { - minor = -1; +#if defined(UARTS_USE_TERMIOS_INT) + uint8_t psc_minor_to_irqname[NUM_PORTS] = + {BSP_SIU_IRQ_PSC1, + BSP_SIU_IRQ_PSC2, + BSP_SIU_IRQ_PSC3, + BSP_SIU_IRQ_PSC4, + BSP_SIU_IRQ_PSC5, + BSP_SIU_IRQ_PSC6}; + + static int mpc5200_psc_irqname_to_minor(int name) + { + int minor; + uint8_t *chrptr; + + uuchrptr = memchr(psc_minor_to_irqname, name, sizeof(psc_minor_to_irqname)); + if (chrptr != NULL) { + minor = chrptr - psc_minor_to_irqname; + } else { + minor = -1; + } + return minor; } - return minor; -} +#endif static void A_BSP_output_char(char c); BSP_output_char_function_type BSP_output_char = A_BSP_output_char; -- cgit v1.2.3