forked from Imagelibrary/rtems
Closer to linking. h8300-rtems-ld now core dumps.
This commit is contained in:
@@ -48,3 +48,11 @@ int console_inbyte_nonblocking(
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#include <bspIo.h>
|
||||||
|
|
||||||
|
void H8simBSP_output_char(char c) { console_outbyte_polled( 0, c ); }
|
||||||
|
|
||||||
|
BSP_output_char_function_type BSP_output_char = H8simBSP_output_char;
|
||||||
|
BSP_polling_getchar_function_type BSP_poll_char = NULL;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -87,8 +87,12 @@ void bsp_start( void )
|
|||||||
Cpu_table.postdriver_hook = bsp_postdriver_hook;
|
Cpu_table.postdriver_hook = bsp_postdriver_hook;
|
||||||
Cpu_table.interrupt_stack_size = 4096;
|
Cpu_table.interrupt_stack_size = 4096;
|
||||||
|
|
||||||
|
/*
|
||||||
if ( BSP_Configuration.work_space_size >(512*1024) )
|
if ( BSP_Configuration.work_space_size >(512*1024) )
|
||||||
_sys_exit( 1 );
|
_sys_exit( 1 );
|
||||||
|
*/
|
||||||
|
|
||||||
BSP_Configuration.work_space_start = (void *) &WorkspaceBase;
|
BSP_Configuration.work_space_start = (void *) &WorkspaceBase;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
H8BD_Install_IRQ() {}
|
||||||
|
|||||||
@@ -2,12 +2,13 @@
|
|||||||
* $Id$
|
* $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
OUTPUT_ARCH(h8300h)
|
||||||
/*
|
/*
|
||||||
* Declare some sizes.
|
* Declare some sizes.
|
||||||
*/
|
*/
|
||||||
_RamBase = DEFINED(_RamBase) ? _RamBase : 0x0;
|
_RamBase = DEFINED(_RamBase) ? _RamBase : 0x0;
|
||||||
_RamSize = DEFINED(_RamSize) ? _RamSize : 1M;
|
_RamSize = DEFINED(_RamSize) ? _RamSize : 1M;
|
||||||
_HeapSize = DEFINED(_HeapSize) ? _HeapSize : 0x10000;
|
_HeapSize = DEFINED(_HeapSize) ? _HeapSize : 0x4000;
|
||||||
_StackSize = DEFINED(_StackSize) ? _StackSize : 0x1000;
|
_StackSize = DEFINED(_StackSize) ? _StackSize : 0x1000;
|
||||||
|
|
||||||
ENTRY("_start")
|
ENTRY("_start")
|
||||||
@@ -39,22 +40,26 @@ SECTIONS
|
|||||||
|
|
||||||
.text :
|
.text :
|
||||||
{
|
{
|
||||||
CREATE_OBJECT_SYMBOLS
|
|
||||||
*(.text)
|
*(.text)
|
||||||
_etext = .;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
___CTOR_LIST__ = .;
|
* Read-only data
|
||||||
LONG((___CTOR_END__ - ___CTOR_LIST__) / 4 - 2)
|
*/
|
||||||
*(.ctors)
|
. = ALIGN (16);
|
||||||
LONG(0)
|
PROVIDE(_rodata_start = . );
|
||||||
___CTOR_END__ = .;
|
*(.rodata)
|
||||||
___DTOR_LIST__ = .;
|
*(.gnu.linkonce.r*)
|
||||||
LONG((___DTOR_END__ - ___DTOR_LIST__) / 4 - 2)
|
PROVIDE(_erodata = . );
|
||||||
*(.dtors)
|
|
||||||
LONG(0)
|
_etext = .;
|
||||||
___DTOR_END__ = .;
|
} >ram
|
||||||
*/
|
.tors : {
|
||||||
|
___ctors = . ;
|
||||||
|
*(.ctors)
|
||||||
|
___ctors_end = . ;
|
||||||
|
___dtors = . ;
|
||||||
|
*(.dtors)
|
||||||
|
___dtors_end = . ;
|
||||||
} >ram
|
} >ram
|
||||||
.data SIZEOF(.text) + ADDR(.text):
|
.data SIZEOF(.text) + ADDR(.text):
|
||||||
{
|
{
|
||||||
@@ -72,7 +77,7 @@ SECTIONS
|
|||||||
_stack_init = .;
|
_stack_init = .;
|
||||||
_clear_end = .;
|
_clear_end = .;
|
||||||
_WorkspaceBase = .;
|
_WorkspaceBase = .;
|
||||||
. += 512K; /* reserve some memory for workspace */
|
. += 64K; /* reserve some memory for workspace */
|
||||||
_HeapBase = .;
|
_HeapBase = .;
|
||||||
. += _HeapSize; /* reserve some memory for heap */
|
. += _HeapSize; /* reserve some memory for heap */
|
||||||
_end = .;
|
_end = .;
|
||||||
|
|||||||
Reference in New Issue
Block a user