mirror of
https://github.com/reactos/reactos.git
synced 2026-06-09 09:23:04 +08:00
[NDK] Fix the type of KPROCESS::ActiveProcessors
Also fix related logic in KiSwapProcess
This commit is contained in:
@@ -278,13 +278,11 @@ KiSwapProcess(IN PKPROCESS NewProcess,
|
||||
IN PKPROCESS OldProcess)
|
||||
{
|
||||
PKIPCR Pcr = (PKIPCR)KeGetPcr();
|
||||
#ifdef CONFIG_SMP
|
||||
LONG SetMember;
|
||||
|
||||
#ifdef CONFIG_SMP
|
||||
/* Update active processor mask */
|
||||
SetMember = (LONG)Pcr->SetMember;
|
||||
InterlockedXor((PLONG)&NewProcess->ActiveProcessors, SetMember);
|
||||
InterlockedXor((PLONG)&OldProcess->ActiveProcessors, SetMember);
|
||||
InterlockedXor64((PLONG64)&NewProcess->ActiveProcessors, Pcr->Prcb.SetMember);
|
||||
InterlockedXor64((PLONG64)&OldProcess->ActiveProcessors, Pcr->Prcb.SetMember);
|
||||
#endif
|
||||
|
||||
/* Update CR3 */
|
||||
|
||||
@@ -1988,7 +1988,7 @@ typedef struct _KPROCESS
|
||||
UCHAR Iopl;
|
||||
UCHAR Unused;
|
||||
#endif
|
||||
volatile ULONG ActiveProcessors;
|
||||
volatile KAFFINITY ActiveProcessors;
|
||||
ULONG KernelTime;
|
||||
ULONG UserTime;
|
||||
LIST_ENTRY ReadyListHead;
|
||||
|
||||
Reference in New Issue
Block a user