[PATCH] powerpc/ptrace: Make user_mode() common to PPC32 and PPC64
Michael Ellerman
patch-notifications at ellerman.id.au
Fri Aug 27 23:16:02 AEST 2021
On Tue, 17 Aug 2021 16:00:14 +0000 (UTC), Christophe Leroy wrote:
> Today we have:
>
> #ifdef __powerpc64__
> #define user_mode(regs) ((((regs)->msr) >> MSR_PR_LG) & 0x1)
> #else
> #define user_mode(regs) (((regs)->msr & MSR_PR) != 0)
> #endif
>
> [...]
Applied to powerpc/next.
[1/1] powerpc/ptrace: Make user_mode() common to PPC32 and PPC64
https://git.kernel.org/powerpc/c/19e932eb6ea47f4f37513eb2ae0daee19117765c
cheers
More information about the Linuxppc-dev
mailing list