diff options
Diffstat (limited to '')
-rw-r--r-- | bsps/shared/start/bootcard.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/bsps/shared/start/bootcard.c b/bsps/shared/start/bootcard.c index a6ad1953c0..2eef1ea710 100644 --- a/bsps/shared/start/bootcard.c +++ b/bsps/shared/start/bootcard.c @@ -24,11 +24,18 @@ */ const char *bsp_boot_cmdline; +#if BSP_DIRTY_MEMORY == 1 +static void bsp_dirty_memory(void) +{ + _Memory_Fill( _Memory_Get(), 0xcf ); +} + RTEMS_SYSINIT_ITEM( - bsp_work_area_initialize, - RTEMS_SYSINIT_BSP_WORK_AREAS, + bsp_dirty_memory, + RTEMS_SYSINIT_DIRTY_MEMORY, RTEMS_SYSINIT_ORDER_MIDDLE ); +#endif RTEMS_SYSINIT_ITEM( bsp_start, |