Date: Thu, 30 Oct 1997 23:16:11 -0800 (PST) From: Simon Shapiro <Shimon@i-Connect.Net> To: freebsd-current@freebsd.org Subject: More on LINT Kernel Failure to compile Message-ID: <XFMail.971030231611.Shimon@i-Connect.Net>
next in thread | raw e-mail | index | archive | help
I think I found the problem but know not how to proceed:
In (for example, /usr/src/sys/isofs/cd9660/cd9660_node.c one sees:
int
cd9660_init(vfsp)
struct vfsconf *vfsp;
{
isohashtbl = hashinit(desiredvnodes, M_ISOFSMNT, &isohash);
simple_lock_init(&cd9660_ihash_slock);
return (0);
}
While /usr/src/sys/i386/include/lock.h says:
#if !defined(SIMPLELOCK_DEBUG) && NCPUS > 1
/*
* This set of defines turns on the real functions in i386/isa/apic_ipl.s.
*/
#define simple_lock_init(alp) s_lock_init(alp)
#define simple_lock(alp) s_lock(alp)
#define simple_lock_try(alp) s_lock_try(alp)
#define simple_unlock(alp) s_unlock(alp)
#endif /* !SIMPLELOCK_DEBUG && NCPUS > 1 */
So, if we debug simple locks or have only one CPU, what defines these
symbols?
I know how to cause it to compile, but I know not what the author means to
have in case these conditions are false.
---
If Microsoft Built Cars:
Every time they repainted the lines on the road, you'd have to buy a new
car.
Sincerely Yours,
Simon Shapiro Atlas Telecom
Senior Architect 14355 SW Allen Blvd., Suite 130 Beaverton OR 97005
Shimon@i-Connect.Net Voice: 503.799.2313
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.971030231611.Shimon>
