]> git.baikalelectronics.ru Git - kernel.git/commit
LoongArch: Fix missing fcsr in ptrace's fpr_set
authorQi Hu <huqi@loongson.cn>
Thu, 14 Jul 2022 06:25:50 +0000 (14:25 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Fri, 29 Jul 2022 10:22:33 +0000 (18:22 +0800)
commitba2859668ea9a34cf4a3b0cd60c72fd7c6492b69
tree44e91945af7f64a47da280d48449fae1873ee093
parentabb720dd4a0a9cf9e597944fc7ea9d6cb7755edf
LoongArch: Fix missing fcsr in ptrace's fpr_set

In file ptrace.c, function fpr_set does not copy fcsr data from ubuf
to kbuf. That's the reason why fcsr cannot be modified by ptrace.

This patch fixs this problem and allows users using ptrace to modify
the fcsr.

Co-developed-by: Xu Li <lixu@loongson.cn>
Signed-off-by: Qi Hu <huqi@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/kernel/ptrace.c