summaryrefslogtreecommitdiff
path: root/arch/microblaze/include
diff options
context:
space:
mode:
authorHuacai Chen <chenhuacai@loongson.cn>2023-08-26 17:21:57 +0300
committerHuacai Chen <chenhuacai@loongson.cn>2023-08-26 17:21:57 +0300
commit656f9aec07dba7c61d469727494a5d1b18d0bef4 (patch)
treeeb7b6532106a1984a66ca59d5c3b5a7f7030e87a /arch/microblaze/include
parentc337c849ab528241897ddfb6f334912ead0bfd66 (diff)
downloadlinux-656f9aec07dba7c61d469727494a5d1b18d0bef4.tar.xz
LoongArch: Ensure FP/SIMD registers in the core dump file is up to date
This is a port of commit 379eb01c21795edb4c ("riscv: Ensure the value of FP registers in the core dump file is up to date"). The values of FP/SIMD registers in the core dump file come from the thread.fpu. However, kernel saves the FP/SIMD registers only before scheduling out the process. If no process switch happens during the exception handling, kernel will not have a chance to save the latest values of FP/SIMD registers. So it may cause their values in the core dump file incorrect. To solve this problem, force fpr_get()/simd_get() to save the FP/SIMD registers into the thread.fpu if the target task equals the current task. Cc: stable@vger.kernel.org Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'arch/microblaze/include')
0 files changed, 0 insertions, 0 deletions