From: Tom Rini Date: Wed, 5 Aug 2020 16:27:19 -0400 Subject: [PATCH] psci: put psci_method in .data section if EFI_LOADER is not enabled In-Reply-To: <20200717142009.1.I33bddfcff61ece321e626b04e34f9b53d016d6f2@changeid> References: <20200717142009.1.I33bddfcff61ece321e626b04e34f9b53d016d6f2@changeid> Message-ID: <20200805202719.GX6965@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, Jul 17, 2020 at 02:20:15PM +0200, Patrick Delaunay wrote: > From: Yann Gautier > > 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 > Signed-off-by: Patrick Delaunay Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: