From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:400c:c09::22f; helo=mail-wm0-x22f.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wm0-x22f.google.com (mail-wm0-x22f.google.com [IPv6:2a00:1450:400c:c09::22f]) (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 D7114202E6152 for ; Mon, 16 Oct 2017 11:00:19 -0700 (PDT) Received: by mail-wm0-x22f.google.com with SMTP id k4so5713307wmc.1 for ; Mon, 16 Oct 2017 11:03:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=reiXY8M7maJQK+TKfO2Wg+sdWKzODiPnwz/knkPl034=; b=AbOYqz73OTKJOOPV6/9rnHXFkzOJzYCyH5aQqyVy5f3VamnMoAwpIErKeLF/N8edoz JiFCEjynxg+Qv04734mrl+Pb4D+ZNl74mHLZ/kRHqtyRFZETCxy/GFz4sJi0fJGrBAA9 XybPvznQaZSefLrXnATgaZdlltLe5vWRwRc8U= 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=reiXY8M7maJQK+TKfO2Wg+sdWKzODiPnwz/knkPl034=; b=kdCfC1o/52W69cLSIoV4TGna7a5l3Ta7nfh9W02qFRitl9tCu9s8wxNsq9ykG5/Zz4 leXZ66BPqDniFO0bDgZkEM93IlC1ic0DvZ6MjFRg1povvcwqCXia9++yCcqOp9cGnu0s +s4o5UIzSHjjrkVga1U2EcYA7jGrQhbkFEWHkMgLnnwyTu7waDiQcQUxzBoA0ExJl/W8 nN944y6wrDOGhPqCArfdFEXRgxklXIGPovDfBvpIrKIpwTW21G3GeP94JaeKJmzickK8 6czy7b4QwQjK+dh8pyMJCtmeJgvrZwqYmwFLJ7glATuS/vNmP2/PGnuQNG5f9qiPTZLm tfDA== X-Gm-Message-State: AMCzsaWMcsF32jty3VWG51E7q625K7ajl397pCnyX0b4lz38I19dGBWN 6l5+K5VSxhCViVkkElm075ZWi2HAwUQ= X-Google-Smtp-Source: ABhQp+THXGEYjm/qWCNf7DjofVlk1LDmLxCLHdX9H6yadMtqmfaeg9vVgiWFYgk/O2tlc4OpMdJhFg== X-Received: by 10.28.24.134 with SMTP id 128mr1659976wmy.61.1508177033122; Mon, 16 Oct 2017 11:03:53 -0700 (PDT) Received: from localhost.localdomain ([154.144.50.139]) by smtp.gmail.com with ESMTPSA id p128sm6687980wmb.1.2017.10.16.11.03.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Oct 2017 11:03:52 -0700 (PDT) From: Ard Biesheuvel To: edk2-devel@lists.01.org, leif.lindholm@linaro.org Cc: sudeep.holla@arm.com, Ard Biesheuvel Date: Mon, 16 Oct 2017 19:03:47 +0100 Message-Id: <20171016180347.22930-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.11.0 Subject: [PATCH edk2-platforms] Platform/ARM: remove ReportStatusCodeLib resolutions 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: Mon, 16 Oct 2017 18:00:20 -0000 The generic ResetSystemRuntimeDxe may invoke ReportStatusCodeLib, and this may happen at runtime. If the chosen resolution is not suitable for runtime, this will result in a crash. Given that we don't actually use status codes, let's just switch to the NULL instance for all modules and be done with it. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- Platform/ARM/VExpressPkg/ArmVExpress.dsc.inc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Platform/ARM/VExpressPkg/ArmVExpress.dsc.inc b/Platform/ARM/VExpressPkg/ArmVExpress.dsc.inc index 8bcb84869c84..b758c58c9872 100644 --- a/Platform/ARM/VExpressPkg/ArmVExpress.dsc.inc +++ b/Platform/ARM/VExpressPkg/ArmVExpress.dsc.inc @@ -153,7 +153,7 @@ CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf - ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf + ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf [LibraryClasses.common.SEC] ArmPlatformSecExtraActionLib|ArmPlatformPkg/Library/DebugSecExtraActionLib/DebugSecExtraActionLib.inf @@ -182,7 +182,6 @@ MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf PerformanceLib|MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.inf - OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf @@ -195,7 +194,6 @@ MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf PerformanceLib|MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.inf - OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf PeiResourcePublicationLib|MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf @@ -358,8 +356,6 @@ # DEBUG_ERROR 0x80000000 // Error gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000000F - gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07 - gEmbeddedTokenSpaceGuid.PcdEmbeddedAutomaticBootCommand|"" gEmbeddedTokenSpaceGuid.PcdEmbeddedDefaultTextColor|0x07 gEmbeddedTokenSpaceGuid.PcdEmbeddedMemVariableStoreSize|0x10000 -- 2.11.0