mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-21 08:50:27 +00:00
HV: add cpu model name
The cpu model name would be used to distinguish which hard coded data need to be loaded to boot_cpu_data; Signed-off-by: Victor Sun <victor.sun@intel.com> Acked-by: Kevin Tian <kevin.tian@intel.com>
This commit is contained in:
@@ -236,6 +236,7 @@ struct cpuinfo_x86 {
|
||||
uint8_t x86, x86_model;
|
||||
uint64_t physical_address_mask;
|
||||
uint32_t cpuid_leaves[FEATURE_WORDS];
|
||||
char model_name[64];
|
||||
};
|
||||
|
||||
extern struct cpuinfo_x86 boot_cpu_data;
|
||||
|
@@ -115,6 +115,9 @@
|
||||
#define CPUID_EXTEND_FEATURE 7
|
||||
#define CPUID_MAX_EXTENDED_FUNCTION 0x80000000
|
||||
#define CPUID_EXTEND_FUNCTION_1 0x80000001
|
||||
#define CPUID_EXTEND_FUNCTION_2 0x80000002
|
||||
#define CPUID_EXTEND_FUNCTION_3 0x80000003
|
||||
#define CPUID_EXTEND_FUNCTION_4 0x80000004
|
||||
#define CPUID_EXTEND_ADDRESS_SIZE 0x80000008
|
||||
|
||||
static inline void __cpuid(uint32_t *eax, uint32_t *ebx,
|
||||
|
Reference in New Issue
Block a user