Subject: CVS commit: [nathanw_sa] basesrc/lib/libpthread/arch/i386
To: None <>
From: Nathan J Williams <>
List: source-changes
Date: 07/31/2001 03:12:03
Module Name:	basesrc
Committed By:	nathanw
Date:		Tue Jul 31 00:12:03 UTC 2001

Modified Files:
	basesrc/lib/libpthread/arch/i386 [nathanw_sa]: pthread_switch.S

Log Message:
Actually, we *do* need pthread__switch in assembler, in order that
the ucontext_t be the last thing on the stack. Otherwise, the switch
code will overwrite stack data, since it sets the stack to pt_uc.

Use the UT_EIP symbolic constant.

When performing a new_preempt, store into pt_switchto and
pt_switchtouc of the *new* thread, so that resolve_locks stands a
chance of finding the switchto victim.

To generate a diff of this commit:
cvs rdiff -r1.1.2.8 -r1.1.2.9 \

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.