From owner-freebsd-arch Fri May 26 17:16:27 2000 Delivered-To: freebsd-arch@freebsd.org Received: from smtp02.primenet.com (smtp02.primenet.com [206.165.6.132]) by hub.freebsd.org (Postfix) with ESMTP id B676A37BA00 for ; Fri, 26 May 2000 17:16:22 -0700 (PDT) (envelope-from tlambert@usr05.primenet.com) Received: (from daemon@localhost) by smtp02.primenet.com (8.9.3/8.9.3) id RAA03899; Fri, 26 May 2000 17:16:11 -0700 (MST) Received: from usr05.primenet.com(206.165.6.205) via SMTP by smtp02.primenet.com, id smtpdAAA5gaGKh; Fri May 26 17:16:07 2000 Received: (from tlambert@localhost) by usr05.primenet.com (8.8.5/8.8.5) id RAA23476; Fri, 26 May 2000 17:16:07 -0700 (MST) From: Terry Lambert Message-Id: <200005270016.RAA23476@usr05.primenet.com> Subject: Re: Preemptive kernel on older X86 hardware To: peter@netplex.com.au (Peter Wemm) Date: Sat, 27 May 2000 00:16:07 +0000 (GMT) Cc: dillon@apollo.backplane.com (Matthew Dillon), cp@bsdi.com (Chuck Paterson), jkh@zippy.cdrom.com (Jordan K. Hubbard), tlambert@primenet.com (Terry Lambert), arch@FreeBSD.ORG In-Reply-To: <20000525183213.AE08A1CE1@overcee.netplex.com.au> from "Peter Wemm" at May 25, 2000 11:32:13 AM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > Lets use subroutines during development at least, it will make > > things easier. I don't think anyone can argue with that :-) > > Which is also required for binary kld's. Having two different versions > of kld's - one for SMP and one for UP would be bad. Although I have strategy > to take care of this when the revamped config/build process is finished. > It will be possible to use kernel config-style build parameters for > modules as well. > > For example, building a "GENERIC" module would cause it to make calls to > the mutex subroutines, while some compile option would allow you to make > a tuned SMP-specific kld for your local machine. I would suggest using inlines, but have subroutines available, and compile modules to use the subroutine version. The inlines don't have to be inlines during developement, as you say, they can be macro-wrapped functions. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message