forked from Imagelibrary/rtems
score: Add RTEMS_FATAL_SOURCE_BSP
Merge RTEMS_FATAL_SOURCE_BSP_GENERIC and RTEMS_FATAL_SOURCE_BSP_SPECIFIC into new fatal source RTEMS_FATAL_SOURCE_BSP. This makes it easier to figure out the code position given a fatal source and code.
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
#include <assert.h>
|
||||
|
||||
#include <bsp.h>
|
||||
#include <bsp/fatal.h>
|
||||
#include <bsp/irq.h>
|
||||
|
||||
#define EDMA_CHANNELS_PER_GROUP 32U
|
||||
@@ -199,7 +200,7 @@ void mpc55xx_edma_init(void)
|
||||
NULL
|
||||
);
|
||||
if (sc != RTEMS_SUCCESSFUL) {
|
||||
mpc55xx_fatal(MPC55XX_FATAL_EDMA_IRQ_INSTALL);
|
||||
bsp_fatal(MPC55XX_FATAL_EDMA_IRQ_INSTALL);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -283,7 +284,7 @@ void mpc55xx_edma_release_channel(edma_channel_context *ctx)
|
||||
ctx
|
||||
);
|
||||
if (sc != RTEMS_SUCCESSFUL) {
|
||||
mpc55xx_fatal(MPC55XX_FATAL_EDMA_IRQ_REMOVE);
|
||||
bsp_fatal(MPC55XX_FATAL_EDMA_IRQ_REMOVE);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
#include <rtems.h>
|
||||
|
||||
#include <bsp/vectors.h>
|
||||
#include <bsp/generic-fatal.h>
|
||||
#include <bsp/fatal.h>
|
||||
|
||||
#define PPC_EXC_ASSERT_OFFSET(field, off) \
|
||||
RTEMS_STATIC_ASSERT( \
|
||||
@@ -145,7 +145,7 @@ static void ppc_exc_initialize_booke(void *vector_base)
|
||||
|
||||
static void ppc_exc_fatal_error(void)
|
||||
{
|
||||
bsp_generic_fatal(BSP_GENERIC_FATAL_EXCEPTION_INITIALIZATION);
|
||||
bsp_fatal(PPC_FATAL_EXCEPTION_INITIALIZATION);
|
||||
}
|
||||
|
||||
void ppc_exc_initialize_with_vector_base(
|
||||
|
||||
@@ -370,8 +370,8 @@ void ppc_exc_initialize_with_vector_base(
|
||||
* @brief Initializes the exception handling.
|
||||
*
|
||||
* If the initialization fails, then this is a fatal error. The fatal error
|
||||
* source is RTEMS_FATAL_SOURCE_BSP_GENERIC and the fatal error code is
|
||||
* BSP_GENERIC_FATAL_EXCEPTION_INITIALIZATION.
|
||||
* source is RTEMS_FATAL_SOURCE_BSP and the fatal error code is
|
||||
* PPC_FATAL_EXCEPTION_INITIALIZATION.
|
||||
*
|
||||
* Possible error reasons are
|
||||
* - no category set available for the current CPU,
|
||||
|
||||
Reference in New Issue
Block a user