smp_mpidr.h 241 B

123456789101112
  1. #ifndef ASMARM_SMP_MIDR_H
  2. #define ASMARM_SMP_MIDR_H
  3. #define hard_smp_processor_id() \
  4. ({ \
  5. unsigned int cpunum; \
  6. __asm__("mrc p15, 0, %0, c0, c0, 5\n" \
  7. : "=r" (cpunum)); \
  8. cpunum &= 0x0F; \
  9. })
  10. #endif