From owner-cvs-all Fri Aug 24 16: 1: 5 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 1438637B409; Fri, 24 Aug 2001 16:01:00 -0700 (PDT) (envelope-from bmilekic@FreeBSD.org) Received: (from bmilekic@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f7ON10437938; Fri, 24 Aug 2001 16:01:00 -0700 (PDT) (envelope-from bmilekic) Message-Id: <200108242301.f7ON10437938@freefall.freebsd.org> From: Bosko Milekic Date: Fri, 24 Aug 2001 16:01:00 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_mutex.c 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 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