]> git.proxmox.com Git - mirror_edk2.git/commitdiff
OvmfPkg: fix the mask for accessing the PIIX4 PMBA [15:6] bitfield
authorjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 12 Sep 2012 07:18:50 +0000 (07:18 +0000)
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 12 Sep 2012 07:18:50 +0000 (07:18 +0000)
The Index Register Base Address bitfield is selected by the binary mask
00000000 00000000 11111111 11000000, 0xFFC0; fix the typo.

Reported-by: Gleb Natapov <gleb@redhat.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13720 6f19259b-4bc3-4df7-8a09-765794883524

OvmfPkg/Library/AcpiTimerLib/AcpiTimerLib.c
OvmfPkg/PlatformPei/Platform.c

index 027912e0f7565d393df6411fea219c2944e54256..8f4a5b3d1e7369a1a7f0dc32178300c2f4e25b61 100644 (file)
@@ -60,7 +60,7 @@ AcpiTimerLibConstructor (
     mPmba = PcdGet16 (PcdAcpiPmBaseAddress);\r
 \r
     PciAndThenOr32 (PCI_LIB_ADDRESS (0,Device,3,0x40),\r
-                    (UINT32) ~0xfc0, mPmba);\r
+                    (UINT32) ~0xFFC0, mPmba);\r
     PciOr8         (PCI_LIB_ADDRESS (0,Device,3,0x04), 0x01);\r
   }\r
 \r
index d91f113693f73fc55bf6a12e73ab301c4f3ea93a..589c5c3804f27d61a8e1842d7bb71f257b5465fd 100644 (file)
@@ -230,7 +230,7 @@ MiscInitialization (
     //\r
     // Set the PM I/O base address to 0x400\r
     //\r
-    PciAndThenOr32 (PCI_LIB_ADDRESS (0, 1, 3, 0x40), (UINT32) ~0xfc0, 0x400);\r
+    PciAndThenOr32 (PCI_LIB_ADDRESS (0, 1, 3, 0x40), (UINT32) ~0xFFC0, 0x400);\r
   }\r
 }\r
 \r