summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/PlatformPei/Xen.c
diff options
context:
space:
mode:
authorgikidy <gikidy@6f19259b-4bc3-4df7-8a09-765794883524>2011-08-25 03:19:57 +0000
committergikidy <gikidy@6f19259b-4bc3-4df7-8a09-765794883524>2011-08-25 03:19:57 +0000
commit670a64e7b79568db83b4dfca06eda9ac52e15423 (patch)
treea878ddf625ca73c1e20416225be90b5b697f9032 /OvmfPkg/PlatformPei/Xen.c
parente0afa48970f79977eb8bd4a53ff02d2c81cf814c (diff)
downloadedk2-670a64e7b79568db83b4dfca06eda9ac52e15423.tar.gz
edk2-670a64e7b79568db83b4dfca06eda9ac52e15423.tar.bz2
edk2-670a64e7b79568db83b4dfca06eda9ac52e15423.zip
Fix build crash while using MSFT to build OVMF, also fix some build warning report for PCD type issues.
Signed-off-by: gikidy Reviewed-by: jcarsey git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12202 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'OvmfPkg/PlatformPei/Xen.c')
-rw-r--r--OvmfPkg/PlatformPei/Xen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/OvmfPkg/PlatformPei/Xen.c b/OvmfPkg/PlatformPei/Xen.c
index 1bb6b50a4d..a720b91b99 100644
--- a/OvmfPkg/PlatformPei/Xen.c
+++ b/OvmfPkg/PlatformPei/Xen.c
@@ -66,8 +66,8 @@ XenConnect (
AsmCpuid (XenLeaf + 1, &XenVersion, NULL, NULL, NULL);
DEBUG ((EFI_D_ERROR, "Detected Xen version %d.%d\n",
XenVersion >> 16, XenVersion & 0xFFFF));
- mXenInfo.VersionMajor = XenVersion >> 16;
- mXenInfo.VersionMinor = XenVersion & 0xFFFF;
+ mXenInfo.VersionMajor = (UINT16)(XenVersion >> 16);
+ mXenInfo.VersionMinor = (UINT16)(XenVersion & 0xFFFF);
/* TBD: Locate hvm_info and reserve it away. */
mXenInfo.HvmInfo = NULL;