mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-11-07 04:36:52 -10:00
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:
1 parent
b57a571a00
commit
95a5bfcee0
2 files changed
+2
-1
No files matched your search
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user