p->p_intr_nesting_level is MI now and initialized to 0 in kern_fork.c,

so it should be save to KASSERT() on it even on an arch that may not
use it.
This commit is contained in:
Peter Wemm 2001-01-27 06:32:20 +00:00
parent bc234bdcac
commit 0fee3d3550

View File

@ -146,7 +146,7 @@ malloc(size, type, flags)
#endif
register struct malloc_type *ksp = type;
#if defined(INVARIANTS) && defined(__i386__)
#if defined(INVARIANTS)
if (flags == M_WAITOK)
KASSERT(curproc->p_intr_nesting_level == 0,
("malloc(M_WAITOK) in interrupt context"));