OvmfPkg/PlatformPei: Add mXen boolean to indicate Xen is running
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@15201 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -424,13 +424,13 @@ InitializePlatform (
|
||||
|
||||
PublishPeiMemory ();
|
||||
|
||||
if (XenLeaf != 0) {
|
||||
if (mXen) {
|
||||
PcdSetBool (PcdPciDisableBusEnumeration, TRUE);
|
||||
} else {
|
||||
TopOfMemory = MemDetect ();
|
||||
}
|
||||
|
||||
if (XenLeaf != 0) {
|
||||
if (mXen) {
|
||||
DEBUG ((EFI_D_INFO, "Xen was detected\n"));
|
||||
InitializeXen (XenLeaf);
|
||||
}
|
||||
@@ -439,7 +439,7 @@ InitializePlatform (
|
||||
|
||||
PeiFvInitialization ();
|
||||
|
||||
if (XenLeaf != 0) {
|
||||
if (mXen) {
|
||||
XenMemMapInitialization ();
|
||||
} else {
|
||||
MemMapInitialization (TopOfMemory);
|
||||
|
Reference in New Issue
Block a user