Set INTC0_ICRx registers properly.

This commit is contained in:
Eric Norum
2005-02-07 23:07:01 +00:00
parent 017ec60782
commit 8e71275776

View File

@@ -361,7 +361,7 @@ BSP_installVME_isr(unsigned long vector, BSP_VME_ISR_t handler, void *usrArg)
for (p = 0 ; p < 7 ; p++) { for (p = 0 ; p < 7 ; p++) {
if ((source < 8) if ((source < 8)
|| (bsp_allocate_interrupt(l,p) == RTEMS_SUCCESSFUL)) { || (bsp_allocate_interrupt(l,p) == RTEMS_SUCCESSFUL)) {
if (source < 8) if (source >= 8)
*(&MCF5282_INTC0_ICR1 + (source - 1)) = *(&MCF5282_INTC0_ICR1 + (source - 1)) =
MCF5282_INTC_ICR_IL(l) | MCF5282_INTC_ICR_IL(l) |
MCF5282_INTC_ICR_IP(p); MCF5282_INTC_ICR_IP(p);