Start of APIC timer

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
limp
Member
Member
Posts: 90
Joined: Fri Jun 12, 2009 7:18 am

Start of APIC timer

Post by limp »

Hi all,

I have configured the APIC timer in period-mode. In Intel's manuals is stated that:

"In one-shot mode, the timer is started by programming its initial-count register. The initial count value is then copied into the current-count register and count-down begins."

Although is not stated clearly, I assume that this is the case for period-mode as well. The difference, as the manual says, is that in periodic-mode the counter is reloaded and starts again.

So, when the initial-count register is programmed, the count-down begins. I am wondering if there is another way to start up the timer.

For instance, if I first program the initial-count register but have the interrupt masked (i.e. not allowing its reception), will the timer start counting when I un-mask it or I will need to reprogram the initial-count register?

Thanks in advance.
User avatar
Mohanty
Member
Member
Posts: 28
Joined: Fri Jul 30, 2010 9:15 am
Location: India
Contact:

Re: Start of APIC timer

Post by Mohanty »

Please show your code, then only it will easy to answer.............
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Start of APIC timer

Post by Combuster »

Masking an interrupt means ignoring whatever it has to say. It doesn't change anything on the other side. Its not like something stops existing when you can't see it.

That said, it would have been a good example of something you could have found out on your own by just trying (and probably faster too).
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Post Reply