Date: Fri, 22 Nov 2002 03:43:06 -0800 (PST) From: David Xu <davidxu@FreeBSD.org> 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 Message-ID: <200211221143.gAMBh6A1049545@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200211221143.gAMBh6A1049545>