aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Turner <andrew@FreeBSD.org>2025-10-27 10:56:25 +0000
committerAndrew Turner <andrew@FreeBSD.org>2025-10-27 11:36:17 +0000
commit95a5bfcee07cf522edab72388decc4d6e27d341d (patch)
tree48961c0e11809f9aac83a1a00063c4a5d7a7b583
parentb57a571a001958febec042e15c571c5074ce44ce (diff)
arm64: Use _armreg.h in cpu.h
We only needed armreg.h for the *_SPECIALREG macros. Use the new _armreg.h directly. Reviewed by: emaste Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D53325
-rw-r--r--sys/arm64/include/_armreg.h1
-rw-r--r--sys/arm64/include/cpu.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/sys/arm64/include/_armreg.h b/sys/arm64/include/_armreg.h
index 7aa3c358b327..0f5134e5a978 100644
--- a/sys/arm64/include/_armreg.h
+++ b/sys/arm64/include/_armreg.h
@@ -28,6 +28,7 @@
*/
#if !defined(_MACHINE_ARMREG_H_) && \
+ !defined(_MACHINE_CPU_H_) && \
!defined(_MACHINE_HYPERVISOR_H_)
#error Do not include this file directly
#endif
diff --git a/sys/arm64/include/cpu.h b/sys/arm64/include/cpu.h
index 124da8c215ed..b15210633d37 100644
--- a/sys/arm64/include/cpu.h
+++ b/sys/arm64/include/cpu.h
@@ -43,10 +43,10 @@
#define _MACHINE_CPU_H_
#if !defined(__ASSEMBLER__)
+#include <machine/_armreg.h>
#include <machine/atomic.h>
#include <machine/frame.h>
#endif
-#include <machine/armreg.h>
#define TRAPF_PC(tfp) ((tfp)->tf_elr)
#define TRAPF_USERMODE(tfp) (((tfp)->tf_spsr & PSR_M_MASK) == PSR_M_EL0t)