# but requires us to preserve %ebx, %ebp, %esi, %edi. See
# [SysV-ABI-386] pages 3-11 and 3-12 for details.
#
# but requires us to preserve %ebx, %ebp, %esi, %edi. See
# [SysV-ABI-386] pages 3-11 and 3-12 for details.
#
# Save current stack pointer to old thread's stack, if any.
movl SWITCH_CUR(%esp), %eax
# Save current stack pointer to old thread's stack, if any.
movl SWITCH_CUR(%esp), %eax
# Restore stack pointer from new thread's stack.
movl SWITCH_NEXT(%esp), %ecx
# Restore stack pointer from new thread's stack.
movl SWITCH_NEXT(%esp), %ecx