diff options
author | peter <peter@FreeBSD.org> | 2001-01-27 06:32:20 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2001-01-27 06:32:20 +0000 |
commit | ee90d51e9c5a5f6f30e49f5c69812a4c73c105cb (patch) | |
tree | c1d67d86a80bb299122e029b9364caba9ccc7be7 /sys/kern/kern_malloc.c | |
parent | cf3baa5309b90aa6d0de30bd49af8d9a54b42595 (diff) | |
download | FreeBSD-src-ee90d51e9c5a5f6f30e49f5c69812a4c73c105cb.zip FreeBSD-src-ee90d51e9c5a5f6f30e49f5c69812a4c73c105cb.tar.gz |
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.
Diffstat (limited to 'sys/kern/kern_malloc.c')
-rw-r--r-- | sys/kern/kern_malloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_malloc.c b/sys/kern/kern_malloc.c index 8e13dbe..089d867 100644 --- a/sys/kern/kern_malloc.c +++ b/sys/kern/kern_malloc.c @@ -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")); |