]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/PciHostBridgeDxe: Fix a Base/Limit comparing bug
authorRuiyu Ni <ruiyu.ni@intel.com>
Fri, 29 Apr 2016 09:38:51 +0000 (17:38 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Wed, 11 May 2016 00:53:36 +0000 (08:53 +0800)
commitf9607bef04a9abb698f9f8b4518b7955dc326521
treeb0599681776902beaf8dc7a64ddf4b05a92f87ee
parent814f4306d8f72c56512765de4de36bce774ce62a
MdeModulePkg/PciHostBridgeDxe: Fix a Base/Limit comparing bug

When the aperture base equals to aperture limit, the old code treats
the aperture as non-existent. It's not correct because it indicates
a range starting with base and the length is 1.
The new code corrects the comparing bug.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridge.c
MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciRootBridgeIo.c