]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
LoongArch: Use correct accessor to read FWPC/MWPC
authorHuacai Chen <chenhuacai@loongson.cn>
Sun, 9 Nov 2025 08:02:01 +0000 (16:02 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Mon, 10 Nov 2025 00:37:06 +0000 (08:37 +0800)
commiteeeeaafa62ea0cd4b86390f657dc0aea73bff4f5
tree2c69654305f91674cd923a6c7faf8ec024678e13
parent4c8a7c9827726f6e987b7a04af8ef58f1c7fe8d3
LoongArch: Use correct accessor to read FWPC/MWPC

CSR.FWPC and CSR.MWPC are 32bit registers, so use csr_read32() rather
than csr_read64() to read the values of FWPC/MWPC.

Cc: stable@vger.kernel.org
Fixes: edffa33c7bb5a73 ("LoongArch: Add hardware breakpoints/watchpoints support")
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/include/asm/hw_breakpoint.h