summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandrew <andrew@FreeBSD.org>2015-07-09 12:51:50 +0000
committerandrew <andrew@FreeBSD.org>2015-07-09 12:51:50 +0000
commit1bff17935d543b87a05b9ffbaa939a370aefa02c (patch)
treeabb69563c35a46bc67abd40f7dc3adb856564017
parented913b3a6c69b41f1de3947a45330fe4c6130b49 (diff)
downloadFreeBSD-src-1bff17935d543b87a05b9ffbaa939a370aefa02c.zip
FreeBSD-src-1bff17935d543b87a05b9ffbaa939a370aefa02c.tar.gz
Clean up the types used in <machine/ucontext.h> on arm64. As some ports
include this file without first including the headers needed for uint32_t and the like use the __foo type. Obtained from: ABT Systems Ltd Sponsored by: The FreeBSD Foundation
-rw-r--r--sys/arm64/include/pcb.h2
-rw-r--r--sys/arm64/include/ucontext.h26
2 files changed, 14 insertions, 14 deletions
diff --git a/sys/arm64/include/pcb.h b/sys/arm64/include/pcb.h
index 71695c9..027b605 100644
--- a/sys/arm64/include/pcb.h
+++ b/sys/arm64/include/pcb.h
@@ -49,7 +49,7 @@ struct pcb {
__uint128_t pcb_vfp[32];
uint32_t pcb_fpcr;
uint32_t pcb_fpsr;
- u_int pcb_fpflags;
+ int pcb_fpflags;
#define PCB_FP_STARTED 0x01
u_int pcb_vfpcpu; /* Last cpu this thread ran VFP code */
};
diff --git a/sys/arm64/include/ucontext.h b/sys/arm64/include/ucontext.h
index baaa9ee..2407517 100644
--- a/sys/arm64/include/ucontext.h
+++ b/sys/arm64/include/ucontext.h
@@ -34,29 +34,29 @@
#define _MACHINE_UCONTEXT_H_
struct gpregs {
- unsigned long long gp_x[30];
- unsigned long long gp_lr;
- unsigned long long gp_sp;
- unsigned long long gp_elr;
- uint32_t gp_spsr;
- u_int gp_pad;
+ __register_t gp_x[30];
+ __register_t gp_lr;
+ __register_t gp_sp;
+ __register_t gp_elr;
+ __uint32_t gp_spsr;
+ int gp_pad;
};
struct fpregs {
__uint128_t fp_q[32];
- uint32_t fp_sr;
- uint32_t fp_cr;
- u_int fp_flags;
- u_int fp_pad;
+ __uint32_t fp_sr;
+ __uint32_t fp_cr;
+ int fp_flags;
+ int fp_pad;
};
struct __mcontext {
struct gpregs mc_gpregs;
struct fpregs mc_fpregs;
- u_int mc_flags;
+ int mc_flags;
#define _MC_FP_VALID 0x1 /* Set when mc_fpregs has valid data */
- u_int mc_pad; /* Padding */
- uint64_t mc_spare[8]; /* Space for expansion, set to zero */
+ int mc_pad; /* Padding */
+ __uint64_t mc_spare[8]; /* Space for expansion, set to zero */
};
typedef struct __mcontext mcontext_t;
OpenPOWER on IntegriCloud