Add space for future expansion [1]. While here clean up a little, spsr is

only 32-bits, and mark the holes in the struct with a pad member.

Suggested by:	kib [1]
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Andrew Turner 2015-04-03 10:56:42 +00:00
parent 21c09643ff
commit 23f518054b

View File

@ -38,7 +38,8 @@ struct gpregs {
unsigned long long gp_lr;
unsigned long long gp_sp;
unsigned long long gp_elr;
unsigned long long gp_spsr;
uint32_t gp_spsr;
u_int gp_pad;
};
struct fpregs {
@ -46,13 +47,16 @@ struct fpregs {
uint32_t fp_sr;
uint32_t fp_cr;
u_int fp_flags;
u_int fp_pad;
};
struct __mcontext {
struct gpregs mc_gpregs;
struct fpregs mc_fpregs;
u_int mc_flags;
#define _MC_FP_VALID 0x1 /* Set when mc_fpregs has valid data */
#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 */
};
typedef struct __mcontext mcontext_t;