Skip to contentSkip to conversation

error in assumptions in the handling of interrupts.

DISCUSSION Ralph Blach 3 participants 3 messages Jul 28, 2000

lore
Share & tools
lore
#0 lore raw

I would like explain a bug which I found in the 4xx interrupt controller code yesterday.
In the ppc4xx_pic.c code their is a routine called

ppcxxx_aic_disable_and_ack.

The purpose of this code is disable interrupts on the level and reset the ISR.

This will NOT work because for Level interrupts, the ISR will cannot be reset until
the interrupting source is cleared.

The ack to reset the ISR for interrupt must go in the

ppcxxx_aic_enable

routine which irq.c calls after the interrupt routine has been cleared.

Chip Blach
IBM MicroElectronics
Raleigh, NC.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#1 lore raw
Quoted 3 lines · Ralph Blach

This will NOT work because for Level interrupts, the ISR will cannot be reset until
the interrupting source is cleared.

It works for Level interrupts on the 8xx and 8260.......

Quoted 3 lines

The ack to reset the ISR for interrupt must go in the

ppcxxx_aic_enable

So, put it there. All of these functions should be unique to the 405GP interrupt controller. You are free to implement this as you wish.

	-- Dan

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#2 lore raw
Quoted 11 lines · Dan Malek
Quoted 3 lines · Ralph Blach

This will NOT work because for Level interrupts, the ISR will cannot be reset until
the interrupting source is cleared.

It works for Level interrupts on the 8xx and 8260.......

Quoted 2 lines

The ack to reset the ISR for interrupt must go in the

Quoted 8 lines
Quoted 1 line

ppcxxx_aic_enable

So, put it there. All of these functions should be unique to the 405GP interrupt controller. You are free to implement this as you wish.

        -- Dan

I'll take care of the problem in the 405gp version of these functions, but there are also 403 specific versions of the functions. I've seen various people on this mailing list posting about 4xx processors (other than 405), but I haven't figured out if there is anyone who is at the center of 401 and/or 403 development and haven't found the info in the various FAQs yet. Is there any such person?

Thanks,

-Frank
--
Frank Rowand <[email protected]>
MontaVista Software, Inc

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/