Changeset c621c11b in rtems


Ignore:
Timestamp:
Feb 13, 2020, 4:15:33 PM (5 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
dbb7ac6
Parents:
e85f168
git-author:
Sebastian Huber <sebastian.huber@…> (02/13/20 16:15:33)
git-committer:
Sebastian Huber <sebastian.huber@…> (02/17/20 07:03:56)
Message:

monitor: Use proper API for all config constants

File:
1 edited

Legend:

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

    re85f168 rc621c11b  
    3030)
    3131{
    32     const rtems_configuration_table *c =
    33         (const rtems_configuration_table *) config_void;
    3432    rtems_api_configuration_table *r = &Configuration_RTEMS_API;
    3533
    36     canonical_config->work_space_size = c->work_space_size;
     34    canonical_config->work_space_size = rtems_configuration_get_work_space_size();
    3735    canonical_config->maximum_tasks = rtems_configuration_get_maximum_tasks();
    3836    canonical_config->maximum_timers = rtems_configuration_get_maximum_timers();
     
    4442    canonical_config->maximum_periods = rtems_configuration_get_maximum_periods();
    4543    canonical_config->maximum_extensions = rtems_configuration_get_maximum_extensions();
    46     canonical_config->microseconds_per_tick = c->microseconds_per_tick;
    47     canonical_config->ticks_per_timeslice = c->ticks_per_timeslice;
     44    canonical_config->microseconds_per_tick = rtems_configuration_get_microseconds_per_tick();
     45    canonical_config->ticks_per_timeslice = rtems_configuration_get_ticks_per_timeslice();
    4846    canonical_config->number_of_initialization_tasks = r->number_of_initialization_tasks;
    4947}
     
    6159)
    6260{
    63     const rtems_configuration_table *c = &Configuration;
    6461    int n = rtems_object_id_get_index(*next_id);
    6562
     
    7067
    7168    *next_id += 1;
    72     return (const void *) c;
     69    return (const void *) (uintptr_t) 1;
    7370
    7471failed:
Note: See TracChangeset for help on using the changeset viewer.