From f095049c7c5bb24b1f876e86ae5b8bab3baccbc3 Mon Sep 17 00:00:00 2001 From: Matt Joyce Date: Wed, 17 Jul 2024 16:22:03 +0200 Subject: [PATCH] bsps/arm/include: Add include to core_cm33.h CMSIS Include armv7m_cachel1.h in core_cm33.h file to allow access to cache functions. Co-authored-by: Christian Mauderer --- bsps/arm/include/core_cm33.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/bsps/arm/include/core_cm33.h b/bsps/arm/include/core_cm33.h index bb2beebf30..969fc451f8 100644 --- a/bsps/arm/include/core_cm33.h +++ b/bsps/arm/include/core_cm33.h @@ -1,3 +1,6 @@ +/* + * The file was modified by RTEMS contributors. + */ /**************************************************************************//** * @file core_cm33.h * @brief CMSIS Cortex-M33 Core Peripheral Access Layer Header File @@ -2958,6 +2961,15 @@ __STATIC_INLINE uint32_t TZ_NVIC_GetPriority_NS(IRQn_Type IRQn) #endif +#ifdef __rtems__ +/* ########################## Cache functions #################################### */ + +#if ((defined (__ICACHE_PRESENT) && (__ICACHE_PRESENT == 1U)) || \ + (defined (__DCACHE_PRESENT) && (__DCACHE_PRESENT == 1U))) +#include "cachel1_armv7.h" +#endif + +#endif /* __rtems__ */ /* ########################## FPU functions #################################### */ /** \ingroup CMSIS_Core_FunctionInterface