mirror of
https://github.com/reactos/reactos.git
synced 2024-09-28 05:26:58 +00:00
[NTOS] Fix boot on UP build - PrcbLocks are not used on UP (#6391)
On the uniprocessor kernel KiAcquirePrcbLock is a stub that doesn't modify the current Prcb's PrcbLock value. Quickly protect this assert around CONFIG_SMP
This commit is contained in:
parent
ab528ac6ae
commit
748a2e1655
|
@ -1359,7 +1359,9 @@ KxQueueReadyThread(IN PKTHREAD Thread,
|
||||||
|
|
||||||
/* Sanity checks */
|
/* Sanity checks */
|
||||||
ASSERT(Prcb == KeGetCurrentPrcb());
|
ASSERT(Prcb == KeGetCurrentPrcb());
|
||||||
|
#ifdef CONFIG_SMP
|
||||||
ASSERT(Prcb->PrcbLock != 0);
|
ASSERT(Prcb->PrcbLock != 0);
|
||||||
|
#endif
|
||||||
ASSERT(Thread->State == Running);
|
ASSERT(Thread->State == Running);
|
||||||
ASSERT(Thread->NextProcessor == Prcb->Number);
|
ASSERT(Thread->NextProcessor == Prcb->Number);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue