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:
@@ -209,10 +209,6 @@ extern void BSP_shared_interrupt_unmask(int irq);
|
||||
*/
|
||||
extern void BSP_shared_interrupt_mask(int irq);
|
||||
|
||||
typedef enum {
|
||||
LEON3_FATAL_CPU_COUNTER_INIT
|
||||
} leon3_fatal_code;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
*/
|
||||
|
||||
#include <bsp.h>
|
||||
#include <bsp/fatal.h>
|
||||
#include <leon.h>
|
||||
|
||||
#include <rtems/counter.h>
|
||||
@@ -37,7 +38,7 @@ void leon3_cpu_counter_initialize(void)
|
||||
&idx
|
||||
);
|
||||
if (adev == NULL) {
|
||||
rtems_fatal(RTEMS_FATAL_SOURCE_BSP_SPECIFIC, LEON3_FATAL_CPU_COUNTER_INIT);
|
||||
bsp_fatal(LEON3_FATAL_CPU_COUNTER_INIT);
|
||||
}
|
||||
|
||||
gpt = (volatile struct gptimer_regs *) DEV_TO_APB(adev)->start;
|
||||
|
||||
Reference in New Issue
Block a user