Changeset 3127180 in rtems
- Timestamp:
- 03/29/04 12:51:43 (20 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- d3b09bf4
- Parents:
- 2f4c86f
- Location:
- cpukit
- Files:
-
- 66 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/ChangeLog
r2f4c86f r3127180 1 2004-04-29 Ralf Corsepius <ralf_corsepius@rtems.org> 2 3 * score/src/Unlimited.txt, score/src/chain.c, score/src/coremsg.c, 4 score/src/coremsgbroadcast.c, score/src/coremsgclose.c, 5 score/src/coremsgflush.c, score/src/coremsgflushsupp.c, 6 score/src/coremsgseize.c, score/src/coremsgsubmit.c, 7 score/src/coremutex.c, score/src/coremutexflush.c, 8 score/src/coresem.c, score/src/coresemflush.c, score/src/coretod.c, 9 score/src/coretodtickle.c, score/src/coretodtoseconds.c, 10 score/src/coretodvalidate.c, score/src/heap.c, 11 score/src/heapallocate.c, score/src/heapextend.c, 12 score/src/heapfree.c, score/src/heapsizeofuserarea.c, 13 score/src/interr.c, score/src/iterateoverthreads.c, 14 score/src/mpci.c, score/src/object.c, score/src/objectallocate.c, 15 score/src/objectallocatebyindex.c, score/src/objectclearname.c, 16 score/src/objectcomparenameraw.c, 17 score/src/objectcomparenamestring.c, score/src/objectcopynameraw.c, 18 score/src/objectcopynamestring.c, 19 score/src/objectextendinformation.c, score/src/objectfree.c, 20 score/src/objectget.c, score/src/objectgetbyindex.c, 21 score/src/objectgetisr.c, score/src/objectgetnoprotection.c, 22 score/src/objectidtoname.c, score/src/objectinitializeinformation.c, 23 score/src/objectmp.c, score/src/objectnametoid.c, 24 score/src/objectshrinkinformation.c, score/src/thread.c, 25 score/src/threadcreateidle.c, score/src/threadget.c, 26 score/src/threadidlebody.c, score/src/threadinitialize.c, 27 score/src/threadmp.c, score/src/threadq.c, 28 score/src/threadqdequeuepriority.c, 29 score/src/threadqenqueuepriority.c, 30 score/src/threadqfirstpriority.c, score/src/threadqflush.c, 31 score/src/threadreset.c, score/src/threadrestart.c, 32 score/src/threadsettransient.c, score/src/threadstackallocate.c, 33 score/src/threadstart.c, score/src/userext.c, 34 score/src/watchdoginsert.c, score/src/wkspace.c: Convert to using 35 c99 fixed size types. 36 1 37 2004-03-29 Ralf Corsepius <ralf_corsepius@rtems.org> 2 38 … … 5 41 * Makefile.am: Add include/rtems/concat.h. 6 42 7 PR /589rtems43 PR 589/rtems 8 44 * Makefile.am: Add include/rtems/pci.h. 9 45 -
cpukit/rtems/src/clocktodtoseconds.c
r2f4c86f r3127180 33 33 */ 34 34 35 u nsigned32_TOD_To_seconds(35 uint32_t _TOD_To_seconds( 36 36 TOD_Control *the_tod 37 37 ) 38 38 { 39 u nsigned32time;40 u nsigned32year_mod_4;39 uint32_t time; 40 uint32_t year_mod_4; 41 41 42 42 time = the_tod->day - 1; -
cpukit/rtems/src/clocktodvalidate.c
r2f4c86f r3127180 39 39 ) 40 40 { 41 u nsigned32days_in_month;41 uint32_t days_in_month; 42 42 43 43 if ((the_tod->ticks >= _TOD_Ticks_per_second) || -
cpukit/score/src/Unlimited.txt
r2f4c86f r3127180 193 193 maintained. 194 194 195 u nsigned32allocation_size -195 uint32_t allocation_size - 196 196 197 197 When auto_extend is true, it is the value in the Configuration … … 199 199 tables are extended or shrunk. 200 200 201 u nsigned32size -201 uint32_t size - 202 202 203 203 The size of the object. It is used to calculate the size of 204 204 memory required to be allocated when extending the table. 205 205 206 u nsigned32inactive -206 uint32_t inactive - 207 207 208 208 The number of elements on the Inactive chain. 209 209 210 u nsigned32*inactive_per_block -210 uint32_t *inactive_per_block - 211 211 212 212 Pointer to a table of counts of the inactive objects from a -
cpukit/score/src/chain.c
r2f4c86f r3127180 40 40 Chain_Control *the_chain, 41 41 void *starting_address, 42 u nsigned32number_nodes,43 u nsigned32node_size44 ) 45 { 46 u nsigned32count;42 uint32_t number_nodes, 43 uint32_t node_size 44 ) 45 { 46 uint32_t count; 47 47 Chain_Node *current; 48 48 Chain_Node *next; -
cpukit/score/src/coremsg.c
r2f4c86f r3127180 52 52 CORE_message_queue_Control *the_message_queue, 53 53 CORE_message_queue_Attributes *the_message_queue_attributes, 54 u nsigned32maximum_pending_messages,55 u nsigned32maximum_message_size54 uint32_t maximum_pending_messages, 55 uint32_t maximum_message_size 56 56 ) 57 57 { 58 u nsigned32message_buffering_required;59 u nsigned32allocated_message_size;58 uint32_t message_buffering_required; 59 uint32_t allocated_message_size; 60 60 61 61 the_message_queue->maximum_pending_messages = maximum_pending_messages; … … 69 69 70 70 allocated_message_size = maximum_message_size; 71 if (allocated_message_size & (sizeof(u nsigned32) - 1)) {72 allocated_message_size += sizeof(u nsigned32);73 allocated_message_size &= ~(sizeof(u nsigned32) - 1);71 if (allocated_message_size & (sizeof(uint32_t ) - 1)) { 72 allocated_message_size += sizeof(uint32_t ); 73 allocated_message_size &= ~(sizeof(uint32_t ) - 1); 74 74 } 75 75 -
cpukit/score/src/coremsgbroadcast.c
r2f4c86f r3127180 54 54 CORE_message_queue_Control *the_message_queue, 55 55 void *buffer, 56 u nsigned32size,56 uint32_t size, 57 57 Objects_Id id, 58 58 CORE_message_queue_API_mp_support_callout api_message_queue_mp_support, 59 u nsigned32*count59 uint32_t *count 60 60 ) 61 61 { 62 62 Thread_Control *the_thread; 63 u nsigned32number_broadcasted;63 uint32_t number_broadcasted; 64 64 Thread_Wait_information *waitp; 65 u nsigned32constrained_size;65 uint32_t constrained_size; 66 66 67 67 /* … … 99 99 ); 100 100 101 *(u nsigned32*)the_thread->Wait.return_argument_1 = size;101 *(uint32_t *)the_thread->Wait.return_argument_1 = size; 102 102 103 103 #if defined(RTEMS_MULTIPROCESSING) -
cpukit/score/src/coremsgclose.c
r2f4c86f r3127180 48 48 CORE_message_queue_Control *the_message_queue, 49 49 Thread_queue_Flush_callout remote_extract_callout, 50 u nsigned32status50 uint32_t status 51 51 ) 52 52 { -
cpukit/score/src/coremsgflush.c
r2f4c86f r3127180 44 44 */ 45 45 46 u nsigned32_CORE_message_queue_Flush(46 uint32_t _CORE_message_queue_Flush( 47 47 CORE_message_queue_Control *the_message_queue 48 48 ) -
cpukit/score/src/coremsgflushsupp.c
r2f4c86f r3127180 48 48 */ 49 49 50 u nsigned32_CORE_message_queue_Flush_support(50 uint32_t _CORE_message_queue_Flush_support( 51 51 CORE_message_queue_Control *the_message_queue 52 52 ) … … 56 56 Chain_Node *message_queue_first; 57 57 Chain_Node *message_queue_last; 58 u nsigned32count;58 uint32_t count; 59 59 60 60 /* -
cpukit/score/src/coremsgseize.c
r2f4c86f r3127180 60 60 Objects_Id id, 61 61 void *buffer, 62 u nsigned32*size,62 uint32_t *size, 63 63 boolean wait, 64 64 Watchdog_Interval timeout … … 104 104 105 105 the_message->priority = the_thread->Wait.count; 106 the_message->Contents.size = (u nsigned32)the_thread->Wait.return_argument_1;106 the_message->Contents.size = (uint32_t )the_thread->Wait.return_argument_1; 107 107 _CORE_message_queue_Copy_buffer( 108 108 the_thread->Wait.return_argument, -
cpukit/score/src/coremsgsubmit.c
r2f4c86f r3127180 57 57 CORE_message_queue_Control *the_message_queue, 58 58 void *buffer, 59 u nsigned32size,59 uint32_t size, 60 60 Objects_Id id, 61 61 CORE_message_queue_API_mp_support_callout api_message_queue_mp_support, … … 85 85 size 86 86 ); 87 *(u nsigned32*)the_thread->Wait.return_argument_1 = size;87 *(uint32_t *)the_thread->Wait.return_argument_1 = size; 88 88 the_thread->Wait.count = submit_type; 89 89 -
cpukit/score/src/coremutex.c
r2f4c86f r3127180 42 42 CORE_mutex_Control *the_mutex, 43 43 CORE_mutex_Attributes *the_mutex_attributes, 44 u nsigned32initial_lock44 uint32_t initial_lock 45 45 ) 46 46 { -
cpukit/score/src/coremutexflush.c
r2f4c86f r3127180 41 41 CORE_mutex_Control *the_mutex, 42 42 Thread_queue_Flush_callout remote_extract_callout, 43 u nsigned32status43 uint32_t status 44 44 ) 45 45 { -
cpukit/score/src/coresem.c
r2f4c86f r3127180 46 46 CORE_semaphore_Control *the_semaphore, 47 47 CORE_semaphore_Attributes *the_semaphore_attributes, 48 u nsigned32initial_value48 uint32_t initial_value 49 49 ) 50 50 { -
cpukit/score/src/coresemflush.c
r2f4c86f r3127180 45 45 CORE_semaphore_Control *the_semaphore, 46 46 Thread_queue_Flush_callout remote_extract_callout, 47 u nsigned32status47 uint32_t status 48 48 ) 49 49 { -
cpukit/score/src/coretod.c
r2f4c86f r3127180 32 32 33 33 void _TOD_Handler_initialization( 34 u nsigned32microseconds_per_tick34 uint32_t microseconds_per_tick 35 35 ) 36 36 { -
cpukit/score/src/coretodtickle.c
r2f4c86f r3127180 39 39 ) 40 40 { 41 u nsigned32leap;41 uint32_t leap; 42 42 43 43 _TOD_Current.ticks = 0; -
cpukit/score/src/coretodtoseconds.c
r2f4c86f r3127180 33 33 */ 34 34 35 u nsigned32_TOD_To_seconds(35 uint32_t _TOD_To_seconds( 36 36 TOD_Control *the_tod 37 37 ) 38 38 { 39 u nsigned32time;40 u nsigned32year_mod_4;39 uint32_t time; 40 uint32_t year_mod_4; 41 41 42 42 time = the_tod->day - 1; -
cpukit/score/src/coretodvalidate.c
r2f4c86f r3127180 39 39 ) 40 40 { 41 u nsigned32days_in_month;41 uint32_t days_in_month; 42 42 43 43 if ((the_tod->ticks >= _TOD_Ticks_per_second) || -
cpukit/score/src/heap.c
r2f4c86f r3127180 56 56 */ 57 57 58 u nsigned32_Heap_Initialize(58 uint32_t _Heap_Initialize( 59 59 Heap_Control *the_heap, 60 60 void *starting_address, 61 u nsigned32size,62 u nsigned32page_size61 uint32_t size, 62 uint32_t page_size 63 63 ) 64 64 { 65 65 Heap_Block *the_block; 66 u nsigned32the_size;66 uint32_t the_size; 67 67 68 68 if ( !_Heap_Is_page_size_valid( page_size ) || -
cpukit/score/src/heapallocate.c
r2f4c86f r3127180 34 34 void *_Heap_Allocate( 35 35 Heap_Control *the_heap, 36 u nsigned32size36 uint32_t size 37 37 ) 38 38 { 39 u nsigned32excess;40 u nsigned32the_size;39 uint32_t excess; 40 uint32_t the_size; 41 41 Heap_Block *the_block; 42 42 Heap_Block *next_block; 43 43 Heap_Block *temporary_block; 44 44 void *ptr; 45 u nsigned32offset;45 uint32_t offset; 46 46 47 47 /* 48 48 * Catch the case of a user allocating close to the limit of the 49 * u nsigned32.49 * uint32_t . 50 50 */ 51 51 … … 97 97 */ 98 98 99 offset = the_heap->page_size - (((u nsigned32) ptr) & (the_heap->page_size - 1));99 offset = the_heap->page_size - (((uint32_t ) ptr) & (the_heap->page_size - 1)); 100 100 ptr = _Addresses_Add_offset( ptr, offset ); 101 *(((u nsigned32*) ptr) - 1) = offset;101 *(((uint32_t *) ptr) - 1) = offset; 102 102 103 103 #ifdef RTEMS_DEBUG 104 104 { 105 u nsigned32ptr_u32;106 ptr_u32 = (u nsigned32) ptr;105 uint32_t ptr_u32; 106 ptr_u32 = (uint32_t ) ptr; 107 107 if (ptr_u32 & (the_heap->page_size - 1)) 108 108 abort(); -
cpukit/score/src/heapextend.c
r2f4c86f r3127180 36 36 Heap_Control *the_heap, 37 37 void *starting_address, 38 u nsigned32size,39 u nsigned32*amount_extended38 uint32_t size, 39 uint32_t *amount_extended 40 40 ) 41 41 { 42 42 Heap_Block *the_block; 43 u nsigned32*p;43 uint32_t *p; 44 44 45 45 /* … … 103 103 */ 104 104 105 p = (u nsigned32*) &old_final->next;106 *p = sizeof(u nsigned32);105 p = (uint32_t *) &old_final->next; 106 *p = sizeof(uint32_t ); 107 107 p++; 108 108 _Heap_Free( the_heap, p ); -
cpukit/score/src/heapfree.c
r2f4c86f r3127180 43 43 Heap_Block *previous_block; 44 44 Heap_Block *temporary_block; 45 u nsigned32the_size;45 uint32_t the_size; 46 46 47 47 the_block = _Heap_User_block_at( starting_address ); -
cpukit/score/src/heapsizeofuserarea.c
r2f4c86f r3127180 38 38 Heap_Control *the_heap, 39 39 void *starting_address, 40 u nsigned32*size40 uint32_t *size 41 41 ) 42 42 { 43 43 Heap_Block *the_block; 44 44 Heap_Block *next_block; 45 u nsigned32the_size;45 uint32_t the_size; 46 46 47 47 the_block = _Heap_User_block_at( starting_address ); -
cpukit/score/src/interr.c
r2f4c86f r3127180 43 43 Internal_errors_Source the_source, 44 44 boolean is_internal, 45 u nsigned32the_error45 uint32_t the_error 46 46 ) 47 47 { -
cpukit/score/src/iterateoverthreads.c
r2f4c86f r3127180 21 21 void rtems_iterate_over_all_threads(rtems_per_thread_routine routine) 22 22 { 23 u nsigned32i;24 u nsigned32api_index;23 uint32_t i; 24 uint32_t api_index; 25 25 Thread_Control *the_thread; 26 26 Objects_Information *information; -
cpukit/score/src/mpci.c
r2f4c86f r3127180 38 38 void _MPCI_Handler_initialization( 39 39 MPCI_Control *users_mpci_table, 40 u nsigned32timeout_status40 uint32_t timeout_status 41 41 ) 42 42 { … … 213 213 214 214 void _MPCI_Send_process_packet ( 215 u nsigned32destination,215 uint32_t destination, 216 216 MP_packet_Prefix *the_packet 217 217 ) … … 220 220 the_packet->to_convert = 221 221 ( the_packet->to_convert - sizeof(MP_packet_Prefix) ) / 222 sizeof(u nsigned32);222 sizeof(uint32_t ); 223 223 224 224 (*_MPCI_table->send_packet)( destination, the_packet ); … … 233 233 */ 234 234 235 u nsigned32_MPCI_Send_request_packet (236 u nsigned32destination,235 uint32_t _MPCI_Send_request_packet ( 236 uint32_t destination, 237 237 MP_packet_Prefix *the_packet, 238 238 States_Control extra_state … … 243 243 the_packet->to_convert = 244 244 ( the_packet->to_convert - sizeof(MP_packet_Prefix) ) / 245 sizeof(u nsigned32);245 sizeof(uint32_t ); 246 246 247 247 _Thread_Executing->Wait.id = the_packet->id; … … 281 281 282 282 void _MPCI_Send_response_packet ( 283 u nsigned32destination,283 uint32_t destination, 284 284 MP_packet_Prefix *the_packet 285 285 ) … … 345 345 346 346 Thread _MPCI_Receive_server( 347 u nsigned32ignored347 uint32_t ignored 348 348 ) 349 349 { … … 464 464 { 465 465 MPCI_Internal_packet *the_packet; 466 u nsigned32maximum_nodes;467 u nsigned32maximum_global_objects;466 uint32_t maximum_nodes; 467 uint32_t maximum_global_objects; 468 468 469 469 the_packet = (MPCI_Internal_packet *) the_packet_prefix; -
cpukit/score/src/object.c
r2f4c86f r3127180 40 40 41 41 void _Objects_Handler_initialization( 42 u nsigned32node,43 u nsigned32maximum_nodes,44 u nsigned32maximum_global_objects42 uint32_t node, 43 uint32_t maximum_nodes, 44 uint32_t maximum_global_objects 45 45 ) 46 46 { -
cpukit/score/src/objectallocate.c
r2f4c86f r3127180 54 54 55 55 if ( the_object ) { 56 u nsigned32block;56 uint32_t block; 57 57 58 58 block = _Objects_Get_index( the_object->id ) - -
cpukit/score/src/objectallocatebyindex.c
r2f4c86f r3127180 38 38 Objects_Control *_Objects_Allocate_by_index( 39 39 Objects_Information *information, 40 u nsigned32index,41 u nsigned32sizeof_control40 uint32_t index, 41 uint32_t sizeof_control 42 42 ) 43 43 { -
cpukit/score/src/objectclearname.c
r2f4c86f r3127180 35 35 void _Objects_Clear_name( 36 36 void *name, 37 u nsigned32length37 uint32_t length 38 38 ) 39 39 { 40 u nsigned32index;41 u nsigned32maximum = length / OBJECTS_NAME_ALIGNMENT;42 u nsigned32 *name_ptr = (unsigned32*) name;40 uint32_t index; 41 uint32_t maximum = length / OBJECTS_NAME_ALIGNMENT; 42 uint32_t *name_ptr = (uint32_t *) name; 43 43 44 44 for ( index=0 ; index < maximum ; index++ ) -
cpukit/score/src/objectcomparenameraw.c
r2f4c86f r3127180 35 35 void *name_1, 36 36 void *name_2, 37 u nsigned32length37 uint32_t length 38 38 ) 39 39 { 40 40 #if 0 41 u nsigned32 *name_1_p = (unsigned32*) name_1;42 u nsigned32 *name_2_p = (unsigned32*) name_2;43 u nsigned32tmp_length = length / OBJECTS_NAME_ALIGNMENT;41 uint32_t *name_1_p = (uint32_t *) name_1; 42 uint32_t *name_2_p = (uint32_t *) name_2; 43 uint32_t tmp_length = length / OBJECTS_NAME_ALIGNMENT; 44 44 #endif 45 45 -
cpukit/score/src/objectcomparenamestring.c
r2f4c86f r3127180 45 45 void *name_1, 46 46 void *name_2, 47 u nsigned32length47 uint32_t length 48 48 ) 49 49 { -
cpukit/score/src/objectcopynameraw.c
r2f4c86f r3127180 35 35 void *source, 36 36 void *destination, 37 u nsigned32length37 uint32_t length 38 38 ) 39 39 { 40 u nsigned32 *source_p = (unsigned32*) source;41 u nsigned32 *destination_p = (unsigned32*) destination;42 u nsigned32tmp_length = length / OBJECTS_NAME_ALIGNMENT;40 uint32_t *source_p = (uint32_t *) source; 41 uint32_t *destination_p = (uint32_t *) destination; 42 uint32_t tmp_length = length / OBJECTS_NAME_ALIGNMENT; 43 43 44 44 while ( tmp_length-- ) -
cpukit/score/src/objectcopynamestring.c
r2f4c86f r3127180 37 37 ) 38 38 { 39 u nsigned8 *source_p = (unsigned8*) source;40 u nsigned8 *destination_p = (unsigned8*) destination;39 uint8_t *source_p = (uint8_t *) source; 40 uint8_t *destination_p = (uint8_t *) destination; 41 41 42 42 *destination_p = '\0'; -
cpukit/score/src/objectextendinformation.c
r2f4c86f r3127180 46 46 void *name_area; 47 47 Chain_Control Inactive; 48 u nsigned32block_count;49 u nsigned32block;50 u nsigned32index_base;51 u nsigned32minimum_index;52 u nsigned32index;48 uint32_t block_count; 49 uint32_t block; 50 uint32_t index_base; 51 uint32_t minimum_index; 52 uint32_t index; 53 53 54 54 /* … … 82 82 void **object_blocks; 83 83 Objects_Name *name_table; 84 u nsigned32*inactive_per_block;84 uint32_t *inactive_per_block; 85 85 Objects_Control **local_table; 86 u nsigned32maximum;86 uint32_t maximum; 87 87 void *old_tables; 88 88 … … 97 97 * 98 98 * void *objects[block_count]; 99 * u nsigned32inactive_count[block_count];99 * uint32_t inactive_count[block_count]; 100 100 * Objects_Name *name_table[block_count]; 101 101 * Objects_Control *local_table[maximum]; … … 121 121 _Workspace_Allocate( 122 122 block_count * 123 (sizeof(void *) + sizeof(u nsigned32) + sizeof(Objects_Name *)) +123 (sizeof(void *) + sizeof(uint32_t ) + sizeof(Objects_Name *)) + 124 124 ((maximum + minimum_index) * sizeof(Objects_Control *)) 125 125 ); … … 132 132 _Workspace_Allocate_or_fatal_error( 133 133 block_count * 134 (sizeof(void *) + sizeof(u nsigned32) + sizeof(Objects_Name *)) +134 (sizeof(void *) + sizeof(uint32_t ) + sizeof(Objects_Name *)) + 135 135 ((maximum + minimum_index) * sizeof(Objects_Control *)) 136 136 ); … … 142 142 */ 143 143 144 inactive_per_block = (u nsigned32*) _Addresses_Add_offset(144 inactive_per_block = (uint32_t *) _Addresses_Add_offset( 145 145 object_blocks, block_count * sizeof(void*) ); 146 146 name_table = (Objects_Name *) _Addresses_Add_offset( 147 inactive_per_block, block_count * sizeof(u nsigned32) );147 inactive_per_block, block_count * sizeof(uint32_t ) ); 148 148 local_table = (Objects_Control **) _Addresses_Add_offset( 149 149 name_table, block_count * sizeof(Objects_Name *) ); … … 168 168 memcpy( inactive_per_block, 169 169 information->inactive_per_block, 170 block_count * sizeof(u nsigned32) );170 block_count * sizeof(uint32_t ) ); 171 171 memcpy( name_table, 172 172 information->name_table, -
cpukit/score/src/objectfree.c
r2f4c86f r3127180 40 40 ) 41 41 { 42 u nsigned32allocation_size = information->allocation_size;42 uint32_t allocation_size = information->allocation_size; 43 43 44 44 _Chain_Append( &information->Inactive, &the_object->Node ); 45 45 46 46 if ( information->auto_extend ) { 47 u nsigned32block;47 uint32_t block; 48 48 49 49 block = -
cpukit/score/src/objectget.c
r2f4c86f r3127180 52 52 { 53 53 Objects_Control *the_object; 54 u nsigned32index;54 uint32_t index; 55 55 56 56 #if defined(RTEMS_MULTIPROCESSING) … … 60 60 index = id & 0x0000ffff; 61 61 /* This should work but doesn't always :( */ 62 /* index = (u nsigned16) id; */62 /* index = (uint16_t ) id; */ 63 63 #endif 64 64 -
cpukit/score/src/objectgetbyindex.c
r2f4c86f r3127180 47 47 Objects_Control *_Objects_Get_by_index( 48 48 Objects_Information *information, 49 u nsigned32index,49 uint32_t index, 50 50 Objects_Locations *location 51 51 ) -
cpukit/score/src/objectgetisr.c
r2f4c86f r3127180 55 55 { 56 56 Objects_Control *the_object; 57 u nsigned32index;57 uint32_t index; 58 58 ISR_Level level; 59 59 … … 64 64 index = id & 0x0000ffff; 65 65 /* This should work but doesn't always :( */ 66 /* index = (u nsigned16) id; */66 /* index = (uint16_t ) id; */ 67 67 #endif 68 68 -
cpukit/score/src/objectgetnoprotection.c
r2f4c86f r3127180 52 52 { 53 53 Objects_Control *the_object; 54 u nsigned32index;54 uint32_t index; 55 55 56 56 #if defined(RTEMS_MULTIPROCESSING) … … 60 60 index = id & 0x0000ffff; 61 61 /* This should work but doesn't always :( */ 62 /* index = (u nsigned16) id; */62 /* index = (uint16_t ) id; */ 63 63 #endif 64 64 -
cpukit/score/src/objectidtoname.c
r2f4c86f r3127180 37 37 ) 38 38 { 39 u nsigned32the_api;40 u nsigned32the_class;39 uint32_t the_api; 40 uint32_t the_class; 41 41 Objects_Information *information; 42 42 Objects_Control *the_object = (Objects_Control *) 0; -
cpukit/score/src/objectinitializeinformation.c
r2f4c86f r3127180 47 47 Objects_Information *information, 48 48 Objects_APIs the_api, 49 u nsigned32the_class,50 u nsigned32maximum,51 u nsigned32size,49 uint32_t the_class, 50 uint32_t maximum, 51 uint32_t size, 52 52 boolean is_string, 53 u nsigned32maximum_name_length53 uint32_t maximum_name_length 54 54 #if defined(RTEMS_MULTIPROCESSING) 55 55 , … … 60 60 { 61 61 static Objects_Control *null_local_table = NULL; 62 u nsigned32minimum_index;63 u nsigned32name_length;62 uint32_t minimum_index; 63 uint32_t name_length; 64 64 #if defined(RTEMS_MULTIPROCESSING) 65 u nsigned32index;65 uint32_t index; 66 66 #endif 67 67 -
cpukit/score/src/objectmp.c
r2f4c86f r3127180 26 26 27 27 void _Objects_MP_Handler_initialization ( 28 u nsigned32node,29 u nsigned32maximum_nodes,30 u nsigned32maximum_global_objects28 uint32_t node, 29 uint32_t maximum_nodes, 30 uint32_t maximum_global_objects 31 31 ) 32 32 { … … 58 58 Objects_Information *information, 59 59 Objects_MP_Control *the_global_object, 60 u nsigned32the_name, /* XXX -- wrong for variable */60 uint32_t the_name, /* XXX -- wrong for variable */ 61 61 Objects_Id the_id 62 62 ) … … 80 80 boolean _Objects_MP_Allocate_and_open ( 81 81 Objects_Information *information, 82 u nsigned32the_name, /* XXX -- wrong for variable */82 uint32_t the_name, /* XXX -- wrong for variable */ 83 83 Objects_Id the_id, 84 84 boolean is_fatal_error … … 154 154 Objects_Information *information, 155 155 Objects_Name the_name, 156 u nsigned32nodes_to_search,156 uint32_t nodes_to_search, 157 157 Objects_Id *the_id 158 158 ) 159 159 { 160 u nsigned32low_node;161 u nsigned32high_node;162 u nsigned32node_index;160 uint32_t low_node; 161 uint32_t high_node; 162 uint32_t node_index; 163 163 Chain_Control *the_chain; 164 164 Chain_Node *the_node; 165 165 Objects_MP_Control *the_object; 166 u nsigned32name_to_use;167 168 name_to_use = *(u nsigned32*)the_name; /* XXX only fixed length names */166 uint32_t name_to_use; 167 168 name_to_use = *(uint32_t *)the_name; /* XXX only fixed length names */ 169 169 170 170 if ( nodes_to_search > _Objects_Maximum_nodes ) … … 227 227 ) 228 228 { 229 u nsigned32node;229 uint32_t node; 230 230 Chain_Control *the_chain; 231 231 Chain_Node *the_node; -
cpukit/score/src/objectnametoid.c
r2f4c86f r3127180 47 47 Objects_Information *information, 48 48 Objects_Name name, 49 u nsigned32node,49 uint32_t node, 50 50 Objects_Id *id 51 51 ) … … 53 53 boolean search_local_node; 54 54 Objects_Control *the_object; 55 u nsigned32index;56 u nsigned32name_length;55 uint32_t index; 56 uint32_t name_length; 57 57 Objects_Name_comparators compare_them; 58 58 -
cpukit/score/src/objectshrinkinformation.c
r2f4c86f r3127180 46 46 Objects_Control *the_object; 47 47 Objects_Control *extract_me; 48 u nsigned32block_count;49 u nsigned32block;50 u nsigned32index_base;51 u nsigned32index;48 uint32_t block_count; 49 uint32_t block; 50 uint32_t index_base; 51 uint32_t index; 52 52 53 53 /* -
cpukit/score/src/thread.c
r2f4c86f r3127180 41 41 42 42 void _Thread_Handler_initialization( 43 u nsigned32ticks_per_timeslice,44 u nsigned32maximum_extensions,45 u nsigned32maximum_proxies43 uint32_t ticks_per_timeslice, 44 uint32_t maximum_extensions, 45 uint32_t maximum_proxies 46 46 ) 47 47 { 48 u nsigned32index;48 uint32_t index; 49 49 50 50 /* -
cpukit/score/src/threadcreateidle.c
r2f4c86f r3127180 37 37 { 38 38 void *idle; 39 u nsigned32idle_task_stack_size;39 uint32_t idle_task_stack_size; 40 40 41 41 /* -
cpukit/score/src/threadget.c
r2f4c86f r3127180 44 44 ) 45 45 { 46 u nsigned32the_api;47 u nsigned32the_class;46 uint32_t the_api; 47 uint32_t the_class; 48 48 Objects_Information *information; 49 49 Thread_Control *tp = (Thread_Control *) 0; -
cpukit/score/src/threadidlebody.c
r2f4c86f r3127180 43 43 #if (CPU_PROVIDES_IDLE_THREAD_BODY == FALSE) 44 44 Thread _Thread_Idle_body( 45 u nsigned32ignored45 uint32_t ignored 46 46 ) 47 47 { -
cpukit/score/src/threadinitialize.c
r2f4c86f r3127180 41 41 Thread_Control *the_thread, 42 42 void *stack_area, 43 u nsigned32stack_size,43 uint32_t stack_size, 44 44 boolean is_fp, 45 45 Priority_Control priority, … … 47 47 Thread_CPU_budget_algorithms budget_algorithm, 48 48 Thread_CPU_budget_algorithm_callout budget_callout, 49 u nsigned32isr_level,49 uint32_t isr_level, 50 50 Objects_Name name 51 51 ) 52 52 { 53 u nsigned32actual_stack_size = 0;53 uint32_t actual_stack_size = 0; 54 54 void *stack = NULL; 55 55 #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) -
cpukit/score/src/threadmp.c
r2f4c86f r3127180 26 26 27 27 void _Thread_MP_Handler_initialization ( 28 u nsigned32maximum_proxies28 uint32_t maximum_proxies 29 29 ) 30 30 { … … 113 113 114 114 #define _Thread_MP_Proxy_Active_offset \ 115 ((u nsigned32)&(((Thread_Proxy_control *)0))->Active)115 ((uint32_t )&(((Thread_Proxy_control *)0))->Active) 116 116 117 117 Thread_Control *_Thread_MP_Find_proxy ( -
cpukit/score/src/threadq.c
r2f4c86f r3127180 41 41 Thread_queue_Disciplines the_discipline, 42 42 States_Control state, 43 u nsigned32timeout_status43 uint32_t timeout_status 44 44 ) 45 45 { 46 u nsigned32index;46 uint32_t index; 47 47 48 48 the_thread_queue->state = state; -
cpukit/score/src/threadqdequeuepriority.c
r2f4c86f r3127180 43 43 ) 44 44 { 45 u nsigned32index;45 uint32_t index; 46 46 ISR_Level level; 47 47 Thread_Control *the_thread = NULL; /* just to remove warnings */ -
cpukit/score/src/threadqenqueuepriority.c
r2f4c86f r3127180 51 51 ISR_Level level; 52 52 Chain_Control *header; 53 u nsigned32header_index;53 uint32_t header_index; 54 54 Chain_Node *the_node; 55 55 Chain_Node *next_node; -
cpukit/score/src/threadqfirstpriority.c
r2f4c86f r3127180 40 40 ) 41 41 { 42 u nsigned32index;42 uint32_t index; 43 43 44 44 for( index=0 ; -
cpukit/score/src/threadqflush.c
r2f4c86f r3127180 39 39 Thread_queue_Control *the_thread_queue, 40 40 Thread_queue_Flush_callout remote_extract_callout, 41 u nsigned32status41 uint32_t status 42 42 ) 43 43 { -
cpukit/score/src/threadreset.c
r2f4c86f r3127180 40 40 Thread_Control *the_thread, 41 41 void *pointer_argument, 42 u nsigned32numeric_argument42 uint32_t numeric_argument 43 43 ) 44 44 { -
cpukit/score/src/threadrestart.c
r2f4c86f r3127180 40 40 Thread_Control *the_thread, 41 41 void *pointer_argument, 42 u nsigned32numeric_argument42 uint32_t numeric_argument 43 43 ) 44 44 { -
cpukit/score/src/threadsettransient.c
r2f4c86f r3127180 50 50 { 51 51 ISR_Level level; 52 u nsigned32old_state;52 uint32_t old_state; 53 53 Chain_Control *ready; 54 54 -
cpukit/score/src/threadstackallocate.c
r2f4c86f r3127180 37 37 */ 38 38 39 u nsigned32_Thread_Stack_Allocate(39 uint32_t _Thread_Stack_Allocate( 40 40 Thread_Control *the_thread, 41 u nsigned32stack_size41 uint32_t stack_size 42 42 ) 43 43 { -
cpukit/score/src/threadstart.c
r2f4c86f r3127180 42 42 void *entry_point, 43 43 void *pointer_argument, 44 u nsigned32numeric_argument44 uint32_t numeric_argument 45 45 ) 46 46 { -
cpukit/score/src/userext.c
r2f4c86f r3127180 184 184 Internal_errors_Source the_source, 185 185 boolean is_internal, 186 u nsigned32the_error186 uint32_t the_error 187 187 ) 188 188 { -
cpukit/score/src/watchdoginsert.c
r2f4c86f r3127180 32 32 ISR_Level level; 33 33 Watchdog_Control *after; 34 u nsigned32insert_isr_nest_level;34 uint32_t insert_isr_nest_level; 35 35 Watchdog_Interval delta_interval; 36 36 -
cpukit/score/src/wkspace.c
r2f4c86f r3127180 27 27 void _Workspace_Handler_initialization( 28 28 void *starting_address, 29 u nsigned32size29 uint32_t size 30 30 ) 31 31 { 32 u nsigned32*zero_out_array;33 u nsigned32index;34 u nsigned32memory_available;32 uint32_t *zero_out_array; 33 uint32_t index; 34 uint32_t memory_available; 35 35 36 36 if ( !starting_address || !_Addresses_Is_aligned( starting_address ) ) … … 42 42 43 43 if ( _CPU_Table.do_zero_of_workspace ) { 44 for( zero_out_array = (u nsigned32*) starting_address, index = 0 ;45 index < size / sizeof( u nsigned32) ;44 for( zero_out_array = (uint32_t *) starting_address, index = 0 ; 45 index < size / sizeof( uint32_t ) ; 46 46 index++ ) 47 47 zero_out_array[ index ] = 0; … … 70 70 71 71 void *_Workspace_Allocate_or_fatal_error( 72 u nsigned32size72 uint32_t size 73 73 ) 74 74 {
Note: See TracChangeset
for help on using the changeset viewer.