git: 9c52f98c9f1a - main - arm64: Add the TCR_EL2.PS mask

From: Andrew Turner <andrew_at_FreeBSD.org>
Date: Wed, 21 Feb 2024 18:55:51 UTC
The branch main has been updated by andrew:

URL: https://cgit.FreeBSD.org/src/commit/?id=9c52f98c9f1abfe6577335522b6007659f759adc

commit 9c52f98c9f1abfe6577335522b6007659f759adc
Author:     Andrew Turner <andrew@FreeBSD.org>
AuthorDate: 2024-02-21 18:16:43 +0000
Commit:     Andrew Turner <andrew@FreeBSD.org>
CommitDate: 2024-02-21 18:55:32 +0000

    arm64: Add the TCR_EL2.PS mask
---
 sys/arm64/include/hypervisor.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sys/arm64/include/hypervisor.h b/sys/arm64/include/hypervisor.h
index 589d6e9cbdbe..18f173c77720 100644
--- a/sys/arm64/include/hypervisor.h
+++ b/sys/arm64/include/hypervisor.h
@@ -169,6 +169,7 @@
 #define	TCR_EL2_TG0_64K		(0x1UL << TCR_EL2_TG0_SHIFT)
 #define	TCR_EL2_TG0_16K		(0x2UL << TCR_EL2_TG0_SHIFT)
 #define	TCR_EL2_PS_SHIFT	16
+#define	TCR_EL2_PS_MASK		(0xfUL << TCR_EL2_PS_SHIFT)
 #define	 TCR_EL2_PS_32BITS	(0UL << TCR_EL2_PS_SHIFT)
 #define	 TCR_EL2_PS_36BITS	(1UL << TCR_EL2_PS_SHIFT)
 #define	 TCR_EL2_PS_40BITS	(2UL << TCR_EL2_PS_SHIFT)