From a1eff44b5ef7ef4cd96ecc54960dcfb18a455fb8 Mon Sep 17 00:00:00 2001 From: jljusten Date: Wed, 12 Sep 2012 07:18:50 +0000 Subject: OvmfPkg: fix the mask for accessing the PIIX4 PMBA [15:6] bitfield The Index Register Base Address bitfield is selected by the binary mask 00000000 00000000 11111111 11000000, 0xFFC0; fix the typo. Reported-by: Gleb Natapov Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13720 6f19259b-4bc3-4df7-8a09-765794883524 --- OvmfPkg/Library/AcpiTimerLib/AcpiTimerLib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'OvmfPkg/Library') diff --git a/OvmfPkg/Library/AcpiTimerLib/AcpiTimerLib.c b/OvmfPkg/Library/AcpiTimerLib/AcpiTimerLib.c index 027912e0f..8f4a5b3d1 100644 --- a/OvmfPkg/Library/AcpiTimerLib/AcpiTimerLib.c +++ b/OvmfPkg/Library/AcpiTimerLib/AcpiTimerLib.c @@ -60,7 +60,7 @@ AcpiTimerLibConstructor ( mPmba = PcdGet16 (PcdAcpiPmBaseAddress); PciAndThenOr32 (PCI_LIB_ADDRESS (0,Device,3,0x40), - (UINT32) ~0xfc0, mPmba); + (UINT32) ~0xFFC0, mPmba); PciOr8 (PCI_LIB_ADDRESS (0,Device,3,0x04), 0x01); } -- cgit v1.2.3