Index: branches/meklort/i386/boot2/modules.c =================================================================== --- branches/meklort/i386/boot2/modules.c (revision 521) +++ branches/meklort/i386/boot2/modules.c (revision 522) @@ -171,11 +171,13 @@ { moduleHook_t* hooks = moduleCallbacks; - while(hooks != NULL && strcmp(name, hooks->name) < 0) + + while(hooks != NULL && strcmp(name, hooks->name) != 0) //TOOD: fixme { + //DBG("%s cmp %s = %d\n", name, hooks->name, strcmp(name, hooks->name)); hooks = hooks->next; } - + if(strcmp(name, hooks->name) == 0) { // Loop through all callbacks for this module Index: branches/meklort/i386/modules/Memory/Memory.c =================================================================== --- branches/meklort/i386/modules/Memory/Memory.c (revision 521) +++ branches/meklort/i386/modules/Memory/Memory.c (revision 522) @@ -28,16 +28,22 @@ void Memory_PCIDevice_hook(void* arg1, void* arg2, void* arg3, void* arg4) { + printf("PCIDevice hook\n"); pci_dt_t* current = arg1; if(current->class_id == PCI_CLASS_BRIDGE_HOST) { + printf(" PCI_CLASS_BRIDGE_HOST located\n"); + dram_controller_dev = current; } } void Memory_hook(void* arg1, void* arg2, void* arg3, void* arg4) { + printf("ScanMemory hook\n"); if (dram_controller_dev!=NULL) { + printf(" scan_dram_controller\n"); + scan_dram_controller(dram_controller_dev); // Rek: pci dev ram controller direct and fully informative scan ... } scan_memory(&Platform); // unfortunately still necesary for some comp where spd cant read correct speed