Ingo Weinhold <bonefish@xxxxxxxxxxxxxxx> wrote: > > > Mmh, that must be something Axel introduced (accidentially?), as > > > it > > > seems to be boot loader specific. We indirectly include <vm.h>, > > > and I > > > guess the source is to be found somewhere in this direction. > > Actually, it's not accidently. It's the same mechanism as in > > "arch", I > > probably just have messed up its implementation. > > The actual platform + arch define the build target, and we need > > headers > > from both sources in the kernel (i.e. for the kernel_args structure > > that is passed from the boot loader to the kernel - it has an arch > > and > > a platform specific part). > Maybe I just misunderstand you, but shouldn't a header that is used > by both > boot loader and kernel use #ifdefs when including headers that differ > for > boot loader and kernel, so that for the ddm we wouldn't need to add a > boot > loader specific include dir, since no boot loader header would be > included > when compiling it? The boot loader header directory contains the kernel_args.h header which defines the structure that is passed from the boot loader to the kernel. I think that's the best location for it, but the structure is used by many init calls throughout the kernel, so we could think a bit more about it. Bye, Axel.