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
This commit is contained in:
Andrew Turner committed 2025-10-27 11:36:17 +00:00
1 parent b57a571a00
commit 95a5bfcee0
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -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
+1 -1
View File
@@ -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)