aboutsummaryrefslogtreecommitdiff
path: root/tools/KSE
diff options
context:
space:
mode:
authorDavid Xu <davidxu@FreeBSD.org>2002-11-21 09:48:39 +0000
committerDavid Xu <davidxu@FreeBSD.org>2002-11-21 09:48:39 +0000
commitc823c95038f5d632374499d7946064c5c2f36baf (patch)
tree9a4f2dc26bae65346ba1253c5edc36885b446bd1 /tools/KSE
parent79acfc497b71b1f58b54b52a64dba0f03bce3685 (diff)
Notes
Diffstat (limited to 'tools/KSE')
-rw-r--r--tools/KSE/ksetest/kse_asm.S3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/KSE/ksetest/kse_asm.S b/tools/KSE/ksetest/kse_asm.S
index a7bd56f45759..d568988a7141 100644
--- a/tools/KSE/ksetest/kse_asm.S
+++ b/tools/KSE/ksetest/kse_asm.S
@@ -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 */