Index: branches/xZenu/src/arch/ppc/boot2/main.c =================================================================== --- branches/xZenu/src/arch/ppc/boot2/main.c (revision 1327) +++ branches/xZenu/src/arch/ppc/boot2/main.c (revision 1328) @@ -39,7 +39,9 @@ #include #include -extern void malloc_init(char * start, int size, int nodes, void (*malloc_error)(char *, size_t, const char *, int)); +extern void malloc_init(char * start, int size, int nodes, void (*malloc_error)(char *, size_t, const char *, int)); +extern void init_module_system(); +extern int execute_hook(const char* name, void*, void*, void*, void*); static void Start(void *unused1, void *unused2, ClientInterfacePtr ciPtr); static void Main(ClientInterfacePtr ciPtr); @@ -92,11 +94,22 @@ static void Main(ClientInterfacePtr ciPtr) { + int loopCount = 0; long ret; ret = InitEverything(ciPtr); if (ret != 0) Exit(); + // Intialize module system + init_module_system(); + + execute_hook("Initialize", (void*)loopCount++, (void*)ciPtr, 0, 0); // Main work loop + + while(1) + { + execute_hook("WorkLoop", (void*)loopCount++, (void*)ciPtr, 0, 0); // Main work loop + } + } static long InitEverything(ClientInterfacePtr ciPtr) { Index: branches/xZenu/src/arch/i386/boot2/boot.c =================================================================== --- branches/xZenu/src/arch/i386/boot2/boot.c (revision 1327) +++ branches/xZenu/src/arch/i386/boot2/boot.c (revision 1328) @@ -102,16 +102,19 @@ // that the booter was loaded from. void common_boot(int biosdev) { + int loopCount = 0; + video_mode( 2 ); // 80x25 mono text mode. // Intialize module system init_module_system(); - int loopCount = 0; + execute_hook("Initialize", (void*)loopCount++, (void*)biosdev, 0, 0); // Main work loop + while(1) { - execute_hook("WorkLoop", (void*)loopCount++, 0, 0, 0); // Main work loop - } + execute_hook("WorkLoop", (void*)loopCount++, (void*)biosdev, 0, 0); // Main work loop + } } //==========================================================================