Changeset 87347dd in rtems


Ignore:
Timestamp:
May 31, 2010, 12:16:43 PM (9 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, master
Children:
bfa3a3e
Parents:
7905137
Message:

2010-05-31 Ralf Corsépius <ralf.corsepius@…>

  • libchip/network/open_eth.c: Misc. changes to make code 16bit-target compliant.
Location:
c/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/ChangeLog

    r7905137 r87347dd  
     12010-05-31      Ralf Corsépius <ralf.corsepius@rtems.org>
     2
     3        * libchip/network/open_eth.c:
     4        Misc. changes to make code 16bit-target compliant.
     5
    162010-05-18      Chris Johns <chrisj@rtems.org>
    27
  • c/src/libchip/network/open_eth.c

    r7905137 r87347dd  
    314314
    315315    regs->mac_addr1 = sc->arpcom.ac_enaddr[0] << 8 | sc->arpcom.ac_enaddr[1];
    316     regs->mac_addr0 = sc->arpcom.ac_enaddr[2] << 24 | sc->arpcom.ac_enaddr[3] << 16 |
    317         sc->arpcom.ac_enaddr[4] << 8 | sc->arpcom.ac_enaddr[5];
     316
     317    uint32_t mac_addr0;
     318    mac_addr0 = sc->arpcom.ac_enaddr[2];
     319    mac_addr0 <<= 8;
     320    mac_addr0 |= sc->arpcom.ac_enaddr[3];
     321    mac_addr0 <<= 8;
     322    mac_addr0 |= sc->arpcom.ac_enaddr[4];
     323    mac_addr0 <<= 8;
     324    mac_addr0 |= sc->arpcom.ac_enaddr[5];
     325   
     326    regs->mac_addr0 = mac_addr0;
    318327
    319328    /* install interrupt vector */
     
    348357    struct ifnet *ifp = &dp->arpcom.ac_if;
    349358    struct mbuf *m;
    350     unsigned int len, len_status, bad;
     359    unsigned int len;
     360    uint32_t len_status;
     361    unsigned int bad;
    351362    rtems_event_set events;
    352363
     
    438449    unsigned char *temp;
    439450    struct mbuf *n;
    440     unsigned int len, len_status;
     451    uint32_t len, len_status;
    441452
    442453    if (inside) printf ("error: sendpacket re-entered!!\n");
Note: See TracChangeset for help on using the changeset viewer.