Changeset 11a6c97 in rtems


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

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

  • Makefile.am, configure.ac, include/bsp.h, startup/linkcmds: 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
Files:
3 deleted
15 edited

Legend:

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

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

    rc51efdcd r11a6c97  
    3636
    3737startup_SOURCES = ../../shared/bsplibc.c ../../shared/bsppost.c \
    38     ../../shared/bsppredriverhook.c startup/bspstart.c startup/bspclean.c \
    39     ../../shared/sbrk.c ../../shared/bootcard.c \
     38    ../../shared/bsppredriverhook.c ../shared/bspstart.c startup/bspclean.c \
     39    ../shared/bspgetworkarea.c ../../shared/bsppretaskinghook.c \
     40    ../../shared/sbrk.c ../../shared/bootcard.c ../shared/bsphwinit.c \
    4041    ../../shared/gnatinstallhandler.c
    4142scitab_SOURCES = scitab.c
  • c/src/lib/libbsp/sh/gensh1/configure.ac

    rc51efdcd r11a6c97  
    2020RTEMS_BSPOPTS_HELP([CPU_CLOCK_RATE_HZ],[cpu clock rate in HZ])
    2121
     22RTEMS_BSPOPTS_SET([START_HW_INIT],[*],[])
     23RTEMS_BSPOPTS_HELP([START_HW_INIT],
     24[If defined, selects whether 'early_hw_init()' is called from 'start.S';
     25 'bsp_hw_init()' is always called from 'bspstart.c'])
     26
    2227## Used in scitab/Makefile.am
    2328AC_SUBST(CPU_CLOCK_RATE_HZ)
     29
     30RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION
    2431
    2532# Explicitly list all Makefiles here
  • c/src/lib/libbsp/sh/gensh1/include/bsp.h

    rc51efdcd r11a6c97  
    6161 */
    6262
    63 extern uint32_t         HeapStart ;
    64 extern uint32_t         HeapEnd ;
    65 extern uint32_t         WorkSpaceStart ;
    66 extern uint32_t         WorkSpaceEnd ;
    67 
    6863extern void *CPU_Interrupt_stack_low ;
    6964extern void *CPU_Interrupt_stack_high ;
  • c/src/lib/libbsp/sh/gensh1/startup/linkcmds

    rc51efdcd r11a6c97  
    3131OUTPUT_ARCH(sh)
    3232ENTRY(_start)
     33
     34_RamBase = DEFINED(_RamBase) ? _RamBase : 0x0a040000;
     35_RamSize = DEFINED(_RamSize) ? _RamSize : 512K;
    3336
    3437MEMORY
     
    105108  .text   .      :
    106109  {
     110    _start = .;
    107111    *(.text*)
    108112    *(.stub)
     
    176180  PROVIDE (end = .);
    177181
    178   _HeapStart = . ;
    179   . = . + 1024 * 20 ;
    180   PROVIDE( _HeapEnd = . );
    181 
    182182  _WorkSpaceStart = . ;
    183   . = 0x0a080000 ;
    184   PROVIDE(_WorkSpaceEnd = .);
    185183
    186184  _CPU_Interrupt_stack_low  = 0x0f000000 ;
  • c/src/lib/libbsp/sh/gensh2/ChangeLog

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

    rc51efdcd r11a6c97  
    3737startup_SOURCES = startup/hw_init.c ../../shared/bsplibc.c \
    3838    ../../shared/bsppost.c ../../shared/bsppredriverhook.c \
    39     startup/bspstart.c ../../shared/sbrk.c ../../shared/bootcard.c \
    40     ../../shared/gnatinstallhandler.c ../../shared/bspclean.c
     39    ../shared/bspstart.c ../../shared/bsppretaskinghook.c \
     40    ../shared/bspgetworkarea.c ../../shared/sbrk.c ../../shared/bootcard.c \
     41    ../../shared/gnatinstallhandler.c ../../shared/bspclean.c \
     42    ../shared/bsphwinit.c
    4143scitab_SOURCES = scitab.c
    4244console_SOURCES = ../../sh/shared/console.c console/config.c
  • c/src/lib/libbsp/sh/gensh2/configure.ac

    rc51efdcd r11a6c97  
    3232[If defined, compiles code to jump-start from FLASH, without a monitor])
    3333
     34RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION
     35
    3436# Explicitly list all Makefiles here
    3537AC_CONFIG_FILES([Makefile])
  • c/src/lib/libbsp/sh/gensh2/include/bsp.h

    rc51efdcd r11a6c97  
    7777 */
    7878
    79 extern uint32_t         HeapStart ;
    80 extern uint32_t         HeapEnd ;
    81 extern uint32_t         WorkSpaceStart ;
    82 extern uint32_t         WorkSpaceEnd ;
    83 
    8479extern void *CPU_Interrupt_stack_low ;
    8580extern void *CPU_Interrupt_stack_high ;
     
    8883 *  Device Driver Table Entries
    8984 */
    90 
    91 /*
    92  * We redefine CONSOLE_DRIVER_TABLE_ENTRY to redirect /dev/console
    93  *
    94  * FIXME: Since console driver works properly this is not
    95  * necessary. When enabled - causes error in console_initialize.
    96  */
    97 #if 0
    98 #undef CONSOLE_DRIVER_TABLE_ENTRY
    99 #define CONSOLE_DRIVER_TABLE_ENTRY \
    100   BSP_CONSOLE_DRIVER_TABLE_ENTRY, \
    101   { console_initialize, console_open, console_close, \
    102       console_read, console_write, console_control }
    103 #endif
    10485
    10586/*
  • c/src/lib/libbsp/sh/gensh2/startup/linkcmds

    rc51efdcd r11a6c97  
    4444
    4545/* These assignments load code into SH7045F EVB SRAM for monitor debugging */
     46
     47_RamBase = DEFINED(_RamBase) ? _RamBase : 0x00440000;
     48_RamSize = DEFINED(_RamSize) ? _RamSize : 512K;
    4649
    4750MEMORY
     
    118121  .text   .      :
    119122  {
     123    _start = .;
    120124    *(.text*)
    121125    *(.stub)
     
    187191  PROVIDE (end = .);
    188192
    189   _HeapStart = . ;
    190   . = . + 1024 * 20 ;
    191   PROVIDE( _HeapEnd = . );
    192 
    193193  _WorkSpaceStart = . ;
    194   . = 0x00480000 ;
    195   PROVIDE(_WorkSpaceEnd = .);
    196194
    197195  _CPU_Interrupt_stack_low  = 0xFFFFF000;
  • c/src/lib/libbsp/sh/gensh4/ChangeLog

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

    rc51efdcd r11a6c97  
    3030
    3131startup_SOURCES = ../../shared/bsplibc.c ../../shared/bsppost.c \
    32     ../../shared/bsppredriverhook.c startup/bspstart.c \
     32    ../../shared/bsppredriverhook.c ../shared/bspstart.c \
     33    ../../shared/bsppretaskinghook.c ../shared/bspgetworkarea.c \
    3334    ../../shared/bspclean.c ../../shared/sbrk.c ../../shared/bootcard.c \
    34     ../../shared/gnatinstallhandler.c
     35    ../../shared/gnatinstallhandler.c ../shared/bsphwinit.c
    3536console_SOURCES = console/console.c ../../shared/dummy_printk_support.c
    3637hw_init_SOURCES = hw_init/hw_init.c
  • c/src/lib/libbsp/sh/gensh4/configure.ac

    rc51efdcd r11a6c97  
    3333  [Whether to call early_hw_init from start.S])
    3434
     35RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION
     36
    3537# Explicitly list all Makefiles here
    3638AC_CONFIG_FILES([Makefile])
  • c/src/lib/libbsp/sh/gensh4/include/bsp.h

    rc51efdcd r11a6c97  
    6666 */
    6767
    68 extern uint32_t         HeapStart ;
    69 extern uint32_t         HeapEnd ;
    70 extern uint32_t         WorkSpaceStart ;
    71 extern uint32_t         WorkSpaceEnd ;
    72 
    7368extern void *CPU_Interrupt_stack_low ;
    7469extern void *CPU_Interrupt_stack_high ;
  • c/src/lib/libbsp/sh/gensh4/startup/linkcmds

    rc51efdcd r11a6c97  
    2323   __DYNAMIC = 0;    */
    2424
    25 _HeapSize = DEFINED(_HeapSize) ? _HeapSize : (2 * 1024 * 1024);
    26 _WorkspaceSize = DEFINED(_WorkspaceSize) ? _WorkspaceSize : (1024 * 1024);
     25_RamBase = DEFINED(_RamBase) ? _RamBase : 0x80000000;
     26_RamSize = DEFINED(_RamSize) ? _RamSize : 4M;
     27
    2728
    2829/*
     
    4849  .text      :
    4950  {
     51    _start = .;
    5052    *(.text*)
    5153
     
    161163  } > ram
    162164
    163   . = ALIGN(16);
    164   _HeapStart = . ;
    165   . = . + _HeapSize ;
    166   PROVIDE( _HeapEnd = . );
    167 
    168   . = ALIGN(16);
    169   _WorkSpaceStart = . ;
    170   . = . + _WorkspaceSize ;
    171   PROVIDE(_WorkSpaceEnd = .);
    172 
    173   . = ALIGN(16);
    174165  .stack . : {
    175166    . = . + 4096;
    176167  }
     168  . = ALIGN(16);
     169
     170  . = ALIGN(16);
     171  _WorkSpaceStart = . ;
    177172
    178173  . = ALIGN(16);
Note: See TracChangeset for help on using the changeset viewer.