From patchwork Tue Jan 15 08:23:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 155641 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp4610521jaa; Tue, 15 Jan 2019 00:24:04 -0800 (PST) X-Google-Smtp-Source: ALg8bN4V6vuPKI4YpLbNe9tXRM8t8WHsf4o982C2U2v0BwBzofsG5nB9Xn1WXy5E5Ch8/UVNeUQV X-Received: by 2002:a63:4384:: with SMTP id q126mr2723181pga.160.1547540644598; Tue, 15 Jan 2019 00:24:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547540644; cv=none; d=google.com; s=arc-20160816; b=bK2kZ7WF95T2Qn04MRH4BYK+r8Qh7kB8d9sbIbNCjets8xAIrJzsx14wQOmQx8CzdA 0l4s9T4V4/q88+iUBQiiBRUozulVp7RbjHS24dFpVi4EdFT+MwRq7awUnj/Stqw8QvAR ntkROLAfuMcEnolyRb+ZOZ5N/8UjklXImLAjI0UkcJjqYIiM1XXz6PLn2gZOOz7OjUFv iROJGdEN3CcilB0sCNu7cYCpkaOpCptmNi4TKCRF4svS3Sp1Oy4zekHo8b+R6PXWeWoN PJ96Co+1lZCne60G5ag1bSHpJdNn/+uOJgr3egd1RS0fGn5/24hujieLV5b76VKF8ICx dvuQ== 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:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to; bh=PLV6tzgMU/mVm2m7Aye1tCJ9FAYJHig/r7UKWDCuR2Y=; b=k1mFyT6BiXg7cyOkjaM/eZFt5S1kM1UjSrmB7aWVTt36GeV55Ja89F6AsoVYXonGML x5Dp+tcxUyW1EhfZpixOix7apBCg6QR26aZ7w/qstjZkKqzyJHc8j9EMFJtuihucm7iU gnv0qHzeCOEOsreHExgk6zMmJRfG0tD+pxHg/K7m7ijS5d2j3wyyaEsioJXjQXmCjzxX btFd7rG1pHbDVuXNwFRPmK9cR/ebKrBMtMpLyn0Q/ofaXJzi5CPAe8RqGC27LcEvU+mb OJfHOSG0vBmEl/KZRQ6N8rvKEKph+WMA5rYRVN2kp12fbA8hWESLsimft8lB1TKgJIp8 lkxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=YgBITAAo; 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 85si2707590pfc.145.2019.01.15.00.24.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Jan 2019 00:24:04 -0800 (PST) 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=YgBITAAo; 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 A6F5A211B76BA; Tue, 15 Jan 2019 00:23:57 -0800 (PST) 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:4864:20::444; helo=mail-wr1-x444.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) (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 34D42211B76B3 for ; Tue, 15 Jan 2019 00:23:56 -0800 (PST) Received: by mail-wr1-x444.google.com with SMTP id t6so1814263wrr.12 for ; Tue, 15 Jan 2019 00:23:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=2sHqlUcN5wH6/SDkWch0EhAGg9DFWmC+GP6FSbLeXUo=; b=YgBITAAoOeCEhwO5lGbMQxFCNO1WAwee/2UaJWmbDgQkka9koiJVv8KfdOFuXY/UtE EXUxSqh0HaWgcc5YlCY9b8dazBdpnYynbMCJjx2a+IxkmjSnRlCb6nxnFq45rP17RKnC oWCIAppGFnhY0tplmGQVLjkrE/yNaHvUpcIZI= 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:in-reply-to :references; bh=2sHqlUcN5wH6/SDkWch0EhAGg9DFWmC+GP6FSbLeXUo=; b=jV8YJ0zZlAnXmgP2k8IZUZw8mE/bFmRxea0AP3cNCMW0OFAMpRJ6MevGTcZBx+gk92 qn3k7HxJlKWDrrSZLdB0tws/HLUPeLAtQSWc6qIPv+mnP+3dBqVsry3W62px3DhEfMym WduGAWiGmuYmaCaf7zee4EABcREcyH2E0+bi+5dqWGNQFw6r3EEfmIa/MQnA1I0IQxAK allUjeBqh//HnnYpwkqVui19WpeXihrnxWbSBt3GtFwK+iGSdRKGPVegoQ9o4SZSzSFt Kmjtm1xnIavjRQ2xGhmTBKyBTaKrvhzIB4sQSR0GDeBc/fHPvRzlmis16qj7k3hDJKgx leDQ== X-Gm-Message-State: AJcUukcPb/2nUhGmeoO20XSeXS7aXb7s4CxtgnQ1FfR+xR6iGmSe5efZ FDbmt9auanEprdRpawrlUrSm0Cl+5XmlhQ== X-Received: by 2002:a5d:5607:: with SMTP id l7mr1982999wrv.25.1547540634345; Tue, 15 Jan 2019 00:23:54 -0800 (PST) Received: from dogfood.home ([2a01:cb1d:112:6f00:c8d1:b905:1bdd:adb6]) by smtp.gmail.com with ESMTPSA id 67sm120697983wra.37.2019.01.15.00.23.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Jan 2019 00:23:53 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Tue, 15 Jan 2019 09:23:44 +0100 Message-Id: <20190115082345.3711-5-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190115082345.3711-1-ard.biesheuvel@linaro.org> References: <20190115082345.3711-1-ard.biesheuvel@linaro.org> Subject: [edk2] [PATCH v2 4/5] ArmPkg/DefaultExceptionHandlerLib: drop BASE variant X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: lersek@redhat.com MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" Drop the redundant BASE variant, which is no longer used anywhere now that DebugAgentSymbolsBaseLib no longer incorporates a vector table and exception handling. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel Reviewed-by: Leif Lindholm --- ArmPkg/ArmPkg.dsc | 1 - ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHandlerBase.c | 35 --------------- ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHandlerLibBase.inf | 45 -------------------- 3 files changed, 81 deletions(-) -- 2.17.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/ArmPkg/ArmPkg.dsc b/ArmPkg/ArmPkg.dsc index 5d83c18b143e..d9f9935d70b6 100644 --- a/ArmPkg/ArmPkg.dsc +++ b/ArmPkg/ArmPkg.dsc @@ -141,7 +141,6 @@ [Components.common] ArmPkg/Library/ArmGicArchSecLib/ArmGicArchSecLib.inf ArmPkg/Library/ArmLib/ArmBaseLib.inf ArmPkg/Library/ArmSoftFloatLib/ArmSoftFloatLib.inf - ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHandlerLibBase.inf ArmPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf ArmPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf diff --git a/ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHandlerBase.c b/ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHandlerBase.c deleted file mode 100644 index 4a54298b1189..000000000000 --- a/ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHandlerBase.c +++ /dev/null @@ -1,35 +0,0 @@ -/** @file - - Copyright (c) 2012, ARM Ltd. All rights reserved.
- - This program and the accompanying materials - are licensed and made available under the terms and conditions of the BSD License - which accompanies this distribution. The full text of the license may be found at - http://opensource.org/licenses/bsd-license.php - - THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, - WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. - -**/ - -#include - -/** - - @param FaultAddress Address to find PE/COFF image for. - @param ImageBase Return load address of found image - @param PeCoffSizeOfHeaders Return the size of the PE/COFF header for the image that was found - - @retval NULL FaultAddress not in a loaded PE/COFF image. - @retval Path and file name of PE/COFF image. - -**/ -CHAR8 * -GetImageName ( - IN UINTN FaultAddress, - OUT UINTN *ImageBase, - OUT UINTN *PeCoffSizeOfHeaders - ) -{ - return NULL; -} diff --git a/ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHandlerLibBase.inf b/ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHandlerLibBase.inf deleted file mode 100644 index b53a5e89f507..000000000000 --- a/ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHandlerLibBase.inf +++ /dev/null @@ -1,45 +0,0 @@ -#/** @file -# -# Copyright (c) 2012, ARM Ltd. All rights reserved.
-# -# This program and the accompanying materials -# are licensed and made available under the terms and conditions of the BSD License -# which accompanies this distribution. The full text of the license may be found at -# http://opensource.org/licenses/bsd-license.php -# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, -# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. -# -# -#**/ - -[Defines] - INF_VERSION = 0x00010005 - BASE_NAME = DefaultExceptionHandlerBaseLib - FILE_GUID = 3d5261d5-5eb7-4559-98e7-475aa9d0dc42 - MODULE_TYPE = BASE - VERSION_STRING = 1.0 - LIBRARY_CLASS = DefaultExceptionHandlerLib - -[Sources.common] - DefaultExceptionHandlerBase.c - -[Sources.ARM] - Arm/DefaultExceptionHandler.c - -[Sources.AARCH64] - AArch64/DefaultExceptionHandler.c - -[Packages] - MdePkg/MdePkg.dec - ArmPkg/ArmPkg.dec - -[LibraryClasses] - BaseLib - PrintLib - DebugLib - PeCoffGetEntryPointLib - ArmDisassemblerLib - SerialPortLib - -[Guids] - gEfiDebugImageInfoTableGuid