source: rtems/testsuites/sptests/spsize/size.c @ 60c5461

Last change on this file since 60c5461 was 60c5461, checked in by Sebastian Huber <sebastian.huber@…>, on Dec 8, 2015 at 7:33:08 AM

score: Statically initialize API extensions

Update #2408.

  • Property mode set to 100644
File size: 20.4 KB
Line 
1/**
2 *  @file
3 *
4 *  This program is run to determine the data space and work space
5 *  requirements of the current version of RTEMS.
6 */
7
8/*
9 *  COPYRIGHT (c) 1989-2014.
10 *  On-Line Applications Research Corporation (OAR).
11 *
12 *  The license and distribution terms for this file may be
13 *  found in the file LICENSE in this distribution or at
14 *  http://www.rtems.org/license/LICENSE.
15 */
16
17#ifdef HAVE_CONFIG_H
18#include "config.h"
19#endif
20
21#include <rtems/system.h>
22#include <rtems/config.h>
23#include <rtems/score/apiext.h>
24#include <rtems/score/copyrt.h>
25#include <rtems/rtems/clock.h>
26#include <rtems/rtems/tasksimpl.h>
27#include <rtems/rtems/dpmemimpl.h>
28#include <rtems/rtems/eventimpl.h>
29#include <rtems/extensionimpl.h>
30#include <rtems/fatal.h>
31#include <rtems/init.h>
32#include <rtems/score/isr.h>
33#include <rtems/rtems/intr.h>
34#include <rtems/io.h>
35#include <rtems/rtems/messageimpl.h>
36#if defined(RTEMS_MULTIPROCESSING)
37#include <rtems/rtems/mp.h>
38#include <rtems/score/mpciimpl.h>
39#endif
40#include <rtems/rtems/partimpl.h>
41#include <rtems/score/priority.h>
42#include <rtems/rtems/ratemonimpl.h>
43#include <rtems/rtems/regionimpl.h>
44#include <rtems/rtems/semimpl.h>
45#include <rtems/rtems/signal.h>
46#include <rtems/score/scheduler.h>
47#include <rtems/score/sysstate.h>
48#include <rtems/score/thread.h>
49#include <rtems/rtems/timerimpl.h>
50#include <rtems/score/todimpl.h>
51#include <rtems/score/userextimpl.h>
52#include <rtems/score/watchdogimpl.h>
53#include <rtems/score/wkspace.h>
54#if defined(RTEMS_SMP)
55  #include <rtems/score/smp.h>
56#endif
57
58#include <stdlib.h>
59#include <stdio.h>
60#include <unistd.h>
61#include <tmacros.h>
62
63#include "system.h"
64
65/* external function prototypes */
66int getint( void );
67void size_rtems(int mode);
68void help_size(void);
69void print_formula(void);
70
71
72/* These are always defined by the executive.
73 *
74 * #include <rtems/copyrt.h>
75 * #include <rtems/tables.h>
76 * #include <rtems/sptables.h>
77 */
78#define  HEAP_OVHD        16    /* wasted heap space per task stack */
79#define  NAME_PTR_SIZE     8    /* size of name and pointer table entries */
80
81/*
82 *  This assumes the default Priority Scheduler
83 */
84#include <rtems/score/prioritybitmapimpl.h>
85#include <rtems/score/schedulerpriority.h>
86
87/* Priority scheduling per-thread consumption. Gets
88 * included in the PER_TASK consumption.
89 */
90#define SCHEDULER_TASK_WKSP     (sizeof(Scheduler_priority_Node))
91
92/* Priority scheduling workspace consumption
93 *
94 * Include allocation of ready queue.
95 */
96#define SCHEDULER_WKSP_SIZE  \
97    (sizeof(Scheduler_priority_Context) + \
98     RTEMS_MAXIMUM_PRIORITY * sizeof(Chain_Control ))
99/****** END OF MEMORY USAGE OF DEFAULT PRIORITY SCHEDULER ******/
100
101#define PER_TASK      \
102     (long) (sizeof (Thread_Control) + \
103      NAME_PTR_SIZE + HEAP_OVHD + sizeof( RTEMS_API_Control ) + \
104      SCHEDULER_TASK_WKSP )
105#define PER_SEMAPHORE \
106     (long) (sizeof (Semaphore_Control) + NAME_PTR_SIZE)
107#define PER_TIMER     \
108     (long) (sizeof (Timer_Control) + NAME_PTR_SIZE)
109#define PER_MSGQ      \
110     (long) (sizeof (Message_queue_Control) + NAME_PTR_SIZE)
111#define PER_REGN      \
112     (long) (sizeof (Region_Control) + NAME_PTR_SIZE)
113#define PER_PART      \
114     (long) (sizeof (Partition_Control) + NAME_PTR_SIZE)
115#define PER_PERIOD      \
116     (long) (sizeof (Rate_monotonic_Control) + NAME_PTR_SIZE)
117#define PER_PORT      \
118     (long) (sizeof (Dual_ported_memory_Control) + NAME_PTR_SIZE)
119#define PER_EXTENSION     \
120     (long) (sizeof (Extension_Control) + NAME_PTR_SIZE)
121
122#define PER_DRV       (long) (0)
123#define PER_FPTASK    (long) (CONTEXT_FP_SIZE)
124#define PER_GOBTBL    (long) (sizeof (Chain_Control)*4)
125#define PER_NODE      (long) PER_GOBTBL
126#if defined(RTEMS_MULTIPROCESSING)
127#define PER_GOBJECT   (long) (sizeof (Objects_MP_Control))
128#else
129#define PER_GOBJECT   (long) 0
130#endif
131#define PER_PROXY     (long) (sizeof (Thread_Proxy_control))
132
133#if !defined(RTEMS_MULTIPROCESSING) || (CPU_ALL_TASKS_ARE_FP != TRUE)
134#define MPCI_RECEIVE_SERVER_FP (long) 0
135#else
136#define MPCI_RECEIVE_SERVER_FP (long) (sizeof( Context_Control_fp ))
137#endif
138
139#if (CPU_IDLE_TASK_IS_FP == TRUE)
140#define SYSTEM_IDLE_FP (long) (sizeof( Context_Control_fp ))
141#else
142#define SYSTEM_IDLE_FP (long) 0
143#endif
144
145#if !defined(RTEMS_MULTIPROCESSING)
146#define MPCI_RECEIVE_SERVER_STACK_SIZE 0
147#endif
148
149#if defined(RTEMS_MULTIPROCESSING)
150#define MPCI_RECEIVE_SERVER_STACK_SIZE \
151
152#define MP_SYSTEM_TASKS \
153   (STACK_MINIMUM_SIZE + CPU_MPCI_RECEIVE_SERVER_EXTRA_STACK + \
154    sizeof(Thread_Control) + \
155    MPCI_RECEIVE_SERVER_FP)
156
157extern CORE_semaphore_Control _MPCI_Semaphore;
158#else
159#define MP_SYSTEM_TASKS 0
160#endif
161
162/*
163 *  Idle and the MPCI Receive Server Threads
164 */
165
166#define SYSTEM_TASKS  \
167    (STACK_MINIMUM_SIZE + sizeof(Thread_Control) + SYSTEM_IDLE_FP + \
168     MP_SYSTEM_TASKS)
169
170/* FIXME: uint32_t doesn't seem right */
171uint32_t   sys_req;
172
173void size_rtems(
174  int mode
175)
176{
177int uninitialized = 0;
178int initialized = 0;
179
180/*
181 *  The following data is allocated for each Manager:
182 *
183 *    + Per Manager Object Information
184 *      - local pointer table
185 *      - local name table
186 *      - the object's control blocks
187 *      - global name chains
188 *
189 *  The following is the data allocate from the RTEMS Workspace Area.
190 *  The order indicates the order in which RTEMS allocates it.
191 *
192 *    + Object MP
193 *      - Global Object CB's
194 *    + Thread MP
195 *      - Proxies Chain
196 *    + Scheduler
197 *      - Ready queue
198 *    + Interrupt Manager
199 *      - Interrupt Stack
200 *    + Timer Manager
201 *      - per Manager Object Data
202 *    + Extension Manager
203 *      - per Manager Object Data
204 *    + Message Queue Manager
205 *      - per Manager Object Data
206 *      - Message Buffers
207 *    + Semaphore Manager
208 *      - per Manager Object Data
209 *    + Partition Manager
210 *      - per Manager Object Data
211 *    + Region Manager
212 *      - per Manager Object Data
213 *    + Dual Ported Memory Manager
214 *      - per Manager Object Data
215 *    + Rate Monotonic Manager
216 *      - per Manager Object Data
217 *    + Internal Threads Handler
218 *      - MPCI Receive Server Thread TCB
219 *      - IDLE Thread TCB
220 *      - MPCI Receive Server Thread stack
221 *      - MPCI Receive Server Thread FP area (if CPU requires this)
222 *      - IDLE Thread stack
223 *      - IDLE Thread FP area (if CPU requires this)
224 *
225 *  This does not take into account any CPU dependent alignment requirements.
226 *
227 *  The following calculates the overhead needed by RTEMS from the
228 *  Workspace Area.
229 */
230sys_req = SYSTEM_TASKS        +     /* MPCI Receive Server and IDLE */
231          NAME_PTR_SIZE       +     /* Task Overhead */
232          SCHEDULER_WKSP_SIZE +     /* Scheduler Overhead */
233          NAME_PTR_SIZE       +     /* Timer Overhead */
234          NAME_PTR_SIZE       +     /* Semaphore Overhead */
235          NAME_PTR_SIZE       +     /* Message Queue Overhead */
236          NAME_PTR_SIZE       +     /* Region Overhead */
237          NAME_PTR_SIZE       +     /* Partition Overhead */
238          NAME_PTR_SIZE       +     /* Dual-Ported Memory Overhead */
239          NAME_PTR_SIZE       +     /* Rate Monotonic Overhead */
240          NAME_PTR_SIZE       +     /* Extension Overhead */
241          PER_NODE;                 /* Extra Gobject Table */
242
243uninitialized =
244/*address.h*/   0                                         +
245
246/*asr.h*/       0                                         +
247
248/*attr.h*/      0                                         +
249
250/*bitfield.h*/  0                                         +
251
252/*chain.h*/     0                                         +
253
254/*clock.h*/     0                                         +
255
256/*config.h*/
257        #if defined(RTEMS_MULTIPROCESSING)
258                (sizeof _Configuration_MP_table)          +
259        #endif
260
261/*context.h*/   (sizeof _Thread_Dispatch_necessary)        +
262
263/*copyrt.h*/    0                                         +
264
265/*dpmemimpl.h*/ (sizeof _Dual_ported_memory_Information)  +
266
267#if defined(RTEMS_MULTIPROCESSING)
268/*eventmp.h*/   0                                         +
269#endif
270
271/*extensionimpl.h*/ (sizeof _Extension_Information)       +
272
273/*fatal.h*/     0                                         +
274
275/*heap.h*/      0                                         +
276
277/*init.h*/      0                                         +
278
279/*interr.h*/    (sizeof _Internal_errors_What_happened)   +
280
281/*intr.h*/      0                                         +
282
283/*isr.h*/       (sizeof _ISR_Nest_level)                  +
284#if (CPU_SIMPLE_VECTORED_INTERRUPTS == TRUE)
285                (sizeof _ISR_Vector_table)                +
286#endif
287
288/*messageimpl.h*/ (sizeof _Message_queue_Information)     +
289
290/*modes.h*/     0                                         +
291
292#if defined(RTEMS_MULTIPROCESSING)
293/*mp.h*/        0                                         +
294#endif
295
296#if defined(RTEMS_MULTIPROCESSING)
297/*mpciimpl.h*/  (sizeof _MPCI_Remote_blocked_threads)     +
298                (sizeof _MPCI_Semaphore)                  +
299                (sizeof _MPCI_table)                      +
300                (sizeof _MPCI_Receive_server_tcb)         +
301                (sizeof _MPCI_Packet_processors)          +
302#endif
303
304#if defined(RTEMS_MULTIPROCESSING)
305/*mppkt.h*/     0                                         +
306#endif
307
308#if defined(RTEMS_MULTIPROCESSING)
309/*mptables.h*/  0                                         +
310#endif
311
312#if defined(RTEMS_MULTIPROCESSING)
313/*msgmp.h*/     0                                         +
314#endif
315
316/*object.h*/    (sizeof _Objects_Local_node)              +
317                (sizeof _Objects_Maximum_nodes)           +
318                (sizeof _Objects_Information_table)       +
319
320#if defined(RTEMS_MULTIPROCESSING)
321/*objectmp.h*/  (sizeof _Objects_MP_Maximum_global_objects) +
322                (sizeof _Objects_MP_Inactive_global_objects) +
323#endif
324
325/*options.h*/   0                                         +
326
327/*partimpl.h*/  (sizeof _Partition_Information)           +
328
329#if defined(RTEMS_MULTIPROCESSING)
330/*partmp.h*/    0                                         +
331#endif
332
333/*percpu.h*/    (_SMP_Get_processor_count() * sizeof(Per_CPU_Control))  +
334
335/*ratemonimpl.h*/ (sizeof _Rate_monotonic_Information)    +
336
337/*regionimpl.h*/ (sizeof _Region_Information)             +
338
339#if defined(RTEMS_MULTIPROCESSING)
340/*regionmp.h*/  0                                         +
341#endif
342
343/*rtems.h*/     /* Not applicable */
344
345/*semimpl.h*/   (sizeof _Semaphore_Information)           +
346
347#if defined(RTEMS_MULTIPROCESSING)
348/*semmp.h*/     0                                         +
349#endif
350
351/*signal.h*/    0                                         +
352
353/*signalmp.h*/  0                                         +
354
355/*stack.h*/     0                                         +
356
357/*states.h*/    0                                         +
358
359/*status.h*/    0                                         +
360
361/*sysstate.h*/  (sizeof _System_state_Current)            +
362#if defined(RTEMS_MULTIPROCESSING)
363                (sizeof _System_state_Is_multiprocessing) +
364#endif
365
366#if defined(RTEMS_MULTIPROCESSING)
367/*taskmp.h*/    0                                         +
368#endif
369
370/*tasksimpl.h*/ (sizeof _RTEMS_tasks_Information)         +
371
372/*thread.h*/    (sizeof _Thread_Dispatch_disable_level)   +
373                (sizeof _Thread_Executing)                +
374                (sizeof _Thread_Heir)                     +
375#if (CPU_HARDWARE_FP == 1) || (CPU_SOFTWARE_FP == 1)
376                (sizeof _Thread_Allocated_fp)             +
377#endif
378                (sizeof _Thread_Internal_information)     +
379
380#if defined(RTEMS_MULTIPROCESSING)
381/*threadmp.h*/  (sizeof _Thread_MP_Active_proxies)        +
382                (sizeof _Thread_MP_Inactive_proxies)      +
383#endif
384
385/*threadq.h*/
386
387/*timerimpl.h*/ (sizeof _Timer_Information)               +
388
389/*tqdata.h*/    0                                         +
390
391/*types.h*/     0                                         +
392
393/*userext.h*/   (sizeof _User_extensions_List)            +
394
395/*watchdog.h*/  (sizeof _Watchdog_Ticks_since_boot)       +
396                (sizeof _Watchdog_Ticks_header)           +
397                (sizeof _Watchdog_Seconds_header)         +
398
399/*wkspace.h*/   (sizeof _Workspace_Area);
400
401#ifndef unix  /* make sure this is not a native compile */
402
403#ifdef __i386__
404
405/* cpu.h */
406uninitialized += (sizeof _CPU_Null_fp_context);
407
408#if (CPU_ALLOCATE_INTERRUPT_STACK == TRUE)
409uninitialized += (sizeof _CPU_Interrupt_stack_low) +
410                 (sizeof _CPU_Interrupt_stack_high);
411#endif
412
413#endif
414
415#ifdef __mc68000__
416
417/* cpu.h */
418uninitialized += (sizeof _CPU_Interrupt_stack_low) +
419                 (sizeof _CPU_Interrupt_stack_high);
420
421#endif
422
423#ifdef __sparc__
424
425/* cpu.h */
426uninitialized += (sizeof _CPU_Interrupt_stack_low) +
427                 (sizeof _CPU_Interrupt_stack_high) +
428                 (sizeof _CPU_Null_fp_context);
429
430#endif
431
432
433#ifdef no_cpu
434
435/* cpu.h */
436uninitialized += (sizeof _CPU_Null_fp_context) +
437                 (sizeof _CPU_Interrupt_stack_low) +
438                 (sizeof _CPU_Interrupt_stack_high) +
439                 (sizeof _CPU_Thread_dispatch_pointer);
440
441#endif
442
443#ifdef __PPC__
444
445/* cpu.h */
446uninitialized += (sizeof _CPU_Interrupt_stack_low) +
447                 (sizeof _CPU_Interrupt_stack_high);
448
449#endif
450#endif /* !unix */
451
452initialized +=
453/*copyrt.h*/    (strlen(_Copyright_Notice)+1)             +
454
455#if defined(RTEMS_MULTIPROCESSING)
456/*sptables.h*/  (sizeof _Initialization_Default_multiprocessing_table)  +
457#endif
458                (strlen(_RTEMS_version)+1);
459
460
461
462#ifndef unix /* make sure this is not native */
463#ifdef __sparc__
464
465initialized +=  (sizeof _CPU_Trap_slot_template);
466
467#endif
468#endif /* !unix */
469
470puts( "" );
471
472  if ( mode == 0 ) help_size();
473  else             print_formula();
474
475printf( "\n" );
476printf( "RTEMS uninitialized data consumes %d bytes\n", uninitialized );
477printf( "RTEMS initialized data consumes %d bytes\n", initialized );
478
479}
480
481void help_size()
482{
483int c = '\0';
484int break_loop;
485int total_size;
486int task_stacks;
487int interrupt_stack;
488int maximum_tasks, size_tasks;
489int maximum_sems, size_sems;
490int maximum_timers, size_timers;
491int maximum_msgqs, size_msgqs;
492int maximum_msgs, size_msgs_overhead;
493int maximum_regns, size_regns;
494int maximum_parts, size_parts;
495int maximum_ports, size_ports;
496int maximum_periods, size_periods;
497int maximum_extensions, size_extensions;
498int maximum_drvs, size_drvs;
499int maximum_fps, size_fps;
500int maximum_nodes, size_nodes;
501int maximum_gobjs, size_gobjs;
502int maximum_proxies, size_proxies;
503
504total_size = sys_req;    /* Fixed Overhead */
505printf( "What is maximum_tasks? " );
506maximum_tasks = getint();
507size_tasks = PER_TASK * maximum_tasks;
508total_size += size_tasks;
509
510printf( "What is maximum_semaphores? " );
511maximum_sems = getint();
512size_sems = PER_SEMAPHORE * maximum_sems;
513total_size += size_sems;
514
515printf( "What is maximum_timers? " );
516maximum_timers = getint();
517size_timers = PER_TIMER * maximum_timers;
518total_size += size_timers;
519
520printf( "What is maximum_message_queues? " );
521maximum_msgqs = getint();
522size_msgqs = PER_MSGQ * maximum_msgqs;
523total_size += size_msgqs;
524
525printf( "What is maximum_messages?  XXXX " );
526maximum_msgs = getint();
527size_msgs_overhead = 0;
528total_size += size_msgs_overhead;
529
530printf( "What is maximum_regions? " );
531maximum_regns = getint();
532size_regns = PER_REGN * maximum_regns;
533total_size += size_regns;
534
535printf( "What is maximum_partitions? " );
536maximum_parts = getint();
537size_parts = PER_PART * maximum_parts;
538total_size += size_parts;
539
540printf( "What is maximum_ports? " );
541maximum_ports = getint();
542size_ports = PER_PORT * maximum_ports;
543total_size += size_ports;
544
545printf( "What is maximum_periods? " );
546maximum_periods = getint();
547size_periods = PER_PERIOD * maximum_periods;
548total_size += size_periods;
549
550printf( "What is maximum_extensions? " );
551maximum_extensions = getint();
552size_extensions = PER_EXTENSION * maximum_extensions;
553total_size += size_extensions;
554
555printf( "What is number_of_device_drivers? " );
556maximum_drvs = getint();
557size_drvs = PER_DRV  * maximum_drvs;
558total_size += size_drvs;
559
560printf( "What will be total stack requirement for all tasks? " );
561task_stacks = getint();
562total_size += task_stacks;
563
564printf( "What is the size of the interrupt stack? " );
565interrupt_stack = getint();
566total_size += interrupt_stack;
567
568printf( "How many tasks will be created with the FP flag? " );
569maximum_fps = getint();
570size_fps = PER_FPTASK  * maximum_fps;
571total_size += size_fps;
572
573printf( "Is this a single processor system? " );
574for ( break_loop=0 ; !break_loop; c = getchar() ) {
575  switch ( c ) {
576    case 'Y':  case 'y':
577    case 'N':  case 'n':
578      break_loop = 1;
579      break;
580  }
581}
582printf( "%c\n", c );
583if ( c == 'n' || c == 'N' ) {
584  printf( "What is maximum_nodes? " );
585  maximum_nodes = getint();
586  size_nodes = PER_NODE * maximum_nodes;
587  total_size += size_nodes;
588  printf( "What is maximum_global_objects? " );
589  maximum_gobjs = getint();
590  size_gobjs = PER_GOBJECT * maximum_gobjs;
591  total_size += size_gobjs;
592  printf( "What is maximum_proxies? " );
593  maximum_proxies = getint();
594  size_proxies = PER_PROXY * maximum_proxies;
595  total_size += size_proxies;
596} else {
597  maximum_nodes = 0;
598  size_nodes = PER_NODE * 0;
599  maximum_gobjs = 0;
600  size_gobjs = PER_GOBJECT * 0;
601  maximum_proxies = 0;
602  size_proxies = PER_PROXY * 0;
603}
604
605printf( "\n\n" );
606printf( " ************** EXECUTIVE WORK SPACE REQUIRED **************\n" );
607printf( " Tasks                - %03d * %03ld            =  %ld\n",
608          maximum_tasks, PER_TASK, (long) size_tasks );
609printf( " Semaphores           - %03d * %03ld            =  %ld\n",
610          maximum_sems, PER_SEMAPHORE, (long) size_sems );
611printf( " Timers               - %03d * %03ld            =  %ld\n",
612          maximum_timers, PER_TIMER, (long) size_timers );
613printf( " Msg Queues           - %03d * %03ld            =  %ld\n",
614          maximum_msgqs, PER_MSGQ, (long) size_msgqs );
615printf( " Messages Overhead    - %03d * %03d            =  %ld\n",
616          maximum_msgs, 0 /* PER_MSG_OVERHEAD */, (long) size_msgs_overhead );
617printf( " Regions              - %03d * %03ld            =  %ld\n",
618          maximum_regns, PER_REGN, (long) size_regns);
619printf( " Partitions           - %03d * %03ld            =  %ld\n",
620          maximum_parts, PER_PART, (long) size_parts );
621printf( " Periods              - %03d * %03ld            =  %ld\n",
622          maximum_periods, PER_PERIOD, (long) size_periods );
623printf( " Extensions           - %03d * %03ld            =  %ld\n",
624          maximum_extensions, PER_EXTENSION, (long) size_extensions );
625printf( " Device Drivers       - %03d * %03ld            =  %ld\n",
626          maximum_drvs, PER_DRV, (long) size_drvs );
627
628printf( " System Requirements  - %04" PRIu32 "                 =  %"PRIu32 "\n",
629          sys_req, sys_req );
630
631printf( " Floating Point Tasks - %03d * %03ld            =  %ld\n",
632          maximum_fps, PER_FPTASK, (long) size_fps );
633printf( " Application Task Stacks -                     =  %d\n",
634          task_stacks );
635printf( " Interrupt Stacks -                            =  %d\n",
636          task_stacks );
637printf( " \n" );
638printf( " Global object tables - %03d * %03ld            =  %ld\n",
639          maximum_nodes, PER_NODE, (long) size_nodes );
640printf( " Global objects       - %03d * %03ld            =  %ld\n",
641          maximum_gobjs, PER_GOBJECT, (long) size_gobjs );
642printf( " Proxies              - %03d * %03ld            =  %ld\n",
643          maximum_proxies, PER_PROXY, (long) size_proxies );
644printf( "\n\n" );
645printf( " TOTAL                                       = %d bytes\n",
646      total_size );
647}
648
649void print_formula()
650{
651printf( " ************** EXECUTIVE WORK SPACE FORMULA **************\n" );
652printf( " Tasks                - maximum_tasks * %ld\n",      PER_TASK );
653printf( " Timers               - maximum_timers * %ld\n",     PER_TIMER );
654printf( " Semaphores           - maximum_semaphores * %ld\n", PER_SEMAPHORE);
655printf( " Message Queues       - maximum_message_queues * %ld\n", PER_MSGQ );
656printf( " Messages             -\n");
657printf( " Regions              - maximum_regions * %ld\n",    PER_REGN );
658printf( " Partitions           - maximum_partitions * %ld\n", PER_PART );
659printf( " Ports                - maximum_ports * %ld\n",      PER_PORT );
660printf( " Periods              - maximum_periods * %ld\n",    PER_PORT );
661printf( " Extensions           - maximum_extensions * %ld\n", PER_EXTENSION );
662printf( " Device Drivers       - number_of_device_drivers * %ld\n", PER_DRV);
663printf( " System Requirements  - %" PRIu32 "\n",              sys_req );
664printf( " Floating Point Tasks - FPMASK Tasks * %ld\n",       PER_FPTASK );
665printf( " User's Tasks' Stacks -\n" );
666printf( " Interrupt Stack      -\n" );
667printf( " \n" );
668printf( " Global object tables - maximum_nodes * %ld\n",          PER_NODE );
669printf( " Global objects       - maximum_global_objects * %ld\n", PER_GOBJECT );
670printf( " Proxies              - maximum_proxies * %ld\n",        PER_PROXY );
671}
Note: See TracBrowser for help on using the repository browser.