diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-07-06 21:09:33 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-07-06 21:09:33 +0000 |
commit | 0a029a5ee5261bd5388a638fef553d42bc0e23a3 (patch) | |
tree | eee696ef03c868c4203e951b06b2972dc9937a81 /c/src/lib/libbsp/powerpc/gen5200/console/console.c | |
parent | 2007-07-06 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-0a029a5ee5261bd5388a638fef553d42bc0e23a3.tar.bz2 |
2007-07-06 Joel Sherrill <joel.sherrill@oarcorp.com>
* 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.
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libbsp/powerpc/gen5200/console/console.c | 44 |
1 files changed, 22 insertions, 22 deletions
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; |