Sync definitions for struct sigcontext for i386 and amd64 architectures

to struct mcontext.
This commit is contained in:
Konstantin Belousov 2009-04-01 13:44:28 +00:00
parent 9da6804056
commit 7496ce7d74
2 changed files with 16 additions and 4 deletions

View File

@ -78,9 +78,13 @@ struct sigcontext {
long sc_r13;
long sc_r14;
long sc_r15;
long sc_trapno;
int sc_trapno;
short sc_fs;
short sc_gs;
long sc_addr;
long sc_flags;
int sc_flags;
short sc_es;
short sc_ds;
long sc_err;
long sc_rip;
long sc_cs;
@ -95,7 +99,11 @@ struct sigcontext {
long sc_fpformat;
long sc_ownedfp;
long sc_fpstate[64] __aligned(16);
long sc_spare[8];
long sc_fsbase;
long sc_gsbase;
long sc_spare[6];
};
#endif /* __BSD_VISIBLE */

View File

@ -116,7 +116,11 @@ struct sigcontext {
int sc_ownedfp;
int sc_spare1[1];
int sc_fpstate[128] __aligned(16);
int sc_spare2[8];
int sc_fsbase;
int sc_gsbase;
int sc_spare2[6];
};
#define sc_sp sc_esp