]> git.proxmox.com Git - mirror_edk2.git/commit - OvmfPkg/Library/AcpiTimerLib/BaseAcpiTimerLib.c
OvmfPkg: AcpiTimerLib: Use global variable during PEI_CORE and PEIM
authorGabriel Somlo <somlo@cmu.edu>
Fri, 14 Nov 2014 00:38:35 +0000 (00:38 +0000)
committerjljusten <jljusten@Edk2>
Fri, 14 Nov 2014 00:38:35 +0000 (00:38 +0000)
commitf122712b42af3d63902c2c141e90d2c200df6790
treec7c42ddb1f3155f00056bc00ff6ccc34ef49f4d1
parent170ef2d91612350fd1d1bac9d77b3ce0bffda714
OvmfPkg: AcpiTimerLib: Use global variable during PEI_CORE and PEIM

Since in OVMF both PEI_CORE and PEIM run from RAM, and thus may
utilize global variables, use the "Base" AcpiTimerLib instance
(instead of BaseRom) to take advantage of the improved efficiency
of storing the timer register IO address in a global variable.

This leaves only SEC using the BaseRomAcpiTimerLib instance.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Gabriel Somlo <somlo@cmu.edu>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16377 6f19259b-4bc3-4df7-8a09-765794883524
OvmfPkg/Library/AcpiTimerLib/BaseAcpiTimerLib.c
OvmfPkg/Library/AcpiTimerLib/BaseAcpiTimerLib.inf
OvmfPkg/Library/AcpiTimerLib/BaseRomAcpiTimerLib.inf
OvmfPkg/OvmfPkgIa32.dsc
OvmfPkg/OvmfPkgIa32X64.dsc
OvmfPkg/OvmfPkgX64.dsc