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
This commit is contained in:
Jordan Justen 2014-01-29 21:44:16 +00:00 committed by jljusten
parent f76e9eba9d
commit 869b17ccdc
1 changed files with 3 additions and 3 deletions

View File

@ -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;
}