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/amd64/include/reg.h | |
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/amd64/include/reg.h')
-rw-r--r-- | sys/amd64/include/reg.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/amd64/include/reg.h b/sys/amd64/include/reg.h index 9ca092f..89211a3 100644 --- a/sys/amd64/include/reg.h +++ b/sys/amd64/include/reg.h @@ -56,8 +56,12 @@ struct reg { register_t r_rdx; register_t r_rcx; register_t r_rax; - register_t r_trapno; - register_t r_err; + uint32_t r_trapno; + uint16_t r_fs; + uint16_t r_gs; + uint32_t r_err; + uint16_t r_es; + uint16_t r_ds; register_t r_rip; register_t r_cs; register_t r_rflags; |