diff options
author | kib <kib@FreeBSD.org> | 2009-04-01 12:44:17 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2009-04-01 12:44:17 +0000 |
commit | 8e7a736a8819387cb2f6d6687e3da2d80807595e (patch) | |
tree | 1f7e29f1912bcdc8e089e40d34f2c08a99bc6150 /sys/compat | |
parent | 12b844219e420459e8d30f9538d9bbb17d8d324e (diff) | |
download | FreeBSD-src-8e7a736a8819387cb2f6d6687e3da2d80807595e.zip FreeBSD-src-8e7a736a8819387cb2f6d6687e3da2d80807595e.tar.gz |
Add all segment registers for the amd64 CPU to struct reg and mcontext.
To keep these structures ABI-compatible, half the size of r_trapno,
r_err, mc_trapno, mc_flags.
Add fsbase and gsbase to mcontext on both amd64 and i386.
Add flags to amd64 mcontext to indicate that it contains valid segments
or bases.
In collaboration with: pho
Discussed with: peter
Reviewed by: jhb
Diffstat (limited to 'sys/compat')
-rw-r--r-- | sys/compat/ia32/ia32_signal.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/compat/ia32/ia32_signal.h b/sys/compat/ia32/ia32_signal.h index f2be96d..6ebb0de 100644 --- a/sys/compat/ia32/ia32_signal.h +++ b/sys/compat/ia32/ia32_signal.h @@ -59,7 +59,9 @@ struct ia32_mcontext { * See <i386/include/npx.h> for the internals of mc_fpstate[]. */ u_int32_t mc_fpstate[128] __aligned(16); - u_int32_t mc_spare2[8]; + u_int32_t mc_fsbase; + u_int32_t mc_gsbase; + u_int32_t mc_spare2[6]; }; struct ia32_ucontext { |