Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-Id: <4.3.1.2.20010308130915.02443868@pop.ma.ultranet.com> X-Sender: lhall AT pop DOT ma DOT ultranet DOT com X-Mailer: QUALCOMM Windows Eudora Version 4.3.1 Date: Thu, 08 Mar 2001 13:10:52 -0500 To: Earnie Boyd , Corinna Vinschen From: "Larry Hall (RFK Partners, Inc)" Subject: Re: Where is GetCurrentFiber? In-Reply-To: <3AA7CADB.C656B807@yahoo.com> References: <47E442770B0CD511917E0040C77A460001FCE2 AT MAILEX> <20010308184337 DOT C31220 AT cygbert DOT vinschen DOT de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Yep, not doing so just means we need to create another macros that maps the target name to the GNU_ version. Its not obvious to me that this extra step/code has a benefit. Larry Hall lhall AT rfk DOT com RFK Partners, Inc. http://www.rfk.com 118 Washington Street (508) 893-9779 - RFK Office Holliston, MA 01746 (508) 893-9889 - FAX At 01:09 PM 3/8/2001, Earnie Boyd wrote: >I've added it my todo list. I'd rather drop the GNU_ prefix though. > >Earnie. > >Corinna Vinschen wrote: > > > > Earnie? What about including that macros in w32api? > > > > Corinna > > > > On Thu, Mar 08, 2001 at 11:05:55AM -0000, Andy Younger wrote: > > > Ooopps, Wrong as always.. This will probably be somewhat better. > > > > > > __inline PVOID GNU_GetFiberData(void) > > > { > > > void* ret; > > > __asm__ volatile (" > > > movl %%fs:0x10,%0 > > > movl (%0),%0 > > > " : "=r" (ret) /* allow use of reg eax,ebx,ecx,edx,esi,edi */ > > > : > > > ); > > > return ret; > > > } > > > > > > __inline PVOID GNU_GetCurrentFiber(void) > > > { > > > void* ret; > > > __asm__ volatile (" > > > movl %%fs:0x10,%0 > > > " : "=r" (ret) /* allow use of reg eax,ebx,ecx,edx,esi,edi */ > > > : > > > ); > > > return ret; > > > } > > > > > > > > > Andrew Younger > > > Programmer > > > > > > Red Lemon Studios Ltd > > > 175 West George Street, Glasgow G2 2LB, Scotland, U.K. > > > Tel +44 (0) 141 271 2000 > > > Fax +44 (0) 141 271 2001 > > > > > > andyy AT redlemon DOT com > > > www.redlemon.com > > > > > > It's a game thing! > > > ----------- > > > The recipient acknowledges that Red Lemon Studios is unable to exercise > > > control over the content of information contained in transmissions made via > > > the Internet. Red Lemon Studios hereby excludes any warranty as to the > > > quality or accuracy of any information contained in this message and any > > > liability of any kind for the information contained in it, or for its > > > transmission, reception, storage or use in any way whatsoever. > > > > > > > > > > > > > -----Original Message----- > > > > From: cygwin-owner AT sources DOT redhat DOT com > > > > [mailto:cygwin-owner AT sources DOT redhat DOT com]On Behalf Of Andy Younger > > > > Sent: 08 March 2001 10:27 > > > > To: cygwin AT cygwin DOT com > > > > Subject: RE: Where is GetCurrentFiber? > > > > > > > > > > > > Piqued by interest, I did a quick hack of these macros into > > > > GNU assembly. > > > > Seems to work ok. Can someone see if these work, its been a > > > > long time since > > > > I did inline assembly in GAS format. > > > > > > > > > > > > Andrew Younger > > > > Programmer > > > > > > > > Red Lemon Studios Ltd > > > > 175 West George Street, Glasgow G2 2LB, Scotland, U.K. > > > > Tel +44 (0) 141 271 2000 > > > > Fax +44 (0) 141 271 2001 > > > > > > > > andyy AT redlemon DOT com > > > > www.redlemon.com > > > > > > > > It's a game thing! > > > > ----------- > > > > The recipient acknowledges that Red Lemon Studios is unable > > > > to exercise > > > > control over the content of information contained in > > > > transmissions made via > > > > the Internet. Red Lemon Studios hereby excludes any warranty > > > > as to the > > > > quality or accuracy of any information contained in this > > > > message and any > > > > liability of any kind for the information contained in it, or for its > > > > transmission, reception, storage or use in any way whatsoever. > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > From: cygwin-owner AT sources DOT redhat DOT com > > > > > [mailto:cygwin-owner AT sources DOT redhat DOT com]On Behalf Of > > > > Corinna Vinschen > > > > > Sent: 07 March 2001 18:35 > > > > > To: cygwin > > > > > Subject: Re: Where is GetCurrentFiber? > > > > > > > > > > > > > > > On Wed, Mar 07, 2001 at 01:10:08PM -0500, Larry Hall (RFK > > > > > Partners, Inc) wrote: > > > > > > At 01:06 PM 3/7/2001, Corinna Vinschen wrote: > > > > > > >On Tue, Mar 06, 2001 at 10:57:02AM -0500, Larry Hall (RFK > > > > > Partners, Inc) wrote: > > > > > > > > I don't think so. GetCurrentFiber() and GetFiberData() > > > > > are in user32.dll > > > > > > > > according to the MSDN. > > > > > > > > > > > > > >Hmm, which MSDN are you looking into? MSDN explicitely says > > > > > > >`GetCurrentFiber()' and `GetFiberData()' are macros, defined > > > > > > >in winnt.h. > > > > > > > > > > > > > >Corinna > > > > > > > > > > > > > > > > > > > > > > > > Oops! Quite right. I didn't look very closely at that > > > > > page and just clicked > > > > > > right along to "Requirements". These are macros. I guess > > > > > they are improperly > > > > > > defined in Cygwin's winnt.h. > > > > > > > > > > Yep. They are simply declared as functions, unfortunately. > > > > > > > > > > Corinna > > > > > > > > > > -- > > > > > Corinna Vinschen Please, send mails > > > > > regarding Cygwin to > > > > > Cygwin Developer > > > > mailto:cygwin AT cygwin DOT com > > > > Red Hat, Inc. > > > > > > > > -- > > > > Want to unsubscribe from this list? > > > > Check out: http://cygwin.com/ml/#unsubscribe-simple > > > > > > > > > > > > > > -- > > > Want to unsubscribe from this list? > > > Check out: http://cygwin.com/ml/#unsubscribe-simple > > > > -- > > Corinna Vinschen Please, send mails regarding Cygwin to > > Cygwin Developer mailto:cygwin AT cygwin DOT com > > Red Hat, Inc. > > > > -- > > Want to unsubscribe from this list? > > Check out: http://cygwin.com/ml/#unsubscribe-simple > >_________________________________________________________ >Do You Yahoo!? >Get your free @yahoo.com address at http://mail.yahoo.com > > >-- >Want to unsubscribe from this list? >Check out: http://cygwin.com/ml/#unsubscribe-simple -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple