Changeset 3a4ae6c in rtems for cpukit/rtems/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:
- cpukit/rtems/inline/rtems/rtems
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/rtems/inline/rtems/rtems/asr.inl
r5072b07 r3a4ae6c 18 18 #define __INLINE_ASR_inl 19 19 20 #include <rtems/ isr.h>20 #include <rtems/core/isr.h> 21 21 22 22 /*PAGE … … 30 30 ) 31 31 { 32 information->is_enabled = TRUE; 32 33 information->handler = NULL; 33 34 information->mode_set = RTEMS_DEFAULT_MODES; … … 48 49 { 49 50 rtems_signal_set _signals; 50 ISR_Level 51 ISR_Level _level; 51 52 52 53 _ISR_Disable( _level ); -
cpukit/rtems/inline/rtems/rtems/attr.inl
r5072b07 r3a4ae6c 109 109 } 110 110 111 /*PAGE 112 * 113 * _Attributes_Is_priority_ceiling 114 * 115 */ 116 117 STATIC INLINE boolean _Attributes_Is_priority_ceiling( 118 rtems_attribute attribute_set 119 ) 120 { 121 return ( attribute_set & RTEMS_PRIORITY_CEILING ); 122 } 123 111 124 #endif 112 125 /* end of include file */ -
cpukit/rtems/inline/rtems/rtems/event.inl
r5072b07 r3a4ae6c 25 25 { 26 26 _Event_Sync = FALSE; 27 28 /* 29 * Register the MP Process Packet routine. 30 */ 31 32 _MPCI_Register_packet_processor( MP_PACKET_EVENT, _Event_MP_Process_packet ); 27 33 } 28 34 -
cpukit/rtems/inline/rtems/rtems/message.inl
r5072b07 r3a4ae6c 18 18 #define __MESSAGE_QUEUE_inl 19 19 20 #include <rtems/ wkspace.h>20 #include <rtems/core/wkspace.h> 21 21 22 22 /*PAGE -
cpukit/rtems/inline/rtems/rtems/modes.inl
r5072b07 r3a4ae6c 54 54 ) 55 55 { 56 return ( mode_set & RTEMS_ASR_MASK );56 return (mode_set & RTEMS_ASR_MASK) == RTEMS_NO_ASR; 57 57 } 58 58 … … 67 67 ) 68 68 { 69 return ( ( mode_set & RTEMS_PREEMPT_MASK ) == RTEMS_PREEMPT );69 return (mode_set & RTEMS_PREEMPT_MASK) == RTEMS_PREEMPT; 70 70 } 71 71 … … 80 80 ) 81 81 { 82 return ((mode_set & (RTEMS_TIMESLICE_MASK|RTEMS_PREEMPT_MASK)) == 83 (RTEMS_TIMESLICE|RTEMS_PREEMPT) ); 82 return (mode_set & RTEMS_TIMESLICE_MASK) == RTEMS_TIMESLICE; 84 83 } 85 84 -
cpukit/rtems/inline/rtems/rtems/status.inl
r5072b07 r3a4ae6c 45 45 } 46 46 47 /*48 * _Status_Is_proxy_blocking49 *50 */51 52 STATIC INLINE boolean _Status_Is_proxy_blocking (53 rtems_status_code code54 )55 {56 return (code == RTEMS_PROXY_BLOCKING);57 }58 59 47 #endif 60 48 /* end of include file */ -
cpukit/rtems/inline/rtems/rtems/tasks.inl
r5072b07 r3a4ae6c 17 17 #ifndef __RTEMS_TASKS_inl 18 18 #define __RTEMS_TASKS_inl 19 20 #include <rtems/msgmp.h>21 #include <rtems/partmp.h>22 #include <rtems/regionmp.h>23 #include <rtems/semmp.h>24 19 25 20 /*PAGE … … 52 47 /*PAGE 53 48 * 54 * _RTEMS_tasks_Cancel_wait 55 * 56 */ 57 58 STATIC INLINE void _RTEMS_tasks_Cancel_wait( 59 Thread_Control *the_thread 60 ) 61 { 62 States_Control state; 63 States_Control remote_state; 64 65 state = the_thread->current_state; 66 67 /* XXX do this with the object class */ 68 if ( _States_Is_waiting_on_thread_queue( state ) ) { 69 if ( _States_Is_waiting_for_rpc_reply( state ) && 70 _States_Is_locally_blocked( state ) ) { 71 remote_state = _States_Clear( 72 STATES_WAITING_FOR_RPC_REPLY | STATES_TRANSIENT, 73 state 74 ); 75 76 switch ( remote_state ) { 77 78 case STATES_WAITING_FOR_BUFFER: 79 _Partition_MP_Send_extract_proxy( the_thread ); 80 break; 81 case STATES_WAITING_FOR_SEGMENT: 82 _Region_MP_Send_extract_proxy( the_thread ); 83 break; 84 case STATES_WAITING_FOR_SEMAPHORE: 85 _Semaphore_MP_Send_extract_proxy( the_thread ); 86 break; 87 case STATES_WAITING_FOR_MESSAGE: 88 _Message_queue_MP_Send_extract_proxy( the_thread ); 89 break; 90 } 91 } 92 _Thread_queue_Extract( the_thread->Wait.queue, the_thread ); 93 } 94 else if ( _Watchdog_Is_active( &the_thread->Timer ) ) 95 (void) _Watchdog_Remove( &the_thread->Timer ); 96 } 97 98 /*PAGE 99 * 100 * _RTEMS_Tasks_Priority_to_Core 49 * _RTEMS_tasks_Priority_to_Core 101 50 */ 102 51 103 STATIC INLINE Priority_Control _RTEMS_ Tasks_Priority_to_Core(52 STATIC INLINE Priority_Control _RTEMS_tasks_Priority_to_Core( 104 53 rtems_task_priority priority 105 54 ) … … 108 57 } 109 58 59 /*PAGE 60 * 61 * _RTEMS_tasks_Priority_is_valid 62 * 63 */ 64 65 STATIC INLINE boolean _RTEMS_tasks_Priority_is_valid ( 66 rtems_task_priority the_priority 67 ) 68 { 69 return ( ( the_priority >= RTEMS_MINIMUM_PRIORITY ) && 70 ( the_priority <= RTEMS_MAXIMUM_PRIORITY ) ); 71 } 72 110 73 #endif 111 74 /* end of include file */
Note: See TracChangeset
for help on using the changeset viewer.