diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2024-01-16 20:50:01 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2024-02-27 14:13:13 +0100 |
commit | 4fd930b7f01a863371f7688e3fcdc2303b392f42 (patch) | |
tree | 21a7bf53993d0ebc0154ee70828be4c77522bd6a | |
parent | bsp/qoriq: Use interrupt entry (diff) | |
download | rtems-4fd930b7f01a863371f7688e3fcdc2303b392f42.tar.bz2 |
bsp/qoriq: Use bsp_fatal()
-rw-r--r-- | bsps/include/bsp/fatal.h | 2 | ||||
-rw-r--r-- | 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); } } |