Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/lib/libpthread/arch



Module Name:    src
Committed By:   nathanw
Date:           Thu Jun 12 21:46:04 UTC 2003

Modified Files:
        src/lib/libpthread/arch/alpha: pthread_switch.S
        src/lib/libpthread/arch/arm: pthread_switch.S
        src/lib/libpthread/arch/i386: pthread_switch.S
        src/lib/libpthread/arch/powerpc: pthread_switch.S

Log Message:
Two fixes:
 * In switch-away cases, write PT_SWITCHTO last (after PT_SWITCHTOUC), so
   that pthread__resolve_locks() doesn't see an empty SWITCHTOUC value. This
   also permits pthread__resolve_locks() to use the presence of PT_SWITCHTO
   as a sign that the thread has done all of its necessary chain work.

 * Make the return-point of pthread__switch global and visible, so that its
   address can be compared to the PC of a thread, again as a sign that its
   chain-work is done.

(other architectures in progress, after they get the *previous* asm fix...)


To generate a diff of this commit:
cvs rdiff -r1.2 -r1.3 src/lib/libpthread/arch/alpha/pthread_switch.S
cvs rdiff -r1.3 -r1.4 src/lib/libpthread/arch/arm/pthread_switch.S
cvs rdiff -r1.3 -r1.4 src/lib/libpthread/arch/i386/pthread_switch.S
cvs rdiff -r1.3 -r1.4 src/lib/libpthread/arch/powerpc/pthread_switch.S

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




Home | Main Index | Thread Index | Old Index