From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from muminek.juszkiewicz.com.pl (muminek.juszkiewicz.com.pl [213.251.184.221]) by mx.groups.io with SMTP id smtpd.web10.836.1682019943745061127 for ; Thu, 20 Apr 2023 12:45:44 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=softfail (domain: linaro.org, ip: 213.251.184.221, mailfrom: marcin.juszkiewicz@linaro.org) Received: from localhost (localhost [127.0.0.1]) by muminek.juszkiewicz.com.pl (Postfix) with ESMTP id 81A90260824; Thu, 20 Apr 2023 21:45:40 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at juszkiewicz.com.pl Received: from muminek.juszkiewicz.com.pl ([127.0.0.1]) by localhost (muminek.juszkiewicz.com.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yX8T9V_wyIoa; Thu, 20 Apr 2023 21:45:38 +0200 (CEST) Received: from applejack.lan (83.11.213.14.ipv4.supernova.orange.pl [83.11.213.14]) by muminek.juszkiewicz.com.pl (Postfix) with ESMTPSA id C49A2260080; Thu, 20 Apr 2023 21:45:37 +0200 (CEST) From: "Marcin Juszkiewicz" To: devel@edk2.groups.io Cc: Ard Biesheuvel , Leif Lindholm , Sami Mujawar , Marcin Juszkiewicz Subject: [PATCH 1/1] ArmPkg: older assemblers may lack ID_AA64ISAR2_EL1 Date: Thu, 20 Apr 2023 21:45:32 +0200 Message-Id: <20230420194532.98720-1-marcin.juszkiewicz@linaro.org> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable ArmCpuInfo needs to be able to read ID_AA64ISAR2_EL1 system register. Older toolchains do not know it. Same solution as one for QEMU: https://www.mail-archive.com/qemu-devel@nongnu.org/msg929586.html Signed-off-by: Marcin Juszkiewicz --- ArmPkg/Include/Chipset/AArch64.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ArmPkg/Include/Chipset/AArch64.h b/ArmPkg/Include/Chipset/AA= rch64.h index bfd2859f5131..690433f68ec8 100644 --- a/ArmPkg/Include/Chipset/AArch64.h +++ b/ArmPkg/Include/Chipset/AArch64.h @@ -112,6 +112,10 @@ #define ARM_VECTOR_LOW_A32_FIQ 0x700 #define ARM_VECTOR_LOW_A32_SERR 0x780 =20 +// The ID_AA64ISAR2_EL1 register is not recognized by older +// assemblers, we need to define it here. +#define ID_AA64ISAR2_EL1 S3_0_C0_C6_2 + // The ID_AA64MMFR2_EL1 register was added in ARMv8.2. Since we // build for ARMv8.0, we need to define the register here. #define ID_AA64MMFR2_EL1 S3_0_C0_C7_2 --=20 2.40.0