mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-19 05:06:38 +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;
|
pri = priority;
|
||||||
#endif /* __rtems__ */
|
#endif /* __rtems__ */
|
||||||
|
|
||||||
|
#ifndef __rtems__
|
||||||
KASSERT(!TD_ON_SLEEPQ(td), ("recursive sleep"));
|
KASSERT(!TD_ON_SLEEPQ(td), ("recursive sleep"));
|
||||||
|
#endif /* __rtems__ */
|
||||||
|
|
||||||
if ((uint8_t *)ident >= &pause_wchan[0] &&
|
if ((uint8_t *)ident >= &pause_wchan[0] &&
|
||||||
(uint8_t *)ident <= &pause_wchan[MAXCPU - 1])
|
(uint8_t *)ident <= &pause_wchan[MAXCPU - 1])
|
||||||
|
Reference in New Issue
Block a user