This commit is contained in:
christos 2003-01-18 19:11:07 +00:00
parent 618d528679
commit 54ba9fedfe
1 changed files with 6 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: pthread_md.h,v 1.3 2003/01/18 18:40:52 christos Exp $ */
/* $NetBSD: pthread_md.h,v 1.4 2003/01/18 19:11:07 christos Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -135,9 +135,11 @@ pthread__sp(void)
(uc)->uc_mcontext.__gregs[_REG_EFL] = (reg)->r_eflags; \
(uc)->uc_mcontext.__gregs[_REG_UESP]= (reg)->r_esp; \
(uc)->uc_mcontext.__gregs[_REG_SS] = (reg)->r_ss; \
/*LINTED precision loss */ \
(uc)->uc_flags = ((uc)->uc_flags | _UC_CPU) & ~_UC_USER; \
} while (/*CONSTCOND*/0)
#define PTHREAD_UCONTEXT_TO_FPREG(freg, uc) \
(void)memcpy((freg)->__data, \
(uc)->uc_mcontext.__fpregs.__fp_reg_set.__fpchip_state.__fp_state, \
@ -147,6 +149,7 @@ pthread__sp(void)
(void)memcpy( \
(uc)->uc_mcontext.__fpregs.__fp_reg_set.__fpchip_state.__fp_state, \
(freg)->__data, sizeof(struct fpreg)); \
/*LINTED precision loss */ \
(uc)->uc_flags = ((uc)->uc_flags | _UC_FPU) & ~_UC_USER; \
} while (/*CONSTCOND*/0)