source: rtems/testsuites/sptests/spsize/size.c @ 54cf0e34

4.115
Last change on this file since 54cf0e34 was 54cf0e34, checked in by Sebastian Huber <sebastian.huber@…>, on 04/10/15 at 14:19:48

score: Add Watchdog_Header

This type is intended to encapsulate all state to manage a watchdog
chain.

Update #2307.

  • Property mode set to 100644
File size: 20.7 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/*apiext.h*/    (sizeof _API_extensions_List)             +
247
248/*asr.h*/       0                                         +
249
250/*attr.h*/      0                                         +
251
252/*bitfield.h*/  0                                         +
253
254/*chain.h*/     0                                         +
255
256/*clock.h*/     0                                         +
257
258/*config.h*/
259        #if defined(RTEMS_MULTIPROCESSING)
260                (sizeof _Configuration_MP_table)          +
261        #endif
262
263/*context.h*/   (sizeof _Thread_Dispatch_necessary)        +
264
265/*copyrt.h*/    0                                         +
266
267/*debug.h*/     (sizeof _Debug_Level)                     +
268
269/*dpmemimpl.h*/ (sizeof _Dual_ported_memory_Information)  +
270
271#if defined(RTEMS_MULTIPROCESSING)
272/*eventmp.h*/   0                                         +
273#endif
274
275/*extensionimpl.h*/ (sizeof _Extension_Information)       +
276
277/*fatal.h*/     0                                         +
278
279/*heap.h*/      0                                         +
280
281/*init.h*/      0                                         +
282
283/*interr.h*/    (sizeof _Internal_errors_What_happened)   +
284
285/*intr.h*/      0                                         +
286
287/*isr.h*/       (sizeof _ISR_Nest_level)                  +
288#if (CPU_SIMPLE_VECTORED_INTERRUPTS == TRUE)
289                (sizeof _ISR_Vector_table)                +
290#endif
291
292/*messageimpl.h*/ (sizeof _Message_queue_Information)     +
293
294/*modes.h*/     0                                         +
295
296#if defined(RTEMS_MULTIPROCESSING)
297/*mp.h*/        0                                         +
298#endif
299
300#if defined(RTEMS_MULTIPROCESSING)
301/*mpciimpl.h*/  (sizeof _MPCI_Remote_blocked_threads)     +
302                (sizeof _MPCI_Semaphore)                  +
303                (sizeof _MPCI_table)                      +
304                (sizeof _MPCI_Receive_server_tcb)         +
305                (sizeof _MPCI_Packet_processors)          +
306#endif
307
308#if defined(RTEMS_MULTIPROCESSING)
309/*mppkt.h*/     0                                         +
310#endif
311
312#if defined(RTEMS_MULTIPROCESSING)
313/*mptables.h*/  0                                         +
314#endif
315
316#if defined(RTEMS_MULTIPROCESSING)
317/*msgmp.h*/     0                                         +
318#endif
319
320/*object.h*/    (sizeof _Objects_Local_node)              +
321                (sizeof _Objects_Maximum_nodes)           +
322                (sizeof _Objects_Information_table)       +
323
324#if defined(RTEMS_MULTIPROCESSING)
325/*objectmp.h*/  (sizeof _Objects_MP_Maximum_global_objects) +
326                (sizeof _Objects_MP_Inactive_global_objects) +
327#endif
328
329/*options.h*/   0                                         +
330
331/*partimpl.h*/  (sizeof _Partition_Information)           +
332
333#if defined(RTEMS_MULTIPROCESSING)
334/*partmp.h*/    0                                         +
335#endif
336
337/*percpu.h*/    (_SMP_Get_processor_count() * sizeof(Per_CPU_Control))  +
338
339/*ratemonimpl.h*/ (sizeof _Rate_monotonic_Information)    +
340
341/*regionimpl.h*/ (sizeof _Region_Information)             +
342
343#if defined(RTEMS_MULTIPROCESSING)
344/*regionmp.h*/  0                                         +
345#endif
346
347/*rtems.h*/     /* Not applicable */
348
349/*semimpl.h*/   (sizeof _Semaphore_Information)           +
350
351#if defined(RTEMS_MULTIPROCESSING)
352/*semmp.h*/     0                                         +
353#endif
354
355/*signal.h*/    0                                         +
356
357/*signalmp.h*/  0                                         +
358
359/*stack.h*/     0                                         +
360
361/*states.h*/    0                                         +
362
363/*status.h*/    0                                         +
364
365/*sysstate.h*/  (sizeof _System_state_Current)            +
366#if defined(RTEMS_MULTIPROCESSING)
367                (sizeof _System_state_Is_multiprocessing) +
368#endif
369
370#if defined(RTEMS_MULTIPROCESSING)
371/*taskmp.h*/    0                                         +
372#endif
373
374/*tasksimpl.h*/ (sizeof _RTEMS_tasks_Information)         +
375
376/*thread.h*/    (sizeof _Thread_Dispatch_disable_level)   +
377                (sizeof _Thread_Executing)                +
378                (sizeof _Thread_Heir)                     +
379#if (CPU_HARDWARE_FP == 1) || (CPU_SOFTWARE_FP == 1)
380                (sizeof _Thread_Allocated_fp)             +
381#endif
382                (sizeof _Thread_Internal_information)     +
383
384#if defined(RTEMS_MULTIPROCESSING)
385/*threadmp.h*/  (sizeof _Thread_MP_Active_proxies)        +
386                (sizeof _Thread_MP_Inactive_proxies)      +
387#endif
388
389/*threadq.h*/
390
391/*timerimpl.h*/ (sizeof _Timer_Information)               +
392
393/*tod.h*/       (sizeof _TOD.now)                         +
394                (sizeof _TOD.uptime)                      +
395
396/*tqdata.h*/    0                                         +
397
398/*types.h*/     0                                         +
399
400/*userext.h*/   (sizeof _User_extensions_List)            +
401
402/*watchdog.h*/  (sizeof _Watchdog_Sync_level)             +
403                (sizeof _Watchdog_Sync_count)             +
404                (sizeof _Watchdog_Ticks_since_boot)       +
405                (sizeof _Watchdog_Ticks_header)           +
406                (sizeof _Watchdog_Seconds_header)         +
407
408/*wkspace.h*/   (sizeof _Workspace_Area);
409
410#ifndef unix  /* make sure this is not a native compile */
411
412#ifdef __i386__
413
414/* cpu.h */
415uninitialized += (sizeof _CPU_Null_fp_context);
416
417#if (CPU_ALLOCATE_INTERRUPT_STACK == TRUE)
418uninitialized += (sizeof _CPU_Interrupt_stack_low) +
419                 (sizeof _CPU_Interrupt_stack_high);
420#endif
421
422#endif
423
424#ifdef __mc68000__
425
426/* cpu.h */
427uninitialized += (sizeof _CPU_Interrupt_stack_low) +
428                 (sizeof _CPU_Interrupt_stack_high);
429
430#endif
431
432#ifdef __sparc__
433
434/* cpu.h */
435uninitialized += (sizeof _CPU_Interrupt_stack_low) +
436                 (sizeof _CPU_Interrupt_stack_high) +
437                 (sizeof _CPU_Null_fp_context);
438
439#endif
440
441
442#ifdef no_cpu
443
444/* cpu.h */
445uninitialized += (sizeof _CPU_Null_fp_context) +
446                 (sizeof _CPU_Interrupt_stack_low) +
447                 (sizeof _CPU_Interrupt_stack_high) +
448                 (sizeof _CPU_Thread_dispatch_pointer);
449
450#endif
451
452#ifdef __PPC__
453
454/* cpu.h */
455uninitialized += (sizeof _CPU_Interrupt_stack_low) +
456                 (sizeof _CPU_Interrupt_stack_high);
457
458#endif
459#endif /* !unix */
460
461initialized +=
462/*copyrt.h*/    (strlen(_Copyright_Notice)+1)             +
463
464#if defined(RTEMS_MULTIPROCESSING)
465/*sptables.h*/  (sizeof _Initialization_Default_multiprocessing_table)  +
466#endif
467                (strlen(_RTEMS_version)+1);
468
469
470
471#ifndef unix /* make sure this is not native */
472#ifdef __sparc__
473
474initialized +=  (sizeof _CPU_Trap_slot_template);
475
476#endif
477#endif /* !unix */
478
479puts( "" );
480
481  if ( mode == 0 ) help_size();
482  else             print_formula();
483
484printf( "\n" );
485printf( "RTEMS uninitialized data consumes %d bytes\n", uninitialized );
486printf( "RTEMS initialized data consumes %d bytes\n", initialized );
487
488}
489
490void help_size()
491{
492int c = '\0';
493int break_loop;
494int total_size;
495int task_stacks;
496int interrupt_stack;
497int maximum_tasks, size_tasks;
498int maximum_sems, size_sems;
499int maximum_timers, size_timers;
500int maximum_msgqs, size_msgqs;
501int maximum_msgs, size_msgs_overhead;
502int maximum_regns, size_regns;
503int maximum_parts, size_parts;
504int maximum_ports, size_ports;
505int maximum_periods, size_periods;
506int maximum_extensions, size_extensions;
507int maximum_drvs, size_drvs;
508int maximum_fps, size_fps;
509int maximum_nodes, size_nodes;
510int maximum_gobjs, size_gobjs;
511int maximum_proxies, size_proxies;
512
513total_size = sys_req;    /* Fixed Overhead */
514printf( "What is maximum_tasks? " );
515maximum_tasks = getint();
516size_tasks = PER_TASK * maximum_tasks;
517total_size += size_tasks;
518
519printf( "What is maximum_semaphores? " );
520maximum_sems = getint();
521size_sems = PER_SEMAPHORE * maximum_sems;
522total_size += size_sems;
523
524printf( "What is maximum_timers? " );
525maximum_timers = getint();
526size_timers = PER_TIMER * maximum_timers;
527total_size += size_timers;
528
529printf( "What is maximum_message_queues? " );
530maximum_msgqs = getint();
531size_msgqs = PER_MSGQ * maximum_msgqs;
532total_size += size_msgqs;
533
534printf( "What is maximum_messages?  XXXX " );
535maximum_msgs = getint();
536size_msgs_overhead = 0;
537total_size += size_msgs_overhead;
538
539printf( "What is maximum_regions? " );
540maximum_regns = getint();
541size_regns = PER_REGN * maximum_regns;
542total_size += size_regns;
543
544printf( "What is maximum_partitions? " );
545maximum_parts = getint();
546size_parts = PER_PART * maximum_parts;
547total_size += size_parts;
548
549printf( "What is maximum_ports? " );
550maximum_ports = getint();
551size_ports = PER_PORT * maximum_ports;
552total_size += size_ports;
553
554printf( "What is maximum_periods? " );
555maximum_periods = getint();
556size_periods = PER_PERIOD * maximum_periods;
557total_size += size_periods;
558
559printf( "What is maximum_extensions? " );
560maximum_extensions = getint();
561size_extensions = PER_EXTENSION * maximum_extensions;
562total_size += size_extensions;
563
564printf( "What is number_of_device_drivers? " );
565maximum_drvs = getint();
566size_drvs = PER_DRV  * maximum_drvs;
567total_size += size_drvs;
568
569printf( "What will be total stack requirement for all tasks? " );
570task_stacks = getint();
571total_size += task_stacks;
572
573printf( "What is the size of the interrupt stack? " );
574interrupt_stack = getint();
575total_size += interrupt_stack;
576
577printf( "How many tasks will be created with the FP flag? " );
578maximum_fps = getint();
579size_fps = PER_FPTASK  * maximum_fps;
580total_size += size_fps;
581
582printf( "Is this a single processor system? " );
583for ( break_loop=0 ; !break_loop; c = getchar() ) {
584  switch ( c ) {
585    case 'Y':  case 'y':
586    case 'N':  case 'n':
587      break_loop = 1;
588      break;
589  }
590}
591printf( "%c\n", c );
592if ( c == 'n' || c == 'N' ) {
593  printf( "What is maximum_nodes? " );
594  maximum_nodes = getint();
595  size_nodes = PER_NODE * maximum_nodes;
596  total_size += size_nodes;
597  printf( "What is maximum_global_objects? " );
598  maximum_gobjs = getint();
599  size_gobjs = PER_GOBJECT * maximum_gobjs;
600  total_size += size_gobjs;
601  printf( "What is maximum_proxies? " );
602  maximum_proxies = getint();
603  size_proxies = PER_PROXY * maximum_proxies;
604  total_size += size_proxies;
605} else {
606  maximum_nodes = 0;
607  size_nodes = PER_NODE * 0;
608  maximum_gobjs = 0;
609  size_gobjs = PER_GOBJECT * 0;
610  maximum_proxies = 0;
611  size_proxies = PER_PROXY * 0;
612}
613
614printf( "\n\n" );
615printf( " ************** EXECUTIVE WORK SPACE REQUIRED **************\n" );
616printf( " Tasks                - %03d * %03ld            =  %ld\n",
617          maximum_tasks, PER_TASK, (long) size_tasks );
618printf( " Semaphores           - %03d * %03ld            =  %ld\n",
619          maximum_sems, PER_SEMAPHORE, (long) size_sems );
620printf( " Timers               - %03d * %03ld            =  %ld\n",
621          maximum_timers, PER_TIMER, (long) size_timers );
622printf( " Msg Queues           - %03d * %03ld            =  %ld\n",
623          maximum_msgqs, PER_MSGQ, (long) size_msgqs );
624printf( " Messages Overhead    - %03d * %03d            =  %ld\n",
625          maximum_msgs, 0 /* PER_MSG_OVERHEAD */, (long) size_msgs_overhead );
626printf( " Regions              - %03d * %03ld            =  %ld\n",
627          maximum_regns, PER_REGN, (long) size_regns);
628printf( " Partitions           - %03d * %03ld            =  %ld\n",
629          maximum_parts, PER_PART, (long) size_parts );
630printf( " Periods              - %03d * %03ld            =  %ld\n",
631          maximum_periods, PER_PERIOD, (long) size_periods );
632printf( " Extensions           - %03d * %03ld            =  %ld\n",
633          maximum_extensions, PER_EXTENSION, (long) size_extensions );
634printf( " Device Drivers       - %03d * %03ld            =  %ld\n",
635          maximum_drvs, PER_DRV, (long) size_drvs );
636
637printf( " System Requirements  - %04" PRIu32 "                 =  %"PRIu32 "\n",
638          sys_req, sys_req );
639
640printf( " Floating Point Tasks - %03d * %03ld            =  %ld\n",
641          maximum_fps, PER_FPTASK, (long) size_fps );
642printf( " Application Task Stacks -                     =  %d\n",
643          task_stacks );
644printf( " Interrupt Stacks -                            =  %d\n",
645          task_stacks );
646printf( " \n" );
647printf( " Global object tables - %03d * %03ld            =  %ld\n",
648          maximum_nodes, PER_NODE, (long) size_nodes );
649printf( " Global objects       - %03d * %03ld            =  %ld\n",
650          maximum_gobjs, PER_GOBJECT, (long) size_gobjs );
651printf( " Proxies              - %03d * %03ld            =  %ld\n",
652          maximum_proxies, PER_PROXY, (long) size_proxies );
653printf( "\n\n" );
654printf( " TOTAL                                       = %d bytes\n",
655      total_size );
656}
657
658void print_formula()
659{
660printf( " ************** EXECUTIVE WORK SPACE FORMULA **************\n" );
661printf( " Tasks                - maximum_tasks * %ld\n",      PER_TASK );
662printf( " Timers               - maximum_timers * %ld\n",     PER_TIMER );
663printf( " Semaphores           - maximum_semaphores * %ld\n", PER_SEMAPHORE);
664printf( " Message Queues       - maximum_message_queues * %ld\n", PER_MSGQ );
665printf( " Messages             -\n");
666printf( " Regions              - maximum_regions * %ld\n",    PER_REGN );
667printf( " Partitions           - maximum_partitions * %ld\n", PER_PART );
668printf( " Ports                - maximum_ports * %ld\n",      PER_PORT );
669printf( " Periods              - maximum_periods * %ld\n",    PER_PORT );
670printf( " Extensions           - maximum_extensions * %ld\n", PER_EXTENSION );
671printf( " Device Drivers       - number_of_device_drivers * %ld\n", PER_DRV);
672printf( " System Requirements  - %" PRIu32 "\n",              sys_req );
673printf( " Floating Point Tasks - FPMASK Tasks * %ld\n",       PER_FPTASK );
674printf( " User's Tasks' Stacks -\n" );
675printf( " Interrupt Stack      -\n" );
676printf( " \n" );
677printf( " Global object tables - maximum_nodes * %ld\n",          PER_NODE );
678printf( " Global objects       - maximum_global_objects * %ld\n", PER_GOBJECT );
679printf( " Proxies              - maximum_proxies * %ld\n",        PER_PROXY );
680}
Note: See TracBrowser for help on using the repository browser.