Date: Fri, 01 Sep 2006 11:40:12 -0700 From: Peter Grehan <grehan@freebsd.org> To: Marcel Moolenaar <xcllnt@mac.com> Cc: ppc@FreeBSD.org Subject: Re: Status of threading and TLS Message-ID: <44F87E8C.9000705@freebsd.org> In-Reply-To: <933C0437-DDF8-4A61-83BA-F4920D9E6E96@mac.com> References: <933C0437-DDF8-4A61-83BA-F4920D9E6E96@mac.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi Marcel, > If anyone has any suggestions why for libpthread we end up > with r2 off by 8 bytes, I'm happy to hear it... I don't have access to a PPC machine at the moment, but would it have anything to do with: struct ppc32_tp { void *tp_dtv; /* dynamic thread vector */ uint32_t _reserved_; double tp_tls[0]; /* static TLS */ }; I think the last element was put in for alignment, but would that possibly have an effect somewhere else, in that it's forcing an 8-byte pad somewhere ? If the last element is removed, does it make a difference ? I saw that the libthr code doesn't have a member. later, Peter.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44F87E8C.9000705>