summaryrefslogtreecommitdiff
path: root/arch/nds32/include
diff options
context:
space:
mode:
authorVincent Chen <vincent.chen@sifive.com>2021-08-03 12:27:51 +0300
committerPalmer Dabbelt <palmerdabbelt@google.com>2021-08-25 06:54:10 +0300
commit379eb01c21795edb4ca8d342503bd2183a19ec3a (patch)
tree6d168ff8dbf5450ccebf46f29616ac35002cf458 /arch/nds32/include
parentaa3e1ba32e553e611a58145c2eb349802feaa6eb (diff)
downloadlinux-379eb01c21795edb4ca8d342503bd2183a19ec3a.tar.xz
riscv: Ensure the value of FP registers in the core dump file is up to date
The value of FP registers in the core dump file comes from the thread.fstate. However, kernel saves the FP registers to the thread.fstate only before scheduling out the process. If no process switch happens during the exception handling process, kernel will not have a chance to save the latest value of FP registers to thread.fstate. It will cause the value of FP registers in the core dump file may be incorrect. To solve this problem, this patch force lets kernel save the FP register into the thread.fstate if the target task_struct equals the current. Signed-off-by: Vincent Chen <vincent.chen@sifive.com> Reviewed-by: Jisheng Zhang <jszhang@kernel.org> Fixes: b8c8a9590e4f ("RISC-V: Add FP register ptrace support for gdb.") Cc: stable@vger.kernel.org Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to 'arch/nds32/include')
0 files changed, 0 insertions, 0 deletions