Thread (5 messages) flat view 5 messages, 4 authors, 2021-08-27

Re: [PATCH] powerpc/32: indirect function call use bctrl rather than blrl in ret_from_kernel_thread

From: Segher Boessenkool <hidden>
Date: 2021-08-20 17:24:25
Also in: lkml

On Fri, Aug 20, 2021 at 10:15:11PM +1000, Michael Ellerman wrote:
Christophe Leroy [off-list ref] writes:
quoted
Copied from commit 89bbe4c798bc ("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.
Do we know if any 32-bit CPUs have a link stack predictor or similar?
74xx do.


Segher
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help