From nobody Fri May 3 23:46:05 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Authentication-Results: mx.zoho.com; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org; Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1493024244412690.8212062093768; Mon, 24 Apr 2017 01:57:24 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 700332195407F; Mon, 24 Apr 2017 01:57:21 -0700 (PDT) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id B3C282195407C for ; Mon, 24 Apr 2017 01:57:20 -0700 (PDT) Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Apr 2017 01:57:20 -0700 Received: from shwde7172.ccr.corp.intel.com ([10.239.9.14]) by orsmga005.jf.intel.com with ESMTP; 24 Apr 2017 01:57:18 -0700 X-Original-To: edk2-devel@lists.01.org X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,243,1488873600"; d="scan'208";a="91417596" From: Liming Gao To: edk2-devel@lists.01.org Date: Mon, 24 Apr 2017 16:57:14 +0800 Message-Id: <1493024234-16944-1-git-send-email-liming.gao@intel.com> X-Mailer: git-send-email 2.8.0.windows.1 Subject: [edk2] [Patch] MdeModulePkg: Update PiSmmCore to set correct ImageAddress into LoadedImage X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Star Zeng MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail: RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Cc: Star Zeng Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao Reviewed-by: Star Zeng --- MdeModulePkg/Core/PiSmmCore/Dispatcher.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MdeModulePkg/Core/PiSmmCore/Dispatcher.c b/MdeModulePkg/Core/P= iSmmCore/Dispatcher.c index b2a6822..f32bbbd 100644 --- a/MdeModulePkg/Core/PiSmmCore/Dispatcher.c +++ b/MdeModulePkg/Core/PiSmmCore/Dispatcher.c @@ -596,7 +596,7 @@ SmmLoadImage ( } CopyMem (DriverEntry->LoadedImage->FilePath, FilePath, GetDevicePathSize= (FilePath)); =20 - DriverEntry->LoadedImage->ImageBase =3D (VOID *)(UINTN)DriverEntry->= ImageBuffer; + DriverEntry->LoadedImage->ImageBase =3D (VOID *)(UINTN) ImageContext= .ImageAddress; DriverEntry->LoadedImage->ImageSize =3D ImageContext.ImageSize; DriverEntry->LoadedImage->ImageCodeType =3D EfiRuntimeServicesCode; DriverEntry->LoadedImage->ImageDataType =3D EfiRuntimeServicesData; @@ -615,7 +615,7 @@ SmmLoadImage ( } CopyMem (DriverEntry->SmmLoadedImage.FilePath, FilePath, GetDevicePathSi= ze(FilePath)); =20 - DriverEntry->SmmLoadedImage.ImageBase =3D (VOID *)(UINTN)DriverEntry->Im= ageBuffer; + DriverEntry->SmmLoadedImage.ImageBase =3D (VOID *)(UINTN) ImageContext.I= mageAddress; DriverEntry->SmmLoadedImage.ImageSize =3D ImageContext.ImageSize; DriverEntry->SmmLoadedImage.ImageCodeType =3D EfiRuntimeServicesCode; DriverEntry->SmmLoadedImage.ImageDataType =3D EfiRuntimeServicesData; --=20 2.8.0.windows.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel