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