Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.ms-windows.programmer.nt.kernel-mode > #18

Re: timers

From Jonathan de Boyne Pollard <J.deBoynePollard-newsgroups@NTLWorld.COM>
Newsgroups comp.os.os2.misc, comp.os.os2.apps, comp.os.ms-windows.programmer.nt.kernel-mode, comp.sys.ibm.pc.hardware.chips
Subject Re: timers
References (7 earlier) <Qg5I6Bo2seGy-pn2-SRUmK2hWYiDv@neurobox> <4e1bcd9f$0$2357$c3e8da3$76a7c58f@news.astraweb.com> <Bd1D8ggkpXsj-pn2-EjyCD1oD4DTk@Tobias> <4e1d7f6e$0$6543$9b4e6d93@newsspool4.arcor-online.net> <Bd1D8ggkpXsj-pn2-gQmumq4wQWbM@Tobias>
Message-ID <IU.D20110809.T122225.P13285.Q0@J.de.Boyne.Pollard.localhost> (permalink)
Organization virginmedia.com
Date 2011-08-09 13:21 +0100

Cross-posted to 4 groups.

Show all headers | View raw


> BTW, I think ACPI offers an additional timer that could be used
> for this purpose.At least Windows seems to go this route in it's
> implemenation of the DosTmrXXX equivalents.

It's not ACPI.  It's the hardware.  There are three major "timer" 
interrupt sources in a modern PC machine: channel #0 of the Programmable 
Interval Timer which is nowadays integral to the PCI-to-ISA or 
PCI-to-LPC bridge chip, the High Precision Event Timer on the 
host-to-PCI bridge chip, and the timers built in to each local APIC. 
There are additional sources of *counters*, such as the so-called "PM 
timer" and the TSC processor register, which don't generate timer 
interrupts.

Which is used when is not simple.  It's not possible to say "Windows 
uses X", because that varies from HAL to HAL and according to how 
Windows happens to have been bootstrapped on each particular occasion. 
KeQueryPerformanceCounter() calls HAL functions, and the 
USEPMTIMER/USEPLATFORMCLOCK and (old) USE8254 options, passed to the 
Windows boot loader and settable on boot manager entries, control how 
several of those HAL functions (varying by HAL, of course) behave.

Back to comp.os.ms-windows.programmer.nt.kernel-mode | Previous | Next | Find similar


Thread

Re: timers Jonathan de Boyne Pollard <J.deBoynePollard-newsgroups@NTLWorld.COM> - 2011-08-09 13:21 +0100

csiph-web