KSD/TSD take 2 (was: KSE critical regions)

Daniel Eischen eischen at vigrid.com
Thu Jul 24 18:37:41 PDT 2003


On Fri, 25 Jul 2003, David Xu wrote:
> 
> From: "Julian Elischer" <julian at elischer.org>
>
> > I was hoping to optimise by making the kse_create(mboxaddr)
> > call allocate the LDT entry and set the gs register to point to the 
> > mailbox. making the two things differnt makes it less likely that
> > making that optimisation makes sense.
> > 
> 
> Dan has two fields in kse_mailbox:
> 
> void      *km_ksdaddr;    /* KSE specific data address */
> uint32_t  km_ksdsize;     /* KSE specific data size */
> 
> I think it is used to tell kernel to map start address 
> of libkse's kse mailbox like above lib_kse_mailbox.

Yes, that is what it is for.  We really need this for
amd64, so we might as well do it for x86.  We'll need
MD functions in the kernel to do this; they'll do nothing
for all archs except x86 and amd64.

-- 
Dan Eischen



More information about the freebsd-threads mailing list