2014-07-10 22:55:32 +00:00
|
|
|
|
|
|
|
#ifndef __MP_H__
|
|
|
|
#define __MP_H__
|
|
|
|
|
2023-10-24 02:28:10 +00:00
|
|
|
#if defined(__x86_64__)
|
2014-07-10 22:55:32 +00:00
|
|
|
uint32_t LAPIC_CPU();
|
|
|
|
|
|
|
|
#define CPU LAPIC_CPU
|
2023-10-24 02:28:10 +00:00
|
|
|
#elif defined(__aarch64__)
|
|
|
|
static inline int ARM_CPU()
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#define CPU ARM_CPU
|
|
|
|
#endif
|
2014-07-10 22:55:32 +00:00
|
|
|
|
|
|
|
#endif /* __MP_H__ */
|
|
|
|
|