summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/SmmAccess/SmmAccessPei.inf
diff options
context:
space:
mode:
authorLaszlo Ersek <lersek@redhat.com>2017-07-04 14:27:19 +0200
committerLaszlo Ersek <lersek@redhat.com>2017-07-05 22:29:23 +0200
commit6812bb7bb5a66f6877bed67fa61ed67679611f67 (patch)
treecba165d9ad2299e330b54bef6a1fa56adffc83dc /OvmfPkg/SmmAccess/SmmAccessPei.inf
parent031e4ce262873a59a7df6dc7869540a947795f3b (diff)
downloadedk2-6812bb7bb5a66f6877bed67fa61ed67679611f67.tar.gz
edk2-6812bb7bb5a66f6877bed67fa61ed67679611f67.tar.bz2
edk2-6812bb7bb5a66f6877bed67fa61ed67679611f67.zip
OvmfPkg/SmmAccess: support extended TSEG size
In SmmAccessPeiEntryPoint(), map TSEG megabyte counts different from 1, 2 and 8 to the MCH_ESMRAMC_TSEG_EXT bit pattern (introduced in the previous patch), for the ESMRAMC.TSEG_SZ bit-field register. (Suggested by Jordan.) In SmramAccessGetCapabilities() -- backing both PEI_SMM_ACCESS_PPI.GetCapabilities() and EFI_SMM_ACCESS2_PROTOCOL.GetCapabilities() --, map the MCH_ESMRAMC_TSEG_EXT bit pattern found in the ESMRAMC.TSEG_SZ bit-field register to a byte count of (mQ35TsegMbytes * SIZE_1MB). (MCH_ESMRAMC_TSEG_EXT is the only possible pattern if none of MCH_ESMRAMC_TSEG_1MB, MCH_ESMRAMC_TSEG_2MB, and MCH_ESMRAMC_TSEG_8MB match.) The new code paths are not exercised just yet; for that, PlatformPei is going to have to set PcdQ35TsegMbytes (and consequently, SmramInternal's "mQ35TsegMbytes") to a value different from 1, 2, and 8. Cc: Jordan Justen <jordan.l.justen@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Diffstat (limited to 'OvmfPkg/SmmAccess/SmmAccessPei.inf')
0 files changed, 0 insertions, 0 deletions