在 2020/7/3 上午8:05, Heiher 写道:
From: Heiher <r@xxxxxx>
We can directly calculate pointer type offset of per cpu
by shifting SMP_CPUID_PTRSHIFT.
Cc: Paul Burton <paulburton@xxxxxxxxxx>
Cc: Jiaxun Yang <jiaxun.yang@xxxxxxxxxxx>
Cc: Huacai Chen <chenhc@xxxxxxxxxx>
Signed-off-by: Heiher <r@xxxxxx>
---
Reviewed-by: Jiaxun Yang <jiaxun.yang@xxxxxxxxxxx>
Btw:
linux-mips@xxxxxxxxxxxxxx have been abandoned, please go to the new
list: linux-mips@xxxxxxxxxxxxxxx.
Thanks.
arch/mips/kernel/genex.S | 2 --
1 file changed, 2 deletions(-)
diff --git a/arch/mips/kernel/genex.S b/arch/mips/kernel/genex.S
index a1b966f3578e..a1ebb94b3626 100644
--- a/arch/mips/kernel/genex.S
+++ b/arch/mips/kernel/genex.S
@@ -369,7 +369,6 @@ NESTED(ejtag_debug_handler, PT_SIZE, sp)
ASM_CPUID_MFC0 k1, ASM_SMP_CPUID_REG
PTR_SRL k1, SMP_CPUID_PTRSHIFT
- PTR_SLL k1, LONGLOG
PTR_LA k0, ejtag_debug_buffer_per_cpu
PTR_ADDU k0, k1
@@ -392,7 +391,6 @@ NESTED(ejtag_debug_handler, PT_SIZE, sp)
#ifdef CONFIG_SMP
ASM_CPUID_MFC0 k1, ASM_SMP_CPUID_REG
PTR_SRL k1, SMP_CPUID_PTRSHIFT
- PTR_SLL k1, LONGLOG
PTR_LA k0, ejtag_debug_buffer_per_cpu
PTR_ADDU k0, k1
LONG_L k1, 0(k0)