Linu Cherian | 29 Mar 2012 07:01
Picon

Clarification on enable_interrupts

Hi,
While trying to understand the arm interrupt controller driver code, 
got into some confusions.

Older interrupt controller drivers which didnt use the pic
interface(arch/arm/pic), calls "enable_interrupts" in their attach functions.
eg. arm/arm/omap/omap_intr.c. 

This looks very straightforward since interrupts are expected to be enabled,
when the autoconf gets completed and also after the interrupt
controller is initialized.

But at the same time, the newer interrupt controller drivers which
uses the pic interface doesnt call enable_interrupts in their attach
function.

Couldnt really figure out how and where the processor interrupt is
getting enabled(by clearing the I bit in CPSR). 

Appreciate your help in understanding this.

--

-- 
Linu cherian

Linu Cherian | 26 Jun 2012 09:51
Picon

Re: Clarification on enable_interrupts

On Thu Mar 29, 2012 at 10:31:53AM +0530, Linu Cherian wrote:
> Hi,
> While trying to understand the arm interrupt controller driver code, 
> got into some confusions.
> 
> Older interrupt controller drivers which didnt use the pic
> interface(arch/arm/pic), calls "enable_interrupts" in their attach functions.
> eg. arm/arm/omap/omap_intr.c. 
> 
> This looks very straightforward since interrupts are expected to be enabled,
> when the autoconf gets completed and also after the interrupt
> controller is initialized.
> 
> But at the same time, the newer interrupt controller drivers which
> uses the pic interface doesnt call enable_interrupts in their attach
> function.
> 
> Couldnt really figure out how and where the processor interrupt is
> getting enabled(by clearing the I bit in CPSR). 
> 

Made some more effort to clear the confusion, but still in same state.

Sharing a more specific example,  which i had taken from NetBSD current.

Compared two ARM Cotex-A8 boards Beagle and NetWalker.

In case of Beagle, 
the interrupt controller driver omap2_icu.c, doesnt call
enable_interrupts  in the attach function, omap2icu_attach
(Continue reading)


Gmane