From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 31794 invoked from network); 12 Jun 1998 14:32:02 -0000 Received: from winnie.fit.edu (163.118.5.1) by mail2.redhat.com with SMTP; 12 Jun 1998 14:32:02 -0000 Received: from ee.fit.edu (yacht.ee.fit.edu [163.118.30.1]) by winnie.fit.edu (8.8.7/8.8.7) with SMTP id KAA24627 for ; Fri, 12 Jun 1998 10:26:14 -0400 (EDT) Received: from localhost by ee.fit.edu (SMI-8.6/SMI-SVR4) id KAA27519; Fri, 12 Jun 1998 10:29:34 -0400 Date: Fri, 12 Jun 1998 10:29:34 -0400 (EDT) From: Christopher Curtis To: axp-list@redhat.com Subject: Re: Modules on the Alpha In-Reply-To: <199806121418.KAA14858@adder.cs.Virginia.EDU> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Fri, 12 Jun 1998, Greg Lindahl wrote: > > > have no modules loaded. Too bad processor support isn't a module, I > > > have to build separate kernels for PC164 and PC164LX (although perhaps > > > > Hmm, processor support can't be a module. Initialization is needed > > too early, and something like a kernel side 'request_module("pyxis")' > > requires a mounted root-filesystem and kerneld running. > > Even if it can't be a module, it would still be handy. Basically you > would have to split out processor support and have it picked at > run-time by a command-line argument to the kernel... You're high. :) This is quite impossible to do, except where CPUs are compatible, and only then would you be able to dynamically load a subset of processor support. Eg, you could have an "Alpha" family, which would have to be staticly compiled, and "module" support for the 21164, etc. Handling loading would be accomplished by the "least common denominator" of all compatible processors. If you mean a single kernel that could load *all* supported processors, that's quite impossible. An "if" is quite different whether you're on an Alpha, SPARC, or x86 variant. OTOH, You could, I suppose, have a "generic" Alpha kernel with processor modules, and a "generic" x86 kernel, etc. But even then you'd have to use a set of "generic" loader modules (IDE, SCSI, CDROM, etc) to even load the processor optimized ones, which would then have to replace the modules that are already active and running, else suffer unoptimized performance for those modules. > Under SunOS this was very handy; I could make one kernel and use it on > a huge variety of machines. Most modern Unixes auto-detect the > hardware type. Sun made their own hardware, and I'm pretty sure SunOS would only run on Sun hardware. Modern Unices can detect hardware type, but only because they've been compiled for it. There is no way you can detect hardware and do a conditional boot because the conditional itself varies by platform. -- Christopher Curtis - http://www.ee.fit.edu/users/ccurtis Florida Institute of Technology - System Administrator, Programmer Melbourne, Florida USA - http://www.lp.org/