[PATCH] powerpc/64s: Use symbolic macros for function entry encoding

Naveen N. Rao naveen.n.rao at linux.vnet.ibm.com
Tue Mar 9 21:42:41 AEDT 2021


On 2021/03/09 06:15PM, Michael Ellerman wrote:
> In ppc_function_entry() we look for a specific set of instructions by
> masking the instructions and comparing with a known value. Currently
> those known values are just literal hex values, and we recently
> discovered one of them was wrong.
> 
> Instead construct the values using the existing constants we have for
> defining various fields of instructions.
> 
> Suggested-by: Christophe Leroy <christophe.leroy at csgroup.eu>
> Signed-off-by: Michael Ellerman <mpe at ellerman.id.au>
> ---
>  arch/powerpc/include/asm/code-patching.h | 7 ++++---
>  1 file changed, 4 insertions(+), 3 deletions(-)

Thanks,
Acked-by: Naveen N. Rao <naveen.n.rao at linux.vnet.ibm.com>

- Naveen



More information about the Linuxppc-dev mailing list