Implement KegetCurrentThread inline function

svn path=/branches/ros-amd64-bringup/; revision=35736
This commit is contained in:
Timo Kreuzer
2008-08-29 00:17:53 +00:00
parent cd09661d87
commit 01a5044354
+2
View File
@@ -1534,6 +1534,8 @@ KeGetCurrentThread(VOID)
#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;