summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/mtrr.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-04-29 22:25:59 -0600
committerSimon Glass <sjg@chromium.org>2015-04-30 16:13:38 -0600
commit45b5a37836d552db30ab571d8ba67f12d7ba23b1 (patch)
treecbfda1472f00b123b6dd7872deedac0fc381612c /arch/x86/include/asm/mtrr.h
parent6f41e0e7bcdc58e9e8af89988043893d5876bf7a (diff)
downloadblackbird-obmc-uboot-45b5a37836d552db30ab571d8ba67f12d7ba23b1.tar.gz
blackbird-obmc-uboot-45b5a37836d552db30ab571d8ba67f12d7ba23b1.zip
x86: Add multi-processor init
Most modern x86 CPUs include more than one CPU core. The OS normally requires that these 'Application Processors' (APs) be brought up by the boot loader. Add the required support to U-Boot to init additional APs. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/x86/include/asm/mtrr.h')
-rw-r--r--arch/x86/include/asm/mtrr.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/x86/include/asm/mtrr.h b/arch/x86/include/asm/mtrr.h
index 3841593cd5..3ad617cb4a 100644
--- a/arch/x86/include/asm/mtrr.h
+++ b/arch/x86/include/asm/mtrr.h
@@ -34,8 +34,10 @@
/* Number of MTRRs supported */
#define MTRR_COUNT 8
-#define NUM_FIXED_RANGES 88
-#define RANGES_PER_FIXED_MTRR 8
+#define NUM_FIXED_MTRRS 11
+#define RANGES_PER_FIXED_MTRR 8
+#define NUM_FIXED_RANGES (NUM_FIXED_MTRRS * RANGES_PER_FIXED_MTRR)
+
#define MTRR_FIX_64K_00000_MSR 0x250
#define MTRR_FIX_16K_80000_MSR 0x258
#define MTRR_FIX_16K_A0000_MSR 0x259
OpenPOWER on IntegriCloud