Changeset 3a4ae6c in rtems for c/src/exec/score/inline
- Timestamp:
- 09/11/95 19:35:39 (27 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- ced11f99
- Parents:
- 5072b07
- Location:
- c/src/exec/score/inline
- Files:
-
- 4 added
- 28 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/exec/score/inline/address.inl
r5072b07 r3a4ae6c 29 29 ) 30 30 { 31 return ( base + offset);31 return (void *)((char *)base + offset); 32 32 } 33 33 … … 43 43 ) 44 44 { 45 return (base - offset); 46 } 47 48 /*PAGE 49 * 50 * _Addresses_Add 51 * 52 * NOTE: The cast of an address to an unsigned32 makes this code 53 * dependent on an addresses being thirty two bits. 54 */ 55 56 STATIC INLINE void *_Addresses_Add ( 57 void *left, 58 void *right 59 ) 60 { 61 return (left + (unsigned32)right); 45 return (void *)((char *)base - offset); 62 46 } 63 47 -
c/src/exec/score/inline/heap.inl
r5072b07 r3a4ae6c 18 18 #define __HEAP_inl 19 19 20 #include <rtems/ address.h>20 #include <rtems/core/address.h> 21 21 22 22 /*PAGE -
c/src/exec/score/inline/isr.inl
r5072b07 r3a4ae6c 17 17 #ifndef __ISR_inl 18 18 #define __ISR_inl 19 20 /*PAGE21 *22 * _ISR_Handler_initialization23 *24 */25 26 STATIC INLINE void _ISR_Handler_initialization ( void )27 {28 _ISR_Signals_to_thread_executing = FALSE;29 _ISR_Nest_level = 0;30 }31 19 32 20 /*PAGE -
c/src/exec/score/inline/mppkt.inl
r5072b07 r3a4ae6c 27 27 28 28 STATIC INLINE boolean _Mp_packet_Is_valid_packet_class ( 29 rtems_mp_packet_classes the_packet_class29 MP_packet_Classes the_packet_class 30 30 ) 31 31 { … … 40 40 41 41 STATIC INLINE boolean _Mp_packet_Is_null ( 42 rtems_packet_prefix *the_packet42 MP_packet_Prefix *the_packet 43 43 ) 44 44 { -
c/src/exec/score/inline/object.inl
r5072b07 r3a4ae6c 37 37 /*PAGE 38 38 * 39 * rtems_get_class39 * _Objects_Get_class 40 40 */ 41 41 42 STATIC INLINE Objects_Classes rtems_get_class(42 STATIC INLINE Objects_Classes _Objects_Get_class( 43 43 Objects_Id id 44 44 ) … … 51 51 /*PAGE 52 52 * 53 * rtems_get_node53 * _Objects_Get_node 54 54 * 55 55 */ 56 56 57 STATIC INLINE unsigned32 rtems_get_node(57 STATIC INLINE unsigned32 _Objects_Get_node( 58 58 Objects_Id id 59 59 ) … … 64 64 /*PAGE 65 65 * 66 * rtems_get_index66 * _Objects_Get_index 67 67 * 68 68 */ 69 69 70 STATIC INLINE unsigned32 rtems_get_index(70 STATIC INLINE unsigned32 _Objects_Get_index( 71 71 Objects_Id id 72 72 ) … … 111 111 ) 112 112 { 113 return _Objects_Is_local_node( rtems_get_node(id) );113 return _Objects_Is_local_node( _Objects_Get_node(id) ); 114 114 } 115 115 … … 169 169 unsigned32 index; 170 170 171 index = rtems_get_index( the_object->id );171 index = _Objects_Get_index( the_object->id ); 172 172 information->local_table[ index ] = the_object; 173 173 … … 191 191 unsigned32 index; 192 192 193 index = rtems_get_index( the_object->id );193 index = _Objects_Get_index( the_object->id ); 194 194 information->local_table[ index ] = NULL; 195 195 _Objects_Clear_name( the_object->name, information->name_length ); -
c/src/exec/score/inline/priority.inl
r5072b07 r3a4ae6c 18 18 #define __PRIORITY_inl 19 19 20 #include <rtems/ bitfield.h>20 #include <rtems/core/bitfield.h> 21 21 22 22 /*PAGE … … 45 45 ) 46 46 { 47 return ( ( the_priority >= RTEMS_MINIMUM_PRIORITY ) && 48 ( the_priority <= RTEMS_MAXIMUM_PRIORITY ) ); 47 /* 48 * Since PRIORITY_MINIMUM is 0 and priorities are stored unsigned, 49 * then checking for less than 0 is unnecessary. 50 */ 51 52 return ( the_priority <= PRIORITY_MAXIMUM ); 49 53 } 50 54 -
c/src/exec/score/inline/rtems/score/address.inl
r5072b07 r3a4ae6c 29 29 ) 30 30 { 31 return ( base + offset);31 return (void *)((char *)base + offset); 32 32 } 33 33 … … 43 43 ) 44 44 { 45 return (base - offset); 46 } 47 48 /*PAGE 49 * 50 * _Addresses_Add 51 * 52 * NOTE: The cast of an address to an unsigned32 makes this code 53 * dependent on an addresses being thirty two bits. 54 */ 55 56 STATIC INLINE void *_Addresses_Add ( 57 void *left, 58 void *right 59 ) 60 { 61 return (left + (unsigned32)right); 45 return (void *)((char *)base - offset); 62 46 } 63 47 -
c/src/exec/score/inline/rtems/score/heap.inl
r5072b07 r3a4ae6c 18 18 #define __HEAP_inl 19 19 20 #include <rtems/ address.h>20 #include <rtems/core/address.h> 21 21 22 22 /*PAGE -
c/src/exec/score/inline/rtems/score/isr.inl
r5072b07 r3a4ae6c 17 17 #ifndef __ISR_inl 18 18 #define __ISR_inl 19 20 /*PAGE21 *22 * _ISR_Handler_initialization23 *24 */25 26 STATIC INLINE void _ISR_Handler_initialization ( void )27 {28 _ISR_Signals_to_thread_executing = FALSE;29 _ISR_Nest_level = 0;30 }31 19 32 20 /*PAGE -
c/src/exec/score/inline/rtems/score/mppkt.inl
r5072b07 r3a4ae6c 27 27 28 28 STATIC INLINE boolean _Mp_packet_Is_valid_packet_class ( 29 rtems_mp_packet_classes the_packet_class29 MP_packet_Classes the_packet_class 30 30 ) 31 31 { … … 40 40 41 41 STATIC INLINE boolean _Mp_packet_Is_null ( 42 rtems_packet_prefix *the_packet42 MP_packet_Prefix *the_packet 43 43 ) 44 44 { -
c/src/exec/score/inline/rtems/score/object.inl
r5072b07 r3a4ae6c 37 37 /*PAGE 38 38 * 39 * rtems_get_class39 * _Objects_Get_class 40 40 */ 41 41 42 STATIC INLINE Objects_Classes rtems_get_class(42 STATIC INLINE Objects_Classes _Objects_Get_class( 43 43 Objects_Id id 44 44 ) … … 51 51 /*PAGE 52 52 * 53 * rtems_get_node53 * _Objects_Get_node 54 54 * 55 55 */ 56 56 57 STATIC INLINE unsigned32 rtems_get_node(57 STATIC INLINE unsigned32 _Objects_Get_node( 58 58 Objects_Id id 59 59 ) … … 64 64 /*PAGE 65 65 * 66 * rtems_get_index66 * _Objects_Get_index 67 67 * 68 68 */ 69 69 70 STATIC INLINE unsigned32 rtems_get_index(70 STATIC INLINE unsigned32 _Objects_Get_index( 71 71 Objects_Id id 72 72 ) … … 111 111 ) 112 112 { 113 return _Objects_Is_local_node( rtems_get_node(id) );113 return _Objects_Is_local_node( _Objects_Get_node(id) ); 114 114 } 115 115 … … 169 169 unsigned32 index; 170 170 171 index = rtems_get_index( the_object->id );171 index = _Objects_Get_index( the_object->id ); 172 172 information->local_table[ index ] = the_object; 173 173 … … 191 191 unsigned32 index; 192 192 193 index = rtems_get_index( the_object->id );193 index = _Objects_Get_index( the_object->id ); 194 194 information->local_table[ index ] = NULL; 195 195 _Objects_Clear_name( the_object->name, information->name_length ); -
c/src/exec/score/inline/rtems/score/priority.inl
r5072b07 r3a4ae6c 18 18 #define __PRIORITY_inl 19 19 20 #include <rtems/ bitfield.h>20 #include <rtems/core/bitfield.h> 21 21 22 22 /*PAGE … … 45 45 ) 46 46 { 47 return ( ( the_priority >= RTEMS_MINIMUM_PRIORITY ) && 48 ( the_priority <= RTEMS_MAXIMUM_PRIORITY ) ); 47 /* 48 * Since PRIORITY_MINIMUM is 0 and priorities are stored unsigned, 49 * then checking for less than 0 is unnecessary. 50 */ 51 52 return ( the_priority <= PRIORITY_MAXIMUM ); 49 53 } 50 54 -
c/src/exec/score/inline/rtems/score/stack.inl
r5072b07 r3a4ae6c 44 44 ) 45 45 { 46 return ( size >= RTEMS_MINIMUM_STACK_SIZE );46 return ( size >= STACK_MINIMUM_SIZE ); 47 47 } 48 48 -
c/src/exec/score/inline/rtems/score/states.inl
r5072b07 r3a4ae6c 2 2 * 3 3 * This file contains the macro implementation of the inlined 4 * routines associated with RTEMSstate information.4 * routines associated with thread state information. 5 5 * 6 6 * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994. … … 178 178 /*PAGE 179 179 * 180 * _States_Is_waiting_for_mutex 181 * 182 */ 183 184 STATIC INLINE boolean _States_Is_waiting_for_mutex ( 185 States_Control the_states 186 ) 187 { 188 return (the_states & STATES_WAITING_FOR_MUTEX); 189 } 190 191 /*PAGE 192 * 180 193 * _States_Is_waiting_for_semaphore 181 194 * -
c/src/exec/score/inline/rtems/score/sysstate.inl
r5072b07 r3a4ae6c 18 18 #define __SYSTEM_STATE_inl 19 19 20 /*PAGE 21 * 22 * _System_state_Handler_initialization 23 */ 24 25 STATIC INLINE void _System_state_Handler_initialization ( 26 boolean is_multiprocessing 27 ) 28 { 29 _System_state_Current = SYSTEM_STATE_BEFORE_INITIALIZATION; 30 _System_state_Is_multiprocessing = is_multiprocessing; 31 } 32 20 33 /*PAGE 21 34 * -
c/src/exec/score/inline/rtems/score/thread.inl
r5072b07 r3a4ae6c 249 249 } 250 250 251 the_class = rtems_get_class( id );251 the_class = _Objects_Get_class( id ); 252 252 253 253 if ( the_class > OBJECTS_CLASSES_LAST ) { … … 266 266 } 267 267 268 /* 269 * _Thread_Is_proxy_blocking 270 * 271 */ 272 273 STATIC INLINE boolean _Thread_Is_proxy_blocking ( 274 unsigned32 code 275 ) 276 { 277 return (code == THREAD_STATUS_PROXY_BLOCKING); 278 } 279 268 280 #endif 269 281 /* end of include file */ -
c/src/exec/score/inline/rtems/score/tod.inl
r5072b07 r3a4ae6c 59 59 60 60 STATIC INLINE void _TOD_Activate( 61 rtems_interval ticks61 Watchdog_Interval ticks 62 62 ) 63 63 { -
c/src/exec/score/inline/rtems/score/userext.inl
r5072b07 r3a4ae6c 25 25 26 26 STATIC INLINE void _User_extensions_Handler_initialization ( 27 rtems_extensions_table*initial_extensions27 User_extensions_Table *initial_extensions 28 28 ) 29 29 { … … 43 43 STATIC INLINE void _User_extensions_Add_set ( 44 44 User_extensions_Control *the_extension, 45 rtems_extensions_table*extension_table45 User_extensions_Table *extension_table 46 46 ) 47 47 { … … 51 51 } 52 52 53 /*PAGE 54 * 55 * _User_extensions_Add_API_set 56 */ 57 58 STATIC INLINE void _User_extensions_Add_API_set ( 59 User_extensions_Control *the_extension 60 ) 61 { 62 _Chain_Prepend( &_User_extensions_List, &the_extension->Node ); 63 } 64 53 65 /*PAGE 54 66 * … … 65 77 /*PAGE 66 78 * 67 * _User_extensions_T ask_create79 * _User_extensions_Thread_switch 68 80 * 69 81 */ 70 82 71 STATIC INLINE void _User_extensions_Task_create ( 72 Thread_Control *the_thread 73 ) 74 { 75 Chain_Node *the_node; 76 User_extensions_Control *the_extension; 77 78 for ( the_node = _User_extensions_List.first ; 79 !_Chain_Is_tail( &_User_extensions_List, the_node ) ; 80 the_node = the_node->next ) { 81 82 the_extension = (User_extensions_Control *) the_node; 83 84 if ( the_extension->Callouts.rtems_task_create != NULL ) 85 (*the_extension->Callouts.rtems_task_create)( 86 _Thread_Executing, 87 the_thread 88 ); 89 } 90 } 91 92 /*PAGE 93 * 94 * _User_extensions_Task_delete 95 */ 96 97 STATIC INLINE void _User_extensions_Task_delete ( 98 Thread_Control *the_thread 99 ) 100 { 101 Chain_Node *the_node; 102 User_extensions_Control *the_extension; 103 104 for ( the_node = _User_extensions_List.last ; 105 !_Chain_Is_head( &_User_extensions_List, the_node ) ; 106 the_node = the_node->previous ) { 107 108 the_extension = (User_extensions_Control *) the_node; 109 110 if ( the_extension->Callouts.rtems_task_delete != NULL ) 111 (*the_extension->Callouts.rtems_task_delete)( 112 _Thread_Executing, 113 the_thread 114 ); 115 } 116 } 117 118 /*PAGE 119 * 120 * _User_extensions_Task_start 121 * 122 */ 123 124 STATIC INLINE void _User_extensions_Task_start ( 125 Thread_Control *the_thread 126 ) 127 { 128 Chain_Node *the_node; 129 User_extensions_Control *the_extension; 130 131 for ( the_node = _User_extensions_List.first ; 132 !_Chain_Is_tail( &_User_extensions_List, the_node ) ; 133 the_node = the_node->next ) { 134 135 the_extension = (User_extensions_Control *) the_node; 136 137 if ( the_extension->Callouts.rtems_task_start != NULL ) 138 (*the_extension->Callouts.rtems_task_start)( 139 _Thread_Executing, 140 the_thread 141 ); 142 } 143 } 144 145 /*PAGE 146 * 147 * _User_extensions_Task_restart 148 * 149 */ 150 151 STATIC INLINE void _User_extensions_Task_restart ( 152 Thread_Control *the_thread 153 ) 154 { 155 Chain_Node *the_node; 156 User_extensions_Control *the_extension; 157 158 for ( the_node = _User_extensions_List.first ; 159 !_Chain_Is_tail( &_User_extensions_List, the_node ) ; 160 the_node = the_node->next ) { 161 162 the_extension = (User_extensions_Control *) the_node; 163 164 if ( the_extension->Callouts.rtems_task_restart != NULL ) 165 (*the_extension->Callouts.rtems_task_restart)( 166 _Thread_Executing, 167 the_thread 168 ); 169 } 170 } 171 172 /*PAGE 173 * 174 * _User_extensions_Task_switch 175 * 176 */ 177 178 STATIC INLINE void _User_extensions_Task_switch ( 83 STATIC INLINE void _User_extensions_Thread_switch ( 179 84 Thread_Control *executing, 180 85 Thread_Control *heir … … 190 95 the_extension = (User_extensions_Control *) the_node; 191 96 192 if ( the_extension->Callouts.t ask_switch != NULL )193 (*the_extension->Callouts.t ask_switch)( executing, heir );97 if ( the_extension->Callouts.thread_switch != NULL ) 98 (*the_extension->Callouts.thread_switch)( executing, heir ); 194 99 } 195 100 } … … 197 102 /*PAGE 198 103 * 199 * _User_extensions_T ask_begin104 * _User_extensions_Thread_post_switch 200 105 * 201 106 */ 202 203 STATIC INLINE void _User_extensions_T ask_begin(107 108 STATIC INLINE void _User_extensions_Thread_post_switch ( 204 109 Thread_Control *executing 205 110 ) … … 207 112 Chain_Node *the_node; 208 113 User_extensions_Control *the_extension; 209 114 210 115 for ( the_node = _User_extensions_List.first ; 211 116 !_Chain_Is_tail( &_User_extensions_List, the_node ) ; 212 117 the_node = the_node->next ) { 213 118 214 119 the_extension = (User_extensions_Control *) the_node; 215 216 if ( the_extension->Callouts.task_begin != NULL ) 217 (*the_extension->Callouts.task_begin)( executing ); 218 } 219 } 220 221 /*PAGE 222 * 223 * _User_extensions_Task_exitted 224 */ 225 226 STATIC INLINE void _User_extensions_Task_exitted ( 227 Thread_Control *executing 228 ) 229 { 230 Chain_Node *the_node; 231 User_extensions_Control *the_extension; 232 233 for ( the_node = _User_extensions_List.last ; 234 !_Chain_Is_head( &_User_extensions_List, the_node ) ; 235 the_node = the_node->previous ) { 236 237 the_extension = (User_extensions_Control *) the_node; 238 239 if ( the_extension->Callouts.task_exitted != NULL ) 240 (*the_extension->Callouts.task_exitted)( executing ); 241 } 242 } 243 244 /*PAGE 245 * 246 * _User_extensions_Fatal 247 */ 248 249 STATIC INLINE void _User_extensions_Fatal ( 250 unsigned32 the_error 251 ) 252 { 253 Chain_Node *the_node; 254 User_extensions_Control *the_extension; 255 256 for ( the_node = _User_extensions_List.last ; 257 !_Chain_Is_head( &_User_extensions_List, the_node ) ; 258 the_node = the_node->previous ) { 259 260 the_extension = (User_extensions_Control *) the_node; 261 262 if ( the_extension->Callouts.fatal != NULL ) 263 (*the_extension->Callouts.fatal)( the_error ); 120 121 if ( the_extension->Callouts.thread_post_switch != NULL ) 122 (*the_extension->Callouts.thread_post_switch)( executing ); 264 123 } 265 124 } -
c/src/exec/score/inline/rtems/score/watchdog.inl
r5072b07 r3a4ae6c 25 25 26 26 STATIC INLINE void _Watchdog_Initialize( 27 Watchdog_Control *the_watchdog,28 rtems_timer_service_routine_entry routine,29 Objects_Id id,30 void *user_data27 Watchdog_Control *the_watchdog, 28 Watchdog_Service_routine_entry routine, 29 Objects_Id id, 30 void *user_data 31 31 ) 32 32 { … … 116 116 STATIC INLINE void _Watchdog_Insert_ticks( 117 117 Watchdog_Control *the_watchdog, 118 rtems_interval units,118 Watchdog_Interval units, 119 119 Watchdog_Insert_modes insert_mode 120 120 ) … … 135 135 STATIC INLINE void _Watchdog_Insert_seconds( 136 136 Watchdog_Control *the_watchdog, 137 rtems_interval units,137 Watchdog_Interval units, 138 138 Watchdog_Insert_modes insert_mode 139 139 ) … … 154 154 STATIC INLINE void _Watchdog_Adjust_seconds( 155 155 Watchdog_Adjust_directions direction, 156 rtems_interval units156 Watchdog_Interval units 157 157 ) 158 158 { … … 170 170 STATIC INLINE void _Watchdog_Adjust_ticks( 171 171 Watchdog_Adjust_directions direction, 172 rtems_interval units172 Watchdog_Interval units 173 173 ) 174 174 { -
c/src/exec/score/inline/rtems/score/wkspace.inl
r5072b07 r3a4ae6c 2 2 * 3 3 * This include file contains the bodies of the routines which contains 4 * information related to the R TEMS RAM Workspace.4 * information related to the RAM Workspace. 5 5 * 6 6 * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994. … … 33 33 unsigned32 memory_available; 34 34 35 if ( (starting_address == NULL) || 36 !_Addresses_Is_aligned( starting_address ) ) 37 rtems_fatal_error_occurred( RTEMS_INVALID_ADDRESS ); 35 if ( !starting_address || !_Addresses_Is_aligned( starting_address ) ) 36 _Internal_error_Occurred( 37 INTERNAL_ERROR_CORE, 38 TRUE, 39 INTERNAL_ERROR_INVALID_WORKSPACE_ADDRESS 40 ); 38 41 39 42 if ( _CPU_Table.do_zero_of_workspace ) { … … 52 55 53 56 if ( memory_available == 0 ) 54 rtems_fatal_error_occurred( RTEMS_UNSATISFIED ); 57 _Internal_error_Occurred( 58 INTERNAL_ERROR_CORE, 59 TRUE, 60 INTERNAL_ERROR_TOO_LITTLE_WORKSPACE 61 ); 55 62 } 56 63 -
c/src/exec/score/inline/stack.inl
r5072b07 r3a4ae6c 44 44 ) 45 45 { 46 return ( size >= RTEMS_MINIMUM_STACK_SIZE );46 return ( size >= STACK_MINIMUM_SIZE ); 47 47 } 48 48 -
c/src/exec/score/inline/states.inl
r5072b07 r3a4ae6c 2 2 * 3 3 * This file contains the macro implementation of the inlined 4 * routines associated with RTEMSstate information.4 * routines associated with thread state information. 5 5 * 6 6 * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994. … … 178 178 /*PAGE 179 179 * 180 * _States_Is_waiting_for_mutex 181 * 182 */ 183 184 STATIC INLINE boolean _States_Is_waiting_for_mutex ( 185 States_Control the_states 186 ) 187 { 188 return (the_states & STATES_WAITING_FOR_MUTEX); 189 } 190 191 /*PAGE 192 * 180 193 * _States_Is_waiting_for_semaphore 181 194 * -
c/src/exec/score/inline/sysstate.inl
r5072b07 r3a4ae6c 18 18 #define __SYSTEM_STATE_inl 19 19 20 /*PAGE 21 * 22 * _System_state_Handler_initialization 23 */ 24 25 STATIC INLINE void _System_state_Handler_initialization ( 26 boolean is_multiprocessing 27 ) 28 { 29 _System_state_Current = SYSTEM_STATE_BEFORE_INITIALIZATION; 30 _System_state_Is_multiprocessing = is_multiprocessing; 31 } 32 20 33 /*PAGE 21 34 * -
c/src/exec/score/inline/thread.inl
r5072b07 r3a4ae6c 249 249 } 250 250 251 the_class = rtems_get_class( id );251 the_class = _Objects_Get_class( id ); 252 252 253 253 if ( the_class > OBJECTS_CLASSES_LAST ) { … … 266 266 } 267 267 268 /* 269 * _Thread_Is_proxy_blocking 270 * 271 */ 272 273 STATIC INLINE boolean _Thread_Is_proxy_blocking ( 274 unsigned32 code 275 ) 276 { 277 return (code == THREAD_STATUS_PROXY_BLOCKING); 278 } 279 268 280 #endif 269 281 /* end of include file */ -
c/src/exec/score/inline/tod.inl
r5072b07 r3a4ae6c 59 59 60 60 STATIC INLINE void _TOD_Activate( 61 rtems_interval ticks61 Watchdog_Interval ticks 62 62 ) 63 63 { -
c/src/exec/score/inline/userext.inl
r5072b07 r3a4ae6c 25 25 26 26 STATIC INLINE void _User_extensions_Handler_initialization ( 27 rtems_extensions_table*initial_extensions27 User_extensions_Table *initial_extensions 28 28 ) 29 29 { … … 43 43 STATIC INLINE void _User_extensions_Add_set ( 44 44 User_extensions_Control *the_extension, 45 rtems_extensions_table*extension_table45 User_extensions_Table *extension_table 46 46 ) 47 47 { … … 51 51 } 52 52 53 /*PAGE 54 * 55 * _User_extensions_Add_API_set 56 */ 57 58 STATIC INLINE void _User_extensions_Add_API_set ( 59 User_extensions_Control *the_extension 60 ) 61 { 62 _Chain_Prepend( &_User_extensions_List, &the_extension->Node ); 63 } 64 53 65 /*PAGE 54 66 * … … 65 77 /*PAGE 66 78 * 67 * _User_extensions_T ask_create79 * _User_extensions_Thread_switch 68 80 * 69 81 */ 70 82 71 STATIC INLINE void _User_extensions_Task_create ( 72 Thread_Control *the_thread 73 ) 74 { 75 Chain_Node *the_node; 76 User_extensions_Control *the_extension; 77 78 for ( the_node = _User_extensions_List.first ; 79 !_Chain_Is_tail( &_User_extensions_List, the_node ) ; 80 the_node = the_node->next ) { 81 82 the_extension = (User_extensions_Control *) the_node; 83 84 if ( the_extension->Callouts.rtems_task_create != NULL ) 85 (*the_extension->Callouts.rtems_task_create)( 86 _Thread_Executing, 87 the_thread 88 ); 89 } 90 } 91 92 /*PAGE 93 * 94 * _User_extensions_Task_delete 95 */ 96 97 STATIC INLINE void _User_extensions_Task_delete ( 98 Thread_Control *the_thread 99 ) 100 { 101 Chain_Node *the_node; 102 User_extensions_Control *the_extension; 103 104 for ( the_node = _User_extensions_List.last ; 105 !_Chain_Is_head( &_User_extensions_List, the_node ) ; 106 the_node = the_node->previous ) { 107 108 the_extension = (User_extensions_Control *) the_node; 109 110 if ( the_extension->Callouts.rtems_task_delete != NULL ) 111 (*the_extension->Callouts.rtems_task_delete)( 112 _Thread_Executing, 113 the_thread 114 ); 115 } 116 } 117 118 /*PAGE 119 * 120 * _User_extensions_Task_start 121 * 122 */ 123 124 STATIC INLINE void _User_extensions_Task_start ( 125 Thread_Control *the_thread 126 ) 127 { 128 Chain_Node *the_node; 129 User_extensions_Control *the_extension; 130 131 for ( the_node = _User_extensions_List.first ; 132 !_Chain_Is_tail( &_User_extensions_List, the_node ) ; 133 the_node = the_node->next ) { 134 135 the_extension = (User_extensions_Control *) the_node; 136 137 if ( the_extension->Callouts.rtems_task_start != NULL ) 138 (*the_extension->Callouts.rtems_task_start)( 139 _Thread_Executing, 140 the_thread 141 ); 142 } 143 } 144 145 /*PAGE 146 * 147 * _User_extensions_Task_restart 148 * 149 */ 150 151 STATIC INLINE void _User_extensions_Task_restart ( 152 Thread_Control *the_thread 153 ) 154 { 155 Chain_Node *the_node; 156 User_extensions_Control *the_extension; 157 158 for ( the_node = _User_extensions_List.first ; 159 !_Chain_Is_tail( &_User_extensions_List, the_node ) ; 160 the_node = the_node->next ) { 161 162 the_extension = (User_extensions_Control *) the_node; 163 164 if ( the_extension->Callouts.rtems_task_restart != NULL ) 165 (*the_extension->Callouts.rtems_task_restart)( 166 _Thread_Executing, 167 the_thread 168 ); 169 } 170 } 171 172 /*PAGE 173 * 174 * _User_extensions_Task_switch 175 * 176 */ 177 178 STATIC INLINE void _User_extensions_Task_switch ( 83 STATIC INLINE void _User_extensions_Thread_switch ( 179 84 Thread_Control *executing, 180 85 Thread_Control *heir … … 190 95 the_extension = (User_extensions_Control *) the_node; 191 96 192 if ( the_extension->Callouts.t ask_switch != NULL )193 (*the_extension->Callouts.t ask_switch)( executing, heir );97 if ( the_extension->Callouts.thread_switch != NULL ) 98 (*the_extension->Callouts.thread_switch)( executing, heir ); 194 99 } 195 100 } … … 197 102 /*PAGE 198 103 * 199 * _User_extensions_T ask_begin104 * _User_extensions_Thread_post_switch 200 105 * 201 106 */ 202 203 STATIC INLINE void _User_extensions_T ask_begin(107 108 STATIC INLINE void _User_extensions_Thread_post_switch ( 204 109 Thread_Control *executing 205 110 ) … … 207 112 Chain_Node *the_node; 208 113 User_extensions_Control *the_extension; 209 114 210 115 for ( the_node = _User_extensions_List.first ; 211 116 !_Chain_Is_tail( &_User_extensions_List, the_node ) ; 212 117 the_node = the_node->next ) { 213 118 214 119 the_extension = (User_extensions_Control *) the_node; 215 216 if ( the_extension->Callouts.task_begin != NULL ) 217 (*the_extension->Callouts.task_begin)( executing ); 218 } 219 } 220 221 /*PAGE 222 * 223 * _User_extensions_Task_exitted 224 */ 225 226 STATIC INLINE void _User_extensions_Task_exitted ( 227 Thread_Control *executing 228 ) 229 { 230 Chain_Node *the_node; 231 User_extensions_Control *the_extension; 232 233 for ( the_node = _User_extensions_List.last ; 234 !_Chain_Is_head( &_User_extensions_List, the_node ) ; 235 the_node = the_node->previous ) { 236 237 the_extension = (User_extensions_Control *) the_node; 238 239 if ( the_extension->Callouts.task_exitted != NULL ) 240 (*the_extension->Callouts.task_exitted)( executing ); 241 } 242 } 243 244 /*PAGE 245 * 246 * _User_extensions_Fatal 247 */ 248 249 STATIC INLINE void _User_extensions_Fatal ( 250 unsigned32 the_error 251 ) 252 { 253 Chain_Node *the_node; 254 User_extensions_Control *the_extension; 255 256 for ( the_node = _User_extensions_List.last ; 257 !_Chain_Is_head( &_User_extensions_List, the_node ) ; 258 the_node = the_node->previous ) { 259 260 the_extension = (User_extensions_Control *) the_node; 261 262 if ( the_extension->Callouts.fatal != NULL ) 263 (*the_extension->Callouts.fatal)( the_error ); 120 121 if ( the_extension->Callouts.thread_post_switch != NULL ) 122 (*the_extension->Callouts.thread_post_switch)( executing ); 264 123 } 265 124 } -
c/src/exec/score/inline/watchdog.inl
r5072b07 r3a4ae6c 25 25 26 26 STATIC INLINE void _Watchdog_Initialize( 27 Watchdog_Control *the_watchdog,28 rtems_timer_service_routine_entry routine,29 Objects_Id id,30 void *user_data27 Watchdog_Control *the_watchdog, 28 Watchdog_Service_routine_entry routine, 29 Objects_Id id, 30 void *user_data 31 31 ) 32 32 { … … 116 116 STATIC INLINE void _Watchdog_Insert_ticks( 117 117 Watchdog_Control *the_watchdog, 118 rtems_interval units,118 Watchdog_Interval units, 119 119 Watchdog_Insert_modes insert_mode 120 120 ) … … 135 135 STATIC INLINE void _Watchdog_Insert_seconds( 136 136 Watchdog_Control *the_watchdog, 137 rtems_interval units,137 Watchdog_Interval units, 138 138 Watchdog_Insert_modes insert_mode 139 139 ) … … 154 154 STATIC INLINE void _Watchdog_Adjust_seconds( 155 155 Watchdog_Adjust_directions direction, 156 rtems_interval units156 Watchdog_Interval units 157 157 ) 158 158 { … … 170 170 STATIC INLINE void _Watchdog_Adjust_ticks( 171 171 Watchdog_Adjust_directions direction, 172 rtems_interval units172 Watchdog_Interval units 173 173 ) 174 174 { -
c/src/exec/score/inline/wkspace.inl
r5072b07 r3a4ae6c 2 2 * 3 3 * This include file contains the bodies of the routines which contains 4 * information related to the R TEMS RAM Workspace.4 * information related to the RAM Workspace. 5 5 * 6 6 * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994. … … 33 33 unsigned32 memory_available; 34 34 35 if ( (starting_address == NULL) || 36 !_Addresses_Is_aligned( starting_address ) ) 37 rtems_fatal_error_occurred( RTEMS_INVALID_ADDRESS ); 35 if ( !starting_address || !_Addresses_Is_aligned( starting_address ) ) 36 _Internal_error_Occurred( 37 INTERNAL_ERROR_CORE, 38 TRUE, 39 INTERNAL_ERROR_INVALID_WORKSPACE_ADDRESS 40 ); 38 41 39 42 if ( _CPU_Table.do_zero_of_workspace ) { … … 52 55 53 56 if ( memory_available == 0 ) 54 rtems_fatal_error_occurred( RTEMS_UNSATISFIED ); 57 _Internal_error_Occurred( 58 INTERNAL_ERROR_CORE, 59 TRUE, 60 INTERNAL_ERROR_TOO_LITTLE_WORKSPACE 61 ); 55 62 } 56 63
Note: See TracChangeset
for help on using the changeset viewer.