]> git.baikalelectronics.ru Git - uboot.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)
commitd3a306b9ce1d94ef7110658a354e0a5a2e97c741
tree98b34d01ac9e0f408ccc29d62b458a99dcc59372
parent9e7716c7b0e64b6e871f007df1d44bf77c3e2f33
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