]> git.baikalelectronics.ru Git - uboot.git/commit
armv8: layerscape: relocate spin table if EFI_LOADER is enabled
authorMichael Walle <michael@walle.cc>
Mon, 1 Jun 2020 19:53:35 +0000 (21:53 +0200)
committerPriyanka Jain <priyanka.jain@nxp.com>
Mon, 27 Jul 2020 08:46:28 +0000 (14:16 +0530)
commit1153c4b3dbef1062531a4f8e2ba0d6726be37e2d
tree464ad9a583d410983d35b7160f9480ac012bd687
parent12672972e2ed0431b0c078ba9657c124743e8e01
armv8: layerscape: relocate spin table if EFI_LOADER is enabled

On ARM64, a 64kb region is reserved for the runtime services code.
Unfortunately, this code overlaps with the spin table code, which also
needs to be reserved. Thus now that the code is relocatable, allocate a
new page from EFI, copy the spin table code into it, update any pointers
to the old region and the start the secondary CPUs.

Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
arch/arm/cpu/armv8/fsl-layerscape/mp.c