mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-23 13:44:33 +02:00
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:
parent
f76e9eba9d
commit
869b17ccdc
@ -1,7 +1,7 @@
|
|||||||
/**@file
|
/**@file
|
||||||
Platform PEI driver
|
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>
|
Copyright (c) 2011, Andrei Warkentin <andreiw@motorola.com>
|
||||||
|
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
@ -420,6 +420,8 @@ InitializePlatform (
|
|||||||
|
|
||||||
XenLeaf = XenDetect ();
|
XenLeaf = XenDetect ();
|
||||||
|
|
||||||
|
BootModeInitialization ();
|
||||||
|
|
||||||
PublishPeiMemory ();
|
PublishPeiMemory ();
|
||||||
|
|
||||||
if (XenLeaf != 0) {
|
if (XenLeaf != 0) {
|
||||||
@ -445,7 +447,5 @@ InitializePlatform (
|
|||||||
|
|
||||||
MiscInitialization ();
|
MiscInitialization ();
|
||||||
|
|
||||||
BootModeInitialization ();
|
|
||||||
|
|
||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user