\r
PublishPeiMemory ();\r
\r
- if (XenLeaf != 0) {\r
+ if (mXen) {\r
PcdSetBool (PcdPciDisableBusEnumeration, TRUE);\r
} else {\r
TopOfMemory = MemDetect ();\r
}\r
\r
- if (XenLeaf != 0) {\r
+ if (mXen) {\r
DEBUG ((EFI_D_INFO, "Xen was detected\n"));\r
InitializeXen (XenLeaf);\r
}\r
\r
PeiFvInitialization ();\r
\r
- if (XenLeaf != 0) {\r
+ if (mXen) {\r
XenMemMapInitialization ();\r
} else {\r
MemMapInitialization (TopOfMemory);\r
/** @file\r
Platform PEI module include file.\r
\r
- Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
VOID\r
);\r
\r
+extern BOOLEAN mXen;\r
+\r
EFI_STATUS\r
XenGetE820Map (\r
EFI_E820_ENTRY64 **Entries,\r
/**@file\r
Xen Platform PEI support\r
\r
- Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
Copyright (c) 2011, Andrei Warkentin <andreiw@motorola.com>\r
\r
This program and the accompanying materials\r
#include "Platform.h"\r
#include "Xen.h"\r
\r
+BOOLEAN mXen = FALSE;\r
+\r
EFI_XEN_INFO mXenInfo;\r
\r
/**\r
Signature[12] = '\0';\r
\r
if (!AsciiStrCmp ((CHAR8 *) Signature, "XenVMMXenVMM")) {\r
+ mXen = TRUE;\r
return XenLeaf;\r
}\r
}\r