[ros-dev] gcc question

KJK::Hyperion noog at libero.it
Mon Nov 1 22:10:30 CET 2004


At 20.31 01/11/2004, you wrote:
>it is possible, to tell gcc to use the fs register directly for addressing 
>variables in the pcr?

winnt.h defines the following intrinsic functions (and some analogues for 
other platforms, like PPC):

BYTE
__readfsbyte (
     IN DWORD Offset
     );

WORD
__readfsword (
     IN DWORD Offset
     );

DWORD
__readfsdword (
     IN DWORD Offset
     );

VOID
__writefsbyte (
     IN DWORD Offset,
     IN BYTE  Data
     );

VOID
__writefsword (
     IN DWORD Offset,
     IN WORD   Data
     );

VOID
__writefsdword (
     IN DWORD Offset,
     IN DWORD Data
     );

Maybe we could have something like these and wrap them in macros? 



More information about the Ros-dev mailing list