Timer is set for 0x4cd * 813.8 ns = 1 ms (LSB followed by MSB)
source code like this
outp(0x43, 0x34);
outp(0x40, 0xcd); least significant byte of timer count
outp(0x40, 0x04); most significant byte of timer count
I use a driver that can opreate IO port sucessed.
But I have two problem .
1 Sometime the speed changed but after 1 or 2 second, the speed
is restored. I can see system clock run fast then slowly.
2 Sometime the speed is faster.
Bad idea. RTC clock is also used in Windows, and you do not know what of them
is the main OS clock.
--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
ma...@storagecraft.com
http://www.storagecraft.com
You must be kidding.
What you need to toy with has a name: DOS.
Err... you mean, HAL ?
--PA
Umm, do you understand that this doesn't actually make Windows run any
faster? And, in fact, by increasing the number of timer interrupts, you
will actually increase the unproductive overhead?
--
- Tim Roberts, ti...@probo.com
Providenza & Boekelheide, Inc
"Pavel A." <pav...@NOwritemeNO.com> wrote in message
news:4578DF89-359A-46C2...@microsoft.com...
"Arkady Frenkel" <ark...@hotmailxdotx.com> wrote in message
news:ud$dDBzcF...@TK2MSFTNGP15.phx.gbl...
They do this with a custom HAL, right? or just call ExSetTimerResolution?
Regarding "big Windows": there are several sources of the system clock tick,
that the HAL can chose on startup, depending on present hardware and HAL type
(UP, MP, APIC): the "int 0" timer, "int 8" timer, APIC timer. Maybe some
future Windows will support HPET.
The timer source determines the minimal granularity of system tick: 1 or 2 ms.
AFAIK, how exactly HAL selects the source is not documented anywhere :(
--PA