Changeset ad85c00 in rtems


Ignore:
Timestamp:
Feb 14, 2020, 12:48:18 PM (6 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
567455b6
Parents:
ba7b2df7
git-author:
Sebastian Huber <sebastian.huber@…> (02/14/20 12:48:18)
git-committer:
Sebastian Huber <sebastian.huber@…> (02/25/20 06:15:19)
Message:

config: Add _Workspace_Is_unified

Move the unified workspace configuration constant out of the
configuration table.

Provide a default definition of the unified workspace constant.

Update #3875.

Location:
cpukit
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • cpukit/Makefile.am

    rba7b2df7 rad85c00  
    10151015librtemscpu_a_SOURCES += score/src/isr.c
    10161016librtemscpu_a_SOURCES += score/src/wkspace.c
     1017librtemscpu_a_SOURCES += score/src/wkspaceisunifieddefault.c
    10171018librtemscpu_a_SOURCES += score/src/wkstringduplicate.c
    10181019librtemscpu_a_SOURCES += score/src/ioprintf.c
  • cpukit/include/rtems/confdefs.h

    rba7b2df7 rad85c00  
    26382638   */
    26392639  const rtems_configuration_table Configuration = {
    2640     #ifdef CONFIGURE_UNIFIED_WORK_AREAS       /* true for unified work areas */
    2641       true,
    2642     #else
    2643       false,
    2644     #endif
    26452640    #ifdef RTEMS_SMP
    26462641      #ifdef _CONFIGURE_SMP_APPLICATION
     
    26562651
    26572652  const uintptr_t _Workspace_Size = CONFIGURE_EXECUTIVE_RAM_SIZE;
     2653
     2654  #ifdef CONFIGURE_UNIFIED_WORK_AREAS
     2655    const bool _Workspace_Is_unified = true;
     2656  #endif
    26582657
    26592658  #ifdef CONFIGURE_DIRTY_MEMORY
  • cpukit/include/rtems/config.h

    rba7b2df7 rad85c00  
    8484 */
    8585typedef struct {
    86   /**
    87    * @brief Specifies if a unified work area is used or not.
    88    *
    89    * If this element is @a true, then the RTEMS Workspace and the C Program
    90    * Heap use the same heap, otherwise they use separate heaps.
    91    */
    92   bool                           unified_work_area;
    93 
    9486  #ifdef RTEMS_SMP
    9587    bool                         smp_enabled;
     
    112104
    113105#define rtems_configuration_get_unified_work_area() \
    114         (Configuration.unified_work_area)
     106        (_Workspace_Is_unified)
    115107
    116108/**
  • cpukit/include/rtems/score/wkspacedata.h

    rba7b2df7 rad85c00  
    5858extern const uintptr_t _Workspace_Size;
    5959
     60/**
     61 * @brief Indicates if the workspace and C program heap are unified.
     62 *
     63 * This constant is defined by the application configuration via
     64 * <rtems/confdefs.h>.
     65 */
     66extern const bool _Workspace_Is_unified;
     67
    6068/** @} */
    6169
Note: See TracChangeset for help on using the changeset viewer.