From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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) 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) 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) From: Marcin Wojtas To: edk2-devel@lists.01.org Cc: leif.lindholm@linaro.org, ard.biesheuvel@linaro.org, mw@semihalf.com, jsd@semihalf.com, jinghua@marvell.com 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: [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: , X-List-Received-Date: Wed, 05 Jul 2017 13:41:38 -0000 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/Armada/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/UefiBootServicesTableLib.inf DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf - ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf + ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf @@ -161,14 +161,12 @@ HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf - ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf PerformanceLib|MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.inf [LibraryClasses.common.DXE_DRIVER] - ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf @@ -182,7 +180,6 @@ HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf [LibraryClasses.common.UEFI_DRIVER] - ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf UefiDecompressLib|IntelFrameworkModulePkg/Library/BaseUefiTianoCustomDecompressLib/BaseUefiTianoCustomDecompressLib.inf ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.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/UefiMemoryAllocationLib.inf - ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf [LibraryClasses.ARM, LibraryClasses.AARCH64] @@ -326,7 +322,6 @@ !else gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000000F !endif - gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07 gEmbeddedTokenSpaceGuid.PcdEmbeddedAutomaticBootCommand|"" gEmbeddedTokenSpaceGuid.PcdEmbeddedDefaultTextColor|0x07 -- 1.8.3.1