Changeset 3631dad8 in rtems for c


Ignore:
Timestamp:
07/31/00 19:23:21 (23 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
68132f2
Parents:
caf88699
Message:

Closer to linking. h8300-rtems-ld now core dumps.

Location:
c/src/lib/libbsp/h8300/h8sim
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/h8300/h8sim/console/console-io.c

    rcaf88699 r3631dad8  
    4949}
    5050
     51#include <bspIo.h>
     52
     53void H8simBSP_output_char(char c) { console_outbyte_polled( 0, c ); }
     54
     55BSP_output_char_function_type           BSP_output_char = H8simBSP_output_char;
     56BSP_polling_getchar_function_type       BSP_poll_char = NULL;
     57
     58
  • c/src/lib/libbsp/h8300/h8sim/startup/bspstart.c

    rcaf88699 r3631dad8  
    8888  Cpu_table.interrupt_stack_size = 4096;
    8989
     90/*
    9091  if ( BSP_Configuration.work_space_size >(512*1024) )
    9192   _sys_exit( 1 );
     93*/
    9294
    9395  BSP_Configuration.work_space_start = (void *) &WorkspaceBase;
    9496}
     97
     98H8BD_Install_IRQ() {}
  • c/src/lib/libbsp/h8300/h8sim/startup/linkcmds

    rcaf88699 r3631dad8  
    33 */
    44
     5OUTPUT_ARCH(h8300h)
    56/*
    67 * Declare some sizes.
     
    89_RamBase = DEFINED(_RamBase) ? _RamBase : 0x0;
    910_RamSize = DEFINED(_RamSize) ? _RamSize : 1M;
    10 _HeapSize = DEFINED(_HeapSize) ? _HeapSize : 0x10000;
     11_HeapSize = DEFINED(_HeapSize) ? _HeapSize : 0x4000;
    1112_StackSize = DEFINED(_StackSize) ? _StackSize : 0x1000;
    1213
     
    4041    .text :
    4142    {
    42          CREATE_OBJECT_SYMBOLS
    4343        *(.text)
     44       
     45        /*
     46         * Read-only data
     47         */
     48        . = ALIGN (16);
     49        PROVIDE(_rodata_start = . );
     50        *(.rodata)
     51        *(.gnu.linkonce.r*)
     52        PROVIDE(_erodata = . );
     53
    4454         _etext = .;
    45        
    46 /*
    47         ___CTOR_LIST__ = .;
    48         LONG((___CTOR_END__ - ___CTOR_LIST__) / 4 - 2)
    49         *(.ctors)
    50         LONG(0)
    51         ___CTOR_END__ = .;
    52         ___DTOR_LIST__ = .;
    53         LONG((___DTOR_END__ - ___DTOR_LIST__) / 4 - 2)
    54         *(.dtors)
    55         LONG(0)
    56         ___DTOR_END__ = .;
    57 */
     55    }  >ram
     56   .tors : {
     57        ___ctors = . ;
     58        *(.ctors)
     59        ___ctors_end = . ;
     60        ___dtors = . ;
     61        *(.dtors)
     62        ___dtors_end = . ;
    5863    }  >ram
    5964    .data SIZEOF(.text) + ADDR(.text):
     
    7378        _clear_end = .;
    7479        _WorkspaceBase = .;
    75         . += 512K;      /* reserve some memory for workspace */
     80        . += 64K;       /* reserve some memory for workspace */
    7681        _HeapBase = .;
    7782        . += _HeapSize; /* reserve some memory for heap */
Note: See TracChangeset for help on using the changeset viewer.