diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2014-11-09 14:18:56 (GMT) |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2014-11-21 06:24:10 (GMT) |
commit | 52f952bf5ecebc1de01269557591bad4ac62a01a (patch) | |
tree | 7a4c120112d12c48ef2e8f881dd4f67f79e04d86 /arch/x86/include/asm/global_data.h | |
parent | f67cd51e654ba6498230314b6e82b4dbbd4bfca7 (diff) | |
download | u-boot-52f952bf5ecebc1de01269557591bad4ac62a01a.tar.xz |
x86: Do CPU identification in the early phase
The CPU identification happens in x86_cpu_init_f() and corresponding
fields are saved in the global data for later use.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/x86/include/asm/global_data.h')
-rw-r--r-- | arch/x86/include/asm/global_data.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86/include/asm/global_data.h b/arch/x86/include/asm/global_data.h index 9eae228..3e3073a 100644 --- a/arch/x86/include/asm/global_data.h +++ b/arch/x86/include/asm/global_data.h @@ -13,6 +13,11 @@ /* Architecture-specific global data */ struct arch_global_data { struct global_data *gd_addr; /* Location of Global Data */ + uint8_t x86; /* CPU family */ + uint8_t x86_vendor; /* CPU vendor */ + uint8_t x86_model; + uint8_t x86_mask; + uint32_t x86_device; uint64_t tsc_base; /* Initial value returned by rdtsc() */ uint32_t tsc_base_kclocks; /* Initial tsc as a kclocks value */ uint32_t tsc_prev; /* For show_boot_progress() */ |