Ignore:
Timestamp:
Jan 3, 2003, 8:51:34 PM (18 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
ea14663
Parents:
6bd96fc7
Message:

2002-10-31 Chris Johns <ccj@…>

  • unlimited/test1.c: PR296. Only fails if more tasks than allowed can be created.
  • unlimited/system.h: PR296. Reference the number of tasks in the configuration table rather than a hardcoded number.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/tests/samples/unlimited/system.h

    r6bd96fc7 r3d9f688e  
    4747#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    4848
    49 #define TASK_ALLOCATION_SIZE     (5)
     49#define TASK_ALLOCATION_SIZE \
     50    (rtems_configuration_get_rtems_api_configuration()->maximum_tasks & \
     51                                    ~RTEMS_UNLIMITED_OBJECTS)
    5052#define CONFIGURE_MAXIMUM_TASKS  rtems_resource_unlimited(TASK_ALLOCATION_SIZE)
    5153#define CONFIGURE_EXTRA_TASK_STACKS (62 * RTEMS_MINIMUM_STACK_SIZE)
Note: See TracChangeset for help on using the changeset viewer.