Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linuxkpi/common/include/asm/processor.h
Show All 30 Lines | |||||
#include <sys/types.h> | #include <sys/types.h> | ||||
#include <machine/cpufunc.h> | #include <machine/cpufunc.h> | ||||
#include <machine/cpu.h> | #include <machine/cpu.h> | ||||
#if defined(__i386__) || defined(__amd64__) | #if defined(__i386__) || defined(__amd64__) | ||||
struct cpuinfo_x86 { | struct cpuinfo_x86 { | ||||
uint8_t x86; | uint8_t x86; | ||||
uint16_t x86_clflush_size; | uint16_t x86_clflush_size; | ||||
uint16_t x86_max_cores; | |||||
}; | }; | ||||
#define cpu_relax() cpu_spinwait() | #define cpu_relax() cpu_spinwait() | ||||
extern struct cpuinfo_x86 boot_cpu_data; | extern struct cpuinfo_x86 boot_cpu_data; | ||||
#endif | #endif | ||||
#endif /* _LINUXKPI_ASM_PROCESSOR_H_ */ | #endif /* _LINUXKPI_ASM_PROCESSOR_H_ */ |