[PATCH 2/7] bsps/stm32h7: enable cache and MPU only on Cortex-M7

Sebastian Huber sebastian.huber at embedded-brains.de
Wed Jun 1 08:51:40 UTC 2022


On 30/05/2022 01:36, Karel Gardas wrote:
> diff --git a/bsps/arm/stm32h7/start/bspstarthooks.c b/bsps/arm/stm32h7/start/bspstarthooks.c
> index ef26af5eba..dd8f544e52 100644
> --- a/bsps/arm/stm32h7/start/bspstarthooks.c
> +++ b/bsps/arm/stm32h7/start/bspstarthooks.c
> @@ -101,7 +101,7 @@ void bsp_start_hook_0(void)
>       HAL_Init();
>       SystemInit_ExtMemCtl();
>     }
> -
> +#if __CORTEX_M == 0x07U
>     if ((SCB->CCR & SCB_CCR_IC_Msk) == 0) {
>       SCB_EnableICache();
>     }

The entire patch set is fine, but please keep the black line above.

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