mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-18 08:26:02 +08:00
Fix INVARIANTS support
This commit is contained in:
@@ -186,7 +186,9 @@ _sleep(void *ident, struct lock_object *lock, int priority,
|
||||
pri = priority;
|
||||
#endif /* __rtems__ */
|
||||
|
||||
#ifndef __rtems__
|
||||
KASSERT(!TD_ON_SLEEPQ(td), ("recursive sleep"));
|
||||
#endif /* __rtems__ */
|
||||
|
||||
if ((uint8_t *)ident >= &pause_wchan[0] &&
|
||||
(uint8_t *)ident <= &pause_wchan[MAXCPU - 1])
|
||||
|
Reference in New Issue
Block a user