[rtems commit] bsp/qoriq: Use bsp_fatal()

Sebastian Huber sebh at rtems.org
Tue Feb 27 13:16:21 UTC 2024


Module:    rtems
Branch:    master
Commit:    4fd930b7f01a863371f7688e3fcdc2303b392f42
Changeset: http://git.rtems.org/rtems/commit/?id=4fd930b7f01a863371f7688e3fcdc2303b392f42

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Jan 16 20:50:01 2024 +0100

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(-)

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 <libcpu/powerpc-utility.h>
 
 #include <bsp.h>
+#include <bsp/fatal.h>
 #include <bsp/qoriq.h>
 #include <bsp/irq.h>
 
@@ -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);
   }
 }
 



More information about the vc mailing list