forked from Imagelibrary/rtems
2007-09-13 Joel Sherrill <joel.sherrill@OARcorp.com>
* configure.ac, startup/bspstart.c: Add BSP_DIRTY_MEMORY option.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
2007-09-13 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* configure.ac, startup/bspstart.c: Add BSP_DIRTY_MEMORY option.
|
||||
|
||||
2007-09-12 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
PR 1257/bsps
|
||||
|
||||
@@ -29,6 +29,12 @@ RTEMS_BSPOPTS_HELP([PPC_VECTOR_FILE_BASE],
|
||||
[This defines the base address of the exception table.
|
||||
NOTE: Vectors are actually at 0xFFF00000 but file starts at offset.])
|
||||
|
||||
RTEMS_BSPOPTS_SET([BSP_DIRTY_MEMORY],[*],[0])
|
||||
RTEMS_BSPOPTS_HELP([BSP_DIRTY_MEMORY],
|
||||
[If defined, then PSIM will put a non-zero pattern into the RTEMS
|
||||
Workspace and C program heap. This should assist in finding
|
||||
code that assumes memory starts set to zero.])
|
||||
|
||||
# Explicitly list all Makefiles here
|
||||
AC_CONFIG_FILES([Makefile])
|
||||
|
||||
|
||||
@@ -186,6 +186,11 @@ void bsp_start( void )
|
||||
}
|
||||
|
||||
BSP_Configuration.work_space_start = work_space_start;
|
||||
#if defined(BSP_DIRTY_MEMORY)
|
||||
{
|
||||
memset(&end, 0xCF, (unsigned char *)&RAM_END - (unsigned char *)&end );
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Initialize the interrupt related settings
|
||||
|
||||
Reference in New Issue
Block a user