Changeset ba5de753 in rtems


Ignore:
Timestamp:
Jul 25, 2016, 11:57:52 AM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
57a00bc6
Parents:
0fd6f255
git-author:
Sebastian Huber <sebastian.huber@…> (07/25/16 11:57:52)
git-committer:
Sebastian Huber <sebastian.huber@…> (07/25/16 12:03:00)
Message:

bsps: Fix shared polled console fatal error

Fatal errors must uniquely identify the source location.

Location:
c/src/lib/libbsp/shared
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/shared/console-polled.c

    r0fd6f255 rba5de753  
    2020
    2121#include <bsp/console-polled.h>
     22#include <bsp/fatal.h>
    2223#include <rtems/console.h>
    2324
     
    7576  status = rtems_io_register_name( "/dev/console", major, 0 );
    7677  if (status != RTEMS_SUCCESSFUL)
    77     rtems_fatal_error_occurred(BSP_FATAL_CONSOLE_REGISTER_DEV_0);
     78    rtems_fatal_error_occurred(BSP_FATAL_CONSOLE_REGISTER_DEV_2);
    7879
    7980  return RTEMS_SUCCESSFUL;
  • c/src/lib/libbsp/shared/include/fatal.h

    r0fd6f255 rba5de753  
    4141  BSP_FATAL_CONSOLE_INSTALL_0,
    4242  BSP_FATAL_CONSOLE_INSTALL_1,
     43  BSP_FATAL_CONSOLE_REGISTER_DEV_2,
    4344
    4445  /* ARM fatal codes */
Note: See TracChangeset for help on using the changeset viewer.