Implement KeSetTargetProcessorDpc() routine
All checks were successful
Builds / ExectOS (amd64) (push) Successful in 30s
Builds / ExectOS (i686) (push) Successful in 28s

This commit is contained in:
Rafal Kupiec 2023-10-29 19:59:21 +01:00
parent be7981f614
commit aa17be6eb3
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4
3 changed files with 27 additions and 0 deletions

View File

@ -69,4 +69,9 @@ KeReleaseSemaphore(IN PKSEMAPHORE Semaphore,
IN LONG Adjustment,
IN BOOLEAN Wait);
XTAPI
VOID
KeSetTargetProcessorDpc(IN PKDPC Dpc,
IN CCHAR Number);
#endif /* __XTDK_KEFUNCS_H */

View File

@ -91,3 +91,24 @@ KepRetireDpcList(IN PKPROCESSOR_CONTROL_BLOCK Prcb)
{
UNIMPLEMENTED;
}
/**
* Sets the target processor number for DPC.
*
* @param Dpc
* Supplies a pointer to the DPC object.
*
* @param Number
* Supplies the target processor number.
*
* @return This routine does not return any value.
*
* @since NT 4.0
*/
XTAPI
VOID
KeSetTargetProcessorDpc(IN PKDPC Dpc,
IN CCHAR Number)
{
Dpc->Number = MAXIMUM_PROCESSORS + Number;
}

View File

@ -16,6 +16,7 @@
@ stdcall KeInitializeTimerEx(ptr long)
@ stdcall KeReadSemaphoreState(ptr)
@ stdcall KeReleaseSemaphore(ptr long long long)
@ stdcall KeSetTargetProcessorDpc(ptr long)
@ stdcall RtlCompareMemory(ptr ptr long)
@ stdcall RtlCopyMemory(ptr ptr long)
@ stdcall RtlFillMemory(ptr long long)