From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 9A828940F4C for ; Fri, 27 Oct 2023 03:28:13 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=v0C0WvtW/xcqndTKNS15rXiYhV740GcMzDHew+Trj9I=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1698377292; v=1; b=GUKBtzt3cAMPUkOuZ1TKNqXQqT74OBPqoJFUZtyjt3f6fsghyIgHzpGqXKMKZXtfSd3Use9W G72/8PrPO/DWGd4KGY1IzKcVw/ry4jgjm8njHydsPQhzGasWf2xJfcjCaSEXP8Upe6Y8xNRTaVH bUD1cfUjZaUzjTBdRjBrsjDA= X-Received: by 127.0.0.2 with SMTP id 7GnMYY7687511xg0sCAdohJY; Thu, 26 Oct 2023 20:28:12 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.43]) by mx.groups.io with SMTP id smtpd.web11.89154.1698377286242718615 for ; Thu, 26 Oct 2023 20:28:11 -0700 X-IronPort-AV: E=McAfee;i="6600,9927,10875"; a="473943445" X-IronPort-AV: E=Sophos;i="6.03,255,1694761200"; d="scan'208";a="473943445" X-Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Oct 2023 20:28:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10875"; a="829832841" X-IronPort-AV: E=Sophos;i="6.03,255,1694761200"; d="scan'208";a="829832841" X-Received: from shpfwdbuild003.ccr.corp.intel.com ([10.239.56.82]) by fmsmga004.fm.intel.com with ESMTP; 26 Oct 2023 20:28:10 -0700 From: "Xu, Wei6" To: devel@edk2.groups.io Cc: Wei6 Xu , Ard Biesheuvel , Sami Mujawar , Ray Ni Subject: [edk2-devel] [PATCH 2/2] StandaloneMmPkg/Core: Consumes Standalone Mm Core Platform Hook Lib. Date: Fri, 27 Oct 2023 11:28:02 +0800 Message-Id: In-Reply-To: References: MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,wei6.xu@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: TmBHBQxQfhIE7FSDmrC8gLcSx7686176AA= Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=GUKBtzt3; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io Call platform hooks before and after invoking registered MMI handlers. Platform can perform specific tasks in the hooks. Cc: Ard Biesheuvel Cc: Sami Mujawar Cc: Ray Ni Signed-off-by: Wei6 Xu --- StandaloneMmPkg/Core/StandaloneMmCore.c | 7 ++++++- StandaloneMmPkg/Core/StandaloneMmCore.h | 1 + StandaloneMmPkg/Core/StandaloneMmCore.inf | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/StandaloneMmPkg/Core/StandaloneMmCore.c b/StandaloneMmPkg/Core= /StandaloneMmCore.c index d221f1d1115d..43d8694fa9ef 100644 --- a/StandaloneMmPkg/Core/StandaloneMmCore.c +++ b/StandaloneMmPkg/Core/StandaloneMmCore.c @@ -351,7 +351,7 @@ MmEntryPoint ( //=0D // Call platform hook before Mm Dispatch=0D //=0D - // PlatformHookBeforeMmDispatch ();=0D + PlatformHookBeforeMmDispatch ();=0D =0D //=0D // If a legacy boot has occurred, then make sure gMmCorePrivate is not a= ccessed=0D @@ -400,6 +400,11 @@ MmEntryPoint ( //=0D MmiManage (NULL, NULL, NULL, NULL);=0D =0D + //=0D + // Call platform hook after Mm Dispatch=0D + //=0D + PlatformHookAfterMmDispatch ();=0D +=0D //=0D // TBD: Do not use private data structure ?=0D //=0D diff --git a/StandaloneMmPkg/Core/StandaloneMmCore.h b/StandaloneMmPkg/Core= /StandaloneMmCore.h index 822d95358c39..08ea178bfe76 100644 --- a/StandaloneMmPkg/Core/StandaloneMmCore.h +++ b/StandaloneMmPkg/Core/StandaloneMmCore.h @@ -40,6 +40,7 @@ #include =0D #include =0D #include =0D +#include =0D =0D #include =0D #include =0D diff --git a/StandaloneMmPkg/Core/StandaloneMmCore.inf b/StandaloneMmPkg/Co= re/StandaloneMmCore.inf index c44b9ff33303..ac2f07610d04 100644 --- a/StandaloneMmPkg/Core/StandaloneMmCore.inf +++ b/StandaloneMmPkg/Core/StandaloneMmCore.inf @@ -52,6 +52,7 @@ [LibraryClasses] PeCoffLib=0D ReportStatusCodeLib=0D StandaloneMmCoreEntryPoint=0D + StandaloneMmCorePlatformHookLib=0D =0D [Protocols]=0D gEfiDxeMmReadyToLockProtocolGuid ## UNDEFINED # SmiHandlerRe= gister=0D --=20 2.29.2.windows.2 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#110179): https://edk2.groups.io/g/devel/message/110179 Mute This Topic: https://groups.io/mt/102214570/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-