svn commit: r286234 - head/sys/boot/common

Edward Tomasz Napierala trasz at FreeBSD.org
Tue Aug 4 14:06:19 UTC 2015


On 0803T2054, Andriy Gapon wrote:
> On 03/08/2015 19:27, Edward Tomasz Napierala wrote:
> > Author: trasz
> > Date: Mon Aug  3 16:27:36 2015
> > New Revision: 286234
> > URL: https://svnweb.freebsd.org/changeset/base/286234
> > 
> > Log:
> >   Fix a problem which made loader(8) load non-kld files twice.
> 
> What was the problem?
> The change looks like defensive coding, but it's not clear why the loader would
> attempt to load the same file more than once in the first place.

It's because the "load_modules" Forth word gets called twice.  It could
be fixed, I guess, but I'm no good at Forth, so I chose the other
way: I made the "load" command behave consistently; it already silently
refused to load KLDs twice, and I made it behave the same way for other
types of modules.



More information about the svn-src-head mailing list