summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/global_data.h
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2014-11-09 22:18:56 +0800
committerSimon Glass <sjg@chromium.org>2014-11-21 07:24:10 +0100
commit52f952bf5ecebc1de01269557591bad4ac62a01a (patch)
tree7a4c120112d12c48ef2e8f881dd4f67f79e04d86 /arch/x86/include/asm/global_data.h
parentf67cd51e654ba6498230314b6e82b4dbbd4bfca7 (diff)
downloadtalos-obmc-uboot-52f952bf5ecebc1de01269557591bad4ac62a01a.tar.gz
talos-obmc-uboot-52f952bf5ecebc1de01269557591bad4ac62a01a.zip
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.h5
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 9eae228677..3e3073ae5c 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() */
OpenPOWER on IntegriCloud