Subject: Re: CVS commit: src/sys
To: Eric Haszlakiewicz <erh@netbsd.org>
From: Jeff Rizzo <riz@NetBSD.org>
List: source-changes
Date: 03/30/2006 16:09:16
--d6Gm4EdcadzBjdND
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Sun, Mar 26, 2006 at 08:19:52PM +0000, Eric Haszlakiewicz wrote:
>=20
> Module Name: src
> Committed By: erh
> Date: Sun Mar 26 20:19:52 UTC 2006
>=20
> Modified Files:
> src/sys/kern: kern_lock.c
> src/sys/sys: lock.h sched.h
>=20
> Log Message:
> Add simple_lock_assert_locked/simple_lock_assert_unlocked to provide addi=
tional
> useful information when panic'ing because the assertion fails.
> Use these to define the SCHED_ASSERT_LOCKED/SCHED_ASSERT_UNLOCKED macros.
>=20
This change needs to be reworked a bit - I can't compile a kernel with
MULTIPROCESSOR and DEBUG options because _simple_lock_assert_locked()=20
is only compiled under LOCKDEBUG. If I add LOCKDEBUG, though, I
discover that _kernel_lock_assert_locked() tries to call it
with the wrong number of arguments...
+j
--d6Gm4EdcadzBjdND
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (NetBSD)
iQCVAwUBRCxzLLOuUtxCgar5AQJqJwP+MjwdRirAz+uin9DYK126cDs4+xcgkbxa
ozx3Y+WL4c4ikVlZdmaf3ysrRJ1ZBQJjPePRP6an1HRfv2ofdUIaHoZu8jeLjvpR
D4GzAhx+VL0EG+/3vLhfWR3B2NVugn3FmH974Zs82P6FF8h7CwdOk3e1pmGVXWao
EPOo92HSlos=
=x/4t
-----END PGP SIGNATURE-----
--d6Gm4EdcadzBjdND--