mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
Implement KegetCurrentThread inline function
svn path=/branches/ros-amd64-bringup/; revision=35736
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user