khypervisor  v1
Functions
smp.c File Reference
#include "armv7_p15.h"
#include "smp.h"
Include dependency graph for smp.c:

Go to the source code of this file.

Functions

uint32_t smp_processor_id (void)

Function Documentation

Definition at line 5 of file smp.c.

{
    /* Cortex-A15, 
     * MPIDR[1:0] - CPUID - 0,1, 2, or 3
     * MPIDR[7:2] - Reserved, Read as zero
     */
    uint32_t id = read_mpidr() & 0x0FF;
    return id;
}
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines