/shark/trunk/oslib/kl/advtimer.c |
---|
179,8 → 179,7 |
cli(); |
/* Set the Gate high, disable speaker */ |
outp(0x61, (inp(0x61) & ~0x02) | 0x01); |
outp(0x61,0x03); |
outp(0x43,0xB0); /* binary, mode 0, LSB/MSB, Ch 2 */ |
outp(0x42,0xFF); /* LSB of count */ |
238,6 → 237,8 |
rdtscll(end); |
barrier(); |
outp(0x61,0x00); |
//Delta TSC |
dtsc = end - start; |