Changeset c70d112 in rtems


Ignore:
Timestamp:
Feb 14, 2020, 12:26:17 PM (5 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
5180762c
Parents:
308a2e0f
git-author:
Sebastian Huber <sebastian.huber@…> (02/14/20 12:26:17)
git-committer:
Sebastian Huber <sebastian.huber@…> (02/25/20 06:15:19)
Message:

config: Add _Thread_Idle_stack_size

Move the idle thread stack size configuration constant out of the
configuration table.

Add THREAD_IDLE_STACK_SIZE_DEFAULT and use it to provide a default
definition of the idle thread stack size constant.

Update #3875.

Location:
cpukit
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • cpukit/headers.am

    r308a2e0f rc70d112  
    390390include_rtems_score_HEADERS += include/rtems/score/thread.h
    391391include_rtems_score_HEADERS += include/rtems/score/threaddispatch.h
     392include_rtems_score_HEADERS += include/rtems/score/threadidledata.h
    392393include_rtems_score_HEADERS += include/rtems/score/threadimpl.h
    393394include_rtems_score_HEADERS += include/rtems/score/threadmp.h
  • cpukit/include/rtems/confdefs.h

    r308a2e0f rc70d112  
    11401140#endif
    11411141
     1142#ifdef CONFIGURE_INIT
     1143  const size_t _Thread_Idle_stack_size = CONFIGURE_IDLE_TASK_STACK_SIZE;
     1144#endif
     1145
    11421146/*
    11431147 * Interrupt stack configuration.
     
    26342638    CONFIGURE_EXECUTIVE_RAM_SIZE,             /* required RTEMS workspace */
    26352639    CONFIGURE_IDLE_TASK_BODY,                 /* user's IDLE task */
    2636     CONFIGURE_IDLE_TASK_STACK_SIZE,           /* IDLE task stack size */
    26372640    #ifdef CONFIGURE_UNIFIED_WORK_AREAS       /* true for unified work areas */
    26382641      true,
  • cpukit/include/rtems/config.h

    r308a2e0f rc70d112  
    3333#include <rtems/score/stack.h>
    3434#include <rtems/score/userextdata.h>
     35#include <rtems/score/threadidledata.h>
    3536#include <rtems/score/watchdogticks.h>
    3637#include <rtems/rtems/config.h>
     
    9293   */
    9394  void                        *(*idle_task)( uintptr_t );
    94 
    95   /**
    96    * This field specifies the size of the IDLE task's stack.  If less than or
    97    * equal to the minimum stack size, then the IDLE task will have the minimum
    98    * stack size.
    99    */
    100   uint32_t                       idle_task_stack_size;
    10195
    10296  /**
     
    165159
    166160#define rtems_configuration_get_idle_task_stack_size() \
    167         (Configuration.idle_task_stack_size)
     161        (_Thread_Idle_stack_size)
    168162
    169163#define rtems_configuration_get_interrupt_stack_size() \
  • cpukit/score/src/threadcreateidle.c

    r308a2e0f rc70d112  
    1919#endif
    2020
     21#include <rtems/score/threadidledata.h>
    2122#include <rtems/score/threadimpl.h>
    2223#include <rtems/score/assert.h>
     
    5253  config.is_fp = CPU_IDLE_TASK_IS_FP;
    5354  config.is_preemptible = true;
    54   config.stack_size = rtems_configuration_get_idle_task_stack_size()
     55  config.stack_size = _Thread_Idle_stack_size
    5556    + CPU_IDLE_TASK_IS_FP * CONTEXT_FP_SIZE;
    5657  config.stack_area = &_Thread_Idle_stacks[
Note: See TracChangeset for help on using the changeset viewer.