Subject: struct cpu_info: why DIAGNOSTIC/LOCKDEBUG conditions?
To: None <port-i386@netbsd.org>
From: Jaromir Dolecek <jdolecek@netbsd.org>
List: port-i386
Date: 06/20/2002 13:33:10
Hi,
i386 cpu_info has ci_spin_locks and ci_simple_locks only included
in struct if DIAGNOSTIC and/or LOCKDEBUG is defined. This causes problems
if e.g. LKM is compiled with different DIAGNOSTIC/LOCKDEBUG flags than
the kernel, and uses parts of cpu_info.

Is there any particular reason to not include those two members always?

Jaromir
-- 
Jaromir Dolecek <jdolecek@NetBSD.org> http://www.NetBSD.org/Ports/i386/ps2.html
-=- We should be mindful of the potential goal, but as the tantric    -=-
-=- Buddhist masters say, ``You may notice during meditation that you -=-
-=- sometimes levitate or glow.   Do not let this distract you.''     -=-