Changeset ade27c6 in rtems for c


Ignore:
Timestamp:
Jun 20, 2013, 9:44:04 AM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
6307b1a
Parents:
5f91272
git-author:
Sebastian Huber <sebastian.huber@…> (06/20/13 09:44:04)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/21/13 08:26:10)
Message:

bsps: Move bsp_generic_fatal_code to new file

Add bsp_generic_fatal().

Location:
c/src/lib
Files:
1 added
6 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/Makefile.am

    r5f91272 rade27c6  
    3434include_bsp_HEADERS =
    3535include_bsp_HEADERS += shared/include/default-initial-extension.h
     36include_bsp_HEADERS += shared/include/generic-fatal.h
    3637
    3738include $(srcdir)/preinstall.am
  • c/src/lib/libbsp/m68k/mrm332/spurious/spinit.c

    r5f91272 rade27c6  
    1616
    1717#include <bsp.h>
    18 #include <bsp/bootcard.h>
     18#include <bsp/generic-fatal.h>
    1919#include <stdio.h>
    2020
     
    7373  RAW_PUTS("\n\r");
    7474#endif
    75   rtems_fatal(
    76     RTEMS_FATAL_SOURCE_BSP_GENERIC,
    77     BSP_GENERIC_FATAL_SPURIOUS_INTERRUPT
    78   );
     75  bsp_generic_fatal( BSP_GENERIC_FATAL_SPURIOUS_INTERRUPT );
    7976}
    8077
  • c/src/lib/libbsp/preinstall.am

    r5f91272 rade27c6  
    2323PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/default-initial-extension.h
    2424
     25$(PROJECT_INCLUDE)/bsp/generic-fatal.h: shared/include/generic-fatal.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
     26        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/generic-fatal.h
     27PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/generic-fatal.h
     28
  • c/src/lib/libbsp/shared/include/bootcard.h

    r5f91272 rade27c6  
    88
    99/*
    10  * Copyright (c) 2008-2012 embedded brains GmbH.  All rights reserved.
     10 * Copyright (c) 2008-2013 embedded brains GmbH.  All rights reserved.
    1111 *
    1212 *  embedded brains GmbH
    13  *  Obere Lagerstr. 30
     13 *  Dornierstr. 4
    1414 *  82178 Puchheim
    1515 *  Germany
     
    5050 * @{
    5151 */
    52 
    53 /**
    54  * @brief Generic BSP fatal error codes.
    55  */
    56 typedef enum {
    57   BSP_GENERIC_FATAL_EXCEPTION_INITIALIZATION,
    58   BSP_GENERIC_FATAL_INTERRUPT_INITIALIZATION,
    59   BSP_GENERIC_FATAL_SPURIOUS_INTERRUPT
    60 } bsp_generic_fatal_code;
    6152
    6253/**
  • c/src/lib/libbsp/shared/src/irq-generic.c

    r5f91272 rade27c6  
    2424
    2525#include <bsp/irq-generic.h>
    26 #include <bsp/bootcard.h>
     26#include <bsp/generic-fatal.h>
    2727
    2828#include <stdlib.h>
     
    171171  sc = bsp_interrupt_facility_initialize();
    172172  if (sc != RTEMS_SUCCESSFUL) {
    173     rtems_fatal(
    174       RTEMS_FATAL_SOURCE_BSP_GENERIC,
    175       BSP_GENERIC_FATAL_INTERRUPT_INITIALIZATION
    176     );
     173    bsp_generic_fatal(BSP_GENERIC_FATAL_INTERRUPT_INITIALIZATION);
    177174  }
    178175
  • c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/ppc_exc_initialize.c

    r5f91272 rade27c6  
    2626
    2727#include <bsp/vectors.h>
    28 #include <bsp/bootcard.h>
     28#include <bsp/generic-fatal.h>
    2929
    3030#define PPC_EXC_ASSERT_OFFSET(field, off) \
     
    146146static void ppc_exc_fatal_error(void)
    147147{
    148   rtems_fatal(
    149     RTEMS_FATAL_SOURCE_BSP_GENERIC,
    150     BSP_GENERIC_FATAL_EXCEPTION_INITIALIZATION
    151   );
     148  bsp_generic_fatal(BSP_GENERIC_FATAL_EXCEPTION_INITIALIZATION);
    152149}
    153150
Note: See TracChangeset for help on using the changeset viewer.