[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:
Justin Miller
2024-01-20 08:59:13 -08:00
committed by GitHub
parent ab528ac6ae
commit 748a2e1655

View File

@@ -1359,7 +1359,9 @@ KxQueueReadyThread(IN PKTHREAD Thread,
/* Sanity checks */
ASSERT(Prcb == KeGetCurrentPrcb());
#ifdef CONFIG_SMP
ASSERT(Prcb->PrcbLock != 0);
#endif
ASSERT(Thread->State == Running);
ASSERT(Thread->NextProcessor == Prcb->Number);