[PATCH 2/7] bsps/arm: disable cache operations on Cortex-M4

Sebastian Huber sebastian.huber at embedded-brains.de
Mon May 23 12:45:38 UTC 2022


On 16/05/2022 16:02, Karel Gardas wrote:
> ---
>   bsps/arm/shared/cache/cache-v7m.c | 22 ++++++++++++++++++++++
>   1 file changed, 22 insertions(+)
> 
> diff --git a/bsps/arm/shared/cache/cache-v7m.c b/bsps/arm/shared/cache/cache-v7m.c
> index f5a9e208e5..100d38765f 100644
> --- a/bsps/arm/shared/cache/cache-v7m.c
> +++ b/bsps/arm/shared/cache/cache-v7m.c
> @@ -9,21 +9,25 @@
>   #include <rtems.h>
>   #include <chip.h>
>   
> +#if __CORTEX_M != 0x04U
>   #define CPU_DATA_CACHE_ALIGNMENT 32
>   
>   #define CPU_INSTRUCTION_CACHE_ALIGNMENT 32
>   
>   #define CPU_CACHE_SUPPORT_PROVIDES_RANGE_FUNCTIONS
> +#endif

This is file for Cortex-M7. Maybe use __CORTEX_M == 0x07U.

You can probably use a single #if with an #endif before the cachimpl.h 
include.

-- 
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.huber at embedded-brains.de
phone: +49-89-18 94 741 - 16
fax:   +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/


More information about the devel mailing list