diff options
author | bmilekic <bmilekic@FreeBSD.org> | 2001-08-24 22:53:45 +0000 |
---|---|---|
committer | bmilekic <bmilekic@FreeBSD.org> | 2001-08-24 22:53:45 +0000 |
commit | 5f3f4b73afc657ea50ea59431bc761ce9e5abf85 (patch) | |
tree | c9ef82b09c232e847f7edec15966dcb9a0ea5eeb /sys/kern/kern_mutex.c | |
parent | 092b5f5d715c868cb325886acb294b6cf2f51079 (diff) | |
download | FreeBSD-src-5f3f4b73afc657ea50ea59431bc761ce9e5abf85.zip FreeBSD-src-5f3f4b73afc657ea50ea59431bc761ce9e5abf85.tar.gz |
*** empty log message ***
Diffstat (limited to 'sys/kern/kern_mutex.c')
-rw-r--r-- | sys/kern/kern_mutex.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/kern/kern_mutex.c b/sys/kern/kern_mutex.c index 6baf62a..b34d049 100644 --- a/sys/kern/kern_mutex.c +++ b/sys/kern/kern_mutex.c @@ -611,8 +611,10 @@ mtx_validate(struct mtx *m) * we can re-enable the kernacc() checks. */ #ifndef __alpha__ - if (!kernacc((caddr_t)m, sizeof(m), VM_PROT_READ | VM_PROT_WRITE)) - panic("Can't read and write to mutex %p", m); + if (!cold) + if (!kernacc((caddr_t)m, sizeof(m), + VM_PROT_READ | VM_PROT_WRITE)) + panic("Can't read and write to mutex %p", m); #endif } #endif |