Changeset a1a25ae in rtems


Ignore:
Timestamp:
Dec 12, 2011, 7:31:48 PM (7 years ago)
Author:
Gedare Bloom <gedare@…>
Branches:
4.11, master
Children:
c444d1e
Parents:
8bc6b663
Message:

2011-12-12 Gedare Bloom <gedare@…>

PR bsps/1989

  • shared/start/start.S, shared/startup/linkcmds: Boot stack and heap space improvements.
Location:
c/src/lib/libbsp/sparc64
Files:
3 edited

Legend:

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

    r8bc6b663 ra1a25ae  
     12011-12-12      Gedare Bloom <gedare@rtems.org>
     2
     3        PR bsps/1989
     4        * shared/start/start.S, shared/startup/linkcmds: Boot stack and heap
     5        space improvements.
     6
    172011-12-12      Gedare Bloom <gedare@rtems.org>
    28
  • c/src/lib/libbsp/sparc64/shared/start/start.S

    r8bc6b663 ra1a25ae  
    5353.register %g6, #scratch
    5454.register %g7, #scratch
    55 
    56 #if 0
    57 #define _BSP_DEBUG
    58 #endif
    59 
    60 #if _BSP_DEBUG
    61 /*
    62  * This is for debug and script support to identify RTEMS app termination
    63  */
    64 .section        .data
    65         .align 8
    66 _end_token_string:
    67         .asciz "END_TOKEN\n"
    68 #endif
    6955
    7056.section BOOTSTRAP, "ax"
     
    149135        sub     %sp, 0x60, %sp          ! make room on stack (necessary?)
    150136
    151 #if _BSP_DEBUG
    152   /* execution returns here when RTEMS terminates */
    153         sethi %hi(_end_token_string), %g1
    154         add %g1, %lo(_end_token_string), %o0
    155         call SYM(printk)
    156         nop
    157 #endif
    158 
    159137  call SYM(halt)
    160138  nop
     
    163141            b SYM(halted)
    164142
     143.section BOOTSTRAP
     144  .align CPU_ALIGNMENT
     145  .space 32768 - CPU_MINIMUM_STACK_FRAME_SIZE ! 32K boot stack grows down
     146  .global StackStart
     147  StackStart:
     148    .space CPU_MINIMUM_STACK_FRAME_SIZE ! initial stack frame
     149
     150.section BOOTSTRAP
    165151  .align CPU_ALIGNMENT
    166152  param_space:
  • c/src/lib/libbsp/sparc64/shared/startup/linkcmds

    r8bc6b663 ra1a25ae  
    1515RamBase = DEFINED(RamBase) ? RamBase : 0x0;
    1616RamSize = DEFINED(RamSize) ? RamSize : 12M;
    17 HeapSize = DEFINED(HeapSize) ? HeapSize : 1M;
    18 StackSize = DEFINED(StackSize) ? StackSize : 1M;
     17HeapSize = DEFINED(HeapSize) ? HeapSize : 2M;
    1918
    2019RAM_END = RamBase + RamSize;
     
    2524
    2625MEMORY
    27         {
    28                 ram : ORIGIN = 0x0, LENGTH = 12M
    29         }
    30 
     26{
     27  ram : ORIGIN = 0x0, LENGTH = 12M
     28}
    3129
    3230SECTIONS
     
    152150    _endtext = . ;
    153151    _etext = . ;
    154   } > ram 
     152  } > ram
    155153 
    156154  .data   : AT (ADDR (.text) + SIZEOF (.text))
     
    197195    PROVIDE (HeapBase = .);
    198196    . += HeapSize;
    199     . += StackSize;
    200      PROVIDE (__stack = .);
    201      PROVIDE (StackStart = .);
    202197  } > ram
    203198}
Note: See TracChangeset for help on using the changeset viewer.