MIPS: Fix ejtag debug buffer address of per cpu
A message that is not in the archive (sent off-list or not yet received): [email protected]
Jiaxun Yang
Reviewed-byQuoted 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]>Signed-off-by Heiher <[email protected]>---
Reviewed-by Jiaxun Yang <[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@@ -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)
Huacai Chen
Reviewed-byReviewed-by Huacai Chen <[email protected]>
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]>Signed-off-by Heiher <[email protected]>---
Reviewed-by Jiaxun Yang <[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@@ -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)