Skip to contentSkip to conversation

MIPS: Fix ejtag debug buffer address of per cpu

PATCH Jiaxun Yang 2 participants 2 messages Jul 3, 2020 1 message not in the archive MIPS

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Jiaxun Yang

author Reviewed-by
#1 lore raw
Quoted 10 lines · Heiher

From: Heiher <[email protected]>

We can directly calculate pointer type offset of per cpu by shifting SMP_CPUID_PTRSHIFT.

Cc Paul Burton <[email protected]>
Cc Jiaxun Yang <[email protected]>
Cc Huacai Chen <[email protected]>

---

Btw:
[email protected] have been abandoned, please go to the new
list: [email protected].

Thanks.

Quoted 23 lines
  arch/mips/kernel/genex.S | 2 --
  1 file changed, 2 deletions(-)
arch/mips/kernel/genex.S +0 -2
index a1b966f3578e..a1ebb94b3626 100644
@@ -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)
Reviewed-by
#2 lore raw
Quoted 45 lines · Jiaxun Yang
Quoted 10 lines · Heiher

From: Heiher <[email protected]>

We can directly calculate pointer type offset of per cpu by shifting SMP_CPUID_PTRSHIFT.

Cc Paul Burton <[email protected]>
Cc Jiaxun Yang <[email protected]>
Cc Huacai Chen <[email protected]>

---

Btw:
[email protected] have been abandoned, please go to the new
list: [email protected].

Thanks.

Quoted 23 lines
  arch/mips/kernel/genex.S | 2 --
  1 file changed, 2 deletions(-)
arch/mips/kernel/genex.S +0 -2
index a1b966f3578e..a1ebb94b3626 100644
@@ -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)