From nobody Mon Feb 9 14:45:50 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+69642+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+69642+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1609801126; cv=none; d=zohomail.com; s=zohoarc; b=NhPvze8sP0RxULyxKfWyPWPLWc7jxb+aZbUfDBD+kTI479h2EKUXa85peBS0LPWvyWv95lqxtgdb6bhFVrHL6mxv1pEcTXOr6WCpjbtTe9ztpgvtO3NPW1v8jt2ccovkRAumTi6N2Rz+4io5Z/vZznlRP6vUnqF2gkYDpmFGOyA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1609801126; 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=xF6TUXi9thpxLhA1bsOsmDD0chi9wWCmL5Mz0DxafrM=; b=ORaKAWTEdjZ2UepfwOIYcOiHlLyeRuKKvZSsNO3A13pYCq3toGPZtvAHayTuDZe/enuPcIyqCF8dYX4hieQ+mz39Ur5aexAikko0XzVgcliW7K4MyD/Cyv4gnl2kqfLSAs8HxsBYkJrwajsVoqcBA/bsmkYwTRGthc5dPQp/M/Q= 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+69642+1787277+3901457@groups.io Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1609801126916730.1320521754672; Mon, 4 Jan 2021 14:58:46 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id lXiuYY1788612xLRn2I6GAt2; Mon, 04 Jan 2021 14:58:46 -0800 X-Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48]) by mx.groups.io with SMTP id smtpd.web09.69.1609801125602750070 for ; Mon, 04 Jan 2021 14:58:45 -0800 X-Received: by mail-pj1-f48.google.com with SMTP id m5so525360pjv.5 for ; Mon, 04 Jan 2021 14:58:45 -0800 (PST) X-Gm-Message-State: yrySy94byNnkq5e3IKVEvtx3x1787277AA= X-Google-Smtp-Source: ABdhPJzg2OaORWWLKuDOzJbhYIKcD/6eWNertHHKuu/40a+ih4IOH11L/o4NZzsmSXJtgpykOkNLxQ== X-Received: by 2002:a17:90a:ea02:: with SMTP id w2mr1058607pjy.99.1609801124791; Mon, 04 Jan 2021 14:58:44 -0800 (PST) X-Received: from cube.nuviainc.com (c-174-52-16-57.hsd1.ut.comcast.net. [174.52.16.57]) by smtp.gmail.com with ESMTPSA id x143sm64185289pgx.66.2021.01.04.14.58.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Jan 2021 14:58:44 -0800 (PST) From: "Rebecca Cran" To: devel@edk2.groups.io Cc: Rebecca Cran , Leif Lindholm , Ard Biesheuvel , "nd @ arm . com . Sami Mujawar" , Liming Gao , Michael D Kinney , Zhiguang Liu Subject: [edk2-devel] [PATCH v5 04/23] ArmPkg: Add helper to read the Memory Model Features Register 2 Date: Mon, 4 Jan 2021 15:58:11 -0700 Message-Id: <20210104225830.12606-5-rebecca@nuviainc.com> In-Reply-To: <20210104225830.12606-1-rebecca@nuviainc.com> References: <20210104225830.12606-1-rebecca@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,rebecca@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=1609801126; bh=eQNDJLNPNIfIGYQlHayTQRGP7yZVf0wyzBobo/mlfKI=; h=Cc:Date:From:Reply-To:Subject:To; b=va+cqcBx3JMd3scw+ONYVbdAAmTf2Q0mlK831wXNgRRc/cz6P/YCS090bwFxwltIKJo XoHR3gG73qvHeGZERgP2IY/zVgrabHdENjyaCNaoUOF9t2EPRy9Tqg8zQLAGYCTvlEATi wF/OJ4mqiCV/GphLDDpABZ9cexOhbLeIPhI= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" Add helper function to read the MMFR2 register. We will need this to determine CCIDX support. Signed-off-by: Rebecca Cran Reviewed-by: Leif Lindholm Reviewed-by: Sami Mujawar --- ArmPkg/Library/ArmLib/AArch64/AArch64Lib.h | 11 +++++++++++ ArmPkg/Library/ArmLib/AArch64/AArch64Support.S | 3 +++ 2 files changed, 14 insertions(+) diff --git a/ArmPkg/Library/ArmLib/AArch64/AArch64Lib.h b/ArmPkg/Library/Ar= mLib/AArch64/AArch64Lib.h index 85bcecda730f..cfc0c878a415 100644 --- a/ArmPkg/Library/ArmLib/AArch64/AArch64Lib.h +++ b/ArmPkg/Library/ArmLib/AArch64/AArch64Lib.h @@ -41,5 +41,16 @@ EFIAPI ArmReadIdAA64Pfr0 ( VOID ); + +/** Reads the ID_AA64MMFR2_EL1 register. + + @return The contents of the ID_AA64MMFR2_EL1 register. +**/ +UINTN +EFIAPI +ArmReadIdAA64Mmfr2 ( + VOID + ); + #endif // __AARCH64_LIB_H__ =20 diff --git a/ArmPkg/Library/ArmLib/AArch64/AArch64Support.S b/ArmPkg/Librar= y/ArmLib/AArch64/AArch64Support.S index 129205d2ac27..d3cc1e86716b 100644 --- a/ArmPkg/Library/ArmLib/AArch64/AArch64Support.S +++ b/ArmPkg/Library/ArmLib/AArch64/AArch64Support.S @@ -425,6 +425,9 @@ ASM_FUNC(ArmCallWFI) wfi ret =20 +ASM_FUNC(ArmReadIdAA64Mmfr2) + mrs x0, ID_AA64MMFR2_EL1 // read EL1 MMFR2 + ret =20 ASM_FUNC(ArmReadMpidr) mrs x0, mpidr_el1 // read EL1 MPIDR --=20 2.26.2 -=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 (#69642): https://edk2.groups.io/g/devel/message/69642 Mute This Topic: https://groups.io/mt/79438406/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-