From 8e7a736a8819387cb2f6d6687e3da2d80807595e Mon Sep 17 00:00:00 2001 From: kib Date: Wed, 1 Apr 2009 12:44:17 +0000 Subject: 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 --- sys/amd64/include/reg.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'sys/amd64/include/reg.h') 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; -- cgit v1.1