]> git.baikalelectronics.ru Git - kernel.git/commit
LoongArch: Fix the write_fcsr() macro
authorQi Hu <huqi@loongson.cn>
Thu, 15 Jun 2023 06:35:52 +0000 (14:35 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Sep 2023 07:42:25 +0000 (09:42 +0200)
commitab5c5c10d0668578b40e76faa316a995b316064b
tree7284bc5754ff9d0de632bd2814b631ab86a31f3d
parent9920a52362a0d37720163e4b7d2de94de92ae470
LoongArch: Fix the write_fcsr() macro

[ Upstream commit 346dc929623cef70ff7832a4fa0ffd1b696e312a ]

The "write_fcsr()" macro uses wrong the positions for val and dest in
asm. Fix it!

Reported-by: Miao HAO <haomiao19@mails.ucas.ac.cn>
Signed-off-by: Qi Hu <huqi@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/loongarch/include/asm/loongarch.h