Changeset 46d7fa5 in rtems


Ignore:
Timestamp:
Feb 17, 2014, 10:54:35 AM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
9eec2f3
Parents:
33cb8bf
git-author:
Sebastian Huber <sebastian.huber@…> (02/17/14 10:54:35)
git-committer:
Sebastian Huber <sebastian.huber@…> (02/19/14 08:59:40)
Message:

bsp/leon3: Add and use fatal codes

Location:
c/src/lib/libbsp
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/shared/include/fatal.h

    r33cb8bf r46d7fa5  
    4949  /* LEON3 fatal codes */
    5050  LEON3_FATAL_CPU_COUNTER_INIT = BSP_FATAL_CODE_BLOCK(2),
     51  LEON3_FATAL_NO_IRQMP_CONTROLLER,
     52  LEON3_FATAL_CONSOLE_REGISTER_DEV,
    5153
    5254  /* LPC24XX fatal codes */
  • c/src/lib/libbsp/sparc/leon3/amba/amba.c

    r33cb8bf r46d7fa5  
    1313
    1414#include <bsp.h>
     15#include <bsp/fatal.h>
    1516#include <ambapp.h>
    1617
     
    5960     *  What else can we do but stop ...
    6061     */
    61     asm volatile( "mov 1, %g1; ta 0x0" );
     62    bsp_fatal(LEON3_FATAL_NO_IRQMP_CONTROLLER);
    6263  }
    6364
  • c/src/lib/libbsp/sparc/leon3/console/console.c

    r33cb8bf r46d7fa5  
    2828
    2929#include <bsp.h>
     30#include <bsp/fatal.h>
    3031#include <rtems/libio.h>
    3132#include <stdlib.h>
     
    298299    status = rtems_io_register_name("/dev/console", major, 0);
    299300    if (status != RTEMS_SUCCESSFUL)
    300       rtems_fatal_error_occurred(status);
     301      bsp_fatal(LEON3_FATAL_CONSOLE_REGISTER_DEV);
    301302  }
    302303  strcpy(console_name,"/dev/console_a");
     
    305306      continue; /* skip UART that is registered as /dev/console */
    306307    console_name[13] = 'a' + i;
    307     status = rtems_io_register_name( console_name, major, i+1);
     308    rtems_io_register_name( console_name, major, i+1);
    308309  }
    309310
Note: See TracChangeset for help on using the changeset viewer.