From 1421b9f7c0e7d02b4277dd77904268c36af37da5 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 6 Mar 2024 08:13:49 +0100 Subject: [PATCH] bsps/aarch64: Use BSP fatal error --- bsps/aarch64/include/bsp/aarch64-mmu.h | 2 +- bsps/include/bsp/fatal.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/bsps/aarch64/include/bsp/aarch64-mmu.h b/bsps/aarch64/include/bsp/aarch64-mmu.h index 8c69705230..ce2295bb04 100644 --- a/bsps/aarch64/include/bsp/aarch64-mmu.h +++ b/bsps/aarch64/include/bsp/aarch64-mmu.h @@ -371,7 +371,7 @@ aarch64_mmu_set_translation_table_entries( ); if ( sc != RTEMS_SUCCESSFUL ) { - rtems_fatal_error_occurred( sc ); + bsp_fatal( AARCH64_FATAL_MMU_CANNOT_MAP_BLOCK ); } } diff --git a/bsps/include/bsp/fatal.h b/bsps/include/bsp/fatal.h index b41ef2d5c2..98928e4756 100644 --- a/bsps/include/bsp/fatal.h +++ b/bsps/include/bsp/fatal.h @@ -220,6 +220,9 @@ typedef enum { /* TMS570 fatal codes */ TMS570_FATAL_RTI_IRQ_INSTALL = BSP_FATAL_CODE_BLOCK(18), + + /* AArch64 fatal codes */ + AARCH64_FATAL_MMU_CANNOT_MAP_BLOCK = BSP_FATAL_CODE_BLOCK(19), } bsp_fatal_code; RTEMS_NO_RETURN static inline void