Changeset 572484f in rtems


Ignore:
Timestamp:
Jan 28, 2005, 7:35:23 PM (15 years ago)
Author:
Eric Norum <WENorum@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
362c2bc2
Parents:
a69fb0c6
Message:

New BSP for Arcturus uCDIMM ColdFire? 5282.

Location:
c/src/lib/libbsp/m68k
Files:
17 added
3 edited

Legend:

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

    ra69fb0c6 r572484f  
     12005-01-28      Eric Norum <norume@aps.anl.gov>
     2        * uC5282: New BSP
     3        acinclude.m4: uC5282 BSP
     4        shared/m68kpretaskinghook.c: Work around agressive optimizing compilers
     5
    162004-09-24      Ralf Corsepius <ralf_corsepius@rtems.org>
    27
  • c/src/lib/libbsp/m68k/acinclude.m4

    ra69fb0c6 r572484f  
    3333  sim68000 )
    3434    AC_CONFIG_SUBDIRS([sim68000]);;
     35  uC5282 )
     36    AC_CONFIG_SUBDIRS([uC5282]);;
    3537  *)
    3638    AC_MSG_ERROR([Invalid BSP]);;
  • c/src/lib/libbsp/m68k/shared/m68kpretaskinghook.c

    ra69fb0c6 r572484f  
    3535extern rtems_configuration_table  BSP_Configuration;
    3636
    37 extern void          *_RamBase;
    38 extern void          *_WorkspaceBase;
    39 extern void          *_HeapSize;
     37extern char          _RamBase[];
     38extern char          _WorkspaceBase[];
     39extern char          _HeapSize[];
    4040
    4141unsigned long  _M68k_Ramsize;
     
    4444{
    4545    void         *heapStart;
    46     unsigned long heapSize = (unsigned long)&_HeapSize;
     46    unsigned long heapSize = (unsigned long)_HeapSize;
    4747    unsigned long ramSpace;
    4848
    4949    heapStart =  (void *)
    50        ((unsigned long)&_WorkspaceBase + BSP_Configuration.work_space_size);
    51     ramSpace = (unsigned long) &_RamBase + _M68k_Ramsize - (unsigned long) heapStart;
     50       ((unsigned long)_WorkspaceBase + BSP_Configuration.work_space_size);
     51    ramSpace = (unsigned long)_RamBase + _M68k_Ramsize - (unsigned long)heapStart;
    5252
    53     if (heapSize == 0)
     53    /*
     54     * Can't use 'if(heapSize==0)' because the compiler "knows" that nothing
     55     * can have an address of 0 and proceeds to optimize-away the test.
     56     */
     57    if (heapSize < 10)
    5458        heapSize = ramSpace;
    5559    else if (heapSize > ramSpace)
Note: See TracChangeset for help on using the changeset viewer.