forked from Imagelibrary/rtems
score: Add RTEMS_FATAL_SOURCE_EXIT
Include <bsp/default-initial-extension.h> in all BSPs. Call rtems_fatal() with RTEMS_FATAL_SOURCE_EXIT as source and the exit() status code as fatal code in every bsp_cleanup(). Move previous bsp_cleanup() code into bsp_fatal_extension().
This commit is contained in:
@@ -16,6 +16,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/iosupp.h>
|
||||
|
||||
@@ -16,6 +16,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/console.h>
|
||||
|
||||
@@ -15,6 +15,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/iosupp.h>
|
||||
|
||||
@@ -22,6 +22,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/iosupp.h>
|
||||
|
||||
@@ -15,6 +15,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/iosupp.h>
|
||||
|
||||
@@ -21,6 +21,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/iosupp.h>
|
||||
|
||||
@@ -14,6 +14,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/console.h>
|
||||
|
||||
@@ -17,14 +17,6 @@
|
||||
|
||||
#include <bspopts.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/console.h>
|
||||
#include <rtems/clockdrv.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#define BSP_FEATURE_IRQ_EXTENSION
|
||||
|
||||
#define BSP_ARMV7M_IRQ_PRIORITY_DEFAULT (5 << 5)
|
||||
@@ -33,10 +25,20 @@ extern "C" {
|
||||
|
||||
#ifndef ASM
|
||||
|
||||
#endif /* ASM */
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/console.h>
|
||||
#include <rtems/clockdrv.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* ASM */
|
||||
|
||||
#endif /* LIBBSP_ARM_LM3S69XX_BSP_H */
|
||||
|
||||
@@ -25,14 +25,6 @@
|
||||
|
||||
#include <bspopts.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/console.h>
|
||||
#include <rtems/clockdrv.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#define BSP_FEATURE_IRQ_EXTENSION
|
||||
|
||||
#define LPC24XX_PCLK (LPC24XX_CCLK / LPC24XX_PCLKDIV)
|
||||
@@ -49,6 +41,16 @@ extern "C" {
|
||||
|
||||
#ifndef ASM
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/console.h>
|
||||
#include <rtems/clockdrv.h>
|
||||
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
struct rtems_bsdnet_ifconfig;
|
||||
|
||||
/**
|
||||
@@ -111,10 +113,10 @@ void bsp_restart(void *addr);
|
||||
|
||||
/** @} */
|
||||
|
||||
#endif /* ASM */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* ASM */
|
||||
|
||||
#endif /* LIBBSP_ARM_LPC24XX_BSP_H */
|
||||
|
||||
@@ -25,20 +25,21 @@
|
||||
|
||||
#include <bspopts.h>
|
||||
|
||||
#define BSP_FEATURE_IRQ_EXTENSION
|
||||
|
||||
#ifndef ASM
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/console.h>
|
||||
#include <rtems/clockdrv.h>
|
||||
|
||||
#include <bsp/lpc32xx.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#define BSP_FEATURE_IRQ_EXTENSION
|
||||
|
||||
#ifndef ASM
|
||||
|
||||
struct rtems_bsdnet_ifconfig;
|
||||
|
||||
/**
|
||||
@@ -247,10 +248,10 @@ extern uint32_t lpc32xx_magic_zero_size [];
|
||||
* @brief LPC support package.
|
||||
*/
|
||||
|
||||
#endif /* ASM */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* ASM */
|
||||
|
||||
#endif /* LIBBSP_ARM_LPC32XX_BSP_H */
|
||||
|
||||
@@ -16,6 +16,7 @@ extern "C"
|
||||
#endif
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
#include <rtems.h>
|
||||
#include <rtems/iosupp.h>
|
||||
#include <rtems/bspIo.h>
|
||||
|
||||
@@ -15,6 +15,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#define BSP_SMALL_MEMORY 1
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
#define _BSP_H
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
#define LIBBSP_ARM_STM32F4_BSP_H
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/console.h>
|
||||
|
||||
@@ -19,6 +19,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/iosupp.h>
|
||||
|
||||
@@ -20,6 +20,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/console.h>
|
||||
|
||||
@@ -20,6 +20,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/console.h>
|
||||
|
||||
@@ -22,6 +22,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/console.h>
|
||||
|
||||
@@ -19,6 +19,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/iosupp.h>
|
||||
|
||||
@@ -44,6 +44,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/iosupp.h>
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
|
||||
#include <stdint.h>
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/console.h>
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
|
||||
#include <stdint.h>
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/console.h>
|
||||
|
||||
@@ -45,10 +45,19 @@ static void reconf(void)
|
||||
icap_write(0, 0xffff); /* dummy word */
|
||||
}
|
||||
|
||||
void bsp_cleanup(uint32_t status)
|
||||
void bsp_fatal_extension(
|
||||
rtems_fatal_source source,
|
||||
bool is_internal,
|
||||
rtems_fatal_code error
|
||||
)
|
||||
{
|
||||
if (status)
|
||||
if (source == RTEMS_FATAL_SOURCE_EXIT && error)
|
||||
reconf();
|
||||
else
|
||||
reboot();
|
||||
}
|
||||
|
||||
void bsp_cleanup(uint32_t status)
|
||||
{
|
||||
rtems_fatal(RTEMS_FATAL_SOURCE_EXIT, status);
|
||||
}
|
||||
|
||||
@@ -19,6 +19,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/iosupp.h>
|
||||
|
||||
@@ -19,6 +19,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/iosupp.h>
|
||||
|
||||
@@ -10,6 +10,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/iosupp.h>
|
||||
|
||||
@@ -110,6 +110,7 @@ extern "C" {
|
||||
#include <rtems/console.h>
|
||||
#include <rtems/iosupp.h>
|
||||
#include <rtems/clockdrv.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
struct rtems_bsdnet_ifconfig;
|
||||
extern int rtems_enet_driver_attach (struct rtems_bsdnet_ifconfig *config);
|
||||
|
||||
@@ -20,6 +20,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/console.h>
|
||||
|
||||
@@ -23,6 +23,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/console.h>
|
||||
|
||||
@@ -29,6 +29,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/console.h>
|
||||
|
||||
@@ -50,6 +50,7 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/iosupp.h>
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
#define _BSP_H
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/console.h>
|
||||
|
||||
@@ -127,6 +127,7 @@ extern "C" {
|
||||
#include <rtems/iosupp.h>
|
||||
#include <rtems/clockdrv.h>
|
||||
#include <rtems/rtc.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#include "i2c.h"
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
#include <rtems.h>
|
||||
#include <rtems/iosupp.h>
|
||||
#include <rtems/console.h>
|
||||
|
||||
@@ -12,6 +12,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
#include <rtems.h>
|
||||
#include <rtems/iosupp.h>
|
||||
#include <rtems/console.h>
|
||||
|
||||
@@ -19,13 +19,18 @@
|
||||
#include <bsp/bootcard.h>
|
||||
#include <rtems/bspIo.h>
|
||||
|
||||
void bsp_fatal_extension(
|
||||
rtems_fatal_source source,
|
||||
bool is_internal,
|
||||
rtems_fatal_code error
|
||||
)
|
||||
{
|
||||
printk("\nRTEMS exited!\n");
|
||||
}
|
||||
|
||||
void __attribute__((weak)) bsp_cleanup(
|
||||
uint32_t status
|
||||
)
|
||||
{
|
||||
printk("\nRTEMS exited!\n");
|
||||
for (;;) {
|
||||
__asm__ volatile (" nop ");
|
||||
__asm__ volatile (" nop ");
|
||||
}
|
||||
rtems_fatal( RTEMS_FATAL_SOURCE_EXIT, status );
|
||||
}
|
||||
|
||||
@@ -10,6 +10,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
#include <rtems.h>
|
||||
#include <rtems/iosupp.h>
|
||||
#include <rtems/console.h>
|
||||
|
||||
@@ -10,6 +10,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
#include <rtems.h>
|
||||
#include <rtems/iosupp.h>
|
||||
#include <rtems/console.h>
|
||||
|
||||
@@ -18,6 +18,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/bspIo.h>
|
||||
|
||||
@@ -18,6 +18,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/clockdrv.h>
|
||||
|
||||
@@ -30,8 +30,10 @@ void bsp_return_to_monitor_trap(void)
|
||||
|
||||
#define TIMER 0xfffb0000
|
||||
|
||||
void bsp_cleanup(
|
||||
uint32_t status
|
||||
void bsp_fatal_extension(
|
||||
rtems_fatal_source source,
|
||||
bool is_internal,
|
||||
rtems_fatal_code error
|
||||
)
|
||||
{
|
||||
Z8x36_WRITE( TIMER, MASTER_INTR, 0x62 ); /* redo timer */
|
||||
@@ -42,3 +44,10 @@ void bsp_cleanup(
|
||||
M68Kvec[ 45 ] = bsp_return_to_monitor_trap; /* install handler */
|
||||
__asm__ volatile( "trap #13" ); /* insures SUPV mode */
|
||||
}
|
||||
|
||||
void bsp_cleanup(
|
||||
uint32_t status
|
||||
)
|
||||
{
|
||||
rtems_fatal( RTEMS_FATAL_SOURCE_EXIT, status );
|
||||
}
|
||||
|
||||
@@ -22,6 +22,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/clockdrv.h>
|
||||
|
||||
@@ -31,8 +31,10 @@ void bsp_return_to_monitor_trap(void)
|
||||
__asm__ volatile ( "jmp %0@" : "=a" (start_addr) : "0" (start_addr) );
|
||||
}
|
||||
|
||||
void bsp_cleanup(
|
||||
uint32_t status
|
||||
void bsp_fatal_extension(
|
||||
rtems_fatal_source source,
|
||||
bool is_internal,
|
||||
rtems_fatal_code error
|
||||
)
|
||||
{
|
||||
pcc->timer1_int_control = 0; /* Disable Timer 1 */
|
||||
@@ -41,3 +43,10 @@ void bsp_cleanup(
|
||||
M68Kvec[ 45 ] = bsp_return_to_monitor_trap; /* install handler */
|
||||
__asm__ volatile( "trap #13" ); /* ensures SUPV mode */
|
||||
}
|
||||
|
||||
void bsp_cleanup(
|
||||
uint32_t status
|
||||
)
|
||||
{
|
||||
rtems_fatal( RTEMS_FATAL_SOURCE_EXIT, status );
|
||||
}
|
||||
|
||||
@@ -22,6 +22,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/clockdrv.h>
|
||||
|
||||
@@ -25,6 +25,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/clockdrv.h>
|
||||
|
||||
@@ -46,10 +46,19 @@ void bsp_return_to_monitor_trap(void)
|
||||
#endif
|
||||
}
|
||||
|
||||
void bsp_cleanup(
|
||||
uint32_t status
|
||||
void bsp_fatal_extension(
|
||||
rtems_fatal_source source,
|
||||
bool is_internal,
|
||||
rtems_fatal_code error
|
||||
)
|
||||
{
|
||||
M68Kvec[ 45 ] = bsp_return_to_monitor_trap; /* install handler */
|
||||
__asm__ volatile( "trap #13" ); /* insures SUPV mode */
|
||||
}
|
||||
|
||||
void bsp_cleanup(
|
||||
uint32_t status
|
||||
)
|
||||
{
|
||||
rtems_fatal( RTEMS_FATAL_SOURCE_EXIT, status );
|
||||
}
|
||||
|
||||
@@ -24,6 +24,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/clockdrv.h>
|
||||
|
||||
@@ -49,6 +49,16 @@ static void bsp_return_to_monitor_trap( void )
|
||||
__asm__ volatile( "jmp %0@" : "=a" (start_addr) : "0" (start_addr) );
|
||||
}
|
||||
|
||||
void bsp_fatal_extension(
|
||||
rtems_fatal_source source,
|
||||
bool is_internal,
|
||||
rtems_fatal_code error
|
||||
)
|
||||
{
|
||||
M68Kvec[ 45 ] = bsp_return_to_monitor_trap;
|
||||
__asm__ volatile( "trap #13" );
|
||||
}
|
||||
|
||||
/*
|
||||
* bsp_cleanup
|
||||
*
|
||||
@@ -76,6 +86,5 @@ void bsp_cleanup(
|
||||
uint32_t status
|
||||
)
|
||||
{
|
||||
M68Kvec[ 45 ] = bsp_return_to_monitor_trap;
|
||||
__asm__ volatile( "trap #13" );
|
||||
rtems_fatal( RTEMS_FATAL_SOURCE_EXIT, status );
|
||||
}
|
||||
|
||||
@@ -18,6 +18,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#define BSP_SMALL_MEMORY 1
|
||||
#include <rtems.h>
|
||||
|
||||
@@ -19,6 +19,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/iosupp.h>
|
||||
|
||||
@@ -19,6 +19,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/iosupp.h>
|
||||
|
||||
@@ -16,9 +16,18 @@
|
||||
#include <bsp.h>
|
||||
#include <bsp/bootcard.h>
|
||||
|
||||
void bsp_cleanup(
|
||||
uint32_t status
|
||||
void bsp_fatal_extension(
|
||||
rtems_fatal_source source,
|
||||
bool is_internal,
|
||||
rtems_fatal_code error
|
||||
)
|
||||
{
|
||||
bsp_reset();
|
||||
}
|
||||
|
||||
void bsp_cleanup(
|
||||
uint32_t status
|
||||
)
|
||||
{
|
||||
rtems_fatal( RTEMS_FATAL_SOURCE_EXIT, status );
|
||||
}
|
||||
|
||||
@@ -22,6 +22,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/iosupp.h>
|
||||
|
||||
@@ -22,6 +22,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/iosupp.h>
|
||||
|
||||
@@ -20,6 +20,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/iosupp.h>
|
||||
|
||||
@@ -22,6 +22,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/iosupp.h>
|
||||
@@ -31,6 +32,7 @@ extern "C" {
|
||||
|
||||
#define BSP_FEATURE_IRQ_EXTENSION
|
||||
#define BSP_SHARED_HANDLER_SUPPORT 1
|
||||
#define BSP_RESET_BOARD_AT_EXIT 1
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
@@ -22,6 +22,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/iosupp.h>
|
||||
|
||||
@@ -21,6 +21,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/iosupp.h>
|
||||
|
||||
@@ -21,6 +21,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/iosupp.h>
|
||||
|
||||
@@ -21,6 +21,7 @@ extern "C" {
|
||||
|
||||
#include <stdint.h>
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/console.h>
|
||||
|
||||
@@ -20,6 +20,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/console.h>
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
#define LIBBSP_BEATNIK_BSP_H
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/console.h>
|
||||
|
||||
@@ -2,16 +2,25 @@
|
||||
#include <bsp/bootcard.h>
|
||||
#include <rtems/bspIo.h>
|
||||
|
||||
void bsp_cleanup(
|
||||
uint32_t status
|
||||
void bsp_fatal_extension(
|
||||
rtems_fatal_source source,
|
||||
bool is_internal,
|
||||
rtems_fatal_code error
|
||||
)
|
||||
{
|
||||
/* We can't go back to MotLoad since we blew it's memory area
|
||||
* and vectors. Just pull the reset line...
|
||||
*/
|
||||
printk(
|
||||
"bsp_cleanup(): RTEMS terminated -- no way back to MotLoad "
|
||||
"bsp_fatal_extension(): RTEMS terminated -- no way back to MotLoad "
|
||||
"so I reset the card\n"
|
||||
);
|
||||
bsp_reset();
|
||||
}
|
||||
|
||||
void bsp_cleanup(
|
||||
uint32_t status
|
||||
)
|
||||
{
|
||||
rtems_fatal( RTEMS_FATAL_SOURCE_EXIT, status );
|
||||
}
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
#define _BSP_H
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/console.h>
|
||||
|
||||
@@ -122,6 +122,7 @@ extern "C" {
|
||||
#include <bsp/irq.h>
|
||||
#include <bsp/vectors.h>
|
||||
#include <bsp/u-boot.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
/*
|
||||
* Network driver configuration
|
||||
|
||||
@@ -63,15 +63,16 @@ LINKER_SYMBOL(IMMRBAR);
|
||||
|
||||
#ifndef ASM
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/console.h>
|
||||
#include <rtems/clockdrv.h>
|
||||
#include <bsp/vectors.h>
|
||||
#include <bsp/irq.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
* indicate, that BSP has no IDE driver
|
||||
|
||||
@@ -67,6 +67,7 @@ extern "C" {
|
||||
#include <rtems/iosupp.h>
|
||||
#include <bsp/irq.h>
|
||||
#include <bsp/vectors.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
/* Network Defines */
|
||||
#define RTEMS_BSP_NETWORK_DRIVER_NAME "eth0"
|
||||
|
||||
@@ -20,6 +20,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/console.h>
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
#define _BSP_H
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/console.h>
|
||||
|
||||
@@ -23,20 +23,8 @@
|
||||
#ifndef LIBBSP_POWERPC_MPC55XXEVB_BSP_H
|
||||
#define LIBBSP_POWERPC_MPC55XXEVB_BSP_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/console.h>
|
||||
#include <rtems/clockdrv.h>
|
||||
|
||||
#include <bspopts.h>
|
||||
|
||||
#include <bsp/tictac.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#define BSP_SMALL_MEMORY 1
|
||||
|
||||
#define BSP_INTERRUPT_STACK_AT_WORK_AREA_BEGIN
|
||||
@@ -45,6 +33,17 @@ extern "C" {
|
||||
|
||||
#ifndef ASM
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/console.h>
|
||||
#include <rtems/clockdrv.h>
|
||||
|
||||
#include <bsp/tictac.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/** @brief System clock frequency */
|
||||
extern unsigned int bsp_clock_speed;
|
||||
|
||||
@@ -78,10 +77,10 @@ void *bsp_idle_thread(uintptr_t arg);
|
||||
|
||||
#define BSP_IDLE_TASK_BODY bsp_idle_thread
|
||||
|
||||
#endif /* ASM */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* ASM */
|
||||
|
||||
#endif /* LIBBSP_POWERPC_MPC55XXEVB_BSP_H */
|
||||
|
||||
@@ -20,6 +20,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/console.h>
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
#define _BSP_H
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/console.h>
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
#define _BSP_H
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/console.h>
|
||||
|
||||
@@ -8,8 +8,10 @@
|
||||
|
||||
#define AUTO_BOOT 0
|
||||
|
||||
void bsp_cleanup(
|
||||
uint32_t status
|
||||
void bsp_fatal_extension(
|
||||
rtems_fatal_source source,
|
||||
bool is_internal,
|
||||
rtems_fatal_code error
|
||||
)
|
||||
{
|
||||
#if AUTO_BOOT
|
||||
@@ -22,3 +24,10 @@ void bsp_cleanup(
|
||||
printk("RTEMS terminated; Boot manually or turn on AUTO_BOOT.\n");
|
||||
#endif
|
||||
}
|
||||
|
||||
void bsp_cleanup(
|
||||
uint32_t status
|
||||
)
|
||||
{
|
||||
rtems_fatal( RTEMS_FATAL_SOURCE_EXIT, status );
|
||||
}
|
||||
|
||||
@@ -36,6 +36,8 @@ extern "C" {
|
||||
|
||||
#include <bspopts.h>
|
||||
|
||||
#define BSP_RESET_BOARD_AT_EXIT 1
|
||||
|
||||
#ifdef ASM
|
||||
/* Definition of where to store registers in alignment handler */
|
||||
#define ALIGN_REGS 0x0140
|
||||
@@ -47,6 +49,7 @@ extern "C" {
|
||||
#include <rtems/clockdrv.h>
|
||||
#include <rtems/iosupp.h>
|
||||
#include <bsp/vectors.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
/* Constants */
|
||||
|
||||
|
||||
@@ -18,6 +18,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/iosupp.h>
|
||||
|
||||
@@ -29,6 +29,8 @@
|
||||
|
||||
#include <rtems.h>
|
||||
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
@@ -57,10 +59,10 @@ int qoriq_if_intercom_attach_detach(
|
||||
#define RTEMS_BSP_NETWORK_DRIVER_NAME3 "tsec3"
|
||||
#define RTEMS_BSP_NETWORK_DRIVER_NAME4 "intercom1"
|
||||
|
||||
#endif /* ASM */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* ASM */
|
||||
|
||||
#endif /* LIBBSP_POWERPC_QORIQ_BSP_H */
|
||||
|
||||
@@ -20,6 +20,7 @@ extern "C" {
|
||||
#define BSP_ZERO_WORKSPACE_AUTOMATICALLY TRUE
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
#include <rtems.h>
|
||||
#include <rtems/console.h>
|
||||
#include <libcpu/io.h>
|
||||
|
||||
@@ -26,6 +26,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/console.h>
|
||||
|
||||
@@ -21,6 +21,8 @@
|
||||
|
||||
#include <rtems.h>
|
||||
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
@@ -74,9 +74,6 @@ LINKER_SYMBOL( bsp_interrupt_stack_size);
|
||||
LINKER_SYMBOL( bsp_work_area_start);
|
||||
|
||||
#ifndef ASM
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <bspopts.h>
|
||||
|
||||
@@ -90,6 +87,11 @@ extern "C" {
|
||||
#include <bsp/vectors.h>
|
||||
#include <bsp/tqm.h>
|
||||
#include <libcpu/powerpc-utility.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Network driver configuration
|
||||
|
||||
@@ -59,6 +59,7 @@ extern "C" {
|
||||
#include <rtems/iosupp.h>
|
||||
#include <bsp/irq.h>
|
||||
#include <bsp/vectors.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
/* miscellaneous stuff assumed to exist */
|
||||
extern bool bsp_timer_internal_clock; /* TRUE, when timer runs with CPU clk */
|
||||
|
||||
@@ -63,6 +63,8 @@ extern "C" {
|
||||
#include <rtems/clockdrv.h>
|
||||
#include <rtems/iosupp.h>
|
||||
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
/* miscellaneous stuff assumed to exist */
|
||||
extern bool bsp_timer_internal_clock; /* TRUE, when timer runs with CPU clk */
|
||||
|
||||
|
||||
@@ -40,10 +40,21 @@ static void _noopfun(void) {}
|
||||
void app_bsp_cleanup(void)
|
||||
__attribute__(( weak, alias("_noopfun") ));
|
||||
|
||||
void bsp_cleanup( uint32_t status )
|
||||
void bsp_fatal_extension(
|
||||
rtems_fatal_source source,
|
||||
bool is_internal,
|
||||
rtems_fatal_code error
|
||||
)
|
||||
{
|
||||
app_bsp_cleanup();
|
||||
if ( source == RTEMS_FATAL_SOURCE_EXIT ) {
|
||||
app_bsp_cleanup();
|
||||
}
|
||||
|
||||
/* All done. Hang out. */
|
||||
BSP_ask_for_reset();
|
||||
}
|
||||
|
||||
void bsp_cleanup( uint32_t status )
|
||||
{
|
||||
rtems_fatal( RTEMS_FATAL_SOURCE_EXIT, status );
|
||||
}
|
||||
|
||||
@@ -62,6 +62,7 @@ extern "C" {
|
||||
#include <rtems/console.h>
|
||||
#include <rtems/clockdrv.h>
|
||||
#include <rtems/iosupp.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
/* miscellaneous stuff assumed to exist */
|
||||
extern bool bsp_timer_internal_clock; /* TRUE, when timer runs with CPU clk */
|
||||
|
||||
@@ -40,10 +40,21 @@ static void _noopfun(void) {}
|
||||
void app_bsp_cleanup(void)
|
||||
__attribute__(( weak, alias("_noopfun") ));
|
||||
|
||||
void bsp_cleanup( uint32_t status )
|
||||
void bsp_fatal_extension(
|
||||
rtems_fatal_source source,
|
||||
bool is_internal,
|
||||
rtems_fatal_code error
|
||||
)
|
||||
{
|
||||
app_bsp_cleanup();
|
||||
if ( source == RTEMS_FATAL_SOURCE_EXIT ) {
|
||||
app_bsp_cleanup();
|
||||
}
|
||||
|
||||
/* All done. Hang out. */
|
||||
BSP_ask_for_reset();
|
||||
}
|
||||
|
||||
void bsp_cleanup( uint32_t status )
|
||||
{
|
||||
rtems_fatal( RTEMS_FATAL_SOURCE_EXIT, status );
|
||||
}
|
||||
|
||||
@@ -32,6 +32,7 @@ extern "C" {
|
||||
#include <rtems/console.h>
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#define BSP_SMALL_MEMORY 1
|
||||
|
||||
|
||||
@@ -43,6 +43,7 @@ extern "C" {
|
||||
#include <rtems/console.h>
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#define BSP_SMALL_MEMORY 1
|
||||
|
||||
|
||||
@@ -46,6 +46,7 @@ extern "C" {
|
||||
#include <rtems/clockdrv.h>
|
||||
#include <rtems/console.h>
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#include "rtems/score/sh7750_regs.h"
|
||||
|
||||
|
||||
@@ -31,6 +31,7 @@ extern "C" {
|
||||
#include <rtems/console.h>
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#define BSP_SMALL_MEMORY 1
|
||||
|
||||
|
||||
@@ -13,8 +13,10 @@
|
||||
#include <bsp/bootcard.h>
|
||||
#include <rtems/bspIo.h>
|
||||
|
||||
void bsp_cleanup(
|
||||
uint32_t status
|
||||
void bsp_fatal_extension(
|
||||
rtems_fatal_source source,
|
||||
bool is_internal,
|
||||
rtems_fatal_code error
|
||||
)
|
||||
{
|
||||
#if (BSP_PRESS_KEY_FOR_RESET)
|
||||
@@ -37,3 +39,8 @@ void bsp_cleanup(
|
||||
bsp_reset();
|
||||
#endif
|
||||
}
|
||||
|
||||
void bsp_cleanup( uint32_t status )
|
||||
{
|
||||
rtems_fatal( RTEMS_FATAL_SOURCE_EXIT, status );
|
||||
}
|
||||
|
||||
@@ -29,7 +29,6 @@ libbsp_a_SOURCES =
|
||||
|
||||
# startup
|
||||
libbsp_a_SOURCES += ../../shared/bspclean.c ../../shared/bsplibc.c \
|
||||
../shared/startup/bspfatalextension.c \
|
||||
startup/bsppredriver.c ../../sparc/shared/bspgetworkarea.c \
|
||||
../../sparc/shared/bsppretaskinghook.c ../../shared/bsppost.c \
|
||||
../../shared/bspstart.c ../../shared/bootcard.c ../../shared/bspinit.c \
|
||||
|
||||
@@ -25,6 +25,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/iosupp.h>
|
||||
@@ -33,8 +34,6 @@ extern "C" {
|
||||
#include <rtems/console.h>
|
||||
#include <rtems/irq-extension.h>
|
||||
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
/*
|
||||
* BSP provides its own Idle thread body
|
||||
*/
|
||||
@@ -53,6 +52,8 @@ extern int rtems_erc32_sonic_driver_attach(
|
||||
|
||||
/* Constants */
|
||||
|
||||
#define BSP_RESET_BOARD_AT_EXIT 1
|
||||
|
||||
/*
|
||||
* Information placed in the linkcmds file.
|
||||
*/
|
||||
|
||||
@@ -46,7 +46,6 @@ libbsp_a_SOURCES =
|
||||
|
||||
# startup
|
||||
libbsp_a_SOURCES += ../../shared/bspclean.c ../../shared/bsplibc.c \
|
||||
../shared/startup/bspfatalextension.c \
|
||||
../../shared/bsppost.c startup/bsppredriver.c \
|
||||
startup/bspstart.c ../../sparc/shared/bsppretaskinghook.c \
|
||||
../../sparc/shared/bspgetworkarea.c ../../shared/bootcard.c \
|
||||
|
||||
@@ -25,6 +25,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <leon.h>
|
||||
@@ -32,8 +33,6 @@ extern "C" {
|
||||
#include <rtems/console.h>
|
||||
#include <rtems/irq-extension.h>
|
||||
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
/* SPARC CPU variant: LEON2 */
|
||||
#define LEON2 1
|
||||
|
||||
@@ -73,6 +72,8 @@ extern int CPU_SPARC_HAS_SNOOPING;
|
||||
|
||||
/* Constants */
|
||||
|
||||
#define BSP_RESET_BOARD_AT_EXIT 1
|
||||
|
||||
/*
|
||||
* Information placed in the linkcmds file.
|
||||
*/
|
||||
|
||||
@@ -30,7 +30,6 @@ libbsp_a_SOURCES =
|
||||
|
||||
# startup
|
||||
libbsp_a_SOURCES += ../../shared/bspclean.c ../../shared/bsplibc.c \
|
||||
../shared/startup/bspfatalextension.c \
|
||||
../../shared/bsppost.c ../../shared/bootcard.c startup/bspstart.c \
|
||||
../../sparc/shared/bsppretaskinghook.c startup/bsppredriver.c \
|
||||
../../sparc/shared/bspgetworkarea.c ../../shared/sbrk.c startup/setvec.c \
|
||||
|
||||
@@ -25,6 +25,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <leon.h>
|
||||
@@ -32,8 +33,6 @@ extern "C" {
|
||||
#include <rtems/console.h>
|
||||
#include <rtems/irq-extension.h>
|
||||
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
/* SPARC CPU variant: LEON3 */
|
||||
#define LEON3 1
|
||||
|
||||
@@ -46,6 +45,8 @@ void *bsp_idle_thread( uintptr_t ignored );
|
||||
/* Maximum supported APBUARTs by BSP */
|
||||
#define BSP_NUMBER_OF_TERMIOS_PORTS 8
|
||||
|
||||
#define BSP_RESET_BOARD_AT_EXIT 1
|
||||
|
||||
/*
|
||||
* Network driver configuration
|
||||
*/
|
||||
|
||||
@@ -24,6 +24,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/iosupp.h>
|
||||
|
||||
@@ -26,6 +26,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/iosupp.h>
|
||||
|
||||
@@ -20,6 +20,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#include <bspopts.h>
|
||||
#include <bsp/default-initial-extension.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/iosupp.h>
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user