OvmfPkg: clean up memory map
Fix IO-APIC range size. Add HPET. Take LAPIC base from PCD and fix range size. 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@13572 6f19259b-4bc3-4df7-8a09-765794883524 MU SOURCE COMMIT:cb678aa85e6199ff28c7ce5d8a9d9eb96a42c851
This commit is contained in:
Родитель
07774a9609
Коммит
2fe9f12107
|
@ -188,29 +188,25 @@ MemMapInitialization (
|
|||
0x4000
|
||||
);
|
||||
|
||||
//
|
||||
// Add PCI MMIO space available to PCI resource allocations
|
||||
//
|
||||
if (TopOfMemory < BASE_2GB) {
|
||||
AddIoMemoryBaseSizeHob (BASE_2GB, 0xFC000000 - BASE_2GB);
|
||||
} else {
|
||||
AddIoMemoryBaseSizeHob (TopOfMemory, 0xFC000000 - TopOfMemory);
|
||||
}
|
||||
|
||||
//
|
||||
// Local APIC range
|
||||
//
|
||||
AddIoMemoryBaseSizeHob (0xFEC80000, SIZE_512KB);
|
||||
|
||||
//
|
||||
// I/O APIC range
|
||||
//
|
||||
AddIoMemoryBaseSizeHob (0xFEC00000, SIZE_512KB);
|
||||
|
||||
//
|
||||
// Video memory + Legacy BIOS region
|
||||
//
|
||||
AddIoMemoryRangeHob (0x0A0000, BASE_1MB);
|
||||
|
||||
//
|
||||
// address purpose size
|
||||
// ------------ -------- -------------------------
|
||||
// max(top, 2g) PCI MMIO 0xFEC00000 - max(top, 2g)
|
||||
// 0xFEC00000 IO-APIC 4 KB
|
||||
// 0xFEC01000 gap 1020 KB
|
||||
// 0xFED00000 HPET 1 KB
|
||||
// 0xFED00400 gap 1023 KB
|
||||
// 0xFEE00000 LAPIC 1 MB
|
||||
//
|
||||
AddIoMemoryRangeHob (TopOfMemory < BASE_2GB ? BASE_2GB : TopOfMemory, 0xFEC00000);
|
||||
AddIoMemoryBaseSizeHob (0xFEC00000, SIZE_4KB);
|
||||
AddIoMemoryBaseSizeHob (0xFED00000, SIZE_1KB);
|
||||
AddIoMemoryBaseSizeHob (PcdGet32(PcdCpuLocalApicBaseAddress), SIZE_1MB);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -55,6 +55,7 @@
|
|||
PeiServicesTablePointerLib
|
||||
PeimEntryPoint
|
||||
MtrrLib
|
||||
PcdLib
|
||||
|
||||
[Pcd]
|
||||
gUefiOvmfPkgTokenSpaceGuid.PcdOvmfMemFvBase
|
||||
|
@ -63,6 +64,7 @@
|
|||
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved
|
||||
gUefiCpuPkgTokenSpaceGuid.PcdCpuLocalApicBaseAddress
|
||||
|
||||
[Ppis]
|
||||
gEfiPeiMasterBootModePpiGuid
|
||||
|
|
Загрузка…
Ссылка в новой задаче