Author: tkreuzer
Date: Thu Aug 28 19:17:53 2008
New Revision: 35736
URL:
http://svn.reactos.org/svn/reactos?rev=35736&view=rev
Log:
Implement KegetCurrentThread inline function
Modified:
branches/ros-amd64-bringup/reactos/ntoskrnl/include/internal/ke_x.h
Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/include/internal/ke_x.h
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
==============================================================================
--- branches/ros-amd64-bringup/reactos/ntoskrnl/include/internal/ke_x.h [iso-8859-1]
(original)
+++ branches/ros-amd64-bringup/reactos/ntoskrnl/include/internal/ke_x.h [iso-8859-1] Thu
Aug 28 19:17:53 2008
@@ -1534,6 +1534,8 @@
#ifdef _M_IX86
/* Return the current thread */
return ((PKIPCR)KeGetPcr())->PrcbData.CurrentThread;
+#elif defined (_M_AMD64)
+ return (PRKTHREAD)__readgsqword(FIELD_OFFSET(KIPCR, Prcb.CurrentThread));
#else
PKPRCB Prcb = KeGetCurrentPrcb();
return Prcb->CurrentThread;