From owner-freebsd-current Thu Oct 30 23:15:49 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id XAA17934 for current-outgoing; Thu, 30 Oct 1997 23:15:49 -0800 (PST) (envelope-from owner-freebsd-current) Received: from sendero-ppp.i-connect.net (sendero-ppp.i-Connect.Net [206.190.143.100]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id XAA17928 for ; Thu, 30 Oct 1997 23:15:45 -0800 (PST) (envelope-from shimon@sendero-ppp.i-connect.net) Received: (qmail 15178 invoked by uid 1000); 31 Oct 1997 07:16:11 -0000 Message-ID: X-Mailer: XFMail 1.2-beta-100797 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit MIME-Version: 1.0 Date: Thu, 30 Oct 1997 23:16:11 -0800 (PST) Organization: Atlas Telecom From: Simon Shapiro To: freebsd-current@freebsd.org Subject: More on LINT Kernel Failure to compile Sender: owner-freebsd-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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