]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add a special-case handler for general protection faults. It appears to
authorpeter <peter@FreeBSD.org>
Thu, 30 Jun 2005 00:26:54 +0000 (00:26 +0000)
committerpeter <peter@FreeBSD.org>
Thu, 30 Jun 2005 00:26:54 +0000 (00:26 +0000)
commit24cb92a9d6ad45321e4076e9abf27de9d94be843
treec92b22e99b2fbf61481f551cb5680b0b0c1fc53e
parent2778435f72bb00f7b707c07e040cc72c341fe5c6
Add a special-case handler for general protection faults.  It appears to
be possible to get the swapgs state reversed if doreti traps during
the iretq.  Attempt to handle this.  load_gs() might need special
handling too.  Running the kernel with the user's TLS and the
kernel's PCPU space interchanged would be bad(TM).

Discovered as a result of a conversation with:  bde
Approved by:  re
sys/amd64/amd64/exception.S