Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Mar 2023 19:02:51 GMT
From:      Andrew Turner <andrew@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 6a4f5fdd19d6 - main - Mark the arm64 PSR register fields with UL
Message-ID:  <202303231902.32NJ2p0Q039414@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by andrew:

URL: https://cgit.FreeBSD.org/src/commit/?id=6a4f5fdd19d6de8612998eb7c62273fd8b8c3908

commit 6a4f5fdd19d6de8612998eb7c62273fd8b8c3908
Author:     Andrew Turner <andrew@FreeBSD.org>
AuthorDate: 2023-03-22 16:46:25 +0000
Commit:     Andrew Turner <andrew@FreeBSD.org>
CommitDate: 2023-03-23 18:56:26 +0000

    Mark the arm64 PSR register fields with UL
    
    These are for a 64 bit register. Make them 64 bit values on arm64.
    
    Sponsored by:   Arm Ltd
---
 sys/arm64/include/armreg.h | 46 +++++++++++++++++++++++-----------------------
 1 file changed, 23 insertions(+), 23 deletions(-)

diff --git a/sys/arm64/include/armreg.h b/sys/arm64/include/armreg.h
index 6ecd791fd87b..45f6145de8bd 100644
--- a/sys/arm64/include/armreg.h
+++ b/sys/arm64/include/armreg.h
@@ -1778,32 +1778,32 @@
  *         0: always SP0
  *         1: current ELs SP
  */
-#define	PSR_M_EL0t	0x00000000
-#define	PSR_M_EL1t	0x00000004
-#define	PSR_M_EL1h	0x00000005
-#define	PSR_M_EL2t	0x00000008
-#define	PSR_M_EL2h	0x00000009
-#define	PSR_M_64	0x00000000
-#define	PSR_M_32	0x00000010
-#define	PSR_M_MASK	0x0000000f
-
-#define	PSR_T		0x00000020
-
-#define	PSR_AARCH32	0x00000010
-#define	PSR_F		0x00000040
-#define	PSR_I		0x00000080
-#define	PSR_A		0x00000100
-#define	PSR_D		0x00000200
+#define	PSR_M_EL0t	0x00000000UL
+#define	PSR_M_EL1t	0x00000004UL
+#define	PSR_M_EL1h	0x00000005UL
+#define	PSR_M_EL2t	0x00000008UL
+#define	PSR_M_EL2h	0x00000009UL
+#define	PSR_M_64	0x00000000UL
+#define	PSR_M_32	0x00000010UL
+#define	PSR_M_MASK	0x0000000fUL
+
+#define	PSR_T		0x00000020UL
+
+#define	PSR_AARCH32	0x00000010UL
+#define	PSR_F		0x00000040UL
+#define	PSR_I		0x00000080UL
+#define	PSR_A		0x00000100UL
+#define	PSR_D		0x00000200UL
 #define	PSR_DAIF	(PSR_D | PSR_A | PSR_I | PSR_F)
 /* The default DAIF mask. These bits are valid in spsr_el1 and daif */
 #define	PSR_DAIF_DEFAULT (PSR_F)
-#define	PSR_IL		0x00100000
-#define	PSR_SS		0x00200000
-#define	PSR_V		0x10000000
-#define	PSR_C		0x20000000
-#define	PSR_Z		0x40000000
-#define	PSR_N		0x80000000
-#define	PSR_FLAGS	0xf0000000
+#define	PSR_IL		0x00100000UL
+#define	PSR_SS		0x00200000UL
+#define	PSR_V		0x10000000UL
+#define	PSR_C		0x20000000UL
+#define	PSR_Z		0x40000000UL
+#define	PSR_N		0x80000000UL
+#define	PSR_FLAGS	0xf0000000UL
 /* PSR fields that can be set from 32-bit and 64-bit processes */
 #define	PSR_SETTABLE_32	PSR_FLAGS
 #define	PSR_SETTABLE_64	(PSR_FLAGS | PSR_SS)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202303231902.32NJ2p0Q039414>