Konstantin Belousov d77e2734a1 When amd64 CPU cannot load segment descriptor during trap return to
usermode, it generates GPF, that is mirrored to user mode as SIGSEGV.
The offending register in mcontext should contain the value loading of
which generated the GPF, and it is so on i386. On amd64, we currently
report segment descriptor in tf_err, while segment register contains the
corrected value loaded by trap handler.

Fix the issue by behaving like i386, reloading segment register in trap
frame after signal frame is pushed onto user stack.

Noted and tested by:	pho
Approved by:	re (kensmith)
2009-07-10 10:29:16 +00:00
..
2009-07-05 17:45:48 +00:00
2009-07-08 16:30:34 +00:00
2009-06-25 16:48:13 +00:00
2009-07-05 17:45:48 +00:00
2009-07-05 17:45:48 +00:00
2009-05-23 13:23:46 +00:00
2009-07-05 17:45:48 +00:00
2009-07-05 17:45:48 +00:00
2009-07-05 17:45:48 +00:00
2009-05-28 08:18:12 +00:00
2009-05-30 08:53:13 +00:00