Changeset 8e230e6 in rtems


Ignore:
Timestamp:
May 5, 2009, 4:20:51 PM (10 years ago)
Author:
Jennifer Averett <Jennifer.Averett@…>
Branches:
4.9
Children:
ef3a82f
Parents:
31a5ec8
Message:

2009-05-05 Jennifer Averett <jennifer.averett@…>

  • new-exceptions/bspsupport/irq_supp.h: Split routine to allow bsps with nonstandard/non-existant pics to call with interrupts off.
Location:
c/src/lib/libcpu/powerpc
Files:
2 edited

Legend:

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

    r31a5ec8 r8e230e6  
     12009-05-05      Jennifer Averett <jennifer.averett@OARcorp.com>
     2
     3        * new-exceptions/bspsupport/irq_supp.h: Split routine to allow bsps
     4        with nonstandard/non-existant pics to call with interrupts off.
     5
    162009-03-12      Joel Sherrill <joel.sherrill@OARcorp.com>
    27
  • c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/irq_supp.h

    r31a5ec8 r8e230e6  
    6868
    6969/*
     70 * Snippet to be used by PIC drivers and by bsp_irq_dispatch_list
     71 * traverses list of shared handlers for a given interrupt
     72 *
     73 */
     74
     75static inline void
     76bsp_irq_dispatch_list_base(
     77  rtems_irq_connect_data *tbl,
     78  unsigned irq,
     79  rtems_irq_hdl sentinel
     80)
     81{
     82        rtems_irq_connect_data* vchain;
     83        for( vchain = &tbl[irq];
     84                        ((int)vchain != -1 && vchain->hdl != sentinel);
     85                        vchain = (rtems_irq_connect_data*)vchain->next_handler )
     86        {
     87          vchain->hdl(vchain->handle);
     88        }
     89}
     90
     91
     92/*
    7093 * Snippet to be used by PIC drivers;
    7194 * enables interrupts, traverses list of
     
    91114        _ISR_Set_level(0);
    92115
    93         rtems_irq_connect_data* vchain;
    94         for( vchain = &tbl[irq];
    95                         ((int)vchain != -1 && vchain->hdl != sentinel);
    96                         vchain = (rtems_irq_connect_data*)vchain->next_handler )
    97         {
    98                 vchain->hdl(vchain->handle);
    99         }
     116
     117        bsp_irq_dispatch_list_base( tbl, irq, sentinel );
    100118
    101119        /* Restore original level */
Note: See TracChangeset for help on using the changeset viewer.