/* Change Logs: Date Author Notes  Bernard first version  zdzn add smp support  */
int rt_hw_cpu_id(void)
/* Change Logs: Date Author Notes  Bernard first version  zdzn add smp support  */
int rt_hw_cpu_id(void)
{
    int cpu_id;
    rt_base_t value;
    __asm__ volatile (
            "mrs %0, mpidr_el1"
            :"=r"(value)
            );
    cpu_id = value & 0xf;
    return cpu_id;
}