summaryrefslogtreecommitdiffstats
path: root/lib/libc_r/uthread/uthread_kern.c
diff options
context:
space:
mode:
authordeischen <deischen@FreeBSD.org>2002-09-30 08:45:38 +0000
committerdeischen <deischen@FreeBSD.org>2002-09-30 08:45:38 +0000
commitae413d8b120e0c804e36188adda1259cb33e0710 (patch)
tree6422650ff97a44439cab1b5eb4c56c28588f1319 /lib/libc_r/uthread/uthread_kern.c
parentfeb7c19b698824d7fc57bcf8e4c99a034df952bc (diff)
downloadFreeBSD-src-ae413d8b120e0c804e36188adda1259cb33e0710.zip
FreeBSD-src-ae413d8b120e0c804e36188adda1259cb33e0710.tar.gz
Add back the i386-specific hack to save and restore the FP state
to/from a ucontext when a thread is interrupted by a signal. This will be removed when a proper fix is made in the kernel to save/restore the FP state without breaking the ABI.
Diffstat (limited to 'lib/libc_r/uthread/uthread_kern.c')
-rw-r--r--lib/libc_r/uthread/uthread_kern.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc_r/uthread/uthread_kern.c b/lib/libc_r/uthread/uthread_kern.c
index 5c646c1..b18f944 100644
--- a/lib/libc_r/uthread/uthread_kern.c
+++ b/lib/libc_r/uthread/uthread_kern.c
@@ -113,7 +113,7 @@ _thread_kern_sched(ucontext_t *ucp)
/* Check if this function was called from the signal handler: */
if (ucp != NULL) {
-#if 0
+#if 1
/* XXX - Save FP registers? */
FP_SAVE_UC(ucp);
#endif
@@ -158,7 +158,7 @@ _thread_kern_sched(ucontext_t *ucp)
if (ucp == NULL)
return;
else {
-#if 0
+#if 1
/* XXX - Restore FP registers? */
FP_RESTORE_UC(ucp);
#endif
OpenPOWER on IntegriCloud