summaryrefslogtreecommitdiff
path: root/OvmfPkg/PlatformPei
diff options
context:
space:
mode:
authorJordan Justen <jordan.l.justen@intel.com>2014-01-29 21:44:16 +0000
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2014-01-29 21:44:16 +0000
commit869b17ccdc05f7bad76b3dd61ebc6e5d7466e577 (patch)
tree6a721f952318d5553d9d7e65dbcaccea7b0a6cbd /OvmfPkg/PlatformPei
parentf76e9eba9deded0a2a25987256ccd5ca7b828927 (diff)
downloadedk2-platforms-869b17ccdc05f7bad76b3dd61ebc6e5d7466e577.tar.xz
OvmfPkg/PlatformPei: Move BootMode detection before mem-init
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
Diffstat (limited to 'OvmfPkg/PlatformPei')
-rw-r--r--OvmfPkg/PlatformPei/Platform.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/OvmfPkg/PlatformPei/Platform.c b/OvmfPkg/PlatformPei/Platform.c
index 10ae623ddd..01460639b1 100644
--- a/OvmfPkg/PlatformPei/Platform.c
+++ b/OvmfPkg/PlatformPei/Platform.c
@@ -1,7 +1,7 @@
/**@file
Platform PEI driver
- Copyright (c) 2006 - 2011, 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
@@ -420,6 +420,8 @@ InitializePlatform (
XenLeaf = XenDetect ();
+ BootModeInitialization ();
+
PublishPeiMemory ();
if (XenLeaf != 0) {
@@ -445,7 +447,5 @@ InitializePlatform (
MiscInitialization ();
- BootModeInitialization ();
-
return EFI_SUCCESS;
}