Changeset 628d804 in rtems


Ignore:
Timestamp:
Sep 15, 2008, 7:18:36 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
5e8726d0
Parents:
512d0fc
Message:

2008-09-15 Joel Sherrill <joel.sherrill@…>

  • Makefile.am, configure.ac, include/bsp.h, startup/hw_init.c, startup/linkcmds, startup/linkcmds-le, startup/linkcmds-le.coff: Use shared bsp_get_work_area() in its own file and rely on BSP Framework to perform more initialization. After factoring this out, it turned out that all SuperH BSPs has the same bsp_start() implementation so this was made shared.
  • startup/bspstart.c: Removed.
Location:
c/src/lib/libbsp/sh/simsh4
Files:
1 deleted
8 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sh/simsh4/ChangeLog

    r512d0fc r628d804  
     12008-09-15      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * Makefile.am, configure.ac, include/bsp.h, startup/hw_init.c,
     4        startup/linkcmds, startup/linkcmds-le, startup/linkcmds-le.coff: Use
     5        shared bsp_get_work_area() in its own file and rely on BSP Framework
     6        to perform more initialization. After factoring this out, it turned
     7        out that all SuperH BSPs has the same bsp_start() implementation so
     8        this was made shared.
     9        * startup/bspstart.c: Removed.
     10
    1112008-09-10      Joel Sherrill <joel.sherrill@oarcorp.com>
    212
  • c/src/lib/libbsp/sh/simsh4/Makefile.am

    r512d0fc r628d804  
    3636startup_SOURCES = startup/hw_init.c ../../shared/bsplibc.c \
    3737    ../../shared/bsppost.c ../../shared/bsppredriverhook.c \
    38     startup/bspstart.c ../../shared/bspclean.c ../../shared/sbrk.c \
    39     ../../shared/bootcard.c ../../shared/gnatinstallhandler.c
     38    ../../shared/bsppretaskinghook.c ../shared/bspgetworkarea.c \
     39    ../shared/bspstart.c ../../shared/bspclean.c ../../shared/sbrk.c \
     40    ../../shared/bootcard.c ../../shared/gnatinstallhandler.c \
     41    ../shared/bsphwinit.c
    4042clock_SOURCES = clock/ckinit.c
    4143console_SOURCES = console/console.c ../../shared/dummy_printk_support.c
  • c/src/lib/libbsp/sh/simsh4/configure.ac

    r512d0fc r628d804  
    3535  [Whether to call early_hw_init from start.S])
    3636
     37RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION
     38
    3739# Explicitly list all Makefiles here
    3840AC_CONFIG_FILES([Makefile])
  • c/src/lib/libbsp/sh/simsh4/include/bsp.h

    r512d0fc r628d804  
    7777 * Defined in the linker script 'linkcmds'
    7878 */
    79 
    80 extern uint32_t         HeapStart ;
    81 extern uint32_t         HeapEnd ;
    82 extern uint32_t         WorkSpaceStart ;
    83 extern uint32_t         WorkSpaceEnd ;
    84 
    8579extern void *CPU_Interrupt_stack_low ;
    8680extern void *CPU_Interrupt_stack_high ;
  • c/src/lib/libbsp/sh/simsh4/startup/hw_init.c

    r512d0fc r628d804  
    4242early_hw_init (void)
    4343{
    44 };
     44}
    4545
    4646/* bsp_hw_init --
  • c/src/lib/libbsp/sh/simsh4/startup/linkcmds

    r512d0fc r628d804  
    2626ENTRY(_start)
    2727
    28 _HeapSize = DEFINED(_HeapSize) ? _HeapSize : (512 * 1024);
    29 _WorkspaceSize = DEFINED(_WorkspaceSize) ? _WorkspaceSize : (1024 * 1024);
    30 
    3128/* These assignments load code into SH7045F EVB SRAM for monitor debugging */
     29
     30_RamBase = DEFINED(_RamBase) ? _RamBase : 0x00000000;
     31_RamSize = DEFINED(_RamSize) ? _RamSize : 0x01000000;
    3232
    3333MEMORY
     
    8585  .text   .      :
    8686  {
     87    _start = .;
    8788    *(.text*)
    8889    *(.stub)
     
    155156
    156157  . = ALIGN(16);
    157   _HeapStart = . ;
    158   . = . + _HeapSize ;
    159   PROVIDE( _HeapEnd = . );
    160 
    161   . = ALIGN(16);
    162   _WorkSpaceStart = . ;
    163   . = . + _WorkspaceSize ;
    164   PROVIDE(_WorkSpaceEnd = .);
    165 
    166   . = ALIGN(16);
    167158  .stack . : {
    168159     . = . + 4096;
    169160  }
     161
     162  . = ALIGN(16);
     163  _WorkSpaceStart = . ;
    170164
    171165  . = ALIGN(16);
  • c/src/lib/libbsp/sh/simsh4/startup/linkcmds-le

    r512d0fc r628d804  
    99   __DYNAMIC = 0;    */
    1010
    11 _HeapSize = DEFINED(_HeapSize) ? _HeapSize : (512 * 1024);
    12 _WorkspaceSize = DEFINED(_WorkspaceSize) ? _WorkspaceSize : (1024 * 1024);
     11_RamBase = DEFINED(_RamBase) ? _RamBase : 0x00000000;
     12_RamSize = DEFINED(_RamSize) ? _RamSize : 0x01000000;
    1313
    1414MEMORY
     
    8787  {
    8888    . = . + 16;
     89    _start = .;
    8990    *(.text*)
    9091    *(.stub)
     
    195196
    196197  . = ALIGN(16);
    197   _HeapStart = . ;
    198   . = . + _HeapSize ;
    199   PROVIDE( _HeapEnd = . );
    200 
    201   . = ALIGN(16);
    202   _WorkSpaceStart = . ;
    203   . = . + _WorkspaceSize ;
    204   PROVIDE(_WorkSpaceEnd = .);
    205 
    206   . = ALIGN(16);
    207198  .stack . : {
    208199     . = . + 4096;
    209200  }
     201
     202  . = ALIGN(16);
     203  _WorkSpaceStart = . ;
    210204
    211205  . = ALIGN(16);
  • c/src/lib/libbsp/sh/simsh4/startup/linkcmds-le.coff

    r512d0fc r628d804  
    2525ENTRY(_start)
    2626
    27 _HeapSize = DEFINED(_HeapSize) ? _HeapSize : (512 * 1024);
    28 _WorkspaceSize = DEFINED(_WorkspaceSize) ? _WorkspaceSize : (1024 * 1024);
    29 
    3027/* These assignments load code into SH7045F EVB SRAM for monitor debugging */
     28
     29_RamBase = DEFINED(_RamBase) ? _RamBase : 0x00000000;
     30_RamSize = DEFINED(_RamSize) ? _RamSize : 0x01000000;
    3131
    3232MEMORY
     
    8484  .text   .      :
    8585  {
     86    _start = .;
    8687    *(.text*)
    8788    *(.stub)
     
    154155
    155156  . = ALIGN(16);
    156   _HeapStart = . ;
    157   . = . + _HeapSize ;
    158   PROVIDE( _HeapEnd = . );
    159 
    160   . = ALIGN(16);
    161   _WorkSpaceStart = . ;
    162   . = . + _WorkspaceSize ;
    163   PROVIDE(_WorkSpaceEnd = .);
    164 
    165   . = ALIGN(16);
    166157  .stack . : {
    167158     . = . + 4096;
    168159  }
     160  . = ALIGN(16);
     161  _WorkSpaceStart = . ;
    169162
    170163  . = ALIGN(16);
Note: See TracChangeset for help on using the changeset viewer.