fix: [PCIe] Fix assert check
Assert check was one off causing problem for corner cases. Upated the check. Signed-off-by: Sachin Kamat <sachin.kamat@intel.com>
This commit is contained in:
parent
74e12f7708
commit
2e2ceabafd
|
@ -1639,7 +1639,7 @@ PciProgramResources (
|
||||||
Root->PciBar[BarType - 1].BaseAddress = Address;
|
Root->PciBar[BarType - 1].BaseAddress = Address;
|
||||||
if (Root->PciBar[BarType - 1].Length > 0) {
|
if (Root->PciBar[BarType - 1].Length > 0) {
|
||||||
ResBase[Index] += Root->PciBar[BarType - 1].Length;
|
ResBase[Index] += Root->PciBar[BarType - 1].Length;
|
||||||
ASSERT (ResBase[Index] <= ResLimit[Index]);
|
ASSERT (ResBase[Index] <= (ResLimit[Index] + 1));
|
||||||
}
|
}
|
||||||
|
|
||||||
ProgramResource (Root, BarType);
|
ProgramResource (Root, BarType);
|
||||||
|
|
Loading…
Reference in New Issue