Date: Fri, 24 Aug 2001 16:01:00 -0700 (PDT) From: Bosko Milekic <bmilekic@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_mutex.c Message-ID: <200108242301.f7ON10437938@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
bmilekic 2001/08/24 16:01:00 PDT Modified files: sys/kern kern_mutex.c Log: Force a commit on kern_mutex.c to explain reason for last commit but while I'm at it also add a comment in mtx_validate() explaining the purpose of the last change. Basically, this fixes booting kernels compiled with MUTEX_DEBUG. What used to happen is before we setidt from init386() [still using BTX idt], we called mtx_init() on several mutex locks, notably Giant and some others. This is a problem for MUTEX_DEBUG because it enables mtx_validate() which calls kernacc(), some of which in turn requires Giant. Fix by calling kernacc() from mtx_validate() only if (!cold). Revision Changes Path 1.67 +6 -1 src/sys/kern/kern_mutex.c 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?200108242301.f7ON10437938>