From nobody Tue Feb 10 01:34:40 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+72065+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+72065+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=arm.com ARC-Seal: i=1; a=rsa-sha256; t=1614086075; cv=none; d=zohomail.com; s=zohoarc; b=c56/1sMsjob8zEzH3k36D5ZG9ovLe1VwZEtuBRGKl7KKy9RoCUh0IfAgnUQiN4Cb6GxY5LzMumPKWMTHbHT+xyNeph4Y/DvdkYyGr92Iex+6SA5LzoNVOuOsYcjrilDxZrTtPiPaTtwUTNja8oCj0JUedSukvFN8lYscZFrbGD4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1614086075; h=Date:From:In-Reply-To:List-Id:List-Unsubscribe:Message-ID:Reply-To:References:Sender:Subject:To; bh=8YGRNTbYqUm9/7n4gP1j68V+EsdgQN/KtGPsYtVGWBE=; b=QpodI5ZKlAwW9mcTjP99SnzQOqvf9eLmixXnaO+qFFhVpwta/F1Z6aWHkM7v887l51d/EZXIKeA3T5YX7HFH3x25hEmdLYnNdTFBQDiyljex5rHthJcUbUP6Zzv7vG0Bo9ZjCuoI1TksHZIdMmwUgDyFjXzG0lQSq2+8mjqxyk0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+72065+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1614086075312937.640380869087; Tue, 23 Feb 2021 05:14:35 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id NqfgYY1788612xce06XukYHr; Tue, 23 Feb 2021 05:14:34 -0800 X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web08.9417.1614086074008210711 for ; Tue, 23 Feb 2021 05:14:34 -0800 X-Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id AF68F101E; Tue, 23 Feb 2021 05:14:33 -0800 (PST) X-Received: from e120189.arm.com (unknown [10.57.9.161]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id A05453F70D; Tue, 23 Feb 2021 05:14:32 -0800 (PST) From: "PierreGondois" To: devel@edk2.groups.io, ardb+tianocore@kernel.org, leif@nuviainc.com, sami.mujawar@arm.com Subject: [edk2-devel] [PATCH v3 11/26] ArmPkg: Remove ArmGic/ArmGicSecLib.c Date: Tue, 23 Feb 2021 13:13:51 +0000 Message-Id: <20210223131406.3484-12-Pierre.Gondois@arm.com> In-Reply-To: <20210223131406.3484-1-Pierre.Gondois@arm.com> References: <20210223131406.3484-1-Pierre.Gondois@arm.com> Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,pierre.gondois@arm.com X-Gm-Message-State: pVysI2gCj2asMZNdMhTjCFXBx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1614086074; bh=rsjhPDbW6UXM9w1lZSXyX45dvOphZonJDCKRAi6j+sU=; h=Date:From:Reply-To:Subject:To; b=b1Yu87qwXqlUBQZK0VPT7QenE5bzOzAnPyqcaqr4+LhZb/8QsQWHqLMKgqRBaCfCphY w7N8JAQoV/KAkpfaTpydxhMVJ559jjOWpcExeSdO/uh6QiA8vRxNvL33Bo7VqQL/cy2eH oubMhPHrAxb8KYZ99uscWtPavVXOspdLC+M= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Pierre Gondois Commit: 142fa386eb907df55c239311cd5fa2d40f5007dd removes the ArmGicSecLib. The file ArmGic/ArmGicSecLib.c was exclusively used by this library. Thus, this file should also be removed. Signed-off-by: Pierre Gondois Reviewed-by: Sami Mujawar --- The changes can be seen at: https://github.com/PierreARM/edk2/tree/1552_Ecc= _ArmPkg_BIS_v3 ArmPkg/Drivers/ArmGic/ArmGicSecLib.c | 58 ---------------------------- 1 file changed, 58 deletions(-) delete mode 100644 ArmPkg/Drivers/ArmGic/ArmGicSecLib.c diff --git a/ArmPkg/Drivers/ArmGic/ArmGicSecLib.c b/ArmPkg/Drivers/ArmGic/A= rmGicSecLib.c deleted file mode 100644 index 4af98bb6ec93..000000000000 --- a/ArmPkg/Drivers/ArmGic/ArmGicSecLib.c +++ /dev/null @@ -1,58 +0,0 @@ -/** @file -* -* Copyright (c) 2011-2014, ARM Limited. All rights reserved. -* -* SPDX-License-Identifier: BSD-2-Clause-Patent -* -**/ - -#include -#include -#include -#include - -/* - * This function configures the interrupts set by the mask to be secure. - * - */ -VOID -EFIAPI -ArmGicSetSecureInterrupts ( - IN UINTN GicDistributorBase, - IN UINTN* GicSecureInterruptMask, - IN UINTN GicSecureInterruptMaskSize - ) -{ - UINTN Index; - UINT32 InterruptStatus; - - // We must not have more interrupts defined by the mask than the number = of available interrupts - ASSERT(GicSecureInterruptMaskSize <=3D (ArmGicGetMaxNumInterrupts (GicDi= stributorBase) / 32)); - - // Set all the interrupts defined by the mask as Secure - for (Index =3D 0; Index < GicSecureInterruptMaskSize; Index++) { - InterruptStatus =3D MmioRead32 (GicDistributorBase + ARM_GIC_ICDISR + = (Index * 4)); - MmioWrite32 (GicDistributorBase + ARM_GIC_ICDISR + (Index * 4), Interr= uptStatus & (~GicSecureInterruptMask[Index])); - } -} - -VOID -EFIAPI -ArmGicEnableDistributor ( - IN INTN GicDistributorBase - ) -{ - // Turn on the GIC distributor - MmioWrite32 (GicDistributorBase + ARM_GIC_ICDDCR, 1); -} - -VOID -EFIAPI -ArmGicSetupNonSecure ( - IN UINTN MpId, - IN INTN GicDistributorBase, - IN INTN GicInterruptInterfaceBase - ) -{ - ArmGicV2SetupNonSecure (MpId, GicDistributorBase, GicInterruptInterfaceB= ase); -} --=20 2.17.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#72065): https://edk2.groups.io/g/devel/message/72065 Mute This Topic: https://groups.io/mt/80850086/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-