Date: Wed, 13 Sep 2000 05:58:15 +1100 (EST) From: Bruce Evans <bde@zeta.org.au> To: Bruce Evans <bde@FreeBSD.org> Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/i386/i386 trap.c Message-ID: <Pine.BSF.4.21.0009130553450.252-100000@besplex.bde.org> In-Reply-To: <200009121841.LAA30384@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 12 Sep 2000, Bruce Evans wrote: > bde 2000/09/12 11:41:56 PDT > > Modified files: > sys/i386/i386 trap.c > Log: > Quick fix for hang on booting with -d. mtx_enter() was called before > curproc was initialized. curproc == NULL was interpreted as matching > the process holding Giant... Just skip mtx_enter() and mtx_exit() in > trap() if (curproc == NULL && cold) (&& cold for safety). > > Revision Changes Path > 1.154 +5 -3 src/sys/i386/i386/trap.c Oops. This was not quite the version that I tested, so it doesn't work. It is a no-op. init386() sets curproc early, and the hang is deeper in mtx_enter(). Testing for (cold) works but is not obviously safe. Fixes tomorrow. Bruce 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?Pine.BSF.4.21.0009130553450.252-100000>