1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-24 11:29:10 +00:00
freebsd/sys/amd64
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
..
acpica Import ACPICA 20090521. 2009-06-05 18:44:36 +00:00
amd64 When amd64 CPU cannot load segment descriptor during trap return to 2009-07-10 10:29:16 +00:00
compile
conf Enable POSIX semaphores on all non-embedded architectures by default. 2009-07-02 18:24:37 +00:00
ia32 Restore the segment registers and segment base MSRs for amd64 syscall 2009-07-09 09:34:11 +00:00
include Restore the segment registers and segment base MSRs for amd64 syscall 2009-07-09 09:34:11 +00:00
isa Improve the handling of cpuset with interrupts. 2009-07-01 17:20:07 +00:00
linux32 Restore the segment registers and segment base MSRs for amd64 syscall 2009-07-09 09:34:11 +00:00
pci Add a read-only sysctl hw.pci.mcfg to mirror the tunable by the same name. 2009-05-18 21:47:32 +00:00
Makefile Adjustments to make a tags file a bit more suitable to amd64. 2008-12-01 14:15:10 +00:00