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:
@@ -1,7 +1,7 @@
|
||||
/**@file
|
||||
Xen Platform PEI support
|
||||
|
||||
Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2011, Andrei Warkentin <andreiw@motorola.com>
|
||||
|
||||
This program and the accompanying materials
|
||||
@@ -31,6 +31,8 @@
|
||||
#include "Platform.h"
|
||||
#include "Xen.h"
|
||||
|
||||
BOOLEAN mXen = FALSE;
|
||||
|
||||
EFI_XEN_INFO mXenInfo;
|
||||
|
||||
/**
|
||||
@@ -131,6 +133,7 @@ XenDetect (
|
||||
Signature[12] = '\0';
|
||||
|
||||
if (!AsciiStrCmp ((CHAR8 *) Signature, "XenVMMXenVMM")) {
|
||||
mXen = TRUE;
|
||||
return XenLeaf;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user