mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-24 22:24:37 +02:00
OvmfPkg/PlatformPei: assign PciSize on both i440fx/q35 branches explicitly
In the MemMapInitialization() function, we currently have a common PciSize assignment, shared between i440fx and q35. In order to simplify the rest of this series, lift and duplicate the assignment identically to both board-specific branches. Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org> Cc: Gerd Hoffmann <kraxel@redhat.com> Cc: Jordan Justen <jordan.l.justen@intel.com> Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=1814 Ref: https://bugzilla.redhat.com/show_bug.cgi?id=1666941 Ref: https://bugzilla.redhat.com/show_bug.cgi?id=1701710 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
This commit is contained in:
parent
3b7a897cd8
commit
60e95bf509
@ -190,8 +190,10 @@ MemMapInitialization (
|
|||||||
ASSERT (TopOfLowRam <= PciExBarBase);
|
ASSERT (TopOfLowRam <= PciExBarBase);
|
||||||
ASSERT (PciExBarBase <= MAX_UINT32 - SIZE_256MB);
|
ASSERT (PciExBarBase <= MAX_UINT32 - SIZE_256MB);
|
||||||
PciBase = (UINT32)(PciExBarBase + SIZE_256MB);
|
PciBase = (UINT32)(PciExBarBase + SIZE_256MB);
|
||||||
|
PciSize = 0xFC000000 - PciBase;
|
||||||
} else {
|
} else {
|
||||||
PciBase = (TopOfLowRam < BASE_2GB) ? BASE_2GB : TopOfLowRam;
|
PciBase = (TopOfLowRam < BASE_2GB) ? BASE_2GB : TopOfLowRam;
|
||||||
|
PciSize = 0xFC000000 - PciBase;
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
@ -207,7 +209,6 @@ MemMapInitialization (
|
|||||||
// 0xFED20000 gap 896 KB
|
// 0xFED20000 gap 896 KB
|
||||||
// 0xFEE00000 LAPIC 1 MB
|
// 0xFEE00000 LAPIC 1 MB
|
||||||
//
|
//
|
||||||
PciSize = 0xFC000000 - PciBase;
|
|
||||||
AddIoMemoryBaseSizeHob (PciBase, PciSize);
|
AddIoMemoryBaseSizeHob (PciBase, PciSize);
|
||||||
PcdStatus = PcdSet64S (PcdPciMmio32Base, PciBase);
|
PcdStatus = PcdSet64S (PcdPciMmio32Base, PciBase);
|
||||||
ASSERT_RETURN_ERROR (PcdStatus);
|
ASSERT_RETURN_ERROR (PcdStatus);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user