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

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

powerpc: Exported functions __clear_user and copy_page use r2 so need _GLOBAL_TOC()



__clear_user and copy_page load from the TOC and are also exported
to modules. This means we have to use _GLOBAL_TOC() so that we
create the global entry point that sets up the TOC.

Signed-off-by: default avatarAnton Blanchard <anton@samba.org>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent 6d97d7a2
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -16,7 +16,7 @@ PPC64_CACHES:
        .tc             ppc64_caches[TC],ppc64_caches
        .tc             ppc64_caches[TC],ppc64_caches
        .section        ".text"
        .section        ".text"


_GLOBAL(copy_page)
_GLOBAL_TOC(copy_page)
BEGIN_FTR_SECTION
BEGIN_FTR_SECTION
	lis	r5,PAGE_SIZE@h
	lis	r5,PAGE_SIZE@h
FTR_SECTION_ELSE
FTR_SECTION_ELSE
+1 −1
Original line number Original line Diff line number Diff line
@@ -77,7 +77,7 @@ err3; stb r0,0(r3)
	mr	r3,r4
	mr	r3,r4
	blr
	blr


_GLOBAL(__clear_user)
_GLOBAL_TOC(__clear_user)
	cmpdi	r4,32
	cmpdi	r4,32
	neg	r6,r3
	neg	r6,r3
	li	r0,0
	li	r0,0