metal-cos/sys/include/mp.h

19 lines
238 B
C

#ifndef __MP_H__
#define __MP_H__
#if defined(__x86_64__)
uint32_t LAPIC_CPU();
#define CPU LAPIC_CPU
#elif defined(__aarch64__)
static inline unsigned int ARM_CPU()
{
return 0;
}
#define CPU ARM_CPU
#endif
#endif /* __MP_H__ */