]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
When setting up the frame to invoke a signal handler, preserve the
authordeischen <deischen@FreeBSD.org>
Sun, 6 May 2001 02:13:12 +0000 (02:13 +0000)
committerdeischen <deischen@FreeBSD.org>
Sun, 6 May 2001 02:13:12 +0000 (02:13 +0000)
commit8b92d38aa9c8a05a99eba0fc1fb2f875d0e877cd
tree727cd0fa2215710c54225cfc7b560db3e688bbc5
parent66a962ce675f3386156405c78fe7d7a1e6a852bb
When setting up the frame to invoke a signal handler, preserve the
%fs and %gs registers instead of setting them to known sane values.
%fs is going to be used for thread/KSE specific data by the new
threads library; we'll want it to be valid inside of signal handlers.

According to bde, Linux preserves the state of %fs and %gs when setting
up signal handlers, so there is precedent for doing this.

The same changes should be made in the Linux emulator, but when made,
they seem to break (at least one version of) the IBM JDK for Linux
(reported by drew).

Approved by: bde
sys/amd64/amd64/machdep.c
sys/i386/i386/machdep.c