Changeset 64fbeaa in rtems


Ignore:
Timestamp:
10/06/22 06:47:14 (6 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
985aaac0
Parents:
45ee958
git-author:
Sebastian Huber <sebastian.huber@…> (10/06/22 06:47:14)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/14/22 08:48:23)
Message:

score: INTERNAL_ERROR_IDLE_THREAD_STACK_TOO_SMALL

Ensure that the IDLE storage allocator did allocate a suffiently large area.

Update #3835.
Update #4524.

Files:
4 added
5 edited

Legend:

Unmodified
Added
Removed
  • cpukit/include/rtems/score/interr.h

    r45ee958 r64fbeaa  
    231231  INTERNAL_ERROR_RTEMS_INIT_TASK_CONSTRUCT_FAILED = 42,
    232232  INTERNAL_ERROR_IDLE_THREAD_CREATE_FAILED = 43,
    233   INTERNAL_ERROR_NO_MEMORY_FOR_IDLE_TASK_STORAGE = 44
     233  INTERNAL_ERROR_NO_MEMORY_FOR_IDLE_TASK_STORAGE = 44,
     234  INTERNAL_ERROR_IDLE_THREAD_STACK_TOO_SMALL = 45
    234235} Internal_errors_Core_list;
    235236
  • cpukit/sapi/src/interrtext.c

    r45ee958 r64fbeaa  
    8686  "INTERNAL_ERROR_RTEMS_INIT_TASK_CONSTRUCT_FAILED",
    8787  "INTERNAL_ERROR_IDLE_THREAD_CREATE_FAILED",
    88   "INTERNAL_ERROR_NO_MEMORY_FOR_IDLE_TASK_STORAGE"
     88  "INTERNAL_ERROR_NO_MEMORY_FOR_IDLE_TASK_STORAGE",
     89  "INTERNAL_ERROR_IDLE_THREAD_STACK_TOO_SMALL"
    8990};
    9091
  • cpukit/score/src/threadcreateidle.c

    r45ee958 r64fbeaa  
    8585  );
    8686
     87  if ( config.stack_size < storage_size ) {
     88    _Internal_error( INTERNAL_ERROR_IDLE_THREAD_STACK_TOO_SMALL );
     89  }
     90
    8791  /*
    8892   *  The entire workspace is zeroed during its initialization.  Thus, all
  • spec/build/testsuites/validation/grp.yml

    r45ee958 r64fbeaa  
    2020- role: build-dependency
    2121  uid: fatal-idle-thread-create-failed
     22- role: build-dependency
     23  uid: fatal-idle-thread-stack-too-small
    2224- role: build-dependency
    2325  uid: fatal-init-task-construct-failed
  • testsuites/sptests/spinternalerror02/init.c

    r45ee958 r64fbeaa  
    5050
    5151  rtems_test_assert(
    52     error - 3 == INTERNAL_ERROR_NO_MEMORY_FOR_IDLE_TASK_STORAGE
     52    error - 3 == INTERNAL_ERROR_IDLE_THREAD_STACK_TOO_SMALL
    5353  );
    5454}
Note: See TracChangeset for help on using the changeset viewer.