forked from Imagelibrary/rtems
bsps/sparc: Add BSP_INITIAL_EXTENSION to <bsp.h>
The bsp_fatal_extension() will call BSP_fatal_return().
This commit is contained in:
@@ -29,6 +29,7 @@ libbsp_a_SOURCES =
|
|||||||
|
|
||||||
# startup
|
# startup
|
||||||
libbsp_a_SOURCES += ../../shared/bspclean.c ../../shared/bsplibc.c \
|
libbsp_a_SOURCES += ../../shared/bspclean.c ../../shared/bsplibc.c \
|
||||||
|
../shared/startup/bspfatalextension.c \
|
||||||
startup/bsppredriver.c ../../sparc/shared/bspgetworkarea.c \
|
startup/bsppredriver.c ../../sparc/shared/bspgetworkarea.c \
|
||||||
../../sparc/shared/bsppretaskinghook.c ../../shared/bsppost.c \
|
../../sparc/shared/bsppretaskinghook.c ../../shared/bsppost.c \
|
||||||
../../shared/bspstart.c ../../shared/bootcard.c ../../shared/bspinit.c \
|
../../shared/bspstart.c ../../shared/bootcard.c ../../shared/bspinit.c \
|
||||||
|
|||||||
@@ -33,6 +33,8 @@ extern "C" {
|
|||||||
#include <rtems/console.h>
|
#include <rtems/console.h>
|
||||||
#include <rtems/irq-extension.h>
|
#include <rtems/irq-extension.h>
|
||||||
|
|
||||||
|
#include <bsp/default-initial-extension.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* BSP provides its own Idle thread body
|
* BSP provides its own Idle thread body
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ libbsp_a_SOURCES =
|
|||||||
|
|
||||||
# startup
|
# startup
|
||||||
libbsp_a_SOURCES += ../../shared/bspclean.c ../../shared/bsplibc.c \
|
libbsp_a_SOURCES += ../../shared/bspclean.c ../../shared/bsplibc.c \
|
||||||
|
../shared/startup/bspfatalextension.c \
|
||||||
../../shared/bsppost.c startup/bsppredriver.c \
|
../../shared/bsppost.c startup/bsppredriver.c \
|
||||||
startup/bspstart.c ../../sparc/shared/bsppretaskinghook.c \
|
startup/bspstart.c ../../sparc/shared/bsppretaskinghook.c \
|
||||||
../../sparc/shared/bspgetworkarea.c ../../shared/bootcard.c \
|
../../sparc/shared/bspgetworkarea.c ../../shared/bootcard.c \
|
||||||
|
|||||||
@@ -32,6 +32,8 @@ extern "C" {
|
|||||||
#include <rtems/console.h>
|
#include <rtems/console.h>
|
||||||
#include <rtems/irq-extension.h>
|
#include <rtems/irq-extension.h>
|
||||||
|
|
||||||
|
#include <bsp/default-initial-extension.h>
|
||||||
|
|
||||||
/* SPARC CPU variant: LEON2 */
|
/* SPARC CPU variant: LEON2 */
|
||||||
#define LEON2 1
|
#define LEON2 1
|
||||||
|
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ libbsp_a_SOURCES =
|
|||||||
|
|
||||||
# startup
|
# startup
|
||||||
libbsp_a_SOURCES += ../../shared/bspclean.c ../../shared/bsplibc.c \
|
libbsp_a_SOURCES += ../../shared/bspclean.c ../../shared/bsplibc.c \
|
||||||
|
../shared/startup/bspfatalextension.c \
|
||||||
../../shared/bsppost.c ../../shared/bootcard.c startup/bspstart.c \
|
../../shared/bsppost.c ../../shared/bootcard.c startup/bspstart.c \
|
||||||
../../sparc/shared/bsppretaskinghook.c startup/bsppredriver.c \
|
../../sparc/shared/bsppretaskinghook.c startup/bsppredriver.c \
|
||||||
../../sparc/shared/bspgetworkarea.c ../../shared/sbrk.c startup/setvec.c \
|
../../sparc/shared/bspgetworkarea.c ../../shared/sbrk.c startup/setvec.c \
|
||||||
|
|||||||
@@ -32,6 +32,8 @@ extern "C" {
|
|||||||
#include <rtems/console.h>
|
#include <rtems/console.h>
|
||||||
#include <rtems/irq-extension.h>
|
#include <rtems/irq-extension.h>
|
||||||
|
|
||||||
|
#include <bsp/default-initial-extension.h>
|
||||||
|
|
||||||
/* SPARC CPU variant: LEON3 */
|
/* SPARC CPU variant: LEON3 */
|
||||||
#define LEON3 1
|
#define LEON3 1
|
||||||
|
|
||||||
|
|||||||
24
c/src/lib/libbsp/sparc/shared/startup/bspfatalextension.c
Normal file
24
c/src/lib/libbsp/sparc/shared/startup/bspfatalextension.c
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2012 embedded brains GmbH. All rights reserved.
|
||||||
|
*
|
||||||
|
* embedded brains GmbH
|
||||||
|
* Obere Lagerstr. 30
|
||||||
|
* 82178 Puchheim
|
||||||
|
* Germany
|
||||||
|
* <rtems@embedded-brains.de>
|
||||||
|
*
|
||||||
|
* The license and distribution terms for this file may be
|
||||||
|
* found in the file LICENSE in this distribution or at
|
||||||
|
* http://www.rtems.com/license/LICENSE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <bsp.h>
|
||||||
|
|
||||||
|
void bsp_fatal_extension(
|
||||||
|
Internal_errors_Source source,
|
||||||
|
bool is_internal,
|
||||||
|
Internal_errors_t error
|
||||||
|
)
|
||||||
|
{
|
||||||
|
BSP_fatal_return();
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user