Changeset df49c60 in rtems for c/src/lib/libbsp/m68k/shared


Ignore:
Timestamp:
Jun 12, 2000, 3:00:15 PM (20 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
edeed26
Parents:
0ab65474
Message:

Merged from 4.5.0-beta3a

Location:
c/src/lib/libbsp/m68k/shared
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/m68k/shared/m68kpretaskinghook.c

    r0ab65474 rdf49c60  
    3535extern rtems_configuration_table  BSP_Configuration;
    3636
    37 extern unsigned long  _RamSize;
     37extern void          *_RamBase;
    3838extern void          *_WorkspaceBase;
    3939extern void          *_HeapSize;
     40
     41
     42unsigned long  _M68k_Ramsize;
    4043
    4144void bsp_pretasking_hook(void)
     
    4750    heapStart =  (void *)
    4851       ((unsigned long)&_WorkspaceBase + BSP_Configuration.work_space_size);
    49     ramSpace = _RamSize - (unsigned long) heapStart;
     52    ramSpace = (unsigned long) &_RamBase + _M68k_Ramsize - (unsigned long) heapStart;
    5053
    5154    if (heapSize == 0)
  • c/src/lib/libbsp/m68k/shared/start.S

    r0ab65474 rdf49c60  
    9292        movec   a0,isp                | set interrupt stack
    9393#endif
    94         movel   #0,a7@-               | push environp
    95         movel   #0,a7@-               | push argv
     94        pea     env                   | push environp
     95        pea     arg                   | push argv
    9696        movel   #0,a7@-               | push argc
    9797
     
    116116BEGIN_DATA
    117117
     118        PUBLIC (environ)
     119        .align 2
     120SYM (environ):
     121        .long   env
     122
    118123        PUBLIC (start_frame)
    119124SYM (start_frame):
     
    124129BEGIN_BSS
    125130
    126         PUBLIC (environ)
    127         .align 2
    128 SYM (environ):
    129         .long  0
     131env: .long  0
     132arg: .long  0
    130133
    131134        PUBLIC (initial_isp)
Note: See TracChangeset for help on using the changeset viewer.