Changeset 6f89813 in rtems


Ignore:
Timestamp:
Aug 9, 2012, 1:47:08 PM (7 years ago)
Author:
Christian Mauderer <christian.mauderer@…>
Branches:
4.11, master
Children:
f9fe954
Parents:
d9af2ed4
git-author:
Christian Mauderer <christian.mauderer@…> (08/09/12 13:47:08)
git-committer:
Sebastian Huber <sebastian.huber@…> (08/21/12 09:06:23)
Message:

bsp/mpc55xx: Move work from ISR to task context

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/mpc55xxevb/network/smsc9218i.c

    rd9af2ed4 r6f89813  
    584584
    585585  jc->done = jc->produce;
    586 
    587   smsc9218i_setup_receive_dma(e, regs, jc);
    588586}
    589587
     
    656654  /* Check receive interrupts */
    657655  if ((int_sts & SMSC9218I_INT_RSFL) != 0) {
    658     smsc9218i_receive_job_control *jc = &smsc_rx_jc;
    659 
    660656    int_en &= ~SMSC9218I_INT_RSFL;
    661657    ++e->receive_interrupts;
    662     smsc9218i_setup_receive_dma(e, regs, jc);
     658
     659    sc = rtems_event_send(e->receive_task, SMSC9218I_EVENT_RX);
     660    ASSERT_SC(sc);
    663661  }
    664662
     
    879877
    880878    sc = rtems_bsdnet_event_receive(
    881       SMSC9218I_EVENT_DMA | SMSC9218I_EVENT_PHY,
     879      SMSC9218I_EVENT_DMA | SMSC9218I_EVENT_PHY | SMSC9218I_EVENT_RX,
    882880      RTEMS_EVENT_ANY | RTEMS_WAIT,
    883881      RTEMS_NO_TIMEOUT,
     
    885883    );
    886884    ASSERT_SC(sc);
     885
     886    if ((events & (SMSC9218I_EVENT_RX | SMSC9218I_EVENT_DMA)) != 0) {
     887      smsc9218i_setup_receive_dma(e, regs, jc);
     888    }
    887889
    888890    if ((events & SMSC9218I_EVENT_DMA) != 0) {
Note: See TracChangeset for help on using the changeset viewer.