source: rtems/testsuites/sptests/spsize/size.c @ 44c6b5b

4.104.115
Last change on this file since 44c6b5b was 44c6b5b, checked in by Ralf Corsepius <ralf.corsepius@…>, on 10/27/09 at 07:27:43

Use PRIu32 to print sys_req.

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