* lib/kernels.c: New file.

This commit is contained in:
Earnie Boyd 2001-08-10 11:52:35 +00:00
parent 5b9d54bf97
commit 6286806473

View File

@ -0,0 +1,25 @@
/* extern (library) versions of inline functions defined in winnt.h */
void* GetCurrentFiber(void)
{
void* ret;
__asm__ volatile (
"movl %%fs:0x10,%0"
: "=r" (ret) /* allow use of reg eax,ebx,ecx,edx,esi,edi */
:
);
return ret;
}
void* GetFiberData(void)
{
void* ret;
__asm__ volatile (
"movl %%fs:0x10,%0\n"
"movl (%0),%0"
: "=r" (ret) /* allow use of reg eax,ebx,ecx,edx,esi,edi */
:
);
return ret;
}