summaryrefslogtreecommitdiffstats
path: root/tools/KSE
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2002-11-21 09:48:39 +0000
committerdavidxu <davidxu@FreeBSD.org>2002-11-21 09:48:39 +0000
commit44e386cac2fd77f1a7ec4b02b1b9feca1d75a013 (patch)
tree9a4f2dc26bae65346ba1253c5edc36885b446bd1 /tools/KSE
parentd5eb61ea8d5cf09af5c88effaa1786a4a9fad320 (diff)
downloadFreeBSD-src-44e386cac2fd77f1a7ec4b02b1b9feca1d75a013.zip
FreeBSD-src-44e386cac2fd77f1a7ec4b02b1b9feca1d75a013.tar.gz
Correctly save eflags.
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 a7bd56f..d568988 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 */
OpenPOWER on IntegriCloud