mirror of https://github.com/acidanthera/audk.git
OvmfPkg/PlatformPei: Add RAM for Xen in InitializeRamRegions
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Wei Liu <wei.liu2@citrix.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15207 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
c034906e10
commit
2818c158de
|
@ -168,5 +168,10 @@ InitializeRamRegions (
|
|||
VOID
|
||||
)
|
||||
{
|
||||
if (!mXen) {
|
||||
QemuInitializeRam ();
|
||||
} else {
|
||||
DEBUG ((EFI_D_INFO, "Using memory map provided by Xen\n"));
|
||||
XenPublishRamRegions ();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -213,8 +213,6 @@ MemMapInitialization (
|
|||
AddIoMemoryBaseSizeHob (0xFEC00000, SIZE_4KB);
|
||||
AddIoMemoryBaseSizeHob (0xFED00000, SIZE_1KB);
|
||||
AddIoMemoryBaseSizeHob (PcdGet32(PcdCpuLocalApicBaseAddress), SIZE_1MB);
|
||||
} else {
|
||||
XenPublishRamRegions ();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -354,9 +352,7 @@ InitializePlatform (
|
|||
|
||||
PublishPeiMemory ();
|
||||
|
||||
if (!mXen) {
|
||||
InitializeRamRegions ();
|
||||
}
|
||||
|
||||
if (mXen) {
|
||||
DEBUG ((EFI_D_INFO, "Xen was detected\n"));
|
||||
|
|
Loading…
Reference in New Issue