Author: tkreuzer
Date: Wed Aug 13 21:24:14 2008
New Revision: 35325
URL:
http://svn.reactos.org/svn/reactos?rev=35325&view=rev
Log:
add NtCurrentTeb inline function
Modified:
branches/ros-amd64-bringup/reactos/include/ndk/psfuncs.h
Modified: branches/ros-amd64-bringup/reactos/include/ndk/psfuncs.h
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/inclu…
==============================================================================
--- branches/ros-amd64-bringup/reactos/include/ndk/psfuncs.h [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/include/ndk/psfuncs.h [iso-8859-1] Wed Aug 13
21:24:14 2008
@@ -315,6 +315,11 @@
return ret;
#endif
}
+#elif defined (_M_AMD64)
+FORCEINLINE struct _TEB * NtCurrentTeb(VOID)
+{
+ return (struct _TEB *)__readgsqword(FIELD_OFFSET(NT_TIB, Self));
+}
#endif
#else
struct _TEB * NtCurrentTeb(void);