sparc: Add LEON3_ASR17_PROCESSOR_INDEX_SHIFT

Add _LEON3_Get_current_processor().
This commit is contained in:
Sebastian Huber
2014-02-13 13:00:00 +01:00
parent 945853b7cf
commit ad563618ca
6 changed files with 20 additions and 17 deletions

View File

@@ -31,7 +31,7 @@
#if BSP_LEON3_SMP
/* LEON3 SMP support */
rd %asr17, \TMP
srl \TMP, 28, \TMP /* CPU number is upper 4 bits so shift */
srl \TMP, LEON3_ASR17_PROCESSOR_INDEX_SHIFT, \TMP
#else
mov 0, \TMP
#endif