UPSTREAM: cpu/x86: Support CPUs without rdmsr/wrmsr instructions
Quark does not support the rdmsr and wrmsr instructions. In this case use a SOC specific routine to support the setting of the MTRRs. Migrate the code from FSP 1.1 to be x86 CPU common. Since all rdmsr/wrmsr accesses are being converted, fix the build failure for quark in lib/reg_script.c. Move the soc_msr_x routines and their depencies from romstage/mtrr.c to reg_access.c. TEST=Build and run on Galileo Gen2 BUG=None BRANCH=None Signed-off-by: Lee Leahy <leroy.p.leahy@intel.com> Reviewed-on: https://review.coreboot.org/15839 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org> Change-Id: Ibc68e696d8066fbe2322f446d8c983d3f86052ea Reviewed-on: https://chromium-review.googlesource.com/363935 Commit-Ready: Furquan Shaikh <furquan@chromium.org> Tested-by: Furquan Shaikh <furquan@chromium.org> Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
This commit is contained in:
parent
fe4cabadaf
commit
abc216822d
13 changed files with 148 additions and 128 deletions
|
|
@ -153,3 +153,10 @@ config BOOT_MEDIA_SPI_BUS
|
|||
depends on SPI_FLASH
|
||||
help
|
||||
Most x86 systems which boot from SPI flash boot using bus 0.
|
||||
|
||||
config SOC_SETS_MSRS
|
||||
bool
|
||||
default n
|
||||
help
|
||||
The SoC requires different access methods for reading and writing
|
||||
the MSRs. Use SoC specific routines to handle the MSR access.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue