From nobody Tue Feb 10 01:14:53 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+69202+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+69202+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1608300996; cv=none; d=zohomail.com; s=zohoarc; b=H0f3wzHYcpv5jlpwcrD9XCqPc/Gn1NbMP8fYfrY9ksQuNyj67ZK6gYM66Pfl3zW94dyuiB8F4QIrCHvDSkqbzG27OTM85e3y0eyhlacAjfqnckB3TsflnFlXftkLjEsAGI3iBj/oSGEvSOq7AfLjUeGgcDQHdDqxIieFjy6/stU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1608300996; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=Rh8ISfLzvEnROACQvxu1NNQqECcDxT9sl5+Y2rhuW0Q=; b=WyDw+FiIgWETV3L1wFIHHv/kmCFEaPFeNywAkdJU13qD1RgARruq9xLZ2w2RZnUKISlUE/WR5Y+Y3NgOHqo+IE6pGGcaX37G6Onyl1DhE/8s9SB7Rb8BD/nNUS6fqsUwXqS2+ezWJmPeXkbJpa/j30tNhVwJRaYqd2UkLuSQLww= 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+69202+1787277+3901457@groups.io Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1608300996287343.84374387884225; Fri, 18 Dec 2020 06:16:36 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id EWXGYY1788612xS3ATZuaCqt; Fri, 18 Dec 2020 06:16:34 -0800 X-Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) by mx.groups.io with SMTP id smtpd.web12.10590.1608300985540771696 for ; Fri, 18 Dec 2020 06:16:25 -0800 X-Received: by mail-wm1-f50.google.com with SMTP id a6so2488173wmc.2 for ; Fri, 18 Dec 2020 06:16:25 -0800 (PST) X-Gm-Message-State: d4uMjFEAuwp9WNL9wwjrY6YCx1787277AA= X-Google-Smtp-Source: ABdhPJyjDn2icmWJU7xpAGtcX4eqM1ptxyTxL2YZwIiIpVdRlDtPiy9t2cgPAQ6F9wxCAJtKFw/ejQ== X-Received: by 2002:a1c:2d47:: with SMTP id t68mr4590665wmt.148.1608300983834; Fri, 18 Dec 2020 06:16:23 -0800 (PST) X-Received: from vanye.hemma.eciton.net (cpc1-cmbg19-2-0-cust915.5-4.cable.virginm.net. [82.27.183.148]) by smtp.gmail.com with ESMTPSA id b12sm18558569wmj.2.2020.12.18.06.16.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Dec 2020 06:16:23 -0800 (PST) From: "Leif Lindholm" To: devel@edk2.groups.io Cc: Ard Biesheuvel Subject: [edk2-devel] [PATCH 6/9] ArmPkg: use helper to check for Security extensions in ArmArchTimerLib Date: Fri, 18 Dec 2020 14:16:14 +0000 Message-Id: <20201218141617.26947-7-leif@nuviainc.com> In-Reply-To: <20201218141617.26947-1-leif@nuviainc.com> References: <20201218141617.26947-1-leif@nuviainc.com> MIME-Version: 1.0 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,leif@nuviainc.com Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1608300994; bh=1+F6qvZddmulrBncSZE9oXPq9D//GCW17ufPSERdz28=; h=Cc:Date:From:Reply-To:Subject:To; b=pe6dvPwg2Io7ejvjryRu17CXo+yfPrgXN9yHkpO/lQ7x+SuykYSEBm/9TYs5Pe9ycFB wa7RMsdjCZHbZQiiLQwdbJ+HBlm8uyq5/h3lTw/66fES/IIv6//Yu8hO1H6ASVv39KODO W34DixtxQ/LwDrAAy5eR9Vq4yYlMxH4bUMI= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" Use the helper ArmHasSecurityExtensions () instead of accessing ID_PFR1 directly. Only affects ARM build. Cc: Ard Biesheuvel Signed-off-by: Leif Lindholm --- ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.c b/ArmPkg/Libr= ary/ArmArchTimerLib/ArmArchTimerLib.c index 7c698fe471f3..24d9dae4e660 100644 --- a/ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.c +++ b/ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.c @@ -56,7 +56,7 @@ TimerConstructor ( // If the security extension is not implemented, set Timer Frequency // here. // - if ((ArmReadIdPfr1 () & ARM_PFR1_SEC) =3D=3D 0x0) { + if (ArmHasSecurityExtensions ()) { ArmGenericTimerSetTimerFreq (PcdGet32 (PcdArmArchTimerFreqInHz)); } #endif --=20 2.20.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 (#69202): https://edk2.groups.io/g/devel/message/69202 Mute This Topic: https://groups.io/mt/79061639/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-