mirror of https://github.com/acidanthera/audk.git
PcAtChipsetPkg AcpiTimerLib: Fix a logic error
if ((PciRead8 (PCI_LIB_ADDRESS (Bus, Device, Function, EnableRegister) & EnableMask) != EnableMask)) { The bracket place is not right, I think it should be if ((PciRead8 (PCI_LIB_ADDRESS (Bus, Device, Function, EnableRegister)) & EnableMask) != EnableMask) Cc: Ruiyu Ni <ruiyu.ni@intel.com> Cc: Liming Gao <liming.gao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: wang xiaofeng <winggundum82@163.com> Reviewed-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
parent
aa52bace8f
commit
dde4aedc35
|
@ -89,7 +89,7 @@ AcpiTimerLibConstructor (
|
||||||
//
|
//
|
||||||
// If ACPI I/O space is not enabled yet, program ACPI I/O base address and enable it.
|
// If ACPI I/O space is not enabled yet, program ACPI I/O base address and enable it.
|
||||||
//
|
//
|
||||||
if ((PciRead8 (PCI_LIB_ADDRESS (Bus, Device, Function, EnableRegister) & EnableMask) != EnableMask)) {
|
if ((PciRead8 (PCI_LIB_ADDRESS (Bus, Device, Function, EnableRegister)) & EnableMask) != EnableMask) {
|
||||||
PciWrite16 (
|
PciWrite16 (
|
||||||
PCI_LIB_ADDRESS (Bus, Device, Function, PcdGet16 (PcdAcpiIoPciBarRegisterOffset)),
|
PCI_LIB_ADDRESS (Bus, Device, Function, PcdGet16 (PcdAcpiIoPciBarRegisterOffset)),
|
||||||
PcdGet16 (PcdAcpiIoPortBaseAddress)
|
PcdGet16 (PcdAcpiIoPortBaseAddress)
|
||||||
|
|
Loading…
Reference in New Issue