VKERNEL - Fix entry into ddb when running a SMP vkernel. Fixes stop/cont
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 28 Feb 2009 17:55:45 +0000 (09:55 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 28 Feb 2009 17:55:45 +0000 (09:55 -0800)
commit8f66501e78f349e01f73c77a526d20de9c8617f6
treefaf7d711ab53450c7cca5e23f5e9bafcb4f6df3a
parentb9a33d3fb1235626615b96b4b586ce7a7b8386fd
VKERNEL - Fix entry into ddb when running a SMP vkernel.  Fixes stop/cont

The vkernel was trying to send individual LWPs a SIGSTOP, but POSIX handles
SIGSTOP differently from other signals and it was not having the desired
effect.

Instead the vkernel now sends SIGXCPU to each individual LWP and installs
a signal handler to pause the thread until the debugger wishes to wake it up
again.

Reported-by: corecode
sys/platform/vkernel/i386/exception.c
sys/platform/vkernel/i386/mp.c