From nobody Fri May 3 22:53:20 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; 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; dmarc=fail(p=none dis=none) header.from=outlook.com Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1532300582008216.3919283793374; Sun, 22 Jul 2018 16:03:02 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 0BA29210C0CDC; Sun, 22 Jul 2018 16:03:01 -0700 (PDT) Received: from EUR03-AM5-obe.outbound.protection.outlook.com (mail-oln040092070108.outbound.protection.outlook.com [40.92.70.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id E0917210BFF6B for ; Sun, 22 Jul 2018 16:02:58 -0700 (PDT) Received: from DB5EUR03FT053.eop-EUR03.prod.protection.outlook.com (10.152.20.60) by DB5EUR03HT224.eop-EUR03.prod.protection.outlook.com (10.152.21.223) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.20.995.12; Sun, 22 Jul 2018 23:02:52 +0000 Received: from VI1PR0801MB1790.eurprd08.prod.outlook.com (10.152.20.60) by DB5EUR03FT053.mail.protection.outlook.com (10.152.21.119) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.995.12 via Frontend Transport; Sun, 22 Jul 2018 23:02:52 +0000 Received: from VI1PR0801MB1790.eurprd08.prod.outlook.com ([fe80::7532:4dc6:e9f7:4765]) by VI1PR0801MB1790.eurprd08.prod.outlook.com ([fe80::7532:4dc6:e9f7:4765%2]) with mapi id 15.20.0973.018; Sun, 22 Jul 2018 23:02:52 +0000 X-Original-To: edk2-devel@lists.01.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; Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=40.92.70.108; helo=eur03-am5-obe.outbound.protection.outlook.com; envelope-from=marvin.haeuser@outlook.com; receiver=edk2-devel@lists.01.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KYHH8FBlY/eHTvXeBiGCmRd6tpDOsHSXisWP/iQXNm8=; b=FJD4jn3Qbmj4oue6L09mQDqJGrpz+9E00Vv8ooP3tyl4GGkgF+wsCcDZ8ppqyWaJyCL9DlGHo+5hsgqDY1yCU4ExmgioVsr6XFWGUeSU+8xtb0AzC6qqa6+WatJ5GGdX+J6DBg9rNv4iRX9qHIz5kIp9Erkj7IGlW3+NP5jCWlvJlrX0JxVD29yl9S4BmNlm9wCXzG2LE6I6W1K6fKDVLchP5pRPbtfKX0G5I9yClW0ZdOsLbXw5tfN3WgiRiwJfqTajDxu/Os3olW56YPs+Kt9EcYN8AMVZMjVa0WY0i8A/tMV9ClhLcmJEfyHdAqXWm845q9XjcVt/4fGNNV996g== From: =?iso-8859-1?Q?Marvin_H=E4user?= To: "edk2-devel@lists.01.org" Thread-Topic: [PATCH] BaseTools/GenC: Update Standalone MM EPs for StandaloneMmPkg. Thread-Index: AQHUIhAeC5ggZEler0GKHgmg9NRfIw== Date: Sun, 22 Jul 2018 23:02:52 +0000 Message-ID: Accept-Language: de-DE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: AM5PR0102CA0026.eurprd01.prod.exchangelabs.com (2603:10a6:206::39) To VI1PR0801MB1790.eurprd08.prod.outlook.com (2603:10a6:800:5b::15) x-incomingtopheadermarker: OriginalChecksum:DB889E47002EA81DB701318707E7A09D7650762367A2F680E10F6B5ACA61AEFE; UpperCasedChecksum:7FE57B9C9CDE6C5D77F2503C99E18C7634E6C71C58FED1970D0A09CB69571503; SizeAsReceived:7515; Count:48 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [EPTA50cydHG8Wkj50bycp5ruqqyFYalR] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DB5EUR03HT224; 6:TxyqBtMWU53UmHa0AS5iIKRJyvwlmCBOqAPqa8CT8nfME8ZGDCaIJbqPnpWqyZVnCCuhbTitZim3qZ3Ml/2WPdSZ4iW/NwQmDkbdoKXKHQcd1dHcynnKMLNlTUAM1n4Xngaz1wjMb0Nst3OX4aGMAjOMWC3jVcsWhBjx//ud8vc0AIJ0u6RXa6EkhBxFqNmSRkHoU3PjGozcTePhB/dY2jmMCOy4jriepTumr4Nm1SL7arVwiS7X4HEpLHZrLtDFLJWN2EMIQbN5l17+rTQJPCDRmjkpM6GyIip2QvCtAx6Vp6yNlXZhjr98ZhH04Vy5FjgWbfCSfrh7OAlAu466O18m7JOE3gYQM7Pz5OWPE+3wovZaX/soiiQjNyzgEOIq9Sa4E8crT/YdfXvicnVP5YbNKrerg1H2rhY7jOC+VaUKCIgvNz/vbfTwS+feQk/QROyUEY1DAoTPvVpCdRyhbA==; 5:gZ5GknXY73Dxo37C4qYyfskK/a1LFrwY0uoOdLSGQkpY4R221PTEt3nNB1csaoMI55gtCwx5z9EGKanZfy2Mp8V+AJZ7VxQOuIE1+uV+wLWgFDOvqYrJsQmtU4fpF6NotvKkxQ6aVV4bQZ5lW7fAgE6S0X0M0q67EkZ+c2jOsdM=; 7:AbK843K6y5mhQ9O1gSW1mq2VA9I3y6sAyoNtS5ytZtfB3gieDpO05pK0MddUvcSo65LR/usbI7QMwDOvmLg60nKl06ikQ8EiGKMfFyuauK89ACIYDskCfDoTZWZNeYrnvNwNeUYFl7BBFuzA6vBdmYM7okgJ0v1NT3zjwBTPay7lnTkw0HzK3D4x/BdAifyotlXSmJHXSQUAV45MO4SXlyqYDlcyrdsz9ZkCzeEnsV1PgpAaPNRiRvDfmZU9Pr15 x-incomingheadercount: 48 x-eopattributedmessage: 0 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(201702061078)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031324274)(2017031323274)(2017031322404)(1601125500)(1603101448)(1701031045); SRVR:DB5EUR03HT224; x-ms-traffictypediagnostic: DB5EUR03HT224: x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(82015058); SRVR:DB5EUR03HT224; BCL:0; PCL:0; RULEID:; SRVR:DB5EUR03HT224; x-forefront-prvs: 0741C77572 x-forefront-antispam-report: SFV:NSPM; SFS:(7070007)(6029001)(189003)(199004)(104016004)(8676002)(8936002)(305945005)(81156014)(33656002)(87572001)(68736007)(74316002)(2501003)(97736004)(5250100002)(25786009)(2900100001)(72206003)(14454004)(4326008)(54906003)(5660300001)(99286004)(105586002)(106356001)(56003)(2351001)(6916009)(6436002)(7696005)(6346003)(5640700003)(476003)(426003)(486006)(20460500001)(15650500001)(102836004)(26005)(55016002)(1857600001)(86362001)(386003)(82202002)(14444005)(256004); DIR:OUT; SFP:1901; SCL:1; SRVR:DB5EUR03HT224; H:VI1PR0801MB1790.eurprd08.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: outlook.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Marvin.Haeuser@outlook.com; x-microsoft-antispam-message-info: vvjaErhCoxTpGzBDLE306QKxXfyyf55BroNLTdZV4OjzBnyXm+vHKNR9dcDzTLsSLDT+13OpcYJTAjywWXtTt9CNqytQl4U49Z5y//lMu38k1aCclxM+3/wE2VfiOEVDGohvbIfC2Gn5QtWPfZS4arHWvl3+4QKYlCBKTslZaE+MI3mvzBa+HC0nenwyrFFzP8NamEqJEGIL7GM5b6l10V3Byuh2koJa39uyr1DAvL4= MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 7181d4b0-87d6-4f4e-ba33-0d3746212cec X-MS-Exchange-CrossTenant-Network-Message-Id: 40b27b05-ad75-4884-627c-08d5f0273ffc X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 7181d4b0-87d6-4f4e-ba33-0d3746212cec X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Jul 2018 23:02:52.0627 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5EUR03HT224 Subject: [edk2] [PATCH] BaseTools/GenC: Update Standalone MM EPs for StandaloneMmPkg. X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "liming.gao@intel.com" Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" The current BaseTools GenC implementation for UEFI module entry points declares Standalone MM Entry Points with the EFI_SMM_SYSTEM_TABLE2 MmSystemTable pointer and includes SMM headers. Update the code to reflect the imported StandaloneMmPkg by changing MmSystemTable to the MM type and include both PiMm.h and the StandaloneMmPkg Entry Point header over the original SMM variants. This change should not break any existent code due to the absense of any MM Standalone modules. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Marvin Haeuser --- BaseTools/Source/Python/AutoGen/GenC.py | 28 ++++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/BaseTools/Source/Python/AutoGen/GenC.py b/BaseTools/Source/Pyt= hon/AutoGen/GenC.py index 3b396491d023..bc7709f4b5e4 100644 --- a/BaseTools/Source/Python/AutoGen/GenC.py +++ b/BaseTools/Source/Python/AutoGen/GenC.py @@ -265,8 +265,8 @@ ${BEGIN} EFI_STATUS EFIAPI ${Function} ( - IN EFI_HANDLE ImageHandle, - IN EFI_SMM_SYSTEM_TABLE2 *MmSystemTable + IN EFI_HANDLE ImageHandle, + IN EFI_MM_SYSTEM_TABLE *MmSystemTable ); ${END} """) @@ -278,8 +278,8 @@ GLOBAL_REMOVE_IF_UNREFERENCED const UINT32 _gMmRevision= =3D ${PiSpecVersion}; EFI_STATUS EFIAPI ProcessModuleEntryPointList ( - IN EFI_HANDLE ImageHandle, - IN EFI_SMM_SYSTEM_TABLE2 *MmSystemTable + IN EFI_HANDLE ImageHandle, + IN EFI_MM_SYSTEM_TABLE *MmSystemTable ) =20 { @@ -292,8 +292,8 @@ ${BEGIN} EFI_STATUS EFIAPI ProcessModuleEntryPointList ( - IN EFI_HANDLE ImageHandle, - IN EFI_SMM_SYSTEM_TABLE2 *MmSystemTable + IN EFI_HANDLE ImageHandle, + IN EFI_MM_SYSTEM_TABLE *MmSystemTable ) =20 { @@ -307,8 +307,8 @@ GLOBAL_REMOVE_IF_UNREFERENCED const UINT32 _gMmRevision= =3D ${PiSpecVersion}; EFI_STATUS EFIAPI ProcessModuleEntryPointList ( - IN EFI_HANDLE ImageHandle, - IN EFI_SMM_SYSTEM_TABLE2 *MmSystemTable + IN EFI_HANDLE ImageHandle, + IN EFI_MM_SYSTEM_TABLE *MmSystemTable ) =20 { @@ -675,8 +675,8 @@ ${Function} ( EFI_STATUS EFIAPI ${Function} ( - IN EFI_HANDLE ImageHandle, - IN EFI_SMM_SYSTEM_TABLE2 *MmSystemTable + IN EFI_HANDLE ImageHandle, + IN EFI_MM_SYSTEM_TABLE *MmSystemTable );${END} """), } @@ -755,8 +755,8 @@ ${BEGIN}${FunctionPrototype}${END} VOID EFIAPI ProcessLibrary${Type}List ( - IN EFI_HANDLE ImageHandle, - IN EFI_SMM_SYSTEM_TABLE2 *MmSystemTable + IN EFI_HANDLE ImageHandle, + IN EFI_MM_SYSTEM_TABLE *MmSystemTable ) { ${BEGIN} EFI_STATUS Status; @@ -780,8 +780,8 @@ gModuleTypeHeaderFile =3D { SUP_MODULE_UEFI_DRIVER : ["Uefi.h", "Library/BaseLib.h", "Lib= rary/DebugLib.h", "Library/UefiBootServicesTableLib.h", "Library/UefiDriver= EntryPoint.h"], SUP_MODULE_UEFI_APPLICATION : ["Uefi.h", "Library/BaseLib.h", "Lib= rary/DebugLib.h", "Library/UefiBootServicesTableLib.h", "Library/UefiApplic= ationEntryPoint.h"], SUP_MODULE_SMM_CORE : ["PiDxe.h", "Library/BaseLib.h", "Lib= rary/DebugLib.h", "Library/UefiDriverEntryPoint.h"], - SUP_MODULE_MM_STANDALONE : ["PiSmm.h", "Library/BaseLib.h", "Lib= rary/DebugLib.h", "Library/SmmDriverStandaloneEntryPoint.h"], - SUP_MODULE_MM_CORE_STANDALONE : ["PiSmm.h", "Library/BaseLib.h", "Lib= rary/DebugLib.h", "Library/SmmCoreStandaloneEntryPoint.h"], + SUP_MODULE_MM_STANDALONE : ["PiMm.h", "Library/BaseLib.h", "Lib= rary/DebugLib.h", "Library/StandaloneMmDriverEntryPoint.h"], + SUP_MODULE_MM_CORE_STANDALONE : ["PiMm.h", "Library/BaseLib.h", "Lib= rary/DebugLib.h", "Library/StandaloneMmCoreEntryPoint.h"], SUP_MODULE_USER_DEFINED : [gBasicHeaderFile] } =20 --=20 2.18.0.windows.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel