- movl 0(%esp),%eax /* get old thread */
- movl 4(%esp),%ebx /* get continuation */
- movl %ebx,TH_CONTINUATION(%eax) /* save continuation */
- movl %ecx,TH_KERNEL_STACK(%eax) /* save kernel stack */
-
- movl 8(%esp),%esi /* get new thread */
- movl $ CPD_ACTIVE_THREAD,%ecx
- movl %esi,%gs:(%ecx) /* new thread is active */
- movl TH_KERNEL_STACK(%esi),%ecx /* get its kernel stack */
+ movl 0(%esp),%eax /* return old thread */
+ movl 8(%esp),%ebx /* get new thread */
+ movl %ebx,%gs:CPU_ACTIVE_THREAD /* new thread is active */
+ movl TH_KERNEL_STACK(%ebx),%ecx /* get its kernel stack */