Changeset d6154c7 in rtems
- Timestamp:
- 03/29/04 16:41:13 (20 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- d8dbdc0
- Parents:
- 8bd41178
- Location:
- cpukit
- Files:
-
- 42 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/ChangeLog
r8bd41178 rd6154c7 1 2004-03-29 Ralf Corsepius <ralf_corsepius@rtems.org> 2 3 * score/include/rtems/debug.h, score/include/rtems/score/bitfield.h, 4 score/include/rtems/score/chain.h, 5 score/include/rtems/score/coremsg.h, 6 score/include/rtems/score/coremutex.h, 7 score/include/rtems/score/coresem.h, 8 score/include/rtems/score/heap.h, 9 score/include/rtems/score/interr.h, score/include/rtems/score/isr.h, 10 score/include/rtems/score/mpci.h, score/include/rtems/score/mppkt.h, 11 score/include/rtems/score/object.h, 12 score/include/rtems/score/objectmp.h, 13 score/include/rtems/score/priority.h, 14 score/include/rtems/score/stack.h, 15 score/include/rtems/score/states.h, 16 score/include/rtems/score/thread.h, 17 score/include/rtems/score/threadmp.h, 18 score/include/rtems/score/threadq.h, 19 score/include/rtems/score/tod.h, score/include/rtems/score/tqdata.h, 20 score/include/rtems/score/userext.h, 21 score/include/rtems/score/watchdog.h, 22 score/include/rtems/score/wkspace.h, 23 score/inline/rtems/score/address.inl, 24 score/inline/rtems/score/coremsg.inl, 25 score/inline/rtems/score/coresem.inl, 26 score/inline/rtems/score/heap.inl, score/inline/rtems/score/isr.inl, 27 score/inline/rtems/score/object.inl, 28 score/inline/rtems/score/priority.inl, 29 score/inline/rtems/score/stack.inl, 30 score/inline/rtems/score/thread.inl, 31 score/inline/rtems/score/tqdata.inl, 32 score/inline/rtems/score/userext.inl, 33 score/inline/rtems/score/wkspace.inl, 34 score/macros/rtems/score/address.inl, 35 score/macros/rtems/score/heap.inl, 36 score/macros/rtems/score/object.inl, 37 score/macros/rtems/score/priority.inl, 38 score/macros/rtems/score/userext.inl: Convert to using c99 fixed 39 size types. 40 1 41 2004-03-29 Ralf Corsepius <ralf_corsepius@rtems.org> 2 42 -
cpukit/score/include/rtems/debug.h
r8bd41178 rd6154c7 27 27 */ 28 28 29 typedef u nsigned32rtems_debug_control;29 typedef uint32_t rtems_debug_control; 30 30 31 31 /* -
cpukit/score/include/rtems/score/bitfield.h
r8bd41178 rd6154c7 79 79 #define _Bitfield_Find_first_bit( _value, _bit_number ) \ 80 80 { \ 81 register u nsigned32 __value = (unsigned32) (_value); \81 register uint32_t __value = (uint32_t ) (_value); \ 82 82 register const unsigned char *__p = __log2table; \ 83 83 \ -
cpukit/score/include/rtems/score/chain.h
r8bd41178 rd6154c7 79 79 Chain_Control *the_chain, 80 80 void *starting_address, 81 u nsigned32number_nodes,82 u nsigned32node_size81 uint32_t number_nodes, 82 uint32_t node_size 83 83 ); 84 84 -
cpukit/score/include/rtems/score/coremsg.h
r8bd41178 rd6154c7 41 41 * the contents of message buffers. 42 42 * 43 * NOTE: The buffer field is normally longer than a single u nsigned32.43 * NOTE: The buffer field is normally longer than a single uint32_t . 44 44 * but since messages are variable length we just make a ptr to 1. 45 45 */ 46 46 47 47 typedef struct { 48 u nsigned32size;49 u nsigned32buffer[1];48 uint32_t size; 49 uint32_t buffer[1]; 50 50 } CORE_message_queue_Buffer; 51 51 … … 125 125 Thread_queue_Control Wait_queue; 126 126 CORE_message_queue_Attributes Attributes; 127 u nsigned32maximum_pending_messages;128 u nsigned32number_of_pending_messages;129 u nsigned32maximum_message_size;127 uint32_t maximum_pending_messages; 128 uint32_t number_of_pending_messages; 129 uint32_t maximum_message_size; 130 130 Chain_Control Pending_messages; 131 131 CORE_message_queue_Buffer *message_buffers; … … 146 146 CORE_message_queue_Control *the_message_queue, 147 147 CORE_message_queue_Attributes *the_message_queue_attributes, 148 u nsigned32maximum_pending_messages,149 u nsigned32maximum_message_size148 uint32_t maximum_pending_messages, 149 uint32_t maximum_message_size 150 150 ); 151 151 … … 162 162 CORE_message_queue_Control *the_message_queue, 163 163 Thread_queue_Flush_callout remote_extract_callout, 164 u nsigned32status164 uint32_t status 165 165 ); 166 166 … … 175 175 */ 176 176 177 u nsigned32_CORE_message_queue_Flush(177 uint32_t _CORE_message_queue_Flush( 178 178 CORE_message_queue_Control *the_message_queue 179 179 ); … … 188 188 */ 189 189 190 u nsigned32_CORE_message_queue_Flush_support(190 uint32_t _CORE_message_queue_Flush_support( 191 191 CORE_message_queue_Control *the_message_queue 192 192 ); … … 219 219 CORE_message_queue_Control *the_message_queue, 220 220 void *buffer, 221 u nsigned32size,221 uint32_t size, 222 222 Objects_Id id, 223 223 CORE_message_queue_API_mp_support_callout api_message_queue_mp_support, 224 u nsigned32*count224 uint32_t *count 225 225 ); 226 226 … … 242 242 CORE_message_queue_Control *the_message_queue, 243 243 void *buffer, 244 u nsigned32size,244 uint32_t size, 245 245 Objects_Id id, 246 246 CORE_message_queue_API_mp_support_callout api_message_queue_mp_support, … … 267 267 Objects_Id id, 268 268 void *buffer, 269 u nsigned32*size,269 uint32_t *size, 270 270 boolean wait, 271 271 Watchdog_Interval timeout -
cpukit/score/include/rtems/score/coremutex.h
r8bd41178 rd6154c7 120 120 Thread_queue_Control Wait_queue; 121 121 CORE_mutex_Attributes Attributes; 122 u nsigned32lock;123 u nsigned32nest_count;124 u nsigned32blocked_count;122 uint32_t lock; 123 uint32_t nest_count; 124 uint32_t blocked_count; 125 125 Thread_Control *holder; 126 126 Objects_Id holder_id; … … 138 138 CORE_mutex_Control *the_mutex, 139 139 CORE_mutex_Attributes *the_mutex_attributes, 140 u nsigned32initial_lock140 uint32_t initial_lock 141 141 ); 142 142 … … 223 223 CORE_mutex_Control *the_mutex, 224 224 Thread_queue_Flush_callout remote_extract_callout, 225 u nsigned32status225 uint32_t status 226 226 ); 227 227 -
cpukit/score/include/rtems/score/coresem.h
r8bd41178 rd6154c7 65 65 66 66 typedef struct { 67 u nsigned32maximum_count;67 uint32_t maximum_count; 68 68 CORE_semaphore_Disciplines discipline; 69 69 } CORE_semaphore_Attributes; … … 77 77 Thread_queue_Control Wait_queue; 78 78 CORE_semaphore_Attributes Attributes; 79 u nsigned32count;79 uint32_t count; 80 80 } CORE_semaphore_Control; 81 81 … … 91 91 CORE_semaphore_Control *the_semaphore, 92 92 CORE_semaphore_Attributes *the_semaphore_attributes, 93 u nsigned32initial_value93 uint32_t initial_value 94 94 ); 95 95 … … 140 140 CORE_semaphore_Control *the_semaphore, 141 141 Thread_queue_Flush_callout remote_extract_callout, 142 u nsigned32status142 uint32_t status 143 143 ); 144 144 -
cpukit/score/include/rtems/score/heap.h
r8bd41178 rd6154c7 51 51 52 52 typedef struct { 53 u nsigned32free_blocks;54 u nsigned32free_size;55 u nsigned32used_blocks;56 u nsigned32used_size;53 uint32_t free_blocks; 54 uint32_t free_size; 55 uint32_t used_blocks; 56 uint32_t used_size; 57 57 } Heap_Information_block; 58 58 … … 83 83 84 84 #define HEAP_OVERHEAD \ 85 (sizeof( u nsigned32) * 2) /* size dummy first and last blocks */85 (sizeof( uint32_t ) * 2) /* size dummy first and last blocks */ 86 86 #define HEAP_BLOCK_USED_OVERHEAD \ 87 87 (sizeof( void * ) * 2) /* num bytes overhead in used block */ … … 108 108 109 109 struct Heap_Block_struct { 110 u nsigned32back_flag; /* size and status of prev block */111 u nsigned32front_flag; /* size and status of block */110 uint32_t back_flag; /* size and status of prev block */ 111 uint32_t front_flag; /* size and status of block */ 112 112 Heap_Block *next; /* pointer to next block */ 113 113 Heap_Block *previous; /* pointer to previous block */ … … 135 135 Heap_Block *permanent_null; /* always NULL pointer */ 136 136 Heap_Block *last; /* pointer to last block in heap */ 137 u nsigned32page_size; /* allocation unit */138 u nsigned32reserved;137 uint32_t page_size; /* allocation unit */ 138 uint32_t reserved; 139 139 } Heap_Control; 140 140 … … 150 150 */ 151 151 152 u nsigned32_Heap_Initialize(152 uint32_t _Heap_Initialize( 153 153 Heap_Control *the_heap, 154 154 void *starting_address, 155 u nsigned32size,156 u nsigned32page_size155 uint32_t size, 156 uint32_t page_size 157 157 ); 158 158 … … 169 169 Heap_Control *the_heap, 170 170 void *starting_address, 171 u nsigned32size,172 u nsigned32*amount_extended171 uint32_t size, 172 uint32_t *amount_extended 173 173 ); 174 174 … … 187 187 void *_Heap_Allocate( 188 188 Heap_Control *the_heap, 189 u nsigned32size189 uint32_t size 190 190 ); 191 191 … … 203 203 Heap_Control *the_heap, 204 204 void *starting_address, 205 u nsigned32*size205 uint32_t *size 206 206 ); 207 207 -
cpukit/score/include/rtems/score/interr.h
r8bd41178 rd6154c7 65 65 Internal_errors_Source the_source; 66 66 boolean is_internal; 67 u nsigned32the_error;67 uint32_t the_error; 68 68 } Internal_errors_Information; 69 69 … … 86 86 Internal_errors_Source the_source, 87 87 boolean is_internal, 88 u nsigned32the_error88 uint32_t the_error 89 89 ); 90 90 -
cpukit/score/include/rtems/score/isr.h
r8bd41178 rd6154c7 28 28 */ 29 29 30 typedef u nsigned32ISR_Level;30 typedef uint32_t ISR_Level; 31 31 32 32 /* … … 34 34 */ 35 35 36 typedef u nsigned32ISR_Vector_number;36 typedef uint32_t ISR_Vector_number; 37 37 38 38 /* … … 82 82 */ 83 83 84 SCORE_EXTERN volatile u nsigned32_ISR_Nest_level;84 SCORE_EXTERN volatile uint32_t _ISR_Nest_level; 85 85 86 86 /* -
cpukit/score/include/rtems/score/mpci.h
r8bd41178 rd6154c7 77 77 78 78 typedef MPCI_Entry ( *MPCI_send_entry )( 79 u nsigned32,79 uint32_t , 80 80 MP_packet_Prefix * 81 81 ); … … 86 86 87 87 typedef struct { 88 u nsigned32default_timeout; /* in ticks */89 u nsigned32maximum_packet_size;88 uint32_t default_timeout; /* in ticks */ 89 uint32_t maximum_packet_size; 90 90 MPCI_initialization_entry initialization; 91 91 MPCI_get_packet_entry get_packet; … … 119 119 MP_packet_Prefix Prefix; 120 120 MPCI_Internal_Remote_operations operation; 121 u nsigned32maximum_nodes;122 u nsigned32maximum_global_objects;121 uint32_t maximum_nodes; 122 uint32_t maximum_global_objects; 123 123 } MPCI_Internal_packet; 124 124 … … 166 166 void _MPCI_Handler_initialization( 167 167 MPCI_Control *users_mpci_table, 168 u nsigned32timeout_status168 uint32_t timeout_status 169 169 ); 170 170 … … 239 239 240 240 void _MPCI_Send_process_packet ( 241 u nsigned32destination,241 uint32_t destination, 242 242 MP_packet_Prefix *the_packet 243 243 ); … … 252 252 */ 253 253 254 u nsigned32_MPCI_Send_request_packet (255 u nsigned32destination,254 uint32_t _MPCI_Send_request_packet ( 255 uint32_t destination, 256 256 MP_packet_Prefix *the_packet, 257 257 States_Control extra_state … … 268 268 269 269 void _MPCI_Send_response_packet ( 270 u nsigned32destination,270 uint32_t destination, 271 271 MP_packet_Prefix *the_packet 272 272 ); … … 303 303 304 304 Thread _MPCI_Receive_server( 305 u nsigned32ignored305 uint32_t ignored 306 306 ); 307 307 -
cpukit/score/include/rtems/score/mppkt.h
r8bd41178 rd6154c7 66 66 Objects_Id source_tid; 67 67 Priority_Control source_priority; 68 u nsigned32return_code;69 u nsigned32length;70 u nsigned32to_convert;68 uint32_t return_code; 69 uint32_t length; 70 uint32_t to_convert; 71 71 Watchdog_Interval timeout; 72 72 } MP_packet_Prefix; … … 79 79 80 80 /* 81 * The following constant defines the number of u nsigned32's81 * The following constant defines the number of uint32_t 's 82 82 * in a packet which must be converted to native format in a 83 83 * heterogeneous system. In packets longer than 84 * MP_PACKET_MINIMUN_HETERO_CONVERSION u nsigned32's, some of the "extra" data84 * MP_PACKET_MINIMUN_HETERO_CONVERSION uint32_t 's, some of the "extra" data 85 85 * may a user message buffer which is not automatically endian swapped. 86 86 */ 87 87 88 88 #define MP_PACKET_MINIMUN_HETERO_CONVERSION \ 89 ( sizeof( MP_packet_Prefix ) / sizeof( u nsigned32) )89 ( sizeof( MP_packet_Prefix ) / sizeof( uint32_t ) ) 90 90 91 91 #ifndef __RTEMS_APPLICATION__ -
cpukit/score/include/rtems/score/object.h
r8bd41178 rd6154c7 46 46 */ 47 47 48 #define OBJECTS_NAME_ALIGNMENT sizeof( u nsigned32)48 #define OBJECTS_NAME_ALIGNMENT sizeof( uint32_t ) 49 49 50 50 /* … … 55 55 void * /* name_1 */, 56 56 void * /* name_2 */, 57 u nsigned32/* length */57 uint32_t /* length */ 58 58 ); 59 59 … … 68 68 */ 69 69 70 typedef u nsigned32Objects_Id;70 typedef uint32_t Objects_Id; 71 71 72 72 #define OBJECTS_INDEX_START_BIT 0 … … 191 191 typedef struct { 192 192 Objects_APIs the_api; /* API of this object */ 193 u nsigned32the_class; /* class of this object */193 uint32_t the_class; /* class of this object */ 194 194 Objects_Id minimum_id; /* minimum valid id of this type */ 195 195 Objects_Id maximum_id; /* maximum valid id of this type */ 196 u nsigned32maximum; /* maximum number of objects */196 uint32_t maximum; /* maximum number of objects */ 197 197 boolean auto_extend; /* TRUE if unlimited objects */ 198 u nsigned32allocation_size; /* number of objects in a block */199 u nsigned32size; /* size of the objects */198 uint32_t allocation_size; /* number of objects in a block */ 199 uint32_t size; /* size of the objects */ 200 200 Objects_Control **local_table; 201 201 Objects_Name *name_table; 202 202 Chain_Control Inactive; /* chain of inactive ctl blocks */ 203 u nsigned32inactive; /* number of objects on the InActive list */204 u nsigned32*inactive_per_block; /* used to release a block */203 uint32_t inactive; /* number of objects on the InActive list */ 204 uint32_t *inactive_per_block; /* used to release a block */ 205 205 void **object_blocks; /* the object memory to remove */ 206 206 boolean is_string; /* TRUE if names are strings */ 207 u nsigned32name_length; /* maximum length of names */207 uint32_t name_length; /* maximum length of names */ 208 208 Objects_Thread_queue_Extract_callout *extract; 209 209 #if defined(RTEMS_MULTIPROCESSING) … … 217 217 */ 218 218 219 SCORE_EXTERN u nsigned32_Objects_Local_node;220 SCORE_EXTERN u nsigned32_Objects_Maximum_nodes;219 SCORE_EXTERN uint32_t _Objects_Local_node; 220 SCORE_EXTERN uint32_t _Objects_Maximum_nodes; 221 221 222 222 /* … … 268 268 269 269 void _Objects_Handler_initialization( 270 u nsigned32node,271 u nsigned32maximum_nodes,272 u nsigned32maximum_global_objects270 uint32_t node, 271 uint32_t maximum_nodes, 272 uint32_t maximum_global_objects 273 273 ); 274 274 … … 314 314 Objects_Information *information, 315 315 Objects_APIs the_api, 316 u nsigned32the_class,317 u nsigned32maximum,318 u nsigned32size,316 uint32_t the_class, 317 uint32_t maximum, 318 uint32_t size, 319 319 boolean is_string, 320 u nsigned32maximum_name_length320 uint32_t maximum_name_length 321 321 #if defined(RTEMS_MULTIPROCESSING) 322 322 , … … 352 352 Objects_Control *_Objects_Allocate_by_index( 353 353 Objects_Information *information, 354 u nsigned32index,355 u nsigned32sizeof_control354 uint32_t index, 355 uint32_t sizeof_control 356 356 ); 357 357 … … 381 381 void _Objects_Clear_name( 382 382 void *name, 383 u nsigned32length383 uint32_t length 384 384 ); 385 385 … … 408 408 void *source, 409 409 void *destination, 410 u nsigned32length410 uint32_t length 411 411 ); 412 412 … … 422 422 void *name_1, 423 423 void *name_2, 424 u nsigned32length424 uint32_t length 425 425 ); 426 426 … … 436 436 void *name_1, 437 437 void *name_2, 438 u nsigned32length438 uint32_t length 439 439 ); 440 440 … … 468 468 Objects_Information *information, 469 469 Objects_Name name, 470 u nsigned32node,470 uint32_t node, 471 471 Objects_Id *id 472 472 ); -
cpukit/score/include/rtems/score/objectmp.h
r8bd41178 rd6154c7 28 28 typedef struct { 29 29 Objects_Control Object; 30 u nsigned32name; /* XXX broken but works */30 uint32_t name; /* XXX broken but works */ 31 31 /* XXX If any API is MP with variable length names .. BOOM!!!! */ 32 32 } Objects_MP_Control; … … 42 42 43 43 void _Objects_MP_Handler_initialization ( 44 u nsigned32node,45 u nsigned32maximum_nodes,46 u nsigned32maximum_global_objects44 uint32_t node, 45 uint32_t maximum_nodes, 46 uint32_t maximum_global_objects 47 47 ); 48 48 … … 60 60 Objects_Information *information, 61 61 Objects_MP_Control *the_global_object, 62 u nsigned32the_name, /* XXX -- wrong for variable */62 uint32_t the_name, /* XXX -- wrong for variable */ 63 63 Objects_Id the_id 64 64 ); … … 77 77 boolean _Objects_MP_Allocate_and_open ( 78 78 Objects_Information *information, 79 u nsigned32the_name, /* XXX -- wrong for variable length */79 uint32_t the_name, /* XXX -- wrong for variable length */ 80 80 Objects_Id the_id, 81 81 boolean is_fatal_error … … 109 109 Objects_Information *information, 110 110 Objects_Name the_name, 111 u nsigned32nodes_to_search,111 uint32_t nodes_to_search, 112 112 Objects_Id *the_id 113 113 ); … … 137 137 */ 138 138 139 SCORE_EXTERN u nsigned32_Objects_MP_Maximum_global_objects;139 SCORE_EXTERN uint32_t _Objects_MP_Maximum_global_objects; 140 140 SCORE_EXTERN Chain_Control _Objects_MP_Inactive_global_objects; 141 141 -
cpukit/score/include/rtems/score/priority.h
r8bd41178 rd6154c7 29 29 */ 30 30 31 typedef u nsigned32Priority_Control;31 typedef uint32_t Priority_Control; 32 32 33 33 #define PRIORITY_MINIMUM 0 /* highest thread priority */ -
cpukit/score/include/rtems/score/stack.h
r8bd41178 rd6154c7 34 34 35 35 typedef struct { 36 u nsigned32size; /* stack size */36 uint32_t size; /* stack size */ 37 37 void *area; /* low memory addr of stack */ 38 38 } Stack_Control; -
cpukit/score/include/rtems/score/states.h
r8bd41178 rd6154c7 25 25 */ 26 26 27 typedef u nsigned32States_Control;27 typedef uint32_t States_Control; 28 28 29 29 /* -
cpukit/score/include/rtems/score/thread.h
r8bd41178 rd6154c7 40 40 * tasks/threads, others return pointers, others may 41 41 * return a numeric value. Hopefully a pointer is 42 * always at least as big as an u nsigned32. :)42 * always at least as big as an uint32_t . :) 43 43 */ 44 44 … … 48 48 * The following defines the ways in which the entry point for a 49 49 * thread can be invoked. Basically, it can be passed any 50 * combination/permutation of a pointer and an u nsigned32value.50 * combination/permutation of a pointer and an uint32_t value. 51 51 * 52 52 * NOTE: For now, we are ignoring the return type. … … 62 62 typedef Thread ( *Thread_Entry )(); /* basic type */ 63 63 64 typedef Thread ( *Thread_Entry_numeric )( u nsigned32);64 typedef Thread ( *Thread_Entry_numeric )( uint32_t ); 65 65 typedef Thread ( *Thread_Entry_pointer )( void * ); 66 typedef Thread ( *Thread_Entry_both_pointer_first )( void *, u nsigned32);67 typedef Thread ( *Thread_Entry_both_numeric_first )( u nsigned32, void * );66 typedef Thread ( *Thread_Entry_both_pointer_first )( void *, uint32_t ); 67 typedef Thread ( *Thread_Entry_both_numeric_first )( uint32_t , void * ); 68 68 69 69 /* … … 111 111 Thread_Start_types prototype; /* how task is invoked */ 112 112 void *pointer_argument; /* pointer argument */ 113 u nsigned32numeric_argument; /* numeric argument */113 uint32_t numeric_argument; /* numeric argument */ 114 114 /* initial execution modes */ 115 115 boolean is_preemptible; 116 116 Thread_CPU_budget_algorithms budget_algorithm; 117 117 Thread_CPU_budget_algorithm_callout budget_callout; 118 u nsigned32isr_level;118 uint32_t isr_level; 119 119 Priority_Control initial_priority; /* initial priority */ 120 120 boolean core_allocated_stack; … … 135 135 typedef struct { 136 136 Objects_Id id; /* waiting on this object */ 137 u nsigned32count; /* "generic" fields to be used */137 uint32_t count; /* "generic" fields to be used */ 138 138 void *return_argument; /* when blocking */ 139 139 void *return_argument_1; 140 u nsigned32option;140 uint32_t option; 141 141 142 142 /* 143 143 * NOTE: The following assumes that all API return codes can be 144 * treated as an u nsigned32.144 * treated as an uint32_t . 145 145 */ 146 u nsigned32return_code; /* status for thread awakened */146 uint32_t return_code; /* status for thread awakened */ 147 147 148 148 Chain_Control Block2n; /* 2 - n priority blocked chain */ … … 163 163 Priority_Control current_priority; 164 164 Priority_Control real_priority; 165 u nsigned32resource_count;165 uint32_t resource_count; 166 166 Thread_Wait_information Wait; 167 167 Watchdog_Control Timer; … … 196 196 Priority_Control current_priority; 197 197 Priority_Control real_priority; 198 u nsigned32resource_count;198 uint32_t resource_count; 199 199 Thread_Wait_information Wait; 200 200 Watchdog_Control Timer; … … 203 203 #endif 204 204 /****************** end of common block ********************/ 205 u nsigned32suspend_count;205 uint32_t suspend_count; 206 206 boolean is_global; 207 207 boolean do_post_task_switch_extension; … … 209 209 boolean is_preemptible; 210 210 void *rtems_ada_self; 211 u nsigned32cpu_time_budget;211 uint32_t cpu_time_budget; 212 212 Thread_CPU_budget_algorithms budget_algorithm; 213 213 Thread_CPU_budget_algorithm_callout budget_callout; 214 214 215 u nsigned32ticks_executed;215 uint32_t ticks_executed; 216 216 Chain_Control *ready; 217 217 Priority_Information Priority_map; … … 263 263 */ 264 264 265 SCORE_EXTERN volatile u nsigned32_Thread_Dispatch_disable_level;265 SCORE_EXTERN volatile uint32_t _Thread_Dispatch_disable_level; 266 266 267 267 /* … … 270 270 */ 271 271 272 SCORE_EXTERN u nsigned32_Thread_Do_post_task_switch_extension;272 SCORE_EXTERN uint32_t _Thread_Do_post_task_switch_extension; 273 273 274 274 /* … … 278 278 */ 279 279 280 SCORE_EXTERN u nsigned32_Thread_Maximum_extensions;280 SCORE_EXTERN uint32_t _Thread_Maximum_extensions; 281 281 282 282 /* … … 284 284 */ 285 285 286 SCORE_EXTERN u nsigned32_Thread_Ticks_per_timeslice;286 SCORE_EXTERN uint32_t _Thread_Ticks_per_timeslice; 287 287 288 288 /* … … 335 335 336 336 void _Thread_Handler_initialization ( 337 u nsigned32ticks_per_timeslice,338 u nsigned32maximum_extensions,339 u nsigned32maximum_proxies337 uint32_t ticks_per_timeslice, 338 uint32_t maximum_extensions, 339 uint32_t maximum_proxies 340 340 ); 341 341 … … 394 394 */ 395 395 396 u nsigned32_Thread_Stack_Allocate(396 uint32_t _Thread_Stack_Allocate( 397 397 Thread_Control *the_thread, 398 u nsigned32stack_size398 uint32_t stack_size 399 399 ); 400 400 … … 435 435 Thread_Control *the_thread, 436 436 void *stack_area, 437 u nsigned32stack_size,437 uint32_t stack_size, 438 438 boolean is_fp, 439 439 Priority_Control priority, … … 441 441 Thread_CPU_budget_algorithms budget_algorithm, 442 442 Thread_CPU_budget_algorithm_callout budget_callout, 443 u nsigned32isr_level,443 uint32_t isr_level, 444 444 Objects_Name name 445 445 ); … … 460 460 void *entry_point, 461 461 void *pointer_argument, 462 u nsigned32numeric_argument462 uint32_t numeric_argument 463 463 ); 464 464 … … 478 478 Thread_Control *the_thread, 479 479 void *pointer_argument, 480 u nsigned32numeric_argument480 uint32_t numeric_argument 481 481 ); 482 482 … … 493 493 Thread_Control *the_thread, 494 494 void *pointer_argument, 495 u nsigned32numeric_argument495 uint32_t numeric_argument 496 496 ); 497 497 … … 759 759 #if (CPU_PROVIDES_IDLE_THREAD_BODY == FALSE) 760 760 Thread _Thread_Idle_body( 761 u nsigned32ignored761 uint32_t ignored 762 762 ); 763 763 #endif -
cpukit/score/include/rtems/score/threadmp.h
r8bd41178 rd6154c7 30 30 31 31 void _Thread_MP_Handler_initialization ( 32 u nsigned32maximum_proxies32 uint32_t maximum_proxies 33 33 ); 34 34 -
cpukit/score/include/rtems/score/threadq.h
r8bd41178 rd6154c7 140 140 Thread_queue_Control *the_thread_queue, 141 141 Thread_queue_Flush_callout remote_extract_callout, 142 u nsigned32status142 uint32_t status 143 143 ); 144 144 … … 157 157 Thread_queue_Disciplines the_discipline, 158 158 States_Control state, 159 u nsigned32timeout_status159 uint32_t timeout_status 160 160 ); 161 161 -
cpukit/score/include/rtems/score/tod.h
r8bd41178 rd6154c7 28 28 */ 29 29 30 #define TOD_SECONDS_PER_MINUTE (u nsigned32)6031 #define TOD_MINUTES_PER_HOUR (u nsigned32)6032 #define TOD_MONTHS_PER_YEAR (u nsigned32)1233 #define TOD_DAYS_PER_YEAR (u nsigned32)36534 #define TOD_HOURS_PER_DAY (u nsigned32)2435 #define TOD_SECONDS_PER_DAY (u nsigned32) (TOD_SECONDS_PER_MINUTE * \30 #define TOD_SECONDS_PER_MINUTE (uint32_t )60 31 #define TOD_MINUTES_PER_HOUR (uint32_t )60 32 #define TOD_MONTHS_PER_YEAR (uint32_t )12 33 #define TOD_DAYS_PER_YEAR (uint32_t )365 34 #define TOD_HOURS_PER_DAY (uint32_t )24 35 #define TOD_SECONDS_PER_DAY (uint32_t ) (TOD_SECONDS_PER_MINUTE * \ 36 36 TOD_MINUTES_PER_HOUR * \ 37 37 TOD_HOURS_PER_DAY) … … 39 39 #define TOD_SECONDS_PER_NON_LEAP_YEAR (365 * TOD_SECONDS_PER_DAY) 40 40 41 #define TOD_MILLISECONDS_PER_SECOND (u nsigned32)100042 #define TOD_MICROSECONDS_PER_SECOND (u nsigned32)100000043 #define TOD_NANOSECONDS_PER_SECOND (u nsigned32)100000000044 #define TOD_NANOSECONDS_PER_MICROSECOND (u nsigned32)100041 #define TOD_MILLISECONDS_PER_SECOND (uint32_t )1000 42 #define TOD_MICROSECONDS_PER_SECOND (uint32_t )1000000 43 #define TOD_NANOSECONDS_PER_SECOND (uint32_t )1000000000 44 #define TOD_NANOSECONDS_PER_MICROSECOND (uint32_t )1000 45 45 46 46 /* … … 58 58 59 59 typedef struct { /* RTEID style time/date */ 60 u nsigned32year; /* year, A.D. */61 u nsigned32month; /* month, 1 -> 12 */62 u nsigned32day; /* day, 1 -> 31 */63 u nsigned32hour; /* hour, 0 -> 23 */64 u nsigned32minute; /* minute, 0 -> 59 */65 u nsigned32second; /* second, 0 -> 59 */66 u nsigned32ticks; /* elapsed ticks between secs */60 uint32_t year; /* year, A.D. */ 61 uint32_t month; /* month, 1 -> 12 */ 62 uint32_t day; /* day, 1 -> 31 */ 63 uint32_t hour; /* hour, 0 -> 23 */ 64 uint32_t minute; /* minute, 0 -> 59 */ 65 uint32_t second; /* second, 0 -> 59 */ 66 uint32_t ticks; /* elapsed ticks between secs */ 67 67 } TOD_Control; 68 68 … … 91 91 */ 92 92 93 SCORE_EXTERN u nsigned32_TOD_Microseconds_per_tick;93 SCORE_EXTERN uint32_t _TOD_Microseconds_per_tick; 94 94 95 95 /* … … 104 104 */ 105 105 106 SCORE_EXTERN u nsigned32_TOD_Ticks_per_second;106 SCORE_EXTERN uint32_t _TOD_Ticks_per_second; 107 107 108 108 /* … … 122 122 */ 123 123 124 const u nsigned32_TOD_Days_per_month[ 2 ][ 13 ] = {124 const uint32_t _TOD_Days_per_month[ 2 ][ 13 ] = { 125 125 { 0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }, 126 126 { 0, 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 } … … 133 133 */ 134 134 135 const u nsigned16_TOD_Days_to_date[2][13] = {135 const uint16_t _TOD_Days_to_date[2][13] = { 136 136 { 0, 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334 }, 137 137 { 0, 0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335 } … … 145 145 */ 146 146 147 const u nsigned16_TOD_Days_since_last_leap_year[4] = { 0, 366, 731, 1096 };147 const uint16_t _TOD_Days_since_last_leap_year[4] = { 0, 366, 731, 1096 }; 148 148 149 149 #else 150 150 151 extern const u nsigned16_TOD_Days_to_date[2][13]; /* Julian days */152 extern const u nsigned16_TOD_Days_since_last_leap_year[4];153 extern const u nsigned32_TOD_Days_per_month[2][13];151 extern const uint16_t _TOD_Days_to_date[2][13]; /* Julian days */ 152 extern const uint16_t _TOD_Days_since_last_leap_year[4]; 153 extern const uint32_t _TOD_Days_per_month[2][13]; 154 154 155 155 #endif … … 164 164 165 165 void _TOD_Handler_initialization( 166 u nsigned32microseconds_per_tick166 uint32_t microseconds_per_tick 167 167 ); 168 168 -
cpukit/score/include/rtems/score/tqdata.h
r8bd41178 rd6154c7 75 75 Thread_queue_Disciplines discipline; /* queue discipline */ 76 76 States_Control state; /* state of threads on Thread_q */ 77 u nsigned32timeout_status;77 uint32_t timeout_status; 78 78 } Thread_queue_Control; 79 79 -
cpukit/score/include/rtems/score/userext.h
r8bd41178 rd6154c7 76 76 Internal_errors_Source /* the_source */, 77 77 boolean /* is_internal */, 78 u nsigned32/* the_error */78 uint32_t /* the_error */ 79 79 ); 80 80 … … 216 216 Internal_errors_Source the_source, 217 217 boolean is_internal, 218 u nsigned32the_error218 uint32_t the_error 219 219 ); 220 220 -
cpukit/score/include/rtems/score/watchdog.h
r8bd41178 rd6154c7 31 31 #define WATCHDOG_MAXIMUM_INTERVAL ((Watchdog_Interval) 0xffffffff) 32 32 33 typedef u nsigned32Watchdog_Interval;33 typedef uint32_t Watchdog_Interval; 34 34 35 35 /* … … 96 96 */ 97 97 98 SCORE_EXTERN volatile u nsigned32_Watchdog_Sync_level;99 SCORE_EXTERN volatile u nsigned32_Watchdog_Sync_count;98 SCORE_EXTERN volatile uint32_t _Watchdog_Sync_level; 99 SCORE_EXTERN volatile uint32_t _Watchdog_Sync_count; 100 100 101 101 /* -
cpukit/score/include/rtems/score/wkspace.h
r8bd41178 rd6154c7 42 42 void _Workspace_Handler_initialization( 43 43 void *starting_address, 44 u nsigned32size44 uint32_t size 45 45 ); 46 46 … … 56 56 57 57 void *_Workspace_Allocate_or_fatal_error( 58 u nsigned32size58 uint32_t size 59 59 ); 60 60 -
cpukit/score/inline/rtems/score/address.inl
r8bd41178 rd6154c7 30 30 RTEMS_INLINE_ROUTINE void *_Addresses_Add_offset ( 31 31 void *base, 32 u nsigned32offset32 uint32_t offset 33 33 ) 34 34 { … … 49 49 RTEMS_INLINE_ROUTINE void *_Addresses_Subtract_offset ( 50 50 void *base, 51 u nsigned32offset51 uint32_t offset 52 52 ) 53 53 { … … 64 64 * resulting offset. 65 65 * 66 * NOTE: The cast of an address to an u nsigned32makes this code66 * NOTE: The cast of an address to an uint32_t makes this code 67 67 * dependent on an addresses being thirty two bits. 68 68 */ 69 69 70 RTEMS_INLINE_ROUTINE u nsigned32_Addresses_Subtract (70 RTEMS_INLINE_ROUTINE uint32_t _Addresses_Subtract ( 71 71 void *left, 72 72 void *right … … 96 96 return ( ( (unsigned short)address % CPU_ALIGNMENT ) == 0 ); 97 97 #else 98 return ( ( (u nsigned32)address % CPU_ALIGNMENT ) == 0 );98 return ( ( (uint32_t )address % CPU_ALIGNMENT ) == 0 ); 99 99 #endif 100 100 } -
cpukit/score/inline/rtems/score/coremsg.inl
r8bd41178 rd6154c7 31 31 CORE_message_queue_Control *the_message_queue, 32 32 void *buffer, 33 u nsigned32size,33 uint32_t size, 34 34 Objects_Id id, 35 35 CORE_message_queue_API_mp_support_callout api_message_queue_mp_support, … … 66 66 CORE_message_queue_Control *the_message_queue, 67 67 void *buffer, 68 u nsigned32size,68 uint32_t size, 69 69 Objects_Id id, 70 70 CORE_message_queue_API_mp_support_callout api_message_queue_mp_support, … … 102 102 void *source, 103 103 void *destination, 104 u nsigned32size104 uint32_t size 105 105 ) 106 106 { -
cpukit/score/inline/rtems/score/coresem.inl
r8bd41178 rd6154c7 46 46 */ 47 47 48 RTEMS_INLINE_ROUTINE u nsigned32_CORE_semaphore_Get_count(48 RTEMS_INLINE_ROUTINE uint32_t _CORE_semaphore_Get_count( 49 49 CORE_semaphore_Control *the_semaphore 50 50 ) -
cpukit/score/inline/rtems/score/heap.inl
r8bd41178 rd6154c7 105 105 RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( 106 106 void *base, 107 u nsigned32offset107 uint32_t offset 108 108 ) 109 109 { … … 124 124 ) 125 125 { 126 u nsigned32offset;126 uint32_t offset; 127 127 128 offset = *(((u nsigned32*) base) - 1);128 offset = *(((uint32_t *) base) - 1); 129 129 return _Heap_Block_at( base, -offset + -HEAP_BLOCK_USED_OVERHEAD); 130 130 } … … 189 189 */ 190 190 191 RTEMS_INLINE_ROUTINE u nsigned32_Heap_Block_size (191 RTEMS_INLINE_ROUTINE uint32_t _Heap_Block_size ( 192 192 Heap_Block *the_block 193 193 ) … … 244 244 245 245 RTEMS_INLINE_ROUTINE boolean _Heap_Is_page_size_valid( 246 u nsigned32page_size246 uint32_t page_size 247 247 ) 248 248 { … … 262 262 */ 263 263 264 RTEMS_INLINE_ROUTINE u nsigned32_Heap_Build_flag (265 u nsigned32size,266 u nsigned32in_use_flag264 RTEMS_INLINE_ROUTINE uint32_t _Heap_Build_flag ( 265 uint32_t size, 266 uint32_t in_use_flag 267 267 ) 268 268 { -
cpukit/score/inline/rtems/score/isr.inl
r8bd41178 rd6154c7 28 28 29 29 RTEMS_INLINE_ROUTINE boolean _ISR_Is_vector_number_valid ( 30 u nsigned32vector30 uint32_t vector 31 31 ) 32 32 { -
cpukit/score/inline/rtems/score/object.inl
r8bd41178 rd6154c7 29 29 RTEMS_INLINE_ROUTINE Objects_Id _Objects_Build_id( 30 30 Objects_APIs the_api, 31 u nsigned32the_class,32 u nsigned32node,33 u nsigned32index31 uint32_t the_class, 32 uint32_t node, 33 uint32_t index 34 34 ) 35 35 { … … 65 65 */ 66 66 67 RTEMS_INLINE_ROUTINE u nsigned32_Objects_Get_class(68 Objects_Id id 69 ) 70 { 71 return (u nsigned32)67 RTEMS_INLINE_ROUTINE uint32_t _Objects_Get_class( 68 Objects_Id id 69 ) 70 { 71 return (uint32_t ) 72 72 ((id >> OBJECTS_CLASS_START_BIT) & OBJECTS_CLASS_VALID_BITS); 73 73 } … … 82 82 */ 83 83 84 RTEMS_INLINE_ROUTINE u nsigned32_Objects_Get_node(84 RTEMS_INLINE_ROUTINE uint32_t _Objects_Get_node( 85 85 Objects_Id id 86 86 ) … … 98 98 */ 99 99 100 RTEMS_INLINE_ROUTINE u nsigned32_Objects_Get_index(100 RTEMS_INLINE_ROUTINE uint32_t _Objects_Get_index( 101 101 Objects_Id id 102 102 ) … … 115 115 116 116 RTEMS_INLINE_ROUTINE boolean _Objects_Is_class_valid( 117 u nsigned32the_class117 uint32_t the_class 118 118 ) 119 119 { … … 133 133 134 134 RTEMS_INLINE_ROUTINE boolean _Objects_Is_local_node( 135 u nsigned32node135 uint32_t node 136 136 ) 137 137 { … … 186 186 RTEMS_INLINE_ROUTINE Objects_Control *_Objects_Get_local_object( 187 187 Objects_Information *information, 188 u nsigned32index188 uint32_t index 189 189 ) 190 190 { … … 206 206 RTEMS_INLINE_ROUTINE void _Objects_Set_local_object( 207 207 Objects_Information *information, 208 u nsigned32index,208 uint32_t index, 209 209 Objects_Control *the_object 210 210 ) … … 230 230 { 231 231 Objects_APIs the_api; 232 u nsigned32the_class;232 uint32_t the_class; 233 233 234 234 … … 258 258 ) 259 259 { 260 u nsigned32index;260 uint32_t index; 261 261 262 262 index = _Objects_Get_index( the_object->id ); … … 286 286 ) 287 287 { 288 u nsigned32index;288 uint32_t index; 289 289 290 290 index = _Objects_Get_index( the_object->id ); -
cpukit/score/inline/rtems/score/priority.inl
r8bd41178 rd6154c7 30 30 RTEMS_INLINE_ROUTINE void _Priority_Handler_initialization( void ) 31 31 { 32 u nsigned32index;32 uint32_t index; 33 33 34 34 _Priority_Major_bit_map = 0; … … 68 68 */ 69 69 70 RTEMS_INLINE_ROUTINE u nsigned32_Priority_Major (70 RTEMS_INLINE_ROUTINE uint32_t _Priority_Major ( 71 71 Priority_Control the_priority 72 72 ) … … 84 84 */ 85 85 86 RTEMS_INLINE_ROUTINE u nsigned32_Priority_Minor (86 RTEMS_INLINE_ROUTINE uint32_t _Priority_Minor ( 87 87 Priority_Control the_priority 88 88 ) … … 103 103 */ 104 104 105 RTEMS_INLINE_ROUTINE u nsigned32_Priority_Mask (106 u nsigned32bit_number105 RTEMS_INLINE_ROUTINE uint32_t _Priority_Mask ( 106 uint32_t bit_number 107 107 ) 108 108 { … … 122 122 */ 123 123 124 RTEMS_INLINE_ROUTINE u nsigned32_Priority_Bits_index (125 u nsigned32bit_number124 RTEMS_INLINE_ROUTINE uint32_t _Priority_Bits_index ( 125 uint32_t bit_number 126 126 ) 127 127 { -
cpukit/score/inline/rtems/score/stack.inl
r8bd41178 rd6154c7 31 31 Stack_Control *the_stack, 32 32 void *starting_address, 33 u nsigned32size33 uint32_t size 34 34 ) 35 35 { … … 49 49 50 50 RTEMS_INLINE_ROUTINE boolean _Stack_Is_enough ( 51 u nsigned32size51 uint32_t size 52 52 ) 53 53 { … … 70 70 */ 71 71 72 RTEMS_INLINE_ROUTINE u nsigned32_Stack_Adjust_size (73 u nsigned32size72 RTEMS_INLINE_ROUTINE uint32_t _Stack_Adjust_size ( 73 uint32_t size 74 74 ) 75 75 { -
cpukit/score/inline/rtems/score/thread.inl
r8bd41178 rd6154c7 310 310 ) 311 311 { 312 u nsigned32the_api;313 u nsigned32the_class;312 uint32_t the_api; 313 uint32_t the_class; 314 314 Objects_Information *information; 315 315 Thread_Control *tp = (Thread_Control *) 0; … … 358 358 359 359 RTEMS_INLINE_ROUTINE boolean _Thread_Is_proxy_blocking ( 360 u nsigned32code360 uint32_t code 361 361 ) 362 362 { -
cpukit/score/inline/rtems/score/tqdata.inl
r8bd41178 rd6154c7 27 27 */ 28 28 29 RTEMS_INLINE_ROUTINE u nsigned32_Thread_queue_Header_number (29 RTEMS_INLINE_ROUTINE uint32_t _Thread_queue_Header_number ( 30 30 Priority_Control the_priority 31 31 ) -
cpukit/score/inline/rtems/score/userext.inl
r8bd41178 rd6154c7 60 60 61 61 RTEMS_INLINE_ROUTINE void _User_extensions_Handler_initialization ( 62 u nsigned32number_of_extensions,62 uint32_t number_of_extensions, 63 63 User_extensions_Table *initial_extensions 64 64 ) 65 65 { 66 66 User_extensions_Control *extension; 67 u nsigned32i;67 uint32_t i; 68 68 69 69 _Chain_Initialize_empty( &_User_extensions_List ); -
cpukit/score/inline/rtems/score/wkspace.inl
r8bd41178 rd6154c7 29 29 30 30 RTEMS_INLINE_ROUTINE void *_Workspace_Allocate( 31 u nsigned32size31 uint32_t size 32 32 ) 33 33 { -
cpukit/score/macros/rtems/score/address.inl
r8bd41178 rd6154c7 39 39 * _Addresses_Subtract 40 40 * 41 * NOTE: The cast of an address to an u nsigned32makes this code41 * NOTE: The cast of an address to an uint32_t makes this code 42 42 * dependent on an addresses being thirty two bits. 43 43 */ … … 60 60 #else 61 61 #define _Addresses_Is_aligned( _address ) \ 62 ( ( (u nsigned32)(_address) % CPU_ALIGNMENT ) == 0 )62 ( ( (uint32_t )(_address) % CPU_ALIGNMENT ) == 0 ) 63 63 #endif 64 64 -
cpukit/score/macros/rtems/score/heap.inl
r8bd41178 rd6154c7 77 77 _Heap_Block_at( \ 78 78 (_base), \ 79 -*(((u nsigned32*) (_base)) - 1) + -HEAP_BLOCK_USED_OVERHEAD \79 -*(((uint32_t *) (_base)) - 1) + -HEAP_BLOCK_USED_OVERHEAD \ 80 80 ) 81 81 -
cpukit/score/macros/rtems/score/object.inl
r8bd41178 rd6154c7 44 44 45 45 #define _Objects_Get_class( _id ) \ 46 (u nsigned32) \46 (uint32_t ) \ 47 47 (((_id) >> OBJECTS_CLASS_START_BIT) & OBJECTS_CLASS_VALID_BITS) 48 48 … … 146 146 #define _Objects_Open( _information, _the_object, _name ) \ 147 147 do { \ 148 u nsigned32_index; \148 uint32_t _index; \ 149 149 \ 150 150 _index = _Objects_Get_index( (_the_object)->id ); \ … … 168 168 #define _Objects_Close( _information, _the_object ) \ 169 169 do { \ 170 u nsigned32_index; \170 uint32_t _index; \ 171 171 \ 172 172 _index = _Objects_Get_index( (_the_object)->id ); \ -
cpukit/score/macros/rtems/score/priority.inl
r8bd41178 rd6154c7 27 27 #define _Priority_Handler_initialization() \ 28 28 { \ 29 u nsigned32index; \29 uint32_t index; \ 30 30 \ 31 31 _Priority_Major_bit_map = 0; \ -
cpukit/score/macros/rtems/score/userext.inl
r8bd41178 rd6154c7 55 55 { \ 56 56 User_extensions_Control *extension; \ 57 u nsigned32i; \57 uint32_t i; \ 58 58 \ 59 59 _Chain_Initialize_empty( &_User_extensions_List ); \
Note: See TracChangeset
for help on using the changeset viewer.