]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/syscall: Do not check unsupported scv vector on PPC32
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Tue, 9 Feb 2021 19:29:27 +0000 (19:29 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 11 Feb 2021 12:35:12 +0000 (23:35 +1100)
commitb966f2279048ee9f30d83ef8568b99fa40917c54
treeb824737af6a6743238ad51b162d3663ff05074a4
parenteb595eca74067b78d36fb188b555e30f28686fc7
powerpc/syscall: Do not check unsupported scv vector on PPC32

Only book3s/64 has scv. No need to check the 0x7ff0 trap on 32 or 64e.
For that, add a helper trap_is_unsupported_scv() similar to
trap_is_scv().

And ignore the scv parameter in syscall_exit_prepare (Save 14 cycles
346 => 332 cycles)

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/fb87b205ae8eb8c623f33bb316801acf95a831e6.1612898425.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/ptrace.h
arch/powerpc/kernel/interrupt.c