Chameleon

Chameleon Commit Details

Date:2015-04-16 18:04:40 (3 years 3 months ago)
Author:ErmaC
Commit:2654
Parents: 2653
Message:Restore mask PIC0 interrupts for cpu
Changes:
M/trunk/i386/libsaio/cpu.c

File differences

trunk/i386/libsaio/cpu.c
300300
301301
302302
303
303304
304305
305306
......
595596
596597
597598
599
600
601
598602
599603
600604
......
10171021
10181022
10191023
1024
1025
10201026
10211027
10221028
uint8_tcurrcoef= 0;
uint8_tmaxdiv= 0;
uint8_tmaxcoef= 0;
uint8_tpic0_mask;
uint8_tcpuMultN2= 0;
const char*newratio;
p->CPU.Features |= CPU_FEATURE_HTT;
}
pic0_mask = inb(0x21U);
outb(0x21U, 0xFFU); // mask PIC0 interrupts for duration of timing tests
uint64_t cycles;
cycles = timeRDTSC();
tscFreq = rtc_set_cyc_per_sec(cycles);
#endif
outb(0x21U, pic0_mask); // restore PIC0 interrupts
p->CPU.MaxCoef = maxcoef = currcoef;
p->CPU.MaxDiv = maxdiv = currdiv;
p->CPU.CurrCoef = currcoef;

Archive Download the corresponding diff file

Revision: 2654