Subject: Re: cpu_intr_p() does not exist for all ports
To: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
From: Michael Lorenz <macallan@NetBSD.org>
List: current-users
Date: 12/06/2007 08:39:31
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

On Dec 6, 2007, at 07:18, Izumi Tsutsui wrote:

> macallan@NetBSD.org wrote:
>
>>> For the last two days, a full release cannot be built for amd64 or
>>> i386 because of compile failure for sys/kern/kern_rwlock.c
>>>
>>> It seems that the XEN_* kernels want to #define LOCKDEBUG which in
>>> turn causes RW_ASSERT macro to actually do something.  At line 257
>>> in the above file we attempt to call cpu_intr_p() which doesn't
>>> exist for all ports;  it is indeed missing in sources which were
>>> updated via CVS just a few minutes ago.
>>
>> For the records - I just ran into the same problem on sparc and  
>> sparc64.
>
> Why don't you implement MD cpu_intr_p() functions by yourself?
> (I think Andrew should focus on his own work..)

If it's trivial enough I will. I had other things to do so I didn't  
investigate further.

> Even a dummy cpu_intr_p() (which returns always false) is better
> than disabling the assertion among all ports.

Ok.

have fun
Michael
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iQEVAwUBR1f7lMpnzkX8Yg2nAQKhYwgAqLXfypWgqzlDbDs/ftTRz3ObvJ7wyZaJ
xP7Z07AO22EslnWdZCaK1P8ckzo6SUbKxaHs7aY7t2cufbO2H48lGfwhQHq3pMWo
CabiVrxZix+yUruZH1ShS3l78p+miX6lBneSb3D0/E6K21ZsGht0Dr3EbMTyrM7Q
FAYM87U2rr/7Dc2x7T7Iw0GynIaAUThCUQX7lsxZwBZCExIXrUolluNntEDI6DMq
MrYI15xqJet+zVszT8ZDz9Vte8AqaoDqA5qZnSqwaxKVP2ggwmH+YW7C+OjDwkh1
2EaK2xa5wgBo7VOrtq/o+Js0eP/lGyK3UfHZ8mvc09ocYm1BVKORLA==
=2OES
-----END PGP SIGNATURE-----