Changeset 5a36154a in rtems


Ignore:
Timestamp:
04/22/96 16:53:05 (28 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
8389628
Parents:
1f94ed6b
Message:

addition of optional user provided stack allocator means that we can not
reliably produce the "insufficient memory for stack space" error if this
extension is configured.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/tests/sptests/sp09/screen03.c

    r1f94ed6b r5a36154a  
    2121
    2222extern rtems_configuration_table BSP_Configuration;
     23extern rtems_cpu_table           _CPU_Table;
    2324
    2425void Screen3()
     
    4344  puts( "TA1 - rtems_task_create - RTEMS_INVALID_NAME" );
    4445
    45   status = rtems_task_create(
    46     task_name,
    47     1,
    48     BSP_Configuration.work_space_size,
    49     RTEMS_DEFAULT_MODES,
    50     RTEMS_DEFAULT_ATTRIBUTES,
    51     &Junk_id
    52   );
    53   fatal_directive_status(
    54     status,
    55     RTEMS_UNSATISFIED,
    56     "rtems_task_create with a stack size larger than the workspace"
    57   );
    58   puts( "TA1 - rtems_task_create - stack size - RTEMS_UNSATISFIED" );
     46  /*
     47   * If the bsp provides its own stack allocator, then
     48   * skip the test that tries to allocate a stack that is too big.
     49   */
     50
     51  if (_CPU_Table.stack_allocate_hook)
     52  {
     53      puts( "TA1 - rtems_task_create - stack size - RTEMS_UNSATISFIED  -- SKIPPED" );
     54  }
     55  else
     56  {
     57      status = rtems_task_create(
     58        task_name,
     59        1,
     60        BSP_Configuration.work_space_size,
     61        RTEMS_DEFAULT_MODES,
     62        RTEMS_DEFAULT_ATTRIBUTES,
     63        &Junk_id
     64      );
     65      fatal_directive_status(
     66        status,
     67        RTEMS_UNSATISFIED,
     68        "rtems_task_create with a stack size larger than the workspace"
     69      );
     70      puts( "TA1 - rtems_task_create - stack size - RTEMS_UNSATISFIED" );
     71  }
    5972
    6073  status = rtems_task_create(
  • testsuites/sptests/sp09/screen03.c

    r1f94ed6b r5a36154a  
    2121
    2222extern rtems_configuration_table BSP_Configuration;
     23extern rtems_cpu_table           _CPU_Table;
    2324
    2425void Screen3()
     
    4344  puts( "TA1 - rtems_task_create - RTEMS_INVALID_NAME" );
    4445
    45   status = rtems_task_create(
    46     task_name,
    47     1,
    48     BSP_Configuration.work_space_size,
    49     RTEMS_DEFAULT_MODES,
    50     RTEMS_DEFAULT_ATTRIBUTES,
    51     &Junk_id
    52   );
    53   fatal_directive_status(
    54     status,
    55     RTEMS_UNSATISFIED,
    56     "rtems_task_create with a stack size larger than the workspace"
    57   );
    58   puts( "TA1 - rtems_task_create - stack size - RTEMS_UNSATISFIED" );
     46  /*
     47   * If the bsp provides its own stack allocator, then
     48   * skip the test that tries to allocate a stack that is too big.
     49   */
     50
     51  if (_CPU_Table.stack_allocate_hook)
     52  {
     53      puts( "TA1 - rtems_task_create - stack size - RTEMS_UNSATISFIED  -- SKIPPED" );
     54  }
     55  else
     56  {
     57      status = rtems_task_create(
     58        task_name,
     59        1,
     60        BSP_Configuration.work_space_size,
     61        RTEMS_DEFAULT_MODES,
     62        RTEMS_DEFAULT_ATTRIBUTES,
     63        &Junk_id
     64      );
     65      fatal_directive_status(
     66        status,
     67        RTEMS_UNSATISFIED,
     68        "rtems_task_create with a stack size larger than the workspace"
     69      );
     70      puts( "TA1 - rtems_task_create - stack size - RTEMS_UNSATISFIED" );
     71  }
    5972
    6073  status = rtems_task_create(
Note: See TracChangeset for help on using the changeset viewer.