Anonymous user
APIC Timer: Difference between revisions
Jump to navigation
Jump to search
m
Spelling and Grammar
[unchecked revision] | [unchecked revision] |
(New APIC timer setup example code.) |
m (Spelling and Grammar) |
||
Line 1:
The great benefit of the Local APIC timer that it
== APIC Timer Modes ==
Line 32:
== Initializing ==
There
* Reset APIC to a well known state
* Enable APIC timer
Line 43:
The APIC timer can be set to make a tick (decrease counter) at a given frequency, which is called "divide value". This means you have to multiply APIC timer counter ticks by this divide value to get the true CPU bus frequency. You could use value of 1 (ticks on every bus cycle) up to 128 (ticks on every 128th cycle). See Intel manual vol3A Chapter 9.5.4 on details. Note that according to my tests, Bochs seems not to handle divide value of 1 properly, so I will use 16.
===
Before we start, let's define some constant and functions.
<source lang="asm">
|