Index: trunk/i386/boot2/boot.c =================================================================== --- trunk/i386/boot2/boot.c (revision 908) +++ trunk/i386/boot2/boot.c (revision 909) @@ -191,7 +191,15 @@ usb_loop(); - execute_hook("Kernel Start", (void*)kernelEntry, (void*)bootArgs, NULL, NULL); // Notify modules that the kernel is about to be started + if (checkOSVersion("10.7")) + { + execute_hook("Kernel Start", (void*)kernelEntry, (void*)bootArgs, NULL, NULL); // Notify modules that the kernel is about to be started + } + else + { + execute_hook("Kernel Start", (void*)kernelEntry, (void*)bootArgsPreLion, NULL, NULL); // Notify modules that the kernel is about to be started + + } // If we were in text mode, switch to graphics mode. // This will draw the boot graphics unless we are in // verbose mode. @@ -205,7 +213,7 @@ finalizeBootStruct(); - if (checkOSVersion("10.7")) { + if (checkOSVersion("10.7")) { // Masking out so that Lion doesn't doublefault outb(0x21, 0xff); /* Maskout all interrupts Pic1 */ Index: trunk/i386/modules/MakeInc.dir =================================================================== --- trunk/i386/modules/MakeInc.dir (revision 908) +++ trunk/i386/modules/MakeInc.dir (revision 909) @@ -161,10 +161,10 @@ .PHONY: $(SRCROOT)/sym/i386/boot_modules.c $(SRCROOT)/sym/i386/boot_modules.c: - echo "\tstart_built_in_module(\"$(MODULE_NAME)\", &$(MODULE_START));" >> $@ + @echo "\tstart_built_in_module(\"$(MODULE_NAME)\", &$(MODULE_START));" >> $@ $(SRCROOT)/sym/i386/boot_modules.h: - echo "void $(MODULE_START)(); // $(MODULE_NAME)" >> $@ + @echo "void $(MODULE_START)(); // $(MODULE_NAME)" >> $@ #dependencies Index: trunk/i386/modules/Makefile =================================================================== --- trunk/i386/modules/Makefile (revision 908) +++ trunk/i386/modules/Makefile (revision 909) @@ -59,7 +59,7 @@ $(SYMROOT)/boot_modules.c: ${OBJROOT} ${SYMROOT}/modules/ ${OBJROOT} $(addprefix $(OBJROOT)/, ${MODULE_OBJS}) ifeq ($(BUILT_IN),yes) - echo "// Autogenerated - do not modify" > $@ + @echo "// Autogenerated - do not modify" > $@ @echo "#include " >> $@ @echo "#include \"boot_modules.h\"" >> $@ @echo "void start_built_in_modules() {" >> $@ @@ -67,6 +67,6 @@ $(SYMROOT)/boot_modules.h: ${OBJROOT} ${SYMROOT}/modules/ ${OBJROOT} $(addprefix $(OBJROOT)/, ${MODULE_OBJS}) ifeq ($(BUILT_IN),yes) - echo "// Autogenerated - do not modify" > $@ + @echo "// Autogenerated - do not modify" > $@ @echo "void start_built_in_modules(); " > $@ endif