aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Eischen <deischen@FreeBSD.org>2002-09-30 08:45:38 +0000
committerDaniel Eischen <deischen@FreeBSD.org>2002-09-30 08:45:38 +0000
commitcbed250de41f4ef5b3762e18670774a143c2fe22 (patch)
tree6422650ff97a44439cab1b5eb4c56c28588f1319 /lib
parentd294e7fb7094adc0c6f34c1d23f74ca763330ee4 (diff)
Notes
Diffstat (limited to 'lib')
-rw-r--r--lib/libc_r/uthread/pthread_private.h4
-rw-r--r--lib/libc_r/uthread/uthread_kern.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc_r/uthread/pthread_private.h b/lib/libc_r/uthread/pthread_private.h
index 97b30b703092..4983a575fc27 100644
--- a/lib/libc_r/uthread/pthread_private.h
+++ b/lib/libc_r/uthread/pthread_private.h
@@ -77,12 +77,12 @@
#define SET_STACK_UC(ucp, stk) (ucp)->uc_mcontext.mc_esp = (int)(stk)
#define FP_SAVE_UC(ucp) do { \
char *fdata; \
- fdata = (char *) (ucp)->uc_mcontext.mc_fpregs; \
+ fdata = (char *) (ucp)->uc_mcontext.mc_fpstate; \
__asm__("fnsave %0": :"m"(*fdata)); \
} while (0)
#define FP_RESTORE_UC(ucp) do { \
char *fdata; \
- fdata = (char *) (ucp)->uc_mcontext.mc_fpregs; \
+ fdata = (char *) (ucp)->uc_mcontext.mc_fpstate; \
__asm__("frstor %0": :"m"(*fdata)); \
} while (0)
#define SET_RETURN_ADDR_JB(jb, ra) (jb)[0]._jb[0] = (int)(ra)
diff --git a/lib/libc_r/uthread/uthread_kern.c b/lib/libc_r/uthread/uthread_kern.c
index 5c646c1423f1..b18f9440deb0 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