From nobody Tue Feb 10 23:54:44 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+70300+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+70300+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1610642208; cv=none; d=zohomail.com; s=zohoarc; b=J2fmiXnTA/IWQ0rwedva/J3GgwZV5Q/kf/z6hL4ArXCej9vMb60st1DIoYioJK1+4Rf9KA09P2kctYUcATDN64NHc7lp0manwbzI4YVY9HkHrdKfN9vIPR9QlejC5leCSdPe6Yq9B/eKstz2fKIlcCwKJJ6PoWmmOzbv7EigIJ0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1610642208; 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=/gcp7uN5wgz5pQiSsasgBV0jIw4k5swbQDIQeWqh7LA=; b=Z5/AafpaTWDzuwf/SFtHCy+Hlyids3sW8Bvig89ayqQNjivCwzCx07K9LvNLYcwhz7fZ0wBdjlhTuKa0QBr2pWYsmkq63iIRqk+kxqDFO99Ino88S6jAw5b5VhGdt9SZzlOtPFqGB7t2G0sGgLomtf2rN9Vfbgo6mdycub3Tqk0= 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+70300+1787277+3901457@groups.io Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1610642208580130.8778327764694; Thu, 14 Jan 2021 08:36:48 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id 7WAdYY1788612x1pp6XL91qc; Thu, 14 Jan 2021 08:36:47 -0800 X-Received: from mail-io1-f50.google.com (mail-io1-f50.google.com [209.85.166.50]) by mx.groups.io with SMTP id smtpd.web09.4093.1610642201872365330 for ; Thu, 14 Jan 2021 08:36:41 -0800 X-Received: by mail-io1-f50.google.com with SMTP id d9so12367802iob.6 for ; Thu, 14 Jan 2021 08:36:41 -0800 (PST) X-Gm-Message-State: n2OeN4wfXwfnVlDF5kmuk7gQx1787277AA= X-Google-Smtp-Source: ABdhPJwPrcKE5lbbthMKrsO/WkHKG+wwhkjuqdn0jpovSGN4CDpasLtbwwMvB+ERUskuPzhr8m/JAg== X-Received: by 2002:a6b:7d42:: with SMTP id d2mr5728199ioq.176.1610642200990; Thu, 14 Jan 2021 08:36:40 -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 y5sm3711920ilj.35.2021.01.14.08.36.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Jan 2021 08:36:40 -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 , Sami Mujawar Subject: [edk2-devel] [PATCH v6 05/22] ArmPkg: Add helper to read the Memory Model Features Register 2 Date: Thu, 14 Jan 2021 09:36:11 -0700 Message-Id: <20210114163628.31952-6-rebecca@nuviainc.com> In-Reply-To: <20210114163628.31952-1-rebecca@nuviainc.com> References: <20210114163628.31952-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=1610642207; bh=EI10WW5bU8jxLxC+3g8h6N0nfm0CywsmkdPmsHzD9z8=; h=Cc:Date:From:Reply-To:Subject:To; b=IM/thpVrDkMlGqIyyJIVeOYlWM+IgioDUQlPEVqakUDWHA+Ew+SGoJg9p1DuBXBFC0k 7Aa+Jul5Bx89BEMXL8+F10PULEPDJwpCXW8MQqSXlMi1WOw3bFjpR4U6QhgE9a6H6DQln iLqrg9UrQJgjOT9pTy53LwlJQamrlwOjArA= 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 Reviewed-by: Philippe Mathieu-Daude --- 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 (#70300): https://edk2.groups.io/g/devel/message/70300 Mute This Topic: https://groups.io/mt/79679241/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-