powerpc/pseries: hcall functions are exported to modules, need _GLOBAL_TOC()
commitc1931e21816a031a5aff7084e7f10eb84e24d8cc
authorAnton Blanchard <anton@samba.org>
Tue, 13 May 2014 10:48:57 +0000 (13 20:48 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 5 Jun 2014 03:21:28 +0000 (5 13:21 +1000)
treeba55bcf0b332652379d19e3b5b21e81d7275f9bf
parent2ac7b0166a9bc743893be3f38e7b1729ce975ab9
powerpc/pseries: hcall functions are exported to modules, need _GLOBAL_TOC()

The hcall macros may call out to c code for tracing, so we need
to set up a valid r2. This fixes an oops found when testing
ibmvscsi as a module.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/pseries/hvCall.S