* include/winnt.h (GetCurrentFiber): Make "external __inline" or asm code will
be included in every module which includes this header. (GetFiberData): Ditto.
This commit is contained in:
parent
e3eef4d042
commit
4c1ce6d3a2
@ -1,3 +1,8 @@
|
|||||||
|
Sun Apr 8 20:48:01 2001 Christopher Faylor <cgf@cygnus.com>
|
||||||
|
|
||||||
|
* include/winnt.h (GetCurrentFiber): Make "external __inline" or asm
|
||||||
|
code will be included in every module which includes this header.
|
||||||
|
(GetFiberData): Ditto.
|
||||||
|
|
||||||
2001-04-08 Earnie Boyd <earnie@users.sourceforge.net>
|
2001-04-08 Earnie Boyd <earnie@users.sourceforge.net>
|
||||||
|
|
||||||
|
@ -2499,22 +2499,22 @@ typedef struct _REPARSE_POINT_INFORMATION {
|
|||||||
WORD ReparseDataLength;
|
WORD ReparseDataLength;
|
||||||
WORD UnparsedNameLength;
|
WORD UnparsedNameLength;
|
||||||
} REPARSE_POINT_INFORMATION, *PREPARSE_POINT_INFORMATION;
|
} REPARSE_POINT_INFORMATION, *PREPARSE_POINT_INFORMATION;
|
||||||
__inline PVOID GetCurrentFiber(void)
|
extern __inline PVOID GetCurrentFiber(void)
|
||||||
{
|
{
|
||||||
void* ret;
|
void* ret;
|
||||||
__asm__ volatile ("
|
__asm__ volatile ("\n\
|
||||||
movl %%fs:0x10,%0
|
movl %%fs:0x10,%0\n\
|
||||||
movl (%0),%0
|
movl (%0),%0\n\
|
||||||
" : "=r" (ret) /* allow use of reg eax, ebx, ecx, edx, esi, edi */
|
" : "=r" (ret) /* allow use of reg eax, ebx, ecx, edx, esi, edi */
|
||||||
:
|
:
|
||||||
);
|
);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
__inline PVOID GetFiberData(void)
|
extern __inline PVOID GetFiberData(void)
|
||||||
{
|
{
|
||||||
void* ret;
|
void* ret;
|
||||||
__asm__ volatile ("
|
__asm__ volatile ("\n\
|
||||||
movl %%fs:0x10,%0
|
movl %%fs:0x10,%0\n\
|
||||||
" : "=r" (ret) /* allow use of reg eax,ebx,ecx,edx,esi,edi */
|
" : "=r" (ret) /* allow use of reg eax,ebx,ecx,edx,esi,edi */
|
||||||
:
|
:
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user