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