Changeset 2d07ce6 in rtems


Ignore:
Timestamp:
Feb 4, 2020, 2:26:31 PM (5 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
90f11edd
Parents:
8ecbc38
git-author:
Sebastian Huber <sebastian.huber@…> (02/04/20 14:26:31)
git-committer:
Sebastian Huber <sebastian.huber@…> (02/06/20 14:19:36)
Message:

config: Add CONFIGURE_DIRTY_MEMORY

Replace the BSP_DIRTY_MEMORY BSP option with a CONFIGURE_DIRTY_MEMORY
configuration option.

Update #3843.

Files:
1 added
6 edited

Legend:

Unmodified
Added
Removed
  • bsps/shared/start/bootcard.c

    r8ecbc38 r2d07ce6  
    2424 */
    2525const char *bsp_boot_cmdline;
    26 
    27 #if BSP_DIRTY_MEMORY == 1
    28 static void bsp_dirty_memory(void)
    29 {
    30   _Memory_Fill( _Memory_Get(), 0xcf );
    31 }
    32 
    33 RTEMS_SYSINIT_ITEM(
    34   bsp_dirty_memory,
    35   RTEMS_SYSINIT_DIRTY_MEMORY,
    36   RTEMS_SYSINIT_ORDER_MIDDLE
    37 );
    38 #endif
    3926
    4027RTEMS_SYSINIT_ITEM(
  • c/src/aclocal/bsp-bootcard-options.m4

    r8ecbc38 r2d07ce6  
    22dnl BSP_BOOTCARD_OPTIONS - some autoconf voodoo to provide each BSPs'
    33dnl configure script with the standard options supported by boot_card()
    4 dnl and other required parts of the BSP Framework.  Currently, this is
    5 dnl
    6 dnl   - Can optionally dirty memory at boot time.
     4dnl and other required parts of the BSP Framework.
    75dnl
    86
    97dnl To be used in bsp-configure scripts
    108
    11 AC_DEFUN([RTEMS_BSP_BOOTCARD_OPTIONS],[
    12 RTEMS_BSPOPTS_SET([BSP_DIRTY_MEMORY],[*],[0])
    13 RTEMS_BSPOPTS_HELP([BSP_DIRTY_MEMORY],
    14 [If defined, then the BSP Framework will put a non-zero pattern into
    15  the RTEMS Workspace and C program heap.  This should assist in finding
    16  code that assumes memory starts set to zero.])
    17 ])
     9AC_DEFUN([RTEMS_BSP_BOOTCARD_OPTIONS],[])
  • cpukit/Makefile.am

    r8ecbc38 r2d07ce6  
    854854librtemscpu_a_SOURCES += score/src/heapnoextend.c
    855855librtemscpu_a_SOURCES += score/src/memoryallocate.c
     856librtemscpu_a_SOURCES += score/src/memorydirtyfreeareas.c
    856857librtemscpu_a_SOURCES += score/src/memoryfill.c
    857858librtemscpu_a_SOURCES += score/src/memoryzerobeforeuse.c
  • cpukit/include/rtems/confdefs.h

    r8ecbc38 r2d07ce6  
    28032803  };
    28042804
     2805  #ifdef CONFIGURE_DIRTY_MEMORY
     2806    RTEMS_SYSINIT_ITEM(
     2807      _Memory_Dirty_free_areas,
     2808      RTEMS_SYSINIT_DIRTY_MEMORY,
     2809      RTEMS_SYSINIT_ORDER_MIDDLE
     2810    );
     2811  #endif
     2812
    28052813  #ifdef CONFIGURE_ZERO_WORKSPACE_AUTOMATICALLY
    28062814    const bool _Memory_Zero_before_use = true;
  • cpukit/include/rtems/score/memory.h

    r8ecbc38 r2d07ce6  
    345345void _Memory_Zero_free_areas( void );
    346346
     347/**
     348 * @brief Dirty all free memory areas of the system.
     349 */
     350void _Memory_Dirty_free_areas( void );
     351
    347352/** @} */
    348353
  • testsuites/sptests/sp54/init.c

    r8ecbc38 r2d07ce6  
    8484#define CONFIGURE_INIT_TASK_STACK_SIZE 0
    8585
     86#define CONFIGURE_DIRTY_MEMORY
     87
    8688/*
    8789 *  Ensure we test the case where memory is zero.
Note: See TracChangeset for help on using the changeset viewer.