Date: Fri, 2 Jul 2004 00:35:52 +0000 (UTC) From: Marcel Moolenaar <marcel@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/compat/freebsd32 syscalls.master src/sys/kern syscalls.master Message-ID: <200407020035.i620Zqu2001459@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
marcel 2004-07-02 00:35:52 UTC FreeBSD src repository Modified files: sys/compat/freebsd32 syscalls.master sys/kern syscalls.master Log: Change the thread ID (thr_id_t) used for 1:1 threading from being a pointer to the corresponding struct thread to the thread ID (lwpid_t) assigned to that thread. The primary reason for this change is that libthr now internally uses the same ID as the debugger and the kernel when referencing to a kernel thread. This allows us to implement the support for debugging without additional translations and/or mappings. To preserve the ABI, the 1:1 threading syscalls, including the umtx locking API have not been changed to work on a lwpid_t. Instead the 1:1 threading syscalls operate on long and the umtx locking API has not been changed except for the contested bit. Previously this was the least significant bit. Now it's the most significant bit. Since the contested bit should not be tested by userland, this change is not expected to be visible. Just to be sure, UMTX_CONTESTED has been removed from <sys/umtx.h>. Reviewed by: mtm@ ABI preservation tested on: i386, ia64 Revision Changes Path 1.38 +4 -4 src/sys/compat/freebsd32/syscalls.master 1.174 +4 -4 src/sys/kern/syscalls.master
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200407020035.i620Zqu2001459>