diff options
| -rw-r--r-- | lib/libpthread/arch/i386/i386/thr_switch.S | 7 | ||||
| -rw-r--r-- | tools/KSE/ksetest/kse_asm.S | 7 |
2 files changed, 6 insertions, 8 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 */ diff --git a/tools/KSE/ksetest/kse_asm.S b/tools/KSE/ksetest/kse_asm.S index 517eb0d46b94..20dc1dbba258 100644 --- a/tools/KSE/ksetest/kse_asm.S +++ b/tools/KSE/ksetest/kse_asm.S @@ -89,13 +89,12 @@ ENTRY(uts_to_thread) 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 */ pop %ebx /* %ebx off stack */ popf /* flags off stack */ |
