mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-31 14:23:49 +01:00
powerpc/64: indirect function call use bctrl rather than blrl in ret_from_kernel_thread
blrl is not recommended to use as an indirect function call, as it may corrupt the link stack predictor. This is not a performance critical path but this should be fixed for consistency. Signed-off-by: Nicholas Piggin <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
This commit is contained in:
1 parent
48778464bb
commit
89bbe4c798
1 file changed
+2
-2
@@ -233,12 +233,12 @@ _GLOBAL(ret_from_fork)
|
||||
_GLOBAL(ret_from_kernel_thread)
|
||||
bl schedule_tail
|
||||
REST_NVGPRS(r1)
|
||||
mtlr r14
|
||||
mtctr r14
|
||||
mr r3,r15
|
||||
#ifdef PPC64_ELF_ABI_v2
|
||||
mr r12,r14
|
||||
#endif
|
||||
blrl
|
||||
bctrl
|
||||
li r3,0
|
||||
b .Lsyscall_exit
|
||||
|
||||
|
||||
Reference in new issue
Block a user