From patchwork Tue Oct 17 13:42:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 116113 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp4911255qgn; Tue, 17 Oct 2017 06:42:17 -0700 (PDT) X-Received: by 10.99.0.4 with SMTP id 4mr11196106pga.417.1508247737678; Tue, 17 Oct 2017 06:42:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508247737; cv=none; d=google.com; s=arc-20160816; b=r9ZT0lp9KvCkr05Y5pR/gYRVOy6cIYVaaBlDznXOIqb2AQUah9EJnt8gpvMo3CWS/l Gf/hLkGZaULMfWNmCBEy8nHRo9hPtFQIFVkptj3QgJU4DQrhQklJhD9bFM+wU42laryh VhiUzbHN/ibFBAwPKnWDwy4GkNsCSaqSjvCIwPqVT/btMmScveyHcDcIiGbmbQnpFA1F Z9ByInZ8LdWInoJZxCCBSCg3pZgnRmFCJ/T30Z2PUJ65LIoJkbhw+7uvgTXXdoQ2cU7V rEj5GDQFEc2aZ4UefoiApgwQg1Xta7MRiztwA+SVUULQcblpv8bVgGe41IrceItSSNze zi/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :delivered-to:arc-authentication-results; bh=WQacT0hzI5+kWJiKeB/oHIeeVN5r6QlAAeIJNzHo9fk=; b=RxP3SUVlQE6tp/+nKjBwtz+Gmz5sbR8Mk/DCvqN+be9MIMo5Gjitq7S8C8aZxalMWh E2uZHFGEGFowRlxd9gDhlHPRCZwnknymIQ5CmjCerSJ86EC2+8rYWYweQyLGELhtiPTY 0aWRYoFDIKOOiSog5ekJkUIAHqrPq+LpKKpchhvfAznZxXdIJ+gKhkfgHgesnxasYWok GY0VYQqisd5KuEEj2nOwor3SzTv5TpYhulrfcFRTOv8tPvVT2LfFmsNYUynCtX+uXH0u CyzoDX3rToRiy352CCE7FZ3xkMy0+X2r25wQF9OwywaFvWlUF9iSJ+QUymsu/HDCUkC3 E1VQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=UjjFkxV3; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [198.145.21.10]) by mx.google.com with ESMTPS id 1si303613plu.200.2017.10.17.06.42.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Oct 2017 06:42:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=UjjFkxV3; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id C12992095B9EF; Tue, 17 Oct 2017 06:38:40 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:400c:c0c::22e; helo=mail-wr0-x22e.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wr0-x22e.google.com (mail-wr0-x22e.google.com [IPv6:2a00:1450:400c:c0c::22e]) (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 CDD01202E60E3 for ; Tue, 17 Oct 2017 06:38:38 -0700 (PDT) Received: by mail-wr0-x22e.google.com with SMTP id y44so1727592wry.10 for ; Tue, 17 Oct 2017 06:42:14 -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=pz7IFp8QDdvD0vB5cL3lFM1McnsRxzeZOs4w+jOUydU=; b=UjjFkxV3HuoV+gW82pPIG7myAmCuO4KlwuWOvpUjEtdaUDIhNYOd0cN6FV48F0d1Pm 8PPvOmDEKzdbUf6dPv7Y+v1SaiGozIj/h/ouhoExDLCGEASiDOZTYsf3fjAXy/Dm5qOe oK7fZ9F5RpPlAGTiMht7kdSn5qWqHjQFCk7tw= 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=pz7IFp8QDdvD0vB5cL3lFM1McnsRxzeZOs4w+jOUydU=; b=Ac+quIIe2zEiP626ihdJ2axz6ikLK033rCvx7QbqlJCLq7mwTC3tylr4ItUSRoKWmI jeaEAN8NMEx+AlYcQlA9Y7WKjv5tRQe4h8F0EWR+C+LQ/GZBh6z6ZnLGES33FTIg2vne lUt0+c/Yum68Y+I65w7eKwALmK1PXAl7+vUjCu1oN1/cAXL0tzPa9+328ZRBxFsZe/Cz aomc7AVpmAsEzYXVkxomhot0t9mQAxafhixsvOM1iKgVd+Lro0td8rSE9bDci2m80a8d 5QZ1brNpffv2/3TVagEaL2PwncuodYgPLpYld42DZDGr3MVUzfm/26040gsNZdPwCVTE 6QHw== X-Gm-Message-State: AMCzsaVfKaAVsopYcl/mIY9kDzoL3N4MD68yf6W+3xl8yJcF+1cueBx4 PROJd1nlq98MbD2DW8WhxjmOx9J9bI4= X-Google-Smtp-Source: ABhQp+Qhzivzq80PakBBDH5BpKVLbrVxoX82kBVtTb/6MpzeXKnSoftE4QDdwiDLTP6/dOELuvJD1w== X-Received: by 10.223.195.61 with SMTP id n58mr3678193wrf.12.1508247732812; Tue, 17 Oct 2017 06:42:12 -0700 (PDT) Received: from localhost.localdomain ([154.144.50.139]) by smtp.gmail.com with ESMTPSA id n89sm11075027wmi.33.2017.10.17.06.42.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Oct 2017 06:42:11 -0700 (PDT) From: Ard Biesheuvel To: edk2-devel@lists.01.org, leif.lindholm@linaro.org Date: Tue, 17 Oct 2017 14:42:05 +0100 Message-Id: <20171017134205.3907-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.11.0 Subject: [edk2] [PATCH edk2-platforms v2] Platform/ARM: use appropriate ReportStatusCodeLib resolution for RT drivers 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: Ard Biesheuvel , sudeep.holla@arm.com MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" ResetSystemRuntimeDxe may be invoked by the OS at runtime, at which time it will attempt to call into ReportStatusCodeLib. If we use the default version for DXE drivers, this will access data structures that are no longer there so switch to the special runtime version instead. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- Platform/ARM/VExpressPkg/ArmVExpress.dsc.inc | 1 + 1 file changed, 1 insertion(+) -- 2.11.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel Tested-by: Sudeep Holla Reviewed-by: Leif Lindholm diff --git a/Platform/ARM/VExpressPkg/ArmVExpress.dsc.inc b/Platform/ARM/VExpressPkg/ArmVExpress.dsc.inc index 8bcb84869c84..1605eedbdd8c 100644 --- a/Platform/ARM/VExpressPkg/ArmVExpress.dsc.inc +++ b/Platform/ARM/VExpressPkg/ArmVExpress.dsc.inc @@ -240,6 +240,7 @@ [LibraryClasses.common.DXE_RUNTIME_DRIVER] MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf ArmPlatformSysConfigLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressSysConfigRuntimeLib/ArmVExpressSysConfigRuntimeLib.inf + ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf !if $(SECURE_BOOT_ENABLE) == TRUE BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf !endif