From owner-cvs-all Fri Nov 22 3:46:20 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8DCED37B401; Fri, 22 Nov 2002 03:46:19 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C16A43E4A; Fri, 22 Nov 2002 03:46:19 -0800 (PST) (envelope-from davidxu@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 gAMBh6mV049546; Fri, 22 Nov 2002 03:43:06 -0800 (PST) (envelope-from davidxu@repoman.freebsd.org) Received: (from davidxu@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id gAMBh6A1049545; Fri, 22 Nov 2002 03:43:06 -0800 (PST) Message-Id: <200211221143.gAMBh6A1049545@repoman.freebsd.org> From: David Xu Date: Fri, 22 Nov 2002 03:43:06 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libpthread/arch/i386/i386 thr_enter_uts.S thr_switch.S X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG davidxu 2002/11/22 03:43:06 PST Modified files: lib/libpthread/arch/i386/i386 thr_enter_uts.S thr_switch.S Log: In _thread_enter_uts, fix eflags saving bug. In _thread_switch, set current thread pointer in kse mailbox only after all registers copied out of thread mailbox, kernel will do upcall at trap time, if set current thread pointer before loading all registers from thread mailbox, at trap time, the thread mailbox data will be overwritten by kernel, result is junk data is loaded into CPU. Revision Changes Path 1.3 +2 -1 src/lib/libpthread/arch/i386/i386/thr_enter_uts.S 1.2 +13 -6 src/lib/libpthread/arch/i386/i386/thr_switch.S To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message