]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/PlatformPei/Platform.c
OvmfPkg/PlatformPei: Move BootMode detection before mem-init
[mirror_edk2.git] / OvmfPkg / PlatformPei / Platform.c
index 10ae623dddbc4b9c09440a740c31d010bc9463dd..01460639b1d399d15bce5c485d54e2256a0dfb4d 100644 (file)
@@ -1,7 +1,7 @@
 /**@file\r
   Platform PEI driver\r
 \r
-  Copyright (c) 2006 - 2011, 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
@@ -420,6 +420,8 @@ InitializePlatform (
 \r
   XenLeaf = XenDetect ();\r
 \r
+  BootModeInitialization ();\r
+\r
   PublishPeiMemory ();\r
 \r
   if (XenLeaf != 0) {\r
@@ -445,7 +447,5 @@ InitializePlatform (
 \r
   MiscInitialization ();\r
 \r
-  BootModeInitialization ();\r
-\r
   return EFI_SUCCESS;\r
 }\r