arm64: Make machine/reg.h self contained
Make sys/reg.h includable on aarch64 by making machine/reg.h self-contained: Include sys/_types.h and use __uint* instead of uint*. Sponsored by: Netflix
This commit is contained in:
parent
b57e0aa4ef
commit
8ee8271e22
@ -33,12 +33,14 @@
|
||||
#ifndef _MACHINE_REG_H_
|
||||
#define _MACHINE_REG_H_
|
||||
|
||||
#include <sys/_types.h>
|
||||
|
||||
struct reg {
|
||||
uint64_t x[30];
|
||||
uint64_t lr;
|
||||
uint64_t sp;
|
||||
uint64_t elr;
|
||||
uint32_t spsr;
|
||||
__uint64_t x[30];
|
||||
__uint64_t lr;
|
||||
__uint64_t sp;
|
||||
__uint64_t elr;
|
||||
__uint32_t spsr;
|
||||
};
|
||||
|
||||
struct reg32 {
|
||||
@ -51,8 +53,8 @@ struct reg32 {
|
||||
|
||||
struct fpreg {
|
||||
__uint128_t fp_q[32];
|
||||
uint32_t fp_sr;
|
||||
uint32_t fp_cr;
|
||||
__uint32_t fp_sr;
|
||||
__uint32_t fp_cr;
|
||||
};
|
||||
|
||||
struct fpreg32 {
|
||||
@ -60,20 +62,20 @@ struct fpreg32 {
|
||||
};
|
||||
|
||||
struct dbreg {
|
||||
uint8_t db_debug_ver;
|
||||
uint8_t db_nbkpts;
|
||||
uint8_t db_nwtpts;
|
||||
uint8_t db_pad[5];
|
||||
__uint8_t db_debug_ver;
|
||||
__uint8_t db_nbkpts;
|
||||
__uint8_t db_nwtpts;
|
||||
__uint8_t db_pad[5];
|
||||
|
||||
struct {
|
||||
uint64_t dbr_addr;
|
||||
uint32_t dbr_ctrl;
|
||||
uint32_t dbr_pad;
|
||||
__uint64_t dbr_addr;
|
||||
__uint32_t dbr_ctrl;
|
||||
__uint32_t dbr_pad;
|
||||
} db_breakregs[16];
|
||||
struct {
|
||||
uint64_t dbw_addr;
|
||||
uint32_t dbw_ctrl;
|
||||
uint32_t dbw_pad;
|
||||
__uint64_t dbw_addr;
|
||||
__uint32_t dbw_ctrl;
|
||||
__uint32_t dbw_pad;
|
||||
} db_watchregs[16];
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user