When timer interrupt occurs, hw timer will send a interrupt to CPU,
and CPU will check the IDT (interrupt desc table, pointed by idtr register),
find the timer interrupt entry, and find the interrupt service routine, execute it.
It's done by hareware, so there is no such code. OS only implement ISRs
and fill the IDT.
:-)
Min
On 3/1/07,
ninjaboy <n0b0dyn1nj4@xxxxxxxxx> wrote:
2007/3/1, Min-Hua Chen <orca.chen@xxxxxxxxx>:
> hi:
>
> please check the function named "timer_interrupts". The code is
> actully in the "do_timer" function.
> When timer interrupt occurs, ISR will update jiffies.
>
Yep, I just read it, but how the hardware timer is programmed, in other words,
where is the code that attach do_timer at hw timer?
Thanks
--
noone is alone.
--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ