Date: Wed, 12 May 1999 16:13:01 -0700 From: Mike Smith <mike@smith.net.au> To: mi@aldan.algebra.com Cc: current@freebsd.org Subject: Re: cvs commit: src/sys/pci pcisupport.c Message-ID: <199905122313.QAA01911@dingo.cdrom.com> In-Reply-To: Your message of "Wed, 12 May 1999 18:52:36 EDT." <199905122252.SAA73553@misha.cisco.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> Mike Smith once wrote: > > > For a usable dynamic architecture, loadable modules need to be > > compiled to support both UP and SMP architectures simultaneously. Thus > > the locking primitives need to be conditionalised at _runtime_. > > What about > > kldload /modules/up/whatever.ko > and > kldload /modules/smp/whatever.ko > > and even > > kldload /debug-modules/up/whatever.ko > [...] This is just too painful for words. If people _really_ want to do this, you'd put all of the drivers into one .ko file and only partially link it (ie. just link the one module). But I do not think we want this at all; the obvious selectors so far are: - UP vs. SMP - BPF - Invariants That's eight versions of eg. a network driver already. I cut off BPF as an issue a little while back by putting stubs for the BPF routines into the kernel when BPF isn't actually built; we want to do the same things for the other functionality types. -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199905122313.QAA01911>