summaryrefslogtreecommitdiff
path: root/lib/libpthread
diff options
context:
space:
mode:
authorDavid Xu <davidxu@FreeBSD.org>2002-11-23 04:39:52 +0000
committerDavid Xu <davidxu@FreeBSD.org>2002-11-23 04:39:52 +0000
commit2442bdd81b227d223e7d644bfab9cb79911a0e18 (patch)
tree447c8df543bc6dafb514c86a4cc80347392a9c6a /lib/libpthread
parente8a27959f6254203b2949d23946cd35e0ff8ae88 (diff)
Notes
Diffstat (limited to 'lib/libpthread')
-rw-r--r--lib/libpthread/arch/i386/i386/thr_switch.S7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/libpthread/arch/i386/i386/thr_switch.S b/lib/libpthread/arch/i386/i386/thr_switch.S
index 51dcc2cde48f..db32e5503a9e 100644
--- a/lib/libpthread/arch/i386/i386/thr_switch.S
+++ b/lib/libpthread/arch/i386/i386/thr_switch.S
@@ -82,13 +82,12 @@ ENTRY(_thread_switch)
pushl 68(%edx) /* flags on stack */
pushl 36(%edx) /* %ebx on stack */
pushl 44(%edx) /* %ecx on stack */
- pushl 40(%edx) /* %edx on stack */
+ movl 40(%edx), %edx /* %edx */
/*
- * all registers are now moved out of mailbox
- * it's now safe to set current thread pointer
+ * all registers are now moved out of mailbox,
+ * it's safe to set current thread pointer
*/
movl %ebx,(%ecx)
- popl %edx /* %edx off stack */
popl %ecx /* %ecx off stack */
popl %ebx /* %ebx off stack */
popf /* flags off stack */