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)
commit16863da82ad1df862778f42a8cb2500d6fd843c2
tree464ad9a583d410983d35b7160f9480ac012bd687
parent308deab9b13f1aa22f714c855a74527c17356924
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