diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-02-17 11:40:18 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-02-19 09:59:39 +0100 |
commit | 33cb8bf64d7b7551ea3a2e7ced5d4b56cd32d6db (patch) | |
tree | 9aca7c789c974a8e3d7538cfad7d40c4c9aef37a /c/src/lib/libbsp/powerpc/mpc55xxevb/console/console-esci.c | |
parent | score: Delete INTERNAL_ERROR_SHUTDOWN_WHEN_NOT_UP (diff) | |
download | rtems-33cb8bf64d7b7551ea3a2e7ced5d4b56cd32d6db.tar.bz2 |
score: Add RTEMS_FATAL_SOURCE_BSP
Merge RTEMS_FATAL_SOURCE_BSP_GENERIC and RTEMS_FATAL_SOURCE_BSP_SPECIFIC
into new fatal source RTEMS_FATAL_SOURCE_BSP. This makes it easier to
figure out the code position given a fatal source and code.
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libbsp/powerpc/mpc55xxevb/console/console-esci.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/c/src/lib/libbsp/powerpc/mpc55xxevb/console/console-esci.c b/c/src/lib/libbsp/powerpc/mpc55xxevb/console/console-esci.c index c54dd353fc..0620cda304 100644 --- a/c/src/lib/libbsp/powerpc/mpc55xxevb/console/console-esci.c +++ b/c/src/lib/libbsp/powerpc/mpc55xxevb/console/console-esci.c @@ -21,6 +21,7 @@ #include <bsp/console-esci.h> #include <bsp.h> +#include <bsp/fatal.h> #include <bsp/irq.h> #ifdef MPC55XX_HAS_ESCI @@ -268,12 +269,12 @@ static int mpc55xx_esci_first_open(int major, int minor, void *arg) rv = rtems_termios_set_initial_baud(tty, BSP_DEFAULT_BAUD_RATE); if (rv != 0) { - mpc55xx_fatal(MPC55XX_FATAL_CONSOLE_ESCI_BAUD); + bsp_fatal(MPC55XX_FATAL_CONSOLE_ESCI_BAUD); } rv = mpc55xx_esci_set_attributes(minor, &tty->termios); if (rv != 0) { - mpc55xx_fatal(MPC55XX_FATAL_CONSOLE_ESCI_ATTRIBUTES); + bsp_fatal(MPC55XX_FATAL_CONSOLE_ESCI_ATTRIBUTES); } sc = mpc55xx_interrupt_handler_install( @@ -285,7 +286,7 @@ static int mpc55xx_esci_first_open(int major, int minor, void *arg) self ); if (sc != RTEMS_SUCCESSFUL) { - mpc55xx_fatal(MPC55XX_FATAL_CONSOLE_ESCI_IRQ_INSTALL); + bsp_fatal(MPC55XX_FATAL_CONSOLE_ESCI_IRQ_INSTALL); } mpc55xx_esci_interrupts_clear_and_enable(self); |