]> git.proxmox.com Git - mirror_edk2.git/commitdiff
OvmfPkg/PlatformPei: Move BootMode detection before mem-init
authorJordan Justen <jordan.l.justen@intel.com>
Wed, 29 Jan 2014 21:44:16 +0000 (21:44 +0000)
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 29 Jan 2014 21:44:16 +0000 (21:44 +0000)
This will be needed to update the boot flow for S3 resume.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15196 6f19259b-4bc3-4df7-8a09-765794883524

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