Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Oct 2000 12:08:23 -0700 (PDT)
From:      Steve Kargl <sgk@troutmask.apl.washington.edu>
To:        John Baldwin <jhb@FreeBSD.org>
Cc:        Jake Burkholder <jburkhol@home.com>, freebsd-smp@FreeBSD.org
Subject:   Re: witness code status?
Message-ID:  <200010031908.e93J8OS00830@troutmask.apl.washington.edu>
In-Reply-To: <XFMail.001003112500.jhb@FreeBSD.org> from John Baldwin at "Oct 3, 2000 11:25:00 am"

next in thread | previous in thread | raw e-mail | index | archive | help
John Baldwin wrote:
> 
> On 03-Oct-00 Jake Burkholder wrote:
> > Attached is a patch that should fix this.
> > Please let me know and I'll commit it.  (Works here.)
> 
> Ugh.  How and why does this work exactly, and should we be
> #include'ing opt_user_ldt.h in an include file instead, or
> should we move USER_LDT to opt_global.h perhaps?
> 

Well, it appears to work because
troutmask:sgk[247] find /sys/ -name \*.h | xargs grep USER_LDT
/sys/compile/TROUTMASK/opt_user_ldt.h:#define USER_LDT 1
/sys/i386/include/globaldata.h:#ifdef USER_LDT
/sys/i386/include/globals.h:#ifdef USER_LDT
/sys/i386/include/globals.h:#ifdef USER_LDT

And kern_idle.c includes 

#include <machine/globaldata.h>
#include <machine/globals.h>

which suggests that yes USER_LDT should move to opt_global.h.


-- 
Steve


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-smp" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200010031908.e93J8OS00830>