Index: trunk/i386/boot2/Makefile =================================================================== --- trunk/i386/boot2/Makefile (revision 891) +++ trunk/i386/boot2/Makefile (revision 892) @@ -76,6 +76,7 @@ endif + @${MKDIRS} $(OBJROOT)/../boot2_modules/ @echo "\t[LD] boot.sys" @$(CC) -Wl,-segaddr,__INIT,$(BOOT2ADDR) -Wl,-segalign,20 -Wl,-preload \ -nostdlib -arch i386 -static \ Index: trunk/i386/boot2/modules.c =================================================================== --- trunk/i386/boot2/modules.c (revision 891) +++ trunk/i386/boot2/modules.c (revision 892) @@ -10,6 +10,7 @@ #include "boot.h" #include "bootstruct.h" #include "modules.h" +#include "boot_modules.h" #if CONFIG_MODULE_DEBUG @@ -40,6 +41,10 @@ */ int init_module_system() { + // Start any modules that were compiled in first. + start_built_in_modules(); + + int retVal = 0; void (*module_start)(void) = NULL; char* module_data = symbols_module_start + BOOT2_ADDR; Index: trunk/i386/modules/Makefile =================================================================== --- trunk/i386/modules/Makefile (revision 891) +++ trunk/i386/modules/Makefile (revision 892) @@ -22,7 +22,7 @@ ifeq (${CONFIG_MODULES}, y) -all install: $(SYMROOT) $(OBJROOT) objroot_dirs $(SYMROOT)/boot_modules.c $(SYMROOT)/boot_modules.h +all: $(SYMROOT) $(OBJROOT) objroot_dirs $(SYMROOT)/boot_modules.c $(SYMROOT)/boot_modules.h @for i in ${SUBDIRS}; \ do \ echo ================= make $@ for $$i =================; \ @@ -43,7 +43,10 @@ else -all: +all: $(SYMROOT) $(OBJROOT) objroot_dirs $(SYMROOT)/boot_modules.c $(SYMROOT)/boot_modules.h + @# Finish up boot_modules.c + @echo "}" >> $(SYMROOT)/boot_modules.c + endif .PHONY: objroot_dirs