freebsd-nq/sys/amd64/ia32
Konstantin Belousov 95fd15898b Real hardware, as opposed to QEMU, does not allow to have a call gate
in long mode which transfers control to 32bit code segment. Unbreak
the lcall $7,$0 implementation on amd64 by putting the 64bit user code
segment' selector into call gate, and execute the 64bit trampoline
which converts the return frame into 32bit format and switches back to
32bit mode for executing int $0x80 trampoline.

Note that all jumps over the hoops are performed in the user mode.

MFC after:	1 week
2012-08-14 12:13:27 +00:00
..
ia32_exception.S
ia32_misc.c
ia32_reg.c
ia32_signal.c
ia32_sigtramp.S
ia32_syscall.c