Changeset f8700f77 in rtems
- Timestamp:
- Apr 7, 1997, 9:33:28 PM (24 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- bed475e
- Parents:
- de4f281
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/tests/psxtests/psx06/init.c
rde4f281 rf8700f77 96 96 key_data = pthread_getspecific( Key_id ); 97 97 printf( "Init: Got the key value of %ld\n", 98 ( rtems_unsigned32 *)key_data - Data_array);98 (unsigned long) ((rtems_unsigned32 *)key_data - Data_array) ); 99 99 100 100 remaining = sleep( 3 ); -
c/src/tests/psxtests/psx06/task.c
rde4f281 rf8700f77 38 38 key_data = pthread_getspecific( Key_id ); 39 39 printf( "Task_1: Got the key value of %ld\n", 40 ( rtems_unsigned32 *)key_data - Data_array);40 (unsigned long) ((rtems_unsigned32 *)key_data - Data_array) ); 41 41 if ( status ) 42 42 printf( "status = %d\n", status ); -
c/src/tests/psxtests/psx06/task2.c
rde4f281 rf8700f77 39 39 key_data = pthread_getspecific( Key_id ); 40 40 printf( "Task_2: Got the key value of %ld\n", 41 ( rtems_unsigned32 *)key_data - Data_array);41 (unsigned long) ((rtems_unsigned32 *)key_data - Data_array) ); 42 42 if ( status ) 43 43 printf( "status = %d\n", status ); -
c/src/tests/sptests/sp15/system.h
rde4f281 rf8700f77 53 53 54 54 #define Put_address_from_area_1( _to_be_printed ) \ 55 printf( "0x%08lx", ((rtems_unsigned8 *)(_to_be_printed)) - Area_1 ) 55 printf( "0x%08lx", \ 56 (unsigned long)((rtems_unsigned8 *)(_to_be_printed) - Area_1 ) ) 56 57 57 58 #define Put_address_from_area_2( _to_be_printed ) \ 58 printf( "0x%08lx", ((rtems_unsigned8 *)(_to_be_printed)) - Area_2 ) 59 printf( "0x%08lx", \ 60 (unsigned long)((rtems_unsigned8 *)(_to_be_printed) - Area_2 ) ) 59 61 60 62 /* end of include file */ -
c/src/tests/sptests/sp16/system.h
rde4f281 rf8700f77 72 72 73 73 #define Put_address_from_area_1( _to_be_printed ) \ 74 printf( "0x%08lx", ((rtems_unsigned8 *)(_to_be_printed)) - Area_1 ) 74 printf( "0x%08lx", \ 75 (unsigned long) ((rtems_unsigned8 *)(_to_be_printed) - Area_1 ) ) 75 76 76 77 #define Put_address_from_area_2( _to_be_printed ) \ 77 printf( "0x%08lx", ((rtems_unsigned8 *)(_to_be_printed)) - Area_2 ) 78 printf( "0x%08lx", \ 79 (unsigned long) ((rtems_unsigned8 *)(_to_be_printed) - Area_2 ) ) 78 80 79 81 #define Put_address_from_area_3( _to_be_printed ) \ 80 printf( "0x%08lx", ((rtems_unsigned8 *)(_to_be_printed)) - Area_3 ) 82 printf( "0x%08lx", \ 83 (unsigned long) ((rtems_unsigned8 *)(_to_be_printed) - Area_3 ) ) 81 84 82 85 #define Put_address_from_area_4( _to_be_printed ) \ 83 printf( "0x%08lx", ((rtems_unsigned8 *)(_to_be_printed)) - Area_4 ) 86 printf( "0x%08lx", \ 87 (unsigned long) ((rtems_unsigned8 *)(_to_be_printed) - Area_4 ) ) 84 88 85 89 /* end of include file */ -
c/src/tests/sptests/sp25/system.h
rde4f281 rf8700f77 52 52 53 53 #define Put_address_from_area_1( _to_be_printed ) \ 54 printf( "0x%08lx", ((rtems_unsigned8 *)(_to_be_printed)) - Area_1 ) 54 printf( "0x%08lx", \ 55 (unsigned long) ((rtems_unsigned8 *)(_to_be_printed) - Area_1 ) ) 55 56 56 57 /* end of include file */ -
c/src/tests/sptests/spsize/size.c
rde4f281 rf8700f77 60 60 61 61 #define PER_TASK \ 62 ( sizeof (Thread_Control) + \62 (long) (sizeof (Thread_Control) + \ 63 63 NAME_PTR_SIZE + HEAP_OVHD + sizeof( RTEMS_API_Control )) 64 64 #define PER_SEMAPHORE \ 65 ( sizeof (Semaphore_Control) + NAME_PTR_SIZE)65 (long) (sizeof (Semaphore_Control) + NAME_PTR_SIZE) 66 66 #define PER_TIMER \ 67 ( sizeof (Timer_Control) + NAME_PTR_SIZE)67 (long) (sizeof (Timer_Control) + NAME_PTR_SIZE) 68 68 #define PER_MSGQ \ 69 ( sizeof (Message_queue_Control) + NAME_PTR_SIZE)69 (long) (sizeof (Message_queue_Control) + NAME_PTR_SIZE) 70 70 #define PER_REGN \ 71 ( sizeof (Region_Control) + NAME_PTR_SIZE)71 (long) (sizeof (Region_Control) + NAME_PTR_SIZE) 72 72 #define PER_PART \ 73 ( sizeof (Partition_Control) + NAME_PTR_SIZE)73 (long) (sizeof (Partition_Control) + NAME_PTR_SIZE) 74 74 #define PER_PERIOD \ 75 ( sizeof (Rate_monotonic_Control) + NAME_PTR_SIZE)75 (long) (sizeof (Rate_monotonic_Control) + NAME_PTR_SIZE) 76 76 #define PER_PORT \ 77 ( sizeof (Dual_ported_memory_Control) + NAME_PTR_SIZE)77 (long) (sizeof (Dual_ported_memory_Control) + NAME_PTR_SIZE) 78 78 #define PER_EXTENSION \ 79 ( sizeof (Extension_Control) + NAME_PTR_SIZE)80 81 #define PER_DRV ( 0)82 #define PER_FPTASK ( CONTEXT_FP_SIZE)83 #define PER_GOBTBL ( sizeof (Chain_Control)*4)84 #define PER_NODE PER_GOBTBL85 #define PER_GOBJECT ( sizeof (Objects_MP_Control))86 #define PER_PROXY ( sizeof (Thread_Proxy_control))79 (long) (sizeof (Extension_Control) + NAME_PTR_SIZE) 80 81 #define PER_DRV (long) (0) 82 #define PER_FPTASK (long) (CONTEXT_FP_SIZE) 83 #define PER_GOBTBL (long) (sizeof (Chain_Control)*4) 84 #define PER_NODE (long) PER_GOBTBL 85 #define PER_GOBJECT (long) (sizeof (Objects_MP_Control)) 86 #define PER_PROXY (long) (sizeof (Thread_Proxy_control)) 87 87 88 88 #if (CPU_ALL_TASKS_ARE_FP == TRUE) 89 #define MPCI_RECEIVE_SERVER_FP ( sizeof( Context_Control_fp ))89 #define MPCI_RECEIVE_SERVER_FP (long) (sizeof( Context_Control_fp )) 90 90 #else 91 #define MPCI_RECEIVE_SERVER_FP 091 #define MPCI_RECEIVE_SERVER_FP (long) 0 92 92 #endif 93 93 94 94 #if (CPU_IDLE_TASK_IS_FP == TRUE) 95 #define SYSTEM_IDLE_FP ( sizeof( Context_Control_fp ))95 #define SYSTEM_IDLE_FP (long) (sizeof( Context_Control_fp )) 96 96 #else 97 #define SYSTEM_IDLE_FP 097 #define SYSTEM_IDLE_FP (long) 0 98 98 #endif 99 99 … … 585 585 printf( "\n\n" ); 586 586 printf( " ************** EXECUTIVE WORK SPACE REQUIRED **************\n" ); 587 printf( " Tasks - %03d * %03 d = %d\n",588 maximum_tasks, PER_TASK, size_tasks );589 printf( " Semaphores - %03d * %03 d = %d\n",590 maximum_sems, PER_SEMAPHORE, size_sems );591 printf( " Timers - %03d * %03 d = %d\n",592 maximum_timers, PER_TIMER, size_timers );593 printf( " Msg Queues - %03d * %03 d = %d\n",594 maximum_msgqs, PER_MSGQ, size_msgqs );595 printf( " Messages Overhead - %03d * %03d = % d\n",596 maximum_msgs, 0 /* PER_MSG_OVERHEAD */, size_msgs_overhead );597 printf( " Regions - %03d * %03 d = %d\n",598 maximum_regns, PER_REGN, size_regns);599 printf( " Partitions - %03d * %03 d = %d\n",600 maximum_parts, PER_PART, size_parts );601 printf( " Periods - %03d * %03 d = %d\n",602 maximum_periods, PER_PERIOD, size_periods );603 printf( " Extensions - %03d * %03 d = %d\n",604 maximum_extensions, PER_EXTENSION, size_extensions );605 printf( " Device Drivers - %03d * %03 d = %d\n",606 maximum_drvs, PER_DRV, size_drvs );587 printf( " Tasks - %03d * %03ld = %ld\n", 588 maximum_tasks, PER_TASK, (long) size_tasks ); 589 printf( " Semaphores - %03d * %03ld = %ld\n", 590 maximum_sems, PER_SEMAPHORE, (long) size_sems ); 591 printf( " Timers - %03d * %03ld = %ld\n", 592 maximum_timers, PER_TIMER, (long) size_timers ); 593 printf( " Msg Queues - %03d * %03ld = %ld\n", 594 maximum_msgqs, PER_MSGQ, (long) size_msgqs ); 595 printf( " Messages Overhead - %03d * %03d = %ld\n", 596 maximum_msgs, 0 /* PER_MSG_OVERHEAD */, (long) size_msgs_overhead ); 597 printf( " Regions - %03d * %03ld = %ld\n", 598 maximum_regns, PER_REGN, (long) size_regns); 599 printf( " Partitions - %03d * %03ld = %ld\n", 600 maximum_parts, PER_PART, (long) size_parts ); 601 printf( " Periods - %03d * %03ld = %ld\n", 602 maximum_periods, PER_PERIOD, (long) size_periods ); 603 printf( " Extensions - %03d * %03ld = %ld\n", 604 maximum_extensions, PER_EXTENSION, (long) size_extensions ); 605 printf( " Device Drivers - %03d * %03ld = %ld\n", 606 maximum_drvs, PER_DRV, (long) size_drvs ); 607 607 608 608 printf( " System Requirements - %04d = %d\n", 609 609 sys_req, sys_req ); 610 610 611 printf( " Floating Point Tasks - %03d * %03 d = %d\n",612 maximum_fps, PER_FPTASK, size_fps );611 printf( " Floating Point Tasks - %03d * %03ld = %ld\n", 612 maximum_fps, PER_FPTASK, (long) size_fps ); 613 613 printf( " Application Task Stacks - = %d\n", 614 614 task_stacks ); … … 616 616 task_stacks ); 617 617 printf( " \n" ); 618 printf( " Global object tables - %03d * %03 d = %d\n",619 maximum_nodes, PER_NODE, size_nodes );620 printf( " Global objects - %03d * %03 d = %d\n",621 maximum_gobjs, PER_GOBJECT, size_gobjs );622 printf( " Proxies - %03d * %03 d = %d\n",623 maximum_proxies, PER_PROXY, size_proxies );618 printf( " Global object tables - %03d * %03ld = %ld\n", 619 maximum_nodes, PER_NODE, (long) size_nodes ); 620 printf( " Global objects - %03d * %03ld = %ld\n", 621 maximum_gobjs, PER_GOBJECT, (long) size_gobjs ); 622 printf( " Proxies - %03d * %03ld = %ld\n", 623 maximum_proxies, PER_PROXY, (long) size_proxies ); 624 624 printf( "\n\n" ); 625 625 printf( " TOTAL = %d bytes\n", … … 630 630 { 631 631 printf( " ************** EXECUTIVE WORK SPACE FORMULA **************\n" ); 632 printf( " Tasks - maximum_tasks * % d\n", PER_TASK );633 printf( " Timers - maximum_timers * % d\n", PER_TIMER );634 printf( " Semaphores - maximum_semaphores * % d\n", PER_SEMAPHORE);635 printf( " Message Queues - maximum_message_queues * % d\n", PER_MSGQ );632 printf( " Tasks - maximum_tasks * %ld\n", PER_TASK ); 633 printf( " Timers - maximum_timers * %ld\n", PER_TIMER ); 634 printf( " Semaphores - maximum_semaphores * %ld\n", PER_SEMAPHORE); 635 printf( " Message Queues - maximum_message_queues * %ld\n", PER_MSGQ ); 636 636 printf( " Messages -\n"); 637 printf( " Regions - maximum_regions * % d\n", PER_REGN );638 printf( " Partitions - maximum_partitions * % d\n", PER_PART );639 printf( " Ports - maximum_ports * % d\n", PER_PORT );640 printf( " Periods - maximum_periods * % d\n", PER_PORT );641 printf( " Extensions - maximum_extensions * % d\n", PER_EXTENSION );642 printf( " Device Drivers - number_of_device_drivers * % d\n", PER_DRV);643 printf( " System Requirements - %d\n", sys_req );644 printf( " Floating Point Tasks - FPMASK Tasks * % d\n", CONTEXT_FP_SIZE);637 printf( " Regions - maximum_regions * %ld\n", PER_REGN ); 638 printf( " Partitions - maximum_partitions * %ld\n", PER_PART ); 639 printf( " Ports - maximum_ports * %ld\n", PER_PORT ); 640 printf( " Periods - maximum_periods * %ld\n", PER_PORT ); 641 printf( " Extensions - maximum_extensions * %ld\n", PER_EXTENSION ); 642 printf( " Device Drivers - number_of_device_drivers * %ld\n", PER_DRV); 643 printf( " System Requirements - %d\n", sys_req ); 644 printf( " Floating Point Tasks - FPMASK Tasks * %ld\n", PER_FPTASK ); 645 645 printf( " User's Tasks' Stacks -\n" ); 646 646 printf( " Interrupt Stack -\n" ); 647 647 printf( " \n" ); 648 printf( " Global object tables - maximum_nodes * % d\n", PER_NODE );649 printf( " Global objects - maximum_global_objects * % d\n", PER_GOBJECT );650 printf( " Proxies - maximum_proxies * % d\n", PER_PROXY );648 printf( " Global object tables - maximum_nodes * %ld\n", PER_NODE ); 649 printf( " Global objects - maximum_global_objects * %ld\n", PER_GOBJECT ); 650 printf( " Proxies - maximum_proxies * %ld\n", PER_PROXY ); 651 651 } -
testsuites/psxtests/psx06/init.c
rde4f281 rf8700f77 96 96 key_data = pthread_getspecific( Key_id ); 97 97 printf( "Init: Got the key value of %ld\n", 98 ( rtems_unsigned32 *)key_data - Data_array);98 (unsigned long) ((rtems_unsigned32 *)key_data - Data_array) ); 99 99 100 100 remaining = sleep( 3 ); -
testsuites/psxtests/psx06/task.c
rde4f281 rf8700f77 38 38 key_data = pthread_getspecific( Key_id ); 39 39 printf( "Task_1: Got the key value of %ld\n", 40 ( rtems_unsigned32 *)key_data - Data_array);40 (unsigned long) ((rtems_unsigned32 *)key_data - Data_array) ); 41 41 if ( status ) 42 42 printf( "status = %d\n", status ); -
testsuites/psxtests/psx06/task2.c
rde4f281 rf8700f77 39 39 key_data = pthread_getspecific( Key_id ); 40 40 printf( "Task_2: Got the key value of %ld\n", 41 ( rtems_unsigned32 *)key_data - Data_array);41 (unsigned long) ((rtems_unsigned32 *)key_data - Data_array) ); 42 42 if ( status ) 43 43 printf( "status = %d\n", status ); -
testsuites/sptests/sp15/system.h
rde4f281 rf8700f77 53 53 54 54 #define Put_address_from_area_1( _to_be_printed ) \ 55 printf( "0x%08lx", ((rtems_unsigned8 *)(_to_be_printed)) - Area_1 ) 55 printf( "0x%08lx", \ 56 (unsigned long)((rtems_unsigned8 *)(_to_be_printed) - Area_1 ) ) 56 57 57 58 #define Put_address_from_area_2( _to_be_printed ) \ 58 printf( "0x%08lx", ((rtems_unsigned8 *)(_to_be_printed)) - Area_2 ) 59 printf( "0x%08lx", \ 60 (unsigned long)((rtems_unsigned8 *)(_to_be_printed) - Area_2 ) ) 59 61 60 62 /* end of include file */ -
testsuites/sptests/sp16/system.h
rde4f281 rf8700f77 72 72 73 73 #define Put_address_from_area_1( _to_be_printed ) \ 74 printf( "0x%08lx", ((rtems_unsigned8 *)(_to_be_printed)) - Area_1 ) 74 printf( "0x%08lx", \ 75 (unsigned long) ((rtems_unsigned8 *)(_to_be_printed) - Area_1 ) ) 75 76 76 77 #define Put_address_from_area_2( _to_be_printed ) \ 77 printf( "0x%08lx", ((rtems_unsigned8 *)(_to_be_printed)) - Area_2 ) 78 printf( "0x%08lx", \ 79 (unsigned long) ((rtems_unsigned8 *)(_to_be_printed) - Area_2 ) ) 78 80 79 81 #define Put_address_from_area_3( _to_be_printed ) \ 80 printf( "0x%08lx", ((rtems_unsigned8 *)(_to_be_printed)) - Area_3 ) 82 printf( "0x%08lx", \ 83 (unsigned long) ((rtems_unsigned8 *)(_to_be_printed) - Area_3 ) ) 81 84 82 85 #define Put_address_from_area_4( _to_be_printed ) \ 83 printf( "0x%08lx", ((rtems_unsigned8 *)(_to_be_printed)) - Area_4 ) 86 printf( "0x%08lx", \ 87 (unsigned long) ((rtems_unsigned8 *)(_to_be_printed) - Area_4 ) ) 84 88 85 89 /* end of include file */ -
testsuites/sptests/sp25/system.h
rde4f281 rf8700f77 52 52 53 53 #define Put_address_from_area_1( _to_be_printed ) \ 54 printf( "0x%08lx", ((rtems_unsigned8 *)(_to_be_printed)) - Area_1 ) 54 printf( "0x%08lx", \ 55 (unsigned long) ((rtems_unsigned8 *)(_to_be_printed) - Area_1 ) ) 55 56 56 57 /* end of include file */ -
testsuites/sptests/spsize/size.c
rde4f281 rf8700f77 60 60 61 61 #define PER_TASK \ 62 ( sizeof (Thread_Control) + \62 (long) (sizeof (Thread_Control) + \ 63 63 NAME_PTR_SIZE + HEAP_OVHD + sizeof( RTEMS_API_Control )) 64 64 #define PER_SEMAPHORE \ 65 ( sizeof (Semaphore_Control) + NAME_PTR_SIZE)65 (long) (sizeof (Semaphore_Control) + NAME_PTR_SIZE) 66 66 #define PER_TIMER \ 67 ( sizeof (Timer_Control) + NAME_PTR_SIZE)67 (long) (sizeof (Timer_Control) + NAME_PTR_SIZE) 68 68 #define PER_MSGQ \ 69 ( sizeof (Message_queue_Control) + NAME_PTR_SIZE)69 (long) (sizeof (Message_queue_Control) + NAME_PTR_SIZE) 70 70 #define PER_REGN \ 71 ( sizeof (Region_Control) + NAME_PTR_SIZE)71 (long) (sizeof (Region_Control) + NAME_PTR_SIZE) 72 72 #define PER_PART \ 73 ( sizeof (Partition_Control) + NAME_PTR_SIZE)73 (long) (sizeof (Partition_Control) + NAME_PTR_SIZE) 74 74 #define PER_PERIOD \ 75 ( sizeof (Rate_monotonic_Control) + NAME_PTR_SIZE)75 (long) (sizeof (Rate_monotonic_Control) + NAME_PTR_SIZE) 76 76 #define PER_PORT \ 77 ( sizeof (Dual_ported_memory_Control) + NAME_PTR_SIZE)77 (long) (sizeof (Dual_ported_memory_Control) + NAME_PTR_SIZE) 78 78 #define PER_EXTENSION \ 79 ( sizeof (Extension_Control) + NAME_PTR_SIZE)80 81 #define PER_DRV ( 0)82 #define PER_FPTASK ( CONTEXT_FP_SIZE)83 #define PER_GOBTBL ( sizeof (Chain_Control)*4)84 #define PER_NODE PER_GOBTBL85 #define PER_GOBJECT ( sizeof (Objects_MP_Control))86 #define PER_PROXY ( sizeof (Thread_Proxy_control))79 (long) (sizeof (Extension_Control) + NAME_PTR_SIZE) 80 81 #define PER_DRV (long) (0) 82 #define PER_FPTASK (long) (CONTEXT_FP_SIZE) 83 #define PER_GOBTBL (long) (sizeof (Chain_Control)*4) 84 #define PER_NODE (long) PER_GOBTBL 85 #define PER_GOBJECT (long) (sizeof (Objects_MP_Control)) 86 #define PER_PROXY (long) (sizeof (Thread_Proxy_control)) 87 87 88 88 #if (CPU_ALL_TASKS_ARE_FP == TRUE) 89 #define MPCI_RECEIVE_SERVER_FP ( sizeof( Context_Control_fp ))89 #define MPCI_RECEIVE_SERVER_FP (long) (sizeof( Context_Control_fp )) 90 90 #else 91 #define MPCI_RECEIVE_SERVER_FP 091 #define MPCI_RECEIVE_SERVER_FP (long) 0 92 92 #endif 93 93 94 94 #if (CPU_IDLE_TASK_IS_FP == TRUE) 95 #define SYSTEM_IDLE_FP ( sizeof( Context_Control_fp ))95 #define SYSTEM_IDLE_FP (long) (sizeof( Context_Control_fp )) 96 96 #else 97 #define SYSTEM_IDLE_FP 097 #define SYSTEM_IDLE_FP (long) 0 98 98 #endif 99 99 … … 585 585 printf( "\n\n" ); 586 586 printf( " ************** EXECUTIVE WORK SPACE REQUIRED **************\n" ); 587 printf( " Tasks - %03d * %03 d = %d\n",588 maximum_tasks, PER_TASK, size_tasks );589 printf( " Semaphores - %03d * %03 d = %d\n",590 maximum_sems, PER_SEMAPHORE, size_sems );591 printf( " Timers - %03d * %03 d = %d\n",592 maximum_timers, PER_TIMER, size_timers );593 printf( " Msg Queues - %03d * %03 d = %d\n",594 maximum_msgqs, PER_MSGQ, size_msgqs );595 printf( " Messages Overhead - %03d * %03d = % d\n",596 maximum_msgs, 0 /* PER_MSG_OVERHEAD */, size_msgs_overhead );597 printf( " Regions - %03d * %03 d = %d\n",598 maximum_regns, PER_REGN, size_regns);599 printf( " Partitions - %03d * %03 d = %d\n",600 maximum_parts, PER_PART, size_parts );601 printf( " Periods - %03d * %03 d = %d\n",602 maximum_periods, PER_PERIOD, size_periods );603 printf( " Extensions - %03d * %03 d = %d\n",604 maximum_extensions, PER_EXTENSION, size_extensions );605 printf( " Device Drivers - %03d * %03 d = %d\n",606 maximum_drvs, PER_DRV, size_drvs );587 printf( " Tasks - %03d * %03ld = %ld\n", 588 maximum_tasks, PER_TASK, (long) size_tasks ); 589 printf( " Semaphores - %03d * %03ld = %ld\n", 590 maximum_sems, PER_SEMAPHORE, (long) size_sems ); 591 printf( " Timers - %03d * %03ld = %ld\n", 592 maximum_timers, PER_TIMER, (long) size_timers ); 593 printf( " Msg Queues - %03d * %03ld = %ld\n", 594 maximum_msgqs, PER_MSGQ, (long) size_msgqs ); 595 printf( " Messages Overhead - %03d * %03d = %ld\n", 596 maximum_msgs, 0 /* PER_MSG_OVERHEAD */, (long) size_msgs_overhead ); 597 printf( " Regions - %03d * %03ld = %ld\n", 598 maximum_regns, PER_REGN, (long) size_regns); 599 printf( " Partitions - %03d * %03ld = %ld\n", 600 maximum_parts, PER_PART, (long) size_parts ); 601 printf( " Periods - %03d * %03ld = %ld\n", 602 maximum_periods, PER_PERIOD, (long) size_periods ); 603 printf( " Extensions - %03d * %03ld = %ld\n", 604 maximum_extensions, PER_EXTENSION, (long) size_extensions ); 605 printf( " Device Drivers - %03d * %03ld = %ld\n", 606 maximum_drvs, PER_DRV, (long) size_drvs ); 607 607 608 608 printf( " System Requirements - %04d = %d\n", 609 609 sys_req, sys_req ); 610 610 611 printf( " Floating Point Tasks - %03d * %03 d = %d\n",612 maximum_fps, PER_FPTASK, size_fps );611 printf( " Floating Point Tasks - %03d * %03ld = %ld\n", 612 maximum_fps, PER_FPTASK, (long) size_fps ); 613 613 printf( " Application Task Stacks - = %d\n", 614 614 task_stacks ); … … 616 616 task_stacks ); 617 617 printf( " \n" ); 618 printf( " Global object tables - %03d * %03 d = %d\n",619 maximum_nodes, PER_NODE, size_nodes );620 printf( " Global objects - %03d * %03 d = %d\n",621 maximum_gobjs, PER_GOBJECT, size_gobjs );622 printf( " Proxies - %03d * %03 d = %d\n",623 maximum_proxies, PER_PROXY, size_proxies );618 printf( " Global object tables - %03d * %03ld = %ld\n", 619 maximum_nodes, PER_NODE, (long) size_nodes ); 620 printf( " Global objects - %03d * %03ld = %ld\n", 621 maximum_gobjs, PER_GOBJECT, (long) size_gobjs ); 622 printf( " Proxies - %03d * %03ld = %ld\n", 623 maximum_proxies, PER_PROXY, (long) size_proxies ); 624 624 printf( "\n\n" ); 625 625 printf( " TOTAL = %d bytes\n", … … 630 630 { 631 631 printf( " ************** EXECUTIVE WORK SPACE FORMULA **************\n" ); 632 printf( " Tasks - maximum_tasks * % d\n", PER_TASK );633 printf( " Timers - maximum_timers * % d\n", PER_TIMER );634 printf( " Semaphores - maximum_semaphores * % d\n", PER_SEMAPHORE);635 printf( " Message Queues - maximum_message_queues * % d\n", PER_MSGQ );632 printf( " Tasks - maximum_tasks * %ld\n", PER_TASK ); 633 printf( " Timers - maximum_timers * %ld\n", PER_TIMER ); 634 printf( " Semaphores - maximum_semaphores * %ld\n", PER_SEMAPHORE); 635 printf( " Message Queues - maximum_message_queues * %ld\n", PER_MSGQ ); 636 636 printf( " Messages -\n"); 637 printf( " Regions - maximum_regions * % d\n", PER_REGN );638 printf( " Partitions - maximum_partitions * % d\n", PER_PART );639 printf( " Ports - maximum_ports * % d\n", PER_PORT );640 printf( " Periods - maximum_periods * % d\n", PER_PORT );641 printf( " Extensions - maximum_extensions * % d\n", PER_EXTENSION );642 printf( " Device Drivers - number_of_device_drivers * % d\n", PER_DRV);643 printf( " System Requirements - %d\n", sys_req );644 printf( " Floating Point Tasks - FPMASK Tasks * % d\n", CONTEXT_FP_SIZE);637 printf( " Regions - maximum_regions * %ld\n", PER_REGN ); 638 printf( " Partitions - maximum_partitions * %ld\n", PER_PART ); 639 printf( " Ports - maximum_ports * %ld\n", PER_PORT ); 640 printf( " Periods - maximum_periods * %ld\n", PER_PORT ); 641 printf( " Extensions - maximum_extensions * %ld\n", PER_EXTENSION ); 642 printf( " Device Drivers - number_of_device_drivers * %ld\n", PER_DRV); 643 printf( " System Requirements - %d\n", sys_req ); 644 printf( " Floating Point Tasks - FPMASK Tasks * %ld\n", PER_FPTASK ); 645 645 printf( " User's Tasks' Stacks -\n" ); 646 646 printf( " Interrupt Stack -\n" ); 647 647 printf( " \n" ); 648 printf( " Global object tables - maximum_nodes * % d\n", PER_NODE );649 printf( " Global objects - maximum_global_objects * % d\n", PER_GOBJECT );650 printf( " Proxies - maximum_proxies * % d\n", PER_PROXY );648 printf( " Global object tables - maximum_nodes * %ld\n", PER_NODE ); 649 printf( " Global objects - maximum_global_objects * %ld\n", PER_GOBJECT ); 650 printf( " Proxies - maximum_proxies * %ld\n", PER_PROXY ); 651 651 }
Note: See TracChangeset
for help on using the changeset viewer.