Acidanthera UEFI Development Kit based on EDK II edk2-stable202311
Go to file
Gabriel Somlo 170ef2d916 OvmfPkg: AcpiTimerLib: Split into multiple phase-specific instances
Remove local power management register access macros in favor of
factored-out ones in OvmfPkg/Include/OvmfPlatforms.h

Next, AcpiTimerLib is split out into three instances, for use during
various stages:

  - BaseRom: used during SEC, PEI_CORE, and PEIM;
  - Dxe:     used during DXE_DRIVER and DXE_RUNTIME_DRIVER;
  - Base:    used by default during all other stages.

Most of the code remains in AcpiTimerLib.c, to be shared by all
instances. The two platform-dependent methods (constructor and
InternalAcpiGetTimerTick) are provided separately by source files
specific to each instance, namely [BaseRom|Base|Dxe]AcpiTimerLib.c.

Since pre-DXE stages can't rely on storing data in global variables,
methods specific to the "BaseRom" instance will call platform
detection macros each time they're invoked.

The "Base" instance calls platform detection macros only from its
constructor, and caches the address required by InternalAcpiTimerTick
in a global variable.

The "Dxe" instance is very similar to "Base", except no platform
detection macros are called at all; instead, the platform type is
read via a dynamic PCD set from PlatformPei.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Gabriel Somlo <somlo@cmu.edu>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16376 6f19259b-4bc3-4df7-8a09-765794883524
2014-11-14 00:38:17 +00:00
AppPkg AppPkg: Disable Lua builds by default. Update the ReadMe file. 2014-11-11 23:15:32 +00:00
ArmPkg ArmPkg/ArmGicLib: select GICv2 mode if SRE is present but unavailable 2014-11-13 16:41:51 +00:00
ArmPlatformPkg ArmPlatformPkg: fix undefined reference to memcpy 2014-11-12 10:01:41 +00:00
BaseTools BaseTools: Fix a cleanall issue. 2014-11-12 08:26:03 +00:00
BeagleBoardPkg ArmPlatformPkg: Increase more ARM address Pcd entries to 64-bit. 2014-11-11 00:43:03 +00:00
Conf EDK II: Add .gitignore 2014-10-14 16:08:15 +00:00
CryptoPkg CryptoPkg Updates to support RFC3161 timestamp signature verification. 2014-11-12 08:51:45 +00:00
DuetPkg EDK II Contributions.txt: Update patch format information 2014-10-31 22:05:50 +00:00
EdkCompatibilityPkg EdkCompatibilityPkg: Add UEFI memory and SMRAM profile support. 2014-11-12 03:30:11 +00:00
EdkShellBinPkg EDK II Contributions.txt: Update patch format information 2014-10-31 22:05:50 +00:00
EdkShellPkg EDK II Contributions.txt: Update patch format information 2014-10-31 22:05:50 +00:00
EmbeddedPkg EmbeddedPkg/Lan9118Dxe: Remove link check in SNP initialization 2014-11-11 00:49:50 +00:00
EmulatorPkg EDK II Contributions.txt: Update patch format information 2014-10-31 22:05:50 +00:00
FatBinPkg EDK II Contributions.txt: Update patch format information 2014-10-31 22:05:50 +00:00
IntelFrameworkModulePkg Try to read key strike even when the TimeOuts value is zero, this will avoid BDS not get user input when TimeOuts value set to zero. 2014-11-06 08:56:54 +00:00
IntelFrameworkPkg EDK II Contributions.txt: Update patch format information 2014-10-31 22:05:50 +00:00
IntelFspPkg Fix an issue on FixedMtreProgramming - AND/OR mask incorrect. 2014-09-28 01:07:13 +00:00
IntelFspWrapperPkg IntelFspPkg/IntelFspWrapperPkg: Fix some typos. 2014-09-03 06:48:38 +00:00
MdeModulePkg MdeModulePkg DxeCore/PiSmmCore: Add UEFI memory and SMRAM profile support. 2014-11-12 03:27:48 +00:00
MdePkg MdePkg: Add RETURN_ADDRESS macro into Base.h. 2014-11-12 03:18:09 +00:00
NetworkPkg Fix a bug in DHCP6 driver when using DUID LLT. 2014-11-12 05:14:07 +00:00
Nt32Pkg EDK II Contributions.txt: Update patch format information 2014-10-31 22:05:50 +00:00
Omap35xxPkg EDK II Contributions.txt: Update patch format information 2014-10-31 22:05:50 +00:00
OptionRomPkg EDK II Contributions.txt: Update patch format information 2014-10-31 22:05:50 +00:00
OvmfPkg OvmfPkg: AcpiTimerLib: Split into multiple phase-specific instances 2014-11-14 00:38:17 +00:00
PcAtChipsetPkg EDK II Contributions.txt: Update patch format information 2014-10-31 22:05:50 +00:00
PerformancePkg EDK II Contributions.txt: Update patch format information 2014-10-31 22:05:50 +00:00
SecurityPkg Fix execution status & DEBUG message level mismatch. EFI_D_ERROR is used only when failure/case can’t be resolved by code. 2014-11-10 05:01:15 +00:00
ShellBinPkg EDK II Contributions.txt: Update patch format information 2014-10-31 22:05:50 +00:00
ShellPkg [PATHC] ShellPkg: control code flow with a PCD 2014-11-12 21:28:51 +00:00
SourceLevelDebugPkg Fix a bug in DebugAgent that hang happens when the ACK for GO is lost. 2014-11-10 08:47:49 +00:00
StdLib StdLib/AppPkg: Add the NOOPT build target and fix a type conversion problem with VS2005. 2014-11-11 22:56:58 +00:00
StdLibPrivateInternalFiles EDK II Contributions.txt: Update patch format information 2014-10-31 22:05:50 +00:00
UefiCpuPkg UefiCpuPkg/CpuDxe: install Mp Service protocol 2014-11-13 18:30:18 +00:00
UnixPkg UnixPkg: Remove UnixPkg files (It is replaced by EmulatorPkg) 2013-07-29 21:09:55 +00:00
.gitignore EDK II: Add .gitignore 2014-10-14 16:08:15 +00:00
BuildNotes2.txt Update to new SVN URL in readme.txt 2013-06-08 05:26:39 +00:00
Edk2Setup.bat Updated version, missed the last two commits and to add the SVN Revision property (last part of the version value). 2014-08-22 16:08:47 +00:00
Maintainers.txt Update some package owners 2014-10-23 01:35:44 +00:00
edksetup.bat Update edksetup.bat to support Microsoft Visual Studio 2013 when building the Nt32Pkg emulation platform (enabled using the --nt32 flag). 2014-10-30 17:09:25 +00:00
edksetup.sh edksetup.sh: Ensure that WORKSPACE points to the top of an edk2 checkout 2014-07-28 17:37:40 +00:00