psim now runs in both debug and non-debug mode.

This commit is contained in:
Joel Sherrill
1998-04-18 17:26:41 +00:00
parent 4955afcca5
commit 0903597f4f
4 changed files with 17 additions and 9 deletions
+5 -5
View File
@@ -8,15 +8,15 @@
%(old_cpp) %{qrtems: -D__embedded__} -Asystem(embedded)
*lib:
%{!qrtems: %(old_lib)} %{qrtems: ecrti%O%s --start-group \
%{!qrtems: %(old_lib)} %{qrtems: --start-group \
%{!qrtems_debug: -lrtemsall} %{qrtems_debug: -lrtemsall_g} \
-lc -lgcc --end-group \
-lc -lgcc --end-group ecrtn%O%s \
%{!qnolinkcmds: -T linkcmds%s}}
*startfile:
%{!qrtems: %(old_startfile)} %{qrtems: startsim.o%s \
%{!qrtems_debug: } \
%{qrtems_debug: }}
%{!qrtems: %(old_startfile)} %{qrtems: ecrti%O%s \
%{!qrtems_debug: startsim.o%s} \
%{qrtems_debug: startsim_g.o%s}}
*link:
%{!qrtems: %(old_link)} %{qrtems: -Qy -dp -Bstatic -T linkcmds%s -e _start -u __vectors}
@@ -182,3 +182,9 @@ rtems_device_driver console_control(
return rtems_termios_ioctl (arg);
}
void console_reserve_resources(
rtems_configuration_table *configuration
)
{
rtems_termios_reserve_resources( configuration, 1 );
}
@@ -214,6 +214,7 @@ void bsp_start( void )
BSP_Configuration.work_space_size *= 3;
#endif
BSP_Configuration.work_space_size += 32 * 1024;
#if 0
work_space_start =
@@ -230,13 +231,11 @@ void bsp_start( void )
BSP_Configuration.work_space_start = work_space_start;
#ifdef STACK_CHECKER_ON
/*
* Add 1 extension for stack checker
* Account for the console's resources
*/
BSP_Configuration.maximum_extensions++;
#endif
console_reserve_resources( &BSP_Configuration );
#if PSIM_FAST_IDLE
/*
@@ -104,6 +104,7 @@ SECTIONS
/* Put .ctors and .dtors next to the .got2 section, so that the pointers
get relocated with -mrelocatable. Also put in the .fixup pointers.
The current compiler no longer needs this, but keep it around for 2.7.2 */
PROVIDE (__GOT2_START__ = .);
PROVIDE (_GOT2_START_ = .);
.got2 : { *(.got2) }
PROVIDE (__GOT2_END__ = .);
@@ -113,11 +114,13 @@ SECTIONS
PROVIDE (__DTOR_LIST__ = .);
.dtors : { *(.dtors) }
PROVIDE (__DTOR_END__ = .);
PROVIDE (__FIXUP_START__ = .);
PROVIDE (_FIXUP_START_ = .);
.fixup : { *(.fixup) }
PROVIDE (_FIXUP_END_ = .);
PROVIDE (__FIXUP_END__ = .);
PROVIDE (_GOT2_END_ = .);
PROVIDE (__GOT_START__ = .);
PROVIDE (_GOT_START_ = .);
s.got = .;
.got : { *(.got) }