Subject: CVS commit: [nathanw_sa] basesrc/lib/libpthread/arch/mips
To: None <source-changes@netbsd.org>
From: Wayne Knowles <wdk@netbsd.org>
List: source-changes
Date: 11/29/2001 13:03:26
Module Name:	basesrc
Committed By:	wdk
Date:		Thu Nov 29 11:03:25 UTC 2001

Modified Files:
	basesrc/lib/libpthread/arch/mips [nathanw_sa]: _context_u.S

Log Message:
setcontext macro incorrectly used the RA (return address) as the target
PC to start the new context (RA == PC in getcontext so one may be lead
to believe it wouldn't matter).
Since the pthread__locked_switch() function updates the PC value we
must use the PC value in the context.

While we are the use T9 register for target PC value to maintain calling
conventions.


To generate a diff of this commit:
cvs rdiff -r1.1.2.1 -r1.1.2.2 basesrc/lib/libpthread/arch/mips/_context_u.S

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