]> git.proxmox.com Git - mirror_edk2.git/commit
UefiCpuPkg/MtrrLib: Add MtrrSetMemoryAttributeInMtrrSettings()
authorMichael Kinney <michael.d.kinney@intel.com>
Tue, 8 Dec 2015 05:26:26 +0000 (05:26 +0000)
committervanjeff <vanjeff@Edk2>
Tue, 8 Dec 2015 05:26:26 +0000 (05:26 +0000)
commitb970ed6829d973d48e1a5b73d5de1d969c2ee384
tree9cc78ef8164f2c6d374c27cf25bd77339b5ed5ca
parent16c2d37e9ab008e3be7964ab689fe150e90df88f
UefiCpuPkg/MtrrLib: Add MtrrSetMemoryAttributeInMtrrSettings()

Add new API MtrrSetMemoryAttributeInMtrrSettings() in MtrrLib. Platform could
use this API to set MTRR setting into local MTRR settings buffer instead of
MTRRs. At last, platform could use MtrrSetAllMtrrs() to set the MTRR settings
into MTRRs totally. It could improve MTRRs programming performance obviously,
specially when platform is going to program a set of MTRRs.

Cc: Feng Tian <feng.tian@intel.com>
Cc: Michael Kinney <michael.d.kinney@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com>
Signed-off-by: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19162 6f19259b-4bc3-4df7-8a09-765794883524
UefiCpuPkg/Include/Library/MtrrLib.h
UefiCpuPkg/Library/MtrrLib/MtrrLib.c