From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mx.groups.io with SMTP id smtpd.web10.15151.1677646531793211118 for ; Tue, 28 Feb 2023 20:55:32 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=eYInguPt; spf=pass (domain: intel.com, ip: 134.134.136.100, mailfrom: nathaniel.l.desimone@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1677646532; x=1709182532; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=VsBETo+gSK9DXJLks6LPZFBvJBuoO5TKdcgUBXmPfVg=; b=eYInguPtC6yv6f21YZMjIp7Qm/9nEZgVAupVgbEyDlBmFwPaD+nrNj6F BAGO7UGlUBh4FE8Aqz5ti7RC1QEQN5IQvZdZ2GlPXPESpx3Hkil2hgYC9 xHOhbFV1PTQzfl3g+JiXdNyOPZpL9ns3srkyBGCzxbI3TEpeucMwpt2OE Ee5v8U9/pOP9lKnja2xFMQU2/pW+8tqGBDIDDLtRGqY3bxF8HewNEFrp6 W0F/H9qo2StLYJBn4A0iTNdWWmv02s0MzUEiDdmil8e46aTsumMDlnL+k HC0od3VkgMOB0E6NFjjQXIdXJfxJgpkWS6EZsioxIvKNub5E9JF0CKCgv w==; X-IronPort-AV: E=McAfee;i="6500,9779,10635"; a="399103054" X-IronPort-AV: E=Sophos;i="5.98,223,1673942400"; d="scan'208";a="399103054" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Feb 2023 20:55:31 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10635"; a="706832940" X-IronPort-AV: E=Sophos;i="5.98,223,1673942400"; d="scan'208";a="706832940" Received: from nldesimo-desk.amr.corp.intel.com ([10.24.12.177]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Feb 2023 20:55:30 -0800 From: "Nate DeSimone" To: devel@edk2.groups.io Cc: Nate DeSimone , Andrew Fish , Ray Ni , Michael D Kinney , Chasel Chiu Subject: [PATCH v1] EmulatorPkg: Rename Variable Date: Tue, 28 Feb 2023 20:55:23 -0800 Message-Id: <20230301045524.1044-6-nathaniel.l.desimone@intel.com> X-Mailer: git-send-email 2.39.2.windows.1 In-Reply-To: <20230301045524.1044-1-nathaniel.l.desimone@intel.com> References: <20230301045524.1044-1-nathaniel.l.desimone@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Nate DeSimone Rename PeiCorePe32File to SecCorePe32File, because the variable actually contains the SEC core... not PEI core. Cc: Andrew Fish Cc: Ray Ni Cc: Michael D Kinney Cc: Chasel Chiu Signed-off-by: Nate DeSimone --- EmulatorPkg/Unix/Host/Host.c | 12 ++++++------ EmulatorPkg/Unix/Host/Host.h | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/EmulatorPkg/Unix/Host/Host.c b/EmulatorPkg/Unix/Host/Host.c index 1f29dd00a3..940e1953af 100644 --- a/EmulatorPkg/Unix/Host/Host.c +++ b/EmulatorPkg/Unix/Host/Host.c @@ -1,6 +1,6 @@ /*++ @file -Copyright (c) 2006 - 2022, Intel Corporation. All rights reserved.
+Copyright (c) 2006 - 2023, Intel Corporation. All rights reserved.
Portions copyright (c) 2008 - 2011, Apple Inc. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent @@ -535,7 +535,7 @@ Arguments: LargestRegion - Memory to use for SEC. LargestRegionSize - Size of Memory to use for PEI BootFirmwareVolumeBase - Start of the Boot FV - PeiCorePe32File - SEC PE32 + SecCorePe32File - SEC PE32 Returns: Success means control is transferred and thus we should never return @@ -546,13 +546,13 @@ SecLoadFromCore ( IN UINTN LargestRegion, IN UINTN LargestRegionSize, IN UINTN BootFirmwareVolumeBase, - IN VOID *PeiCorePe32File + IN VOID *SecCorePe32File ) { EFI_STATUS Status; EFI_PHYSICAL_ADDRESS TopOfMemory; VOID *TopOfStack; - EFI_PHYSICAL_ADDRESS PeiCoreEntryPoint; + EFI_PHYSICAL_ADDRESS SecCoreEntryPoint; EFI_SEC_PEI_HAND_OFF *SecCoreData; UINTN PeiStackSize; @@ -597,7 +597,7 @@ SecLoadFromCore ( // // Find the SEC Core Entry Point // - Status = SecPeCoffGetEntryPoint (PeiCorePe32File, (VOID **)&PeiCoreEntryPoint); + Status = SecPeCoffGetEntryPoint (SecCorePe32File, (VOID **)&SecCoreEntryPoint); if (EFI_ERROR (Status)) { return; } @@ -606,7 +606,7 @@ SecLoadFromCore ( // Transfer control to the SEC Core // PeiSwitchStacks ( - (SWITCH_STACK_ENTRY_POINT)(UINTN)PeiCoreEntryPoint, + (SWITCH_STACK_ENTRY_POINT)(UINTN)SecCoreEntryPoint, SecCoreData, (VOID *)gPpiList, TopOfStack diff --git a/EmulatorPkg/Unix/Host/Host.h b/EmulatorPkg/Unix/Host/Host.h index 0c81cdfc01..aecebc0143 100644 --- a/EmulatorPkg/Unix/Host/Host.h +++ b/EmulatorPkg/Unix/Host/Host.h @@ -1,6 +1,6 @@ /*++ @file -Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.
+Copyright (c) 2006 - 2023, Intel Corporation. All rights reserved.
Portions copyright (c) 2008 - 2011, Apple Inc. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent @@ -162,7 +162,7 @@ SecLoadFromCore ( IN UINTN LargestRegion, IN UINTN LargestRegionSize, IN UINTN BootFirmwareVolumeBase, - IN VOID *PeiCoreFile + IN VOID *SecCoreFile ); EFI_STATUS -- 2.30.2