From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 944E4AC0D17 for ; Fri, 23 Feb 2024 10:56:51 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=/gqDLGtr7wz3rD9XYId9nR6DJ0UwkLBVFI7ZUSicwaQ=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1708685810; v=1; b=TC8PXwlQpVLj14gpNRyDXPEoR80ox3MLuyTA/OXg52NWnwSpfw8iiKZLI/Q2gE2sEwnfhNGm RtAMOpccQDYweWETIVSaWJrw3QCaBq/oF7QMwzjQrNeQ3MONFzBtLqzmEisKgumTF4zsP44F4Cg B30ihoT8r8erJtDIcboct4xQ= X-Received: by 127.0.0.2 with SMTP id 2VS9YY7687511xNq0LufTcIH; Fri, 23 Feb 2024 02:56:50 -0800 X-Received: from muminek.juszkiewicz.com.pl (muminek.juszkiewicz.com.pl [213.251.184.221]) by mx.groups.io with SMTP id smtpd.web11.8114.1708685809325304391 for ; Fri, 23 Feb 2024 02:56:49 -0800 X-Received: from localhost (localhost [127.0.0.1]) by muminek.juszkiewicz.com.pl (Postfix) with ESMTP id 83A3C260AB6; Fri, 23 Feb 2024 11:56:46 +0100 (CET) X-Virus-Scanned: Debian amavis at juszkiewicz.com.pl X-Received: from muminek.juszkiewicz.com.pl ([127.0.0.1]) by localhost (muminek.juszkiewicz.com.pl [127.0.0.1]) (amavis, port 10024) with ESMTP id Ut2cH1IvhJ_1; Fri, 23 Feb 2024 11:56:44 +0100 (CET) X-Received: from applejack.lan (83.11.7.224.ipv4.supernova.orange.pl [83.11.7.224]) by muminek.juszkiewicz.com.pl (Postfix) with ESMTPSA id 98923260080; Fri, 23 Feb 2024 11:56:43 +0100 (CET) From: "Marcin Juszkiewicz" To: devel@edk2.groups.io Cc: Ard Biesheuvel , Leif Lindholm , Sami Mujawar , Marcin Juszkiewicz Subject: [edk2-devel] [PATCH 0/2] ArmPkg/ArmLib: add functions to read system registers Date: Fri, 23 Feb 2024 11:56:32 +0100 Message-ID: <20240223105634.424149-1-marcin.juszkiewicz@linaro.org> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: 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,marcin.juszkiewicz@linaro.org List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: x9VeM3Dxdn7cPpt9ct9V6K4Yx7686176AA= Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=TC8PXwlQ; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=linaro.org (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io My ArmCpuInfo tool reads system registers to check which features are supported by AArch64 cores in host system. I am updating it for 2023-12 update of "Arm A-profile Architecture Registers" document [1] and had to add reading of several new system registers. 1. https://developer.arm.com/documentation/ddi0601/2023-12/ While I can keep them in my application, they may be useful for someone else too. ArmLib build requirements need bump to 'armv8-a+sme' to get access to SVE/SME related system registers. Marcin Juszkiewicz (2): ArmPkg/ArmLib: Add functions to read SVE/SME system registers ArmPkg/ArmLib: Add functions to read future system registers ArmPkg/Library/ArmLib/ArmBaseLib.inf | 4 ++ ArmPkg/Library/ArmLib/AArch64/AArch64Lib.h | 46 +++++++++++++++++-- .../Library/ArmLib/AArch64/AArch64Support.S | 42 +++++++++++++++++ 3 files changed, 88 insertions(+), 4 deletions(-) -- 2.43.2 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#115879): https://edk2.groups.io/g/devel/message/115879 Mute This Topic: https://groups.io/mt/104526093/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-