Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Aug 2003 14:16:55 -0700 (PDT)
From:      Julian Elischer <julian@elischer.org>
To:        Marcel Moolenaar <marcel@xcllnt.net>
Cc:        threads@freebsd.org
Subject:   Re: Good news: KSE on ia64 is starting to work
Message-ID:  <Pine.BSF.4.21.0308051415440.82100-100000@InterJet.elischer.org>
In-Reply-To: <20030805210011.GB879@athlon.pn.xcllnt.net>

next in thread | previous in thread | raw e-mail | index | archive | help


On Tue, 5 Aug 2003, Marcel Moolenaar wrote:

> On Tue, Aug 05, 2003 at 04:43:00PM -0400, Daniel Eischen wrote:
> > > In struct ia64_tp we define tp_tls as an array of char. If we
> > > define it as an array of long double we automaticly have 16-byte
> > > alignment of the static TLS, struct ia64_tp, struct tcb and
> > > struct kcb. Allocating the TCB will then automaticly ensure that
> > > the static TLS is properly aligned. I'm currently testing with
> > > the following (re)definition of struct ia64_tp:
> > > 
> > > struct ia64_tp {
> > >         struct tdv              *tp_tdv;        /* dynamic TLS */
> > >         struct tcb              *tp_self;
> > >         long double             tp_tls[0];      /* static TLS */
> > > };
> > 
> > Sure; that was merely a placeholder so one (you) could replace
> > it with whatever is needed.  I assume this (static TLS) will
> > have some predetermined size...
> 
> It's a runtime constant yes. We'll know the size of the static TLS
> when we initialize libkse/libpthread and TLS support has been added.
> I expect that kcb_faketcb doesn't need any TLS, because it's not
> used for running user code, just an internal "doohicky", right?
> 
> BTW: Feel free to commit your patch at your earliest convenience
> (with or without the change described above). I see a slight
> regression after applying the patch, but much rather see it
> committed than having to work with a large patch...

you mean a 'speed' regression?

don't forget that you can make sure you only do extra work if 
p->p_flag & P_SA  is true..




> 
> -- 
>  Marcel Moolenaar	  USPA: A-39004		 marcel@xcllnt.net
> _______________________________________________
> freebsd-threads@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-threads
> To unsubscribe, send any mail to "freebsd-threads-unsubscribe@freebsd.org"
> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0308051415440.82100-100000>