From 4fd930b7f01a863371f7688e3fcdc2303b392f42 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 16 Jan 2024 20:50:01 +0100 Subject: bsp/qoriq: Use bsp_fatal() --- bsps/include/bsp/fatal.h | 2 ++ bsps/powerpc/qoriq/clock/clock-config.c | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'bsps') diff --git a/bsps/include/bsp/fatal.h b/bsps/include/bsp/fatal.h index 1726bfea54..ffdb4bc8e1 100644 --- a/bsps/include/bsp/fatal.h +++ b/bsps/include/bsp/fatal.h @@ -158,6 +158,8 @@ typedef enum { QORIQ_FATAL_RESTART_FAILED, QORIQ_FATAL_RESTART_INSTALL_INTERRUPT, QORIQ_FATAL_RESTART_INTERRUPT_FAILED, + QORIQ_FATAL_CLOCK_INTERRUPT_INSTALL, + QORIQ_FATAL_CLOCK_INTERRUPT_SET_PRIORITY, /* ATSAM fatal codes */ ATSAM_FATAL_XDMA_IRQ_INSTALL = BSP_FATAL_CODE_BLOCK(11), diff --git a/bsps/powerpc/qoriq/clock/clock-config.c b/bsps/powerpc/qoriq/clock/clock-config.c index c25db0581a..746e9975ea 100644 --- a/bsps/powerpc/qoriq/clock/clock-config.c +++ b/bsps/powerpc/qoriq/clock/clock-config.c @@ -38,6 +38,7 @@ #include #include +#include #include #include @@ -120,7 +121,7 @@ static void qoriq_clock_handler_install(void) NULL ); if (sc != RTEMS_SUCCESSFUL) { - rtems_fatal_error_occurred(0xdeadbeef); + bsp_fatal(QORIQ_FATAL_CLOCK_INTERRUPT_SET_PRIORITY); } rtems_interrupt_entry_initialize( @@ -135,7 +136,7 @@ static void qoriq_clock_handler_install(void) &qoriq_clock_entry ); if (sc != RTEMS_SUCCESSFUL) { - rtems_fatal_error_occurred(0xdeadbeef); + bsp_fatal(QORIQ_FATAL_CLOCK_INTERRUPT_INSTALL); } } -- cgit v1.2.3