diff --git a/reactos/ntoskrnl/ke/kthread.c b/reactos/ntoskrnl/ke/kthread.c index 4a83c6e0d20..e082f32afc7 100644 --- a/reactos/ntoskrnl/ke/kthread.c +++ b/reactos/ntoskrnl/ke/kthread.c @@ -28,7 +28,6 @@ extern EX_WORK_QUEUE ExWorkerQueue[MaximumWorkQueue]; LIST_ENTRY PriorityListHead[MAXIMUM_PRIORITY]; static ULONG PriorityListMask = 0; ULONG IdleProcessorMask = 0; -extern BOOLEAN DoneInitYet; extern PETHREAD PspReaperList; /* FUNCTIONS *****************************************************************/ @@ -232,7 +231,7 @@ KiDispatchThread(ULONG NewThreadStatus) { KIRQL OldIrql; - if (!DoneInitYet || KeGetCurrentPrcb()->IdleThread == NULL) { + if (KeGetCurrentPrcb()->IdleThread == NULL) { return; } diff --git a/reactos/ntoskrnl/ntoskrnl.def b/reactos/ntoskrnl/ntoskrnl.def index fd447b77294..e3f3fb42202 100644 --- a/reactos/ntoskrnl/ntoskrnl.def +++ b/reactos/ntoskrnl/ntoskrnl.def @@ -936,9 +936,10 @@ PsSetCreateThreadNotifyRoutine@4 PsSetJobUIRestrictionsClass@8 PsSetLegoNotifyRoutine@4 PsSetProcessPriorityClass@8 +PsSetProcessPriorityByClass@8 PsSetProcessSecurityPort@8 PsSetProcessWin32Process@8 -PsSetProcessWin32WindowStation@8 +PsSetProcessWindowStation@8 PsSetThreadHardErrorsAreDisabled@8 PsSetThreadWin32Thread@8 PsSetLoadImageNotifyRoutine@4 diff --git a/reactos/ntoskrnl/ps/process.c b/reactos/ntoskrnl/ps/process.c index 8bef54d08c4..a73ea57eb48 100644 --- a/reactos/ntoskrnl/ps/process.c +++ b/reactos/ntoskrnl/ps/process.c @@ -753,12 +753,24 @@ PsSetProcessWin32Process(PEPROCESS Process, */ VOID STDCALL -PsSetProcessWin32WindowStation(PEPROCESS Process, - PVOID WindowStation) +PsSetProcessWindowStation(PEPROCESS Process, + PVOID WindowStation) { Process->Win32WindowStation = WindowStation; } +/* + * @unimplemented + */ +NTSTATUS +STDCALL +PsSetProcessPriorityByClass(IN PEPROCESS Process, + IN ULONG Type) +{ + UNIMPLEMENTED; + return STATUS_NOT_IMPLEMENTED; +} + /* * FUNCTION: Creates a process. * ARGUMENTS: diff --git a/reactos/ntoskrnl/ps/psmgr.c b/reactos/ntoskrnl/ps/psmgr.c index 49592f17778..4b5ea867dd2 100644 --- a/reactos/ntoskrnl/ps/psmgr.c +++ b/reactos/ntoskrnl/ps/psmgr.c @@ -33,8 +33,6 @@ static GENERIC_MAPPING PiThreadMapping = { STANDARD_RIGHTS_EXECUTE | SYNCHRONIZE, THREAD_ALL_ACCESS}; -BOOLEAN DoneInitYet = FALSE; - extern ULONG NtBuildNumber; extern ULONG NtMajorVersion; extern ULONG NtMinorVersion; @@ -104,8 +102,6 @@ PsInitThreadManagment(VOID) DPRINT("FirstThread %x\n",FirstThread); - DoneInitYet = TRUE; - ExInitializeWorkItem(&PspReaperWorkItem, PspReapRoutine, NULL); }