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:
Sebastian Huber
2014-02-17 11:40:18 +01:00
parent b39e055a49
commit 33cb8bf64d
41 changed files with 205 additions and 254 deletions

View File

@@ -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

View File

@@ -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;