freebsd-skq/sys/amd64/ia32
kib 253f7779bc 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
..
ia32_exception.S Save and restore segment registers on amd64 when entering and leaving 2009-04-01 13:09:26 +00:00
ia32_misc.c Save and restore segment registers on amd64 when entering and leaving 2009-04-01 13:09:26 +00:00
ia32_reg.c Save and restore segment registers on amd64 when entering and leaving 2009-04-01 13:09:26 +00:00
ia32_signal.c Save and restore segment registers on amd64 when entering and leaving 2009-04-01 13:09:26 +00:00
ia32_sigtramp.S Save and restore segment registers on amd64 when entering and leaving 2009-04-01 13:09:26 +00:00
ia32_syscall.c Optimize vmmeter locking. 2007-06-10 21:59:14 +00:00