Changeset e6d4b1d in rtems for c/src/lib/libmisc


Ignore:
Timestamp:
May 28, 1996, 1:13:34 PM (25 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
cb96372
Parents:
3320e52
Message:

added initial posix configuration support

Location:
c/src/lib/libmisc/monitor
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libmisc/monitor/mon-config.c

    r3320e52 re6d4b1d  
    3030{
    3131    rtems_configuration_table *c = (rtems_configuration_table *) config_void;
     32    rtems_api_configuration_table *r = c->RTEMS_api_configuration;
    3233
    3334    canonical_config->work_space_start = c->work_space_start;
    3435    canonical_config->work_space_size = c->work_space_size;
    35     canonical_config->maximum_tasks = c->maximum_tasks;
    36     canonical_config->maximum_timers = c->maximum_timers;
    37     canonical_config->maximum_semaphores = c->maximum_semaphores;
    38     canonical_config->maximum_message_queues = c->maximum_message_queues;
    39     canonical_config->maximum_partitions = c->maximum_partitions;
    40     canonical_config->maximum_regions = c->maximum_regions;
    41     canonical_config->maximum_ports = c->maximum_ports;
    42     canonical_config->maximum_periods = c->maximum_periods;
     36    canonical_config->maximum_tasks = r->maximum_tasks;
     37    canonical_config->maximum_timers = r->maximum_timers;
     38    canonical_config->maximum_semaphores = r->maximum_semaphores;
     39    canonical_config->maximum_message_queues = r->maximum_message_queues;
     40    canonical_config->maximum_partitions = r->maximum_partitions;
     41    canonical_config->maximum_regions = r->maximum_regions;
     42    canonical_config->maximum_ports = r->maximum_ports;
     43    canonical_config->maximum_periods = r->maximum_periods;
    4344    canonical_config->maximum_extensions = c->maximum_extensions;
    4445    canonical_config->microseconds_per_tick = c->microseconds_per_tick;
    4546    canonical_config->ticks_per_timeslice = c->ticks_per_timeslice;
    46     canonical_config->number_of_initialization_tasks = c->number_of_initialization_tasks;
     47    canonical_config->number_of_initialization_tasks = r->number_of_initialization_tasks;
    4748}   
    4849
  • c/src/lib/libmisc/monitor/mon-itask.c

    r3320e52 re6d4b1d  
    4343    int n = rtems_get_index(*next_id);
    4444
    45     if (n >= c->number_of_initialization_tasks)
     45    if (n >= c->RTEMS_api_configuration->number_of_initialization_tasks)
    4646        goto failed;
    4747   
    4848    _Thread_Disable_dispatch();
    4949
    50     itask = c->User_initialization_tasks_table + n;
     50    itask = c->RTEMS_api_configuration->User_initialization_tasks_table + n;
    5151
    5252    /*
Note: See TracChangeset for help on using the changeset viewer.