Chameleon

Chameleon Commit Details

Date:2012-05-09 01:15:20 (11 years 11 months ago)
Author:ErmaC
Commit:1955
Parents: 1954
Message:revert plist size change (saio_types.h)
Changes:
M/branches/ErmaC/Trunk/i386/libsaio/cpu.c
M/branches/ErmaC/Trunk/i386/libsaio/saio_types.h

File differences

branches/ErmaC/Trunk/i386/libsaio/cpu.c
5151
5252
5353
54
55
5456
5557
5658
......
8688
8789
8890
91
8992
9093
9194
......
351354
352355
353356
357
354358
355
359
356360
357
361
362
358363
364
365
366
359367
360368
361369
......
556564
557565
558566
567
568
569
559570
560571
561572
ROUND64(SAMPLE_MULTIPLIER/(double)(SAMPLE_CLKS_INT-5))
};
//int_enabled = ml_set_interrupts_enabled(FALSE);
restart:
if (attempts >= 9) // increase to up to 9 attempts.
// This will flash-reboot. TODO: Use tscPanic instead.
set_PIT2(0);// reset timer 2 to be zero
disable_PIT2();// turn off PIT 2
//ml_set_interrupts_enabled(int_enabled);
return intermediate;
}
}
tscFrequency = measure_tsc_frequency();
DBG("cpu freq classic = 0x%016llx\n", tscFrequency);
/* if usual method failed */
if ( tscFrequency < 1000 )
if ( tscFrequency < 1000 )//TEST
{
tscFrequency = timeRDTSC() * 20;
tscFrequency = timeRDTSC() * 20;//measure_tsc_frequency();
// DBG("cpu freq timeRDTSC = 0x%016llx\n", tscFrequency);
}
else{
// DBG("cpu freq timeRDTSC = 0x%016llxn", timeRDTSC() * 20);
}
fsbFrequency = 0;
cpuFrequency = 0;
cpuFrequency = tscFrequency;
DBG("0 ! using the default value for FSB !\n");
}
DBG("cpu freq = 0x%016llxn", timeRDTSC() * 20);
#endif
p->CPU.MaxCoef = maxcoef;
branches/ErmaC/Trunk/i386/libsaio/saio_types.h
6464
6565
6666
67
67
6868
6969
7070
typedef struct Tag Tag, *TagPtr;
typedef struct {
charplist[163840];// buffer for plist
charplist[4096];// buffer for plist
TagPtrdictionary;// buffer for xml dictionary
boolcanOverride;// flag to mark a dictionary can be overriden
} config_file_t;

Archive Download the corresponding diff file

Revision: 1955