]> git.baikalelectronics.ru Git - kernel.git/commit
powernv: Use _GLOBAL_TOC for opal wrappers
authorJeremy Kerr <jk@ozlabs.org>
Wed, 22 Oct 2014 03:32:52 +0000 (11:32 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 23 Oct 2014 02:57:18 +0000 (13:57 +1100)
commit08a1f6b72d8e18b305e9b802d149770fa501e004
treed6759e21e780d7c9247e287380cf17a9ab206e7e
parent2d323310e6482d67622f23068d4e1d3c61bacba8
powernv: Use _GLOBAL_TOC for opal wrappers

Currently, we can't call opal wrappers from modules when using the LE
ABIv2, which requires a TOC init. If we do we'll try and load the opal
entry point using the wrong toc and probably explode or worse jump to
the wrong address.

Nothing in upstream is making opal calls from a module, but we do export
one of the wrappers so we should fix this anyway.

This change uses the _GLOBAL_TOC() macro (rather than _GLOBAL) for the
opal wrappers, so that we can do non-local calls to them.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/opal-wrappers.S