- save/restore register context + sc_mask (which is actually sigact->sa_mask) in sig_mach.c
Signal handler
Normally, this is void handler(int sig).
If SA_SIGACTION is enabled, it should be something like void handler(int sig, int info, sigcontect* sc).
Why?
It's a nice feature in other unixoids, and allows nifty things like threads and other stuff to be implemented
in user mode applications. It also allows application-specific debug output with register contents etc. when things go
bump.
I know I asked for input about this before, but I just try one more time :) I've verified that context switching etc is possible this way, the only thing I'm worried about is FPU context saving/restoring, because I don't know how much is needed. I haven't verified that sa_mask can be saved/restored this way, but I guess it should be possible.
Input - any - is welcome.
-- PeP