edk2/OvmfPkg/Library/AcpiTimerLib
Jakov Zauzolkov 1506c6da7b OvmfPkg: Replace BaseAcpiTimerLib with BaseRomAcpiTimerLib in PEI
The BaseAcpiTimerLib instance contains a static global variable,
'mAcpiTimerIoAddr', that caches the ACPI timer IO base address. As this
library executes during PEI phase prior to the PEIFV measurement into
PCR0, the value of the variable is included into the measurement. This
causes the PEIFV binary footprint to change, preventing a precomputation
of the expected value needed for remote attestation.

Fix this by using the BaseRomAcpiTimerLib in the PEI phase instead of
the BaseAcpiTimerLib. This library dynamically computes the required
address and does not introduce global variables, keeping the PEIFV
binary unchanged.

Co-authored-by: Simon Ott <simon.ott@aisec.fraunhofer.de>
Signed-off-by: Jakov Zauzolkov <jakov.zauzolkov@aisec.fraunhofer.de>
2026-07-20 12:18:38 +00:00
..
AcpiTimerLib.c OvmfPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
AcpiTimerLib.h OvmfPkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
BaseAcpiTimerLib.c OvmfPkg: Update code to be more C11 compliant by using __func__ 2023-04-10 14:19:57 +00:00
BaseAcpiTimerLib.inf OvmfPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:19 -07:00
BaseAcpiTimerLibBhyve.c OvmfPkg: Add bhyve support into AcpiTimerLib 2020-04-30 13:46:11 +00:00
BaseAcpiTimerLibBhyve.inf OvmfPkg: Add bhyve support into AcpiTimerLib 2020-04-30 13:46:11 +00:00
BaseRomAcpiTimerLib.c OvmfPkg: Update code to be more C11 compliant by using __func__ 2023-04-10 14:19:57 +00:00
BaseRomAcpiTimerLib.inf OvmfPkg: Replace BaseAcpiTimerLib with BaseRomAcpiTimerLib in PEI 2026-07-20 12:18:38 +00:00
DxeAcpiTimerLib.c OvmfPkg: Update code to be more C11 compliant by using __func__ 2023-04-10 14:19:57 +00:00
DxeAcpiTimerLib.inf OvmfPkg: DxeAcpiTimerLib: Support Standalone MM core and drivers 2025-06-19 06:17:18 +00:00