Changeset 0720ff4 in rtems
- Timestamp:
- 03/28/04 07:20:11 (20 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- c50e978
- Parents:
- 02c7c81
- Location:
- testsuites/tmtests
- Files:
-
- 32 edited
Legend:
- Unmodified
- Added
- Removed
-
testsuites/tmtests/ChangeLog
r02c7c81 r0720ff4 1 2004-03-28 Ralf Corsepius <ralf_corsepius@rtems.org> 2 3 * include/timesys.h, tm01/task1.c, tm02/task1.c, tm03/task1.c, 4 tm04/task1.c, tm05/task1.c, tm06/task1.c, tm07/task1.c, 5 tm08/task1.c, tm09/task1.c, tm10/task1.c, tm11/task1.c, 6 tm12/task1.c, tm13/task1.c, tm14/task1.c, tm15/task1.c, 7 tm16/task1.c, tm17/task1.c, tm18/task1.c, tm20/task1.c, 8 tm21/task1.c, tm22/task1.c, tm23/task1.c, tm24/task1.c, 9 tm25/task1.c, tm26/task1.c, tm27/task1.c, tm28/task1.c, 10 tm29/task1.c, tmck/task1.c, tmoverhd/testtask.c: Convert to using 11 c99 fixed size types. 12 1 13 2004-03-25 Ralf Corsepius <corsepiu@faw.uni-ulm.de> 2 14 -
testsuites/tmtests/include/timesys.h
r02c7c81 r0720ff4 58 58 /* variables */ 59 59 60 TEST_EXTERN volatile rtems_unsigned32end_time; /* ending time variable */61 TEST_EXTERN volatile rtems_unsigned32overhead; /* loop overhead variable */60 TEST_EXTERN volatile uint32_t end_time; /* ending time variable */ 61 TEST_EXTERN volatile uint32_t overhead; /* loop overhead variable */ 62 62 63 63 TEST_EXTERN rtems_id Task_id[ OPERATION_COUNT+1 ]; /* array of task ids */ -
testsuites/tmtests/tm01/task1.c
r02c7c81 r0720ff4 54 54 ) 55 55 { 56 rtems_unsigned32semaphore_obtain_time;57 rtems_unsigned32semaphore_release_time;58 rtems_unsigned32semaphore_obtain_no_wait_time;59 rtems_unsigned32semaphore_obtain_loop_time;60 rtems_unsigned32semaphore_release_loop_time;61 rtems_unsigned32index;62 rtems_unsigned32iterations;56 uint32_t semaphore_obtain_time; 57 uint32_t semaphore_release_time; 58 uint32_t semaphore_obtain_no_wait_time; 59 uint32_t semaphore_obtain_loop_time; 60 uint32_t semaphore_release_loop_time; 61 uint32_t index; 62 uint32_t iterations; 63 63 rtems_name name; 64 64 rtems_id smid; -
testsuites/tmtests/tm02/task1.c
r02c7c81 r0720ff4 52 52 { 53 53 rtems_status_code status; 54 rtems_unsigned32index;54 uint32_t index; 55 55 rtems_task_priority priority; 56 56 -
testsuites/tmtests/tm03/task1.c
r02c7c81 r0720ff4 60 60 { 61 61 rtems_status_code status; 62 rtems_unsigned32index;62 uint32_t index; 63 63 rtems_id task_id; 64 64 rtems_task_priority priority; -
testsuites/tmtests/tm04/task1.c
r02c7c81 r0720ff4 16 16 rtems_id Semaphore_id; 17 17 rtems_id Task_id[OPERATION_COUNT+1]; 18 rtems_unsigned32task_count;18 uint32_t task_count; 19 19 rtems_id Highest_id; 20 20 … … 52 52 { 53 53 rtems_status_code status; 54 rtems_unsigned32index;54 uint32_t index; 55 55 56 56 task_count = OPERATION_COUNT; … … 137 137 { 138 138 rtems_status_code status; 139 rtems_unsigned32index;139 uint32_t index; 140 140 rtems_name name; 141 141 rtems_task_priority old_priority; -
testsuites/tmtests/tm05/task1.c
r02c7c81 r0720ff4 15 15 16 16 rtems_id Task_id[OPERATION_COUNT+1]; 17 rtems_unsigned32Task_index;17 uint32_t Task_index; 18 18 19 19 rtems_task High_task( … … 52 52 rtems_task_entry task_entry; 53 53 rtems_task_priority priority; 54 rtems_unsigned32index;54 uint32_t index; 55 55 56 56 priority = 250; -
testsuites/tmtests/tm06/task1.c
r02c7c81 r0720ff4 16 16 rtems_id Task_id[ OPERATION_COUNT + 1 ]; 17 17 18 rtems_unsigned32Task_restarted;18 uint32_t Task_restarted; 19 19 20 20 rtems_task null_task( … … 70 70 { 71 71 rtems_status_code status; 72 rtems_unsigned32index;72 uint32_t index; 73 73 74 74 if ( Task_restarted == OPERATION_COUNT ) -
testsuites/tmtests/tm07/task1.c
r02c7c81 r0720ff4 51 51 rtems_task_priority priority; 52 52 rtems_task_entry task_entry; 53 rtems_unsigned32index;53 uint32_t index; 54 54 55 55 priority = 250; -
testsuites/tmtests/tm08/task1.c
r02c7c81 r0720ff4 76 76 { 77 77 rtems_status_code status; 78 rtems_unsigned32index;78 uint32_t index; 79 79 rtems_task_priority old_priority; 80 80 rtems_time_of_day time; 81 rtems_unsigned32old_note;82 rtems_unsigned32old_mode;81 uint32_t old_note; 82 uint32_t old_mode; 83 83 84 84 Timer_initialize(); -
testsuites/tmtests/tm09/task1.c
r02c7c81 r0720ff4 92 92 void queue_test() 93 93 { 94 rtems_unsigned32send_loop_time;95 rtems_unsigned32urgent_loop_time;96 rtems_unsigned32receive_loop_time;97 rtems_unsigned32send_time;98 rtems_unsigned32urgent_time;99 rtems_unsigned32receive_time;100 rtems_unsigned32empty_flush_time;101 rtems_unsigned32flush_time;102 rtems_unsigned32empty_flush_count;103 rtems_unsigned32flush_count;104 rtems_unsigned32index;105 rtems_unsigned32iterations;94 uint32_t send_loop_time; 95 uint32_t urgent_loop_time; 96 uint32_t receive_loop_time; 97 uint32_t send_time; 98 uint32_t urgent_time; 99 uint32_t receive_time; 100 uint32_t empty_flush_time; 101 uint32_t flush_time; 102 uint32_t empty_flush_count; 103 uint32_t flush_count; 104 uint32_t index; 105 uint32_t iterations; 106 106 long buffer[4]; 107 107 rtems_status_code status; 108 rtems_unsigned32size;108 uint32_t size; 109 109 110 110 send_loop_time = 0; -
testsuites/tmtests/tm10/task1.c
r02c7c81 r0720ff4 49 49 void test_init() 50 50 { 51 rtems_unsigned32index;52 rtems_unsigned32size;51 uint32_t index; 52 uint32_t size; 53 53 rtems_task_entry task_entry; 54 54 rtems_status_code status; … … 118 118 ) 119 119 { 120 rtems_unsigned32size;120 uint32_t size; 121 121 122 122 Timer_initialize(); … … 134 134 ) 135 135 { 136 rtems_unsigned32size;136 uint32_t size; 137 137 138 138 (void) rtems_message_queue_receive( -
testsuites/tmtests/tm11/task1.c
r02c7c81 r0720ff4 65 65 ) 66 66 { 67 rtems_unsigned32index;67 uint32_t index; 68 68 rtems_task_entry task_entry; 69 69 rtems_task_priority priority; … … 115 115 ) 116 116 { 117 rtems_unsigned32size;117 uint32_t size; 118 118 119 119 (void) rtems_message_queue_receive( … … 132 132 ) 133 133 { 134 rtems_unsigned32size;134 uint32_t size; 135 135 136 136 (void) rtems_message_queue_receive( -
testsuites/tmtests/tm12/task1.c
r02c7c81 r0720ff4 64 64 ) 65 65 { 66 rtems_unsigned32index;66 uint32_t index; 67 67 rtems_task_entry task_entry; 68 68 rtems_task_priority priority; … … 107 107 ) 108 108 { 109 rtems_unsigned32index;109 uint32_t index; 110 110 111 111 Timer_initialize(); … … 135 135 ) 136 136 { 137 rtems_unsigned32size;137 uint32_t size; 138 138 139 139 (void) rtems_message_queue_receive( -
testsuites/tmtests/tm13/task1.c
r02c7c81 r0720ff4 64 64 ) 65 65 { 66 rtems_unsigned32index;66 uint32_t index; 67 67 rtems_task_entry task_entry; 68 68 rtems_task_priority priority; … … 114 114 ) 115 115 { 116 rtems_unsigned32size;116 uint32_t size; 117 117 118 118 (void) rtems_message_queue_receive( … … 131 131 ) 132 132 { 133 rtems_unsigned32size;133 uint32_t size; 134 134 135 135 (void) rtems_message_queue_receive( -
testsuites/tmtests/tm14/task1.c
r02c7c81 r0720ff4 64 64 ) 65 65 { 66 rtems_unsigned32index;66 uint32_t index; 67 67 rtems_task_entry task_entry; 68 68 rtems_task_priority priority; … … 107 107 ) 108 108 { 109 rtems_unsigned32index;109 uint32_t index; 110 110 111 111 Timer_initialize(); … … 135 135 ) 136 136 { 137 rtems_unsigned32size;137 uint32_t size; 138 138 139 139 (void) rtems_message_queue_receive( -
testsuites/tmtests/tm15/task1.c
r02c7c81 r0720ff4 14 14 #include "system.h" 15 15 16 rtems_unsigned32time_set, eventout;16 uint32_t time_set, eventout; 17 17 18 18 rtems_task High_tasks( … … 45 45 { 46 46 rtems_id id; 47 rtems_unsigned32index;47 uint32_t index; 48 48 rtems_event_set event_out; 49 49 rtems_status_code status; … … 131 131 ) 132 132 { 133 rtems_unsigned32index;133 uint32_t index; 134 134 rtems_event_set event_out; 135 135 -
testsuites/tmtests/tm16/task1.c
r02c7c81 r0720ff4 14 14 #include "system.h" 15 15 16 rtems_unsigned32Task_count;16 uint32_t Task_count; 17 17 18 18 rtems_task test_init( … … 62 62 rtems_task_priority priority; 63 63 rtems_status_code status; 64 rtems_unsigned32index;64 uint32_t index; 65 65 rtems_task_entry task_entry; 66 66 -
testsuites/tmtests/tm17/task1.c
r02c7c81 r0720ff4 14 14 #include "system.h" 15 15 16 rtems_unsigned32Task_count;16 uint32_t Task_count; 17 17 rtems_task_priority Task_priority; 18 18 … … 34 34 { 35 35 rtems_task_entry task_entry; 36 rtems_unsigned32index;36 uint32_t index; 37 37 rtems_status_code status; 38 38 … … 105 105 ) 106 106 { 107 rtems_unsigned32index;107 uint32_t index; 108 108 109 109 end_time = Read_timer(); -
testsuites/tmtests/tm18/task1.c
r02c7c81 r0720ff4 14 14 #include "system.h" 15 15 16 rtems_unsigned32taskcount;16 uint32_t taskcount; 17 17 rtems_task_priority taskpri; 18 18 … … 52 52 rtems_id id; 53 53 rtems_task_entry task_entry; 54 rtems_unsigned32index;54 uint32_t index; 55 55 rtems_status_code status; 56 56 -
testsuites/tmtests/tm20/task1.c
r02c7c81 r0720ff4 19 19 rtems_id Region_id; 20 20 rtems_name Region_name; 21 rtems_unsigned8Region_area[ 2048 ] CPU_STRUCTURE_ALIGNMENT;21 uint8_t Region_area[ 2048 ] CPU_STRUCTURE_ALIGNMENT; 22 22 23 23 #define PARTITION_SIZE 2048 … … 28 28 rtems_id Partition_id; 29 29 rtems_name Partition_name; 30 rtems_unsigned8Partition_area[ PARTITION_SIZE ] CPU_STRUCTURE_ALIGNMENT;30 uint8_t Partition_area[ PARTITION_SIZE ] CPU_STRUCTURE_ALIGNMENT; 31 31 32 32 void *Buffer_address_1; … … 35 35 void *Buffer_address_4; 36 36 37 rtems_unsigned32buffer_count;37 uint32_t buffer_count; 38 38 39 39 void *Buffer_addresses[ PARTITION_BUFFER_POINTERS ]; … … 91 91 ) 92 92 { 93 rtems_unsigned32index;93 uint32_t index; 94 94 rtems_mode previous_mode; 95 95 rtems_task_priority previous_priority; -
testsuites/tmtests/tm21/task1.c
r02c7c81 r0720ff4 14 14 #include "system.h" 15 15 16 rtems_unsigned8Region_area[ 2048 ] CPU_STRUCTURE_ALIGNMENT;17 rtems_unsigned8Partition_area[ 2048 ] CPU_STRUCTURE_ALIGNMENT;16 uint8_t Region_area[ 2048 ] CPU_STRUCTURE_ALIGNMENT; 17 uint8_t Partition_area[ 2048 ] CPU_STRUCTURE_ALIGNMENT; 18 18 19 19 rtems_task Task_1( … … 55 55 ) 56 56 { 57 rtems_unsigned32index;57 uint32_t index; 58 58 rtems_id id; 59 59 rtems_status_code status; -
testsuites/tmtests/tm22/task1.c
r02c7c81 r0720ff4 86 86 ) 87 87 { 88 rtems_unsigned32count;88 uint32_t count; 89 89 rtems_status_code status; 90 90 … … 115 115 { 116 116 rtems_id id; 117 rtems_unsigned32index;118 rtems_unsigned32count;119 rtems_unsigned32size;117 uint32_t index; 118 uint32_t count; 119 uint32_t size; 120 120 rtems_status_code status; 121 121 … … 188 188 ) 189 189 { 190 rtems_unsigned32count;190 uint32_t count; 191 191 192 192 Timer_initialize(); -
testsuites/tmtests/tm23/task1.c
r02c7c81 r0720ff4 42 42 43 43 rtems_task_priority priority; 44 rtems_unsigned32index;44 uint32_t index; 45 45 rtems_id id; 46 46 rtems_task_entry task_entry; … … 94 94 ) 95 95 { 96 rtems_unsigned32index;96 uint32_t index; 97 97 rtems_status_code status; 98 98 int i; -
testsuites/tmtests/tm24/task1.c
r02c7c81 r0720ff4 14 14 #include "system.h" 15 15 16 rtems_unsigned32Task_count;16 uint32_t Task_count; 17 17 18 18 rtems_task Tasks( … … 29 29 { 30 30 rtems_id id; 31 rtems_unsigned32index;31 uint32_t index; 32 32 rtems_status_code status; 33 33 … … 72 72 { 73 73 rtems_status_code status; 74 rtems_unsigned32index;74 uint32_t index; 75 75 76 76 Timer_initialize(); -
testsuites/tmtests/tm25/task1.c
r02c7c81 r0720ff4 29 29 { 30 30 rtems_id task_id; 31 rtems_unsigned32index;31 uint32_t index; 32 32 rtems_status_code status; 33 33 -
testsuites/tmtests/tm26/task1.c
r02c7c81 r0720ff4 35 35 */ 36 36 37 rtems_unsigned32isr_disable_time;38 rtems_unsigned32isr_flash_time;39 rtems_unsigned32isr_enable_time;40 rtems_unsigned32thread_disable_dispatch_time;41 rtems_unsigned32thread_enable_dispatch_time;42 rtems_unsigned32thread_set_state_time;43 rtems_unsigned32thread_dispatch_no_fp_time;44 rtems_unsigned32context_switch_no_fp_time;45 rtems_unsigned32context_switch_self_time;46 rtems_unsigned32context_switch_another_task_time;47 rtems_unsigned32context_switch_restore_1st_fp_time;48 rtems_unsigned32context_switch_save_idle_restore_initted_time;49 rtems_unsigned32context_switch_save_restore_idle_time;50 rtems_unsigned32context_switch_save_restore_initted_time;51 rtems_unsigned32thread_resume_time;52 rtems_unsigned32thread_unblock_time;53 rtems_unsigned32thread_ready_time;54 rtems_unsigned32thread_get_time;55 rtems_unsigned32semaphore_get_time;56 rtems_unsigned32thread_get_invalid_time;37 uint32_t isr_disable_time; 38 uint32_t isr_flash_time; 39 uint32_t isr_enable_time; 40 uint32_t thread_disable_dispatch_time; 41 uint32_t thread_enable_dispatch_time; 42 uint32_t thread_set_state_time; 43 uint32_t thread_dispatch_no_fp_time; 44 uint32_t context_switch_no_fp_time; 45 uint32_t context_switch_self_time; 46 uint32_t context_switch_another_task_time; 47 uint32_t context_switch_restore_1st_fp_time; 48 uint32_t context_switch_save_idle_restore_initted_time; 49 uint32_t context_switch_save_restore_idle_time; 50 uint32_t context_switch_save_restore_initted_time; 51 uint32_t thread_resume_time; 52 uint32_t thread_unblock_time; 53 uint32_t thread_ready_time; 54 uint32_t thread_get_time; 55 uint32_t semaphore_get_time; 56 uint32_t thread_get_invalid_time; 57 57 58 58 rtems_task High_task( … … 88 88 ) 89 89 { 90 rtems_unsigned32index;90 uint32_t index; 91 91 rtems_id task_id; 92 92 rtems_status_code status; … … 377 377 void complete_test( void ) 378 378 { 379 rtems_unsigned32index;379 uint32_t index; 380 380 rtems_id task_id; 381 381 -
testsuites/tmtests/tm27/task1.c
r02c7c81 r0720ff4 31 31 ); 32 32 33 volatile rtems_unsigned32Interrupt_occurred;34 volatile rtems_unsigned32Interrupt_enter_time, Interrupt_enter_nested_time;35 volatile rtems_unsigned32Interrupt_return_time, Interrupt_return_nested_time;36 rtems_unsigned32Interrupt_nest;37 rtems_unsigned32timer_overhead;33 volatile uint32_t Interrupt_occurred; 34 volatile uint32_t Interrupt_enter_time, Interrupt_enter_nested_time; 35 volatile uint32_t Interrupt_return_time, Interrupt_return_nested_time; 36 uint32_t Interrupt_nest; 37 uint32_t timer_overhead; 38 38 39 39 rtems_isr Isr_handler( -
testsuites/tmtests/tm28/task1.c
r02c7c81 r0720ff4 16 16 rtems_id Port_id; 17 17 18 rtems_unsigned8Internal_area[ 256 ] CPU_STRUCTURE_ALIGNMENT;19 rtems_unsigned8External_area[ 256 ] CPU_STRUCTURE_ALIGNMENT;18 uint8_t Internal_area[ 256 ] CPU_STRUCTURE_ALIGNMENT; 19 uint8_t External_area[ 256 ] CPU_STRUCTURE_ALIGNMENT; 20 20 21 21 rtems_task Test_task( … … 55 55 { 56 56 rtems_name name; 57 rtems_unsigned32index;57 uint32_t index; 58 58 void *converted; 59 59 -
testsuites/tmtests/tm29/task1.c
r02c7c81 r0720ff4 24 24 ); 25 25 26 rtems_unsigned32Task_count;26 uint32_t Task_count; 27 27 28 28 rtems_task Init( … … 31 31 { 32 32 rtems_id id; 33 rtems_unsigned32index;33 uint32_t index; 34 34 rtems_status_code status; 35 35 … … 185 185 ) 186 186 { 187 rtems_unsigned32index;187 uint32_t index; 188 188 189 189 end_time = Read_timer(); -
testsuites/tmtests/tmck/task1.c
r02c7c81 r0720ff4 68 68 ) 69 69 { 70 rtems_unsigned32index;70 uint32_t index; 71 71 72 72 check_read_timer(); … … 142 142 void check_read_timer() 143 143 { 144 rtems_unsigned32index;145 rtems_unsigned32time;144 uint32_t index; 145 uint32_t time; 146 146 147 147 for ( index = 1 ; index <= MAXIMUM_DISTRIBUTION ; index++ ) -
testsuites/tmtests/tmoverhd/testtask.c
r02c7c81 r0720ff4 14 14 #include "system.h" 15 15 16 rtems_unsigned8Memory_area[ 2048 ];17 rtems_unsigned8Internal_port_area[ 256 ];18 rtems_unsigned8External_port_area[ 256 ];16 uint8_t Memory_area[ 2048 ]; 17 uint8_t Internal_port_area[ 256 ]; 18 uint8_t External_port_area[ 256 ]; 19 19 20 20 rtems_task Task_1( … … 59 59 { 60 60 rtems_name name; 61 rtems_unsigned32index;61 uint32_t index; 62 62 rtems_cpu_table cpu_table; 63 63 rtems_id id; … … 67 67 rtems_mode mask; 68 68 rtems_mode out_mode; 69 rtems_unsigned32note;69 uint32_t note; 70 70 rtems_time_of_day time; 71 71 rtems_interval timeout; … … 74 74 rtems_event_set events; 75 75 long buffer[ 4 ]; 76 rtems_unsigned32count;76 uint32_t count; 77 77 rtems_device_major_number major; 78 78 rtems_device_minor_number minor; 79 rtems_unsigned32io_result;80 rtems_unsigned32error;79 uint32_t io_result; 80 uint32_t error; 81 81 rtems_clock_get_options options; 82 82
Note: See TracChangeset
for help on using the changeset viewer.