From owner-freebsd-hackers Tue Mar 10 18:13:54 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA27588 for freebsd-hackers-outgoing; Tue, 10 Mar 1998 18:13:54 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from ns1.yes.no (ns1.yes.no [195.119.24.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA27562 for ; Tue, 10 Mar 1998 18:13:21 -0800 (PST) (envelope-from eivind@bitbox.follo.net) Received: from bitbox.follo.net (bitbox.follo.net [194.198.43.36]) by ns1.yes.no (8.8.7/8.8.7) with ESMTP id CAA06819; Wed, 11 Mar 1998 02:13:12 GMT Received: (from eivind@localhost) by bitbox.follo.net (8.8.6/8.8.6) id DAA15793; Wed, 11 Mar 1998 03:13:10 +0100 (MET) Message-ID: <19980311031310.30458@follo.net> Date: Wed, 11 Mar 1998 03:13:10 +0100 From: Eivind Eklund To: hackers@FreeBSD.ORG Cc: mike@smith.org.au Subject: Re: userconfig data -> linker set -> ELF segment Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89.1i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [Mike - I took the freedom of moving this to -hackers. Hope you don't mind.] Mike Smith wrote: > Eivind Eklund wrote > > Mike Smith wrote: > > > Why not generate the list at config time? Use sys/conf/userconfig, > > > sys/i386/conf/userconfig.i386 and sys/xxxxx/conf/userconfig.xxxxx and > > > generate a static array. > > > > That's possible, but I dislike adding more source meta files than > > strictly necessary. However, if we're going to go for the userland > > userconfig, this is probably the way it'll have to be. > > Bear in mind that the userland userconfig will only be working with ELF > kernels. If you can reliably stuff all the userconfig-like data into a > given not-normally-loaded segment at that point in time, then parking > it in the driver source itself is going to work just fine. So, can anybody tell me if I could do this? I was basically planning to look at distributing the userconfig device list as a linker set, to allow externally developed drivers to be added without having to edit a static list. I know how to do this now, but how easy is it to put it in a non-loaded segment later? Eivind. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message