Moderators: g3nuin3, SpeedWing, WhiteHat
L. Spiro wrote:I know Don Burns and his my-way-or-the-highway attitude.
I do not see a reason for the auto-aim to be entirely kernel (as apposed to doing the math in user-mode and using kernel for the interface), but I hate it when people question my own motives and tell me I don’t want to do what I want to do. Like when I rewrote the CRT and STL for my engine only to be met with, “Why reinvent the wheel?”.
VOID trRunFuncOnAllProcessors( )
{
KAFFINITY processors;
PKTHREAD thread;
ULONG i = 0;
if( KeSetAffinityThread == NULL )
{
DbgPrint( "KeSetAffinityThread not initialized\n" );
return;
}
processors = KeQueryActiveProcessors();
thread = KeGetCurrentThread();
for(i = 0; i < 32; i++) // @note: Only 32-bit for now
{
KAFFINITY curProc = processors & (1 << i);
if ( curProc != 0 )
{
KeSetAffinityThread(thread, curProc);
// Run some code here
}
}
KeSetAffinityThread(thread, processors);
}
hal!KeAcquireQueuedSpinLock+0x27:
806e6a73 8b4a04 mov ecx,dword ptr [edx+4] ds:0023:00000bd4=????????
KeSetEvent( &gGPThreadArgs.kGPEvent, 0, FALSE );
KeWaitForSingleObject ( &gGPThreadArgs.kGPEventDone, Executive, KernelMode, FALSE, &nWaitTime );
Users browsing this forum: No registered users and 0 guests