From nobody Tue Feb 10 03:38:32 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+70628+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+70628+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=arm.com ARC-Seal: i=1; a=rsa-sha256; t=1611222720; cv=none; d=zohomail.com; s=zohoarc; b=hNnhpXGB2UIw/qqoOZQE3YubfGGOkAettazj5/PbnHvU1YECyrU1RgaebgAfZyYU8YpB2asX3pCl0aqGrfPOvUHzS31WUZ7CVPRzlPhlPSVXhPVsa82TbQxBqwW8PLjzvmqRoy0zv6ggaEM7QbJBDmA4DsJDi8OaOQXp0xpvH4o= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1611222720; h=Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:Message-ID:Reply-To:References:Sender:Subject:To; bh=wUY5ZYD0bdzdygleivomW54/2T1Pjl3VpyV0g0HVePw=; b=cuQSUwFfBuRIJA3LcKQfVCzUxRtvXF+JDrRWTWbd9lwwmiz9ypY62iQwyI/+UGzwRLEYpP0kTOMjDXHsidUQC/sKKNiFg1Iznq/Hgce2acxv6LORKTQTlDvVeh4Bn+QoVWALHl84xqnGQrmPN0Q+5L0hqo2VHH2/xtzMlV37Tzw= 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+70628+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 1611222720567816.0762475179595; Thu, 21 Jan 2021 01:52:00 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id 9QWkYY1788612xJ2IYwAwc04; Thu, 21 Jan 2021 01:52:00 -0800 X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web08.4956.1611222714761150020 for ; Thu, 21 Jan 2021 01:51:54 -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 7CE4914FF; Thu, 21 Jan 2021 01:51:54 -0800 (PST) X-Received: from e120189.arm.com (unknown [10.57.40.199]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 41B423F719; Thu, 21 Jan 2021 01:51:53 -0800 (PST) From: "PierreGondois" To: devel@edk2.groups.io, ardb+tianocore@kernel.org, leif@nuviainc.com Cc: sami.mujawar@arm.com Subject: [edk2-devel] [PATCH v1 12/27] ArmPkg: Remove ArmGic/ArmGicSecLib.c Date: Thu, 21 Jan 2021 09:51:04 +0000 Message-Id: <20210121095119.22143-13-Pierre.Gondois@arm.com> In-Reply-To: <20210121095119.22143-1-Pierre.Gondois@arm.com> References: <20210121095119.22143-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: eb2tbUzbWU6PU38H38f0OPXYx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1611222720; bh=5X7ZmBiOV53eRmE4mycSeLjdQz+MbhMcbbDsCOQQfyA=; h=Cc:Date:From:Reply-To:Subject:To; b=uQvSWyTgO9y2yTTs4Ssch7Lq00EimbRyA9KKMJFMncAAsWl0kRtFIIniaj3BREoSqHX FpMjTTletSuyaHAz98qfJ52xSyylc/uLaRzVZdYOnWWOy0eRX5nAt7MMbv3mbciFv2XtA ebrXLhv+yoNIcHS7a5+I/X1velcRdRMC1so= 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 --- The changes can be seen at: https://github.com/PierreARM/edk2/tree/1552_Ecc= _ArmPkg_BIS_v1 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); -} -- 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 (#70628): https://edk2.groups.io/g/devel/message/70628 Mute This Topic: https://groups.io/mt/80000385/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-