[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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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);