[PATCH] MIPS: Fix ejtag debug buffer address of per cpu

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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>
---
 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)
-- 
2.27.0



[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux