Changeset f50952c in rtems


Ignore:
Timestamp:
Apr 7, 2000, 7:04:12 PM (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Children:
09652b9f
Parents:
cc655a5
Message:

Patch from Charles-Antoine Gauthier <charles.gauthier@…> after
feedback from Eric Norum <eric@…> on static and
dynamic RAM sizing issues while still having as much shared
code as possible across the m68k BSPs.

Location:
c/src/lib/libbsp/m68k
Files:
15 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/m68k/dmv152/startup/bspstart.c

    rcc655a5 rf50952c  
    3434char *rtems_progname;
    3535
     36/* Amount of RAM on this board */
     37unsigned long _M68k_Ramsize;
     38
    3639/*
    3740 *  Use the shared implementations of the following routines
     
    5457  void           *vbr;
    5558  extern void    *_WorkspaceBase;
     59  extern unsigned long _M68k_Ramsize;
     60
     61  _M68k_Ramsize = (unsigned long)&_RamSize;             /* RAM size set in linker script */
    5662
    5763  monitors_vector_table = (m68k_isr_entry *)0;   /* Monitor Vectors are at 0 */
  • c/src/lib/libbsp/m68k/efi332/startup/bspstart.c

    rcc655a5 rf50952c  
    3333char *rtems_progname;
    3434
     35/* Amount of RAM on this board */
     36unsigned long _M68k_Ramsize;
     37
    3538/*
    3639 *  Use the shared implementations of the following routines
     
    5154  void           *vbr;
    5255  extern void    *_WorkspaceBase;
     56  extern unsigned long _M68k_Ramsize;
     57
     58  _M68k_Ramsize = (unsigned long)&_RamSize;             /* RAM size set in linker script */
    5359
    5460  /*
  • c/src/lib/libbsp/m68k/efi68k/startup/bspstart.c

    rcc655a5 rf50952c  
    5656  void           *vbr;
    5757  extern void    *_WorkspaceBase;
     58  extern unsigned long _M68k_Ramsize;
     59
     60  _M68k_Ramsize = (unsigned long)&_RamSize;             /* RAM size set in linker script */
    5861
    5962/*   set_debug_traps();    */
  • c/src/lib/libbsp/m68k/gen68302/startup/bspstart.c

    rcc655a5 rf50952c  
    5151{
    5252  extern void    *_WorkspaceBase;
     53  extern unsigned long _M68k_Ramsize;
     54
     55  _M68k_Ramsize = (unsigned long)&_RamSize;             /* RAM size set in linker script */
    5356
    5457  /*
  • c/src/lib/libbsp/m68k/gen68340/startup/bspstart.c

    rcc655a5 rf50952c  
    5656{
    5757  extern void *_WorkspaceBase;
     58  extern unsigned long _M68k_Ramsize;
     59
     60  _M68k_Ramsize = (unsigned long)&_RamSize;             /* RAM size set in linker script */
    5861
    5962  /*
  • c/src/lib/libbsp/m68k/gen68360/start/start.S

    rcc655a5 rf50952c  
    393393        bcs.s   ZEROLOOP                | No, skip
    394394
    395         movel   4(a7),_RamSize          | Set RAM size
     395        movel   4(a7),_M68k_Ramsize     | Set RAM size
    396396
    397397        movel   #_stack_init,a7         | set master stack pointer
  • c/src/lib/libbsp/m68k/gen68360/startup/bspstart.c

    rcc655a5 rf50952c  
    2929extern rtems_configuration_table Configuration;
    3030rtems_configuration_table  BSP_Configuration;
    31 unsigned long _RamSize;
    32 
    3331rtems_cpu_table Cpu_table;
    3432
    3533char *rtems_progname;
     34
     35/* Amount of RAM on this board. Dynamically set in start.S */
     36unsigned long _M68k_Ramsize;
    3637
    3738/*
  • c/src/lib/libbsp/m68k/idp/startup/bspstart.c

    rcc655a5 rf50952c  
    4141char *rtems_progname;
    4242
     43/* Amount of RAM on this board */
     44unsigned long _M68k_Ramsize;
     45
    4346/*
    4447 *  Use the shared implementations of the following routines
     
    6063  int             index;
    6164  extern void    *_WorkspaceBase;
     65  extern unsigned long _M68k_Ramsize;
     66
     67  _M68k_Ramsize = (unsigned long)&_RamSize;             /* RAM size set in linker script */
    6268
    6369  duart_base = (unsigned char *)DUART_ADDR;
  • c/src/lib/libbsp/m68k/mvme136/startup/bspstart.c

    rcc655a5 rf50952c  
    3535char *rtems_progname;
    3636
     37/* Amount of RAM on this board */
     38unsigned long _M68k_Ramsize;
     39
    3740/*
    3841 *  Use the shared implementations of the following routines
     
    5457  int             index;
    5558  extern void    *_WorkspaceBase;
     59  extern unsigned long _M68k_Ramsize;
     60
     61  _M68k_Ramsize = (unsigned long)&_RamSize;             /* RAM size set in linker script */
    5662
    5763  monitors_vector_table = (m68k_isr_entry *)0;   /* 135Bug Vectors are at 0 */
  • c/src/lib/libbsp/m68k/mvme147/startup/bspstart.c

    rcc655a5 rf50952c  
    3838char *rtems_progname;
    3939
     40/* Amount of RAM on this board */
     41unsigned long _M68k_Ramsize;
     42
    4043/*
    4144 *  Use the shared implementations of the following routines
     
    5760  int             index;
    5861  extern void    *_WorkspaceBase;
     62  extern unsigned long _M68k_Ramsize;
     63
     64  _M68k_Ramsize = (unsigned long)&_RamSize;             /* RAM size set in linker script */
    5965
    6066  monitors_vector_table = (m68k_isr_entry *)0;   /* 135Bug Vectors are at 0 */
  • c/src/lib/libbsp/m68k/mvme147s/startup/bspstart.c

    rcc655a5 rf50952c  
    3838char *rtems_progname;
    3939
     40/* Amount of RAM on this board */
     41unsigned long _M68k_Ramsize;
     42
    4043/*
    4144 *  Use the shared implementations of the following routines
     
    5861  rtems_unsigned8 node_number;
    5962  extern void    *_WorkspaceBase;
     63  extern unsigned long _M68k_Ramsize;
     64
     65  _M68k_Ramsize = (unsigned long)&_RamSize;             /* RAM size set in linker script */
    6066
    6167  monitors_vector_table = (m68k_isr_entry *)0;   /* 147Bug Vectors are at 0 */
  • c/src/lib/libbsp/m68k/mvme162/startup/bspstart.c

    rcc655a5 rf50952c  
    4242char *rtems_progname;
    4343
     44/* Amount of RAM on this board */
     45unsigned long _M68k_Ramsize;
     46
    4447/*
    4548 *  Use the shared implementations of the following routines
     
    6063  m68k_isr_entry *monitors_vector_table;
    6164  int             index;
    62   extern void    *_WorkspaceBase;
     65  extern void     *_WorkspaceBase;
     66  extern void     *_RamSize;
     67  extern unsigned long _M68k_Ramsize;
     68
     69  _M68k_Ramsize = (unsigned long)&_RamSize;             /* RAM size set in linker script */
    6370
    6471  /*
  • c/src/lib/libbsp/m68k/mvme167/startup/bspstart.c

    rcc655a5 rf50952c  
    4242rtems_cpu_table Cpu_table;
    4343
     44/* Amount of RAM on this board */
     45unsigned long _M68k_Ramsize;
     46
    4447/*
    4548 *  Use the shared implementations of the following routines.
     
    8083void bsp_start( void )
    8184{
     85  void M68KFPSPInstallExceptionHandlers (void);
     86 
    8287  extern void *_WorkspaceBase;
    8388  extern m68k_isr_entry M68Kvec[];
    84  
    85   void M68KFPSPInstallExceptionHandlers (void);
    86  
     89  extern void *_RamSize;
     90  extern unsigned long _M68k_Ramsize;
     91
    8792  m68k_isr_entry *rom_monitor_vector_table;
    8893  int index;
    8994
     95  _M68k_Ramsize = (unsigned long)&_RamSize;             /* RAM size set in linker script */
     96 
    9097  /*
    9198   *  167Bug Vectors are at 0xFFE00000
  • c/src/lib/libbsp/m68k/ods68302/startup/bspstart.c

    rcc655a5 rf50952c  
    3535char *rtems_progname;
    3636
     37/* Amount of RAM on this board */
     38unsigned long _M68k_Ramsize;
     39
    3740/*
    3841 *  Use the shared implementations of the following routines
     
    5255{
    5356  extern void *_WorkspaceBase;
     57  extern void *_RamSize;
     58  extern unsigned long _M68k_Ramsize;
    5459
     60  _M68k_Ramsize = (unsigned long)&_RamSize;             /* RAM size set in linker script */
     61 
    5562#if 0
    5663  Cpu_table.interrupt_vector_table = (mc68000_isr *) 0/*&M68Kvec*/;
  • c/src/lib/libbsp/m68k/shared/m68kpretaskinghook.c

    rcc655a5 rf50952c  
    3535extern rtems_configuration_table  BSP_Configuration;
    3636
    37 extern unsigned long  _RamSize;
     37extern unsigned long  _M68k_Ramsize;
    3838extern void          *_RamBase;
    3939extern void          *_WorkspaceBase;
     
    4848    heapStart =  (void *)
    4949       ((unsigned long)&_WorkspaceBase + BSP_Configuration.work_space_size);
    50     ramSpace = (unsigned long) &_RamBase + (unsigned long) &_RamSize - (unsigned long) heapStart;
     50    ramSpace = (unsigned long) &_RamBase + _M68k_Ramsize - (unsigned long) heapStart;
    5151
    5252    if (heapSize == 0)
Note: See TracChangeset for help on using the changeset viewer.