diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-07-25 13:57:52 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-07-25 14:03:00 +0200 |
commit | ba5de7531a031e25bff325fbee2e1d3922d3b5a7 (patch) | |
tree | b46a038fb3c373582259869a2732a604ff02be67 /c/src/lib/libbsp/shared | |
parent | score: Relax thread begin extension environment (diff) | |
download | rtems-ba5de7531a031e25bff325fbee2e1d3922d3b5a7.tar.bz2 |
bsps: Fix shared polled console fatal error
Fatal errors must uniquely identify the source location.
Diffstat (limited to 'c/src/lib/libbsp/shared')
-rw-r--r-- | c/src/lib/libbsp/shared/console-polled.c | 3 | ||||
-rw-r--r-- | c/src/lib/libbsp/shared/include/fatal.h | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/shared/console-polled.c b/c/src/lib/libbsp/shared/console-polled.c index 9afe7782b3..26c9817bdb 100644 --- a/c/src/lib/libbsp/shared/console-polled.c +++ b/c/src/lib/libbsp/shared/console-polled.c @@ -19,6 +19,7 @@ #include <assert.h> #include <bsp/console-polled.h> +#include <bsp/fatal.h> #include <rtems/console.h> /* @@ -74,7 +75,7 @@ rtems_device_driver console_initialize( */ status = rtems_io_register_name( "/dev/console", major, 0 ); if (status != RTEMS_SUCCESSFUL) - rtems_fatal_error_occurred(BSP_FATAL_CONSOLE_REGISTER_DEV_0); + rtems_fatal_error_occurred(BSP_FATAL_CONSOLE_REGISTER_DEV_2); return RTEMS_SUCCESSFUL; } diff --git a/c/src/lib/libbsp/shared/include/fatal.h b/c/src/lib/libbsp/shared/include/fatal.h index b3c9d16800..8220a732f0 100644 --- a/c/src/lib/libbsp/shared/include/fatal.h +++ b/c/src/lib/libbsp/shared/include/fatal.h @@ -40,6 +40,7 @@ typedef enum { BSP_FATAL_CONSOLE_NO_DEV, BSP_FATAL_CONSOLE_INSTALL_0, BSP_FATAL_CONSOLE_INSTALL_1, + BSP_FATAL_CONSOLE_REGISTER_DEV_2, /* ARM fatal codes */ BSP_ARM_A9MPCORE_FATAL_CLOCK_IRQ_INSTALL = BSP_FATAL_CODE_BLOCK(1), |