arm: Make machine/reg.h self-contained

Allow inclusion of sys/reg.h w/o pre-requisites by making arm's machine/reg.h
self-contained.

Sponsored by:		Netflix
This commit is contained in:
Warner Losh 2021-11-23 17:49:56 -07:00
parent c0aa5f6a32
commit b57e0aa4ef

View File

@ -3,6 +3,8 @@
#ifndef MACHINE_REG_H
#define MACHINE_REG_H
#include <sys/_types.h>
struct reg {
unsigned int r[13];
unsigned int r_sp;
@ -12,9 +14,9 @@ struct reg {
};
struct fp_extended_precision {
u_int32_t fp_exponent;
u_int32_t fp_mantissa_hi;
u_int32_t fp_mantissa_lo;
__uint32_t fp_exponent;
__uint32_t fp_mantissa_hi;
__uint32_t fp_mantissa_lo;
};
typedef struct fp_extended_precision fp_reg_t;