freebsd-src/sys/amd64
Konstantin Belousov 2c66cccab7 Save and restore segment registers on amd64 when entering and leaving
the kernel on amd64. Fill and read segment registers for mcontext and
signals. Handle traps caused by restoration of the
invalidated selectors.

Implement user-mode creation and manipulation of the process-specific
LDT descriptors for amd64, see sysarch(2).

Implement support for TSS i/o port access permission bitmap for amd64.

Context-switch LDT and TSS. Do not save and restore segment registers on
the context switch, that is handled by kernel enter/leave trampolines
now. Remove segment restore code from the signal trampolines for
freebsd/amd64, freebsd/ia32 and linux/i386 for the same reason.

Implement amd64-specific compat shims for sysarch.

Linuxolator (temporary ?) switched to use gsbase for thread_area pointer.

TODO:
Currently, gdb is not adapted to show segment registers from struct reg.
Also, no machine-depended ptrace command is added to set segment
registers for debugged process.

In collaboration with:	pho
Discussed with:	peter
Reviewed by:	jhb
Linuxolator tested by:	dchagin
2009-04-01 13:09:26 +00:00
..
acpica Save and restore segment registers on amd64 when entering and leaving 2009-04-01 13:09:26 +00:00
amd64 Save and restore segment registers on amd64 when entering and leaving 2009-04-01 13:09:26 +00:00
compile
conf Remove the uscanner(4) driver, this follows the removal of the kernel scanner 2009-03-19 20:33:26 +00:00
ia32 Save and restore segment registers on amd64 when entering and leaving 2009-04-01 13:09:26 +00:00
include Save and restore segment registers on amd64 when entering and leaving 2009-04-01 13:09:26 +00:00
isa Now that all platforms use genclock, shuffle things around slightly 2008-04-22 19:38:30 +00:00
linux32 Save and restore segment registers on amd64 when entering and leaving 2009-04-01 13:09:26 +00:00
pci Fall back to using configuration type 1 accesses for PCI config requests if 2009-03-24 18:10:22 +00:00
Makefile Adjustments to make a tags file a bit more suitable to amd64. 2008-12-01 14:15:10 +00:00