From nobody Tue Feb 10 13:37:17 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+70930+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+70930+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1612135529; cv=none; d=zohomail.com; s=zohoarc; b=XdDDAmGk18riSoEGZlnFyQueK6Lhxe/ghjBI03Fwk4VnA7KYWlzFGSOTIKqSaxYvYM3w7tqqQLmx2p8O4PwirjOIRLqokHR5dgLMfrnYssFniJyQn6qyeF/mAjhJuIcHFFrfhrO9xG/aWrqc3E8WlnQrSaTh4+gEvT2LAV3evXo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1612135529; 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=IDANypjBcGPWyL5s/b2zYZLdj8rvF3GBo57JCmLD+T4=; b=MUXRocr177UOmxO3JYt90pMGF9qbFfHeZWeskF4cLblJlaPirHrTb5UdTz52mCa5qMaHIYtjetZR6MVOWuVYMyg5t/QCblYiOLSZTayrRU2OCHaDb38ZuAuU4HJ96h/rsaJX1tpUZqrqCsmrdye3Geym+7o/mtbo4/OKWNK41kE= 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+70930+1787277+3901457@groups.io Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1612135529196999.1973359650227; Sun, 31 Jan 2021 15:25:29 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id HgWpYY1788612x9PXl1DQHU1; Sun, 31 Jan 2021 15:25:27 -0800 X-Received: from mail-qt1-f181.google.com (mail-qt1-f181.google.com [209.85.160.181]) by mx.groups.io with SMTP id smtpd.web10.26289.1612135525640189527 for ; Sun, 31 Jan 2021 15:25:25 -0800 X-Received: by mail-qt1-f181.google.com with SMTP id z9so11042919qtv.6 for ; Sun, 31 Jan 2021 15:25:25 -0800 (PST) X-Gm-Message-State: c5Y4FwZ0DNbLokGU5nUC204kx1787277AA= X-Google-Smtp-Source: ABdhPJwfQSx9uHomfcrqHA7VC9sHGpNFwhg2txMsixkGJfdftVU28rY1kVu/HIsk/3PnaTZhPoDGVA== X-Received: by 2002:ac8:36e2:: with SMTP id b31mr13192728qtc.19.1612135524550; Sun, 31 Jan 2021 15:25:24 -0800 (PST) X-Received: from cube.int.bluestop.org (c-174-52-16-57.hsd1.ut.comcast.net. [174.52.16.57]) by smtp.gmail.com with ESMTPSA id 12sm11809361qkg.39.2021.01.31.15.25.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 31 Jan 2021 15:25:24 -0800 (PST) From: "Rebecca Cran" To: devel@edk2.groups.io Cc: Rebecca Cran , leif@nuviainc.com, Ard Biesheuvel , nd@arm.com, Sami Mujawar , Liming Gao , Michael D Kinney , Zhiguang Liu , Samer El-Haj-Mahmoud , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Sami Mujawar Subject: [edk2-devel] [PATCH v7 04/21] ArmPkg: Add helper to read the Memory Model Features Register 2 Date: Sun, 31 Jan 2021 16:24:54 -0700 Message-Id: <20210131232511.18340-5-rebecca@nuviainc.com> In-Reply-To: <20210131232511.18340-1-rebecca@nuviainc.com> References: <20210131232511.18340-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=1612135527; bh=VjlFQLX6gFlRfOu6C0WRiwx+v8yig7tkWgnJVxnu1qk=; h=Cc:Date:From:Reply-To:Subject:To; b=BPolKfCFWmoDWyyYX65LTRIcAWCp/QIkhZuzHeOBDhA4ja75XY5gSnwklS7EXci4Tzm XG/xDVPmdc6QcwvqVd/h2VNMf1A1Hhe0AloWD7M+2XH8RPdMLfV6x41Fgi8/80sL+aMaW gcS4UUdl/p9s3cHJ871h0a6zsI4XSXdYriI= 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 (#70930): https://edk2.groups.io/g/devel/message/70930 Mute This Topic: https://groups.io/mt/80271121/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-