OSDN Git Service

xtensa: improve call0 ABI probing
authorMax Filippov <jcmvbkbc@gmail.com>
Fri, 13 May 2022 15:11:14 +0000 (08:11 -0700)
committerMax Filippov <jcmvbkbc@gmail.com>
Tue, 17 May 2022 10:35:43 +0000 (03:35 -0700)
commit5cc5f19f884a75f0bf96b95b4292fcc81effd755
treea751a2cec798c43780f333a1bd2d4d2583833c07
parentd74862007e0849fad8ba86447e6f05928f920640
xtensa: improve call0 ABI probing

When call0 userspace ABI support by probing is enabled instructions that
cause illegal instruction exception when PS.WOE is clear are retried
with PS.WOE set before calling c-level exception handler. Record user pc
at which PS.WOE was set in the fast exception handler and clear PS.WOE
in the c-level exception handler if we get there from the same address.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/include/asm/thread_info.h
arch/xtensa/kernel/asm-offsets.c
arch/xtensa/kernel/entry.S
arch/xtensa/kernel/traps.c