From f592eea591d4232ae42bce0db0953a1fa487e88d Mon Sep 17 00:00:00 2001 From: Stefan Leichter Date: Fri, 2 Jan 2015 12:44:38 +0100 Subject: [PATCH] ntoskrnl.exe: Add stub for KeSetSystemAffinityThread. --- dlls/ntoskrnl.exe/ntoskrnl.c | 7 +++++++ dlls/ntoskrnl.exe/ntoskrnl.exe.spec | 2 +- include/ddk/wdm.h | 1 + 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/dlls/ntoskrnl.exe/ntoskrnl.c b/dlls/ntoskrnl.exe/ntoskrnl.c index 2285ec695aa..c10377a6e72 100644 --- a/dlls/ntoskrnl.exe/ntoskrnl.c +++ b/dlls/ntoskrnl.exe/ntoskrnl.c @@ -1452,6 +1452,13 @@ KPRIORITY WINAPI KeSetPriorityThread( PKTHREAD Thread, KPRIORITY Priority ) return Priority; } +/*********************************************************************** + * KeSetSystemAffinityThread (NTOSKRNL.EXE.@) + */ +VOID WINAPI KeSetSystemAffinityThread(KAFFINITY Affinity) +{ + FIXME("(%lx) stub\n", Affinity); +} /*********************************************************************** * KeWaitForSingleObject (NTOSKRNL.EXE.@) diff --git a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec index 228da2951cd..b824250f01f 100644 --- a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec +++ b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec @@ -614,7 +614,7 @@ @ stub KeSetKernelStackSwapEnable @ stdcall KeSetPriorityThread(ptr long) @ stub KeSetProfileIrql -@ stub KeSetSystemAffinityThread +@ stdcall KeSetSystemAffinityThread(long) @ stub KeSetTargetProcessorDpc @ stub KeSetTimeIncrement @ stub KeSetTimer diff --git a/include/ddk/wdm.h b/include/ddk/wdm.h index 29b24e72994..e4f693ada4f 100644 --- a/include/ddk/wdm.h +++ b/include/ddk/wdm.h @@ -1226,6 +1226,7 @@ LONG WINAPI KeReleaseSemaphore(PRKSEMAPHORE,KPRIORITY,LONG,BOOLEAN); LONG WINAPI KeResetEvent(PRKEVENT); LONG WINAPI KeSetEvent(PRKEVENT,KPRIORITY,BOOLEAN); KPRIORITY WINAPI KeSetPriorityThread(PKTHREAD,KPRIORITY); +void WINAPI KeSetSystemAffinityThread(KAFFINITY); PVOID WINAPI MmAllocateContiguousMemory(SIZE_T,PHYSICAL_ADDRESS); PVOID WINAPI MmAllocateNonCachedMemory(SIZE_T);