From owner-cvs-src@FreeBSD.ORG Thu Jul 31 14:09:11 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C811B37B401; Thu, 31 Jul 2003 14:09:11 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 66B9F43F93; Thu, 31 Jul 2003 14:09:11 -0700 (PDT) (envelope-from deischen@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h6VL9B0U006216; Thu, 31 Jul 2003 14:09:11 -0700 (PDT) (envelope-from deischen@repoman.freebsd.org) Received: (from deischen@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h6VL9B0T006215; Thu, 31 Jul 2003 14:09:11 -0700 (PDT) Message-Id: <200307312109.h6VL9B0T006215@repoman.freebsd.org> From: Daniel Eischen Date: Thu, 31 Jul 2003 14:09:11 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD 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 X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Jul 2003 21:09:12 -0000 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