Let KeGetCurrentProcessorControlBlock() use CurrentPrcb field and correct comments
This commit is contained in:
parent
1d9a79736a
commit
fc85e0674b
@ -39,11 +39,11 @@ KeGetCurrentProcessorControlBlock(VOID)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets address of current kernel's thread object.
|
* Gets the current thread running on the currently executing processor.
|
||||||
*
|
*
|
||||||
* @return This routine returns address of current kernel's thread object.
|
* @return This routine returns the address of the current thread object.
|
||||||
*
|
*
|
||||||
* @since XT 1.0
|
* @since NT 3.5
|
||||||
*/
|
*/
|
||||||
XTAPI
|
XTAPI
|
||||||
PKTHREAD
|
PKTHREAD
|
||||||
|
@ -35,9 +35,16 @@ XTAPI
|
|||||||
PKPROCESSOR_CONTROL_BLOCK
|
PKPROCESSOR_CONTROL_BLOCK
|
||||||
KeGetCurrentProcessorControlBlock(VOID)
|
KeGetCurrentProcessorControlBlock(VOID)
|
||||||
{
|
{
|
||||||
return (PKPROCESSOR_CONTROL_BLOCK)ArReadFSDualWord(FIELD_OFFSET(KPROCESSOR_BLOCK, Prcb));
|
return (PKPROCESSOR_CONTROL_BLOCK)ArReadFSDualWord(FIELD_OFFSET(KPROCESSOR_BLOCK, CurrentPrcb));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the current thread running on the currently executing processor.
|
||||||
|
*
|
||||||
|
* @return This routine returns the address of the current thread object.
|
||||||
|
*
|
||||||
|
* @since NT 3.5
|
||||||
|
*/
|
||||||
XTAPI
|
XTAPI
|
||||||
PKTHREAD
|
PKTHREAD
|
||||||
KeGetCurrentThread(VOID)
|
KeGetCurrentThread(VOID)
|
||||||
|
Loading…
Reference in New Issue
Block a user