khypervisor  v1
smp.c
Go to the documentation of this file.
00001 
00002 #include "armv7_p15.h"
00003 #include "smp.h"
00004 
00005 uint32_t smp_processor_id(void)
00006 {
00007     /* Cortex-A15, 
00008      * MPIDR[1:0] - CPUID - 0,1, 2, or 3
00009      * MPIDR[7:2] - Reserved, Read as zero
00010      */
00011     uint32_t id = read_mpidr() & 0x0FF;
00012     return id;
00013 }
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines