From a45b9181eaab44e22ad501bd733b05e98f040e35 Mon Sep 17 00:00:00 2001 From: Danny Smith Date: Thu, 2 Nov 2006 00:54:46 +0000 Subject: * include/winuser.h (LR_DEFAULTSIZE): Remove duplicate. C99 'extern inline' patrol. * include/winnt.h (GetCurrentFiber): Remove extern declaration. Make inline static. (GetFiberData): Likewise. * lib/kernel32.c: Remove. * lib/Makefile.in: Remove reference to kernel32.[co]. --- winsup/w32api/lib/kernel32.c | 49 -------------------------------------------- 1 file changed, 49 deletions(-) delete mode 100644 winsup/w32api/lib/kernel32.c (limited to 'winsup/w32api/lib/kernel32.c') diff --git a/winsup/w32api/lib/kernel32.c b/winsup/w32api/lib/kernel32.c deleted file mode 100644 index 08ff86c25..000000000 --- a/winsup/w32api/lib/kernel32.c +++ /dev/null @@ -1,49 +0,0 @@ -/* extern (library) versions of inline functions defined in winnt.h */ - -#if defined(__GNUC__) - -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; -} - -#elif !defined (__WATCOMC__) - -void* GetCurrentFiber(void) -{ - void* res; - _asm { - mov eax, dword ptr fs:0x10 - mov res, eax - }; - return res; -} - -void* GetFiberData(void) -{ - void* res; - _asm { - mov eax, dword ptr fs:0x10 - mov eax, [eax] - mov res, eax - }; - return res; -} - -#endif /* __GNUC__ */ -- cgit v1.2.3