From nobody Thu May 2 21:19:21 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.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 Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 149926220525038.95957464245464; Wed, 5 Jul 2017 06:43:25 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 946F321CF3B73; Wed, 5 Jul 2017 06:41:39 -0700 (PDT) Received: from mail-lf0-x234.google.com (mail-lf0-x234.google.com [IPv6:2a00:1450:4010:c07::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 7B11F2095A6C9 for ; Wed, 5 Jul 2017 06:41:37 -0700 (PDT) Received: by mail-lf0-x234.google.com with SMTP id h22so134593704lfk.3 for ; Wed, 05 Jul 2017 06:43:16 -0700 (PDT) Received: from enkidu.local (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.gmail.com with ESMTPSA id k132sm3679158lfg.48.2017.07.05.06.43.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Jul 2017 06:43:13 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=fdTv5IxTewxYLhvPDRnkKUX+/+9QZkkncvHNrx0oZw8=; b=LuIfZjH2PilVjutZnQ4rDbtCImZN+CsYg5a3Q/bMqe6uQUVgj25CRq9DjfPH16Oae1 P182HIUvya5wXKPZT8/iMjLmNgqTt85J+bFQCXTyeN9hRB7Eyz4MiCvZM4eDcIzlmbZ2 2wFeSJ7qVOjpWejAFdwZT3n2i+ypkfLi+i1SrUIQR2aOVi/FVe24tq+fRxUa/BMEb9Z2 a1R5TDtF4xqziGyoKLXNudwyLCD+NOyDeVIqOsCQ3Z2Jv8QS5k1dKOwsUTnmzIQoBr6Y BAPwyo4ebf4gfaNkUXIhairomEDUHYqvPq9zr8n8jpSuew7/i4oucaogz/chVLASkdbL CR/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=fdTv5IxTewxYLhvPDRnkKUX+/+9QZkkncvHNrx0oZw8=; b=mKkdjQYswt3NXwMRX8Xe7KotB3N/aXR3XZtPXAg33Jx8NAm+YD+G+WzVqHYcX9N44E HB2bPm5RG1AbVE9RP63XN2oUMj2C1CJGtIwNBrX7Z9R4qJov+7VNS0xcEHUGzGCXVbGy WQJiU4mtQV03JFJR0aeOhmyHJR5orrXm+3pOYioJ+Zzr4fiPItH8YUY9p9zDHpm7wqSW 3j3DLkCU5KRZZb+In1/4u7BQ5CEQGM4/rfOTBewN4/wQpG7QkFKYLS0CHj15B9cWw1Cb x6I5/NXmBKFb2mq0HgHWvPu2MaUlE1BtxpCZotAfLl6wHCi+PBav8r+KsWACdoEvrB30 6CRA== X-Gm-Message-State: AIVw113hMjIcz4HzzKrQgKCuHp4tHSGnskNCMwyh4XPZPHWGzvjjBNKb w2yAlBT0JYGlvBoazxuc/A== X-Received: by 10.25.21.39 with SMTP id l39mr3524294lfi.156.1499262194618; Wed, 05 Jul 2017 06:43:14 -0700 (PDT) From: Marcin Wojtas To: edk2-devel@lists.01.org Date: Wed, 5 Jul 2017 15:42:27 +0200 Message-Id: <1499262147-14894-1-git-send-email-mw@semihalf.com> X-Mailer: git-send-email 1.8.3.1 Subject: [edk2] [platforms: PATCH] Platform/Marvell/Armada: Remove status code support 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: jinghua@marvell.com, leif.lindholm@linaro.org, ard.biesheuvel@linaro.org MIME-Version: 1.0 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" Switching to the generic ResetSystemRuntimeDxe introduces dependency on the library class ReportStatusCodeLib, which is harmful to be called in the runtime from OS, resulting in crashes. Safely switch to the NULL implementation, beacause status codes are unused on Armada platforms. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Marcin Wojtas Signed-off-by: Ard Biesheuvel --- Platform/Marvell/Armada/Armada.dsc.inc | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Platform/Marvell/Armada/Armada.dsc.inc b/Platform/Marvell/Arma= da/Armada.dsc.inc index 3c6ed22..fd42c2e 100644 --- a/Platform/Marvell/Armada/Armada.dsc.inc +++ b/Platform/Marvell/Armada/Armada.dsc.inc @@ -61,7 +61,7 @@ UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBoo= tServicesTableLib.inf DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableL= ib.inf - ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeRepor= tStatusCodeLib.inf + ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseRepor= tStatusCodeLibNull.inf UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntry= Point.inf UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiA= pplicationEntryPoint.inf HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf @@ -161,14 +161,12 @@ HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeC= oreMemoryAllocationLib.inf DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf - ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeL= ibFramework/DxeReportStatusCodeLib.inf ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExt= ractGuidedSectionLib.inf UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompres= sLib.inf DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf PerformanceLib|MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerform= anceLib.inf =20 [LibraryClasses.common.DXE_DRIVER] - ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeL= ibFramework/DxeReportStatusCodeLib.inf DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeS= ecurityManagementLib.inf PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.= inf @@ -182,7 +180,6 @@ HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf =20 [LibraryClasses.common.UEFI_DRIVER] - ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeL= ibFramework/DxeReportStatusCodeLib.inf UefiDecompressLib|IntelFrameworkModulePkg/Library/BaseUefiTianoCustomDec= ompressLib/BaseUefiTianoCustomDecompressLib.inf ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExt= ractGuidedSectionLib.inf PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.= inf @@ -191,7 +188,6 @@ [LibraryClasses.common.DXE_RUNTIME_DRIVER] HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAll= ocationLib.inf - ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeL= ibFramework/DxeReportStatusCodeLib.inf CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf =20 [LibraryClasses.ARM, LibraryClasses.AARCH64] @@ -326,7 +322,6 @@ !else gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000000F !endif - gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07 =20 gEmbeddedTokenSpaceGuid.PcdEmbeddedAutomaticBootCommand|"" gEmbeddedTokenSpaceGuid.PcdEmbeddedDefaultTextColor|0x07 --=20 1.8.3.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel