cvs commit: src/lib/libthr/arch/i386/i386 _setcurthread.c
Mike Makonnen
mtm at FreeBSD.org
Wed May 21 01:21:25 PDT 2003
mtm 2003/05/21 01:21:24 PDT
FreeBSD src repository
Modified files:
lib/libthr/arch/i386/i386 _setcurthread.c
Log:
o Make the defenition of _set_curthread() match its declaration
in thr_private.h
o Lock down the ldt_entries array and ldt_free, which points to
the next free slot. As noted in the comments, it's necessary
to special case the initial_thread because %gs is not setup
for it yet. This is ok because that early in the program there
won't be any reentrancy issues anyways.
Approved by: re/blanket libthr
Revision Changes Path
1.5 +27 -5 src/lib/libthr/arch/i386/i386/_setcurthread.c
More information about the cvs-all
mailing list