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: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 Cc: sudeep.holla@arm.com, Ard Biesheuvel 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: [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: , X-List-Received-Date: Tue, 17 Oct 2017 13:38:39 -0000 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(+) 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 -- 2.11.0