[PATCH] psci: put psci_method in .data section if EFI_LOADER is not enabled

Tom Rini trini at konsulko.com
Wed Aug 5 22:27:19 CEST 2020

On Fri, Jul 17, 2020 at 02:20:15PM +0200, Patrick Delaunay wrote:

> From: Yann Gautier <yann.gautier at st.com>
> Move the variable psci_method in .data section when EFI is not
> activated and the psci driver safely access it before relocation.
> Without this patch the variable is located in .bss section
> and the psci probe requested before relocation corrupts the device
> tree (probe is requested by board_f.c::print_resetinfo()).
> When EFI_LOADER is activated, this variable in already located in the
> .data.efi_runtime section by __efi_runtime_data.
> Signed-off-by: Yann Gautier <yann.gautier at st.com>
> Signed-off-by: Patrick Delaunay <patrick.delaunay at st.com>

Applied to u-boot/master, thanks!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200805/49d7339d/attachment.sig>

More information about the U-Boot mailing list