Changeset 77c2178 in rtems


Ignore:
Timestamp:
Jan 31, 2012, 10:23:26 AM (9 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
41572c4
Parents:
be42aa1a
git-author:
Sebastian Huber <sebastian.huber@…> (01/31/12 10:23:26)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/31/12 10:25:15)
Message:

Fixed race condition during startup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/libchip/network/if_fxp.c

    rbe42aa1a r77c2178  
    586586        DBGLVL_PRINTK(3,"fxp_attach: interrupt = 0x%x\n",interrupt);
    587587        sc->irqInfo.name = (rtems_irq_number)interrupt;
    588         /*
    589          * Set up interrupts
    590          */
    591         sc->irqInfo.hdl = (rtems_irq_hdl)fxp_intr;
    592         sc->irqInfo.on  = nopOn;
    593         sc->irqInfo.off = nopOn;
    594         sc->irqInfo.isOn = fxpIsOn;
    595         s = BSP_install_rtems_irq_handler (&sc->irqInfo);
    596         if (!s)
    597           rtems_panic ("Can't attach fxp interrupt handler for irq %d\n",
    598                        sc->irqInfo.name);
    599588        /*
    600589         * Reset to a stable state.
     
    16721661        struct fxp_cb_ias *cb_ias;
    16731662        struct fxp_cb_tx *txp;
    1674         int i, prm, s;
     1663        int i, prm, s, rv;
    16751664
    16761665rtems_task_wake_after(100);
     
    18981887                sc->daemonTid = rtems_bsdnet_newproc ("FXPd", 4096, fxp_daemon, sc);
    18991888
    1900         }
     1889                /*
     1890                 * Set up interrupts
     1891                 */
     1892                sc->irqInfo.hdl = (rtems_irq_hdl)fxp_intr;
     1893                sc->irqInfo.on  = nopOn;
     1894                sc->irqInfo.off = nopOn;
     1895                sc->irqInfo.isOn = fxpIsOn;
     1896                rv = BSP_install_rtems_irq_handler (&sc->irqInfo);
     1897                if (rv != 1) {
     1898                  rtems_panic ("Can't attach fxp interrupt handler for irq %d\n",
     1899                               sc->irqInfo.name);
     1900                }
     1901        }
     1902
    19011903        /*
    19021904         * Enable interrupts.
Note: See TracChangeset for help on using the changeset viewer.