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 70DDDAC1B8C for ; Mon, 18 Mar 2024 23:18:03 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=BcvSIZpOsL+J/a/pBcYk80rH0FGpJmPBVVj1BKXodZI=; 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:Resent-Date:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20240206; t=1710803881; v=1; b=XOC1HcvQj8P6GOSdbk1q+d0E5ZzoSbA/fgV6kV3Y/RymeTU/l4IqC+uwSewSUXaipjumq6CP EWRXf/O/BBKiZzTxl5cSXk3KGCFbLo+3KwU6DrAI3Bvbeh8iQQw7EffR7jyIeOoSaNtWeoqVh8L jqXtiWEkUQq9TsNo7F5BRQNhKIH3pKXPx17XAguex9VqjGwecDbyhbz51ml76F1HSASYqa5ICuQ EGOaR7uRnvRFwrpO19E8RjZNOuZ5WMFDFVNLi63ZxpwU30NWQvOiYZ3tEWGE7fGaRTr9M/8x2JW TL27qG3BJhn1X5H9E02OqbDOBDRsfynKAsUhk5h6nwNtQ== X-Received: by 127.0.0.2 with SMTP id iBqbYY7687511xo8QVFpRrtj; Mon, 18 Mar 2024 16:18:01 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) by mx.groups.io with SMTP id smtpd.web10.17403.1710494648689644330 for ; Fri, 15 Mar 2024 02:24:08 -0700 X-IronPort-AV: E=McAfee;i="6600,9927,11013"; a="5216210" X-IronPort-AV: E=Sophos;i="6.07,128,1708416000"; d="scan'208";a="5216210" X-Received: from orviesa004.jf.intel.com ([10.64.159.144]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Mar 2024 02:21:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,128,1708416000"; d="scan'208";a="17278212" X-Received: from unknown (HELO juichenx-mobl3.gar.corp.intel.com) ([10.225.76.159]) by orviesa004.jf.intel.com with ESMTP; 15 Mar 2024 02:21:04 -0700 From: brucex.wang@intel.com To: devel@edk2.groups.io Cc: brucex.wang@intel.com, Guo Dong , Sean Rhodes , James Lu , Gua Guo Subject: [edk2-devel] [PATCH v1 1/1] UefiPayloadPkg: Cleanup ProcessLibraryConstructorList() Date: Fri, 15 Mar 2024 17:20:42 +0800 Message-Id: <20240315092042.1644-2-brucex.wang@intel.com> In-Reply-To: <20240315092042.1644-1-brucex.wang@intel.com> References: <20240315092042.1644-1-brucex.wang@intel.com> 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 Resent-Date: Mon, 18 Mar 2024 16:18:01 -0700 Reply-To: devel@edk2.groups.io,brucex.wang@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: teWSn0k2lolqbFnu6TXjQIuix7686176AA= Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=XOC1HcvQ; 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 From: Bruce Wang ProcessLibraryConstructorList() no needs to be called manually after INF version greater or equal to 1.30. Cc: Guo Dong Cc: Sean Rhodes Cc: James Lu Cc: Gua Guo Signed-off-by: BruceX Wang --- UefiPayloadPkg/UefiPayloadEntry/FitUniversalPayloadEntry.c | 2 -- UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.c | 2 -- UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.c | 2 -- 3 files changed, 6 deletions(-) diff --git a/UefiPayloadPkg/UefiPayloadEntry/FitUniversalPayloadEntry.c b/U= efiPayloadPkg/UefiPayloadEntry/FitUniversalPayloadEntry.c index eb0b325369..58a7e8190f 100644 --- a/UefiPayloadPkg/UefiPayloadEntry/FitUniversalPayloadEntry.c +++ b/UefiPayloadPkg/UefiPayloadEntry/FitUniversalPayloadEntry.c @@ -616,8 +616,6 @@ _ModuleEntryPoint ( =0D mHobList =3D (VOID *)BootloaderParameter;=0D DxeFv =3D NULL;=0D - // Call constructor for all libraries=0D - ProcessLibraryConstructorList ();=0D =0D DEBUG ((DEBUG_INFO, "Entering Universal Payload...\n"));=0D DEBUG ((DEBUG_INFO, "sizeof(UINTN) =3D 0x%x\n", sizeof (UINTN)));=0D diff --git a/UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.c b/UefiPaylo= adPkg/UefiPayloadEntry/UefiPayloadEntry.c index 030a5baed9..7c65869563 100644 --- a/UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.c +++ b/UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.c @@ -434,8 +434,6 @@ _ModuleEntryPoint ( UniversalSerialPort->RegisterStride =3D (UINT8)SerialPortInfo.RegWidt= h;=0D }=0D =0D - // The library constructors might depend on serial port, so call it afte= r serial port hob=0D - ProcessLibraryConstructorList ();=0D DEBUG ((DEBUG_INFO, "sizeof(UINTN) =3D 0x%x\n", sizeof (UINTN)));=0D =0D // Build HOB based on information from Bootloader=0D diff --git a/UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.c b/Uefi= PayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.c index f37c00fad7..019b6b3d8b 100644 --- a/UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.c +++ b/UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.c @@ -462,8 +462,6 @@ _ModuleEntryPoint ( =0D mHobList =3D (VOID *)BootloaderParameter;=0D DxeFv =3D NULL;=0D - // Call constructor for all libraries=0D - ProcessLibraryConstructorList ();=0D =0D DEBUG ((DEBUG_INFO, "Entering Universal Payload...\n"));=0D DEBUG ((DEBUG_INFO, "sizeof(UINTN) =3D 0x%x\n", sizeof (UINTN)));=0D --=20 2.39.1.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#116865): https://edk2.groups.io/g/devel/message/116865 Mute This Topic: https://groups.io/mt/105014773/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-