Chameleon

Chameleon Commit Details

Date:2010-09-14 07:56:45 (9 years 1 month ago)
Author:Evan Lojewski
Commit:522
Parents: 521
Message:Temperary bug fix. NOTE: GUI and Memory modules currently do not work corretly. If you want the goot screen, you can include teh GUI module, however you cannot include a theme directory ye, otherwise it'll just reboot
Changes:
M/branches/meklort/i386/modules/Memory/Memory.c
M/branches/meklort/i386/boot2/modules.c

File differences

branches/meklort/i386/boot2/modules.c
171171
172172
173173
174
174
175
175176
177
176178
177179
178
180
179181
180182
181183
{
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
branches/meklort/i386/modules/Memory/Memory.c
2828
2929
3030
31
3132
3233
3334
35
36
3437
3538
3639
3740
3841
3942
43
4044
45
46
4147
4248
4349
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

Archive Download the corresponding diff file

Revision: 522