RFC 8259 handling suggestion and MPC107 in openpic

Dag Nygren dag at newtech.fi
Fri Nov 2 22:21:55 EST 2001


Hi,

just browsed through the different PPC setups
with an 8259.

Every single one has  the following code in xxx_init_IRQ:

 for ( i = 0 ; i < NUM_8259_INTERRUPTS  ; i++ )
        irq_desc[i].handler = &i8259_pic;
 i8259_init();

Seems like everyone having an i8259 wants to use it ;-)
Would it make sense to move the loop into
the beginning of i8259_init()
in the following format ?

for ( i =i8259_pic.irq_offset  ; i < i8259_pic.irq_offset +
NUM_8259_INTERRUPTS  ; i++ )
        irq_desc[i].handler = &i8259_pic;

I would also suggest that the "dummy" handling of
the MPC107, now in some ports (my project included)
would be integrated into open_pic.c

BRGDS



--
Dag Nygren                               email: dag at newtech.fi
Oy Espoon NewTech Ab                     phone: +358 9 8024910
Träsktorpet 3                              fax: +358 9 8024916
02360 ESBO                              Mobile: +358 400 426312
FINLAND


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





More information about the Linuxppc-dev mailing list