1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-25 16:13:17 +00:00

Correctly save eflags.

This commit is contained in:
David Xu 2002-11-21 09:48:39 +00:00
parent 79acfc497b
commit c823c95038
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=107138

View File

@ -133,7 +133,8 @@ ENTRY(thread_to_uts)
*/
fnstcw MC_FP_CW_OFFSET(%edx)
movl $0, MC_OWNEDFP_OFFSET(%edx) /* no FP */
lahf /* get eflags */
pushfl /* get eflags */
popl %eax
movl %eax, 68(%edx) /* store eflags */
movl %esp, %eax /* setcontext pushes the return */
addl $4, %eax /* address onto the top of the */