Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c1931e21 authored by Anton Blanchard's avatar Anton Blanchard Committed by Benjamin Herrenschmidt
Browse files

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: default avatarAnton Blanchard <anton@samba.org>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent 2ac7b016
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -106,7 +106,7 @@ END_FTR_SECTION(0, 1); \

	.text

_GLOBAL(plpar_hcall_norets)
_GLOBAL_TOC(plpar_hcall_norets)
	HMT_MEDIUM

	mfcr	r0
@@ -122,7 +122,7 @@ _GLOBAL(plpar_hcall_norets)
	mtcrf	0xff,r0
	blr				/* return r3 = status */

_GLOBAL(plpar_hcall)
_GLOBAL_TOC(plpar_hcall)
	HMT_MEDIUM

	mfcr	r0
@@ -188,7 +188,7 @@ _GLOBAL(plpar_hcall_raw)

	blr				/* return r3 = status */

_GLOBAL(plpar_hcall9)
_GLOBAL_TOC(plpar_hcall9)
	HMT_MEDIUM

	mfcr	r0