Date: Thu, 31 Jul 2003 14:09:11 -0700 (PDT) From: Daniel Eischen <deischen@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libpthread/arch/i386 Makefile.inc src/lib/libpthread/arch/i386/i386 thr_enter_uts.S thr_getcontext.S thr_switch.S src/lib/libpthread/arch/i386/include pthread_md.h Message-ID: <200307312109.h6VL9B0T006215@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
deischen 2003/07/31 14:09:11 PDT
FreeBSD src repository
Modified files:
lib/libpthread/arch/i386 Makefile.inc
lib/libpthread/arch/i386/i386 thr_enter_uts.S thr_getcontext.S
lib/libpthread/arch/i386/include pthread_md.h
Removed files:
lib/libpthread/arch/i386/i386 thr_switch.S
Log:
Take the same approach for i386 as that for ia64 and amd64. Use
the userland version of [gs]etcontext to switch between a thread
and the UTS scheduler (and back again). This also fixes a bug
in i386 _thr_setcontext() which wasn't properly restoring the
context.
Reviewed by: davidxu
Revision Changes Path
1.2 +1 -1 src/lib/libpthread/arch/i386/Makefile.inc
1.5 +12 -68 src/lib/libpthread/arch/i386/i386/thr_enter_uts.S
1.3 +29 -30 src/lib/libpthread/arch/i386/i386/thr_getcontext.S
1.8 +0 -113 src/lib/libpthread/arch/i386/i386/thr_switch.S (dead)
1.5 +33 -14 src/lib/libpthread/arch/i386/include/pthread_md.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200307312109.h6VL9B0T006215>
