aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/include/asm/smp_32.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sparc/include/asm/smp_32.h')
-rw-r--r--arch/sparc/include/asm/smp_32.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/sparc/include/asm/smp_32.h b/arch/sparc/include/asm/smp_32.h
index d82d7f4c0a79..d7837dcb2525 100644
--- a/arch/sparc/include/asm/smp_32.h
+++ b/arch/sparc/include/asm/smp_32.h
@@ -135,6 +135,11 @@ static inline int hard_smp_processor_id(void)
135 __asm__ __volatile__("lda [%g0] ASI_M_VIKING_TMP1, %0\n\t" 135 __asm__ __volatile__("lda [%g0] ASI_M_VIKING_TMP1, %0\n\t"
136 "nop; nop" : 136 "nop; nop" :
137 "=&r" (cpuid)); 137 "=&r" (cpuid));
138 - leon
139 __asm__ __volatile__( "rd %asr17, %0\n\t"
140 "srl %0, 0x1c, %0\n\t"
141 "nop\n\t" :
142 "=&r" (cpuid));
138 See btfixup.h and btfixupprep.c to understand how a blackbox works. 143 See btfixup.h and btfixupprep.c to understand how a blackbox works.
139 */ 144 */
140 __asm__ __volatile__("sethi %%hi(___b_hard_smp_processor_id), %0\n\t" 145 __asm__ __volatile__("sethi %%hi(___b_hard_smp_processor_id), %0\n\t"