summaryrefslogtreecommitdiffstats
path: root/arch/sparc/include/asm/smp_32.h
diff options
context:
space:
mode:
authorDaniel Hellstrom <daniel@gaisler.com>2011-04-25 23:43:48 +0200
committerDavid S. Miller <davem@davemloft.net>2011-05-16 22:03:28 +0200
commit5149bed8912f4030f52feb33326cfe794831b184 (patch)
tree72bf22715bcad48b3cdc42f9c734bc9dd42d23fe /arch/sparc/include/asm/smp_32.h
parentsparc32,leon: don't rely on bootloader to mask IRQs (diff)
downloadlinux-5149bed8912f4030f52feb33326cfe794831b184.tar.xz
linux-5149bed8912f4030f52feb33326cfe794831b184.zip
sparc32,leon: added some SMP comments
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com> Signed-off-by: David S. Miller <davem@davemloft.net>
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)
__asm__ __volatile__("lda [%g0] ASI_M_VIKING_TMP1, %0\n\t"
"nop; nop" :
"=&r" (cpuid));
+ - leon
+ __asm__ __volatile__( "rd %asr17, %0\n\t"
+ "srl %0, 0x1c, %0\n\t"
+ "nop\n\t" :
+ "=&r" (cpuid));
See btfixup.h and btfixupprep.c to understand how a blackbox works.
*/
__asm__ __volatile__("sethi %%hi(___b_hard_smp_processor_id), %0\n\t"