]> git.dujemihanovic.xyz Git - u-boot.git/commit
armv8: layerscape: load function pointer using ADR
authorMichael Walle <michael@walle.cc>
Mon, 1 Jun 2020 19:53:28 +0000 (21:53 +0200)
committerPriyanka Jain <priyanka.jain@nxp.com>
Mon, 27 Jul 2020 08:46:27 +0000 (14:16 +0530)
commit2eca7b97046e96e5cde4431b6635e0b4173b3e40
tree98b34d01ac9e0f408ccc29d62b458a99dcc59372
parentf6c62f1c9e11dd01cc76ce53709679b22678a8ec
armv8: layerscape: load function pointer using ADR

Don't use LDR to load a pointer to a function. This will generate a
literal which cannot be relocated. Use ADR which is PC-relative and
therefore can easily be relocated.

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