Changeset 28b38f3 in rtems


Ignore:
Timestamp:
02/25/10 11:01:35 (14 years ago)
Author:
Thomas Doerfler <Thomas.Doerfler@…>
Branches:
4.10, 4.11, 5, master
Children:
3cfa636
Parents:
6f8d49b4
Message:

combine all checks for missing MAC address
enable FPU, if POSIX init task present
explicitly disable all edge port interrupts

Location:
c/src/lib/libbsp/m68k/genmcf548x
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/m68k/genmcf548x/ChangeLog

    r6f8d49b4 r28b38f3  
     12010-02-24      Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>
     2
     3        * network/network.c: combine all checks for missing MAC address
     4        * startup/bspstart.c: enable FPU, if POSIX init task present
     5        * startup/init548x.c: explicitly disable all edge port interrupts
     6
     7
    182009-12-16      Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>
    29
  • c/src/lib/libbsp/m68k/genmcf548x/network/network.c

    r6f8d49b4 r28b38f3  
    17221722      memcpy((void *)sc->arpcom.ac_enaddr, config->hardware_address, ETHER_ADDR_LEN);
    17231723      }
    1724     else
    1725       {
    1726       /* There is no ethernet address provided, so it could be read
    1727        * from the Ethernet protocol block of SCC1 in DPRAM.
    1728        */
    1729       rtems_panic("No Ethernet address specified!\n");
    1730       }
    17311724
    17321725#else /* NVRAM_CONFIGURE != 1 */
     
    17361729
    17371730    memcpy(sc->arpcom.ac_enaddr, config->hardware_address, ETHER_ADDR_LEN);
    1738 
    1739     }
    1740   else
    1741     {
    1742 
    1743     /* There is no ethernet address provided, so it could be read
    1744      * from the Ethernet protocol block of SCC1 in DPRAM.
    1745      */
    1746     rtems_panic("No Ethernet address specified!\n");
    17471731
    17481732    }
     
    17711755  }
    17721756#endif
     1757  if ((sc->arpcom.ac_enaddr[0] == 0) &&
     1758      (sc->arpcom.ac_enaddr[1] == 0) &&
     1759      (sc->arpcom.ac_enaddr[2] == 0)) {
     1760    /* There is no ethernet address provided, so it could be read
     1761     * from the Ethernet protocol block of SCC1 in DPRAM.
     1762     */
     1763    rtems_panic("No Ethernet address specified!\n");
     1764  }
    17731765  if(config->mtu)
    17741766    mtu = config->mtu;
  • c/src/lib/libbsp/m68k/genmcf548x/startup/bspstart.c

    r6f8d49b4 r28b38f3  
    275275
    276276  /* Switch on FPU in CACR shadow register if necessary */
    277   if (
    278     Configuration_RTEMS_API.User_initialization_tasks_table != NULL &&
    279       (Configuration_RTEMS_API.User_initialization_tasks_table->attribute_set
    280         & RTEMS_FLOATING_POINT) != 0
    281   ) {
     277  if ((Configuration_POSIX_API.number_of_initialization_threads > 0) ||
     278      ((Configuration_RTEMS_API.number_of_initialization_tasks > 0) &&
     279       (Configuration_RTEMS_API.User_initialization_tasks_table
     280        ->attribute_set & RTEMS_FLOATING_POINT) != 0)
     281      ) {
    282282    _CPU_cacr_shadow &= ~MCF548X_CACR_DF;
    283283  }
  • c/src/lib/libbsp/m68k/genmcf548x/startup/init548x.c

    r6f8d49b4 r28b38f3  
    322322
    323323#endif
     324    /*
     325     * make sure the "edge port" has all interrupts disabled
     326     */
     327    MCF548X_EPORT_EPIER = 0;
    324328}
Note: See TracChangeset for help on using the changeset viewer.