svn commit: r180431 - in head/sys: kern sys
peter at wemm.org
Fri Jul 11 01:16:33 UTC 2008
On Thu, Jul 10, 2008 at 5:54 PM, David O'Brien <obrien at freebsd.org> wrote:
> On Thu, Jul 10, 2008 at 04:58:05PM -0700, Peter Wemm wrote:
>> There is a better way to do what you want though. You're using loader
>> still, right?
> Correct - however loader.conf is ignored.
>> I have old code kicking around that allowed linking the
>> kernel against a hal module properly. I did this to support linking
>> the kernel against an apic / smp / apic / 8259 module and
> I'd be happy to try your code. :-)
Heh. I just knew it! I knew I should have kept my mouth shut. :)
What I had working was essentially moving the preload code from
link_elf.c (relative to early freebsd-5 trees) into the loader. This
allowed the kernel to have symbol references to preload modules.
Run-time module became relatively simple.
What I didn't finish was passing metadata through to the running
kernel. That meant that the pre-boot link was both permanent (no
unloads) and wasn't able to be referenced after boot. Other .ko files
wouldn't see the preloaded one. This was a lack of completion issue,
not so much a fundamental design requirement. However, even if
re-adding the ability to unload a preloaded module was done, you
couldn't unload something that the kernel itself depended on,
I'll find the machine. Its got all sorts of other goodies on it that
I've been meaning to liberate for years. (ps: this is a good example
of why code should always be checked into a public repo instead of a
Peter Wemm - peter at wemm.org; peter at FreeBSD.org; peter at yahoo-inc.com; KI6FJV
"All of this is for nothing if we don't go to the stars" - JMS/B5
"If Java had true garbage collection, most programs would delete
themselves upon execution." -- Robert Sewell
More information about the cvs-src