]> 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)
commit4c3592079f4ec5bf401f43e3a00eed5c3a733a61
tree44e91945af7f64a47da280d48449fae1873ee093
parent40fd9720a510b7a59ca07cc33ab9c8559c24605e
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