Date: Tue, 12 Aug 1997 10:16:43 -0600 From: Steve Passe <smp@csn.net> To: Michael Smith <msmith@atrad.adelaide.edu.au> Cc: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-sys@FreeBSD.ORG Subject: Re: cvs commit: src/sys/kern init_main.c Message-ID: <199708121616.KAA19532@Ilsa.StevesCafe.com> In-Reply-To: Your message of "Wed, 13 Aug 1997 01:27:04 %2B0930." <199708121557.BAA08791@genesis.atrad.adelaide.edu.au>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, > > no, its a hack to prevent code in configure() from panic()ing when trying > > to dereference (struct proc*)p->xxx thingies. there is code that does this > > early in the boot process that knows that curproc is incomplete and is careful > > to not use the missing parts. There is nothing SMP specific about this. The > > only reason its needed is that the UP kernel "sets" it at compile time via: > > Ok, perhaps I should be more explicit : > > - at what point is curproc filled out adequately for use with lockmgr() > and friends? > - if I don't know "when" I am, how can I work this out? there is a variable named 'cold' that other code seems to use to determine when it can do various things. I honestly haven't looked at this in detail yet, I'm still struggling with lower level issues. -- Steve Passe | powered by smp@csn.net | Symmetric MultiProcessor FreeBSD
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199708121616.KAA19532>