]> Gentwo Git Trees - linux/.git/commit
LoongArch: Use physical addresses for CSR_MERRENTRY/CSR_TLBRENTRY
authorHuacai Chen <chenhuacai@loongson.cn>
Sun, 9 Nov 2025 08:02:00 +0000 (16:02 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Mon, 10 Nov 2025 00:37:06 +0000 (08:37 +0800)
commit4e67526840fc55917581b90f6a4b65849a616dd8
tree4ac4ce616f210fefe27042fc6e164246512e9552
parentf28abb9f96e65a28d46885afd6b70cfc4d5df5a2
LoongArch: Use physical addresses for CSR_MERRENTRY/CSR_TLBRENTRY

Now we use virtual addresses to fill CSR_MERRENTRY/CSR_TLBRENTRY, but
hardware hope physical addresses. Now it works well because the high
bits are ignored above PA_BITS (48 bits), but explicitly use physical
addresses can avoid potential bugs. So fix it.

Cc: stable@vger.kernel.org
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/kernel/traps.c