Got it (Re: KERNLOAD undeclared error during buildkernel)

Matthew Dillon dillon at apollo.backplane.com
Mon Jun 27 15:32:29 PDT 2005


:    How odd.  It's got to be that somehow __i386__ wasn't defined
:    before, and is now (maybe a compiler or preprocessor change),
:    because I don't see a KERNLOAD anywhere in the codebase other
:    then in that assert.

    Figured it out!

    Simon's commit today did it:

    If compiling a module with the kernel, suck in opt_global.h.

    Before this commit, INVARIANTS was *NEVER* defined during the
    module build because, well, they were modules and until this commit
    modules did not inherit kernel options.  Since INVARIANTS was not
    being used, the KASSERT() was #define'd to nothing.

    In anycase, the KASSERT in madt is bogus, I'll remove it :-)

					-Matt
					Matthew Dillon 
					<dillon at xxxxxxxxxxxxx>





More information about the Bugs mailing list