powerpc: trap_is_syscall() helper to hide syscall trap number
authorNicholas Piggin <npiggin@gmail.com>
Thu, 7 May 2020 12:13:31 +0000 (22:13 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 15 May 2020 01:58:54 +0000 (11:58 +1000)
commit912237ea166428edcbf3c137adf12cb987c477f2
treee5397bfdc0e5723782986aeceb77db3a06de4947
parentdb30144b5c9cfb09c6b8b2fa7a9c351c94aa3433
powerpc: trap_is_syscall() helper to hide syscall trap number

A new system call interrupt will be added with a new trap number.
Hide the explicit 0xc00 test behind an accessor to reduce churn
in callers.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
[mpe: Make it a static inline]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200507121332.2233629-3-mpe@ellerman.id.au
arch/powerpc/include/asm/ptrace.h
arch/powerpc/include/asm/syscall.h
arch/powerpc/kernel/process.c
arch/powerpc/kernel/signal.c
arch/powerpc/xmon/xmon.c