From: Jordan Justen Date: Wed, 29 Jan 2014 21:44:16 +0000 (+0000) Subject: OvmfPkg/PlatformPei: Move BootMode detection before mem-init X-Git-Tag: edk2-stable201903~11761 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=869b17ccdc05f7bad76b3dd61ebc6e5d7466e577 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 Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15196 6f19259b-4bc3-4df7-8a09-765794883524 --- 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.
+ Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.
Copyright (c) 2011, Andrei Warkentin 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; }