Changeset bc0ff47 in rtems


Ignore:
Timestamp:
Jan 10, 2008, 6:25:47 PM (12 years ago)
Author:
Till Straumann <strauman@…>
Branches:
4.10, 4.11, 4.9, master
Children:
98915674
Parents:
5b33dc80
Message:

2008-01-10 Till Straumann <strauman@…>

  • new-exceptions/bspsupport/irq.c: When unhooking and ISR only disable IRQs at the PIC if we are unhooking the last ISR.
Location:
c/src/lib/libcpu/powerpc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/powerpc/ChangeLog

    r5b33dc80 rbc0ff47  
     12008-01-10      Till Straumann <strauman@slac.stanford.edu>
     2
     3        * new-exceptions/bspsupport/irq.c: When unhooking
     4        and ISR only disable IRQs at the PIC if we are
     5        unhooking the last ISR.
     6
    172007-12-11      Till Straumann <strauman@slac.stanford.edu>
    28
  • c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/irq.c

    r5b33dc80 rbc0ff47  
    231231    }
    232232    else
    233     {
    234        if (rtems_hdl_tbl[irq->name].hdl != irq->hdl)
    235        {
    236           rtems_interrupt_enable(level);
    237          return 0;
    238        }
    239     }
    240 
    241         /*
    242          * disable_irq_at_pic is supposed to ignore
    243          * requests to disable interrupts outside
    244          * of the range handled by the PIC
    245          */
    246         BSP_disable_irq_at_pic(irq->name);
     233        {
     234                if (rtems_hdl_tbl[irq->name].hdl != irq->hdl)
     235                {
     236                        rtems_interrupt_enable(level);
     237                        return 0;
     238                }
     239        }
    247240
    248241    /*
     
    278271    }
    279272
     273        /* Only disable at PIC if we removed the last handler */
     274        if ( rtems_hdl_tbl[irq->name].hdl == default_rtems_entry.hdl ) {
     275                /*
     276                 * disable_irq_at_pic is supposed to ignore
     277                 * requests to disable interrupts outside
     278                 * of the range handled by the PIC;
     279                 */
     280                BSP_disable_irq_at_pic(irq->name);
     281        }
     282
    280283    rtems_interrupt_enable(level);
    281284
Note: See TracChangeset for help on using the changeset viewer.