2007-09-13 Joel Sherrill <joel.sherrill@OARcorp.com>

* configure.ac, startup/bspstart.c: Add BSP_DIRTY_MEMORY option.
This commit is contained in:
Joel Sherrill
2007-09-13 15:01:25 +00:00
parent ee732739bf
commit 21ca21996d
3 changed files with 15 additions and 0 deletions

View File

@@ -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

View File

@@ -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])

View File

@@ -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