2008-08-10 00:27:25

by Bradley Hanna

[permalink] [raw]
Subject: Programming the apic when no external to cpu timer is present?

I am working with an embedded testing board that has no timer external
to the cpu other than an rtc. How does linux go about programming the
local cpu timer (apic) to raise hardware interrupts?

thanks for your patience,

brahan


2008-08-10 07:28:52

by Cyrill Gorcunov

[permalink] [raw]
Subject: Re: Programming the apic when no external to cpu timer is present?

[Bradley Hanna - Sat, Aug 09, 2008 at 08:19:43PM -0400]
| I am working with an embedded testing board that has no timer external
| to the cpu other than an rtc. How does linux go about programming the
| local cpu timer (apic) to raise hardware interrupts?
|
| thanks for your patience,
|
| brahan
|

you could take a look on apic_(32|64).c. Here is the
function you need I hope - setup_APIC_timer

- Cyrill -

2008-08-10 07:32:21

by Cyrill Gorcunov

[permalink] [raw]
Subject: Re: Programming the apic when no external to cpu timer is present?

[Cyrill Gorcunov - Sun, Aug 10, 2008 at 11:28:38AM +0400]
| [Bradley Hanna - Sat, Aug 09, 2008 at 08:19:43PM -0400]
| | I am working with an embedded testing board that has no timer external
| | to the cpu other than an rtc. How does linux go about programming the
| | local cpu timer (apic) to raise hardware interrupts?
| |
| | thanks for your patience,
| |
| | brahan
| |
|
| you could take a look on apic_(32|64).c. Here is the
| function you need I hope - setup_APIC_timer
|
| - Cyrill -

oops - it should be lapic_timer_setup :)

- Cyrill -