LOCK_ASSERT -> KASSERT
This commit is contained in:
parent
9f56dfa520
commit
62fdbc4b9a
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: netbsd32_signal.c,v 1.25 2007/06/16 20:04:28 dsl Exp $ */
|
||||
/* $NetBSD: netbsd32_signal.c,v 1.26 2007/10/08 18:07:24 ad Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998, 2001 Matthew R. Green
|
||||
|
@ -29,7 +29,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: netbsd32_signal.c,v 1.25 2007/06/16 20:04:28 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: netbsd32_signal.c,v 1.26 2007/10/08 18:07:24 ad Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -292,7 +292,7 @@ getucontext32(struct lwp *l, ucontext32_t *ucp)
|
|||
{
|
||||
struct proc *p = l->l_proc;
|
||||
|
||||
LOCK_ASSERT(mutex_owned(&p->p_smutex));
|
||||
KASSERT(mutex_owned(&p->p_smutex));
|
||||
|
||||
ucp->uc_flags = 0;
|
||||
ucp->uc_link = (uint32_t)(intptr_t)l->l_ctxlink;
|
||||
|
@ -345,7 +345,7 @@ setucontext32(struct lwp *l, const ucontext32_t *ucp)
|
|||
struct proc *p = l->l_proc;
|
||||
int error;
|
||||
|
||||
LOCK_ASSERT(mutex_owned(&p->p_smutex));
|
||||
KASSERT(mutex_owned(&p->p_smutex));
|
||||
|
||||
if ((ucp->uc_flags & _UC_SIGMASK) != 0) {
|
||||
error = sigprocmask1(l, SIG_SETMASK, &ucp->uc_sigmask, NULL);
|
||||
|
|
Loading…
Reference in New Issue