Add additional functionality to the upcall support to allow us to wait for
authorMatthew Dillon <dillon@dragonflybsd.org>
Sun, 7 Dec 2003 04:20:40 +0000 (04:20 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Sun, 7 Dec 2003 04:20:40 +0000 (04:20 +0000)
commitfe8c5e17acbb049222347358029f10e2909c06f7
treea9b0d430242e42efd7a78decb13290f60feeec44
parentee5fb47751aba9385b35e3587f5593265a502cd8
Add additional functionality to the upcall support to allow us to wait for
an upcall instead of spin.

Also fix a bug in the trap code.  %gs faults have to be handled in nested
interrupts because %gs is not saved and restored.  It is also possible that
%fs may have to be handled the same way, but I am not sure yet.
sys/i386/i386/trap.c
sys/kern/kern_upcall.c
sys/platform/pc32/i386/trap.c
sys/sys/proc.h
sys/sys/thread.h
sys/sys/upcall.h