mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2026-07-02 10:22:37 +00:00
When enabling LTO on STM32MP2 platform with DEBUG flag, there is an assert in stm32_sdmmc2_read() during SD switch procedure, as the buffer used to read the data is not 4 bytes aligned. To correct that, add an alignment of the struct sd_switch_func_status. Use a 16 bytes alignment to be in line with the other constraints with DMA (see patches that add the __aligned(16) on scr and mmc_ext_csd). Change-Id: I5d715753f6b7a2fa35648d05be9f1c9737609007 Signed-off-by: Yann Gautier <yann.gautier@st.com>