[ros-diffs] [arty] 24450: Simplify this since we now have intrin.h

arty at svn.reactos.org arty at svn.reactos.org
Sun Oct 8 12:50:50 CEST 2006


Author: arty
Date: Sun Oct  8 14:50:50 2006
New Revision: 24450

URL: http://svn.reactos.org/svn/reactos?rev=24450&view=rev
Log:
Simplify this since we now have intrin.h

Modified:
    branches/powerpc/reactos/include/ndk/psfuncs.h

Modified: branches/powerpc/reactos/include/ndk/psfuncs.h
URL: http://svn.reactos.org/svn/reactos/branches/powerpc/reactos/include/ndk/psfuncs.h?rev=24450&r1=24449&r2=24450&view=diff
==============================================================================
--- branches/powerpc/reactos/include/ndk/psfuncs.h (original)
+++ branches/powerpc/reactos/include/ndk/psfuncs.h Sun Oct  8 14:50:50 2006
@@ -180,19 +180,7 @@
 PTEB
 NtCurrentTeb(VOID)
 {
-#ifndef __GNUC__
     return (PTEB)(ULONG_PTR)__readfsdword(0x18);
-#else
-    struct _TEB *ret;
-
-    __asm__ __volatile__ (
-        "movl %%fs:0x18, %0\n"
-        : "=r" (ret)
-        : /* no inputs */
-    );
-
-    return ret;
-#endif
 }
 #endif
 




More information about the Ros-diffs mailing list