=============================================================================== 0004c8b0 : uint32_t TOD_MICROSECONDS_TO_TICKS( uint32_t microseconds ) { return (microseconds / rtems_configuration_get_microseconds_per_tick()); } 4c8b0: 41f9 0006 26f0 lea 626f0 ,%a0 <== NOT EXECUTED #include uint32_t TOD_MICROSECONDS_TO_TICKS( uint32_t microseconds ) { 4c8b6: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return (microseconds / rtems_configuration_get_microseconds_per_tick()); } 4c8ba: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED 4c8be: 4e5e unlk %fp <== NOT EXECUTED 4c8c0: 4c50 0000 remul %a0@,%d0,%d0 <== NOT EXECUTED ... =============================================================================== 00047f58 : #include uint32_t TOD_MILLISECONDS_TO_TICKS( uint32_t milliseconds ) { 47f58: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return (milliseconds / rtems_configuration_get_milliseconds_per_tick()); 47f5c: 2039 0005 e270 movel 5e270 ,%d0 <== NOT EXECUTED #include uint32_t TOD_MILLISECONDS_TO_TICKS( uint32_t milliseconds ) { 47f62: 2f02 movel %d2,%sp@- <== NOT EXECUTED return (milliseconds / rtems_configuration_get_milliseconds_per_tick()); 47f64: 243c 0000 03e8 movel #1000,%d2 <== NOT EXECUTED 47f6a: 4c42 0000 remul %d2,%d0,%d0 <== NOT EXECUTED } 47f6e: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED 47f72: 4c40 2002 remul %d0,%d2,%d2 <== NOT EXECUTED 47f76: 2002 movel %d2,%d0 <== NOT EXECUTED 47f78: 241f movel %sp@+,%d2 <== NOT EXECUTED 47f7a: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 0004c970 : uint32_t TOD_TICKS_PER_SECOND_method(void) { return (TOD_MICROSECONDS_PER_SECOND / rtems_configuration_get_microseconds_per_tick()); } 4c970: 41f9 0005 ede0 lea 5ede0 ,%a0 <== NOT EXECUTED #include #include #include uint32_t TOD_TICKS_PER_SECOND_method(void) { 4c976: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return (TOD_MICROSECONDS_PER_SECOND / rtems_configuration_get_microseconds_per_tick()); } 4c97a: 203c 000f 4240 movel #1000000,%d0 <== NOT EXECUTED 4c980: 4e5e unlk %fp <== NOT EXECUTED 4c982: 4c50 0000 remul %a0@,%d0,%d0 <== NOT EXECUTED =============================================================================== 00046e44 <_API_Mutex_Unlock>: #include void _API_Mutex_Unlock( API_Mutex_Control *the_mutex ) { 46e44: 4e56 0000 linkw %fp,#0 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 46e48: 2039 0005 e4c8 movel 5e4c8 <_Thread_Dispatch_disable_level>,%d0 46e4e: 5280 addql #1,%d0 46e50: 206e 0008 moveal %fp@(8),%a0 46e54: 23c0 0005 e4c8 movel %d0,5e4c8 <_Thread_Dispatch_disable_level> _Thread_Disable_dispatch(); _CORE_mutex_Surrender( 46e5a: 42a7 clrl %sp@- 46e5c: 2f28 0008 movel %a0@(8),%sp@- 46e60: 4868 0010 pea %a0@(16) 46e64: 4eb9 0004 714c jsr 4714c <_CORE_mutex_Surrender> &the_mutex->Mutex, the_mutex->Object.id, NULL ); _Thread_Enable_dispatch(); 46e6a: 4fef 000c lea %sp@(12),%sp } 46e6e: 4e5e unlk %fp _CORE_mutex_Surrender( &the_mutex->Mutex, the_mutex->Object.id, NULL ); _Thread_Enable_dispatch(); 46e70: 4ef9 0004 88c2 jmp 488c2 <_Thread_Enable_dispatch> ... =============================================================================== 00046d1e <_API_extensions_Run_postdriver>: * * _API_extensions_Run_postdriver */ void _API_extensions_Run_postdriver( void ) { 46d1e: 4e56 0000 linkw %fp,#0 46d22: 2f0a movel %a2,%sp@- the_extension = (API_extensions_Control *) the_node; (*the_extension->postswitch_hook)( _Thread_Executing ); } } 46d24: 2479 0005 e640 moveal 5e640 <_API_extensions_List>,%a2 void _API_extensions_Run_postdriver( void ) { Chain_Node *the_node; API_extensions_Control *the_extension; for ( the_node = _Chain_First( &_API_extensions_List ); 46d2a: b5fc 0005 e644 cmpal #386628,%a2 46d30: 6710 beqs 46d42 <_API_extensions_Run_postdriver+0x24><== NEVER TAKEN * Currently all APIs configure this hook so it is always non-NULL. */ #if defined(FUNCTIONALITY_NOT_CURRENTLY_USED_BY_ANY_API) if ( the_extension->postdriver_hook ) #endif (*the_extension->postdriver_hook)(); 46d32: 206a 0008 moveal %a2@(8),%a0 46d36: 4e90 jsr %a0@ Chain_Node *the_node; API_extensions_Control *the_extension; for ( the_node = _Chain_First( &_API_extensions_List ); !_Chain_Is_tail( &_API_extensions_List, the_node ) ; the_node = the_node->next ) { 46d38: 2452 moveal %a2@,%a2 void _API_extensions_Run_postdriver( void ) { Chain_Node *the_node; API_extensions_Control *the_extension; for ( the_node = _Chain_First( &_API_extensions_List ); 46d3a: b5fc 0005 e644 cmpal #386628,%a2 46d40: 66f0 bnes 46d32 <_API_extensions_Run_postdriver+0x14><== NEVER TAKEN #if defined(FUNCTIONALITY_NOT_CURRENTLY_USED_BY_ANY_API) if ( the_extension->postdriver_hook ) #endif (*the_extension->postdriver_hook)(); } } 46d42: 246e fffc moveal %fp@(-4),%a2 46d46: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00046d4a <_API_extensions_Run_postswitch>: * * _API_extensions_Run_postswitch */ void _API_extensions_Run_postswitch( void ) { 46d4a: 4e56 0000 linkw %fp,#0 46d4e: 2f0a movel %a2,%sp@- the_extension = (API_extensions_Control *) the_node; (*the_extension->postswitch_hook)( _Thread_Executing ); } } 46d50: 2479 0005 e640 moveal 5e640 <_API_extensions_List>,%a2 void _API_extensions_Run_postswitch( void ) { Chain_Node *the_node; API_extensions_Control *the_extension; for ( the_node = _Chain_First( &_API_extensions_List ); 46d56: b5fc 0005 e644 cmpal #386628,%a2 46d5c: 6718 beqs 46d76 <_API_extensions_Run_postswitch+0x2c><== NEVER TAKEN !_Chain_Is_tail( &_API_extensions_List, the_node ) ; the_node = the_node->next ) { the_extension = (API_extensions_Control *) the_node; (*the_extension->postswitch_hook)( _Thread_Executing ); 46d5e: 2f39 0005 e684 movel 5e684 <_Per_CPU_Information+0xc>,%sp@- 46d64: 206a 000c moveal %a2@(12),%a0 46d68: 4e90 jsr %a0@ Chain_Node *the_node; API_extensions_Control *the_extension; for ( the_node = _Chain_First( &_API_extensions_List ); !_Chain_Is_tail( &_API_extensions_List, the_node ) ; the_node = the_node->next ) { 46d6a: 2452 moveal %a2@,%a2 void _API_extensions_Run_postswitch( void ) { Chain_Node *the_node; API_extensions_Control *the_extension; for ( the_node = _Chain_First( &_API_extensions_List ); 46d6c: 588f addql #4,%sp 46d6e: b5fc 0005 e644 cmpal #386628,%a2 46d74: 66e8 bnes 46d5e <_API_extensions_Run_postswitch+0x14><== NEVER TAKEN the_extension = (API_extensions_Control *) the_node; (*the_extension->postswitch_hook)( _Thread_Executing ); } } 46d76: 246e fffc moveal %fp@(-4),%a2 46d7a: 4e5e unlk %fp ... =============================================================================== 0004f580 <_Barrier_Translate_core_barrier_return_code>: */ #if defined(RTEMS_DEBUG) if ( the_barrier_status > CORE_BARRIER_STATUS_LAST ) return RTEMS_INTERNAL_ERROR; #endif return _Barrier_Translate_core_barrier_return_code_[the_barrier_status]; 4f580: 41f9 0005 f7b4 lea 5f7b4 <_Barrier_Translate_core_barrier_return_code_>,%a0<== NOT EXECUTED }; rtems_status_code _Barrier_Translate_core_barrier_return_code ( CORE_barrier_Status the_barrier_status ) { 4f586: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( the_barrier_status > CORE_BARRIER_STATUS_LAST ) return RTEMS_INTERNAL_ERROR; #endif return _Barrier_Translate_core_barrier_return_code_[the_barrier_status]; } 4f58a: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED 4f58e: 4e5e unlk %fp <== NOT EXECUTED 4f590: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED ... =============================================================================== 0004eac0 <_CORE_barrier_Release>: #else Objects_Id id __attribute__((unused)), CORE_barrier_API_mp_support_callout api_barrier_mp_support __attribute__((unused)) #endif ) { 4eac0: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 4eac4: 48d7 0c04 moveml %d2/%a2-%a3,%sp@ <== NOT EXECUTED 4eac8: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 4eacc: 47f9 0004 ae40 lea 4ae40 <_Thread_queue_Dequeue>,%a3 <== NOT EXECUTED Thread_Control *the_thread; uint32_t count; count = 0; 4ead2: 4282 clrl %d2 <== NOT EXECUTED while ( (the_thread = _Thread_queue_Dequeue(&the_barrier->Wait_queue)) ) { 4ead4: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4ead6: 4e93 jsr %a3@ <== NOT EXECUTED 4ead8: 588f addql #4,%sp <== NOT EXECUTED 4eada: 4a80 tstl %d0 <== NOT EXECUTED 4eadc: 670c beqs 4eaea <_CORE_barrier_Release+0x2a> <== NOT EXECUTED 4eade: 2f0a movel %a2,%sp@- <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) (*api_barrier_mp_support) ( the_thread, id ); #endif count++; 4eae0: 5282 addql #1,%d2 <== NOT EXECUTED { Thread_Control *the_thread; uint32_t count; count = 0; while ( (the_thread = _Thread_queue_Dequeue(&the_barrier->Wait_queue)) ) { 4eae2: 4e93 jsr %a3@ <== NOT EXECUTED 4eae4: 588f addql #4,%sp <== NOT EXECUTED 4eae6: 4a80 tstl %d0 <== NOT EXECUTED 4eae8: 66f4 bnes 4eade <_CORE_barrier_Release+0x1e> <== NOT EXECUTED #endif count++; } the_barrier->number_of_waiting_threads = 0; return count; } 4eaea: 2002 movel %d2,%d0 <== NOT EXECUTED if ( !_Objects_Is_local_id( the_thread->Object.id ) ) (*api_barrier_mp_support) ( the_thread, id ); #endif count++; } the_barrier->number_of_waiting_threads = 0; 4eaec: 42aa 0048 clrl %a2@(72) <== NOT EXECUTED return count; } 4eaf0: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3 <== NOT EXECUTED 4eaf6: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 0004eafc <_CORE_barrier_Wait>: Thread_Control *executing; ISR_Level level; executing = _Thread_Executing; executing->Wait.return_code = CORE_BARRIER_STATUS_SUCCESSFUL; _ISR_Disable( level ); 4eafc: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED Objects_Id id, bool wait, Watchdog_Interval timeout, CORE_barrier_API_mp_support_callout api_barrier_mp_support ) { 4eb02: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED Thread_Control *executing; ISR_Level level; executing = _Thread_Executing; 4eb06: 2279 0006 0fc8 moveal 60fc8 <_Per_CPU_Information+0xc>,%a1 <== NOT EXECUTED Objects_Id id, bool wait, Watchdog_Interval timeout, CORE_barrier_API_mp_support_callout api_barrier_mp_support ) { 4eb0c: 48d7 001c moveml %d2-%d4,%sp@ <== NOT EXECUTED 4eb10: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED Thread_Control *executing; ISR_Level level; executing = _Thread_Executing; executing->Wait.return_code = CORE_BARRIER_STATUS_SUCCESSFUL; 4eb14: 42a9 0034 clrl %a1@(52) <== NOT EXECUTED Objects_Id id, bool wait, Watchdog_Interval timeout, CORE_barrier_API_mp_support_callout api_barrier_mp_support ) { 4eb18: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED 4eb1c: 262e 0014 movel %fp@(20),%d3 <== NOT EXECUTED 4eb20: 282e 0018 movel %fp@(24),%d4 <== NOT EXECUTED Thread_Control *executing; ISR_Level level; executing = _Thread_Executing; executing->Wait.return_code = CORE_BARRIER_STATUS_SUCCESSFUL; _ISR_Disable( level ); 4eb24: 40c1 movew %sr,%d1 <== NOT EXECUTED 4eb26: 8081 orl %d1,%d0 <== NOT EXECUTED 4eb28: 46c0 movew %d0,%sr <== NOT EXECUTED the_barrier->number_of_waiting_threads++; 4eb2a: 2028 0048 movel %a0@(72),%d0 <== NOT EXECUTED 4eb2e: 5280 addql #1,%d0 <== NOT EXECUTED 4eb30: 2140 0048 movel %d0,%a0@(72) <== NOT EXECUTED if ( _CORE_barrier_Is_automatic( &the_barrier->Attributes ) ) { 4eb34: 4aa8 0040 tstl %a0@(64) <== NOT EXECUTED 4eb38: 6606 bnes 4eb40 <_CORE_barrier_Wait+0x44> <== NOT EXECUTED if ( the_barrier->number_of_waiting_threads == 4eb3a: b0a8 0044 cmpl %a0@(68),%d0 <== NOT EXECUTED 4eb3e: 672e beqs 4eb6e <_CORE_barrier_Wait+0x72> <== NOT EXECUTED 4eb40: 7001 moveq #1,%d0 <== NOT EXECUTED 4eb42: 2140 0030 movel %d0,%a0@(48) <== NOT EXECUTED return; } } _Thread_queue_Enter_critical_section( &the_barrier->Wait_queue ); executing->Wait.queue = &the_barrier->Wait_queue; 4eb46: 2348 0044 movel %a0,%a1@(68) <== NOT EXECUTED executing->Wait.id = id; 4eb4a: 2342 0020 movel %d2,%a1@(32) <== NOT EXECUTED _ISR_Enable( level ); 4eb4e: 46c1 movew %d1,%sr <== NOT EXECUTED _Thread_queue_Enqueue( &the_barrier->Wait_queue, timeout ); 4eb50: 2d43 000c movel %d3,%fp@(12) <== NOT EXECUTED 4eb54: 203c 0004 b37c movel #308092,%d0 <== NOT EXECUTED 4eb5a: 2d48 0008 movel %a0,%fp@(8) <== NOT EXECUTED } 4eb5e: 4cd7 001c moveml %sp@,%d2-%d4 <== NOT EXECUTED _Thread_queue_Enter_critical_section( &the_barrier->Wait_queue ); executing->Wait.queue = &the_barrier->Wait_queue; executing->Wait.id = id; _ISR_Enable( level ); _Thread_queue_Enqueue( &the_barrier->Wait_queue, timeout ); 4eb62: 2d40 0010 movel %d0,%fp@(16) <== NOT EXECUTED } 4eb66: 4e5e unlk %fp <== NOT EXECUTED _Thread_queue_Enter_critical_section( &the_barrier->Wait_queue ); executing->Wait.queue = &the_barrier->Wait_queue; executing->Wait.id = id; _ISR_Enable( level ); _Thread_queue_Enqueue( &the_barrier->Wait_queue, timeout ); 4eb68: 4ef9 0004 afb8 jmp 4afb8 <_Thread_queue_Enqueue_with_handler><== NOT EXECUTED _ISR_Disable( level ); the_barrier->number_of_waiting_threads++; if ( _CORE_barrier_Is_automatic( &the_barrier->Attributes ) ) { if ( the_barrier->number_of_waiting_threads == the_barrier->Attributes.maximum_count) { executing->Wait.return_code = CORE_BARRIER_STATUS_AUTOMATICALLY_RELEASED; 4eb6e: 7001 moveq #1,%d0 <== NOT EXECUTED 4eb70: 2340 0034 movel %d0,%a1@(52) <== NOT EXECUTED _ISR_Enable( level ); 4eb74: 46c1 movew %d1,%sr <== NOT EXECUTED _CORE_barrier_Release( the_barrier, id, api_barrier_mp_support ); 4eb76: 2d44 0010 movel %d4,%fp@(16) <== NOT EXECUTED 4eb7a: 2d42 000c movel %d2,%fp@(12) <== NOT EXECUTED executing->Wait.queue = &the_barrier->Wait_queue; executing->Wait.id = id; _ISR_Enable( level ); _Thread_queue_Enqueue( &the_barrier->Wait_queue, timeout ); } 4eb7e: 4cd7 001c moveml %sp@,%d2-%d4 <== NOT EXECUTED if ( _CORE_barrier_Is_automatic( &the_barrier->Attributes ) ) { if ( the_barrier->number_of_waiting_threads == the_barrier->Attributes.maximum_count) { executing->Wait.return_code = CORE_BARRIER_STATUS_AUTOMATICALLY_RELEASED; _ISR_Enable( level ); _CORE_barrier_Release( the_barrier, id, api_barrier_mp_support ); 4eb82: 2d48 0008 movel %a0,%fp@(8) <== NOT EXECUTED executing->Wait.queue = &the_barrier->Wait_queue; executing->Wait.id = id; _ISR_Enable( level ); _Thread_queue_Enqueue( &the_barrier->Wait_queue, timeout ); } 4eb86: 4e5e unlk %fp <== NOT EXECUTED if ( _CORE_barrier_Is_automatic( &the_barrier->Attributes ) ) { if ( the_barrier->number_of_waiting_threads == the_barrier->Attributes.maximum_count) { executing->Wait.return_code = CORE_BARRIER_STATUS_AUTOMATICALLY_RELEASED; _ISR_Enable( level ); _CORE_barrier_Release( the_barrier, id, api_barrier_mp_support ); 4eb88: 4ef9 0004 eac0 jmp 4eac0 <_CORE_barrier_Release> <== NOT EXECUTED ... =============================================================================== 00059ce4 <_CORE_message_queue_Broadcast>: Objects_Id id __attribute__((unused)), CORE_message_queue_API_mp_support_callout api_message_queue_mp_support __attribute__((unused)), #endif uint32_t *count ) { 59ce4: 4e56 ffe0 linkw %fp,#-32 <== NOT EXECUTED 59ce8: 48d7 3c3c moveml %d2-%d5/%a2-%a5,%sp@ <== NOT EXECUTED 59cec: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED 59cf0: 282e 000c movel %fp@(12),%d4 <== NOT EXECUTED 59cf4: 242e 0010 movel %fp@(16),%d2 <== NOT EXECUTED 59cf8: 2a2e 001c movel %fp@(28),%d5 <== NOT EXECUTED Thread_Control *the_thread; uint32_t number_broadcasted; Thread_Wait_information *waitp; if ( size > the_message_queue->maximum_message_size ) { 59cfc: b4ab 004c cmpl %a3@(76),%d2 <== NOT EXECUTED 59d00: 6262 bhis 59d64 <_CORE_message_queue_Broadcast+0x80><== NOT EXECUTED * NOTE: This check is critical because threads can block on * send and receive and this ensures that we are broadcasting * the message to threads waiting to receive -- not to send. */ if ( the_message_queue->number_of_pending_messages != 0 ) { 59d02: 4aab 0048 tstl %a3@(72) <== NOT EXECUTED 59d06: 664c bnes 59d54 <_CORE_message_queue_Broadcast+0x70><== NOT EXECUTED /* * There must be no pending messages if there is a thread waiting to * receive a message. */ number_broadcasted = 0; while ((the_thread = 59d08: 2f0b movel %a3,%sp@- <== NOT EXECUTED 59d0a: 49f9 0005 c690 lea 5c690 <_Thread_queue_Dequeue>,%a4 <== NOT EXECUTED * NOTE: This check is critical because threads can block on * send and receive and this ensures that we are broadcasting * the message to threads waiting to receive -- not to send. */ if ( the_message_queue->number_of_pending_messages != 0 ) { 59d10: 4283 clrl %d3 <== NOT EXECUTED const void *source, void *destination, size_t size ) { memcpy(destination, source, size); 59d12: 4bf9 0006 1960 lea 61960 ,%a5 <== NOT EXECUTED /* * There must be no pending messages if there is a thread waiting to * receive a message. */ number_broadcasted = 0; while ((the_thread = 59d18: 4e94 jsr %a4@ <== NOT EXECUTED 59d1a: 588f addql #4,%sp <== NOT EXECUTED 59d1c: 2440 moveal %d0,%a2 <== NOT EXECUTED 59d1e: 4a80 tstl %d0 <== NOT EXECUTED 59d20: 6722 beqs 59d44 <_CORE_message_queue_Broadcast+0x60><== NOT EXECUTED 59d22: 2f02 movel %d2,%sp@- <== NOT EXECUTED _Thread_queue_Dequeue(&the_message_queue->Wait_queue))) { waitp = &the_thread->Wait; number_broadcasted += 1; 59d24: 5283 addql #1,%d3 <== NOT EXECUTED 59d26: 2f04 movel %d4,%sp@- <== NOT EXECUTED 59d28: 2f2a 002c movel %a2@(44),%sp@- <== NOT EXECUTED 59d2c: 4e95 jsr %a5@ <== NOT EXECUTED buffer, waitp->return_argument_second.mutable_object, size ); *(size_t *) the_thread->Wait.return_argument = size; 59d2e: 206a 0028 moveal %a2@(40),%a0 <== NOT EXECUTED 59d32: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 59d36: 2082 movel %d2,%a0@ <== NOT EXECUTED /* * There must be no pending messages if there is a thread waiting to * receive a message. */ number_broadcasted = 0; while ((the_thread = 59d38: 2f0b movel %a3,%sp@- <== NOT EXECUTED 59d3a: 4e94 jsr %a4@ <== NOT EXECUTED 59d3c: 588f addql #4,%sp <== NOT EXECUTED 59d3e: 2440 moveal %d0,%a2 <== NOT EXECUTED 59d40: 4a80 tstl %d0 <== NOT EXECUTED 59d42: 66de bnes 59d22 <_CORE_message_queue_Broadcast+0x3e><== NOT EXECUTED if ( !_Objects_Is_local_id( the_thread->Object.id ) ) (*api_message_queue_mp_support) ( the_thread, id ); #endif } *count = number_broadcasted; 59d44: 2045 moveal %d5,%a0 <== NOT EXECUTED return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; 59d46: 4280 clrl %d0 <== NOT EXECUTED if ( !_Objects_Is_local_id( the_thread->Object.id ) ) (*api_message_queue_mp_support) ( the_thread, id ); #endif } *count = number_broadcasted; 59d48: 2083 movel %d3,%a0@ <== NOT EXECUTED return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; } 59d4a: 4cee 3c3c ffe0 moveml %fp@(-32),%d2-%d5/%a2-%a5 <== NOT EXECUTED 59d50: 4e5e unlk %fp <== NOT EXECUTED 59d52: 4e75 rts <== NOT EXECUTED * send and receive and this ensures that we are broadcasting * the message to threads waiting to receive -- not to send. */ if ( the_message_queue->number_of_pending_messages != 0 ) { *count = 0; 59d54: 2045 moveal %d5,%a0 <== NOT EXECUTED return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; 59d56: 4280 clrl %d0 <== NOT EXECUTED #endif } *count = number_broadcasted; return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; } 59d58: 4cee 3c3c ffe0 moveml %fp@(-32),%d2-%d5/%a2-%a5 <== NOT EXECUTED * send and receive and this ensures that we are broadcasting * the message to threads waiting to receive -- not to send. */ if ( the_message_queue->number_of_pending_messages != 0 ) { *count = 0; 59d5e: 4290 clrl %a0@ <== NOT EXECUTED #endif } *count = number_broadcasted; return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; } 59d60: 4e5e unlk %fp <== NOT EXECUTED 59d62: 4e75 rts <== NOT EXECUTED Thread_Control *the_thread; uint32_t number_broadcasted; Thread_Wait_information *waitp; if ( size > the_message_queue->maximum_message_size ) { return CORE_MESSAGE_QUEUE_STATUS_INVALID_SIZE; 59d64: 7001 moveq #1,%d0 <== NOT EXECUTED #endif } *count = number_broadcasted; return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; } 59d66: 4cee 3c3c ffe0 moveml %fp@(-32),%d2-%d5/%a2-%a5 <== NOT EXECUTED 59d6c: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00059d70 <_CORE_message_queue_Close>: void _CORE_message_queue_Close( CORE_message_queue_Control *the_message_queue, Thread_queue_Flush_callout remote_extract_callout, uint32_t status ) { 59d70: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 59d74: 2f0a movel %a2,%sp@- <== NOT EXECUTED /* * This will flush blocked threads whether they were blocked on * a send or receive. */ _Thread_queue_Flush( 59d76: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 59d7a: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED void _CORE_message_queue_Close( CORE_message_queue_Control *the_message_queue, Thread_queue_Flush_callout remote_extract_callout, uint32_t status ) { 59d7e: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED /* * This will flush blocked threads whether they were blocked on * a send or receive. */ _Thread_queue_Flush( 59d82: 2f0a movel %a2,%sp@- <== NOT EXECUTED 59d84: 4eb9 0005 ca84 jsr 5ca84 <_Thread_queue_Flush> <== NOT EXECUTED * This removes all messages from the pending message queue. Since * we just flushed all waiting threads, we don't have to worry about * the flush satisfying any blocked senders as a side-effect. */ if ( the_message_queue->number_of_pending_messages != 0 ) 59d8a: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 59d8e: 4aaa 0048 tstl %a2@(72) <== NOT EXECUTED 59d92: 6612 bnes 59da6 <_CORE_message_queue_Close+0x36> <== NOT EXECUTED (void) _CORE_message_queue_Flush_support( the_message_queue ); (void) _Workspace_Free( the_message_queue->message_buffers ); 59d94: 2d6a 005c 0008 movel %a2@(92),%fp@(8) <== NOT EXECUTED } 59d9a: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 59d9e: 4e5e unlk %fp <== NOT EXECUTED */ if ( the_message_queue->number_of_pending_messages != 0 ) (void) _CORE_message_queue_Flush_support( the_message_queue ); (void) _Workspace_Free( the_message_queue->message_buffers ); 59da0: 4ef9 0005 d7ce jmp 5d7ce <_Workspace_Free> <== NOT EXECUTED * we just flushed all waiting threads, we don't have to worry about * the flush satisfying any blocked senders as a side-effect. */ if ( the_message_queue->number_of_pending_messages != 0 ) (void) _CORE_message_queue_Flush_support( the_message_queue ); 59da6: 2f0a movel %a2,%sp@- <== NOT EXECUTED 59da8: 4eb9 0005 9de0 jsr 59de0 <_CORE_message_queue_Flush_support><== NOT EXECUTED (void) _Workspace_Free( the_message_queue->message_buffers ); 59dae: 2d6a 005c 0008 movel %a2@(92),%fp@(8) <== NOT EXECUTED * we just flushed all waiting threads, we don't have to worry about * the flush satisfying any blocked senders as a side-effect. */ if ( the_message_queue->number_of_pending_messages != 0 ) (void) _CORE_message_queue_Flush_support( the_message_queue ); 59db4: 588f addql #4,%sp <== NOT EXECUTED (void) _Workspace_Free( the_message_queue->message_buffers ); } 59db6: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 59dba: 4e5e unlk %fp <== NOT EXECUTED */ if ( the_message_queue->number_of_pending_messages != 0 ) (void) _CORE_message_queue_Flush_support( the_message_queue ); (void) _Workspace_Free( the_message_queue->message_buffers ); 59dbc: 4ef9 0005 d7ce jmp 5d7ce <_Workspace_Free> <== NOT EXECUTED ... =============================================================================== 00059dc4 <_CORE_message_queue_Flush>: */ uint32_t _CORE_message_queue_Flush( CORE_message_queue_Control *the_message_queue ) { 59dc4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 59dc8: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED if ( the_message_queue->number_of_pending_messages != 0 ) 59dcc: 4aa8 0048 tstl %a0@(72) <== NOT EXECUTED 59dd0: 6606 bnes 59dd8 <_CORE_message_queue_Flush+0x14> <== NOT EXECUTED return _CORE_message_queue_Flush_support( the_message_queue ); else return 0; } 59dd2: 4280 clrl %d0 <== NOT EXECUTED 59dd4: 4e5e unlk %fp <== NOT EXECUTED 59dd6: 4e75 rts <== NOT EXECUTED 59dd8: 4e5e unlk %fp <== NOT EXECUTED uint32_t _CORE_message_queue_Flush( CORE_message_queue_Control *the_message_queue ) { if ( the_message_queue->number_of_pending_messages != 0 ) return _CORE_message_queue_Flush_support( the_message_queue ); 59dda: 4ef9 0005 9de0 jmp 59de0 <_CORE_message_queue_Flush_support><== NOT EXECUTED =============================================================================== 00059de0 <_CORE_message_queue_Flush_support>: * * For now, though, we are very happy to have a small routine with * fixed execution time that only deals with pending messages. */ _ISR_Disable( level ); 59de0: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED */ uint32_t _CORE_message_queue_Flush_support( CORE_message_queue_Control *the_message_queue ) { 59de6: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 59dea: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 59dee: 48d7 1c00 moveml %a2-%a4,%sp@ <== NOT EXECUTED * * For now, though, we are very happy to have a small routine with * fixed execution time that only deals with pending messages. */ _ISR_Disable( level ); 59df2: 40c1 movew %sr,%d1 <== NOT EXECUTED 59df4: 8081 orl %d1,%d0 <== NOT EXECUTED 59df6: 46c0 movew %d0,%sr <== NOT EXECUTED count = the_message_queue->number_of_pending_messages; the_message_queue->number_of_pending_messages = 0; _ISR_Enable( level ); return count; } 59df8: 2668 0050 moveal %a0@(80),%a3 <== NOT EXECUTED * For now, though, we are very happy to have a small routine with * fixed execution time that only deals with pending messages. */ _ISR_Disable( level ); inactive_head = _Chain_Head( &the_message_queue->Inactive_messages ); 59dfc: 49e8 0060 lea %a0@(96),%a4 <== NOT EXECUTED count = the_message_queue->number_of_pending_messages; the_message_queue->number_of_pending_messages = 0; _ISR_Enable( level ); return count; } 59e00: 2268 0058 moveal %a0@(88),%a1 <== NOT EXECUTED inactive_first->previous = message_queue_last; message_queue_first->previous = inactive_head; _Chain_Initialize_empty( &the_message_queue->Pending_messages ); count = the_message_queue->number_of_pending_messages; 59e04: 2028 0048 movel %a0@(72),%d0 <== NOT EXECUTED * fixed execution time that only deals with pending messages. */ _ISR_Disable( level ); inactive_head = _Chain_Head( &the_message_queue->Inactive_messages ); inactive_first = inactive_head->next;; 59e08: 2468 0060 moveal %a0@(96),%a2 <== NOT EXECUTED message_queue_first = _Chain_First( &the_message_queue->Pending_messages ); message_queue_last = _Chain_Last( &the_message_queue->Pending_messages ); inactive_head->next = message_queue_first; 59e0c: 214b 0060 movel %a3,%a0@(96) <== NOT EXECUTED message_queue_last->next = inactive_first; inactive_first->previous = message_queue_last; 59e10: 2549 0004 movel %a1,%a2@(4) <== NOT EXECUTED inactive_first = inactive_head->next;; message_queue_first = _Chain_First( &the_message_queue->Pending_messages ); message_queue_last = _Chain_Last( &the_message_queue->Pending_messages ); inactive_head->next = message_queue_first; message_queue_last->next = inactive_first; 59e14: 228a movel %a2,%a1@ <== NOT EXECUTED * For now, though, we are very happy to have a small routine with * fixed execution time that only deals with pending messages. */ _ISR_Disable( level ); inactive_head = _Chain_Head( &the_message_queue->Inactive_messages ); 59e16: 274c 0004 movel %a4,%a3@(4) <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { Chain_Node *head = _Chain_Head( the_chain ); 59e1a: 47e8 0050 lea %a0@(80),%a3 <== NOT EXECUTED Chain_Node *tail = _Chain_Tail( the_chain ); 59e1e: 49e8 0054 lea %a0@(84),%a4 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { Chain_Node *head = _Chain_Head( the_chain ); 59e22: 214b 0058 movel %a3,%a0@(88) <== NOT EXECUTED Chain_Node *tail = _Chain_Tail( the_chain ); 59e26: 214c 0050 movel %a4,%a0@(80) <== NOT EXECUTED head->next = tail; head->previous = NULL; 59e2a: 42a8 0054 clrl %a0@(84) <== NOT EXECUTED message_queue_first->previous = inactive_head; _Chain_Initialize_empty( &the_message_queue->Pending_messages ); count = the_message_queue->number_of_pending_messages; the_message_queue->number_of_pending_messages = 0; 59e2e: 42a8 0048 clrl %a0@(72) <== NOT EXECUTED _ISR_Enable( level ); 59e32: 46c1 movew %d1,%sr <== NOT EXECUTED return count; } 59e34: 4cd7 1c00 moveml %sp@,%a2-%a4 <== NOT EXECUTED 59e38: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 000500fc <_CORE_message_queue_Initialize>: /* * Round size up to multiple of a pointer for chain init and * check for overflow on adding overhead to each message. */ allocated_message_size = maximum_message_size; if (allocated_message_size & (sizeof(uint32_t) - 1)) { 500fc: 7203 moveq #3,%d1 <== NOT EXECUTED CORE_message_queue_Control *the_message_queue, CORE_message_queue_Attributes *the_message_queue_attributes, uint32_t maximum_pending_messages, size_t maximum_message_size ) { 500fe: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 50102: 202e 0014 movel %fp@(20),%d0 <== NOT EXECUTED 50106: 48d7 040c moveml %d2-%d3/%a2,%sp@ <== NOT EXECUTED 5010a: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 5010e: 242e 0010 movel %fp@(16),%d2 <== NOT EXECUTED /* * Round size up to multiple of a pointer for chain init and * check for overflow on adding overhead to each message. */ allocated_message_size = maximum_message_size; if (allocated_message_size & (sizeof(uint32_t) - 1)) { 50112: c280 andl %d0,%d1 <== NOT EXECUTED ) { size_t message_buffering_required; size_t allocated_message_size; the_message_queue->maximum_pending_messages = maximum_pending_messages; 50114: 2542 0044 movel %d2,%a2@(68) <== NOT EXECUTED the_message_queue->number_of_pending_messages = 0; 50118: 42aa 0048 clrl %a2@(72) <== NOT EXECUTED the_message_queue->maximum_message_size = maximum_message_size; 5011c: 2540 004c movel %d0,%a2@(76) <== NOT EXECUTED /* * Round size up to multiple of a pointer for chain init and * check for overflow on adding overhead to each message. */ allocated_message_size = maximum_message_size; if (allocated_message_size & (sizeof(uint32_t) - 1)) { 50120: 4a81 tstl %d1 <== NOT EXECUTED 50122: 6718 beqs 5013c <_CORE_message_queue_Initialize+0x40><== NOT EXECUTED allocated_message_size += sizeof(uint32_t); 50124: 2200 movel %d0,%d1 <== NOT EXECUTED 50126: 5881 addql #4,%d1 <== NOT EXECUTED allocated_message_size &= ~(sizeof(uint32_t) - 1); 50128: 76fc moveq #-4,%d3 <== NOT EXECUTED 5012a: c283 andl %d3,%d1 <== NOT EXECUTED } if (allocated_message_size < maximum_message_size) 5012c: b280 cmpl %d0,%d1 <== NOT EXECUTED 5012e: 640e bccs 5013e <_CORE_message_queue_Initialize+0x42><== NOT EXECUTED STATES_WAITING_FOR_MESSAGE, CORE_MESSAGE_QUEUE_STATUS_TIMEOUT ); return true; } 50130: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED */ the_message_queue->message_buffers = (CORE_message_queue_Buffer *) _Workspace_Allocate( message_buffering_required ); if (the_message_queue->message_buffers == 0) return false; 50136: 4200 clrb %d0 <== NOT EXECUTED STATES_WAITING_FOR_MESSAGE, CORE_MESSAGE_QUEUE_STATUS_TIMEOUT ); return true; } 50138: 4e5e unlk %fp <== NOT EXECUTED 5013a: 4e75 rts <== NOT EXECUTED /* * Round size up to multiple of a pointer for chain init and * check for overflow on adding overhead to each message. */ allocated_message_size = maximum_message_size; if (allocated_message_size & (sizeof(uint32_t) - 1)) { 5013c: 2200 movel %d0,%d1 <== NOT EXECUTED /* * Calculate how much total memory is required for message buffering and * check for overflow on the multiplication. */ message_buffering_required = (size_t) maximum_pending_messages * (allocated_message_size + sizeof(CORE_message_queue_Buffer_control)); 5013e: 2601 movel %d1,%d3 <== NOT EXECUTED 50140: 0683 0000 0010 addil #16,%d3 <== NOT EXECUTED /* * Calculate how much total memory is required for message buffering and * check for overflow on the multiplication. */ message_buffering_required = (size_t) maximum_pending_messages * 50146: 2003 movel %d3,%d0 <== NOT EXECUTED 50148: 4c02 0800 mulsl %d2,%d0 <== NOT EXECUTED (allocated_message_size + sizeof(CORE_message_queue_Buffer_control)); if (message_buffering_required < allocated_message_size) 5014c: b280 cmpl %d0,%d1 <== NOT EXECUTED 5014e: 62e0 bhis 50130 <_CORE_message_queue_Initialize+0x34><== NOT EXECUTED /* * Attempt to allocate the message memory */ the_message_queue->message_buffers = (CORE_message_queue_Buffer *) _Workspace_Allocate( message_buffering_required ); 50150: 2f00 movel %d0,%sp@- <== NOT EXECUTED 50152: 4eb9 0005 2f56 jsr 52f56 <_Workspace_Allocate> <== NOT EXECUTED if (the_message_queue->message_buffers == 0) 50158: 588f addql #4,%sp <== NOT EXECUTED return false; /* * Attempt to allocate the message memory */ the_message_queue->message_buffers = (CORE_message_queue_Buffer *) 5015a: 2540 005c movel %d0,%a2@(92) <== NOT EXECUTED _Workspace_Allocate( message_buffering_required ); if (the_message_queue->message_buffers == 0) 5015e: 67d0 beqs 50130 <_CORE_message_queue_Initialize+0x34><== NOT EXECUTED /* * Initialize the pool of inactive messages, pending messages, * and set of waiting threads. */ _Chain_Initialize ( 50160: 2f03 movel %d3,%sp@- <== NOT EXECUTED 50162: 2f02 movel %d2,%sp@- <== NOT EXECUTED 50164: 2f00 movel %d0,%sp@- <== NOT EXECUTED 50166: 486a 0060 pea %a2@(96) <== NOT EXECUTED 5016a: 4eb9 0005 4dc8 jsr 54dc8 <_Chain_Initialize> <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); 50170: 41ea 0054 lea %a2@(84),%a0 <== NOT EXECUTED allocated_message_size + sizeof( CORE_message_queue_Buffer_control ) ); _Chain_Initialize_empty( &the_message_queue->Pending_messages ); _Thread_queue_Initialize( 50174: 7001 moveq #1,%d0 <== NOT EXECUTED 50176: 2548 0050 movel %a0,%a2@(80) <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { Chain_Node *head = _Chain_Head( the_chain ); 5017a: 41ea 0050 lea %a2@(80),%a0 <== NOT EXECUTED 5017e: 2548 0058 movel %a0,%a2@(88) <== NOT EXECUTED 50182: 4878 0006 pea 6 <== NOT EXECUTED 50186: 4878 0080 pea 80 <== NOT EXECUTED 5018a: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED Chain_Node *tail = _Chain_Tail( the_chain ); head->next = tail; head->previous = NULL; 5018e: 42aa 0054 clrl %a2@(84) <== NOT EXECUTED 50192: b090 cmpl %a0@,%d0 <== NOT EXECUTED 50194: 57c0 seq %d0 <== NOT EXECUTED 50196: 49c0 extbl %d0 <== NOT EXECUTED 50198: 4480 negl %d0 <== NOT EXECUTED 5019a: 2f00 movel %d0,%sp@- <== NOT EXECUTED 5019c: 2f0a movel %a2,%sp@- <== NOT EXECUTED 5019e: 4eb9 0005 250c jsr 5250c <_Thread_queue_Initialize> <== NOT EXECUTED THREAD_QUEUE_DISCIPLINE_PRIORITY : THREAD_QUEUE_DISCIPLINE_FIFO, STATES_WAITING_FOR_MESSAGE, CORE_MESSAGE_QUEUE_STATUS_TIMEOUT ); return true; 501a4: 4fef 0020 lea %sp@(32),%sp <== NOT EXECUTED } 501a8: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED THREAD_QUEUE_DISCIPLINE_PRIORITY : THREAD_QUEUE_DISCIPLINE_FIFO, STATES_WAITING_FOR_MESSAGE, CORE_MESSAGE_QUEUE_STATUS_TIMEOUT ); return true; 501ae: 7001 moveq #1,%d0 <== NOT EXECUTED } 501b0: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00054e3c <_CORE_message_queue_Insert_message>: #endif _CORE_message_queue_Set_message_priority( the_message, submit_type ); #if !defined(RTEMS_SCORE_COREMSG_ENABLE_MESSAGE_PRIORITY) _ISR_Disable( level ); 54e3c: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED void _CORE_message_queue_Insert_message( CORE_message_queue_Control *the_message_queue, CORE_message_queue_Buffer_control *the_message, CORE_message_queue_Submit_types submit_type ) { 54e42: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 54e46: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 54e4a: 2f0b movel %a3,%sp@- <== NOT EXECUTED 54e4c: 226e 000c moveal %fp@(12),%a1 <== NOT EXECUTED 54e50: 2f0a movel %a2,%sp@- <== NOT EXECUTED #endif _CORE_message_queue_Set_message_priority( the_message, submit_type ); #if !defined(RTEMS_SCORE_COREMSG_ENABLE_MESSAGE_PRIORITY) _ISR_Disable( level ); 54e52: 40c1 movew %sr,%d1 <== NOT EXECUTED 54e54: 8081 orl %d1,%d0 <== NOT EXECUTED 54e56: 46c0 movew %d0,%sr <== NOT EXECUTED SET_NOTIFY(); the_message_queue->number_of_pending_messages++; 54e58: 52a8 0048 addql #1,%a0@(72) <== NOT EXECUTED if ( submit_type == CORE_MESSAGE_QUEUE_SEND_REQUEST ) 54e5c: 203c 7fff ffff movel #2147483647,%d0 <== NOT EXECUTED 54e62: b0ae 0010 cmpl %fp@(16),%d0 <== NOT EXECUTED 54e66: 6720 beqs 54e88 <_CORE_message_queue_Insert_message+0x4c><== NOT EXECUTED ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; 54e68: 2468 0050 moveal %a0@(80),%a2 <== NOT EXECUTED after_node->next = the_node; 54e6c: 2149 0050 movel %a1,%a0@(80) <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Chain_Prepend_unprotected( Chain_Control *the_chain, Chain_Node *the_node ) { _Chain_Insert_unprotected(_Chain_Head(the_chain), the_node); 54e70: 41e8 0050 lea %a0@(80),%a0 <== NOT EXECUTED 54e74: 2348 0004 movel %a0,%a1@(4) <== NOT EXECUTED Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; after_node->next = the_node; the_node->next = before_node; 54e78: 228a movel %a2,%a1@ <== NOT EXECUTED before_node->previous = the_node; 54e7a: 2549 0004 movel %a1,%a2@(4) <== NOT EXECUTED _CORE_message_queue_Append_unprotected(the_message_queue, the_message); else _CORE_message_queue_Prepend_unprotected(the_message_queue, the_message); _ISR_Enable( level ); 54e7e: 46c1 movew %d1,%sr <== NOT EXECUTED * the message is actually in the queue at this point. */ if ( notify && the_message_queue->notify_handler ) (*the_message_queue->notify_handler)(the_message_queue->notify_argument); #endif } 54e80: 245f moveal %sp@+,%a2 <== NOT EXECUTED 54e82: 265f moveal %sp@+,%a3 <== NOT EXECUTED 54e84: 4e5e unlk %fp <== NOT EXECUTED 54e86: 4e75 rts <== NOT EXECUTED Chain_Control *the_chain, Chain_Node *the_node ) { Chain_Node *tail = _Chain_Tail( the_chain ); Chain_Node *old_last = tail->previous; 54e88: 2468 0058 moveal %a0@(88),%a2 <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Chain_Append_unprotected( Chain_Control *the_chain, Chain_Node *the_node ) { Chain_Node *tail = _Chain_Tail( the_chain ); 54e8c: 47e8 0054 lea %a0@(84),%a3 <== NOT EXECUTED Chain_Node *old_last = tail->previous; the_node->next = tail; tail->previous = the_node; 54e90: 2149 0058 movel %a1,%a0@(88) <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Chain_Append_unprotected( Chain_Control *the_chain, Chain_Node *the_node ) { Chain_Node *tail = _Chain_Tail( the_chain ); 54e94: 228b movel %a3,%a1@ <== NOT EXECUTED Chain_Node *old_last = tail->previous; the_node->next = tail; tail->previous = the_node; old_last->next = the_node; the_node->previous = old_last; 54e96: 234a 0004 movel %a2,%a1@(4) <== NOT EXECUTED Chain_Node *tail = _Chain_Tail( the_chain ); Chain_Node *old_last = tail->previous; the_node->next = tail; tail->previous = the_node; old_last->next = the_node; 54e9a: 2489 movel %a1,%a2@ <== NOT EXECUTED the_message_queue->number_of_pending_messages++; if ( submit_type == CORE_MESSAGE_QUEUE_SEND_REQUEST ) _CORE_message_queue_Append_unprotected(the_message_queue, the_message); else _CORE_message_queue_Prepend_unprotected(the_message_queue, the_message); _ISR_Enable( level ); 54e9c: 46c1 movew %d1,%sr <== NOT EXECUTED * the message is actually in the queue at this point. */ if ( notify && the_message_queue->notify_handler ) (*the_message_queue->notify_handler)(the_message_queue->notify_argument); #endif } 54e9e: 245f moveal %sp@+,%a2 <== NOT EXECUTED 54ea0: 265f moveal %sp@+,%a3 <== NOT EXECUTED 54ea2: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 000501b4 <_CORE_message_queue_Seize>: CORE_message_queue_Buffer_control *the_message; Thread_Control *executing; executing = _Thread_Executing; executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; _ISR_Disable( level ); 501b4: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) { 501ba: 4e56 ffe4 linkw %fp,#-28 <== NOT EXECUTED ISR_Level level; CORE_message_queue_Buffer_control *the_message; Thread_Control *executing; executing = _Thread_Executing; 501be: 2079 0006 851c moveal 6851c <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) { 501c4: 48d7 1c3c moveml %d2-%d5/%a2-%a4,%sp@ <== NOT EXECUTED 501c8: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 501cc: 2a2e 000c movel %fp@(12),%d5 <== NOT EXECUTED 501d0: 242e 0010 movel %fp@(16),%d2 <== NOT EXECUTED 501d4: 226e 0014 moveal %fp@(20),%a1 <== NOT EXECUTED 501d8: 282e 001c movel %fp@(28),%d4 <== NOT EXECUTED 501dc: 162e 001b moveb %fp@(27),%d3 <== NOT EXECUTED ISR_Level level; CORE_message_queue_Buffer_control *the_message; Thread_Control *executing; executing = _Thread_Executing; executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; 501e0: 42a8 0034 clrl %a0@(52) <== NOT EXECUTED _ISR_Disable( level ); 501e4: 40c1 movew %sr,%d1 <== NOT EXECUTED 501e6: 8081 orl %d1,%d0 <== NOT EXECUTED 501e8: 46c0 movew %d0,%sr <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( const Chain_Control *the_chain ) { return _Chain_Immutable_first( the_chain ) == _Chain_Immutable_tail( the_chain ); 501ea: 200a movel %a2,%d0 <== NOT EXECUTED 501ec: 0680 0000 0054 addil #84,%d0 <== NOT EXECUTED executing->Wait.return_argument = size_p; /* Wait.count will be filled in with the message priority */ _ISR_Enable( level ); _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); } 501f2: 266a 0050 moveal %a2@(80),%a3 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected( Chain_Control *the_chain ) { if ( !_Chain_Is_empty(the_chain)) 501f6: b08b cmpl %a3,%d0 <== NOT EXECUTED 501f8: 674e beqs 50248 <_CORE_message_queue_Seize+0x94> <== NOT EXECUTED Chain_Control *the_chain ) { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *old_first = head->next; Chain_Node *new_first = old_first->next; 501fa: 2053 moveal %a3@,%a0 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_first_unprotected( Chain_Control *the_chain ) { Chain_Node *head = _Chain_Head( the_chain ); 501fc: 49ea 0050 lea %a2@(80),%a4 <== NOT EXECUTED 50200: 214c 0004 movel %a4,%a0@(4) <== NOT EXECUTED executing = _Thread_Executing; executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; _ISR_Disable( level ); the_message = _CORE_message_queue_Get_pending_message( the_message_queue ); if ( the_message != NULL ) { the_message_queue->number_of_pending_messages -= 1; 50204: 53aa 0048 subql #1,%a2@(72) <== NOT EXECUTED Chain_Node *old_first = head->next; Chain_Node *new_first = old_first->next; head->next = new_first; 50208: 2548 0050 movel %a0,%a2@(80) <== NOT EXECUTED _ISR_Enable( level ); 5020c: 46c1 movew %d1,%sr <== NOT EXECUTED *size_p = the_message->Contents.size; 5020e: 22ab 0008 movel %a3@(8),%a1@ <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _CORE_message_queue_Free_message_buffer ( CORE_message_queue_Control *the_message_queue, CORE_message_queue_Buffer_control *the_message ) { _Chain_Append( &the_message_queue->Inactive_messages, &the_message->Node ); 50212: 45ea 0060 lea %a2@(96),%a2 <== NOT EXECUTED _Thread_Executing->Wait.count = 50216: 2079 0006 851c moveal 6851c <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED 5021c: 42a8 0024 clrl %a0@(36) <== NOT EXECUTED const void *source, void *destination, size_t size ) { memcpy(destination, source, size); 50220: 2f11 movel %a1@,%sp@- <== NOT EXECUTED 50222: 486b 000c pea %a3@(12) <== NOT EXECUTED 50226: 2f02 movel %d2,%sp@- <== NOT EXECUTED 50228: 4eb9 0005 75ec jsr 575ec <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _CORE_message_queue_Free_message_buffer ( CORE_message_queue_Control *the_message_queue, CORE_message_queue_Buffer_control *the_message ) { _Chain_Append( &the_message_queue->Inactive_messages, &the_message->Node ); 5022e: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 50232: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED 50236: 2d4b 000c movel %a3,%fp@(12) <== NOT EXECUTED executing->Wait.return_argument = size_p; /* Wait.count will be filled in with the message priority */ _ISR_Enable( level ); _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); } 5023a: 4cee 1c3c ffe4 moveml %fp@(-28),%d2-%d5/%a2-%a4 <== NOT EXECUTED 50240: 4e5e unlk %fp <== NOT EXECUTED 50242: 4ef9 0005 0030 jmp 50030 <_Chain_Append> <== NOT EXECUTED return; } #endif } if ( !wait ) { 50248: 4a03 tstb %d3 <== NOT EXECUTED 5024a: 6612 bnes 5025e <_CORE_message_queue_Seize+0xaa> <== NOT EXECUTED _ISR_Enable( level ); 5024c: 46c1 movew %d1,%sr <== NOT EXECUTED executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT; 5024e: 7004 moveq #4,%d0 <== NOT EXECUTED executing->Wait.return_argument = size_p; /* Wait.count will be filled in with the message priority */ _ISR_Enable( level ); _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); } 50250: 4cee 1c3c ffe4 moveml %fp@(-28),%d2-%d5/%a2-%a4 <== NOT EXECUTED #endif } if ( !wait ) { _ISR_Enable( level ); executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT; 50256: 2140 0034 movel %d0,%a0@(52) <== NOT EXECUTED executing->Wait.return_argument = size_p; /* Wait.count will be filled in with the message priority */ _ISR_Enable( level ); _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); } 5025a: 4e5e unlk %fp <== NOT EXECUTED 5025c: 4e75 rts <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Thread_queue_Enter_critical_section ( Thread_queue_Control *the_thread_queue ) { the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; 5025e: 7001 moveq #1,%d0 <== NOT EXECUTED 50260: 2540 0030 movel %d0,%a2@(48) <== NOT EXECUTED } _Thread_queue_Enter_critical_section( &the_message_queue->Wait_queue ); executing->Wait.queue = &the_message_queue->Wait_queue; executing->Wait.id = id; executing->Wait.return_argument_second.mutable_object = buffer; 50264: 2142 002c movel %d2,%a0@(44) <== NOT EXECUTED executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT; return; } _Thread_queue_Enter_critical_section( &the_message_queue->Wait_queue ); executing->Wait.queue = &the_message_queue->Wait_queue; 50268: 214a 0044 movel %a2,%a0@(68) <== NOT EXECUTED executing->Wait.id = id; 5026c: 2145 0020 movel %d5,%a0@(32) <== NOT EXECUTED executing->Wait.return_argument_second.mutable_object = buffer; executing->Wait.return_argument = size_p; 50270: 2149 0028 movel %a1,%a0@(40) <== NOT EXECUTED /* Wait.count will be filled in with the message priority */ _ISR_Enable( level ); 50274: 46c1 movew %d1,%sr <== NOT EXECUTED _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); 50276: 49f9 0005 2618 lea 52618 <_Thread_queue_Timeout>,%a4 <== NOT EXECUTED 5027c: 2d44 000c movel %d4,%fp@(12) <== NOT EXECUTED 50280: 2d4c 0010 movel %a4,%fp@(16) <== NOT EXECUTED 50284: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED } 50288: 4cee 1c3c ffe4 moveml %fp@(-28),%d2-%d5/%a2-%a4 <== NOT EXECUTED 5028e: 4e5e unlk %fp <== NOT EXECUTED executing->Wait.return_argument_second.mutable_object = buffer; executing->Wait.return_argument = size_p; /* Wait.count will be filled in with the message priority */ _ISR_Enable( level ); _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); 50290: 4ef9 0005 2254 jmp 52254 <_Thread_queue_Enqueue_with_handler><== NOT EXECUTED ... =============================================================================== 00050298 <_CORE_message_queue_Submit>: #endif CORE_message_queue_Submit_types submit_type, bool wait, Watchdog_Interval timeout ) { 50298: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 5029c: 48d7 0c04 moveml %d2/%a2-%a3,%sp@ <== NOT EXECUTED 502a0: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 502a4: 242e 0010 movel %fp@(16),%d2 <== NOT EXECUTED CORE_message_queue_Buffer_control *the_message; Thread_Control *the_thread; if ( size > the_message_queue->maximum_message_size ) { 502a8: b4aa 004c cmpl %a2@(76),%d2 <== NOT EXECUTED 502ac: 6256 bhis 50304 <_CORE_message_queue_Submit+0x6c><== NOT EXECUTED } /* * Is there a thread currently waiting on this message queue? */ if ( the_message_queue->number_of_pending_messages == 0 ) { 502ae: 202a 0048 movel %a2@(72),%d0 <== NOT EXECUTED 502b2: 675c beqs 50310 <_CORE_message_queue_Submit+0x78><== NOT EXECUTED /* * No one waiting on the message queue at this time, so attempt to * queue the message up for a future receive. */ if ( the_message_queue->number_of_pending_messages < 502b4: b0aa 0044 cmpl %a2@(68),%d0 <== NOT EXECUTED 502b8: 650c bcss 502c6 <_CORE_message_queue_Submit+0x2e><== NOT EXECUTED ); return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; } #if !defined(RTEMS_SCORE_COREMSG_ENABLE_BLOCKING_SEND) return CORE_MESSAGE_QUEUE_STATUS_TOO_MANY; 502ba: 7002 moveq #2,%d0 <== NOT EXECUTED _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); } return CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT; #endif } 502bc: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3 <== NOT EXECUTED 502c2: 4e5e unlk %fp <== NOT EXECUTED 502c4: 4e75 rts <== NOT EXECUTED _CORE_message_queue_Allocate_message_buffer ( CORE_message_queue_Control *the_message_queue ) { return (CORE_message_queue_Buffer_control *) _Chain_Get( &the_message_queue->Inactive_messages ); 502c6: 486a 0060 pea %a2@(96) <== NOT EXECUTED 502ca: 4eb9 0005 0090 jsr 50090 <_Chain_Get> <== NOT EXECUTED 502d0: 2640 moveal %d0,%a3 <== NOT EXECUTED const void *source, void *destination, size_t size ) { memcpy(destination, source, size); 502d2: 2f02 movel %d2,%sp@- <== NOT EXECUTED 502d4: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 502d8: 486b 000c pea %a3@(12) <== NOT EXECUTED 502dc: 4eb9 0005 75ec jsr 575ec <== NOT EXECUTED _CORE_message_queue_Copy_buffer( buffer, the_message->Contents.buffer, size ); the_message->Contents.size = size; 502e2: 2742 0008 movel %d2,%a3@(8) <== NOT EXECUTED _CORE_message_queue_Set_message_priority( the_message, submit_type ); _CORE_message_queue_Insert_message( 502e6: 2f2e 001c movel %fp@(28),%sp@- <== NOT EXECUTED 502ea: 2f0b movel %a3,%sp@- <== NOT EXECUTED 502ec: 2f0a movel %a2,%sp@- <== NOT EXECUTED 502ee: 4eb9 0005 4e3c jsr 54e3c <_CORE_message_queue_Insert_message><== NOT EXECUTED the_message_queue, the_message, submit_type ); return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; 502f4: 4fef 001c lea %sp@(28),%sp <== NOT EXECUTED 502f8: 4280 clrl %d0 <== NOT EXECUTED _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); } return CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT; #endif } 502fa: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3 <== NOT EXECUTED 50300: 4e5e unlk %fp <== NOT EXECUTED 50302: 4e75 rts <== NOT EXECUTED { CORE_message_queue_Buffer_control *the_message; Thread_Control *the_thread; if ( size > the_message_queue->maximum_message_size ) { return CORE_MESSAGE_QUEUE_STATUS_INVALID_SIZE; 50304: 7001 moveq #1,%d0 <== NOT EXECUTED _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); } return CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT; #endif } 50306: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3 <== NOT EXECUTED 5030c: 4e5e unlk %fp <== NOT EXECUTED 5030e: 4e75 rts <== NOT EXECUTED /* * Is there a thread currently waiting on this message queue? */ if ( the_message_queue->number_of_pending_messages == 0 ) { the_thread = _Thread_queue_Dequeue( &the_message_queue->Wait_queue ); 50310: 2f0a movel %a2,%sp@- <== NOT EXECUTED 50312: 4eb9 0005 20dc jsr 520dc <_Thread_queue_Dequeue> <== NOT EXECUTED if ( the_thread ) { 50318: 588f addql #4,%sp <== NOT EXECUTED /* * Is there a thread currently waiting on this message queue? */ if ( the_message_queue->number_of_pending_messages == 0 ) { the_thread = _Thread_queue_Dequeue( &the_message_queue->Wait_queue ); 5031a: 2640 moveal %d0,%a3 <== NOT EXECUTED if ( the_thread ) { 5031c: 4a80 tstl %d0 <== NOT EXECUTED 5031e: 672e beqs 5034e <_CORE_message_queue_Submit+0xb6><== NOT EXECUTED 50320: 2f02 movel %d2,%sp@- <== NOT EXECUTED 50322: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 50326: 2f2b 002c movel %a3@(44),%sp@- <== NOT EXECUTED 5032a: 4eb9 0005 75ec jsr 575ec <== NOT EXECUTED _CORE_message_queue_Copy_buffer( buffer, the_thread->Wait.return_argument_second.mutable_object, size ); *(size_t *) the_thread->Wait.return_argument = size; 50330: 206b 0028 moveal %a3@(40),%a0 <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) (*api_message_queue_mp_support) ( the_thread, id ); #endif return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; 50334: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 50338: 4280 clrl %d0 <== NOT EXECUTED _CORE_message_queue_Copy_buffer( buffer, the_thread->Wait.return_argument_second.mutable_object, size ); *(size_t *) the_thread->Wait.return_argument = size; 5033a: 2082 movel %d2,%a0@ <== NOT EXECUTED the_thread->Wait.count = (uint32_t) submit_type; 5033c: 222e 001c movel %fp@(28),%d1 <== NOT EXECUTED 50340: 2741 0024 movel %d1,%a3@(36) <== NOT EXECUTED _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); } return CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT; #endif } 50344: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3 <== NOT EXECUTED 5034a: 4e5e unlk %fp <== NOT EXECUTED 5034c: 4e75 rts <== NOT EXECUTED /* * Is there a thread currently waiting on this message queue? */ if ( the_message_queue->number_of_pending_messages == 0 ) { the_thread = _Thread_queue_Dequeue( &the_message_queue->Wait_queue ); if ( the_thread ) { 5034e: 202a 0048 movel %a2@(72),%d0 <== NOT EXECUTED /* * No one waiting on the message queue at this time, so attempt to * queue the message up for a future receive. */ if ( the_message_queue->number_of_pending_messages < 50352: b0aa 0044 cmpl %a2@(68),%d0 <== NOT EXECUTED 50356: 6400 ff62 bccw 502ba <_CORE_message_queue_Submit+0x22><== NOT EXECUTED 5035a: 6000 ff6a braw 502c6 <_CORE_message_queue_Submit+0x2e><== NOT EXECUTED ... =============================================================================== 00046f20 <_CORE_mutex_Initialize>: CORE_mutex_Status _CORE_mutex_Initialize( CORE_mutex_Control *the_mutex, CORE_mutex_Attributes *the_mutex_attributes, uint32_t initial_lock ) { 46f20: 4e56 0000 linkw %fp,#0 46f24: 206e 0008 moveal %fp@(8),%a0 46f28: 2f0a movel %a2,%sp@- 46f2a: 246e 000c moveal %fp@(12),%a2 /* Add this to the RTEMS environment later ????????? rtems_assert( initial_lock == CORE_MUTEX_LOCKED || initial_lock == CORE_MUTEX_UNLOCKED ); */ the_mutex->Attributes = *the_mutex_attributes; 46f2e: 224a moveal %a2,%a1 46f30: 2159 0040 movel %a1@+,%a0@(64) 46f34: 2159 0044 movel %a1@+,%a0@(68) 46f38: 2159 0048 movel %a1@+,%a0@(72) CORE_mutex_Status _CORE_mutex_Initialize( CORE_mutex_Control *the_mutex, CORE_mutex_Attributes *the_mutex_attributes, uint32_t initial_lock ) { 46f3c: 202e 0010 movel %fp@(16),%d0 /* Add this to the RTEMS environment later ????????? rtems_assert( initial_lock == CORE_MUTEX_LOCKED || initial_lock == CORE_MUTEX_UNLOCKED ); */ the_mutex->Attributes = *the_mutex_attributes; 46f40: 3151 004c movew %a1@,%a0@(76) the_mutex->lock = initial_lock; 46f44: 2140 004e movel %d0,%a0@(78) the_mutex->blocked_count = 0; 46f48: 42a8 0056 clrl %a0@(86) if ( initial_lock == CORE_MUTEX_LOCKED ) { 46f4c: 4a80 tstl %d0 46f4e: 6654 bnes 46fa4 <_CORE_mutex_Initialize+0x84> the_mutex->nest_count = 1; the_mutex->holder = _Thread_Executing; 46f50: 2279 0005 e684 moveal 5e684 <_Per_CPU_Information+0xc>,%a1 the_mutex->Attributes = *the_mutex_attributes; the_mutex->lock = initial_lock; the_mutex->blocked_count = 0; if ( initial_lock == CORE_MUTEX_LOCKED ) { the_mutex->nest_count = 1; 46f56: 7201 moveq #1,%d1 the_mutex->holder = _Thread_Executing; the_mutex->holder_id = _Thread_Executing->Object.id; 46f58: 2169 0008 005e movel %a1@(8),%a0@(94) STATES_WAITING_FOR_MUTEX, CORE_MUTEX_TIMEOUT ); return CORE_MUTEX_STATUS_SUCCESSFUL; } 46f5e: 2028 0046 movel %a0@(70),%d0 the_mutex->Attributes = *the_mutex_attributes; the_mutex->lock = initial_lock; the_mutex->blocked_count = 0; if ( initial_lock == CORE_MUTEX_LOCKED ) { the_mutex->nest_count = 1; 46f62: 2141 0052 movel %d1,%a0@(82) the_mutex->holder = _Thread_Executing; the_mutex->holder_id = _Thread_Executing->Object.id; if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || 46f66: 123c 0002 moveb #2,%d1 the_mutex->lock = initial_lock; the_mutex->blocked_count = 0; if ( initial_lock == CORE_MUTEX_LOCKED ) { the_mutex->nest_count = 1; the_mutex->holder = _Thread_Executing; 46f6a: 2149 005a movel %a1,%a0@(90) the_mutex->holder_id = _Thread_Executing->Object.id; if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || 46f6e: b280 cmpl %d0,%d1 46f70: 6762 beqs 46fd4 <_CORE_mutex_Initialize+0xb4> <== NEVER TAKEN 46f72: 123c 0003 moveb #3,%d1 46f76: b280 cmpl %d0,%d1 46f78: 675a beqs 46fd4 <_CORE_mutex_Initialize+0xb4> <== NEVER TAKEN the_mutex->nest_count = 0; the_mutex->holder = NULL; the_mutex->holder_id = 0; } _Thread_queue_Initialize( 46f7a: 4aaa 0006 tstl %a2@(6) 46f7e: 56c0 sne %d0 46f80: 4878 0005 pea 5 46f84: 49c0 extbl %d0 46f86: 4878 0400 pea 400 46f8a: 4480 negl %d0 46f8c: 2f00 movel %d0,%sp@- 46f8e: 2f08 movel %a0,%sp@- 46f90: 4eb9 0004 9038 jsr 49038 <_Thread_queue_Initialize> THREAD_QUEUE_DISCIPLINE_FIFO : THREAD_QUEUE_DISCIPLINE_PRIORITY, STATES_WAITING_FOR_MUTEX, CORE_MUTEX_TIMEOUT ); return CORE_MUTEX_STATUS_SUCCESSFUL; 46f96: 4fef 0010 lea %sp@(16),%sp 46f9a: 4280 clrl %d0 } 46f9c: 246e fffc moveal %fp@(-4),%a2 46fa0: 4e5e unlk %fp 46fa2: 4e75 rts the_mutex->nest_count = 0; the_mutex->holder = NULL; the_mutex->holder_id = 0; } _Thread_queue_Initialize( 46fa4: 4aaa 0006 tstl %a2@(6) 46fa8: 56c0 sne %d0 #endif _Thread_Executing->resource_count++; } } else { the_mutex->nest_count = 0; 46faa: 42a8 0052 clrl %a0@(82) the_mutex->holder = NULL; the_mutex->holder_id = 0; } _Thread_queue_Initialize( 46fae: 49c0 extbl %d0 46fb0: 4480 negl %d0 _Thread_Executing->resource_count++; } } else { the_mutex->nest_count = 0; the_mutex->holder = NULL; 46fb2: 42a8 005a clrl %a0@(90) the_mutex->holder_id = 0; 46fb6: 42a8 005e clrl %a0@(94) } _Thread_queue_Initialize( 46fba: 4878 0005 pea 5 46fbe: 4878 0400 pea 400 46fc2: 2f00 movel %d0,%sp@- 46fc4: 2f08 movel %a0,%sp@- 46fc6: 4eb9 0004 9038 jsr 49038 <_Thread_queue_Initialize> THREAD_QUEUE_DISCIPLINE_FIFO : THREAD_QUEUE_DISCIPLINE_PRIORITY, STATES_WAITING_FOR_MUTEX, CORE_MUTEX_TIMEOUT ); return CORE_MUTEX_STATUS_SUCCESSFUL; 46fcc: 4fef 0010 lea %sp@(16),%sp 46fd0: 4280 clrl %d0 46fd2: 60c8 bras 46f9c <_CORE_mutex_Initialize+0x7c> the_mutex->holder = _Thread_Executing; the_mutex->holder_id = _Thread_Executing->Object.id; if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || _CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { if ( _Thread_Executing->current_priority < 46fd4: 2028 004a movel %a0@(74),%d0 <== NOT EXECUTED 46fd8: b0a9 0014 cmpl %a1@(20),%d0 <== NOT EXECUTED 46fdc: 6228 bhis 47006 <_CORE_mutex_Initialize+0xe6> <== NOT EXECUTED _Chain_Prepend_unprotected( &_Thread_Executing->lock_mutex, &the_mutex->queue.lock_queue ); the_mutex->queue.priority_before = _Thread_Executing->current_priority; #endif _Thread_Executing->resource_count++; 46fde: 52a9 001c addql #1,%a1@(28) <== NOT EXECUTED the_mutex->nest_count = 0; the_mutex->holder = NULL; the_mutex->holder_id = 0; } _Thread_queue_Initialize( 46fe2: 4aaa 0006 tstl %a2@(6) <== NOT EXECUTED 46fe6: 56c0 sne %d0 <== NOT EXECUTED 46fe8: 4878 0005 pea 5 <== NOT EXECUTED 46fec: 49c0 extbl %d0 <== NOT EXECUTED 46fee: 4878 0400 pea 400 <== NOT EXECUTED 46ff2: 4480 negl %d0 <== NOT EXECUTED 46ff4: 2f00 movel %d0,%sp@- <== NOT EXECUTED 46ff6: 2f08 movel %a0,%sp@- <== NOT EXECUTED 46ff8: 4eb9 0004 9038 jsr 49038 <_Thread_queue_Initialize> <== NOT EXECUTED THREAD_QUEUE_DISCIPLINE_FIFO : THREAD_QUEUE_DISCIPLINE_PRIORITY, STATES_WAITING_FOR_MUTEX, CORE_MUTEX_TIMEOUT ); return CORE_MUTEX_STATUS_SUCCESSFUL; 46ffe: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 47002: 4280 clrl %d0 <== NOT EXECUTED 47004: 6096 bras 46f9c <_CORE_mutex_Initialize+0x7c> <== NOT EXECUTED } 47006: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || _CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { if ( _Thread_Executing->current_priority < the_mutex->Attributes.priority_ceiling ) return CORE_MUTEX_STATUS_CEILING_VIOLATED; 4700a: 7006 moveq #6,%d0 <== NOT EXECUTED STATES_WAITING_FOR_MUTEX, CORE_MUTEX_TIMEOUT ); return CORE_MUTEX_STATUS_SUCCESSFUL; } 4700c: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 0004709c <_CORE_mutex_Seize>: Objects_Id _id, bool _wait, Watchdog_Interval _timeout, ISR_Level _level ) { 4709c: 4e56 0000 linkw %fp,#0 _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level ); 470a0: 2039 0005 e4c8 movel 5e4c8 <_Thread_Dispatch_disable_level>,%d0 Objects_Id _id, bool _wait, Watchdog_Interval _timeout, ISR_Level _level ) { 470a6: 2f0a movel %a2,%sp@- 470a8: 246e 0008 moveal %fp@(8),%a2 470ac: 2f02 movel %d2,%sp@- 470ae: 142e 0013 moveb %fp@(19),%d2 _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level ); 470b2: 4a80 tstl %d0 470b4: 6704 beqs 470ba <_CORE_mutex_Seize+0x1e> 470b6: 4a02 tstb %d2 470b8: 6634 bnes 470ee <_CORE_mutex_Seize+0x52> <== ALWAYS TAKEN 470ba: 486e 0018 pea %fp@(24) 470be: 2f0a movel %a2,%sp@- 470c0: 4eb9 0004 b954 jsr 4b954 <_CORE_mutex_Seize_interrupt_trylock> 470c6: 508f addql #8,%sp 470c8: 4a80 tstl %d0 470ca: 6716 beqs 470e2 <_CORE_mutex_Seize+0x46> 470cc: 4a02 tstb %d2 470ce: 6636 bnes 47106 <_CORE_mutex_Seize+0x6a> <== ALWAYS TAKEN 470d0: 202e 0018 movel %fp@(24),%d0 <== NOT EXECUTED 470d4: 46c0 movew %d0,%sr <== NOT EXECUTED 470d6: 2079 0005 e684 moveal 5e684 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED 470dc: 7001 moveq #1,%d0 <== NOT EXECUTED 470de: 2140 0034 movel %d0,%a0@(52) <== NOT EXECUTED } 470e2: 242e fff8 movel %fp@(-8),%d2 470e6: 246e fffc moveal %fp@(-4),%a2 470ea: 4e5e unlk %fp 470ec: 4e75 rts bool _wait, Watchdog_Interval _timeout, ISR_Level _level ) { _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level ); 470ee: 7001 moveq #1,%d0 470f0: b0b9 0005 e630 cmpl 5e630 <_System_state_Current>,%d0 470f6: 64c2 bccs 470ba <_CORE_mutex_Seize+0x1e> 470f8: 4878 0012 pea 12 470fc: 42a7 clrl %sp@- 470fe: 42a7 clrl %sp@- 47100: 4eb9 0004 77b8 jsr 477b8 <_Internal_error_Occurred> RTEMS_INLINE_ROUTINE void _Thread_queue_Enter_critical_section ( Thread_queue_Control *the_thread_queue ) { the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; 47106: 7001 moveq #1,%d0 47108: 2079 0005 e684 moveal 5e684 <_Per_CPU_Information+0xc>,%a0 4710e: 2540 0030 movel %d0,%a2@(48) 47112: 2039 0005 e4c8 movel 5e4c8 <_Thread_Dispatch_disable_level>,%d0 47118: 5280 addql #1,%d0 4711a: 216e 000c 0020 movel %fp@(12),%a0@(32) 47120: 214a 0044 movel %a2,%a0@(68) 47124: 23c0 0005 e4c8 movel %d0,5e4c8 <_Thread_Dispatch_disable_level> 4712a: 202e 0018 movel %fp@(24),%d0 4712e: 46c0 movew %d0,%sr 47130: 2f2e 0014 movel %fp@(20),%sp@- 47134: 2f0a movel %a2,%sp@- 47136: 4eb9 0004 7010 jsr 47010 <_CORE_mutex_Seize_interrupt_blocking> } 4713c: 242e fff8 movel %fp@(-8),%d2 bool _wait, Watchdog_Interval _timeout, ISR_Level _level ) { _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level ); 47140: 508f addql #8,%sp } 47142: 246e fffc moveal %fp@(-4),%a2 47146: 4e5e unlk %fp ... =============================================================================== 00047010 <_CORE_mutex_Seize_interrupt_blocking>: ) { Thread_Control *executing; executing = _Thread_Executing; if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ) { 47010: 7002 moveq #2,%d0 void _CORE_mutex_Seize_interrupt_blocking( CORE_mutex_Control *the_mutex, Watchdog_Interval timeout ) { 47012: 4e56 0000 linkw %fp,#0 Thread_Control *executing; executing = _Thread_Executing; 47016: 2079 0005 e684 moveal 5e684 <_Per_CPU_Information+0xc>,%a0 void _CORE_mutex_Seize_interrupt_blocking( CORE_mutex_Control *the_mutex, Watchdog_Interval timeout ) { 4701c: 2f0a movel %a2,%sp@- 4701e: 246e 0008 moveal %fp@(8),%a2 47022: 2f02 movel %d2,%sp@- 47024: 242e 000c movel %fp@(12),%d2 Thread_Control *executing; executing = _Thread_Executing; if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ) { 47028: b0aa 0046 cmpl %a2@(70),%d0 4702c: 6728 beqs 47056 <_CORE_mutex_Seize_interrupt_blocking+0x46> ); } } the_mutex->blocked_count++; _Thread_queue_Enqueue( &the_mutex->Wait_queue, timeout ); 4702e: 4879 0004 9144 pea 49144 <_Thread_queue_Timeout> false ); } } the_mutex->blocked_count++; 47034: 52aa 0056 addql #1,%a2@(86) _Thread_queue_Enqueue( &the_mutex->Wait_queue, timeout ); 47038: 2f02 movel %d2,%sp@- 4703a: 2f0a movel %a2,%sp@- 4703c: 4eb9 0004 8d80 jsr 48d80 <_Thread_queue_Enqueue_with_handler> _Thread_Enable_dispatch(); } 47042: 242e fff8 movel %fp@(-8),%d2 } the_mutex->blocked_count++; _Thread_queue_Enqueue( &the_mutex->Wait_queue, timeout ); _Thread_Enable_dispatch(); 47046: 4fef 000c lea %sp@(12),%sp } 4704a: 246e fffc moveal %fp@(-4),%a2 4704e: 4e5e unlk %fp } the_mutex->blocked_count++; _Thread_queue_Enqueue( &the_mutex->Wait_queue, timeout ); _Thread_Enable_dispatch(); 47050: 4ef9 0004 88c2 jmp 488c2 <_Thread_Enable_dispatch> { Thread_Control *executing; executing = _Thread_Executing; if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ) { if ( the_mutex->holder->current_priority > executing->current_priority ) { 47056: 226a 005a moveal %a2@(90),%a1 4705a: 2028 0014 movel %a0@(20),%d0 4705e: b0a9 0014 cmpl %a1@(20),%d0 47062: 64ca bccs 4702e <_CORE_mutex_Seize_interrupt_blocking+0x1e><== NEVER TAKEN _Thread_Change_priority( 47064: 42a7 clrl %sp@- 47066: 2f00 movel %d0,%sp@- 47068: 2f09 movel %a1,%sp@- 4706a: 4eb9 0004 83cc jsr 483cc <_Thread_Change_priority> 47070: 4fef 000c lea %sp@(12),%sp ); } } the_mutex->blocked_count++; _Thread_queue_Enqueue( &the_mutex->Wait_queue, timeout ); 47074: 4879 0004 9144 pea 49144 <_Thread_queue_Timeout> false ); } } the_mutex->blocked_count++; 4707a: 52aa 0056 addql #1,%a2@(86) _Thread_queue_Enqueue( &the_mutex->Wait_queue, timeout ); 4707e: 2f02 movel %d2,%sp@- 47080: 2f0a movel %a2,%sp@- 47082: 4eb9 0004 8d80 jsr 48d80 <_Thread_queue_Enqueue_with_handler> _Thread_Enable_dispatch(); } 47088: 242e fff8 movel %fp@(-8),%d2 } the_mutex->blocked_count++; _Thread_queue_Enqueue( &the_mutex->Wait_queue, timeout ); _Thread_Enable_dispatch(); 4708c: 4fef 000c lea %sp@(12),%sp } 47090: 246e fffc moveal %fp@(-4),%a2 47094: 4e5e unlk %fp } the_mutex->blocked_count++; _Thread_queue_Enqueue( &the_mutex->Wait_queue, timeout ); _Thread_Enable_dispatch(); 47096: 4ef9 0004 88c2 jmp 488c2 <_Thread_Enable_dispatch> =============================================================================== 0004b954 <_CORE_mutex_Seize_interrupt_trylock>: #if defined(__RTEMS_DO_NOT_INLINE_CORE_MUTEX_SEIZE__) int _CORE_mutex_Seize_interrupt_trylock( CORE_mutex_Control *the_mutex, ISR_Level *level_p ) { 4b954: 4e56 0000 linkw %fp,#0 { Thread_Control *executing; /* disabled when you get here */ executing = _Thread_Executing; 4b958: 2279 0005 e684 moveal 5e684 <_Per_CPU_Information+0xc>,%a1 4b95e: 2f0a movel %a2,%sp@- 4b960: 206e 0008 moveal %fp@(8),%a0 4b964: 2f02 movel %d2,%sp@- 4b966: 246e 000c moveal %fp@(12),%a2 executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; 4b96a: 42a9 0034 clrl %a1@(52) if ( !_CORE_mutex_Is_locked( the_mutex ) ) { 4b96e: 4aa8 004e tstl %a0@(78) 4b972: 673a beqs 4b9ae <_CORE_mutex_Seize_interrupt_trylock+0x5a> the_mutex->lock = CORE_MUTEX_LOCKED; the_mutex->holder = executing; the_mutex->holder_id = executing->Object.id; the_mutex->nest_count = 1; 4b974: 7201 moveq #1,%d1 executing = _Thread_Executing; executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; if ( !_CORE_mutex_Is_locked( the_mutex ) ) { the_mutex->lock = CORE_MUTEX_LOCKED; the_mutex->holder = executing; the_mutex->holder_id = executing->Object.id; 4b976: 2169 0008 005e movel %a1@(8),%a0@(94) return _CORE_mutex_Seize_interrupt_trylock_body( the_mutex, level_p ); } 4b97c: 2028 0046 movel %a0@(70),%d0 the_mutex->nest_count = 1; 4b980: 2141 0052 movel %d1,%a0@(82) if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || 4b984: 123c 0002 moveb #2,%d1 /* disabled when you get here */ executing = _Thread_Executing; executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; if ( !_CORE_mutex_Is_locked( the_mutex ) ) { the_mutex->lock = CORE_MUTEX_LOCKED; 4b988: 42a8 004e clrl %a0@(78) the_mutex->holder = executing; 4b98c: 2149 005a movel %a1,%a0@(90) the_mutex->holder_id = executing->Object.id; the_mutex->nest_count = 1; if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || 4b990: b280 cmpl %d0,%d1 4b992: 672e beqs 4b9c2 <_CORE_mutex_Seize_interrupt_trylock+0x6e> 4b994: 123c 0003 moveb #3,%d1 4b998: b280 cmpl %d0,%d1 4b99a: 674e beqs 4b9ea <_CORE_mutex_Seize_interrupt_trylock+0x96><== NEVER TAKEN executing->resource_count++; } if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { _ISR_Enable( *level_p ); 4b99c: 2012 movel %a2@,%d0 4b99e: 46c0 movew %d0,%sr return 0; 4b9a0: 4280 clrl %d0 4b9a2: 242e fff8 movel %fp@(-8),%d2 4b9a6: 246e fffc moveal %fp@(-4),%a2 4b9aa: 4e5e unlk %fp 4b9ac: 4e75 rts /* * At this point, we know the mutex was not available. If this thread * is the thread that has locked the mutex, let's see if we are allowed * to nest access. */ if ( _Thread_Is_executing( the_mutex->holder ) ) { 4b9ae: b3e8 005a cmpal %a0@(90),%a1 4b9b2: 671a beqs 4b9ce <_CORE_mutex_Seize_interrupt_trylock+0x7a> 4b9b4: 242e fff8 movel %fp@(-8),%d2 /* * The mutex is not available and the caller must deal with the possibility * of blocking. */ return 1; 4b9b8: 7001 moveq #1,%d0 4b9ba: 246e fffc moveal %fp@(-4),%a2 4b9be: 4e5e unlk %fp 4b9c0: 4e75 rts _Chain_Prepend_unprotected( &executing->lock_mutex, &the_mutex->queue.lock_queue ); the_mutex->queue.priority_before = executing->current_priority; #endif executing->resource_count++; 4b9c2: 52a9 001c addql #1,%a1@(28) } if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { _ISR_Enable( *level_p ); 4b9c6: 2012 movel %a2@,%d0 4b9c8: 46c0 movew %d0,%sr return 0; 4b9ca: 4280 clrl %d0 4b9cc: 60d4 bras 4b9a2 <_CORE_mutex_Seize_interrupt_trylock+0x4e> * At this point, we know the mutex was not available. If this thread * is the thread that has locked the mutex, let's see if we are allowed * to nest access. */ if ( _Thread_Is_executing( the_mutex->holder ) ) { switch ( the_mutex->Attributes.lock_nesting_behavior ) { 4b9ce: 2028 0040 movel %a0@(64),%d0 4b9d2: 6658 bnes 4ba2c <_CORE_mutex_Seize_interrupt_trylock+0xd8><== ALWAYS TAKEN case CORE_MUTEX_NESTING_ACQUIRES: the_mutex->nest_count++; 4b9d4: 52a8 0052 addql #1,%a0@(82) <== NOT EXECUTED _ISR_Enable( *level_p ); 4b9d8: 2012 movel %a2@,%d0 <== NOT EXECUTED 4b9da: 46c0 movew %d0,%sr <== NOT EXECUTED 4b9dc: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED return 0; 4b9e0: 4280 clrl %d0 <== NOT EXECUTED 4b9e2: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4b9e6: 4e5e unlk %fp <== NOT EXECUTED 4b9e8: 4e75 rts <== NOT EXECUTED _Chain_Prepend_unprotected( &executing->lock_mutex, &the_mutex->queue.lock_queue ); the_mutex->queue.priority_before = executing->current_priority; #endif executing->resource_count++; 4b9ea: 2429 001c movel %a1@(28),%d2 <== NOT EXECUTED 4b9ee: 2002 movel %d2,%d0 <== NOT EXECUTED 4b9f0: 5280 addql #1,%d0 <== NOT EXECUTED 4b9f2: 2340 001c movel %d0,%a1@(28) <== NOT EXECUTED */ { Priority_Control ceiling; Priority_Control current; ceiling = the_mutex->Attributes.priority_ceiling; 4b9f6: 2228 004a movel %a0@(74),%d1 <== NOT EXECUTED current = executing->current_priority; 4b9fa: 2029 0014 movel %a1@(20),%d0 <== NOT EXECUTED if ( current == ceiling ) { 4b9fe: b081 cmpl %d1,%d0 <== NOT EXECUTED 4ba00: 6700 0082 beqw 4ba84 <_CORE_mutex_Seize_interrupt_trylock+0x130><== NOT EXECUTED _ISR_Enable( *level_p ); return 0; } if ( current > ceiling ) { 4ba04: 6244 bhis 4ba4a <_CORE_mutex_Seize_interrupt_trylock+0xf6><== NOT EXECUTED ); _Thread_Enable_dispatch(); return 0; } /* if ( current < ceiling ) */ { executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED; 4ba06: 7206 moveq #6,%d1 <== NOT EXECUTED the_mutex->lock = CORE_MUTEX_UNLOCKED; 4ba08: 7001 moveq #1,%d0 <== NOT EXECUTED ); _Thread_Enable_dispatch(); return 0; } /* if ( current < ceiling ) */ { executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED; 4ba0a: 2341 0034 movel %d1,%a1@(52) <== NOT EXECUTED the_mutex->lock = CORE_MUTEX_UNLOCKED; 4ba0e: 2140 004e movel %d0,%a0@(78) <== NOT EXECUTED the_mutex->nest_count = 0; /* undo locking above */ 4ba12: 42a8 0052 clrl %a0@(82) <== NOT EXECUTED executing->resource_count--; /* undo locking above */ 4ba16: 2342 001c movel %d2,%a1@(28) <== NOT EXECUTED _ISR_Enable( *level_p ); 4ba1a: 2012 movel %a2@,%d0 <== NOT EXECUTED 4ba1c: 46c0 movew %d0,%sr <== NOT EXECUTED 4ba1e: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED return 0; 4ba22: 4280 clrl %d0 <== NOT EXECUTED 4ba24: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4ba28: 4e5e unlk %fp <== NOT EXECUTED 4ba2a: 4e75 rts <== NOT EXECUTED * At this point, we know the mutex was not available. If this thread * is the thread that has locked the mutex, let's see if we are allowed * to nest access. */ if ( _Thread_Is_executing( the_mutex->holder ) ) { switch ( the_mutex->Attributes.lock_nesting_behavior ) { 4ba2c: 7201 moveq #1,%d1 4ba2e: b280 cmpl %d0,%d1 4ba30: 6682 bnes 4b9b4 <_CORE_mutex_Seize_interrupt_trylock+0x60><== ALWAYS TAKEN case CORE_MUTEX_NESTING_ACQUIRES: the_mutex->nest_count++; _ISR_Enable( *level_p ); return 0; case CORE_MUTEX_NESTING_IS_ERROR: executing->Wait.return_code = CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED; 4ba32: 7002 moveq #2,%d0 <== NOT EXECUTED 4ba34: 2340 0034 movel %d0,%a1@(52) <== NOT EXECUTED _ISR_Enable( *level_p ); 4ba38: 2012 movel %a2@,%d0 <== NOT EXECUTED 4ba3a: 46c0 movew %d0,%sr <== NOT EXECUTED 4ba3c: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED return 0; 4ba40: 4280 clrl %d0 <== NOT EXECUTED 4ba42: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4ba46: 4e5e unlk %fp <== NOT EXECUTED 4ba48: 4e75 rts <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 4ba4a: 2039 0005 e4c8 movel 5e4c8 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED 4ba50: 5280 addql #1,%d0 <== NOT EXECUTED 4ba52: 23c0 0005 e4c8 movel %d0,5e4c8 <_Thread_Dispatch_disable_level><== NOT EXECUTED return 0; } if ( current > ceiling ) { _Thread_Disable_dispatch(); _ISR_Enable( *level_p ); 4ba58: 2012 movel %a2@,%d0 <== NOT EXECUTED 4ba5a: 46c0 movew %d0,%sr <== NOT EXECUTED _Thread_Change_priority( 4ba5c: 42a7 clrl %sp@- <== NOT EXECUTED 4ba5e: 2f28 004a movel %a0@(74),%sp@- <== NOT EXECUTED 4ba62: 2f28 005a movel %a0@(90),%sp@- <== NOT EXECUTED 4ba66: 4eb9 0004 83cc jsr 483cc <_Thread_Change_priority> <== NOT EXECUTED the_mutex->holder, the_mutex->Attributes.priority_ceiling, false ); _Thread_Enable_dispatch(); 4ba6c: 4eb9 0004 88c2 jsr 488c2 <_Thread_Enable_dispatch> <== NOT EXECUTED 4ba72: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 4ba76: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED return 0; 4ba7a: 4280 clrl %d0 <== NOT EXECUTED 4ba7c: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4ba80: 4e5e unlk %fp <== NOT EXECUTED 4ba82: 4e75 rts <== NOT EXECUTED Priority_Control current; ceiling = the_mutex->Attributes.priority_ceiling; current = executing->current_priority; if ( current == ceiling ) { _ISR_Enable( *level_p ); 4ba84: 2012 movel %a2@,%d0 <== NOT EXECUTED 4ba86: 46c0 movew %d0,%sr <== NOT EXECUTED 4ba88: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED return 0; 4ba8c: 4280 clrl %d0 <== NOT EXECUTED 4ba8e: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4ba92: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 0004714c <_CORE_mutex_Surrender>: #else Objects_Id id __attribute__((unused)), CORE_mutex_API_mp_support_callout api_mutex_mp_support __attribute__((unused)) #endif ) { 4714c: 4e56 0000 linkw %fp,#0 47150: 2f0a movel %a2,%sp@- 47152: 246e 0008 moveal %fp@(8),%a2 Thread_Control *the_thread; Thread_Control *holder; holder = the_mutex->holder; 47156: 206a 005a moveal %a2@(90),%a0 * allowed when the mutex in quetion is FIFO or simple Priority * discipline. But Priority Ceiling or Priority Inheritance mutexes * must be released by the thread which acquired them. */ if ( the_mutex->Attributes.only_owner_release ) { 4715a: 4a2a 0044 tstb %a2@(68) 4715e: 6712 beqs 47172 <_CORE_mutex_Surrender+0x26> if ( !_Thread_Is_executing( holder ) ) 47160: b1f9 0005 e684 cmpal 5e684 <_Per_CPU_Information+0xc>,%a0 47166: 670a beqs 47172 <_CORE_mutex_Surrender+0x26> <== ALWAYS TAKEN } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; return CORE_MUTEX_STATUS_SUCCESSFUL; } 47168: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED * must be released by the thread which acquired them. */ if ( the_mutex->Attributes.only_owner_release ) { if ( !_Thread_Is_executing( holder ) ) return CORE_MUTEX_STATUS_NOT_OWNER_OF_RESOURCE; 4716c: 7003 moveq #3,%d0 <== NOT EXECUTED } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; return CORE_MUTEX_STATUS_SUCCESSFUL; } 4716e: 4e5e unlk %fp <== NOT EXECUTED 47170: 4e75 rts <== NOT EXECUTED return CORE_MUTEX_STATUS_NOT_OWNER_OF_RESOURCE; } /* XXX already unlocked -- not right status */ if ( !the_mutex->nest_count ) 47172: 202a 0052 movel %a2@(82),%d0 47176: 6758 beqs 471d0 <_CORE_mutex_Surrender+0x84> <== NEVER TAKEN return CORE_MUTEX_STATUS_SUCCESSFUL; the_mutex->nest_count--; 47178: 5380 subql #1,%d0 4717a: 2540 0052 movel %d0,%a2@(82) if ( the_mutex->nest_count != 0 ) { 4717e: 6650 bnes 471d0 <_CORE_mutex_Surrender+0x84> <== NEVER TAKEN } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; return CORE_MUTEX_STATUS_SUCCESSFUL; } 47180: 202a 0046 movel %a2@(70),%d0 /* * Formally release the mutex before possibly transferring it to a * blocked thread. */ if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || 47184: 7202 moveq #2,%d1 47186: b280 cmpl %d0,%d1 47188: 6750 beqs 471da <_CORE_mutex_Surrender+0x8e> 4718a: 123c 0003 moveb #3,%d1 4718e: b280 cmpl %d0,%d1 47190: 6748 beqs 471da <_CORE_mutex_Surrender+0x8e> <== NEVER TAKEN if ( holder->resource_count == 0 && holder->real_priority != holder->current_priority ) { _Thread_Change_priority( holder, holder->real_priority, true ); } } the_mutex->holder = NULL; 47192: 42aa 005a clrl %a2@(90) the_mutex->holder_id = 0; 47196: 42aa 005e clrl %a2@(94) /* * Now we check if another thread was waiting for this mutex. If so, * transfer the mutex to that thread. */ if ( ( the_thread = _Thread_queue_Dequeue( &the_mutex->Wait_queue ) ) ) { 4719a: 2f0a movel %a2,%sp@- 4719c: 4eb9 0004 8c08 jsr 48c08 <_Thread_queue_Dequeue> 471a2: 588f addql #4,%sp 471a4: 2040 moveal %d0,%a0 471a6: 4a80 tstl %d0 471a8: 6700 0090 beqw 4723a <_CORE_mutex_Surrender+0xee> #endif { the_mutex->holder = the_thread; the_mutex->holder_id = the_thread->Object.id; the_mutex->nest_count = 1; 471ac: 7201 moveq #1,%d1 } else #endif { the_mutex->holder = the_thread; the_mutex->holder_id = the_thread->Object.id; 471ae: 2568 0008 005e movel %a0@(8),%a2@(94) the_mutex->nest_count = 1; switch ( the_mutex->Attributes.discipline ) { 471b4: 202a 0046 movel %a2@(70),%d0 #endif { the_mutex->holder = the_thread; the_mutex->holder_id = the_thread->Object.id; the_mutex->nest_count = 1; 471b8: 2541 0052 movel %d1,%a2@(82) switch ( the_mutex->Attributes.discipline ) { 471bc: 123c 0002 moveb #2,%d1 } else #endif { the_mutex->holder = the_thread; 471c0: 2548 005a movel %a0,%a2@(90) the_mutex->holder_id = the_thread->Object.id; the_mutex->nest_count = 1; switch ( the_mutex->Attributes.discipline ) { 471c4: b280 cmpl %d0,%d1 471c6: 6764 beqs 4722c <_CORE_mutex_Surrender+0xe0> <== ALWAYS TAKEN 471c8: 123c 0003 moveb #3,%d1 <== NOT EXECUTED 471cc: b280 cmpl %d0,%d1 <== NOT EXECUTED 471ce: 6734 beqs 47204 <_CORE_mutex_Surrender+0xb8> <== NOT EXECUTED } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; return CORE_MUTEX_STATUS_SUCCESSFUL; } 471d0: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED } } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; return CORE_MUTEX_STATUS_SUCCESSFUL; 471d4: 4280 clrl %d0 <== NOT EXECUTED } 471d6: 4e5e unlk %fp <== NOT EXECUTED 471d8: 4e75 rts <== NOT EXECUTED _CORE_mutex_Pop_priority( the_mutex, holder ); if ( pop_status != CORE_MUTEX_STATUS_SUCCESSFUL ) return pop_status; holder->resource_count--; 471da: 2028 001c movel %a0@(28),%d0 471de: 5380 subql #1,%d0 471e0: 2140 001c movel %d0,%a0@(28) /* * Whether or not someone is waiting for the mutex, an * inherited priority must be lowered if this is the last * mutex (i.e. resource) this task has. */ if ( holder->resource_count == 0 && 471e4: 66ac bnes 47192 <_CORE_mutex_Surrender+0x46> holder->real_priority != holder->current_priority ) { 471e6: 2028 0018 movel %a0@(24),%d0 /* * Whether or not someone is waiting for the mutex, an * inherited priority must be lowered if this is the last * mutex (i.e. resource) this task has. */ if ( holder->resource_count == 0 && 471ea: b0a8 0014 cmpl %a0@(20),%d0 471ee: 67a2 beqs 47192 <_CORE_mutex_Surrender+0x46> holder->real_priority != holder->current_priority ) { _Thread_Change_priority( holder, holder->real_priority, true ); 471f0: 4878 0001 pea 1 471f4: 2f00 movel %d0,%sp@- 471f6: 2f08 movel %a0,%sp@- 471f8: 4eb9 0004 83cc jsr 483cc <_Thread_Change_priority> 471fe: 4fef 000c lea %sp@(12),%sp 47202: 608e bras 47192 <_CORE_mutex_Surrender+0x46> the_thread->resource_count++; break; case CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING: _CORE_mutex_Push_priority( the_mutex, the_thread ); the_thread->resource_count++; if (the_mutex->Attributes.priority_ceiling < 47204: 202a 004a movel %a2@(74),%d0 <== NOT EXECUTED _CORE_mutex_Push_priority( the_mutex, the_thread ); the_thread->resource_count++; break; case CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING: _CORE_mutex_Push_priority( the_mutex, the_thread ); the_thread->resource_count++; 47208: 52a8 001c addql #1,%a0@(28) <== NOT EXECUTED if (the_mutex->Attributes.priority_ceiling < 4720c: b0a8 0014 cmpl %a0@(20),%d0 <== NOT EXECUTED 47210: 64be bccs 471d0 <_CORE_mutex_Surrender+0x84> <== NOT EXECUTED the_thread->current_priority){ _Thread_Change_priority( 47212: 42a7 clrl %sp@- <== NOT EXECUTED 47214: 2f00 movel %d0,%sp@- <== NOT EXECUTED 47216: 2f08 movel %a0,%sp@- <== NOT EXECUTED 47218: 4eb9 0004 83cc jsr 483cc <_Thread_Change_priority> <== NOT EXECUTED } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; return CORE_MUTEX_STATUS_SUCCESSFUL; } 4721e: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED case CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING: _CORE_mutex_Push_priority( the_mutex, the_thread ); the_thread->resource_count++; if (the_mutex->Attributes.priority_ceiling < the_thread->current_priority){ _Thread_Change_priority( 47222: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED } } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; return CORE_MUTEX_STATUS_SUCCESSFUL; 47226: 4280 clrl %d0 <== NOT EXECUTED } 47228: 4e5e unlk %fp <== NOT EXECUTED 4722a: 4e75 rts <== NOT EXECUTED 4722c: 246e fffc moveal %fp@(-4),%a2 } } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; return CORE_MUTEX_STATUS_SUCCESSFUL; 47230: 4280 clrl %d0 case CORE_MUTEX_DISCIPLINES_FIFO: case CORE_MUTEX_DISCIPLINES_PRIORITY: break; case CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT: _CORE_mutex_Push_priority( the_mutex, the_thread ); the_thread->resource_count++; 47232: 52a8 001c addql #1,%a0@(28) } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; return CORE_MUTEX_STATUS_SUCCESSFUL; } 47236: 4e5e unlk %fp 47238: 4e75 rts } break; } } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; 4723a: 7001 moveq #1,%d0 4723c: 2540 004e movel %d0,%a2@(78) return CORE_MUTEX_STATUS_SUCCESSFUL; } 47240: 246e fffc moveal %fp@(-4),%a2 } } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; return CORE_MUTEX_STATUS_SUCCESSFUL; 47244: 4200 clrb %d0 } 47246: 4e5e unlk %fp ... =============================================================================== 000472a0 <_CORE_semaphore_Surrender>: CORE_semaphore_Status _CORE_semaphore_Surrender( CORE_semaphore_Control *the_semaphore, Objects_Id id, CORE_semaphore_API_mp_support_callout api_semaphore_mp_support ) { 472a0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 472a4: 2f0a movel %a2,%sp@- <== NOT EXECUTED 472a6: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED ISR_Level level; CORE_semaphore_Status status; status = CORE_SEMAPHORE_STATUS_SUCCESSFUL; if ( (the_thread = _Thread_queue_Dequeue(&the_semaphore->Wait_queue)) ) { 472aa: 2f0a movel %a2,%sp@- <== NOT EXECUTED 472ac: 4eb9 0004 8c08 jsr 48c08 <_Thread_queue_Dequeue> <== NOT EXECUTED 472b2: 588f addql #4,%sp <== NOT EXECUTED 472b4: 4a80 tstl %d0 <== NOT EXECUTED 472b6: 670a beqs 472c2 <_CORE_semaphore_Surrender+0x22> <== NOT EXECUTED status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED; _ISR_Enable( level ); } return status; } 472b8: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED { Thread_Control *the_thread; ISR_Level level; CORE_semaphore_Status status; status = CORE_SEMAPHORE_STATUS_SUCCESSFUL; 472bc: 4280 clrl %d0 <== NOT EXECUTED status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED; _ISR_Enable( level ); } return status; } 472be: 4e5e unlk %fp <== NOT EXECUTED 472c0: 4e75 rts <== NOT EXECUTED if ( !_Objects_Is_local_id( the_thread->Object.id ) ) (*api_semaphore_mp_support) ( the_thread, id ); #endif } else { _ISR_Disable( level ); 472c2: 303c 0700 movew #1792,%d0 <== NOT EXECUTED 472c6: 40c1 movew %sr,%d1 <== NOT EXECUTED 472c8: 8081 orl %d1,%d0 <== NOT EXECUTED 472ca: 46c0 movew %d0,%sr <== NOT EXECUTED if ( the_semaphore->count < the_semaphore->Attributes.maximum_count ) 472cc: 202a 0048 movel %a2@(72),%d0 <== NOT EXECUTED 472d0: b0aa 0040 cmpl %a2@(64),%d0 <== NOT EXECUTED 472d4: 6412 bccs 472e8 <_CORE_semaphore_Surrender+0x48> <== NOT EXECUTED the_semaphore->count += 1; 472d6: 5280 addql #1,%d0 <== NOT EXECUTED 472d8: 2540 0048 movel %d0,%a2@(72) <== NOT EXECUTED { Thread_Control *the_thread; ISR_Level level; CORE_semaphore_Status status; status = CORE_SEMAPHORE_STATUS_SUCCESSFUL; 472dc: 4280 clrl %d0 <== NOT EXECUTED _ISR_Disable( level ); if ( the_semaphore->count < the_semaphore->Attributes.maximum_count ) the_semaphore->count += 1; else status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED; _ISR_Enable( level ); 472de: 46c1 movew %d1,%sr <== NOT EXECUTED } return status; } 472e0: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 472e4: 4e5e unlk %fp <== NOT EXECUTED 472e6: 4e75 rts <== NOT EXECUTED } else { _ISR_Disable( level ); if ( the_semaphore->count < the_semaphore->Attributes.maximum_count ) the_semaphore->count += 1; else status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED; 472e8: 7004 moveq #4,%d0 <== NOT EXECUTED _ISR_Enable( level ); 472ea: 46c1 movew %d1,%sr <== NOT EXECUTED 472ec: 60f2 bras 472e0 <_CORE_semaphore_Surrender+0x40> <== NOT EXECUTED ... =============================================================================== 0004757c <_Chain_Append_with_empty_check>: ) { ISR_Level level; bool was_empty; _ISR_Disable( level ); 4757c: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED bool _Chain_Append_with_empty_check( Chain_Control *chain, Chain_Node *node ) { 47582: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 47586: 226e 0008 moveal %fp@(8),%a1 <== NOT EXECUTED 4758a: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4758c: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED 47590: 2f02 movel %d2,%sp@- <== NOT EXECUTED ISR_Level level; bool was_empty; _ISR_Disable( level ); 47592: 40c2 movew %sr,%d2 <== NOT EXECUTED 47594: 8082 orl %d2,%d0 <== NOT EXECUTED 47596: 46c0 movew %d0,%sr <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( const Chain_Control *the_chain ) { return _Chain_Immutable_first( the_chain ) == _Chain_Immutable_tail( the_chain ); 47598: 2209 movel %a1,%d1 <== NOT EXECUTED 4759a: 5881 addql #4,%d1 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( const Chain_Control *the_chain ) { return _Chain_Immutable_first( the_chain ) 4759c: b291 cmpl %a1@,%d1 <== NOT EXECUTED 4759e: 57c0 seq %d0 <== NOT EXECUTED Chain_Control *the_chain, Chain_Node *the_node ) { Chain_Node *tail = _Chain_Tail( the_chain ); Chain_Node *old_last = tail->previous; 475a0: 2469 0008 moveal %a1@(8),%a2 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( const Chain_Control *the_chain ) { return _Chain_Immutable_first( the_chain ) 475a4: 4480 negl %d0 <== NOT EXECUTED { Chain_Node *tail = _Chain_Tail( the_chain ); Chain_Node *old_last = tail->previous; the_node->next = tail; tail->previous = the_node; 475a6: 2348 0008 movel %a0,%a1@(8) <== NOT EXECUTED ) { Chain_Node *tail = _Chain_Tail( the_chain ); Chain_Node *old_last = tail->previous; the_node->next = tail; 475aa: 2081 movel %d1,%a0@ <== NOT EXECUTED tail->previous = the_node; old_last->next = the_node; the_node->previous = old_last; 475ac: 214a 0004 movel %a2,%a0@(4) <== NOT EXECUTED Chain_Node *tail = _Chain_Tail( the_chain ); Chain_Node *old_last = tail->previous; the_node->next = tail; tail->previous = the_node; old_last->next = the_node; 475b0: 2488 movel %a0,%a2@ <== NOT EXECUTED was_empty = _Chain_Append_with_empty_check_unprotected( chain, node ); _ISR_Enable( level ); 475b2: 46c2 movew %d2,%sr <== NOT EXECUTED return was_empty; } 475b4: 241f movel %sp@+,%d2 <== NOT EXECUTED 475b6: 245f moveal %sp@+,%a2 <== NOT EXECUTED 475b8: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 0004761c <_Chain_Get_with_empty_check>: ) { ISR_Level level; bool is_empty_now; _ISR_Disable( level ); 4761c: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED bool _Chain_Get_with_empty_check( Chain_Control *chain, Chain_Node **node ) { 47622: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 47626: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 4762a: 2f0b movel %a3,%sp@- <== NOT EXECUTED 4762c: 266e 000c moveal %fp@(12),%a3 <== NOT EXECUTED 47630: 2f0a movel %a2,%sp@- <== NOT EXECUTED ISR_Level level; bool is_empty_now; _ISR_Disable( level ); 47632: 40c1 movew %sr,%d1 <== NOT EXECUTED 47634: 8081 orl %d1,%d0 <== NOT EXECUTED 47636: 46c0 movew %d0,%sr <== NOT EXECUTED Chain_Node **the_node ) { bool is_empty_now = true; Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); 47638: 2008 movel %a0,%d0 <== NOT EXECUTED 4763a: 5880 addql #4,%d0 <== NOT EXECUTED Chain_Node *old_first = head->next; 4763c: 2250 moveal %a0@,%a1 <== NOT EXECUTED if ( old_first != tail ) { 4763e: b3c0 cmpal %d0,%a1 <== NOT EXECUTED 47640: 671a beqs 4765c <_Chain_Get_with_empty_check+0x40><== NOT EXECUTED Chain_Node *new_first = old_first->next; 47642: 2451 moveal %a1@,%a2 <== NOT EXECUTED head->next = new_first; new_first->previous = head; *the_node = old_first; is_empty_now = new_first == tail; 47644: b5c0 cmpal %d0,%a2 <== NOT EXECUTED 47646: 57c0 seq %d0 <== NOT EXECUTED Chain_Node *old_first = head->next; if ( old_first != tail ) { Chain_Node *new_first = old_first->next; head->next = new_first; 47648: 208a movel %a2,%a0@ <== NOT EXECUTED new_first->previous = head; *the_node = old_first; is_empty_now = new_first == tail; 4764a: 4480 negl %d0 <== NOT EXECUTED if ( old_first != tail ) { Chain_Node *new_first = old_first->next; head->next = new_first; new_first->previous = head; 4764c: 2548 0004 movel %a0,%a2@(4) <== NOT EXECUTED *the_node = old_first; 47650: 2689 movel %a1,%a3@ <== NOT EXECUTED is_empty_now = _Chain_Get_with_empty_check_unprotected( chain, node ); _ISR_Enable( level ); 47652: 46c1 movew %d1,%sr <== NOT EXECUTED return is_empty_now; } 47654: 245f moveal %sp@+,%a2 <== NOT EXECUTED 47656: 265f moveal %sp@+,%a3 <== NOT EXECUTED 47658: 4e5e unlk %fp <== NOT EXECUTED 4765a: 4e75 rts <== NOT EXECUTED is_empty_now = new_first == tail; } else *the_node = NULL; 4765c: 4293 clrl %a3@ <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool _Chain_Get_with_empty_check_unprotected( Chain_Control *the_chain, Chain_Node **the_node ) { bool is_empty_now = true; 4765e: 7001 moveq #1,%d0 <== NOT EXECUTED ISR_Level level; bool is_empty_now; _ISR_Disable( level ); is_empty_now = _Chain_Get_with_empty_check_unprotected( chain, node ); _ISR_Enable( level ); 47660: 46c1 movew %d1,%sr <== NOT EXECUTED return is_empty_now; } 47662: 245f moveal %sp@+,%a2 <== NOT EXECUTED 47664: 265f moveal %sp@+,%a3 <== NOT EXECUTED 47666: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 0004b8e0 <_Chain_Initialize>: Chain_Control *the_chain, void *starting_address, size_t number_nodes, size_t node_size ) { 4b8e0: 4e56 ffec linkw %fp,#-20 4b8e4: 202e 0010 movel %fp@(16),%d0 4b8e8: 48d7 043c moveml %d2-%d5/%a2,%sp@ 4b8ec: 246e 0008 moveal %fp@(8),%a2 size_t count = number_nodes; Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); 4b8f0: 280a movel %a2,%d4 4b8f2: 5884 addql #4,%d4 Chain_Control *the_chain, void *starting_address, size_t number_nodes, size_t node_size ) { 4b8f4: 262e 000c movel %fp@(12),%d3 4b8f8: 242e 0014 movel %fp@(20),%d2 Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); Chain_Node *current = head; Chain_Node *next = starting_address; head->previous = NULL; 4b8fc: 42aa 0004 clrl %a2@(4) while ( count-- ) { 4b900: 4a80 tstl %d0 4b902: 6740 beqs 4b944 <_Chain_Initialize+0x64> <== NEVER TAKEN { size_t count = number_nodes; Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); Chain_Node *current = head; Chain_Node *next = starting_address; 4b904: 2043 moveal %d3,%a0 ) { size_t count = number_nodes; Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); Chain_Node *current = head; 4b906: 224a moveal %a2,%a1 Chain_Node *next = starting_address; head->previous = NULL; while ( count-- ) { 4b908: 5380 subql #1,%d0 * node_size - size of node in bytes * * Output parameters: NONE */ void _Chain_Initialize( 4b90a: 2208 movel %a0,%d1 Chain_Node *current = head; Chain_Node *next = starting_address; head->previous = NULL; while ( count-- ) { 4b90c: 2a00 movel %d0,%d5 * node_size - size of node in bytes * * Output parameters: NONE */ void _Chain_Initialize( 4b90e: d282 addl %d2,%d1 Chain_Node *next = starting_address; head->previous = NULL; while ( count-- ) { current->next = next; 4b910: 2288 movel %a0,%a1@ next->previous = current; 4b912: 2149 0004 movel %a1,%a0@(4) Chain_Node *current = head; Chain_Node *next = starting_address; head->previous = NULL; while ( count-- ) { 4b916: 4a80 tstl %d0 4b918: 6714 beqs 4b92e <_Chain_Initialize+0x4e> 4b91a: 2248 moveal %a0,%a1 current->next = next; next->previous = current; current = next; next = (Chain_Node *) 4b91c: 2041 moveal %d1,%a0 * node_size - size of node in bytes * * Output parameters: NONE */ void _Chain_Initialize( 4b91e: 2208 movel %a0,%d1 4b920: 5380 subql #1,%d0 4b922: d282 addl %d2,%d1 Chain_Node *next = starting_address; head->previous = NULL; while ( count-- ) { current->next = next; 4b924: 2288 movel %a0,%a1@ next->previous = current; 4b926: 2149 0004 movel %a1,%a0@(4) Chain_Node *current = head; Chain_Node *next = starting_address; head->previous = NULL; while ( count-- ) { 4b92a: 4a80 tstl %d0 4b92c: 66ec bnes 4b91a <_Chain_Initialize+0x3a> * node_size - size of node in bytes * * Output parameters: NONE */ void _Chain_Initialize( 4b92e: 4c05 2800 mulsl %d5,%d2 Chain_Node *current = head; Chain_Node *next = starting_address; head->previous = NULL; while ( count-- ) { 4b932: 2043 moveal %d3,%a0 4b934: d1c2 addal %d2,%a0 next = (Chain_Node *) _Addresses_Add_offset( (void *) next, node_size ); } current->next = tail; tail->previous = current; 4b936: 2548 0008 movel %a0,%a2@(8) current = next; next = (Chain_Node *) _Addresses_Add_offset( (void *) next, node_size ); } current->next = tail; 4b93a: 2084 movel %d4,%a0@ tail->previous = current; } 4b93c: 4cd7 043c moveml %sp@,%d2-%d5/%a2 4b940: 4e5e unlk %fp 4b942: 4e75 rts ) { size_t count = number_nodes; Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); Chain_Node *current = head; 4b944: 204a moveal %a2,%a0 <== NOT EXECUTED next = (Chain_Node *) _Addresses_Add_offset( (void *) next, node_size ); } current->next = tail; tail->previous = current; 4b946: 2548 0008 movel %a0,%a2@(8) <== NOT EXECUTED current = next; next = (Chain_Node *) _Addresses_Add_offset( (void *) next, node_size ); } current->next = tail; 4b94a: 2084 movel %d4,%a0@ <== NOT EXECUTED tail->previous = current; } 4b94c: 4cd7 043c moveml %sp@,%d2-%d5/%a2 <== NOT EXECUTED 4b950: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 000476d8 <_Chain_Prepend_with_empty_check>: ) { ISR_Level level; bool was_empty; _ISR_Disable( level ); 476d8: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED bool _Chain_Prepend_with_empty_check( Chain_Control *chain, Chain_Node *node ) { 476de: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 476e2: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED 476e6: 2f0b movel %a3,%sp@- <== NOT EXECUTED 476e8: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED 476ec: 2f0a movel %a2,%sp@- <== NOT EXECUTED ISR_Level level; bool was_empty; _ISR_Disable( level ); 476ee: 40c1 movew %sr,%d1 <== NOT EXECUTED 476f0: 8081 orl %d1,%d0 <== NOT EXECUTED 476f2: 46c0 movew %d0,%sr <== NOT EXECUTED was_empty = _Chain_Prepend_with_empty_check_unprotected( chain, node ); _ISR_Enable( level ); return was_empty; } 476f4: 2453 moveal %a3@,%a2 <== NOT EXECUTED { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; after_node->next = the_node; 476f6: 224b moveal %a3,%a1 <== NOT EXECUTED Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; 476f8: 214b 0004 movel %a3,%a0@(4) <== NOT EXECUTED before_node = after_node->next; after_node->next = the_node; 476fc: 22c8 movel %a0,%a1@+ <== NOT EXECUTED the_node->next = before_node; before_node->previous = the_node; 476fe: 2548 0004 movel %a0,%a2@(4) <== NOT EXECUTED Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; after_node->next = the_node; the_node->next = before_node; 47702: 208a movel %a2,%a0@ <== NOT EXECUTED ISR_Level level; bool was_empty; _ISR_Disable( level ); was_empty = _Chain_Prepend_with_empty_check_unprotected( chain, node ); _ISR_Enable( level ); 47704: 46c1 movew %d1,%sr <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( const Chain_Control *the_chain ) { return _Chain_Immutable_first( the_chain ) 47706: b3ca cmpal %a2,%a1 <== NOT EXECUTED 47708: 57c0 seq %d0 <== NOT EXECUTED return was_empty; } 4770a: 245f moveal %sp@+,%a2 <== NOT EXECUTED 4770c: 4480 negl %d0 <== NOT EXECUTED 4770e: 265f moveal %sp@+,%a3 <== NOT EXECUTED 47710: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00045e04 <_Event_Seize>: executing = _Thread_Executing; executing->Wait.return_code = RTEMS_SUCCESSFUL; api = executing->API_Extensions[ THREAD_API_RTEMS ]; _ISR_Disable( level ); 45e04: 203c 0000 0700 movel #1792,%d0 rtems_event_set event_in, rtems_option option_set, rtems_interval ticks, rtems_event_set *event_out ) { 45e0a: 4e56 ffec linkw %fp,#-20 45e0e: 222e 0008 movel %fp@(8),%d1 45e12: 48d7 043c moveml %d2-%d5/%a2,%sp@ rtems_event_set pending_events; ISR_Level level; RTEMS_API_Control *api; Thread_blocking_operation_States sync_state; executing = _Thread_Executing; 45e16: 2479 0005 e684 moveal 5e684 <_Per_CPU_Information+0xc>,%a2 rtems_event_set event_in, rtems_option option_set, rtems_interval ticks, rtems_event_set *event_out ) { 45e1c: 242e 000c movel %fp@(12),%d2 45e20: 2a2e 0010 movel %fp@(16),%d5 45e24: 226e 0014 moveal %fp@(20),%a1 ISR_Level level; RTEMS_API_Control *api; Thread_blocking_operation_States sync_state; executing = _Thread_Executing; executing->Wait.return_code = RTEMS_SUCCESSFUL; 45e28: 42aa 0034 clrl %a2@(52) api = executing->API_Extensions[ THREAD_API_RTEMS ]; 45e2c: 206a 00fc moveal %a2@(252),%a0 _ISR_Disable( level ); 45e30: 40c4 movew %sr,%d4 45e32: 8084 orl %d4,%d0 45e34: 46c0 movew %d0,%sr pending_events = api->pending_events; 45e36: 2610 movel %a0@,%d3 RTEMS_INLINE_ROUTINE rtems_event_set _Event_sets_Get( rtems_event_set the_event_set, rtems_event_set the_event_condition ) { return ( the_event_set & the_event_condition ); 45e38: 2001 movel %d1,%d0 45e3a: c083 andl %d3,%d0 seized_events = _Event_sets_Get( pending_events, event_in ); if ( !_Event_sets_Is_empty( seized_events ) && 45e3c: 670c beqs 45e4a <_Event_Seize+0x46> 45e3e: b081 cmpl %d1,%d0 45e40: 6700 0084 beqw 45ec6 <_Event_Seize+0xc2> (seized_events == event_in || _Options_Is_any( option_set )) ) { 45e44: 0802 0001 btst #1,%d2 <== NOT EXECUTED 45e48: 667c bnes 45ec6 <_Event_Seize+0xc2> <== NOT EXECUTED _ISR_Enable( level ); *event_out = seized_events; return; } if ( _Options_Is_no_wait( option_set ) ) { 45e4a: 0802 0000 btst #0,%d2 45e4e: 6662 bnes 45eb2 <_Event_Seize+0xae> <== NEVER TAKEN * set properly when we are marked as in the event critical section. * * NOTE: Since interrupts are disabled, this isn't that much of an * issue but better safe than sorry. */ executing->Wait.option = (uint32_t) option_set; 45e50: 2542 0030 movel %d2,%a2@(48) executing->Wait.count = (uint32_t) event_in; executing->Wait.return_argument = event_out; _Event_Sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; 45e54: 7401 moveq #1,%d2 * * NOTE: Since interrupts are disabled, this isn't that much of an * issue but better safe than sorry. */ executing->Wait.option = (uint32_t) option_set; executing->Wait.count = (uint32_t) event_in; 45e56: 2541 0024 movel %d1,%a2@(36) executing->Wait.return_argument = event_out; 45e5a: 2549 0028 movel %a1,%a2@(40) _Event_Sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; 45e5e: 23c2 0005 e6b8 movel %d2,5e6b8 <_Event_Sync_state> _ISR_Enable( level ); 45e64: 46c4 movew %d4,%sr if ( ticks ) { 45e66: 4a85 tstl %d5 45e68: 6672 bnes 45edc <_Event_Seize+0xd8> NULL ); _Watchdog_Insert_ticks( &executing->Timer, ticks ); } _Thread_Set_state( executing, STATES_WAITING_FOR_EVENT ); 45e6a: 4878 0100 pea 100 45e6e: 2f0a movel %a2,%sp@- 45e70: 4eb9 0004 91a4 jsr 491a4 <_Thread_Set_state> _ISR_Disable( level ); 45e76: 203c 0000 0700 movel #1792,%d0 45e7c: 40c1 movew %sr,%d1 45e7e: 8081 orl %d1,%d0 45e80: 46c0 movew %d0,%sr sync_state = _Event_Sync_state; _Event_Sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; if ( sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) { 45e82: 7401 moveq #1,%d2 45e84: 508f addql #8,%sp _Thread_Set_state( executing, STATES_WAITING_FOR_EVENT ); _ISR_Disable( level ); sync_state = _Event_Sync_state; 45e86: 2039 0005 e6b8 movel 5e6b8 <_Event_Sync_state>,%d0 _Event_Sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; 45e8c: 42b9 0005 e6b8 clrl 5e6b8 <_Event_Sync_state> if ( sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) { 45e92: b480 cmpl %d0,%d2 45e94: 6700 00a4 beqw 45f3a <_Event_Seize+0x136> * An interrupt completed the thread's blocking request. * The blocking thread was satisfied by an ISR or timed out. * * WARNING! Returning with interrupts disabled! */ _Thread_blocking_operation_Cancel( sync_state, executing, level ); 45e98: 2d4a 000c movel %a2,%fp@(12) <== NOT EXECUTED 45e9c: 2d41 0010 movel %d1,%fp@(16) <== NOT EXECUTED } 45ea0: 4cee 043c ffec moveml %fp@(-20),%d2-%d5/%a2 <== NOT EXECUTED * An interrupt completed the thread's blocking request. * The blocking thread was satisfied by an ISR or timed out. * * WARNING! Returning with interrupts disabled! */ _Thread_blocking_operation_Cancel( sync_state, executing, level ); 45ea6: 2d40 0008 movel %d0,%fp@(8) <== NOT EXECUTED } 45eaa: 4e5e unlk %fp <== NOT EXECUTED * An interrupt completed the thread's blocking request. * The blocking thread was satisfied by an ISR or timed out. * * WARNING! Returning with interrupts disabled! */ _Thread_blocking_operation_Cancel( sync_state, executing, level ); 45eac: 4ef9 0004 8364 jmp 48364 <_Thread_blocking_operation_Cancel><== NOT EXECUTED *event_out = seized_events; return; } if ( _Options_Is_no_wait( option_set ) ) { _ISR_Enable( level ); 45eb2: 46c4 movew %d4,%sr <== NOT EXECUTED executing->Wait.return_code = RTEMS_UNSATISFIED; 45eb4: 720d moveq #13,%d1 <== NOT EXECUTED 45eb6: 2541 0034 movel %d1,%a2@(52) <== NOT EXECUTED * The blocking thread was satisfied by an ISR or timed out. * * WARNING! Returning with interrupts disabled! */ _Thread_blocking_operation_Cancel( sync_state, executing, level ); } 45eba: 4cee 043c ffec moveml %fp@(-20),%d2-%d5/%a2 <== NOT EXECUTED } if ( _Options_Is_no_wait( option_set ) ) { _ISR_Enable( level ); executing->Wait.return_code = RTEMS_UNSATISFIED; *event_out = seized_events; 45ec0: 2280 movel %d0,%a1@ <== NOT EXECUTED * The blocking thread was satisfied by an ISR or timed out. * * WARNING! Returning with interrupts disabled! */ _Thread_blocking_operation_Cancel( sync_state, executing, level ); } 45ec2: 4e5e unlk %fp <== NOT EXECUTED 45ec4: 4e75 rts <== NOT EXECUTED RTEMS_INLINE_ROUTINE rtems_event_set _Event_sets_Clear( rtems_event_set the_event_set, rtems_event_set the_mask ) { return ( the_event_set & ~(the_mask) ); 45ec6: 2200 movel %d0,%d1 45ec8: 4681 notl %d1 45eca: c283 andl %d3,%d1 45ecc: 2081 movel %d1,%a0@ if ( !_Event_sets_Is_empty( seized_events ) && (seized_events == event_in || _Options_Is_any( option_set )) ) { api->pending_events = _Event_sets_Clear( pending_events, seized_events ); _ISR_Enable( level ); 45ece: 46c4 movew %d4,%sr *event_out = seized_events; 45ed0: 2280 movel %d0,%a1@ * The blocking thread was satisfied by an ISR or timed out. * * WARNING! Returning with interrupts disabled! */ _Thread_blocking_operation_Cancel( sync_state, executing, level ); } 45ed2: 4cee 043c ffec moveml %fp@(-20),%d2-%d5/%a2 45ed8: 4e5e unlk %fp 45eda: 4e75 rts _Event_Sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; _ISR_Enable( level ); if ( ticks ) { _Watchdog_Initialize( 45edc: 202a 0008 movel %a2@(8),%d0 Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 45ee0: 223c 0004 60cc movel #286924,%d1 the_watchdog->id = id; 45ee6: 2540 0068 movel %d0,%a2@(104) Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 45eea: 2541 0064 movel %d1,%a2@(100) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 45eee: 42aa 0050 clrl %a2@(80) the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data; 45ef2: 42aa 006c clrl %a2@(108) Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 45ef6: 2545 0054 movel %d5,%a2@(84) _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 45efa: 486a 0048 pea %a2@(72) 45efe: 4879 0005 e5a8 pea 5e5a8 <_Watchdog_Ticks_chain> 45f04: 4eb9 0004 97ac jsr 497ac <_Watchdog_Insert> 45f0a: 508f addql #8,%sp NULL ); _Watchdog_Insert_ticks( &executing->Timer, ticks ); } _Thread_Set_state( executing, STATES_WAITING_FOR_EVENT ); 45f0c: 4878 0100 pea 100 45f10: 2f0a movel %a2,%sp@- 45f12: 4eb9 0004 91a4 jsr 491a4 <_Thread_Set_state> _ISR_Disable( level ); 45f18: 203c 0000 0700 movel #1792,%d0 45f1e: 40c1 movew %sr,%d1 45f20: 8081 orl %d1,%d0 45f22: 46c0 movew %d0,%sr sync_state = _Event_Sync_state; _Event_Sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; if ( sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) { 45f24: 7401 moveq #1,%d2 45f26: 508f addql #8,%sp _Thread_Set_state( executing, STATES_WAITING_FOR_EVENT ); _ISR_Disable( level ); sync_state = _Event_Sync_state; 45f28: 2039 0005 e6b8 movel 5e6b8 <_Event_Sync_state>,%d0 _Event_Sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; 45f2e: 42b9 0005 e6b8 clrl 5e6b8 <_Event_Sync_state> if ( sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) { 45f34: b480 cmpl %d0,%d2 45f36: 6600 ff60 bnew 45e98 <_Event_Seize+0x94> _ISR_Enable( level ); 45f3a: 46c1 movew %d1,%sr * The blocking thread was satisfied by an ISR or timed out. * * WARNING! Returning with interrupts disabled! */ _Thread_blocking_operation_Cancel( sync_state, executing, level ); } 45f3c: 4cee 043c ffec moveml %fp@(-20),%d2-%d5/%a2 45f42: 4e5e unlk %fp ... =============================================================================== 00045fa4 <_Event_Surrender>: api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; option_set = (rtems_option) the_thread->Wait.option; _ISR_Disable( level ); 45fa4: 203c 0000 0700 movel #1792,%d0 */ void _Event_Surrender( Thread_Control *the_thread ) { 45faa: 4e56 ffec linkw %fp,#-20 45fae: 48d7 043c moveml %d2-%d5/%a2,%sp@ 45fb2: 246e 0008 moveal %fp@(8),%a2 rtems_event_set event_condition; rtems_event_set seized_events; rtems_option option_set; RTEMS_API_Control *api; api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; 45fb6: 206a 00fc moveal %a2@(252),%a0 option_set = (rtems_option) the_thread->Wait.option; 45fba: 282a 0030 movel %a2@(48),%d4 _ISR_Disable( level ); 45fbe: 40c3 movew %sr,%d3 45fc0: 8083 orl %d3,%d0 45fc2: 46c0 movew %d0,%sr pending_events = api->pending_events; event_condition = (rtems_event_set) the_thread->Wait.count; 45fc4: 222a 0024 movel %a2@(36),%d1 RTEMS_INLINE_ROUTINE rtems_event_set _Event_sets_Get( rtems_event_set the_event_set, rtems_event_set the_event_condition ) { return ( the_event_set & the_event_condition ); 45fc8: 2001 movel %d1,%d0 api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; option_set = (rtems_option) the_thread->Wait.option; _ISR_Disable( level ); pending_events = api->pending_events; 45fca: 2410 movel %a0@,%d2 45fcc: c082 andl %d2,%d0 seized_events = _Event_sets_Get( pending_events, event_condition ); /* * No events were seized in this operation */ if ( _Event_sets_Is_empty( seized_events ) ) { 45fce: 6776 beqs 46046 <_Event_Surrender+0xa2> /* * If we are in an ISR and sending to the current thread, then * we have a critical section issue to deal with. */ if ( _ISR_Is_in_progress() && 45fd0: 4ab9 0005 e680 tstl 5e680 <_Per_CPU_Information+0x8> 45fd6: 670a beqs 45fe2 <_Event_Surrender+0x3e> <== ALWAYS TAKEN 45fd8: b5f9 0005 e684 cmpal 5e684 <_Per_CPU_Information+0xc>,%a2 <== NOT EXECUTED 45fde: 6700 00a0 beqw 46080 <_Event_Surrender+0xdc> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_event ( States_Control the_states ) { return (the_states & STATES_WAITING_FOR_EVENT); 45fe2: 2a2a 0010 movel %a2@(16),%d5 45fe6: 0285 0000 0100 andil #256,%d5 } /* * Otherwise, this is a normal send to another thread */ if ( _States_Is_waiting_for_event( the_thread->current_state ) ) { 45fec: 674c beqs 4603a <_Event_Surrender+0x96> <== NEVER TAKEN if ( seized_events == event_condition || _Options_Is_any( option_set ) ) { 45fee: b081 cmpl %d1,%d0 45ff0: 6706 beqs 45ff8 <_Event_Surrender+0x54> <== ALWAYS TAKEN 45ff2: 0804 0001 btst #1,%d4 <== NOT EXECUTED 45ff6: 6742 beqs 4603a <_Event_Surrender+0x96> <== NOT EXECUTED RTEMS_INLINE_ROUTINE rtems_event_set _Event_sets_Clear( rtems_event_set the_event_set, rtems_event_set the_mask ) { return ( the_event_set & ~(the_mask) ); 45ff8: 2200 movel %d0,%d1 45ffa: 4681 notl %d1 45ffc: c282 andl %d2,%d1 45ffe: 2081 movel %d1,%a0@ api->pending_events = _Event_sets_Clear( pending_events, seized_events ); the_thread->Wait.count = 0; *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; 46000: 206a 0028 moveal %a2@(40),%a0 * Otherwise, this is a normal send to another thread */ if ( _States_Is_waiting_for_event( the_thread->current_state ) ) { if ( seized_events == event_condition || _Options_Is_any( option_set ) ) { api->pending_events = _Event_sets_Clear( pending_events, seized_events ); the_thread->Wait.count = 0; 46004: 42aa 0024 clrl %a2@(36) *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; 46008: 2080 movel %d0,%a0@ _ISR_Flash( level ); 4600a: 203c 0000 0700 movel #1792,%d0 46010: 46c3 movew %d3,%sr 46012: 8083 orl %d3,%d0 46014: 46c0 movew %d0,%sr if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { 46016: 7a02 moveq #2,%d5 46018: baaa 0050 cmpl %a2@(80),%d5 4601c: 6734 beqs 46052 <_Event_Surrender+0xae> _ISR_Enable( level ); 4601e: 46c3 movew %d3,%sr RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 46020: 2f3c 1003 fff8 movel #268697592,%sp@- 46026: 2f0a movel %a2,%sp@- 46028: 4eb9 0004 850c jsr 4850c <_Thread_Clear_state> 4602e: 508f addql #8,%sp } return; } } _ISR_Enable( level ); } 46030: 4cee 043c ffec moveml %fp@(-20),%d2-%d5/%a2 46036: 4e5e unlk %fp 46038: 4e75 rts _Thread_Unblock( the_thread ); } return; } } _ISR_Enable( level ); 4603a: 46c3 movew %d3,%sr <== NOT EXECUTED } 4603c: 4cee 043c ffec moveml %fp@(-20),%d2-%d5/%a2 <== NOT EXECUTED 46042: 4e5e unlk %fp <== NOT EXECUTED 46044: 4e75 rts <== NOT EXECUTED /* * No events were seized in this operation */ if ( _Event_sets_Is_empty( seized_events ) ) { _ISR_Enable( level ); 46046: 46c3 movew %d3,%sr } return; } } _ISR_Enable( level ); } 46048: 4cee 043c ffec moveml %fp@(-20),%d2-%d5/%a2 4604e: 4e5e unlk %fp 46050: 4e75 rts RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_REMOVE_IT; 46052: 7003 moveq #3,%d0 46054: 2540 0050 movel %d0,%a2@(80) if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { _ISR_Enable( level ); _Thread_Unblock( the_thread ); } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); 46058: 46c3 movew %d3,%sr (void) _Watchdog_Remove( &the_thread->Timer ); 4605a: 486a 0048 pea %a2@(72) 4605e: 4eb9 0004 9900 jsr 49900 <_Watchdog_Remove> 46064: 2f3c 1003 fff8 movel #268697592,%sp@- 4606a: 2f0a movel %a2,%sp@- 4606c: 4eb9 0004 850c jsr 4850c <_Thread_Clear_state> 46072: 4fef 000c lea %sp@(12),%sp } return; } } _ISR_Enable( level ); } 46076: 4cee 043c ffec moveml %fp@(-20),%d2-%d5/%a2 4607c: 4e5e unlk %fp 4607e: 4e75 rts * If we are in an ISR and sending to the current thread, then * we have a critical section issue to deal with. */ if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) && ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) || 46080: 2279 0005 e6b8 moveal 5e6b8 <_Event_Sync_state>,%a1 <== NOT EXECUTED /* * If we are in an ISR and sending to the current thread, then * we have a critical section issue to deal with. */ if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) && 46086: 7a02 moveq #2,%d5 <== NOT EXECUTED 46088: ba89 cmpl %a1,%d5 <== NOT EXECUTED 4608a: 6710 beqs 4609c <_Event_Surrender+0xf8> <== NOT EXECUTED ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) || (_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) { 4608c: 2279 0005 e6b8 moveal 5e6b8 <_Event_Sync_state>,%a1 <== NOT EXECUTED * If we are in an ISR and sending to the current thread, then * we have a critical section issue to deal with. */ if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) && ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) || 46092: 1a3c 0001 moveb #1,%d5 <== NOT EXECUTED 46096: ba89 cmpl %a1,%d5 <== NOT EXECUTED 46098: 6600 ff48 bnew 45fe2 <_Event_Surrender+0x3e> <== NOT EXECUTED (_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) { if ( seized_events == event_condition || _Options_Is_any(option_set) ) { 4609c: b081 cmpl %d1,%d0 <== NOT EXECUTED 4609e: 6706 beqs 460a6 <_Event_Surrender+0x102> <== NOT EXECUTED 460a0: 0804 0001 btst #1,%d4 <== NOT EXECUTED 460a4: 671a beqs 460c0 <_Event_Surrender+0x11c> <== NOT EXECUTED 460a6: 2200 movel %d0,%d1 <== NOT EXECUTED 460a8: 4681 notl %d1 <== NOT EXECUTED 460aa: c282 andl %d2,%d1 <== NOT EXECUTED 460ac: 2081 movel %d1,%a0@ <== NOT EXECUTED api->pending_events = _Event_sets_Clear( pending_events,seized_events ); the_thread->Wait.count = 0; *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; 460ae: 206a 0028 moveal %a2@(40),%a0 <== NOT EXECUTED _Thread_Is_executing( the_thread ) && ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) || (_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) { if ( seized_events == event_condition || _Options_Is_any(option_set) ) { api->pending_events = _Event_sets_Clear( pending_events,seized_events ); the_thread->Wait.count = 0; 460b2: 42aa 0024 clrl %a2@(36) <== NOT EXECUTED *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; 460b6: 2080 movel %d0,%a0@ <== NOT EXECUTED _Event_Sync_state = THREAD_BLOCKING_OPERATION_SATISFIED; 460b8: 7003 moveq #3,%d0 <== NOT EXECUTED 460ba: 23c0 0005 e6b8 movel %d0,5e6b8 <_Event_Sync_state> <== NOT EXECUTED } _ISR_Enable( level ); 460c0: 46c3 movew %d3,%sr <== NOT EXECUTED } return; } } _ISR_Enable( level ); } 460c2: 4cee 043c ffec moveml %fp@(-20),%d2-%d5/%a2 <== NOT EXECUTED 460c8: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 000460cc <_Event_Timeout>: void _Event_Timeout( Objects_Id id, void *ignored ) { 460cc: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 460d0: 2f03 movel %d3,%sp@- <== NOT EXECUTED 460d2: 2f02 movel %d2,%sp@- <== NOT EXECUTED Thread_Control *the_thread; Objects_Locations location; ISR_Level level; the_thread = _Thread_Get( id, &location ); 460d4: 486e fffc pea %fp@(-4) <== NOT EXECUTED 460d8: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 460dc: 4eb9 0004 88e8 jsr 488e8 <_Thread_Get> <== NOT EXECUTED switch ( location ) { 460e2: 508f addql #8,%sp <== NOT EXECUTED 460e4: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 460e8: 6642 bnes 4612c <_Event_Timeout+0x60> <== NOT EXECUTED * * If it is not satisfied, then it is "nothing happened" and * this is the "timeout" transition. After a request is satisfied, * a timeout is not allowed to occur. */ _ISR_Disable( level ); 460ea: 223c 0000 0700 movel #1792,%d1 <== NOT EXECUTED 460f0: 40c2 movew %sr,%d2 <== NOT EXECUTED 460f2: 8282 orl %d2,%d1 <== NOT EXECUTED 460f4: 46c1 movew %d1,%sr <== NOT EXECUTED _ISR_Enable( level ); return; } #endif the_thread->Wait.count = 0; 460f6: 2040 moveal %d0,%a0 <== NOT EXECUTED 460f8: 42a8 0024 clrl %a0@(36) <== NOT EXECUTED if ( _Thread_Is_executing( the_thread ) ) { 460fc: b0b9 0005 e684 cmpl 5e684 <_Per_CPU_Information+0xc>,%d0 <== NOT EXECUTED 46102: 6734 beqs 46138 <_Event_Timeout+0x6c> <== NOT EXECUTED if ( _Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) _Event_Sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT; } the_thread->Wait.return_code = RTEMS_TIMEOUT; 46104: 7606 moveq #6,%d3 <== NOT EXECUTED 46106: 2040 moveal %d0,%a0 <== NOT EXECUTED 46108: 2143 0034 movel %d3,%a0@(52) <== NOT EXECUTED _ISR_Enable( level ); 4610c: 46c2 movew %d2,%sr <== NOT EXECUTED 4610e: 2f3c 1003 fff8 movel #268697592,%sp@- <== NOT EXECUTED 46114: 2f00 movel %d0,%sp@- <== NOT EXECUTED 46116: 4eb9 0004 850c jsr 4850c <_Thread_Clear_state> <== NOT EXECUTED _Thread_Unblock( the_thread ); _Thread_Unnest_dispatch(); break; 4611c: 508f addql #8,%sp <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; 4611e: 2039 0005 e4c8 movel 5e4c8 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED 46124: 5380 subql #1,%d0 <== NOT EXECUTED 46126: 23c0 0005 e4c8 movel %d0,5e4c8 <_Thread_Dispatch_disable_level><== NOT EXECUTED case OBJECTS_REMOTE: /* impossible */ #endif case OBJECTS_ERROR: break; } } 4612c: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 46130: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED 46134: 4e5e unlk %fp <== NOT EXECUTED 46136: 4e75 rts <== NOT EXECUTED } #endif the_thread->Wait.count = 0; if ( _Thread_Is_executing( the_thread ) ) { if ( _Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) 46138: 2239 0005 e6b8 movel 5e6b8 <_Event_Sync_state>,%d1 <== NOT EXECUTED 4613e: 7601 moveq #1,%d3 <== NOT EXECUTED 46140: b681 cmpl %d1,%d3 <== NOT EXECUTED 46142: 66c0 bnes 46104 <_Event_Timeout+0x38> <== NOT EXECUTED _Event_Sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT; } the_thread->Wait.return_code = RTEMS_TIMEOUT; 46144: 7606 moveq #6,%d3 <== NOT EXECUTED 46146: 2040 moveal %d0,%a0 <== NOT EXECUTED #endif the_thread->Wait.count = 0; if ( _Thread_Is_executing( the_thread ) ) { if ( _Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) _Event_Sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT; 46148: 7202 moveq #2,%d1 <== NOT EXECUTED } the_thread->Wait.return_code = RTEMS_TIMEOUT; 4614a: 2143 0034 movel %d3,%a0@(52) <== NOT EXECUTED #endif the_thread->Wait.count = 0; if ( _Thread_Is_executing( the_thread ) ) { if ( _Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) _Event_Sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT; 4614e: 23c1 0005 e6b8 movel %d1,5e6b8 <_Event_Sync_state> <== NOT EXECUTED } the_thread->Wait.return_code = RTEMS_TIMEOUT; _ISR_Enable( level ); 46154: 46c2 movew %d2,%sr <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 46156: 2f3c 1003 fff8 movel #268697592,%sp@- <== NOT EXECUTED 4615c: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4615e: 4eb9 0004 850c jsr 4850c <_Thread_Clear_state> <== NOT EXECUTED _Thread_Unblock( the_thread ); _Thread_Unnest_dispatch(); break; 46164: 508f addql #8,%sp <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; 46166: 2039 0005 e4c8 movel 5e4c8 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED 4616c: 5380 subql #1,%d0 <== NOT EXECUTED 4616e: 23c0 0005 e4c8 movel %d0,5e4c8 <_Thread_Dispatch_disable_level><== NOT EXECUTED 46174: 60b6 bras 4612c <_Event_Timeout+0x60> <== NOT EXECUTED ... =============================================================================== 0004bafc <_Heap_Allocate_aligned_with_boundary>: Heap_Control *heap, uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) { 4bafc: 4e56 ffcc linkw %fp,#-52 4bb00: 226e 000c moveal %fp@(12),%a1 4bb04: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ 4bb08: 246e 0008 moveal %fp@(8),%a2 Heap_Statistics *const stats = &heap->stats; uintptr_t const block_size_floor = alloc_size + HEAP_BLOCK_HEADER_SIZE 4bb0c: 2e09 movel %a1,%d7 4bb0e: 5887 addql #4,%d7 - HEAP_ALLOC_BONUS; uintptr_t const page_size = heap->page_size; 4bb10: 202a 0010 movel %a2@(16),%d0 Heap_Control *heap, uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) { 4bb14: 222e 0010 movel %fp@(16),%d1 4bb18: 282e 0014 movel %fp@(20),%d4 Heap_Statistics *const stats = &heap->stats; uintptr_t const block_size_floor = alloc_size + HEAP_BLOCK_HEADER_SIZE - HEAP_ALLOC_BONUS; uintptr_t const page_size = heap->page_size; 4bb1c: 2d40 fffc movel %d0,%fp@(-4) Heap_Block *block = NULL; uintptr_t alloc_begin = 0; uint32_t search_count = 0; bool search_again = false; if ( block_size_floor < alloc_size ) { 4bb20: be89 cmpl %a1,%d7 4bb22: 6500 014e bcsw 4bc72 <_Heap_Allocate_aligned_with_boundary+0x176> /* Integer overflow occured */ return NULL; } if ( boundary != 0 ) { 4bb26: 4a84 tstl %d4 4bb28: 6600 0144 bnew 4bc6e <_Heap_Allocate_aligned_with_boundary+0x172> if ( stats->max_search < search_count ) { stats->max_search = search_count; } return (void *) alloc_begin; } 4bb2c: 206a 0008 moveal %a2@(8),%a0 do { Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap ); block = _Heap_Free_list_first( heap ); while ( block != free_list_tail ) { 4bb30: b1ca cmpal %a2,%a0 4bb32: 6700 013e beqw 4bc72 <_Heap_Allocate_aligned_with_boundary+0x176> uintptr_t const block_begin = (uintptr_t) block; uintptr_t const block_size = _Heap_Block_size( block ); uintptr_t const block_end = block_begin + block_size; uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block ); uintptr_t const alloc_begin_ceiling = block_end - min_block_size 4bb36: 242e fffc movel %fp@(-4),%d2 + HEAP_BLOCK_HEADER_SIZE + page_size - 1; uintptr_t alloc_end = block_end + HEAP_ALLOC_BONUS; 4bb3a: 7c04 moveq #4,%d6 uintptr_t const block_begin = (uintptr_t) block; uintptr_t const block_size = _Heap_Block_size( block ); uintptr_t const block_end = block_begin + block_size; uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block ); uintptr_t const alloc_begin_ceiling = block_end - min_block_size 4bb3c: 5e82 addql #7,%d2 + HEAP_BLOCK_HEADER_SIZE + page_size - 1; uintptr_t alloc_end = block_end + HEAP_ALLOC_BONUS; 4bb3e: 9c89 subl %a1,%d6 do { Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap ); block = _Heap_Free_list_first( heap ); while ( block != free_list_tail ) { 4bb40: 7601 moveq #1,%d3 4bb42: 2647 moveal %d7,%a3 uintptr_t const block_begin = (uintptr_t) block; uintptr_t const block_size = _Heap_Block_size( block ); uintptr_t const block_end = block_begin + block_size; uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block ); uintptr_t const alloc_begin_ceiling = block_end - min_block_size 4bb44: 2d42 fff8 movel %d2,%fp@(-8) + HEAP_BLOCK_HEADER_SIZE + page_size - 1; uintptr_t alloc_end = block_end + HEAP_ALLOC_BONUS; 4bb48: 2d46 fff4 movel %d6,%fp@(-12) /* * The HEAP_PREV_BLOCK_USED flag is always set in the block size_and_flag * field. Thus the value is about one unit larger than the real block * size. The greater than operator takes this into account. */ if ( block->size_and_flag > block_size_floor ) { 4bb4c: 2028 0004 movel %a0@(4),%d0 4bb50: b08b cmpl %a3,%d0 4bb52: 630e blss 4bb62 <_Heap_Allocate_aligned_with_boundary+0x66> if ( alignment == 0 ) { 4bb54: 4a81 tstl %d1 4bb56: 661c bnes 4bb74 <_Heap_Allocate_aligned_with_boundary+0x78> RTEMS_INLINE_ROUTINE uintptr_t _Heap_Alloc_area_of_block( const Heap_Block *block ) { return (uintptr_t) block + HEAP_BLOCK_HEADER_SIZE; 4bb58: 2408 movel %a0,%d2 4bb5a: 5082 addql #8,%d2 } /* Statistics */ ++search_count; if ( alloc_begin != 0 ) { 4bb5c: 4a82 tstl %d2 4bb5e: 6600 00de bnew 4bc3e <_Heap_Allocate_aligned_with_boundary+0x142> break; } block = block->next; 4bb62: 2003 movel %d3,%d0 4bb64: 5280 addql #1,%d0 4bb66: 2068 0008 moveal %a0@(8),%a0 do { Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap ); block = _Heap_Free_list_first( heap ); while ( block != free_list_tail ) { 4bb6a: b1ca cmpal %a2,%a0 4bb6c: 6700 0110 beqw 4bc7e <_Heap_Allocate_aligned_with_boundary+0x182> 4bb70: 2600 movel %d0,%d3 <== NOT EXECUTED 4bb72: 60d8 bras 4bb4c <_Heap_Allocate_aligned_with_boundary+0x50><== NOT EXECUTED - HEAP_BLOCK_HEADER_SIZE); } RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block ) { return block->size_and_flag & ~HEAP_PREV_BLOCK_USED; 4bb74: 7efe moveq #-2,%d7 RTEMS_INLINE_ROUTINE uintptr_t _Heap_Alloc_area_of_block( const Heap_Block *block ) { return (uintptr_t) block + HEAP_BLOCK_HEADER_SIZE; 4bb76: 4be8 0008 lea %a0@(8),%a5 - HEAP_BLOCK_HEADER_SIZE); } RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block ) { return block->size_and_flag & ~HEAP_PREV_BLOCK_USED; 4bb7a: c087 andl %d7,%d0 if ( stats->max_search < search_count ) { stats->max_search = search_count; } return (void *) alloc_begin; } 4bb7c: 286a 0014 moveal %a2@(20),%a4 uintptr_t const page_size = heap->page_size; uintptr_t const min_block_size = heap->min_block_size; uintptr_t const block_begin = (uintptr_t) block; uintptr_t const block_size = _Heap_Block_size( block ); uintptr_t const block_end = block_begin + block_size; 4bb80: d088 addl %a0,%d0 uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block ); uintptr_t const alloc_begin_ceiling = block_end - min_block_size + HEAP_BLOCK_HEADER_SIZE + page_size - 1; 4bb82: 2a2e fff8 movel %fp@(-8),%d5 4bb86: 9a8c subl %a4,%d5 uintptr_t alloc_end = block_end + HEAP_ALLOC_BONUS; uintptr_t alloc_begin = alloc_end - alloc_size; 4bb88: 242e fff4 movel %fp@(-12),%d2 4bb8c: d480 addl %d0,%d2 RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment); 4bb8e: 2c02 movel %d2,%d6 uintptr_t const block_begin = (uintptr_t) block; uintptr_t const block_size = _Heap_Block_size( block ); uintptr_t const block_end = block_begin + block_size; uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block ); uintptr_t const alloc_begin_ceiling = block_end - min_block_size 4bb90: d085 addl %d5,%d0 4bb92: 4c41 6005 remul %d1,%d5,%d6 4bb96: 9485 subl %d5,%d2 uintptr_t alloc_begin = alloc_end - alloc_size; alloc_begin = _Heap_Align_down( alloc_begin, alignment ); /* Ensure that the we have a valid new block at the end */ if ( alloc_begin > alloc_begin_ceiling ) { 4bb98: b480 cmpl %d0,%d2 4bb9a: 630a blss 4bba6 <_Heap_Allocate_aligned_with_boundary+0xaa><== ALWAYS TAKEN 4bb9c: 2a00 movel %d0,%d5 <== NOT EXECUTED 4bb9e: 4c41 5002 remul %d1,%d2,%d5 <== NOT EXECUTED 4bba2: 9082 subl %d2,%d0 <== NOT EXECUTED 4bba4: 2400 movel %d0,%d2 <== NOT EXECUTED } alloc_end = alloc_begin + alloc_size; /* Ensure boundary constaint */ if ( boundary != 0 ) { 4bba6: 4a84 tstl %d4 4bba8: 676a beqs 4bc14 <_Heap_Allocate_aligned_with_boundary+0x118><== ALWAYS TAKEN /* Ensure that the we have a valid new block at the end */ if ( alloc_begin > alloc_begin_ceiling ) { alloc_begin = _Heap_Align_down( alloc_begin_ceiling, alignment ); } alloc_end = alloc_begin + alloc_size; 4bbaa: 2002 movel %d2,%d0 <== NOT EXECUTED 4bbac: d089 addl %a1,%d0 <== NOT EXECUTED 4bbae: 2c00 movel %d0,%d6 <== NOT EXECUTED 4bbb0: 4c44 6005 remul %d4,%d5,%d6 <== NOT EXECUTED 4bbb4: 2c00 movel %d0,%d6 <== NOT EXECUTED 4bbb6: 9c85 subl %d5,%d6 <== NOT EXECUTED 4bbb8: 2a06 movel %d6,%d5 <== NOT EXECUTED /* Ensure boundary constaint */ if ( boundary != 0 ) { uintptr_t const boundary_floor = alloc_begin_floor + alloc_size; uintptr_t boundary_line = _Heap_Align_down( alloc_end, boundary ); while ( alloc_begin < boundary_line && boundary_line < alloc_end ) { 4bbba: bc82 cmpl %d2,%d6 <== NOT EXECUTED 4bbbc: 6356 blss 4bc14 <_Heap_Allocate_aligned_with_boundary+0x118><== NOT EXECUTED 4bbbe: bc80 cmpl %d0,%d6 <== NOT EXECUTED 4bbc0: 6452 bccs 4bc14 <_Heap_Allocate_aligned_with_boundary+0x118><== NOT EXECUTED alloc_end = alloc_begin + alloc_size; /* Ensure boundary constaint */ if ( boundary != 0 ) { uintptr_t const boundary_floor = alloc_begin_floor + alloc_size; 4bbc2: 2c0d movel %a5,%d6 <== NOT EXECUTED 4bbc4: dc89 addl %a1,%d6 <== NOT EXECUTED uintptr_t boundary_line = _Heap_Align_down( alloc_end, boundary ); while ( alloc_begin < boundary_line && boundary_line < alloc_end ) { if ( boundary_line < boundary_floor ) { 4bbc6: ba86 cmpl %d6,%d5 <== NOT EXECUTED 4bbc8: 6598 bcss 4bb62 <_Heap_Allocate_aligned_with_boundary+0x66><== NOT EXECUTED return 0; } alloc_begin = boundary_line - alloc_size; 4bbca: 2405 movel %d5,%d2 <== NOT EXECUTED 4bbcc: 9489 subl %a1,%d2 <== NOT EXECUTED 4bbce: 2a02 movel %d2,%d5 <== NOT EXECUTED 4bbd0: 4c41 5000 remul %d1,%d0,%d5 <== NOT EXECUTED 4bbd4: 9480 subl %d0,%d2 <== NOT EXECUTED alloc_begin = _Heap_Align_down( alloc_begin, alignment ); alloc_end = alloc_begin + alloc_size; 4bbd6: 2002 movel %d2,%d0 <== NOT EXECUTED 4bbd8: d089 addl %a1,%d0 <== NOT EXECUTED 4bbda: 2e00 movel %d0,%d7 <== NOT EXECUTED 4bbdc: 4c44 7005 remul %d4,%d5,%d7 <== NOT EXECUTED 4bbe0: 2e00 movel %d0,%d7 <== NOT EXECUTED 4bbe2: 9e85 subl %d5,%d7 <== NOT EXECUTED 4bbe4: 2a07 movel %d7,%d5 <== NOT EXECUTED /* Ensure boundary constaint */ if ( boundary != 0 ) { uintptr_t const boundary_floor = alloc_begin_floor + alloc_size; uintptr_t boundary_line = _Heap_Align_down( alloc_end, boundary ); while ( alloc_begin < boundary_line && boundary_line < alloc_end ) { 4bbe6: be82 cmpl %d2,%d7 <== NOT EXECUTED 4bbe8: 632a blss 4bc14 <_Heap_Allocate_aligned_with_boundary+0x118><== NOT EXECUTED 4bbea: be80 cmpl %d0,%d7 <== NOT EXECUTED 4bbec: 6426 bccs 4bc14 <_Heap_Allocate_aligned_with_boundary+0x118><== NOT EXECUTED if ( boundary_line < boundary_floor ) { 4bbee: ba86 cmpl %d6,%d5 <== NOT EXECUTED 4bbf0: 6500 ff70 bcsw 4bb62 <_Heap_Allocate_aligned_with_boundary+0x66><== NOT EXECUTED return 0; } alloc_begin = boundary_line - alloc_size; 4bbf4: 2405 movel %d5,%d2 <== NOT EXECUTED 4bbf6: 9489 subl %a1,%d2 <== NOT EXECUTED 4bbf8: 2a02 movel %d2,%d5 <== NOT EXECUTED 4bbfa: 4c41 5000 remul %d1,%d0,%d5 <== NOT EXECUTED 4bbfe: 9480 subl %d0,%d2 <== NOT EXECUTED alloc_begin = _Heap_Align_down( alloc_begin, alignment ); alloc_end = alloc_begin + alloc_size; 4bc00: 2002 movel %d2,%d0 <== NOT EXECUTED 4bc02: d089 addl %a1,%d0 <== NOT EXECUTED 4bc04: 2e00 movel %d0,%d7 <== NOT EXECUTED 4bc06: 4c44 7005 remul %d4,%d5,%d7 <== NOT EXECUTED 4bc0a: 2e00 movel %d0,%d7 <== NOT EXECUTED 4bc0c: 9e85 subl %d5,%d7 <== NOT EXECUTED 4bc0e: 2a07 movel %d7,%d5 <== NOT EXECUTED /* Ensure boundary constaint */ if ( boundary != 0 ) { uintptr_t const boundary_floor = alloc_begin_floor + alloc_size; uintptr_t boundary_line = _Heap_Align_down( alloc_end, boundary ); while ( alloc_begin < boundary_line && boundary_line < alloc_end ) { 4bc10: be82 cmpl %d2,%d7 <== NOT EXECUTED 4bc12: 62d6 bhis 4bbea <_Heap_Allocate_aligned_with_boundary+0xee><== NOT EXECUTED boundary_line = _Heap_Align_down( alloc_end, boundary ); } } /* Ensure that the we have a valid new block at the beginning */ if ( alloc_begin >= alloc_begin_floor ) { 4bc14: b48d cmpl %a5,%d2 4bc16: 6500 ff4a bcsw 4bb62 <_Heap_Allocate_aligned_with_boundary+0x66> 4bc1a: 2e2e fffc movel %fp@(-4),%d7 4bc1e: 2c02 movel %d2,%d6 4bc20: 70f8 moveq #-8,%d0 4bc22: 9088 subl %a0,%d0 uintptr_t alloc_begin, uintptr_t page_size ) { return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size ) - HEAP_BLOCK_HEADER_SIZE); 4bc24: d082 addl %d2,%d0 RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment); 4bc26: 4c47 6005 remul %d7,%d5,%d6 uintptr_t const alloc_block_begin = (uintptr_t) _Heap_Block_of_alloc_area( alloc_begin, page_size ); uintptr_t const free_size = alloc_block_begin - block_begin; 4bc2a: 9085 subl %d5,%d0 if ( free_size >= min_block_size || free_size == 0 ) { 4bc2c: b08c cmpl %a4,%d0 4bc2e: 6400 ff2c bccw 4bb5c <_Heap_Allocate_aligned_with_boundary+0x60> 4bc32: 4a80 tstl %d0 <== NOT EXECUTED 4bc34: 6600 ff2c bnew 4bb62 <_Heap_Allocate_aligned_with_boundary+0x66><== NOT EXECUTED } /* Statistics */ ++search_count; if ( alloc_begin != 0 ) { 4bc38: 4a82 tstl %d2 <== NOT EXECUTED 4bc3a: 6700 ff26 beqw 4bb62 <_Heap_Allocate_aligned_with_boundary+0x66><== NOT EXECUTED if ( alloc_begin != 0 ) { /* Statistics */ ++stats->allocs; stats->searches += search_count; block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size ); 4bc3e: 2f09 movel %a1,%sp@- search_again = _Heap_Protection_free_delayed_blocks( heap, alloc_begin ); } while ( search_again ); if ( alloc_begin != 0 ) { /* Statistics */ ++stats->allocs; 4bc40: 52aa 0048 addql #1,%a2@(72) stats->searches += search_count; 4bc44: d7aa 004c addl %d3,%a2@(76) block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size ); 4bc48: 2f02 movel %d2,%sp@- 4bc4a: 2f08 movel %a0,%sp@- 4bc4c: 2f0a movel %a2,%sp@- 4bc4e: 4eb9 0004 76a2 jsr 476a2 <_Heap_Block_allocate> 4bc54: 4fef 0010 lea %sp@(16),%sp 4bc58: 2002 movel %d2,%d0 boundary ); } /* Statistics */ if ( stats->max_search < search_count ) { 4bc5a: b6aa 0044 cmpl %a2@(68),%d3 4bc5e: 6304 blss 4bc64 <_Heap_Allocate_aligned_with_boundary+0x168> stats->max_search = search_count; 4bc60: 2543 0044 movel %d3,%a2@(68) } return (void *) alloc_begin; } 4bc64: 4cee 3cfc ffcc moveml %fp@(-52),%d2-%d7/%a2-%a5 4bc6a: 4e5e unlk %fp 4bc6c: 4e75 rts /* Integer overflow occured */ return NULL; } if ( boundary != 0 ) { if ( boundary < alloc_size ) { 4bc6e: b889 cmpl %a1,%d4 <== NOT EXECUTED 4bc70: 6410 bccs 4bc82 <_Heap_Allocate_aligned_with_boundary+0x186><== NOT EXECUTED do { Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap ); block = _Heap_Free_list_first( heap ); while ( block != free_list_tail ) { 4bc72: 4280 clrl %d0 <== NOT EXECUTED if ( stats->max_search < search_count ) { stats->max_search = search_count; } return (void *) alloc_begin; } 4bc74: 4cee 3cfc ffcc moveml %fp@(-52),%d2-%d7/%a2-%a5 <== NOT EXECUTED 4bc7a: 4e5e unlk %fp <== NOT EXECUTED 4bc7c: 4e75 rts <== NOT EXECUTED do { Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap ); block = _Heap_Free_list_first( heap ); while ( block != free_list_tail ) { 4bc7e: 4280 clrl %d0 4bc80: 60d8 bras 4bc5a <_Heap_Allocate_aligned_with_boundary+0x15e> if ( boundary != 0 ) { if ( boundary < alloc_size ) { return NULL; } if ( alignment == 0 ) { 4bc82: 4a81 tstl %d1 <== NOT EXECUTED 4bc84: 6600 fea6 bnew 4bb2c <_Heap_Allocate_aligned_with_boundary+0x30><== NOT EXECUTED alignment = page_size; 4bc88: 2200 movel %d0,%d1 <== NOT EXECUTED 4bc8a: 6000 fea0 braw 4bb2c <_Heap_Allocate_aligned_with_boundary+0x30><== NOT EXECUTED ... =============================================================================== 000476a2 <_Heap_Block_allocate>: - HEAP_BLOCK_HEADER_SIZE); } RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block ) { return block->size_and_flag & ~HEAP_PREV_BLOCK_USED; 476a2: 70fe moveq #-2,%d0 Heap_Control *heap, Heap_Block *block, uintptr_t alloc_begin, uintptr_t alloc_size ) { 476a4: 4e56 ffe0 linkw %fp,#-32 476a8: 206e 000c moveal %fp@(12),%a0 476ac: 48d7 3c3c moveml %d2-%d5/%a2-%a5,%sp@ } _Heap_Protection_block_initialize( heap, block ); return block; } 476b0: 2428 0004 movel %a0@(4),%d2 block->size_and_flag = size | flag; } RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used( const Heap_Block *block ) { return block->size_and_flag & HEAP_PREV_BLOCK_USED; 476b4: 7801 moveq #1,%d4 - HEAP_BLOCK_HEADER_SIZE); } RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block ) { return block->size_and_flag & ~HEAP_PREV_BLOCK_USED; 476b6: c082 andl %d2,%d0 Heap_Control *heap, Heap_Block *block, uintptr_t alloc_begin, uintptr_t alloc_size ) { 476b8: 222e 0010 movel %fp@(16),%d1 RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); 476bc: 49f0 0800 lea %a0@(00000000,%d0:l),%a4 RTEMS_INLINE_ROUTINE uintptr_t _Heap_Alloc_area_of_block( const Heap_Block *block ) { return (uintptr_t) block + HEAP_BLOCK_HEADER_SIZE; 476c0: 2641 moveal %d1,%a3 476c2: 518b subql #8,%a3 Heap_Statistics *const stats = &heap->stats; uintptr_t const alloc_area_begin = _Heap_Alloc_area_of_block( block ); uintptr_t const alloc_area_offset = alloc_begin - alloc_area_begin; 476c4: 2a0b movel %a3,%d5 476c6: 9a88 subl %a0,%d5 block->size_and_flag = size | flag; } RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used( const Heap_Block *block ) { return block->size_and_flag & HEAP_PREV_BLOCK_USED; 476c8: c8ac 0004 andl %a4@(4),%d4 Heap_Control *heap, Heap_Block *block, uintptr_t alloc_begin, uintptr_t alloc_size ) { 476cc: 246e 0008 moveal %fp@(8),%a2 476d0: 262e 0014 movel %fp@(20),%d3 Heap_Block *free_list_anchor = NULL; _HAssert( alloc_area_begin <= alloc_begin ); if ( _Heap_Is_free( block ) ) { 476d4: 4a84 tstl %d4 476d6: 6600 0090 bnew 47768 <_Heap_Block_allocate+0xc6> } _Heap_Protection_block_initialize( heap, block ); return block; } 476da: 2828 0008 movel %a0@(8),%d4 { Heap_Block *next = block->next; Heap_Block *prev = block->prev; prev->next = next; next->prev = prev; 476de: 2a44 moveal %d4,%a5 Heap_Block *free_list_anchor = NULL; _HAssert( alloc_area_begin <= alloc_begin ); if ( _Heap_Is_free( block ) ) { free_list_anchor = block->prev; 476e0: 2268 000c moveal %a0@(12),%a1 RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block ) { Heap_Block *next = block->next; Heap_Block *prev = block->prev; prev->next = next; 476e4: 2344 0008 movel %d4,%a1@(8) next->prev = prev; 476e8: 2b49 000c movel %a1,%a5@(12) _Heap_Free_list_remove( block ); /* Statistics */ --stats->free_blocks; ++stats->used_blocks; stats->free_size -= _Heap_Block_size( block ); 476ec: 91aa 0030 subl %d0,%a2@(48) free_list_anchor = block->prev; _Heap_Free_list_remove( block ); /* Statistics */ --stats->free_blocks; 476f0: 53aa 0038 subql #1,%a2@(56) ++stats->used_blocks; 476f4: 52aa 0040 addql #1,%a2@(64) stats->free_size -= _Heap_Block_size( block ); } else { free_list_anchor = _Heap_Free_list_head( heap ); } if ( alloc_area_offset < heap->page_size ) { 476f8: 202a 0010 movel %a2@(16),%d0 476fc: b085 cmpl %d5,%d0 476fe: 6272 bhis 47772 <_Heap_Block_allocate+0xd0> RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment); 47700: 4c40 1004 remul %d0,%d4,%d1 uintptr_t alloc_begin, uintptr_t page_size ) { return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size ) - HEAP_BLOCK_HEADER_SIZE); 47704: 97c4 subal %d4,%a3 _Heap_Block_of_alloc_area( alloc_begin, heap->page_size ); uintptr_t const new_block_begin = (uintptr_t) new_block; uintptr_t const new_block_size = block_end - new_block_begin; block_end = new_block_begin; block_size = block_end - block_begin; 47706: 200b movel %a3,%d0 47708: 9088 subl %a0,%d0 _HAssert( block_size >= heap->min_block_size ); _HAssert( new_block_size >= heap->min_block_size ); /* Statistics */ stats->free_size += block_size; 4770a: d1aa 0030 addl %d0,%a2@(48) uintptr_t block_end = block_begin + block_size; Heap_Block *const new_block = _Heap_Block_of_alloc_area( alloc_begin, heap->page_size ); uintptr_t const new_block_begin = (uintptr_t) new_block; uintptr_t const new_block_size = block_end - new_block_begin; 4770e: 99cb subal %a3,%a4 _HAssert( new_block_size >= heap->min_block_size ); /* Statistics */ stats->free_size += block_size; if ( _Heap_Is_prev_used( block ) ) { 47710: 0802 0000 btst #0,%d2 47714: 6774 beqs 4778a <_Heap_Block_allocate+0xe8> <== NEVER TAKEN RTEMS_INLINE_ROUTINE void _Heap_Free_list_insert_after( Heap_Block *block_before, Heap_Block *new_block ) { Heap_Block *next = block_before->next; 47716: 2a69 0008 moveal %a1@(8),%a5 block = prev_block; block_size += prev_block_size; } block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED; 4771a: 7401 moveq #1,%d2 _Heap_Free_list_insert_after( free_list_anchor, block ); free_list_anchor = block; /* Statistics */ ++stats->free_blocks; 4771c: 2208 movel %a0,%d1 new_block->next = next; 4771e: 214d 0008 movel %a5,%a0@(8) block = prev_block; block_size += prev_block_size; } block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED; 47722: 8480 orl %d0,%d2 new_block->prev = block_before; 47724: 2149 000c movel %a1,%a0@(12) block_before->next = new_block; 47728: 2348 0008 movel %a0,%a1@(8) next->prev = new_block; 4772c: 2b48 000c movel %a0,%a5@(12) _Heap_Free_list_insert_after( free_list_anchor, block ); free_list_anchor = block; /* Statistics */ ++stats->free_blocks; 47730: 52aa 0038 addql #1,%a2@(56) block = prev_block; block_size += prev_block_size; } block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED; 47734: 2142 0004 movel %d2,%a0@(4) new_block->prev_size = block_size; 47738: 2680 movel %d0,%a3@ new_block->size_and_flag = new_block_size; 4773a: 274c 0004 movel %a4,%a3@(4) _Heap_Block_split( heap, new_block, free_list_anchor, alloc_size ); 4773e: 2f03 movel %d3,%sp@- 47740: 2f01 movel %d1,%sp@- 47742: 2f0b movel %a3,%sp@- 47744: 2f0a movel %a2,%sp@- 47746: 4eba fcb0 jsr %pc@(473f8 <_Heap_Block_split>) 4774a: 4fef 0010 lea %sp@(16),%sp alloc_size ); } /* Statistics */ if ( stats->min_free_size > stats->free_size ) { 4774e: 202a 0030 movel %a2@(48),%d0 47752: b0aa 0034 cmpl %a2@(52),%d0 47756: 6404 bccs 4775c <_Heap_Block_allocate+0xba> <== NEVER TAKEN stats->min_free_size = stats->free_size; 47758: 2540 0034 movel %d0,%a2@(52) } _Heap_Protection_block_initialize( heap, block ); return block; } 4775c: 200b movel %a3,%d0 4775e: 4cee 3c3c ffe0 moveml %fp@(-32),%d2-%d5/%a2-%a5 47764: 4e5e unlk %fp 47766: 4e75 rts stats->free_size -= _Heap_Block_size( block ); } else { free_list_anchor = _Heap_Free_list_head( heap ); } if ( alloc_area_offset < heap->page_size ) { 47768: 202a 0010 movel %a2@(16),%d0 <== NOT EXECUTED /* Statistics */ --stats->free_blocks; ++stats->used_blocks; stats->free_size -= _Heap_Block_size( block ); } else { free_list_anchor = _Heap_Free_list_head( heap ); 4776c: 224a moveal %a2,%a1 <== NOT EXECUTED } if ( alloc_area_offset < heap->page_size ) { 4776e: b085 cmpl %d5,%d0 <== NOT EXECUTED 47770: 638e blss 47700 <_Heap_Block_allocate+0x5e> <== NOT EXECUTED Heap_Block *block, Heap_Block *free_list_anchor, uintptr_t alloc_size ) { _Heap_Block_split( heap, block, free_list_anchor, alloc_size ); 47772: 2645 moveal %d5,%a3 47774: 4873 3800 pea %a3@(00000000,%d3:l) 47778: 2648 moveal %a0,%a3 4777a: 2f09 movel %a1,%sp@- 4777c: 2f08 movel %a0,%sp@- 4777e: 2f0a movel %a2,%sp@- 47780: 4eba fc76 jsr %pc@(473f8 <_Heap_Block_split>) 47784: 4fef 0010 lea %sp@(16),%sp 47788: 60c4 bras 4774e <_Heap_Block_allocate+0xac> RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Prev_block( const Heap_Block *block ) { return (Heap_Block *) ((uintptr_t) block - block->prev_size); 4778a: 91d0 subal %a0@,%a0 <== NOT EXECUTED - HEAP_BLOCK_HEADER_SIZE); } RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block ) { return block->size_and_flag & ~HEAP_PREV_BLOCK_USED; 4778c: 74fe moveq #-2,%d2 <== NOT EXECUTED } else { Heap_Block *const prev_block = _Heap_Prev_block( block ); uintptr_t const prev_block_size = _Heap_Block_size( prev_block ); block = prev_block; block_size += prev_block_size; 4778e: 2209 movel %a1,%d1 <== NOT EXECUTED 47790: c4a8 0004 andl %a0@(4),%d2 <== NOT EXECUTED 47794: d082 addl %d2,%d0 <== NOT EXECUTED } block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED; 47796: 7401 moveq #1,%d2 <== NOT EXECUTED 47798: 8480 orl %d0,%d2 <== NOT EXECUTED new_block->prev_size = block_size; 4779a: 2680 movel %d0,%a3@ <== NOT EXECUTED block = prev_block; block_size += prev_block_size; } block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED; 4779c: 2142 0004 movel %d2,%a0@(4) <== NOT EXECUTED new_block->prev_size = block_size; new_block->size_and_flag = new_block_size; 477a0: 274c 0004 movel %a4,%a3@(4) <== NOT EXECUTED _Heap_Block_split( heap, new_block, free_list_anchor, alloc_size ); 477a4: 2f03 movel %d3,%sp@- <== NOT EXECUTED 477a6: 2f01 movel %d1,%sp@- <== NOT EXECUTED 477a8: 2f0b movel %a3,%sp@- <== NOT EXECUTED 477aa: 2f0a movel %a2,%sp@- <== NOT EXECUTED 477ac: 4eba fc4a jsr %pc@(473f8 <_Heap_Block_split>) <== NOT EXECUTED 477b0: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 477b4: 6098 bras 4774e <_Heap_Block_allocate+0xac> <== NOT EXECUTED ... =============================================================================== 000473f8 <_Heap_Block_split>: Heap_Control *heap, Heap_Block *block, Heap_Block *free_list_anchor, uintptr_t alloc_size ) { 473f8: 4e56 ffe4 linkw %fp,#-28 473fc: 226e 0008 moveal %fp@(8),%a1 47400: 48d7 1c3c moveml %d2-%d5/%a2-%a4,%sp@ 47404: 246e 000c moveal %fp@(12),%a2 - HEAP_BLOCK_HEADER_SIZE); } RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block ) { return block->size_and_flag & ~HEAP_PREV_BLOCK_USED; 47408: 76fe moveq #-2,%d3 } _Heap_Protection_block_initialize( heap, block ); return block; } 4740a: 282a 0004 movel %a2@(4),%d4 ) { Heap_Statistics *const stats = &heap->stats; uintptr_t const page_size = heap->page_size; uintptr_t const min_block_size = heap->min_block_size; 4740e: 2669 0014 moveal %a1@(20),%a3 uintptr_t const min_alloc_size = min_block_size - HEAP_BLOCK_HEADER_SIZE; 47412: 220b movel %a3,%d1 47414: 5181 subql #8,%d1 Heap_Control *heap, Heap_Block *block, Heap_Block *free_list_anchor, uintptr_t alloc_size ) { 47416: 286e 0010 moveal %fp@(16),%a4 Heap_Statistics *const stats = &heap->stats; uintptr_t const page_size = heap->page_size; 4741a: 2429 0010 movel %a1@(16),%d2 return heap->stats.size; } RTEMS_INLINE_ROUTINE uintptr_t _Heap_Max( uintptr_t a, uintptr_t b ) { return a > b ? a : b; 4741e: 202e 0014 movel %fp@(20),%d0 - HEAP_BLOCK_HEADER_SIZE); } RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block ) { return block->size_and_flag & ~HEAP_PREV_BLOCK_USED; 47422: c684 andl %d4,%d3 return heap->stats.size; } RTEMS_INLINE_ROUTINE uintptr_t _Heap_Max( uintptr_t a, uintptr_t b ) { return a > b ? a : b; 47424: b280 cmpl %d0,%d1 47426: 6302 blss 4742a <_Heap_Block_split+0x32> 47428: 2001 movel %d1,%d0 uintptr_t const min_block_size = heap->min_block_size; uintptr_t const min_alloc_size = min_block_size - HEAP_BLOCK_HEADER_SIZE; uintptr_t const block_size = _Heap_Block_size( block ); uintptr_t const used_size = 4742a: 5080 addql #8,%d0 RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_up( uintptr_t value, uintptr_t alignment ) { uintptr_t remainder = value % alignment; 4742c: 2a00 movel %d0,%d5 4742e: 4c42 5001 remul %d2,%d1,%d5 if ( remainder != 0 ) { 47432: 4a81 tstl %d1 47434: 6766 beqs 4749c <_Heap_Block_split+0xa4> return value - remainder + alignment; 47436: d480 addl %d0,%d2 47438: 9481 subl %d1,%d2 _Heap_Max( alloc_size, min_alloc_size ) + HEAP_BLOCK_HEADER_SIZE; uintptr_t const used_block_size = _Heap_Align_up( used_size, page_size ); uintptr_t const free_size = block_size + HEAP_ALLOC_BONUS - used_size; 4743a: 2203 movel %d3,%d1 4743c: 5881 addql #4,%d1 RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); 4743e: 41f2 3800 lea %a2@(00000000,%d3:l),%a0 47442: 9280 subl %d0,%d1 uintptr_t const free_size_limit = min_block_size + HEAP_ALLOC_BONUS; 47444: 588b addql #4,%a3 Heap_Block *next_block = _Heap_Block_at( block, block_size ); _HAssert( used_size <= block_size + HEAP_ALLOC_BONUS ); _HAssert( used_size + free_size == block_size + HEAP_ALLOC_BONUS ); if ( free_size >= free_size_limit ) { 47446: b7c1 cmpal %d1,%a3 47448: 6264 bhis 474ae <_Heap_Block_split+0xb6> <== NEVER TAKEN RTEMS_INLINE_ROUTINE void _Heap_Block_set_size( Heap_Block *block, uintptr_t size ) { uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED; 4744a: 7001 moveq #1,%d0 RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); 4744c: 47f2 2800 lea %a2@(00000000,%d2:l),%a3 Heap_Block *const free_block = _Heap_Block_at( block, used_block_size ); uintptr_t free_block_size = block_size - used_block_size; 47450: 9682 subl %d2,%d3 block->size_and_flag = size | flag; } RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used( const Heap_Block *block ) { return block->size_and_flag & HEAP_PREV_BLOCK_USED; 47452: 7201 moveq #1,%d1 RTEMS_INLINE_ROUTINE void _Heap_Block_set_size( Heap_Block *block, uintptr_t size ) { uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED; 47454: c880 andl %d0,%d4 - HEAP_BLOCK_HEADER_SIZE); } RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block ) { return block->size_and_flag & ~HEAP_PREV_BLOCK_USED; 47456: 70fe moveq #-2,%d0 uintptr_t size ) { uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED; block->size_and_flag = size | flag; 47458: 8484 orl %d4,%d2 4745a: 2542 0004 movel %d2,%a2@(4) _HAssert( used_block_size + free_block_size == block_size ); _Heap_Block_set_size( block, used_block_size ); /* Statistics */ stats->free_size += free_block_size; 4745e: d7a9 0030 addl %d3,%a1@(48) - HEAP_BLOCK_HEADER_SIZE); } RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block ) { return block->size_and_flag & ~HEAP_PREV_BLOCK_USED; 47462: c0a8 0004 andl %a0@(4),%d0 block->size_and_flag = size | flag; } RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used( const Heap_Block *block ) { return block->size_and_flag & HEAP_PREV_BLOCK_USED; 47466: c2b0 0804 andl %a0@(00000004,%d0:l),%d1 if ( _Heap_Is_used( next_block ) ) { 4746a: 6750 beqs 474bc <_Heap_Block_split+0xc4> <== NEVER TAKEN RTEMS_INLINE_ROUTINE void _Heap_Free_list_insert_after( Heap_Block *block_before, Heap_Block *new_block ) { Heap_Block *next = block_before->next; 4746c: 246c 0008 moveal %a4@(8),%a2 free_block_size += next_block_size; next_block = _Heap_Block_at( free_block, free_block_size ); } free_block->size_and_flag = free_block_size | HEAP_PREV_BLOCK_USED; 47470: 7001 moveq #1,%d0 new_block->next = next; new_block->prev = block_before; 47472: 274c 000c movel %a4,%a3@(12) 47476: 8083 orl %d3,%d0 Heap_Block *new_block ) { Heap_Block *next = block_before->next; new_block->next = next; 47478: 274a 0008 movel %a2,%a3@(8) new_block->prev = block_before; block_before->next = new_block; next->prev = new_block; 4747c: 254b 000c movel %a3,%a2@(12) { Heap_Block *next = block_before->next; new_block->next = next; new_block->prev = block_before; block_before->next = new_block; 47480: 294b 0008 movel %a3,%a4@(8) if ( _Heap_Is_used( next_block ) ) { _Heap_Free_list_insert_after( free_list_anchor, free_block ); /* Statistics */ ++stats->free_blocks; 47484: 52a9 0038 addql #1,%a1@(56) free_block_size += next_block_size; next_block = _Heap_Block_at( free_block, free_block_size ); } free_block->size_and_flag = free_block_size | HEAP_PREV_BLOCK_USED; 47488: 2740 0004 movel %d0,%a3@(4) next_block->prev_size = free_block_size; next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; 4748c: 70fe moveq #-2,%d0 4748e: c1a8 0004 andl %d0,%a0@(4) next_block = _Heap_Block_at( free_block, free_block_size ); } free_block->size_and_flag = free_block_size | HEAP_PREV_BLOCK_USED; next_block->prev_size = free_block_size; 47492: 2083 movel %d3,%a0@ _Heap_Protection_block_initialize( heap, free_block ); } else { next_block->size_and_flag |= HEAP_PREV_BLOCK_USED; } } 47494: 4cd7 1c3c moveml %sp@,%d2-%d5/%a2-%a4 47498: 4e5e unlk %fp 4749a: 4e75 rts uintptr_t const used_size = _Heap_Max( alloc_size, min_alloc_size ) + HEAP_BLOCK_HEADER_SIZE; uintptr_t const used_block_size = _Heap_Align_up( used_size, page_size ); uintptr_t const free_size = block_size + HEAP_ALLOC_BONUS - used_size; 4749c: 2203 movel %d3,%d1 4749e: 5881 addql #4,%d1 RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); 474a0: 41f2 3800 lea %a2@(00000000,%d3:l),%a0 uintptr_t remainder = value % alignment; if ( remainder != 0 ) { return value - remainder + alignment; } else { return value; 474a4: 2400 movel %d0,%d2 474a6: 9280 subl %d0,%d1 uintptr_t const free_size_limit = min_block_size + HEAP_ALLOC_BONUS; 474a8: 588b addql #4,%a3 Heap_Block *next_block = _Heap_Block_at( block, block_size ); _HAssert( used_size <= block_size + HEAP_ALLOC_BONUS ); _HAssert( used_size + free_size == block_size + HEAP_ALLOC_BONUS ); if ( free_size >= free_size_limit ) { 474aa: b7c1 cmpal %d1,%a3 474ac: 639c blss 4744a <_Heap_Block_split+0x52> next_block->prev_size = free_block_size; next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; _Heap_Protection_block_initialize( heap, free_block ); } else { next_block->size_and_flag |= HEAP_PREV_BLOCK_USED; 474ae: 7001 moveq #1,%d0 } } 474b0: 4cd7 1c3c moveml %sp@,%d2-%d5/%a2-%a4 next_block->prev_size = free_block_size; next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; _Heap_Protection_block_initialize( heap, free_block ); } else { next_block->size_and_flag |= HEAP_PREV_BLOCK_USED; 474b4: 81a8 0004 orl %d0,%a0@(4) } } 474b8: 4e5e unlk %fp 474ba: 4e75 rts } else { uintptr_t const next_block_size = _Heap_Block_size( next_block ); _Heap_Free_list_replace( next_block, free_block ); free_block_size += next_block_size; 474bc: d680 addl %d0,%d3 <== NOT EXECUTED next_block = _Heap_Block_at( free_block, free_block_size ); } free_block->size_and_flag = free_block_size | HEAP_PREV_BLOCK_USED; 474be: 7001 moveq #1,%d0 <== NOT EXECUTED } _Heap_Protection_block_initialize( heap, block ); return block; } 474c0: 2268 0008 moveal %a0@(8),%a1 <== NOT EXECUTED 474c4: 2468 000c moveal %a0@(12),%a2 <== NOT EXECUTED RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); 474c8: 41f3 3800 lea %a3@(00000000,%d3:l),%a0 <== NOT EXECUTED free_block_size += next_block_size; next_block = _Heap_Block_at( free_block, free_block_size ); } free_block->size_and_flag = free_block_size | HEAP_PREV_BLOCK_USED; 474cc: 8083 orl %d3,%d0 <== NOT EXECUTED ) { Heap_Block *next = old_block->next; Heap_Block *prev = old_block->prev; new_block->next = next; 474ce: 2749 0008 movel %a1,%a3@(8) <== NOT EXECUTED new_block->prev = prev; 474d2: 274a 000c movel %a2,%a3@(12) <== NOT EXECUTED 474d6: 2740 0004 movel %d0,%a3@(4) <== NOT EXECUTED next_block->prev_size = free_block_size; next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; 474da: 70fe moveq #-2,%d0 <== NOT EXECUTED next->prev = new_block; prev->next = new_block; 474dc: 254b 0008 movel %a3,%a2@(8) <== NOT EXECUTED 474e0: c1a8 0004 andl %d0,%a0@(4) <== NOT EXECUTED Heap_Block *prev = old_block->prev; new_block->next = next; new_block->prev = prev; next->prev = new_block; 474e4: 234b 000c movel %a3,%a1@(12) <== NOT EXECUTED next_block = _Heap_Block_at( free_block, free_block_size ); } free_block->size_and_flag = free_block_size | HEAP_PREV_BLOCK_USED; next_block->prev_size = free_block_size; 474e8: 2083 movel %d3,%a0@ <== NOT EXECUTED 474ea: 60a8 bras 47494 <_Heap_Block_split+0x9c> <== NOT EXECUTED =============================================================================== 0004bfb8 <_Heap_Extend>: Heap_Control *heap, void *extend_area_begin_ptr, uintptr_t extend_area_size, uintptr_t *extended_size_ptr ) { 4bfb8: 4e56 ffcc linkw %fp,#-52 <== NOT EXECUTED 4bfbc: 202e 0010 movel %fp@(16),%d0 <== NOT EXECUTED 4bfc0: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ <== NOT EXECUTED 4bfc4: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 4bfc8: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED Heap_Block *extend_first_block = NULL; Heap_Block *extend_last_block = NULL; uintptr_t const page_size = heap->page_size; uintptr_t const min_block_size = heap->min_block_size; uintptr_t const extend_area_begin = (uintptr_t) extend_area_begin_ptr; uintptr_t const extend_area_end = extend_area_begin + extend_area_size; 4bfcc: 2602 movel %d2,%d3 <== NOT EXECUTED 4bfce: d680 addl %d0,%d3 <== NOT EXECUTED uintptr_t extend_area_size, uintptr_t *extended_size_ptr ) { Heap_Statistics *const stats = &heap->stats; Heap_Block *const first_block = heap->first_block; 4bfd0: 2a2a 0020 movel %a2@(32),%d5 <== NOT EXECUTED Heap_Block *merge_above_block = NULL; Heap_Block *link_below_block = NULL; Heap_Block *link_above_block = NULL; Heap_Block *extend_first_block = NULL; Heap_Block *extend_last_block = NULL; uintptr_t const page_size = heap->page_size; 4bfd4: 282a 0010 movel %a2@(16),%d4 <== NOT EXECUTED uintptr_t const min_block_size = heap->min_block_size; 4bfd8: 222a 0014 movel %a2@(20),%d1 <== NOT EXECUTED uintptr_t const extend_area_begin = (uintptr_t) extend_area_begin_ptr; uintptr_t const extend_area_end = extend_area_begin + extend_area_size; uintptr_t const free_size = stats->free_size; 4bfdc: 2c2a 0030 movel %a2@(48),%d6 <== NOT EXECUTED Heap_Block *start_block = first_block; Heap_Block *merge_below_block = NULL; Heap_Block *merge_above_block = NULL; Heap_Block *link_below_block = NULL; Heap_Block *link_above_block = NULL; Heap_Block *extend_first_block = NULL; 4bfe0: 42ae fffc clrl %fp@(-4) <== NOT EXECUTED Heap_Block *extend_last_block = NULL; 4bfe4: 42ae fff8 clrl %fp@(-8) <== NOT EXECUTED uintptr_t const free_size = stats->free_size; uintptr_t extend_first_block_size = 0; uintptr_t extended_size = 0; bool extend_area_ok = false; if ( extend_area_end < extend_area_begin ) { 4bfe8: b682 cmpl %d2,%d3 <== NOT EXECUTED 4bfea: 640c bccs 4bff8 <_Heap_Extend+0x40> <== NOT EXECUTED if ( extended_size_ptr != NULL ) *extended_size_ptr = extended_size; return true; } 4bfec: 4cee 3cfc ffcc moveml %fp@(-52),%d2-%d7/%a2-%a5 <== NOT EXECUTED _Heap_Block_of_alloc_area( sub_area_end, page_size ); if ( sub_area_end > extend_area_begin && extend_area_end > sub_area_begin ) { return false; 4bff2: 4200 clrb %d0 <== NOT EXECUTED if ( extended_size_ptr != NULL ) *extended_size_ptr = extended_size; return true; } 4bff4: 4e5e unlk %fp <== NOT EXECUTED 4bff6: 4e75 rts <== NOT EXECUTED if ( extend_area_end < extend_area_begin ) { return false; } extend_area_ok = _Heap_Get_first_and_last_block( 4bff8: 486e fff8 pea %fp@(-8) <== NOT EXECUTED 4bffc: 486e fffc pea %fp@(-4) <== NOT EXECUTED 4c000: 2f01 movel %d1,%sp@- <== NOT EXECUTED 4c002: 2f04 movel %d4,%sp@- <== NOT EXECUTED 4c004: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4c006: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4c008: 4eb9 0004 7838 jsr 47838 <_Heap_Get_first_and_last_block> <== NOT EXECUTED page_size, min_block_size, &extend_first_block, &extend_last_block ); if (!extend_area_ok ) { 4c00e: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED 4c012: 4a00 tstb %d0 <== NOT EXECUTED 4c014: 67d6 beqs 4bfec <_Heap_Extend+0x34> <== NOT EXECUTED 4c016: 2045 moveal %d5,%a0 <== NOT EXECUTED 4c018: 9bcd subal %a5,%a5 <== NOT EXECUTED 4c01a: 97cb subal %a3,%a3 <== NOT EXECUTED 4c01c: 99cc subal %a4,%a4 <== NOT EXECUTED 4c01e: 42ae fff4 clrl %fp@(-12) <== NOT EXECUTED return false; } do { uintptr_t const sub_area_begin = (start_block != first_block) ? (uintptr_t) start_block : heap->area_begin; 4c022: ba88 cmpl %a0,%d5 <== NOT EXECUTED 4c024: 6700 014a beqw 4c170 <_Heap_Extend+0x1b8> <== NOT EXECUTED 4c028: 2208 movel %a0,%d1 <== NOT EXECUTED uintptr_t const sub_area_end = start_block->prev_size; 4c02a: 2010 movel %a0@,%d0 <== NOT EXECUTED Heap_Block *const end_block = _Heap_Block_of_alloc_area( sub_area_end, page_size ); if ( 4c02c: b082 cmpl %d2,%d0 <== NOT EXECUTED 4c02e: 6304 blss 4c034 <_Heap_Extend+0x7c> <== NOT EXECUTED sub_area_end > extend_area_begin && extend_area_end > sub_area_begin 4c030: b681 cmpl %d1,%d3 <== NOT EXECUTED 4c032: 62b8 bhis 4bfec <_Heap_Extend+0x34> <== NOT EXECUTED ) { return false; } if ( extend_area_end == sub_area_begin ) { 4c034: b681 cmpl %d1,%d3 <== NOT EXECUTED 4c036: 6700 0132 beqw 4c16a <_Heap_Extend+0x1b2> <== NOT EXECUTED merge_below_block = start_block; } else if ( extend_area_end < sub_area_end ) { 4c03a: b083 cmpl %d3,%d0 <== NOT EXECUTED 4c03c: 6304 blss 4c042 <_Heap_Extend+0x8a> <== NOT EXECUTED 4c03e: 2d48 fff4 movel %a0,%fp@(-12) <== NOT EXECUTED 4c042: 2e00 movel %d0,%d7 <== NOT EXECUTED 4c044: 2240 moveal %d0,%a1 <== NOT EXECUTED 4c046: 5189 subql #8,%a1 <== NOT EXECUTED 4c048: 4c44 7001 remul %d4,%d1,%d7 <== NOT EXECUTED uintptr_t alloc_begin, uintptr_t page_size ) { return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size ) - HEAP_BLOCK_HEADER_SIZE); 4c04c: 93c1 subal %d1,%a1 <== NOT EXECUTED link_below_block = start_block; } if ( sub_area_end == extend_area_begin ) { 4c04e: b480 cmpl %d0,%d2 <== NOT EXECUTED 4c050: 6700 0100 beqw 4c152 <_Heap_Extend+0x19a> <== NOT EXECUTED start_block->prev_size = extend_area_end; merge_above_block = end_block; } else if ( sub_area_end < extend_area_begin ) { 4c054: b082 cmpl %d2,%d0 <== NOT EXECUTED 4c056: 6402 bccs 4c05a <_Heap_Extend+0xa2> <== NOT EXECUTED RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_of_alloc_area( uintptr_t alloc_begin, uintptr_t page_size ) { return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size ) 4c058: 2a49 moveal %a1,%a5 <== NOT EXECUTED - HEAP_BLOCK_HEADER_SIZE); } RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block ) { return block->size_and_flag & ~HEAP_PREV_BLOCK_USED; 4c05a: 70fe moveq #-2,%d0 <== NOT EXECUTED 4c05c: c0a9 0004 andl %a1@(4),%d0 <== NOT EXECUTED RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); 4c060: 41f1 0800 lea %a1@(00000000,%d0:l),%a0 <== NOT EXECUTED link_above_block = end_block; } start_block = _Heap_Block_at( end_block, _Heap_Block_size( end_block ) ); } while ( start_block != first_block ); 4c064: b1c5 cmpal %d5,%a0 <== NOT EXECUTED 4c066: 66ba bnes 4c022 <_Heap_Extend+0x6a> <== NOT EXECUTED if ( extend_area_begin < heap->area_begin ) { 4c068: b4aa 0018 cmpl %a2@(24),%d2 <== NOT EXECUTED 4c06c: 6500 010a bcsw 4c178 <_Heap_Extend+0x1c0> <== NOT EXECUTED heap->area_begin = extend_area_begin; } else if ( heap->area_end < extend_area_end ) { 4c070: b6aa 001c cmpl %a2@(28),%d3 <== NOT EXECUTED 4c074: 6304 blss 4c07a <_Heap_Extend+0xc2> <== NOT EXECUTED heap->area_end = extend_area_end; 4c076: 2543 001c movel %d3,%a2@(28) <== NOT EXECUTED } extend_first_block_size = (uintptr_t) extend_last_block - (uintptr_t) extend_first_block; 4c07a: 226e fff8 moveal %fp@(-8),%a1 <== NOT EXECUTED heap->area_begin = extend_area_begin; } else if ( heap->area_end < extend_area_end ) { heap->area_end = extend_area_end; } extend_first_block_size = 4c07e: 2009 movel %a1,%d0 <== NOT EXECUTED (uintptr_t) extend_last_block - (uintptr_t) extend_first_block; extend_first_block->prev_size = extend_area_end; extend_first_block->size_and_flag = extend_first_block_size | HEAP_PREV_BLOCK_USED; 4c080: 7201 moveq #1,%d1 <== NOT EXECUTED } else if ( heap->area_end < extend_area_end ) { heap->area_end = extend_area_end; } extend_first_block_size = (uintptr_t) extend_last_block - (uintptr_t) extend_first_block; 4c082: 206e fffc moveal %fp@(-4),%a0 <== NOT EXECUTED heap->area_begin = extend_area_begin; } else if ( heap->area_end < extend_area_end ) { heap->area_end = extend_area_end; } extend_first_block_size = 4c086: 9088 subl %a0,%d0 <== NOT EXECUTED (uintptr_t) extend_last_block - (uintptr_t) extend_first_block; extend_first_block->prev_size = extend_area_end; extend_first_block->size_and_flag = extend_first_block_size | HEAP_PREV_BLOCK_USED; 4c088: 8280 orl %d0,%d1 <== NOT EXECUTED } extend_first_block_size = (uintptr_t) extend_last_block - (uintptr_t) extend_first_block; extend_first_block->prev_size = extend_area_end; 4c08a: 2083 movel %d3,%a0@ <== NOT EXECUTED extend_first_block->size_and_flag = extend_first_block_size | HEAP_PREV_BLOCK_USED; 4c08c: 2141 0004 movel %d1,%a0@(4) <== NOT EXECUTED _Heap_Protection_block_initialize( heap, extend_first_block ); extend_last_block->prev_size = extend_first_block_size; 4c090: 2280 movel %d0,%a1@ <== NOT EXECUTED extend_last_block->size_and_flag = 0; 4c092: 42a9 0004 clrl %a1@(4) <== NOT EXECUTED _Heap_Protection_block_initialize( heap, extend_last_block ); if ( (uintptr_t) extend_first_block < (uintptr_t) heap->first_block ) { 4c096: b1ea 0020 cmpal %a2@(32),%a0 <== NOT EXECUTED 4c09a: 6400 0104 bccw 4c1a0 <_Heap_Extend+0x1e8> <== NOT EXECUTED heap->first_block = extend_first_block; 4c09e: 2548 0020 movel %a0,%a2@(32) <== NOT EXECUTED } else if ( (uintptr_t) extend_last_block > (uintptr_t) heap->last_block ) { heap->last_block = extend_last_block; } if ( merge_below_block != NULL ) { 4c0a2: 4a8c tstl %a4 <== NOT EXECUTED 4c0a4: 6700 0148 beqw 4c1ee <_Heap_Extend+0x236> <== NOT EXECUTED Heap_Control *heap, uintptr_t extend_area_begin, Heap_Block *first_block ) { uintptr_t const page_size = heap->page_size; 4c0a8: 202a 0010 movel %a2@(16),%d0 <== NOT EXECUTED uintptr_t const new_first_block_alloc_begin = _Heap_Align_up( extend_area_begin + HEAP_BLOCK_HEADER_SIZE, page_size ); 4c0ac: 5082 addql #8,%d2 <== NOT EXECUTED RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_up( uintptr_t value, uintptr_t alignment ) { uintptr_t remainder = value % alignment; 4c0ae: 2802 movel %d2,%d4 <== NOT EXECUTED 4c0b0: 4c40 4001 remul %d0,%d1,%d4 <== NOT EXECUTED if ( remainder != 0 ) { 4c0b4: 4a81 tstl %d1 <== NOT EXECUTED 4c0b6: 6704 beqs 4c0bc <_Heap_Extend+0x104> <== NOT EXECUTED return value - remainder + alignment; 4c0b8: d480 addl %d0,%d2 <== NOT EXECUTED 4c0ba: 9481 subl %d1,%d2 <== NOT EXECUTED uintptr_t const new_first_block_begin = 4c0bc: 2042 moveal %d2,%a0 <== NOT EXECUTED 4c0be: 5188 subql #8,%a0 <== NOT EXECUTED new_first_block_alloc_begin - HEAP_BLOCK_HEADER_SIZE; uintptr_t const first_block_begin = (uintptr_t) first_block; uintptr_t const new_first_block_size = 4c0c0: 200c movel %a4,%d0 <== NOT EXECUTED 4c0c2: 9088 subl %a0,%d0 <== NOT EXECUTED first_block_begin - new_first_block_begin; Heap_Block *const new_first_block = (Heap_Block *) new_first_block_begin; new_first_block->prev_size = first_block->prev_size; new_first_block->size_and_flag = new_first_block_size | HEAP_PREV_BLOCK_USED; 4c0c4: 7201 moveq #1,%d1 <== NOT EXECUTED 4c0c6: 8280 orl %d0,%d1 <== NOT EXECUTED uintptr_t const first_block_begin = (uintptr_t) first_block; uintptr_t const new_first_block_size = first_block_begin - new_first_block_begin; Heap_Block *const new_first_block = (Heap_Block *) new_first_block_begin; new_first_block->prev_size = first_block->prev_size; 4c0c8: 2094 movel %a4@,%a0@ <== NOT EXECUTED new_first_block->size_and_flag = new_first_block_size | HEAP_PREV_BLOCK_USED; 4c0ca: 2141 0004 movel %d1,%a0@(4) <== NOT EXECUTED _Heap_Free_block( heap, new_first_block ); 4c0ce: 2f08 movel %a0,%sp@- <== NOT EXECUTED 4c0d0: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4c0d2: 4eba fec8 jsr %pc@(4bf9c <_Heap_Free_block>) <== NOT EXECUTED 4c0d6: 508f addql #8,%sp <== NOT EXECUTED link_below_block, extend_last_block ); } if ( merge_above_block != NULL ) { 4c0d8: 4a8b tstl %a3 <== NOT EXECUTED 4c0da: 6700 00d4 beqw 4c1b0 <_Heap_Extend+0x1f8> <== NOT EXECUTED ) { uintptr_t const page_size = heap->page_size; uintptr_t const last_block_begin = (uintptr_t) last_block; uintptr_t const last_block_new_size = _Heap_Align_down( extend_area_end - last_block_begin - HEAP_BLOCK_HEADER_SIZE, 4c0de: 5183 subql #8,%d3 <== NOT EXECUTED uintptr_t extend_area_end ) { uintptr_t const page_size = heap->page_size; uintptr_t const last_block_begin = (uintptr_t) last_block; uintptr_t const last_block_new_size = _Heap_Align_down( 4c0e0: 968b subl %a3,%d3 <== NOT EXECUTED RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment); 4c0e2: 2203 movel %d3,%d1 <== NOT EXECUTED 4c0e4: 4c6a 1000 0010 remul %a2@(16),%d0,%d1 <== NOT EXECUTED Heap_Block *const new_last_block = _Heap_Block_at( last_block, last_block_new_size ); new_last_block->size_and_flag = (last_block->size_and_flag - last_block_new_size) | HEAP_PREV_BLOCK_USED; 4c0ea: 7201 moveq #1,%d1 <== NOT EXECUTED 4c0ec: 9680 subl %d0,%d3 <== NOT EXECUTED ); Heap_Block *const new_last_block = _Heap_Block_at( last_block, last_block_new_size ); new_last_block->size_and_flag = (last_block->size_and_flag - last_block_new_size) 4c0ee: 202b 0004 movel %a3@(4),%d0 <== NOT EXECUTED 4c0f2: 9083 subl %d3,%d0 <== NOT EXECUTED | HEAP_PREV_BLOCK_USED; 4c0f4: 8280 orl %d0,%d1 <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Heap_Block_set_size( Heap_Block *block, uintptr_t size ) { uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED; 4c0f6: 7001 moveq #1,%d0 <== NOT EXECUTED 4c0f8: 2781 3804 movel %d1,%a3@(00000004,%d3:l) <== NOT EXECUTED 4c0fc: c0ab 0004 andl %a3@(4),%d0 <== NOT EXECUTED block->size_and_flag = size | flag; 4c100: 8680 orl %d0,%d3 <== NOT EXECUTED 4c102: 2743 0004 movel %d3,%a3@(4) <== NOT EXECUTED _Heap_Block_set_size( last_block, last_block_new_size ); _Heap_Free_block( heap, last_block ); 4c106: 2f0b movel %a3,%sp@- <== NOT EXECUTED 4c108: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4c10a: 4eba fe90 jsr %pc@(4bf9c <_Heap_Free_block>) <== NOT EXECUTED 4c10e: 508f addql #8,%sp <== NOT EXECUTED extend_first_block, extend_last_block ); } if ( merge_below_block == NULL && merge_above_block == NULL ) { 4c110: 4a8c tstl %a4 <== NOT EXECUTED 4c112: 6700 00c4 beqw 4c1d8 <_Heap_Extend+0x220> <== NOT EXECUTED _Heap_Free_block( heap, extend_first_block ); } _Heap_Set_last_block_size( heap ); extended_size = stats->free_size - free_size; 4c116: 202a 0030 movel %a2@(48),%d0 <== NOT EXECUTED 4c11a: 9086 subl %d6,%d0 <== NOT EXECUTED 4c11c: 2c00 movel %d0,%d6 <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Heap_Block_set_size( Heap_Block *block, uintptr_t size ) { uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED; 4c11e: 7001 moveq #1,%d0 <== NOT EXECUTED if ( extended_size_ptr != NULL ) *extended_size_ptr = extended_size; return true; } 4c120: 206a 0024 moveal %a2@(36),%a0 <== NOT EXECUTED * This feature will be used to terminate the scattered heap area list. See * also _Heap_Extend(). */ RTEMS_INLINE_ROUTINE void _Heap_Set_last_block_size( Heap_Control *heap ) { _Heap_Block_set_size( 4c124: 222a 0020 movel %a2@(32),%d1 <== NOT EXECUTED 4c128: 9288 subl %a0,%d1 <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Heap_Block_set_size( Heap_Block *block, uintptr_t size ) { uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED; 4c12a: c0a8 0004 andl %a0@(4),%d0 <== NOT EXECUTED block->size_and_flag = size | flag; 4c12e: 8280 orl %d0,%d1 <== NOT EXECUTED 4c130: 2141 0004 movel %d1,%a0@(4) <== NOT EXECUTED _Heap_Set_last_block_size( heap ); extended_size = stats->free_size - free_size; /* Statistics */ stats->size += extended_size; 4c134: ddaa 002c addl %d6,%a2@(44) <== NOT EXECUTED if ( extended_size_ptr != NULL ) 4c138: 4aae 0014 tstl %fp@(20) <== NOT EXECUTED 4c13c: 6700 00ca beqw 4c208 <_Heap_Extend+0x250> <== NOT EXECUTED *extended_size_ptr = extended_size; 4c140: 206e 0014 moveal %fp@(20),%a0 <== NOT EXECUTED 4c144: 2086 movel %d6,%a0@ <== NOT EXECUTED return true; } 4c146: 4cee 3cfc ffcc moveml %fp@(-52),%d2-%d7/%a2-%a5 <== NOT EXECUTED stats->size += extended_size; if ( extended_size_ptr != NULL ) *extended_size_ptr = extended_size; return true; 4c14c: 7001 moveq #1,%d0 <== NOT EXECUTED } 4c14e: 4e5e unlk %fp <== NOT EXECUTED 4c150: 4e75 rts <== NOT EXECUTED - HEAP_BLOCK_HEADER_SIZE); } RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block ) { return block->size_and_flag & ~HEAP_PREV_BLOCK_USED; 4c152: 70fe moveq #-2,%d0 <== NOT EXECUTED RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_of_alloc_area( uintptr_t alloc_begin, uintptr_t page_size ) { return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size ) 4c154: 2649 moveal %a1,%a3 <== NOT EXECUTED - HEAP_BLOCK_HEADER_SIZE); } RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block ) { return block->size_and_flag & ~HEAP_PREV_BLOCK_USED; 4c156: c0a9 0004 andl %a1@(4),%d0 <== NOT EXECUTED } else if ( extend_area_end < sub_area_end ) { link_below_block = start_block; } if ( sub_area_end == extend_area_begin ) { start_block->prev_size = extend_area_end; 4c15a: 2083 movel %d3,%a0@ <== NOT EXECUTED RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); 4c15c: 41f1 0800 lea %a1@(00000000,%d0:l),%a0 <== NOT EXECUTED } else if ( sub_area_end < extend_area_begin ) { link_above_block = end_block; } start_block = _Heap_Block_at( end_block, _Heap_Block_size( end_block ) ); } while ( start_block != first_block ); 4c160: b1c5 cmpal %d5,%a0 <== NOT EXECUTED 4c162: 6600 febe bnew 4c022 <_Heap_Extend+0x6a> <== NOT EXECUTED 4c166: 6000 ff00 braw 4c068 <_Heap_Extend+0xb0> <== NOT EXECUTED sub_area_end > extend_area_begin && extend_area_end > sub_area_begin ) { return false; } if ( extend_area_end == sub_area_begin ) { 4c16a: 2848 moveal %a0,%a4 <== NOT EXECUTED 4c16c: 6000 fed4 braw 4c042 <_Heap_Extend+0x8a> <== NOT EXECUTED return false; } do { uintptr_t const sub_area_begin = (start_block != first_block) ? (uintptr_t) start_block : heap->area_begin; 4c170: 222a 0018 movel %a2@(24),%d1 <== NOT EXECUTED 4c174: 6000 feb4 braw 4c02a <_Heap_Extend+0x72> <== NOT EXECUTED } else if ( heap->area_end < extend_area_end ) { heap->area_end = extend_area_end; } extend_first_block_size = (uintptr_t) extend_last_block - (uintptr_t) extend_first_block; 4c178: 226e fff8 moveal %fp@(-8),%a1 <== NOT EXECUTED heap->area_begin = extend_area_begin; } else if ( heap->area_end < extend_area_end ) { heap->area_end = extend_area_end; } extend_first_block_size = 4c17c: 2009 movel %a1,%d0 <== NOT EXECUTED (uintptr_t) extend_last_block - (uintptr_t) extend_first_block; extend_first_block->prev_size = extend_area_end; extend_first_block->size_and_flag = extend_first_block_size | HEAP_PREV_BLOCK_USED; 4c17e: 7201 moveq #1,%d1 <== NOT EXECUTED } else if ( heap->area_end < extend_area_end ) { heap->area_end = extend_area_end; } extend_first_block_size = (uintptr_t) extend_last_block - (uintptr_t) extend_first_block; 4c180: 206e fffc moveal %fp@(-4),%a0 <== NOT EXECUTED heap->area_begin = extend_area_begin; } else if ( heap->area_end < extend_area_end ) { heap->area_end = extend_area_end; } extend_first_block_size = 4c184: 9088 subl %a0,%d0 <== NOT EXECUTED start_block = _Heap_Block_at( end_block, _Heap_Block_size( end_block ) ); } while ( start_block != first_block ); if ( extend_area_begin < heap->area_begin ) { heap->area_begin = extend_area_begin; 4c186: 2542 0018 movel %d2,%a2@(24) <== NOT EXECUTED extend_first_block_size = (uintptr_t) extend_last_block - (uintptr_t) extend_first_block; extend_first_block->prev_size = extend_area_end; extend_first_block->size_and_flag = extend_first_block_size | HEAP_PREV_BLOCK_USED; 4c18a: 8280 orl %d0,%d1 <== NOT EXECUTED } extend_first_block_size = (uintptr_t) extend_last_block - (uintptr_t) extend_first_block; extend_first_block->prev_size = extend_area_end; 4c18c: 2083 movel %d3,%a0@ <== NOT EXECUTED extend_first_block->size_and_flag = extend_first_block_size | HEAP_PREV_BLOCK_USED; 4c18e: 2141 0004 movel %d1,%a0@(4) <== NOT EXECUTED _Heap_Protection_block_initialize( heap, extend_first_block ); extend_last_block->prev_size = extend_first_block_size; 4c192: 2280 movel %d0,%a1@ <== NOT EXECUTED extend_last_block->size_and_flag = 0; 4c194: 42a9 0004 clrl %a1@(4) <== NOT EXECUTED _Heap_Protection_block_initialize( heap, extend_last_block ); if ( (uintptr_t) extend_first_block < (uintptr_t) heap->first_block ) { 4c198: b1ea 0020 cmpal %a2@(32),%a0 <== NOT EXECUTED 4c19c: 6500 ff00 bcsw 4c09e <_Heap_Extend+0xe6> <== NOT EXECUTED heap->first_block = extend_first_block; } else if ( (uintptr_t) extend_last_block > (uintptr_t) heap->last_block ) { 4c1a0: b3ea 0024 cmpal %a2@(36),%a1 <== NOT EXECUTED 4c1a4: 6300 fefc blsw 4c0a2 <_Heap_Extend+0xea> <== NOT EXECUTED heap->last_block = extend_last_block; 4c1a8: 2549 0024 movel %a1,%a2@(36) <== NOT EXECUTED 4c1ac: 6000 fef4 braw 4c0a2 <_Heap_Extend+0xea> <== NOT EXECUTED ); } if ( merge_above_block != NULL ) { _Heap_Merge_above( heap, merge_above_block, extend_area_end ); } else if ( link_above_block != NULL ) { 4c1b0: 4a8d tstl %a5 <== NOT EXECUTED 4c1b2: 6700 ff5c beqw 4c110 <_Heap_Extend+0x158> <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Heap_Block_set_size( Heap_Block *block, uintptr_t size ) { uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED; 4c1b6: 7001 moveq #1,%d0 <== NOT EXECUTED ) { uintptr_t const link_begin = (uintptr_t) link; uintptr_t const first_block_begin = (uintptr_t) first_block; _Heap_Block_set_size( link, first_block_begin - link_begin ); 4c1b8: 222e fffc movel %fp@(-4),%d1 <== NOT EXECUTED 4c1bc: 928d subl %a5,%d1 <== NOT EXECUTED 4c1be: c0ad 0004 andl %a5@(4),%d0 <== NOT EXECUTED } if ( merge_above_block != NULL ) { _Heap_Merge_above( heap, merge_above_block, extend_area_end ); } else if ( link_above_block != NULL ) { _Heap_Link_above( 4c1c2: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED block->size_and_flag = size | flag; 4c1c6: 8280 orl %d0,%d1 <== NOT EXECUTED uintptr_t const link_begin = (uintptr_t) link; uintptr_t const first_block_begin = (uintptr_t) first_block; _Heap_Block_set_size( link, first_block_begin - link_begin ); last_block->size_and_flag |= HEAP_PREV_BLOCK_USED; 4c1c8: 7001 moveq #1,%d0 <== NOT EXECUTED 4c1ca: 2b41 0004 movel %d1,%a5@(4) <== NOT EXECUTED 4c1ce: 81a8 0004 orl %d0,%a0@(4) <== NOT EXECUTED extend_first_block, extend_last_block ); } if ( merge_below_block == NULL && merge_above_block == NULL ) { 4c1d2: 4a8c tstl %a4 <== NOT EXECUTED 4c1d4: 6600 ff40 bnew 4c116 <_Heap_Extend+0x15e> <== NOT EXECUTED 4c1d8: 4a8b tstl %a3 <== NOT EXECUTED 4c1da: 6600 ff3a bnew 4c116 <_Heap_Extend+0x15e> <== NOT EXECUTED _Heap_Free_block( heap, extend_first_block ); 4c1de: 2f2e fffc movel %fp@(-4),%sp@- <== NOT EXECUTED 4c1e2: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4c1e4: 4eba fdb6 jsr %pc@(4bf9c <_Heap_Free_block>) <== NOT EXECUTED 4c1e8: 508f addql #8,%sp <== NOT EXECUTED 4c1ea: 6000 ff2a braw 4c116 <_Heap_Extend+0x15e> <== NOT EXECUTED heap->last_block = extend_last_block; } if ( merge_below_block != NULL ) { _Heap_Merge_below( heap, extend_area_begin, merge_below_block ); } else if ( link_below_block != NULL ) { 4c1ee: 4aae fff4 tstl %fp@(-12) <== NOT EXECUTED 4c1f2: 6700 fee4 beqw 4c0d8 <_Heap_Extend+0x120> <== NOT EXECUTED { uintptr_t const last_block_begin = (uintptr_t) last_block; uintptr_t const link_begin = (uintptr_t) link; last_block->size_and_flag = (link_begin - last_block_begin) | HEAP_PREV_BLOCK_USED; 4c1f6: 202e fff4 movel %fp@(-12),%d0 <== NOT EXECUTED 4c1fa: 7201 moveq #1,%d1 <== NOT EXECUTED 4c1fc: 9089 subl %a1,%d0 <== NOT EXECUTED 4c1fe: 8280 orl %d0,%d1 <== NOT EXECUTED 4c200: 2341 0004 movel %d1,%a1@(4) <== NOT EXECUTED 4c204: 6000 fed2 braw 4c0d8 <_Heap_Extend+0x120> <== NOT EXECUTED if ( extended_size_ptr != NULL ) *extended_size_ptr = extended_size; return true; } 4c208: 4cee 3cfc ffcc moveml %fp@(-52),%d2-%d7/%a2-%a5 <== NOT EXECUTED stats->size += extended_size; if ( extended_size_ptr != NULL ) *extended_size_ptr = extended_size; return true; 4c20e: 7001 moveq #1,%d0 <== NOT EXECUTED } 4c210: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 0004bc90 <_Heap_Free>: return do_free; } #endif bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr ) { 4bc90: 4e56 ffe8 linkw %fp,#-24 4bc94: 202e 000c movel %fp@(12),%d0 4bc98: 2040 moveal %d0,%a0 4bc9a: 5188 subql #8,%a0 4bc9c: 226e 0008 moveal %fp@(8),%a1 4bca0: 4c69 0001 0010 remul %a1@(16),%d1,%d0 4bca6: 48d7 0c3c moveml %d2-%d5/%a2-%a3,%sp@ RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap( const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block 4bcaa: 2029 0020 movel %a1@(32),%d0 uintptr_t alloc_begin, uintptr_t page_size ) { return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size ) - HEAP_BLOCK_HEADER_SIZE); 4bcae: 91c1 subal %d1,%a0 const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block && (uintptr_t) block <= (uintptr_t) heap->last_block; 4bcb0: b088 cmpl %a0,%d0 4bcb2: 6200 0098 bhiw 4bd4c <_Heap_Free+0xbc> 4bcb6: 2229 0024 movel %a1@(36),%d1 4bcba: b288 cmpl %a0,%d1 4bcbc: 6500 008e bcsw 4bd4c <_Heap_Free+0xbc> --stats->used_blocks; ++stats->frees; stats->free_size += block_size; return( true ); } 4bcc0: 2628 0004 movel %a0@(4),%d3 - HEAP_BLOCK_HEADER_SIZE); } RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block ) { return block->size_and_flag & ~HEAP_PREV_BLOCK_USED; 4bcc4: 74fe moveq #-2,%d2 4bcc6: c483 andl %d3,%d2 RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); 4bcc8: 45f0 2800 lea %a0@(00000000,%d2:l),%a2 const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block && (uintptr_t) block <= (uintptr_t) heap->last_block; 4bccc: b5c0 cmpal %d0,%a2 4bcce: 657c bcss 4bd4c <_Heap_Free+0xbc> <== NEVER TAKEN 4bcd0: b5c1 cmpal %d1,%a2 4bcd2: 6278 bhis 4bd4c <_Heap_Free+0xbc> <== NEVER TAKEN 4bcd4: 282a 0004 movel %a2@(4),%d4 if ( !_Heap_Is_block_in_heap( heap, next_block ) ) { _HAssert( false ); return false; } if ( !_Heap_Is_prev_used( next_block ) ) { 4bcd8: 0804 0000 btst #0,%d4 4bcdc: 676e beqs 4bd4c <_Heap_Free+0xbc> <== NEVER TAKEN - HEAP_BLOCK_HEADER_SIZE); } RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block ) { return block->size_and_flag & ~HEAP_PREV_BLOCK_USED; 4bcde: 7afe moveq #-2,%d5 4bce0: c885 andl %d5,%d4 return true; } next_block_size = _Heap_Block_size( next_block ); next_is_free = next_block != heap->last_block && !_Heap_Is_prev_used( _Heap_Block_at( next_block, next_block_size )); 4bce2: b5c1 cmpal %d1,%a2 4bce4: 6700 00f6 beqw 4bddc <_Heap_Free+0x14c> block->size_and_flag = size | flag; } RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used( const Heap_Block *block ) { return block->size_and_flag & HEAP_PREV_BLOCK_USED; 4bce8: 7a01 moveq #1,%d5 4bcea: cab2 4804 andl %a2@(00000004,%d4:l),%d5 return do_free; } #endif bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr ) 4bcee: 57c5 seq %d5 4bcf0: 4485 negl %d5 next_block_size = _Heap_Block_size( next_block ); next_is_free = next_block != heap->last_block && !_Heap_Is_prev_used( _Heap_Block_at( next_block, next_block_size )); if ( !_Heap_Is_prev_used( block ) ) { 4bcf2: 0803 0000 btst #0,%d3 4bcf6: 665e bnes 4bd56 <_Heap_Free+0xc6> uintptr_t const prev_size = block->prev_size; 4bcf8: 2610 movel %a0@,%d3 RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); 4bcfa: 91c3 subal %d3,%a0 const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block && (uintptr_t) block <= (uintptr_t) heap->last_block; 4bcfc: b1c0 cmpal %d0,%a0 4bcfe: 654c bcss 4bd4c <_Heap_Free+0xbc> <== NEVER TAKEN 4bd00: b1c1 cmpal %d1,%a0 4bd02: 6248 bhis 4bd4c <_Heap_Free+0xbc> <== NEVER TAKEN block->size_and_flag = size | flag; } RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used( const Heap_Block *block ) { return block->size_and_flag & HEAP_PREV_BLOCK_USED; 4bd04: 7001 moveq #1,%d0 4bd06: c0a8 0004 andl %a0@(4),%d0 return( false ); } /* As we always coalesce free blocks, the block that preceedes prev_block must have been used. */ if ( !_Heap_Is_prev_used ( prev_block) ) { 4bd0a: 6740 beqs 4bd4c <_Heap_Free+0xbc> <== NEVER TAKEN _HAssert( false ); return( false ); } if ( next_is_free ) { /* coalesce both */ 4bd0c: 4a05 tstb %d5 4bd0e: 6700 00d2 beqw 4bde2 <_Heap_Free+0x152> --stats->used_blocks; ++stats->frees; stats->free_size += block_size; return( true ); } 4bd12: 266a 0008 moveal %a2@(8),%a3 <== NOT EXECUTED _HAssert( false ); return( false ); } if ( next_is_free ) { /* coalesce both */ uintptr_t const size = block_size + prev_size + next_block_size; 4bd16: d882 addl %d2,%d4 <== NOT EXECUTED 4bd18: d684 addl %d4,%d3 <== NOT EXECUTED _Heap_Free_list_remove( next_block ); stats->free_blocks -= 1; prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED; 4bd1a: 7001 moveq #1,%d0 <== NOT EXECUTED --stats->used_blocks; ++stats->frees; stats->free_size += block_size; return( true ); } 4bd1c: 246a 000c moveal %a2@(12),%a2 <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block ) { Heap_Block *next = block->next; Heap_Block *prev = block->prev; prev->next = next; 4bd20: 254b 0008 movel %a3,%a2@(8) <== NOT EXECUTED if ( next_is_free ) { /* coalesce both */ uintptr_t const size = block_size + prev_size + next_block_size; _Heap_Free_list_remove( next_block ); stats->free_blocks -= 1; prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED; 4bd24: 8083 orl %d3,%d0 <== NOT EXECUTED next->prev = prev; 4bd26: 274a 000c movel %a2,%a3@(12) <== NOT EXECUTED } if ( next_is_free ) { /* coalesce both */ uintptr_t const size = block_size + prev_size + next_block_size; _Heap_Free_list_remove( next_block ); stats->free_blocks -= 1; 4bd2a: 53a9 0038 subql #1,%a1@(56) <== NOT EXECUTED prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED; next_block = _Heap_Block_at( prev_block, size ); _HAssert(!_Heap_Is_prev_used( next_block)); next_block->prev_size = size; 4bd2e: 2183 3800 movel %d3,%a0@(00000000,%d3:l) <== NOT EXECUTED if ( next_is_free ) { /* coalesce both */ uintptr_t const size = block_size + prev_size + next_block_size; _Heap_Free_list_remove( next_block ); stats->free_blocks -= 1; prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED; 4bd32: 2140 0004 movel %d0,%a0@(4) <== NOT EXECUTED stats->max_free_blocks = stats->free_blocks; } } /* Statistics */ --stats->used_blocks; 4bd36: 53a9 0040 subql #1,%a1@(64) <== NOT EXECUTED ++stats->frees; 4bd3a: 52a9 0050 addql #1,%a1@(80) <== NOT EXECUTED stats->free_size += block_size; 4bd3e: d5a9 0030 addl %d2,%a1@(48) <== NOT EXECUTED return( true ); 4bd42: 7001 moveq #1,%d0 <== NOT EXECUTED } 4bd44: 4cd7 0c3c moveml %sp@,%d2-%d5/%a2-%a3 4bd48: 4e5e unlk %fp 4bd4a: 4e75 rts 4bd4c: 4cd7 0c3c moveml %sp@,%d2-%d5/%a2-%a3 <== NOT EXECUTED /* As we always coalesce free blocks, the block that preceedes prev_block must have been used. */ if ( !_Heap_Is_prev_used ( prev_block) ) { _HAssert( false ); return( false ); 4bd50: 4200 clrb %d0 <== NOT EXECUTED --stats->used_blocks; ++stats->frees; stats->free_size += block_size; return( true ); } 4bd52: 4e5e unlk %fp <== NOT EXECUTED 4bd54: 4e75 rts <== NOT EXECUTED uintptr_t const size = block_size + prev_size; prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED; next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; next_block->prev_size = size; } } else if ( next_is_free ) { /* coalesce next */ 4bd56: 4a05 tstb %d5 4bd58: 6736 beqs 4bd90 <_Heap_Free+0x100> --stats->used_blocks; ++stats->frees; stats->free_size += block_size; return( true ); } 4bd5a: 266a 0008 moveal %a2@(8),%a3 prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED; next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; next_block->prev_size = size; } } else if ( next_is_free ) { /* coalesce next */ uintptr_t const size = block_size + next_block_size; 4bd5e: d882 addl %d2,%d4 _Heap_Free_list_replace( next_block, block ); block->size_and_flag = size | HEAP_PREV_BLOCK_USED; 4bd60: 7001 moveq #1,%d0 --stats->used_blocks; ++stats->frees; stats->free_size += block_size; return( true ); } 4bd62: 246a 000c moveal %a2@(12),%a2 ) { Heap_Block *next = old_block->next; Heap_Block *prev = old_block->prev; new_block->next = next; 4bd66: 214b 0008 movel %a3,%a0@(8) next_block->prev_size = size; } } else if ( next_is_free ) { /* coalesce next */ uintptr_t const size = block_size + next_block_size; _Heap_Free_list_replace( next_block, block ); block->size_and_flag = size | HEAP_PREV_BLOCK_USED; 4bd6a: 8084 orl %d4,%d0 new_block->prev = prev; 4bd6c: 214a 000c movel %a2,%a0@(12) next_block = _Heap_Block_at( block, size ); next_block->prev_size = size; 4bd70: 2184 4800 movel %d4,%a0@(00000000,%d4:l) next_block->prev_size = size; } } else if ( next_is_free ) { /* coalesce next */ uintptr_t const size = block_size + next_block_size; _Heap_Free_list_replace( next_block, block ); block->size_and_flag = size | HEAP_PREV_BLOCK_USED; 4bd74: 2140 0004 movel %d0,%a0@(4) /* Statistics */ --stats->used_blocks; ++stats->frees; stats->free_size += block_size; return( true ); 4bd78: 7001 moveq #1,%d0 next->prev = new_block; prev->next = new_block; 4bd7a: 2548 0008 movel %a0,%a2@(8) Heap_Block *prev = old_block->prev; new_block->next = next; new_block->prev = prev; next->prev = new_block; 4bd7e: 2748 000c movel %a0,%a3@(12) stats->max_free_blocks = stats->free_blocks; } } /* Statistics */ --stats->used_blocks; 4bd82: 53a9 0040 subql #1,%a1@(64) ++stats->frees; 4bd86: 52a9 0050 addql #1,%a1@(80) stats->free_size += block_size; 4bd8a: d5a9 0030 addl %d2,%a1@(48) 4bd8e: 60b4 bras 4bd44 <_Heap_Free+0xb4> block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED; next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; next_block->prev_size = block_size; /* Statistics */ ++stats->free_blocks; 4bd90: 2029 0038 movel %a1@(56),%d0 next_block->prev_size = size; } else { /* no coalesce */ /* Add 'block' to the head of the free blocks list as it tends to produce less fragmentation than adding to the tail. */ _Heap_Free_list_insert_after( _Heap_Free_list_head( heap), block ); block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED; 4bd94: 7201 moveq #1,%d1 next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; 4bd96: 7afe moveq #-2,%d5 next_block->prev_size = block_size; /* Statistics */ ++stats->free_blocks; 4bd98: 5280 addql #1,%d0 RTEMS_INLINE_ROUTINE void _Heap_Free_list_insert_after( Heap_Block *block_before, Heap_Block *new_block ) { Heap_Block *next = block_before->next; 4bd9a: 2669 0008 moveal %a1@(8),%a3 new_block->next = next; new_block->prev = block_before; 4bd9e: 2149 000c movel %a1,%a0@(12) next_block->prev_size = size; } else { /* no coalesce */ /* Add 'block' to the head of the free blocks list as it tends to produce less fragmentation than adding to the tail. */ _Heap_Free_list_insert_after( _Heap_Free_list_head( heap), block ); block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED; 4bda2: 8282 orl %d2,%d1 Heap_Block *new_block ) { Heap_Block *next = block_before->next; new_block->next = next; 4bda4: 214b 0008 movel %a3,%a0@(8) 4bda8: 2141 0004 movel %d1,%a0@(4) next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; 4bdac: cbaa 0004 andl %d5,%a2@(4) new_block->prev = block_before; block_before->next = new_block; next->prev = new_block; 4bdb0: 2748 000c movel %a0,%a3@(12) next_block->prev_size = block_size; 4bdb4: 2482 movel %d2,%a2@ { Heap_Block *next = block_before->next; new_block->next = next; new_block->prev = block_before; block_before->next = new_block; 4bdb6: 2348 0008 movel %a0,%a1@(8) /* Statistics */ ++stats->free_blocks; 4bdba: 2340 0038 movel %d0,%a1@(56) if ( stats->max_free_blocks < stats->free_blocks ) { 4bdbe: b0a9 003c cmpl %a1@(60),%d0 4bdc2: 6300 ff72 blsw 4bd36 <_Heap_Free+0xa6> stats->max_free_blocks = stats->free_blocks; } } /* Statistics */ --stats->used_blocks; 4bdc6: 53a9 0040 subql #1,%a1@(64) ++stats->frees; 4bdca: 52a9 0050 addql #1,%a1@(80) stats->free_size += block_size; 4bdce: d5a9 0030 addl %d2,%a1@(48) next_block->prev_size = block_size; /* Statistics */ ++stats->free_blocks; if ( stats->max_free_blocks < stats->free_blocks ) { stats->max_free_blocks = stats->free_blocks; 4bdd2: 2340 003c movel %d0,%a1@(60) /* Statistics */ --stats->used_blocks; ++stats->frees; stats->free_size += block_size; return( true ); 4bdd6: 7001 moveq #1,%d0 4bdd8: 6000 ff6a braw 4bd44 <_Heap_Free+0xb4> return true; } next_block_size = _Heap_Block_size( next_block ); next_is_free = next_block != heap->last_block && !_Heap_Is_prev_used( _Heap_Block_at( next_block, next_block_size )); 4bddc: 4205 clrb %d5 <== NOT EXECUTED 4bdde: 6000 ff12 braw 4bcf2 <_Heap_Free+0x62> <== NOT EXECUTED prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED; next_block = _Heap_Block_at( prev_block, size ); _HAssert(!_Heap_Is_prev_used( next_block)); next_block->prev_size = size; } else { /* coalesce prev */ uintptr_t const size = block_size + prev_size; 4bde2: d682 addl %d2,%d3 prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED; 4bde4: 7201 moveq #1,%d1 next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; 4bde6: 7afe moveq #-2,%d5 next_block = _Heap_Block_at( prev_block, size ); _HAssert(!_Heap_Is_prev_used( next_block)); next_block->prev_size = size; } else { /* coalesce prev */ uintptr_t const size = block_size + prev_size; prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED; 4bde8: 8283 orl %d3,%d1 next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; next_block->prev_size = size; 4bdea: 2483 movel %d3,%a2@ /* Statistics */ --stats->used_blocks; ++stats->frees; stats->free_size += block_size; return( true ); 4bdec: 7001 moveq #1,%d0 next_block = _Heap_Block_at( prev_block, size ); _HAssert(!_Heap_Is_prev_used( next_block)); next_block->prev_size = size; } else { /* coalesce prev */ uintptr_t const size = block_size + prev_size; prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED; 4bdee: 2141 0004 movel %d1,%a0@(4) next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; 4bdf2: cbaa 0004 andl %d5,%a2@(4) stats->max_free_blocks = stats->free_blocks; } } /* Statistics */ --stats->used_blocks; 4bdf6: 53a9 0040 subql #1,%a1@(64) ++stats->frees; 4bdfa: 52a9 0050 addql #1,%a1@(80) stats->free_size += block_size; 4bdfe: d5a9 0030 addl %d2,%a1@(48) 4be02: 6000 ff40 braw 4bd44 <_Heap_Free+0xb4> ... =============================================================================== 0004bf9c <_Heap_Free_block>: #include #include #include static void _Heap_Free_block( Heap_Control *heap, Heap_Block *block ) { 4bf9c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4bfa0: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED Heap_Statistics *const stats = &heap->stats; /* Statistics */ ++stats->used_blocks; 4bfa4: 52a8 0040 addql #1,%a0@(64) <== NOT EXECUTED --stats->frees; 4bfa8: 53a8 0050 subql #1,%a0@(80) <== NOT EXECUTED _Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( block )); 4bfac: 50ae 000c addql #8,%fp@(12) <== NOT EXECUTED } 4bfb0: 4e5e unlk %fp <== NOT EXECUTED /* Statistics */ ++stats->used_blocks; --stats->frees; _Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( block )); 4bfb2: 4ef9 0004 c214 jmp 4c214 <_Heap_Free> <== NOT EXECUTED =============================================================================== 000474ec <_Heap_Get_first_and_last_block>: uintptr_t page_size, uintptr_t min_block_size, Heap_Block **first_block_ptr, Heap_Block **last_block_ptr ) { 474ec: 4e56 fff0 linkw %fp,#-16 474f0: 202e 0008 movel %fp@(8),%d0 474f4: 48d7 003c moveml %d2-%d5,%sp@ uintptr_t const heap_area_end = heap_area_begin + heap_area_size; uintptr_t const alloc_area_begin = _Heap_Align_up( heap_area_begin + HEAP_BLOCK_HEADER_SIZE, page_size ); 474f8: 2400 movel %d0,%d2 474fa: 5082 addql #8,%d2 RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_up( uintptr_t value, uintptr_t alignment ) { uintptr_t remainder = value % alignment; 474fc: 2a02 movel %d2,%d5 uintptr_t page_size, uintptr_t min_block_size, Heap_Block **first_block_ptr, Heap_Block **last_block_ptr ) { 474fe: 222e 0010 movel %fp@(16),%d1 47502: 262e 000c movel %fp@(12),%d3 uintptr_t const heap_area_end = heap_area_begin + heap_area_size; 47506: 2043 moveal %d3,%a0 47508: d1c0 addal %d0,%a0 4750a: 4c41 5004 remul %d1,%d4,%d5 if ( remainder != 0 ) { 4750e: 4a84 tstl %d4 47510: 6704 beqs 47516 <_Heap_Get_first_and_last_block+0x2a><== ALWAYS TAKEN return value - remainder + alignment; 47512: d481 addl %d1,%d2 <== NOT EXECUTED 47514: 9484 subl %d4,%d2 <== NOT EXECUTED _Heap_Align_down( heap_area_size - overhead, page_size ); Heap_Block *const first_block = (Heap_Block *) first_block_begin; Heap_Block *const last_block = _Heap_Block_at( first_block, first_block_size ); if ( 47516: b1c0 cmpal %d0,%a0 47518: 6532 bcss 4754c <_Heap_Get_first_and_last_block+0x60><== NEVER TAKEN uintptr_t const alloc_area_begin = _Heap_Align_up( heap_area_begin + HEAP_BLOCK_HEADER_SIZE, page_size ); uintptr_t const first_block_begin = alloc_area_begin - HEAP_BLOCK_HEADER_SIZE; uintptr_t const overhead = HEAP_BLOCK_HEADER_SIZE + (first_block_begin - heap_area_begin); 4751a: 2042 moveal %d2,%a0 4751c: 5188 subql #8,%a0 uintptr_t const heap_area_end = heap_area_begin + heap_area_size; uintptr_t const alloc_area_begin = _Heap_Align_up( heap_area_begin + HEAP_BLOCK_HEADER_SIZE, page_size ); uintptr_t const first_block_begin = alloc_area_begin - HEAP_BLOCK_HEADER_SIZE; uintptr_t const overhead = 4751e: 9480 subl %d0,%d2 Heap_Block *const last_block = _Heap_Block_at( first_block, first_block_size ); if ( heap_area_end < heap_area_begin || heap_area_size <= overhead 47520: b483 cmpl %d3,%d2 47522: 6428 bccs 4754c <_Heap_Get_first_and_last_block+0x60> uintptr_t const first_block_begin = alloc_area_begin - HEAP_BLOCK_HEADER_SIZE; uintptr_t const overhead = HEAP_BLOCK_HEADER_SIZE + (first_block_begin - heap_area_begin); uintptr_t const first_block_size = _Heap_Align_down( heap_area_size - overhead, page_size ); 47524: 9682 subl %d2,%d3 RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment); 47526: 2403 movel %d3,%d2 47528: 4c41 2000 remul %d1,%d0,%d2 4752c: 9680 subl %d0,%d3 _Heap_Block_at( first_block, first_block_size ); if ( heap_area_end < heap_area_begin || heap_area_size <= overhead || first_block_size < min_block_size 4752e: b6ae 0014 cmpl %fp@(20),%d3 47532: 6518 bcss 4754c <_Heap_Get_first_and_last_block+0x60><== NEVER TAKEN ) { /* Invalid area or area too small */ return false; } *first_block_ptr = first_block; 47534: 226e 0018 moveal %fp@(24),%a1 RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); 47538: d688 addl %a0,%d3 4753a: 2288 movel %a0,%a1@ 4753c: 226e 001c moveal %fp@(28),%a1 47540: 2283 movel %d3,%a1@ *last_block_ptr = last_block; return true; } 47542: 4cd7 003c moveml %sp@,%d2-%d5 } *first_block_ptr = first_block; *last_block_ptr = last_block; return true; 47546: 7001 moveq #1,%d0 } 47548: 4e5e unlk %fp 4754a: 4e75 rts 4754c: 4cd7 003c moveml %sp@,%d2-%d5 heap_area_end < heap_area_begin || heap_area_size <= overhead || first_block_size < min_block_size ) { /* Invalid area or area too small */ return false; 47550: 4200 clrb %d0 *first_block_ptr = first_block; *last_block_ptr = last_block; return true; } 47552: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00050e04 <_Heap_Get_free_information>: void _Heap_Get_free_information( Heap_Control *the_heap, Heap_Information *info ) { 50e04: 4e56 ffec linkw %fp,#-20 <== NOT EXECUTED 50e08: 48d7 0c1c moveml %d2-%d4/%a2-%a3,%sp@ <== NOT EXECUTED 50e0c: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED 50e10: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED info->number++; info->total += the_size; if ( info->largest < the_size ) info->largest = the_size; } } 50e14: 206b 0008 moveal %a3@(8),%a0 <== NOT EXECUTED ) { Heap_Block *the_block; Heap_Block *const tail = _Heap_Free_list_tail(the_heap); info->number = 0; 50e18: 4292 clrl %a2@ <== NOT EXECUTED info->largest = 0; 50e1a: 42aa 0004 clrl %a2@(4) <== NOT EXECUTED info->total = 0; 50e1e: 42aa 0008 clrl %a2@(8) <== NOT EXECUTED for(the_block = _Heap_Free_list_first(the_heap); 50e22: b1cb cmpal %a3,%a0 <== NOT EXECUTED 50e24: 6734 beqs 50e5a <_Heap_Get_free_information+0x56><== NOT EXECUTED 50e26: 7401 moveq #1,%d2 <== NOT EXECUTED 50e28: 4283 clrl %d3 <== NOT EXECUTED 50e2a: 93c9 subal %a1,%a1 <== NOT EXECUTED - HEAP_BLOCK_HEADER_SIZE); } RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block ) { return block->size_and_flag & ~HEAP_PREV_BLOCK_USED; 50e2c: 70fe moveq #-2,%d0 <== NOT EXECUTED /* As we always coalesce free blocks, prev block must have been used. */ _HAssert(_Heap_Is_prev_used(the_block)); info->number++; info->total += the_size; 50e2e: 2209 movel %a1,%d1 <== NOT EXECUTED info->largest = 0; info->total = 0; for(the_block = _Heap_Free_list_first(the_heap); the_block != tail; the_block = the_block->next) 50e30: 2802 movel %d2,%d4 <== NOT EXECUTED 50e32: 5284 addql #1,%d4 <== NOT EXECUTED 50e34: c0a8 0004 andl %a0@(4),%d0 <== NOT EXECUTED /* As we always coalesce free blocks, prev block must have been used. */ _HAssert(_Heap_Is_prev_used(the_block)); info->number++; info->total += the_size; 50e38: d280 addl %d0,%d1 <== NOT EXECUTED info->number = 0; info->largest = 0; info->total = 0; for(the_block = _Heap_Free_list_first(the_heap); 50e3a: 2241 moveal %d1,%a1 <== NOT EXECUTED /* As we always coalesce free blocks, prev block must have been used. */ _HAssert(_Heap_Is_prev_used(the_block)); info->number++; info->total += the_size; if ( info->largest < the_size ) 50e3c: b680 cmpl %d0,%d3 <== NOT EXECUTED 50e3e: 6404 bccs 50e44 <_Heap_Get_free_information+0x40><== NOT EXECUTED info->largest = the_size; 50e40: 2540 0004 movel %d0,%a2@(4) <== NOT EXECUTED info->largest = 0; info->total = 0; for(the_block = _Heap_Free_list_first(the_heap); the_block != tail; the_block = the_block->next) 50e44: 2068 0008 moveal %a0@(8),%a0 <== NOT EXECUTED info->number = 0; info->largest = 0; info->total = 0; for(the_block = _Heap_Free_list_first(the_heap); 50e48: b1cb cmpal %a3,%a0 <== NOT EXECUTED 50e4a: 6708 beqs 50e54 <_Heap_Get_free_information+0x50><== NOT EXECUTED 50e4c: 262a 0004 movel %a2@(4),%d3 <== NOT EXECUTED 50e50: 2404 movel %d4,%d2 <== NOT EXECUTED 50e52: 60d8 bras 50e2c <_Heap_Get_free_information+0x28><== NOT EXECUTED 50e54: 2482 movel %d2,%a2@ <== NOT EXECUTED 50e56: 2541 0008 movel %d1,%a2@(8) <== NOT EXECUTED info->number++; info->total += the_size; if ( info->largest < the_size ) info->largest = the_size; } } 50e5a: 4cd7 0c1c moveml %sp@,%d2-%d4/%a2-%a3 <== NOT EXECUTED 50e5e: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 0004c900 <_Heap_Get_information>: void _Heap_Get_information( Heap_Control *the_heap, Heap_Information_block *the_info ) { 4c900: 4e56 fff0 linkw %fp,#-16 4c904: 48d7 041c moveml %d2-%d4/%a2,%sp@ 4c908: 246e 0008 moveal %fp@(8),%a2 4c90c: 282e 000c movel %fp@(12),%d4 Heap_Block *the_block = the_heap->first_block; Heap_Block *const end = the_heap->last_block; memset(the_info, 0, sizeof(*the_info)); 4c910: 2044 moveal %d4,%a0 void _Heap_Get_information( Heap_Control *the_heap, Heap_Information_block *the_info ) { Heap_Block *the_block = the_heap->first_block; 4c912: 226a 0020 moveal %a2@(32),%a1 Heap_Block *const end = the_heap->last_block; 4c916: 242a 0024 movel %a2@(36),%d2 memset(the_info, 0, sizeof(*the_info)); 4c91a: 4298 clrl %a0@+ 4c91c: 4298 clrl %a0@+ 4c91e: 4298 clrl %a0@+ 4c920: 4298 clrl %a0@+ 4c922: 4298 clrl %a0@+ 4c924: 4290 clrl %a0@ while ( the_block != end ) { 4c926: b489 cmpl %a1,%d2 4c928: 6734 beqs 4c95e <_Heap_Get_information+0x5e> <== NEVER TAKEN uintptr_t const the_size = _Heap_Block_size(the_block); Heap_Block *const next_block = _Heap_Block_at(the_block, the_size); Heap_Information *info; if ( _Heap_Is_prev_used(next_block) ) info = &the_info->Used; 4c92a: 2604 movel %d4,%d3 4c92c: 0683 0000 000c addil #12,%d3 Heap_Block *the_block = the_heap->first_block; Heap_Block *const end = the_heap->last_block; memset(the_info, 0, sizeof(*the_info)); while ( the_block != end ) { 4c932: 2229 0004 movel %a1@(4),%d1 - HEAP_BLOCK_HEADER_SIZE); } RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block ) { return block->size_and_flag & ~HEAP_PREV_BLOCK_USED; 4c936: 70fe moveq #-2,%d0 uintptr_t const the_size = _Heap_Block_size(the_block); Heap_Block *const next_block = _Heap_Block_at(the_block, the_size); Heap_Information *info; if ( _Heap_Is_prev_used(next_block) ) info = &the_info->Used; 4c938: 2043 moveal %d3,%a0 4c93a: c081 andl %d1,%d0 RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); 4c93c: d3c0 addal %d0,%a1 if ( info->largest < the_size ) info->largest = the_size; the_block = next_block; } } 4c93e: 2229 0004 movel %a1@(4),%d1 while ( the_block != end ) { uintptr_t const the_size = _Heap_Block_size(the_block); Heap_Block *const next_block = _Heap_Block_at(the_block, the_size); Heap_Information *info; if ( _Heap_Is_prev_used(next_block) ) 4c942: 0801 0000 btst #0,%d1 4c946: 6602 bnes 4c94a <_Heap_Get_information+0x4a> info = &the_info->Used; else info = &the_info->Free; 4c948: 2044 moveal %d4,%a0 info->number++; 4c94a: 5290 addql #1,%a0@ info->total += the_size; 4c94c: d1a8 0008 addl %d0,%a0@(8) if ( info->largest < the_size ) 4c950: b0a8 0004 cmpl %a0@(4),%d0 4c954: 6304 blss 4c95a <_Heap_Get_information+0x5a> info->largest = the_size; 4c956: 2140 0004 movel %d0,%a0@(4) Heap_Block *the_block = the_heap->first_block; Heap_Block *const end = the_heap->last_block; memset(the_info, 0, sizeof(*the_info)); while ( the_block != end ) { 4c95a: b3c2 cmpal %d2,%a1 4c95c: 66d8 bnes 4c936 <_Heap_Get_information+0x36> if ( info->largest < the_size ) info->largest = the_size; the_block = next_block; } } 4c95e: 4cd7 041c moveml %sp@,%d2-%d4/%a2 4c962: 4e5e unlk %fp ... =============================================================================== 00047556 <_Heap_Initialize>: Heap_Control *heap, void *heap_area_begin_ptr, uintptr_t heap_area_size, uintptr_t page_size ) { 47556: 4e56 ffe0 linkw %fp,#-32 4755a: 48d7 047c moveml %d2-%d6/%a2,%sp@ 4755e: 246e 0008 moveal %fp@(8),%a2 47562: 282e 000c movel %fp@(12),%d4 47566: 2a2e 0010 movel %fp@(16),%d5 4756a: 242e 0014 movel %fp@(20),%d2 uintptr_t first_block_begin = 0; uintptr_t first_block_size = 0; uintptr_t last_block_begin = 0; uintptr_t min_block_size = 0; bool area_ok = false; Heap_Block *first_block = NULL; 4756e: 42ae fffc clrl %fp@(-4) Heap_Block *last_block = NULL; 47572: 42ae fff8 clrl %fp@(-8) if ( page_size == 0 ) { 47576: 4a82 tstl %d2 47578: 6750 beqs 475ca <_Heap_Initialize+0x74> <== NEVER TAKEN RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_up( uintptr_t value, uintptr_t alignment ) { uintptr_t remainder = value % alignment; 4757a: 7003 moveq #3,%d0 4757c: c082 andl %d2,%d0 if ( remainder != 0 ) { 4757e: 6704 beqs 47584 <_Heap_Initialize+0x2e> <== ALWAYS TAKEN return value - remainder + alignment; 47580: 5882 addql #4,%d2 <== NOT EXECUTED 47582: 9480 subl %d0,%d2 <== NOT EXECUTED page_size = CPU_ALIGNMENT; } else { page_size = _Heap_Align_up( page_size, CPU_ALIGNMENT ); if ( page_size < CPU_ALIGNMENT ) { 47584: 7003 moveq #3,%d0 47586: b082 cmpl %d2,%d0 47588: 6434 bccs 475be <_Heap_Initialize+0x68> <== NEVER TAKEN RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_up( uintptr_t value, uintptr_t alignment ) { uintptr_t remainder = value % alignment; 4758a: 7210 moveq #16,%d1 4758c: 4c42 1000 remul %d2,%d0,%d1 if ( remainder != 0 ) { 47590: 4a80 tstl %d0 47592: 6700 00e8 beqw 4767c <_Heap_Initialize+0x126> return 0; } } min_block_size = _Heap_Align_up( sizeof( Heap_Block ), page_size ); area_ok = _Heap_Get_first_and_last_block( 47596: 486e fff8 pea %fp@(-8) <== NOT EXECUTED return value - remainder + alignment; 4759a: 2602 movel %d2,%d3 <== NOT EXECUTED 4759c: 486e fffc pea %fp@(-4) <== NOT EXECUTED 475a0: 0683 0000 0010 addil #16,%d3 <== NOT EXECUTED 475a6: 9680 subl %d0,%d3 <== NOT EXECUTED 475a8: 2f03 movel %d3,%sp@- <== NOT EXECUTED 475aa: 2f02 movel %d2,%sp@- <== NOT EXECUTED 475ac: 2f05 movel %d5,%sp@- <== NOT EXECUTED 475ae: 2f04 movel %d4,%sp@- <== NOT EXECUTED 475b0: 4eb9 0004 74ec jsr 474ec <_Heap_Get_first_and_last_block> <== NOT EXECUTED page_size, min_block_size, &first_block, &last_block ); if ( !area_ok ) { 475b6: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED 475ba: 4a00 tstb %d0 <== NOT EXECUTED 475bc: 662e bnes 475ec <_Heap_Initialize+0x96> <== NOT EXECUTED return 0; 475be: 4280 clrl %d0 _HAssert( _Heap_Is_aligned( _Heap_Alloc_area_of_block( last_block ), page_size ) ); return first_block_size; } 475c0: 4cee 047c ffe0 moveml %fp@(-32),%d2-%d6/%a2 475c6: 4e5e unlk %fp 475c8: 4e75 rts return 0; } } min_block_size = _Heap_Align_up( sizeof( Heap_Block ), page_size ); area_ok = _Heap_Get_first_and_last_block( 475ca: 486e fff8 pea %fp@(-8) <== NOT EXECUTED } else { return value; 475ce: 7610 moveq #16,%d3 <== NOT EXECUTED 475d0: 486e fffc pea %fp@(-4) <== NOT EXECUTED bool area_ok = false; Heap_Block *first_block = NULL; Heap_Block *last_block = NULL; if ( page_size == 0 ) { page_size = CPU_ALIGNMENT; 475d4: 7404 moveq #4,%d2 <== NOT EXECUTED return 0; } } min_block_size = _Heap_Align_up( sizeof( Heap_Block ), page_size ); area_ok = _Heap_Get_first_and_last_block( 475d6: 2f03 movel %d3,%sp@- <== NOT EXECUTED 475d8: 2f02 movel %d2,%sp@- <== NOT EXECUTED 475da: 2f05 movel %d5,%sp@- <== NOT EXECUTED 475dc: 2f04 movel %d4,%sp@- <== NOT EXECUTED 475de: 4eb9 0004 74ec jsr 474ec <_Heap_Get_first_and_last_block> <== NOT EXECUTED page_size, min_block_size, &first_block, &last_block ); if ( !area_ok ) { 475e4: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED 475e8: 4a00 tstb %d0 <== NOT EXECUTED 475ea: 67d2 beqs 475be <_Heap_Initialize+0x68> <== NOT EXECUTED return 0; } memset(heap, 0, sizeof(*heap)); 475ec: 4878 0058 pea 58 uintptr_t page_size ) { Heap_Statistics *const stats = &heap->stats; uintptr_t const heap_area_begin = (uintptr_t) heap_area_begin_ptr; uintptr_t const heap_area_end = heap_area_begin + heap_area_size; 475f0: da84 addl %d4,%d5 ); if ( !area_ok ) { return 0; } memset(heap, 0, sizeof(*heap)); 475f2: 42a7 clrl %sp@- 475f4: 2f0a movel %a2,%sp@- 475f6: 4eb9 0004 e178 jsr 4e178 stats->size = first_block_size; stats->free_size = first_block_size; stats->min_free_size = first_block_size; stats->free_blocks = 1; stats->max_free_blocks = 1; stats->instance = instance++; 475fc: 2239 0005 dc80 movel 5dc80 ,%d1 47602: 2c01 movel %d1,%d6 47604: 5286 addql #1,%d6 ); _HAssert( _Heap_Is_aligned( _Heap_Alloc_area_of_block( last_block ), page_size ) ); return first_block_size; 47606: 4fef 000c lea %sp@(12),%sp heap->Protection.block_check = _Heap_Protection_block_check_default; heap->Protection.block_error = _Heap_Protection_block_error_default; #endif first_block_begin = (uintptr_t) first_block; last_block_begin = (uintptr_t) last_block; 4760a: 226e fff8 moveal %fp@(-8),%a1 first_block_size = last_block_begin - first_block_begin; 4760e: 2009 movel %a1,%d0 heap->Protection.block_initialize = _Heap_Protection_block_initialize_default; heap->Protection.block_check = _Heap_Protection_block_check_default; heap->Protection.block_error = _Heap_Protection_block_error_default; #endif first_block_begin = (uintptr_t) first_block; 47610: 206e fffc moveal %fp@(-4),%a0 last_block_begin = (uintptr_t) last_block; first_block_size = last_block_begin - first_block_begin; 47614: 9088 subl %a0,%d0 stats->size = first_block_size; stats->free_size = first_block_size; stats->min_free_size = first_block_size; stats->free_blocks = 1; stats->max_free_blocks = 1; stats->instance = instance++; 47616: 23c6 0005 dc80 movel %d6,5dc80 last_block_begin = (uintptr_t) last_block; first_block_size = last_block_begin - first_block_begin; /* First block */ first_block->prev_size = heap_area_end; first_block->size_and_flag = first_block_size | HEAP_PREV_BLOCK_USED; 4761c: 7c01 moveq #1,%d6 4761e: 8c80 orl %d0,%d6 first_block_begin = (uintptr_t) first_block; last_block_begin = (uintptr_t) last_block; first_block_size = last_block_begin - first_block_begin; /* First block */ first_block->prev_size = heap_area_end; 47620: 2085 movel %d5,%a0@ first_block->size_and_flag = first_block_size | HEAP_PREV_BLOCK_USED; 47622: 2146 0004 movel %d6,%a0@(4) /* Statistics */ stats->size = first_block_size; stats->free_size = first_block_size; stats->min_free_size = first_block_size; stats->free_blocks = 1; 47626: 7c01 moveq #1,%d6 first_block_size = last_block_begin - first_block_begin; /* First block */ first_block->prev_size = heap_area_end; first_block->size_and_flag = first_block_size | HEAP_PREV_BLOCK_USED; first_block->next = _Heap_Free_list_tail( heap ); 47628: 214a 0008 movel %a2,%a0@(8) first_block->prev = _Heap_Free_list_head( heap ); 4762c: 214a 000c movel %a2,%a0@(12) _Heap_Protection_block_initialize( heap, first_block ); /* Heap control */ heap->page_size = page_size; 47630: 2542 0010 movel %d2,%a2@(16) * This feature will be used to terminate the scattered heap area list. See * also _Heap_Extend(). */ RTEMS_INLINE_ROUTINE void _Heap_Set_last_block_size( Heap_Control *heap ) { _Heap_Block_set_size( 47634: 2408 movel %a0,%d2 47636: 9489 subl %a1,%d2 heap->min_block_size = min_block_size; 47638: 2543 0014 movel %d3,%a2@(20) heap->area_begin = heap_area_begin; 4763c: 2544 0018 movel %d4,%a2@(24) heap->area_end = heap_area_end; 47640: 2545 001c movel %d5,%a2@(28) heap->first_block = first_block; 47644: 2548 0020 movel %a0,%a2@(32) heap->last_block = last_block; 47648: 2549 0024 movel %a1,%a2@(36) 4764c: 2342 0004 movel %d2,%a1@(4) _Heap_Free_list_head( heap )->next = first_block; _Heap_Free_list_tail( heap )->prev = first_block; /* Last block */ last_block->prev_size = first_block_size; 47650: 2280 movel %d0,%a1@ heap->min_block_size = min_block_size; heap->area_begin = heap_area_begin; heap->area_end = heap_area_end; heap->first_block = first_block; heap->last_block = last_block; _Heap_Free_list_head( heap )->next = first_block; 47652: 2548 0008 movel %a0,%a2@(8) _Heap_Free_list_tail( heap )->prev = first_block; 47656: 2548 000c movel %a0,%a2@(12) last_block->size_and_flag = 0; _Heap_Set_last_block_size( heap ); _Heap_Protection_block_initialize( heap, last_block ); /* Statistics */ stats->size = first_block_size; 4765a: 2540 002c movel %d0,%a2@(44) stats->free_size = first_block_size; 4765e: 2540 0030 movel %d0,%a2@(48) stats->min_free_size = first_block_size; 47662: 2540 0034 movel %d0,%a2@(52) stats->free_blocks = 1; 47666: 2546 0038 movel %d6,%a2@(56) stats->max_free_blocks = 1; 4766a: 2546 003c movel %d6,%a2@(60) stats->instance = instance++; 4766e: 2541 0028 movel %d1,%a2@(40) _HAssert( _Heap_Is_aligned( _Heap_Alloc_area_of_block( last_block ), page_size ) ); return first_block_size; } 47672: 4cee 047c ffe0 moveml %fp@(-32),%d2-%d6/%a2 47678: 4e5e unlk %fp 4767a: 4e75 rts return 0; } } min_block_size = _Heap_Align_up( sizeof( Heap_Block ), page_size ); area_ok = _Heap_Get_first_and_last_block( 4767c: 486e fff8 pea %fp@(-8) uintptr_t remainder = value % alignment; if ( remainder != 0 ) { return value - remainder + alignment; } else { return value; 47680: 7610 moveq #16,%d3 47682: 486e fffc pea %fp@(-4) 47686: 2f03 movel %d3,%sp@- 47688: 2f02 movel %d2,%sp@- 4768a: 2f05 movel %d5,%sp@- 4768c: 2f04 movel %d4,%sp@- 4768e: 4eb9 0004 74ec jsr 474ec <_Heap_Get_first_and_last_block> page_size, min_block_size, &first_block, &last_block ); if ( !area_ok ) { 47694: 4fef 0018 lea %sp@(24),%sp 47698: 4a00 tstb %d0 4769a: 6700 ff22 beqw 475be <_Heap_Initialize+0x68> 4769e: 6000 ff4c braw 475ec <_Heap_Initialize+0x96> =============================================================================== 0005b11c <_Heap_Resize_block>: void *alloc_begin_ptr, uintptr_t new_alloc_size, uintptr_t *old_size, uintptr_t *new_size ) { 5b11c: 4e56 ffe4 linkw %fp,#-28 <== NOT EXECUTED 5b120: 226e 0014 moveal %fp@(20),%a1 <== NOT EXECUTED 5b124: 48d7 1c3c moveml %d2-%d5/%a2-%a4,%sp@ <== NOT EXECUTED 5b128: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment); 5b12c: 2202 movel %d2,%d1 <== NOT EXECUTED 5b12e: 2042 moveal %d2,%a0 <== NOT EXECUTED 5b130: 5188 subql #8,%a0 <== NOT EXECUTED 5b132: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 5b136: 4c6a 1000 0010 remul %a2@(16),%d0,%d1 <== NOT EXECUTED 5b13c: 266e 0018 moveal %fp@(24),%a3 <== NOT EXECUTED uintptr_t alloc_begin, uintptr_t page_size ) { return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size ) - HEAP_BLOCK_HEADER_SIZE); 5b140: 91c0 subal %d0,%a0 <== NOT EXECUTED uintptr_t const alloc_begin = (uintptr_t) alloc_begin_ptr; Heap_Block *const block = _Heap_Block_of_alloc_area( alloc_begin, page_size ); *old_size = 0; 5b142: 4291 clrl %a1@ <== NOT EXECUTED void *alloc_begin_ptr, uintptr_t new_alloc_size, uintptr_t *old_size, uintptr_t *new_size ) { 5b144: 202e 0010 movel %fp@(16),%d0 <== NOT EXECUTED uintptr_t const alloc_begin = (uintptr_t) alloc_begin_ptr; Heap_Block *const block = _Heap_Block_of_alloc_area( alloc_begin, page_size ); *old_size = 0; *new_size = 0; 5b148: 4293 clrl %a3@ <== NOT EXECUTED const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block && (uintptr_t) block <= (uintptr_t) heap->last_block; 5b14a: b1ea 0020 cmpal %a2@(32),%a0 <== NOT EXECUTED 5b14e: 6500 0098 bcsw 5b1e8 <_Heap_Resize_block+0xcc> <== NOT EXECUTED 5b152: b1ea 0024 cmpal %a2@(36),%a0 <== NOT EXECUTED 5b156: 6200 0090 bhiw 5b1e8 <_Heap_Resize_block+0xcc> <== NOT EXECUTED - HEAP_BLOCK_HEADER_SIZE); } RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block ) { return block->size_and_flag & ~HEAP_PREV_BLOCK_USED; 5b15a: 76fe moveq #-2,%d3 <== NOT EXECUTED 5b15c: 78fe moveq #-2,%d4 <== NOT EXECUTED block->size_and_flag = size | flag; } RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used( const Heap_Block *block ) { return block->size_and_flag & HEAP_PREV_BLOCK_USED; 5b15e: 7a01 moveq #1,%d5 <== NOT EXECUTED uintptr_t const block_begin = (uintptr_t) block; uintptr_t block_size = _Heap_Block_size( block ); uintptr_t block_end = block_begin + block_size; uintptr_t alloc_size = block_end - alloc_begin + HEAP_ALLOC_BONUS; 5b160: 7204 moveq #4,%d1 <== NOT EXECUTED 5b162: 9282 subl %d2,%d1 <== NOT EXECUTED - HEAP_BLOCK_HEADER_SIZE); } RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block ) { return block->size_and_flag & ~HEAP_PREV_BLOCK_USED; 5b164: c6a8 0004 andl %a0@(4),%d3 <== NOT EXECUTED { Heap_Statistics *const stats = &heap->stats; uintptr_t const block_begin = (uintptr_t) block; uintptr_t block_size = _Heap_Block_size( block ); uintptr_t block_end = block_begin + block_size; 5b168: 49f0 3800 lea %a0@(00000000,%d3:l),%a4 <== NOT EXECUTED uintptr_t alloc_size = block_end - alloc_begin + HEAP_ALLOC_BONUS; 5b16c: d28c addl %a4,%d1 <== NOT EXECUTED 5b16e: c8ac 0004 andl %a4@(4),%d4 <== NOT EXECUTED block->size_and_flag = size | flag; } RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used( const Heap_Block *block ) { return block->size_and_flag & HEAP_PREV_BLOCK_USED; 5b172: cab4 4804 andl %a4@(00000004,%d4:l),%d5 <== NOT EXECUTED bool next_block_is_free = _Heap_Is_free( next_block );; _HAssert( _Heap_Is_block_in_heap( heap, next_block ) ); _HAssert( _Heap_Is_prev_used( next_block ) ); *old_size = alloc_size; 5b176: 2281 movel %d1,%a1@ <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool _Heap_Is_free( const Heap_Block *block ) { return !_Heap_Is_used( block ); 5b178: 4a85 tstl %d5 <== NOT EXECUTED 5b17a: 57c5 seq %d5 <== NOT EXECUTED 5b17c: 4485 negl %d5 <== NOT EXECUTED if ( next_block_is_free ) { 5b17e: 4a05 tstb %d5 <== NOT EXECUTED 5b180: 6672 bnes 5b1f4 <_Heap_Resize_block+0xd8> <== NOT EXECUTED block_size += next_block_size; alloc_size += next_block_size; } if ( new_alloc_size > alloc_size ) { 5b182: b280 cmpl %d0,%d1 <== NOT EXECUTED 5b184: 6576 bcss 5b1fc <_Heap_Resize_block+0xe0> <== NOT EXECUTED return HEAP_RESIZE_UNSATISFIED; } if ( next_block_is_free ) { 5b186: 4a05 tstb %d5 <== NOT EXECUTED 5b188: 672a beqs 5b1b4 <_Heap_Resize_block+0x98> <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Heap_Block_set_size( Heap_Block *block, uintptr_t size ) { uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED; 5b18a: 7201 moveq #1,%d1 <== NOT EXECUTED 5b18c: c2a8 0004 andl %a0@(4),%d1 <== NOT EXECUTED new_size ); } else { return HEAP_RESIZE_FATAL_ERROR; } } 5b190: 226c 0008 moveal %a4@(8),%a1 <== NOT EXECUTED block->size_and_flag = size | flag; 5b194: 8283 orl %d3,%d1 <== NOT EXECUTED 5b196: 286c 000c moveal %a4@(12),%a4 <== NOT EXECUTED 5b19a: 2141 0004 movel %d1,%a0@(4) <== NOT EXECUTED _Heap_Block_set_size( block, block_size ); _Heap_Free_list_remove( next_block ); next_block = _Heap_Block_at( block, block_size ); next_block->size_and_flag |= HEAP_PREV_BLOCK_USED; 5b19e: 7201 moveq #1,%d1 <== NOT EXECUTED 5b1a0: 83b0 3804 orl %d1,%a0@(00000004,%d3:l) <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block ) { Heap_Block *next = block->next; Heap_Block *prev = block->prev; prev->next = next; 5b1a4: 2949 0008 movel %a1,%a4@(8) <== NOT EXECUTED next->prev = prev; 5b1a8: 234c 000c movel %a4,%a1@(12) <== NOT EXECUTED /* Statistics */ --stats->free_blocks; 5b1ac: 53aa 0038 subql #1,%a2@(56) <== NOT EXECUTED stats->free_size -= next_block_size; 5b1b0: 99aa 0030 subl %d4,%a2@(48) <== NOT EXECUTED } block = _Heap_Block_allocate( heap, block, alloc_begin, new_alloc_size ); 5b1b4: 2f00 movel %d0,%sp@- <== NOT EXECUTED 5b1b6: 2f02 movel %d2,%sp@- <== NOT EXECUTED 5b1b8: 2f08 movel %a0,%sp@- <== NOT EXECUTED 5b1ba: 2f0a movel %a2,%sp@- <== NOT EXECUTED 5b1bc: 4eb9 0004 76a2 jsr 476a2 <_Heap_Block_allocate> <== NOT EXECUTED block_size = _Heap_Block_size( block ); next_block = _Heap_Block_at( block, block_size ); *new_size = (uintptr_t) next_block - alloc_begin + HEAP_ALLOC_BONUS; /* Statistics */ ++stats->resizes; 5b1c2: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED - HEAP_BLOCK_HEADER_SIZE); } RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block ) { return block->size_and_flag & ~HEAP_PREV_BLOCK_USED; 5b1c6: 72fe moveq #-2,%d1 <== NOT EXECUTED /* Statistics */ --stats->free_blocks; stats->free_size -= next_block_size; } block = _Heap_Block_allocate( heap, block, alloc_begin, new_alloc_size ); 5b1c8: 2040 moveal %d0,%a0 <== NOT EXECUTED block_size = _Heap_Block_size( block ); next_block = _Heap_Block_at( block, block_size ); *new_size = (uintptr_t) next_block - alloc_begin + HEAP_ALLOC_BONUS; 5b1ca: 2240 moveal %d0,%a1 <== NOT EXECUTED 5b1cc: 93c2 subal %d2,%a1 <== NOT EXECUTED /* Statistics */ ++stats->resizes; return HEAP_RESIZE_SUCCESSFUL; 5b1ce: 4280 clrl %d0 <== NOT EXECUTED 5b1d0: c2a8 0004 andl %a0@(4),%d1 <== NOT EXECUTED block = _Heap_Block_allocate( heap, block, alloc_begin, new_alloc_size ); block_size = _Heap_Block_size( block ); next_block = _Heap_Block_at( block, block_size ); *new_size = (uintptr_t) next_block - alloc_begin + HEAP_ALLOC_BONUS; 5b1d4: 43f1 1804 lea %a1@(00000004,%d1:l),%a1 <== NOT EXECUTED 5b1d8: 2689 movel %a1,%a3@ <== NOT EXECUTED /* Statistics */ ++stats->resizes; 5b1da: 52aa 0054 addql #1,%a2@(84) <== NOT EXECUTED new_size ); } else { return HEAP_RESIZE_FATAL_ERROR; } } 5b1de: 4cee 1c3c ffe4 moveml %fp@(-28),%d2-%d5/%a2-%a4 <== NOT EXECUTED 5b1e4: 4e5e unlk %fp <== NOT EXECUTED 5b1e6: 4e75 rts <== NOT EXECUTED new_alloc_size, old_size, new_size ); } else { return HEAP_RESIZE_FATAL_ERROR; 5b1e8: 7002 moveq #2,%d0 <== NOT EXECUTED } } 5b1ea: 4cee 1c3c ffe4 moveml %fp@(-28),%d2-%d5/%a2-%a4 <== NOT EXECUTED 5b1f0: 4e5e unlk %fp <== NOT EXECUTED 5b1f2: 4e75 rts <== NOT EXECUTED _HAssert( _Heap_Is_prev_used( next_block ) ); *old_size = alloc_size; if ( next_block_is_free ) { block_size += next_block_size; 5b1f4: d684 addl %d4,%d3 <== NOT EXECUTED alloc_size += next_block_size; 5b1f6: d284 addl %d4,%d1 <== NOT EXECUTED } if ( new_alloc_size > alloc_size ) { 5b1f8: b280 cmpl %d0,%d1 <== NOT EXECUTED 5b1fa: 648a bccs 5b186 <_Heap_Resize_block+0x6a> <== NOT EXECUTED return HEAP_RESIZE_UNSATISFIED; 5b1fc: 7001 moveq #1,%d0 <== NOT EXECUTED new_size ); } else { return HEAP_RESIZE_FATAL_ERROR; } } 5b1fe: 4cee 1c3c ffe4 moveml %fp@(-28),%d2-%d5/%a2-%a4 <== NOT EXECUTED 5b204: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 0005b208 <_Heap_Size_of_alloc_area>: bool _Heap_Size_of_alloc_area( Heap_Control *heap, void *alloc_begin_ptr, uintptr_t *alloc_size ) { 5b208: 4e56 0000 linkw %fp,#0 5b20c: 202e 000c movel %fp@(12),%d0 RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment); 5b210: 2040 moveal %d0,%a0 5b212: 5188 subql #8,%a0 5b214: 226e 0008 moveal %fp@(8),%a1 5b218: 2f02 movel %d2,%sp@- 5b21a: 2400 movel %d0,%d2 5b21c: 4c69 2001 0010 remul %a1@(16),%d1,%d2 uintptr_t alloc_begin, uintptr_t page_size ) { return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size ) - HEAP_BLOCK_HEADER_SIZE); 5b222: 91c1 subal %d1,%a0 RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap( const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block 5b224: 2229 0020 movel %a1@(32),%d1 && (uintptr_t) block <= (uintptr_t) heap->last_block; 5b228: b288 cmpl %a0,%d1 5b22a: 6236 bhis 5b262 <_Heap_Size_of_alloc_area+0x5a> <== NEVER TAKEN 5b22c: 2269 0024 moveal %a1@(36),%a1 5b230: b3c8 cmpal %a0,%a1 5b232: 652e bcss 5b262 <_Heap_Size_of_alloc_area+0x5a> <== NEVER TAKEN - HEAP_BLOCK_HEADER_SIZE); } RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block ) { return block->size_and_flag & ~HEAP_PREV_BLOCK_USED; 5b234: 74fe moveq #-2,%d2 5b236: c4a8 0004 andl %a0@(4),%d2 RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); 5b23a: d1c2 addal %d2,%a0 const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block && (uintptr_t) block <= (uintptr_t) heap->last_block; 5b23c: b1c1 cmpal %d1,%a0 5b23e: 6522 bcss 5b262 <_Heap_Size_of_alloc_area+0x5a> <== NEVER TAKEN 5b240: b1c9 cmpal %a1,%a0 5b242: 621e bhis 5b262 <_Heap_Size_of_alloc_area+0x5a> <== NEVER TAKEN block->size_and_flag = size | flag; } RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used( const Heap_Block *block ) { return block->size_and_flag & HEAP_PREV_BLOCK_USED; 5b244: 7201 moveq #1,%d1 5b246: c2a8 0004 andl %a0@(4),%d1 block_size = _Heap_Block_size( block ); next_block = _Heap_Block_at( block, block_size ); if ( !_Heap_Is_block_in_heap( heap, next_block ) || !_Heap_Is_prev_used( next_block ) 5b24a: 6716 beqs 5b262 <_Heap_Size_of_alloc_area+0x5a> <== NEVER TAKEN ) { return false; } *alloc_size = (uintptr_t) next_block + HEAP_ALLOC_BONUS - alloc_begin; 5b24c: 7204 moveq #4,%d1 5b24e: 9280 subl %d0,%d1 5b250: 2001 movel %d1,%d0 5b252: d088 addl %a0,%d0 5b254: 226e 0010 moveal %fp@(16),%a1 return true; } 5b258: 241f movel %sp@+,%d2 5b25a: 4e5e unlk %fp || !_Heap_Is_prev_used( next_block ) ) { return false; } *alloc_size = (uintptr_t) next_block + HEAP_ALLOC_BONUS - alloc_begin; 5b25c: 2280 movel %d0,%a1@ return true; 5b25e: 7001 moveq #1,%d0 } 5b260: 4e75 rts 5b262: 241f movel %sp@+,%d2 <== NOT EXECUTED 5b264: 4e5e unlk %fp <== NOT EXECUTED if ( !_Heap_Is_block_in_heap( heap, next_block ) || !_Heap_Is_prev_used( next_block ) ) { return false; 5b266: 4200 clrb %d0 <== NOT EXECUTED } *alloc_size = (uintptr_t) next_block + HEAP_ALLOC_BONUS - alloc_begin; return true; } ... =============================================================================== 000481d2 <_Heap_Walk>: bool _Heap_Walk( Heap_Control *heap, int source, bool dump ) { 481d2: 4e56 ffc4 linkw %fp,#-60 <== NOT EXECUTED 481d6: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ <== NOT EXECUTED 481da: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED uintptr_t const min_block_size = heap->min_block_size; Heap_Block *const first_block = heap->first_block; Heap_Block *const last_block = heap->last_block; Heap_Block *block = first_block; Heap_Walk_printer printer = dump ? _Heap_Walk_print : _Heap_Walk_print_nothing; 481de: 4bfa ff94 lea %pc@(48174 <_Heap_Walk_print_nothing>),%a5<== NOT EXECUTED bool _Heap_Walk( Heap_Control *heap, int source, bool dump ) { 481e2: 2a2e 000c movel %fp@(12),%d5 <== NOT EXECUTED uintptr_t const page_size = heap->page_size; 481e6: 262a 0010 movel %a2@(16),%d3 <== NOT EXECUTED uintptr_t const min_block_size = heap->min_block_size; 481ea: 2c2a 0014 movel %a2@(20),%d6 <== NOT EXECUTED Heap_Block *const first_block = heap->first_block; 481ee: 282a 0020 movel %a2@(32),%d4 <== NOT EXECUTED Heap_Block *const last_block = heap->last_block; 481f2: 2e2a 0024 movel %a2@(36),%d7 <== NOT EXECUTED Heap_Block *block = first_block; Heap_Walk_printer printer = dump ? _Heap_Walk_print : _Heap_Walk_print_nothing; 481f6: 4a2e 0013 tstb %fp@(19) <== NOT EXECUTED 481fa: 6704 beqs 48200 <_Heap_Walk+0x2e> <== NOT EXECUTED 481fc: 4bfa ff7e lea %pc@(4817c <_Heap_Walk_print>),%a5 <== NOT EXECUTED if ( !_System_state_Is_up( _System_state_Get() ) ) { 48200: 7003 moveq #3,%d0 <== NOT EXECUTED 48202: b0b9 0006 0b08 cmpl 60b08 <_System_state_Current>,%d0 <== NOT EXECUTED 48208: 670c beqs 48216 <_Heap_Walk+0x44> <== NOT EXECUTED block = next_block; } while ( block != first_block ); return true; } 4820a: 4cee 3cfc ffc4 moveml %fp@(-60),%d2-%d7/%a2-%a5 <== NOT EXECUTED } block = next_block; } while ( block != first_block ); return true; 48210: 7001 moveq #1,%d0 <== NOT EXECUTED } 48212: 4e5e unlk %fp <== NOT EXECUTED 48214: 4e75 rts <== NOT EXECUTED Heap_Block *const first_free_block = _Heap_Free_list_first( heap ); Heap_Block *const last_free_block = _Heap_Free_list_last( heap ); Heap_Block *const first_block = heap->first_block; Heap_Block *const last_block = heap->last_block; (*printer)( 48216: 2f2a 000c movel %a2@(12),%sp@- <== NOT EXECUTED 4821a: 2f2a 0008 movel %a2@(8),%sp@- <== NOT EXECUTED 4821e: 2f07 movel %d7,%sp@- <== NOT EXECUTED 48220: 2f04 movel %d4,%sp@- <== NOT EXECUTED 48222: 2f2a 001c movel %a2@(28),%sp@- <== NOT EXECUTED 48226: 2f2a 0018 movel %a2@(24),%sp@- <== NOT EXECUTED 4822a: 2f06 movel %d6,%sp@- <== NOT EXECUTED 4822c: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4822e: 4879 0005 cfeb pea 5cfeb <_Status_Object_name_errors_to_status+0x5d><== NOT EXECUTED 48234: 42a7 clrl %sp@- <== NOT EXECUTED 48236: 2f05 movel %d5,%sp@- <== NOT EXECUTED 48238: 4e95 jsr %a5@ <== NOT EXECUTED heap->area_begin, heap->area_end, first_block, last_block, first_free_block, last_free_block ); if ( page_size == 0 ) { 4823a: 4fef 002c lea %sp@(44),%sp <== NOT EXECUTED 4823e: 4a83 tstl %d3 <== NOT EXECUTED 48240: 6700 0082 beqw 482c4 <_Heap_Walk+0xf2> <== NOT EXECUTED ) { #if (CPU_ALIGNMENT == 0) return true; #else return (((uintptr_t)address % CPU_ALIGNMENT) == 0); 48244: 7003 moveq #3,%d0 <== NOT EXECUTED 48246: c083 andl %d3,%d0 <== NOT EXECUTED (*printer)( source, true, "page size is zero\n" ); return false; } if ( !_Addresses_Is_aligned( (void *) page_size ) ) { 48248: 6600 0090 bnew 482da <_Heap_Walk+0x108> <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned( uintptr_t value, uintptr_t alignment ) { return (value % alignment) == 0; 4824c: 2206 movel %d6,%d1 <== NOT EXECUTED 4824e: 4c43 1000 remul %d3,%d0,%d1 <== NOT EXECUTED ); return false; } if ( !_Heap_Is_aligned( min_block_size, page_size ) ) { 48252: 4a80 tstl %d0 <== NOT EXECUTED 48254: 6600 00a4 bnew 482fa <_Heap_Walk+0x128> <== NOT EXECUTED RTEMS_INLINE_ROUTINE uintptr_t _Heap_Alloc_area_of_block( const Heap_Block *block ) { return (uintptr_t) block + HEAP_BLOCK_HEADER_SIZE; 48258: 2004 movel %d4,%d0 <== NOT EXECUTED 4825a: 5080 addql #8,%d0 <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned( uintptr_t value, uintptr_t alignment ) { return (value % alignment) == 0; 4825c: 4c43 0001 remul %d3,%d1,%d0 <== NOT EXECUTED ); return false; } if ( 48260: 4a81 tstl %d1 <== NOT EXECUTED 48262: 6600 00ae bnew 48312 <_Heap_Walk+0x140> <== NOT EXECUTED block = next_block; } while ( block != first_block ); return true; } 48266: 2044 moveal %d4,%a0 <== NOT EXECUTED 48268: 2228 0004 movel %a0@(4),%d1 <== NOT EXECUTED 4826c: 2d41 ffec movel %d1,%fp@(-20) <== NOT EXECUTED ); return false; } if ( !_Heap_Is_prev_used( first_block ) ) { 48270: 0801 0000 btst #0,%d1 <== NOT EXECUTED 48274: 6700 0188 beqw 483fe <_Heap_Walk+0x22c> <== NOT EXECUTED - HEAP_BLOCK_HEADER_SIZE); } RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block ) { return block->size_and_flag & ~HEAP_PREV_BLOCK_USED; 48278: 2047 moveal %d7,%a0 <== NOT EXECUTED 4827a: 72fe moveq #-2,%d1 <== NOT EXECUTED 4827c: c2a8 0004 andl %a0@(4),%d1 <== NOT EXECUTED RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); 48280: d1c1 addal %d1,%a0 <== NOT EXECUTED block->size_and_flag = size | flag; } RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used( const Heap_Block *block ) { return block->size_and_flag & HEAP_PREV_BLOCK_USED; 48282: 7201 moveq #1,%d1 <== NOT EXECUTED 48284: c2a8 0004 andl %a0@(4),%d1 <== NOT EXECUTED ); return false; } if ( _Heap_Is_free( last_block ) ) { 48288: 6724 beqs 482ae <_Heap_Walk+0xdc> <== NOT EXECUTED ); return false; } if ( 4828a: b1c4 cmpal %d4,%a0 <== NOT EXECUTED 4828c: 6700 009c beqw 4832a <_Heap_Walk+0x158> <== NOT EXECUTED _Heap_Block_at( last_block, _Heap_Block_size( last_block ) ) != first_block ) { (*printer)( 48290: 4879 0005 d145 pea 5d145 <_Status_Object_name_errors_to_status+0x1b7><== NOT EXECUTED 48296: 4878 0001 pea 1 <== NOT EXECUTED 4829a: 2f05 movel %d5,%sp@- <== NOT EXECUTED 4829c: 4e95 jsr %a5@ <== NOT EXECUTED 4829e: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED if ( !_System_state_Is_up( _System_state_Get() ) ) { return true; } if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; 482a2: 4200 clrb %d0 <== NOT EXECUTED block = next_block; } while ( block != first_block ); return true; } 482a4: 4cee 3cfc ffc4 moveml %fp@(-60),%d2-%d7/%a2-%a5 <== NOT EXECUTED 482aa: 4e5e unlk %fp <== NOT EXECUTED 482ac: 4e75 rts <== NOT EXECUTED return false; } if ( _Heap_Is_free( last_block ) ) { (*printer)( 482ae: 4879 0005 d130 pea 5d130 <_Status_Object_name_errors_to_status+0x1a2><== NOT EXECUTED } if ( _Heap_Block_at( last_block, _Heap_Block_size( last_block ) ) != first_block ) { (*printer)( 482b4: 4878 0001 pea 1 <== NOT EXECUTED 482b8: 2f05 movel %d5,%sp@- <== NOT EXECUTED 482ba: 4e95 jsr %a5@ <== NOT EXECUTED 482bc: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED if ( !_System_state_Is_up( _System_state_Get() ) ) { return true; } if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; 482c0: 4200 clrb %d0 <== NOT EXECUTED 482c2: 60e0 bras 482a4 <_Heap_Walk+0xd2> <== NOT EXECUTED first_block, last_block, first_free_block, last_free_block ); if ( page_size == 0 ) { (*printer)( source, true, "page size is zero\n" ); 482c4: 4879 0005 d07c pea 5d07c <_Status_Object_name_errors_to_status+0xee><== NOT EXECUTED } if ( _Heap_Block_at( last_block, _Heap_Block_size( last_block ) ) != first_block ) { (*printer)( 482ca: 4878 0001 pea 1 <== NOT EXECUTED 482ce: 2f05 movel %d5,%sp@- <== NOT EXECUTED 482d0: 4e95 jsr %a5@ <== NOT EXECUTED 482d2: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED if ( !_System_state_Is_up( _System_state_Get() ) ) { return true; } if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; 482d6: 4200 clrb %d0 <== NOT EXECUTED 482d8: 60ca bras 482a4 <_Heap_Walk+0xd2> <== NOT EXECUTED return false; } if ( !_Addresses_Is_aligned( (void *) page_size ) ) { (*printer)( 482da: 2f03 movel %d3,%sp@- <== NOT EXECUTED 482dc: 4879 0005 d08f pea 5d08f <_Status_Object_name_errors_to_status+0x101><== NOT EXECUTED return false; } if ( !_Heap_Walk_is_in_free_list( heap, block ) ) { (*printer)( 482e2: 4878 0001 pea 1 <== NOT EXECUTED 482e6: 2f05 movel %d5,%sp@- <== NOT EXECUTED 482e8: 4e95 jsr %a5@ <== NOT EXECUTED 482ea: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED return false; } if ( !_Heap_Is_prev_used( next_block ) ) { if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) { return false; 482ee: 4200 clrb %d0 <== NOT EXECUTED block = next_block; } while ( block != first_block ); return true; } 482f0: 4cee 3cfc ffc4 moveml %fp@(-60),%d2-%d7/%a2-%a5 <== NOT EXECUTED 482f6: 4e5e unlk %fp <== NOT EXECUTED 482f8: 4e75 rts <== NOT EXECUTED return false; } if ( !_Heap_Is_aligned( min_block_size, page_size ) ) { (*printer)( 482fa: 2f06 movel %d6,%sp@- <== NOT EXECUTED 482fc: 4879 0005 d0ad pea 5d0ad <_Status_Object_name_errors_to_status+0x11f><== NOT EXECUTED return false; } if ( !_Heap_Walk_is_in_free_list( heap, block ) ) { (*printer)( 48302: 4878 0001 pea 1 <== NOT EXECUTED 48306: 2f05 movel %d5,%sp@- <== NOT EXECUTED 48308: 4e95 jsr %a5@ <== NOT EXECUTED 4830a: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED return false; } if ( !_Heap_Is_prev_used( next_block ) ) { if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) { return false; 4830e: 4200 clrb %d0 <== NOT EXECUTED 48310: 60de bras 482f0 <_Heap_Walk+0x11e> <== NOT EXECUTED } if ( !_Heap_Is_aligned( _Heap_Alloc_area_of_block( first_block ), page_size ) ) { (*printer)( 48312: 2f04 movel %d4,%sp@- <== NOT EXECUTED 48314: 4879 0005 d0d1 pea 5d0d1 <_Status_Object_name_errors_to_status+0x143><== NOT EXECUTED return false; } if ( !_Heap_Walk_is_in_free_list( heap, block ) ) { (*printer)( 4831a: 4878 0001 pea 1 <== NOT EXECUTED 4831e: 2f05 movel %d5,%sp@- <== NOT EXECUTED 48320: 4e95 jsr %a5@ <== NOT EXECUTED 48322: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED return false; } if ( !_Heap_Is_prev_used( next_block ) ) { if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) { return false; 48326: 4200 clrb %d0 <== NOT EXECUTED 48328: 60c6 bras 482f0 <_Heap_Walk+0x11e> <== NOT EXECUTED int source, Heap_Walk_printer printer, Heap_Control *heap ) { uintptr_t const page_size = heap->page_size; 4832a: 202a 0010 movel %a2@(16),%d0 <== NOT EXECUTED block = next_block; } while ( block != first_block ); return true; } 4832e: 226a 0008 moveal %a2@(8),%a1 <== NOT EXECUTED int source, Heap_Walk_printer printer, Heap_Control *heap ) { uintptr_t const page_size = heap->page_size; 48332: 2d40 fffc movel %d0,%fp@(-4) <== NOT EXECUTED const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap ); const Heap_Block *const first_free_block = _Heap_Free_list_first( heap ); const Heap_Block *prev_block = free_list_tail; const Heap_Block *free_block = first_free_block; while ( free_block != free_list_tail ) { 48336: b3ca cmpal %a2,%a1 <== NOT EXECUTED 48338: 6700 034e beqw 48688 <_Heap_Walk+0x4b6> <== NOT EXECUTED block = next_block; } while ( block != first_block ); return true; } 4833c: 242a 0020 movel %a2@(32),%d2 <== NOT EXECUTED 48340: 2d42 fff4 movel %d2,%fp@(-12) <== NOT EXECUTED const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block && (uintptr_t) block <= (uintptr_t) heap->last_block; 48344: b3c2 cmpal %d2,%a1 <== NOT EXECUTED 48346: 6500 009a bcsw 483e2 <_Heap_Walk+0x210> <== NOT EXECUTED 4834a: 286a 0024 moveal %a2@(36),%a4 <== NOT EXECUTED 4834e: b3cc cmpal %a4,%a1 <== NOT EXECUTED 48350: 6200 0090 bhiw 483e2 <_Heap_Walk+0x210> <== NOT EXECUTED RTEMS_INLINE_ROUTINE uintptr_t _Heap_Alloc_area_of_block( const Heap_Block *block ) { return (uintptr_t) block + HEAP_BLOCK_HEADER_SIZE; 48354: 47e9 0008 lea %a1@(8),%a3 <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned( uintptr_t value, uintptr_t alignment ) { return (value % alignment) == 0; 48358: 200b movel %a3,%d0 <== NOT EXECUTED 4835a: 222e fffc movel %fp@(-4),%d1 <== NOT EXECUTED 4835e: 4c41 0002 remul %d1,%d2,%d0 <== NOT EXECUTED ); return false; } if ( 48362: 4a82 tstl %d2 <== NOT EXECUTED 48364: 6600 00b0 bnew 48416 <_Heap_Walk+0x244> <== NOT EXECUTED - HEAP_BLOCK_HEADER_SIZE); } RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block ) { return block->size_and_flag & ~HEAP_PREV_BLOCK_USED; 48368: 74fe moveq #-2,%d2 <== NOT EXECUTED block->size_and_flag = size | flag; } RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used( const Heap_Block *block ) { return block->size_and_flag & HEAP_PREV_BLOCK_USED; 4836a: 7001 moveq #1,%d0 <== NOT EXECUTED - HEAP_BLOCK_HEADER_SIZE); } RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block ) { return block->size_and_flag & ~HEAP_PREV_BLOCK_USED; 4836c: c4a9 0004 andl %a1@(4),%d2 <== NOT EXECUTED block->size_and_flag = size | flag; } RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used( const Heap_Block *block ) { return block->size_and_flag & HEAP_PREV_BLOCK_USED; 48370: c0b1 2804 andl %a1@(00000004,%d2:l),%d0 <== NOT EXECUTED ); return false; } if ( _Heap_Is_used( free_block ) ) { 48374: 6600 0304 bnew 4867a <_Heap_Walk+0x4a8> <== NOT EXECUTED 48378: 222e fff4 movel %fp@(-12),%d1 <== NOT EXECUTED 4837c: 240a movel %a2,%d2 <== NOT EXECUTED 4837e: 266e ffec moveal %fp@(-20),%a3 <== NOT EXECUTED 48382: 2d43 fff8 movel %d3,%fp@(-8) <== NOT EXECUTED 48386: 2d44 fff0 movel %d4,%fp@(-16) <== NOT EXECUTED ); return false; } if ( free_block->prev != prev_block ) { 4838a: 2069 000c moveal %a1@(12),%a0 <== NOT EXECUTED 4838e: b488 cmpl %a0,%d2 <== NOT EXECUTED 48390: 6600 02cc bnew 4865e <_Heap_Walk+0x48c> <== NOT EXECUTED return false; } prev_block = free_block; free_block = free_block->next; 48394: 2069 0008 moveal %a1@(8),%a0 <== NOT EXECUTED const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap ); const Heap_Block *const first_free_block = _Heap_Free_list_first( heap ); const Heap_Block *prev_block = free_list_tail; const Heap_Block *free_block = first_free_block; while ( free_block != free_list_tail ) { 48398: b1ca cmpal %a2,%a0 <== NOT EXECUTED 4839a: 6700 0096 beqw 48432 <_Heap_Walk+0x260> <== NOT EXECUTED const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block && (uintptr_t) block <= (uintptr_t) heap->last_block; 4839e: b1c1 cmpal %d1,%a0 <== NOT EXECUTED 483a0: 6542 bcss 483e4 <_Heap_Walk+0x212> <== NOT EXECUTED RTEMS_INLINE_ROUTINE uintptr_t _Heap_Alloc_area_of_block( const Heap_Block *block ) { return (uintptr_t) block + HEAP_BLOCK_HEADER_SIZE; 483a2: 2608 movel %a0,%d3 <== NOT EXECUTED 483a4: 5083 addql #8,%d3 <== NOT EXECUTED const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block && (uintptr_t) block <= (uintptr_t) heap->last_block; 483a6: b9c8 cmpal %a0,%a4 <== NOT EXECUTED 483a8: 653a bcss 483e4 <_Heap_Walk+0x212> <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned( uintptr_t value, uintptr_t alignment ) { return (value % alignment) == 0; 483aa: 282e fffc movel %fp@(-4),%d4 <== NOT EXECUTED ); return false; } if ( _Heap_Is_used( free_block ) ) { 483ae: 2409 movel %a1,%d2 <== NOT EXECUTED 483b0: 2248 moveal %a0,%a1 <== NOT EXECUTED 483b2: 4c44 3000 remul %d4,%d0,%d3 <== NOT EXECUTED ); return false; } if ( 483b6: 4a80 tstl %d0 <== NOT EXECUTED 483b8: 665e bnes 48418 <_Heap_Walk+0x246> <== NOT EXECUTED - HEAP_BLOCK_HEADER_SIZE); } RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block ) { return block->size_and_flag & ~HEAP_PREV_BLOCK_USED; 483ba: 70fe moveq #-2,%d0 <== NOT EXECUTED block->size_and_flag = size | flag; } RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used( const Heap_Block *block ) { return block->size_and_flag & HEAP_PREV_BLOCK_USED; 483bc: 7601 moveq #1,%d3 <== NOT EXECUTED - HEAP_BLOCK_HEADER_SIZE); } RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block ) { return block->size_and_flag & ~HEAP_PREV_BLOCK_USED; 483be: c0a8 0004 andl %a0@(4),%d0 <== NOT EXECUTED block->size_and_flag = size | flag; } RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used( const Heap_Block *block ) { return block->size_and_flag & HEAP_PREV_BLOCK_USED; 483c2: c6b0 0804 andl %a0@(00000004,%d0:l),%d3 <== NOT EXECUTED ); return false; } if ( _Heap_Is_used( free_block ) ) { 483c6: 67c2 beqs 4838a <_Heap_Walk+0x1b8> <== NOT EXECUTED (*printer)( 483c8: 2f08 movel %a0,%sp@- <== NOT EXECUTED 483ca: 4879 0005 d1c4 pea 5d1c4 <_Status_Object_name_errors_to_status+0x236><== NOT EXECUTED return false; } if ( !_Heap_Walk_is_in_free_list( heap, block ) ) { (*printer)( 483d0: 4878 0001 pea 1 <== NOT EXECUTED 483d4: 2f05 movel %d5,%sp@- <== NOT EXECUTED 483d6: 4e95 jsr %a5@ <== NOT EXECUTED 483d8: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED return false; } if ( !_Heap_Is_prev_used( next_block ) ) { if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) { return false; 483dc: 4200 clrb %d0 <== NOT EXECUTED 483de: 6000 ff10 braw 482f0 <_Heap_Walk+0x11e> <== NOT EXECUTED const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block && (uintptr_t) block <= (uintptr_t) heap->last_block; 483e2: 2049 moveal %a1,%a0 <== NOT EXECUTED const Heap_Block *prev_block = free_list_tail; const Heap_Block *free_block = first_free_block; while ( free_block != free_list_tail ) { if ( !_Heap_Is_block_in_heap( heap, free_block ) ) { (*printer)( 483e4: 2f08 movel %a0,%sp@- <== NOT EXECUTED 483e6: 4879 0005 d174 pea 5d174 <_Status_Object_name_errors_to_status+0x1e6><== NOT EXECUTED return false; } if ( !_Heap_Walk_is_in_free_list( heap, block ) ) { (*printer)( 483ec: 4878 0001 pea 1 <== NOT EXECUTED 483f0: 2f05 movel %d5,%sp@- <== NOT EXECUTED 483f2: 4e95 jsr %a5@ <== NOT EXECUTED 483f4: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED return false; } if ( !_Heap_Is_prev_used( next_block ) ) { if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) { return false; 483f8: 4200 clrb %d0 <== NOT EXECUTED 483fa: 6000 fef4 braw 482f0 <_Heap_Walk+0x11e> <== NOT EXECUTED return false; } if ( !_Heap_Is_prev_used( first_block ) ) { (*printer)( 483fe: 4879 0005 d102 pea 5d102 <_Status_Object_name_errors_to_status+0x174><== NOT EXECUTED } if ( _Heap_Block_at( last_block, _Heap_Block_size( last_block ) ) != first_block ) { (*printer)( 48404: 4878 0001 pea 1 <== NOT EXECUTED 48408: 2f05 movel %d5,%sp@- <== NOT EXECUTED 4840a: 4e95 jsr %a5@ <== NOT EXECUTED 4840c: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED if ( !_System_state_Is_up( _System_state_Get() ) ) { return true; } if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; 48410: 4200 clrb %d0 <== NOT EXECUTED 48412: 6000 fe90 braw 482a4 <_Heap_Walk+0xd2> <== NOT EXECUTED ); return false; } if ( 48416: 2049 moveal %a1,%a0 <== NOT EXECUTED !_Heap_Is_aligned( _Heap_Alloc_area_of_block( free_block ), page_size ) ) { (*printer)( 48418: 2f08 movel %a0,%sp@- <== NOT EXECUTED 4841a: 4879 0005 d194 pea 5d194 <_Status_Object_name_errors_to_status+0x206><== NOT EXECUTED return false; } if ( !_Heap_Walk_is_in_free_list( heap, block ) ) { (*printer)( 48420: 4878 0001 pea 1 <== NOT EXECUTED 48424: 2f05 movel %d5,%sp@- <== NOT EXECUTED 48426: 4e95 jsr %a5@ <== NOT EXECUTED 48428: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED return false; } if ( !_Heap_Is_prev_used( next_block ) ) { if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) { return false; 4842c: 4200 clrb %d0 <== NOT EXECUTED 4842e: 6000 fec0 braw 482f0 <_Heap_Walk+0x11e> <== NOT EXECUTED 48432: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED 48436: 282e fff0 movel %fp@(-16),%d4 <== NOT EXECUTED ); return false; } if ( _Heap_Is_used( free_block ) ) { 4843a: 2844 moveal %d4,%a4 <== NOT EXECUTED 4843c: 2d41 fff4 movel %d1,%fp@(-12) <== NOT EXECUTED 48440: 222e fff4 movel %fp@(-12),%d1 <== NOT EXECUTED 48444: 2d4b ffec movel %a3,%fp@(-20) <== NOT EXECUTED 48448: 2d43 fffc movel %d3,%fp@(-4) <== NOT EXECUTED 4844c: 262e ffec movel %fp@(-20),%d3 <== NOT EXECUTED 48450: 2d47 fff0 movel %d7,%fp@(-16) <== NOT EXECUTED - HEAP_BLOCK_HEADER_SIZE); } RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block ) { return block->size_and_flag & ~HEAP_PREV_BLOCK_USED; 48454: 74fe moveq #-2,%d2 <== NOT EXECUTED 48456: c483 andl %d3,%d2 <== NOT EXECUTED RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); 48458: 47f4 2800 lea %a4@(00000000,%d2:l),%a3 <== NOT EXECUTED const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block && (uintptr_t) block <= (uintptr_t) heap->last_block; 4845c: b7c1 cmpal %d1,%a3 <== NOT EXECUTED 4845e: 657e bcss 484de <_Heap_Walk+0x30c> <== NOT EXECUTED 48460: b7ea 0024 cmpal %a2@(36),%a3 <== NOT EXECUTED 48464: 6278 bhis 484de <_Heap_Walk+0x30c> <== NOT EXECUTED uintptr_t const block_begin = (uintptr_t) block; uintptr_t const block_size = _Heap_Block_size( block ); bool const prev_used = _Heap_Is_prev_used( block ); Heap_Block *const next_block = _Heap_Block_at( block, block_size ); uintptr_t const next_block_begin = (uintptr_t) next_block; bool const is_not_last_block = block != last_block; 48466: b9ee fff0 cmpal %fp@(-16),%a4 <== NOT EXECUTED 4846a: 56c7 sne %d7 <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned( uintptr_t value, uintptr_t alignment ) { return (value % alignment) == 0; 4846c: 222e fffc movel %fp@(-4),%d1 <== NOT EXECUTED 48470: 2002 movel %d2,%d0 <== NOT EXECUTED 48472: 3247 moveaw %d7,%a1 <== NOT EXECUTED 48474: 4c41 0007 remul %d1,%d7,%d0 <== NOT EXECUTED 48478: 2009 movel %a1,%d0 <== NOT EXECUTED 4847a: 4480 negl %d0 <== NOT EXECUTED ); return false; } if ( !_Heap_Is_aligned( block_size, page_size ) && is_not_last_block ) { 4847c: 4a87 tstl %d7 <== NOT EXECUTED 4847e: 6704 beqs 48484 <_Heap_Walk+0x2b2> <== NOT EXECUTED 48480: 4a00 tstb %d0 <== NOT EXECUTED 48482: 667c bnes 48500 <_Heap_Walk+0x32e> <== NOT EXECUTED ); return false; } if ( block_size < min_block_size && is_not_last_block ) { 48484: b486 cmpl %d6,%d2 <== NOT EXECUTED 48486: 6406 bccs 4848e <_Heap_Walk+0x2bc> <== NOT EXECUTED 48488: 4a00 tstb %d0 <== NOT EXECUTED 4848a: 6600 008e bnew 4851a <_Heap_Walk+0x348> <== NOT EXECUTED ); return false; } if ( next_block_begin <= block_begin && is_not_last_block ) { 4848e: b7cc cmpal %a4,%a3 <== NOT EXECUTED 48490: 6206 bhis 48498 <_Heap_Walk+0x2c6> <== NOT EXECUTED 48492: 4a00 tstb %d0 <== NOT EXECUTED 48494: 6600 00a8 bnew 4853e <_Heap_Walk+0x36c> <== NOT EXECUTED block->size_and_flag = size | flag; } RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used( const Heap_Block *block ) { return block->size_and_flag & HEAP_PREV_BLOCK_USED; 48498: 7001 moveq #1,%d0 <== NOT EXECUTED 4849a: 7201 moveq #1,%d1 <== NOT EXECUTED 4849c: c0ab 0004 andl %a3@(4),%d0 <== NOT EXECUTED 484a0: c681 andl %d1,%d3 <== NOT EXECUTED ); return false; } if ( !_Heap_Is_prev_used( next_block ) ) { 484a2: 4a80 tstl %d0 <== NOT EXECUTED 484a4: 6700 00cc beqw 48572 <_Heap_Walk+0x3a0> <== NOT EXECUTED if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) { return false; } } else if (prev_used) { 484a8: 4a83 tstl %d3 <== NOT EXECUTED 484aa: 6700 00ac beqw 48558 <_Heap_Walk+0x386> <== NOT EXECUTED (*printer)( 484ae: 2f02 movel %d2,%sp@- <== NOT EXECUTED 484b0: 2f0c movel %a4,%sp@- <== NOT EXECUTED 484b2: 4879 0005 d369 pea 5d369 <_Status_Object_name_errors_to_status+0x3db><== NOT EXECUTED 484b8: 42a7 clrl %sp@- <== NOT EXECUTED 484ba: 2f05 movel %d5,%sp@- <== NOT EXECUTED 484bc: 4e95 jsr %a5@ <== NOT EXECUTED 484be: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED block->prev_size ); } block = next_block; } while ( block != first_block ); 484c2: b7c4 cmpal %d4,%a3 <== NOT EXECUTED 484c4: 6700 fd44 beqw 4820a <_Heap_Walk+0x38> <== NOT EXECUTED 484c8: 262b 0004 movel %a3@(4),%d3 <== NOT EXECUTED - HEAP_BLOCK_HEADER_SIZE); } RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block ) { return block->size_and_flag & ~HEAP_PREV_BLOCK_USED; 484cc: 74fe moveq #-2,%d2 <== NOT EXECUTED 484ce: 284b moveal %a3,%a4 <== NOT EXECUTED 484d0: c483 andl %d3,%d2 <== NOT EXECUTED 484d2: 222a 0020 movel %a2@(32),%d1 <== NOT EXECUTED RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); 484d6: 47f4 2800 lea %a4@(00000000,%d2:l),%a3 <== NOT EXECUTED const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block && (uintptr_t) block <= (uintptr_t) heap->last_block; 484da: b7c1 cmpal %d1,%a3 <== NOT EXECUTED 484dc: 6482 bccs 48460 <_Heap_Walk+0x28e> <== NOT EXECUTED Heap_Block *const next_block = _Heap_Block_at( block, block_size ); uintptr_t const next_block_begin = (uintptr_t) next_block; bool const is_not_last_block = block != last_block; if ( !_Heap_Is_block_in_heap( heap, next_block ) ) { (*printer)( 484de: 2f0b movel %a3,%sp@- <== NOT EXECUTED 484e0: 2f0c movel %a4,%sp@- <== NOT EXECUTED 484e2: 4879 0005 d212 pea 5d212 <_Status_Object_name_errors_to_status+0x284><== NOT EXECUTED return false; } if ( next_block_begin <= block_begin && is_not_last_block ) { (*printer)( 484e8: 4878 0001 pea 1 <== NOT EXECUTED 484ec: 2f05 movel %d5,%sp@- <== NOT EXECUTED 484ee: 4e95 jsr %a5@ <== NOT EXECUTED "block 0x%08x: next block 0x%08x is not a successor\n", block, next_block ); return false; 484f0: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED 484f4: 4200 clrb %d0 <== NOT EXECUTED block = next_block; } while ( block != first_block ); return true; } 484f6: 4cee 3cfc ffc4 moveml %fp@(-60),%d2-%d7/%a2-%a5 <== NOT EXECUTED 484fc: 4e5e unlk %fp <== NOT EXECUTED 484fe: 4e75 rts <== NOT EXECUTED return false; } if ( !_Heap_Is_aligned( block_size, page_size ) && is_not_last_block ) { (*printer)( 48500: 2f02 movel %d2,%sp@- <== NOT EXECUTED 48502: 2f0c movel %a4,%sp@- <== NOT EXECUTED 48504: 4879 0005 d23f pea 5d23f <_Status_Object_name_errors_to_status+0x2b1><== NOT EXECUTED return false; } if ( next_block_begin <= block_begin && is_not_last_block ) { (*printer)( 4850a: 4878 0001 pea 1 <== NOT EXECUTED 4850e: 2f05 movel %d5,%sp@- <== NOT EXECUTED 48510: 4e95 jsr %a5@ <== NOT EXECUTED "block 0x%08x: next block 0x%08x is not a successor\n", block, next_block ); return false; 48512: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED 48516: 4200 clrb %d0 <== NOT EXECUTED 48518: 60dc bras 484f6 <_Heap_Walk+0x324> <== NOT EXECUTED return false; } if ( block_size < min_block_size && is_not_last_block ) { (*printer)( 4851a: 2f06 movel %d6,%sp@- <== NOT EXECUTED 4851c: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4851e: 2f0c movel %a4,%sp@- <== NOT EXECUTED 48520: 4879 0005 d26d pea 5d26d <_Status_Object_name_errors_to_status+0x2df><== NOT EXECUTED 48526: 4878 0001 pea 1 <== NOT EXECUTED 4852a: 2f05 movel %d5,%sp@- <== NOT EXECUTED 4852c: 4e95 jsr %a5@ <== NOT EXECUTED block, block_size, min_block_size ); return false; 4852e: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED block = next_block; } while ( block != first_block ); return true; } 48532: 4cee 3cfc ffc4 moveml %fp@(-60),%d2-%d7/%a2-%a5 <== NOT EXECUTED block, block_size, min_block_size ); return false; 48538: 4200 clrb %d0 <== NOT EXECUTED block = next_block; } while ( block != first_block ); return true; } 4853a: 4e5e unlk %fp <== NOT EXECUTED 4853c: 4e75 rts <== NOT EXECUTED return false; } if ( next_block_begin <= block_begin && is_not_last_block ) { (*printer)( 4853e: 2f0b movel %a3,%sp@- <== NOT EXECUTED 48540: 2f0c movel %a4,%sp@- <== NOT EXECUTED 48542: 4879 0005 d298 pea 5d298 <_Status_Object_name_errors_to_status+0x30a><== NOT EXECUTED 48548: 4878 0001 pea 1 <== NOT EXECUTED 4854c: 2f05 movel %d5,%sp@- <== NOT EXECUTED 4854e: 4e95 jsr %a5@ <== NOT EXECUTED "block 0x%08x: next block 0x%08x is not a successor\n", block, next_block ); return false; 48550: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED 48554: 4200 clrb %d0 <== NOT EXECUTED 48556: 609e bras 484f6 <_Heap_Walk+0x324> <== NOT EXECUTED "block 0x%08x: size %u\n", block, block_size ); } else { (*printer)( 48558: 2f14 movel %a4@,%sp@- <== NOT EXECUTED 4855a: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4855c: 2f0c movel %a4,%sp@- <== NOT EXECUTED 4855e: 4879 0005 d380 pea 5d380 <_Status_Object_name_errors_to_status+0x3f2><== NOT EXECUTED 48564: 42a7 clrl %sp@- <== NOT EXECUTED 48566: 2f05 movel %d5,%sp@- <== NOT EXECUTED 48568: 4e95 jsr %a5@ <== NOT EXECUTED 4856a: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED 4856e: 6000 ff52 braw 484c2 <_Heap_Walk+0x2f0> <== NOT EXECUTED block = next_block; } while ( block != first_block ); return true; } 48572: 2e2a 0008 movel %a2@(8),%d7 <== NOT EXECUTED Heap_Block *const last_free_block = _Heap_Free_list_last( heap ); bool const prev_used = _Heap_Is_prev_used( block ); uintptr_t const block_size = _Heap_Block_size( block ); Heap_Block *const next_block = _Heap_Block_at( block, block_size ); (*printer)( 48576: 43f9 0005 cfb8 lea 5cfb8 <_Status_Object_name_errors_to_status+0x2a>,%a1<== NOT EXECUTED block->prev, block->prev == first_free_block ? " (= first free)" : (block->prev == free_list_head ? " (= head)" : ""), block->next, block->next == last_free_block ? 4857c: 222c 0008 movel %a4@(8),%d1 <== NOT EXECUTED Heap_Block *const last_free_block = _Heap_Free_list_last( heap ); bool const prev_used = _Heap_Is_prev_used( block ); uintptr_t const block_size = _Heap_Block_size( block ); Heap_Block *const next_block = _Heap_Block_at( block, block_size ); (*printer)( 48580: b2aa 000c cmpl %a2@(12),%d1 <== NOT EXECUTED 48584: 670a beqs 48590 <_Heap_Walk+0x3be> <== NOT EXECUTED " (= first free)" : (block->prev == free_list_head ? " (= head)" : ""), block->next, block->next == last_free_block ? " (= last free)" : (block->next == free_list_tail ? " (= tail)" : "") 48586: 43f9 0005 cf00 lea 5cf00 ,%a1<== NOT EXECUTED 4858c: b28a cmpl %a2,%d1 <== NOT EXECUTED 4858e: 6764 beqs 485f4 <_Heap_Walk+0x422> <== NOT EXECUTED false, "block 0x%08x: size %u, prev 0x%08x%s, next 0x%08x%s\n", block, block_size, block->prev, block->prev == first_free_block ? 48590: 202c 000c movel %a4@(12),%d0 <== NOT EXECUTED Heap_Block *const last_free_block = _Heap_Free_list_last( heap ); bool const prev_used = _Heap_Is_prev_used( block ); uintptr_t const block_size = _Heap_Block_size( block ); Heap_Block *const next_block = _Heap_Block_at( block, block_size ); (*printer)( 48594: 41f9 0005 cfd1 lea 5cfd1 <_Status_Object_name_errors_to_status+0x43>,%a0<== NOT EXECUTED 4859a: b087 cmpl %d7,%d0 <== NOT EXECUTED 4859c: 670a beqs 485a8 <_Heap_Walk+0x3d6> <== NOT EXECUTED block, block_size, block->prev, block->prev == first_free_block ? " (= first free)" : (block->prev == free_list_head ? " (= head)" : ""), 4859e: 41f9 0005 cf00 lea 5cf00 ,%a0<== NOT EXECUTED 485a4: b08a cmpl %a2,%d0 <== NOT EXECUTED 485a6: 6754 beqs 485fc <_Heap_Walk+0x42a> <== NOT EXECUTED Heap_Block *const last_free_block = _Heap_Free_list_last( heap ); bool const prev_used = _Heap_Is_prev_used( block ); uintptr_t const block_size = _Heap_Block_size( block ); Heap_Block *const next_block = _Heap_Block_at( block, block_size ); (*printer)( 485a8: 2f09 movel %a1,%sp@- <== NOT EXECUTED 485aa: 2f01 movel %d1,%sp@- <== NOT EXECUTED 485ac: 2f08 movel %a0,%sp@- <== NOT EXECUTED 485ae: 2f00 movel %d0,%sp@- <== NOT EXECUTED 485b0: 2f02 movel %d2,%sp@- <== NOT EXECUTED 485b2: 2f0c movel %a4,%sp@- <== NOT EXECUTED 485b4: 4879 0005 d2cc pea 5d2cc <_Status_Object_name_errors_to_status+0x33e><== NOT EXECUTED 485ba: 42a7 clrl %sp@- <== NOT EXECUTED 485bc: 2f05 movel %d5,%sp@- <== NOT EXECUTED 485be: 4e95 jsr %a5@ <== NOT EXECUTED block->next == last_free_block ? " (= last free)" : (block->next == free_list_tail ? " (= tail)" : "") ); if ( block_size != next_block->prev_size ) { 485c0: 2213 movel %a3@,%d1 <== NOT EXECUTED 485c2: 4fef 0024 lea %sp@(36),%sp <== NOT EXECUTED 485c6: b282 cmpl %d2,%d1 <== NOT EXECUTED 485c8: 663a bnes 48604 <_Heap_Walk+0x432> <== NOT EXECUTED ); return false; } if ( !prev_used ) { 485ca: 4a83 tstl %d3 <== NOT EXECUTED 485cc: 6776 beqs 48644 <_Heap_Walk+0x472> <== NOT EXECUTED block = next_block; } while ( block != first_block ); return true; } 485ce: 206a 0008 moveal %a2@(8),%a0 <== NOT EXECUTED ) { const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap ); const Heap_Block *free_block = _Heap_Free_list_first( heap ); while ( free_block != free_list_tail ) { 485d2: b1ca cmpal %a2,%a0 <== NOT EXECUTED 485d4: 6754 beqs 4862a <_Heap_Walk+0x458> <== NOT EXECUTED if ( free_block == block ) { 485d6: b1cc cmpal %a4,%a0 <== NOT EXECUTED 485d8: 6700 fee8 beqw 484c2 <_Heap_Walk+0x2f0> <== NOT EXECUTED 485dc: 2e2e fff0 movel %fp@(-16),%d7 <== NOT EXECUTED return true; } free_block = free_block->next; 485e0: 2068 0008 moveal %a0@(8),%a0 <== NOT EXECUTED ) { const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap ); const Heap_Block *free_block = _Heap_Free_list_first( heap ); while ( free_block != free_list_tail ) { 485e4: b1ca cmpal %a2,%a0 <== NOT EXECUTED 485e6: 6742 beqs 4862a <_Heap_Walk+0x458> <== NOT EXECUTED if ( free_block == block ) { 485e8: b1cc cmpal %a4,%a0 <== NOT EXECUTED 485ea: 66f4 bnes 485e0 <_Heap_Walk+0x40e> <== NOT EXECUTED 485ec: 2d47 fff0 movel %d7,%fp@(-16) <== NOT EXECUTED 485f0: 6000 fed0 braw 484c2 <_Heap_Walk+0x2f0> <== NOT EXECUTED " (= first free)" : (block->prev == free_list_head ? " (= head)" : ""), block->next, block->next == last_free_block ? " (= last free)" : (block->next == free_list_tail ? " (= tail)" : "") 485f4: 43f9 0005 cfc7 lea 5cfc7 <_Status_Object_name_errors_to_status+0x39>,%a1<== NOT EXECUTED 485fa: 6094 bras 48590 <_Heap_Walk+0x3be> <== NOT EXECUTED block, block_size, block->prev, block->prev == first_free_block ? " (= first free)" : (block->prev == free_list_head ? " (= head)" : ""), 485fc: 41f9 0005 cfe1 lea 5cfe1 <_Status_Object_name_errors_to_status+0x53>,%a0<== NOT EXECUTED 48602: 60a4 bras 485a8 <_Heap_Walk+0x3d6> <== NOT EXECUTED " (= last free)" : (block->next == free_list_tail ? " (= tail)" : "") ); if ( block_size != next_block->prev_size ) { (*printer)( 48604: 2f0b movel %a3,%sp@- <== NOT EXECUTED 48606: 2f01 movel %d1,%sp@- <== NOT EXECUTED 48608: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4860a: 2f0c movel %a4,%sp@- <== NOT EXECUTED 4860c: 4879 0005 d301 pea 5d301 <_Status_Object_name_errors_to_status+0x373><== NOT EXECUTED 48612: 4878 0001 pea 1 <== NOT EXECUTED 48616: 2f05 movel %d5,%sp@- <== NOT EXECUTED 48618: 4e95 jsr %a5@ <== NOT EXECUTED 4861a: 4fef 001c lea %sp@(28),%sp <== NOT EXECUTED block = next_block; } while ( block != first_block ); return true; } 4861e: 4cee 3cfc ffc4 moveml %fp@(-60),%d2-%d7/%a2-%a5 <== NOT EXECUTED return false; } if ( !_Heap_Is_prev_used( next_block ) ) { if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) { return false; 48624: 4200 clrb %d0 <== NOT EXECUTED block = next_block; } while ( block != first_block ); return true; } 48626: 4e5e unlk %fp <== NOT EXECUTED 48628: 4e75 rts <== NOT EXECUTED return false; } if ( !_Heap_Walk_is_in_free_list( heap, block ) ) { (*printer)( 4862a: 2f0c movel %a4,%sp@- <== NOT EXECUTED 4862c: 4879 0005 d3a5 pea 5d3a5 <_Status_Object_name_errors_to_status+0x417><== NOT EXECUTED 48632: 4878 0001 pea 1 <== NOT EXECUTED 48636: 2f05 movel %d5,%sp@- <== NOT EXECUTED 48638: 4e95 jsr %a5@ <== NOT EXECUTED 4863a: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED return false; } if ( !_Heap_Is_prev_used( next_block ) ) { if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) { return false; 4863e: 4200 clrb %d0 <== NOT EXECUTED 48640: 6000 fcae braw 482f0 <_Heap_Walk+0x11e> <== NOT EXECUTED return false; } if ( !prev_used ) { (*printer)( 48644: 2f0c movel %a4,%sp@- <== NOT EXECUTED 48646: 4879 0005 d33a pea 5d33a <_Status_Object_name_errors_to_status+0x3ac><== NOT EXECUTED return false; } if ( !_Heap_Walk_is_in_free_list( heap, block ) ) { (*printer)( 4864c: 4878 0001 pea 1 <== NOT EXECUTED 48650: 2f05 movel %d5,%sp@- <== NOT EXECUTED 48652: 4e95 jsr %a5@ <== NOT EXECUTED 48654: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED return false; } if ( !_Heap_Is_prev_used( next_block ) ) { if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) { return false; 48658: 4200 clrb %d0 <== NOT EXECUTED 4865a: 6000 fc94 braw 482f0 <_Heap_Walk+0x11e> <== NOT EXECUTED return false; } if ( free_block->prev != prev_block ) { (*printer)( 4865e: 2f08 movel %a0,%sp@- <== NOT EXECUTED 48660: 2f09 movel %a1,%sp@- <== NOT EXECUTED 48662: 4879 0005 d1e0 pea 5d1e0 <_Status_Object_name_errors_to_status+0x252><== NOT EXECUTED return false; } if ( next_block_begin <= block_begin && is_not_last_block ) { (*printer)( 48668: 4878 0001 pea 1 <== NOT EXECUTED 4866c: 2f05 movel %d5,%sp@- <== NOT EXECUTED 4866e: 4e95 jsr %a5@ <== NOT EXECUTED "block 0x%08x: next block 0x%08x is not a successor\n", block, next_block ); return false; 48670: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED 48674: 4200 clrb %d0 <== NOT EXECUTED 48676: 6000 fe7e braw 484f6 <_Heap_Walk+0x324> <== NOT EXECUTED ); return false; } if ( _Heap_Is_used( free_block ) ) { 4867a: 2049 moveal %a1,%a0 <== NOT EXECUTED (*printer)( 4867c: 2f08 movel %a0,%sp@- <== NOT EXECUTED 4867e: 4879 0005 d1c4 pea 5d1c4 <_Status_Object_name_errors_to_status+0x236><== NOT EXECUTED 48684: 6000 fd4a braw 483d0 <_Heap_Walk+0x1fe> <== NOT EXECUTED const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap ); const Heap_Block *const first_free_block = _Heap_Free_list_first( heap ); const Heap_Block *prev_block = free_list_tail; const Heap_Block *free_block = first_free_block; while ( free_block != free_list_tail ) { 48688: 222a 0020 movel %a2@(32),%d1 <== NOT EXECUTED ); return false; } if ( _Heap_Is_used( free_block ) ) { 4868c: 2844 moveal %d4,%a4 <== NOT EXECUTED const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap ); const Heap_Block *const first_free_block = _Heap_Free_list_first( heap ); const Heap_Block *prev_block = free_list_tail; const Heap_Block *free_block = first_free_block; while ( free_block != free_list_tail ) { 4868e: 2d41 fff4 movel %d1,%fp@(-12) <== NOT EXECUTED ); return false; } if ( _Heap_Is_used( free_block ) ) { 48692: 222e fff4 movel %fp@(-12),%d1 <== NOT EXECUTED 48696: 2d43 fffc movel %d3,%fp@(-4) <== NOT EXECUTED 4869a: 262e ffec movel %fp@(-20),%d3 <== NOT EXECUTED 4869e: 2d47 fff0 movel %d7,%fp@(-16) <== NOT EXECUTED 486a2: 6000 fdb0 braw 48454 <_Heap_Walk+0x282> <== NOT EXECUTED ... =============================================================================== 0004817c <_Heap_Walk_print>: static void _Heap_Walk_print( int source, bool error, const char *fmt, ... ) { 4817c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 48180: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED va_list ap; if ( error ) { 48184: 4a2e 000f tstb %fp@(15) <== NOT EXECUTED 48188: 6624 bnes 481ae <_Heap_Walk_print+0x32> <== NOT EXECUTED printk( "FAIL[%d]: ", source ); } else { printk( "PASS[%d]: ", source ); 4818a: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4818c: 4879 0005 cfad pea 5cfad <_Status_Object_name_errors_to_status+0x1f><== NOT EXECUTED 48192: 4eb9 0004 42a0 jsr 442a0 <== NOT EXECUTED 48198: 508f addql #8,%sp <== NOT EXECUTED } va_start( ap, fmt ); vprintk( fmt, ap ); 4819a: 486e 0014 pea %fp@(20) <== NOT EXECUTED 4819e: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 481a2: 4eb9 0004 60bc jsr 460bc <== NOT EXECUTED va_end( ap ); 481a8: 508f addql #8,%sp <== NOT EXECUTED } 481aa: 4e5e unlk %fp <== NOT EXECUTED 481ac: 4e75 rts <== NOT EXECUTED static void _Heap_Walk_print( int source, bool error, const char *fmt, ... ) { va_list ap; if ( error ) { printk( "FAIL[%d]: ", source ); 481ae: 2f00 movel %d0,%sp@- <== NOT EXECUTED 481b0: 4879 0005 cfa2 pea 5cfa2 <_Status_Object_name_errors_to_status+0x14><== NOT EXECUTED 481b6: 4eb9 0004 42a0 jsr 442a0 <== NOT EXECUTED 481bc: 508f addql #8,%sp <== NOT EXECUTED } else { printk( "PASS[%d]: ", source ); } va_start( ap, fmt ); vprintk( fmt, ap ); 481be: 486e 0014 pea %fp@(20) <== NOT EXECUTED 481c2: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 481c6: 4eb9 0004 60bc jsr 460bc <== NOT EXECUTED va_end( ap ); 481cc: 508f addql #8,%sp <== NOT EXECUTED } 481ce: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00048174 <_Heap_Walk_print_nothing>: int source, bool error, const char *fmt, ... ) { 48174: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED /* Do nothing */ } 48178: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00046c56 <_IO_Initialize_all_drivers>: * * Output Parameters: NONE */ void _IO_Initialize_all_drivers( void ) { 46c56: 4e56 0000 linkw %fp,#0 46c5a: 2f0a movel %a2,%sp@- 46c5c: 2f02 movel %d2,%sp@- rtems_device_major_number major; for ( major=0 ; major < _IO_Number_of_drivers ; major ++ ) 46c5e: 4ab9 0005 e6f4 tstl 5e6f4 <_IO_Number_of_drivers> 46c64: 671e beqs 46c84 <_IO_Initialize_all_drivers+0x2e><== NEVER TAKEN 46c66: 4282 clrl %d2 46c68: 45f9 0004 b898 lea 4b898 ,%a2 (void) rtems_io_initialize( major, 0, NULL ); 46c6e: 42a7 clrl %sp@- 46c70: 42a7 clrl %sp@- 46c72: 2f02 movel %d2,%sp@- void _IO_Initialize_all_drivers( void ) { rtems_device_major_number major; for ( major=0 ; major < _IO_Number_of_drivers ; major ++ ) 46c74: 5282 addql #1,%d2 (void) rtems_io_initialize( major, 0, NULL ); 46c76: 4e92 jsr %a2@ void _IO_Initialize_all_drivers( void ) { rtems_device_major_number major; for ( major=0 ; major < _IO_Number_of_drivers ; major ++ ) 46c78: 4fef 000c lea %sp@(12),%sp 46c7c: b4b9 0005 e6f4 cmpl 5e6f4 <_IO_Number_of_drivers>,%d2 46c82: 65ea bcss 46c6e <_IO_Initialize_all_drivers+0x18> (void) rtems_io_initialize( major, 0, NULL ); } 46c84: 242e fff8 movel %fp@(-8),%d2 46c88: 246e fffc moveal %fp@(-4),%a2 46c8c: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00046bbc <_IO_Manager_initialization>: * workspace. * */ void _IO_Manager_initialization(void) { 46bbc: 4e56 fff0 linkw %fp,#-16 46bc0: 48d7 003c moveml %d2-%d5,%sp@ uint32_t index; rtems_driver_address_table *driver_table; uint32_t drivers_in_table; uint32_t number_of_drivers; driver_table = Configuration.Device_driver_table; 46bc4: 2639 0005 ccca movel 5ccca ,%d3 drivers_in_table = Configuration.number_of_device_drivers; 46bca: 2439 0005 ccc6 movel 5ccc6 ,%d2 number_of_drivers = Configuration.maximum_drivers; 46bd0: 2839 0005 ccc2 movel 5ccc2 ,%d4 /* * If the user claims there are less drivers than are actually in * the table, then let's just go with the table's count. */ if ( number_of_drivers <= drivers_in_table ) 46bd6: b882 cmpl %d2,%d4 46bd8: 6366 blss 46c40 <_IO_Manager_initialization+0x84> * The application requested extra slots in the driver table, so we * have to allocate a new driver table and copy theirs to it. */ _IO_Driver_address_table = (rtems_driver_address_table *) _Workspace_Allocate_or_fatal_error( 46bda: 2004 movel %d4,%d0 46bdc: 2a04 movel %d4,%d5 46bde: e788 lsll #3,%d0 46be0: eb8d lsll #5,%d5 46be2: 9a80 subl %d0,%d5 46be4: 2f05 movel %d5,%sp@- 46be6: 4eb9 0004 9ab6 jsr 49ab6 <_Workspace_Allocate_or_fatal_error> sizeof( rtems_driver_address_table ) * ( number_of_drivers ) ); _IO_Number_of_drivers = number_of_drivers; memset( 46bec: 2f05 movel %d5,%sp@- 46bee: 42a7 clrl %sp@- /* * The application requested extra slots in the driver table, so we * have to allocate a new driver table and copy theirs to it. */ _IO_Driver_address_table = (rtems_driver_address_table *) 46bf0: 23c0 0005 e6f8 movel %d0,5e6f8 <_IO_Driver_address_table> _Workspace_Allocate_or_fatal_error( sizeof( rtems_driver_address_table ) * ( number_of_drivers ) ); _IO_Number_of_drivers = number_of_drivers; memset( 46bf6: 2f00 movel %d0,%sp@- _IO_Driver_address_table = (rtems_driver_address_table *) _Workspace_Allocate_or_fatal_error( sizeof( rtems_driver_address_table ) * ( number_of_drivers ) ); _IO_Number_of_drivers = number_of_drivers; 46bf8: 23c4 0005 e6f4 movel %d4,5e6f4 <_IO_Number_of_drivers> memset( 46bfe: 4eb9 0004 e178 jsr 4e178 _IO_Driver_address_table, 0, sizeof( rtems_driver_address_table ) * ( number_of_drivers ) ); for ( index = 0 ; index < drivers_in_table ; index++ ) 46c04: 4fef 0010 lea %sp@(16),%sp 46c08: 4a82 tstl %d2 46c0a: 672a beqs 46c36 <_IO_Manager_initialization+0x7a><== NEVER TAKEN 46c0c: 2839 0005 e6f8 movel 5e6f8 <_IO_Driver_address_table>,%d4 46c12: 4280 clrl %d0 46c14: 4281 clrl %d1 _IO_Driver_address_table[index] = driver_table[index]; 46c16: 2243 moveal %d3,%a1 46c18: 2044 moveal %d4,%a0 46c1a: d3c0 addal %d0,%a1 46c1c: d1c0 addal %d0,%a0 memset( _IO_Driver_address_table, 0, sizeof( rtems_driver_address_table ) * ( number_of_drivers ) ); for ( index = 0 ; index < drivers_in_table ; index++ ) 46c1e: 5281 addql #1,%d1 46c20: 0680 0000 0018 addil #24,%d0 _IO_Driver_address_table[index] = driver_table[index]; 46c26: 20d9 movel %a1@+,%a0@+ 46c28: 20d9 movel %a1@+,%a0@+ 46c2a: 20d9 movel %a1@+,%a0@+ 46c2c: 20d9 movel %a1@+,%a0@+ 46c2e: 20d9 movel %a1@+,%a0@+ 46c30: 2091 movel %a1@,%a0@ memset( _IO_Driver_address_table, 0, sizeof( rtems_driver_address_table ) * ( number_of_drivers ) ); for ( index = 0 ; index < drivers_in_table ; index++ ) 46c32: b282 cmpl %d2,%d1 46c34: 65e0 bcss 46c16 <_IO_Manager_initialization+0x5a> _IO_Driver_address_table[index] = driver_table[index]; } 46c36: 4cee 003c fff0 moveml %fp@(-16),%d2-%d5 46c3c: 4e5e unlk %fp 46c3e: 4e75 rts * If the maximum number of driver is the same as the number in the * table, then we do not have to copy the driver table. They can't * register any dynamically. */ if ( number_of_drivers == drivers_in_table ) { _IO_Driver_address_table = driver_table; 46c40: 23c3 0005 e6f8 movel %d3,5e6f8 <_IO_Driver_address_table> _IO_Number_of_drivers = number_of_drivers; 46c46: 23c2 0005 e6f4 movel %d2,5e6f4 <_IO_Number_of_drivers> sizeof( rtems_driver_address_table ) * ( number_of_drivers ) ); for ( index = 0 ; index < drivers_in_table ; index++ ) _IO_Driver_address_table[index] = driver_table[index]; } 46c4c: 4cee 003c fff0 moveml %fp@(-16),%d2-%d5 46c52: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 000477b8 <_Internal_error_Occurred>: void _Internal_error_Occurred( Internal_errors_Source the_source, bool is_internal, Internal_errors_t the_error ) { 477b8: 4e56 fffc linkw %fp,#-4 477bc: 206e 0010 moveal %fp@(16),%a0 477c0: 2f02 movel %d2,%sp@- 477c2: 222e 000c movel %fp@(12),%d1 _Internal_errors_What_happened.the_source = the_source; _Internal_errors_What_happened.is_internal = is_internal; _Internal_errors_What_happened.the_error = the_error; _User_extensions_Fatal( the_source, is_internal, the_error ); 477c6: 4282 clrl %d2 477c8: 1401 moveb %d1,%d2 477ca: 2242 moveal %d2,%a1 477cc: 2f08 movel %a0,%sp@- void _Internal_error_Occurred( Internal_errors_Source the_source, bool is_internal, Internal_errors_t the_error ) { 477ce: 202e 0008 movel %fp@(8),%d0 _Internal_errors_What_happened.the_source = the_source; _Internal_errors_What_happened.is_internal = is_internal; _Internal_errors_What_happened.the_error = the_error; _User_extensions_Fatal( the_source, is_internal, the_error ); 477d2: 2f09 movel %a1,%sp@- Internal_errors_t the_error ) { _Internal_errors_What_happened.the_source = the_source; _Internal_errors_What_happened.is_internal = is_internal; 477d4: 13c1 0005 e582 moveb %d1,5e582 <_Internal_errors_What_happened+0x4> _Internal_errors_What_happened.the_error = the_error; _User_extensions_Fatal( the_source, is_internal, the_error ); 477da: 2d48 fffc movel %a0,%fp@(-4) bool is_internal, Internal_errors_t the_error ) { _Internal_errors_What_happened.the_source = the_source; 477de: 23c0 0005 e57e movel %d0,5e57e <_Internal_errors_What_happened> _Internal_errors_What_happened.is_internal = is_internal; _Internal_errors_What_happened.the_error = the_error; 477e4: 23c8 0005 e584 movel %a0,5e584 <_Internal_errors_What_happened+0x6> _User_extensions_Fatal( the_source, is_internal, the_error ); 477ea: 2f00 movel %d0,%sp@- 477ec: 4eb9 0004 9636 jsr 49636 <_User_extensions_Fatal> _System_state_Set( SYSTEM_STATE_FAILED ); _CPU_Fatal_halt( the_error ); 477f2: 206e fffc moveal %fp@(-4),%a0 <== NOT EXECUTED 477f6: 327c 0700 moveaw #1792,%a1 <== NOT EXECUTED 477fa: 2409 movel %a1,%d2 <== NOT EXECUTED 477fc: 40c0 movew %sr,%d0 <== NOT EXECUTED 477fe: 8082 orl %d2,%d0 <== NOT EXECUTED 47800: 46c0 movew %d0,%sr <== NOT EXECUTED 47802: 2008 movel %a0,%d0 <== NOT EXECUTED 47804: 223c dead beef movel #-559038737,%d1 <== NOT EXECUTED 4780a: 4ac8 halt <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _System_state_Set ( System_state_Codes state ) { _System_state_Current = state; 4780c: 7005 moveq #5,%d0 <== NOT EXECUTED 4780e: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 47812: 23c0 0005 e630 movel %d0,5e630 <_System_state_Current> <== NOT EXECUTED 47818: 60fe bras 47818 <_Internal_error_Occurred+0x60> <== NOT EXECUTED ... =============================================================================== 000549cc <_Message_queue_Allocate>: * Output parameters: * the_message_queue - set if successful, NULL otherwise */ Message_queue_Control *_Message_queue_Allocate(void) { 549cc: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return (Message_queue_Control *) _Objects_Allocate(&_Message_queue_Information); 549d0: 4879 0006 8554 pea 68554 <_Message_queue_Information> <== NOT EXECUTED 549d6: 4eb9 0005 0cc0 jsr 50cc0 <_Objects_Allocate> <== NOT EXECUTED } 549dc: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 0004ef94 <_Message_queue_Translate_core_message_queue_return_code>: #if defined(RTEMS_DEBUG) if ( status > CORE_MESSAGE_QUEUE_STATUS_TIMEOUT ) return RTEMS_INTERNAL_ERROR; #endif return _Message_queue_Translate_core_return_code_[status]; 4ef94: 41f9 0006 6b9c lea 66b9c <_Message_queue_Translate_core_return_code_>,%a0<== NOT EXECUTED }; rtems_status_code _Message_queue_Translate_core_message_queue_return_code ( uint32_t status ) { 4ef9a: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED if ( status > CORE_MESSAGE_QUEUE_STATUS_TIMEOUT ) return RTEMS_INTERNAL_ERROR; #endif return _Message_queue_Translate_core_return_code_[status]; } 4ef9e: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED 4efa2: 4e5e unlk %fp <== NOT EXECUTED 4efa4: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED ... =============================================================================== 0004be08 <_Objects_API_maximum_class>: #include unsigned int _Objects_API_maximum_class( uint32_t api ) { 4be08: 7202 moveq #2,%d1 4be0a: 4e56 0000 linkw %fp,#0 4be0e: 202e 0008 movel %fp@(8),%d0 4be12: 5380 subql #1,%d0 4be14: b280 cmpl %d0,%d1 4be16: 650e bcss 4be26 <_Objects_API_maximum_class+0x1e><== NEVER TAKEN 4be18: 41f9 0005 c264 lea 5c264 ,%a0 case OBJECTS_NO_API: default: break; } return 0; } 4be1e: 4e5e unlk %fp #include unsigned int _Objects_API_maximum_class( uint32_t api ) { 4be20: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 case OBJECTS_NO_API: default: break; } return 0; } 4be24: 4e75 rts #include unsigned int _Objects_API_maximum_class( uint32_t api ) { 4be26: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_NO_API: default: break; } return 0; } 4be28: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00047874 <_Objects_Allocate>: */ Objects_Control *_Objects_Allocate( Objects_Information *information ) { 47874: 4e56 fff0 linkw %fp,#-16 47878: 48d7 0c0c moveml %d2-%d3/%a2-%a3,%sp@ 4787c: 246e 0008 moveal %fp@(8),%a2 * If the application is using the optional manager stubs and * still attempts to create the object, the information block * should be all zeroed out because it is in the BSS. So let's * check that code for this manager is even present. */ if ( information->size == 0 ) 47880: 4aaa 0014 tstl %a2@(20) 47884: 660c bnes 47892 <_Objects_Allocate+0x1e> <== ALWAYS TAKEN return NULL; 47886: 4280 clrl %d0 <== NOT EXECUTED ); } #endif return the_object; } 47888: 4cee 0c0c fff0 moveml %fp@(-16),%d2-%d3/%a2-%a3 4788e: 4e5e unlk %fp 47890: 4e75 rts /* * OK. The manager should be initialized and configured to have objects. * With any luck, it is safe to attempt to allocate an object. */ the_object = (Objects_Control *) _Chain_Get( &information->Inactive ); 47892: 240a movel %a2,%d2 47894: 0682 0000 001c addil #28,%d2 4789a: 47f9 0004 6ed8 lea 46ed8 <_Chain_Get>,%a3 478a0: 2f02 movel %d2,%sp@- 478a2: 4e93 jsr %a3@ if ( information->auto_extend ) { 478a4: 588f addql #4,%sp 478a6: 4a2a 0010 tstb %a2@(16) 478aa: 67dc beqs 47888 <_Objects_Allocate+0x14> /* * If the list is empty then we are out of objects and need to * extend information base. */ if ( !the_object ) { 478ac: 4a80 tstl %d0 478ae: 6738 beqs 478e8 <_Objects_Allocate+0x74> <== NEVER TAKEN } if ( the_object ) { uint32_t block; block = (uint32_t) _Objects_Get_index( the_object->id ) - 478b0: 2040 moveal %d0,%a0 478b2: 4281 clrl %d1 478b4: 4283 clrl %d3 _Objects_Get_index( information->minimum_id ); block /= information->allocation_size; 478b6: 4282 clrl %d2 } if ( the_object ) { uint32_t block; block = (uint32_t) _Objects_Get_index( the_object->id ) - 478b8: 362a 0008 movew %a2@(8),%d3 478bc: 3228 000a movew %a0@(10),%d1 _Objects_Get_index( information->minimum_id ); block /= information->allocation_size; 478c0: 342a 0012 movew %a2@(18),%d2 information->inactive_per_block[ block ]--; 478c4: 206a 002a moveal %a2@(42),%a0 } if ( the_object ) { uint32_t block; block = (uint32_t) _Objects_Get_index( the_object->id ) - 478c8: 9283 subl %d3,%d1 _Objects_Get_index( information->minimum_id ); block /= information->allocation_size; 478ca: 4c42 1001 remul %d2,%d1,%d1 information->inactive_per_block[ block ]--; information->inactive--; 478ce: 326a 0028 moveaw %a2@(40),%a1 block = (uint32_t) _Objects_Get_index( the_object->id ) - _Objects_Get_index( information->minimum_id ); block /= information->allocation_size; information->inactive_per_block[ block ]--; 478d2: e589 lsll #2,%d1 information->inactive--; 478d4: 5389 subql #1,%a1 block = (uint32_t) _Objects_Get_index( the_object->id ) - _Objects_Get_index( information->minimum_id ); block /= information->allocation_size; information->inactive_per_block[ block ]--; 478d6: d1c1 addal %d1,%a0 478d8: 5390 subql #1,%a0@ information->inactive--; 478da: 3549 0028 movew %a1,%a2@(40) ); } #endif return the_object; } 478de: 4cee 0c0c fff0 moveml %fp@(-16),%d2-%d3/%a2-%a3 478e4: 4e5e unlk %fp 478e6: 4e75 rts * If the list is empty then we are out of objects and need to * extend information base. */ if ( !the_object ) { _Objects_Extend_information( information ); 478e8: 2f0a movel %a2,%sp@- <== NOT EXECUTED 478ea: 4eb9 0004 7930 jsr 47930 <_Objects_Extend_information> <== NOT EXECUTED the_object = (Objects_Control *) _Chain_Get( &information->Inactive ); 478f0: 2f02 movel %d2,%sp@- <== NOT EXECUTED 478f2: 4e93 jsr %a3@ <== NOT EXECUTED } if ( the_object ) { 478f4: 508f addql #8,%sp <== NOT EXECUTED 478f6: 4a80 tstl %d0 <== NOT EXECUTED 478f8: 66b6 bnes 478b0 <_Objects_Allocate+0x3c> <== NOT EXECUTED ); } #endif return the_object; } 478fa: 4cee 0c0c fff0 moveml %fp@(-16),%d2-%d3/%a2-%a3 <== NOT EXECUTED 47900: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00047904 <_Objects_Close>: RTEMS_INLINE_ROUTINE void _Objects_Invalidate_Id( Objects_Information *information, Objects_Control *the_object ) { _Objects_Set_local_object( 47904: 4280 clrl %d0 void _Objects_Close( Objects_Information *information, Objects_Control *the_object ) { 47906: 4e56 0000 linkw %fp,#0 4790a: 226e 000c moveal %fp@(12),%a1 4790e: 206e 0008 moveal %fp@(8),%a0 47912: 2f0a movel %a2,%sp@- #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 47914: 2468 0018 moveal %a0@(24),%a2 RTEMS_INLINE_ROUTINE void _Objects_Invalidate_Id( Objects_Information *information, Objects_Control *the_object ) { _Objects_Set_local_object( 47918: 3029 000a movew %a1@(10),%d0 #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 4791c: 42b2 0c00 clrl %a2@(00000000,%d0:l:4) _Objects_Invalidate_Id( information, the_object ); _Objects_Namespace_remove( information, the_object ); } 47920: 245f moveal %sp@+,%a2 Objects_Control *the_object ) { _Objects_Invalidate_Id( information, the_object ); _Objects_Namespace_remove( information, the_object ); 47922: 2d49 000c movel %a1,%fp@(12) } 47926: 4e5e unlk %fp Objects_Control *the_object ) { _Objects_Invalidate_Id( information, the_object ); _Objects_Namespace_remove( information, the_object ); 47928: 4ef9 0004 7eb0 jmp 47eb0 <_Objects_Namespace_remove> ... =============================================================================== 00047930 <_Objects_Extend_information>: */ void _Objects_Extend_information( Objects_Information *information ) { 47930: 4e56 ffcc linkw %fp,#-52 47934: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ 47938: 246e 0008 moveal %fp@(8),%a2 /* * Search for a free block of indexes. If we do NOT need to allocate or * extend the block table, then we will change do_extend. */ do_extend = true; minimum_index = _Objects_Get_index( information->minimum_id ); 4793c: 4285 clrl %d5 index_base = minimum_index; block = 0; /* if ( information->maximum < minimum_index ) */ if ( information->object_blocks == NULL ) 4793e: 206a 002e moveal %a2@(46),%a0 /* * Search for a free block of indexes. If we do NOT need to allocate or * extend the block table, then we will change do_extend. */ do_extend = true; minimum_index = _Objects_Get_index( information->minimum_id ); 47942: 3a2a 0008 movew %a2@(8),%d5 index_base = minimum_index; block = 0; /* if ( information->maximum < minimum_index ) */ if ( information->object_blocks == NULL ) 47946: 4a88 tstl %a0 47948: 6700 0232 beqw 47b7c <_Objects_Extend_information+0x24c> block_count = 0; else { block_count = information->maximum / information->allocation_size; 4794c: 322a 000e movew %a2@(14),%d1 <== NOT EXECUTED 47950: 302a 0012 movew %a2@(18),%d0 <== NOT EXECUTED 47954: 3801 movew %d1,%d4 <== NOT EXECUTED 47956: 0284 0000 ffff andil #65535,%d4 <== NOT EXECUTED 4795c: 88c0 divuw %d0,%d4 <== NOT EXECUTED 4795e: 0284 0000 ffff andil #65535,%d4 <== NOT EXECUTED for ( ; block < block_count; block++ ) { 47964: 6700 022c beqw 47b92 <_Objects_Extend_information+0x262><== NOT EXECUTED if ( information->object_blocks[ block ] == NULL ) { 47968: 4a90 tstl %a0@ <== NOT EXECUTED 4796a: 6700 0236 beqw 47ba2 <_Objects_Extend_information+0x272><== NOT EXECUTED * information - object information table * * Output parameters: NONE */ void _Objects_Extend_information( 4796e: 5888 addql #4,%a0 <== NOT EXECUTED /* * Search for a free block of indexes. If we do NOT need to allocate or * extend the block table, then we will change do_extend. */ do_extend = true; minimum_index = _Objects_Get_index( information->minimum_id ); 47970: 2605 movel %d5,%d3 <== NOT EXECUTED index_base = minimum_index; block = 0; 47972: 4282 clrl %d2 <== NOT EXECUTED block_count = 0; else { block_count = information->maximum / information->allocation_size; for ( ; block < block_count; block++ ) { if ( information->object_blocks[ block ] == NULL ) { 47974: 0280 0000 ffff andil #65535,%d0 <== NOT EXECUTED do_extend = false; break; } else index_base += information->allocation_size; 4797a: d680 addl %d0,%d3 <== NOT EXECUTED if ( information->object_blocks == NULL ) block_count = 0; else { block_count = information->maximum / information->allocation_size; for ( ; block < block_count; block++ ) { 4797c: 5282 addql #1,%d2 <== NOT EXECUTED 4797e: b484 cmpl %d4,%d2 <== NOT EXECUTED 47980: 6400 01a6 bccw 47b28 <_Objects_Extend_information+0x1f8><== NOT EXECUTED if ( information->object_blocks[ block ] == NULL ) { 47984: 4a98 tstl %a0@+ <== NOT EXECUTED 47986: 66f2 bnes 4797a <_Objects_Extend_information+0x4a><== NOT EXECUTED do_extend = false; 47988: 4207 clrb %d7 <== NOT EXECUTED } else index_base += information->allocation_size; } } maximum = (uint32_t) information->maximum + information->allocation_size; 4798a: 0281 0000 ffff andil #65535,%d1 47990: 2641 moveal %d1,%a3 47992: d7c0 addal %d0,%a3 /* * We need to limit the number of objects to the maximum number * representable in the index portion of the object Id. In the * case of 16-bit Ids, this is only 256 object instances. */ if ( maximum > OBJECTS_ID_FINAL_INDEX ) { 47994: b7fc 0000 ffff cmpal #65535,%a3 4799a: 6200 0182 bhiw 47b1e <_Objects_Extend_information+0x1ee> /* * Allocate the name table, and the objects and if it fails either return or * generate a fatal error depending on auto-extending being active. */ block_size = information->allocation_size * information->size; 4799e: 41ea 0014 lea %a2@(20),%a0 479a2: 4c10 0800 mulsl %a0@,%d0 if ( information->auto_extend ) { 479a6: 4a2a 0010 tstb %a2@(16) 479aa: 6700 0182 beqw 47b2e <_Objects_Extend_information+0x1fe> new_object_block = _Workspace_Allocate( block_size ); 479ae: 2f00 movel %d0,%sp@- 479b0: 4eb9 0004 9a82 jsr 49a82 <_Workspace_Allocate> if ( !new_object_block ) 479b6: 588f addql #4,%sp * Allocate the name table, and the objects and if it fails either return or * generate a fatal error depending on auto-extending being active. */ block_size = information->allocation_size * information->size; if ( information->auto_extend ) { new_object_block = _Workspace_Allocate( block_size ); 479b8: 2c00 movel %d0,%d6 if ( !new_object_block ) 479ba: 6700 0162 beqw 47b1e <_Objects_Extend_information+0x1ee> } /* * Do we need to grow the tables? */ if ( do_extend ) { 479be: 4a07 tstb %d7 479c0: 6700 00c4 beqw 47a86 <_Objects_Extend_information+0x156> */ /* * Up the block count and maximum */ block_count++; 479c4: 2a44 moveal %d4,%a5 479c6: 528d addql #1,%a5 /* * Allocate the tables and break it up. */ block_size = block_count * (sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) + ((maximum + minimum_index) * sizeof(Objects_Control *)); 479c8: 200b movel %a3,%d0 /* * Allocate the tables and break it up. */ block_size = block_count * (sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) + 479ca: 41f5 da00 lea %a5@(00000000,%a5:l:2),%a0 ((maximum + minimum_index) * sizeof(Objects_Control *)); 479ce: d088 addl %a0,%d0 /* * Allocate the tables and break it up. */ block_size = block_count * (sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) + 479d0: d085 addl %d5,%d0 block_count++; /* * Allocate the tables and break it up. */ block_size = block_count * 479d2: e588 lsll #2,%d0 (sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) + ((maximum + minimum_index) * sizeof(Objects_Control *)); object_blocks = (void**) _Workspace_Allocate( block_size ); 479d4: 2f00 movel %d0,%sp@- 479d6: 4eb9 0004 9a82 jsr 49a82 <_Workspace_Allocate> if ( !object_blocks ) { 479dc: 588f addql #4,%sp * Allocate the tables and break it up. */ block_size = block_count * (sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) + ((maximum + minimum_index) * sizeof(Objects_Control *)); object_blocks = (void**) _Workspace_Allocate( block_size ); 479de: 2840 moveal %d0,%a4 if ( !object_blocks ) { 479e0: 4a80 tstl %d0 479e2: 6700 01ce beqw 47bb2 <_Objects_Extend_information+0x282> } /* * Break the block into the various sections. */ inactive_per_block = (uint32_t *) _Addresses_Add_offset( 479e6: 2e0d movel %a5,%d7 * Take the block count down. Saves all the (block_count - 1) * in the copies. */ block_count--; if ( information->maximum > minimum_index ) { 479e8: 4280 clrl %d0 } /* * Break the block into the various sections. */ inactive_per_block = (uint32_t *) _Addresses_Add_offset( 479ea: e58f lsll #2,%d7 * Take the block count down. Saves all the (block_count - 1) * in the copies. */ block_count--; if ( information->maximum > minimum_index ) { 479ec: 302a 000e movew %a2@(14),%d0 RTEMS_INLINE_ROUTINE void *_Addresses_Add_offset ( const void *base, uintptr_t offset ) { return (void *)((uintptr_t)base + offset); 479f0: 4bf4 7800 lea %a4@(00000000,%d7:l),%a5 479f4: de8d addl %a5,%d7 479f6: b085 cmpl %d5,%d0 479f8: 6200 0144 bhiw 47b3e <_Objects_Extend_information+0x20e> } else { /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { 479fc: 4a85 tstl %d5 479fe: 670c beqs 47a0c <_Objects_Extend_information+0xdc><== NEVER TAKEN 47a00: 2047 moveal %d7,%a0 47a02: 4280 clrl %d0 local_table[ index ] = NULL; 47a04: 4298 clrl %a0@+ } else { /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { 47a06: 5280 addql #1,%d0 47a08: b085 cmpl %d5,%d0 47a0a: 65f8 bcss 47a04 <_Objects_Extend_information+0xd4><== NEVER TAKEN 47a0c: e58c lsll #2,%d4 */ object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; for ( index=index_base ; index < ( information->allocation_size + index_base ); 47a0e: 4281 clrl %d1 } /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; 47a10: 42b4 4800 clrl %a4@(00000000,%d4:l) inactive_per_block[block_count] = 0; for ( index=index_base ; index < ( information->allocation_size + index_base ); 47a14: 322a 0012 movew %a2@(18),%d1 /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; 47a18: 42b5 4800 clrl %a5@(00000000,%d4:l) for ( index=index_base ; index < ( information->allocation_size + index_base ); 47a1c: d283 addl %d3,%d1 * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; for ( index=index_base ; 47a1e: b283 cmpl %d3,%d1 47a20: 6310 blss 47a32 <_Objects_Extend_information+0x102><== NEVER TAKEN 47a22: 2247 moveal %d7,%a1 * information - object information table * * Output parameters: NONE */ void _Objects_Extend_information( 47a24: 2003 movel %d3,%d0 * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; for ( index=index_base ; 47a26: 41f1 3c00 lea %a1@(00000000,%d3:l:4),%a0 index < ( information->allocation_size + index_base ); index++ ) { local_table[ index ] = NULL; 47a2a: 4298 clrl %a0@+ object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; for ( index=index_base ; index < ( information->allocation_size + index_base ); index++ ) { 47a2c: 5280 addql #1,%d0 * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; for ( index=index_base ; 47a2e: b280 cmpl %d0,%d1 47a30: 62f8 bhis 47a2a <_Objects_Extend_information+0xfa> index < ( information->allocation_size + index_base ); index++ ) { local_table[ index ] = NULL; } _ISR_Disable( level ); 47a32: 203c 0000 0700 movel #1792,%d0 47a38: 40c4 movew %sr,%d4 47a3a: 8084 orl %d4,%d0 47a3c: 46c0 movew %d0,%sr uint32_t the_class, uint32_t node, uint32_t index ) { return (( (Objects_Id) the_api ) << OBJECTS_API_START_BIT) | 47a3e: 2012 movel %a2@,%d0 47a40: 7a18 moveq #24,%d5 information->object_blocks = object_blocks; information->inactive_per_block = inactive_per_block; information->local_table = local_table; information->maximum = (Objects_Maximum) maximum; information->maximum_id = _Objects_Build_id( 47a42: 4281 clrl %d1 47a44: eba8 lsll %d5,%d0 47a46: 4285 clrl %d5 47a48: 3a0b movew %a3,%d5 47a4a: 322a 0004 movew %a2@(4),%d1 47a4e: 08c0 0010 bset #16,%d0 47a52: 2245 moveal %d5,%a1 (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) | 47a54: 7a1b moveq #27,%d5 47a56: eba9 lsll %d5,%d1 local_table[ index ] = NULL; } _ISR_Disable( level ); old_tables = information->object_blocks; 47a58: 206a 002e moveal %a2@(46),%a0 47a5c: 8081 orl %d1,%d0 uint32_t the_class, uint32_t node, uint32_t index ) { return (( (Objects_Id) the_api ) << OBJECTS_API_START_BIT) | 47a5e: 2209 movel %a1,%d1 47a60: 8280 orl %d0,%d1 information->object_blocks = object_blocks; information->inactive_per_block = inactive_per_block; information->local_table = local_table; information->maximum = (Objects_Maximum) maximum; 47a62: 354b 000e movew %a3,%a2@(14) _ISR_Disable( level ); old_tables = information->object_blocks; information->object_blocks = object_blocks; 47a66: 254c 002e movel %a4,%a2@(46) information->inactive_per_block = inactive_per_block; 47a6a: 254d 002a movel %a5,%a2@(42) 47a6e: 2541 000a movel %d1,%a2@(10) information->local_table = local_table; 47a72: 2547 0018 movel %d7,%a2@(24) information->the_class, _Objects_Local_node, information->maximum ); _ISR_Enable( level ); 47a76: 46c4 movew %d4,%sr if ( old_tables ) 47a78: 4a88 tstl %a0 47a7a: 670a beqs 47a86 <_Objects_Extend_information+0x156><== ALWAYS TAKEN _Workspace_Free( old_tables ); 47a7c: 2f08 movel %a0,%sp@- <== NOT EXECUTED 47a7e: 4eb9 0004 9a9e jsr 49a9e <_Workspace_Free> <== NOT EXECUTED 47a84: 588f addql #4,%sp <== NOT EXECUTED } /* * Assign the new object block to the object block table. */ information->object_blocks[ block ] = new_object_block; 47a86: 206a 002e moveal %a2@(46),%a0 /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( 47a8a: 4280 clrl %d0 47a8c: 280e movel %fp,%d4 47a8e: 0684 ffff fff4 addil #-12,%d4 47a94: 47f9 0004 6ed8 lea 46ed8 <_Chain_Get>,%a3 information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); 47a9a: 2a0a movel %a2,%d5 47a9c: 0685 0000 001c addil #28,%d5 47aa2: 49f9 0004 6e78 lea 46e78 <_Chain_Append>,%a4 } /* * Assign the new object block to the object block table. */ information->object_blocks[ block ] = new_object_block; 47aa8: e58a lsll #2,%d2 /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( 47aaa: 302a 0012 movew %a2@(18),%d0 } /* * Assign the new object block to the object block table. */ information->object_blocks[ block ] = new_object_block; 47aae: 2186 2800 movel %d6,%a0@(00000000,%d2:l) /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( 47ab2: 2f2a 0014 movel %a2@(20),%sp@- 47ab6: 2f00 movel %d0,%sp@- 47ab8: 2f06 movel %d6,%sp@- 47aba: 2f04 movel %d4,%sp@- 47abc: 4eb9 0004 b8e0 jsr 4b8e0 <_Chain_Initialize> /* * Move from the local chain, initialise, then append to the inactive chain */ index = index_base; while ((the_object = (Objects_Control *) _Chain_Get( &Inactive )) != NULL ) { 47ac2: 4fef 0010 lea %sp@(16),%sp 47ac6: 2f04 movel %d4,%sp@- 47ac8: 4e93 jsr %a3@ 47aca: 588f addql #4,%sp 47acc: 4a80 tstl %d0 47ace: 6734 beqs 47b04 <_Objects_Extend_information+0x1d4><== NEVER TAKEN 47ad0: 2212 movel %a2@,%d1 47ad2: 7e18 moveq #24,%d7 the_object->id = _Objects_Build_id( 47ad4: 4286 clrl %d6 47ad6: 2040 moveal %d0,%a0 47ad8: 3c2a 0004 movew %a2@(4),%d6 47adc: efa9 lsll %d7,%d1 (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) | 47ade: 1e3c 001b moveb #27,%d7 uint32_t the_class, uint32_t node, uint32_t index ) { return (( (Objects_Id) the_api ) << OBJECTS_API_START_BIT) | 47ae2: 08c1 0010 bset #16,%d1 (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) | 47ae6: efae lsll %d7,%d6 47ae8: 8286 orl %d6,%d1 uint32_t the_class, uint32_t node, uint32_t index ) { return (( (Objects_Id) the_api ) << OBJECTS_API_START_BIT) | 47aea: 8283 orl %d3,%d1 index ); _Chain_Append( &information->Inactive, &the_object->Node ); index++; 47aec: 5283 addql #1,%d3 47aee: 2141 0008 movel %d1,%a0@(8) information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); 47af2: 2f00 movel %d0,%sp@- 47af4: 2f05 movel %d5,%sp@- 47af6: 4e94 jsr %a4@ index++; 47af8: 508f addql #8,%sp /* * Move from the local chain, initialise, then append to the inactive chain */ index = index_base; while ((the_object = (Objects_Control *) _Chain_Get( &Inactive )) != NULL ) { 47afa: 2f04 movel %d4,%sp@- 47afc: 4e93 jsr %a3@ 47afe: 588f addql #4,%sp 47b00: 4a80 tstl %d0 47b02: 66cc bnes 47ad0 <_Objects_Extend_information+0x1a0> _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; 47b04: 4281 clrl %d1 47b06: 302a 0012 movew %a2@(18),%d0 information->inactive = (Objects_Maximum)(information->inactive + information->allocation_size); 47b0a: 326a 0028 moveaw %a2@(40),%a1 _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; 47b0e: 206a 002a moveal %a2@(42),%a0 47b12: 3200 movew %d0,%d1 information->inactive = (Objects_Maximum)(information->inactive + information->allocation_size); 47b14: d089 addl %a1,%d0 _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; 47b16: 2181 2800 movel %d1,%a0@(00000000,%d2:l) information->inactive = 47b1a: 3540 0028 movew %d0,%a2@(40) (Objects_Maximum)(information->inactive + information->allocation_size); } 47b1e: 4cee 3cfc ffcc moveml %fp@(-52),%d2-%d7/%a2-%a5 47b24: 4e5e unlk %fp 47b26: 4e75 rts /* * Search for a free block of indexes. If we do NOT need to allocate or * extend the block table, then we will change do_extend. */ do_extend = true; 47b28: 7e01 moveq #1,%d7 <== NOT EXECUTED 47b2a: 6000 fe5e braw 4798a <_Objects_Extend_information+0x5a><== NOT EXECUTED if ( information->auto_extend ) { new_object_block = _Workspace_Allocate( block_size ); if ( !new_object_block ) return; } else { new_object_block = _Workspace_Allocate_or_fatal_error( block_size ); 47b2e: 2f00 movel %d0,%sp@- 47b30: 4eb9 0004 9ab6 jsr 49ab6 <_Workspace_Allocate_or_fatal_error> 47b36: 588f addql #4,%sp 47b38: 2c00 movel %d0,%d6 47b3a: 6000 fe82 braw 479be <_Objects_Extend_information+0x8e> /* * Copy each section of the table over. This has to be performed as * separate parts as size of each block has changed. */ memcpy( object_blocks, 47b3e: e58c lsll #2,%d4 <== NOT EXECUTED 47b40: 2f04 movel %d4,%sp@- <== NOT EXECUTED 47b42: 2f2a 002e movel %a2@(46),%sp@- <== NOT EXECUTED 47b46: 2f0c movel %a4,%sp@- <== NOT EXECUTED 47b48: 4eb9 0004 e108 jsr 4e108 <== NOT EXECUTED information->object_blocks, block_count * sizeof(void*) ); memcpy( inactive_per_block, 47b4e: 2f04 movel %d4,%sp@- <== NOT EXECUTED 47b50: 2f2a 002a movel %a2@(42),%sp@- <== NOT EXECUTED 47b54: 2f0d movel %a5,%sp@- <== NOT EXECUTED 47b56: 4eb9 0004 e108 jsr 4e108 <== NOT EXECUTED information->inactive_per_block, block_count * sizeof(uint32_t) ); memcpy( local_table, information->local_table, (information->maximum + minimum_index) * sizeof(Objects_Control *) ); 47b5c: 4280 clrl %d0 <== NOT EXECUTED 47b5e: 302a 000e movew %a2@(14),%d0 <== NOT EXECUTED 47b62: da80 addl %d0,%d5 <== NOT EXECUTED information->object_blocks, block_count * sizeof(void*) ); memcpy( inactive_per_block, information->inactive_per_block, block_count * sizeof(uint32_t) ); memcpy( local_table, 47b64: e58d lsll #2,%d5 <== NOT EXECUTED 47b66: 2f05 movel %d5,%sp@- <== NOT EXECUTED 47b68: 2f2a 0018 movel %a2@(24),%sp@- <== NOT EXECUTED 47b6c: 2f07 movel %d7,%sp@- <== NOT EXECUTED 47b6e: 4eb9 0004 e108 jsr 4e108 <== NOT EXECUTED 47b74: 4fef 0024 lea %sp@(36),%sp <== NOT EXECUTED 47b78: 6000 fe94 braw 47a0e <_Objects_Extend_information+0xde><== NOT EXECUTED minimum_index = _Objects_Get_index( information->minimum_id ); index_base = minimum_index; block = 0; /* if ( information->maximum < minimum_index ) */ if ( information->object_blocks == NULL ) 47b7c: 4280 clrl %d0 /* * Search for a free block of indexes. If we do NOT need to allocate or * extend the block table, then we will change do_extend. */ do_extend = true; minimum_index = _Objects_Get_index( information->minimum_id ); 47b7e: 2605 movel %d5,%d3 index_base = minimum_index; block = 0; 47b80: 4282 clrl %d2 /* if ( information->maximum < minimum_index ) */ if ( information->object_blocks == NULL ) block_count = 0; 47b82: 4284 clrl %d4 minimum_index = _Objects_Get_index( information->minimum_id ); index_base = minimum_index; block = 0; /* if ( information->maximum < minimum_index ) */ if ( information->object_blocks == NULL ) 47b84: 322a 000e movew %a2@(14),%d1 47b88: 302a 0012 movew %a2@(18),%d0 /* * Search for a free block of indexes. If we do NOT need to allocate or * extend the block table, then we will change do_extend. */ do_extend = true; 47b8c: 7e01 moveq #1,%d7 47b8e: 6000 fdfa braw 4798a <_Objects_Extend_information+0x5a> minimum_index = _Objects_Get_index( information->minimum_id ); 47b92: 2605 movel %d5,%d3 <== NOT EXECUTED index_base = minimum_index; block = 0; 47b94: 4282 clrl %d2 <== NOT EXECUTED if ( information->object_blocks == NULL ) block_count = 0; else { block_count = information->maximum / information->allocation_size; for ( ; block < block_count; block++ ) { 47b96: 0280 0000 ffff andil #65535,%d0 <== NOT EXECUTED /* * Search for a free block of indexes. If we do NOT need to allocate or * extend the block table, then we will change do_extend. */ do_extend = true; 47b9c: 7e01 moveq #1,%d7 <== NOT EXECUTED 47b9e: 6000 fdea braw 4798a <_Objects_Extend_information+0x5a><== NOT EXECUTED minimum_index = _Objects_Get_index( information->minimum_id ); 47ba2: 2605 movel %d5,%d3 <== NOT EXECUTED index_base = minimum_index; block = 0; 47ba4: 4282 clrl %d2 <== NOT EXECUTED block_count = 0; else { block_count = information->maximum / information->allocation_size; for ( ; block < block_count; block++ ) { if ( information->object_blocks[ block ] == NULL ) { 47ba6: 0280 0000 ffff andil #65535,%d0 <== NOT EXECUTED do_extend = false; 47bac: 4207 clrb %d7 <== NOT EXECUTED 47bae: 6000 fdda braw 4798a <_Objects_Extend_information+0x5a><== NOT EXECUTED (sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) + ((maximum + minimum_index) * sizeof(Objects_Control *)); object_blocks = (void**) _Workspace_Allocate( block_size ); if ( !object_blocks ) { _Workspace_Free( new_object_block ); 47bb2: 2f06 movel %d6,%sp@- <== NOT EXECUTED 47bb4: 4eb9 0004 9a9e jsr 49a9e <_Workspace_Free> <== NOT EXECUTED return; 47bba: 588f addql #4,%sp <== NOT EXECUTED } information->inactive_per_block[ block ] = information->allocation_size; information->inactive = (Objects_Maximum)(information->inactive + information->allocation_size); } 47bbc: 4cee 3cfc ffcc moveml %fp@(-52),%d2-%d7/%a2-%a5 <== NOT EXECUTED 47bc2: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 00047bc8 <_Objects_Free>: void _Objects_Free( Objects_Information *information, Objects_Control *the_object ) { 47bc8: 4e56 fff0 linkw %fp,#-16 47bcc: 48d7 0c0c moveml %d2-%d3/%a2-%a3,%sp@ 47bd0: 266e 000c moveal %fp@(12),%a3 47bd4: 246e 0008 moveal %fp@(8),%a2 uint32_t allocation_size = information->allocation_size; _Chain_Append( &information->Inactive, &the_object->Node ); 47bd8: 2f0b movel %a3,%sp@- 47bda: 486a 001c pea %a2@(28) void _Objects_Free( Objects_Information *information, Objects_Control *the_object ) { uint32_t allocation_size = information->allocation_size; 47bde: 342a 0012 movew %a2@(18),%d2 _Chain_Append( &information->Inactive, &the_object->Node ); 47be2: 4eb9 0004 6e78 jsr 46e78 <_Chain_Append> if ( information->auto_extend ) { 47be8: 508f addql #8,%sp 47bea: 4a2a 0010 tstb %a2@(16) 47bee: 6740 beqs 47c30 <_Objects_Free+0x68> <== ALWAYS TAKEN uint32_t block; block = (uint32_t) (_Objects_Get_index( the_object->id ) - 47bf0: 4280 clrl %d0 <== NOT EXECUTED 47bf2: 4283 clrl %d3 <== NOT EXECUTED _Objects_Get_index( information->minimum_id )); block /= information->allocation_size; 47bf4: 4281 clrl %d1 <== NOT EXECUTED _Chain_Append( &information->Inactive, &the_object->Node ); if ( information->auto_extend ) { uint32_t block; block = (uint32_t) (_Objects_Get_index( the_object->id ) - 47bf6: 302b 000a movew %a3@(10),%d0 <== NOT EXECUTED 47bfa: 362a 0008 movew %a2@(8),%d3 <== NOT EXECUTED _Objects_Get_index( information->minimum_id )); block /= information->allocation_size; 47bfe: 322a 0012 movew %a2@(18),%d1 <== NOT EXECUTED information->inactive_per_block[ block ]++; 47c02: 206a 002a moveal %a2@(42),%a0 <== NOT EXECUTED _Chain_Append( &information->Inactive, &the_object->Node ); if ( information->auto_extend ) { uint32_t block; block = (uint32_t) (_Objects_Get_index( the_object->id ) - 47c06: 9083 subl %d3,%d0 <== NOT EXECUTED _Objects_Get_index( information->minimum_id )); block /= information->allocation_size; 47c08: 4c41 0000 remul %d1,%d0,%d0 <== NOT EXECUTED information->inactive_per_block[ block ]++; information->inactive++; 47c0c: 322a 0028 movew %a2@(40),%d1 <== NOT EXECUTED void _Objects_Free( Objects_Information *information, Objects_Control *the_object ) { uint32_t allocation_size = information->allocation_size; 47c10: 0282 0000 ffff andil #65535,%d2 <== NOT EXECUTED block = (uint32_t) (_Objects_Get_index( the_object->id ) - _Objects_Get_index( information->minimum_id )); block /= information->allocation_size; information->inactive_per_block[ block ]++; 47c16: e588 lsll #2,%d0 <== NOT EXECUTED information->inactive++; 47c18: 5281 addql #1,%d1 <== NOT EXECUTED /* * Check if the threshold level has been met of * 1.5 x allocation_size are free. */ if ( information->inactive > ( allocation_size + ( allocation_size >> 1 ) ) ) { 47c1a: 2602 movel %d2,%d3 <== NOT EXECUTED block = (uint32_t) (_Objects_Get_index( the_object->id ) - _Objects_Get_index( information->minimum_id )); block /= information->allocation_size; information->inactive_per_block[ block ]++; 47c1c: d1c0 addal %d0,%a0 <== NOT EXECUTED 47c1e: 5290 addql #1,%a0@ <== NOT EXECUTED /* * Check if the threshold level has been met of * 1.5 x allocation_size are free. */ if ( information->inactive > ( allocation_size + ( allocation_size >> 1 ) ) ) { 47c20: 4280 clrl %d0 <== NOT EXECUTED 47c22: e28b lsrl #1,%d3 <== NOT EXECUTED 47c24: d483 addl %d3,%d2 <== NOT EXECUTED 47c26: 3001 movew %d1,%d0 <== NOT EXECUTED block = (uint32_t) (_Objects_Get_index( the_object->id ) - _Objects_Get_index( information->minimum_id )); block /= information->allocation_size; information->inactive_per_block[ block ]++; information->inactive++; 47c28: 3541 0028 movew %d1,%a2@(40) <== NOT EXECUTED /* * Check if the threshold level has been met of * 1.5 x allocation_size are free. */ if ( information->inactive > ( allocation_size + ( allocation_size >> 1 ) ) ) { 47c2c: b480 cmpl %d0,%d2 <== NOT EXECUTED 47c2e: 650a bcss 47c3a <_Objects_Free+0x72> <== NOT EXECUTED _Objects_Shrink_information( information ); } } } 47c30: 4cee 0c0c fff0 moveml %fp@(-16),%d2-%d3/%a2-%a3 47c36: 4e5e unlk %fp 47c38: 4e75 rts * Check if the threshold level has been met of * 1.5 x allocation_size are free. */ if ( information->inactive > ( allocation_size + ( allocation_size >> 1 ) ) ) { _Objects_Shrink_information( information ); 47c3a: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED } } } 47c3e: 4cee 0c0c fff0 moveml %fp@(-16),%d2-%d3/%a2-%a3 <== NOT EXECUTED 47c44: 4e5e unlk %fp <== NOT EXECUTED * Check if the threshold level has been met of * 1.5 x allocation_size are free. */ if ( information->inactive > ( allocation_size + ( allocation_size >> 1 ) ) ) { _Objects_Shrink_information( information ); 47c46: 4ef9 0004 7f40 jmp 47f40 <_Objects_Shrink_information> <== NOT EXECUTED =============================================================================== 00047d34 <_Objects_Get>: * always NULL. * * If the Id is valid but the object has not been created yet, then * the local_table entry will be NULL. */ index = id - information->minimum_id + 1; 47d34: 7001 moveq #1,%d0 /* * If the index is less than maximum, then it is OK to use it to * index into the local_table array. */ if ( index <= information->maximum ) { 47d36: 4281 clrl %d1 Objects_Control *_Objects_Get( Objects_Information *information, Objects_Id id, Objects_Locations *location ) { 47d38: 4e56 fffc linkw %fp,#-4 47d3c: 206e 0008 moveal %fp@(8),%a0 * always NULL. * * If the Id is valid but the object has not been created yet, then * the local_table entry will be NULL. */ index = id - information->minimum_id + 1; 47d40: 90a8 0006 subl %a0@(6),%d0 47d44: d0ae 000c addl %fp@(12),%d0 Objects_Control *_Objects_Get( Objects_Information *information, Objects_Id id, Objects_Locations *location ) { 47d48: 2f0a movel %a2,%sp@- 47d4a: 246e 0010 moveal %fp@(16),%a2 /* * If the index is less than maximum, then it is OK to use it to * index into the local_table array. */ if ( index <= information->maximum ) { 47d4e: 3228 000e movew %a0@(14),%d1 47d52: b280 cmpl %d0,%d1 47d54: 6522 bcss 47d78 <_Objects_Get+0x44> <== NEVER TAKEN 47d56: 2239 0005 e4c8 movel 5e4c8 <_Thread_Dispatch_disable_level>,%d1 47d5c: 5281 addql #1,%d1 47d5e: 23c1 0005 e4c8 movel %d1,5e4c8 <_Thread_Dispatch_disable_level> _Thread_Disable_dispatch(); if ( (the_object = information->local_table[ index ]) != NULL ) { 47d64: 2068 0018 moveal %a0@(24),%a0 47d68: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 47d6c: 6718 beqs 47d86 <_Objects_Get+0x52> <== NEVER TAKEN *location = OBJECTS_LOCAL; 47d6e: 4292 clrl %a2@ _Objects_MP_Is_remote( information, id, location, &the_object ); return the_object; #else return NULL; #endif } 47d70: 246e fff8 moveal %fp@(-8),%a2 47d74: 4e5e unlk %fp 47d76: 4e75 rts /* * Object Id is not within this API and Class on this node. So * it may be global in a multiprocessing system. But it is clearly * invalid on a single processor system. */ *location = OBJECTS_ERROR; 47d78: 7001 moveq #1,%d0 <== NOT EXECUTED 47d7a: 2480 movel %d0,%a2@ <== NOT EXECUTED _Objects_MP_Is_remote( information, id, location, &the_object ); return the_object; #else return NULL; #endif } 47d7c: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) _Objects_MP_Is_remote( information, id, location, &the_object ); return the_object; #else return NULL; 47d80: 4280 clrl %d0 <== NOT EXECUTED #endif } 47d82: 4e5e unlk %fp <== NOT EXECUTED 47d84: 4e75 rts <== NOT EXECUTED /* * Valid Id for this API, Class and Node but the object has not * been allocated yet. */ _Thread_Enable_dispatch(); 47d86: 2d40 fffc movel %d0,%fp@(-4) <== NOT EXECUTED 47d8a: 4eb9 0004 88c2 jsr 488c2 <_Thread_Enable_dispatch> <== NOT EXECUTED *location = OBJECTS_ERROR; return NULL; 47d90: 202e fffc movel %fp@(-4),%d0 <== NOT EXECUTED /* * Valid Id for this API, Class and Node but the object has not * been allocated yet. */ _Thread_Enable_dispatch(); *location = OBJECTS_ERROR; 47d94: 7201 moveq #1,%d1 <== NOT EXECUTED 47d96: 2481 movel %d1,%a2@ <== NOT EXECUTED _Objects_MP_Is_remote( information, id, location, &the_object ); return the_object; #else return NULL; #endif } 47d98: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 47d9c: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00047c78 <_Objects_Get_information>: Objects_Information *_Objects_Get_information( Objects_APIs the_api, uint16_t the_class ) { 47c78: 4e56 0000 linkw %fp,#0 47c7c: 2f02 movel %d2,%sp@- 47c7e: 342e 000e movew %fp@(14),%d2 Objects_Information *info; int the_class_api_maximum; if ( !the_class ) 47c82: 660a bnes 47c8e <_Objects_Get_information+0x16> <== ALWAYS TAKEN if ( the_class > (uint32_t) the_class_api_maximum ) return NULL; if ( !_Objects_Information_table[ the_api ] ) return NULL; 47c84: 4280 clrl %d0 <== NOT EXECUTED if ( info->maximum == 0 ) return NULL; #endif return info; } 47c86: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 47c8a: 4e5e unlk %fp <== NOT EXECUTED 47c8c: 4e75 rts <== NOT EXECUTED /* * This call implicitly validates the_api so we do not call * _Objects_Is_api_valid above here. */ the_class_api_maximum = _Objects_API_maximum_class( the_api ); 47c8e: 2f2e 0008 movel %fp@(8),%sp@- 47c92: 4eb9 0004 be08 jsr 4be08 <_Objects_API_maximum_class> if ( the_class_api_maximum == 0 ) 47c98: 588f addql #4,%sp 47c9a: 4a80 tstl %d0 47c9c: 67e6 beqs 47c84 <_Objects_Get_information+0xc> <== NEVER TAKEN return NULL; if ( the_class > (uint32_t) the_class_api_maximum ) 47c9e: 0282 0000 ffff andil #65535,%d2 47ca4: b480 cmpl %d0,%d2 47ca6: 62dc bhis 47c84 <_Objects_Get_information+0xc> <== NEVER TAKEN return NULL; if ( !_Objects_Information_table[ the_api ] ) 47ca8: 202e 0008 movel %fp@(8),%d0 47cac: 41f9 0005 e484 lea 5e484 <_Objects_Information_table>,%a0 47cb2: 2070 0c00 moveal %a0@(00000000,%d0:l:4),%a0 47cb6: 4a88 tstl %a0 47cb8: 67ca beqs 47c84 <_Objects_Get_information+0xc> <== NEVER TAKEN return NULL; info = _Objects_Information_table[ the_api ][ the_class ]; 47cba: 2030 2c00 movel %a0@(00000000,%d2:l:4),%d0 if ( !info ) 47cbe: 67c6 beqs 47c86 <_Objects_Get_information+0xe> <== NEVER TAKEN * Thus we may have 0 local instances and still have a valid object * pointer. */ #if !defined(RTEMS_MULTIPROCESSING) if ( info->maximum == 0 ) return NULL; 47cc0: 2040 moveal %d0,%a0 47cc2: 4a68 000e tstw %a0@(14) 47cc6: 56c1 sne %d1 #endif return info; } 47cc8: 242e fffc movel %fp@(-4),%d2 * Thus we may have 0 local instances and still have a valid object * pointer. */ #if !defined(RTEMS_MULTIPROCESSING) if ( info->maximum == 0 ) return NULL; 47ccc: 49c1 extbl %d1 #endif return info; } 47cce: 4e5e unlk %fp * Thus we may have 0 local instances and still have a valid object * pointer. */ #if !defined(RTEMS_MULTIPROCESSING) if ( info->maximum == 0 ) return NULL; 47cd0: c081 andl %d1,%d0 <== NOT EXECUTED #endif return info; } =============================================================================== 00047cd4 <_Objects_Get_isr_disable>: { Objects_Control *the_object; uint32_t index; ISR_Level level; index = id - information->minimum_id + 1; 47cd4: 7001 moveq #1,%d0 _ISR_Disable( level ); 47cd6: 223c 0000 0700 movel #1792,%d1 Objects_Information *information, Objects_Id id, Objects_Locations *location, ISR_Level *level_p ) { 47cdc: 4e56 0000 linkw %fp,#0 47ce0: 206e 0008 moveal %fp@(8),%a0 Objects_Control *the_object; uint32_t index; ISR_Level level; index = id - information->minimum_id + 1; 47ce4: 90a8 0006 subl %a0@(6),%d0 47ce8: d0ae 000c addl %fp@(12),%d0 Objects_Information *information, Objects_Id id, Objects_Locations *location, ISR_Level *level_p ) { 47cec: 2f02 movel %d2,%sp@- 47cee: 226e 0010 moveal %fp@(16),%a1 uint32_t index; ISR_Level level; index = id - information->minimum_id + 1; _ISR_Disable( level ); 47cf2: 40c2 movew %sr,%d2 47cf4: 8282 orl %d2,%d1 47cf6: 46c1 movew %d1,%sr if ( information->maximum >= index ) { 47cf8: 4281 clrl %d1 47cfa: 3228 000e movew %a0@(14),%d1 47cfe: b280 cmpl %d0,%d1 47d00: 6518 bcss 47d1a <_Objects_Get_isr_disable+0x46> <== NEVER TAKEN if ( (the_object = information->local_table[ index ]) != NULL ) { 47d02: 2068 0018 moveal %a0@(24),%a0 47d06: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 47d0a: 671c beqs 47d28 <_Objects_Get_isr_disable+0x54> <== NEVER TAKEN *location = OBJECTS_LOCAL; *level_p = level; 47d0c: 206e 0014 moveal %fp@(20),%a0 index = id - information->minimum_id + 1; _ISR_Disable( level ); if ( information->maximum >= index ) { if ( (the_object = information->local_table[ index ]) != NULL ) { *location = OBJECTS_LOCAL; 47d10: 4291 clrl %a1@ *level_p = level; 47d12: 2082 movel %d2,%a0@ _Objects_MP_Is_remote( information, id, location, &the_object ); return the_object; #else return NULL; #endif } 47d14: 241f movel %sp@+,%d2 47d16: 4e5e unlk %fp 47d18: 4e75 rts } _ISR_Enable( level ); *location = OBJECTS_ERROR; return NULL; } _ISR_Enable( level ); 47d1a: 46c2 movew %d2,%sr <== NOT EXECUTED *location = OBJECTS_ERROR; 47d1c: 7201 moveq #1,%d1 <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) _Objects_MP_Is_remote( information, id, location, &the_object ); return the_object; #else return NULL; 47d1e: 4280 clrl %d0 <== NOT EXECUTED #endif } 47d20: 241f movel %sp@+,%d2 <== NOT EXECUTED 47d22: 4e5e unlk %fp <== NOT EXECUTED _ISR_Enable( level ); *location = OBJECTS_ERROR; return NULL; } _ISR_Enable( level ); *location = OBJECTS_ERROR; 47d24: 2281 movel %d1,%a1@ <== NOT EXECUTED _Objects_MP_Is_remote( information, id, location, &the_object ); return the_object; #else return NULL; #endif } 47d26: 4e75 rts <== NOT EXECUTED if ( (the_object = information->local_table[ index ]) != NULL ) { *location = OBJECTS_LOCAL; *level_p = level; return the_object; } _ISR_Enable( level ); 47d28: 46c2 movew %d2,%sr <== NOT EXECUTED *location = OBJECTS_ERROR; 47d2a: 7401 moveq #1,%d2 <== NOT EXECUTED 47d2c: 2282 movel %d2,%a1@ <== NOT EXECUTED _Objects_MP_Is_remote( information, id, location, &the_object ); return the_object; #else return NULL; #endif } 47d2e: 241f movel %sp@+,%d2 <== NOT EXECUTED 47d30: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00049740 <_Objects_Get_name_as_string>: char *_Objects_Get_name_as_string( Objects_Id id, size_t length, char *name ) { 49740: 4e56 ffe0 linkw %fp,#-32 <== NOT EXECUTED 49744: 48d7 043c moveml %d2-%d5/%a2,%sp@ <== NOT EXECUTED 49748: 262e 000c movel %fp@(12),%d3 <== NOT EXECUTED 4974c: 242e 0010 movel %fp@(16),%d2 <== NOT EXECUTED char lname[5]; Objects_Control *the_object; Objects_Locations location; Objects_Id tmpId; if ( length == 0 ) 49750: 4a83 tstl %d3 <== NOT EXECUTED 49752: 660e bnes 49762 <_Objects_Get_name_as_string+0x22><== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) case OBJECTS_REMOTE: /* not supported */ #endif case OBJECTS_ERROR: return NULL; 49754: 4282 clrl %d2 <== NOT EXECUTED _Thread_Enable_dispatch(); return name; } return NULL; /* unreachable path */ } 49756: 2002 movel %d2,%d0 <== NOT EXECUTED 49758: 4cee 043c ffe0 moveml %fp@(-32),%d2-%d5/%a2 <== NOT EXECUTED 4975e: 4e5e unlk %fp <== NOT EXECUTED 49760: 4e75 rts <== NOT EXECUTED Objects_Id tmpId; if ( length == 0 ) return NULL; if ( name == NULL ) 49762: 4a82 tstl %d2 <== NOT EXECUTED 49764: 67f0 beqs 49756 <_Objects_Get_name_as_string+0x16><== NOT EXECUTED return NULL; tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; 49766: 4aae 0008 tstl %fp@(8) <== NOT EXECUTED 4976a: 6600 00b0 bnew 4981c <_Objects_Get_name_as_string+0xdc><== NOT EXECUTED 4976e: 2079 0006 8c5c moveal 68c5c <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED 49774: 2828 0008 movel %a0@(8),%d4 <== NOT EXECUTED information = _Objects_Get_information_id( tmpId ); 49778: 2f04 movel %d4,%sp@- <== NOT EXECUTED 4977a: 4eb9 0004 9658 jsr 49658 <_Objects_Get_information_id> <== NOT EXECUTED if ( !information ) 49780: 588f addql #4,%sp <== NOT EXECUTED 49782: 4a80 tstl %d0 <== NOT EXECUTED 49784: 67ce beqs 49754 <_Objects_Get_name_as_string+0x14><== NOT EXECUTED return NULL; the_object = _Objects_Get( information, tmpId, &location ); 49786: 486e fffc pea %fp@(-4) <== NOT EXECUTED 4978a: 2f04 movel %d4,%sp@- <== NOT EXECUTED 4978c: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4978e: 4eb9 0004 9830 jsr 49830 <_Objects_Get> <== NOT EXECUTED switch ( location ) { 49794: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 49798: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 4979c: 66b6 bnes 49754 <_Objects_Get_name_as_string+0x14><== NOT EXECUTED if ( information->is_string ) { s = the_object->name.name_p; } else #endif { uint32_t u32_name = (uint32_t) the_object->name.name_u32; 4979e: 2040 moveal %d0,%a0 <== NOT EXECUTED lname[ 0 ] = (u32_name >> 24) & 0xff; 497a0: 7818 moveq #24,%d4 <== NOT EXECUTED s = lname; } d = name; if ( s ) { for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) { 497a2: 2a03 movel %d3,%d5 <== NOT EXECUTED 497a4: 5385 subql #1,%d5 <== NOT EXECUTED if ( information->is_string ) { s = the_object->name.name_p; } else #endif { uint32_t u32_name = (uint32_t) the_object->name.name_u32; 497a6: 2228 000c movel %a0@(12),%d1 <== NOT EXECUTED lname[ 0 ] = (u32_name >> 24) & 0xff; 497aa: 2001 movel %d1,%d0 <== NOT EXECUTED 497ac: e8a8 lsrl %d4,%d0 <== NOT EXECUTED lname[ 1 ] = (u32_name >> 16) & 0xff; lname[ 2 ] = (u32_name >> 8) & 0xff; 497ae: 2801 movel %d1,%d4 <== NOT EXECUTED #endif { uint32_t u32_name = (uint32_t) the_object->name.name_u32; lname[ 0 ] = (u32_name >> 24) & 0xff; lname[ 1 ] = (u32_name >> 16) & 0xff; 497b0: 2601 movel %d1,%d3 <== NOT EXECUTED lname[ 2 ] = (u32_name >> 8) & 0xff; 497b2: e08c lsrl #8,%d4 <== NOT EXECUTED lname[ 3 ] = (u32_name >> 0) & 0xff; 497b4: 1d41 fffa moveb %d1,%fp@(-6) <== NOT EXECUTED #endif { uint32_t u32_name = (uint32_t) the_object->name.name_u32; lname[ 0 ] = (u32_name >> 24) & 0xff; lname[ 1 ] = (u32_name >> 16) & 0xff; 497b8: 4243 clrw %d3 <== NOT EXECUTED 497ba: 4843 swap %d3 <== NOT EXECUTED lname[ 2 ] = (u32_name >> 8) & 0xff; lname[ 3 ] = (u32_name >> 0) & 0xff; lname[ 4 ] = '\0'; 497bc: 4201 clrb %d1 <== NOT EXECUTED } else #endif { uint32_t u32_name = (uint32_t) the_object->name.name_u32; lname[ 0 ] = (u32_name >> 24) & 0xff; 497be: 1d40 fff7 moveb %d0,%fp@(-9) <== NOT EXECUTED lname[ 1 ] = (u32_name >> 16) & 0xff; 497c2: 1d43 fff8 moveb %d3,%fp@(-8) <== NOT EXECUTED lname[ 2 ] = (u32_name >> 8) & 0xff; 497c6: 1d44 fff9 moveb %d4,%fp@(-7) <== NOT EXECUTED lname[ 3 ] = (u32_name >> 0) & 0xff; lname[ 4 ] = '\0'; 497ca: 1d41 fffb moveb %d1,%fp@(-5) <== NOT EXECUTED s = lname; } d = name; if ( s ) { for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) { 497ce: 4a85 tstl %d5 <== NOT EXECUTED 497d0: 6752 beqs 49824 <_Objects_Get_name_as_string+0xe4><== NOT EXECUTED 497d2: 4a00 tstb %d0 <== NOT EXECUTED 497d4: 674e beqs 49824 <_Objects_Get_name_as_string+0xe4><== NOT EXECUTED 497d6: 45ee fff8 lea %fp@(-8),%a2 <== NOT EXECUTED 497da: 2042 moveal %d2,%a0 <== NOT EXECUTED 497dc: 4281 clrl %d1 <== NOT EXECUTED *d = (isprint((unsigned char)*s)) ? *s : '*'; 497de: 4283 clrl %d3 <== NOT EXECUTED 497e0: 1600 moveb %d0,%d3 <== NOT EXECUTED 497e2: 2279 0005 f680 moveal 5f680 <__ctype_ptr__>,%a1 <== NOT EXECUTED 497e8: 1800 moveb %d0,%d4 <== NOT EXECUTED 497ea: 1031 3801 moveb %a1@(00000001,%d3:l),%d0 <== NOT EXECUTED 497ee: 49c0 extbl %d0 <== NOT EXECUTED 497f0: 0280 0000 0097 andil #151,%d0 <== NOT EXECUTED 497f6: 6602 bnes 497fa <_Objects_Get_name_as_string+0xba><== NOT EXECUTED 497f8: 782a moveq #42,%d4 <== NOT EXECUTED s = lname; } d = name; if ( s ) { for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) { 497fa: 5281 addql #1,%d1 <== NOT EXECUTED *d = (isprint((unsigned char)*s)) ? *s : '*'; 497fc: 10c4 moveb %d4,%a0@+ <== NOT EXECUTED s = lname; } d = name; if ( s ) { for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) { 497fe: 2248 moveal %a0,%a1 <== NOT EXECUTED 49800: ba81 cmpl %d1,%d5 <== NOT EXECUTED 49802: 6304 blss 49808 <_Objects_Get_name_as_string+0xc8><== NOT EXECUTED 49804: 101a moveb %a2@+,%d0 <== NOT EXECUTED 49806: 66d6 bnes 497de <_Objects_Get_name_as_string+0x9e><== NOT EXECUTED *d = (isprint((unsigned char)*s)) ? *s : '*'; } } *d = '\0'; 49808: 4211 clrb %a1@ <== NOT EXECUTED _Thread_Enable_dispatch(); 4980a: 4eb9 0004 a33e jsr 4a33e <_Thread_Enable_dispatch> <== NOT EXECUTED return name; } return NULL; /* unreachable path */ } 49810: 2002 movel %d2,%d0 <== NOT EXECUTED 49812: 4cee 043c ffe0 moveml %fp@(-32),%d2-%d5/%a2 <== NOT EXECUTED 49818: 4e5e unlk %fp <== NOT EXECUTED 4981a: 4e75 rts <== NOT EXECUTED return NULL; if ( name == NULL ) return NULL; tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; 4981c: 282e 0008 movel %fp@(8),%d4 <== NOT EXECUTED 49820: 6000 ff56 braw 49778 <_Objects_Get_name_as_string+0x38><== NOT EXECUTED s = lname; } d = name; if ( s ) { for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) { 49824: 2242 moveal %d2,%a1 <== NOT EXECUTED *d = (isprint((unsigned char)*s)) ? *s : '*'; } } *d = '\0'; 49826: 4211 clrb %a1@ <== NOT EXECUTED _Thread_Enable_dispatch(); 49828: 4eb9 0004 a33e jsr 4a33e <_Thread_Enable_dispatch> <== NOT EXECUTED 4982e: 60e0 bras 49810 <_Objects_Get_name_as_string+0xd0><== NOT EXECUTED =============================================================================== 00047f3c <_Objects_Get_next>: Objects_Information *information, Objects_Id id, Objects_Locations *location_p, Objects_Id *next_id_p ) { 47f3c: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 47f40: 48d7 1c04 moveml %d2/%a2-%a4,%sp@ <== NOT EXECUTED 47f44: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 47f48: 266e 0010 moveal %fp@(16),%a3 <== NOT EXECUTED Objects_Control *object; Objects_Id next_id; if ( !information ) 47f4c: 4a8a tstl %a2 <== NOT EXECUTED 47f4e: 660c bnes 47f5c <_Objects_Get_next+0x20> <== NOT EXECUTED if ( !location_p ) return NULL; if ( !next_id_p ) return NULL; 47f50: 4280 clrl %d0 <== NOT EXECUTED return object; final: *next_id_p = OBJECTS_ID_FINAL; return 0; } 47f52: 4cee 1c04 fff0 moveml %fp@(-16),%d2/%a2-%a4 <== NOT EXECUTED 47f58: 4e5e unlk %fp <== NOT EXECUTED 47f5a: 4e75 rts <== NOT EXECUTED Objects_Id next_id; if ( !information ) return NULL; if ( !location_p ) 47f5c: 4a8b tstl %a3 <== NOT EXECUTED 47f5e: 67f0 beqs 47f50 <_Objects_Get_next+0x14> <== NOT EXECUTED return NULL; if ( !next_id_p ) 47f60: 4aae 0014 tstl %fp@(20) <== NOT EXECUTED 47f64: 67ea beqs 47f50 <_Objects_Get_next+0x14> <== NOT EXECUTED return NULL; if (_Objects_Get_index(id) == OBJECTS_ID_INITIAL_INDEX) 47f66: 302e 000e movew %fp@(14),%d0 <== NOT EXECUTED 47f6a: 663a bnes 47fa6 <_Objects_Get_next+0x6a> <== NOT EXECUTED next_id = information->minimum_id; 47f6c: 242a 0006 movel %a2@(6),%d2 <== NOT EXECUTED *location_p = OBJECTS_ERROR; goto final; } /* try to grab one */ object = _Objects_Get(information, next_id, location_p); 47f70: 49f9 0004 7fcc lea 47fcc <_Objects_Get>,%a4 <== NOT EXECUTED else next_id = id; do { /* walked off end of list? */ if (_Objects_Get_index(next_id) > information->maximum) 47f76: 4281 clrl %d1 <== NOT EXECUTED 47f78: 4280 clrl %d0 <== NOT EXECUTED 47f7a: 322a 000e movew %a2@(14),%d1 <== NOT EXECUTED 47f7e: 3002 movew %d2,%d0 <== NOT EXECUTED 47f80: b081 cmpl %d1,%d0 <== NOT EXECUTED 47f82: 622e bhis 47fb2 <_Objects_Get_next+0x76> <== NOT EXECUTED *location_p = OBJECTS_ERROR; goto final; } /* try to grab one */ object = _Objects_Get(information, next_id, location_p); 47f84: 2f0b movel %a3,%sp@- <== NOT EXECUTED 47f86: 2f02 movel %d2,%sp@- <== NOT EXECUTED next_id++; 47f88: 5282 addql #1,%d2 <== NOT EXECUTED *location_p = OBJECTS_ERROR; goto final; } /* try to grab one */ object = _Objects_Get(information, next_id, location_p); 47f8a: 2f0a movel %a2,%sp@- <== NOT EXECUTED 47f8c: 4e94 jsr %a4@ <== NOT EXECUTED next_id++; } while (*location_p != OBJECTS_LOCAL); 47f8e: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 47f92: 4a93 tstl %a3@ <== NOT EXECUTED 47f94: 66e0 bnes 47f76 <_Objects_Get_next+0x3a> <== NOT EXECUTED *next_id_p = next_id; 47f96: 206e 0014 moveal %fp@(20),%a0 <== NOT EXECUTED 47f9a: 2082 movel %d2,%a0@ <== NOT EXECUTED return object; final: *next_id_p = OBJECTS_ID_FINAL; return 0; } 47f9c: 4cee 1c04 fff0 moveml %fp@(-16),%d2/%a2-%a4 <== NOT EXECUTED 47fa2: 4e5e unlk %fp <== NOT EXECUTED 47fa4: 4e75 rts <== NOT EXECUTED return NULL; if (_Objects_Get_index(id) == OBJECTS_ID_INITIAL_INDEX) next_id = information->minimum_id; else next_id = id; 47fa6: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED *location_p = OBJECTS_ERROR; goto final; } /* try to grab one */ object = _Objects_Get(information, next_id, location_p); 47faa: 49f9 0004 7fcc lea 47fcc <_Objects_Get>,%a4 <== NOT EXECUTED 47fb0: 60c4 bras 47f76 <_Objects_Get_next+0x3a> <== NOT EXECUTED do { /* walked off end of list? */ if (_Objects_Get_index(next_id) > information->maximum) { *location_p = OBJECTS_ERROR; 47fb2: 7401 moveq #1,%d2 <== NOT EXECUTED *next_id_p = next_id; return object; final: *next_id_p = OBJECTS_ID_FINAL; 47fb4: 72ff moveq #-1,%d1 <== NOT EXECUTED return 0; 47fb6: 4280 clrl %d0 <== NOT EXECUTED do { /* walked off end of list? */ if (_Objects_Get_index(next_id) > information->maximum) { *location_p = OBJECTS_ERROR; 47fb8: 2682 movel %d2,%a3@ <== NOT EXECUTED *next_id_p = next_id; return object; final: *next_id_p = OBJECTS_ID_FINAL; 47fba: 206e 0014 moveal %fp@(20),%a0 <== NOT EXECUTED return 0; } 47fbe: 4cee 1c04 fff0 moveml %fp@(-16),%d2/%a2-%a4 <== NOT EXECUTED *next_id_p = next_id; return object; final: *next_id_p = OBJECTS_ID_FINAL; 47fc4: 2081 movel %d1,%a0@ <== NOT EXECUTED return 0; } 47fc6: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 0005b780 <_Objects_Get_no_protection>: /* * You can't just extract the index portion or you can get tricked * by a value between 1 and maximum. */ index = id - information->minimum_id + 1; 5b780: 7001 moveq #1,%d0 <== NOT EXECUTED if ( information->maximum >= index ) { 5b782: 4281 clrl %d1 <== NOT EXECUTED Objects_Control *_Objects_Get_no_protection( Objects_Information *information, Objects_Id id, Objects_Locations *location ) { 5b784: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 5b788: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED /* * You can't just extract the index portion or you can get tricked * by a value between 1 and maximum. */ index = id - information->minimum_id + 1; 5b78c: 90a8 0006 subl %a0@(6),%d0 <== NOT EXECUTED 5b790: d0ae 000c addl %fp@(12),%d0 <== NOT EXECUTED if ( information->maximum >= index ) { 5b794: 3228 000e movew %a0@(14),%d1 <== NOT EXECUTED Objects_Control *_Objects_Get_no_protection( Objects_Information *information, Objects_Id id, Objects_Locations *location ) { 5b798: 226e 0010 moveal %fp@(16),%a1 <== NOT EXECUTED * You can't just extract the index portion or you can get tricked * by a value between 1 and maximum. */ index = id - information->minimum_id + 1; if ( information->maximum >= index ) { 5b79c: b280 cmpl %d0,%d1 <== NOT EXECUTED 5b79e: 6510 bcss 5b7b0 <_Objects_Get_no_protection+0x30><== NOT EXECUTED if ( (the_object = information->local_table[ index ]) != NULL ) { 5b7a0: 2068 0018 moveal %a0@(24),%a0 <== NOT EXECUTED 5b7a4: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED 5b7a8: 6706 beqs 5b7b0 <_Objects_Get_no_protection+0x30><== NOT EXECUTED *location = OBJECTS_LOCAL; 5b7aa: 4291 clrl %a1@ <== NOT EXECUTED * This isn't supported or required yet for Global objects so * if it isn't local, we don't find it. */ *location = OBJECTS_ERROR; return NULL; } 5b7ac: 4e5e unlk %fp <== NOT EXECUTED 5b7ae: 4e75 rts <== NOT EXECUTED /* * This isn't supported or required yet for Global objects so * if it isn't local, we don't find it. */ *location = OBJECTS_ERROR; 5b7b0: 7001 moveq #1,%d0 <== NOT EXECUTED return NULL; } 5b7b2: 4e5e unlk %fp <== NOT EXECUTED /* * This isn't supported or required yet for Global objects so * if it isn't local, we don't find it. */ *location = OBJECTS_ERROR; 5b7b4: 2280 movel %d0,%a1@ <== NOT EXECUTED return NULL; 5b7b6: 4280 clrl %d0 <== NOT EXECUTED } ... =============================================================================== 00049490 <_Objects_Id_to_name>: */ Objects_Name_or_id_lookup_errors _Objects_Id_to_name ( Objects_Id id, Objects_Name *name ) { 49490: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 49494: 222e 0008 movel %fp@(8),%d1 <== NOT EXECUTED 49498: 2f02 movel %d2,%sp@- <== NOT EXECUTED /* * Caller is trusted for name != NULL. */ tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; 4949a: 4a81 tstl %d1 <== NOT EXECUTED 4949c: 660a bnes 494a8 <_Objects_Id_to_name+0x18> <== NOT EXECUTED 4949e: 2079 0006 036c moveal 6036c <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED 494a4: 2228 0008 movel %a0@(8),%d1 <== NOT EXECUTED 494a8: 7418 moveq #24,%d2 <== NOT EXECUTED 494aa: 2001 movel %d1,%d0 <== NOT EXECUTED 494ac: e4a8 lsrl %d2,%d0 <== NOT EXECUTED 494ae: 143c 0007 moveb #7,%d2 <== NOT EXECUTED 494b2: c082 andl %d2,%d0 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid( uint32_t the_api ) { if ( !the_api || the_api > OBJECTS_APIS_LAST ) 494b4: 143c 0002 moveb #2,%d2 <== NOT EXECUTED 494b8: 2040 moveal %d0,%a0 <== NOT EXECUTED 494ba: 5388 subql #1,%a0 <== NOT EXECUTED 494bc: b488 cmpl %a0,%d2 <== NOT EXECUTED 494be: 654a bcss 4950a <_Objects_Id_to_name+0x7a> <== NOT EXECUTED the_api = _Objects_Get_API( tmpId ); if ( !_Objects_Is_api_valid( the_api ) ) return OBJECTS_INVALID_ID; if ( !_Objects_Information_table[ the_api ] ) 494c0: 41f9 0006 016c lea 6016c <_Objects_Information_table>,%a0 <== NOT EXECUTED 494c6: 2070 0c00 moveal %a0@(00000000,%d0:l:4),%a0 <== NOT EXECUTED 494ca: 4a88 tstl %a0 <== NOT EXECUTED 494cc: 673c beqs 4950a <_Objects_Id_to_name+0x7a> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE uint32_t _Objects_Get_class( Objects_Id id ) { return (uint32_t) 494ce: 2001 movel %d1,%d0 <== NOT EXECUTED 494d0: 741b moveq #27,%d2 <== NOT EXECUTED 494d2: e4a8 lsrl %d2,%d0 <== NOT EXECUTED return OBJECTS_INVALID_ID; the_class = _Objects_Get_class( tmpId ); information = _Objects_Information_table[ the_api ][ the_class ]; 494d4: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED if ( !information ) 494d8: 6730 beqs 4950a <_Objects_Id_to_name+0x7a> <== NOT EXECUTED #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES) if ( information->is_string ) return OBJECTS_INVALID_ID; #endif the_object = _Objects_Get( information, tmpId, &ignored_location ); 494da: 486e fffc pea %fp@(-4) <== NOT EXECUTED 494de: 2f01 movel %d1,%sp@- <== NOT EXECUTED 494e0: 2f00 movel %d0,%sp@- <== NOT EXECUTED 494e2: 4eb9 0004 9424 jsr 49424 <_Objects_Get> <== NOT EXECUTED if ( !the_object ) 494e8: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 494ec: 4a80 tstl %d0 <== NOT EXECUTED 494ee: 671a beqs 4950a <_Objects_Id_to_name+0x7a> <== NOT EXECUTED return OBJECTS_INVALID_ID; *name = the_object->name; 494f0: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED 494f4: 2240 moveal %d0,%a1 <== NOT EXECUTED 494f6: 20a9 000c movel %a1@(12),%a0@ <== NOT EXECUTED _Thread_Enable_dispatch(); 494fa: 4eb9 0004 a036 jsr 4a036 <_Thread_Enable_dispatch> <== NOT EXECUTED return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL; } 49500: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED if ( !the_object ) return OBJECTS_INVALID_ID; *name = the_object->name; _Thread_Enable_dispatch(); return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL; 49504: 4280 clrl %d0 <== NOT EXECUTED } 49506: 4e5e unlk %fp <== NOT EXECUTED 49508: 4e75 rts <== NOT EXECUTED 4950a: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED the_api = _Objects_Get_API( tmpId ); if ( !_Objects_Is_api_valid( the_api ) ) return OBJECTS_INVALID_ID; if ( !_Objects_Information_table[ the_api ] ) return OBJECTS_INVALID_ID; 4950e: 7003 moveq #3,%d0 <== NOT EXECUTED return OBJECTS_INVALID_ID; *name = the_object->name; _Thread_Enable_dispatch(); return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL; } 49510: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00047da0 <_Objects_Initialize_information>: , bool supports_global, Objects_Thread_queue_Extract_callout extract #endif ) { 47da0: 4e56 ffec linkw %fp,#-20 47da4: 202e 000c movel %fp@(12),%d0 47da8: 48d7 043c moveml %d2-%d5/%a2,%sp@ information->maximum = 0; /* * Register this Object Class in the Object Information Table. */ _Objects_Information_table[ the_api ][ the_class ] = information; 47dac: 45f9 0005 e484 lea 5e484 <_Objects_Information_table>,%a2 , bool supports_global, Objects_Thread_queue_Extract_callout extract #endif ) { 47db2: 4282 clrl %d2 information->maximum = 0; /* * Register this Object Class in the Object Information Table. */ _Objects_Information_table[ the_api ][ the_class ] = information; 47db4: 4283 clrl %d3 47db6: 2472 0c00 moveal %a2@(00000000,%d0:l:4),%a2 , bool supports_global, Objects_Thread_queue_Extract_callout extract #endif ) { 47dba: 206e 0008 moveal %fp@(8),%a0 47dbe: 342e 001a movew %fp@(26),%d2 47dc2: 226e 0010 moveal %fp@(16),%a1 uint32_t index; #endif information->the_api = the_api; information->the_class = the_class; information->size = size; 47dc6: 2142 0014 movel %d2,%a0@(20) , bool supports_global, Objects_Thread_queue_Extract_callout extract #endif ) { 47dca: 222e 0014 movel %fp@(20),%d1 information->the_class = the_class; information->size = size; information->local_table = 0; information->inactive_per_block = 0; information->object_blocks = 0; information->inactive = 0; 47dce: 4242 clrw %d2 , bool supports_global, Objects_Thread_queue_Extract_callout extract #endif ) { 47dd0: 282e 0020 movel %fp@(32),%d4 information->the_class = the_class; information->size = size; information->local_table = 0; information->inactive_per_block = 0; information->object_blocks = 0; information->inactive = 0; 47dd4: 3142 0028 movew %d2,%a0@(40) /* * Set the maximum value to 0. It will be updated when objects are * added to the inactive set from _Objects_Extend_information() */ information->maximum = 0; 47dd8: 3142 000e movew %d2,%a0@(14) /* * Are we operating in limited or unlimited (e.g. auto-extend) mode. */ information->auto_extend = (maximum & OBJECTS_UNLIMITED_OBJECTS) ? true : false; 47ddc: 2401 movel %d1,%d2 information->maximum = 0; /* * Register this Object Class in the Object Information Table. */ _Objects_Information_table[ the_api ][ the_class ] = information; 47dde: 3609 movew %a1,%d3 uint32_t maximum_per_allocation; #if defined(RTEMS_MULTIPROCESSING) uint32_t index; #endif information->the_api = the_api; 47de0: 2080 movel %d0,%a0@ information->the_class = the_class; 47de2: 3149 0004 movew %a1,%a0@(4) information->size = size; information->local_table = 0; 47de6: 42a8 0018 clrl %a0@(24) /* * Are we operating in limited or unlimited (e.g. auto-extend) mode. */ information->auto_extend = (maximum & OBJECTS_UNLIMITED_OBJECTS) ? true : false; 47dea: d482 addl %d2,%d2 47dec: 9582 subxl %d2,%d2 47dee: 4482 negl %d2 information->the_api = the_api; information->the_class = the_class; information->size = size; information->local_table = 0; information->inactive_per_block = 0; 47df0: 42a8 002a clrl %a0@(42) /* * Are we operating in limited or unlimited (e.g. auto-extend) mode. */ information->auto_extend = (maximum & OBJECTS_UNLIMITED_OBJECTS) ? true : false; maximum_per_allocation = maximum & ~OBJECTS_UNLIMITED_OBJECTS; 47df4: 0881 001f bclr #31,%d1 information->the_api = the_api; information->the_class = the_class; information->size = size; information->local_table = 0; information->inactive_per_block = 0; information->object_blocks = 0; 47df8: 42a8 002e clrl %a0@(46) information->maximum = 0; /* * Register this Object Class in the Object Information Table. */ _Objects_Information_table[ the_api ][ the_class ] = information; 47dfc: 2588 3c00 movel %a0,%a2@(00000000,%d3:l:4) /* * Are we operating in limited or unlimited (e.g. auto-extend) mode. */ information->auto_extend = 47e00: 1142 0010 moveb %d2,%a0@(16) maximum_per_allocation = maximum & ~OBJECTS_UNLIMITED_OBJECTS; /* * Unlimited and maximum of zero is illogical. */ if ( information->auto_extend && maximum_per_allocation == 0) { 47e04: 4a82 tstl %d2 47e06: 6706 beqs 47e0e <_Objects_Initialize_information+0x6e> 47e08: 4a81 tstl %d1 47e0a: 6700 0092 beqw 47e9e <_Objects_Initialize_information+0xfe> uint32_t the_class, uint32_t node, uint32_t index ) { return (( (Objects_Id) the_api ) << OBJECTS_API_START_BIT) | 47e0e: 7a18 moveq #24,%d5 information->local_table = &null_local_table; /* * Calculate minimum and maximum Id's */ minimum_index = (maximum_per_allocation == 0) ? 0 : 1; 47e10: 4a81 tstl %d1 47e12: 56c2 sne %d2 47e14: eba8 lsll %d5,%d0 (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) | 47e16: 1a3c 001b moveb #27,%d5 47e1a: 49c2 extbl %d2 47e1c: 4482 negl %d2 information->allocation_size = maximum_per_allocation; /* * Provide a null local table entry for the case of any empty table. */ information->local_table = &null_local_table; 47e1e: 43f9 0005 dc84 lea 5dc84 ,%a1 47e24: ebab lsll %d5,%d3 uint32_t the_class, uint32_t node, uint32_t index ) { return (( (Objects_Id) the_api ) << OBJECTS_API_START_BIT) | 47e26: 08c0 0010 bset #16,%d0 /* * Calculate the maximum name length */ name_length = maximum_name_length; if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) ) 47e2a: 1a3c 0003 moveb #3,%d5 (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) | 47e2e: 8083 orl %d3,%d0 47e30: ca84 andl %d4,%d5 } /* * The allocation unit is the maximum value */ information->allocation_size = maximum_per_allocation; 47e32: 3141 0012 movew %d1,%a0@(18) uint32_t the_class, uint32_t node, uint32_t index ) { return (( (Objects_Id) the_api ) << OBJECTS_API_START_BIT) | 47e36: 8082 orl %d2,%d0 /* * Provide a null local table entry for the case of any empty table. */ information->local_table = &null_local_table; 47e38: 2149 0018 movel %a1,%a0@(24) 47e3c: 2140 0006 movel %d0,%a0@(6) /* * Calculate the maximum name length */ name_length = maximum_name_length; if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) ) 47e40: 4a85 tstl %d5 47e42: 6626 bnes 47e6a <_Objects_Initialize_information+0xca><== NEVER TAKEN RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); 47e44: 43e8 0020 lea %a0@(32),%a1 47e48: 2149 001c movel %a1,%a0@(28) */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { Chain_Node *head = _Chain_Head( the_chain ); 47e4c: 43e8 001c lea %a0@(28),%a1 name_length = (name_length + OBJECTS_NAME_ALIGNMENT) & ~(OBJECTS_NAME_ALIGNMENT-1); information->name_length = name_length; 47e50: 3144 0032 movew %d4,%a0@(50) Chain_Node *tail = _Chain_Tail( the_chain ); head->next = tail; head->previous = NULL; 47e54: 42a8 0020 clrl %a0@(32) */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { Chain_Node *head = _Chain_Head( the_chain ); 47e58: 2149 0024 movel %a1,%a0@(36) _Chain_Initialize_empty( &information->Inactive ); /* * Initialize objects .. if there are any */ if ( maximum_per_allocation ) { 47e5c: 4a81 tstl %d1 47e5e: 662c bnes 47e8c <_Objects_Initialize_information+0xec> _Chain_Initialize_empty( &information->global_table[ index ] ); } else information->global_table = NULL; #endif } 47e60: 4cee 043c ffec moveml %fp@(-20),%d2-%d5/%a2 47e66: 4e5e unlk %fp 47e68: 4e75 rts * Calculate the maximum name length */ name_length = maximum_name_length; if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) ) name_length = (name_length + OBJECTS_NAME_ALIGNMENT) & 47e6a: 5884 addql #4,%d4 <== NOT EXECUTED 47e6c: 70fc moveq #-4,%d0 <== NOT EXECUTED Chain_Node *tail = _Chain_Tail( the_chain ); 47e6e: 43e8 0020 lea %a0@(32),%a1 <== NOT EXECUTED 47e72: c880 andl %d0,%d4 <== NOT EXECUTED 47e74: 2149 001c movel %a1,%a0@(28) <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { Chain_Node *head = _Chain_Head( the_chain ); 47e78: 43e8 001c lea %a0@(28),%a1 <== NOT EXECUTED ~(OBJECTS_NAME_ALIGNMENT-1); information->name_length = name_length; 47e7c: 3144 0032 movew %d4,%a0@(50) <== NOT EXECUTED Chain_Node *tail = _Chain_Tail( the_chain ); head->next = tail; head->previous = NULL; 47e80: 42a8 0020 clrl %a0@(32) <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { Chain_Node *head = _Chain_Head( the_chain ); 47e84: 2149 0024 movel %a1,%a0@(36) <== NOT EXECUTED _Chain_Initialize_empty( &information->Inactive ); /* * Initialize objects .. if there are any */ if ( maximum_per_allocation ) { 47e88: 4a81 tstl %d1 <== NOT EXECUTED 47e8a: 67d4 beqs 47e60 <_Objects_Initialize_information+0xc0><== NOT EXECUTED /* * Always have the maximum size available so the current performance * figures are create are met. If the user moves past the maximum * number then a performance hit is taken. */ _Objects_Extend_information( information ); 47e8c: 2d48 0008 movel %a0,%fp@(8) _Chain_Initialize_empty( &information->global_table[ index ] ); } else information->global_table = NULL; #endif } 47e90: 4cee 043c ffec moveml %fp@(-20),%d2-%d5/%a2 47e96: 4e5e unlk %fp /* * Always have the maximum size available so the current performance * figures are create are met. If the user moves past the maximum * number then a performance hit is taken. */ _Objects_Extend_information( information ); 47e98: 4ef9 0004 7930 jmp 47930 <_Objects_Extend_information> /* * Unlimited and maximum of zero is illogical. */ if ( information->auto_extend && maximum_per_allocation == 0) { _Internal_error_Occurred( 47e9e: 4878 0013 pea 13 47ea2: 4878 0001 pea 1 47ea6: 42a7 clrl %sp@- 47ea8: 4eb9 0004 77b8 jsr 477b8 <_Internal_error_Occurred> ... =============================================================================== 00047ec0 <_Objects_Name_to_id_u32>: Objects_Information *information, uint32_t name, uint32_t node, Objects_Id *id ) { 47ec0: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 47ec4: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 47ec8: 48d7 040c moveml %d2-%d3/%a2,%sp@ <== NOT EXECUTED 47ecc: 222e 000c movel %fp@(12),%d1 <== NOT EXECUTED 47ed0: 202e 0010 movel %fp@(16),%d0 <== NOT EXECUTED 47ed4: 246e 0014 moveal %fp@(20),%a2 <== NOT EXECUTED Objects_Name name_for_mp; #endif /* ASSERT: information->is_string == false */ if ( !id ) 47ed8: 4a8a tstl %a2 <== NOT EXECUTED 47eda: 6758 beqs 47f34 <_Objects_Name_to_id_u32+0x74> <== NOT EXECUTED return OBJECTS_INVALID_ADDRESS; if ( name == 0 ) 47edc: 4a81 tstl %d1 <== NOT EXECUTED 47ede: 6718 beqs 47ef8 <_Objects_Name_to_id_u32+0x38> <== NOT EXECUTED return OBJECTS_INVALID_NAME; search_local_node = false; if ( information->maximum != 0 && 47ee0: 3428 000e movew %a0@(14),%d2 <== NOT EXECUTED 47ee4: 6712 beqs 47ef8 <_Objects_Name_to_id_u32+0x38> <== NOT EXECUTED 47ee6: 4a80 tstl %d0 <== NOT EXECUTED 47ee8: 6718 beqs 47f02 <_Objects_Name_to_id_u32+0x42> <== NOT EXECUTED (node == OBJECTS_SEARCH_ALL_NODES || 47eea: 0c80 7fff ffff cmpil #2147483647,%d0 <== NOT EXECUTED 47ef0: 6710 beqs 47f02 <_Objects_Name_to_id_u32+0x42> <== NOT EXECUTED node == OBJECTS_SEARCH_LOCAL_NODE || 47ef2: 7601 moveq #1,%d3 <== NOT EXECUTED 47ef4: b680 cmpl %d0,%d3 <== NOT EXECUTED 47ef6: 670a beqs 47f02 <_Objects_Name_to_id_u32+0x42> <== NOT EXECUTED return OBJECTS_INVALID_NAME; name_for_mp.name_u32 = name; return _Objects_MP_Global_name_search( information, name_for_mp, node, id ); #else return OBJECTS_INVALID_NAME; 47ef8: 7001 moveq #1,%d0 <== NOT EXECUTED #endif } 47efa: 4cd7 040c moveml %sp@,%d2-%d3/%a2 <== NOT EXECUTED 47efe: 4e5e unlk %fp <== NOT EXECUTED 47f00: 4e75 rts <== NOT EXECUTED * id - object id * OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL - if successful * error code - if unsuccessful */ Objects_Name_or_id_lookup_errors _Objects_Name_to_id_u32( 47f02: 2268 0018 moveal %a0@(24),%a1 <== NOT EXECUTED 47f06: 7001 moveq #1,%d0 <== NOT EXECUTED 47f08: 5889 addql #4,%a1 <== NOT EXECUTED _Objects_Is_local_node( node ) )) search_local_node = true; if ( search_local_node ) { for ( index = 1; index <= information->maximum; index++ ) { 47f0a: 0282 0000 ffff andil #65535,%d2 <== NOT EXECUTED the_object = information->local_table[ index ]; 47f10: 2059 moveal %a1@+,%a0 <== NOT EXECUTED _Objects_Is_local_node( node ) )) search_local_node = true; if ( search_local_node ) { for ( index = 1; index <= information->maximum; index++ ) { 47f12: 5280 addql #1,%d0 <== NOT EXECUTED the_object = information->local_table[ index ]; if ( !the_object ) 47f14: 4a88 tstl %a0 <== NOT EXECUTED 47f16: 6706 beqs 47f1e <_Objects_Name_to_id_u32+0x5e> <== NOT EXECUTED continue; if ( name == the_object->name.name_u32 ) { 47f18: b2a8 000c cmpl %a0@(12),%d1 <== NOT EXECUTED 47f1c: 6708 beqs 47f26 <_Objects_Name_to_id_u32+0x66> <== NOT EXECUTED _Objects_Is_local_node( node ) )) search_local_node = true; if ( search_local_node ) { for ( index = 1; index <= information->maximum; index++ ) { 47f1e: b082 cmpl %d2,%d0 <== NOT EXECUTED 47f20: 63ee blss 47f10 <_Objects_Name_to_id_u32+0x50> <== NOT EXECUTED return OBJECTS_INVALID_NAME; name_for_mp.name_u32 = name; return _Objects_MP_Global_name_search( information, name_for_mp, node, id ); #else return OBJECTS_INVALID_NAME; 47f22: 7001 moveq #1,%d0 <== NOT EXECUTED 47f24: 60d4 bras 47efa <_Objects_Name_to_id_u32+0x3a> <== NOT EXECUTED the_object = information->local_table[ index ]; if ( !the_object ) continue; if ( name == the_object->name.name_u32 ) { *id = the_object->id; 47f26: 24a8 0008 movel %a0@(8),%a2@ <== NOT EXECUTED return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL; 47f2a: 4280 clrl %d0 <== NOT EXECUTED name_for_mp.name_u32 = name; return _Objects_MP_Global_name_search( information, name_for_mp, node, id ); #else return OBJECTS_INVALID_NAME; #endif } 47f2c: 4cd7 040c moveml %sp@,%d2-%d3/%a2 <== NOT EXECUTED 47f30: 4e5e unlk %fp <== NOT EXECUTED 47f32: 4e75 rts <== NOT EXECUTED #endif /* ASSERT: information->is_string == false */ if ( !id ) return OBJECTS_INVALID_ADDRESS; 47f34: 7002 moveq #2,%d0 <== NOT EXECUTED name_for_mp.name_u32 = name; return _Objects_MP_Global_name_search( information, name_for_mp, node, id ); #else return OBJECTS_INVALID_NAME; #endif } 47f36: 4cd7 040c moveml %sp@,%d2-%d3/%a2 <== NOT EXECUTED 47f3a: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 00049fe4 <_Objects_Set_name>: { size_t length; const char *s; s = name; length = strnlen( name, information->name_length ); 49fe4: 4280 clrl %d0 <== NOT EXECUTED bool _Objects_Set_name( Objects_Information *information, Objects_Control *the_object, const char *name ) { 49fe6: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 49fea: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 49fee: 2f0a movel %a2,%sp@- <== NOT EXECUTED 49ff0: 246e 0010 moveal %fp@(16),%a2 <== NOT EXECUTED 49ff4: 2f02 movel %d2,%sp@- <== NOT EXECUTED size_t length; const char *s; s = name; length = strnlen( name, information->name_length ); 49ff6: 3028 0032 movew %a0@(50),%d0 <== NOT EXECUTED 49ffa: 2f00 movel %d0,%sp@- <== NOT EXECUTED 49ffc: 2f0a movel %a2,%sp@- <== NOT EXECUTED 49ffe: 4eb9 0005 0dcc jsr 50dcc <== NOT EXECUTED d[length] = '\0'; the_object->name.name_p = d; } else #endif { the_object->name.name_u32 = _Objects_Build_name( 4a004: 508f addql #8,%sp <== NOT EXECUTED 4a006: 7218 moveq #24,%d1 <== NOT EXECUTED 4a008: 1412 moveb %a2@,%d2 <== NOT EXECUTED 4a00a: 49c2 extbl %d2 <== NOT EXECUTED 4a00c: e3aa lsll %d1,%d2 <== NOT EXECUTED 4a00e: 123c 0001 moveb #1,%d1 <== NOT EXECUTED 4a012: b280 cmpl %d0,%d1 <== NOT EXECUTED 4a014: 6440 bccs 4a056 <_Objects_Set_name+0x72> <== NOT EXECUTED 4a016: 122a 0001 moveb %a2@(1),%d1 <== NOT EXECUTED 4a01a: 49c1 extbl %d1 <== NOT EXECUTED 4a01c: 4841 swap %d1 <== NOT EXECUTED 4a01e: 4241 clrw %d1 <== NOT EXECUTED 4a020: 8282 orl %d2,%d1 <== NOT EXECUTED 4a022: 7402 moveq #2,%d2 <== NOT EXECUTED 4a024: b480 cmpl %d0,%d2 <== NOT EXECUTED 4a026: 6734 beqs 4a05c <_Objects_Set_name+0x78> <== NOT EXECUTED 4a028: 142a 0002 moveb %a2@(2),%d2 <== NOT EXECUTED 4a02c: 49c2 extbl %d2 <== NOT EXECUTED 4a02e: e18a lsll #8,%d2 <== NOT EXECUTED 4a030: 8282 orl %d2,%d1 <== NOT EXECUTED 4a032: 7403 moveq #3,%d2 <== NOT EXECUTED 4a034: b480 cmpl %d0,%d2 <== NOT EXECUTED 4a036: 6742 beqs 4a07a <_Objects_Set_name+0x96> <== NOT EXECUTED 4a038: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED 4a03c: 102a 0003 moveb %a2@(3),%d0 <== NOT EXECUTED 4a040: 49c0 extbl %d0 <== NOT EXECUTED 4a042: 8280 orl %d0,%d1 <== NOT EXECUTED ); } return true; } 4a044: 7001 moveq #1,%d0 <== NOT EXECUTED d[length] = '\0'; the_object->name.name_p = d; } else #endif { the_object->name.name_u32 = _Objects_Build_name( 4a046: 2141 000c movel %d1,%a0@(12) <== NOT EXECUTED ); } return true; } 4a04a: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 4a04e: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4a052: 4e5e unlk %fp <== NOT EXECUTED 4a054: 4e75 rts <== NOT EXECUTED d[length] = '\0'; the_object->name.name_p = d; } else #endif { the_object->name.name_u32 = _Objects_Build_name( 4a056: 2202 movel %d2,%d1 <== NOT EXECUTED 4a058: 08c1 0015 bset #21,%d1 <== NOT EXECUTED 4a05c: 7020 moveq #32,%d0 <== NOT EXECUTED 4a05e: 08c1 000d bset #13,%d1 <== NOT EXECUTED 4a062: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED 4a066: 8280 orl %d0,%d1 <== NOT EXECUTED ); } return true; } 4a068: 7001 moveq #1,%d0 <== NOT EXECUTED d[length] = '\0'; the_object->name.name_p = d; } else #endif { the_object->name.name_u32 = _Objects_Build_name( 4a06a: 2141 000c movel %d1,%a0@(12) <== NOT EXECUTED ); } return true; } 4a06e: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 4a072: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4a076: 4e5e unlk %fp <== NOT EXECUTED 4a078: 4e75 rts <== NOT EXECUTED d[length] = '\0'; the_object->name.name_p = d; } else #endif { the_object->name.name_u32 = _Objects_Build_name( 4a07a: 7020 moveq #32,%d0 <== NOT EXECUTED 4a07c: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED 4a080: 8280 orl %d0,%d1 <== NOT EXECUTED ); } return true; } 4a082: 7001 moveq #1,%d0 <== NOT EXECUTED d[length] = '\0'; the_object->name.name_p = d; } else #endif { the_object->name.name_u32 = _Objects_Build_name( 4a084: 2141 000c movel %d1,%a0@(12) <== NOT EXECUTED ); } return true; } 4a088: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 4a08c: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4a090: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00047f40 <_Objects_Shrink_information>: /* * Search the list to find block or chunk with all objects inactive. */ index_base = _Objects_Get_index( information->minimum_id ); block_count = (information->maximum - index_base) / 47f40: 4281 clrl %d1 <== NOT EXECUTED */ void _Objects_Shrink_information( Objects_Information *information ) { 47f42: 4e56 ffec linkw %fp,#-20 <== NOT EXECUTED 47f46: 48d7 0c1c moveml %d2-%d4/%a2-%a3,%sp@ <== NOT EXECUTED 47f4a: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED /* * Search the list to find block or chunk with all objects inactive. */ index_base = _Objects_Get_index( information->minimum_id ); 47f4e: 4283 clrl %d3 <== NOT EXECUTED block_count = (information->maximum - index_base) / 47f50: 4284 clrl %d4 <== NOT EXECUTED /* * Search the list to find block or chunk with all objects inactive. */ index_base = _Objects_Get_index( information->minimum_id ); 47f52: 362a 0008 movew %a2@(8),%d3 <== NOT EXECUTED block_count = (information->maximum - index_base) / 47f56: 382a 000e movew %a2@(14),%d4 <== NOT EXECUTED 47f5a: 322a 0012 movew %a2@(18),%d1 <== NOT EXECUTED 47f5e: 9883 subl %d3,%d4 <== NOT EXECUTED 47f60: 4c41 4004 remul %d1,%d4,%d4 <== NOT EXECUTED information->allocation_size; for ( block = 0; block < block_count; block++ ) { 47f64: 6774 beqs 47fda <_Objects_Shrink_information+0x9a><== NOT EXECUTED if ( information->inactive_per_block[ block ] == 47f66: 206a 002a moveal %a2@(42),%a0 <== NOT EXECUTED 47f6a: b290 cmpl %a0@,%d1 <== NOT EXECUTED 47f6c: 677e beqs 47fec <_Objects_Shrink_information+0xac><== NOT EXECUTED * the_block - the block to remove * * Output parameters: NONE */ void _Objects_Shrink_information( 47f6e: 5888 addql #4,%a0 <== NOT EXECUTED index_base = _Objects_Get_index( information->minimum_id ); block_count = (information->maximum - index_base) / information->allocation_size; for ( block = 0; block < block_count; block++ ) { 47f70: 4280 clrl %d0 <== NOT EXECUTED 47f72: 5280 addql #1,%d0 <== NOT EXECUTED information->inactive -= information->allocation_size; return; } index_base += information->allocation_size; 47f74: d681 addl %d1,%d3 <== NOT EXECUTED index_base = _Objects_Get_index( information->minimum_id ); block_count = (information->maximum - index_base) / information->allocation_size; for ( block = 0; block < block_count; block++ ) { 47f76: b084 cmpl %d4,%d0 <== NOT EXECUTED 47f78: 6460 bccs 47fda <_Objects_Shrink_information+0x9a><== NOT EXECUTED information->inactive -= information->allocation_size; return; } index_base += information->allocation_size; 47f7a: 2400 movel %d0,%d2 <== NOT EXECUTED 47f7c: e58a lsll #2,%d2 <== NOT EXECUTED index_base = _Objects_Get_index( information->minimum_id ); block_count = (information->maximum - index_base) / information->allocation_size; for ( block = 0; block < block_count; block++ ) { if ( information->inactive_per_block[ block ] == 47f7e: b298 cmpl %a0@+,%d1 <== NOT EXECUTED 47f80: 66f0 bnes 47f72 <_Objects_Shrink_information+0x32><== NOT EXECUTED information->allocation_size ) { /* * Assume the Inactive chain is never empty at this point */ the_object = (Objects_Control *) _Chain_First( &information->Inactive ); 47f82: 206a 001c moveal %a2@(28),%a0 <== NOT EXECUTED */ extract_me = the_object; the_object = (Objects_Control *) the_object->Node.next; if ((index >= index_base) && (index < (index_base + information->allocation_size))) { _Chain_Extract( &extract_me->Node ); 47f86: 47f9 0004 6eb0 lea 46eb0 <_Chain_Extract>,%a3 <== NOT EXECUTED * Assume the Inactive chain is never empty at this point */ the_object = (Objects_Control *) _Chain_First( &information->Inactive ); do { index = _Objects_Get_index( the_object->id ); 47f8c: 4280 clrl %d0 <== NOT EXECUTED 47f8e: 3028 000a movew %a0@(10),%d0 <== NOT EXECUTED /* * Get the next node before the node is extracted */ extract_me = the_object; the_object = (Objects_Control *) the_object->Node.next; 47f92: 2810 movel %a0@,%d4 <== NOT EXECUTED if ((index >= index_base) && 47f94: b680 cmpl %d0,%d3 <== NOT EXECUTED 47f96: 620c bhis 47fa4 <_Objects_Shrink_information+0x64><== NOT EXECUTED (index < (index_base + information->allocation_size))) { 47f98: 4281 clrl %d1 <== NOT EXECUTED 47f9a: 322a 0012 movew %a2@(18),%d1 <== NOT EXECUTED 47f9e: d283 addl %d3,%d1 <== NOT EXECUTED /* * Get the next node before the node is extracted */ extract_me = the_object; the_object = (Objects_Control *) the_object->Node.next; if ((index >= index_base) && 47fa0: b280 cmpl %d0,%d1 <== NOT EXECUTED 47fa2: 6240 bhis 47fe4 <_Objects_Shrink_information+0xa4><== NOT EXECUTED (index < (index_base + information->allocation_size))) { _Chain_Extract( &extract_me->Node ); } } while ( the_object ); 47fa4: 4a84 tstl %d4 <== NOT EXECUTED 47fa6: 6704 beqs 47fac <_Objects_Shrink_information+0x6c><== NOT EXECUTED index = _Objects_Get_index( the_object->id ); /* * Get the next node before the node is extracted */ extract_me = the_object; the_object = (Objects_Control *) the_object->Node.next; 47fa8: 2044 moveal %d4,%a0 <== NOT EXECUTED 47faa: 60e0 bras 47f8c <_Objects_Shrink_information+0x4c><== NOT EXECUTED while ( the_object ); /* * Free the memory and reset the structures in the object' information */ _Workspace_Free( information->object_blocks[ block ] ); 47fac: 206a 002e moveal %a2@(46),%a0 <== NOT EXECUTED 47fb0: 2f30 2800 movel %a0@(00000000,%d2:l),%sp@- <== NOT EXECUTED 47fb4: 4eb9 0004 9a9e jsr 49a9e <_Workspace_Free> <== NOT EXECUTED information->object_blocks[ block ] = NULL; 47fba: 206a 002e moveal %a2@(46),%a0 <== NOT EXECUTED information->inactive_per_block[ block ] = 0; information->inactive -= information->allocation_size; return; 47fbe: 588f addql #4,%sp <== NOT EXECUTED /* * Free the memory and reset the structures in the object' information */ _Workspace_Free( information->object_blocks[ block ] ); information->object_blocks[ block ] = NULL; 47fc0: 42b0 2800 clrl %a0@(00000000,%d2:l) <== NOT EXECUTED information->inactive_per_block[ block ] = 0; 47fc4: 206a 002a moveal %a2@(42),%a0 <== NOT EXECUTED information->inactive -= information->allocation_size; 47fc8: 302a 0028 movew %a2@(40),%d0 <== NOT EXECUTED 47fcc: 322a 0012 movew %a2@(18),%d1 <== NOT EXECUTED * Free the memory and reset the structures in the object' information */ _Workspace_Free( information->object_blocks[ block ] ); information->object_blocks[ block ] = NULL; information->inactive_per_block[ block ] = 0; 47fd0: 42b0 2800 clrl %a0@(00000000,%d2:l) <== NOT EXECUTED information->inactive -= information->allocation_size; 47fd4: 9081 subl %d1,%d0 <== NOT EXECUTED 47fd6: 3540 0028 movew %d0,%a2@(40) <== NOT EXECUTED return; } index_base += information->allocation_size; } } 47fda: 4cee 0c1c ffec moveml %fp@(-20),%d2-%d4/%a2-%a3 <== NOT EXECUTED 47fe0: 4e5e unlk %fp <== NOT EXECUTED 47fe2: 4e75 rts <== NOT EXECUTED */ extract_me = the_object; the_object = (Objects_Control *) the_object->Node.next; if ((index >= index_base) && (index < (index_base + information->allocation_size))) { _Chain_Extract( &extract_me->Node ); 47fe4: 2f08 movel %a0,%sp@- <== NOT EXECUTED 47fe6: 4e93 jsr %a3@ <== NOT EXECUTED 47fe8: 588f addql #4,%sp <== NOT EXECUTED 47fea: 60b8 bras 47fa4 <_Objects_Shrink_information+0x64><== NOT EXECUTED information->allocation_size ) { /* * Assume the Inactive chain is never empty at this point */ the_object = (Objects_Control *) _Chain_First( &information->Inactive ); 47fec: 206a 001c moveal %a2@(28),%a0 <== NOT EXECUTED index_base = _Objects_Get_index( information->minimum_id ); block_count = (information->maximum - index_base) / information->allocation_size; for ( block = 0; block < block_count; block++ ) { if ( information->inactive_per_block[ block ] == 47ff0: 4282 clrl %d2 <== NOT EXECUTED */ extract_me = the_object; the_object = (Objects_Control *) the_object->Node.next; if ((index >= index_base) && (index < (index_base + information->allocation_size))) { _Chain_Extract( &extract_me->Node ); 47ff2: 47f9 0004 6eb0 lea 46eb0 <_Chain_Extract>,%a3 <== NOT EXECUTED 47ff8: 6092 bras 47f8c <_Objects_Shrink_information+0x4c><== NOT EXECUTED ... =============================================================================== 00048308 <_Protected_heap_Extend>: bool _Protected_heap_Extend( Heap_Control *the_heap, void *starting_address, uintptr_t size ) { 48308: 4e56 fff8 linkw %fp,#-8 <== NOT EXECUTED bool extend_ok; uintptr_t amount_extended; _RTEMS_Lock_allocator(); 4830c: 2f39 0005 ec54 movel 5ec54 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 48312: 4eb9 0004 7130 jsr 47130 <_API_Mutex_Lock> <== NOT EXECUTED extend_ok = _Heap_Extend(the_heap, starting_address, size, &amount_extended); 48318: 486e fffc pea %fp@(-4) <== NOT EXECUTED 4831c: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 48320: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 48324: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 48328: 4eb9 0004 bfb8 jsr 4bfb8 <_Heap_Extend> <== NOT EXECUTED _RTEMS_Unlock_allocator(); 4832e: 2f39 0005 ec54 movel 5ec54 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 48334: 2d40 fff8 movel %d0,%fp@(-8) <== NOT EXECUTED 48338: 4eb9 0004 7190 jsr 47190 <_API_Mutex_Unlock> <== NOT EXECUTED return extend_ok; } 4833e: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED 48342: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 0004cf1c <_Protected_heap_Get_free_information>: bool _Protected_heap_Get_free_information( Heap_Control *the_heap, Heap_Information *info ) { 4cf1c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED /* * TBD: _Heap_Get_free_information does not error check or return status. */ _RTEMS_Lock_allocator(); 4cf20: 2f39 0006 49c4 movel 649c4 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 4cf26: 4eb9 0004 b24c jsr 4b24c <_API_Mutex_Lock> <== NOT EXECUTED _Heap_Get_free_information( the_heap, info ); 4cf2c: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 4cf30: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4cf34: 4eb9 0005 0e04 jsr 50e04 <_Heap_Get_free_information> <== NOT EXECUTED _RTEMS_Unlock_allocator(); 4cf3a: 2f39 0006 49c4 movel 649c4 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 4cf40: 4eb9 0004 b2ac jsr 4b2ac <_API_Mutex_Unlock> <== NOT EXECUTED return true; } 4cf46: 7001 moveq #1,%d0 <== NOT EXECUTED 4cf48: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 000487f0 <_Protected_heap_Get_information>: bool _Protected_heap_Get_information( Heap_Control *the_heap, Heap_Information_block *the_info ) { 487f0: 4e56 0000 linkw %fp,#0 487f4: 2f03 movel %d3,%sp@- 487f6: 262e 000c movel %fp@(12),%d3 487fa: 2f02 movel %d2,%sp@- 487fc: 242e 0008 movel %fp@(8),%d2 if ( !the_heap ) 48800: 6738 beqs 4883a <_Protected_heap_Get_information+0x4a><== NEVER TAKEN return false; if ( !the_info ) 48802: 4a83 tstl %d3 48804: 6734 beqs 4883a <_Protected_heap_Get_information+0x4a><== NEVER TAKEN return false; _RTEMS_Lock_allocator(); 48806: 2f39 0005 f018 movel 5f018 <_RTEMS_Allocator_Mutex>,%sp@- 4880c: 4eb9 0004 75e0 jsr 475e0 <_API_Mutex_Lock> _Heap_Get_information( the_heap, the_info ); 48812: 2f03 movel %d3,%sp@- 48814: 2f02 movel %d2,%sp@- 48816: 4eb9 0004 c900 jsr 4c900 <_Heap_Get_information> _RTEMS_Unlock_allocator(); 4881c: 2f39 0005 f018 movel 5f018 <_RTEMS_Allocator_Mutex>,%sp@- 48822: 4eb9 0004 7640 jsr 47640 <_API_Mutex_Unlock> return true; } 48828: 242e fff8 movel %fp@(-8),%d2 _RTEMS_Lock_allocator(); _Heap_Get_information( the_heap, the_info ); _RTEMS_Unlock_allocator(); return true; 4882c: 4fef 0010 lea %sp@(16),%sp } 48830: 262e fffc movel %fp@(-4),%d3 48834: 4e5e unlk %fp _RTEMS_Lock_allocator(); _Heap_Get_information( the_heap, the_info ); _RTEMS_Unlock_allocator(); return true; 48836: 7001 moveq #1,%d0 } 48838: 4e75 rts 4883a: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 4883e: 262e fffc movel %fp@(-4),%d3 <== NOT EXECUTED 48842: 4e5e unlk %fp <== NOT EXECUTED { if ( !the_heap ) return false; if ( !the_info ) return false; 48844: 4200 clrb %d0 <== NOT EXECUTED _RTEMS_Lock_allocator(); _Heap_Get_information( the_heap, the_info ); _RTEMS_Unlock_allocator(); return true; } =============================================================================== 0005b0d0 <_Protected_heap_Resize_block>: bool _Protected_heap_Resize_block( Heap_Control *the_heap, void *starting_address, uintptr_t size ) { 5b0d0: 4e56 fff8 linkw %fp,#-8 <== NOT EXECUTED 5b0d4: 2f02 movel %d2,%sp@- <== NOT EXECUTED Heap_Resize_status status; uintptr_t old_mem_size; uintptr_t avail_mem_size; _RTEMS_Lock_allocator(); 5b0d6: 2f39 0005 e588 movel 5e588 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 5b0dc: 4eb9 0004 6de4 jsr 46de4 <_API_Mutex_Lock> <== NOT EXECUTED status = _Heap_Resize_block( 5b0e2: 486e fff8 pea %fp@(-8) <== NOT EXECUTED 5b0e6: 486e fffc pea %fp@(-4) <== NOT EXECUTED 5b0ea: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 5b0ee: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 5b0f2: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 5b0f6: 4eb9 0005 b11c jsr 5b11c <_Heap_Resize_block> <== NOT EXECUTED the_heap, starting_address, size, &old_mem_size, &avail_mem_size ); _RTEMS_Unlock_allocator(); 5b0fc: 2f39 0005 e588 movel 5e588 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED Heap_Resize_status status; uintptr_t old_mem_size; uintptr_t avail_mem_size; _RTEMS_Lock_allocator(); status = _Heap_Resize_block( 5b102: 2400 movel %d0,%d2 <== NOT EXECUTED the_heap, starting_address, size, &old_mem_size, &avail_mem_size ); _RTEMS_Unlock_allocator(); 5b104: 4eb9 0004 6e44 jsr 46e44 <_API_Mutex_Unlock> <== NOT EXECUTED return (status == HEAP_RESIZE_SUCCESSFUL); 5b10a: 4fef 001c lea %sp@(28),%sp <== NOT EXECUTED 5b10e: 4a82 tstl %d2 <== NOT EXECUTED 5b110: 57c0 seq %d0 <== NOT EXECUTED } 5b112: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 5b116: 4480 negl %d0 <== NOT EXECUTED 5b118: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 0004d000 <_Protected_heap_Walk>: bool _Protected_heap_Walk( Heap_Control *the_heap, int source, bool do_dump ) { 4d000: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED * then it is forbidden to lock a mutex. But since we are inside * a critical section, it should be safe to walk it unlocked. * * NOTE: Dispatching is also disabled during initialization. */ if ( !_Thread_Dispatch_disable_level ) { 4d004: 2039 0006 4904 movel 64904 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED bool _Protected_heap_Walk( Heap_Control *the_heap, int source, bool do_dump ) { 4d00a: 48d7 001c moveml %d2-%d4,%sp@ <== NOT EXECUTED 4d00e: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED 4d012: 282e 000c movel %fp@(12),%d4 <== NOT EXECUTED 4d016: 162e 0013 moveb %fp@(19),%d3 <== NOT EXECUTED * then it is forbidden to lock a mutex. But since we are inside * a critical section, it should be safe to walk it unlocked. * * NOTE: Dispatching is also disabled during initialization. */ if ( !_Thread_Dispatch_disable_level ) { 4d01a: 4a80 tstl %d0 <== NOT EXECUTED 4d01c: 6720 beqs 4d03e <_Protected_heap_Walk+0x3e> <== NOT EXECUTED _RTEMS_Lock_allocator(); status = _Heap_Walk( the_heap, source, do_dump ); _RTEMS_Unlock_allocator(); } else { status = _Heap_Walk( the_heap, source, do_dump ); 4d01e: 2d44 000c movel %d4,%fp@(12) <== NOT EXECUTED 4d022: 0283 0000 00ff andil #255,%d3 <== NOT EXECUTED 4d028: 2d42 0008 movel %d2,%fp@(8) <== NOT EXECUTED 4d02c: 2d43 0010 movel %d3,%fp@(16) <== NOT EXECUTED } return status; } 4d030: 4cee 001c fff0 moveml %fp@(-16),%d2-%d4 <== NOT EXECUTED 4d036: 4e5e unlk %fp <== NOT EXECUTED if ( !_Thread_Dispatch_disable_level ) { _RTEMS_Lock_allocator(); status = _Heap_Walk( the_heap, source, do_dump ); _RTEMS_Unlock_allocator(); } else { status = _Heap_Walk( the_heap, source, do_dump ); 4d038: 4ef9 0004 c10e jmp 4c10e <_Heap_Walk> <== NOT EXECUTED * a critical section, it should be safe to walk it unlocked. * * NOTE: Dispatching is also disabled during initialization. */ if ( !_Thread_Dispatch_disable_level ) { _RTEMS_Lock_allocator(); 4d03e: 2f39 0006 49c4 movel 649c4 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED status = _Heap_Walk( the_heap, source, do_dump ); 4d044: 0283 0000 00ff andil #255,%d3 <== NOT EXECUTED * a critical section, it should be safe to walk it unlocked. * * NOTE: Dispatching is also disabled during initialization. */ if ( !_Thread_Dispatch_disable_level ) { _RTEMS_Lock_allocator(); 4d04a: 4eb9 0004 b24c jsr 4b24c <_API_Mutex_Lock> <== NOT EXECUTED status = _Heap_Walk( the_heap, source, do_dump ); 4d050: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4d052: 2f04 movel %d4,%sp@- <== NOT EXECUTED 4d054: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4d056: 4eb9 0004 c10e jsr 4c10e <_Heap_Walk> <== NOT EXECUTED _RTEMS_Unlock_allocator(); 4d05c: 2f39 0006 49c4 movel 649c4 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 4d062: 2d40 fffc movel %d0,%fp@(-4) <== NOT EXECUTED 4d066: 4eb9 0004 b2ac jsr 4b2ac <_API_Mutex_Unlock> <== NOT EXECUTED } else { status = _Heap_Walk( the_heap, source, do_dump ); } return status; } 4d06c: 202e fffc movel %fp@(-4),%d0 <== NOT EXECUTED * NOTE: Dispatching is also disabled during initialization. */ if ( !_Thread_Dispatch_disable_level ) { _RTEMS_Lock_allocator(); status = _Heap_Walk( the_heap, source, do_dump ); _RTEMS_Unlock_allocator(); 4d070: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED } else { status = _Heap_Walk( the_heap, source, do_dump ); } return status; } 4d074: 4cee 001c fff0 moveml %fp@(-16),%d2-%d4 <== NOT EXECUTED 4d07a: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 0004b808 <_RTEMS_Tasks_Invoke_task_variable_dtor>: void _RTEMS_Tasks_Invoke_task_variable_dtor( Thread_Control *the_thread, rtems_task_variable_t *tvp ) { 4b808: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED void (*dtor)(void *); void *value; dtor = tvp->dtor; if (_Thread_Is_executing(the_thread)) { 4b80c: 2039 0005 e684 movel 5e684 <_Per_CPU_Information+0xc>,%d0 <== NOT EXECUTED void _RTEMS_Tasks_Invoke_task_variable_dtor( Thread_Control *the_thread, rtems_task_variable_t *tvp ) { 4b812: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4b814: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED void (*dtor)(void *); void *value; dtor = tvp->dtor; 4b818: 206a 0010 moveal %a2@(16),%a0 <== NOT EXECUTED if (_Thread_Is_executing(the_thread)) { 4b81c: b0ae 0008 cmpl %fp@(8),%d0 <== NOT EXECUTED 4b820: 671e beqs 4b840 <_RTEMS_Tasks_Invoke_task_variable_dtor+0x38><== NOT EXECUTED value = *tvp->ptr; *tvp->ptr = tvp->gval; } else { value = tvp->tval; 4b822: 202a 000c movel %a2@(12),%d0 <== NOT EXECUTED } if ( dtor ) 4b826: 4a88 tstl %a0 <== NOT EXECUTED 4b828: 6706 beqs 4b830 <_RTEMS_Tasks_Invoke_task_variable_dtor+0x28><== NOT EXECUTED (*dtor)(value); 4b82a: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4b82c: 4e90 jsr %a0@ <== NOT EXECUTED 4b82e: 588f addql #4,%sp <== NOT EXECUTED _Workspace_Free(tvp); 4b830: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED } 4b834: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4b838: 4e5e unlk %fp <== NOT EXECUTED } if ( dtor ) (*dtor)(value); _Workspace_Free(tvp); 4b83a: 4ef9 0004 9a9e jmp 49a9e <_Workspace_Free> <== NOT EXECUTED void (*dtor)(void *); void *value; dtor = tvp->dtor; if (_Thread_Is_executing(the_thread)) { value = *tvp->ptr; 4b840: 226a 0004 moveal %a2@(4),%a1 <== NOT EXECUTED 4b844: 2011 movel %a1@,%d0 <== NOT EXECUTED *tvp->ptr = tvp->gval; 4b846: 22aa 0008 movel %a2@(8),%a1@ <== NOT EXECUTED 4b84a: 60da bras 4b826 <_RTEMS_Tasks_Invoke_task_variable_dtor+0x1e><== NOT EXECUTED =============================================================================== 0004b736 <_RTEMS_tasks_Create_extension>: bool _RTEMS_tasks_Create_extension( Thread_Control *executing, Thread_Control *created ) { 4b736: 4e56 0000 linkw %fp,#0 4b73a: 2f0a movel %a2,%sp@- 4b73c: 246e 000c moveal %fp@(12),%a2 /* * Notepads must be the last entry in the structure and they * can be left off if disabled in the configuration. */ to_allocate = sizeof( RTEMS_API_Control ); if ( !rtems_configuration_get_notepads_enabled() ) 4b740: 4a39 0005 cc64 tstb 5cc64 4b746: 6758 beqs 4b7a0 <_RTEMS_tasks_Create_extension+0x6a> /* * Notepads must be the last entry in the structure and they * can be left off if disabled in the configuration. */ to_allocate = sizeof( RTEMS_API_Control ); 4b748: 705e moveq #94,%d0 if ( !rtems_configuration_get_notepads_enabled() ) to_allocate -= (RTEMS_NUMBER_NOTEPADS * sizeof(uint32_t)); api = _Workspace_Allocate( to_allocate ); 4b74a: 2f00 movel %d0,%sp@- 4b74c: 4eb9 0004 9a82 jsr 49a82 <_Workspace_Allocate> if ( !api ) 4b752: 588f addql #4,%sp */ to_allocate = sizeof( RTEMS_API_Control ); if ( !rtems_configuration_get_notepads_enabled() ) to_allocate -= (RTEMS_NUMBER_NOTEPADS * sizeof(uint32_t)); api = _Workspace_Allocate( to_allocate ); 4b754: 2040 moveal %d0,%a0 if ( !api ) 4b756: 4a80 tstl %d0 4b758: 6758 beqs 4b7b2 <_RTEMS_tasks_Create_extension+0x7c><== NEVER TAKEN return false; created->API_Extensions[ THREAD_API_RTEMS ] = api; 4b75a: 2540 00fc movel %d0,%a2@(252) */ RTEMS_INLINE_ROUTINE void _ASR_Initialize ( ASR_Information *information ) { information->is_enabled = false; 4b75e: 4200 clrb %d0 api->pending_events = EVENT_SETS_NONE_PENDING; 4b760: 4290 clrl %a0@ 4b762: 1140 0008 moveb %d0,%a0@(8) api->event_condition = 0; 4b766: 42a8 0004 clrl %a0@(4) information->handler = NULL; 4b76a: 42a8 000a clrl %a0@(10) information->mode_set = RTEMS_DEFAULT_MODES; 4b76e: 42a8 000e clrl %a0@(14) information->signals_posted = 0; 4b772: 42a8 0012 clrl %a0@(18) information->signals_pending = 0; 4b776: 42a8 0016 clrl %a0@(22) information->nest_level = 0; 4b77a: 42a8 001a clrl %a0@(26) _ASR_Initialize( &api->Signal ); created->task_variables = NULL; 4b77e: 42aa 0108 clrl %a2@(264) if ( rtems_configuration_get_notepads_enabled() ) { 4b782: 4a39 0005 cc64 tstb 5cc64 4b788: 670c beqs 4b796 <_RTEMS_tasks_Create_extension+0x60> * task is created via another API, then this routine is invoked * and this API given the opportunity to initialize its extension * area. */ bool _RTEMS_tasks_Create_extension( 4b78a: 41e8 001e lea %a0@(30),%a0 4b78e: 7010 moveq #16,%d0 _ASR_Initialize( &api->Signal ); created->task_variables = NULL; if ( rtems_configuration_get_notepads_enabled() ) { for (i=0; i < RTEMS_NUMBER_NOTEPADS; i++) api->Notepads[i] = 0; 4b790: 4298 clrl %a0@+ 4b792: 5380 subql #1,%d0 api->event_condition = 0; _ASR_Initialize( &api->Signal ); created->task_variables = NULL; if ( rtems_configuration_get_notepads_enabled() ) { for (i=0; i < RTEMS_NUMBER_NOTEPADS; i++) 4b794: 66fa bnes 4b790 <_RTEMS_tasks_Create_extension+0x5a> api->Notepads[i] = 0; } return true; } 4b796: 246e fffc moveal %fp@(-4),%a2 4b79a: 4e5e unlk %fp if ( rtems_configuration_get_notepads_enabled() ) { for (i=0; i < RTEMS_NUMBER_NOTEPADS; i++) api->Notepads[i] = 0; } return true; 4b79c: 7001 moveq #1,%d0 } 4b79e: 4e75 rts * Notepads must be the last entry in the structure and they * can be left off if disabled in the configuration. */ to_allocate = sizeof( RTEMS_API_Control ); if ( !rtems_configuration_get_notepads_enabled() ) to_allocate -= (RTEMS_NUMBER_NOTEPADS * sizeof(uint32_t)); 4b7a0: 701e moveq #30,%d0 api = _Workspace_Allocate( to_allocate ); 4b7a2: 2f00 movel %d0,%sp@- 4b7a4: 4eb9 0004 9a82 jsr 49a82 <_Workspace_Allocate> if ( !api ) 4b7aa: 588f addql #4,%sp */ to_allocate = sizeof( RTEMS_API_Control ); if ( !rtems_configuration_get_notepads_enabled() ) to_allocate -= (RTEMS_NUMBER_NOTEPADS * sizeof(uint32_t)); api = _Workspace_Allocate( to_allocate ); 4b7ac: 2040 moveal %d0,%a0 if ( !api ) 4b7ae: 4a80 tstl %d0 4b7b0: 66a8 bnes 4b75a <_RTEMS_tasks_Create_extension+0x24><== ALWAYS TAKEN for (i=0; i < RTEMS_NUMBER_NOTEPADS; i++) api->Notepads[i] = 0; } return true; } 4b7b2: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4b7b6: 4e5e unlk %fp <== NOT EXECUTED to_allocate -= (RTEMS_NUMBER_NOTEPADS * sizeof(uint32_t)); api = _Workspace_Allocate( to_allocate ); if ( !api ) return false; 4b7b8: 4200 clrb %d0 <== NOT EXECUTED for (i=0; i < RTEMS_NUMBER_NOTEPADS; i++) api->Notepads[i] = 0; } return true; } =============================================================================== 0004b6e0 <_RTEMS_tasks_Delete_extension>: void _RTEMS_tasks_Delete_extension( Thread_Control *executing, Thread_Control *deleted ) { 4b6e0: 4e56 fff4 linkw %fp,#-12 4b6e4: 48d7 0c04 moveml %d2/%a2-%a3,%sp@ 4b6e8: 246e 000c moveal %fp@(12),%a2 4b6ec: 47f9 0004 b808 lea 4b808 <_RTEMS_Tasks_Invoke_task_variable_dtor>,%a3 /* * Free per task variable memory */ tvp = deleted->task_variables; 4b6f2: 206a 0108 moveal %a2@(264),%a0 deleted->task_variables = NULL; 4b6f6: 42aa 0108 clrl %a2@(264) while (tvp) { 4b6fa: 4a88 tstl %a0 4b6fc: 671e beqs 4b71c <_RTEMS_tasks_Delete_extension+0x3c><== ALWAYS TAKEN next = (rtems_task_variable_t *)tvp->next; 4b6fe: 2410 movel %a0@,%d2 <== NOT EXECUTED _RTEMS_Tasks_Invoke_task_variable_dtor( deleted, tvp ); 4b700: 2f08 movel %a0,%sp@- <== NOT EXECUTED 4b702: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4b704: 4e93 jsr %a3@ <== NOT EXECUTED * Free per task variable memory */ tvp = deleted->task_variables; deleted->task_variables = NULL; while (tvp) { 4b706: 508f addql #8,%sp <== NOT EXECUTED 4b708: 4a82 tstl %d2 <== NOT EXECUTED 4b70a: 6710 beqs 4b71c <_RTEMS_tasks_Delete_extension+0x3c><== NOT EXECUTED next = (rtems_task_variable_t *)tvp->next; _RTEMS_Tasks_Invoke_task_variable_dtor( deleted, tvp ); tvp = next; 4b70c: 2042 moveal %d2,%a0 <== NOT EXECUTED */ tvp = deleted->task_variables; deleted->task_variables = NULL; while (tvp) { next = (rtems_task_variable_t *)tvp->next; 4b70e: 2410 movel %a0@,%d2 <== NOT EXECUTED _RTEMS_Tasks_Invoke_task_variable_dtor( deleted, tvp ); 4b710: 2f08 movel %a0,%sp@- <== NOT EXECUTED 4b712: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4b714: 4e93 jsr %a3@ <== NOT EXECUTED * Free per task variable memory */ tvp = deleted->task_variables; deleted->task_variables = NULL; while (tvp) { 4b716: 508f addql #8,%sp <== NOT EXECUTED 4b718: 4a82 tstl %d2 <== NOT EXECUTED 4b71a: 66f0 bnes 4b70c <_RTEMS_tasks_Delete_extension+0x2c><== NOT EXECUTED /* * Free API specific memory */ (void) _Workspace_Free( deleted->API_Extensions[ THREAD_API_RTEMS ] ); 4b71c: 2f2a 00fc movel %a2@(252),%sp@- 4b720: 4eb9 0004 9a9e jsr 49a9e <_Workspace_Free> deleted->API_Extensions[ THREAD_API_RTEMS ] = NULL; 4b726: 588f addql #4,%sp 4b728: 42aa 00fc clrl %a2@(252) } 4b72c: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3 4b732: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 0004687c <_RTEMS_tasks_Initialize_user_tasks_body>: * * Output parameters: NONE */ void _RTEMS_tasks_Initialize_user_tasks_body( void ) { 4687c: 4e56 ffe4 linkw %fp,#-28 46880: 48d7 1c1c moveml %d2-%d4/%a2-%a4,%sp@ rtems_initialization_tasks_table *user_tasks; /* * Move information into local variables */ user_tasks = Configuration_RTEMS_API.User_initialization_tasks_table; 46884: 2479 0005 cc8a moveal 5cc8a ,%a2 maximum = Configuration_RTEMS_API.number_of_initialization_tasks; 4688a: 2639 0005 cc86 movel 5cc86 ,%d3 /* * Verify that we have a set of user tasks to iterate */ if ( !user_tasks ) 46890: 4a8a tstl %a2 46892: 6754 beqs 468e8 <_RTEMS_tasks_Initialize_user_tasks_body+0x6c> return; /* * Now iterate over the initialization tasks and create/start them. */ for ( index=0 ; index < maximum ; index++ ) { 46894: 4a83 tstl %d3 46896: 6750 beqs 468e8 <_RTEMS_tasks_Initialize_user_tasks_body+0x6c><== NEVER TAKEN 46898: 280e movel %fp,%d4 4689a: 4282 clrl %d2 4689c: 5984 subql #4,%d4 4689e: 47f9 0004 6654 lea 46654 ,%a3 &id ); if ( !rtems_is_status_successful( return_value ) ) _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, true, return_value ); return_value = rtems_task_start( 468a4: 49f9 0004 6904 lea 46904 ,%a4 /* * Now iterate over the initialization tasks and create/start them. */ for ( index=0 ; index < maximum ; index++ ) { return_value = rtems_task_create( 468aa: 2f04 movel %d4,%sp@- 468ac: 2f2a 000c movel %a2@(12),%sp@- 468b0: 2f2a 0014 movel %a2@(20),%sp@- 468b4: 2f2a 0004 movel %a2@(4),%sp@- 468b8: 2f2a 0008 movel %a2@(8),%sp@- 468bc: 2f12 movel %a2@,%sp@- 468be: 4e93 jsr %a3@ user_tasks[ index ].stack_size, user_tasks[ index ].mode_set, user_tasks[ index ].attribute_set, &id ); if ( !rtems_is_status_successful( return_value ) ) 468c0: 4fef 0018 lea %sp@(24),%sp 468c4: 4a80 tstl %d0 468c6: 662a bnes 468f2 <_RTEMS_tasks_Initialize_user_tasks_body+0x76> _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, true, return_value ); return_value = rtems_task_start( 468c8: 2f2a 0018 movel %a2@(24),%sp@- 468cc: 2f2a 0010 movel %a2@(16),%sp@- 468d0: 2f2e fffc movel %fp@(-4),%sp@- 468d4: 4e94 jsr %a4@ id, user_tasks[ index ].entry_point, user_tasks[ index ].argument ); if ( !rtems_is_status_successful( return_value ) ) 468d6: 4fef 000c lea %sp@(12),%sp 468da: 4a80 tstl %d0 468dc: 6614 bnes 468f2 <_RTEMS_tasks_Initialize_user_tasks_body+0x76> return; /* * Now iterate over the initialization tasks and create/start them. */ for ( index=0 ; index < maximum ; index++ ) { 468de: 5282 addql #1,%d2 468e0: 45ea 001c lea %a2@(28),%a2 468e4: b483 cmpl %d3,%d2 468e6: 65c2 bcss 468aa <_RTEMS_tasks_Initialize_user_tasks_body+0x2e><== NEVER TAKEN user_tasks[ index ].argument ); if ( !rtems_is_status_successful( return_value ) ) _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, true, return_value ); } } 468e8: 4cee 1c1c ffe4 moveml %fp@(-28),%d2-%d4/%a2-%a4 468ee: 4e5e unlk %fp 468f0: 4e75 rts id, user_tasks[ index ].entry_point, user_tasks[ index ].argument ); if ( !rtems_is_status_successful( return_value ) ) _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, true, return_value ); 468f2: 2f00 movel %d0,%sp@- 468f4: 4878 0001 pea 1 468f8: 4878 0001 pea 1 468fc: 4eb9 0004 77b8 jsr 477b8 <_Internal_error_Occurred> ... =============================================================================== 0004b664 <_RTEMS_tasks_Post_switch_extension>: */ void _RTEMS_tasks_Post_switch_extension( Thread_Control *executing ) { 4b664: 4e56 ffec linkw %fp,#-20 4b668: 206e 0008 moveal %fp@(8),%a0 4b66c: 48d7 0c0c moveml %d2-%d3/%a2-%a3,%sp@ RTEMS_API_Control *api; ASR_Information *asr; rtems_signal_set signal_set; Modes_Control prev_mode; api = executing->API_Extensions[ THREAD_API_RTEMS ]; 4b670: 2468 00fc moveal %a0@(252),%a2 if ( !api ) 4b674: 4a8a tstl %a2 4b676: 671a beqs 4b692 <_RTEMS_tasks_Post_switch_extension+0x2e><== NEVER TAKEN * Signal Processing */ asr = &api->Signal; _ISR_Disable( level ); 4b678: 203c 0000 0700 movel #1792,%d0 4b67e: 40c1 movew %sr,%d1 4b680: 8081 orl %d1,%d0 4b682: 46c0 movew %d0,%sr signal_set = asr->signals_posted; 4b684: 242a 0012 movel %a2@(18),%d2 asr->signals_posted = 0; 4b688: 42aa 0012 clrl %a2@(18) _ISR_Enable( level ); 4b68c: 46c1 movew %d1,%sr if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */ 4b68e: 4a82 tstl %d2 4b690: 660a bnes 4b69c <_RTEMS_tasks_Post_switch_extension+0x38><== NEVER TAKEN (*asr->handler)( signal_set ); asr->nest_level -= 1; rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode ); } 4b692: 4cee 0c0c ffec moveml %fp@(-20),%d2-%d3/%a2-%a3 4b698: 4e5e unlk %fp 4b69a: 4e75 rts if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */ return; asr->nest_level += 1; 4b69c: 52aa 001a addql #1,%a2@(26) <== NOT EXECUTED rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); 4b6a0: 260e movel %fp,%d3 <== NOT EXECUTED 4b6a2: 5983 subql #4,%d3 <== NOT EXECUTED 4b6a4: 47f9 0004 d3ac lea 4d3ac ,%a3 <== NOT EXECUTED 4b6aa: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4b6ac: 2f3c 0000 ffff movel #65535,%sp@- <== NOT EXECUTED 4b6b2: 2f2a 000e movel %a2@(14),%sp@- <== NOT EXECUTED 4b6b6: 4e93 jsr %a3@ <== NOT EXECUTED (*asr->handler)( signal_set ); 4b6b8: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4b6ba: 206a 000a moveal %a2@(10),%a0 <== NOT EXECUTED 4b6be: 4e90 jsr %a0@ <== NOT EXECUTED asr->nest_level -= 1; 4b6c0: 53aa 001a subql #1,%a2@(26) <== NOT EXECUTED rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode ); 4b6c4: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4b6c6: 2f3c 0000 ffff movel #65535,%sp@- <== NOT EXECUTED 4b6cc: 2f2e fffc movel %fp@(-4),%sp@- <== NOT EXECUTED 4b6d0: 4e93 jsr %a3@ <== NOT EXECUTED 4b6d2: 4fef 001c lea %sp@(28),%sp <== NOT EXECUTED } 4b6d6: 4cee 0c0c ffec moveml %fp@(-20),%d2-%d3/%a2-%a3 <== NOT EXECUTED 4b6dc: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 0004b60a <_RTEMS_tasks_Switch_extension>: void _RTEMS_tasks_Switch_extension( Thread_Control *executing, Thread_Control *heir ) { 4b60a: 4e56 0000 linkw %fp,#0 4b60e: 206e 0008 moveal %fp@(8),%a0 /* * Per Task Variables */ tvp = executing->task_variables; 4b612: 2068 0108 moveal %a0@(264),%a0 while (tvp) { 4b616: 4a88 tstl %a0 4b618: 6712 beqs 4b62c <_RTEMS_tasks_Switch_extension+0x22><== ALWAYS TAKEN tvp->tval = *tvp->ptr; 4b61a: 2268 0004 moveal %a0@(4),%a1 <== NOT EXECUTED 4b61e: 2151 000c movel %a1@,%a0@(12) <== NOT EXECUTED *tvp->ptr = tvp->gval; 4b622: 22a8 0008 movel %a0@(8),%a1@ <== NOT EXECUTED tvp = (rtems_task_variable_t *)tvp->next; 4b626: 2050 moveal %a0@,%a0 <== NOT EXECUTED /* * Per Task Variables */ tvp = executing->task_variables; while (tvp) { 4b628: 4a88 tstl %a0 <== NOT EXECUTED 4b62a: 66ee bnes 4b61a <_RTEMS_tasks_Switch_extension+0x10><== NOT EXECUTED tvp->tval = *tvp->ptr; *tvp->ptr = tvp->gval; tvp = (rtems_task_variable_t *)tvp->next; } tvp = heir->task_variables; 4b62c: 206e 000c moveal %fp@(12),%a0 4b630: 2068 0108 moveal %a0@(264),%a0 while (tvp) { 4b634: 4a88 tstl %a0 4b636: 6712 beqs 4b64a <_RTEMS_tasks_Switch_extension+0x40><== ALWAYS TAKEN tvp->gval = *tvp->ptr; 4b638: 2268 0004 moveal %a0@(4),%a1 <== NOT EXECUTED 4b63c: 2151 0008 movel %a1@,%a0@(8) <== NOT EXECUTED *tvp->ptr = tvp->tval; 4b640: 22a8 000c movel %a0@(12),%a1@ <== NOT EXECUTED tvp = (rtems_task_variable_t *)tvp->next; 4b644: 2050 moveal %a0@,%a0 <== NOT EXECUTED *tvp->ptr = tvp->gval; tvp = (rtems_task_variable_t *)tvp->next; } tvp = heir->task_variables; while (tvp) { 4b646: 4a88 tstl %a0 <== NOT EXECUTED 4b648: 66ee bnes 4b638 <_RTEMS_tasks_Switch_extension+0x2e><== NOT EXECUTED tvp->gval = *tvp->ptr; *tvp->ptr = tvp->tval; tvp = (rtems_task_variable_t *)tvp->next; } } 4b64a: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 000472a0 <_Rate_monotonic_Get_status>: bool _Rate_monotonic_Get_status( Rate_monotonic_Control *the_period, Rate_monotonic_Period_time_t *wall_since_last_period, Thread_CPU_usage_t *cpu_since_last_period ) { 472a0: 4e56 ffd0 linkw %fp,#-48 <== NOT EXECUTED 472a4: 48d7 1c1c moveml %d2-%d4/%a2-%a4,%sp@ <== NOT EXECUTED /* * Determine elapsed wall time since period initiated. */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _TOD_Get_uptime( &uptime ); 472a8: 280e movel %fp,%d4 <== NOT EXECUTED 472aa: 5184 subql #8,%d4 <== NOT EXECUTED _Timestamp_Subtract( 472ac: 45f9 0004 b0c4 lea 4b0c4 <_Timespec_Subtract>,%a2 <== NOT EXECUTED bool _Rate_monotonic_Get_status( Rate_monotonic_Control *the_period, Rate_monotonic_Period_time_t *wall_since_last_period, Thread_CPU_usage_t *cpu_since_last_period ) { 472b2: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED /* * Determine elapsed wall time since period initiated. */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _TOD_Get_uptime( &uptime ); 472b6: 2f04 movel %d4,%sp@- <== NOT EXECUTED ) { #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ Timestamp_Control uptime; #endif Thread_Control *owning_thread = the_period->owner; 472b8: 286b 0040 moveal %a3@(64),%a4 <== NOT EXECUTED /* * Determine elapsed wall time since period initiated. */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _TOD_Get_uptime( &uptime ); 472bc: 4eb9 0004 8d28 jsr 48d28 <_TOD_Get_uptime> <== NOT EXECUTED _Timestamp_Subtract( 472c2: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 472c6: 2f04 movel %d4,%sp@- <== NOT EXECUTED 472c8: 486b 004c pea %a3@(76) <== NOT EXECUTED 472cc: 4e92 jsr %a2@ <== NOT EXECUTED * Determine cpu usage since period initiated. */ used = owning_thread->cpu_time_used; #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ if (owning_thread == _Thread_Executing) { 472ce: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED #endif /* * Determine cpu usage since period initiated. */ used = owning_thread->cpu_time_used; 472d2: 202c 0082 movel %a4@(130),%d0 <== NOT EXECUTED 472d6: 222c 0086 movel %a4@(134),%d1 <== NOT EXECUTED 472da: 2d40 fff0 movel %d0,%fp@(-16) <== NOT EXECUTED 472de: 2d41 fff4 movel %d1,%fp@(-12) <== NOT EXECUTED #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ if (owning_thread == _Thread_Executing) { 472e2: b9f9 0006 07dc cmpal 607dc <_Per_CPU_Information+0xc>,%a4 <== NOT EXECUTED 472e8: 670c beqs 472f6 <_Rate_monotonic_Get_status+0x56><== NOT EXECUTED return false; *cpu_since_last_period = used - the_period->cpu_usage_period_initiated; #endif return true; } 472ea: 4cee 1c1c ffd0 moveml %fp@(-48),%d2-%d4/%a2-%a4 <== NOT EXECUTED if (used < the_period->cpu_usage_period_initiated) return false; *cpu_since_last_period = used - the_period->cpu_usage_period_initiated; #endif return true; 472f0: 7001 moveq #1,%d0 <== NOT EXECUTED } 472f2: 4e5e unlk %fp <== NOT EXECUTED 472f4: 4e75 rts <== NOT EXECUTED if (owning_thread == _Thread_Executing) { Thread_CPU_usage_t ran; /* How much time time since last context switch */ _Timestamp_Subtract( 472f6: 49ee ffe8 lea %fp@(-24),%a4 <== NOT EXECUTED &_Thread_Time_of_last_context_switch, &uptime, &ran ); /* cpu usage += ran */ _Timestamp_Add_to( &used, &ran ); 472fa: 240e movel %fp,%d2 <== NOT EXECUTED 472fc: 0682 ffff fff0 addil #-16,%d2 <== NOT EXECUTED /* * The cpu usage info was reset while executing. Can't * determine a status. */ if (_Timestamp_Less_than(&used, &the_period->cpu_usage_period_initiated)) 47302: 260b movel %a3,%d3 <== NOT EXECUTED 47304: 0683 0000 0044 addil #68,%d3 <== NOT EXECUTED if (owning_thread == _Thread_Executing) { Thread_CPU_usage_t ran; /* How much time time since last context switch */ _Timestamp_Subtract( 4730a: 2f0c movel %a4,%sp@- <== NOT EXECUTED 4730c: 2f04 movel %d4,%sp@- <== NOT EXECUTED 4730e: 4879 0006 06ec pea 606ec <_Thread_Time_of_last_context_switch><== NOT EXECUTED 47314: 4e92 jsr %a2@ <== NOT EXECUTED &_Thread_Time_of_last_context_switch, &uptime, &ran ); /* cpu usage += ran */ _Timestamp_Add_to( &used, &ran ); 47316: 2f0c movel %a4,%sp@- <== NOT EXECUTED 47318: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4731a: 4eb9 0004 af84 jsr 4af84 <_Timespec_Add_to> <== NOT EXECUTED /* * The cpu usage info was reset while executing. Can't * determine a status. */ if (_Timestamp_Less_than(&used, &the_period->cpu_usage_period_initiated)) 47320: 2f03 movel %d3,%sp@- <== NOT EXECUTED 47322: 2f02 movel %d2,%sp@- <== NOT EXECUTED 47324: 4eb9 0004 b090 jsr 4b090 <_Timespec_Less_than> <== NOT EXECUTED 4732a: 4fef 001c lea %sp@(28),%sp <== NOT EXECUTED 4732e: 4a00 tstb %d0 <== NOT EXECUTED 47330: 670c beqs 4733e <_Rate_monotonic_Get_status+0x9e><== NOT EXECUTED return false; *cpu_since_last_period = used - the_period->cpu_usage_period_initiated; #endif return true; } 47332: 4cee 1c1c ffd0 moveml %fp@(-48),%d2-%d4/%a2-%a4 <== NOT EXECUTED /* * The cpu usage info was reset while executing. Can't * determine a status. */ if (_Timestamp_Less_than(&used, &the_period->cpu_usage_period_initiated)) return false; 47338: 4200 clrb %d0 <== NOT EXECUTED return false; *cpu_since_last_period = used - the_period->cpu_usage_period_initiated; #endif return true; } 4733a: 4e5e unlk %fp <== NOT EXECUTED 4733c: 4e75 rts <== NOT EXECUTED */ if (_Timestamp_Less_than(&used, &the_period->cpu_usage_period_initiated)) return false; /* used = current cpu usage - cpu usage at start of period */ _Timestamp_Subtract( 4733e: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 47342: 2f02 movel %d2,%sp@- <== NOT EXECUTED 47344: 2f03 movel %d3,%sp@- <== NOT EXECUTED 47346: 4e92 jsr %a2@ <== NOT EXECUTED 47348: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED return false; *cpu_since_last_period = used - the_period->cpu_usage_period_initiated; #endif return true; } 4734c: 4cee 1c1c ffd0 moveml %fp@(-48),%d2-%d4/%a2-%a4 <== NOT EXECUTED if (used < the_period->cpu_usage_period_initiated) return false; *cpu_since_last_period = used - the_period->cpu_usage_period_initiated; #endif return true; 47352: 7001 moveq #1,%d0 <== NOT EXECUTED } 47354: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00047358 <_Rate_monotonic_Initiate_statistics>: void _Rate_monotonic_Initiate_statistics( Rate_monotonic_Control *the_period ) { 47358: 4e56 ffe4 linkw %fp,#-28 <== NOT EXECUTED 4735c: 48d7 0c04 moveml %d2/%a2-%a3,%sp@ <== NOT EXECUTED 47360: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED * If using nanosecond statistics, we need to obtain the uptime. */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ Timestamp_Control uptime; _TOD_Get_uptime( &uptime ); 47364: 240e movel %fp,%d2 <== NOT EXECUTED 47366: 5182 subql #8,%d2 <== NOT EXECUTED void _Rate_monotonic_Initiate_statistics( Rate_monotonic_Control *the_period ) { Thread_Control *owning_thread = the_period->owner; 47368: 266a 0040 moveal %a2@(64),%a3 <== NOT EXECUTED * If using nanosecond statistics, we need to obtain the uptime. */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ Timestamp_Control uptime; _TOD_Get_uptime( &uptime ); 4736c: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4736e: 4eb9 0004 8d28 jsr 48d28 <_TOD_Get_uptime> <== NOT EXECUTED * routine is invoked from rtems_rate_monotonic_period, the owner will * be the executing thread. When this routine is invoked from * _Rate_monotonic_Timeout, it will not. */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ if (owning_thread == _Thread_Executing) { 47374: 588f addql #4,%sp <== NOT EXECUTED /* * Set the starting point and the CPU time used for the statistics. */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ the_period->time_period_initiated = uptime; 47376: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED 4737a: 222e fffc movel %fp@(-4),%d1 <== NOT EXECUTED 4737e: 2540 004c movel %d0,%a2@(76) <== NOT EXECUTED 47382: 2541 0050 movel %d1,%a2@(80) <== NOT EXECUTED #else the_period->time_period_initiated = _Watchdog_Ticks_since_boot; #endif the_period->cpu_usage_period_initiated = owning_thread->cpu_time_used; 47386: 202b 0082 movel %a3@(130),%d0 <== NOT EXECUTED 4738a: 222b 0086 movel %a3@(134),%d1 <== NOT EXECUTED 4738e: 2540 0044 movel %d0,%a2@(68) <== NOT EXECUTED 47392: 2541 0048 movel %d1,%a2@(72) <== NOT EXECUTED * routine is invoked from rtems_rate_monotonic_period, the owner will * be the executing thread. When this routine is invoked from * _Rate_monotonic_Timeout, it will not. */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ if (owning_thread == _Thread_Executing) { 47396: b7f9 0006 07dc cmpal 607dc <_Per_CPU_Information+0xc>,%a3 <== NOT EXECUTED 4739c: 670a beqs 473a8 <_Rate_monotonic_Initiate_statistics+0x50><== NOT EXECUTED ); _Timespec_Add_to( &the_period->cpu_usage_period_initiated, &ran ); } #endif } 4739e: 4cee 0c04 ffe4 moveml %fp@(-28),%d2/%a2-%a3 <== NOT EXECUTED 473a4: 4e5e unlk %fp <== NOT EXECUTED 473a6: 4e75 rts <== NOT EXECUTED /* * Adjust the CPU time used to account for the time since last * context switch. */ _Timespec_Subtract( &_Thread_Time_of_last_context_switch, &uptime, &ran 473a8: 47ee fff0 lea %fp@(-16),%a3 <== NOT EXECUTED /* * Adjust the CPU time used to account for the time since last * context switch. */ _Timespec_Subtract( 473ac: 2f0b movel %a3,%sp@- <== NOT EXECUTED 473ae: 2f02 movel %d2,%sp@- <== NOT EXECUTED 473b0: 4879 0006 06ec pea 606ec <_Thread_Time_of_last_context_switch><== NOT EXECUTED 473b6: 4eb9 0004 b0c4 jsr 4b0c4 <_Timespec_Subtract> <== NOT EXECUTED &_Thread_Time_of_last_context_switch, &uptime, &ran ); _Timespec_Add_to( &the_period->cpu_usage_period_initiated, &ran ); 473bc: 2f0b movel %a3,%sp@- <== NOT EXECUTED 473be: 486a 0044 pea %a2@(68) <== NOT EXECUTED 473c2: 4eb9 0004 af84 jsr 4af84 <_Timespec_Add_to> <== NOT EXECUTED 473c8: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED } #endif } 473cc: 4cee 0c04 ffe4 moveml %fp@(-28),%d2/%a2-%a3 <== NOT EXECUTED 473d2: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00047974 <_Rate_monotonic_Timeout>: void _Rate_monotonic_Timeout( Objects_Id id, void *ignored ) { 47974: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 47978: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4797a: 486e fffc pea %fp@(-4) <== NOT EXECUTED 4797e: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 47982: 4879 0006 0530 pea 60530 <_Rate_monotonic_Information> <== NOT EXECUTED 47988: 4eb9 0004 985c jsr 4985c <_Objects_Get> <== NOT EXECUTED /* * When we get here, the Timer is already off the chain so we do not * have to worry about that -- hence no _Watchdog_Remove(). */ the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { 4798e: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 47992: 2440 moveal %d0,%a2 <== NOT EXECUTED 47994: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 47998: 6636 bnes 479d0 <_Rate_monotonic_Timeout+0x5c> <== NOT EXECUTED case OBJECTS_LOCAL: the_thread = the_period->owner; 4799a: 206a 0040 moveal %a2@(64),%a0 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_period ( States_Control the_states ) { return (the_states & STATES_WAITING_FOR_PERIOD); 4799e: 2028 0010 movel %a0@(16),%d0 <== NOT EXECUTED 479a2: 0280 0000 4000 andil #16384,%d0 <== NOT EXECUTED if ( _States_Is_waiting_for_period( the_thread->current_state ) && 479a8: 670a beqs 479b4 <_Rate_monotonic_Timeout+0x40> <== NOT EXECUTED 479aa: 202a 0008 movel %a2@(8),%d0 <== NOT EXECUTED 479ae: b0a8 0020 cmpl %a0@(32),%d0 <== NOT EXECUTED 479b2: 675e beqs 47a12 <_Rate_monotonic_Timeout+0x9e> <== NOT EXECUTED _Thread_Unblock( the_thread ); _Rate_monotonic_Initiate_statistics( the_period ); _Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length ); } else if ( the_period->state == RATE_MONOTONIC_OWNER_IS_BLOCKING ) { 479b4: 7001 moveq #1,%d0 <== NOT EXECUTED 479b6: b0aa 0038 cmpl %a2@(56),%d0 <== NOT EXECUTED 479ba: 671c beqs 479d8 <_Rate_monotonic_Timeout+0x64> <== NOT EXECUTED _Rate_monotonic_Initiate_statistics( the_period ); _Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length ); } else the_period->state = RATE_MONOTONIC_EXPIRED; 479bc: 7004 moveq #4,%d0 <== NOT EXECUTED 479be: 2540 0038 movel %d0,%a2@(56) <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; 479c2: 2039 0006 0620 movel 60620 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED 479c8: 5380 subql #1,%d0 <== NOT EXECUTED 479ca: 23c0 0006 0620 movel %d0,60620 <_Thread_Dispatch_disable_level><== NOT EXECUTED case OBJECTS_REMOTE: /* impossible */ #endif case OBJECTS_ERROR: break; } } 479d0: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 479d4: 4e5e unlk %fp <== NOT EXECUTED 479d6: 4e75 rts <== NOT EXECUTED _Rate_monotonic_Initiate_statistics( the_period ); _Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length ); } else if ( the_period->state == RATE_MONOTONIC_OWNER_IS_BLOCKING ) { the_period->state = RATE_MONOTONIC_EXPIRED_WHILE_BLOCKING; 479d8: 103c 0003 moveb #3,%d0 <== NOT EXECUTED 479dc: 2540 0038 movel %d0,%a2@(56) <== NOT EXECUTED _Rate_monotonic_Initiate_statistics( the_period ); 479e0: 2f0a movel %a2,%sp@- <== NOT EXECUTED 479e2: 4eb9 0004 7358 jsr 47358 <_Rate_monotonic_Initiate_statistics><== NOT EXECUTED Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 479e8: 256a 003c 001c movel %a2@(60),%a2@(28) <== NOT EXECUTED _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 479ee: 486a 0010 pea %a2@(16) <== NOT EXECUTED 479f2: 4879 0006 0700 pea 60700 <_Watchdog_Ticks_chain> <== NOT EXECUTED 479f8: 4eb9 0004 b3cc jsr 4b3cc <_Watchdog_Insert> <== NOT EXECUTED 479fe: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 47a02: 2039 0006 0620 movel 60620 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED 47a08: 5380 subql #1,%d0 <== NOT EXECUTED 47a0a: 23c0 0006 0620 movel %d0,60620 <_Thread_Dispatch_disable_level><== NOT EXECUTED 47a10: 60be bras 479d0 <_Rate_monotonic_Timeout+0x5c> <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 47a12: 2f3c 1003 fff8 movel #268697592,%sp@- <== NOT EXECUTED 47a18: 2f08 movel %a0,%sp@- <== NOT EXECUTED 47a1a: 4eb9 0004 a034 jsr 4a034 <_Thread_Clear_state> <== NOT EXECUTED the_thread = the_period->owner; if ( _States_Is_waiting_for_period( the_thread->current_state ) && the_thread->Wait.id == the_period->Object.id ) { _Thread_Unblock( the_thread ); _Rate_monotonic_Initiate_statistics( the_period ); 47a20: 2f0a movel %a2,%sp@- <== NOT EXECUTED 47a22: 4eb9 0004 7358 jsr 47358 <_Rate_monotonic_Initiate_statistics><== NOT EXECUTED Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 47a28: 256a 003c 001c movel %a2@(60),%a2@(28) <== NOT EXECUTED _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 47a2e: 486a 0010 pea %a2@(16) <== NOT EXECUTED 47a32: 4879 0006 0700 pea 60700 <_Watchdog_Ticks_chain> <== NOT EXECUTED 47a38: 4eb9 0004 b3cc jsr 4b3cc <_Watchdog_Insert> <== NOT EXECUTED _Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length ); 47a3e: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; 47a42: 2039 0006 0620 movel 60620 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED 47a48: 5380 subql #1,%d0 <== NOT EXECUTED 47a4a: 23c0 0006 0620 movel %d0,60620 <_Thread_Dispatch_disable_level><== NOT EXECUTED 47a50: 6000 ff7e braw 479d0 <_Rate_monotonic_Timeout+0x5c> <== NOT EXECUTED =============================================================================== 000473d6 <_Rate_monotonic_Update_statistics>: * Update the counts. */ stats = &the_period->Statistics; stats->count++; if ( the_period->state == RATE_MONOTONIC_EXPIRED ) 473d6: 7004 moveq #4,%d0 <== NOT EXECUTED } void _Rate_monotonic_Update_statistics( Rate_monotonic_Control *the_period ) { 473d8: 4e56 ffd8 linkw %fp,#-40 <== NOT EXECUTED 473dc: 48d7 3c0c moveml %d2-%d3/%a2-%a5,%sp@ <== NOT EXECUTED 473e0: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED /* * Update the counts. */ stats = &the_period->Statistics; stats->count++; 473e4: 52aa 0054 addql #1,%a2@(84) <== NOT EXECUTED if ( the_period->state == RATE_MONOTONIC_EXPIRED ) 473e8: b0aa 0038 cmpl %a2@(56),%d0 <== NOT EXECUTED 473ec: 6700 00c6 beqw 474b4 <_Rate_monotonic_Update_statistics+0xde><== NOT EXECUTED /* * Grab status for time statistics. */ valid_status = _Rate_monotonic_Get_status( the_period, &since_last_period, &executed ); 473f0: 260e movel %fp,%d3 <== NOT EXECUTED 473f2: 5183 subql #8,%d3 <== NOT EXECUTED 473f4: 240e movel %fp,%d2 <== NOT EXECUTED 473f6: 0682 ffff fff0 addil #-16,%d2 <== NOT EXECUTED stats->missed_count++; /* * Grab status for time statistics. */ valid_status = 473fc: 2f03 movel %d3,%sp@- <== NOT EXECUTED 473fe: 2f02 movel %d2,%sp@- <== NOT EXECUTED 47400: 2f0a movel %a2,%sp@- <== NOT EXECUTED 47402: 4eb9 0004 72a0 jsr 472a0 <_Rate_monotonic_Get_status> <== NOT EXECUTED _Rate_monotonic_Get_status( the_period, &since_last_period, &executed ); if (!valid_status) 47408: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4740c: 4a00 tstb %d0 <== NOT EXECUTED 4740e: 660a bnes 4741a <_Rate_monotonic_Update_statistics+0x44><== NOT EXECUTED stats->min_wall_time = since_last_period; if ( since_last_period > stats->max_wall_time ) stats->max_wall_time = since_last_period; #endif } 47410: 4cee 3c0c ffd8 moveml %fp@(-40),%d2-%d3/%a2-%a5 <== NOT EXECUTED 47416: 4e5e unlk %fp <== NOT EXECUTED 47418: 4e75 rts <== NOT EXECUTED /* * Update CPU time */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timestamp_Add_to( &stats->total_cpu_time, &executed ); 4741a: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4741c: 486a 006c pea %a2@(108) <== NOT EXECUTED 47420: 4bf9 0004 af84 lea 4af84 <_Timespec_Add_to>,%a5 <== NOT EXECUTED if ( _Timestamp_Less_than( &executed, &stats->min_cpu_time ) ) 47426: 49f9 0004 b090 lea 4b090 <_Timespec_Less_than>,%a4 <== NOT EXECUTED /* * Update CPU time */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timestamp_Add_to( &stats->total_cpu_time, &executed ); 4742c: 4e95 jsr %a5@ <== NOT EXECUTED if ( _Timestamp_Less_than( &executed, &stats->min_cpu_time ) ) 4742e: 486a 005c pea %a2@(92) <== NOT EXECUTED 47432: 2f03 movel %d3,%sp@- <== NOT EXECUTED 47434: 4e94 jsr %a4@ <== NOT EXECUTED 47436: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 4743a: 4a00 tstb %d0 <== NOT EXECUTED 4743c: 6710 beqs 4744e <_Rate_monotonic_Update_statistics+0x78><== NOT EXECUTED stats->min_cpu_time = executed; 4743e: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED 47442: 222e fffc movel %fp@(-4),%d1 <== NOT EXECUTED 47446: 2540 005c movel %d0,%a2@(92) <== NOT EXECUTED 4744a: 2541 0060 movel %d1,%a2@(96) <== NOT EXECUTED if ( _Timestamp_Greater_than( &executed, &stats->max_cpu_time ) ) 4744e: 486a 0064 pea %a2@(100) <== NOT EXECUTED 47452: 47f9 0004 b05c lea 4b05c <_Timespec_Greater_than>,%a3 <== NOT EXECUTED 47458: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4745a: 4e93 jsr %a3@ <== NOT EXECUTED 4745c: 508f addql #8,%sp <== NOT EXECUTED 4745e: 4a00 tstb %d0 <== NOT EXECUTED 47460: 6710 beqs 47472 <_Rate_monotonic_Update_statistics+0x9c><== NOT EXECUTED stats->max_cpu_time = executed; 47462: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED 47466: 222e fffc movel %fp@(-4),%d1 <== NOT EXECUTED 4746a: 2540 0064 movel %d0,%a2@(100) <== NOT EXECUTED 4746e: 2541 0068 movel %d1,%a2@(104) <== NOT EXECUTED /* * Update Wall time */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timestamp_Add_to( &stats->total_wall_time, &since_last_period ); 47472: 2f02 movel %d2,%sp@- <== NOT EXECUTED 47474: 486a 0084 pea %a2@(132) <== NOT EXECUTED 47478: 4e95 jsr %a5@ <== NOT EXECUTED if ( _Timestamp_Less_than( &since_last_period, &stats->min_wall_time ) ) 4747a: 486a 0074 pea %a2@(116) <== NOT EXECUTED 4747e: 2f02 movel %d2,%sp@- <== NOT EXECUTED 47480: 4e94 jsr %a4@ <== NOT EXECUTED 47482: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 47486: 4a00 tstb %d0 <== NOT EXECUTED 47488: 6654 bnes 474de <_Rate_monotonic_Update_statistics+0x108><== NOT EXECUTED stats->min_wall_time = since_last_period; if ( _Timestamp_Greater_than( &since_last_period, &stats->max_wall_time ) ) 4748a: 486a 007c pea %a2@(124) <== NOT EXECUTED 4748e: 2f02 movel %d2,%sp@- <== NOT EXECUTED 47490: 4e93 jsr %a3@ <== NOT EXECUTED 47492: 508f addql #8,%sp <== NOT EXECUTED 47494: 4a00 tstb %d0 <== NOT EXECUTED 47496: 6700 ff78 beqw 47410 <_Rate_monotonic_Update_statistics+0x3a><== NOT EXECUTED stats->max_wall_time = since_last_period; 4749a: 202e fff0 movel %fp@(-16),%d0 <== NOT EXECUTED 4749e: 222e fff4 movel %fp@(-12),%d1 <== NOT EXECUTED 474a2: 2540 007c movel %d0,%a2@(124) <== NOT EXECUTED 474a6: 2541 0080 movel %d1,%a2@(128) <== NOT EXECUTED stats->min_wall_time = since_last_period; if ( since_last_period > stats->max_wall_time ) stats->max_wall_time = since_last_period; #endif } 474aa: 4cee 3c0c ffd8 moveml %fp@(-40),%d2-%d3/%a2-%a5 <== NOT EXECUTED 474b0: 4e5e unlk %fp <== NOT EXECUTED 474b2: 4e75 rts <== NOT EXECUTED */ stats = &the_period->Statistics; stats->count++; if ( the_period->state == RATE_MONOTONIC_EXPIRED ) stats->missed_count++; 474b4: 52aa 0058 addql #1,%a2@(88) <== NOT EXECUTED /* * Grab status for time statistics. */ valid_status = _Rate_monotonic_Get_status( the_period, &since_last_period, &executed ); 474b8: 260e movel %fp,%d3 <== NOT EXECUTED 474ba: 5183 subql #8,%d3 <== NOT EXECUTED 474bc: 240e movel %fp,%d2 <== NOT EXECUTED 474be: 0682 ffff fff0 addil #-16,%d2 <== NOT EXECUTED stats->missed_count++; /* * Grab status for time statistics. */ valid_status = 474c4: 2f03 movel %d3,%sp@- <== NOT EXECUTED 474c6: 2f02 movel %d2,%sp@- <== NOT EXECUTED 474c8: 2f0a movel %a2,%sp@- <== NOT EXECUTED 474ca: 4eb9 0004 72a0 jsr 472a0 <_Rate_monotonic_Get_status> <== NOT EXECUTED _Rate_monotonic_Get_status( the_period, &since_last_period, &executed ); if (!valid_status) 474d0: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 474d4: 4a00 tstb %d0 <== NOT EXECUTED 474d6: 6700 ff38 beqw 47410 <_Rate_monotonic_Update_statistics+0x3a><== NOT EXECUTED 474da: 6000 ff3e braw 4741a <_Rate_monotonic_Update_statistics+0x44><== NOT EXECUTED */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timestamp_Add_to( &stats->total_wall_time, &since_last_period ); if ( _Timestamp_Less_than( &since_last_period, &stats->min_wall_time ) ) stats->min_wall_time = since_last_period; 474de: 202e fff0 movel %fp@(-16),%d0 <== NOT EXECUTED 474e2: 222e fff4 movel %fp@(-12),%d1 <== NOT EXECUTED 474e6: 2540 0074 movel %d0,%a2@(116) <== NOT EXECUTED 474ea: 2541 0078 movel %d1,%a2@(120) <== NOT EXECUTED 474ee: 609a bras 4748a <_Rate_monotonic_Update_statistics+0xb4><== NOT EXECUTED =============================================================================== 0005f2cc <_Region_Process_queue>: */ void _Region_Process_queue( Region_Control *the_region ) { 5f2cc: 4e56 ffe4 linkw %fp,#-28 <== NOT EXECUTED 5f2d0: 2039 0007 d1c4 movel 7d1c4 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED 5f2d6: 5280 addql #1,%d0 <== NOT EXECUTED 5f2d8: 48d7 3c1c moveml %d2-%d4/%a2-%a5,%sp@ <== NOT EXECUTED 5f2dc: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED 5f2e0: 23c0 0007 d1c4 movel %d0,7d1c4 <_Thread_Dispatch_disable_level><== NOT EXECUTED * NOTE: Be sure to disable dispatching before unlocking the mutex * since we do not want to open a window where a context * switch could occur. */ _Thread_Disable_dispatch(); _RTEMS_Unlock_allocator(); 5f2e6: 2f39 0007 d284 movel 7d284 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 5f2ec: 240b movel %a3,%d2 <== NOT EXECUTED 5f2ee: 0682 0000 0010 addil #16,%d2 <== NOT EXECUTED RTEMS_INLINE_ROUTINE void *_Region_Allocate_segment ( Region_Control *the_region, uintptr_t size ) { return _Heap_Allocate( &the_region->Memory, size ); 5f2f4: 260b movel %a3,%d3 <== NOT EXECUTED 5f2f6: 49f9 0005 fb80 lea 5fb80 <_Thread_queue_First>,%a4 <== NOT EXECUTED 5f2fc: 0683 0000 0068 addil #104,%d3 <== NOT EXECUTED 5f302: 4bf9 0005 a6a8 lea 5a6a8 <_Heap_Allocate_aligned_with_boundary>,%a5<== NOT EXECUTED 5f308: 4eb9 0005 9ba0 jsr 59ba0 <_API_Mutex_Unlock> <== NOT EXECUTED 5f30e: 588f addql #4,%sp <== NOT EXECUTED if ( the_segment == NULL ) break; *(void **)the_thread->Wait.return_argument = the_segment; the_region->number_of_used_blocks += 1; _Thread_queue_Extract( &the_region->Wait_queue, the_thread ); 5f310: 283c 0005 fa58 movel #391768,%d4 <== NOT EXECUTED /* * NOTE: The following loop is O(n) where n is the number of * threads whose memory request is satisfied. */ for ( ; ; ) { the_thread = _Thread_queue_First( &the_region->Wait_queue ); 5f316: 2f02 movel %d2,%sp@- <== NOT EXECUTED 5f318: 4e94 jsr %a4@ <== NOT EXECUTED if ( the_thread == NULL ) 5f31a: 588f addql #4,%sp <== NOT EXECUTED /* * NOTE: The following loop is O(n) where n is the number of * threads whose memory request is satisfied. */ for ( ; ; ) { the_thread = _Thread_queue_First( &the_region->Wait_queue ); 5f31c: 2440 moveal %d0,%a2 <== NOT EXECUTED if ( the_thread == NULL ) 5f31e: 4a80 tstl %d0 <== NOT EXECUTED 5f320: 6738 beqs 5f35a <_Region_Process_queue+0x8e> <== NOT EXECUTED 5f322: 42a7 clrl %sp@- <== NOT EXECUTED 5f324: 42a7 clrl %sp@- <== NOT EXECUTED 5f326: 2f2a 0024 movel %a2@(36),%sp@- <== NOT EXECUTED 5f32a: 2f03 movel %d3,%sp@- <== NOT EXECUTED 5f32c: 4e95 jsr %a5@ <== NOT EXECUTED the_segment = (void **) _Region_Allocate_segment( the_region, the_thread->Wait.count ); if ( the_segment == NULL ) 5f32e: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 5f332: 4a80 tstl %d0 <== NOT EXECUTED 5f334: 6724 beqs 5f35a <_Region_Process_queue+0x8e> <== NOT EXECUTED break; *(void **)the_thread->Wait.return_argument = the_segment; 5f336: 206a 0028 moveal %a2@(40),%a0 <== NOT EXECUTED 5f33a: 2080 movel %d0,%a0@ <== NOT EXECUTED the_region->number_of_used_blocks += 1; 5f33c: 52ab 0064 addql #1,%a3@(100) <== NOT EXECUTED _Thread_queue_Extract( &the_region->Wait_queue, the_thread ); 5f340: 2044 moveal %d4,%a0 <== NOT EXECUTED 5f342: 2f0a movel %a2,%sp@- <== NOT EXECUTED 5f344: 2f02 movel %d2,%sp@- <== NOT EXECUTED 5f346: 4e90 jsr %a0@ <== NOT EXECUTED the_thread->Wait.return_code = RTEMS_SUCCESSFUL; } 5f348: 508f addql #8,%sp <== NOT EXECUTED break; *(void **)the_thread->Wait.return_argument = the_segment; the_region->number_of_used_blocks += 1; _Thread_queue_Extract( &the_region->Wait_queue, the_thread ); the_thread->Wait.return_code = RTEMS_SUCCESSFUL; 5f34a: 42aa 0034 clrl %a2@(52) <== NOT EXECUTED /* * NOTE: The following loop is O(n) where n is the number of * threads whose memory request is satisfied. */ for ( ; ; ) { the_thread = _Thread_queue_First( &the_region->Wait_queue ); 5f34e: 2f02 movel %d2,%sp@- <== NOT EXECUTED 5f350: 4e94 jsr %a4@ <== NOT EXECUTED if ( the_thread == NULL ) 5f352: 588f addql #4,%sp <== NOT EXECUTED /* * NOTE: The following loop is O(n) where n is the number of * threads whose memory request is satisfied. */ for ( ; ; ) { the_thread = _Thread_queue_First( &the_region->Wait_queue ); 5f354: 2440 moveal %d0,%a2 <== NOT EXECUTED if ( the_thread == NULL ) 5f356: 4a80 tstl %d0 <== NOT EXECUTED 5f358: 66c8 bnes 5f322 <_Region_Process_queue+0x56> <== NOT EXECUTED the_region->number_of_used_blocks += 1; _Thread_queue_Extract( &the_region->Wait_queue, the_thread ); the_thread->Wait.return_code = RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); } 5f35a: 4cee 3c1c ffe4 moveml %fp@(-28),%d2-%d4/%a2-%a5 <== NOT EXECUTED 5f360: 4e5e unlk %fp <== NOT EXECUTED *(void **)the_thread->Wait.return_argument = the_segment; the_region->number_of_used_blocks += 1; _Thread_queue_Extract( &the_region->Wait_queue, the_thread ); the_thread->Wait.return_code = RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 5f362: 4ef9 0005 c34a jmp 5c34a <_Thread_Enable_dispatch> <== NOT EXECUTED =============================================================================== 0004be2c <_Scheduler_priority_Block>: void _Scheduler_priority_Block( Scheduler_Control *the_scheduler, Thread_Control *the_thread ) { 4be2c: 4e56 0000 linkw %fp,#0 4be30: 206e 000c moveal %fp@(12),%a0 4be34: 2f0a movel %a2,%sp@- RTEMS_INLINE_ROUTINE void _Scheduler_priority_Ready_queue_extract( Thread_Control *the_thread ) { Chain_Control *ready = the_thread->scheduler.priority->ready_chain; 4be36: 2268 008a moveal %a0@(138),%a1 4be3a: 2251 moveal %a1@,%a1 if ( _Chain_Has_only_one_node( ready ) ) { 4be3c: 2029 0008 movel %a1@(8),%d0 4be40: b091 cmpl %a1@,%d0 4be42: 677e beqs 4bec2 <_Scheduler_priority_Block+0x96> ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; 4be44: 2450 moveal %a0@,%a2 previous = the_node->previous; 4be46: 2268 0004 moveal %a0@(4),%a1 next->previous = previous; 4be4a: 2549 0004 movel %a1,%a2@(4) previous->next = next; 4be4e: 228a movel %a2,%a1@ { _Scheduler_priority_Ready_queue_extract(the_thread); /* TODO: flash critical section */ if ( _Thread_Is_heir( the_thread ) ) 4be50: b1f9 0005 e688 cmpal 5e688 <_Per_CPU_Information+0x10>,%a0 4be56: 671c beqs 4be74 <_Scheduler_priority_Block+0x48> _Scheduler_priority_Schedule_body(the_scheduler); if ( _Thread_Is_executing( the_thread ) ) 4be58: b1f9 0005 e684 cmpal 5e684 <_Per_CPU_Information+0xc>,%a0 4be5e: 6706 beqs 4be66 <_Scheduler_priority_Block+0x3a> _Scheduler_priority_Block_body(the_scheduler, the_thread); } 4be60: 245f moveal %sp@+,%a2 4be62: 4e5e unlk %fp 4be64: 4e75 rts 4be66: 245f moveal %sp@+,%a2 4be68: 4e5e unlk %fp _Thread_Dispatch_necessary = true; 4be6a: 7001 moveq #1,%d0 4be6c: 13c0 0005 e690 moveb %d0,5e690 <_Per_CPU_Information+0x18> 4be72: 4e75 rts RTEMS_INLINE_ROUTINE Priority_Control _Priority_bit_map_Get_highest( void ) { Priority_bit_map_Control minor; Priority_bit_map_Control major; _Bitfield_Find_first_bit( _Priority_Major_bit_map, major ); 4be74: 3039 0005 e694 movew 5e694 <_Priority_Major_bit_map>,%d0 4be7a: 4840 swap %d0 4be7c: 04c0 ff1 %d0 _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor ); 4be7e: 43f9 0005 e698 lea 5e698 <_Priority_Bit_map>,%a1 4be84: 0280 0000 ffff andil #65535,%d0 4be8a: 3231 0a00 movew %a1@(00000000,%d0:l:2),%d1 4be8e: 4841 swap %d1 4be90: 04c1 ff1 %d1 4be92: 226e 0008 moveal %fp@(8),%a1 return (_Priority_Bits_index( major ) << 4) + 4be96: 0281 0000 ffff andil #65535,%d1 4be9c: e988 lsll #4,%d0 4be9e: 2251 moveal %a1@,%a1 4bea0: d081 addl %d1,%d0 Chain_Control *the_ready_queue ) { Priority_Control index = _Priority_bit_map_Get_highest(); if ( !_Chain_Is_empty( &the_ready_queue[ index ] ) ) 4bea2: 2200 movel %d0,%d1 4bea4: e988 lsll #4,%d0 4bea6: e589 lsll #2,%d1 4bea8: 9081 subl %d1,%d0 4beaa: d3c0 addal %d0,%a1 4beac: 2019 movel %a1@+,%d0 4beae: b3c0 cmpal %d0,%a1 4beb0: 6754 beqs 4bf06 <_Scheduler_priority_Block+0xda> <== NEVER TAKEN RTEMS_INLINE_ROUTINE void _Scheduler_priority_Schedule_body( Scheduler_Control *the_scheduler ) { _Thread_Heir = _Scheduler_priority_Ready_queue_first( 4beb2: 23c0 0005 e688 movel %d0,5e688 <_Per_CPU_Information+0x10> /* TODO: flash critical section */ if ( _Thread_Is_heir( the_thread ) ) _Scheduler_priority_Schedule_body(the_scheduler); if ( _Thread_Is_executing( the_thread ) ) 4beb8: b1f9 0005 e684 cmpal 5e684 <_Per_CPU_Information+0xc>,%a0 4bebe: 66a0 bnes 4be60 <_Scheduler_priority_Block+0x34> <== NEVER TAKEN 4bec0: 60a4 bras 4be66 <_Scheduler_priority_Block+0x3a> RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); 4bec2: 2009 movel %a1,%d0 4bec4: 5880 addql #4,%d0 head->next = tail; head->previous = NULL; 4bec6: 42a9 0004 clrl %a1@(4) RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); 4beca: 2280 movel %d0,%a1@ head->next = tail; head->previous = NULL; tail->previous = head; 4becc: 2349 0008 movel %a1,%a1@(8) { Chain_Control *ready = the_thread->scheduler.priority->ready_chain; if ( _Chain_Has_only_one_node( ready ) ) { _Chain_Initialize_empty( ready ); _Priority_bit_map_Remove( &the_thread->scheduler.priority->Priority_map ); 4bed0: 2268 008a moveal %a0@(138),%a1 RTEMS_INLINE_ROUTINE void _Priority_bit_map_Remove ( Priority_bit_map_Information *the_priority_map ) { *the_priority_map->minor &= the_priority_map->block_minor; 4bed4: 2469 0004 moveal %a1@(4),%a2 4bed8: 3029 000e movew %a1@(14),%d0 4bedc: 3212 movew %a2@,%d1 4bede: c081 andl %d1,%d0 4bee0: 3480 movew %d0,%a2@ if ( *the_priority_map->minor == 0 ) 4bee2: 6600 ff6c bnew 4be50 <_Scheduler_priority_Block+0x24> _Priority_Major_bit_map &= the_priority_map->block_major; 4bee6: 3239 0005 e694 movew 5e694 <_Priority_Major_bit_map>,%d1 4beec: 3029 000c movew %a1@(12),%d0 4bef0: c081 andl %d1,%d0 4bef2: 33c0 0005 e694 movew %d0,5e694 <_Priority_Major_bit_map> { _Scheduler_priority_Ready_queue_extract(the_thread); /* TODO: flash critical section */ if ( _Thread_Is_heir( the_thread ) ) 4bef8: b1f9 0005 e688 cmpal 5e688 <_Per_CPU_Information+0x10>,%a0 4befe: 6600 ff58 bnew 4be58 <_Scheduler_priority_Block+0x2c> 4bf02: 6000 ff70 braw 4be74 <_Scheduler_priority_Block+0x48> Priority_Control index = _Priority_bit_map_Get_highest(); if ( !_Chain_Is_empty( &the_ready_queue[ index ] ) ) return (Thread_Control *) _Chain_First( &the_ready_queue[ index ] ); return NULL; 4bf06: 4280 clrl %d0 <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Scheduler_priority_Schedule_body( Scheduler_Control *the_scheduler ) { _Thread_Heir = _Scheduler_priority_Ready_queue_first( 4bf08: 23c0 0005 e688 movel %d0,5e688 <_Per_CPU_Information+0x10> <== NOT EXECUTED 4bf0e: 60a8 bras 4beb8 <_Scheduler_priority_Block+0x8c> <== NOT EXECUTED =============================================================================== 0004815c <_Scheduler_priority_Schedule>: */ void _Scheduler_priority_Schedule( Scheduler_Control *the_scheduler ) { 4815c: 4e56 0000 linkw %fp,#0 RTEMS_INLINE_ROUTINE Priority_Control _Priority_bit_map_Get_highest( void ) { Priority_bit_map_Control minor; Priority_bit_map_Control major; _Bitfield_Find_first_bit( _Priority_Major_bit_map, major ); 48160: 3039 0005 e694 movew 5e694 <_Priority_Major_bit_map>,%d0 48166: 4840 swap %d0 48168: 04c0 ff1 %d0 _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor ); 4816a: 41f9 0005 e698 lea 5e698 <_Priority_Bit_map>,%a0 48170: 0280 0000 ffff andil #65535,%d0 48176: 3230 0a00 movew %a0@(00000000,%d0:l:2),%d1 4817a: 4841 swap %d1 4817c: 04c1 ff1 %d1 _Scheduler_priority_Schedule_body( the_scheduler ); } 4817e: 206e 0008 moveal %fp@(8),%a0 return (_Priority_Bits_index( major ) << 4) + 48182: 0281 0000 ffff andil #65535,%d1 48188: e988 lsll #4,%d0 4818a: 2050 moveal %a0@,%a0 4818c: d081 addl %d1,%d0 Chain_Control *the_ready_queue ) { Priority_Control index = _Priority_bit_map_Get_highest(); if ( !_Chain_Is_empty( &the_ready_queue[ index ] ) ) 4818e: 2200 movel %d0,%d1 48190: e988 lsll #4,%d0 48192: e589 lsll #2,%d1 48194: 9081 subl %d1,%d0 48196: d1c0 addal %d0,%a0 48198: 2018 movel %a0@+,%d0 4819a: b1c0 cmpal %d0,%a0 4819c: 670a beqs 481a8 <_Scheduler_priority_Schedule+0x4c><== NEVER TAKEN RTEMS_INLINE_ROUTINE void _Scheduler_priority_Schedule_body( Scheduler_Control *the_scheduler ) { _Thread_Heir = _Scheduler_priority_Ready_queue_first( 4819e: 23c0 0005 e688 movel %d0,5e688 <_Per_CPU_Information+0x10> 481a4: 4e5e unlk %fp 481a6: 4e75 rts Priority_Control index = _Priority_bit_map_Get_highest(); if ( !_Chain_Is_empty( &the_ready_queue[ index ] ) ) return (Thread_Control *) _Chain_First( &the_ready_queue[ index ] ); return NULL; 481a8: 4280 clrl %d0 <== NOT EXECUTED 481aa: 4e5e unlk %fp <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Scheduler_priority_Schedule_body( Scheduler_Control *the_scheduler ) { _Thread_Heir = _Scheduler_priority_Ready_queue_first( 481ac: 23c0 0005 e688 movel %d0,5e688 <_Per_CPU_Information+0x10> <== NOT EXECUTED =============================================================================== 000481d0 <_Scheduler_priority_Thread_scheduler_free>: void _Scheduler_priority_Thread_scheduler_free ( Scheduler_Control *the_scheduler __attribute__((unused)), Thread_Control *the_thread ) { 481d0: 4e56 0000 linkw %fp,#0 481d4: 206e 000c moveal %fp@(12),%a0 _Workspace_Free( the_thread->scheduler.priority ); 481d8: 2d68 008a 0008 movel %a0@(138),%fp@(8) } 481de: 4e5e unlk %fp void _Scheduler_priority_Thread_scheduler_free ( Scheduler_Control *the_scheduler __attribute__((unused)), Thread_Control *the_thread ) { _Workspace_Free( the_thread->scheduler.priority ); 481e0: 4ef9 0004 9a9e jmp 49a9e <_Workspace_Free> ... =============================================================================== 00048254 <_Scheduler_priority_Unblock>: void _Scheduler_priority_Unblock ( Scheduler_Control *the_scheduler, Thread_Control *the_thread ) { 48254: 4e56 0000 linkw %fp,#0 48258: 206e 000c moveal %fp@(12),%a0 4825c: 2f0b movel %a3,%sp@- 4825e: 2f0a movel %a2,%sp@- RTEMS_INLINE_ROUTINE void _Scheduler_priority_Ready_queue_enqueue( Thread_Control *the_thread ) { _Priority_bit_map_Add( &the_thread->scheduler.priority->Priority_map ); 48260: 2268 008a moveal %a0@(138),%a1 RTEMS_INLINE_ROUTINE void _Priority_bit_map_Add ( Priority_bit_map_Information *the_priority_map ) { *the_priority_map->minor |= the_priority_map->ready_minor; 48264: 2669 0004 moveal %a1@(4),%a3 48268: 3029 000a movew %a1@(10),%d0 4826c: 3213 movew %a3@,%d1 _Chain_Append_unprotected( the_thread->scheduler.priority->ready_chain, 4826e: 2451 moveal %a1@,%a2 48270: 8081 orl %d1,%d0 48272: 3680 movew %d0,%a3@ _Priority_Major_bit_map |= the_priority_map->ready_major; 48274: 3029 0008 movew %a1@(8),%d0 48278: 3239 0005 e694 movew 5e694 <_Priority_Major_bit_map>,%d1 Chain_Control *the_chain, Chain_Node *the_node ) { Chain_Node *tail = _Chain_Tail( the_chain ); Chain_Node *old_last = tail->previous; 4827e: 226a 0008 moveal %a2@(8),%a1 48282: 8280 orl %d0,%d1 the_node->next = tail; tail->previous = the_node; 48284: 2548 0008 movel %a0,%a2@(8) RTEMS_INLINE_ROUTINE void _Chain_Append_unprotected( Chain_Control *the_chain, Chain_Node *the_node ) { Chain_Node *tail = _Chain_Tail( the_chain ); 48288: 588a addql #4,%a2 4828a: 33c1 0005 e694 movew %d1,5e694 <_Priority_Major_bit_map> * a context switch. * Pseudo-ISR case: * Even if the thread isn't preemptible, if the new heir is * a pseudo-ISR system task, we need to do a context switch. */ if ( the_thread->current_priority < _Thread_Heir->current_priority ) { 48290: 2028 0014 movel %a0@(20),%d0 48294: 208a movel %a2,%a0@ Chain_Node *old_last = tail->previous; the_node->next = tail; tail->previous = the_node; old_last->next = the_node; the_node->previous = old_last; 48296: 2149 0004 movel %a1,%a0@(4) Chain_Node *tail = _Chain_Tail( the_chain ); Chain_Node *old_last = tail->previous; the_node->next = tail; tail->previous = the_node; old_last->next = the_node; 4829a: 2288 movel %a0,%a1@ 4829c: 2279 0005 e688 moveal 5e688 <_Per_CPU_Information+0x10>,%a1 482a2: b0a9 0014 cmpl %a1@(20),%d0 482a6: 641a bccs 482c2 <_Scheduler_priority_Unblock+0x6e> _Thread_Heir = the_thread; 482a8: 23c8 0005 e688 movel %a0,5e688 <_Per_CPU_Information+0x10> if ( _Thread_Executing->is_preemptible || 482ae: 2079 0005 e684 moveal 5e684 <_Per_CPU_Information+0xc>,%a0 482b4: 4a28 0074 tstb %a0@(116) 482b8: 6710 beqs 482ca <_Scheduler_priority_Unblock+0x76> the_thread->current_priority == 0 ) _Thread_Dispatch_necessary = true; 482ba: 7001 moveq #1,%d0 482bc: 13c0 0005 e690 moveb %d0,5e690 <_Per_CPU_Information+0x18> _Scheduler_priority_Unblock_body(the_scheduler, the_thread); } 482c2: 245f moveal %sp@+,%a2 482c4: 265f moveal %sp@+,%a3 482c6: 4e5e unlk %fp 482c8: 4e75 rts * Even if the thread isn't preemptible, if the new heir is * a pseudo-ISR system task, we need to do a context switch. */ if ( the_thread->current_priority < _Thread_Heir->current_priority ) { _Thread_Heir = the_thread; if ( _Thread_Executing->is_preemptible || 482ca: 4a80 tstl %d0 482cc: 66f4 bnes 482c2 <_Scheduler_priority_Unblock+0x6e><== ALWAYS TAKEN the_thread->current_priority == 0 ) _Thread_Dispatch_necessary = true; 482ce: 7001 moveq #1,%d0 <== NOT EXECUTED 482d0: 13c0 0005 e690 moveb %d0,5e690 <_Per_CPU_Information+0x18> <== NOT EXECUTED 482d6: 60ea bras 482c2 <_Scheduler_priority_Unblock+0x6e><== NOT EXECUTED =============================================================================== 000482d8 <_Scheduler_priority_Yield>: */ void _Scheduler_priority_Yield( Scheduler_Control *the_scheduler __attribute__((unused)) ) { 482d8: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED ISR_Level level; Thread_Control *executing; Chain_Control *ready; executing = _Thread_Executing; 482dc: 2079 0005 e684 moveal 5e684 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED */ void _Scheduler_priority_Yield( Scheduler_Control *the_scheduler __attribute__((unused)) ) { 482e2: 48d7 1c04 moveml %d2/%a2-%a4,%sp@ <== NOT EXECUTED Thread_Control *executing; Chain_Control *ready; executing = _Thread_Executing; ready = executing->scheduler.priority->ready_chain; _ISR_Disable( level ); 482e6: 243c 0000 0700 movel #1792,%d2 <== NOT EXECUTED 482ec: 2002 movel %d2,%d0 <== NOT EXECUTED ISR_Level level; Thread_Control *executing; Chain_Control *ready; executing = _Thread_Executing; ready = executing->scheduler.priority->ready_chain; 482ee: 2268 008a moveal %a0@(138),%a1 <== NOT EXECUTED 482f2: 2251 moveal %a1@,%a1 <== NOT EXECUTED _ISR_Disable( level ); 482f4: 40c1 movew %sr,%d1 <== NOT EXECUTED 482f6: 8081 orl %d1,%d0 <== NOT EXECUTED 482f8: 46c0 movew %d0,%sr <== NOT EXECUTED if ( !_Chain_Has_only_one_node( ready ) ) { 482fa: 2029 0008 movel %a1@(8),%d0 <== NOT EXECUTED 482fe: b091 cmpl %a1@,%d0 <== NOT EXECUTED 48300: 6750 beqs 48352 <_Scheduler_priority_Yield+0x7a> <== NOT EXECUTED ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; 48302: 2850 moveal %a0@,%a4 <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Chain_Append_unprotected( Chain_Control *the_chain, Chain_Node *the_node ) { Chain_Node *tail = _Chain_Tail( the_chain ); 48304: 2009 movel %a1,%d0 <== NOT EXECUTED 48306: 5880 addql #4,%d0 <== NOT EXECUTED { Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; 48308: 2668 0004 moveal %a0@(4),%a3 <== NOT EXECUTED next->previous = previous; 4830c: 294b 0004 movel %a3,%a4@(4) <== NOT EXECUTED Chain_Control *the_chain, Chain_Node *the_node ) { Chain_Node *tail = _Chain_Tail( the_chain ); Chain_Node *old_last = tail->previous; 48310: 2469 0008 moveal %a1@(8),%a2 <== NOT EXECUTED Chain_Node *previous; next = the_node->next; previous = the_node->previous; next->previous = previous; previous->next = next; 48314: 268c movel %a4,%a3@ <== NOT EXECUTED { Chain_Node *tail = _Chain_Tail( the_chain ); Chain_Node *old_last = tail->previous; the_node->next = tail; tail->previous = the_node; 48316: 2348 0008 movel %a0,%a1@(8) <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Chain_Append_unprotected( Chain_Control *the_chain, Chain_Node *the_node ) { Chain_Node *tail = _Chain_Tail( the_chain ); 4831a: 2080 movel %d0,%a0@ <== NOT EXECUTED Chain_Node *old_last = tail->previous; the_node->next = tail; tail->previous = the_node; old_last->next = the_node; the_node->previous = old_last; 4831c: 214a 0004 movel %a2,%a0@(4) <== NOT EXECUTED Chain_Node *tail = _Chain_Tail( the_chain ); Chain_Node *old_last = tail->previous; the_node->next = tail; tail->previous = the_node; old_last->next = the_node; 48320: 2488 movel %a0,%a2@ <== NOT EXECUTED _Chain_Extract_unprotected( &executing->Object.Node ); _Chain_Append_unprotected( ready, &executing->Object.Node ); _ISR_Flash( level ); 48322: 46c1 movew %d1,%sr <== NOT EXECUTED 48324: 8481 orl %d1,%d2 <== NOT EXECUTED 48326: 46c2 movew %d2,%sr <== NOT EXECUTED if ( _Thread_Is_heir( executing ) ) 48328: b1f9 0005 e688 cmpal 5e688 <_Per_CPU_Information+0x10>,%a0 <== NOT EXECUTED 4832e: 6712 beqs 48342 <_Scheduler_priority_Yield+0x6a> <== NOT EXECUTED _Thread_Heir = (Thread_Control *) _Chain_First( ready ); _Thread_Dispatch_necessary = true; } else if ( !_Thread_Is_heir( executing ) ) _Thread_Dispatch_necessary = true; 48330: 7001 moveq #1,%d0 <== NOT EXECUTED 48332: 13c0 0005 e690 moveb %d0,5e690 <_Per_CPU_Information+0x18> <== NOT EXECUTED _ISR_Enable( level ); 48338: 46c1 movew %d1,%sr <== NOT EXECUTED } 4833a: 4cd7 1c04 moveml %sp@,%d2/%a2-%a4 <== NOT EXECUTED 4833e: 4e5e unlk %fp <== NOT EXECUTED 48340: 4e75 rts <== NOT EXECUTED _Chain_Append_unprotected( ready, &executing->Object.Node ); _ISR_Flash( level ); if ( _Thread_Is_heir( executing ) ) _Thread_Heir = (Thread_Control *) _Chain_First( ready ); 48342: 23d1 0005 e688 movel %a1@,5e688 <_Per_CPU_Information+0x10><== NOT EXECUTED _Thread_Dispatch_necessary = true; } else if ( !_Thread_Is_heir( executing ) ) _Thread_Dispatch_necessary = true; 48348: 7001 moveq #1,%d0 <== NOT EXECUTED 4834a: 13c0 0005 e690 moveb %d0,5e690 <_Per_CPU_Information+0x18> <== NOT EXECUTED 48350: 60e6 bras 48338 <_Scheduler_priority_Yield+0x60> <== NOT EXECUTED if ( _Thread_Is_heir( executing ) ) _Thread_Heir = (Thread_Control *) _Chain_First( ready ); _Thread_Dispatch_necessary = true; } else if ( !_Thread_Is_heir( executing ) ) 48352: b1f9 0005 e688 cmpal 5e688 <_Per_CPU_Information+0x10>,%a0 <== NOT EXECUTED 48358: 67de beqs 48338 <_Scheduler_priority_Yield+0x60> <== NOT EXECUTED _Thread_Dispatch_necessary = true; 4835a: 7001 moveq #1,%d0 <== NOT EXECUTED 4835c: 13c0 0005 e690 moveb %d0,5e690 <_Per_CPU_Information+0x18> <== NOT EXECUTED 48362: 60d4 bras 48338 <_Scheduler_priority_Yield+0x60> <== NOT EXECUTED =============================================================================== 0004663e <_Semaphore_Translate_core_semaphore_return_code>: */ #if defined(RTEMS_DEBUG) if ( status > CORE_SEMAPHORE_STATUS_LAST ) return RTEMS_INTERNAL_ERROR; #endif return _Semaphore_Translate_core_semaphore_return_code_[status]; 4663e: 41f9 0005 bf0e lea 5bf0e <_Semaphore_Translate_core_semaphore_return_code_>,%a0<== NOT EXECUTED }; rtems_status_code _Semaphore_Translate_core_semaphore_return_code ( uint32_t status ) { 46644: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( status > CORE_SEMAPHORE_STATUS_LAST ) return RTEMS_INTERNAL_ERROR; #endif return _Semaphore_Translate_core_semaphore_return_code_[status]; } 46648: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED 4664c: 4e5e unlk %fp <== NOT EXECUTED 4664e: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED =============================================================================== 00047740 <_TOD_Get_uptime_as_timespec>: */ void _TOD_Get_uptime_as_timespec( struct timespec *uptime ) { 47740: 4e56 fff8 linkw %fp,#-8 <== NOT EXECUTED Timestamp_Control uptime_ts; /* assume time checked for NULL by caller */ _TOD_Get_uptime( &uptime_ts ); 47744: 486e fff8 pea %fp@(-8) <== NOT EXECUTED 47748: 4eb9 0004 bf58 jsr 4bf58 <_TOD_Get_uptime> <== NOT EXECUTED _Timestamp_To_timespec( &uptime_ts, uptime ); 4774e: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 47752: 588f addql #4,%sp <== NOT EXECUTED 47754: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED 47758: 222e fffc movel %fp@(-4),%d1 <== NOT EXECUTED } 4775c: 4e5e unlk %fp <== NOT EXECUTED { Timestamp_Control uptime_ts; /* assume time checked for NULL by caller */ _TOD_Get_uptime( &uptime_ts ); _Timestamp_To_timespec( &uptime_ts, uptime ); 4775e: 2080 movel %d0,%a0@ <== NOT EXECUTED 47760: 2141 0004 movel %d1,%a0@(4) <== NOT EXECUTED } ... =============================================================================== 00048c9c <_TOD_Set>: */ void _TOD_Set( const struct timespec *time ) { 48c9c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 48ca0: 2039 0006 8a68 movel 68a68 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED 48ca6: 5280 addql #1,%d0 <== NOT EXECUTED 48ca8: 2f0a movel %a2,%sp@- <== NOT EXECUTED 48caa: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 48cae: 23c0 0006 8a68 movel %d0,68a68 <_Thread_Dispatch_disable_level><== NOT EXECUTED long seconds; _Thread_Disable_dispatch(); _TOD_Deactivate(); seconds = _TOD_Seconds_since_epoch(); 48cb4: 2039 0006 8b12 movel 68b12 <_TOD_Now>,%d0 <== NOT EXECUTED if ( time->tv_sec < seconds ) 48cba: 2212 movel %a2@,%d1 <== NOT EXECUTED 48cbc: b280 cmpl %d0,%d1 <== NOT EXECUTED 48cbe: 6d38 blts 48cf8 <_TOD_Set+0x5c> <== NOT EXECUTED Watchdog_Adjust_directions direction, Watchdog_Interval units ) { _Watchdog_Adjust( &_Watchdog_Seconds_chain, direction, units ); 48cc0: 9280 subl %d0,%d1 <== NOT EXECUTED 48cc2: 2f01 movel %d1,%sp@- <== NOT EXECUTED 48cc4: 42a7 clrl %sp@- <== NOT EXECUTED 48cc6: 4879 0006 8b3c pea 68b3c <_Watchdog_Seconds_chain> <== NOT EXECUTED 48ccc: 4eb9 0004 b3a0 jsr 4b3a0 <_Watchdog_Adjust> <== NOT EXECUTED _Watchdog_Adjust_seconds( WATCHDOG_BACKWARD, seconds - time->tv_sec ); else _Watchdog_Adjust_seconds( WATCHDOG_FORWARD, time->tv_sec - seconds ); /* POSIX format TOD (timespec) */ _Timestamp_Set( &_TOD_Now, time->tv_sec, time->tv_nsec ); 48cd2: 23d2 0006 8b12 movel %a2@,68b12 <_TOD_Now> <== NOT EXECUTED 48cd8: 588a addql #4,%a2 <== NOT EXECUTED 48cda: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 48cde: 23d2 0006 8b16 movel %a2@,68b16 <_TOD_Now+0x4> <== NOT EXECUTED _TOD_Is_set = true; _TOD_Activate(); _Thread_Enable_dispatch(); } 48ce4: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 48ce8: 4e5e unlk %fp <== NOT EXECUTED else _Watchdog_Adjust_seconds( WATCHDOG_FORWARD, time->tv_sec - seconds ); /* POSIX format TOD (timespec) */ _Timestamp_Set( &_TOD_Now, time->tv_sec, time->tv_nsec ); _TOD_Is_set = true; 48cea: 7001 moveq #1,%d0 <== NOT EXECUTED 48cec: 13c0 0006 8a78 moveb %d0,68a78 <_TOD_Is_set> <== NOT EXECUTED _TOD_Activate(); _Thread_Enable_dispatch(); 48cf2: 4ef9 0004 a33e jmp 4a33e <_Thread_Enable_dispatch> <== NOT EXECUTED 48cf8: 9081 subl %d1,%d0 <== NOT EXECUTED 48cfa: 2f00 movel %d0,%sp@- <== NOT EXECUTED 48cfc: 4878 0001 pea 1 <== NOT EXECUTED 48d00: 4879 0006 8b3c pea 68b3c <_Watchdog_Seconds_chain> <== NOT EXECUTED 48d06: 4eb9 0004 b3a0 jsr 4b3a0 <_Watchdog_Adjust> <== NOT EXECUTED _Watchdog_Adjust_seconds( WATCHDOG_BACKWARD, seconds - time->tv_sec ); else _Watchdog_Adjust_seconds( WATCHDOG_FORWARD, time->tv_sec - seconds ); /* POSIX format TOD (timespec) */ _Timestamp_Set( &_TOD_Now, time->tv_sec, time->tv_nsec ); 48d0c: 23d2 0006 8b12 movel %a2@,68b12 <_TOD_Now> <== NOT EXECUTED 48d12: 588a addql #4,%a2 <== NOT EXECUTED 48d14: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 48d18: 23d2 0006 8b16 movel %a2@,68b16 <_TOD_Now+0x4> <== NOT EXECUTED _TOD_Is_set = true; _TOD_Activate(); _Thread_Enable_dispatch(); } 48d1e: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 48d22: 4e5e unlk %fp <== NOT EXECUTED else _Watchdog_Adjust_seconds( WATCHDOG_FORWARD, time->tv_sec - seconds ); /* POSIX format TOD (timespec) */ _Timestamp_Set( &_TOD_Now, time->tv_sec, time->tv_nsec ); _TOD_Is_set = true; 48d24: 7001 moveq #1,%d0 <== NOT EXECUTED 48d26: 13c0 0006 8a78 moveb %d0,68a78 <_TOD_Is_set> <== NOT EXECUTED _TOD_Activate(); _Thread_Enable_dispatch(); 48d2c: 4ef9 0004 a33e jmp 4a33e <_Thread_Enable_dispatch> <== NOT EXECUTED ... =============================================================================== 00047384 <_TOD_Tickle_ticks>: * * Output parameters: NONE */ void _TOD_Tickle_ticks( void ) { 47384: 4e56 ffec linkw %fp,#-20 Timestamp_Control tick; uint32_t seconds; /* Convert the tick quantum to a timestamp */ _Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() ); 47388: 2239 0005 cca0 movel 5cca0 ,%d1 * * Output parameters: NONE */ void _TOD_Tickle_ticks( void ) { 4738e: 48d7 040c moveml %d2-%d3/%a2,%sp@ /* Update the counter of ticks since boot */ _Watchdog_Ticks_since_boot += 1; /* Update the timespec format uptime */ _Timestamp_Add_to( &_TOD_Uptime, &tick ); 47392: 240e movel %fp,%d2 47394: 5182 subql #8,%d2 { Timestamp_Control tick; uint32_t seconds; /* Convert the tick quantum to a timestamp */ _Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() ); 47396: 263c 0000 03e8 movel #1000,%d3 4739c: 4c03 1800 mulsl %d3,%d1 /* Update the counter of ticks since boot */ _Watchdog_Ticks_since_boot += 1; /* Update the timespec format uptime */ _Timestamp_Add_to( &_TOD_Uptime, &tick ); 473a0: 45f9 0004 945c lea 4945c <_Timespec_Add_to>,%a2 /* Convert the tick quantum to a timestamp */ _Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() ); /* Update the counter of ticks since boot */ _Watchdog_Ticks_since_boot += 1; 473a6: 2039 0005 e5f0 movel 5e5f0 <_Watchdog_Ticks_since_boot>,%d0 473ac: 5280 addql #1,%d0 /* Update the timespec format uptime */ _Timestamp_Add_to( &_TOD_Uptime, &tick ); 473ae: 2f02 movel %d2,%sp@- 473b0: 4879 0005 e542 pea 5e542 <_TOD_Uptime> { Timestamp_Control tick; uint32_t seconds; /* Convert the tick quantum to a timestamp */ _Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() ); 473b6: 2d41 fffc movel %d1,%fp@(-4) 473ba: 42ae fff8 clrl %fp@(-8) /* Update the counter of ticks since boot */ _Watchdog_Ticks_since_boot += 1; 473be: 23c0 0005 e5f0 movel %d0,5e5f0 <_Watchdog_Ticks_since_boot> /* Update the timespec format uptime */ _Timestamp_Add_to( &_TOD_Uptime, &tick ); 473c4: 4e92 jsr %a2@ /* we do not care how much the uptime changed */ /* Update the timespec format TOD */ seconds = _Timestamp_Add_to_at_tick( &_TOD_Now, &tick ); 473c6: 2f02 movel %d2,%sp@- <== NOT EXECUTED 473c8: 4879 0005 e572 pea 5e572 <_TOD_Now> <== NOT EXECUTED 473ce: 4e92 jsr %a2@ <== NOT EXECUTED while ( seconds ) { 473d0: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED /* Update the timespec format uptime */ _Timestamp_Add_to( &_TOD_Uptime, &tick ); /* we do not care how much the uptime changed */ /* Update the timespec format TOD */ seconds = _Timestamp_Add_to_at_tick( &_TOD_Now, &tick ); 473d4: 2400 movel %d0,%d2 <== NOT EXECUTED while ( seconds ) { 473d6: 6716 beqs 473ee <_TOD_Tickle_ticks+0x6a> <== NOT EXECUTED 473d8: 45f9 0004 99a0 lea 499a0 <_Watchdog_Tickle>,%a2 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Watchdog_Tickle_seconds( void ) { _Watchdog_Tickle( &_Watchdog_Seconds_chain ); 473de: 4879 0005 e59c pea 5e59c <_Watchdog_Seconds_chain> <== NOT EXECUTED _Watchdog_Tickle_seconds(); seconds--; 473e4: 5382 subql #1,%d2 <== NOT EXECUTED 473e6: 4e92 jsr %a2@ <== NOT EXECUTED _Timestamp_Add_to( &_TOD_Uptime, &tick ); /* we do not care how much the uptime changed */ /* Update the timespec format TOD */ seconds = _Timestamp_Add_to_at_tick( &_TOD_Now, &tick ); while ( seconds ) { 473e8: 588f addql #4,%sp <== NOT EXECUTED 473ea: 4a82 tstl %d2 <== NOT EXECUTED 473ec: 66f0 bnes 473de <_TOD_Tickle_ticks+0x5a> <== NOT EXECUTED _Watchdog_Tickle_seconds(); seconds--; } } 473ee: 4cee 040c ffec moveml %fp@(-20),%d2-%d3/%a2 <== NOT EXECUTED 473f4: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00047270 <_TOD_To_seconds>: */ uint32_t _TOD_To_seconds( const rtems_time_of_day *the_tod ) { 47270: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 47274: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 47278: 48d7 041c moveml %d2-%d4/%a2,%sp@ <== NOT EXECUTED uint32_t time; uint32_t year_mod_4; time = the_tod->day - 1; year_mod_4 = the_tod->year & 3; 4727c: 2610 movel %a0@,%d3 <== NOT EXECUTED 4727e: 7403 moveq #3,%d2 <== NOT EXECUTED ) { uint32_t time; uint32_t year_mod_4; time = the_tod->day - 1; 47280: 2028 0008 movel %a0@(8),%d0 <== NOT EXECUTED 47284: 5380 subql #1,%d0 <== NOT EXECUTED year_mod_4 = the_tod->year & 3; 47286: c483 andl %d3,%d2 <== NOT EXECUTED if ( year_mod_4 == 0 ) 47288: 6774 beqs 472fe <_TOD_To_seconds+0x8e> <== NOT EXECUTED time += _TOD_Days_to_date[ 1 ][ the_tod->month ]; else time += _TOD_Days_to_date[ 0 ][ the_tod->month ]; 4728a: 2228 0004 movel %a0@(4),%d1 <== NOT EXECUTED 4728e: 43f9 0005 e5ba lea 5e5ba <_TOD_Days_to_date>,%a1 <== NOT EXECUTED time += ( (the_tod->year - TOD_BASE_YEAR) / 4 ) * 47294: 283c 0000 05b5 movel #1461,%d4 <== NOT EXECUTED ( (TOD_DAYS_PER_YEAR * 4) + 1); time += _TOD_Days_since_last_leap_year[ year_mod_4 ]; 4729a: 45f9 0005 e5ee lea 5e5ee <_TOD_Days_since_last_leap_year>,%a2<== NOT EXECUTED year_mod_4 = the_tod->year & 3; if ( year_mod_4 == 0 ) time += _TOD_Days_to_date[ 1 ][ the_tod->month ]; else time += _TOD_Days_to_date[ 0 ][ the_tod->month ]; 472a0: 3231 1a00 movew %a1@(00000000,%d1:l:2),%d1 <== NOT EXECUTED 472a4: 0281 0000 ffff andil #65535,%d1 <== NOT EXECUTED 472aa: 2241 moveal %d1,%a1 <== NOT EXECUTED 472ac: d3c0 addal %d0,%a1 <== NOT EXECUTED time += ( (the_tod->year - TOD_BASE_YEAR) / 4 ) * 472ae: 2003 movel %d3,%d0 <== NOT EXECUTED 472b0: 0680 ffff f83c addil #-1988,%d0 <== NOT EXECUTED 472b6: e488 lsrl #2,%d0 <== NOT EXECUTED 472b8: 4c04 0800 mulsl %d4,%d0 <== NOT EXECUTED time += _TOD_Days_since_last_leap_year[ year_mod_4 ]; time *= TOD_SECONDS_PER_DAY; time += ((the_tod->hour * TOD_MINUTES_PER_HOUR) + the_tod->minute) 472bc: 2228 000c movel %a0@(12),%d1 <== NOT EXECUTED 472c0: 2601 movel %d1,%d3 <== NOT EXECUTED 472c2: ed89 lsll #6,%d1 <== NOT EXECUTED 472c4: e58b lsll #2,%d3 <== NOT EXECUTED 472c6: 9283 subl %d3,%d1 <== NOT EXECUTED 472c8: d2a8 0010 addl %a0@(16),%d1 <== NOT EXECUTED time += _TOD_Days_to_date[ 0 ][ the_tod->month ]; time += ( (the_tod->year - TOD_BASE_YEAR) / 4 ) * ( (TOD_DAYS_PER_YEAR * 4) + 1); time += _TOD_Days_since_last_leap_year[ year_mod_4 ]; 472cc: 4283 clrl %d3 <== NOT EXECUTED 472ce: 3632 2a00 movew %a2@(00000000,%d2:l:2),%d3 <== NOT EXECUTED time *= TOD_SECONDS_PER_DAY; time += ((the_tod->hour * TOD_MINUTES_PER_HOUR) + the_tod->minute) * TOD_SECONDS_PER_MINUTE; 472d2: 2401 movel %d1,%d2 <== NOT EXECUTED if ( year_mod_4 == 0 ) time += _TOD_Days_to_date[ 1 ][ the_tod->month ]; else time += _TOD_Days_to_date[ 0 ][ the_tod->month ]; time += ( (the_tod->year - TOD_BASE_YEAR) / 4 ) * 472d4: d083 addl %d3,%d0 <== NOT EXECUTED ( (TOD_DAYS_PER_YEAR * 4) + 1); time += _TOD_Days_since_last_leap_year[ year_mod_4 ]; time *= TOD_SECONDS_PER_DAY; 472d6: 263c 0001 5180 movel #86400,%d3 <== NOT EXECUTED time += _TOD_Days_to_date[ 0 ][ the_tod->month ]; time += ( (the_tod->year - TOD_BASE_YEAR) / 4 ) * ( (TOD_DAYS_PER_YEAR * 4) + 1); time += _TOD_Days_since_last_leap_year[ year_mod_4 ]; 472dc: d089 addl %a1,%d0 <== NOT EXECUTED time *= TOD_SECONDS_PER_DAY; 472de: 4c03 0800 mulsl %d3,%d0 <== NOT EXECUTED time += ((the_tod->hour * TOD_MINUTES_PER_HOUR) + the_tod->minute) * TOD_SECONDS_PER_MINUTE; 472e2: e58a lsll #2,%d2 <== NOT EXECUTED 472e4: ed89 lsll #6,%d1 <== NOT EXECUTED time += _TOD_Days_since_last_leap_year[ year_mod_4 ]; time *= TOD_SECONDS_PER_DAY; time += ((the_tod->hour * TOD_MINUTES_PER_HOUR) + the_tod->minute) 472e6: 2068 0014 moveal %a0@(20),%a0 <== NOT EXECUTED * TOD_SECONDS_PER_MINUTE; 472ea: 9282 subl %d2,%d1 <== NOT EXECUTED time += _TOD_Days_since_last_leap_year[ year_mod_4 ]; time *= TOD_SECONDS_PER_DAY; time += ((the_tod->hour * TOD_MINUTES_PER_HOUR) + the_tod->minute) 472ec: d1fc 21da e500 addal #567993600,%a0 <== NOT EXECUTED * TOD_SECONDS_PER_MINUTE; time += the_tod->second; 472f2: d288 addl %a0,%d1 <== NOT EXECUTED time += TOD_SECONDS_1970_THROUGH_1988; return( time ); } 472f4: d081 addl %d1,%d0 <== NOT EXECUTED 472f6: 4cd7 041c moveml %sp@,%d2-%d4/%a2 <== NOT EXECUTED 472fa: 4e5e unlk %fp <== NOT EXECUTED 472fc: 4e75 rts <== NOT EXECUTED time = the_tod->day - 1; year_mod_4 = the_tod->year & 3; if ( year_mod_4 == 0 ) time += _TOD_Days_to_date[ 1 ][ the_tod->month ]; 472fe: 2228 0004 movel %a0@(4),%d1 <== NOT EXECUTED else time += _TOD_Days_to_date[ 0 ][ the_tod->month ]; 47302: 43f9 0005 e5ba lea 5e5ba <_TOD_Days_to_date>,%a1 <== NOT EXECUTED time = the_tod->day - 1; year_mod_4 = the_tod->year & 3; if ( year_mod_4 == 0 ) time += _TOD_Days_to_date[ 1 ][ the_tod->month ]; 47308: 0681 0000 000d addil #13,%d1 <== NOT EXECUTED else time += _TOD_Days_to_date[ 0 ][ the_tod->month ]; time += ( (the_tod->year - TOD_BASE_YEAR) / 4 ) * 4730e: 283c 0000 05b5 movel #1461,%d4 <== NOT EXECUTED ( (TOD_DAYS_PER_YEAR * 4) + 1); time += _TOD_Days_since_last_leap_year[ year_mod_4 ]; 47314: 45f9 0005 e5ee lea 5e5ee <_TOD_Days_since_last_leap_year>,%a2<== NOT EXECUTED year_mod_4 = the_tod->year & 3; if ( year_mod_4 == 0 ) time += _TOD_Days_to_date[ 1 ][ the_tod->month ]; else time += _TOD_Days_to_date[ 0 ][ the_tod->month ]; 4731a: 3231 1a00 movew %a1@(00000000,%d1:l:2),%d1 <== NOT EXECUTED 4731e: 0281 0000 ffff andil #65535,%d1 <== NOT EXECUTED 47324: 2241 moveal %d1,%a1 <== NOT EXECUTED 47326: d3c0 addal %d0,%a1 <== NOT EXECUTED time += ( (the_tod->year - TOD_BASE_YEAR) / 4 ) * 47328: 2003 movel %d3,%d0 <== NOT EXECUTED 4732a: 0680 ffff f83c addil #-1988,%d0 <== NOT EXECUTED 47330: e488 lsrl #2,%d0 <== NOT EXECUTED 47332: 4c04 0800 mulsl %d4,%d0 <== NOT EXECUTED time += _TOD_Days_since_last_leap_year[ year_mod_4 ]; time *= TOD_SECONDS_PER_DAY; time += ((the_tod->hour * TOD_MINUTES_PER_HOUR) + the_tod->minute) 47336: 2228 000c movel %a0@(12),%d1 <== NOT EXECUTED 4733a: 2601 movel %d1,%d3 <== NOT EXECUTED 4733c: ed89 lsll #6,%d1 <== NOT EXECUTED 4733e: e58b lsll #2,%d3 <== NOT EXECUTED 47340: 9283 subl %d3,%d1 <== NOT EXECUTED 47342: d2a8 0010 addl %a0@(16),%d1 <== NOT EXECUTED time += _TOD_Days_to_date[ 0 ][ the_tod->month ]; time += ( (the_tod->year - TOD_BASE_YEAR) / 4 ) * ( (TOD_DAYS_PER_YEAR * 4) + 1); time += _TOD_Days_since_last_leap_year[ year_mod_4 ]; 47346: 4283 clrl %d3 <== NOT EXECUTED 47348: 3632 2a00 movew %a2@(00000000,%d2:l:2),%d3 <== NOT EXECUTED time *= TOD_SECONDS_PER_DAY; time += ((the_tod->hour * TOD_MINUTES_PER_HOUR) + the_tod->minute) * TOD_SECONDS_PER_MINUTE; 4734c: 2401 movel %d1,%d2 <== NOT EXECUTED if ( year_mod_4 == 0 ) time += _TOD_Days_to_date[ 1 ][ the_tod->month ]; else time += _TOD_Days_to_date[ 0 ][ the_tod->month ]; time += ( (the_tod->year - TOD_BASE_YEAR) / 4 ) * 4734e: d083 addl %d3,%d0 <== NOT EXECUTED ( (TOD_DAYS_PER_YEAR * 4) + 1); time += _TOD_Days_since_last_leap_year[ year_mod_4 ]; time *= TOD_SECONDS_PER_DAY; 47350: 263c 0001 5180 movel #86400,%d3 <== NOT EXECUTED time += _TOD_Days_to_date[ 0 ][ the_tod->month ]; time += ( (the_tod->year - TOD_BASE_YEAR) / 4 ) * ( (TOD_DAYS_PER_YEAR * 4) + 1); time += _TOD_Days_since_last_leap_year[ year_mod_4 ]; 47356: d089 addl %a1,%d0 <== NOT EXECUTED time *= TOD_SECONDS_PER_DAY; 47358: 4c03 0800 mulsl %d3,%d0 <== NOT EXECUTED time += ((the_tod->hour * TOD_MINUTES_PER_HOUR) + the_tod->minute) * TOD_SECONDS_PER_MINUTE; 4735c: e58a lsll #2,%d2 <== NOT EXECUTED 4735e: ed89 lsll #6,%d1 <== NOT EXECUTED time += _TOD_Days_since_last_leap_year[ year_mod_4 ]; time *= TOD_SECONDS_PER_DAY; time += ((the_tod->hour * TOD_MINUTES_PER_HOUR) + the_tod->minute) 47360: 2068 0014 moveal %a0@(20),%a0 <== NOT EXECUTED * TOD_SECONDS_PER_MINUTE; 47364: 9282 subl %d2,%d1 <== NOT EXECUTED time += _TOD_Days_since_last_leap_year[ year_mod_4 ]; time *= TOD_SECONDS_PER_DAY; time += ((the_tod->hour * TOD_MINUTES_PER_HOUR) + the_tod->minute) 47366: d1fc 21da e500 addal #567993600,%a0 <== NOT EXECUTED * TOD_SECONDS_PER_MINUTE; time += the_tod->second; 4736c: d288 addl %a0,%d1 <== NOT EXECUTED time += TOD_SECONDS_1970_THROUGH_1988; return( time ); } 4736e: d081 addl %d1,%d0 <== NOT EXECUTED 47370: 4cd7 041c moveml %sp@,%d2-%d4/%a2 <== NOT EXECUTED 47374: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00047378 <_TOD_Validate>: */ bool _TOD_Validate( const rtems_time_of_day *the_tod ) { 47378: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4737c: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED uint32_t days_in_month; uint32_t ticks_per_second; ticks_per_second = TOD_MICROSECONDS_PER_SECOND / rtems_configuration_get_microseconds_per_tick(); 47380: 2039 0005 f480 movel 5f480 ,%d0 <== NOT EXECUTED */ bool _TOD_Validate( const rtems_time_of_day *the_tod ) { 47386: 2f02 movel %d2,%sp@- <== NOT EXECUTED uint32_t days_in_month; uint32_t ticks_per_second; ticks_per_second = TOD_MICROSECONDS_PER_SECOND / rtems_configuration_get_microseconds_per_tick(); if ((!the_tod) || 47388: 4a88 tstl %a0 <== NOT EXECUTED 4738a: 6762 beqs 473ee <_TOD_Validate+0x76> <== NOT EXECUTED ) { uint32_t days_in_month; uint32_t ticks_per_second; ticks_per_second = TOD_MICROSECONDS_PER_SECOND / 4738c: 243c 000f 4240 movel #1000000,%d2 <== NOT EXECUTED 47392: 4c40 2002 remul %d0,%d2,%d2 <== NOT EXECUTED rtems_configuration_get_microseconds_per_tick(); if ((!the_tod) || 47396: b4a8 0018 cmpl %a0@(24),%d2 <== NOT EXECUTED 4739a: 6352 blss 473ee <_TOD_Validate+0x76> <== NOT EXECUTED (the_tod->ticks >= ticks_per_second) || 4739c: 703b moveq #59,%d0 <== NOT EXECUTED 4739e: b0a8 0014 cmpl %a0@(20),%d0 <== NOT EXECUTED 473a2: 654a bcss 473ee <_TOD_Validate+0x76> <== NOT EXECUTED (the_tod->second >= TOD_SECONDS_PER_MINUTE) || 473a4: b0a8 0010 cmpl %a0@(16),%d0 <== NOT EXECUTED 473a8: 6544 bcss 473ee <_TOD_Validate+0x76> <== NOT EXECUTED (the_tod->minute >= TOD_MINUTES_PER_HOUR) || 473aa: 7217 moveq #23,%d1 <== NOT EXECUTED 473ac: b2a8 000c cmpl %a0@(12),%d1 <== NOT EXECUTED 473b0: 653c bcss 473ee <_TOD_Validate+0x76> <== NOT EXECUTED (the_tod->hour >= TOD_HOURS_PER_DAY) || (the_tod->month == 0) || 473b2: 2028 0004 movel %a0@(4),%d0 <== NOT EXECUTED rtems_configuration_get_microseconds_per_tick(); if ((!the_tod) || (the_tod->ticks >= ticks_per_second) || (the_tod->second >= TOD_SECONDS_PER_MINUTE) || (the_tod->minute >= TOD_MINUTES_PER_HOUR) || (the_tod->hour >= TOD_HOURS_PER_DAY) || 473b6: 6736 beqs 473ee <_TOD_Validate+0x76> <== NOT EXECUTED (the_tod->month == 0) || 473b8: 740c moveq #12,%d2 <== NOT EXECUTED 473ba: b480 cmpl %d0,%d2 <== NOT EXECUTED 473bc: 6530 bcss 473ee <_TOD_Validate+0x76> <== NOT EXECUTED (the_tod->month > TOD_MONTHS_PER_YEAR) || (the_tod->year < TOD_BASE_YEAR) || 473be: 2210 movel %a0@,%d1 <== NOT EXECUTED (the_tod->ticks >= ticks_per_second) || (the_tod->second >= TOD_SECONDS_PER_MINUTE) || (the_tod->minute >= TOD_MINUTES_PER_HOUR) || (the_tod->hour >= TOD_HOURS_PER_DAY) || (the_tod->month == 0) || (the_tod->month > TOD_MONTHS_PER_YEAR) || 473c0: 0c81 0000 07c3 cmpil #1987,%d1 <== NOT EXECUTED 473c6: 6326 blss 473ee <_TOD_Validate+0x76> <== NOT EXECUTED (the_tod->year < TOD_BASE_YEAR) || (the_tod->day == 0) ) 473c8: 2068 0008 moveal %a0@(8),%a0 <== NOT EXECUTED (the_tod->second >= TOD_SECONDS_PER_MINUTE) || (the_tod->minute >= TOD_MINUTES_PER_HOUR) || (the_tod->hour >= TOD_HOURS_PER_DAY) || (the_tod->month == 0) || (the_tod->month > TOD_MONTHS_PER_YEAR) || (the_tod->year < TOD_BASE_YEAR) || 473cc: 4a88 tstl %a0 <== NOT EXECUTED 473ce: 671e beqs 473ee <_TOD_Validate+0x76> <== NOT EXECUTED (the_tod->day == 0) ) return false; if ( (the_tod->year % 4) == 0 ) 473d0: 143c 0003 moveb #3,%d2 <== NOT EXECUTED 473d4: c282 andl %d2,%d1 <== NOT EXECUTED 473d6: 661e bnes 473f6 <_TOD_Validate+0x7e> <== NOT EXECUTED days_in_month = _TOD_Days_per_month[ 1 ][ the_tod->month ]; 473d8: 43f9 0005 e5f6 lea 5e5f6 <_TOD_Days_per_month>,%a1 <== NOT EXECUTED 473de: 2031 0c34 movel %a1@(00000034,%d0:l:4),%d0 <== NOT EXECUTED * false - if the the_tod is invalid * * NOTE: This routine only works for leap-years through 2099. */ bool _TOD_Validate( 473e2: b1c0 cmpal %d0,%a0 <== NOT EXECUTED 473e4: 53c0 sls %d0 <== NOT EXECUTED 473e6: 4480 negl %d0 <== NOT EXECUTED if ( the_tod->day > days_in_month ) return false; return true; } 473e8: 241f movel %sp@+,%d2 <== NOT EXECUTED 473ea: 4e5e unlk %fp <== NOT EXECUTED 473ec: 4e75 rts <== NOT EXECUTED 473ee: 241f movel %sp@+,%d2 <== NOT EXECUTED 473f0: 4e5e unlk %fp <== NOT EXECUTED (the_tod->hour >= TOD_HOURS_PER_DAY) || (the_tod->month == 0) || (the_tod->month > TOD_MONTHS_PER_YEAR) || (the_tod->year < TOD_BASE_YEAR) || (the_tod->day == 0) ) return false; 473f2: 4200 clrb %d0 <== NOT EXECUTED if ( the_tod->day > days_in_month ) return false; return true; } 473f4: 4e75 rts <== NOT EXECUTED return false; if ( (the_tod->year % 4) == 0 ) days_in_month = _TOD_Days_per_month[ 1 ][ the_tod->month ]; else days_in_month = _TOD_Days_per_month[ 0 ][ the_tod->month ]; 473f6: 43f9 0005 e5f6 lea 5e5f6 <_TOD_Days_per_month>,%a1 <== NOT EXECUTED 473fc: 2031 0c00 movel %a1@(00000000,%d0:l:4),%d0 <== NOT EXECUTED * false - if the the_tod is invalid * * NOTE: This routine only works for leap-years through 2099. */ bool _TOD_Validate( 47400: b1c0 cmpal %d0,%a0 <== NOT EXECUTED 47402: 53c0 sls %d0 <== NOT EXECUTED 47404: 4480 negl %d0 <== NOT EXECUTED 47406: 60e0 bras 473e8 <_TOD_Validate+0x70> <== NOT EXECUTED =============================================================================== 000483cc <_Thread_Change_priority>: void _Thread_Change_priority( Thread_Control *the_thread, Priority_Control new_priority, bool prepend_it ) { 483cc: 4e56 ffec linkw %fp,#-20 483d0: 48d7 0c1c moveml %d2-%d4/%a2-%a3,%sp@ 483d4: 246e 0008 moveal %fp@(8),%a2 */ /* * Save original state */ original_state = the_thread->current_state; 483d8: 262a 0010 movel %a2@(16),%d3 void _Thread_Change_priority( Thread_Control *the_thread, Priority_Control new_priority, bool prepend_it ) { 483dc: 242e 000c movel %fp@(12),%d2 /* * Set a transient state for the thread so it is pulled off the Ready chains. * This will prevent it from being scheduled no matter what happens in an * ISR. */ _Thread_Set_transient( the_thread ); 483e0: 2f0a movel %a2,%sp@- void _Thread_Change_priority( Thread_Control *the_thread, Priority_Control new_priority, bool prepend_it ) { 483e2: 182e 0013 moveb %fp@(19),%d4 /* * Set a transient state for the thread so it is pulled off the Ready chains. * This will prevent it from being scheduled no matter what happens in an * ISR. */ _Thread_Set_transient( the_thread ); 483e6: 4eb9 0004 91f4 jsr 491f4 <_Thread_Set_transient> /* * Do not bother recomputing all the priority related information if * we are not REALLY changing priority. */ if ( the_thread->current_priority != new_priority ) 483ec: 588f addql #4,%sp 483ee: b4aa 0014 cmpl %a2@(20),%d2 483f2: 670c beqs 48400 <_Thread_Change_priority+0x34> _Thread_Set_priority( the_thread, new_priority ); 483f4: 2f02 movel %d2,%sp@- 483f6: 2f0a movel %a2,%sp@- 483f8: 4eb9 0004 917c jsr 4917c <_Thread_Set_priority> 483fe: 508f addql #8,%sp _ISR_Disable( level ); 48400: 203c 0000 0700 movel #1792,%d0 48406: 40c2 movew %sr,%d2 48408: 8082 orl %d2,%d0 4840a: 46c0 movew %d0,%sr /* * If the thread has more than STATES_TRANSIENT set, then it is blocked, * If it is blocked on a thread queue, then we need to requeue it. */ state = the_thread->current_state; 4840c: 202a 0010 movel %a2@(16),%d0 if ( state != STATES_TRANSIENT ) { 48410: 7204 moveq #4,%d1 48412: b280 cmpl %d0,%d1 48414: 6738 beqs 4844e <_Thread_Change_priority+0x82> /* Only clear the transient state if it wasn't set already */ if ( ! _States_Is_transient( original_state ) ) 48416: 44c3 movew %d3,%ccr 48418: 6708 beqs 48422 <_Thread_Change_priority+0x56> <== NEVER TAKEN RTEMS_INLINE_ROUTINE States_Control _States_Clear ( States_Control states_to_clear, States_Control current_state ) { return (current_state & ~states_to_clear); 4841a: 72fb moveq #-5,%d1 4841c: c280 andl %d0,%d1 4841e: 2541 0010 movel %d1,%a2@(16) the_thread->current_state = _States_Clear( STATES_TRANSIENT, state ); _ISR_Enable( level ); 48422: 46c2 movew %d2,%sr */ RTEMS_INLINE_ROUTINE bool _States_Is_waiting_on_thread_queue ( States_Control the_states ) { return (the_states & STATES_WAITING_ON_THREAD_QUEUE); 48424: 0280 0003 bee0 andil #245472,%d0 if ( _States_Is_waiting_on_thread_queue( state ) ) { 4842a: 660a bnes 48436 <_Thread_Change_priority+0x6a> if ( !_Thread_Is_executing_also_the_heir() && _Thread_Executing->is_preemptible ) _Thread_Dispatch_necessary = true; _ISR_Enable( level ); } 4842c: 4cee 0c1c ffec moveml %fp@(-20),%d2-%d4/%a2-%a3 48432: 4e5e unlk %fp 48434: 4e75 rts /* Only clear the transient state if it wasn't set already */ if ( ! _States_Is_transient( original_state ) ) the_thread->current_state = _States_Clear( STATES_TRANSIENT, state ); _ISR_Enable( level ); if ( _States_Is_waiting_on_thread_queue( state ) ) { _Thread_queue_Requeue( the_thread->Wait.queue, the_thread ); 48436: 2d4a 000c movel %a2,%fp@(12) 4843a: 2d6a 0044 0008 movel %a2@(68),%fp@(8) if ( !_Thread_Is_executing_also_the_heir() && _Thread_Executing->is_preemptible ) _Thread_Dispatch_necessary = true; _ISR_Enable( level ); } 48440: 4cee 0c1c ffec moveml %fp@(-20),%d2-%d4/%a2-%a3 48446: 4e5e unlk %fp /* Only clear the transient state if it wasn't set already */ if ( ! _States_Is_transient( original_state ) ) the_thread->current_state = _States_Clear( STATES_TRANSIENT, state ); _ISR_Enable( level ); if ( _States_Is_waiting_on_thread_queue( state ) ) { _Thread_queue_Requeue( the_thread->Wait.queue, the_thread ); 48448: 4ef9 0004 90d0 jmp 490d0 <_Thread_queue_Requeue> } return; } /* Only clear the transient state if it wasn't set already */ if ( ! _States_Is_transient( original_state ) ) { 4844e: 44c3 movew %d3,%ccr 48450: 673c beqs 4848e <_Thread_Change_priority+0xc2> <== NEVER TAKEN * Ready Queue with interrupts off. * * FIXME: hard-coded for priority scheduling. Might be ok since this * function is specific to priority scheduling? */ the_thread->current_state = _States_Clear( STATES_TRANSIENT, state ); 48452: 42aa 0010 clrl %a2@(16) if ( prepend_it ) 48456: 4a04 tstb %d4 48458: 6778 beqs 484d2 <_Thread_Change_priority+0x106> RTEMS_INLINE_ROUTINE void _Scheduler_priority_Ready_queue_enqueue_first( Thread_Control *the_thread ) { _Priority_bit_map_Add( &the_thread->scheduler.priority->Priority_map ); 4845a: 206a 008a moveal %a2@(138),%a0 RTEMS_INLINE_ROUTINE void _Priority_bit_map_Add ( Priority_bit_map_Information *the_priority_map ) { *the_priority_map->minor |= the_priority_map->ready_minor; 4845e: 2668 0004 moveal %a0@(4),%a3 48462: 3028 000a movew %a0@(10),%d0 48466: 3213 movew %a3@,%d1 _Chain_Prepend_unprotected( the_thread->scheduler.priority->ready_chain, 48468: 2250 moveal %a0@,%a1 4846a: 8081 orl %d1,%d0 4846c: 3680 movew %d0,%a3@ _Priority_Major_bit_map |= the_priority_map->ready_major; 4846e: 3028 0008 movew %a0@(8),%d0 48472: 3239 0005 e694 movew 5e694 <_Priority_Major_bit_map>,%d1 ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; 48478: 2051 moveal %a1@,%a0 4847a: 8081 orl %d1,%d0 Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; 4847c: 2549 0004 movel %a1,%a2@(4) 48480: 33c0 0005 e694 movew %d0,5e694 <_Priority_Major_bit_map> before_node = after_node->next; after_node->next = the_node; the_node->next = before_node; before_node->previous = the_node; 48486: 214a 0004 movel %a2,%a0@(4) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; after_node->next = the_node; 4848a: 228a movel %a2,%a1@ the_node->next = before_node; 4848c: 2488 movel %a0,%a2@ _Scheduler_priority_Ready_queue_enqueue_first( the_thread ); else _Scheduler_priority_Ready_queue_enqueue( the_thread ); } _ISR_Flash( level ); 4848e: 203c 0000 0700 movel #1792,%d0 48494: 46c2 movew %d2,%sr 48496: 8082 orl %d2,%d0 48498: 46c0 movew %d0,%sr */ RTEMS_INLINE_ROUTINE void _Scheduler_Schedule( Scheduler_Control *the_scheduler ) { the_scheduler->Operations.schedule( the_scheduler ); 4849a: 4879 0005 e54e pea 5e54e <_Scheduler> 484a0: 2079 0005 e552 moveal 5e552 <_Scheduler+0x4>,%a0 484a6: 4e90 jsr %a0@ * is also the heir thread, and false otherwise. */ RTEMS_INLINE_ROUTINE bool _Thread_Is_executing_also_the_heir( void ) { return ( _Thread_Executing == _Thread_Heir ); 484a8: 2079 0005 e684 moveal 5e684 <_Per_CPU_Information+0xc>,%a0 * We altered the set of thread priorities. So let's figure out * who is the heir and if we need to switch to them. */ _Scheduler_Schedule(&_Scheduler); if ( !_Thread_Is_executing_also_the_heir() && 484ae: 588f addql #4,%sp 484b0: b1f9 0005 e688 cmpal 5e688 <_Per_CPU_Information+0x10>,%a0 484b6: 670e beqs 484c6 <_Thread_Change_priority+0xfa> 484b8: 4a28 0074 tstb %a0@(116) 484bc: 6708 beqs 484c6 <_Thread_Change_priority+0xfa> <== NEVER TAKEN _Thread_Executing->is_preemptible ) _Thread_Dispatch_necessary = true; 484be: 7001 moveq #1,%d0 484c0: 13c0 0005 e690 moveb %d0,5e690 <_Per_CPU_Information+0x18> _ISR_Enable( level ); 484c6: 46c2 movew %d2,%sr } 484c8: 4cee 0c1c ffec moveml %fp@(-20),%d2-%d4/%a2-%a3 484ce: 4e5e unlk %fp 484d0: 4e75 rts RTEMS_INLINE_ROUTINE void _Scheduler_priority_Ready_queue_enqueue( Thread_Control *the_thread ) { _Priority_bit_map_Add( &the_thread->scheduler.priority->Priority_map ); 484d2: 206a 008a moveal %a2@(138),%a0 RTEMS_INLINE_ROUTINE void _Priority_bit_map_Add ( Priority_bit_map_Information *the_priority_map ) { *the_priority_map->minor |= the_priority_map->ready_minor; 484d6: 2668 0004 moveal %a0@(4),%a3 484da: 3028 000a movew %a0@(10),%d0 484de: 3213 movew %a3@,%d1 _Chain_Append_unprotected( the_thread->scheduler.priority->ready_chain, 484e0: 2250 moveal %a0@,%a1 484e2: 8081 orl %d1,%d0 484e4: 3680 movew %d0,%a3@ _Priority_Major_bit_map |= the_priority_map->ready_major; 484e6: 3028 0008 movew %a0@(8),%d0 484ea: 3239 0005 e694 movew 5e694 <_Priority_Major_bit_map>,%d1 Chain_Control *the_chain, Chain_Node *the_node ) { Chain_Node *tail = _Chain_Tail( the_chain ); Chain_Node *old_last = tail->previous; 484f0: 2069 0008 moveal %a1@(8),%a0 484f4: 8081 orl %d1,%d0 the_node->next = tail; tail->previous = the_node; 484f6: 234a 0008 movel %a2,%a1@(8) RTEMS_INLINE_ROUTINE void _Chain_Append_unprotected( Chain_Control *the_chain, Chain_Node *the_node ) { Chain_Node *tail = _Chain_Tail( the_chain ); 484fa: 5889 addql #4,%a1 484fc: 33c0 0005 e694 movew %d0,5e694 <_Priority_Major_bit_map> Chain_Node *old_last = tail->previous; the_node->next = tail; tail->previous = the_node; old_last->next = the_node; the_node->previous = old_last; 48502: 2548 0004 movel %a0,%a2@(4) RTEMS_INLINE_ROUTINE void _Chain_Append_unprotected( Chain_Control *the_chain, Chain_Node *the_node ) { Chain_Node *tail = _Chain_Tail( the_chain ); 48506: 2489 movel %a1,%a2@ Chain_Node *old_last = tail->previous; the_node->next = tail; tail->previous = the_node; old_last->next = the_node; 48508: 208a movel %a2,%a0@ 4850a: 6082 bras 4848e <_Thread_Change_priority+0xc2> =============================================================================== 0004850c <_Thread_Clear_state>: ) { ISR_Level level; States_Control current_state; _ISR_Disable( level ); 4850c: 203c 0000 0700 movel #1792,%d0 void _Thread_Clear_state( Thread_Control *the_thread, States_Control state ) { 48512: 4e56 0000 linkw %fp,#0 48516: 206e 0008 moveal %fp@(8),%a0 4851a: 2f03 movel %d3,%sp@- 4851c: 2f02 movel %d2,%sp@- 4851e: 242e 000c movel %fp@(12),%d2 ISR_Level level; States_Control current_state; _ISR_Disable( level ); 48522: 40c3 movew %sr,%d3 48524: 8083 orl %d3,%d0 48526: 46c0 movew %d0,%sr current_state = the_thread->current_state; 48528: 2228 0010 movel %a0@(16),%d1 if ( current_state & state ) { 4852c: 2002 movel %d2,%d0 4852e: c081 andl %d1,%d0 48530: 670c beqs 4853e <_Thread_Clear_state+0x32> <== NEVER TAKEN RTEMS_INLINE_ROUTINE States_Control _States_Clear ( States_Control states_to_clear, States_Control current_state ) { return (current_state & ~states_to_clear); 48532: 2002 movel %d2,%d0 48534: 4680 notl %d0 48536: c081 andl %d1,%d0 current_state = the_thread->current_state = _States_Clear( state, current_state ); 48538: 2140 0010 movel %d0,%a0@(16) if ( _States_Is_ready( current_state ) ) { 4853c: 670e beqs 4854c <_Thread_Clear_state+0x40> <== ALWAYS TAKEN _Scheduler_Unblock( &_Scheduler, the_thread); } } _ISR_Enable( level ); 4853e: 46c3 movew %d3,%sr <== NOT EXECUTED } 48540: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 48544: 262e fffc movel %fp@(-4),%d3 <== NOT EXECUTED 48548: 4e5e unlk %fp <== NOT EXECUTED 4854a: 4e75 rts <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Scheduler_Unblock( Scheduler_Control *the_scheduler, Thread_Control *the_thread ) { the_scheduler->Operations.unblock( the_scheduler, the_thread ); 4854c: 2f08 movel %a0,%sp@- 4854e: 4879 0005 e54e pea 5e54e <_Scheduler> 48554: 2079 0005 e55e moveal 5e55e <_Scheduler+0x10>,%a0 4855a: 4e90 jsr %a0@ 4855c: 508f addql #8,%sp if ( _States_Is_ready( current_state ) ) { _Scheduler_Unblock( &_Scheduler, the_thread); } } _ISR_Enable( level ); 4855e: 46c3 movew %d3,%sr } 48560: 242e fff8 movel %fp@(-8),%d2 48564: 262e fffc movel %fp@(-4),%d3 48568: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 0004856c <_Thread_Close>: RTEMS_INLINE_ROUTINE void _Objects_Invalidate_Id( Objects_Information *information, Objects_Control *the_object ) { _Objects_Set_local_object( 4856c: 4280 clrl %d0 void _Thread_Close( Objects_Information *information, Thread_Control *the_thread ) { 4856e: 4e56 0000 linkw %fp,#0 48572: 2f0b movel %a3,%sp@- 48574: 266e 0008 moveal %fp@(8),%a3 48578: 2f0a movel %a2,%sp@- 4857a: 246e 000c moveal %fp@(12),%a2 #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 4857e: 206b 0018 moveal %a3@(24),%a0 RTEMS_INLINE_ROUTINE void _Objects_Invalidate_Id( Objects_Information *information, Objects_Control *the_object ) { _Objects_Set_local_object( 48582: 302a 000a movew %a2@(10),%d0 #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 48586: 42b0 0c00 clrl %a0@(00000000,%d0:l:4) */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; 4858a: 2039 0005 e4c8 movel 5e4c8 <_Thread_Dispatch_disable_level>,%d0 48590: 5380 subql #1,%d0 * disappear and set a transient state on it. So we temporarily * unnest dispatching. */ _Thread_Unnest_dispatch(); _User_extensions_Thread_delete( the_thread ); 48592: 2f0a movel %a2,%sp@- 48594: 23c0 0005 e4c8 movel %d0,5e4c8 <_Thread_Dispatch_disable_level> 4859a: 4eb9 0004 96e0 jsr 496e0 <_User_extensions_Thread_delete> rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 485a0: 2039 0005 e4c8 movel 5e4c8 <_Thread_Dispatch_disable_level>,%d0 485a6: 5280 addql #1,%d0 485a8: 23c0 0005 e4c8 movel %d0,5e4c8 <_Thread_Dispatch_disable_level> /* * Now we are in a dispatching critical section again and we * can take the thread OUT of the published set. It is invalid * to use this thread's Id OR name after this call. */ _Objects_Close( information, &the_thread->Object ); 485ae: 2f0a movel %a2,%sp@- 485b0: 2f0b movel %a3,%sp@- 485b2: 4eb9 0004 7904 jsr 47904 <_Objects_Close> /* * By setting the dormant state, the thread will not be considered * for scheduling when we remove any blocking states. */ _Thread_Set_state( the_thread, STATES_DORMANT ); 485b8: 4878 0001 pea 1 485bc: 2f0a movel %a2,%sp@- 485be: 4eb9 0004 91a4 jsr 491a4 <_Thread_Set_state> if ( !_Thread_queue_Extract_with_proxy( the_thread ) ) { 485c4: 2f0a movel %a2,%sp@- 485c6: 4eb9 0004 8fcc jsr 48fcc <_Thread_queue_Extract_with_proxy> 485cc: 4fef 0018 lea %sp@(24),%sp 485d0: 4a00 tstb %d0 485d2: 6608 bnes 485dc <_Thread_Close+0x70> <== NEVER TAKEN if ( _Watchdog_Is_active( &the_thread->Timer ) ) 485d4: 7002 moveq #2,%d0 485d6: b0aa 0050 cmpl %a2@(80),%d0 485da: 6768 beqs 48644 <_Thread_Close+0xd8> <== NEVER TAKEN RTEMS_INLINE_ROUTINE void _Scheduler_Thread_scheduler_free( Scheduler_Control *the_scheduler, Thread_Control *the_thread ) { return the_scheduler->Operations.scheduler_free( the_scheduler, the_thread ); 485dc: 2f0a movel %a2,%sp@- 485de: 4879 0005 e54e pea 5e54e <_Scheduler> 485e4: 2079 0005 e566 moveal 5e566 <_Scheduler+0x18>,%a0 485ea: 4e90 jsr %a0@ /* * The thread might have been FP. So deal with that. */ #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) #if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE ) if ( _Thread_Is_allocated_fp( the_thread ) ) 485ec: 508f addql #8,%sp 485ee: b5f9 0005 e54a cmpal 5e54a <_Thread_Allocated_fp>,%a2 485f4: 6746 beqs 4863c <_Thread_Close+0xd0> <== NEVER TAKEN _Thread_Deallocate_fp(); #endif the_thread->fp_context = NULL; if ( the_thread->Start.fp_context ) 485f6: 202a 00b8 movel %a2@(184),%d0 #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) #if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE ) if ( _Thread_Is_allocated_fp( the_thread ) ) _Thread_Deallocate_fp(); #endif the_thread->fp_context = NULL; 485fa: 42aa 00f4 clrl %a2@(244) if ( the_thread->Start.fp_context ) 485fe: 4a80 tstl %d0 48600: 670a beqs 4860c <_Thread_Close+0xa0> <== ALWAYS TAKEN (void) _Workspace_Free( the_thread->Start.fp_context ); 48602: 2f00 movel %d0,%sp@- <== NOT EXECUTED 48604: 4eb9 0004 9a9e jsr 49a9e <_Workspace_Free> <== NOT EXECUTED 4860a: 588f addql #4,%sp <== NOT EXECUTED /* * Free the rest of the memory associated with this task * and set the associated pointers to NULL for safety. */ _Thread_Stack_Free( the_thread ); 4860c: 2f0a movel %a2,%sp@- 4860e: 4eb9 0004 92dc jsr 492dc <_Thread_Stack_Free> the_thread->Start.stack = NULL; if ( the_thread->extensions ) 48614: 202a 0104 movel %a2@(260),%d0 48618: 588f addql #4,%sp /* * Free the rest of the memory associated with this task * and set the associated pointers to NULL for safety. */ _Thread_Stack_Free( the_thread ); the_thread->Start.stack = NULL; 4861a: 42aa 00bc clrl %a2@(188) if ( the_thread->extensions ) 4861e: 4a80 tstl %d0 48620: 670a beqs 4862c <_Thread_Close+0xc0> <== ALWAYS TAKEN (void) _Workspace_Free( the_thread->extensions ); 48622: 2f00 movel %d0,%sp@- <== NOT EXECUTED 48624: 4eb9 0004 9a9e jsr 49a9e <_Workspace_Free> <== NOT EXECUTED 4862a: 588f addql #4,%sp <== NOT EXECUTED the_thread->extensions = NULL; 4862c: 42aa 0104 clrl %a2@(260) } 48630: 246e fff8 moveal %fp@(-8),%a2 48634: 266e fffc moveal %fp@(-4),%a3 48638: 4e5e unlk %fp 4863a: 4e75 rts */ #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) RTEMS_INLINE_ROUTINE void _Thread_Deallocate_fp( void ) { _Thread_Allocated_fp = NULL; 4863c: 42b9 0005 e54a clrl 5e54a <_Thread_Allocated_fp> <== NOT EXECUTED 48642: 60b2 bras 485f6 <_Thread_Close+0x8a> <== NOT EXECUTED */ _Thread_Set_state( the_thread, STATES_DORMANT ); if ( !_Thread_queue_Extract_with_proxy( the_thread ) ) { if ( _Watchdog_Is_active( &the_thread->Timer ) ) (void) _Watchdog_Remove( &the_thread->Timer ); 48644: 486a 0048 pea %a2@(72) <== NOT EXECUTED 48648: 4eb9 0004 9900 jsr 49900 <_Watchdog_Remove> <== NOT EXECUTED 4864e: 588f addql #4,%sp <== NOT EXECUTED 48650: 2f0a movel %a2,%sp@- <== NOT EXECUTED 48652: 4879 0005 e54e pea 5e54e <_Scheduler> <== NOT EXECUTED 48658: 2079 0005 e566 moveal 5e566 <_Scheduler+0x18>,%a0 <== NOT EXECUTED 4865e: 4e90 jsr %a0@ <== NOT EXECUTED /* * The thread might have been FP. So deal with that. */ #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) #if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE ) if ( _Thread_Is_allocated_fp( the_thread ) ) 48660: 508f addql #8,%sp <== NOT EXECUTED 48662: b5f9 0005 e54a cmpal 5e54a <_Thread_Allocated_fp>,%a2 <== NOT EXECUTED 48668: 668c bnes 485f6 <_Thread_Close+0x8a> <== NOT EXECUTED 4866a: 60d0 bras 4863c <_Thread_Close+0xd0> <== NOT EXECUTED =============================================================================== 0004871c <_Thread_Delay_ended>: void _Thread_Delay_ended( Objects_Id id, void *ignored __attribute__((unused)) ) { 4871c: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); 48720: 486e fffc pea %fp@(-4) <== NOT EXECUTED 48724: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 48728: 4eb9 0004 88e8 jsr 488e8 <_Thread_Get> <== NOT EXECUTED switch ( location ) { 4872e: 508f addql #8,%sp <== NOT EXECUTED 48730: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 48734: 661e bnes 48754 <_Thread_Delay_ended+0x38> <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) case OBJECTS_REMOTE: /* impossible */ #endif break; case OBJECTS_LOCAL: _Thread_Clear_state( 48736: 2f3c 1000 0018 movel #268435480,%sp@- <== NOT EXECUTED 4873c: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4873e: 4eb9 0004 850c jsr 4850c <_Thread_Clear_state> <== NOT EXECUTED 48744: 508f addql #8,%sp <== NOT EXECUTED 48746: 2039 0005 e4c8 movel 5e4c8 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED 4874c: 5380 subql #1,%d0 <== NOT EXECUTED 4874e: 23c0 0005 e4c8 movel %d0,5e4c8 <_Thread_Dispatch_disable_level><== NOT EXECUTED | STATES_INTERRUPTIBLE_BY_SIGNAL ); _Thread_Unnest_dispatch(); break; } } 48754: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00048758 <_Thread_Dispatch>: * dispatch thread * no dispatch thread */ void _Thread_Dispatch( void ) { 48758: 4e56 ffc8 linkw %fp,#-56 4875c: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ Thread_Control *executing; Thread_Control *heir; ISR_Level level; executing = _Thread_Executing; _ISR_Disable( level ); 48760: 283c 0000 0700 movel #1792,%d4 48766: 2004 movel %d4,%d0 { Thread_Control *executing; Thread_Control *heir; ISR_Level level; executing = _Thread_Executing; 48768: 2479 0005 e684 moveal 5e684 <_Per_CPU_Information+0xc>,%a2 _ISR_Disable( level ); 4876e: 40c1 movew %sr,%d1 48770: 8081 orl %d1,%d0 48772: 46c0 movew %d0,%sr while ( _Thread_Dispatch_necessary == true ) { 48774: 1039 0005 e690 moveb 5e690 <_Per_CPU_Information+0x18>,%d0 4877a: 6700 0120 beqw 4889c <_Thread_Dispatch+0x144> heir = _Thread_Heir; _Thread_Dispatch_disable_level = 1; 4877e: 7001 moveq #1,%d0 48780: 23c0 0005 e4c8 movel %d0,5e4c8 <_Thread_Dispatch_disable_level> ISR_Level level; executing = _Thread_Executing; _ISR_Disable( level ); while ( _Thread_Dispatch_necessary == true ) { heir = _Thread_Heir; 48786: 2679 0005 e688 moveal 5e688 <_Per_CPU_Information+0x10>,%a3 _Thread_Dispatch_disable_level = 1; _Thread_Dispatch_necessary = false; 4878c: 4200 clrb %d0 _Thread_Executing = heir; 4878e: 23cb 0005 e684 movel %a3,5e684 <_Per_CPU_Information+0xc> executing = _Thread_Executing; _ISR_Disable( level ); while ( _Thread_Dispatch_necessary == true ) { heir = _Thread_Heir; _Thread_Dispatch_disable_level = 1; _Thread_Dispatch_necessary = false; 48794: 13c0 0005 e690 moveb %d0,5e690 <_Per_CPU_Information+0x18> /* * When the heir and executing are the same, then we are being * requested to do the post switch dispatching. This is normally * done to dispatch signals. */ if ( heir == executing ) 4879a: b7ca cmpal %a2,%a3 4879c: 6700 00fe beqw 4889c <_Thread_Dispatch+0x144> 487a0: 260e movel %fp,%d3 487a2: 240e movel %fp,%d2 487a4: 5183 subql #8,%d3 487a6: 2e3c 0004 ba98 movel #309912,%d7 487ac: 0682 ffff fff0 addil #-16,%d2 487b2: 2c3c 0004 94a4 movel #300196,%d6 487b8: 2a3c 0004 945c movel #300124,%d5 487be: 4bf9 0004 976c lea 4976c <_User_extensions_Thread_switch>,%a5 487c4: 49f9 0004 9aec lea 49aec <_CPU_Context_switch>,%a4 */ #if __RTEMS_ADA__ executing->rtems_ada_self = rtems_ada_self; rtems_ada_self = heir->rtems_ada_self; #endif if ( heir->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE ) 487ca: 7001 moveq #1,%d0 487cc: b0ab 007a cmpl %a3@(122),%d0 487d0: 6700 00e2 beqw 488b4 <_Thread_Dispatch+0x15c> heir->cpu_time_budget = _Thread_Ticks_per_timeslice; _ISR_Enable( level ); 487d4: 46c1 movew %d1,%sr #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ { Timestamp_Control uptime, ran; _TOD_Get_uptime( &uptime ); 487d6: 2f03 movel %d3,%sp@- 487d8: 2047 moveal %d7,%a0 487da: 4e90 jsr %a0@ _Timestamp_Subtract( 487dc: 2046 moveal %d6,%a0 487de: 2f02 movel %d2,%sp@- 487e0: 2f03 movel %d3,%sp@- 487e2: 4879 0005 e594 pea 5e594 <_Thread_Time_of_last_context_switch> 487e8: 4e90 jsr %a0@ &_Thread_Time_of_last_context_switch, &uptime, &ran ); _Timestamp_Add_to( &executing->cpu_time_used, &ran ); 487ea: 2045 moveal %d5,%a0 487ec: 2f02 movel %d2,%sp@- 487ee: 486a 0082 pea %a2@(130) 487f2: 4e90 jsr %a0@ #endif /* * Switch libc's task specific data. */ if ( _Thread_libc_reent ) { 487f4: 2079 0005 e56e moveal 5e56e <_Thread_libc_reent>,%a0 487fa: 4fef 0018 lea %sp@(24),%sp &_Thread_Time_of_last_context_switch, &uptime, &ran ); _Timestamp_Add_to( &executing->cpu_time_used, &ran ); _Thread_Time_of_last_context_switch = uptime; 487fe: 202e fff8 movel %fp@(-8),%d0 48802: 222e fffc movel %fp@(-4),%d1 48806: 23c0 0005 e594 movel %d0,5e594 <_Thread_Time_of_last_context_switch> 4880c: 23c1 0005 e598 movel %d1,5e598 <_Thread_Time_of_last_context_switch+0x4> #endif /* * Switch libc's task specific data. */ if ( _Thread_libc_reent ) { 48812: 4a88 tstl %a0 48814: 6708 beqs 4881e <_Thread_Dispatch+0xc6> <== NEVER TAKEN executing->libc_reent = *_Thread_libc_reent; 48816: 2550 00f8 movel %a0@,%a2@(248) *_Thread_libc_reent = heir->libc_reent; 4881a: 20ab 00f8 movel %a3@(248),%a0@ } _User_extensions_Thread_switch( executing, heir ); 4881e: 2f0b movel %a3,%sp@- 48820: 2f0a movel %a2,%sp@- 48822: 4e95 jsr %a5@ if ( executing->fp_context != NULL ) _Context_Save_fp( &executing->fp_context ); #endif #endif _Context_Switch( &executing->Registers, &heir->Registers ); 48824: 486b 00c0 pea %a3@(192) 48828: 486a 00c0 pea %a2@(192) 4882c: 4e94 jsr %a4@ #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) #if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE ) if ( (executing->fp_context != NULL) && 4882e: 4fef 0010 lea %sp@(16),%sp 48832: 4aaa 00f4 tstl %a2@(244) 48836: 672c beqs 48864 <_Thread_Dispatch+0x10c> <== ALWAYS TAKEN #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) RTEMS_INLINE_ROUTINE bool _Thread_Is_allocated_fp ( const Thread_Control *the_thread ) { return ( the_thread == _Thread_Allocated_fp ); 48838: 2079 0005 e54a moveal 5e54a <_Thread_Allocated_fp>,%a0 <== NOT EXECUTED 4883e: b1ca cmpal %a2,%a0 <== NOT EXECUTED 48840: 6722 beqs 48864 <_Thread_Dispatch+0x10c> <== NOT EXECUTED !_Thread_Is_allocated_fp( executing ) ) { if ( _Thread_Allocated_fp != NULL ) 48842: 4a88 tstl %a0 <== NOT EXECUTED 48844: 670c beqs 48852 <_Thread_Dispatch+0xfa> <== NOT EXECUTED _Context_Save_fp( &_Thread_Allocated_fp->fp_context ); 48846: 4868 00f4 pea %a0@(244) <== NOT EXECUTED 4884a: 4eb9 0004 9c12 jsr 49c12 <_CPU_Context_save_fp> <== NOT EXECUTED 48850: 588f addql #4,%sp <== NOT EXECUTED _Context_Restore_fp( &executing->fp_context ); 48852: 486a 00f4 pea %a2@(244) <== NOT EXECUTED 48856: 4eb9 0004 9c4a jsr 49c4a <_CPU_Context_restore_fp> <== NOT EXECUTED _Thread_Allocated_fp = executing; 4885c: 588f addql #4,%sp <== NOT EXECUTED 4885e: 23ca 0005 e54a movel %a2,5e54a <_Thread_Allocated_fp> <== NOT EXECUTED if ( executing->fp_context != NULL ) _Context_Restore_fp( &executing->fp_context ); #endif #endif executing = _Thread_Executing; 48864: 2479 0005 e684 moveal 5e684 <_Per_CPU_Information+0xc>,%a2 _ISR_Disable( level ); 4886a: 2004 movel %d4,%d0 4886c: 40c1 movew %sr,%d1 4886e: 8081 orl %d1,%d0 48870: 46c0 movew %d0,%sr Thread_Control *heir; ISR_Level level; executing = _Thread_Executing; _ISR_Disable( level ); while ( _Thread_Dispatch_necessary == true ) { 48872: 1039 0005 e690 moveb 5e690 <_Per_CPU_Information+0x18>,%d0 48878: 6722 beqs 4889c <_Thread_Dispatch+0x144> <== ALWAYS TAKEN heir = _Thread_Heir; _Thread_Dispatch_disable_level = 1; 4887a: 7001 moveq #1,%d0 <== NOT EXECUTED 4887c: 23c0 0005 e4c8 movel %d0,5e4c8 <_Thread_Dispatch_disable_level><== NOT EXECUTED ISR_Level level; executing = _Thread_Executing; _ISR_Disable( level ); while ( _Thread_Dispatch_necessary == true ) { heir = _Thread_Heir; 48882: 2679 0005 e688 moveal 5e688 <_Per_CPU_Information+0x10>,%a3<== NOT EXECUTED _Thread_Dispatch_disable_level = 1; _Thread_Dispatch_necessary = false; 48888: 4200 clrb %d0 <== NOT EXECUTED _Thread_Executing = heir; 4888a: 23cb 0005 e684 movel %a3,5e684 <_Per_CPU_Information+0xc> <== NOT EXECUTED executing = _Thread_Executing; _ISR_Disable( level ); while ( _Thread_Dispatch_necessary == true ) { heir = _Thread_Heir; _Thread_Dispatch_disable_level = 1; _Thread_Dispatch_necessary = false; 48890: 13c0 0005 e690 moveb %d0,5e690 <_Per_CPU_Information+0x18> <== NOT EXECUTED /* * When the heir and executing are the same, then we are being * requested to do the post switch dispatching. This is normally * done to dispatch signals. */ if ( heir == executing ) 48896: b5cb cmpal %a3,%a2 <== NOT EXECUTED 48898: 6600 ff30 bnew 487ca <_Thread_Dispatch+0x72> <== NOT EXECUTED _ISR_Disable( level ); } post_switch: _Thread_Dispatch_disable_level = 0; 4889c: 42b9 0005 e4c8 clrl 5e4c8 <_Thread_Dispatch_disable_level> _ISR_Enable( level ); 488a2: 46c1 movew %d1,%sr _API_extensions_Run_postswitch(); 488a4: 4eb9 0004 6d4a jsr 46d4a <_API_extensions_Run_postswitch> } 488aa: 4cee 3cfc ffc8 moveml %fp@(-56),%d2-%d7/%a2-%a5 488b0: 4e5e unlk %fp 488b2: 4e75 rts #if __RTEMS_ADA__ executing->rtems_ada_self = rtems_ada_self; rtems_ada_self = heir->rtems_ada_self; #endif if ( heir->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE ) heir->cpu_time_budget = _Thread_Ticks_per_timeslice; 488b4: 41f9 0005 e480 lea 5e480 <_Thread_Ticks_per_timeslice>,%a0 <== NOT EXECUTED 488ba: 2750 0076 movel %a0@,%a3@(118) <== NOT EXECUTED 488be: 6000 ff14 braw 487d4 <_Thread_Dispatch+0x7c> <== NOT EXECUTED =============================================================================== 000488e8 <_Thread_Get>: */ Thread_Control *_Thread_Get ( Objects_Id id, Objects_Locations *location ) { 488e8: 4e56 0000 linkw %fp,#0 488ec: 202e 0008 movel %fp@(8),%d0 488f0: 2f03 movel %d3,%sp@- 488f2: 206e 000c moveal %fp@(12),%a0 488f6: 2f02 movel %d2,%sp@- uint32_t the_class; Objects_Information **api_information; Objects_Information *information; Thread_Control *tp = (Thread_Control *) 0; if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ) { 488f8: 4a80 tstl %d0 488fa: 6766 beqs 48962 <_Thread_Get+0x7a> */ RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API( Objects_Id id ) { return (Objects_APIs) ((id >> OBJECTS_API_START_BIT) & OBJECTS_API_VALID_BITS); 488fc: 7418 moveq #24,%d2 488fe: 2200 movel %d0,%d1 48900: e4a9 lsrl %d2,%d1 48902: 7607 moveq #7,%d3 */ RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid( uint32_t the_api ) { if ( !the_api || the_api > OBJECTS_APIS_LAST ) 48904: 143c 0002 moveb #2,%d2 */ RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API( Objects_Id id ) { return (Objects_APIs) ((id >> OBJECTS_API_START_BIT) & OBJECTS_API_VALID_BITS); 48908: c283 andl %d3,%d1 */ RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid( uint32_t the_api ) { if ( !the_api || the_api > OBJECTS_APIS_LAST ) 4890a: 2241 moveal %d1,%a1 4890c: 5389 subql #1,%a1 4890e: b489 cmpl %a1,%d2 48910: 653e bcss 48950 <_Thread_Get+0x68> <== NEVER TAKEN */ RTEMS_INLINE_ROUTINE uint32_t _Objects_Get_class( Objects_Id id ) { return (uint32_t) 48912: 761b moveq #27,%d3 48914: 2400 movel %d0,%d2 48916: e6aa lsrl %d3,%d2 *location = OBJECTS_ERROR; goto done; } the_class = _Objects_Get_class( id ); if ( the_class != 1 ) { /* threads are always first class :) */ 48918: 163c 0001 moveb #1,%d3 4891c: b682 cmpl %d2,%d3 4891e: 6630 bnes 48950 <_Thread_Get+0x68> <== NEVER TAKEN *location = OBJECTS_ERROR; goto done; } api_information = _Objects_Information_table[ the_api ]; 48920: 43f9 0005 e484 lea 5e484 <_Objects_Information_table>,%a1 48926: 2271 1c00 moveal %a1@(00000000,%d1:l:4),%a1 /* * There is no way for this to happen if POSIX is enabled. */ #if !defined(RTEMS_POSIX_API) if ( !api_information ) { 4892a: 4a89 tstl %a1 4892c: 6722 beqs 48950 <_Thread_Get+0x68> <== NEVER TAKEN *location = OBJECTS_ERROR; goto done; } #endif information = api_information[ the_class ]; 4892e: 2229 0004 movel %a1@(4),%d1 if ( !information ) { 48932: 671c beqs 48950 <_Thread_Get+0x68> <== NEVER TAKEN *location = OBJECTS_ERROR; goto done; } tp = (Thread_Control *) _Objects_Get( information, id, location ); 48934: 2f08 movel %a0,%sp@- 48936: 2f00 movel %d0,%sp@- 48938: 2f01 movel %d1,%sp@- 4893a: 4eb9 0004 7d34 jsr 47d34 <_Objects_Get> done: return tp; } 48940: 242e fff8 movel %fp@(-8),%d2 if ( !information ) { *location = OBJECTS_ERROR; goto done; } tp = (Thread_Control *) _Objects_Get( information, id, location ); 48944: 4fef 000c lea %sp@(12),%sp done: return tp; } 48948: 262e fffc movel %fp@(-4),%d3 4894c: 4e5e unlk %fp 4894e: 4e75 rts } #endif information = api_information[ the_class ]; if ( !information ) { *location = OBJECTS_ERROR; 48950: 7001 moveq #1,%d0 <== NOT EXECUTED tp = (Thread_Control *) _Objects_Get( information, id, location ); done: return tp; } 48952: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 48956: 262e fffc movel %fp@(-4),%d3 <== NOT EXECUTED 4895a: 4e5e unlk %fp <== NOT EXECUTED } #endif information = api_information[ the_class ]; if ( !information ) { *location = OBJECTS_ERROR; 4895c: 2080 movel %d0,%a0@ <== NOT EXECUTED { uint32_t the_api; uint32_t the_class; Objects_Information **api_information; Objects_Information *information; Thread_Control *tp = (Thread_Control *) 0; 4895e: 4280 clrl %d0 <== NOT EXECUTED tp = (Thread_Control *) _Objects_Get( information, id, location ); done: return tp; } 48960: 4e75 rts <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 48962: 2039 0005 e4c8 movel 5e4c8 <_Thread_Dispatch_disable_level>,%d0 48968: 5280 addql #1,%d0 4896a: 23c0 0005 e4c8 movel %d0,5e4c8 <_Thread_Dispatch_disable_level> 48970: 242e fff8 movel %fp@(-8),%d2 48974: 262e fffc movel %fp@(-4),%d3 48978: 4e5e unlk %fp Thread_Control *tp = (Thread_Control *) 0; if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ) { _Thread_Disable_dispatch(); *location = OBJECTS_LOCAL; tp = _Thread_Executing; 4897a: 2039 0005 e684 movel 5e684 <_Per_CPU_Information+0xc>,%d0 Objects_Information *information; Thread_Control *tp = (Thread_Control *) 0; if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ) { _Thread_Disable_dispatch(); *location = OBJECTS_LOCAL; 48980: 4290 clrl %a0@ <== NOT EXECUTED tp = (Thread_Control *) _Objects_Get( information, id, location ); done: return tp; } =============================================================================== 0004d694 <_Thread_Handler>: * * Output parameters: NONE */ void _Thread_Handler( void ) { 4d694: 4e56 0000 linkw %fp,#0 4d698: 2f0a movel %a2,%sp@- #if defined(EXECUTE_GLOBAL_CONSTRUCTORS) static char doneConstructors; char doneCons; #endif executing = _Thread_Executing; 4d69a: 2479 0005 e684 moveal 5e684 <_Per_CPU_Information+0xc>,%a2 * * Output parameters: NONE */ void _Thread_Handler( void ) { 4d6a0: 2f02 movel %d2,%sp@- /* * have to put level into a register for those cpu's that use * inline asm here */ level = executing->Start.isr_level; 4d6a2: 222a 00a8 movel %a2@(168),%d1 _ISR_Set_level(level); 4d6a6: 40c0 movew %sr,%d0 4d6a8: e189 lsll #8,%d1 4d6aa: 0280 0000 f8ff andil #63743,%d0 4d6b0: 8081 orl %d1,%d0 4d6b2: 46c0 movew %d0,%sr #if defined(EXECUTE_GLOBAL_CONSTRUCTORS) doneCons = doneConstructors; doneConstructors = 1; 4d6b4: 7001 moveq #1,%d0 level = executing->Start.isr_level; _ISR_Set_level(level); #if defined(EXECUTE_GLOBAL_CONSTRUCTORS) doneCons = doneConstructors; 4d6b6: 1439 0005 dc8c moveb 5dc8c ,%d2 doneConstructors = 1; 4d6bc: 13c0 0005 dc8c moveb %d0,5dc8c #endif #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) #if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE ) if ( (executing->fp_context != NULL) && 4d6c2: 4aaa 00f4 tstl %a2@(244) 4d6c6: 6720 beqs 4d6e8 <_Thread_Handler+0x54> #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) RTEMS_INLINE_ROUTINE bool _Thread_Is_allocated_fp ( const Thread_Control *the_thread ) { return ( the_thread == _Thread_Allocated_fp ); 4d6c8: 2079 0005 e54a moveal 5e54a <_Thread_Allocated_fp>,%a0 4d6ce: b1ca cmpal %a2,%a0 4d6d0: 6716 beqs 4d6e8 <_Thread_Handler+0x54> <== NEVER TAKEN !_Thread_Is_allocated_fp( executing ) ) { if ( _Thread_Allocated_fp != NULL ) 4d6d2: 4a88 tstl %a0 4d6d4: 670c beqs 4d6e2 <_Thread_Handler+0x4e> <== ALWAYS TAKEN _Context_Save_fp( &_Thread_Allocated_fp->fp_context ); 4d6d6: 4868 00f4 pea %a0@(244) <== NOT EXECUTED 4d6da: 4eb9 0004 9c12 jsr 49c12 <_CPU_Context_save_fp> <== NOT EXECUTED 4d6e0: 588f addql #4,%sp <== NOT EXECUTED _Thread_Allocated_fp = executing; 4d6e2: 23ca 0005 e54a movel %a2,5e54a <_Thread_Allocated_fp> /* * Take care that 'begin' extensions get to complete before * 'switch' extensions can run. This means must keep dispatch * disabled until all 'begin' extensions complete. */ _User_extensions_Thread_begin( executing ); 4d6e8: 2f0a movel %a2,%sp@- 4d6ea: 4eb9 0004 95b8 jsr 495b8 <_User_extensions_Thread_begin> /* * At this point, the dispatch disable level BETTER be 1. */ _Thread_Enable_dispatch(); 4d6f0: 4eb9 0004 88c2 jsr 488c2 <_Thread_Enable_dispatch> /* * _init could be a weak symbol and we SHOULD test it but it isn't * in any configuration I know of and it generates a warning on every * RTEMS target configuration. --joel (12 May 2007) */ if (!doneCons) /* && (volatile void *)_init) */ { 4d6f6: 588f addql #4,%sp 4d6f8: 4a02 tstb %d2 4d6fa: 6746 beqs 4d742 <_Thread_Handler+0xae> INIT_NAME (); } #endif if ( executing->Start.prototype == THREAD_START_NUMERIC ) { 4d6fc: 4aaa 0092 tstl %a2@(146) 4d700: 6718 beqs 4d71a <_Thread_Handler+0x86> <== ALWAYS TAKEN * was placed in return_argument. This assumed that if it returned * anything (which is not supporting in all APIs), then it would be * able to fit in a (void *). */ _User_extensions_Thread_exitted( executing ); 4d702: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4d704: 4eb9 0004 95f6 jsr 495f6 <_User_extensions_Thread_exitted> <== NOT EXECUTED _Internal_error_Occurred( 4d70a: 4878 0005 pea 5 <== NOT EXECUTED 4d70e: 4878 0001 pea 1 <== NOT EXECUTED 4d712: 42a7 clrl %sp@- <== NOT EXECUTED 4d714: 4eb9 0004 77b8 jsr 477b8 <_Internal_error_Occurred> <== NOT EXECUTED } #endif if ( executing->Start.prototype == THREAD_START_NUMERIC ) { executing->Wait.return_argument = (*(Thread_Entry_numeric) executing->Start.entry_point)( 4d71a: 2f2a 009a movel %a2@(154),%sp@- 4d71e: 206a 008e moveal %a2@(142),%a0 4d722: 4e90 jsr %a0@ INIT_NAME (); } #endif if ( executing->Start.prototype == THREAD_START_NUMERIC ) { executing->Wait.return_argument = 4d724: 588f addql #4,%sp 4d726: 2540 0028 movel %d0,%a2@(40) * was placed in return_argument. This assumed that if it returned * anything (which is not supporting in all APIs), then it would be * able to fit in a (void *). */ _User_extensions_Thread_exitted( executing ); 4d72a: 2f0a movel %a2,%sp@- 4d72c: 4eb9 0004 95f6 jsr 495f6 <_User_extensions_Thread_exitted> _Internal_error_Occurred( 4d732: 4878 0005 pea 5 4d736: 4878 0001 pea 1 4d73a: 42a7 clrl %sp@- 4d73c: 4eb9 0004 77b8 jsr 477b8 <_Internal_error_Occurred> * _init could be a weak symbol and we SHOULD test it but it isn't * in any configuration I know of and it generates a warning on every * RTEMS target configuration. --joel (12 May 2007) */ if (!doneCons) /* && (volatile void *)_init) */ { INIT_NAME (); 4d742: 4eb9 0005 b300 jsr 5b300 <_init> } #endif if ( executing->Start.prototype == THREAD_START_NUMERIC ) { 4d748: 4aaa 0092 tstl %a2@(146) 4d74c: 66b4 bnes 4d702 <_Thread_Handler+0x6e> <== NEVER TAKEN 4d74e: 60ca bras 4d71a <_Thread_Handler+0x86> =============================================================================== 00048b7c <_Thread_Handler_initialization>: * * Output parameters: NONE */ void _Thread_Handler_initialization(void) { 48b7c: 4e56 0000 linkw %fp,#0 /* * BOTH stacks hooks must be set or both must be NULL. * Do not allow mixture. */ if ( !( (!Configuration.stack_allocate_hook) == (!Configuration.stack_free_hook) ) ) 48b80: 4ab9 0005 ccbc tstl 5ccbc 48b86: 57c1 seq %d1 #endif /* * BOTH stacks hooks must be set or both must be NULL. * Do not allow mixture. */ if ( !( (!Configuration.stack_allocate_hook) 48b88: 4ab9 0005 ccb8 tstl 5ccb8 48b8e: 57c0 seq %d0 == (!Configuration.stack_free_hook) ) ) 48b90: 4481 negl %d1 #endif /* * BOTH stacks hooks must be set or both must be NULL. * Do not allow mixture. */ if ( !( (!Configuration.stack_allocate_hook) 48b92: 4480 negl %d0 48b94: b380 eorl %d1,%d0 uint32_t maximum_extensions; #if defined(RTEMS_MULTIPROCESSING) uint32_t maximum_proxies; #endif ticks_per_timeslice = Configuration.ticks_per_timeslice; 48b96: 2239 0005 cca4 movel 5cca4 ,%d1 maximum_extensions = Configuration.maximum_extensions; 48b9c: 2079 0005 cc9c moveal 5cc9c ,%a0 #endif /* * BOTH stacks hooks must be set or both must be NULL. * Do not allow mixture. */ if ( !( (!Configuration.stack_allocate_hook) 48ba2: 4a00 tstb %d0 48ba4: 6650 bnes 48bf6 <_Thread_Handler_initialization+0x7a> /* * Initialize this class of objects. */ _Objects_Initialize_information( 48ba6: 4878 0008 pea 8 INTERNAL_ERROR_CORE, true, INTERNAL_ERROR_BAD_STACK_HOOK ); _Thread_Dispatch_necessary = false; 48baa: 4200 clrb %d0 /* * Initialize this class of objects. */ _Objects_Initialize_information( 48bac: 42a7 clrl %sp@- 48bae: 4878 010c pea 10c 48bb2: 4878 0001 pea 1 48bb6: 4878 0001 pea 1 48bba: 4878 0001 pea 1 48bbe: 4879 0005 e5f8 pea 5e5f8 <_Thread_Internal_information> INTERNAL_ERROR_CORE, true, INTERNAL_ERROR_BAD_STACK_HOOK ); _Thread_Dispatch_necessary = false; 48bc4: 13c0 0005 e690 moveb %d0,5e690 <_Per_CPU_Information+0x18> _Thread_Executing = NULL; 48bca: 42b9 0005 e684 clrl 5e684 <_Per_CPU_Information+0xc> _Thread_Heir = NULL; 48bd0: 42b9 0005 e688 clrl 5e688 <_Per_CPU_Information+0x10> #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) _Thread_Allocated_fp = NULL; 48bd6: 42b9 0005 e54a clrl 5e54a <_Thread_Allocated_fp> #endif _Thread_Maximum_extensions = maximum_extensions; 48bdc: 23c8 0005 e57a movel %a0,5e57a <_Thread_Maximum_extensions> _Thread_Ticks_per_timeslice = ticks_per_timeslice; 48be2: 23c1 0005 e480 movel %d1,5e480 <_Thread_Ticks_per_timeslice> /* * Initialize this class of objects. */ _Objects_Initialize_information( 48be8: 4eb9 0004 7da0 jsr 47da0 <_Objects_Initialize_information> 48bee: 4fef 001c lea %sp@(28),%sp false, /* true if this is a global object class */ NULL /* Proxy extraction support callout */ #endif ); } 48bf2: 4e5e unlk %fp 48bf4: 4e75 rts * BOTH stacks hooks must be set or both must be NULL. * Do not allow mixture. */ if ( !( (!Configuration.stack_allocate_hook) == (!Configuration.stack_free_hook) ) ) _Internal_error_Occurred( 48bf6: 4878 000e pea e 48bfa: 4878 0001 pea 1 48bfe: 42a7 clrl %sp@- 48c00: 4eb9 0004 77b8 jsr 477b8 <_Internal_error_Occurred> ... =============================================================================== 00048984 <_Thread_Initialize>: Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, Objects_Name name ) { 48984: 4e56 ffe8 linkw %fp,#-24 48988: 48d7 0c3c moveml %d2-%d5/%a2-%a3,%sp@ 4898c: 266e 0014 moveal %fp@(20),%a3 48990: 246e 000c moveal %fp@(12),%a2 /* * Allocate and Initialize the stack for this thread. */ #if !defined(RTEMS_SCORE_THREAD_ENABLE_USER_PROVIDED_STACK_VIA_API) actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size ); 48994: 2f0b movel %a3,%sp@- Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, Objects_Name name ) { 48996: 242e 001c movel %fp@(28),%d2 /* * Zero out all the allocated memory fields */ for ( i=0 ; i <= THREAD_API_LAST ; i++ ) the_thread->API_Extensions[i] = NULL; 4899a: 42aa 00fc clrl %a2@(252) Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, Objects_Name name ) { 4899e: 162e 001b moveb %fp@(27),%d3 /* * Zero out all the allocated memory fields */ for ( i=0 ; i <= THREAD_API_LAST ; i++ ) the_thread->API_Extensions[i] = NULL; 489a2: 42aa 0100 clrl %a2@(256) Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, Objects_Name name ) { 489a6: 182e 0023 moveb %fp@(35),%d4 */ for ( i=0 ; i <= THREAD_API_LAST ; i++ ) the_thread->API_Extensions[i] = NULL; extensions_area = NULL; the_thread->libc_reent = NULL; 489aa: 42aa 00f8 clrl %a2@(248) /* * Allocate and Initialize the stack for this thread. */ #if !defined(RTEMS_SCORE_THREAD_ENABLE_USER_PROVIDED_STACK_VIA_API) actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size ); 489ae: 2f0a movel %a2,%sp@- 489b0: 4eb9 0004 9278 jsr 49278 <_Thread_Stack_Allocate> if ( !actual_stack_size || actual_stack_size < stack_size ) 489b6: 508f addql #8,%sp 489b8: 4a80 tstl %d0 489ba: 6700 0132 beqw 48aee <_Thread_Initialize+0x16a> 489be: b08b cmpl %a3,%d0 489c0: 6500 012c bcsw 48aee <_Thread_Initialize+0x16a> void *starting_address, size_t size ) { the_stack->area = starting_address; the_stack->size = size; 489c4: 2540 00b0 movel %d0,%a2@(176) Stack_Control *the_stack, void *starting_address, size_t size ) { the_stack->area = starting_address; 489c8: 256a 00bc 00b4 movel %a2@(188),%a2@(180) /* * Allocate the floating point area for this thread */ #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( is_fp ) { 489ce: 4a03 tstb %d3 489d0: 6600 0134 bnew 48b06 <_Thread_Initialize+0x182> 489d4: 4280 clrl %d0 extensions_area = NULL; the_thread->libc_reent = NULL; #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) fp_area = NULL; 489d6: 4285 clrl %d5 #endif /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { 489d8: 2239 0005 e57a movel 5e57a <_Thread_Maximum_extensions>,%d1 fp_area = _Workspace_Allocate( CONTEXT_FP_SIZE ); if ( !fp_area ) goto failed; fp_area = _Context_Fp_start( fp_area, 0 ); } the_thread->fp_context = fp_area; 489de: 2540 00f4 movel %d0,%a2@(244) the_thread->Start.fp_context = fp_area; 489e2: 2540 00b8 movel %d0,%a2@(184) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 489e6: 42aa 0050 clrl %a2@(80) the_watchdog->routine = routine; 489ea: 42aa 0064 clrl %a2@(100) the_watchdog->id = id; 489ee: 42aa 0068 clrl %a2@(104) the_watchdog->user_data = user_data; 489f2: 42aa 006c clrl %a2@(108) #endif /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { 489f6: 4a81 tstl %d1 489f8: 6600 0130 bnew 48b2a <_Thread_Initialize+0x1a6> (_Thread_Maximum_extensions + 1) * sizeof( void * ) ); if ( !extensions_area ) goto failed; } the_thread->extensions = (void **) extensions_area; 489fc: 42aa 0104 clrl %a2@(260) * Zero out all the allocated memory fields */ for ( i=0 ; i <= THREAD_API_LAST ; i++ ) the_thread->API_Extensions[i] = NULL; extensions_area = NULL; 48a00: 97cb subal %a3,%a3 RTEMS_INLINE_ROUTINE void* _Scheduler_Thread_scheduler_allocate( Scheduler_Control *the_scheduler, Thread_Control *the_thread ) { return 48a02: 2f0a movel %a2,%sp@- 48a04: 4879 0005 e54e pea 5e54e <_Scheduler> #endif } the_thread->Start.isr_level = isr_level; the_thread->current_state = STATES_DORMANT; 48a0a: 7001 moveq #1,%d0 /* * General initialization */ the_thread->Start.is_preemptible = is_preemptible; the_thread->Start.budget_algorithm = budget_algorithm; 48a0c: 256e 0024 00a0 movel %fp@(36),%a2@(160) the_thread->Start.budget_callout = budget_callout; 48a12: 256e 0028 00a4 movel %fp@(40),%a2@(164) case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT: break; #endif } the_thread->Start.isr_level = isr_level; 48a18: 256e 002c 00a8 movel %fp@(44),%a2@(168) 48a1e: 2079 0005 e562 moveal 5e562 <_Scheduler+0x14>,%a0 /* * General initialization */ the_thread->Start.is_preemptible = is_preemptible; 48a24: 1544 009e moveb %d4,%a2@(158) #endif } the_thread->Start.isr_level = isr_level; the_thread->current_state = STATES_DORMANT; 48a28: 2540 0010 movel %d0,%a2@(16) the_thread->Wait.queue = NULL; 48a2c: 42aa 0044 clrl %a2@(68) the_thread->resource_count = 0; 48a30: 42aa 001c clrl %a2@(28) the_thread->real_priority = priority; 48a34: 2542 0018 movel %d2,%a2@(24) the_thread->Start.initial_priority = priority; 48a38: 2542 00ac movel %d2,%a2@(172) 48a3c: 4e90 jsr %a0@ sched =_Scheduler_Thread_scheduler_allocate( &_Scheduler, the_thread ); if ( !sched ) 48a3e: 508f addql #8,%sp 48a40: 2600 movel %d0,%d3 48a42: 673a beqs 48a7e <_Thread_Initialize+0xfa> <== NEVER TAKEN goto failed; _Thread_Set_priority( the_thread, priority ); 48a44: 2f02 movel %d2,%sp@- 48a46: 2f0a movel %a2,%sp@- 48a48: 4eb9 0004 917c jsr 4917c <_Thread_Set_priority> _Thread_Stack_Free( the_thread ); return false; } 48a4e: 206e 0008 moveal %fp@(8),%a0 Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( 48a52: 4280 clrl %d0 48a54: 2068 0018 moveal %a0@(24),%a0 48a58: 302a 000a movew %a2@(10),%d0 /* * Initialize the CPU usage statistics */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timestamp_Set_to_zero( &the_thread->cpu_time_used ); 48a5c: 42aa 0082 clrl %a2@(130) 48a60: 42aa 0086 clrl %a2@(134) #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 48a64: 218a 0c00 movel %a2,%a0@(00000000,%d0:l:4) information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 48a68: 256e 0030 000c movel %fp@(48),%a2@(12) * enabled when we get here. We want to be able to run the * user extensions with dispatching enabled. The Allocator * Mutex provides sufficient protection to let the user extensions * run safely. */ extension_status = _User_extensions_Thread_create( the_thread ); 48a6e: 2f0a movel %a2,%sp@- 48a70: 4eb9 0004 9688 jsr 49688 <_User_extensions_Thread_create> if ( extension_status ) 48a76: 4fef 000c lea %sp@(12),%sp 48a7a: 4a00 tstb %d0 48a7c: 667c bnes 48afa <_Thread_Initialize+0x176> <== ALWAYS TAKEN return true; failed: if ( the_thread->libc_reent ) 48a7e: 202a 00f8 movel %a2@(248),%d0 <== NOT EXECUTED 48a82: 670a beqs 48a8e <_Thread_Initialize+0x10a> <== NOT EXECUTED _Workspace_Free( the_thread->libc_reent ); 48a84: 2f00 movel %d0,%sp@- <== NOT EXECUTED 48a86: 4eb9 0004 9a9e jsr 49a9e <_Workspace_Free> <== NOT EXECUTED 48a8c: 588f addql #4,%sp <== NOT EXECUTED for ( i=0 ; i <= THREAD_API_LAST ; i++ ) if ( the_thread->API_Extensions[i] ) 48a8e: 202a 00fc movel %a2@(252),%d0 <== NOT EXECUTED 48a92: 670a beqs 48a9e <_Thread_Initialize+0x11a> <== NOT EXECUTED _Workspace_Free( the_thread->API_Extensions[i] ); 48a94: 2f00 movel %d0,%sp@- <== NOT EXECUTED 48a96: 4eb9 0004 9a9e jsr 49a9e <_Workspace_Free> <== NOT EXECUTED 48a9c: 588f addql #4,%sp <== NOT EXECUTED failed: if ( the_thread->libc_reent ) _Workspace_Free( the_thread->libc_reent ); for ( i=0 ; i <= THREAD_API_LAST ; i++ ) if ( the_thread->API_Extensions[i] ) 48a9e: 202a 0100 movel %a2@(256),%d0 <== NOT EXECUTED 48aa2: 670a beqs 48aae <_Thread_Initialize+0x12a> <== NOT EXECUTED _Workspace_Free( the_thread->API_Extensions[i] ); 48aa4: 2f00 movel %d0,%sp@- <== NOT EXECUTED 48aa6: 4eb9 0004 9a9e jsr 49a9e <_Workspace_Free> <== NOT EXECUTED 48aac: 588f addql #4,%sp <== NOT EXECUTED if ( extensions_area ) 48aae: 4a8b tstl %a3 <== NOT EXECUTED 48ab0: 670a beqs 48abc <_Thread_Initialize+0x138> <== NOT EXECUTED (void) _Workspace_Free( extensions_area ); 48ab2: 2f0b movel %a3,%sp@- <== NOT EXECUTED 48ab4: 4eb9 0004 9a9e jsr 49a9e <_Workspace_Free> <== NOT EXECUTED 48aba: 588f addql #4,%sp <== NOT EXECUTED #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( fp_area ) 48abc: 4a85 tstl %d5 <== NOT EXECUTED 48abe: 670a beqs 48aca <_Thread_Initialize+0x146> <== NOT EXECUTED (void) _Workspace_Free( fp_area ); 48ac0: 2f05 movel %d5,%sp@- <== NOT EXECUTED 48ac2: 4eb9 0004 9a9e jsr 49a9e <_Workspace_Free> <== NOT EXECUTED 48ac8: 588f addql #4,%sp <== NOT EXECUTED #endif if ( sched ) 48aca: 4a83 tstl %d3 <== NOT EXECUTED 48acc: 670a beqs 48ad8 <_Thread_Initialize+0x154> <== NOT EXECUTED (void) _Workspace_Free( sched ); 48ace: 2f03 movel %d3,%sp@- <== NOT EXECUTED 48ad0: 4eb9 0004 9a9e jsr 49a9e <_Workspace_Free> <== NOT EXECUTED 48ad6: 588f addql #4,%sp <== NOT EXECUTED _Thread_Stack_Free( the_thread ); 48ad8: 2f0a movel %a2,%sp@- <== NOT EXECUTED 48ada: 4eb9 0004 92dc jsr 492dc <_Thread_Stack_Free> <== NOT EXECUTED return false; 48ae0: 588f addql #4,%sp <== NOT EXECUTED } 48ae2: 4cee 0c3c ffe8 moveml %fp@(-24),%d2-%d5/%a2-%a3 <== NOT EXECUTED if ( sched ) (void) _Workspace_Free( sched ); _Thread_Stack_Free( the_thread ); return false; 48ae8: 4200 clrb %d0 <== NOT EXECUTED } 48aea: 4e5e unlk %fp <== NOT EXECUTED 48aec: 4e75 rts <== NOT EXECUTED 48aee: 4cee 0c3c ffe8 moveml %fp@(-24),%d2-%d5/%a2-%a3 * Allocate and Initialize the stack for this thread. */ #if !defined(RTEMS_SCORE_THREAD_ENABLE_USER_PROVIDED_STACK_VIA_API) actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size ); if ( !actual_stack_size || actual_stack_size < stack_size ) return false; /* stack allocation failed */ 48af4: 4200 clrb %d0 _Thread_Stack_Free( the_thread ); return false; } 48af6: 4e5e unlk %fp 48af8: 4e75 rts 48afa: 4cee 0c3c ffe8 moveml %fp@(-24),%d2-%d5/%a2-%a3 * Mutex provides sufficient protection to let the user extensions * run safely. */ extension_status = _User_extensions_Thread_create( the_thread ); if ( extension_status ) return true; 48b00: 7001 moveq #1,%d0 _Thread_Stack_Free( the_thread ); return false; } 48b02: 4e5e unlk %fp 48b04: 4e75 rts /* * Allocate the floating point area for this thread */ #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( is_fp ) { fp_area = _Workspace_Allocate( CONTEXT_FP_SIZE ); 48b06: 4878 001c pea 1c 48b0a: 4eb9 0004 9a82 jsr 49a82 <_Workspace_Allocate> if ( !fp_area ) 48b10: 588f addql #4,%sp /* * Allocate the floating point area for this thread */ #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( is_fp ) { fp_area = _Workspace_Allocate( CONTEXT_FP_SIZE ); 48b12: 2a00 movel %d0,%d5 if ( !fp_area ) 48b14: 6600 fec2 bnew 489d8 <_Thread_Initialize+0x54> extension_status = _User_extensions_Thread_create( the_thread ); if ( extension_status ) return true; failed: if ( the_thread->libc_reent ) 48b18: 202a 00f8 movel %a2@(248),%d0 <== NOT EXECUTED * Zero out all the allocated memory fields */ for ( i=0 ; i <= THREAD_API_LAST ; i++ ) the_thread->API_Extensions[i] = NULL; extensions_area = NULL; 48b1c: 97cb subal %a3,%a3 <== NOT EXECUTED size_t actual_stack_size = 0; void *stack = NULL; #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) void *fp_area; #endif void *sched = NULL; 48b1e: 4283 clrl %d3 <== NOT EXECUTED extension_status = _User_extensions_Thread_create( the_thread ); if ( extension_status ) return true; failed: if ( the_thread->libc_reent ) 48b20: 4a80 tstl %d0 <== NOT EXECUTED 48b22: 6600 ff60 bnew 48a84 <_Thread_Initialize+0x100> <== NOT EXECUTED 48b26: 6000 ff66 braw 48a8e <_Thread_Initialize+0x10a> <== NOT EXECUTED /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { extensions_area = _Workspace_Allocate( 48b2a: e589 lsll #2,%d1 48b2c: 2041 moveal %d1,%a0 48b2e: 4868 0004 pea %a0@(4) 48b32: 4eb9 0004 9a82 jsr 49a82 <_Workspace_Allocate> (_Thread_Maximum_extensions + 1) * sizeof( void * ) ); if ( !extensions_area ) 48b38: 588f addql #4,%sp /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { extensions_area = _Workspace_Allocate( 48b3a: 2640 moveal %d0,%a3 (_Thread_Maximum_extensions + 1) * sizeof( void * ) ); if ( !extensions_area ) 48b3c: 4a80 tstl %d0 48b3e: 672c beqs 48b6c <_Thread_Initialize+0x1e8> <== NEVER TAKEN goto failed; } the_thread->extensions = (void **) extensions_area; 48b40: 2079 0005 e57a moveal 5e57a <_Thread_Maximum_extensions>,%a0 * create the extension long after tasks have been created * so they cannot rely on the thread create user extension * call. */ if ( the_thread->extensions ) { for ( i = 0; i <= _Thread_Maximum_extensions ; i++ ) 48b46: 4281 clrl %d1 (_Thread_Maximum_extensions + 1) * sizeof( void * ) ); if ( !extensions_area ) goto failed; } the_thread->extensions = (void **) extensions_area; 48b48: 4280 clrl %d0 48b4a: 254b 0104 movel %a3,%a2@(260) * so they cannot rely on the thread create user extension * call. */ if ( the_thread->extensions ) { for ( i = 0; i <= _Thread_Maximum_extensions ; i++ ) the_thread->extensions[i] = NULL; 48b4e: 42b3 1c00 clrl %a3@(00000000,%d1:l:4) * create the extension long after tasks have been created * so they cannot rely on the thread create user extension * call. */ if ( the_thread->extensions ) { for ( i = 0; i <= _Thread_Maximum_extensions ; i++ ) 48b52: 5280 addql #1,%d0 48b54: 2200 movel %d0,%d1 48b56: b088 cmpl %a0,%d0 48b58: 6200 fea8 bhiw 48a02 <_Thread_Initialize+0x7e> the_thread->extensions[i] = NULL; 48b5c: 42b3 1c00 clrl %a3@(00000000,%d1:l:4) * create the extension long after tasks have been created * so they cannot rely on the thread create user extension * call. */ if ( the_thread->extensions ) { for ( i = 0; i <= _Thread_Maximum_extensions ; i++ ) 48b60: 5280 addql #1,%d0 48b62: 2200 movel %d0,%d1 48b64: b088 cmpl %a0,%d0 48b66: 63e6 blss 48b4e <_Thread_Initialize+0x1ca> 48b68: 6000 fe98 braw 48a02 <_Thread_Initialize+0x7e> extension_status = _User_extensions_Thread_create( the_thread ); if ( extension_status ) return true; failed: if ( the_thread->libc_reent ) 48b6c: 202a 00f8 movel %a2@(248),%d0 <== NOT EXECUTED size_t actual_stack_size = 0; void *stack = NULL; #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) void *fp_area; #endif void *sched = NULL; 48b70: 4283 clrl %d3 <== NOT EXECUTED extension_status = _User_extensions_Thread_create( the_thread ); if ( extension_status ) return true; failed: if ( the_thread->libc_reent ) 48b72: 4a80 tstl %d0 <== NOT EXECUTED 48b74: 6600 ff0e bnew 48a84 <_Thread_Initialize+0x100> <== NOT EXECUTED 48b78: 6000 ff14 braw 48a8e <_Thread_Initialize+0x10a> <== NOT EXECUTED =============================================================================== 0004cf14 <_Thread_Reset>: void _Thread_Reset( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { 4cf14: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4cf18: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4cf1a: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED the_thread->resource_count = 0; the_thread->is_preemptible = the_thread->Start.is_preemptible; the_thread->budget_algorithm = the_thread->Start.budget_algorithm; 4cf1e: 256a 00a0 007a movel %a2@(160),%a2@(122) <== NOT EXECUTED the_thread->budget_callout = the_thread->Start.budget_callout; 4cf24: 256a 00a4 007e movel %a2@(164),%a2@(126) <== NOT EXECUTED the_thread->Start.pointer_argument = pointer_argument; 4cf2a: 256e 000c 0096 movel %fp@(12),%a2@(150) <== NOT EXECUTED the_thread->Start.numeric_argument = numeric_argument; 4cf30: 256e 0010 009a movel %fp@(16),%a2@(154) <== NOT EXECUTED void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { the_thread->resource_count = 0; the_thread->is_preemptible = the_thread->Start.is_preemptible; 4cf36: 156a 009e 0074 moveb %a2@(158),%a2@(116) <== NOT EXECUTED Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { the_thread->resource_count = 0; 4cf3c: 42aa 001c clrl %a2@(28) <== NOT EXECUTED the_thread->budget_callout = the_thread->Start.budget_callout; the_thread->Start.pointer_argument = pointer_argument; the_thread->Start.numeric_argument = numeric_argument; if ( !_Thread_queue_Extract_with_proxy( the_thread ) ) { 4cf40: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4cf42: 4eb9 0004 9be0 jsr 49be0 <_Thread_queue_Extract_with_proxy><== NOT EXECUTED 4cf48: 588f addql #4,%sp <== NOT EXECUTED 4cf4a: 4a00 tstb %d0 <== NOT EXECUTED 4cf4c: 6608 bnes 4cf56 <_Thread_Reset+0x42> <== NOT EXECUTED if ( _Watchdog_Is_active( &the_thread->Timer ) ) 4cf4e: 7002 moveq #2,%d0 <== NOT EXECUTED 4cf50: b0aa 0050 cmpl %a2@(80),%d0 <== NOT EXECUTED 4cf54: 672a beqs 4cf80 <_Thread_Reset+0x6c> <== NOT EXECUTED (void) _Watchdog_Remove( &the_thread->Timer ); } if ( the_thread->current_priority != the_thread->Start.initial_priority ) { 4cf56: 202a 00ac movel %a2@(172),%d0 <== NOT EXECUTED 4cf5a: b0aa 0014 cmpl %a2@(20),%d0 <== NOT EXECUTED 4cf5e: 6718 beqs 4cf78 <_Thread_Reset+0x64> <== NOT EXECUTED the_thread->real_priority = the_thread->Start.initial_priority; 4cf60: 2540 0018 movel %d0,%a2@(24) <== NOT EXECUTED _Thread_Set_priority( the_thread, the_thread->Start.initial_priority ); 4cf64: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED } } 4cf68: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED (void) _Watchdog_Remove( &the_thread->Timer ); } if ( the_thread->current_priority != the_thread->Start.initial_priority ) { the_thread->real_priority = the_thread->Start.initial_priority; _Thread_Set_priority( the_thread, the_thread->Start.initial_priority ); 4cf6c: 2d40 000c movel %d0,%fp@(12) <== NOT EXECUTED } } 4cf70: 4e5e unlk %fp <== NOT EXECUTED (void) _Watchdog_Remove( &the_thread->Timer ); } if ( the_thread->current_priority != the_thread->Start.initial_priority ) { the_thread->real_priority = the_thread->Start.initial_priority; _Thread_Set_priority( the_thread, the_thread->Start.initial_priority ); 4cf72: 4ef9 0004 9e20 jmp 49e20 <_Thread_Set_priority> <== NOT EXECUTED } } 4cf78: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4cf7c: 4e5e unlk %fp <== NOT EXECUTED 4cf7e: 4e75 rts <== NOT EXECUTED the_thread->Start.numeric_argument = numeric_argument; if ( !_Thread_queue_Extract_with_proxy( the_thread ) ) { if ( _Watchdog_Is_active( &the_thread->Timer ) ) (void) _Watchdog_Remove( &the_thread->Timer ); 4cf80: 486a 0048 pea %a2@(72) <== NOT EXECUTED 4cf84: 4eb9 0004 a5e8 jsr 4a5e8 <_Watchdog_Remove> <== NOT EXECUTED 4cf8a: 588f addql #4,%sp <== NOT EXECUTED 4cf8c: 60c8 bras 4cf56 <_Thread_Reset+0x42> <== NOT EXECUTED ... =============================================================================== 00049d90 <_Thread_Restart>: */ RTEMS_INLINE_ROUTINE bool _States_Is_dormant ( States_Control the_states ) { return (the_states & STATES_DORMANT); 49d90: 7001 moveq #1,%d0 <== NOT EXECUTED bool _Thread_Restart( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { 49d92: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 49d96: 2f0a movel %a2,%sp@- <== NOT EXECUTED 49d98: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 49d9c: c0aa 0010 andl %a2@(16),%d0 <== NOT EXECUTED if ( !_States_Is_dormant( the_thread->current_state ) ) { 49da0: 670a beqs 49dac <_Thread_Restart+0x1c> <== NOT EXECUTED return true; } return false; } 49da2: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 49da6: 4e5e unlk %fp <== NOT EXECUTED _Thread_Restart_self(); return true; } return false; 49da8: 4200 clrb %d0 <== NOT EXECUTED } 49daa: 4e75 rts <== NOT EXECUTED Thread_Entry_numeric_type numeric_argument ) { if ( !_States_Is_dormant( the_thread->current_state ) ) { _Thread_Set_transient( the_thread ); 49dac: 2f0a movel %a2,%sp@- <== NOT EXECUTED 49dae: 4eb9 0004 9e98 jsr 49e98 <_Thread_Set_transient> <== NOT EXECUTED _Thread_Reset( the_thread, pointer_argument, numeric_argument ); 49db4: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 49db8: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 49dbc: 2f0a movel %a2,%sp@- <== NOT EXECUTED 49dbe: 4eb9 0004 cf14 jsr 4cf14 <_Thread_Reset> <== NOT EXECUTED _Thread_Load_environment( the_thread ); 49dc4: 2f0a movel %a2,%sp@- <== NOT EXECUTED 49dc6: 4eb9 0004 cbf8 jsr 4cbf8 <_Thread_Load_environment> <== NOT EXECUTED _Thread_Ready( the_thread ); 49dcc: 2f0a movel %a2,%sp@- <== NOT EXECUTED 49dce: 4eb9 0004 cedc jsr 4cedc <_Thread_Ready> <== NOT EXECUTED _User_extensions_Thread_restart( the_thread ); 49dd4: 2f0a movel %a2,%sp@- <== NOT EXECUTED 49dd6: 4eb9 0004 a3cc jsr 4a3cc <_User_extensions_Thread_restart> <== NOT EXECUTED if ( _Thread_Is_executing ( the_thread ) ) 49ddc: 4fef 001c lea %sp@(28),%sp <== NOT EXECUTED 49de0: b5f9 0005 f62c cmpal 5f62c <_Per_CPU_Information+0xc>,%a2 <== NOT EXECUTED 49de6: 670a beqs 49df2 <_Thread_Restart+0x62> <== NOT EXECUTED return true; } return false; } 49de8: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 49dec: 4e5e unlk %fp <== NOT EXECUTED _User_extensions_Thread_restart( the_thread ); if ( _Thread_Is_executing ( the_thread ) ) _Thread_Restart_self(); return true; 49dee: 7001 moveq #1,%d0 <== NOT EXECUTED } return false; } 49df0: 4e75 rts <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Thread_Restart_self( void ) { #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( _Thread_Executing->fp_context != NULL ) 49df2: 4aaa 00f4 tstl %a2@(244) <== NOT EXECUTED 49df6: 6712 beqs 49e0a <_Thread_Restart+0x7a> <== NOT EXECUTED _Context_Restore_fp( &_Thread_Executing->fp_context ); 49df8: 486a 00f4 pea %a2@(244) <== NOT EXECUTED 49dfc: 4eb9 0004 a932 jsr 4a932 <_CPU_Context_restore_fp> <== NOT EXECUTED 49e02: 2479 0005 f62c moveal 5f62c <_Per_CPU_Information+0xc>,%a2 <== NOT EXECUTED 49e08: 588f addql #4,%sp <== NOT EXECUTED #endif _CPU_Context_Restart_self( &_Thread_Executing->Registers ); 49e0a: 486a 00c0 pea %a2@(192) <== NOT EXECUTED 49e0e: 4eb9 0004 a7ea jsr 4a7ea <_CPU_Context_Restart_self> <== NOT EXECUTED 49e14: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 49e18: 588f addql #4,%sp <== NOT EXECUTED 49e1a: 4e5e unlk %fp <== NOT EXECUTED _User_extensions_Thread_restart( the_thread ); if ( _Thread_Is_executing ( the_thread ) ) _Thread_Restart_self(); return true; 49e1c: 7001 moveq #1,%d0 <== NOT EXECUTED } return false; } =============================================================================== 0004c828 <_Thread_Resume>: { ISR_Level level; States_Control current_state; _ISR_Disable( level ); 4c828: 203c 0000 0700 movel #1792,%d0 void _Thread_Resume( Thread_Control *the_thread, bool force ) { 4c82e: 4e56 0000 linkw %fp,#0 4c832: 206e 0008 moveal %fp@(8),%a0 4c836: 2f02 movel %d2,%sp@- ISR_Level level; States_Control current_state; _ISR_Disable( level ); 4c838: 40c2 movew %sr,%d2 4c83a: 8082 orl %d2,%d0 4c83c: 46c0 movew %d0,%sr current_state = the_thread->current_state; 4c83e: 2028 0010 movel %a0@(16),%d0 if ( current_state & STATES_SUSPENDED ) { 4c842: 0800 0001 btst #1,%d0 4c846: 670a beqs 4c852 <_Thread_Resume+0x2a> <== NEVER TAKEN RTEMS_INLINE_ROUTINE States_Control _States_Clear ( States_Control states_to_clear, States_Control current_state ) { return (current_state & ~states_to_clear); 4c848: 72fd moveq #-3,%d1 4c84a: c081 andl %d1,%d0 current_state = the_thread->current_state = _States_Clear(STATES_SUSPENDED, current_state); 4c84c: 2140 0010 movel %d0,%a0@(16) if ( _States_Is_ready( current_state ) ) { 4c850: 670a beqs 4c85c <_Thread_Resume+0x34> <== ALWAYS TAKEN _Scheduler_Unblock( &_Scheduler, the_thread ); } } _ISR_Enable( level ); 4c852: 46c2 movew %d2,%sr <== NOT EXECUTED } 4c854: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 4c858: 4e5e unlk %fp <== NOT EXECUTED 4c85a: 4e75 rts <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Scheduler_Unblock( Scheduler_Control *the_scheduler, Thread_Control *the_thread ) { the_scheduler->Operations.unblock( the_scheduler, the_thread ); 4c85c: 2f08 movel %a0,%sp@- 4c85e: 4879 0006 2296 pea 62296 <_Scheduler> 4c864: 2079 0006 22a6 moveal 622a6 <_Scheduler+0x10>,%a0 4c86a: 4e90 jsr %a0@ 4c86c: 508f addql #8,%sp if ( _States_Is_ready( current_state ) ) { _Scheduler_Unblock( &_Scheduler, the_thread ); } } _ISR_Enable( level ); 4c86e: 46c2 movew %d2,%sr } 4c870: 242e fffc movel %fp@(-4),%d2 4c874: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 0004917c <_Thread_Set_priority>: void _Thread_Set_priority( Thread_Control *the_thread, Priority_Control new_priority ) { 4917c: 4e56 0000 linkw %fp,#0 RTEMS_INLINE_ROUTINE void _Scheduler_Thread_scheduler_update( Scheduler_Control *the_scheduler, Thread_Control *the_thread ) { the_scheduler->Operations.scheduler_update( the_scheduler, the_thread ); 49180: 203c 0005 e54e movel #386382,%d0 49186: 206e 0008 moveal %fp@(8),%a0 the_thread->current_priority = new_priority; 4918a: 216e 000c 0014 movel %fp@(12),%a0@(20) 49190: 2279 0005 e56a moveal 5e56a <_Scheduler+0x1c>,%a1 49196: 2d40 0008 movel %d0,%fp@(8) 4919a: 2d48 000c movel %a0,%fp@(12) _Scheduler_Thread_scheduler_update(&_Scheduler, the_thread); } 4919e: 4e5e unlk %fp 491a0: 4ed1 jmp %a1@ ... =============================================================================== 000491a4 <_Thread_Set_state>: States_Control state ) { ISR_Level level; _ISR_Disable( level ); 491a4: 203c 0000 0700 movel #1792,%d0 void _Thread_Set_state( Thread_Control *the_thread, States_Control state ) { 491aa: 4e56 0000 linkw %fp,#0 491ae: 206e 0008 moveal %fp@(8),%a0 491b2: 2f02 movel %d2,%sp@- 491b4: 222e 000c movel %fp@(12),%d1 ISR_Level level; _ISR_Disable( level ); 491b8: 40c2 movew %sr,%d2 491ba: 8082 orl %d2,%d0 491bc: 46c0 movew %d0,%sr if ( !_States_Is_ready( the_thread->current_state ) ) { 491be: 2028 0010 movel %a0@(16),%d0 491c2: 6710 beqs 491d4 <_Thread_Set_state+0x30> <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE States_Control _States_Set ( States_Control states_to_set, States_Control current_state ) { return (current_state | states_to_set); 491c4: 8280 orl %d0,%d1 <== NOT EXECUTED 491c6: 2141 0010 movel %d1,%a0@(16) <== NOT EXECUTED the_thread->current_state = _States_Set( state, the_thread->current_state ); _ISR_Enable( level ); 491ca: 46c2 movew %d2,%sr <== NOT EXECUTED the_thread->current_state = state; _Scheduler_Block( &_Scheduler, the_thread); _ISR_Enable( level ); } 491cc: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 491d0: 4e5e unlk %fp <== NOT EXECUTED 491d2: 4e75 rts <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Scheduler_Block( Scheduler_Control *the_scheduler, Thread_Control *the_thread ) { the_scheduler->Operations.block( the_scheduler, the_thread ); 491d4: 2f08 movel %a0,%sp@- 491d6: 4879 0005 e54e pea 5e54e <_Scheduler> _States_Set( state, the_thread->current_state ); _ISR_Enable( level ); return; } the_thread->current_state = state; 491dc: 2141 0010 movel %d1,%a0@(16) 491e0: 2079 0005 e55a moveal 5e55a <_Scheduler+0xc>,%a0 491e6: 4e90 jsr %a0@ _Scheduler_Block( &_Scheduler, the_thread); _ISR_Enable( level ); 491e8: 46c2 movew %d2,%sr 491ea: 508f addql #8,%sp } 491ec: 242e fffc movel %fp@(-4),%d2 491f0: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 000491f4 <_Thread_Set_transient>: ) { ISR_Level level; uint32_t old_state; _ISR_Disable( level ); 491f4: 203c 0000 0700 movel #1792,%d0 */ void _Thread_Set_transient( Thread_Control *the_thread ) { 491fa: 4e56 0000 linkw %fp,#0 491fe: 206e 0008 moveal %fp@(8),%a0 49202: 2f02 movel %d2,%sp@- ISR_Level level; uint32_t old_state; _ISR_Disable( level ); 49204: 40c1 movew %sr,%d1 49206: 8081 orl %d1,%d0 49208: 46c0 movew %d0,%sr old_state = the_thread->current_state; 4920a: 2028 0010 movel %a0@(16),%d0 4920e: 7404 moveq #4,%d2 49210: 8480 orl %d0,%d2 49212: 2142 0010 movel %d2,%a0@(16) the_thread->current_state = _States_Set( STATES_TRANSIENT, old_state ); /* FIXME: need to check which scheduler to use? */ if ( _States_Is_ready( old_state ) ) { 49216: 4a80 tstl %d0 49218: 661a bnes 49234 <_Thread_Set_transient+0x40> RTEMS_INLINE_ROUTINE void _Scheduler_priority_Ready_queue_extract( Thread_Control *the_thread ) { Chain_Control *ready = the_thread->scheduler.priority->ready_chain; 4921a: 2268 008a moveal %a0@(138),%a1 4921e: 2251 moveal %a1@,%a1 if ( _Chain_Has_only_one_node( ready ) ) { 49220: 2029 0008 movel %a1@(8),%d0 49224: b091 cmpl %a1@,%d0 49226: 6714 beqs 4923c <_Thread_Set_transient+0x48> <== ALWAYS TAKEN ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; 49228: 2250 moveal %a0@,%a1 <== NOT EXECUTED previous = the_node->previous; 4922a: 2068 0004 moveal %a0@(4),%a0 <== NOT EXECUTED next->previous = previous; 4922e: 2348 0004 movel %a0,%a1@(4) <== NOT EXECUTED previous->next = next; 49232: 2089 movel %a1,%a0@ <== NOT EXECUTED _Scheduler_priority_Ready_queue_extract( the_thread); } _ISR_Enable( level ); 49234: 46c1 movew %d1,%sr } 49236: 241f movel %sp@+,%d2 49238: 4e5e unlk %fp 4923a: 4e75 rts RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); 4923c: 2409 movel %a1,%d2 4923e: 5882 addql #4,%d2 head->next = tail; head->previous = NULL; 49240: 42a9 0004 clrl %a1@(4) RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); 49244: 2282 movel %d2,%a1@ head->next = tail; head->previous = NULL; tail->previous = head; 49246: 2349 0008 movel %a1,%a1@(8) _Chain_Initialize_empty( ready ); _Priority_bit_map_Remove( &the_thread->scheduler.priority->Priority_map ); 4924a: 2068 008a moveal %a0@(138),%a0 RTEMS_INLINE_ROUTINE void _Priority_bit_map_Remove ( Priority_bit_map_Information *the_priority_map ) { *the_priority_map->minor &= the_priority_map->block_minor; 4924e: 2268 0004 moveal %a0@(4),%a1 49252: 3028 000e movew %a0@(14),%d0 49256: 3411 movew %a1@,%d2 49258: c082 andl %d2,%d0 4925a: 3280 movew %d0,%a1@ if ( *the_priority_map->minor == 0 ) 4925c: 66d6 bnes 49234 <_Thread_Set_transient+0x40> _Priority_Major_bit_map &= the_priority_map->block_major; 4925e: 3439 0005 e694 movew 5e694 <_Priority_Major_bit_map>,%d2 49264: 3028 000c movew %a0@(12),%d0 49268: c082 andl %d2,%d0 4926a: 33c0 0005 e694 movew %d0,5e694 <_Priority_Major_bit_map> /* FIXME: need to check which scheduler to use? */ if ( _States_Is_ready( old_state ) ) { _Scheduler_priority_Ready_queue_extract( the_thread); } _ISR_Enable( level ); 49270: 46c1 movew %d1,%sr } 49272: 241f movel %sp@+,%d2 49274: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 000492dc <_Thread_Stack_Free>: */ void _Thread_Stack_Free( Thread_Control *the_thread ) { 492dc: 4e56 0000 linkw %fp,#0 492e0: 206e 0008 moveal %fp@(8),%a0 * Call ONLY the CPU table stack free hook, or the * the RTEMS workspace free. This is so the free * routine properly matches the allocation of the stack. */ if ( Configuration.stack_free_hook ) 492e4: 2279 0005 ccbc moveal 5ccbc ,%a1 492ea: 4a89 tstl %a1 492ec: 670a beqs 492f8 <_Thread_Stack_Free+0x1c> <== ALWAYS TAKEN (*Configuration.stack_free_hook)( the_thread->Start.Initial_stack.area ); 492ee: 2d68 00b4 0008 movel %a0@(180),%fp@(8) <== NOT EXECUTED else _Workspace_Free( the_thread->Start.Initial_stack.area ); } 492f4: 4e5e unlk %fp <== NOT EXECUTED * the RTEMS workspace free. This is so the free * routine properly matches the allocation of the stack. */ if ( Configuration.stack_free_hook ) (*Configuration.stack_free_hook)( the_thread->Start.Initial_stack.area ); 492f6: 4ed1 jmp %a1@ <== NOT EXECUTED else _Workspace_Free( the_thread->Start.Initial_stack.area ); 492f8: 2d68 00b4 0008 movel %a0@(180),%fp@(8) } 492fe: 4e5e unlk %fp */ if ( Configuration.stack_free_hook ) (*Configuration.stack_free_hook)( the_thread->Start.Initial_stack.area ); else _Workspace_Free( the_thread->Start.Initial_stack.area ); 49300: 4ef9 0004 9a9e jmp 49a9e <_Workspace_Free> ... =============================================================================== 00049358 <_Thread_Start>: */ RTEMS_INLINE_ROUTINE bool _States_Is_dormant ( States_Control the_states ) { return (the_states & STATES_DORMANT); 49358: 7001 moveq #1,%d0 Thread_Start_types the_prototype, void *entry_point, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { 4935a: 4e56 0000 linkw %fp,#0 4935e: 2f0a movel %a2,%sp@- 49360: 246e 0008 moveal %fp@(8),%a2 49364: c0aa 0010 andl %a2@(16),%d0 if ( _States_Is_dormant( the_thread->current_state ) ) { 49368: 660a bnes 49374 <_Thread_Start+0x1c> <== ALWAYS TAKEN return true; } return false; } 4936a: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4936e: 4e5e unlk %fp <== NOT EXECUTED _User_extensions_Thread_start( the_thread ); return true; } return false; 49370: 4200 clrb %d0 <== NOT EXECUTED } 49372: 4e75 rts <== NOT EXECUTED the_thread->Start.prototype = the_prototype; the_thread->Start.pointer_argument = pointer_argument; the_thread->Start.numeric_argument = numeric_argument; _Thread_Load_environment( the_thread ); 49374: 2f0a movel %a2,%sp@- Thread_Entry_numeric_type numeric_argument ) { if ( _States_Is_dormant( the_thread->current_state ) ) { the_thread->Start.entry_point = (Thread_Entry) entry_point; 49376: 256e 0010 008e movel %fp@(16),%a2@(142) the_thread->Start.prototype = the_prototype; 4937c: 256e 000c 0092 movel %fp@(12),%a2@(146) the_thread->Start.pointer_argument = pointer_argument; 49382: 256e 0014 0096 movel %fp@(20),%a2@(150) the_thread->Start.numeric_argument = numeric_argument; 49388: 256e 0018 009a movel %fp@(24),%a2@(154) _Thread_Load_environment( the_thread ); 4938e: 4eb9 0004 bf10 jsr 4bf10 <_Thread_Load_environment> _Thread_Ready( the_thread ); 49394: 2f0a movel %a2,%sp@- 49396: 4eb9 0004 c1f4 jsr 4c1f4 <_Thread_Ready> _User_extensions_Thread_start( the_thread ); 4939c: 2f0a movel %a2,%sp@- 4939e: 4eb9 0004 9728 jsr 49728 <_User_extensions_Thread_start> return true; } return false; } 493a4: 246e fffc moveal %fp@(-4),%a2 _Thread_Ready( the_thread ); _User_extensions_Thread_start( the_thread ); return true; 493a8: 4fef 000c lea %sp@(12),%sp } return false; } 493ac: 4e5e unlk %fp _Thread_Ready( the_thread ); _User_extensions_Thread_start( the_thread ); return true; 493ae: 7001 moveq #1,%d0 } return false; } ... =============================================================================== 000493b4 <_Thread_Suspend>: Thread_Control *the_thread ) { ISR_Level level; _ISR_Disable( level ); 493b4: 203c 0000 0700 movel #1792,%d0 */ void _Thread_Suspend( Thread_Control *the_thread ) { 493ba: 4e56 0000 linkw %fp,#0 493be: 206e 0008 moveal %fp@(8),%a0 493c2: 2f02 movel %d2,%sp@- ISR_Level level; _ISR_Disable( level ); 493c4: 40c2 movew %sr,%d2 493c6: 8082 orl %d2,%d0 493c8: 46c0 movew %d0,%sr if ( !_States_Is_ready( the_thread->current_state ) ) { 493ca: 2028 0010 movel %a0@(16),%d0 493ce: 6712 beqs 493e2 <_Thread_Suspend+0x2e> <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE States_Control _States_Set ( States_Control states_to_set, States_Control current_state ) { return (current_state | states_to_set); 493d0: 7202 moveq #2,%d1 <== NOT EXECUTED 493d2: 8280 orl %d0,%d1 <== NOT EXECUTED 493d4: 2141 0010 movel %d1,%a0@(16) <== NOT EXECUTED the_thread->current_state = _States_Set( STATES_SUSPENDED, the_thread->current_state ); _ISR_Enable( level ); 493d8: 46c2 movew %d2,%sr <== NOT EXECUTED the_thread->current_state = STATES_SUSPENDED; _Scheduler_Block(&_Scheduler, the_thread); _ISR_Enable( level ); } 493da: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 493de: 4e5e unlk %fp <== NOT EXECUTED 493e0: 4e75 rts <== NOT EXECUTED 493e2: 2f08 movel %a0,%sp@- 493e4: 4879 0005 e54e pea 5e54e <_Scheduler> _States_Set( STATES_SUSPENDED, the_thread->current_state ); _ISR_Enable( level ); return; } the_thread->current_state = STATES_SUSPENDED; 493ea: 7002 moveq #2,%d0 493ec: 2140 0010 movel %d0,%a0@(16) 493f0: 2079 0005 e55a moveal 5e55a <_Scheduler+0xc>,%a0 493f6: 4e90 jsr %a0@ _Scheduler_Block(&_Scheduler, the_thread); _ISR_Enable( level ); 493f8: 46c2 movew %d2,%sr 493fa: 508f addql #8,%sp } 493fc: 242e fffc movel %fp@(-4),%d2 49400: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00049404 <_Thread_Tickle_timeslice>: * * Output parameters: NONE */ void _Thread_Tickle_timeslice( void ) { 49404: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 49408: 2f0a movel %a2,%sp@- <== NOT EXECUTED Thread_Control *executing; executing = _Thread_Executing; 4940a: 2479 0005 e684 moveal 5e684 <_Per_CPU_Information+0xc>,%a2 <== NOT EXECUTED /* * If the thread is not preemptible or is not ready, then * just return. */ if ( !executing->is_preemptible ) 49410: 4a2a 0074 tstb %a2@(116) <== NOT EXECUTED 49414: 670e beqs 49424 <_Thread_Tickle_timeslice+0x20> <== NOT EXECUTED return; if ( !_States_Is_ready( executing->current_state ) ) 49416: 4aaa 0010 tstl %a2@(16) <== NOT EXECUTED 4941a: 6608 bnes 49424 <_Thread_Tickle_timeslice+0x20> <== NOT EXECUTED /* * The cpu budget algorithm determines what happens next. */ switch ( executing->budget_algorithm ) { 4941c: 7001 moveq #1,%d0 <== NOT EXECUTED 4941e: b0aa 007a cmpl %a2@(122),%d0 <== NOT EXECUTED 49422: 6708 beqs 4942c <_Thread_Tickle_timeslice+0x28> <== NOT EXECUTED if ( --executing->cpu_time_budget == 0 ) (*executing->budget_callout)( executing ); break; #endif } } 49424: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 49428: 4e5e unlk %fp <== NOT EXECUTED 4942a: 4e75 rts <== NOT EXECUTED case THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE: #if defined(RTEMS_SCORE_THREAD_ENABLE_EXHAUST_TIMESLICE) case THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE: #endif if ( (int)(--executing->cpu_time_budget) <= 0 ) { 4942c: 202a 0076 movel %a2@(118),%d0 <== NOT EXECUTED 49430: 5380 subql #1,%d0 <== NOT EXECUTED 49432: 2540 0076 movel %d0,%a2@(118) <== NOT EXECUTED 49436: 6eec bgts 49424 <_Thread_Tickle_timeslice+0x20> <== NOT EXECUTED * always operates on the scheduler that 'owns' the currently executing * thread. */ RTEMS_INLINE_ROUTINE void _Scheduler_Yield( void ) { _Scheduler.Operations.yield( &_Scheduler ); 49438: 4879 0005 e54e pea 5e54e <_Scheduler> <== NOT EXECUTED 4943e: 2079 0005 e556 moveal 5e556 <_Scheduler+0x8>,%a0 <== NOT EXECUTED 49444: 4e90 jsr %a0@ <== NOT EXECUTED * executing thread's timeslice is reset. Otherwise, the * currently executing thread is placed at the rear of the * FIFO for this priority and a new heir is selected. */ _Scheduler_Yield( ); executing->cpu_time_budget = _Thread_Ticks_per_timeslice; 49446: 588f addql #4,%sp <== NOT EXECUTED 49448: 41f9 0005 e480 lea 5e480 <_Thread_Ticks_per_timeslice>,%a0 <== NOT EXECUTED 4944e: 2550 0076 movel %a0@,%a2@(118) <== NOT EXECUTED if ( --executing->cpu_time_budget == 0 ) (*executing->budget_callout)( executing ); break; #endif } } 49452: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 49456: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 00048364 <_Thread_blocking_operation_Cancel>: /* * If the sync state is timed out, this is very likely not needed. * But better safe than sorry when it comes to critical sections. */ if ( _Watchdog_Is_active( &the_thread->Timer ) ) { 48364: 7202 moveq #2,%d1 <== NOT EXECUTED Thread_blocking_operation_States sync_state __attribute__((unused)), #endif Thread_Control *the_thread, ISR_Level level ) { 48366: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4836a: 202e 0010 movel %fp@(16),%d0 <== NOT EXECUTED 4836e: 2f0a movel %a2,%sp@- <== NOT EXECUTED 48370: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED #endif /* * The thread is not waiting on anything after this completes. */ the_thread->Wait.queue = NULL; 48374: 42aa 0044 clrl %a2@(68) <== NOT EXECUTED /* * If the sync state is timed out, this is very likely not needed. * But better safe than sorry when it comes to critical sections. */ if ( _Watchdog_Is_active( &the_thread->Timer ) ) { 48378: b2aa 0050 cmpl %a2@(80),%d1 <== NOT EXECUTED 4837c: 671c beqs 4839a <_Thread_blocking_operation_Cancel+0x36><== NOT EXECUTED _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); (void) _Watchdog_Remove( &the_thread->Timer ); } else _ISR_Enable( level ); 4837e: 46c0 movew %d0,%sr <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 48380: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } 48384: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 48388: 203c 1003 fff8 movel #268697592,%d0 <== NOT EXECUTED 4838e: 2d40 000c movel %d0,%fp@(12) <== NOT EXECUTED 48392: 4e5e unlk %fp <== NOT EXECUTED 48394: 4ef9 0004 850c jmp 4850c <_Thread_Clear_state> <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_REMOVE_IT; 4839a: 123c 0003 moveb #3,%d1 <== NOT EXECUTED 4839e: 2541 0050 movel %d1,%a2@(80) <== NOT EXECUTED * If the sync state is timed out, this is very likely not needed. * But better safe than sorry when it comes to critical sections. */ if ( _Watchdog_Is_active( &the_thread->Timer ) ) { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); 483a2: 46c0 movew %d0,%sr <== NOT EXECUTED (void) _Watchdog_Remove( &the_thread->Timer ); 483a4: 486a 0048 pea %a2@(72) <== NOT EXECUTED 483a8: 4eb9 0004 9900 jsr 49900 <_Watchdog_Remove> <== NOT EXECUTED 483ae: 588f addql #4,%sp <== NOT EXECUTED 483b0: 203c 1003 fff8 movel #268697592,%d0 <== NOT EXECUTED 483b6: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } 483ba: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 483be: 2d40 000c movel %d0,%fp@(12) <== NOT EXECUTED 483c2: 4e5e unlk %fp <== NOT EXECUTED 483c4: 4ef9 0004 850c jmp 4850c <_Thread_Clear_state> <== NOT EXECUTED ... =============================================================================== 00048c08 <_Thread_queue_Dequeue>: Thread_blocking_operation_States sync_state; if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) dequeue_p = _Thread_queue_Dequeue_priority; else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */ dequeue_p = _Thread_queue_Dequeue_fifo; 48c08: 41f9 0004 bf8c lea 4bf8c <_Thread_queue_Dequeue_fifo>,%a0 Thread_Control *(*dequeue_p)( Thread_queue_Control * ); Thread_Control *the_thread; ISR_Level level; Thread_blocking_operation_States sync_state; if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) 48c0e: 7001 moveq #1,%d0 */ Thread_Control *_Thread_queue_Dequeue( Thread_queue_Control *the_thread_queue ) { 48c10: 4e56 fff4 linkw %fp,#-12 48c14: 48d7 040c moveml %d2-%d3/%a2,%sp@ 48c18: 246e 0008 moveal %fp@(8),%a2 Thread_Control *(*dequeue_p)( Thread_queue_Control * ); Thread_Control *the_thread; ISR_Level level; Thread_blocking_operation_States sync_state; if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) 48c1c: b0aa 0034 cmpl %a2@(52),%d0 48c20: 6722 beqs 48c44 <_Thread_queue_Dequeue+0x3c> dequeue_p = _Thread_queue_Dequeue_priority; else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */ dequeue_p = _Thread_queue_Dequeue_fifo; the_thread = (*dequeue_p)( the_thread_queue ); 48c22: 2f0a movel %a2,%sp@- 48c24: 4e90 jsr %a0@ _ISR_Disable( level ); 48c26: 223c 0000 0700 movel #1792,%d1 48c2c: 40c2 movew %sr,%d2 48c2e: 8282 orl %d2,%d1 48c30: 46c1 movew %d1,%sr if ( !the_thread ) { 48c32: 588f addql #4,%sp 48c34: 4a80 tstl %d0 48c36: 6728 beqs 48c60 <_Thread_queue_Dequeue+0x58> <== ALWAYS TAKEN (sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) ) { the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SATISFIED; the_thread = _Thread_Executing; } } _ISR_Enable( level ); 48c38: 46c2 movew %d2,%sr return the_thread; } 48c3a: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 48c40: 4e5e unlk %fp 48c42: 4e75 rts if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) dequeue_p = _Thread_queue_Dequeue_priority; else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */ dequeue_p = _Thread_queue_Dequeue_fifo; the_thread = (*dequeue_p)( the_thread_queue ); 48c44: 2f0a movel %a2,%sp@- Thread_Control *the_thread; ISR_Level level; Thread_blocking_operation_States sync_state; if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) dequeue_p = _Thread_queue_Dequeue_priority; 48c46: 41f9 0004 8c84 lea 48c84 <_Thread_queue_Dequeue_priority>,%a0 else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */ dequeue_p = _Thread_queue_Dequeue_fifo; the_thread = (*dequeue_p)( the_thread_queue ); 48c4c: 4e90 jsr %a0@ _ISR_Disable( level ); 48c4e: 223c 0000 0700 movel #1792,%d1 48c54: 40c2 movew %sr,%d2 48c56: 8282 orl %d2,%d1 48c58: 46c1 movew %d1,%sr if ( !the_thread ) { 48c5a: 588f addql #4,%sp 48c5c: 4a80 tstl %d0 48c5e: 66d8 bnes 48c38 <_Thread_queue_Dequeue+0x30> sync_state = the_thread_queue->sync_state; if ( (sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) || 48c60: 222a 0030 movel %a2@(48),%d1 48c64: 7601 moveq #1,%d3 48c66: 5381 subql #1,%d1 48c68: b681 cmpl %d1,%d3 48c6a: 65cc bcss 48c38 <_Thread_queue_Dequeue+0x30> <== ALWAYS TAKEN (sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) ) { the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SATISFIED; 48c6c: 7203 moveq #3,%d1 <== NOT EXECUTED the_thread = _Thread_Executing; 48c6e: 2039 0005 e684 movel 5e684 <_Per_CPU_Information+0xc>,%d0 <== NOT EXECUTED _ISR_Disable( level ); if ( !the_thread ) { sync_state = the_thread_queue->sync_state; if ( (sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) || (sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) ) { the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SATISFIED; 48c74: 2541 0030 movel %d1,%a2@(48) <== NOT EXECUTED the_thread = _Thread_Executing; } } _ISR_Enable( level ); 48c78: 46c2 movew %d2,%sr <== NOT EXECUTED return the_thread; } 48c7a: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 48c80: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 0004bf8c <_Thread_queue_Dequeue_fifo>: ) { ISR_Level level; Thread_Control *the_thread; _ISR_Disable( level ); 4bf8c: 203c 0000 0700 movel #1792,%d0 */ Thread_Control *_Thread_queue_Dequeue_fifo( Thread_queue_Control *the_thread_queue ) { 4bf92: 4e56 0000 linkw %fp,#0 4bf96: 226e 0008 moveal %fp@(8),%a1 4bf9a: 2f0b movel %a3,%sp@- 4bf9c: 2f0a movel %a2,%sp@- ISR_Level level; Thread_Control *the_thread; _ISR_Disable( level ); 4bf9e: 40c1 movew %sr,%d1 4bfa0: 8081 orl %d1,%d0 4bfa2: 46c0 movew %d0,%sr return the_thread; } _ISR_Enable( level ); return NULL; } 4bfa4: 2049 moveal %a1,%a0 4bfa6: 2458 moveal %a0@+,%a2 { ISR_Level level; Thread_Control *the_thread; _ISR_Disable( level ); if ( !_Chain_Is_empty( &the_thread_queue->Queues.Fifo ) ) { 4bfa8: b1ca cmpal %a2,%a0 4bfaa: 6768 beqs 4c014 <_Thread_queue_Dequeue_fifo+0x88><== ALWAYS TAKEN Chain_Control *the_chain ) { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *old_first = head->next; Chain_Node *new_first = old_first->next; 4bfac: 2052 moveal %a2@,%a0 <== NOT EXECUTED the_thread = (Thread_Control *) 4bfae: 264a moveal %a2,%a3 <== NOT EXECUTED _Chain_Get_first_unprotected( &the_thread_queue->Queues.Fifo ); the_thread->Wait.queue = NULL; if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { 4bfb0: 7002 moveq #2,%d0 <== NOT EXECUTED head->next = new_first; 4bfb2: 2288 movel %a0,%a1@ <== NOT EXECUTED new_first->previous = head; 4bfb4: 2149 0004 movel %a1,%a0@(4) <== NOT EXECUTED if ( !_Chain_Is_empty( &the_thread_queue->Queues.Fifo ) ) { the_thread = (Thread_Control *) _Chain_Get_first_unprotected( &the_thread_queue->Queues.Fifo ); the_thread->Wait.queue = NULL; 4bfb8: 42aa 0044 clrl %a2@(68) <== NOT EXECUTED if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { 4bfbc: b0aa 0050 cmpl %a2@(80),%d0 <== NOT EXECUTED 4bfc0: 6720 beqs 4bfe2 <_Thread_queue_Dequeue_fifo+0x56><== NOT EXECUTED _ISR_Enable( level ); 4bfc2: 46c1 movew %d1,%sr <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 4bfc4: 2f3c 1003 fff8 movel #268697592,%sp@- <== NOT EXECUTED 4bfca: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4bfcc: 4eb9 0004 850c jsr 4850c <_Thread_Clear_state> <== NOT EXECUTED return the_thread; } _ISR_Enable( level ); return NULL; } 4bfd2: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 4bfd6: 200b movel %a3,%d0 <== NOT EXECUTED 4bfd8: 508f addql #8,%sp <== NOT EXECUTED 4bfda: 266e fffc moveal %fp@(-4),%a3 <== NOT EXECUTED 4bfde: 4e5e unlk %fp <== NOT EXECUTED 4bfe0: 4e75 rts <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_REMOVE_IT; 4bfe2: 7003 moveq #3,%d0 <== NOT EXECUTED 4bfe4: 2540 0050 movel %d0,%a2@(80) <== NOT EXECUTED if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { _ISR_Enable( level ); _Thread_Unblock( the_thread ); } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); 4bfe8: 46c1 movew %d1,%sr <== NOT EXECUTED (void) _Watchdog_Remove( &the_thread->Timer ); 4bfea: 486a 0048 pea %a2@(72) <== NOT EXECUTED 4bfee: 4eb9 0004 9900 jsr 49900 <_Watchdog_Remove> <== NOT EXECUTED 4bff4: 2f3c 1003 fff8 movel #268697592,%sp@- <== NOT EXECUTED 4bffa: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4bffc: 4eb9 0004 850c jsr 4850c <_Thread_Clear_state> <== NOT EXECUTED return the_thread; } _ISR_Enable( level ); return NULL; } 4c002: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 4c006: 200b movel %a3,%d0 <== NOT EXECUTED 4c008: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4c00c: 266e fffc moveal %fp@(-4),%a3 <== NOT EXECUTED 4c010: 4e5e unlk %fp <== NOT EXECUTED 4c012: 4e75 rts <== NOT EXECUTED #endif return the_thread; } _ISR_Enable( level ); 4c014: 46c1 movew %d1,%sr return NULL; 4c016: 97cb subal %a3,%a3 } 4c018: 200b movel %a3,%d0 4c01a: 246e fff8 moveal %fp@(-8),%a2 4c01e: 266e fffc moveal %fp@(-4),%a3 4c022: 4e5e unlk %fp ... =============================================================================== 00048c84 <_Thread_queue_Dequeue_priority>: Chain_Node *new_second_node; Chain_Node *last_node; Chain_Node *next_node; Chain_Node *previous_node; _ISR_Disable( level ); 48c84: 203c 0000 0700 movel #1792,%d0 */ Thread_Control *_Thread_queue_Dequeue_priority( Thread_queue_Control *the_thread_queue ) { 48c8a: 4e56 ffe8 linkw %fp,#-24 48c8e: 48d7 3c0c moveml %d2-%d3/%a2-%a5,%sp@ 48c92: 266e 0008 moveal %fp@(8),%a3 Chain_Node *new_second_node; Chain_Node *last_node; Chain_Node *next_node; Chain_Node *previous_node; _ISR_Disable( level ); 48c96: 40c3 movew %sr,%d3 48c98: 8083 orl %d3,%d0 48c9a: 46c0 movew %d0,%sr for( index=0 ; 48c9c: 4280 clrl %d0 Chain_Node *new_second_node; Chain_Node *last_node; Chain_Node *next_node; Chain_Node *previous_node; _ISR_Disable( level ); 48c9e: 204b moveal %a3,%a0 RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( const Chain_Control *the_chain ) { return _Chain_Immutable_first( the_chain ) == _Chain_Immutable_tail( the_chain ); 48ca0: 2400 movel %d0,%d2 48ca2: 2200 movel %d0,%d1 for( index=0 ; index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ; index++ ) { 48ca4: 5280 addql #1,%d0 48ca6: e58a lsll #2,%d2 48ca8: e989 lsll #4,%d1 #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif return( the_thread ); } 48caa: 2450 moveal %a0@,%a2 48cac: 9282 subl %d2,%d1 Chain_Node *previous_node; _ISR_Disable( level ); for( index=0 ; index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ; index++ ) { 48cae: 41e8 000c lea %a0@(12),%a0 48cb2: 43f3 1804 lea %a3@(00000004,%d1:l),%a1 if ( !_Chain_Is_empty( &the_thread_queue->Queues.Priority[ index ] ) ) { 48cb6: b3ca cmpal %a2,%a1 48cb8: 6616 bnes 48cd0 <_Thread_queue_Dequeue_priority+0x4c> Chain_Node *last_node; Chain_Node *next_node; Chain_Node *previous_node; _ISR_Disable( level ); for( index=0 ; 48cba: 7204 moveq #4,%d1 48cbc: b280 cmpl %d0,%d1 48cbe: 66e0 bnes 48ca0 <_Thread_queue_Dequeue_priority+0x1c> } /* * We did not find a thread to unblock. */ _ISR_Enable( level ); 48cc0: 46c3 movew %d3,%sr return NULL; 48cc2: 4282 clrl %d2 #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif return( the_thread ); } 48cc4: 2002 movel %d2,%d0 48cc6: 4cee 3c0c ffe8 moveml %fp@(-24),%d2-%d3/%a2-%a5 48ccc: 4e5e unlk %fp 48cce: 4e75 rts 48cd0: 200a movel %a2,%d0 _ISR_Disable( level ); for( index=0 ; index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ; index++ ) { if ( !_Chain_Is_empty( &the_thread_queue->Queues.Priority[ index ] ) ) { the_thread = (Thread_Control *) _Chain_First( 48cd2: 240a movel %a2,%d2 48cd4: 0680 0000 003c addil #60,%d0 #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif return( the_thread ); } 48cda: 206a 0038 moveal %a2@(56),%a0 dequeue: the_thread->Wait.queue = NULL; new_first_node = _Chain_First( &the_thread->Wait.Block2n ); new_first_thread = (Thread_Control *) new_first_node; next_node = the_thread->Object.Node.next; 48cde: 2252 moveal %a2@,%a1 previous_node = the_thread->Object.Node.previous; 48ce0: 266a 0004 moveal %a2@(4),%a3 */ _ISR_Enable( level ); return NULL; dequeue: the_thread->Wait.queue = NULL; 48ce4: 42aa 0044 clrl %a2@(68) new_first_node = _Chain_First( &the_thread->Wait.Block2n ); new_first_thread = (Thread_Control *) new_first_node; next_node = the_thread->Object.Node.next; previous_node = the_thread->Object.Node.previous; if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) { 48ce8: b088 cmpl %a0,%d0 48cea: 6700 008a beqw 48d76 <_Thread_queue_Dequeue_priority+0xf2> #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif return( the_thread ); } 48cee: 286a 0040 moveal %a2@(64),%a4 <== NOT EXECUTED next_node = the_thread->Object.Node.next; previous_node = the_thread->Object.Node.previous; if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) { last_node = _Chain_Last( &the_thread->Wait.Block2n ); new_second_node = new_first_node->next; 48cf2: 2a50 moveal %a0@,%a5 <== NOT EXECUTED previous_node->next = new_first_node; next_node->previous = new_first_node; 48cf4: 2348 0004 movel %a0,%a1@(4) <== NOT EXECUTED if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) { last_node = _Chain_Last( &the_thread->Wait.Block2n ); new_second_node = new_first_node->next; previous_node->next = new_first_node; 48cf8: 2688 movel %a0,%a3@ <== NOT EXECUTED next_node->previous = new_first_node; new_first_node->next = next_node; new_first_node->previous = previous_node; 48cfa: 214b 0004 movel %a3,%a0@(4) <== NOT EXECUTED last_node = _Chain_Last( &the_thread->Wait.Block2n ); new_second_node = new_first_node->next; previous_node->next = new_first_node; next_node->previous = new_first_node; new_first_node->next = next_node; 48cfe: 2089 movel %a1,%a0@ <== NOT EXECUTED new_first_node->previous = previous_node; if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) { 48d00: 226a 0040 moveal %a2@(64),%a1 <== NOT EXECUTED 48d04: b3ea 0038 cmpal %a2@(56),%a1 <== NOT EXECUTED 48d08: 6716 beqs 48d20 <_Thread_queue_Dequeue_priority+0x9c><== NOT EXECUTED /* > two threads on 2-n */ head = _Chain_Head( &new_first_thread->Wait.Block2n ); tail = _Chain_Tail( &new_first_thread->Wait.Block2n ); new_second_node->previous = head; head->next = new_second_node; 48d0a: 214d 0038 movel %a5,%a0@(56) <== NOT EXECUTED new_first_node->previous = previous_node; if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) { /* > two threads on 2-n */ head = _Chain_Head( &new_first_thread->Wait.Block2n ); tail = _Chain_Tail( &new_first_thread->Wait.Block2n ); 48d0e: 43e8 003c lea %a0@(60),%a1 <== NOT EXECUTED 48d12: 2889 movel %a1,%a4@ <== NOT EXECUTED new_first_node->next = next_node; new_first_node->previous = previous_node; if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) { /* > two threads on 2-n */ head = _Chain_Head( &new_first_thread->Wait.Block2n ); 48d14: 43e8 0038 lea %a0@(56),%a1 <== NOT EXECUTED 48d18: 2b49 0004 movel %a1,%a5@(4) <== NOT EXECUTED tail = _Chain_Tail( &new_first_thread->Wait.Block2n ); new_second_node->previous = head; head->next = new_second_node; tail->previous = last_node; 48d1c: 214c 0040 movel %a4,%a0@(64) <== NOT EXECUTED } else { previous_node->next = next_node; next_node->previous = previous_node; } if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { 48d20: 7002 moveq #2,%d0 48d22: b0aa 0050 cmpl %a2@(80),%d0 48d26: 671e beqs 48d46 <_Thread_queue_Dequeue_priority+0xc2><== NEVER TAKEN _ISR_Enable( level ); 48d28: 46c3 movew %d3,%sr RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 48d2a: 2f3c 1003 fff8 movel #268697592,%sp@- 48d30: 2f0a movel %a2,%sp@- 48d32: 4eb9 0004 850c jsr 4850c <_Thread_Clear_state> 48d38: 508f addql #8,%sp #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif return( the_thread ); } 48d3a: 2002 movel %d2,%d0 48d3c: 4cee 3c0c ffe8 moveml %fp@(-24),%d2-%d3/%a2-%a5 48d42: 4e5e unlk %fp 48d44: 4e75 rts RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_REMOVE_IT; 48d46: 7203 moveq #3,%d1 <== NOT EXECUTED 48d48: 2541 0050 movel %d1,%a2@(80) <== NOT EXECUTED if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { _ISR_Enable( level ); _Thread_Unblock( the_thread ); } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); 48d4c: 46c3 movew %d3,%sr <== NOT EXECUTED (void) _Watchdog_Remove( &the_thread->Timer ); 48d4e: 486a 0048 pea %a2@(72) <== NOT EXECUTED 48d52: 4eb9 0004 9900 jsr 49900 <_Watchdog_Remove> <== NOT EXECUTED 48d58: 2f3c 1003 fff8 movel #268697592,%sp@- <== NOT EXECUTED 48d5e: 2f0a movel %a2,%sp@- <== NOT EXECUTED 48d60: 4eb9 0004 850c jsr 4850c <_Thread_Clear_state> <== NOT EXECUTED 48d66: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif return( the_thread ); } 48d6a: 2002 movel %d2,%d0 <== NOT EXECUTED 48d6c: 4cee 3c0c ffe8 moveml %fp@(-24),%d2-%d3/%a2-%a5 <== NOT EXECUTED 48d72: 4e5e unlk %fp <== NOT EXECUTED 48d74: 4e75 rts <== NOT EXECUTED head->next = new_second_node; tail->previous = last_node; last_node->next = tail; } } else { previous_node->next = next_node; 48d76: 2689 movel %a1,%a3@ next_node->previous = previous_node; 48d78: 234b 0004 movel %a3,%a1@(4) 48d7c: 60a2 bras 48d20 <_Thread_queue_Dequeue_priority+0x9c> ... =============================================================================== 0004c028 <_Thread_queue_Enqueue_fifo>: ) { Thread_blocking_operation_States sync_state; ISR_Level level; _ISR_Disable( level ); 4c028: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED Thread_blocking_operation_States _Thread_queue_Enqueue_fifo ( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread, ISR_Level *level_p ) { 4c02e: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4c032: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 4c036: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4c038: 226e 000c moveal %fp@(12),%a1 <== NOT EXECUTED 4c03c: 2f02 movel %d2,%sp@- <== NOT EXECUTED Thread_blocking_operation_States sync_state; ISR_Level level; _ISR_Disable( level ); 4c03e: 40c1 movew %sr,%d1 <== NOT EXECUTED 4c040: 8081 orl %d1,%d0 <== NOT EXECUTED 4c042: 46c0 movew %d0,%sr <== NOT EXECUTED sync_state = the_thread_queue->sync_state; 4c044: 2028 0030 movel %a0@(48),%d0 <== NOT EXECUTED the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; if (sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) { 4c048: 7401 moveq #1,%d2 <== NOT EXECUTED ISR_Level level; _ISR_Disable( level ); sync_state = the_thread_queue->sync_state; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; 4c04a: 42a8 0030 clrl %a0@(48) <== NOT EXECUTED if (sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) { 4c04e: b480 cmpl %d0,%d2 <== NOT EXECUTED 4c050: 670e beqs 4c060 <_Thread_queue_Enqueue_fifo+0x38><== NOT EXECUTED * * WARNING! Returning with interrupts disabled! */ *level_p = level; return sync_state; } 4c052: 241f movel %sp@+,%d2 <== NOT EXECUTED * For example, the blocking thread could have been given * the mutex by an ISR or timed out. * * WARNING! Returning with interrupts disabled! */ *level_p = level; 4c054: 206e 0010 moveal %fp@(16),%a0 <== NOT EXECUTED return sync_state; } 4c058: 245f moveal %sp@+,%a2 <== NOT EXECUTED 4c05a: 4e5e unlk %fp <== NOT EXECUTED * For example, the blocking thread could have been given * the mutex by an ISR or timed out. * * WARNING! Returning with interrupts disabled! */ *level_p = level; 4c05c: 2081 movel %d1,%a0@ <== NOT EXECUTED return sync_state; } 4c05e: 4e75 rts <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Chain_Append_unprotected( Chain_Control *the_chain, Chain_Node *the_node ) { Chain_Node *tail = _Chain_Tail( the_chain ); 4c060: 2408 movel %a0,%d2 <== NOT EXECUTED 4c062: 5882 addql #4,%d2 <== NOT EXECUTED Chain_Node *old_last = tail->previous; 4c064: 2468 0008 moveal %a0@(8),%a2 <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Chain_Append_unprotected( Chain_Control *the_chain, Chain_Node *the_node ) { Chain_Node *tail = _Chain_Tail( the_chain ); 4c068: 2282 movel %d2,%a1@ <== NOT EXECUTED Chain_Node *old_last = tail->previous; the_node->next = tail; tail->previous = the_node; 4c06a: 2149 0008 movel %a1,%a0@(8) <== NOT EXECUTED old_last->next = the_node; 4c06e: 2489 movel %a1,%a2@ <== NOT EXECUTED the_node->previous = old_last; 4c070: 234a 0004 movel %a2,%a1@(4) <== NOT EXECUTED if (sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) { _Chain_Append_unprotected( &the_thread_queue->Queues.Fifo, &the_thread->Object.Node ); the_thread->Wait.queue = the_thread_queue; 4c074: 2348 0044 movel %a0,%a1@(68) <== NOT EXECUTED the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; _ISR_Enable( level ); 4c078: 46c1 movew %d1,%sr <== NOT EXECUTED * * WARNING! Returning with interrupts disabled! */ *level_p = level; return sync_state; } 4c07a: 241f movel %sp@+,%d2 <== NOT EXECUTED 4c07c: 245f moveal %sp@+,%a2 <== NOT EXECUTED 4c07e: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 00048e28 <_Thread_queue_Enqueue_priority>: Thread_blocking_operation_States _Thread_queue_Enqueue_priority ( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread, ISR_Level *level_p ) { 48e28: 4e56 ffe0 linkw %fp,#-32 48e2c: 48d7 1c7c moveml %d2-%d6/%a2-%a4,%sp@ 48e30: 246e 000c moveal %fp@(12),%a2 RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); 48e34: 41ea 003c lea %a2@(60),%a0 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { Chain_Node *head = _Chain_Head( the_chain ); 48e38: 49ea 0038 lea %a2@(56),%a4 48e3c: 266e 0008 moveal %fp@(8),%a3 Priority_Control priority; States_Control block_state; _Chain_Initialize_empty( &the_thread->Wait.Block2n ); priority = the_thread->current_priority; 48e40: 222a 0014 movel %a2@(20),%d1 RTEMS_INLINE_ROUTINE uint32_t _Thread_queue_Header_number ( Priority_Control the_priority ) { return (the_priority / TASK_QUEUE_DATA_PRIORITIES_PER_HEADER); 48e44: 2a01 movel %d1,%d5 48e46: ec8d lsrl #6,%d5 header_index = _Thread_queue_Header_number( priority ); header = &the_thread_queue->Queues.Priority[ header_index ]; block_state = the_thread_queue->state; 48e48: 242b 0038 movel %a3@(56),%d2 Chain_Node *tail = _Chain_Tail( the_chain ); 48e4c: 2548 0038 movel %a0,%a2@(56) */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { Chain_Node *head = _Chain_Head( the_chain ); 48e50: 254c 0040 movel %a4,%a2@(64) Chain_Node *tail = _Chain_Tail( the_chain ); head->next = tail; head->previous = NULL; 48e54: 42aa 003c clrl %a2@(60) if ( _Thread_queue_Is_reverse_search( priority ) ) 48e58: 0801 0005 btst #5,%d1 48e5c: 665e bnes 48ebc <_Thread_queue_Enqueue_priority+0x94> 48e5e: 700c moveq #12,%d0 48e60: 4c00 5800 mulsl %d0,%d5 goto restart_reverse_search; restart_forward_search: search_priority = PRIORITY_MINIMUM - 1; _ISR_Disable( level ); 48e64: 2c3c 0000 0700 movel #1792,%d6 48e6a: 2006 movel %d6,%d0 RTEMS_INLINE_ROUTINE bool _Chain_Is_tail( Chain_Control *the_chain, const Chain_Node *the_node ) { return (the_node == _Chain_Tail(the_chain)); 48e6c: 49f3 5804 lea %a3@(00000004,%d5:l),%a4 48e70: 40c3 movew %sr,%d3 48e72: 8083 orl %d3,%d0 48e74: 46c0 movew %d0,%sr 48e76: 2803 movel %d3,%d4 * * WARNING! Returning with interrupts disabled! */ *level_p = level; return the_thread_queue->sync_state; } 48e78: 2073 5800 moveal %a3@(00000000,%d5:l),%a0 restart_forward_search: search_priority = PRIORITY_MINIMUM - 1; _ISR_Disable( level ); search_thread = (Thread_Control *) _Chain_First( header ); while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) { 48e7c: b9c8 cmpal %a0,%a4 48e7e: 6700 013a beqw 48fba <_Thread_queue_Enqueue_priority+0x192> search_priority = search_thread->current_priority; 48e82: 2268 0014 moveal %a0@(20),%a1 if ( priority <= search_priority ) 48e86: b3c1 cmpal %d1,%a1 48e88: 6418 bccs 48ea2 <_Thread_queue_Enqueue_priority+0x7a> break; search_priority = search_thread->current_priority; if ( priority <= search_priority ) break; #endif _ISR_Flash( level ); 48e8a: 2006 movel %d6,%d0 48e8c: 46c3 movew %d3,%sr 48e8e: 8083 orl %d3,%d0 48e90: 46c0 movew %d0,%sr RTEMS_INLINE_ROUTINE bool _States_Are_set ( States_Control the_states, States_Control mask ) { return ( (the_states & mask) != STATES_READY); 48e92: 2002 movel %d2,%d0 48e94: c0a8 0010 andl %a0@(16),%d0 if ( !_States_Are_set( search_thread->current_state, block_state) ) { 48e98: 6700 00be beqw 48f58 <_Thread_queue_Enqueue_priority+0x130> _ISR_Enable( level ); goto restart_forward_search; } search_thread = (Thread_Control *)search_thread->Object.Node.next; 48e9c: 2050 moveal %a0@,%a0 restart_forward_search: search_priority = PRIORITY_MINIMUM - 1; _ISR_Disable( level ); search_thread = (Thread_Control *) _Chain_First( header ); while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) { 48e9e: b9c8 cmpal %a0,%a4 48ea0: 66e0 bnes 48e82 <_Thread_queue_Enqueue_priority+0x5a> } search_thread = (Thread_Control *)search_thread->Object.Node.next; } if ( the_thread_queue->sync_state != 48ea2: 202b 0030 movel %a3@(48),%d0 48ea6: 7401 moveq #1,%d2 48ea8: b480 cmpl %d0,%d2 48eaa: 6700 00c4 beqw 48f70 <_Thread_queue_Enqueue_priority+0x148> * For example, the blocking thread could have been given * the mutex by an ISR or timed out. * * WARNING! Returning with interrupts disabled! */ *level_p = level; 48eae: 206e 0010 moveal %fp@(16),%a0 <== NOT EXECUTED 48eb2: 2084 movel %d4,%a0@ <== NOT EXECUTED return the_thread_queue->sync_state; } 48eb4: 4cd7 1c7c moveml %sp@,%d2-%d6/%a2-%a4 <== NOT EXECUTED 48eb8: 4e5e unlk %fp <== NOT EXECUTED 48eba: 4e75 rts <== NOT EXECUTED 48ebc: 700c moveq #12,%d0 48ebe: 4c00 5800 mulsl %d0,%d5 the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; 48ec2: 4283 clrl %d3 48ec4: 1639 0005 cc92 moveb 5cc92 ,%d3 _ISR_Disable( level ); 48eca: 2c3c 0000 0700 movel #1792,%d6 * * WARNING! Returning with interrupts disabled! */ *level_p = level; return the_thread_queue->sync_state; } 48ed0: da8b addl %a3,%d5 48ed2: 2845 moveal %d5,%a4 the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; 48ed4: 2243 moveal %d3,%a1 * * WARNING! Returning with interrupts disabled! */ *level_p = level; return the_thread_queue->sync_state; } 48ed6: 508c addql #8,%a4 return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; _ISR_Disable( level ); 48ed8: 2006 movel %d6,%d0 the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; 48eda: 5289 addql #1,%a1 _ISR_Disable( level ); 48edc: 40c3 movew %sr,%d3 48ede: 8083 orl %d3,%d0 48ee0: 46c0 movew %d0,%sr 48ee2: 2803 movel %d3,%d4 * * WARNING! Returning with interrupts disabled! */ *level_p = level; return the_thread_queue->sync_state; } 48ee4: 2054 moveal %a4@,%a0 restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; _ISR_Disable( level ); search_thread = (Thread_Control *) _Chain_Last( header ); while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) { 48ee6: ba88 cmpl %a0,%d5 48ee8: 6720 beqs 48f0a <_Thread_queue_Enqueue_priority+0xe2> search_priority = search_thread->current_priority; 48eea: 2268 0014 moveal %a0@(20),%a1 if ( priority >= search_priority ) 48eee: b3c1 cmpal %d1,%a1 48ef0: 6318 blss 48f0a <_Thread_queue_Enqueue_priority+0xe2><== ALWAYS TAKEN break; search_priority = search_thread->current_priority; if ( priority >= search_priority ) break; #endif _ISR_Flash( level ); 48ef2: 2006 movel %d6,%d0 <== NOT EXECUTED 48ef4: 46c3 movew %d3,%sr <== NOT EXECUTED 48ef6: 8083 orl %d3,%d0 <== NOT EXECUTED 48ef8: 46c0 movew %d0,%sr <== NOT EXECUTED 48efa: 2002 movel %d2,%d0 <== NOT EXECUTED 48efc: c0a8 0010 andl %a0@(16),%d0 <== NOT EXECUTED if ( !_States_Are_set( search_thread->current_state, block_state) ) { 48f00: 6736 beqs 48f38 <_Thread_queue_Enqueue_priority+0x110><== NOT EXECUTED _ISR_Enable( level ); goto restart_reverse_search; } search_thread = (Thread_Control *) search_thread->Object.Node.previous; 48f02: 2068 0004 moveal %a0@(4),%a0 <== NOT EXECUTED restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; _ISR_Disable( level ); search_thread = (Thread_Control *) _Chain_Last( header ); while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) { 48f06: ba88 cmpl %a0,%d5 <== NOT EXECUTED 48f08: 66e0 bnes 48eea <_Thread_queue_Enqueue_priority+0xc2><== NOT EXECUTED } search_thread = (Thread_Control *) search_thread->Object.Node.previous; } if ( the_thread_queue->sync_state != 48f0a: 202b 0030 movel %a3@(48),%d0 48f0e: 7401 moveq #1,%d2 48f10: b480 cmpl %d0,%d2 48f12: 669a bnes 48eae <_Thread_queue_Enqueue_priority+0x86><== NEVER TAKEN THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; 48f14: 42ab 0030 clrl %a3@(48) if ( priority == search_priority ) 48f18: b3c1 cmpal %d1,%a1 48f1a: 677a beqs 48f96 <_Thread_queue_Enqueue_priority+0x16e><== NEVER TAKEN goto equal_priority; search_node = (Chain_Node *) search_thread; next_node = search_node->next; 48f1c: 2250 moveal %a0@,%a1 the_node = (Chain_Node *) the_thread; the_node->next = next_node; the_node->previous = search_node; 48f1e: 2548 0004 movel %a0,%a2@(4) search_node = (Chain_Node *) search_thread; next_node = search_node->next; the_node = (Chain_Node *) the_thread; the_node->next = next_node; 48f22: 2489 movel %a1,%a2@ the_node->previous = search_node; search_node->next = the_node; next_node->previous = the_node; 48f24: 234a 0004 movel %a2,%a1@(4) next_node = search_node->next; the_node = (Chain_Node *) the_thread; the_node->next = next_node; the_node->previous = search_node; search_node->next = the_node; 48f28: 208a movel %a2,%a0@ next_node->previous = the_node; the_thread->Wait.queue = the_thread_queue; 48f2a: 254b 0044 movel %a3,%a2@(68) _ISR_Enable( level ); 48f2e: 46c3 movew %d3,%sr * * WARNING! Returning with interrupts disabled! */ *level_p = level; return the_thread_queue->sync_state; } 48f30: 4cd7 1c7c moveml %sp@,%d2-%d6/%a2-%a4 48f34: 4e5e unlk %fp 48f36: 4e75 rts if ( priority >= search_priority ) break; #endif _ISR_Flash( level ); if ( !_States_Are_set( search_thread->current_state, block_state) ) { _ISR_Enable( level ); 48f38: 46c3 movew %d3,%sr <== NOT EXECUTED the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; 48f3a: 4283 clrl %d3 <== NOT EXECUTED 48f3c: 1639 0005 cc92 moveb 5cc92 ,%d3 <== NOT EXECUTED _ISR_Disable( level ); 48f42: 2006 movel %d6,%d0 <== NOT EXECUTED the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; 48f44: 2243 moveal %d3,%a1 <== NOT EXECUTED 48f46: 5289 addql #1,%a1 <== NOT EXECUTED _ISR_Disable( level ); 48f48: 40c3 movew %sr,%d3 <== NOT EXECUTED 48f4a: 8083 orl %d3,%d0 <== NOT EXECUTED 48f4c: 46c0 movew %d0,%sr <== NOT EXECUTED 48f4e: 2803 movel %d3,%d4 <== NOT EXECUTED * * WARNING! Returning with interrupts disabled! */ *level_p = level; return the_thread_queue->sync_state; } 48f50: 2054 moveal %a4@,%a0 <== NOT EXECUTED restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; _ISR_Disable( level ); search_thread = (Thread_Control *) _Chain_Last( header ); while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) { 48f52: ba88 cmpl %a0,%d5 <== NOT EXECUTED 48f54: 6694 bnes 48eea <_Thread_queue_Enqueue_priority+0xc2><== NOT EXECUTED 48f56: 60b2 bras 48f0a <_Thread_queue_Enqueue_priority+0xe2><== NOT EXECUTED if ( priority <= search_priority ) break; #endif _ISR_Flash( level ); if ( !_States_Are_set( search_thread->current_state, block_state) ) { _ISR_Enable( level ); 48f58: 46c3 movew %d3,%sr <== NOT EXECUTED if ( _Thread_queue_Is_reverse_search( priority ) ) goto restart_reverse_search; restart_forward_search: search_priority = PRIORITY_MINIMUM - 1; _ISR_Disable( level ); 48f5a: 2006 movel %d6,%d0 <== NOT EXECUTED 48f5c: 40c3 movew %sr,%d3 <== NOT EXECUTED 48f5e: 8083 orl %d3,%d0 <== NOT EXECUTED 48f60: 46c0 movew %d0,%sr <== NOT EXECUTED 48f62: 2803 movel %d3,%d4 <== NOT EXECUTED * * WARNING! Returning with interrupts disabled! */ *level_p = level; return the_thread_queue->sync_state; } 48f64: 2073 5800 moveal %a3@(00000000,%d5:l),%a0 <== NOT EXECUTED restart_forward_search: search_priority = PRIORITY_MINIMUM - 1; _ISR_Disable( level ); search_thread = (Thread_Control *) _Chain_First( header ); while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) { 48f68: b9c8 cmpal %a0,%a4 <== NOT EXECUTED 48f6a: 6600 ff16 bnew 48e82 <_Thread_queue_Enqueue_priority+0x5a><== NOT EXECUTED 48f6e: 604a bras 48fba <_Thread_queue_Enqueue_priority+0x192><== NOT EXECUTED if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; 48f70: 42ab 0030 clrl %a3@(48) if ( priority == search_priority ) 48f74: b3c1 cmpal %d1,%a1 48f76: 671e beqs 48f96 <_Thread_queue_Enqueue_priority+0x16e><== NEVER TAKEN goto equal_priority; search_node = (Chain_Node *) search_thread; previous_node = search_node->previous; 48f78: 2268 0004 moveal %a0@(4),%a1 the_node = (Chain_Node *) the_thread; the_node->next = search_node; 48f7c: 2488 movel %a0,%a2@ the_node->previous = previous_node; 48f7e: 2549 0004 movel %a1,%a2@(4) previous_node->next = the_node; 48f82: 228a movel %a2,%a1@ search_node->previous = the_node; 48f84: 214a 0004 movel %a2,%a0@(4) the_thread->Wait.queue = the_thread_queue; 48f88: 254b 0044 movel %a3,%a2@(68) _ISR_Enable( level ); 48f8c: 46c3 movew %d3,%sr * * WARNING! Returning with interrupts disabled! */ *level_p = level; return the_thread_queue->sync_state; } 48f8e: 4cd7 1c7c moveml %sp@,%d2-%d6/%a2-%a4 48f92: 4e5e unlk %fp 48f94: 4e75 rts the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; equal_priority: /* add at end of priority group */ search_node = _Chain_Tail( &search_thread->Wait.Block2n ); 48f96: 49e8 003c lea %a0@(60),%a4 <== NOT EXECUTED previous_node = search_node->previous; 48f9a: 2268 0040 moveal %a0@(64),%a1 <== NOT EXECUTED the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; equal_priority: /* add at end of priority group */ search_node = _Chain_Tail( &search_thread->Wait.Block2n ); 48f9e: 248c movel %a4,%a2@ <== NOT EXECUTED previous_node = search_node->previous; the_node = (Chain_Node *) the_thread; the_node->next = search_node; the_node->previous = previous_node; 48fa0: 2549 0004 movel %a1,%a2@(4) <== NOT EXECUTED previous_node->next = the_node; 48fa4: 228a movel %a2,%a1@ <== NOT EXECUTED search_node->previous = the_node; 48fa6: 214a 0040 movel %a2,%a0@(64) <== NOT EXECUTED the_thread->Wait.queue = the_thread_queue; 48faa: 254b 0044 movel %a3,%a2@(68) <== NOT EXECUTED _ISR_Enable( level ); 48fae: 46c4 movew %d4,%sr <== NOT EXECUTED return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; 48fb0: 7001 moveq #1,%d0 <== NOT EXECUTED * * WARNING! Returning with interrupts disabled! */ *level_p = level; return the_thread_queue->sync_state; } 48fb2: 4cd7 1c7c moveml %sp@,%d2-%d6/%a2-%a4 <== NOT EXECUTED 48fb6: 4e5e unlk %fp <== NOT EXECUTED 48fb8: 4e75 rts <== NOT EXECUTED } search_thread = (Thread_Control *)search_thread->Object.Node.next; } if ( the_thread_queue->sync_state != 48fba: 202b 0030 movel %a3@(48),%d0 if ( _Thread_queue_Is_reverse_search( priority ) ) goto restart_reverse_search; restart_forward_search: search_priority = PRIORITY_MINIMUM - 1; 48fbe: 327c ffff moveaw #-1,%a1 } search_thread = (Thread_Control *)search_thread->Object.Node.next; } if ( the_thread_queue->sync_state != 48fc2: 7401 moveq #1,%d2 48fc4: b480 cmpl %d0,%d2 48fc6: 6600 fee6 bnew 48eae <_Thread_queue_Enqueue_priority+0x86> 48fca: 60a4 bras 48f70 <_Thread_queue_Enqueue_priority+0x148> =============================================================================== 00048d80 <_Thread_queue_Enqueue_with_handler>: void _Thread_queue_Enqueue_with_handler( Thread_queue_Control *the_thread_queue, Watchdog_Interval timeout, Thread_queue_Timeout_callout handler ) { 48d80: 4e56 fff0 linkw %fp,#-16 48d84: 48d7 0c04 moveml %d2/%a2-%a3,%sp@ 48d88: 266e 0008 moveal %fp@(8),%a3 else #endif /* * Set the blocking state for this thread queue in the thread. */ _Thread_Set_state( the_thread, the_thread_queue->state ); 48d8c: 2f2b 0038 movel %a3@(56),%sp@- Thread_queue_Control *, Thread_Control *, ISR_Level * ); the_thread = _Thread_Executing; 48d90: 2479 0005 e684 moveal 5e684 <_Per_CPU_Information+0xc>,%a2 void _Thread_queue_Enqueue_with_handler( Thread_queue_Control *the_thread_queue, Watchdog_Interval timeout, Thread_queue_Timeout_callout handler ) { 48d96: 242e 000c movel %fp@(12),%d2 else #endif /* * Set the blocking state for this thread queue in the thread. */ _Thread_Set_state( the_thread, the_thread_queue->state ); 48d9a: 2f0a movel %a2,%sp@- 48d9c: 4eb9 0004 91a4 jsr 491a4 <_Thread_Set_state> /* * If the thread wants to timeout, then schedule its timer. */ if ( timeout ) { 48da2: 508f addql #8,%sp 48da4: 4a82 tstl %d2 48da6: 663e bnes 48de6 <_Thread_queue_Enqueue_with_handler+0x66><== NEVER TAKEN * Now enqueue the thread per the discipline for this thread queue. */ if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) enqueue_p = _Thread_queue_Enqueue_priority; else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */ enqueue_p = _Thread_queue_Enqueue_fifo; 48da8: 41f9 0004 c028 lea 4c028 <_Thread_queue_Enqueue_fifo>,%a0 } /* * Now enqueue the thread per the discipline for this thread queue. */ if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) 48dae: 7001 moveq #1,%d0 48db0: b0ab 0034 cmpl %a3@(52),%d0 48db4: 676a beqs 48e20 <_Thread_queue_Enqueue_with_handler+0xa0><== ALWAYS TAKEN enqueue_p = _Thread_queue_Enqueue_priority; else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */ enqueue_p = _Thread_queue_Enqueue_fifo; sync_state = (*enqueue_p)( the_thread_queue, the_thread, &level ); 48db6: 486e fffc pea %fp@(-4) 48dba: 2f0a movel %a2,%sp@- 48dbc: 2f0b movel %a3,%sp@- 48dbe: 4e90 jsr %a0@ if ( sync_state != THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) 48dc0: 4fef 000c lea %sp@(12),%sp 48dc4: 7201 moveq #1,%d1 48dc6: b280 cmpl %d0,%d1 48dc8: 6712 beqs 48ddc <_Thread_queue_Enqueue_with_handler+0x5c><== ALWAYS TAKEN _Thread_blocking_operation_Cancel( sync_state, the_thread, level ); 48dca: 2f2e fffc movel %fp@(-4),%sp@- <== NOT EXECUTED 48dce: 2f0a movel %a2,%sp@- <== NOT EXECUTED 48dd0: 2f00 movel %d0,%sp@- <== NOT EXECUTED 48dd2: 4eb9 0004 8364 jsr 48364 <_Thread_blocking_operation_Cancel><== NOT EXECUTED 48dd8: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED } 48ddc: 4cee 0c04 fff0 moveml %fp@(-16),%d2/%a2-%a3 48de2: 4e5e unlk %fp 48de4: 4e75 rts /* * If the thread wants to timeout, then schedule its timer. */ if ( timeout ) { _Watchdog_Initialize( 48de6: 202a 0008 movel %a2@(8),%d0 <== NOT EXECUTED Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 48dea: 256e 0010 0064 movel %fp@(16),%a2@(100) <== NOT EXECUTED the_watchdog->id = id; 48df0: 2540 0068 movel %d0,%a2@(104) <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 48df4: 42aa 0050 clrl %a2@(80) <== NOT EXECUTED the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data; 48df8: 42aa 006c clrl %a2@(108) <== NOT EXECUTED Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 48dfc: 2542 0054 movel %d2,%a2@(84) <== NOT EXECUTED _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 48e00: 486a 0048 pea %a2@(72) <== NOT EXECUTED 48e04: 4879 0005 e5a8 pea 5e5a8 <_Watchdog_Ticks_chain> <== NOT EXECUTED 48e0a: 4eb9 0004 97ac jsr 497ac <_Watchdog_Insert> <== NOT EXECUTED 48e10: 508f addql #8,%sp <== NOT EXECUTED * Now enqueue the thread per the discipline for this thread queue. */ if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) enqueue_p = _Thread_queue_Enqueue_priority; else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */ enqueue_p = _Thread_queue_Enqueue_fifo; 48e12: 41f9 0004 c028 lea 4c028 <_Thread_queue_Enqueue_fifo>,%a0 <== NOT EXECUTED } /* * Now enqueue the thread per the discipline for this thread queue. */ if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) 48e18: 7001 moveq #1,%d0 <== NOT EXECUTED 48e1a: b0ab 0034 cmpl %a3@(52),%d0 <== NOT EXECUTED 48e1e: 6696 bnes 48db6 <_Thread_queue_Enqueue_with_handler+0x36><== NOT EXECUTED enqueue_p = _Thread_queue_Enqueue_priority; 48e20: 41f9 0004 8e28 lea 48e28 <_Thread_queue_Enqueue_priority>,%a0 48e26: 608e bras 48db6 <_Thread_queue_Enqueue_with_handler+0x36> =============================================================================== 0004c084 <_Thread_queue_Extract>: { /* * Can not use indirect function pointer here since Extract priority * is a macro and the underlying methods do not have the same signature. */ if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) 4c084: 7201 moveq #1,%d1 <== NOT EXECUTED void _Thread_queue_Extract( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) { 4c086: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4c08a: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 4c08e: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED /* * Can not use indirect function pointer here since Extract priority * is a macro and the underlying methods do not have the same signature. */ if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) 4c092: b2a8 0034 cmpl %a0@(52),%d1 <== NOT EXECUTED 4c096: 6710 beqs 4c0a8 <_Thread_queue_Extract+0x24> <== NOT EXECUTED _Thread_queue_Extract_priority( the_thread_queue, the_thread ); else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */ _Thread_queue_Extract_fifo( the_thread_queue, the_thread ); 4c098: 2d40 000c movel %d0,%fp@(12) <== NOT EXECUTED 4c09c: 2d48 0008 movel %a0,%fp@(8) <== NOT EXECUTED } 4c0a0: 4e5e unlk %fp <== NOT EXECUTED * is a macro and the underlying methods do not have the same signature. */ if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) _Thread_queue_Extract_priority( the_thread_queue, the_thread ); else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */ _Thread_queue_Extract_fifo( the_thread_queue, the_thread ); 4c0a2: 4ef9 0004 d750 jmp 4d750 <_Thread_queue_Extract_fifo> <== NOT EXECUTED /* * Can not use indirect function pointer here since Extract priority * is a macro and the underlying methods do not have the same signature. */ if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) _Thread_queue_Extract_priority( the_thread_queue, the_thread ); 4c0a8: 42a7 clrl %sp@- <== NOT EXECUTED 4c0aa: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4c0ac: 2f08 movel %a0,%sp@- <== NOT EXECUTED 4c0ae: 4eb9 0004 c0bc jsr 4c0bc <_Thread_queue_Extract_priority_helper><== NOT EXECUTED 4c0b4: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */ _Thread_queue_Extract_fifo( the_thread_queue, the_thread ); } 4c0b8: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 0004d750 <_Thread_queue_Extract_fifo>: Thread_Control *the_thread ) { ISR_Level level; _ISR_Disable( level ); 4d750: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED void _Thread_queue_Extract_fifo( Thread_queue_Control *the_thread_queue __attribute__((unused)), Thread_Control *the_thread ) { 4d756: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4d75a: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4d75c: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED ISR_Level level; _ISR_Disable( level ); 4d760: 40c1 movew %sr,%d1 <== NOT EXECUTED 4d762: 8081 orl %d1,%d0 <== NOT EXECUTED 4d764: 46c0 movew %d0,%sr <== NOT EXECUTED 4d766: 202a 0010 movel %a2@(16),%d0 <== NOT EXECUTED 4d76a: 0280 0003 bee0 andil #245472,%d0 <== NOT EXECUTED if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { 4d770: 6734 beqs 4d7a6 <_Thread_queue_Extract_fifo+0x56><== NOT EXECUTED ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; 4d772: 2252 moveal %a2@,%a1 <== NOT EXECUTED _Chain_Extract_unprotected( &the_thread->Object.Node ); the_thread->Wait.queue = NULL; if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { 4d774: 7002 moveq #2,%d0 <== NOT EXECUTED previous = the_node->previous; 4d776: 206a 0004 moveal %a2@(4),%a0 <== NOT EXECUTED next->previous = previous; 4d77a: 2348 0004 movel %a0,%a1@(4) <== NOT EXECUTED previous->next = next; 4d77e: 2089 movel %a1,%a0@ <== NOT EXECUTED return; } _Chain_Extract_unprotected( &the_thread->Object.Node ); the_thread->Wait.queue = NULL; 4d780: 42aa 0044 clrl %a2@(68) <== NOT EXECUTED if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { 4d784: b0aa 0050 cmpl %a2@(80),%d0 <== NOT EXECUTED 4d788: 6726 beqs 4d7b0 <_Thread_queue_Extract_fifo+0x60><== NOT EXECUTED _ISR_Enable( level ); 4d78a: 46c1 movew %d1,%sr <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 4d78c: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } 4d790: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4d794: 203c 1003 fff8 movel #268697592,%d0 <== NOT EXECUTED 4d79a: 2d40 000c movel %d0,%fp@(12) <== NOT EXECUTED 4d79e: 4e5e unlk %fp <== NOT EXECUTED 4d7a0: 4ef9 0004 850c jmp 4850c <_Thread_Clear_state> <== NOT EXECUTED ISR_Level level; _ISR_Disable( level ); if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { _ISR_Enable( level ); 4d7a6: 46c1 movew %d1,%sr <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } 4d7a8: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4d7ac: 4e5e unlk %fp <== NOT EXECUTED 4d7ae: 4e75 rts <== NOT EXECUTED 4d7b0: 7003 moveq #3,%d0 <== NOT EXECUTED 4d7b2: 2540 0050 movel %d0,%a2@(80) <== NOT EXECUTED if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { _ISR_Enable( level ); } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); 4d7b6: 46c1 movew %d1,%sr <== NOT EXECUTED (void) _Watchdog_Remove( &the_thread->Timer ); 4d7b8: 486a 0048 pea %a2@(72) <== NOT EXECUTED 4d7bc: 4eb9 0004 9900 jsr 49900 <_Watchdog_Remove> <== NOT EXECUTED 4d7c2: 588f addql #4,%sp <== NOT EXECUTED 4d7c4: 203c 1003 fff8 movel #268697592,%d0 <== NOT EXECUTED 4d7ca: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } 4d7ce: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4d7d2: 2d40 000c movel %d0,%fp@(12) <== NOT EXECUTED 4d7d6: 4e5e unlk %fp <== NOT EXECUTED 4d7d8: 4ef9 0004 850c jmp 4850c <_Thread_Clear_state> <== NOT EXECUTED ... =============================================================================== 0004c0bc <_Thread_queue_Extract_priority_helper>: Chain_Node *new_first_node; Chain_Node *new_second_node; Chain_Node *last_node; the_node = (Chain_Node *) the_thread; _ISR_Disable( level ); 4c0bc: 203c 0000 0700 movel #1792,%d0 void _Thread_queue_Extract_priority_helper( Thread_queue_Control *the_thread_queue __attribute__((unused)), Thread_Control *the_thread, bool requeuing ) { 4c0c2: 4e56 ffec linkw %fp,#-20 4c0c6: 48d7 3c04 moveml %d2/%a2-%a5,%sp@ 4c0ca: 246e 000c moveal %fp@(12),%a2 4c0ce: 142e 0013 moveb %fp@(19),%d2 Chain_Node *new_first_node; Chain_Node *new_second_node; Chain_Node *last_node; the_node = (Chain_Node *) the_thread; _ISR_Disable( level ); 4c0d2: 40c1 movew %sr,%d1 4c0d4: 8081 orl %d1,%d0 4c0d6: 46c0 movew %d0,%sr */ RTEMS_INLINE_ROUTINE bool _States_Is_waiting_on_thread_queue ( States_Control the_states ) { return (the_states & STATES_WAITING_ON_THREAD_QUEUE); 4c0d8: 202a 0010 movel %a2@(16),%d0 4c0dc: 0280 0003 bee0 andil #245472,%d0 if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { 4c0e2: 677e beqs 4c162 <_Thread_queue_Extract_priority_helper+0xa6><== NEVER TAKEN RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( const Chain_Control *the_chain ) { return _Chain_Immutable_first( the_chain ) == _Chain_Immutable_tail( the_chain ); 4c0e4: 200a movel %a2,%d0 4c0e6: 0680 0000 003c addil #60,%d0 /* * The thread was actually waiting on a thread queue so let's remove it. */ next_node = the_node->next; 4c0ec: 2252 moveal %a2@,%a1 previous_node = the_node->previous; 4c0ee: 266a 0004 moveal %a2@(4),%a3 #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } 4c0f2: 206a 0038 moveal %a2@(56),%a0 */ next_node = the_node->next; previous_node = the_node->previous; if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) { 4c0f6: b088 cmpl %a0,%d0 4c0f8: 6774 beqs 4c16e <_Thread_queue_Extract_priority_helper+0xb2><== ALWAYS TAKEN #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } 4c0fa: 286a 0040 moveal %a2@(64),%a4 <== NOT EXECUTED if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) { new_first_node = _Chain_First( &the_thread->Wait.Block2n ); new_first_thread = (Thread_Control *) new_first_node; last_node = _Chain_Last( &the_thread->Wait.Block2n ); new_second_node = new_first_node->next; 4c0fe: 2a50 moveal %a0@,%a5 <== NOT EXECUTED previous_node->next = new_first_node; next_node->previous = new_first_node; 4c100: 2348 0004 movel %a0,%a1@(4) <== NOT EXECUTED new_first_node = _Chain_First( &the_thread->Wait.Block2n ); new_first_thread = (Thread_Control *) new_first_node; last_node = _Chain_Last( &the_thread->Wait.Block2n ); new_second_node = new_first_node->next; previous_node->next = new_first_node; 4c104: 2688 movel %a0,%a3@ <== NOT EXECUTED next_node->previous = new_first_node; new_first_node->next = next_node; new_first_node->previous = previous_node; 4c106: 214b 0004 movel %a3,%a0@(4) <== NOT EXECUTED last_node = _Chain_Last( &the_thread->Wait.Block2n ); new_second_node = new_first_node->next; previous_node->next = new_first_node; next_node->previous = new_first_node; new_first_node->next = next_node; 4c10a: 2089 movel %a1,%a0@ <== NOT EXECUTED new_first_node->previous = previous_node; if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) { 4c10c: 202a 0040 movel %a2@(64),%d0 <== NOT EXECUTED 4c110: b0aa 0038 cmpl %a2@(56),%d0 <== NOT EXECUTED 4c114: 6716 beqs 4c12c <_Thread_queue_Extract_priority_helper+0x70><== NOT EXECUTED /* > two threads on 2-n */ head = _Chain_Head( &new_first_thread->Wait.Block2n ); tail = _Chain_Tail( &new_first_thread->Wait.Block2n ); new_second_node->previous = head; head->next = new_second_node; 4c116: 214d 0038 movel %a5,%a0@(56) <== NOT EXECUTED new_first_node->previous = previous_node; if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) { /* > two threads on 2-n */ head = _Chain_Head( &new_first_thread->Wait.Block2n ); tail = _Chain_Tail( &new_first_thread->Wait.Block2n ); 4c11a: 43e8 003c lea %a0@(60),%a1 <== NOT EXECUTED 4c11e: 2889 movel %a1,%a4@ <== NOT EXECUTED new_first_node->next = next_node; new_first_node->previous = previous_node; if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) { /* > two threads on 2-n */ head = _Chain_Head( &new_first_thread->Wait.Block2n ); 4c120: 43e8 0038 lea %a0@(56),%a1 <== NOT EXECUTED 4c124: 2b49 0004 movel %a1,%a5@(4) <== NOT EXECUTED tail = _Chain_Tail( &new_first_thread->Wait.Block2n ); new_second_node->previous = head; head->next = new_second_node; tail->previous = last_node; 4c128: 214c 0040 movel %a4,%a0@(64) <== NOT EXECUTED /* * If we are not supposed to touch timers or the thread's state, return. */ if ( requeuing ) { 4c12c: 4a02 tstb %d2 <== NOT EXECUTED 4c12e: 6626 bnes 4c156 <_Thread_queue_Extract_priority_helper+0x9a><== NOT EXECUTED _ISR_Enable( level ); return; } if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { 4c130: 7002 moveq #2,%d0 <== NOT EXECUTED 4c132: b0aa 0050 cmpl %a2@(80),%d0 <== NOT EXECUTED 4c136: 6742 beqs 4c17a <_Thread_queue_Extract_priority_helper+0xbe><== NOT EXECUTED _ISR_Enable( level ); 4c138: 46c1 movew %d1,%sr <== NOT EXECUTED 4c13a: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED 4c13e: 227c 1003 fff8 moveal #268697592,%a1 <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } 4c144: 4cee 3c04 ffec moveml %fp@(-20),%d2/%a2-%a5 <== NOT EXECUTED 4c14a: 2d49 000c movel %a1,%fp@(12) <== NOT EXECUTED 4c14e: 4e5e unlk %fp <== NOT EXECUTED 4c150: 4ef9 0004 850c jmp 4850c <_Thread_Clear_state> <== NOT EXECUTED /* * If we are not supposed to touch timers or the thread's state, return. */ if ( requeuing ) { _ISR_Enable( level ); 4c156: 46c1 movew %d1,%sr #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } 4c158: 4cee 3c04 ffec moveml %fp@(-20),%d2/%a2-%a5 4c15e: 4e5e unlk %fp 4c160: 4e75 rts Chain_Node *last_node; the_node = (Chain_Node *) the_thread; _ISR_Disable( level ); if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { _ISR_Enable( level ); 4c162: 46c1 movew %d1,%sr <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } 4c164: 4cee 3c04 ffec moveml %fp@(-20),%d2/%a2-%a5 <== NOT EXECUTED 4c16a: 4e5e unlk %fp <== NOT EXECUTED 4c16c: 4e75 rts <== NOT EXECUTED head->next = new_second_node; tail->previous = last_node; last_node->next = tail; } } else { previous_node->next = next_node; 4c16e: 2689 movel %a1,%a3@ next_node->previous = previous_node; 4c170: 234b 0004 movel %a3,%a1@(4) /* * If we are not supposed to touch timers or the thread's state, return. */ if ( requeuing ) { 4c174: 4a02 tstb %d2 4c176: 67b8 beqs 4c130 <_Thread_queue_Extract_priority_helper+0x74><== NEVER TAKEN 4c178: 60dc bras 4c156 <_Thread_queue_Extract_priority_helper+0x9a> 4c17a: 7003 moveq #3,%d0 <== NOT EXECUTED 4c17c: 2540 0050 movel %d0,%a2@(80) <== NOT EXECUTED if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { _ISR_Enable( level ); } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); 4c180: 46c1 movew %d1,%sr <== NOT EXECUTED (void) _Watchdog_Remove( &the_thread->Timer ); 4c182: 486a 0048 pea %a2@(72) <== NOT EXECUTED 4c186: 4eb9 0004 9900 jsr 49900 <_Watchdog_Remove> <== NOT EXECUTED 4c18c: 588f addql #4,%sp <== NOT EXECUTED 4c18e: 227c 1003 fff8 moveal #268697592,%a1 <== NOT EXECUTED 4c194: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } 4c198: 4cee 3c04 ffec moveml %fp@(-20),%d2/%a2-%a5 <== NOT EXECUTED 4c19e: 2d49 000c movel %a1,%fp@(12) <== NOT EXECUTED 4c1a2: 4e5e unlk %fp <== NOT EXECUTED 4c1a4: 4ef9 0004 850c jmp 4850c <_Thread_Clear_state> <== NOT EXECUTED ... =============================================================================== 00048fcc <_Thread_queue_Extract_with_proxy>: */ bool _Thread_queue_Extract_with_proxy( Thread_Control *the_thread ) { 48fcc: 4e56 0000 linkw %fp,#0 48fd0: 206e 0008 moveal %fp@(8),%a0 */ RTEMS_INLINE_ROUTINE bool _States_Is_waiting_on_thread_queue ( States_Control the_states ) { return (the_states & STATES_WAITING_ON_THREAD_QUEUE); 48fd4: 2028 0010 movel %a0@(16),%d0 48fd8: 0280 0003 bee0 andil #245472,%d0 States_Control state; state = the_thread->current_state; if ( _States_Is_waiting_on_thread_queue( state ) ) { 48fde: 6606 bnes 48fe6 <_Thread_queue_Extract_with_proxy+0x1a><== NEVER TAKEN _Thread_queue_Extract( the_thread->Wait.queue, the_thread ); return true; } return false; } 48fe0: 4e5e unlk %fp #endif _Thread_queue_Extract( the_thread->Wait.queue, the_thread ); return true; } return false; 48fe2: 4200 clrb %d0 } 48fe4: 4e75 rts if ( proxy_extract_callout ) (*proxy_extract_callout)( the_thread ); } #endif _Thread_queue_Extract( the_thread->Wait.queue, the_thread ); 48fe6: 2f08 movel %a0,%sp@- <== NOT EXECUTED 48fe8: 2f28 0044 movel %a0@(68),%sp@- <== NOT EXECUTED 48fec: 4eb9 0004 c084 jsr 4c084 <_Thread_queue_Extract> <== NOT EXECUTED return true; 48ff2: 508f addql #8,%sp <== NOT EXECUTED } return false; } 48ff4: 4e5e unlk %fp <== NOT EXECUTED (*proxy_extract_callout)( the_thread ); } #endif _Thread_queue_Extract( the_thread->Wait.queue, the_thread ); return true; 48ff6: 7001 moveq #1,%d0 <== NOT EXECUTED } return false; } ... =============================================================================== 0005fb80 <_Thread_queue_First>: Thread_Control * (*first_p)(Thread_queue_Control *); if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) first_p = _Thread_queue_First_priority; else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */ first_p = _Thread_queue_First_fifo; 5fb80: 43f9 0006 0fb0 lea 60fb0 <_Thread_queue_First_fifo>,%a1 <== NOT EXECUTED Thread_queue_Control *the_thread_queue ) { Thread_Control * (*first_p)(Thread_queue_Control *); if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) 5fb86: 7001 moveq #1,%d0 <== NOT EXECUTED */ Thread_Control *_Thread_queue_First( Thread_queue_Control *the_thread_queue ) { 5fb88: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 5fb8c: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED Thread_Control * (*first_p)(Thread_queue_Control *); if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) 5fb90: b0a8 0034 cmpl %a0@(52),%d0 <== NOT EXECUTED 5fb94: 6708 beqs 5fb9e <_Thread_queue_First+0x1e> <== NOT EXECUTED first_p = _Thread_queue_First_priority; else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */ first_p = _Thread_queue_First_fifo; return (*first_p)( the_thread_queue ); 5fb96: 2d48 0008 movel %a0,%fp@(8) <== NOT EXECUTED } 5fb9a: 4e5e unlk %fp <== NOT EXECUTED if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) first_p = _Thread_queue_First_priority; else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */ first_p = _Thread_queue_First_fifo; return (*first_p)( the_thread_queue ); 5fb9c: 4ed1 jmp %a1@ <== NOT EXECUTED 5fb9e: 2d48 0008 movel %a0,%fp@(8) <== NOT EXECUTED } 5fba2: 4e5e unlk %fp <== NOT EXECUTED ) { Thread_Control * (*first_p)(Thread_queue_Control *); if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) first_p = _Thread_queue_First_priority; 5fba4: 43f9 0005 fbac lea 5fbac <_Thread_queue_First_priority>,%a1<== NOT EXECUTED else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */ first_p = _Thread_queue_First_fifo; return (*first_p)( the_thread_queue ); 5fbaa: 4ed1 jmp %a1@ <== NOT EXECUTED =============================================================================== 00060fb0 <_Thread_queue_First_fifo>: */ Thread_Control *_Thread_queue_First_fifo( Thread_queue_Control *the_thread_queue ) { 60fb0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED if ( !_Chain_Is_empty( &the_thread_queue->Queues.Fifo ) ) return (Thread_Control *) _Chain_First( &the_thread_queue->Queues.Fifo ); return NULL; } 60fb4: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 60fb8: 2018 movel %a0@+,%d0 <== NOT EXECUTED Thread_Control *_Thread_queue_First_fifo( Thread_queue_Control *the_thread_queue ) { if ( !_Chain_Is_empty( &the_thread_queue->Queues.Fifo ) ) 60fba: b1c0 cmpal %d0,%a0 <== NOT EXECUTED 60fbc: 6704 beqs 60fc2 <_Thread_queue_First_fifo+0x12> <== NOT EXECUTED return (Thread_Control *) _Chain_First( &the_thread_queue->Queues.Fifo ); return NULL; } 60fbe: 4e5e unlk %fp <== NOT EXECUTED 60fc0: 4e75 rts <== NOT EXECUTED ) { if ( !_Chain_Is_empty( &the_thread_queue->Queues.Fifo ) ) return (Thread_Control *) _Chain_First( &the_thread_queue->Queues.Fifo ); return NULL; 60fc2: 4280 clrl %d0 <== NOT EXECUTED } 60fc4: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 0005fbac <_Thread_queue_First_priority>: Thread_queue_Control *the_thread_queue ) { uint32_t index; for( index=0 ; 5fbac: 4281 clrl %d1 <== NOT EXECUTED */ Thread_Control *_Thread_queue_First_priority ( Thread_queue_Control *the_thread_queue ) { 5fbae: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 5fbb2: 48d7 040c moveml %d2-%d3/%a2,%sp@ <== NOT EXECUTED 5fbb6: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED if ( !_Chain_Is_empty( &the_thread_queue->Queues.Priority[ index ] ) ) return (Thread_Control *) _Chain_First( &the_thread_queue->Queues.Priority[ index ] ); } return NULL; 5fbba: 204a moveal %a2,%a0 <== NOT EXECUTED 5fbbc: 2601 movel %d1,%d3 <== NOT EXECUTED 5fbbe: 2401 movel %d1,%d2 <== NOT EXECUTED { uint32_t index; for( index=0 ; index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ; index++ ) { 5fbc0: 5281 addql #1,%d1 <== NOT EXECUTED 5fbc2: e58b lsll #2,%d3 <== NOT EXECUTED 5fbc4: e98a lsll #4,%d2 <== NOT EXECUTED return (Thread_Control *) _Chain_First( &the_thread_queue->Queues.Priority[ index ] ); } return NULL; } 5fbc6: 2010 movel %a0@,%d0 <== NOT EXECUTED 5fbc8: 9483 subl %d3,%d2 <== NOT EXECUTED { uint32_t index; for( index=0 ; index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ; index++ ) { 5fbca: 41e8 000c lea %a0@(12),%a0 <== NOT EXECUTED 5fbce: 43f2 2804 lea %a2@(00000004,%d2:l),%a1 <== NOT EXECUTED if ( !_Chain_Is_empty( &the_thread_queue->Queues.Priority[ index ] ) ) 5fbd2: b3c0 cmpal %d0,%a1 <== NOT EXECUTED 5fbd4: 6608 bnes 5fbde <_Thread_queue_First_priority+0x32><== NOT EXECUTED Thread_queue_Control *the_thread_queue ) { uint32_t index; for( index=0 ; 5fbd6: 7004 moveq #4,%d0 <== NOT EXECUTED 5fbd8: b081 cmpl %d1,%d0 <== NOT EXECUTED 5fbda: 66e0 bnes 5fbbc <_Thread_queue_First_priority+0x10><== NOT EXECUTED if ( !_Chain_Is_empty( &the_thread_queue->Queues.Priority[ index ] ) ) return (Thread_Control *) _Chain_First( &the_thread_queue->Queues.Priority[ index ] ); } return NULL; 5fbdc: 4200 clrb %d0 <== NOT EXECUTED } 5fbde: 4cd7 040c moveml %sp@,%d2-%d3/%a2 <== NOT EXECUTED 5fbe2: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 00049038 <_Thread_queue_Initialize>: the_thread_queue->state = state; the_thread_queue->discipline = the_discipline; the_thread_queue->timeout_status = timeout_status; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; if ( the_discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) { 49038: 7201 moveq #1,%d1 Thread_queue_Control *the_thread_queue, Thread_queue_Disciplines the_discipline, States_Control state, uint32_t timeout_status ) { 4903a: 4e56 0000 linkw %fp,#0 4903e: 206e 0008 moveal %fp@(8),%a0 49042: 2f0a movel %a2,%sp@- 49044: 202e 000c movel %fp@(12),%d0 49048: 2f02 movel %d2,%sp@- the_thread_queue->state = state; 4904a: 216e 0010 0038 movel %fp@(16),%a0@(56) the_thread_queue->discipline = the_discipline; the_thread_queue->timeout_status = timeout_status; 49050: 216e 0014 003c movel %fp@(20),%a0@(60) States_Control state, uint32_t timeout_status ) { the_thread_queue->state = state; the_thread_queue->discipline = the_discipline; 49056: 2140 0034 movel %d0,%a0@(52) the_thread_queue->timeout_status = timeout_status; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; 4905a: 42a8 0030 clrl %a0@(48) if ( the_discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) { 4905e: b280 cmpl %d0,%d1 49060: 6716 beqs 49078 <_Thread_queue_Initialize+0x40> RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); 49062: 2448 moveal %a0,%a2 49064: 588a addql #4,%a2 head->next = tail; head->previous = NULL; 49066: 42a8 0004 clrl %a0@(4) RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); 4906a: 208a movel %a2,%a0@ head->next = tail; head->previous = NULL; tail->previous = head; 4906c: 2148 0008 movel %a0,%a0@(8) _Chain_Initialize_empty( &the_thread_queue->Queues.Priority[index] ); } else { /* must be THREAD_QUEUE_DISCIPLINE_FIFO */ _Chain_Initialize_empty( &the_thread_queue->Queues.Fifo ); } } 49070: 241f movel %sp@+,%d2 49072: 245f moveal %sp@+,%a2 49074: 4e5e unlk %fp 49076: 4e75 rts the_thread_queue->state = state; the_thread_queue->discipline = the_discipline; the_thread_queue->timeout_status = timeout_status; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; if ( the_discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) { 49078: 2248 moveal %a0,%a1 4907a: 4280 clrl %d0 RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); 4907c: 2400 movel %d0,%d2 4907e: 2200 movel %d0,%d1 uint32_t index; for( index=0 ; index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ; index++) 49080: 5280 addql #1,%d0 49082: e58a lsll #2,%d2 49084: e989 lsll #4,%d1 head->next = tail; head->previous = NULL; 49086: 42a9 0004 clrl %a1@(4) RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); 4908a: 9282 subl %d2,%d1 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { Chain_Node *head = _Chain_Head( the_chain ); 4908c: 45f0 1800 lea %a0@(00000000,%d1:l),%a2 49090: 234a 0008 movel %a2,%a1@(8) Chain_Node *tail = _Chain_Tail( the_chain ); 49094: 45f0 1804 lea %a0@(00000004,%d1:l),%a2 the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; if ( the_discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) { uint32_t index; for( index=0 ; 49098: 7204 moveq #4,%d1 4909a: 228a movel %a2,%a1@ index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ; index++) 4909c: 43e9 000c lea %a1@(12),%a1 the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; if ( the_discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) { uint32_t index; for( index=0 ; 490a0: b280 cmpl %d0,%d1 490a2: 67cc beqs 49070 <_Thread_queue_Initialize+0x38> <== NEVER TAKEN 490a4: 2400 movel %d0,%d2 490a6: 2200 movel %d0,%d1 index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ; index++) 490a8: 5280 addql #1,%d0 490aa: e58a lsll #2,%d2 490ac: e989 lsll #4,%d1 head->next = tail; head->previous = NULL; 490ae: 42a9 0004 clrl %a1@(4) RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); 490b2: 9282 subl %d2,%d1 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { Chain_Node *head = _Chain_Head( the_chain ); 490b4: 45f0 1800 lea %a0@(00000000,%d1:l),%a2 490b8: 234a 0008 movel %a2,%a1@(8) Chain_Node *tail = _Chain_Tail( the_chain ); 490bc: 45f0 1804 lea %a0@(00000004,%d1:l),%a2 the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; if ( the_discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) { uint32_t index; for( index=0 ; 490c0: 7204 moveq #4,%d1 490c2: 228a movel %a2,%a1@ index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ; index++) 490c4: 43e9 000c lea %a1@(12),%a1 the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; if ( the_discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) { uint32_t index; for( index=0 ; 490c8: b280 cmpl %d0,%d1 490ca: 66b0 bnes 4907c <_Thread_queue_Initialize+0x44> 490cc: 60a2 bras 49070 <_Thread_queue_Initialize+0x38> ... =============================================================================== 0004c1ac <_Thread_queue_Process_timeout>: #include void _Thread_queue_Process_timeout( Thread_Control *the_thread ) { 4c1ac: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4c1b0: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED Thread_queue_Control *the_thread_queue = the_thread->Wait.queue; 4c1b4: 2268 0044 moveal %a0@(68),%a1 <== NOT EXECUTED * If it is not satisfied, then it is "nothing happened" and * this is the "timeout" transition. After a request is satisfied, * a timeout is not allowed to occur. */ if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_SYNCHRONIZED && 4c1b8: 2029 0030 movel %a1@(48),%d0 <== NOT EXECUTED 4c1bc: 6708 beqs 4c1c6 <_Thread_queue_Process_timeout+0x1a><== NOT EXECUTED 4c1be: b1f9 0005 e684 cmpal 5e684 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED 4c1c4: 6716 beqs 4c1dc <_Thread_queue_Process_timeout+0x30><== NOT EXECUTED if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_SATISFIED ) { the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT; } } else { the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status; 4c1c6: 2169 003c 0034 movel %a1@(60),%a0@(52) <== NOT EXECUTED _Thread_queue_Extract( the_thread->Wait.queue, the_thread ); 4c1cc: 2f08 movel %a0,%sp@- <== NOT EXECUTED 4c1ce: 2f09 movel %a1,%sp@- <== NOT EXECUTED 4c1d0: 4eb9 0004 c084 jsr 4c084 <_Thread_queue_Extract> <== NOT EXECUTED 4c1d6: 508f addql #8,%sp <== NOT EXECUTED } } 4c1d8: 4e5e unlk %fp <== NOT EXECUTED 4c1da: 4e75 rts <== NOT EXECUTED * a timeout is not allowed to occur. */ if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_SYNCHRONIZED && _Thread_Is_executing( the_thread ) ) { if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_SATISFIED ) { 4c1dc: 7203 moveq #3,%d1 <== NOT EXECUTED 4c1de: b280 cmpl %d0,%d1 <== NOT EXECUTED 4c1e0: 67f6 beqs 4c1d8 <_Thread_queue_Process_timeout+0x2c><== NOT EXECUTED the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT; 4c1e2: 7002 moveq #2,%d0 <== NOT EXECUTED } } else { the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status; _Thread_queue_Extract( the_thread->Wait.queue, the_thread ); } } 4c1e4: 4e5e unlk %fp <== NOT EXECUTED */ if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_SYNCHRONIZED && _Thread_Is_executing( the_thread ) ) { if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_SATISFIED ) { the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status; 4c1e6: 2169 003c 0034 movel %a1@(60),%a0@(52) <== NOT EXECUTED the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT; 4c1ec: 2340 0030 movel %d0,%a1@(48) <== NOT EXECUTED } } else { the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status; _Thread_queue_Extract( the_thread->Wait.queue, the_thread ); } } ... =============================================================================== 000490d0 <_Thread_queue_Requeue>: void _Thread_queue_Requeue( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) { 490d0: 4e56 fff0 linkw %fp,#-16 490d4: 48d7 0c04 moveml %d2/%a2-%a3,%sp@ 490d8: 246e 0008 moveal %fp@(8),%a2 490dc: 266e 000c moveal %fp@(12),%a3 /* * Just in case the thread really wasn't blocked on a thread queue * when we get here. */ if ( !the_thread_queue ) 490e0: 4a8a tstl %a2 490e2: 6708 beqs 490ec <_Thread_queue_Requeue+0x1c> <== NEVER TAKEN /* * If queueing by FIFO, there is nothing to do. This only applies to * priority blocking discipline. */ if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) { 490e4: 7001 moveq #1,%d0 490e6: b0aa 0034 cmpl %a2@(52),%d0 490ea: 670a beqs 490f6 <_Thread_queue_Requeue+0x26> <== ALWAYS TAKEN _Thread_queue_Extract_priority_helper( tq, the_thread, true ); (void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored ); } _ISR_Enable( level ); } } 490ec: 4cee 0c04 fff0 moveml %fp@(-16),%d2/%a2-%a3 <== NOT EXECUTED 490f2: 4e5e unlk %fp <== NOT EXECUTED 490f4: 4e75 rts <== NOT EXECUTED if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) { Thread_queue_Control *tq = the_thread_queue; ISR_Level level; ISR_Level level_ignored; _ISR_Disable( level ); 490f6: 303c 0700 movew #1792,%d0 490fa: 40c2 movew %sr,%d2 490fc: 8082 orl %d2,%d0 490fe: 46c0 movew %d0,%sr 49100: 202b 0010 movel %a3@(16),%d0 49104: 0280 0003 bee0 andil #245472,%d0 if ( _States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { 4910a: 660c bnes 49118 <_Thread_queue_Requeue+0x48> <== ALWAYS TAKEN _Thread_queue_Enter_critical_section( tq ); _Thread_queue_Extract_priority_helper( tq, the_thread, true ); (void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored ); } _ISR_Enable( level ); 4910c: 46c2 movew %d2,%sr <== NOT EXECUTED } } 4910e: 4cee 0c04 fff0 moveml %fp@(-16),%d2/%a2-%a3 49114: 4e5e unlk %fp 49116: 4e75 rts ISR_Level level_ignored; _ISR_Disable( level ); if ( _States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { _Thread_queue_Enter_critical_section( tq ); _Thread_queue_Extract_priority_helper( tq, the_thread, true ); 49118: 4878 0001 pea 1 RTEMS_INLINE_ROUTINE void _Thread_queue_Enter_critical_section ( Thread_queue_Control *the_thread_queue ) { the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; 4911c: 7001 moveq #1,%d0 4911e: 2f0b movel %a3,%sp@- 49120: 2540 0030 movel %d0,%a2@(48) 49124: 2f0a movel %a2,%sp@- 49126: 4eb9 0004 c0bc jsr 4c0bc <_Thread_queue_Extract_priority_helper> (void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored ); 4912c: 486e fffc pea %fp@(-4) 49130: 2f0b movel %a3,%sp@- 49132: 2f0a movel %a2,%sp@- 49134: 4eb9 0004 8e28 jsr 48e28 <_Thread_queue_Enqueue_priority> 4913a: 4fef 0018 lea %sp@(24),%sp } _ISR_Enable( level ); 4913e: 46c2 movew %d2,%sr 49140: 60cc bras 4910e <_Thread_queue_Requeue+0x3e> ... =============================================================================== 00049144 <_Thread_queue_Timeout>: void _Thread_queue_Timeout( Objects_Id id, void *ignored __attribute__((unused)) ) { 49144: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); 49148: 486e fffc pea %fp@(-4) <== NOT EXECUTED 4914c: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 49150: 4eb9 0004 88e8 jsr 488e8 <_Thread_Get> <== NOT EXECUTED switch ( location ) { 49156: 508f addql #8,%sp <== NOT EXECUTED 49158: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 4915c: 6618 bnes 49176 <_Thread_queue_Timeout+0x32> <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) case OBJECTS_REMOTE: /* impossible */ #endif break; case OBJECTS_LOCAL: _Thread_queue_Process_timeout( the_thread ); 4915e: 2f00 movel %d0,%sp@- <== NOT EXECUTED 49160: 4eb9 0004 c1ac jsr 4c1ac <_Thread_queue_Process_timeout> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; 49166: 588f addql #4,%sp <== NOT EXECUTED 49168: 2039 0005 e4c8 movel 5e4c8 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED 4916e: 5380 subql #1,%d0 <== NOT EXECUTED 49170: 23c0 0005 e4c8 movel %d0,5e4c8 <_Thread_Dispatch_disable_level><== NOT EXECUTED _Thread_Unnest_dispatch(); break; } } 49176: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 00059070 <_Timer_server_Body>: * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) { 59070: 4e56 ffb0 linkw %fp,#-80 <== NOT EXECUTED Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); head->next = tail; head->previous = NULL; tail->previous = head; 59074: 41ee fff4 lea %fp@(-12),%a0 <== NOT EXECUTED ) { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); head->next = tail; 59078: 200e movel %fp,%d0 <== NOT EXECUTED 5907a: 5180 subql #8,%d0 <== NOT EXECUTED head->previous = NULL; tail->previous = head; 5907c: 2d48 fffc movel %a0,%fp@(-4) <== NOT EXECUTED 59080: 41ee ffec lea %fp@(-20),%a0 <== NOT EXECUTED 59084: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ <== NOT EXECUTED 59088: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED ) { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); head->next = tail; 5908c: 260e movel %fp,%d3 <== NOT EXECUTED 5908e: 0683 ffff ffe8 addil #-24,%d3 <== NOT EXECUTED 59094: 240a movel %a2,%d2 <== NOT EXECUTED 59096: 2a0a movel %a2,%d5 <== NOT EXECUTED 59098: 4bf9 0005 d454 lea 5d454 <_Watchdog_Adjust_to_chain>,%a5 <== NOT EXECUTED 5909e: 0682 0000 0030 addil #48,%d2 <== NOT EXECUTED 590a4: 0685 0000 0068 addil #104,%d5 <== NOT EXECUTED 590aa: 47f9 0005 9c34 lea 59c34 <_Chain_Get>,%a3 <== NOT EXECUTED 590b0: 49f9 0005 d4dc lea 5d4dc <_Watchdog_Insert>,%a4 <== NOT EXECUTED 590b6: 2e00 movel %d0,%d7 <== NOT EXECUTED * of zero it will be processed in the next iteration of the timer server * body loop. */ _Timer_server_Process_insertions( ts ); _ISR_Disable( level ); 590b8: 283c 0000 0700 movel #1792,%d4 <== NOT EXECUTED 590be: 2d48 ffd8 movel %a0,%fp@(-40) <== NOT EXECUTED 590c2: 41ea 0008 lea %a2@(8),%a0 <== NOT EXECUTED 590c6: 2d48 ffe4 movel %a0,%fp@(-28) <== NOT EXECUTED 590ca: 41ea 0040 lea %a2@(64),%a0 <== NOT EXECUTED 590ce: 2d48 ffe0 movel %a0,%fp@(-32) <== NOT EXECUTED 590d2: 41ee ffec lea %fp@(-20),%a0 <== NOT EXECUTED 590d6: 2d40 fff4 movel %d0,%fp@(-12) <== NOT EXECUTED head->previous = NULL; 590da: 42ae fff8 clrl %fp@(-8) <== NOT EXECUTED 590de: 42ae ffec clrl %fp@(-20) <== NOT EXECUTED tail->previous = head; 590e2: 2d43 fff0 movel %d3,%fp@(-16) <== NOT EXECUTED ) { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); head->next = tail; 590e6: 2d48 ffe8 movel %a0,%fp@(-24) <== NOT EXECUTED Chain_Control *tmp; /* * Afterwards all timer inserts are directed to this chain and the interval * and TOD chains will be no more modified by other parties. */ ts->insert_chain = insert_chain; 590ea: 41ee fff4 lea %fp@(-12),%a0 <== NOT EXECUTED 590ee: 2548 0078 movel %a0,%a2@(120) <== NOT EXECUTED static void _Timer_server_Process_interval_watchdogs( Timer_server_Watchdogs *watchdogs, Chain_Control *fire_chain ) { Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot; 590f2: 2039 0007 d2ec movel 7d2ec <_Watchdog_Ticks_since_boot>,%d0<== NOT EXECUTED /* * We assume adequate unsigned arithmetic here. */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; 590f8: 222a 003c movel %a2@(60),%d1 <== NOT EXECUTED watchdogs->last_snapshot = snapshot; 590fc: 2540 003c movel %d0,%a2@(60) <== NOT EXECUTED _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); 59100: 9081 subl %d1,%d0 <== NOT EXECUTED 59102: 2f03 movel %d3,%sp@- <== NOT EXECUTED 59104: 2f00 movel %d0,%sp@- <== NOT EXECUTED 59106: 2f02 movel %d2,%sp@- <== NOT EXECUTED 59108: 4e95 jsr %a5@ <== NOT EXECUTED static void _Timer_server_Process_tod_watchdogs( Timer_server_Watchdogs *watchdogs, Chain_Control *fire_chain ) { Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); 5910a: 2039 0007 d26e movel 7d26e <_TOD_Now>,%d0 <== NOT EXECUTED /* * Process the seconds chain. Start by checking that the Time * of Day (TOD) has not been set backwards. If it has then * we want to adjust the watchdogs->Chain to indicate this. */ if ( snapshot > last_snapshot ) { 59110: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED Timer_server_Watchdogs *watchdogs, Chain_Control *fire_chain ) { Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); Watchdog_Interval last_snapshot = watchdogs->last_snapshot; 59114: 222a 0074 movel %a2@(116),%d1 <== NOT EXECUTED /* * Process the seconds chain. Start by checking that the Time * of Day (TOD) has not been set backwards. If it has then * we want to adjust the watchdogs->Chain to indicate this. */ if ( snapshot > last_snapshot ) { 59118: b280 cmpl %d0,%d1 <== NOT EXECUTED 5911a: 6500 0148 bcsw 59264 <_Timer_server_Body+0x1f4> <== NOT EXECUTED * TOD has been set forward. */ delta = snapshot - last_snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); } else if ( snapshot < last_snapshot ) { 5911e: 6200 00be bhiw 591de <_Timer_server_Body+0x16e> <== NOT EXECUTED */ delta = last_snapshot - snapshot; _Watchdog_Adjust( &watchdogs->Chain, WATCHDOG_BACKWARD, delta ); } watchdogs->last_snapshot = snapshot; 59122: 2540 0074 movel %d0,%a2@(116) <== NOT EXECUTED } static void _Timer_server_Process_insertions( Timer_server_Control *ts ) { while ( true ) { Timer_Control *timer = (Timer_Control *) _Chain_Get( ts->insert_chain ); 59126: 202a 0078 movel %a2@(120),%d0 <== NOT EXECUTED 5912a: 2f00 movel %d0,%sp@- <== NOT EXECUTED 5912c: 4e93 jsr %a3@ <== NOT EXECUTED if ( timer == NULL ) { 5912e: 588f addql #4,%sp <== NOT EXECUTED 59130: 4a80 tstl %d0 <== NOT EXECUTED 59132: 672e beqs 59162 <_Timer_server_Body+0xf2> <== NOT EXECUTED static void _Timer_server_Insert_timer( Timer_server_Control *ts, Timer_Control *timer ) { if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) { 59134: 2040 moveal %d0,%a0 <== NOT EXECUTED 59136: 7c01 moveq #1,%d6 <== NOT EXECUTED 59138: 2228 0038 movel %a0@(56),%d1 <== NOT EXECUTED 5913c: bc81 cmpl %d1,%d6 <== NOT EXECUTED 5913e: 6700 00c2 beqw 59202 <_Timer_server_Body+0x192> <== NOT EXECUTED _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker ); } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) { 59142: 7c03 moveq #3,%d6 <== NOT EXECUTED 59144: bc81 cmpl %d1,%d6 <== NOT EXECUTED 59146: 66de bnes 59126 <_Timer_server_Body+0xb6> <== NOT EXECUTED _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker ); 59148: 2040 moveal %d0,%a0 <== NOT EXECUTED 5914a: 4868 0010 pea %a0@(16) <== NOT EXECUTED 5914e: 2f05 movel %d5,%sp@- <== NOT EXECUTED 59150: 4e94 jsr %a4@ <== NOT EXECUTED } static void _Timer_server_Process_insertions( Timer_server_Control *ts ) { while ( true ) { Timer_Control *timer = (Timer_Control *) _Chain_Get( ts->insert_chain ); 59152: 202a 0078 movel %a2@(120),%d0 <== NOT EXECUTED ) { if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) { _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker ); } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) { _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker ); 59156: 508f addql #8,%sp <== NOT EXECUTED } static void _Timer_server_Process_insertions( Timer_server_Control *ts ) { while ( true ) { Timer_Control *timer = (Timer_Control *) _Chain_Get( ts->insert_chain ); 59158: 2f00 movel %d0,%sp@- <== NOT EXECUTED 5915a: 4e93 jsr %a3@ <== NOT EXECUTED if ( timer == NULL ) { 5915c: 588f addql #4,%sp <== NOT EXECUTED 5915e: 4a80 tstl %d0 <== NOT EXECUTED 59160: 66d2 bnes 59134 <_Timer_server_Body+0xc4> <== NOT EXECUTED * of zero it will be processed in the next iteration of the timer server * body loop. */ _Timer_server_Process_insertions( ts ); _ISR_Disable( level ); 59162: 2004 movel %d4,%d0 <== NOT EXECUTED 59164: 40c1 movew %sr,%d1 <== NOT EXECUTED 59166: 8081 orl %d1,%d0 <== NOT EXECUTED 59168: 46c0 movew %d0,%sr <== NOT EXECUTED tmp = ts->insert_chain; 5916a: 202a 0078 movel %a2@(120),%d0 <== NOT EXECUTED if ( _Chain_Is_empty( insert_chain ) ) { 5916e: beae fff4 cmpl %fp@(-12),%d7 <== NOT EXECUTED 59172: 6700 0114 beqw 59288 <_Timer_server_Body+0x218> <== NOT EXECUTED 59176: 7001 moveq #1,%d0 <== NOT EXECUTED ts->insert_chain = NULL; do_loop = false; } _ISR_Enable( level ); 59178: 46c1 movew %d1,%sr <== NOT EXECUTED * Afterwards all timer inserts are directed to this chain and the interval * and TOD chains will be no more modified by other parties. */ ts->insert_chain = insert_chain; while ( do_loop ) { 5917a: 4a00 tstb %d0 <== NOT EXECUTED 5917c: 6600 ff74 bnew 590f2 <_Timer_server_Body+0x82> <== NOT EXECUTED _Chain_Initialize_empty( &fire_chain ); while ( true ) { _Timer_server_Get_watchdogs_that_fire_now( ts, &insert_chain, &fire_chain ); if ( !_Chain_Is_empty( &fire_chain ) ) { 59180: 202e ffd8 movel %fp@(-40),%d0 <== NOT EXECUTED 59184: b0ae ffe8 cmpl %fp@(-24),%d0 <== NOT EXECUTED 59188: 6700 0086 beqw 59210 <_Timer_server_Body+0x1a0> <== NOT EXECUTED /* * It is essential that interrupts are disable here since an interrupt * service routine may remove a watchdog from the chain. */ _ISR_Disable( level ); 5918c: 2204 movel %d4,%d1 <== NOT EXECUTED 5918e: 40c0 movew %sr,%d0 <== NOT EXECUTED 59190: 8280 orl %d0,%d1 <== NOT EXECUTED 59192: 46c1 movew %d1,%sr <== NOT EXECUTED initialized = false; } #endif return status; } 59194: 206e ffe8 moveal %fp@(-24),%a0 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected( Chain_Control *the_chain ) { if ( !_Chain_Is_empty(the_chain)) 59198: b1ee ffd8 cmpal %fp@(-40),%a0 <== NOT EXECUTED 5919c: 6732 beqs 591d0 <_Timer_server_Body+0x160> <== NOT EXECUTED Chain_Control *the_chain ) { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *old_first = head->next; Chain_Node *new_first = old_first->next; 5919e: 2250 moveal %a0@,%a1 <== NOT EXECUTED head->next = new_first; new_first->previous = head; 591a0: 2343 0004 movel %d3,%a1@(4) <== NOT EXECUTED * service routine may remove a watchdog from the chain. */ _ISR_Disable( level ); watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain ); if ( watchdog != NULL ) { watchdog->state = WATCHDOG_INACTIVE; 591a4: 42a8 0008 clrl %a0@(8) <== NOT EXECUTED { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *old_first = head->next; Chain_Node *new_first = old_first->next; head->next = new_first; 591a8: 2d49 ffe8 movel %a1,%fp@(-24) <== NOT EXECUTED _ISR_Enable( level ); 591ac: 46c0 movew %d0,%sr <== NOT EXECUTED /* * The timer server may block here and wait for resources or time. * The system watchdogs are inactive and will remain inactive since * the active flag of the timer server is true. */ (*watchdog->routine)( watchdog->id, watchdog->user_data ); 591ae: 2f28 0024 movel %a0@(36),%sp@- <== NOT EXECUTED 591b2: 2f28 0020 movel %a0@(32),%sp@- <== NOT EXECUTED 591b6: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 591ba: 4e90 jsr %a0@ <== NOT EXECUTED } 591bc: 508f addql #8,%sp <== NOT EXECUTED /* * It is essential that interrupts are disable here since an interrupt * service routine may remove a watchdog from the chain. */ _ISR_Disable( level ); 591be: 2204 movel %d4,%d1 <== NOT EXECUTED 591c0: 40c0 movew %sr,%d0 <== NOT EXECUTED 591c2: 8280 orl %d0,%d1 <== NOT EXECUTED 591c4: 46c1 movew %d1,%sr <== NOT EXECUTED initialized = false; } #endif return status; } 591c6: 206e ffe8 moveal %fp@(-24),%a0 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected( Chain_Control *the_chain ) { if ( !_Chain_Is_empty(the_chain)) 591ca: b1ee ffd8 cmpal %fp@(-40),%a0 <== NOT EXECUTED 591ce: 66ce bnes 5919e <_Timer_server_Body+0x12e> <== NOT EXECUTED watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain ); if ( watchdog != NULL ) { watchdog->state = WATCHDOG_INACTIVE; _ISR_Enable( level ); } else { _ISR_Enable( level ); 591d0: 46c0 movew %d0,%sr <== NOT EXECUTED Chain_Control *tmp; /* * Afterwards all timer inserts are directed to this chain and the interval * and TOD chains will be no more modified by other parties. */ ts->insert_chain = insert_chain; 591d2: 41ee fff4 lea %fp@(-12),%a0 <== NOT EXECUTED 591d6: 2548 0078 movel %a0,%a2@(120) <== NOT EXECUTED 591da: 6000 ff16 braw 590f2 <_Timer_server_Body+0x82> <== NOT EXECUTED /* * The current TOD is before the last TOD which indicates that * TOD has been set backwards. */ delta = last_snapshot - snapshot; _Watchdog_Adjust( &watchdogs->Chain, WATCHDOG_BACKWARD, delta ); 591de: 9280 subl %d0,%d1 <== NOT EXECUTED 591e0: 2f01 movel %d1,%sp@- <== NOT EXECUTED 591e2: 4878 0001 pea 1 <== NOT EXECUTED 591e6: 2d40 ffdc movel %d0,%fp@(-36) <== NOT EXECUTED 591ea: 2f05 movel %d5,%sp@- <== NOT EXECUTED 591ec: 4eb9 0005 d3c0 jsr 5d3c0 <_Watchdog_Adjust> <== NOT EXECUTED 591f2: 202e ffdc movel %fp@(-36),%d0 <== NOT EXECUTED 591f6: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED } watchdogs->last_snapshot = snapshot; 591fa: 2540 0074 movel %d0,%a2@(116) <== NOT EXECUTED 591fe: 6000 ff26 braw 59126 <_Timer_server_Body+0xb6> <== NOT EXECUTED Timer_server_Control *ts, Timer_Control *timer ) { if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) { _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker ); 59202: 4868 0010 pea %a0@(16) <== NOT EXECUTED 59206: 2f02 movel %d2,%sp@- <== NOT EXECUTED 59208: 4e94 jsr %a4@ <== NOT EXECUTED 5920a: 508f addql #8,%sp <== NOT EXECUTED 5920c: 6000 ff18 braw 59126 <_Timer_server_Body+0xb6> <== NOT EXECUTED * the active flag of the timer server is true. */ (*watchdog->routine)( watchdog->id, watchdog->user_data ); } } else { ts->active = false; 59210: 4206 clrb %d6 <== NOT EXECUTED 59212: 1546 007c moveb %d6,%a2@(124) <== NOT EXECUTED 59216: 2039 0007 d1c4 movel 7d1c4 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED 5921c: 5280 addql #1,%d0 <== NOT EXECUTED 5921e: 23c0 0007 d1c4 movel %d0,7d1c4 <_Thread_Dispatch_disable_level><== NOT EXECUTED /* * Block until there is something to do. */ _Thread_Disable_dispatch(); _Thread_Set_state( ts->thread, STATES_DELAYING ); 59224: 4878 0008 pea 8 <== NOT EXECUTED 59228: 2f12 movel %a2@,%sp@- <== NOT EXECUTED 5922a: 4eb9 0005 cd0c jsr 5cd0c <_Thread_Set_state> <== NOT EXECUTED _Timer_server_Reset_interval_system_watchdog( ts ); 59230: 2f0a movel %a2,%sp@- <== NOT EXECUTED 59232: 4eba fd64 jsr %pc@(58f98 <_Timer_server_Reset_interval_system_watchdog>)<== NOT EXECUTED _Timer_server_Reset_tod_system_watchdog( ts ); 59236: 2f0a movel %a2,%sp@- <== NOT EXECUTED 59238: 4eba fdc8 jsr %pc@(59002 <_Timer_server_Reset_tod_system_watchdog>)<== NOT EXECUTED _Thread_Enable_dispatch(); 5923c: 4eb9 0005 c34a jsr 5c34a <_Thread_Enable_dispatch> <== NOT EXECUTED ts->active = true; 59242: 7001 moveq #1,%d0 <== NOT EXECUTED 59244: 1540 007c moveb %d0,%a2@(124) <== NOT EXECUTED static void _Timer_server_Stop_interval_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog ); 59248: 2f2e ffe4 movel %fp@(-28),%sp@- <== NOT EXECUTED 5924c: 4eb9 0005 d630 jsr 5d630 <_Watchdog_Remove> <== NOT EXECUTED static void _Timer_server_Stop_tod_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog ); 59252: 2f2e ffe0 movel %fp@(-32),%sp@- <== NOT EXECUTED 59256: 4eb9 0005 d630 jsr 5d630 <_Watchdog_Remove> <== NOT EXECUTED 5925c: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED 59260: 6000 fe88 braw 590ea <_Timer_server_Body+0x7a> <== NOT EXECUTED /* * This path is for normal forward movement and cases where the * TOD has been set forward. */ delta = snapshot - last_snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); 59264: 2f03 movel %d3,%sp@- <== NOT EXECUTED 59266: 2c00 movel %d0,%d6 <== NOT EXECUTED 59268: 9c81 subl %d1,%d6 <== NOT EXECUTED 5926a: 2f06 movel %d6,%sp@- <== NOT EXECUTED 5926c: 2d40 ffdc movel %d0,%fp@(-36) <== NOT EXECUTED 59270: 2f05 movel %d5,%sp@- <== NOT EXECUTED 59272: 4eb9 0005 d454 jsr 5d454 <_Watchdog_Adjust_to_chain> <== NOT EXECUTED 59278: 202e ffdc movel %fp@(-36),%d0 <== NOT EXECUTED 5927c: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED */ delta = last_snapshot - snapshot; _Watchdog_Adjust( &watchdogs->Chain, WATCHDOG_BACKWARD, delta ); } watchdogs->last_snapshot = snapshot; 59280: 2540 0074 movel %d0,%a2@(116) <== NOT EXECUTED 59284: 6000 fea0 braw 59126 <_Timer_server_Body+0xb6> <== NOT EXECUTED _Timer_server_Process_insertions( ts ); _ISR_Disable( level ); tmp = ts->insert_chain; if ( _Chain_Is_empty( insert_chain ) ) { ts->insert_chain = NULL; 59288: 42aa 0078 clrl %a2@(120) <== NOT EXECUTED do_loop = false; 5928c: 4200 clrb %d0 <== NOT EXECUTED } _ISR_Enable( level ); 5928e: 46c1 movew %d1,%sr <== NOT EXECUTED * Afterwards all timer inserts are directed to this chain and the interval * and TOD chains will be no more modified by other parties. */ ts->insert_chain = insert_chain; while ( do_loop ) { 59290: 4a00 tstb %d0 <== NOT EXECUTED 59292: 6600 fe5e bnew 590f2 <_Timer_server_Body+0x82> <== NOT EXECUTED 59296: 6000 fee8 braw 59180 <_Timer_server_Body+0x110> <== NOT EXECUTED =============================================================================== 00058f98 <_Timer_server_Reset_interval_system_watchdog>: } static void _Timer_server_Reset_interval_system_watchdog( Timer_server_Control *ts ) { 58f98: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 58f9c: 2f0a movel %a2,%sp@- <== NOT EXECUTED 58f9e: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 58fa2: 2f02 movel %d2,%sp@- <== NOT EXECUTED static void _Timer_server_Stop_interval_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog ); 58fa4: 240a movel %a2,%d2 <== NOT EXECUTED 58fa6: 5082 addql #8,%d2 <== NOT EXECUTED 58fa8: 2f02 movel %d2,%sp@- <== NOT EXECUTED 58faa: 4eb9 0005 d630 jsr 5d630 <_Watchdog_Remove> <== NOT EXECUTED { ISR_Level level; _Timer_server_Stop_interval_system_watchdog( ts ); _ISR_Disable( level ); 58fb0: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED 58fb6: 40c1 movew %sr,%d1 <== NOT EXECUTED 58fb8: 8081 orl %d1,%d0 <== NOT EXECUTED 58fba: 46c0 movew %d0,%sr <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( const Chain_Control *the_chain ) { return _Chain_Immutable_first( the_chain ) == _Chain_Immutable_tail( the_chain ); 58fbc: 200a movel %a2,%d0 <== NOT EXECUTED 58fbe: 0680 0000 0034 addil #52,%d0 <== NOT EXECUTED if ( !_Chain_Is_empty( &ts->Interval_watchdogs.Chain ) ) { 58fc4: 588f addql #4,%sp <== NOT EXECUTED initialized = false; } #endif return status; } 58fc6: 206a 0030 moveal %a2@(48),%a0 <== NOT EXECUTED ISR_Level level; _Timer_server_Stop_interval_system_watchdog( ts ); _ISR_Disable( level ); if ( !_Chain_Is_empty( &ts->Interval_watchdogs.Chain ) ) { 58fca: b088 cmpl %a0,%d0 <== NOT EXECUTED 58fcc: 6726 beqs 58ff4 <_Timer_server_Reset_interval_system_watchdog+0x5c><== NOT EXECUTED Watchdog_Interval delta_interval = 58fce: 2028 0010 movel %a0@(16),%d0 <== NOT EXECUTED _Watchdog_First( &ts->Interval_watchdogs.Chain )->delta_interval; _ISR_Enable( level ); 58fd2: 46c1 movew %d1,%sr <== NOT EXECUTED ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 58fd4: 2f02 movel %d2,%sp@- <== NOT EXECUTED 58fd6: 4879 0007 d2a4 pea 7d2a4 <_Watchdog_Ticks_chain> <== NOT EXECUTED Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 58fdc: 2540 0014 movel %d0,%a2@(20) <== NOT EXECUTED _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 58fe0: 4eb9 0005 d4dc jsr 5d4dc <_Watchdog_Insert> <== NOT EXECUTED delta_interval ); } else { _ISR_Enable( level ); } } 58fe6: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 58fea: 508f addql #8,%sp <== NOT EXECUTED 58fec: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 58ff0: 4e5e unlk %fp <== NOT EXECUTED 58ff2: 4e75 rts <== NOT EXECUTED _Watchdog_Insert_ticks( &ts->Interval_watchdogs.System_watchdog, delta_interval ); } else { _ISR_Enable( level ); 58ff4: 46c1 movew %d1,%sr <== NOT EXECUTED } } 58ff6: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 58ffa: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 58ffe: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00059002 <_Timer_server_Reset_tod_system_watchdog>: } static void _Timer_server_Reset_tod_system_watchdog( Timer_server_Control *ts ) { 59002: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 59006: 2f0a movel %a2,%sp@- <== NOT EXECUTED 59008: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 5900c: 2f02 movel %d2,%sp@- <== NOT EXECUTED static void _Timer_server_Stop_tod_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog ); 5900e: 240a movel %a2,%d2 <== NOT EXECUTED 59010: 0682 0000 0040 addil #64,%d2 <== NOT EXECUTED 59016: 2f02 movel %d2,%sp@- <== NOT EXECUTED 59018: 4eb9 0005 d630 jsr 5d630 <_Watchdog_Remove> <== NOT EXECUTED { ISR_Level level; _Timer_server_Stop_tod_system_watchdog( ts ); _ISR_Disable( level ); 5901e: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED 59024: 40c1 movew %sr,%d1 <== NOT EXECUTED 59026: 8081 orl %d1,%d0 <== NOT EXECUTED 59028: 46c0 movew %d0,%sr <== NOT EXECUTED 5902a: 200a movel %a2,%d0 <== NOT EXECUTED 5902c: 0680 0000 006c addil #108,%d0 <== NOT EXECUTED if ( !_Chain_Is_empty( &ts->TOD_watchdogs.Chain ) ) { 59032: 588f addql #4,%sp <== NOT EXECUTED initialized = false; } #endif return status; } 59034: 206a 0068 moveal %a2@(104),%a0 <== NOT EXECUTED ISR_Level level; _Timer_server_Stop_tod_system_watchdog( ts ); _ISR_Disable( level ); if ( !_Chain_Is_empty( &ts->TOD_watchdogs.Chain ) ) { 59038: b088 cmpl %a0,%d0 <== NOT EXECUTED 5903a: 6726 beqs 59062 <_Timer_server_Reset_tod_system_watchdog+0x60><== NOT EXECUTED Watchdog_Interval delta_interval = 5903c: 2028 0010 movel %a0@(16),%d0 <== NOT EXECUTED _Watchdog_First( &ts->TOD_watchdogs.Chain )->delta_interval; _ISR_Enable( level ); 59040: 46c1 movew %d1,%sr <== NOT EXECUTED ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog ); 59042: 2f02 movel %d2,%sp@- <== NOT EXECUTED 59044: 4879 0007 d298 pea 7d298 <_Watchdog_Seconds_chain> <== NOT EXECUTED Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 5904a: 2540 004c movel %d0,%a2@(76) <== NOT EXECUTED _Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog ); 5904e: 4eb9 0005 d4dc jsr 5d4dc <_Watchdog_Insert> <== NOT EXECUTED delta_interval ); } else { _ISR_Enable( level ); } } 59054: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 59058: 508f addql #8,%sp <== NOT EXECUTED 5905a: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 5905e: 4e5e unlk %fp <== NOT EXECUTED 59060: 4e75 rts <== NOT EXECUTED _Watchdog_Insert_seconds( &ts->TOD_watchdogs.System_watchdog, delta_interval ); } else { _ISR_Enable( level ); 59062: 46c1 movew %d1,%sr <== NOT EXECUTED } } 59064: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 59068: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 5906c: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 0005929a <_Timer_server_Schedule_operation_method>: static void _Timer_server_Schedule_operation_method( Timer_server_Control *ts, Timer_Control *timer ) { 5929a: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 5929e: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED 592a2: 48d7 041c moveml %d2-%d4/%a2,%sp@ <== NOT EXECUTED 592a6: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED if ( ts->insert_chain == NULL ) { 592aa: 202a 0078 movel %a2@(120),%d0 <== NOT EXECUTED 592ae: 671a beqs 592ca <_Timer_server_Schedule_operation_method+0x30><== NOT EXECUTED * server is not preemptible, so we must be in interrupt context here. No * thread dispatch will happen until the timer server finishes its * critical section. We have to use the protected chain methods because * we may be interrupted by a higher priority interrupt. */ _Chain_Append( ts->insert_chain, &timer->Object.Node ); 592b0: 202a 0078 movel %a2@(120),%d0 <== NOT EXECUTED 592b4: 2d48 000c movel %a0,%fp@(12) <== NOT EXECUTED } } 592b8: 4cee 041c fff0 moveml %fp@(-16),%d2-%d4/%a2 <== NOT EXECUTED * server is not preemptible, so we must be in interrupt context here. No * thread dispatch will happen until the timer server finishes its * critical section. We have to use the protected chain methods because * we may be interrupted by a higher priority interrupt. */ _Chain_Append( ts->insert_chain, &timer->Object.Node ); 592be: 2d40 0008 movel %d0,%fp@(8) <== NOT EXECUTED } } 592c2: 4e5e unlk %fp <== NOT EXECUTED * server is not preemptible, so we must be in interrupt context here. No * thread dispatch will happen until the timer server finishes its * critical section. We have to use the protected chain methods because * we may be interrupted by a higher priority interrupt. */ _Chain_Append( ts->insert_chain, &timer->Object.Node ); 592c4: 4ef9 0005 9bd4 jmp 59bd4 <_Chain_Append> <== NOT EXECUTED 592ca: 2039 0007 d1c4 movel 7d1c4 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED 592d0: 5280 addql #1,%d0 <== NOT EXECUTED 592d2: 23c0 0007 d1c4 movel %d0,7d1c4 <_Thread_Dispatch_disable_level><== NOT EXECUTED * being inserted. This could result in an integer overflow. */ _Thread_Disable_dispatch(); if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) { 592d8: 2028 0038 movel %a0@(56),%d0 <== NOT EXECUTED 592dc: 7201 moveq #1,%d1 <== NOT EXECUTED 592de: b280 cmpl %d0,%d1 <== NOT EXECUTED 592e0: 6700 008a beqw 5936c <_Timer_server_Schedule_operation_method+0xd2><== NOT EXECUTED _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker ); if ( !ts->active ) { _Timer_server_Reset_interval_system_watchdog( ts ); } } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) { 592e4: 7803 moveq #3,%d4 <== NOT EXECUTED 592e6: b880 cmpl %d0,%d4 <== NOT EXECUTED 592e8: 670e beqs 592f8 <_Timer_server_Schedule_operation_method+0x5e><== NOT EXECUTED * critical section. We have to use the protected chain methods because * we may be interrupted by a higher priority interrupt. */ _Chain_Append( ts->insert_chain, &timer->Object.Node ); } } 592ea: 4cee 041c fff0 moveml %fp@(-16),%d2-%d4/%a2 <== NOT EXECUTED 592f0: 4e5e unlk %fp <== NOT EXECUTED if ( !ts->active ) { _Timer_server_Reset_tod_system_watchdog( ts ); } } _Thread_Enable_dispatch(); 592f2: 4ef9 0005 c34a jmp 5c34a <_Thread_Enable_dispatch> <== NOT EXECUTED } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) { /* * We have to advance the last known seconds value of the server and update * the watchdog chain accordingly. */ _ISR_Disable( level ); 592f8: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED 592fe: 40c2 movew %sr,%d2 <== NOT EXECUTED 59300: 8082 orl %d2,%d0 <== NOT EXECUTED 59302: 46c0 movew %d0,%sr <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( const Chain_Control *the_chain ) { return _Chain_Immutable_first( the_chain ) == _Chain_Immutable_tail( the_chain ); 59304: 260a movel %a2,%d3 <== NOT EXECUTED 59306: 0683 0000 006c addil #108,%d3 <== NOT EXECUTED snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); 5930c: 2039 0007 d26e movel 7d26e <_TOD_Now>,%d0 <== NOT EXECUTED last_snapshot = ts->TOD_watchdogs.last_snapshot; 59312: 222a 0074 movel %a2@(116),%d1 <== NOT EXECUTED initialized = false; } #endif return status; } 59316: 226a 0068 moveal %a2@(104),%a1 <== NOT EXECUTED * the watchdog chain accordingly. */ _ISR_Disable( level ); snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); last_snapshot = ts->TOD_watchdogs.last_snapshot; if ( !_Chain_Is_empty( &ts->TOD_watchdogs.Chain ) ) { 5931a: b689 cmpl %a1,%d3 <== NOT EXECUTED 5931c: 671c beqs 5933a <_Timer_server_Schedule_operation_method+0xa0><== NOT EXECUTED first_watchdog = _Watchdog_First( &ts->TOD_watchdogs.Chain ); delta_interval = first_watchdog->delta_interval; 5931e: 2629 0010 movel %a1@(16),%d3 <== NOT EXECUTED if ( snapshot > last_snapshot ) { 59322: b280 cmpl %d0,%d1 <== NOT EXECUTED 59324: 6400 00ba bccw 593e0 <_Timer_server_Schedule_operation_method+0x146><== NOT EXECUTED /* * We advanced in time. */ delta = snapshot - last_snapshot; 59328: 2800 movel %d0,%d4 <== NOT EXECUTED 5932a: 9881 subl %d1,%d4 <== NOT EXECUTED if (delta_interval > delta) { 5932c: b883 cmpl %d3,%d4 <== NOT EXECUTED 5932e: 6400 00bc bccw 593ec <_Timer_server_Schedule_operation_method+0x152><== NOT EXECUTED delta_interval -= delta; 59332: 9684 subl %d4,%d3 <== NOT EXECUTED 59334: 2203 movel %d3,%d1 <== NOT EXECUTED * Someone put us in the past. */ delta = last_snapshot - snapshot; delta_interval += delta; } first_watchdog->delta_interval = delta_interval; 59336: 2341 0010 movel %d1,%a1@(16) <== NOT EXECUTED } ts->TOD_watchdogs.last_snapshot = snapshot; 5933a: 2540 0074 movel %d0,%a2@(116) <== NOT EXECUTED _ISR_Enable( level ); 5933e: 46c2 movew %d2,%sr <== NOT EXECUTED _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker ); 59340: 4868 0010 pea %a0@(16) <== NOT EXECUTED 59344: 486a 0068 pea %a2@(104) <== NOT EXECUTED 59348: 4eb9 0005 d4dc jsr 5d4dc <_Watchdog_Insert> <== NOT EXECUTED if ( !ts->active ) { 5934e: 508f addql #8,%sp <== NOT EXECUTED 59350: 102a 007c moveb %a2@(124),%d0 <== NOT EXECUTED 59354: 6694 bnes 592ea <_Timer_server_Schedule_operation_method+0x50><== NOT EXECUTED _Timer_server_Reset_tod_system_watchdog( ts ); 59356: 2f0a movel %a2,%sp@- <== NOT EXECUTED 59358: 4eba fca8 jsr %pc@(59002 <_Timer_server_Reset_tod_system_watchdog>)<== NOT EXECUTED 5935c: 588f addql #4,%sp <== NOT EXECUTED * critical section. We have to use the protected chain methods because * we may be interrupted by a higher priority interrupt. */ _Chain_Append( ts->insert_chain, &timer->Object.Node ); } } 5935e: 4cee 041c fff0 moveml %fp@(-16),%d2-%d4/%a2 <== NOT EXECUTED 59364: 4e5e unlk %fp <== NOT EXECUTED if ( !ts->active ) { _Timer_server_Reset_tod_system_watchdog( ts ); } } _Thread_Enable_dispatch(); 59366: 4ef9 0005 c34a jmp 5c34a <_Thread_Enable_dispatch> <== NOT EXECUTED if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) { /* * We have to advance the last known ticks value of the server and update * the watchdog chain accordingly. */ _ISR_Disable( level ); 5936c: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED 59372: 40c3 movew %sr,%d3 <== NOT EXECUTED 59374: 8083 orl %d3,%d0 <== NOT EXECUTED 59376: 46c0 movew %d0,%sr <== NOT EXECUTED snapshot = _Watchdog_Ticks_since_boot; 59378: 2039 0007 d2ec movel 7d2ec <_Watchdog_Ticks_since_boot>,%d0<== NOT EXECUTED 5937e: 220a movel %a2,%d1 <== NOT EXECUTED 59380: 0681 0000 0034 addil #52,%d1 <== NOT EXECUTED last_snapshot = ts->Interval_watchdogs.last_snapshot; 59386: 282a 003c movel %a2@(60),%d4 <== NOT EXECUTED initialized = false; } #endif return status; } 5938a: 226a 0030 moveal %a2@(48),%a1 <== NOT EXECUTED * the watchdog chain accordingly. */ _ISR_Disable( level ); snapshot = _Watchdog_Ticks_since_boot; last_snapshot = ts->Interval_watchdogs.last_snapshot; if ( !_Chain_Is_empty( &ts->Interval_watchdogs.Chain ) ) { 5938e: b289 cmpl %a1,%d1 <== NOT EXECUTED 59390: 6712 beqs 593a4 <_Timer_server_Schedule_operation_method+0x10a><== NOT EXECUTED first_watchdog = _Watchdog_First( &ts->Interval_watchdogs.Chain ); /* * We assume adequate unsigned arithmetic here. */ delta = snapshot - last_snapshot; 59392: 2200 movel %d0,%d1 <== NOT EXECUTED 59394: 9284 subl %d4,%d1 <== NOT EXECUTED delta_interval = first_watchdog->delta_interval; 59396: 2429 0010 movel %a1@(16),%d2 <== NOT EXECUTED if (delta_interval > delta) { 5939a: b481 cmpl %d1,%d2 <== NOT EXECUTED 5939c: 633a blss 593d8 <_Timer_server_Schedule_operation_method+0x13e><== NOT EXECUTED delta_interval -= delta; 5939e: 9481 subl %d1,%d2 <== NOT EXECUTED } else { delta_interval = 0; } first_watchdog->delta_interval = delta_interval; 593a0: 2342 0010 movel %d2,%a1@(16) <== NOT EXECUTED } ts->Interval_watchdogs.last_snapshot = snapshot; 593a4: 2540 003c movel %d0,%a2@(60) <== NOT EXECUTED _ISR_Enable( level ); 593a8: 46c3 movew %d3,%sr <== NOT EXECUTED _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker ); 593aa: 4868 0010 pea %a0@(16) <== NOT EXECUTED 593ae: 486a 0030 pea %a2@(48) <== NOT EXECUTED 593b2: 4eb9 0005 d4dc jsr 5d4dc <_Watchdog_Insert> <== NOT EXECUTED if ( !ts->active ) { 593b8: 508f addql #8,%sp <== NOT EXECUTED 593ba: 102a 007c moveb %a2@(124),%d0 <== NOT EXECUTED 593be: 6600 ff2a bnew 592ea <_Timer_server_Schedule_operation_method+0x50><== NOT EXECUTED _Timer_server_Reset_interval_system_watchdog( ts ); 593c2: 2f0a movel %a2,%sp@- <== NOT EXECUTED 593c4: 4eba fbd2 jsr %pc@(58f98 <_Timer_server_Reset_interval_system_watchdog>)<== NOT EXECUTED 593c8: 588f addql #4,%sp <== NOT EXECUTED * critical section. We have to use the protected chain methods because * we may be interrupted by a higher priority interrupt. */ _Chain_Append( ts->insert_chain, &timer->Object.Node ); } } 593ca: 4cee 041c fff0 moveml %fp@(-16),%d2-%d4/%a2 <== NOT EXECUTED 593d0: 4e5e unlk %fp <== NOT EXECUTED if ( !ts->active ) { _Timer_server_Reset_tod_system_watchdog( ts ); } } _Thread_Enable_dispatch(); 593d2: 4ef9 0005 c34a jmp 5c34a <_Thread_Enable_dispatch> <== NOT EXECUTED delta_interval = first_watchdog->delta_interval; if (delta_interval > delta) { delta_interval -= delta; } else { delta_interval = 0; 593d8: 4282 clrl %d2 <== NOT EXECUTED } first_watchdog->delta_interval = delta_interval; 593da: 2342 0010 movel %d2,%a1@(16) <== NOT EXECUTED 593de: 60c4 bras 593a4 <_Timer_server_Schedule_operation_method+0x10a><== NOT EXECUTED } } else { /* * Someone put us in the past. */ delta = last_snapshot - snapshot; 593e0: d283 addl %d3,%d1 <== NOT EXECUTED delta_interval += delta; 593e2: 9280 subl %d0,%d1 <== NOT EXECUTED } first_watchdog->delta_interval = delta_interval; 593e4: 2341 0010 movel %d1,%a1@(16) <== NOT EXECUTED 593e8: 6000 ff50 braw 5933a <_Timer_server_Schedule_operation_method+0xa0><== NOT EXECUTED */ delta = snapshot - last_snapshot; if (delta_interval > delta) { delta_interval -= delta; } else { delta_interval = 0; 593ec: 4281 clrl %d1 <== NOT EXECUTED * Someone put us in the past. */ delta = last_snapshot - snapshot; delta_interval += delta; } first_watchdog->delta_interval = delta_interval; 593ee: 2341 0010 movel %d1,%a1@(16) <== NOT EXECUTED 593f2: 6000 ff46 braw 5933a <_Timer_server_Schedule_operation_method+0xa0><== NOT EXECUTED =============================================================================== 0004945c <_Timespec_Add_to>: uint32_t _Timespec_Add_to( struct timespec *time, const struct timespec *add ) { 4945c: 4e56 0000 linkw %fp,#0 49460: 226e 0008 moveal %fp@(8),%a1 49464: 2f0a movel %a2,%sp@- 49466: 246e 000c moveal %fp@(12),%a2 uint32_t seconds = add->tv_sec; /* Add the basics */ time->tv_sec += add->tv_sec; time->tv_nsec += add->tv_nsec; 4946a: 206a 0004 moveal %a2@(4),%a0 4946e: d1e9 0004 addal %a1@(4),%a0 /* Now adjust it so nanoseconds is in range */ while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) { 49472: 2208 movel %a0,%d1 uint32_t _Timespec_Add_to( struct timespec *time, const struct timespec *add ) { uint32_t seconds = add->tv_sec; 49474: 2012 movel %a2@,%d0 /* Add the basics */ time->tv_sec += add->tv_sec; 49476: d191 addl %d0,%a1@ time->tv_nsec += add->tv_nsec; 49478: 2348 0004 movel %a0,%a1@(4) /* Now adjust it so nanoseconds is in range */ while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) { 4947c: b1fc 3b9a c9ff cmpal #999999999,%a0 49482: 631a blss 4949e <_Timespec_Add_to+0x42> <== ALWAYS TAKEN 49484: 2051 moveal %a1@,%a0 <== NOT EXECUTED * * This routines adds two timespecs. The second argument is added * to the first. */ uint32_t _Timespec_Add_to( 49486: 5288 addql #1,%a0 <== NOT EXECUTED time->tv_sec += add->tv_sec; time->tv_nsec += add->tv_nsec; /* Now adjust it so nanoseconds is in range */ while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) { time->tv_nsec -= TOD_NANOSECONDS_PER_SECOND; 49488: 0681 c465 3600 addil #-1000000000,%d1 <== NOT EXECUTED time->tv_sec++; seconds++; 4948e: 5280 addql #1,%d0 <== NOT EXECUTED /* Add the basics */ time->tv_sec += add->tv_sec; time->tv_nsec += add->tv_nsec; /* Now adjust it so nanoseconds is in range */ while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) { 49490: 0c81 3b9a c9ff cmpil #999999999,%d1 <== NOT EXECUTED 49496: 62ee bhis 49486 <_Timespec_Add_to+0x2a> <== NOT EXECUTED 49498: 2341 0004 movel %d1,%a1@(4) <== NOT EXECUTED 4949c: 2288 movel %a0,%a1@ <== NOT EXECUTED time->tv_sec++; seconds++; } return seconds; } 4949e: 245f moveal %sp@+,%a2 494a0: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 0004af70 <_Timespec_Divide>: const struct timespec *lhs, const struct timespec *rhs, uint32_t *ival_percentage, uint32_t *fval_percentage ) { 4af70: 4e56 ffe0 linkw %fp,#-32 <== NOT EXECUTED 4af74: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 4af78: 48d7 3c3c moveml %d2-%d5/%a2-%a5,%sp@ <== NOT EXECUTED * For math simplicity just convert the timespec to nanoseconds * in a 64-bit integer. */ left = lhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; left += lhs->tv_nsec; right = rhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; 4af7c: 2f3c 3b9a ca00 movel #1000000000,%sp@- <== NOT EXECUTED const struct timespec *lhs, const struct timespec *rhs, uint32_t *ival_percentage, uint32_t *fval_percentage ) { 4af82: 266e 000c moveal %fp@(12),%a3 <== NOT EXECUTED * For math simplicity just convert the timespec to nanoseconds * in a 64-bit integer. */ left = lhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; left += lhs->tv_nsec; right = rhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; 4af86: 45f9 0005 b720 lea 5b720 <__muldi3>,%a2 <== NOT EXECUTED 4af8c: 42a7 clrl %sp@- <== NOT EXECUTED /* * For math simplicity just convert the timespec to nanoseconds * in a 64-bit integer. */ left = lhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; 4af8e: 2a10 movel %a0@,%d5 <== NOT EXECUTED left += lhs->tv_nsec; 4af90: 2828 0004 movel %a0@(4),%d4 <== NOT EXECUTED right = rhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; 4af94: 2f13 movel %a3@,%sp@- <== NOT EXECUTED 4af96: 5bc0 smi %d0 <== NOT EXECUTED 4af98: 49c0 extbl %d0 <== NOT EXECUTED 4af9a: 2f00 movel %d0,%sp@- <== NOT EXECUTED const struct timespec *lhs, const struct timespec *rhs, uint32_t *ival_percentage, uint32_t *fval_percentage ) { 4af9c: 286e 0010 moveal %fp@(16),%a4 <== NOT EXECUTED * For math simplicity just convert the timespec to nanoseconds * in a 64-bit integer. */ left = lhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; left += lhs->tv_nsec; right = rhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; 4afa0: 4e92 jsr %a2@ <== NOT EXECUTED 4afa2: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 4afa6: 2040 moveal %d0,%a0 <== NOT EXECUTED 4afa8: 2241 moveal %d1,%a1 <== NOT EXECUTED right += rhs->tv_nsec; 4afaa: 262b 0004 movel %a3@(4),%d3 <== NOT EXECUTED 4afae: 5bc2 smi %d2 <== NOT EXECUTED 4afb0: 49c2 extbl %d2 <== NOT EXECUTED const struct timespec *lhs, const struct timespec *rhs, uint32_t *ival_percentage, uint32_t *fval_percentage ) { 4afb2: 266e 0014 moveal %fp@(20),%a3 <== NOT EXECUTED * in a 64-bit integer. */ left = lhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; left += lhs->tv_nsec; right = rhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; right += rhs->tv_nsec; 4afb6: 2208 movel %a0,%d1 <== NOT EXECUTED 4afb8: d689 addl %a1,%d3 <== NOT EXECUTED 4afba: d581 addxl %d1,%d2 <== NOT EXECUTED if ( right == 0 ) { 4afbc: 6700 0086 beqw 4b044 <_Timespec_Divide+0xd4> <== NOT EXECUTED * Put it back in the timespec result. * * TODO: Rounding on the last digit of the fval. */ answer = (left * 100000) / right; 4afc0: 4bf9 0005 bf6c lea 5bf6c <__udivdi3>,%a5 <== NOT EXECUTED /* * For math simplicity just convert the timespec to nanoseconds * in a 64-bit integer. */ left = lhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; 4afc6: 2f3c 3b9a ca00 movel #1000000000,%sp@- <== NOT EXECUTED 4afcc: 42a7 clrl %sp@- <== NOT EXECUTED 4afce: 2f05 movel %d5,%sp@- <== NOT EXECUTED 4afd0: 5bc1 smi %d1 <== NOT EXECUTED 4afd2: 49c1 extbl %d1 <== NOT EXECUTED 4afd4: 2f01 movel %d1,%sp@- <== NOT EXECUTED left += lhs->tv_nsec; 4afd6: 2a04 movel %d4,%d5 <== NOT EXECUTED 4afd8: 5bc4 smi %d4 <== NOT EXECUTED 4afda: 49c4 extbl %d4 <== NOT EXECUTED /* * For math simplicity just convert the timespec to nanoseconds * in a 64-bit integer. */ left = lhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; 4afdc: 4e92 jsr %a2@ <== NOT EXECUTED 4afde: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 4afe2: 2040 moveal %d0,%a0 <== NOT EXECUTED 4afe4: 2241 moveal %d1,%a1 <== NOT EXECUTED * Put it back in the timespec result. * * TODO: Rounding on the last digit of the fval. */ answer = (left * 100000) / right; 4afe6: 2f3c 0001 86a0 movel #100000,%sp@- <== NOT EXECUTED 4afec: 2008 movel %a0,%d0 <== NOT EXECUTED 4afee: 2209 movel %a1,%d1 <== NOT EXECUTED 4aff0: 42a7 clrl %sp@- <== NOT EXECUTED 4aff2: d285 addl %d5,%d1 <== NOT EXECUTED 4aff4: d184 addxl %d4,%d0 <== NOT EXECUTED 4aff6: 2f01 movel %d1,%sp@- <== NOT EXECUTED 4aff8: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4affa: 4e92 jsr %a2@ <== NOT EXECUTED 4affc: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4b000: 2e83 movel %d3,%sp@ <== NOT EXECUTED 4b002: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4b004: 2f01 movel %d1,%sp@- <== NOT EXECUTED 4b006: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4b008: 4e95 jsr %a5@ <== NOT EXECUTED 4b00a: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 4b00e: 2400 movel %d0,%d2 <== NOT EXECUTED *ival_percentage = answer / 1000; 4b010: 4878 03e8 pea 3e8 <== NOT EXECUTED * Put it back in the timespec result. * * TODO: Rounding on the last digit of the fval. */ answer = (left * 100000) / right; 4b014: 2601 movel %d1,%d3 <== NOT EXECUTED *ival_percentage = answer / 1000; 4b016: 42a7 clrl %sp@- <== NOT EXECUTED 4b018: 2f01 movel %d1,%sp@- <== NOT EXECUTED 4b01a: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4b01c: 4e95 jsr %a5@ <== NOT EXECUTED 4b01e: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED *fval_percentage = answer % 1000; 4b022: 4878 03e8 pea 3e8 <== NOT EXECUTED 4b026: 42a7 clrl %sp@- <== NOT EXECUTED * TODO: Rounding on the last digit of the fval. */ answer = (left * 100000) / right; *ival_percentage = answer / 1000; 4b028: 2881 movel %d1,%a4@ <== NOT EXECUTED *fval_percentage = answer % 1000; 4b02a: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4b02c: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4b02e: 4eb9 0005 c2f8 jsr 5c2f8 <__umoddi3> <== NOT EXECUTED 4b034: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 4b038: 2681 movel %d1,%a3@ <== NOT EXECUTED } 4b03a: 4cee 3c3c ffe0 moveml %fp@(-32),%d2-%d5/%a2-%a5 <== NOT EXECUTED 4b040: 4e5e unlk %fp <== NOT EXECUTED 4b042: 4e75 rts <== NOT EXECUTED left += lhs->tv_nsec; right = rhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; right += rhs->tv_nsec; if ( right == 0 ) { *ival_percentage = 0; 4b044: 4294 clrl %a4@ <== NOT EXECUTED *fval_percentage = 0; 4b046: 4293 clrl %a3@ <== NOT EXECUTED answer = (left * 100000) / right; *ival_percentage = answer / 1000; *fval_percentage = answer % 1000; } 4b048: 4cee 3c3c ffe0 moveml %fp@(-32),%d2-%d5/%a2-%a5 <== NOT EXECUTED 4b04e: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 0004afcc <_Timespec_Divide_by_integer>: void _Timespec_Divide_by_integer( const struct timespec *time, uint32_t iterations, struct timespec *result ) { 4afcc: 4e56 ffec linkw %fp,#-20 <== NOT EXECUTED 4afd0: 48d7 1c0c moveml %d2-%d3/%a2-%a4,%sp@ <== NOT EXECUTED /* * For math simplicity just convert the timespec to nanoseconds * in a 64-bit integer. */ t = time->tv_sec; t *= TOD_NANOSECONDS_PER_SECOND; 4afd4: 2f3c 3b9a ca00 movel #1000000000,%sp@- <== NOT EXECUTED void _Timespec_Divide_by_integer( const struct timespec *time, uint32_t iterations, struct timespec *result ) { 4afda: 286e 0008 moveal %fp@(8),%a4 <== NOT EXECUTED /* * Divide to get nanoseconds per iteration */ t /= iterations; 4afde: 47f9 0005 ba6c lea 5ba6c <__udivdi3>,%a3 <== NOT EXECUTED /* * For math simplicity just convert the timespec to nanoseconds * in a 64-bit integer. */ t = time->tv_sec; t *= TOD_NANOSECONDS_PER_SECOND; 4afe4: 42a7 clrl %sp@- <== NOT EXECUTED void _Timespec_Divide_by_integer( const struct timespec *time, uint32_t iterations, struct timespec *result ) { 4afe6: 246e 0010 moveal %fp@(16),%a2 <== NOT EXECUTED /* * For math simplicity just convert the timespec to nanoseconds * in a 64-bit integer. */ t = time->tv_sec; t *= TOD_NANOSECONDS_PER_SECOND; 4afea: 2f14 movel %a4@,%sp@- <== NOT EXECUTED 4afec: 5bc0 smi %d0 <== NOT EXECUTED 4afee: 49c0 extbl %d0 <== NOT EXECUTED 4aff0: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4aff2: 4eb9 0005 b220 jsr 5b220 <__muldi3> <== NOT EXECUTED 4aff8: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 4affc: 2040 moveal %d0,%a0 <== NOT EXECUTED 4affe: 2241 moveal %d1,%a1 <== NOT EXECUTED /* * Divide to get nanoseconds per iteration */ t /= iterations; 4b000: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 4b004: 2408 movel %a0,%d2 <== NOT EXECUTED 4b006: 2609 movel %a1,%d3 <== NOT EXECUTED * For math simplicity just convert the timespec to nanoseconds * in a 64-bit integer. */ t = time->tv_sec; t *= TOD_NANOSECONDS_PER_SECOND; t += time->tv_nsec; 4b008: 222c 0004 movel %a4@(4),%d1 <== NOT EXECUTED 4b00c: 5bc0 smi %d0 <== NOT EXECUTED 4b00e: 49c0 extbl %d0 <== NOT EXECUTED /* * Divide to get nanoseconds per iteration */ t /= iterations; 4b010: 42a7 clrl %sp@- <== NOT EXECUTED 4b012: d681 addl %d1,%d3 <== NOT EXECUTED 4b014: d580 addxl %d0,%d2 <== NOT EXECUTED 4b016: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4b018: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4b01a: 4e93 jsr %a3@ <== NOT EXECUTED 4b01c: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 4b020: 2400 movel %d0,%d2 <== NOT EXECUTED 4b022: 2601 movel %d1,%d3 <== NOT EXECUTED /* * Put it back in the timespec result */ result->tv_sec = t / TOD_NANOSECONDS_PER_SECOND; 4b024: 2f3c 3b9a ca00 movel #1000000000,%sp@- <== NOT EXECUTED 4b02a: 42a7 clrl %sp@- <== NOT EXECUTED 4b02c: 2f01 movel %d1,%sp@- <== NOT EXECUTED 4b02e: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4b030: 4e93 jsr %a3@ <== NOT EXECUTED result->tv_nsec = t % TOD_NANOSECONDS_PER_SECOND; 4b032: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4b036: 2ebc 3b9a ca00 movel #1000000000,%sp@ <== NOT EXECUTED 4b03c: 42a7 clrl %sp@- <== NOT EXECUTED /* * Put it back in the timespec result */ result->tv_sec = t / TOD_NANOSECONDS_PER_SECOND; 4b03e: 2481 movel %d1,%a2@ <== NOT EXECUTED result->tv_nsec = t % TOD_NANOSECONDS_PER_SECOND; 4b040: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4b042: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4b044: 4eb9 0005 bdf8 jsr 5bdf8 <__umoddi3> <== NOT EXECUTED 4b04a: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 4b04e: 2541 0004 movel %d1,%a2@(4) <== NOT EXECUTED } 4b052: 4cee 1c0c ffec moveml %fp@(-20),%d2-%d3/%a2-%a4 <== NOT EXECUTED 4b058: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 0004a1bc <_Timespec_From_ticks>: struct timespec *time ) { uint32_t usecs; usecs = ticks * rtems_configuration_get_microseconds_per_tick(); 4a1bc: 43f9 0005 ede0 lea 5ede0 ,%a1 <== NOT EXECUTED void _Timespec_From_ticks( uint32_t ticks, struct timespec *time ) { 4a1c2: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED uint32_t usecs; usecs = ticks * rtems_configuration_get_microseconds_per_tick(); 4a1c6: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED 4a1ca: 4c11 0800 mulsl %a1@,%d0 <== NOT EXECUTED void _Timespec_From_ticks( uint32_t ticks, struct timespec *time ) { 4a1ce: 2f02 movel %d2,%sp@- <== NOT EXECUTED uint32_t usecs; usecs = ticks * rtems_configuration_get_microseconds_per_tick(); time->tv_sec = usecs / TOD_MICROSECONDS_PER_SECOND; 4a1d0: 243c 000f 4240 movel #1000000,%d2 <== NOT EXECUTED void _Timespec_From_ticks( uint32_t ticks, struct timespec *time ) { 4a1d6: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED uint32_t usecs; usecs = ticks * rtems_configuration_get_microseconds_per_tick(); time->tv_sec = usecs / TOD_MICROSECONDS_PER_SECOND; 4a1da: 4c42 0001 remul %d2,%d1,%d0 <== NOT EXECUTED 4a1de: 4c42 0000 remul %d2,%d0,%d0 <== NOT EXECUTED time->tv_nsec = (usecs % TOD_MICROSECONDS_PER_SECOND) * TOD_NANOSECONDS_PER_MICROSECOND; } 4a1e2: 241f movel %sp@+,%d2 <== NOT EXECUTED 4a1e4: 4e5e unlk %fp <== NOT EXECUTED { uint32_t usecs; usecs = ticks * rtems_configuration_get_microseconds_per_tick(); time->tv_sec = usecs / TOD_MICROSECONDS_PER_SECOND; 4a1e6: 2080 movel %d0,%a0@ <== NOT EXECUTED time->tv_nsec = (usecs % TOD_MICROSECONDS_PER_SECOND) * 4a1e8: 203c 0000 03e8 movel #1000,%d0 <== NOT EXECUTED 4a1ee: 4c01 0800 mulsl %d1,%d0 <== NOT EXECUTED 4a1f2: 2140 0004 movel %d0,%a0@(4) <== NOT EXECUTED TOD_NANOSECONDS_PER_MICROSECOND; } =============================================================================== 0004b05c <_Timespec_Greater_than>: bool _Timespec_Greater_than( const struct timespec *lhs, const struct timespec *rhs ) { 4b05c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4b060: 226e 0008 moveal %fp@(8),%a1 <== NOT EXECUTED 4b064: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED if ( lhs->tv_sec > rhs->tv_sec ) 4b068: 2211 movel %a1@,%d1 <== NOT EXECUTED 4b06a: 2010 movel %a0@,%d0 <== NOT EXECUTED 4b06c: b081 cmpl %d1,%d0 <== NOT EXECUTED 4b06e: 6d18 blts 4b088 <_Timespec_Greater_than+0x2c> <== NOT EXECUTED return true; if ( lhs->tv_sec < rhs->tv_sec ) 4b070: 6e10 bgts 4b082 <_Timespec_Greater_than+0x26> <== NOT EXECUTED #include #include #include bool _Timespec_Greater_than( 4b072: 2068 0004 moveal %a0@(4),%a0 <== NOT EXECUTED 4b076: b1e9 0004 cmpal %a1@(4),%a0 <== NOT EXECUTED 4b07a: 5dc0 slt %d0 <== NOT EXECUTED /* ASSERT: lhs->tv_sec == rhs->tv_sec */ if ( lhs->tv_nsec > rhs->tv_nsec ) return true; return false; } 4b07c: 4e5e unlk %fp <== NOT EXECUTED #include #include #include bool _Timespec_Greater_than( 4b07e: 4480 negl %d0 <== NOT EXECUTED /* ASSERT: lhs->tv_sec == rhs->tv_sec */ if ( lhs->tv_nsec > rhs->tv_nsec ) return true; return false; } 4b080: 4e75 rts <== NOT EXECUTED 4b082: 4e5e unlk %fp <== NOT EXECUTED { if ( lhs->tv_sec > rhs->tv_sec ) return true; if ( lhs->tv_sec < rhs->tv_sec ) return false; 4b084: 4200 clrb %d0 <== NOT EXECUTED /* ASSERT: lhs->tv_sec == rhs->tv_sec */ if ( lhs->tv_nsec > rhs->tv_nsec ) return true; return false; } 4b086: 4e75 rts <== NOT EXECUTED 4b088: 4e5e unlk %fp <== NOT EXECUTED const struct timespec *lhs, const struct timespec *rhs ) { if ( lhs->tv_sec > rhs->tv_sec ) return true; 4b08a: 7001 moveq #1,%d0 <== NOT EXECUTED /* ASSERT: lhs->tv_sec == rhs->tv_sec */ if ( lhs->tv_nsec > rhs->tv_nsec ) return true; return false; } ... =============================================================================== 0004a1f8 <_Timespec_Is_valid>: #include bool _Timespec_Is_valid( const struct timespec *time ) { 4a1f8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4a1fc: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED if ( !time ) 4a200: 4a88 tstl %a0 <== NOT EXECUTED 4a202: 6718 beqs 4a21c <_Timespec_Is_valid+0x24> <== NOT EXECUTED return false; if ( time->tv_sec < 0 ) 4a204: 4a90 tstl %a0@ <== NOT EXECUTED 4a206: 6d14 blts 4a21c <_Timespec_Is_valid+0x24> <== NOT EXECUTED return false; if ( time->tv_nsec < 0 ) 4a208: 2028 0004 movel %a0@(4),%d0 <== NOT EXECUTED 4a20c: 6d0e blts 4a21c <_Timespec_Is_valid+0x24> <== NOT EXECUTED if ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) return false; return true; } 4a20e: 4e5e unlk %fp <== NOT EXECUTED #include #include #include bool _Timespec_Is_valid( 4a210: 0c80 3b9a c9ff cmpil #999999999,%d0 <== NOT EXECUTED 4a216: 53c0 sls %d0 <== NOT EXECUTED 4a218: 4480 negl %d0 <== NOT EXECUTED if ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) return false; return true; } 4a21a: 4e75 rts <== NOT EXECUTED 4a21c: 4e5e unlk %fp <== NOT EXECUTED if ( time->tv_sec < 0 ) return false; if ( time->tv_nsec < 0 ) return false; 4a21e: 4200 clrb %d0 <== NOT EXECUTED if ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) return false; return true; } ... =============================================================================== 0004b090 <_Timespec_Less_than>: bool _Timespec_Less_than( const struct timespec *lhs, const struct timespec *rhs ) { 4b090: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4b094: 226e 0008 moveal %fp@(8),%a1 <== NOT EXECUTED 4b098: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED if ( lhs->tv_sec < rhs->tv_sec ) 4b09c: 2211 movel %a1@,%d1 <== NOT EXECUTED 4b09e: 2010 movel %a0@,%d0 <== NOT EXECUTED 4b0a0: b081 cmpl %d1,%d0 <== NOT EXECUTED 4b0a2: 6e18 bgts 4b0bc <_Timespec_Less_than+0x2c> <== NOT EXECUTED return true; if ( lhs->tv_sec > rhs->tv_sec ) 4b0a4: 6d10 blts 4b0b6 <_Timespec_Less_than+0x26> <== NOT EXECUTED #include #include #include bool _Timespec_Less_than( 4b0a6: 2068 0004 moveal %a0@(4),%a0 <== NOT EXECUTED 4b0aa: b1e9 0004 cmpal %a1@(4),%a0 <== NOT EXECUTED 4b0ae: 5ec0 sgt %d0 <== NOT EXECUTED /* ASSERT: lhs->tv_sec == rhs->tv_sec */ if ( lhs->tv_nsec < rhs->tv_nsec ) return true; return false; } 4b0b0: 4e5e unlk %fp <== NOT EXECUTED #include #include #include bool _Timespec_Less_than( 4b0b2: 4480 negl %d0 <== NOT EXECUTED /* ASSERT: lhs->tv_sec == rhs->tv_sec */ if ( lhs->tv_nsec < rhs->tv_nsec ) return true; return false; } 4b0b4: 4e75 rts <== NOT EXECUTED 4b0b6: 4e5e unlk %fp <== NOT EXECUTED { if ( lhs->tv_sec < rhs->tv_sec ) return true; if ( lhs->tv_sec > rhs->tv_sec ) return false; 4b0b8: 4200 clrb %d0 <== NOT EXECUTED /* ASSERT: lhs->tv_sec == rhs->tv_sec */ if ( lhs->tv_nsec < rhs->tv_nsec ) return true; return false; } 4b0ba: 4e75 rts <== NOT EXECUTED 4b0bc: 4e5e unlk %fp <== NOT EXECUTED const struct timespec *lhs, const struct timespec *rhs ) { if ( lhs->tv_sec < rhs->tv_sec ) return true; 4b0be: 7001 moveq #1,%d0 <== NOT EXECUTED /* ASSERT: lhs->tv_sec == rhs->tv_sec */ if ( lhs->tv_nsec < rhs->tv_nsec ) return true; return false; } ... =============================================================================== 000494a4 <_Timespec_Subtract>: void _Timespec_Subtract( const struct timespec *start, const struct timespec *end, struct timespec *result ) { 494a4: 4e56 0000 linkw %fp,#0 494a8: 226e 0008 moveal %fp@(8),%a1 494ac: 2f0a movel %a2,%sp@- 494ae: 246e 000c moveal %fp@(12),%a2 494b2: 206e 0010 moveal %fp@(16),%a0 if (end->tv_nsec < start->tv_nsec) { 494b6: 222a 0004 movel %a2@(4),%d1 494ba: 2029 0004 movel %a1@(4),%d0 void _Timespec_Subtract( const struct timespec *start, const struct timespec *end, struct timespec *result ) { 494be: 2f02 movel %d2,%sp@- if (end->tv_nsec < start->tv_nsec) { 494c0: b081 cmpl %d1,%d0 494c2: 6e14 bgts 494d8 <_Timespec_Subtract+0x34> <== NEVER TAKEN result->tv_sec = end->tv_sec - start->tv_sec - 1; result->tv_nsec = (TOD_NANOSECONDS_PER_SECOND - start->tv_nsec) + end->tv_nsec; } else { result->tv_sec = end->tv_sec - start->tv_sec; 494c4: 2412 movel %a2@,%d2 494c6: 9491 subl %a1@,%d2 result->tv_nsec = end->tv_nsec - start->tv_nsec; 494c8: 9280 subl %d0,%d1 if (end->tv_nsec < start->tv_nsec) { result->tv_sec = end->tv_sec - start->tv_sec - 1; result->tv_nsec = (TOD_NANOSECONDS_PER_SECOND - start->tv_nsec) + end->tv_nsec; } else { result->tv_sec = end->tv_sec - start->tv_sec; 494ca: 2082 movel %d2,%a0@ result->tv_nsec = end->tv_nsec - start->tv_nsec; } } 494cc: 241f movel %sp@+,%d2 494ce: 245f moveal %sp@+,%a2 494d0: 4e5e unlk %fp result->tv_sec = end->tv_sec - start->tv_sec - 1; result->tv_nsec = (TOD_NANOSECONDS_PER_SECOND - start->tv_nsec) + end->tv_nsec; } else { result->tv_sec = end->tv_sec - start->tv_sec; result->tv_nsec = end->tv_nsec - start->tv_nsec; 494d2: 2141 0004 movel %d1,%a0@(4) } } 494d6: 4e75 rts struct timespec *result ) { if (end->tv_nsec < start->tv_nsec) { result->tv_sec = end->tv_sec - start->tv_sec - 1; 494d8: 2452 moveal %a2@,%a2 <== NOT EXECUTED 494da: 538a subql #1,%a2 <== NOT EXECUTED 494dc: 95d1 subal %a1@,%a2 <== NOT EXECUTED result->tv_nsec = (TOD_NANOSECONDS_PER_SECOND - start->tv_nsec) + end->tv_nsec; 494de: 0681 3b9a ca00 addil #1000000000,%d1 <== NOT EXECUTED 494e4: 9280 subl %d0,%d1 <== NOT EXECUTED } else { result->tv_sec = end->tv_sec - start->tv_sec; result->tv_nsec = end->tv_nsec - start->tv_nsec; } } 494e6: 241f movel %sp@+,%d2 <== NOT EXECUTED struct timespec *result ) { if (end->tv_nsec < start->tv_nsec) { result->tv_sec = end->tv_sec - start->tv_sec - 1; 494e8: 208a movel %a2,%a0@ <== NOT EXECUTED (TOD_NANOSECONDS_PER_SECOND - start->tv_nsec) + end->tv_nsec; } else { result->tv_sec = end->tv_sec - start->tv_sec; result->tv_nsec = end->tv_nsec - start->tv_nsec; } } 494ea: 245f moveal %sp@+,%a2 <== NOT EXECUTED 494ec: 4e5e unlk %fp <== NOT EXECUTED { if (end->tv_nsec < start->tv_nsec) { result->tv_sec = end->tv_sec - start->tv_sec - 1; result->tv_nsec = (TOD_NANOSECONDS_PER_SECOND - start->tv_nsec) + end->tv_nsec; 494ee: 2141 0004 movel %d1,%a0@(4) <== NOT EXECUTED } else { result->tv_sec = end->tv_sec - start->tv_sec; result->tv_nsec = end->tv_nsec - start->tv_nsec; } } =============================================================================== 0004a274 <_Timespec_To_ticks>: */ uint32_t _Timespec_To_ticks( const struct timespec *time ) { 4a274: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 4a278: 48d7 040c moveml %d2-%d3/%a2,%sp@ <== NOT EXECUTED 4a27c: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED uint32_t ticks; if ( (time->tv_sec == 0) && (time->tv_nsec == 0) ) 4a280: 2412 movel %a2@,%d2 <== NOT EXECUTED 4a282: 6606 bnes 4a28a <_Timespec_To_ticks+0x16> <== NOT EXECUTED 4a284: 4aaa 0004 tstl %a2@(4) <== NOT EXECUTED 4a288: 673e beqs 4a2c8 <_Timespec_To_ticks+0x54> <== NOT EXECUTED return 0; ticks = time->tv_sec * TOD_TICKS_PER_SECOND; 4a28a: 4eb9 0004 c970 jsr 4c970 <== NOT EXECUTED ticks += time->tv_nsec / rtems_configuration_get_nanoseconds_per_tick(); 4a290: 2239 0005 ede0 movel 5ede0 ,%d1 <== NOT EXECUTED 4a296: 263c 0000 03e8 movel #1000,%d3 <== NOT EXECUTED 4a29c: 4c03 1800 mulsl %d3,%d1 <== NOT EXECUTED uint32_t ticks; if ( (time->tv_sec == 0) && (time->tv_nsec == 0) ) return 0; ticks = time->tv_sec * TOD_TICKS_PER_SECOND; 4a2a0: 4c02 0800 mulsl %d2,%d0 <== NOT EXECUTED ticks += time->tv_nsec / rtems_configuration_get_nanoseconds_per_tick(); 4a2a4: 262a 0004 movel %a2@(4),%d3 <== NOT EXECUTED 4a2a8: 4c41 3003 remul %d1,%d3,%d3 <== NOT EXECUTED 4a2ac: d083 addl %d3,%d0 <== NOT EXECUTED if (ticks) 4a2ae: 670a beqs 4a2ba <_Timespec_To_ticks+0x46> <== NOT EXECUTED return ticks; return 1; } 4a2b0: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 4a2b6: 4e5e unlk %fp <== NOT EXECUTED 4a2b8: 4e75 rts <== NOT EXECUTED ticks += time->tv_nsec / rtems_configuration_get_nanoseconds_per_tick(); if (ticks) return ticks; return 1; 4a2ba: 103c 0001 moveb #1,%d0 <== NOT EXECUTED } 4a2be: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 4a2c4: 4e5e unlk %fp <== NOT EXECUTED 4a2c6: 4e75 rts <== NOT EXECUTED ) { uint32_t ticks; if ( (time->tv_sec == 0) && (time->tv_nsec == 0) ) return 0; 4a2c8: 4280 clrl %d0 <== NOT EXECUTED if (ticks) return ticks; return 1; } 4a2ca: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 4a2d0: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00049636 <_User_extensions_Fatal>: void _User_extensions_Fatal ( Internal_errors_Source the_source, bool is_internal, Internal_errors_t the_error ) { 49636: 4e56 fff0 linkw %fp,#-16 4963a: 48d7 041c moveml %d2-%d4/%a2,%sp@ 4963e: 242e 0008 movel %fp@(8),%d2 49642: 262e 0010 movel %fp@(16),%d3 the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.fatal != NULL ) (*the_extension->Callouts.fatal)( the_source, is_internal, the_error ); } } 49646: 2479 0005 e63c moveal 5e63c <_User_extensions_List+0x8>,%a2 void _User_extensions_Fatal ( Internal_errors_Source the_source, bool is_internal, Internal_errors_t the_error ) { 4964c: 182e 000f moveb %fp@(15),%d4 Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _Chain_Last( &_User_extensions_List ); 49650: b5fc 0005 e634 cmpal #386612,%a2 49656: 6726 beqs 4967e <_User_extensions_Fatal+0x48> <== NEVER TAKEN the_node = the_node->previous ) { the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.fatal != NULL ) (*the_extension->Callouts.fatal)( the_source, is_internal, the_error ); 49658: 0284 0000 00ff andil #255,%d4 !_Chain_Is_head( &_User_extensions_List, the_node ) ; the_node = the_node->previous ) { the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.fatal != NULL ) 4965e: 206a 0030 moveal %a2@(48),%a0 49662: 4a88 tstl %a0 49664: 670c beqs 49672 <_User_extensions_Fatal+0x3c> (*the_extension->Callouts.fatal)( the_source, is_internal, the_error ); 49666: 2f03 movel %d3,%sp@- 49668: 2f04 movel %d4,%sp@- 4966a: 2f02 movel %d2,%sp@- 4966c: 4e90 jsr %a0@ 4966e: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _Chain_Last( &_User_extensions_List ); !_Chain_Is_head( &_User_extensions_List, the_node ) ; the_node = the_node->previous ) { 49672: 246a 0004 moveal %a2@(4),%a2 ) { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _Chain_Last( &_User_extensions_List ); 49676: b5fc 0005 e634 cmpal #386612,%a2 4967c: 66e0 bnes 4965e <_User_extensions_Fatal+0x28> <== ALWAYS TAKEN the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.fatal != NULL ) (*the_extension->Callouts.fatal)( the_source, is_internal, the_error ); } } 4967e: 4cee 041c fff0 moveml %fp@(-16),%d2-%d4/%a2 <== NOT EXECUTED 49684: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 000494f4 <_User_extensions_Handler_initialization>: #include #include #include void _User_extensions_Handler_initialization(void) { 494f4: 4e56 ffec linkw %fp,#-20 ) { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); head->next = tail; 494f8: 203c 0005 e638 movel #386616,%d0 494fe: 23c0 0005 e634 movel %d0,5e634 <_User_extensions_List> head->previous = NULL; tail->previous = head; 49504: 203c 0005 e634 movel #386612,%d0 4950a: 23c0 0005 e63c movel %d0,5e63c <_User_extensions_List+0x8> ) { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); head->next = tail; 49510: 203c 0005 e4d0 movel #386256,%d0 49516: 23c0 0005 e4cc movel %d0,5e4cc <_User_extensions_Switches_list> head->previous = NULL; tail->previous = head; 4951c: 203c 0005 e4cc movel #386252,%d0 { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); head->next = tail; head->previous = NULL; 49522: 42b9 0005 e638 clrl 5e638 <_User_extensions_List+0x4> 49528: 48d7 0c1c moveml %d2-%d4/%a2-%a3,%sp@ User_extensions_Control *extension; uint32_t i; uint32_t number_of_extensions; User_extensions_Table *initial_extensions; number_of_extensions = Configuration.number_of_initial_extensions; 4952c: 2439 0005 ccce movel 5ccce ,%d2 initial_extensions = Configuration.User_extension_table; 49532: 2639 0005 ccd2 movel 5ccd2 ,%d3 49538: 42b9 0005 e4d0 clrl 5e4d0 <_User_extensions_Switches_list+0x4> tail->previous = head; 4953e: 23c0 0005 e4d4 movel %d0,5e4d4 <_User_extensions_Switches_list+0x8> _Chain_Initialize_empty( &_User_extensions_List ); _Chain_Initialize_empty( &_User_extensions_Switches_list ); if ( initial_extensions ) { 49544: 4a83 tstl %d3 49546: 6764 beqs 495ac <_User_extensions_Handler_initialization+0xb8><== NEVER TAKEN extension = (User_extensions_Control *) _Workspace_Allocate_or_fatal_error( 49548: 7834 moveq #52,%d4 4954a: 4c02 4800 mulsl %d2,%d4 4954e: 2f04 movel %d4,%sp@- 49550: 4eb9 0004 9ab6 jsr 49ab6 <_Workspace_Allocate_or_fatal_error> 49556: 2440 moveal %d0,%a2 number_of_extensions * sizeof( User_extensions_Control ) ); memset ( 49558: 2f04 movel %d4,%sp@- 4955a: 42a7 clrl %sp@- 4955c: 2f00 movel %d0,%sp@- 4955e: 4eb9 0004 e178 jsr 4e178 extension, 0, number_of_extensions * sizeof( User_extensions_Control ) ); for ( i = 0 ; i < number_of_extensions ; i++ ) { 49564: 4fef 0010 lea %sp@(16),%sp 49568: 4a82 tstl %d2 4956a: 6740 beqs 495ac <_User_extensions_Handler_initialization+0xb8><== NEVER TAKEN 4956c: 4284 clrl %d4 4956e: 47f9 0004 c22c lea 4c22c <_User_extensions_Add_set>,%a3 RTEMS_INLINE_ROUTINE void _User_extensions_Add_set_with_table( User_extensions_Control *extension, const User_extensions_Table *extension_table ) { extension->Callouts = *extension_table; 49574: 2043 moveal %d3,%a0 49576: 5284 addql #1,%d4 49578: 0683 0000 0020 addil #32,%d3 4957e: 2558 0014 movel %a0@+,%a2@(20) 49582: 2558 0018 movel %a0@+,%a2@(24) 49586: 2558 001c movel %a0@+,%a2@(28) 4958a: 2558 0020 movel %a0@+,%a2@(32) 4958e: 2558 0024 movel %a0@+,%a2@(36) 49592: 2558 0028 movel %a0@+,%a2@(40) 49596: 2558 002c movel %a0@+,%a2@(44) 4959a: 2550 0030 movel %a0@,%a2@(48) _User_extensions_Add_set( extension ); 4959e: 2f0a movel %a2,%sp@- _User_extensions_Add_set_with_table (extension, &initial_extensions[i]); extension++; 495a0: 45ea 0034 lea %a2@(52),%a2 495a4: 4e93 jsr %a3@ extension, 0, number_of_extensions * sizeof( User_extensions_Control ) ); for ( i = 0 ; i < number_of_extensions ; i++ ) { 495a6: 588f addql #4,%sp 495a8: b882 cmpl %d2,%d4 495aa: 65c8 bcss 49574 <_User_extensions_Handler_initialization+0x80> _User_extensions_Add_set_with_table (extension, &initial_extensions[i]); extension++; } } } 495ac: 4cee 0c1c ffec moveml %fp@(-20),%d2-%d4/%a2-%a3 495b2: 4e5e unlk %fp ... =============================================================================== 0004ad54 <_User_extensions_Remove_set>: #include void _User_extensions_Remove_set ( User_extensions_Control *the_extension ) { 4ad54: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4ad58: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4ad5a: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED _Chain_Extract( &the_extension->Node ); 4ad5e: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4ad60: 4eb9 0004 85a0 jsr 485a0 <_Chain_Extract> <== NOT EXECUTED /* * If a switch handler is present, remove it. */ if ( the_extension->Callouts.thread_switch != NULL ) 4ad66: 588f addql #4,%sp <== NOT EXECUTED 4ad68: 4aaa 0024 tstl %a2@(36) <== NOT EXECUTED 4ad6c: 6712 beqs 4ad80 <_User_extensions_Remove_set+0x2c><== NOT EXECUTED _Chain_Extract( &the_extension->Switch.Node ); 4ad6e: 508a addql #8,%a2 <== NOT EXECUTED 4ad70: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED } 4ad74: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4ad78: 4e5e unlk %fp <== NOT EXECUTED /* * If a switch handler is present, remove it. */ if ( the_extension->Callouts.thread_switch != NULL ) _Chain_Extract( &the_extension->Switch.Node ); 4ad7a: 4ef9 0004 85a0 jmp 485a0 <_Chain_Extract> <== NOT EXECUTED } 4ad80: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4ad84: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 000495b8 <_User_extensions_Thread_begin>: #include void _User_extensions_Thread_begin ( Thread_Control *executing ) { 495b8: 4e56 0000 linkw %fp,#0 495bc: 2f0a movel %a2,%sp@- the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.fatal != NULL ) (*the_extension->Callouts.fatal)( the_source, is_internal, the_error ); } } 495be: 2479 0005 e634 moveal 5e634 <_User_extensions_List>,%a2 #include void _User_extensions_Thread_begin ( Thread_Control *executing ) { 495c4: 2f02 movel %d2,%sp@- 495c6: 242e 0008 movel %fp@(8),%d2 Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _Chain_First( &_User_extensions_List ); 495ca: b5fc 0005 e638 cmpal #386616,%a2 495d0: 6718 beqs 495ea <_User_extensions_Thread_begin+0x32><== NEVER TAKEN !_Chain_Is_tail( &_User_extensions_List, the_node ) ; the_node = the_node->next ) { the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_begin != NULL ) 495d2: 206a 0028 moveal %a2@(40),%a0 495d6: 4a88 tstl %a0 495d8: 6706 beqs 495e0 <_User_extensions_Thread_begin+0x28> (*the_extension->Callouts.thread_begin)( executing ); 495da: 2f02 movel %d2,%sp@- 495dc: 4e90 jsr %a0@ 495de: 588f addql #4,%sp Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _Chain_First( &_User_extensions_List ); !_Chain_Is_tail( &_User_extensions_List, the_node ) ; the_node = the_node->next ) { 495e0: 2452 moveal %a2@,%a2 ) { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _Chain_First( &_User_extensions_List ); 495e2: b5fc 0005 e638 cmpal #386616,%a2 495e8: 66e8 bnes 495d2 <_User_extensions_Thread_begin+0x1a> the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_begin != NULL ) (*the_extension->Callouts.thread_begin)( executing ); } } 495ea: 242e fff8 movel %fp@(-8),%d2 495ee: 246e fffc moveal %fp@(-4),%a2 495f2: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00049688 <_User_extensions_Thread_create>: #include bool _User_extensions_Thread_create ( Thread_Control *the_thread ) { 49688: 4e56 0000 linkw %fp,#0 4968c: 2f0a movel %a2,%sp@- return false; } } return true; } 4968e: 2479 0005 e634 moveal 5e634 <_User_extensions_List>,%a2 #include bool _User_extensions_Thread_create ( Thread_Control *the_thread ) { 49694: 2f02 movel %d2,%sp@- 49696: 242e 0008 movel %fp@(8),%d2 Chain_Node *the_node; User_extensions_Control *the_extension; bool status; for ( the_node = _Chain_First( &_User_extensions_List ); 4969a: b5fc 0005 e638 cmpal #386616,%a2 496a0: 6722 beqs 496c4 <_User_extensions_Thread_create+0x3c><== NEVER TAKEN !_Chain_Is_tail( &_User_extensions_List, the_node ) ; the_node = the_node->next ) { the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_create != NULL ) { 496a2: 206a 0014 moveal %a2@(20),%a0 496a6: 4a88 tstl %a0 496a8: 6710 beqs 496ba <_User_extensions_Thread_create+0x32> status = (*the_extension->Callouts.thread_create)( 496aa: 2f02 movel %d2,%sp@- 496ac: 2f39 0005 e684 movel 5e684 <_Per_CPU_Information+0xc>,%sp@- 496b2: 4e90 jsr %a0@ _Thread_Executing, the_thread ); if ( !status ) 496b4: 508f addql #8,%sp 496b6: 4a00 tstb %d0 496b8: 6718 beqs 496d2 <_User_extensions_Thread_create+0x4a><== NEVER TAKEN User_extensions_Control *the_extension; bool status; for ( the_node = _Chain_First( &_User_extensions_List ); !_Chain_Is_tail( &_User_extensions_List, the_node ) ; the_node = the_node->next ) { 496ba: 2452 moveal %a2@,%a2 { Chain_Node *the_node; User_extensions_Control *the_extension; bool status; for ( the_node = _Chain_First( &_User_extensions_List ); 496bc: b5fc 0005 e638 cmpal #386616,%a2 496c2: 66de bnes 496a2 <_User_extensions_Thread_create+0x1a> return false; } } return true; } 496c4: 242e fff8 movel %fp@(-8),%d2 496c8: 246e fffc moveal %fp@(-4),%a2 496cc: 4e5e unlk %fp if ( !status ) return false; } } return true; 496ce: 7001 moveq #1,%d0 } 496d0: 4e75 rts 496d2: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 496d6: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 496da: 4e5e unlk %fp <== NOT EXECUTED status = (*the_extension->Callouts.thread_create)( _Thread_Executing, the_thread ); if ( !status ) return false; 496dc: 4200 clrb %d0 <== NOT EXECUTED } } return true; } =============================================================================== 000496e0 <_User_extensions_Thread_delete>: #include void _User_extensions_Thread_delete ( Thread_Control *the_thread ) { 496e0: 4e56 0000 linkw %fp,#0 496e4: 2f0a movel %a2,%sp@- (*the_extension->Callouts.thread_delete)( _Thread_Executing, the_thread ); } } 496e6: 2479 0005 e63c moveal 5e63c <_User_extensions_List+0x8>,%a2 #include void _User_extensions_Thread_delete ( Thread_Control *the_thread ) { 496ec: 2f02 movel %d2,%sp@- 496ee: 242e 0008 movel %fp@(8),%d2 Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _Chain_Last( &_User_extensions_List ); 496f2: b5fc 0005 e634 cmpal #386612,%a2 496f8: 6720 beqs 4971a <_User_extensions_Thread_delete+0x3a><== NEVER TAKEN !_Chain_Is_head( &_User_extensions_List, the_node ) ; the_node = the_node->previous ) { the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_delete != NULL ) 496fa: 206a 0020 moveal %a2@(32),%a0 496fe: 4a88 tstl %a0 49700: 670c beqs 4970e <_User_extensions_Thread_delete+0x2e><== NEVER TAKEN (*the_extension->Callouts.thread_delete)( 49702: 2f02 movel %d2,%sp@- 49704: 2f39 0005 e684 movel 5e684 <_Per_CPU_Information+0xc>,%sp@- 4970a: 4e90 jsr %a0@ 4970c: 508f addql #8,%sp Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _Chain_Last( &_User_extensions_List ); !_Chain_Is_head( &_User_extensions_List, the_node ) ; the_node = the_node->previous ) { 4970e: 246a 0004 moveal %a2@(4),%a2 ) { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _Chain_Last( &_User_extensions_List ); 49712: b5fc 0005 e634 cmpal #386612,%a2 49718: 66e0 bnes 496fa <_User_extensions_Thread_delete+0x1a> (*the_extension->Callouts.thread_delete)( _Thread_Executing, the_thread ); } } 4971a: 242e fff8 movel %fp@(-8),%d2 4971e: 246e fffc moveal %fp@(-4),%a2 49722: 4e5e unlk %fp ... =============================================================================== 000495f6 <_User_extensions_Thread_exitted>: void _User_extensions_Thread_exitted ( Thread_Control *executing ) { 495f6: 4e56 0000 linkw %fp,#0 495fa: 2f0a movel %a2,%sp@- the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.fatal != NULL ) (*the_extension->Callouts.fatal)( the_source, is_internal, the_error ); } } 495fc: 2479 0005 e63c moveal 5e63c <_User_extensions_List+0x8>,%a2 } void _User_extensions_Thread_exitted ( Thread_Control *executing ) { 49602: 2f02 movel %d2,%sp@- 49604: 242e 0008 movel %fp@(8),%d2 Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _Chain_Last( &_User_extensions_List ); 49608: b5fc 0005 e634 cmpal #386612,%a2 4960e: 671a beqs 4962a <_User_extensions_Thread_exitted+0x34><== NEVER TAKEN !_Chain_Is_head( &_User_extensions_List, the_node ) ; the_node = the_node->previous ) { the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_exitted != NULL ) 49610: 206a 002c moveal %a2@(44),%a0 49614: 4a88 tstl %a0 49616: 6706 beqs 4961e <_User_extensions_Thread_exitted+0x28><== ALWAYS TAKEN (*the_extension->Callouts.thread_exitted)( executing ); 49618: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4961a: 4e90 jsr %a0@ <== NOT EXECUTED 4961c: 588f addql #4,%sp <== NOT EXECUTED Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _Chain_Last( &_User_extensions_List ); !_Chain_Is_head( &_User_extensions_List, the_node ) ; the_node = the_node->previous ) { 4961e: 246a 0004 moveal %a2@(4),%a2 ) { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _Chain_Last( &_User_extensions_List ); 49622: b5fc 0005 e634 cmpal #386612,%a2 49628: 66e6 bnes 49610 <_User_extensions_Thread_exitted+0x1a> the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_exitted != NULL ) (*the_extension->Callouts.thread_exitted)( executing ); } } 4962a: 242e fff8 movel %fp@(-8),%d2 4962e: 246e fffc moveal %fp@(-4),%a2 49632: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 0004a3cc <_User_extensions_Thread_restart>: #include void _User_extensions_Thread_restart ( Thread_Control *the_thread ) { 4a3cc: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4a3d0: 2f0a movel %a2,%sp@- <== NOT EXECUTED (*the_extension->Callouts.thread_restart)( _Thread_Executing, the_thread ); } } 4a3d2: 2479 0005 f5dc moveal 5f5dc <_User_extensions_List>,%a2 <== NOT EXECUTED #include void _User_extensions_Thread_restart ( Thread_Control *the_thread ) { 4a3d8: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4a3da: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _Chain_First( &_User_extensions_List ); 4a3de: b5fc 0005 f5e0 cmpal #390624,%a2 <== NOT EXECUTED 4a3e4: 671e beqs 4a404 <_User_extensions_Thread_restart+0x38><== NOT EXECUTED !_Chain_Is_tail( &_User_extensions_List, the_node ) ; the_node = the_node->next ) { the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_restart != NULL ) 4a3e6: 206a 001c moveal %a2@(28),%a0 <== NOT EXECUTED 4a3ea: 4a88 tstl %a0 <== NOT EXECUTED 4a3ec: 670c beqs 4a3fa <_User_extensions_Thread_restart+0x2e><== NOT EXECUTED (*the_extension->Callouts.thread_restart)( 4a3ee: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4a3f0: 2f39 0005 f62c movel 5f62c <_Per_CPU_Information+0xc>,%sp@-<== NOT EXECUTED 4a3f6: 4e90 jsr %a0@ <== NOT EXECUTED 4a3f8: 508f addql #8,%sp <== NOT EXECUTED Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _Chain_First( &_User_extensions_List ); !_Chain_Is_tail( &_User_extensions_List, the_node ) ; the_node = the_node->next ) { 4a3fa: 2452 moveal %a2@,%a2 <== NOT EXECUTED ) { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _Chain_First( &_User_extensions_List ); 4a3fc: b5fc 0005 f5e0 cmpal #390624,%a2 <== NOT EXECUTED 4a402: 66e2 bnes 4a3e6 <_User_extensions_Thread_restart+0x1a><== NOT EXECUTED (*the_extension->Callouts.thread_restart)( _Thread_Executing, the_thread ); } } 4a404: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 4a408: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4a40c: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00049728 <_User_extensions_Thread_start>: #include void _User_extensions_Thread_start ( Thread_Control *the_thread ) { 49728: 4e56 0000 linkw %fp,#0 4972c: 2f0a movel %a2,%sp@- (*the_extension->Callouts.thread_start)( _Thread_Executing, the_thread ); } } 4972e: 2479 0005 e634 moveal 5e634 <_User_extensions_List>,%a2 #include void _User_extensions_Thread_start ( Thread_Control *the_thread ) { 49734: 2f02 movel %d2,%sp@- 49736: 242e 0008 movel %fp@(8),%d2 Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _Chain_First( &_User_extensions_List ); 4973a: b5fc 0005 e638 cmpal #386616,%a2 49740: 671e beqs 49760 <_User_extensions_Thread_start+0x38><== NEVER TAKEN !_Chain_Is_tail( &_User_extensions_List, the_node ) ; the_node = the_node->next ) { the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_start != NULL ) 49742: 206a 0018 moveal %a2@(24),%a0 49746: 4a88 tstl %a0 49748: 670c beqs 49756 <_User_extensions_Thread_start+0x2e> (*the_extension->Callouts.thread_start)( 4974a: 2f02 movel %d2,%sp@- 4974c: 2f39 0005 e684 movel 5e684 <_Per_CPU_Information+0xc>,%sp@- 49752: 4e90 jsr %a0@ 49754: 508f addql #8,%sp Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _Chain_First( &_User_extensions_List ); !_Chain_Is_tail( &_User_extensions_List, the_node ) ; the_node = the_node->next ) { 49756: 2452 moveal %a2@,%a2 ) { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _Chain_First( &_User_extensions_List ); 49758: b5fc 0005 e638 cmpal #386616,%a2 4975e: 66e2 bnes 49742 <_User_extensions_Thread_start+0x1a> (*the_extension->Callouts.thread_start)( _Thread_Executing, the_thread ); } } 49760: 242e fff8 movel %fp@(-8),%d2 49764: 246e fffc moveal %fp@(-4),%a2 49768: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 0004976c <_User_extensions_Thread_switch>: void _User_extensions_Thread_switch ( Thread_Control *executing, Thread_Control *heir ) { 4976c: 4e56 fff4 linkw %fp,#-12 49770: 48d7 040c moveml %d2-%d3/%a2,%sp@ 49774: 262e 0008 movel %fp@(8),%d3 49778: 242e 000c movel %fp@(12),%d2 the_extension_switch = (User_extensions_Switch_control *) the_node; (*the_extension_switch->thread_switch)( executing, heir ); } } 4977c: 2479 0005 e4cc moveal 5e4cc <_User_extensions_Switches_list>,%a2 ) { Chain_Node *the_node; User_extensions_Switch_control *the_extension_switch; for ( the_node = _Chain_First( &_User_extensions_Switches_list ); 49782: b5fc 0005 e4d0 cmpal #386256,%a2 49788: 6716 beqs 497a0 <_User_extensions_Thread_switch+0x34><== NEVER TAKEN !_Chain_Is_tail( &_User_extensions_Switches_list, the_node ) ; the_node = the_node->next ) { the_extension_switch = (User_extensions_Switch_control *) the_node; (*the_extension_switch->thread_switch)( executing, heir ); 4978a: 2f02 movel %d2,%sp@- 4978c: 2f03 movel %d3,%sp@- 4978e: 206a 0008 moveal %a2@(8),%a0 49792: 4e90 jsr %a0@ Chain_Node *the_node; User_extensions_Switch_control *the_extension_switch; for ( the_node = _Chain_First( &_User_extensions_Switches_list ); !_Chain_Is_tail( &_User_extensions_Switches_list, the_node ) ; the_node = the_node->next ) { 49794: 2452 moveal %a2@,%a2 ) { Chain_Node *the_node; User_extensions_Switch_control *the_extension_switch; for ( the_node = _Chain_First( &_User_extensions_Switches_list ); 49796: 508f addql #8,%sp 49798: b5fc 0005 e4d0 cmpal #386256,%a2 4979e: 66ea bnes 4978a <_User_extensions_Thread_switch+0x1e><== NEVER TAKEN the_extension_switch = (User_extensions_Switch_control *) the_node; (*the_extension_switch->thread_switch)( executing, heir ); } } 497a0: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 497a6: 4e5e unlk %fp ... =============================================================================== 0004b3a0 <_Watchdog_Adjust>: void _Watchdog_Adjust( Chain_Control *header, Watchdog_Adjust_directions direction, Watchdog_Interval units ) { 4b3a0: 4e56 ffe8 linkw %fp,#-24 <== NOT EXECUTED 4b3a4: 226e 000c moveal %fp@(12),%a1 <== NOT EXECUTED 4b3a8: 48d7 1c1c moveml %d2-%d4/%a2-%a4,%sp@ <== NOT EXECUTED ISR_Level level; _ISR_Disable( level ); 4b3ac: 283c 0000 0700 movel #1792,%d4 <== NOT EXECUTED 4b3b2: 2004 movel %d4,%d0 <== NOT EXECUTED void _Watchdog_Adjust( Chain_Control *header, Watchdog_Adjust_directions direction, Watchdog_Interval units ) { 4b3b4: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED 4b3b8: 242e 0010 movel %fp@(16),%d2 <== NOT EXECUTED ISR_Level level; _ISR_Disable( level ); 4b3bc: 40c1 movew %sr,%d1 <== NOT EXECUTED 4b3be: 8081 orl %d1,%d0 <== NOT EXECUTED 4b3c0: 46c0 movew %d0,%sr <== NOT EXECUTED } } _ISR_Enable( level ); } 4b3c2: 244b moveal %a3,%a2 <== NOT EXECUTED 4b3c4: 205a moveal %a2@+,%a0 <== NOT EXECUTED * hence the compiler must not assume *header to remain * unmodified across that call. * * Till Straumann, 7/2003 */ if ( !_Chain_Is_empty( header ) ) { 4b3c6: b5c8 cmpal %a0,%a2 <== NOT EXECUTED 4b3c8: 6748 beqs 4b412 <_Watchdog_Adjust+0x72> <== NOT EXECUTED switch ( direction ) { 4b3ca: 4a89 tstl %a1 <== NOT EXECUTED 4b3cc: 6650 bnes 4b41e <_Watchdog_Adjust+0x7e> <== NOT EXECUTED case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; break; case WATCHDOG_FORWARD: while ( units ) { 4b3ce: 4a82 tstl %d2 <== NOT EXECUTED 4b3d0: 6740 beqs 4b412 <_Watchdog_Adjust+0x72> <== NOT EXECUTED if ( units < _Watchdog_First( header )->delta_interval ) { 4b3d2: 2628 0010 movel %a0@(16),%d3 <== NOT EXECUTED 4b3d6: 49f9 0004 b628 lea 4b628 <_Watchdog_Tickle>,%a4 <== NOT EXECUTED 4b3dc: b682 cmpl %d2,%d3 <== NOT EXECUTED 4b3de: 622c bhis 4b40c <_Watchdog_Adjust+0x6c> <== NOT EXECUTED _Watchdog_First( header )->delta_interval -= units; break; } else { units -= _Watchdog_First( header )->delta_interval; _Watchdog_First( header )->delta_interval = 1; 4b3e0: 7001 moveq #1,%d0 <== NOT EXECUTED 4b3e2: 2140 0010 movel %d0,%a0@(16) <== NOT EXECUTED _ISR_Enable( level ); 4b3e6: 46c1 movew %d1,%sr <== NOT EXECUTED _Watchdog_Tickle( header ); 4b3e8: 2f0b movel %a3,%sp@- <== NOT EXECUTED 4b3ea: 4e94 jsr %a4@ <== NOT EXECUTED _ISR_Disable( level ); 4b3ec: 2004 movel %d4,%d0 <== NOT EXECUTED 4b3ee: 40c1 movew %sr,%d1 <== NOT EXECUTED 4b3f0: 8081 orl %d1,%d0 <== NOT EXECUTED 4b3f2: 46c0 movew %d0,%sr <== NOT EXECUTED if ( _Chain_Is_empty( header ) ) 4b3f4: 588f addql #4,%sp <== NOT EXECUTED while ( units ) { if ( units < _Watchdog_First( header )->delta_interval ) { _Watchdog_First( header )->delta_interval -= units; break; } else { units -= _Watchdog_First( header )->delta_interval; 4b3f6: 9483 subl %d3,%d2 <== NOT EXECUTED } } _ISR_Enable( level ); } 4b3f8: 2013 movel %a3@,%d0 <== NOT EXECUTED RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_First( Chain_Control *header ) { return ( (Watchdog_Control *) _Chain_First( header ) ); 4b3fa: 2040 moveal %d0,%a0 <== NOT EXECUTED _Watchdog_Tickle( header ); _ISR_Disable( level ); if ( _Chain_Is_empty( header ) ) 4b3fc: b08a cmpl %a2,%d0 <== NOT EXECUTED 4b3fe: 6712 beqs 4b412 <_Watchdog_Adjust+0x72> <== NOT EXECUTED switch ( direction ) { case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; break; case WATCHDOG_FORWARD: while ( units ) { 4b400: 4a82 tstl %d2 <== NOT EXECUTED 4b402: 670e beqs 4b412 <_Watchdog_Adjust+0x72> <== NOT EXECUTED if ( units < _Watchdog_First( header )->delta_interval ) { 4b404: 2628 0010 movel %a0@(16),%d3 <== NOT EXECUTED 4b408: b483 cmpl %d3,%d2 <== NOT EXECUTED 4b40a: 64d4 bccs 4b3e0 <_Watchdog_Adjust+0x40> <== NOT EXECUTED _Watchdog_First( header )->delta_interval -= units; 4b40c: 9682 subl %d2,%d3 <== NOT EXECUTED 4b40e: 2143 0010 movel %d3,%a0@(16) <== NOT EXECUTED } break; } } _ISR_Enable( level ); 4b412: 46c1 movew %d1,%sr <== NOT EXECUTED } 4b414: 4cee 1c1c ffe8 moveml %fp@(-24),%d2-%d4/%a2-%a4 <== NOT EXECUTED 4b41a: 4e5e unlk %fp <== NOT EXECUTED 4b41c: 4e75 rts <== NOT EXECUTED * unmodified across that call. * * Till Straumann, 7/2003 */ if ( !_Chain_Is_empty( header ) ) { switch ( direction ) { 4b41e: 7001 moveq #1,%d0 <== NOT EXECUTED 4b420: b089 cmpl %a1,%d0 <== NOT EXECUTED 4b422: 66ee bnes 4b412 <_Watchdog_Adjust+0x72> <== NOT EXECUTED case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; 4b424: d5a8 0010 addl %d2,%a0@(16) <== NOT EXECUTED } break; } } _ISR_Enable( level ); 4b428: 46c1 movew %d1,%sr <== NOT EXECUTED } 4b42a: 4cee 1c1c ffe8 moveml %fp@(-24),%d2-%d4/%a2-%a4 <== NOT EXECUTED 4b430: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 0005d454 <_Watchdog_Adjust_to_chain>: Chain_Control *header, Watchdog_Interval units_arg, Chain_Control *to_fire ) { 5d454: 4e56 ffe4 linkw %fp,#-28 <== NOT EXECUTED 5d458: 222e 0008 movel %fp@(8),%d1 <== NOT EXECUTED 5d45c: 48d7 3c1c moveml %d2-%d4/%a2-%a5,%sp@ <== NOT EXECUTED 5d460: 282e 000c movel %fp@(12),%d4 <== NOT EXECUTED 5d464: 226e 0010 moveal %fp@(16),%a1 <== NOT EXECUTED Watchdog_Interval units = units_arg; ISR_Level level; Watchdog_Control *first; if ( units <= 0 ) { 5d468: 6760 beqs 5d4ca <_Watchdog_Adjust_to_chain+0x76> <== NOT EXECUTED return; } _ISR_Disable( level ); 5d46a: 263c 0000 0700 movel #1792,%d3 <== NOT EXECUTED 5d470: 2003 movel %d3,%d0 <== NOT EXECUTED 5d472: 40c2 movew %sr,%d2 <== NOT EXECUTED 5d474: 8082 orl %d2,%d0 <== NOT EXECUTED 5d476: 46c0 movew %d0,%sr <== NOT EXECUTED 5d478: 2a41 moveal %d1,%a5 <== NOT EXECUTED 5d47a: 205d moveal %a5@+,%a0 <== NOT EXECUTED while ( 1 ) { if ( units <= 0 ) { break; } if ( _Chain_Is_empty( header ) ) { 5d47c: bbc8 cmpal %a0,%a5 <== NOT EXECUTED 5d47e: 6748 beqs 5d4c8 <_Watchdog_Adjust_to_chain+0x74> <== NOT EXECUTED /* * If it is longer than "units" until the first element on the chain * fires, then bump it and quit. */ if ( units < first->delta_interval ) { 5d480: 2028 0010 movel %a0@(16),%d0 <== NOT EXECUTED 5d484: b880 cmpl %d0,%d4 <== NOT EXECUTED 5d486: 654a bcss 5d4d2 <_Watchdog_Adjust_to_chain+0x7e> <== NOT EXECUTED /* * The first set happens in less than units, so take all of them * off the chain and adjust units to reflect this. */ units -= first->delta_interval; 5d488: 9880 subl %d0,%d4 <== NOT EXECUTED first->delta_interval = 0; 5d48a: 42a8 0010 clrl %a0@(16) <== NOT EXECUTED ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; 5d48e: 2850 moveal %a0@,%a4 <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Chain_Append_unprotected( Chain_Control *the_chain, Chain_Node *the_node ) { Chain_Node *tail = _Chain_Tail( the_chain ); 5d490: 2009 movel %a1,%d0 <== NOT EXECUTED 5d492: 5880 addql #4,%d0 <== NOT EXECUTED { Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; 5d494: 2668 0004 moveal %a0@(4),%a3 <== NOT EXECUTED next->previous = previous; 5d498: 294b 0004 movel %a3,%a4@(4) <== NOT EXECUTED Chain_Control *the_chain, Chain_Node *the_node ) { Chain_Node *tail = _Chain_Tail( the_chain ); Chain_Node *old_last = tail->previous; 5d49c: 2469 0008 moveal %a1@(8),%a2 <== NOT EXECUTED Chain_Node *previous; next = the_node->next; previous = the_node->previous; next->previous = previous; previous->next = next; 5d4a0: 268c movel %a4,%a3@ <== NOT EXECUTED { Chain_Node *tail = _Chain_Tail( the_chain ); Chain_Node *old_last = tail->previous; the_node->next = tail; tail->previous = the_node; 5d4a2: 2348 0008 movel %a0,%a1@(8) <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Chain_Append_unprotected( Chain_Control *the_chain, Chain_Node *the_node ) { Chain_Node *tail = _Chain_Tail( the_chain ); 5d4a6: 2080 movel %d0,%a0@ <== NOT EXECUTED Chain_Node *old_last = tail->previous; the_node->next = tail; tail->previous = the_node; old_last->next = the_node; the_node->previous = old_last; 5d4a8: 214a 0004 movel %a2,%a0@(4) <== NOT EXECUTED Chain_Node *tail = _Chain_Tail( the_chain ); Chain_Node *old_last = tail->previous; the_node->next = tail; tail->previous = the_node; old_last->next = the_node; 5d4ac: 2488 movel %a0,%a2@ <== NOT EXECUTED while ( 1 ) { _Chain_Extract_unprotected( &first->Node ); _Chain_Append_unprotected( to_fire, &first->Node ); _ISR_Flash( level ); 5d4ae: 2003 movel %d3,%d0 <== NOT EXECUTED 5d4b0: 46c2 movew %d2,%sr <== NOT EXECUTED 5d4b2: 8082 orl %d2,%d0 <== NOT EXECUTED 5d4b4: 46c0 movew %d0,%sr <== NOT EXECUTED break; } } _ISR_Enable( level ); } 5d4b6: 2441 moveal %d1,%a2 <== NOT EXECUTED 5d4b8: 2052 moveal %a2@,%a0 <== NOT EXECUTED _Chain_Extract_unprotected( &first->Node ); _Chain_Append_unprotected( to_fire, &first->Node ); _ISR_Flash( level ); if ( _Chain_Is_empty( header ) ) 5d4ba: b1cd cmpal %a5,%a0 <== NOT EXECUTED 5d4bc: 6706 beqs 5d4c4 <_Watchdog_Adjust_to_chain+0x70> <== NOT EXECUTED break; first = _Watchdog_First( header ); if ( first->delta_interval != 0 ) 5d4be: 4aa8 0010 tstl %a0@(16) <== NOT EXECUTED 5d4c2: 67ca beqs 5d48e <_Watchdog_Adjust_to_chain+0x3a> <== NOT EXECUTED } _ISR_Disable( level ); while ( 1 ) { if ( units <= 0 ) { 5d4c4: 4a84 tstl %d4 <== NOT EXECUTED 5d4c6: 66b4 bnes 5d47c <_Watchdog_Adjust_to_chain+0x28> <== NOT EXECUTED if ( first->delta_interval != 0 ) break; } } _ISR_Enable( level ); 5d4c8: 46c2 movew %d2,%sr <== NOT EXECUTED } 5d4ca: 4cd7 3c1c moveml %sp@,%d2-%d4/%a2-%a5 <== NOT EXECUTED 5d4ce: 4e5e unlk %fp <== NOT EXECUTED 5d4d0: 4e75 rts <== NOT EXECUTED /* * If it is longer than "units" until the first element on the chain * fires, then bump it and quit. */ if ( units < first->delta_interval ) { first->delta_interval -= units; 5d4d2: 9084 subl %d4,%d0 <== NOT EXECUTED 5d4d4: 2140 0010 movel %d0,%a0@(16) <== NOT EXECUTED if ( first->delta_interval != 0 ) break; } } _ISR_Enable( level ); 5d4d8: 46c2 movew %d2,%sr <== NOT EXECUTED 5d4da: 60ee bras 5d4ca <_Watchdog_Adjust_to_chain+0x76> <== NOT EXECUTED =============================================================================== 000497ac <_Watchdog_Insert>: void _Watchdog_Insert( Chain_Control *header, Watchdog_Control *the_watchdog ) { 497ac: 4e56 ffec linkw %fp,#-20 497b0: 226e 000c moveal %fp@(12),%a1 497b4: 48d7 043c moveml %d2-%d5/%a2,%sp@ 497b8: 246e 0008 moveal %fp@(8),%a2 Watchdog_Interval delta_interval; insert_isr_nest_level = _ISR_Nest_level; _ISR_Disable( level ); 497bc: 2a3c 0000 0700 movel #1792,%d5 497c2: 2005 movel %d5,%d0 Watchdog_Control *after; uint32_t insert_isr_nest_level; Watchdog_Interval delta_interval; insert_isr_nest_level = _ISR_Nest_level; 497c4: 2839 0005 e680 movel 5e680 <_Per_CPU_Information+0x8>,%d4 _ISR_Disable( level ); 497ca: 40c3 movew %sr,%d3 497cc: 8083 orl %d3,%d0 497ce: 46c0 movew %d0,%sr /* * Check to see if the watchdog has just been inserted by a * higher priority interrupt. If so, abandon this insert. */ if ( the_watchdog->state != WATCHDOG_INACTIVE ) { 497d0: 4aa9 0008 tstl %a1@(8) 497d4: 6600 00c6 bnew 4989c <_Watchdog_Insert+0xf0> _ISR_Enable( level ); return; } the_watchdog->state = WATCHDOG_BEING_INSERTED; _Watchdog_Sync_count++; 497d8: 2039 0005 e5ec movel 5e5ec <_Watchdog_Sync_count>,%d0 if ( the_watchdog->state != WATCHDOG_INACTIVE ) { _ISR_Enable( level ); return; } the_watchdog->state = WATCHDOG_BEING_INSERTED; 497de: 7201 moveq #1,%d1 _Watchdog_Sync_count++; 497e0: 5280 addql #1,%d0 if ( the_watchdog->state != WATCHDOG_INACTIVE ) { _ISR_Enable( level ); return; } the_watchdog->state = WATCHDOG_BEING_INSERTED; 497e2: 2341 0008 movel %d1,%a1@(8) _Watchdog_Sync_count++; 497e6: 23c0 0005 e5ec movel %d0,5e5ec <_Watchdog_Sync_count> restart: delta_interval = the_watchdog->initial; 497ec: 2029 000c movel %a1@(12),%d0 RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_First( Chain_Control *header ) { return ( (Watchdog_Control *) _Chain_First( header ) ); 497f0: 2052 moveal %a2@,%a0 for ( after = _Watchdog_First( header ) ; ; after = _Watchdog_Next( after ) ) { if ( delta_interval == 0 || !_Watchdog_Next( after ) ) 497f2: 6764 beqs 49858 <_Watchdog_Insert+0xac> <== NEVER TAKEN 497f4: 4a90 tstl %a0@ 497f6: 6760 beqs 49858 <_Watchdog_Insert+0xac> <== ALWAYS TAKEN break; if ( delta_interval < after->delta_interval ) { 497f8: 2228 0010 movel %a0@(16),%d1 <== NOT EXECUTED 497fc: b280 cmpl %d0,%d1 <== NOT EXECUTED 497fe: 6252 bhis 49852 <_Watchdog_Insert+0xa6> <== NOT EXECUTED break; } delta_interval -= after->delta_interval; _ISR_Flash( level ); 49800: 2405 movel %d5,%d2 <== NOT EXECUTED 49802: 46c3 movew %d3,%sr <== NOT EXECUTED 49804: 8483 orl %d3,%d2 <== NOT EXECUTED 49806: 46c2 movew %d2,%sr <== NOT EXECUTED if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) { 49808: 7401 moveq #1,%d2 <== NOT EXECUTED 4980a: b4a9 0008 cmpl %a1@(8),%d2 <== NOT EXECUTED 4980e: 666e bnes 4987e <_Watchdog_Insert+0xd2> <== NOT EXECUTED goto exit_insert; } if ( _Watchdog_Sync_level > insert_isr_nest_level ) { 49810: 2439 0005 e58c movel 5e58c <_Watchdog_Sync_level>,%d2 <== NOT EXECUTED 49816: b484 cmpl %d4,%d2 <== NOT EXECUTED 49818: 6230 bhis 4984a <_Watchdog_Insert+0x9e> <== NOT EXECUTED if ( delta_interval < after->delta_interval ) { after->delta_interval -= delta_interval; break; } delta_interval -= after->delta_interval; 4981a: 9081 subl %d1,%d0 <== NOT EXECUTED exit_insert: _Watchdog_Sync_level = insert_isr_nest_level; _Watchdog_Sync_count--; _ISR_Enable( level ); } 4981c: 2050 moveal %a0@,%a0 <== NOT EXECUTED for ( after = _Watchdog_First( header ) ; ; after = _Watchdog_Next( after ) ) { if ( delta_interval == 0 || !_Watchdog_Next( after ) ) 4981e: 4a80 tstl %d0 <== NOT EXECUTED 49820: 6736 beqs 49858 <_Watchdog_Insert+0xac> <== NOT EXECUTED 49822: 4a90 tstl %a0@ <== NOT EXECUTED 49824: 6732 beqs 49858 <_Watchdog_Insert+0xac> <== NOT EXECUTED break; if ( delta_interval < after->delta_interval ) { 49826: 2228 0010 movel %a0@(16),%d1 <== NOT EXECUTED 4982a: b081 cmpl %d1,%d0 <== NOT EXECUTED 4982c: 6524 bcss 49852 <_Watchdog_Insert+0xa6> <== NOT EXECUTED break; } delta_interval -= after->delta_interval; _ISR_Flash( level ); 4982e: 2405 movel %d5,%d2 <== NOT EXECUTED 49830: 46c3 movew %d3,%sr <== NOT EXECUTED 49832: 8483 orl %d3,%d2 <== NOT EXECUTED 49834: 46c2 movew %d2,%sr <== NOT EXECUTED if ( delta_interval < after->delta_interval ) { after->delta_interval -= delta_interval; break; } delta_interval -= after->delta_interval; 49836: 9081 subl %d1,%d0 <== NOT EXECUTED _ISR_Flash( level ); if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) { 49838: 7201 moveq #1,%d1 <== NOT EXECUTED 4983a: b2a9 0008 cmpl %a1@(8),%d1 <== NOT EXECUTED 4983e: 663e bnes 4987e <_Watchdog_Insert+0xd2> <== NOT EXECUTED goto exit_insert; } if ( _Watchdog_Sync_level > insert_isr_nest_level ) { 49840: 2239 0005 e58c movel 5e58c <_Watchdog_Sync_level>,%d1 <== NOT EXECUTED 49846: b284 cmpl %d4,%d1 <== NOT EXECUTED 49848: 63d2 blss 4981c <_Watchdog_Insert+0x70> <== NOT EXECUTED _Watchdog_Sync_level = insert_isr_nest_level; 4984a: 23c4 0005 e58c movel %d4,5e58c <_Watchdog_Sync_level> <== NOT EXECUTED goto restart; 49850: 609a bras 497ec <_Watchdog_Insert+0x40> <== NOT EXECUTED if ( delta_interval == 0 || !_Watchdog_Next( after ) ) break; if ( delta_interval < after->delta_interval ) { after->delta_interval -= delta_interval; 49852: 9280 subl %d0,%d1 <== NOT EXECUTED 49854: 2141 0010 movel %d1,%a0@(16) <== NOT EXECUTED _Watchdog_Activate( the_watchdog ); the_watchdog->delta_interval = delta_interval; _Chain_Insert_unprotected( after->Node.previous, &the_watchdog->Node ); 49858: 2068 0004 moveal %a0@(4),%a0 RTEMS_INLINE_ROUTINE void _Watchdog_Activate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_ACTIVE; 4985c: 7402 moveq #2,%d2 ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; 4985e: 2450 moveal %a0@,%a2 } } _Watchdog_Activate( the_watchdog ); the_watchdog->delta_interval = delta_interval; 49860: 2340 0010 movel %d0,%a1@(16) _Chain_Insert_unprotected( after->Node.previous, &the_watchdog->Node ); the_watchdog->start_time = _Watchdog_Ticks_since_boot; 49864: 2039 0005 e5f0 movel 5e5f0 <_Watchdog_Ticks_since_boot>,%d0 4986a: 2342 0008 movel %d2,%a1@(8) Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; 4986e: 2348 0004 movel %a0,%a1@(4) before_node = after_node->next; after_node->next = the_node; 49872: 2089 movel %a1,%a0@ the_node->next = before_node; before_node->previous = the_node; 49874: 2549 0004 movel %a1,%a2@(4) Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; after_node->next = the_node; the_node->next = before_node; 49878: 228a movel %a2,%a1@ 4987a: 2340 0014 movel %d0,%a1@(20) exit_insert: _Watchdog_Sync_level = insert_isr_nest_level; 4987e: 23c4 0005 e58c movel %d4,5e58c <_Watchdog_Sync_level> _Watchdog_Sync_count--; 49884: 2039 0005 e5ec movel 5e5ec <_Watchdog_Sync_count>,%d0 4988a: 5380 subql #1,%d0 4988c: 23c0 0005 e5ec movel %d0,5e5ec <_Watchdog_Sync_count> _ISR_Enable( level ); 49892: 46c3 movew %d3,%sr } 49894: 4cd7 043c moveml %sp@,%d2-%d5/%a2 49898: 4e5e unlk %fp 4989a: 4e75 rts * Check to see if the watchdog has just been inserted by a * higher priority interrupt. If so, abandon this insert. */ if ( the_watchdog->state != WATCHDOG_INACTIVE ) { _ISR_Enable( level ); 4989c: 46c3 movew %d3,%sr <== NOT EXECUTED exit_insert: _Watchdog_Sync_level = insert_isr_nest_level; _Watchdog_Sync_count--; _ISR_Enable( level ); } 4989e: 4cd7 043c moveml %sp@,%d2-%d5/%a2 <== NOT EXECUTED 498a2: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 00049900 <_Watchdog_Remove>: { ISR_Level level; Watchdog_States previous_state; Watchdog_Control *next_watchdog; _ISR_Disable( level ); 49900: 203c 0000 0700 movel #1792,%d0 */ Watchdog_States _Watchdog_Remove( Watchdog_Control *the_watchdog ) { 49906: 4e56 0000 linkw %fp,#0 4990a: 206e 0008 moveal %fp@(8),%a0 4990e: 2f0a movel %a2,%sp@- 49910: 2f02 movel %d2,%sp@- ISR_Level level; Watchdog_States previous_state; Watchdog_Control *next_watchdog; _ISR_Disable( level ); 49912: 40c1 movew %sr,%d1 49914: 8081 orl %d1,%d0 49916: 46c0 movew %d0,%sr previous_state = the_watchdog->state; 49918: 2028 0008 movel %a0@(8),%d0 switch ( previous_state ) { 4991c: 7401 moveq #1,%d2 4991e: b480 cmpl %d0,%d2 49920: 6764 beqs 49986 <_Watchdog_Remove+0x86> <== NEVER TAKEN 49922: 6314 blss 49938 <_Watchdog_Remove+0x38> <== ALWAYS TAKEN _Watchdog_Sync_level = _ISR_Nest_level; _Chain_Extract_unprotected( &the_watchdog->Node ); break; } the_watchdog->stop_time = _Watchdog_Ticks_since_boot; 49924: 2279 0005 e5f0 moveal 5e5f0 <_Watchdog_Ticks_since_boot>,%a1<== NOT EXECUTED 4992a: 2149 0018 movel %a1,%a0@(24) <== NOT EXECUTED _ISR_Enable( level ); 4992e: 46c1 movew %d1,%sr <== NOT EXECUTED return( previous_state ); } 49930: 241f movel %sp@+,%d2 <== NOT EXECUTED 49932: 245f moveal %sp@+,%a2 <== NOT EXECUTED 49934: 4e5e unlk %fp <== NOT EXECUTED 49936: 4e75 rts <== NOT EXECUTED Watchdog_States previous_state; Watchdog_Control *next_watchdog; _ISR_Disable( level ); previous_state = the_watchdog->state; switch ( previous_state ) { 49938: 143c 0003 moveb #3,%d2 4993c: b480 cmpl %d0,%d2 4993e: 65e4 bcss 49924 <_Watchdog_Remove+0x24> <== NEVER TAKEN } the_watchdog->stop_time = _Watchdog_Ticks_since_boot; _ISR_Enable( level ); return( previous_state ); } 49940: 2250 moveal %a0@,%a1 break; case WATCHDOG_ACTIVE: case WATCHDOG_REMOVE_IT: the_watchdog->state = WATCHDOG_INACTIVE; 49942: 42a8 0008 clrl %a0@(8) next_watchdog = _Watchdog_Next( the_watchdog ); if ( _Watchdog_Next(next_watchdog) ) 49946: 4a91 tstl %a1@ 49948: 6708 beqs 49952 <_Watchdog_Remove+0x52> <== ALWAYS TAKEN next_watchdog->delta_interval += the_watchdog->delta_interval; 4994a: 2428 0010 movel %a0@(16),%d2 <== NOT EXECUTED 4994e: d5a9 0010 addl %d2,%a1@(16) <== NOT EXECUTED if ( _Watchdog_Sync_count ) 49952: 2479 0005 e5ec moveal 5e5ec <_Watchdog_Sync_count>,%a2 49958: 4a8a tstl %a2 4995a: 670c beqs 49968 <_Watchdog_Remove+0x68> <== ALWAYS TAKEN _Watchdog_Sync_level = _ISR_Nest_level; 4995c: 45f9 0005 e680 lea 5e680 <_Per_CPU_Information+0x8>,%a2 <== NOT EXECUTED 49962: 23d2 0005 e58c movel %a2@,5e58c <_Watchdog_Sync_level> <== NOT EXECUTED { Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; 49968: 2468 0004 moveal %a0@(4),%a2 next->previous = previous; 4996c: 234a 0004 movel %a2,%a1@(4) previous->next = next; 49970: 2489 movel %a1,%a2@ _Chain_Extract_unprotected( &the_watchdog->Node ); break; } the_watchdog->stop_time = _Watchdog_Ticks_since_boot; 49972: 2279 0005 e5f0 moveal 5e5f0 <_Watchdog_Ticks_since_boot>,%a1 49978: 2149 0018 movel %a1,%a0@(24) _ISR_Enable( level ); 4997c: 46c1 movew %d1,%sr return( previous_state ); } 4997e: 241f movel %sp@+,%d2 49980: 245f moveal %sp@+,%a2 49982: 4e5e unlk %fp 49984: 4e75 rts _Watchdog_Sync_level = _ISR_Nest_level; _Chain_Extract_unprotected( &the_watchdog->Node ); break; } the_watchdog->stop_time = _Watchdog_Ticks_since_boot; 49986: 2279 0005 e5f0 moveal 5e5f0 <_Watchdog_Ticks_since_boot>,%a1<== NOT EXECUTED /* * It is not actually on the chain so just change the state and * the Insert operation we interrupted will be aborted. */ the_watchdog->state = WATCHDOG_INACTIVE; 4998c: 42a8 0008 clrl %a0@(8) <== NOT EXECUTED _Watchdog_Sync_level = _ISR_Nest_level; _Chain_Extract_unprotected( &the_watchdog->Node ); break; } the_watchdog->stop_time = _Watchdog_Ticks_since_boot; 49990: 2149 0018 movel %a1,%a0@(24) <== NOT EXECUTED _ISR_Enable( level ); 49994: 46c1 movew %d1,%sr <== NOT EXECUTED return( previous_state ); } 49996: 241f movel %sp@+,%d2 <== NOT EXECUTED 49998: 245f moveal %sp@+,%a2 <== NOT EXECUTED 4999a: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 0004ae18 <_Watchdog_Report>: void _Watchdog_Report( const char *name, Watchdog_Control *watch ) { 4ae18: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED printk( 4ae1c: 223c 0005 de3d movel #384573,%d1 <== NOT EXECUTED void _Watchdog_Report( const char *name, Watchdog_Control *watch ) { 4ae22: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED 4ae26: 48d7 003c moveml %d2-%d5,%sp@ <== NOT EXECUTED 4ae2a: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED printk( 4ae2e: 2a28 0024 movel %a0@(36),%d5 <== NOT EXECUTED 4ae32: 2828 0020 movel %a0@(32),%d4 <== NOT EXECUTED 4ae36: 2628 001c movel %a0@(28),%d3 <== NOT EXECUTED 4ae3a: 2428 000c movel %a0@(12),%d2 <== NOT EXECUTED 4ae3e: 2268 0010 moveal %a0@(16),%a1 <== NOT EXECUTED 4ae42: 4a80 tstl %d0 <== NOT EXECUTED 4ae44: 672a beqs 4ae70 <_Watchdog_Report+0x58> <== NOT EXECUTED 4ae46: 2f05 movel %d5,%sp@- <== NOT EXECUTED 4ae48: 2f04 movel %d4,%sp@- <== NOT EXECUTED 4ae4a: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4ae4c: 2f08 movel %a0,%sp@- <== NOT EXECUTED 4ae4e: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4ae50: 2f09 movel %a1,%sp@- <== NOT EXECUTED 4ae52: 2f01 movel %d1,%sp@- <== NOT EXECUTED 4ae54: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4ae56: 4879 0005 dfbe pea 5dfbe <_Status_Object_name_errors_to_status+0x4a><== NOT EXECUTED 4ae5c: 4eb9 0004 4878 jsr 44878 <== NOT EXECUTED 4ae62: 4fef 0024 lea %sp@(36),%sp <== NOT EXECUTED watch, watch->routine, watch->id, watch->user_data ); } 4ae66: 4cee 003c fff0 moveml %fp@(-16),%d2-%d5 <== NOT EXECUTED 4ae6c: 4e5e unlk %fp <== NOT EXECUTED 4ae6e: 4e75 rts <== NOT EXECUTED void _Watchdog_Report( const char *name, Watchdog_Control *watch ) { printk( 4ae70: 2f05 movel %d5,%sp@- <== NOT EXECUTED 4ae72: 223c 0005 de42 movel #384578,%d1 <== NOT EXECUTED 4ae78: 2f04 movel %d4,%sp@- <== NOT EXECUTED 4ae7a: 2001 movel %d1,%d0 <== NOT EXECUTED 4ae7c: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4ae7e: 2f08 movel %a0,%sp@- <== NOT EXECUTED 4ae80: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4ae82: 2f09 movel %a1,%sp@- <== NOT EXECUTED 4ae84: 2f01 movel %d1,%sp@- <== NOT EXECUTED 4ae86: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4ae88: 4879 0005 dfbe pea 5dfbe <_Status_Object_name_errors_to_status+0x4a><== NOT EXECUTED 4ae8e: 4eb9 0004 4878 jsr 44878 <== NOT EXECUTED 4ae94: 4fef 0024 lea %sp@(36),%sp <== NOT EXECUTED watch, watch->routine, watch->id, watch->user_data ); } 4ae98: 4cee 003c fff0 moveml %fp@(-16),%d2-%d5 <== NOT EXECUTED 4ae9e: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 0004ad9c <_Watchdog_Report_chain>: ) { ISR_Level level; Chain_Node *node; _ISR_Disable( level ); 4ad9c: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED void _Watchdog_Report_chain( const char *name, Chain_Control *header ) { 4ada2: 4e56 ffe8 linkw %fp,#-24 <== NOT EXECUTED 4ada6: 48d7 3c0c moveml %d2-%d3/%a2-%a5,%sp@ <== NOT EXECUTED 4adaa: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED 4adae: 266e 000c moveal %fp@(12),%a3 <== NOT EXECUTED ISR_Level level; Chain_Node *node; _ISR_Disable( level ); 4adb2: 40c3 movew %sr,%d3 <== NOT EXECUTED 4adb4: 8083 orl %d3,%d0 <== NOT EXECUTED 4adb6: 46c0 movew %d0,%sr <== NOT EXECUTED printk( "Watchdog Chain: %s %p\n", name, header ); 4adb8: 2f0b movel %a3,%sp@- <== NOT EXECUTED 4adba: 4bf9 0004 4878 lea 44878 ,%a5 <== NOT EXECUTED 4adc0: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4adc2: 4879 0005 df88 pea 5df88 <_Status_Object_name_errors_to_status+0x14><== NOT EXECUTED 4adc8: 4e95 jsr %a5@ <== NOT EXECUTED printk( "== end of %s \n", name ); } else { printk( "Chain is empty\n" ); } _ISR_Enable( level ); } 4adca: 245b moveal %a3@+,%a2 <== NOT EXECUTED ISR_Level level; Chain_Node *node; _ISR_Disable( level ); printk( "Watchdog Chain: %s %p\n", name, header ); if ( !_Chain_Is_empty( header ) ) { 4adcc: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4add0: b7ca cmpal %a2,%a3 <== NOT EXECUTED 4add2: 672c beqs 4ae00 <_Watchdog_Report_chain+0x64> <== NOT EXECUTED 4add4: 49f9 0004 ae18 lea 4ae18 <_Watchdog_Report>,%a4 <== NOT EXECUTED node != _Chain_Tail(header) ; node = node->next ) { Watchdog_Control *watch = (Watchdog_Control *) node; _Watchdog_Report( NULL, watch ); 4adda: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4addc: 42a7 clrl %sp@- <== NOT EXECUTED 4adde: 4e94 jsr %a4@ <== NOT EXECUTED _ISR_Disable( level ); printk( "Watchdog Chain: %s %p\n", name, header ); if ( !_Chain_Is_empty( header ) ) { for ( node = _Chain_First( header ) ; node != _Chain_Tail(header) ; node = node->next ) 4ade0: 2452 moveal %a2@,%a2 <== NOT EXECUTED Chain_Node *node; _ISR_Disable( level ); printk( "Watchdog Chain: %s %p\n", name, header ); if ( !_Chain_Is_empty( header ) ) { for ( node = _Chain_First( header ) ; 4ade2: 508f addql #8,%sp <== NOT EXECUTED 4ade4: b7ca cmpal %a2,%a3 <== NOT EXECUTED 4ade6: 66f2 bnes 4adda <_Watchdog_Report_chain+0x3e> <== NOT EXECUTED { Watchdog_Control *watch = (Watchdog_Control *) node; _Watchdog_Report( NULL, watch ); } printk( "== end of %s \n", name ); 4ade8: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4adea: 4879 0005 df9f pea 5df9f <_Status_Object_name_errors_to_status+0x2b><== NOT EXECUTED 4adf0: 4e95 jsr %a5@ <== NOT EXECUTED 4adf2: 508f addql #8,%sp <== NOT EXECUTED } else { printk( "Chain is empty\n" ); } _ISR_Enable( level ); 4adf4: 46c3 movew %d3,%sr <== NOT EXECUTED } 4adf6: 4cee 3c0c ffe8 moveml %fp@(-24),%d2-%d3/%a2-%a5 <== NOT EXECUTED 4adfc: 4e5e unlk %fp <== NOT EXECUTED 4adfe: 4e75 rts <== NOT EXECUTED _Watchdog_Report( NULL, watch ); } printk( "== end of %s \n", name ); } else { printk( "Chain is empty\n" ); 4ae00: 4879 0005 dfae pea 5dfae <_Status_Object_name_errors_to_status+0x3a><== NOT EXECUTED 4ae06: 4e95 jsr %a5@ <== NOT EXECUTED 4ae08: 588f addql #4,%sp <== NOT EXECUTED } _ISR_Enable( level ); 4ae0a: 46c3 movew %d3,%sr <== NOT EXECUTED } 4ae0c: 4cee 3c0c ffe8 moveml %fp@(-24),%d2-%d3/%a2-%a5 <== NOT EXECUTED 4ae12: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 000499a0 <_Watchdog_Tickle>: * See the comment in watchdoginsert.c and watchdogadjust.c * about why it's safe not to declare header a pointer to * volatile data - till, 2003/7 */ _ISR_Disable( level ); 499a0: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED */ void _Watchdog_Tickle( Chain_Control *header ) { 499a6: 4e56 ffe8 linkw %fp,#-24 <== NOT EXECUTED 499aa: 48d7 3c0c moveml %d2-%d3/%a2-%a5,%sp@ <== NOT EXECUTED 499ae: 286e 0008 moveal %fp@(8),%a4 <== NOT EXECUTED * See the comment in watchdoginsert.c and watchdogadjust.c * about why it's safe not to declare header a pointer to * volatile data - till, 2003/7 */ _ISR_Disable( level ); 499b2: 40c2 movew %sr,%d2 <== NOT EXECUTED 499b4: 8082 orl %d2,%d0 <== NOT EXECUTED 499b6: 46c0 movew %d0,%sr <== NOT EXECUTED } while ( !_Chain_Is_empty( header ) && (the_watchdog->delta_interval == 0) ); leave: _ISR_Enable(level); } 499b8: 264c moveal %a4,%a3 <== NOT EXECUTED 499ba: 245b moveal %a3@+,%a2 <== NOT EXECUTED * volatile data - till, 2003/7 */ _ISR_Disable( level ); if ( _Chain_Is_empty( header ) ) 499bc: b7ca cmpal %a2,%a3 <== NOT EXECUTED 499be: 673e beqs 499fe <_Watchdog_Tickle+0x5e> <== NOT EXECUTED * to be inserted has already had its delta_interval adjusted to 0, and * so is added to the head of the chain with a delta_interval of 0. * * Steven Johnson - 12/2005 (gcc-3.2.3 -O3 on powerpc) */ if (the_watchdog->delta_interval != 0) { 499c0: 202a 0010 movel %a2@(16),%d0 <== NOT EXECUTED 499c4: 4bf9 0004 9900 lea 49900 <_Watchdog_Remove>,%a5 <== NOT EXECUTED 499ca: 6708 beqs 499d4 <_Watchdog_Tickle+0x34> <== NOT EXECUTED the_watchdog->delta_interval--; 499cc: 5380 subql #1,%d0 <== NOT EXECUTED 499ce: 2540 0010 movel %d0,%a2@(16) <== NOT EXECUTED if ( the_watchdog->delta_interval != 0 ) 499d2: 662a bnes 499fe <_Watchdog_Tickle+0x5e> <== NOT EXECUTED case WATCHDOG_REMOVE_IT: break; } _ISR_Disable( level ); 499d4: 263c 0000 0700 movel #1792,%d3 <== NOT EXECUTED if ( the_watchdog->delta_interval != 0 ) goto leave; } do { watchdog_state = _Watchdog_Remove( the_watchdog ); 499da: 2f0a movel %a2,%sp@- <== NOT EXECUTED 499dc: 4e95 jsr %a5@ <== NOT EXECUTED _ISR_Enable( level ); 499de: 46c2 movew %d2,%sr <== NOT EXECUTED switch( watchdog_state ) { 499e0: 7202 moveq #2,%d1 <== NOT EXECUTED 499e2: 588f addql #4,%sp <== NOT EXECUTED 499e4: b280 cmpl %d0,%d1 <== NOT EXECUTED 499e6: 6722 beqs 49a0a <_Watchdog_Tickle+0x6a> <== NOT EXECUTED case WATCHDOG_REMOVE_IT: break; } _ISR_Disable( level ); 499e8: 2003 movel %d3,%d0 <== NOT EXECUTED 499ea: 40c2 movew %sr,%d2 <== NOT EXECUTED 499ec: 8082 orl %d2,%d0 <== NOT EXECUTED 499ee: 46c0 movew %d0,%sr <== NOT EXECUTED } while ( !_Chain_Is_empty( header ) && (the_watchdog->delta_interval == 0) ); leave: _ISR_Enable(level); } 499f0: 2014 movel %a4@,%d0 <== NOT EXECUTED RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_First( Chain_Control *header ) { return ( (Watchdog_Control *) _Chain_First( header ) ); 499f2: 2440 moveal %d0,%a2 <== NOT EXECUTED _ISR_Disable( level ); the_watchdog = _Watchdog_First( header ); } while ( !_Chain_Is_empty( header ) && (the_watchdog->delta_interval == 0) ); 499f4: b7c0 cmpal %d0,%a3 <== NOT EXECUTED 499f6: 6706 beqs 499fe <_Watchdog_Tickle+0x5e> <== NOT EXECUTED } _ISR_Disable( level ); the_watchdog = _Watchdog_First( header ); } while ( !_Chain_Is_empty( header ) && 499f8: 4aaa 0010 tstl %a2@(16) <== NOT EXECUTED 499fc: 67dc beqs 499da <_Watchdog_Tickle+0x3a> <== NOT EXECUTED (the_watchdog->delta_interval == 0) ); leave: _ISR_Enable(level); 499fe: 46c2 movew %d2,%sr <== NOT EXECUTED } 49a00: 4cee 3c0c ffe8 moveml %fp@(-24),%d2-%d3/%a2-%a5 <== NOT EXECUTED 49a06: 4e5e unlk %fp <== NOT EXECUTED 49a08: 4e75 rts <== NOT EXECUTED _ISR_Enable( level ); switch( watchdog_state ) { case WATCHDOG_ACTIVE: (*the_watchdog->routine)( 49a0a: 2f2a 0024 movel %a2@(36),%sp@- <== NOT EXECUTED 49a0e: 2f2a 0020 movel %a2@(32),%sp@- <== NOT EXECUTED 49a12: 206a 001c moveal %a2@(28),%a0 <== NOT EXECUTED 49a16: 4e90 jsr %a0@ <== NOT EXECUTED the_watchdog->id, the_watchdog->user_data ); break; 49a18: 508f addql #8,%sp <== NOT EXECUTED 49a1a: 60cc bras 499e8 <_Watchdog_Tickle+0x48> <== NOT EXECUTED =============================================================================== 00049ab6 <_Workspace_Allocate_or_fatal_error>: * _Workspace_Allocate_or_fatal_error */ void *_Workspace_Allocate_or_fatal_error( size_t size ) { 49ab6: 4e56 0000 linkw %fp,#0 49aba: 42a7 clrl %sp@- 49abc: 42a7 clrl %sp@- 49abe: 2f2e 0008 movel %fp@(8),%sp@- 49ac2: 4879 0005 e4e6 pea 5e4e6 <_Workspace_Area> 49ac8: 4eb9 0004 bafc jsr 4bafc <_Heap_Allocate_aligned_with_boundary> __builtin_return_address( 1 ), memory ); #endif if ( memory == NULL ) 49ace: 4fef 0010 lea %sp@(16),%sp 49ad2: 4a80 tstl %d0 49ad4: 6704 beqs 49ada <_Workspace_Allocate_or_fatal_error+0x24> true, INTERNAL_ERROR_WORKSPACE_ALLOCATION ); return memory; } 49ad6: 4e5e unlk %fp 49ad8: 4e75 rts memory ); #endif if ( memory == NULL ) _Internal_error_Occurred( 49ada: 4878 0003 pea 3 49ade: 4878 0001 pea 1 49ae2: 42a7 clrl %sp@- 49ae4: 4eb9 0004 77b8 jsr 477b8 <_Internal_error_Occurred> ... =============================================================================== 0004e1d4 : rtems_name name, rtems_attribute attribute_set, uint32_t maximum_waiters, rtems_id *id ) { 4e1d4: 4e56 ffe8 linkw %fp,#-24 4e1d8: 202e 0010 movel %fp@(16),%d0 4e1dc: 48d7 0c0c moveml %d2-%d3/%a2-%a3,%sp@ 4e1e0: 242e 0008 movel %fp@(8),%d2 4e1e4: 262e 000c movel %fp@(12),%d3 4e1e8: 246e 0014 moveal %fp@(20),%a2 Barrier_Control *the_barrier; CORE_barrier_Attributes the_attributes; if ( !rtems_is_name_valid( name ) ) 4e1ec: 4a82 tstl %d2 4e1ee: 677a beqs 4e26a <== NEVER TAKEN return RTEMS_INVALID_NAME; if ( !id ) 4e1f0: 4a8a tstl %a2 4e1f2: 6700 00cc beqw 4e2c0 return RTEMS_INVALID_ADDRESS; /* Initialize core barrier attributes */ if ( _Attributes_Is_barrier_automatic( attribute_set ) ) { 4e1f6: 0803 0004 btst #4,%d3 4e1fa: 677a beqs 4e276 <== NEVER TAKEN the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE; 4e1fc: 42ae fff8 clrl %fp@(-8) if ( maximum_waiters == 0 ) 4e200: 4a80 tstl %d0 4e202: 6700 00b0 beqw 4e2b4 4e206: 2239 0006 0e0c movel 60e0c <_Thread_Dispatch_disable_level>,%d1 4e20c: 5281 addql #1,%d1 return RTEMS_INVALID_NUMBER; } else the_attributes.discipline = CORE_BARRIER_MANUAL_RELEASE; the_attributes.maximum_count = maximum_waiters; 4e20e: 2d40 fffc movel %d0,%fp@(-4) 4e212: 23c1 0006 0e0c movel %d1,60e0c <_Thread_Dispatch_disable_level> * This function allocates a barrier control block from * the inactive chain of free barrier control blocks. */ RTEMS_INLINE_ROUTINE Barrier_Control *_Barrier_Allocate( void ) { return (Barrier_Control *) _Objects_Allocate( &_Barrier_Information ); 4e218: 4879 0006 0ffc pea 60ffc <_Barrier_Information> 4e21e: 4eb9 0004 9afc jsr 49afc <_Objects_Allocate> _Thread_Disable_dispatch(); /* prevents deletion */ the_barrier = _Barrier_Allocate(); if ( !the_barrier ) { 4e224: 588f addql #4,%sp 4e226: 2640 moveal %d0,%a3 4e228: 4a80 tstl %d0 4e22a: 6776 beqs 4e2a2 <== NEVER TAKEN _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } the_barrier->attribute_set = attribute_set; 4e22c: 2743 0010 movel %d3,%a3@(16) _CORE_barrier_Initialize( &the_barrier->Barrier, &the_attributes ); 4e230: 486e fff8 pea %fp@(-8) 4e234: 486b 0014 pea %a3@(20) 4e238: 4eb9 0004 ea84 jsr 4ea84 <_CORE_barrier_Initialize> Objects_Name name ) { _Objects_Set_local_object( information, _Objects_Get_index( the_object->id ), 4e23e: 202b 0008 movel %a3@(8),%d0 Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( 4e242: 4281 clrl %d1 #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 4e244: 2079 0006 1014 moveal 61014 <_Barrier_Information+0x18>,%a0 Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( 4e24a: 3200 movew %d0,%d1 #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 4e24c: 218b 1c00 movel %a3,%a0@(00000000,%d1:l:4) information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 4e250: 2742 000c movel %d2,%a3@(12) &_Barrier_Information, &the_barrier->Object, (Objects_Name) name ); *id = the_barrier->Object.id; 4e254: 2480 movel %d0,%a2@ _Thread_Enable_dispatch(); 4e256: 4eb9 0004 aafa jsr 4aafa <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; 4e25c: 508f addql #8,%sp 4e25e: 4280 clrl %d0 } 4e260: 4cee 0c0c ffe8 moveml %fp@(-24),%d2-%d3/%a2-%a3 4e266: 4e5e unlk %fp 4e268: 4e75 rts { Barrier_Control *the_barrier; CORE_barrier_Attributes the_attributes; if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; 4e26a: 7003 moveq #3,%d0 <== NOT EXECUTED *id = the_barrier->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 4e26c: 4cee 0c0c ffe8 moveml %fp@(-24),%d2-%d3/%a2-%a3 <== NOT EXECUTED 4e272: 4e5e unlk %fp <== NOT EXECUTED 4e274: 4e75 rts <== NOT EXECUTED if ( _Attributes_Is_barrier_automatic( attribute_set ) ) { the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE; if ( maximum_waiters == 0 ) return RTEMS_INVALID_NUMBER; } else the_attributes.discipline = CORE_BARRIER_MANUAL_RELEASE; 4e276: 7201 moveq #1,%d1 <== NOT EXECUTED 4e278: 2d41 fff8 movel %d1,%fp@(-8) <== NOT EXECUTED 4e27c: 2239 0006 0e0c movel 60e0c <_Thread_Dispatch_disable_level>,%d1<== NOT EXECUTED 4e282: 5281 addql #1,%d1 <== NOT EXECUTED the_attributes.maximum_count = maximum_waiters; 4e284: 2d40 fffc movel %d0,%fp@(-4) <== NOT EXECUTED 4e288: 23c1 0006 0e0c movel %d1,60e0c <_Thread_Dispatch_disable_level><== NOT EXECUTED 4e28e: 4879 0006 0ffc pea 60ffc <_Barrier_Information> <== NOT EXECUTED 4e294: 4eb9 0004 9afc jsr 49afc <_Objects_Allocate> <== NOT EXECUTED _Thread_Disable_dispatch(); /* prevents deletion */ the_barrier = _Barrier_Allocate(); if ( !the_barrier ) { 4e29a: 588f addql #4,%sp <== NOT EXECUTED 4e29c: 2640 moveal %d0,%a3 <== NOT EXECUTED 4e29e: 4a80 tstl %d0 <== NOT EXECUTED 4e2a0: 668a bnes 4e22c <== NOT EXECUTED _Thread_Enable_dispatch(); 4e2a2: 4eb9 0004 aafa jsr 4aafa <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_TOO_MANY; 4e2a8: 7005 moveq #5,%d0 <== NOT EXECUTED *id = the_barrier->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 4e2aa: 4cee 0c0c ffe8 moveml %fp@(-24),%d2-%d3/%a2-%a3 <== NOT EXECUTED 4e2b0: 4e5e unlk %fp <== NOT EXECUTED 4e2b2: 4e75 rts <== NOT EXECUTED /* Initialize core barrier attributes */ if ( _Attributes_Is_barrier_automatic( attribute_set ) ) { the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE; if ( maximum_waiters == 0 ) return RTEMS_INVALID_NUMBER; 4e2b4: 700a moveq #10,%d0 <== NOT EXECUTED *id = the_barrier->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 4e2b6: 4cee 0c0c ffe8 moveml %fp@(-24),%d2-%d3/%a2-%a3 <== NOT EXECUTED 4e2bc: 4e5e unlk %fp <== NOT EXECUTED 4e2be: 4e75 rts <== NOT EXECUTED if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; if ( !id ) return RTEMS_INVALID_ADDRESS; 4e2c0: 7009 moveq #9,%d0 <== NOT EXECUTED *id = the_barrier->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 4e2c2: 4cee 0c0c ffe8 moveml %fp@(-24),%d2-%d3/%a2-%a3 <== NOT EXECUTED 4e2c8: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 0004e2cc : */ rtems_status_code rtems_barrier_delete( rtems_id id ) { 4e2cc: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 4e2d0: 2f0a movel %a2,%sp@- <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Barrier_Control *) _Objects_Get( &_Barrier_Information, id, location ); 4e2d2: 486e fffc pea %fp@(-4) <== NOT EXECUTED 4e2d6: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4e2da: 4879 0006 0ffc pea 60ffc <_Barrier_Information> <== NOT EXECUTED 4e2e0: 4eb9 0004 9fbc jsr 49fbc <_Objects_Get> <== NOT EXECUTED Barrier_Control *the_barrier; Objects_Locations location; the_barrier = _Barrier_Get( id, &location ); switch ( location ) { 4e2e6: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4e2ea: 2440 moveal %d0,%a2 <== NOT EXECUTED 4e2ec: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 4e2f0: 6640 bnes 4e332 <== NOT EXECUTED case OBJECTS_LOCAL: _CORE_barrier_Flush( 4e2f2: 4878 0002 pea 2 <== NOT EXECUTED 4e2f6: 42a7 clrl %sp@- <== NOT EXECUTED 4e2f8: 486a 0014 pea %a2@(20) <== NOT EXECUTED 4e2fc: 4eb9 0004 b234 jsr 4b234 <_Thread_queue_Flush> <== NOT EXECUTED &the_barrier->Barrier, NULL, CORE_BARRIER_WAS_DELETED ); _Objects_Close( &_Barrier_Information, &the_barrier->Object ); 4e302: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4e304: 4879 0006 0ffc pea 60ffc <_Barrier_Information> <== NOT EXECUTED 4e30a: 4eb9 0004 9b8c jsr 49b8c <_Objects_Close> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Barrier_Free ( Barrier_Control *the_barrier ) { _Objects_Free( &_Barrier_Information, &the_barrier->Object ); 4e310: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4e312: 4879 0006 0ffc pea 60ffc <_Barrier_Information> <== NOT EXECUTED 4e318: 4eb9 0004 9e50 jsr 49e50 <_Objects_Free> <== NOT EXECUTED _Barrier_Free( the_barrier ); _Thread_Enable_dispatch(); 4e31e: 4eb9 0004 aafa jsr 4aafa <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4e324: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED _Objects_Close( &_Barrier_Information, &the_barrier->Object ); _Barrier_Free( the_barrier ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 4e328: 4fef 001c lea %sp@(28),%sp <== NOT EXECUTED 4e32c: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4e32e: 4e5e unlk %fp <== NOT EXECUTED 4e330: 4e75 rts <== NOT EXECUTED 4e332: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 4e336: 7004 moveq #4,%d0 <== NOT EXECUTED } 4e338: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00047324 : rtems_status_code rtems_barrier_ident( rtems_name name, rtems_id *id ) { 47324: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( 47328: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 4732c: 2f3c 7fff ffff movel #2147483647,%sp@- <== NOT EXECUTED 47332: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 47336: 4879 0006 01bc pea 601bc <_Barrier_Information> <== NOT EXECUTED 4733c: 4eb9 0004 9694 jsr 49694 <_Objects_Name_to_id_u32> <== NOT EXECUTED name, OBJECTS_SEARCH_LOCAL_NODE, id ); return _Status_Object_name_errors_to_status[ status ]; 47342: 41f9 0005 dcfe lea 5dcfe <_Status_Object_name_errors_to_status>,%a0<== NOT EXECUTED } 47348: 4e5e unlk %fp <== NOT EXECUTED 4734a: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED =============================================================================== 0004e36c : rtems_status_code rtems_barrier_release( rtems_id id, uint32_t *released ) { 4e36c: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 4e370: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4e372: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED 4e376: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4e378: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED Barrier_Control *the_barrier; Objects_Locations location; if ( !released ) 4e37c: 4a8a tstl %a2 <== NOT EXECUTED 4e37e: 6754 beqs 4e3d4 <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Barrier_Control *) _Objects_Get( &_Barrier_Information, id, location ); 4e380: 486e fffc pea %fp@(-4) <== NOT EXECUTED 4e384: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4e386: 4879 0006 0ffc pea 60ffc <_Barrier_Information> <== NOT EXECUTED 4e38c: 4eb9 0004 9fbc jsr 49fbc <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_barrier = _Barrier_Get( id, &location ); switch ( location ) { 4e392: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4e396: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 4e39a: 662a bnes 4e3c6 <== NOT EXECUTED case OBJECTS_LOCAL: *released = _CORE_barrier_Release( &the_barrier->Barrier, id, NULL ); 4e39c: 42a7 clrl %sp@- <== NOT EXECUTED 4e39e: 2040 moveal %d0,%a0 <== NOT EXECUTED 4e3a0: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4e3a2: 4868 0014 pea %a0@(20) <== NOT EXECUTED 4e3a6: 4eb9 0004 eac0 jsr 4eac0 <_CORE_barrier_Release> <== NOT EXECUTED 4e3ac: 2480 movel %d0,%a2@ <== NOT EXECUTED _Thread_Enable_dispatch(); 4e3ae: 4eb9 0004 aafa jsr 4aafa <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4e3b4: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED switch ( location ) { case OBJECTS_LOCAL: *released = _CORE_barrier_Release( &the_barrier->Barrier, id, NULL ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 4e3b8: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4e3bc: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4e3be: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 4e3c2: 4e5e unlk %fp <== NOT EXECUTED 4e3c4: 4e75 rts <== NOT EXECUTED 4e3c6: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 4e3ca: 7004 moveq #4,%d0 <== NOT EXECUTED } 4e3cc: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 4e3d0: 4e5e unlk %fp <== NOT EXECUTED 4e3d2: 4e75 rts <== NOT EXECUTED 4e3d4: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED { Barrier_Control *the_barrier; Objects_Locations location; if ( !released ) return RTEMS_INVALID_ADDRESS; 4e3d8: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4e3da: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 4e3de: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 0004e3e4 : rtems_status_code rtems_barrier_wait( rtems_id id, rtems_interval timeout ) { 4e3e4: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 4e3e8: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4e3ea: 486e fffc pea %fp@(-4) <== NOT EXECUTED 4e3ee: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED 4e3f2: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4e3f4: 4879 0006 0ffc pea 60ffc <_Barrier_Information> <== NOT EXECUTED 4e3fa: 4eb9 0004 9fbc jsr 49fbc <_Objects_Get> <== NOT EXECUTED Barrier_Control *the_barrier; Objects_Locations location; the_barrier = _Barrier_Get( id, &location ); switch ( location ) { 4e400: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4e404: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 4e408: 663a bnes 4e444 <== NOT EXECUTED case OBJECTS_LOCAL: _CORE_barrier_Wait( 4e40a: 42a7 clrl %sp@- <== NOT EXECUTED 4e40c: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 4e410: 2040 moveal %d0,%a0 <== NOT EXECUTED 4e412: 4878 0001 pea 1 <== NOT EXECUTED 4e416: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4e418: 4868 0014 pea %a0@(20) <== NOT EXECUTED 4e41c: 4eb9 0004 eafc jsr 4eafc <_CORE_barrier_Wait> <== NOT EXECUTED id, true, timeout, NULL ); _Thread_Enable_dispatch(); 4e422: 4eb9 0004 aafa jsr 4aafa <_Thread_Enable_dispatch> <== NOT EXECUTED return _Barrier_Translate_core_barrier_return_code( _Thread_Executing->Wait.return_code ); 4e428: 2079 0006 0fc8 moveal 60fc8 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED true, timeout, NULL ); _Thread_Enable_dispatch(); return _Barrier_Translate_core_barrier_return_code( 4e42e: 2f28 0034 movel %a0@(52),%sp@- <== NOT EXECUTED 4e432: 4eb9 0004 f580 jsr 4f580 <_Barrier_Translate_core_barrier_return_code><== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4e438: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED true, timeout, NULL ); _Thread_Enable_dispatch(); return _Barrier_Translate_core_barrier_return_code( 4e43c: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4e440: 4e5e unlk %fp <== NOT EXECUTED 4e442: 4e75 rts <== NOT EXECUTED 4e444: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 4e448: 7004 moveq #4,%d0 <== NOT EXECUTED } 4e44a: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 00047df8 : uint32_t the_class, uint32_t node, uint32_t index ) { return (( (Objects_Id) the_api ) << OBJECTS_API_START_BIT) | 47df8: 7218 moveq #24,%d1 <== NOT EXECUTED uint32_t api, uint32_t class, uint32_t node, uint32_t index ) { 47dfa: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 47dfe: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED 47e02: 2f02 movel %d2,%sp@- <== NOT EXECUTED 47e04: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED 47e08: e3aa lsll %d1,%d2 <== NOT EXECUTED (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) | 47e0a: 123c 001b moveb #27,%d1 <== NOT EXECUTED 47e0e: e3a8 lsll %d1,%d0 <== NOT EXECUTED 47e10: 222e 0010 movel %fp@(16),%d1 <== NOT EXECUTED uint32_t the_class, uint32_t node, uint32_t index ) { return (( (Objects_Id) the_api ) << OBJECTS_API_START_BIT) | 47e14: 8082 orl %d2,%d0 <== NOT EXECUTED (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) | #if !defined(RTEMS_USE_16_BIT_OBJECT) (( (Objects_Id) node ) << OBJECTS_NODE_START_BIT) | 47e16: 4841 swap %d1 <== NOT EXECUTED 47e18: 4241 clrw %d1 <== NOT EXECUTED return _Objects_Build_id( api, class, node, index ); } 47e1a: 241f movel %sp@+,%d2 <== NOT EXECUTED uint32_t node, uint32_t index ) { return (( (Objects_Id) the_api ) << OBJECTS_API_START_BIT) | (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) | 47e1c: 80ae 0014 orl %fp@(20),%d0 <== NOT EXECUTED 47e20: 4e5e unlk %fp <== NOT EXECUTED 47e22: 8081 orl %d1,%d0 <== NOT EXECUTED ... =============================================================================== 00047e28 : char C1, char C2, char C3, char C4 ) { 47e28: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED return _Objects_Build_name( C1, C2, C3, C4 ); 47e2c: 102e 000f moveb %fp@(15),%d0 <== NOT EXECUTED char C1, char C2, char C3, char C4 ) { 47e30: 48d7 001c moveml %d2-%d4,%sp@ <== NOT EXECUTED return _Objects_Build_name( C1, C2, C3, C4 ); 47e34: 142e 000b moveb %fp@(11),%d2 <== NOT EXECUTED 47e38: 122e 0013 moveb %fp@(19),%d1 <== NOT EXECUTED 47e3c: 7818 moveq #24,%d4 <== NOT EXECUTED 47e3e: 49c0 extbl %d0 <== NOT EXECUTED 47e40: 49c2 extbl %d2 <== NOT EXECUTED 47e42: 49c1 extbl %d1 <== NOT EXECUTED 47e44: e9aa lsll %d4,%d2 <== NOT EXECUTED 47e46: 4840 swap %d0 <== NOT EXECUTED 47e48: 4240 clrw %d0 <== NOT EXECUTED 47e4a: e189 lsll #8,%d1 <== NOT EXECUTED 47e4c: 162e 0017 moveb %fp@(23),%d3 <== NOT EXECUTED 47e50: 8082 orl %d2,%d0 <== NOT EXECUTED 47e52: 49c3 extbl %d3 <== NOT EXECUTED 47e54: 8081 orl %d1,%d0 <== NOT EXECUTED } 47e56: 8083 orl %d3,%d0 <== NOT EXECUTED 47e58: 4cd7 001c moveml %sp@,%d2-%d4 <== NOT EXECUTED 47e5c: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00047010 : rtems_chain_control *chain, rtems_chain_node *node, rtems_id task, rtems_event_set events ) { 47010: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 47014: 2f03 movel %d3,%sp@- <== NOT EXECUTED 47016: 262e 0014 movel %fp@(20),%d3 <== NOT EXECUTED 4701a: 2f02 movel %d2,%sp@- <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool rtems_chain_append_with_empty_check( rtems_chain_control *chain, rtems_chain_node *node ) { return _Chain_Append_with_empty_check( chain, node ); 4701c: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 47020: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 47024: 242e 0010 movel %fp@(16),%d2 <== NOT EXECUTED 47028: 4eb9 0004 757c jsr 4757c <_Chain_Append_with_empty_check> <== NOT EXECUTED rtems_status_code sc = RTEMS_SUCCESSFUL; bool was_empty = rtems_chain_append_with_empty_check( chain, node ); if ( was_empty ) { 4702e: 508f addql #8,%sp <== NOT EXECUTED 47030: 4a00 tstb %d0 <== NOT EXECUTED 47032: 660e bnes 47042 <== NOT EXECUTED sc = rtems_event_send( task, events ); } return sc; } 47034: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 47038: 4280 clrl %d0 <== NOT EXECUTED 4703a: 262e fffc movel %fp@(-4),%d3 <== NOT EXECUTED 4703e: 4e5e unlk %fp <== NOT EXECUTED 47040: 4e75 rts <== NOT EXECUTED { rtems_status_code sc = RTEMS_SUCCESSFUL; bool was_empty = rtems_chain_append_with_empty_check( chain, node ); if ( was_empty ) { sc = rtems_event_send( task, events ); 47042: 2d43 000c movel %d3,%fp@(12) <== NOT EXECUTED } return sc; } 47046: 262e fffc movel %fp@(-4),%d3 <== NOT EXECUTED { rtems_status_code sc = RTEMS_SUCCESSFUL; bool was_empty = rtems_chain_append_with_empty_check( chain, node ); if ( was_empty ) { sc = rtems_event_send( task, events ); 4704a: 2d42 0008 movel %d2,%fp@(8) <== NOT EXECUTED } return sc; } 4704e: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 47052: 4e5e unlk %fp <== NOT EXECUTED { rtems_status_code sc = RTEMS_SUCCESSFUL; bool was_empty = rtems_chain_append_with_empty_check( chain, node ); if ( was_empty ) { sc = rtems_event_send( task, events ); 47054: 4ef9 0004 6540 jmp 46540 <== NOT EXECUTED ... =============================================================================== 0004705c : rtems_chain_control *chain, rtems_id task, rtems_event_set events, rtems_chain_node **node ) { 4705c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 47060: 2f03 movel %d3,%sp@- <== NOT EXECUTED 47062: 262e 0010 movel %fp@(16),%d3 <== NOT EXECUTED 47066: 2f02 movel %d2,%sp@- <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool rtems_chain_get_with_empty_check( rtems_chain_control *chain, rtems_chain_node **node ) { return _Chain_Get_with_empty_check( chain, node ); 47068: 2f2e 0014 movel %fp@(20),%sp@- <== NOT EXECUTED 4706c: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 47070: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED 47074: 4eb9 0004 761c jsr 4761c <_Chain_Get_with_empty_check> <== NOT EXECUTED rtems_status_code sc = RTEMS_SUCCESSFUL; bool is_empty = rtems_chain_get_with_empty_check( chain, node ); if ( is_empty ) { 4707a: 508f addql #8,%sp <== NOT EXECUTED 4707c: 4a00 tstb %d0 <== NOT EXECUTED 4707e: 660e bnes 4708e <== NOT EXECUTED sc = rtems_event_send( task, events ); } return sc; } 47080: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 47084: 4280 clrl %d0 <== NOT EXECUTED 47086: 262e fffc movel %fp@(-4),%d3 <== NOT EXECUTED 4708a: 4e5e unlk %fp <== NOT EXECUTED 4708c: 4e75 rts <== NOT EXECUTED { rtems_status_code sc = RTEMS_SUCCESSFUL; bool is_empty = rtems_chain_get_with_empty_check( chain, node ); if ( is_empty ) { sc = rtems_event_send( task, events ); 4708e: 2d43 000c movel %d3,%fp@(12) <== NOT EXECUTED } return sc; } 47092: 262e fffc movel %fp@(-4),%d3 <== NOT EXECUTED { rtems_status_code sc = RTEMS_SUCCESSFUL; bool is_empty = rtems_chain_get_with_empty_check( chain, node ); if ( is_empty ) { sc = rtems_event_send( task, events ); 47096: 2d42 0008 movel %d2,%fp@(8) <== NOT EXECUTED } return sc; } 4709a: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 4709e: 4e5e unlk %fp <== NOT EXECUTED { rtems_status_code sc = RTEMS_SUCCESSFUL; bool is_empty = rtems_chain_get_with_empty_check( chain, node ); if ( is_empty ) { sc = rtems_event_send( task, events ); 470a0: 4ef9 0004 6540 jmp 46540 <== NOT EXECUTED ... =============================================================================== 000470a8 : rtems_chain_control *chain, rtems_event_set events, rtems_interval timeout, rtems_chain_node **node_ptr ) { 470a8: 4e56 ffe0 linkw %fp,#-32 <== NOT EXECUTED 470ac: 48d7 0c7c moveml %d2-%d6/%a2-%a3,%sp@ <== NOT EXECUTED while ( sc == RTEMS_SUCCESSFUL && (node = rtems_chain_get( chain )) == NULL ) { rtems_event_set out; sc = rtems_event_receive( 470b0: 2c0e movel %fp,%d6 <== NOT EXECUTED 470b2: 45f9 0004 766c lea 4766c <_Chain_Get>,%a2 <== NOT EXECUTED 470b8: 5986 subql #4,%d6 <== NOT EXECUTED 470ba: 47f9 0004 6398 lea 46398 ,%a3 <== NOT EXECUTED rtems_chain_control *chain, rtems_event_set events, rtems_interval timeout, rtems_chain_node **node_ptr ) { 470c0: 262e 0008 movel %fp@(8),%d3 <== NOT EXECUTED 470c4: 2a2e 000c movel %fp@(12),%d5 <== NOT EXECUTED 470c8: 282e 0010 movel %fp@(16),%d4 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get( rtems_chain_control *the_chain ) { return _Chain_Get( the_chain ); 470cc: 2f03 movel %d3,%sp@- <== NOT EXECUTED 470ce: 4e92 jsr %a2@ <== NOT EXECUTED rtems_status_code sc = RTEMS_SUCCESSFUL; rtems_chain_node *node = NULL; while ( sc == RTEMS_SUCCESSFUL && (node = rtems_chain_get( chain )) == NULL 470d0: 588f addql #4,%sp <== NOT EXECUTED 470d2: 2400 movel %d0,%d2 <== NOT EXECUTED 470d4: 6622 bnes 470f8 <== NOT EXECUTED ) { rtems_event_set out; sc = rtems_event_receive( 470d6: 2f06 movel %d6,%sp@- <== NOT EXECUTED 470d8: 2f04 movel %d4,%sp@- <== NOT EXECUTED 470da: 42a7 clrl %sp@- <== NOT EXECUTED 470dc: 2f05 movel %d5,%sp@- <== NOT EXECUTED 470de: 4e93 jsr %a3@ <== NOT EXECUTED ) { rtems_status_code sc = RTEMS_SUCCESSFUL; rtems_chain_node *node = NULL; while ( 470e0: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 470e4: 4a80 tstl %d0 <== NOT EXECUTED 470e6: 67e4 beqs 470cc <== NOT EXECUTED timeout, &out ); } *node_ptr = node; 470e8: 206e 0014 moveal %fp@(20),%a0 <== NOT EXECUTED 470ec: 2082 movel %d2,%a0@ <== NOT EXECUTED return sc; } 470ee: 4cee 0c7c ffe0 moveml %fp@(-32),%d2-%d6/%a2-%a3 <== NOT EXECUTED 470f4: 4e5e unlk %fp <== NOT EXECUTED 470f6: 4e75 rts <== NOT EXECUTED timeout, &out ); } *node_ptr = node; 470f8: 206e 0014 moveal %fp@(20),%a0 <== NOT EXECUTED rtems_status_code sc = RTEMS_SUCCESSFUL; rtems_chain_node *node = NULL; while ( sc == RTEMS_SUCCESSFUL && (node = rtems_chain_get( chain )) == NULL 470fc: 4280 clrl %d0 <== NOT EXECUTED timeout, &out ); } *node_ptr = node; 470fe: 2082 movel %d2,%a0@ <== NOT EXECUTED return sc; } 47100: 4cee 0c7c ffe0 moveml %fp@(-32),%d2-%d6/%a2-%a3 <== NOT EXECUTED 47106: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 0004710c : rtems_chain_control *chain, rtems_chain_node *node, rtems_id task, rtems_event_set events ) { 4710c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 47110: 2f03 movel %d3,%sp@- <== NOT EXECUTED 47112: 262e 0014 movel %fp@(20),%d3 <== NOT EXECUTED 47116: 2f02 movel %d2,%sp@- <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool rtems_chain_prepend_with_empty_check( rtems_chain_control *chain, rtems_chain_node *node ) { return _Chain_Prepend_with_empty_check( chain, node ); 47118: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 4711c: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 47120: 242e 0010 movel %fp@(16),%d2 <== NOT EXECUTED 47124: 4eb9 0004 76d8 jsr 476d8 <_Chain_Prepend_with_empty_check> <== NOT EXECUTED rtems_status_code sc = RTEMS_SUCCESSFUL; bool was_empty = rtems_chain_prepend_with_empty_check( chain, node ); if (was_empty) { 4712a: 508f addql #8,%sp <== NOT EXECUTED 4712c: 4a00 tstb %d0 <== NOT EXECUTED 4712e: 660e bnes 4713e <== NOT EXECUTED sc = rtems_event_send( task, events ); } return sc; } 47130: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 47134: 4280 clrl %d0 <== NOT EXECUTED 47136: 262e fffc movel %fp@(-4),%d3 <== NOT EXECUTED 4713a: 4e5e unlk %fp <== NOT EXECUTED 4713c: 4e75 rts <== NOT EXECUTED { rtems_status_code sc = RTEMS_SUCCESSFUL; bool was_empty = rtems_chain_prepend_with_empty_check( chain, node ); if (was_empty) { sc = rtems_event_send( task, events ); 4713e: 2d43 000c movel %d3,%fp@(12) <== NOT EXECUTED } return sc; } 47142: 262e fffc movel %fp@(-4),%d3 <== NOT EXECUTED { rtems_status_code sc = RTEMS_SUCCESSFUL; bool was_empty = rtems_chain_prepend_with_empty_check( chain, node ); if (was_empty) { sc = rtems_event_send( task, events ); 47146: 2d42 0008 movel %d2,%fp@(8) <== NOT EXECUTED } return sc; } 4714a: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 4714e: 4e5e unlk %fp <== NOT EXECUTED { rtems_status_code sc = RTEMS_SUCCESSFUL; bool was_empty = rtems_chain_prepend_with_empty_check( chain, node ); if (was_empty) { sc = rtems_event_send( task, events ); 47150: 4ef9 0004 6540 jmp 46540 <== NOT EXECUTED ... =============================================================================== 00055798 : rtems_status_code rtems_clock_get( rtems_clock_get_options option, void *time_buffer ) { 55798: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 5579c: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED 557a0: 2f0a movel %a2,%sp@- <== NOT EXECUTED 557a2: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED if ( !time_buffer ) 557a6: 4a8a tstl %a2 <== NOT EXECUTED 557a8: 6748 beqs 557f2 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( option == RTEMS_CLOCK_GET_TOD ) 557aa: 4a80 tstl %d0 <== NOT EXECUTED 557ac: 6734 beqs 557e2 <== NOT EXECUTED return rtems_clock_get_tod( (rtems_time_of_day *)time_buffer ); if ( option == RTEMS_CLOCK_GET_SECONDS_SINCE_EPOCH ) 557ae: 7201 moveq #1,%d1 <== NOT EXECUTED 557b0: b280 cmpl %d0,%d1 <== NOT EXECUTED 557b2: 674a beqs 557fe <== NOT EXECUTED return rtems_clock_get_seconds_since_epoch((rtems_interval *)time_buffer); if ( option == RTEMS_CLOCK_GET_TICKS_SINCE_BOOT ) { 557b4: 7202 moveq #2,%d1 <== NOT EXECUTED 557b6: b280 cmpl %d0,%d1 <== NOT EXECUTED 557b8: 6754 beqs 5580e <== NOT EXECUTED *interval = rtems_clock_get_ticks_since_boot(); return RTEMS_SUCCESSFUL; } if ( option == RTEMS_CLOCK_GET_TICKS_PER_SECOND ) { 557ba: 7203 moveq #3,%d1 <== NOT EXECUTED 557bc: b280 cmpl %d0,%d1 <== NOT EXECUTED 557be: 6762 beqs 55822 <== NOT EXECUTED *interval = rtems_clock_get_ticks_per_second(); return RTEMS_SUCCESSFUL; } if ( option == RTEMS_CLOCK_GET_TIME_VALUE ) 557c0: 7204 moveq #4,%d1 <== NOT EXECUTED 557c2: b280 cmpl %d0,%d1 <== NOT EXECUTED 557c4: 670c beqs 557d2 <== NOT EXECUTED return rtems_clock_get_tod_timeval( (struct timeval *)time_buffer ); return RTEMS_INVALID_NUMBER; } 557c6: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED } if ( option == RTEMS_CLOCK_GET_TIME_VALUE ) return rtems_clock_get_tod_timeval( (struct timeval *)time_buffer ); return RTEMS_INVALID_NUMBER; 557ca: 720a moveq #10,%d1 <== NOT EXECUTED } 557cc: 2001 movel %d1,%d0 <== NOT EXECUTED 557ce: 4e5e unlk %fp <== NOT EXECUTED 557d0: 4e75 rts <== NOT EXECUTED *interval = rtems_clock_get_ticks_per_second(); return RTEMS_SUCCESSFUL; } if ( option == RTEMS_CLOCK_GET_TIME_VALUE ) return rtems_clock_get_tod_timeval( (struct timeval *)time_buffer ); 557d2: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED return RTEMS_INVALID_NUMBER; } 557d6: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 557da: 4e5e unlk %fp <== NOT EXECUTED *interval = rtems_clock_get_ticks_per_second(); return RTEMS_SUCCESSFUL; } if ( option == RTEMS_CLOCK_GET_TIME_VALUE ) return rtems_clock_get_tod_timeval( (struct timeval *)time_buffer ); 557dc: 4ef9 0005 5950 jmp 55950 <== NOT EXECUTED { if ( !time_buffer ) return RTEMS_INVALID_ADDRESS; if ( option == RTEMS_CLOCK_GET_TOD ) return rtems_clock_get_tod( (rtems_time_of_day *)time_buffer ); 557e2: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED if ( option == RTEMS_CLOCK_GET_TIME_VALUE ) return rtems_clock_get_tod_timeval( (struct timeval *)time_buffer ); return RTEMS_INVALID_NUMBER; } 557e6: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 557ea: 4e5e unlk %fp <== NOT EXECUTED { if ( !time_buffer ) return RTEMS_INVALID_ADDRESS; if ( option == RTEMS_CLOCK_GET_TOD ) return rtems_clock_get_tod( (rtems_time_of_day *)time_buffer ); 557ec: 4ef9 0005 588c jmp 5588c <== NOT EXECUTED if ( option == RTEMS_CLOCK_GET_TIME_VALUE ) return rtems_clock_get_tod_timeval( (struct timeval *)time_buffer ); return RTEMS_INVALID_NUMBER; } 557f2: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED rtems_clock_get_options option, void *time_buffer ) { if ( !time_buffer ) return RTEMS_INVALID_ADDRESS; 557f6: 7209 moveq #9,%d1 <== NOT EXECUTED if ( option == RTEMS_CLOCK_GET_TIME_VALUE ) return rtems_clock_get_tod_timeval( (struct timeval *)time_buffer ); return RTEMS_INVALID_NUMBER; } 557f8: 2001 movel %d1,%d0 <== NOT EXECUTED 557fa: 4e5e unlk %fp <== NOT EXECUTED 557fc: 4e75 rts <== NOT EXECUTED if ( option == RTEMS_CLOCK_GET_TOD ) return rtems_clock_get_tod( (rtems_time_of_day *)time_buffer ); if ( option == RTEMS_CLOCK_GET_SECONDS_SINCE_EPOCH ) return rtems_clock_get_seconds_since_epoch((rtems_interval *)time_buffer); 557fe: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED if ( option == RTEMS_CLOCK_GET_TIME_VALUE ) return rtems_clock_get_tod_timeval( (struct timeval *)time_buffer ); return RTEMS_INVALID_NUMBER; } 55802: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 55806: 4e5e unlk %fp <== NOT EXECUTED if ( option == RTEMS_CLOCK_GET_TOD ) return rtems_clock_get_tod( (rtems_time_of_day *)time_buffer ); if ( option == RTEMS_CLOCK_GET_SECONDS_SINCE_EPOCH ) return rtems_clock_get_seconds_since_epoch((rtems_interval *)time_buffer); 55808: 4ef9 0005 5838 jmp 55838 <== NOT EXECUTED if ( option == RTEMS_CLOCK_GET_TICKS_SINCE_BOOT ) { rtems_interval *interval = (rtems_interval *)time_buffer; *interval = rtems_clock_get_ticks_since_boot(); 5580e: 4eb9 0005 587c jsr 5587c <== NOT EXECUTED return RTEMS_SUCCESSFUL; 55814: 4281 clrl %d1 <== NOT EXECUTED return rtems_clock_get_seconds_since_epoch((rtems_interval *)time_buffer); if ( option == RTEMS_CLOCK_GET_TICKS_SINCE_BOOT ) { rtems_interval *interval = (rtems_interval *)time_buffer; *interval = rtems_clock_get_ticks_since_boot(); 55816: 2480 movel %d0,%a2@ <== NOT EXECUTED if ( option == RTEMS_CLOCK_GET_TIME_VALUE ) return rtems_clock_get_tod_timeval( (struct timeval *)time_buffer ); return RTEMS_INVALID_NUMBER; } 55818: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 5581c: 2001 movel %d1,%d0 <== NOT EXECUTED 5581e: 4e5e unlk %fp <== NOT EXECUTED 55820: 4e75 rts <== NOT EXECUTED } if ( option == RTEMS_CLOCK_GET_TICKS_PER_SECOND ) { rtems_interval *interval = (rtems_interval *)time_buffer; *interval = rtems_clock_get_ticks_per_second(); 55822: 4eb9 0005 5864 jsr 55864 <== NOT EXECUTED return RTEMS_SUCCESSFUL; 55828: 4281 clrl %d1 <== NOT EXECUTED } if ( option == RTEMS_CLOCK_GET_TICKS_PER_SECOND ) { rtems_interval *interval = (rtems_interval *)time_buffer; *interval = rtems_clock_get_ticks_per_second(); 5582a: 2480 movel %d0,%a2@ <== NOT EXECUTED if ( option == RTEMS_CLOCK_GET_TIME_VALUE ) return rtems_clock_get_tod_timeval( (struct timeval *)time_buffer ); return RTEMS_INVALID_NUMBER; } 5582c: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 55830: 2001 movel %d1,%d0 <== NOT EXECUTED 55832: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 0004706c : #include rtems_status_code rtems_clock_get_seconds_since_epoch( rtems_interval *the_interval ) { 4706c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 47070: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED if ( !the_interval ) 47074: 4a88 tstl %a0 <== NOT EXECUTED 47076: 671a beqs 47092 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !_TOD_Is_set ) 47078: 4a39 0006 8a78 tstb 68a78 <_TOD_Is_set> <== NOT EXECUTED 4707e: 670c beqs 4708c <== NOT EXECUTED return RTEMS_NOT_DEFINED; *the_interval = _TOD_Seconds_since_epoch(); 47080: 20b9 0006 8b12 movel 68b12 <_TOD_Now>,%a0@ <== NOT EXECUTED return RTEMS_SUCCESSFUL; 47086: 4280 clrl %d0 <== NOT EXECUTED } 47088: 4e5e unlk %fp <== NOT EXECUTED 4708a: 4e75 rts <== NOT EXECUTED { if ( !the_interval ) return RTEMS_INVALID_ADDRESS; if ( !_TOD_Is_set ) return RTEMS_NOT_DEFINED; 4708c: 700b moveq #11,%d0 <== NOT EXECUTED *the_interval = _TOD_Seconds_since_epoch(); return RTEMS_SUCCESSFUL; } 4708e: 4e5e unlk %fp <== NOT EXECUTED 47090: 4e75 rts <== NOT EXECUTED rtems_status_code rtems_clock_get_seconds_since_epoch( rtems_interval *the_interval ) { if ( !the_interval ) return RTEMS_INVALID_ADDRESS; 47092: 7009 moveq #9,%d0 <== NOT EXECUTED if ( !_TOD_Is_set ) return RTEMS_NOT_DEFINED; *the_interval = _TOD_Seconds_since_epoch(); return RTEMS_SUCCESSFUL; } 47094: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00045d1c : rtems_interval rtems_clock_get_ticks_per_second(void) { return TOD_MICROSECONDS_PER_SECOND / rtems_configuration_get_microseconds_per_tick(); } 45d1c: 41f9 0005 cca0 lea 5cca0 ,%a0 <== NOT EXECUTED #include #include #include rtems_interval rtems_clock_get_ticks_per_second(void) { 45d22: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return TOD_MICROSECONDS_PER_SECOND / rtems_configuration_get_microseconds_per_tick(); } 45d26: 203c 000f 4240 movel #1000000,%d0 <== NOT EXECUTED 45d2c: 4e5e unlk %fp <== NOT EXECUTED 45d2e: 4c50 0000 remul %a0@,%d0,%d0 <== NOT EXECUTED =============================================================================== 00045d34 : #include #include #include rtems_interval rtems_clock_get_ticks_since_boot(void) { 45d34: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return _Watchdog_Ticks_since_boot; 45d38: 2039 0005 e5f0 movel 5e5f0 <_Watchdog_Ticks_since_boot>,%d0<== NOT EXECUTED } 45d3e: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 000470c0 : #include rtems_status_code rtems_clock_get_tod( rtems_time_of_day *time_buffer ) { 470c0: 4e56 ffcc linkw %fp,#-52 <== NOT EXECUTED 470c4: 2f0a movel %a2,%sp@- <== NOT EXECUTED 470c6: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 470ca: 2f02 movel %d2,%sp@- <== NOT EXECUTED rtems_time_of_day *tmbuf = time_buffer; struct tm time; struct timeval now; if ( !time_buffer ) 470cc: 4a8a tstl %a2 <== NOT EXECUTED 470ce: 6700 00a6 beqw 47176 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !_TOD_Is_set ) 470d2: 4a39 0006 8a78 tstb 68a78 <_TOD_Is_set> <== NOT EXECUTED 470d8: 660e bnes 470e8 <== NOT EXECUTED tmbuf->second = time.tm_sec; tmbuf->ticks = now.tv_usec / rtems_configuration_get_microseconds_per_tick(); return RTEMS_SUCCESSFUL; } 470da: 242e ffc4 movel %fp@(-60),%d2 <== NOT EXECUTED if ( !time_buffer ) return RTEMS_INVALID_ADDRESS; if ( !_TOD_Is_set ) return RTEMS_NOT_DEFINED; 470de: 700b moveq #11,%d0 <== NOT EXECUTED tmbuf->second = time.tm_sec; tmbuf->ticks = now.tv_usec / rtems_configuration_get_microseconds_per_tick(); return RTEMS_SUCCESSFUL; } 470e0: 246e ffc8 moveal %fp@(-56),%a2 <== NOT EXECUTED 470e4: 4e5e unlk %fp <== NOT EXECUTED 470e6: 4e75 rts <== NOT EXECUTED { ISR_Level level; struct timespec now; suseconds_t useconds; _ISR_Disable(level); 470e8: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED 470ee: 40c2 movew %sr,%d2 <== NOT EXECUTED 470f0: 8082 orl %d2,%d0 <== NOT EXECUTED 470f2: 46c0 movew %d0,%sr <== NOT EXECUTED _TOD_Get( &now ); 470f4: 486e fff0 pea %fp@(-16) <== NOT EXECUTED 470f8: 4eb9 0004 8ba4 jsr 48ba4 <_TOD_Get> <== NOT EXECUTED _ISR_Enable(level); 470fe: 46c2 movew %d2,%sr <== NOT EXECUTED useconds = (suseconds_t)now.tv_nsec; useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND; time->tv_sec = now.tv_sec; time->tv_usec = useconds; 47100: 243c 0000 03e8 movel #1000,%d2 <== NOT EXECUTED /* Obtain the current time */ _TOD_Get_timeval( &now ); /* Split it into a closer format */ gmtime_r( &now.tv_sec, &time ); 47106: 486e ffcc pea %fp@(-52) <== NOT EXECUTED _ISR_Disable(level); _TOD_Get( &now ); _ISR_Enable(level); useconds = (suseconds_t)now.tv_nsec; 4710a: 202e fff4 movel %fp@(-12),%d0 <== NOT EXECUTED 4710e: 486e fff8 pea %fp@(-8) <== NOT EXECUTED useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND; time->tv_sec = now.tv_sec; 47112: 2d6e fff0 fff8 movel %fp@(-16),%fp@(-8) <== NOT EXECUTED time->tv_usec = useconds; 47118: 4c42 0800 remsl %d2,%d0,%d0 <== NOT EXECUTED 4711c: 2d40 fffc movel %d0,%fp@(-4) <== NOT EXECUTED 47120: 4eb9 0004 fb68 jsr 4fb68 <== NOT EXECUTED /* Now adjust it to the RTEMS format */ tmbuf->year = time.tm_year + 1900; tmbuf->month = time.tm_mon + 1; 47126: 206e ffdc moveal %fp@(-36),%a0 <== NOT EXECUTED 4712a: 5288 addql #1,%a0 <== NOT EXECUTED tmbuf->minute = time.tm_min; tmbuf->second = time.tm_sec; tmbuf->ticks = now.tv_usec / rtems_configuration_get_microseconds_per_tick(); return RTEMS_SUCCESSFUL; 4712c: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 47130: 4280 clrl %d0 <== NOT EXECUTED /* Split it into a closer format */ gmtime_r( &now.tv_sec, &time ); /* Now adjust it to the RTEMS format */ tmbuf->year = time.tm_year + 1900; tmbuf->month = time.tm_mon + 1; 47132: 2548 0004 movel %a0,%a2@(4) <== NOT EXECUTED /* Split it into a closer format */ gmtime_r( &now.tv_sec, &time ); /* Now adjust it to the RTEMS format */ tmbuf->year = time.tm_year + 1900; 47136: 206e ffe0 moveal %fp@(-32),%a0 <== NOT EXECUTED 4713a: 41e8 076c lea %a0@(1900),%a0 <== NOT EXECUTED tmbuf->month = time.tm_mon + 1; tmbuf->day = time.tm_mday; tmbuf->hour = time.tm_hour; tmbuf->minute = time.tm_min; tmbuf->second = time.tm_sec; tmbuf->ticks = now.tv_usec / 4713e: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED /* Split it into a closer format */ gmtime_r( &now.tv_sec, &time ); /* Now adjust it to the RTEMS format */ tmbuf->year = time.tm_year + 1900; 47142: 2488 movel %a0,%a2@ <== NOT EXECUTED tmbuf->month = time.tm_mon + 1; tmbuf->day = time.tm_mday; tmbuf->hour = time.tm_hour; tmbuf->minute = time.tm_min; tmbuf->second = time.tm_sec; tmbuf->ticks = now.tv_usec / 47144: 41f9 0005 f480 lea 5f480 ,%a0 <== NOT EXECUTED 4714a: 4c50 2002 remul %a0@,%d2,%d2 <== NOT EXECUTED gmtime_r( &now.tv_sec, &time ); /* Now adjust it to the RTEMS format */ tmbuf->year = time.tm_year + 1900; tmbuf->month = time.tm_mon + 1; tmbuf->day = time.tm_mday; 4714e: 256e ffd8 0008 movel %fp@(-40),%a2@(8) <== NOT EXECUTED tmbuf->hour = time.tm_hour; 47154: 256e ffd4 000c movel %fp@(-44),%a2@(12) <== NOT EXECUTED tmbuf->minute = time.tm_min; 4715a: 256e ffd0 0010 movel %fp@(-48),%a2@(16) <== NOT EXECUTED tmbuf->second = time.tm_sec; 47160: 256e ffcc 0014 movel %fp@(-52),%a2@(20) <== NOT EXECUTED tmbuf->ticks = now.tv_usec / 47166: 2542 0018 movel %d2,%a2@(24) <== NOT EXECUTED rtems_configuration_get_microseconds_per_tick(); return RTEMS_SUCCESSFUL; } 4716a: 242e ffc4 movel %fp@(-60),%d2 <== NOT EXECUTED 4716e: 246e ffc8 moveal %fp@(-56),%a2 <== NOT EXECUTED 47172: 4e5e unlk %fp <== NOT EXECUTED 47174: 4e75 rts <== NOT EXECUTED 47176: 242e ffc4 movel %fp@(-60),%d2 <== NOT EXECUTED rtems_time_of_day *tmbuf = time_buffer; struct tm time; struct timeval now; if ( !time_buffer ) return RTEMS_INVALID_ADDRESS; 4717a: 7009 moveq #9,%d0 <== NOT EXECUTED tmbuf->second = time.tm_sec; tmbuf->ticks = now.tv_usec / rtems_configuration_get_microseconds_per_tick(); return RTEMS_SUCCESSFUL; } 4717c: 246e ffc8 moveal %fp@(-56),%a2 <== NOT EXECUTED 47180: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00055950 : #include rtems_status_code rtems_clock_get_tod_timeval( struct timeval *time ) { 55950: 4e56 ffec linkw %fp,#-20 <== NOT EXECUTED 55954: 48d7 040c moveml %d2-%d3/%a2,%sp@ <== NOT EXECUTED 55958: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED if ( !time ) 5595c: 4a8a tstl %a2 <== NOT EXECUTED 5595e: 6750 beqs 559b0 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !_TOD_Is_set ) 55960: 4a39 0007 d1d4 tstb 7d1d4 <_TOD_Is_set> <== NOT EXECUTED 55966: 660c bnes 55974 <== NOT EXECUTED return RTEMS_NOT_DEFINED; 55968: 700b moveq #11,%d0 <== NOT EXECUTED _TOD_Get_timeval( time ); return RTEMS_SUCCESSFUL; } 5596a: 4cee 040c ffec moveml %fp@(-20),%d2-%d3/%a2 <== NOT EXECUTED 55970: 4e5e unlk %fp <== NOT EXECUTED 55972: 4e75 rts <== NOT EXECUTED { ISR_Level level; struct timespec now; suseconds_t useconds; _ISR_Disable(level); 55974: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED 5597a: 40c2 movew %sr,%d2 <== NOT EXECUTED 5597c: 8082 orl %d2,%d0 <== NOT EXECUTED 5597e: 46c0 movew %d0,%sr <== NOT EXECUTED _TOD_Get( &now ); 55980: 486e fff8 pea %fp@(-8) <== NOT EXECUTED 55984: 4eb9 0005 a47c jsr 5a47c <_TOD_Get> <== NOT EXECUTED _ISR_Enable(level); 5598a: 46c2 movew %d2,%sr <== NOT EXECUTED useconds = (suseconds_t)now.tv_nsec; useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND; time->tv_sec = now.tv_sec; time->tv_usec = useconds; 5598c: 263c 0000 03e8 movel #1000,%d3 <== NOT EXECUTED if ( !_TOD_Is_set ) return RTEMS_NOT_DEFINED; _TOD_Get_timeval( time ); return RTEMS_SUCCESSFUL; 55992: 588f addql #4,%sp <== NOT EXECUTED 55994: 4280 clrl %d0 <== NOT EXECUTED _ISR_Disable(level); _TOD_Get( &now ); _ISR_Enable(level); useconds = (suseconds_t)now.tv_nsec; 55996: 222e fffc movel %fp@(-4),%d1 <== NOT EXECUTED useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND; time->tv_sec = now.tv_sec; time->tv_usec = useconds; 5599a: 4c43 1801 remsl %d3,%d1,%d1 <== NOT EXECUTED _ISR_Enable(level); useconds = (suseconds_t)now.tv_nsec; useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND; time->tv_sec = now.tv_sec; 5599e: 24ae fff8 movel %fp@(-8),%a2@ <== NOT EXECUTED time->tv_usec = useconds; 559a2: 2541 0004 movel %d1,%a2@(4) <== NOT EXECUTED } 559a6: 4cee 040c ffec moveml %fp@(-20),%d2-%d3/%a2 <== NOT EXECUTED 559ac: 4e5e unlk %fp <== NOT EXECUTED 559ae: 4e75 rts <== NOT EXECUTED rtems_status_code rtems_clock_get_tod_timeval( struct timeval *time ) { if ( !time ) return RTEMS_INVALID_ADDRESS; 559b0: 7009 moveq #9,%d0 <== NOT EXECUTED return RTEMS_NOT_DEFINED; _TOD_Get_timeval( time ); return RTEMS_SUCCESSFUL; } 559b2: 4cee 040c ffec moveml %fp@(-20),%d2-%d3/%a2 <== NOT EXECUTED 559b8: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00045f38 : * error code - if unsuccessful */ rtems_status_code rtems_clock_get_uptime( struct timespec *uptime ) { 45f38: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 45f3c: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED if ( !uptime ) 45f40: 6710 beqs 45f52 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _TOD_Get_uptime_as_timespec( uptime ); 45f42: 2f00 movel %d0,%sp@- <== NOT EXECUTED 45f44: 4eb9 0004 7740 jsr 47740 <_TOD_Get_uptime_as_timespec> <== NOT EXECUTED return RTEMS_SUCCESSFUL; 45f4a: 588f addql #4,%sp <== NOT EXECUTED 45f4c: 4280 clrl %d0 <== NOT EXECUTED } 45f4e: 4e5e unlk %fp <== NOT EXECUTED 45f50: 4e75 rts <== NOT EXECUTED rtems_status_code rtems_clock_get_uptime( struct timespec *uptime ) { if ( !uptime ) return RTEMS_INVALID_ADDRESS; 45f52: 7009 moveq #9,%d0 <== NOT EXECUTED _TOD_Get_uptime_as_timespec( uptime ); return RTEMS_SUCCESSFUL; } 45f54: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 000471a0 : */ rtems_status_code rtems_clock_set( rtems_time_of_day *time_buffer ) { 471a0: 4e56 fff8 linkw %fp,#-8 <== NOT EXECUTED 471a4: 2f0a movel %a2,%sp@- <== NOT EXECUTED 471a6: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 471aa: 2f02 movel %d2,%sp@- <== NOT EXECUTED struct timespec newtime; if ( !time_buffer ) 471ac: 4a8a tstl %a2 <== NOT EXECUTED 471ae: 6772 beqs 47222 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( _TOD_Validate( time_buffer ) ) { 471b0: 2f0a movel %a2,%sp@- <== NOT EXECUTED 471b2: 4eb9 0004 7378 jsr 47378 <_TOD_Validate> <== NOT EXECUTED 471b8: 588f addql #4,%sp <== NOT EXECUTED 471ba: 4a00 tstb %d0 <== NOT EXECUTED 471bc: 660e bnes 471cc <== NOT EXECUTED _TOD_Set( &newtime ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } return RTEMS_INVALID_CLOCK; } 471be: 242e fff0 movel %fp@(-16),%d2 <== NOT EXECUTED _Thread_Disable_dispatch(); _TOD_Set( &newtime ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } return RTEMS_INVALID_CLOCK; 471c2: 7014 moveq #20,%d0 <== NOT EXECUTED } 471c4: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED 471c8: 4e5e unlk %fp <== NOT EXECUTED 471ca: 4e75 rts <== NOT EXECUTED if ( !time_buffer ) return RTEMS_INVALID_ADDRESS; if ( _TOD_Validate( time_buffer ) ) { newtime.tv_sec = _TOD_To_seconds( time_buffer ); 471cc: 2f0a movel %a2,%sp@- <== NOT EXECUTED 471ce: 4eb9 0004 7270 jsr 47270 <_TOD_To_seconds> <== NOT EXECUTED newtime.tv_nsec = time_buffer->ticks * 471d4: 242a 0018 movel %a2@(24),%d2 <== NOT EXECUTED 471d8: 41f9 0005 f480 lea 5f480 ,%a0 <== NOT EXECUTED 471de: 4c10 2800 mulsl %a0@,%d2 <== NOT EXECUTED if ( !time_buffer ) return RTEMS_INVALID_ADDRESS; if ( _TOD_Validate( time_buffer ) ) { newtime.tv_sec = _TOD_To_seconds( time_buffer ); 471e2: 2d40 fff8 movel %d0,%fp@(-8) <== NOT EXECUTED newtime.tv_nsec = time_buffer->ticks * 471e6: 203c 0000 03e8 movel #1000,%d0 <== NOT EXECUTED 471ec: 4c02 0800 mulsl %d2,%d0 <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 471f0: 2239 0006 8a68 movel 68a68 <_Thread_Dispatch_disable_level>,%d1<== NOT EXECUTED 471f6: 5281 addql #1,%d1 <== NOT EXECUTED 471f8: 2d40 fffc movel %d0,%fp@(-4) <== NOT EXECUTED 471fc: 23c1 0006 8a68 movel %d1,68a68 <_Thread_Dispatch_disable_level><== NOT EXECUTED rtems_configuration_get_nanoseconds_per_tick(); _Thread_Disable_dispatch(); _TOD_Set( &newtime ); 47202: 486e fff8 pea %fp@(-8) <== NOT EXECUTED 47206: 4eb9 0004 8c9c jsr 48c9c <_TOD_Set> <== NOT EXECUTED _Thread_Enable_dispatch(); 4720c: 4eb9 0004 a33e jsr 4a33e <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; } return RTEMS_INVALID_CLOCK; } 47212: 242e fff0 movel %fp@(-16),%d2 <== NOT EXECUTED rtems_configuration_get_nanoseconds_per_tick(); _Thread_Disable_dispatch(); _TOD_Set( &newtime ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 47216: 508f addql #8,%sp <== NOT EXECUTED 47218: 4280 clrl %d0 <== NOT EXECUTED } return RTEMS_INVALID_CLOCK; } 4721a: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED 4721e: 4e5e unlk %fp <== NOT EXECUTED 47220: 4e75 rts <== NOT EXECUTED 47222: 242e fff0 movel %fp@(-16),%d2 <== NOT EXECUTED ) { struct timespec newtime; if ( !time_buffer ) return RTEMS_INVALID_ADDRESS; 47226: 7009 moveq #9,%d0 <== NOT EXECUTED _TOD_Set( &newtime ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } return RTEMS_INVALID_CLOCK; } 47228: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED 4722c: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00045d44 : * error code - if unsuccessful */ rtems_status_code rtems_clock_set_nanoseconds_extension( rtems_nanoseconds_extension_routine routine ) { 45d44: 4e56 0000 linkw %fp,#0 45d48: 202e 0008 movel %fp@(8),%d0 if ( !routine ) 45d4c: 670c beqs 45d5a <== NEVER TAKEN return RTEMS_INVALID_ADDRESS; _Watchdog_Nanoseconds_since_tick_handler = routine; 45d4e: 23c0 0005 ce04 movel %d0,5ce04 <_Watchdog_Nanoseconds_since_tick_handler> return RTEMS_SUCCESSFUL; 45d54: 4280 clrl %d0 } 45d56: 4e5e unlk %fp 45d58: 4e75 rts rtems_status_code rtems_clock_set_nanoseconds_extension( rtems_nanoseconds_extension_routine routine ) { if ( !routine ) return RTEMS_INVALID_ADDRESS; 45d5a: 7009 moveq #9,%d0 <== NOT EXECUTED _Watchdog_Nanoseconds_since_tick_handler = routine; return RTEMS_SUCCESSFUL; } 45d5c: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00045d60 : * * NOTE: This routine only works for leap-years through 2099. */ rtems_status_code rtems_clock_tick( void ) { 45d60: 4e56 0000 linkw %fp,#0 _TOD_Tickle_ticks(); 45d64: 4eb9 0004 7384 jsr 47384 <_TOD_Tickle_ticks> */ RTEMS_INLINE_ROUTINE void _Watchdog_Tickle_ticks( void ) { _Watchdog_Tickle( &_Watchdog_Ticks_chain ); 45d6a: 4879 0005 e5a8 pea 5e5a8 <_Watchdog_Ticks_chain> <== NOT EXECUTED 45d70: 4eb9 0004 99a0 jsr 499a0 <_Watchdog_Tickle> <== NOT EXECUTED _Watchdog_Tickle_ticks(); _Thread_Tickle_timeslice(); 45d76: 4eb9 0004 9404 jsr 49404 <_Thread_Tickle_timeslice> <== NOT EXECUTED if ( _Thread_Is_context_switch_necessary() && 45d7c: 588f addql #4,%sp <== NOT EXECUTED * otherwise. */ RTEMS_INLINE_ROUTINE bool _Thread_Is_context_switch_necessary( void ) { return ( _Thread_Dispatch_necessary ); 45d7e: 1039 0005 e690 moveb 5e690 <_Per_CPU_Information+0x18>,%d0 <== NOT EXECUTED 45d84: 6708 beqs 45d8e <== NOT EXECUTED * otherwise. */ RTEMS_INLINE_ROUTINE bool _Thread_Is_dispatching_enabled( void ) { return ( _Thread_Dispatch_disable_level == 0 ); 45d86: 2039 0005 e4c8 movel 5e4c8 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED 45d8c: 6706 beqs 45d94 <== NOT EXECUTED _Thread_Is_dispatching_enabled() ) _Thread_Dispatch(); return RTEMS_SUCCESSFUL; } 45d8e: 4280 clrl %d0 <== NOT EXECUTED 45d90: 4e5e unlk %fp <== NOT EXECUTED 45d92: 4e75 rts <== NOT EXECUTED _Thread_Tickle_timeslice(); if ( _Thread_Is_context_switch_necessary() && _Thread_Is_dispatching_enabled() ) _Thread_Dispatch(); 45d94: 4eb9 0004 8758 jsr 48758 <_Thread_Dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 45d9a: 4280 clrl %d0 <== NOT EXECUTED 45d9c: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 0004b86c : * rtems_debug_disable */ void rtems_debug_disable ( rtems_debug_control to_be_disabled ) { 4b86c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED _Debug_Level &= ~to_be_disabled; 4b870: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED 4b874: 4680 notl %d0 <== NOT EXECUTED } 4b876: 4e5e unlk %fp <== NOT EXECUTED */ void rtems_debug_disable ( rtems_debug_control to_be_disabled ) { _Debug_Level &= ~to_be_disabled; 4b878: c1b9 0005 e590 andl %d0,5e590 <_Debug_Level> <== NOT EXECUTED } =============================================================================== 0004b85a : * rtems_debug_enable */ void rtems_debug_enable ( rtems_debug_control to_be_enabled ) { 4b85a: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED _Debug_Level |= to_be_enabled; 4b85e: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED } 4b862: 4e5e unlk %fp <== NOT EXECUTED */ void rtems_debug_enable ( rtems_debug_control to_be_enabled ) { _Debug_Level |= to_be_enabled; 4b864: 81b9 0005 e590 orl %d0,5e590 <_Debug_Level> <== NOT EXECUTED } =============================================================================== 0004b880 : * rtems_debug_is_enabled */ bool rtems_debug_is_enabled( rtems_debug_control level ) { 4b880: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return (_Debug_Level & level) ? true : false; 4b884: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED } 4b888: 4e5e unlk %fp <== NOT EXECUTED */ bool rtems_debug_is_enabled( rtems_debug_control level ) { return (_Debug_Level & level) ? true : false; 4b88a: c0b9 0005 e590 andl 5e590 <_Debug_Level>,%d0 <== NOT EXECUTED 4b890: 56c0 sne %d0 <== NOT EXECUTED } 4b892: 4480 negl %d0 <== NOT EXECUTED ... =============================================================================== 00045da0 : rtems_event_set event_in, rtems_option option_set, rtems_interval ticks, rtems_event_set *event_out ) { 45da0: 4e56 0000 linkw %fp,#0 45da4: 202e 0008 movel %fp@(8),%d0 45da8: 206e 0014 moveal %fp@(20),%a0 RTEMS_API_Control *api; if ( !event_out ) 45dac: 4a88 tstl %a0 45dae: 674c beqs 45dfc <== NEVER TAKEN return RTEMS_INVALID_ADDRESS; api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ]; 45db0: 2279 0005 e684 moveal 5e684 <_Per_CPU_Information+0xc>,%a1 45db6: 2269 00fc moveal %a1@(252),%a1 if ( _Event_sets_Is_empty( event_in ) ) { 45dba: 4a80 tstl %d0 45dbc: 6606 bnes 45dc4 <== ALWAYS TAKEN *event_out = api->pending_events; 45dbe: 2091 movel %a1@,%a0@ <== NOT EXECUTED _Thread_Disable_dispatch(); _Event_Seize( event_in, option_set, ticks, event_out ); _Thread_Enable_dispatch(); return( _Thread_Executing->Wait.return_code ); } 45dc0: 4e5e unlk %fp <== NOT EXECUTED 45dc2: 4e75 rts <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 45dc4: 2239 0005 e4c8 movel 5e4c8 <_Thread_Dispatch_disable_level>,%d1 45dca: 5281 addql #1,%d1 45dcc: 23c1 0005 e4c8 movel %d1,5e4c8 <_Thread_Dispatch_disable_level> *event_out = api->pending_events; return RTEMS_SUCCESSFUL; } _Thread_Disable_dispatch(); _Event_Seize( event_in, option_set, ticks, event_out ); 45dd2: 2f08 movel %a0,%sp@- 45dd4: 2f2e 0010 movel %fp@(16),%sp@- 45dd8: 2f2e 000c movel %fp@(12),%sp@- 45ddc: 2f00 movel %d0,%sp@- 45dde: 4eb9 0004 5e04 jsr 45e04 <_Event_Seize> _Thread_Enable_dispatch(); 45de4: 4eb9 0004 88c2 jsr 488c2 <_Thread_Enable_dispatch> return( _Thread_Executing->Wait.return_code ); 45dea: 2079 0005 e684 moveal 5e684 <_Per_CPU_Information+0xc>,%a0 45df0: 4fef 0010 lea %sp@(16),%sp } 45df4: 4e5e unlk %fp } _Thread_Disable_dispatch(); _Event_Seize( event_in, option_set, ticks, event_out ); _Thread_Enable_dispatch(); return( _Thread_Executing->Wait.return_code ); 45df6: 2028 0034 movel %a0@(52),%d0 } 45dfa: 4e75 rts ) { RTEMS_API_Control *api; if ( !event_out ) return RTEMS_INVALID_ADDRESS; 45dfc: 7009 moveq #9,%d0 <== NOT EXECUTED _Thread_Disable_dispatch(); _Event_Seize( event_in, option_set, ticks, event_out ); _Thread_Enable_dispatch(); return( _Thread_Executing->Wait.return_code ); } 45dfe: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 00045f48 : rtems_status_code rtems_event_send( rtems_id id, rtems_event_set event_in ) { 45f48: 4e56 fffc linkw %fp,#-4 45f4c: 2f02 movel %d2,%sp@- register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; the_thread = _Thread_Get( id, &location ); 45f4e: 486e fffc pea %fp@(-4) 45f52: 2f2e 0008 movel %fp@(8),%sp@- 45f56: 4eb9 0004 88e8 jsr 488e8 <_Thread_Get> switch ( location ) { 45f5c: 508f addql #8,%sp 45f5e: 4aae fffc tstl %fp@(-4) 45f62: 6634 bnes 45f98 <== NEVER TAKEN case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; 45f64: 2240 moveal %d0,%a1 rtems_event_set *the_event_set ) { ISR_Level level; _ISR_Disable( level ); 45f66: 223c 0000 0700 movel #1792,%d1 45f6c: 2069 00fc moveal %a1@(252),%a0 45f70: 40c2 movew %sr,%d2 45f72: 8282 orl %d2,%d1 45f74: 46c1 movew %d1,%sr *the_event_set |= the_new_events; 45f76: 222e 000c movel %fp@(12),%d1 45f7a: 8390 orl %d1,%a0@ _ISR_Enable( level ); 45f7c: 46c2 movew %d2,%sr _Event_sets_Post( event_in, &api->pending_events ); _Event_Surrender( the_thread ); 45f7e: 2f00 movel %d0,%sp@- 45f80: 4eb9 0004 5fa4 jsr 45fa4 <_Event_Surrender> _Thread_Enable_dispatch(); 45f86: 4eb9 0004 88c2 jsr 488c2 <_Thread_Enable_dispatch> case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 45f8c: 242e fff8 movel %fp@(-8),%d2 case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; _Event_sets_Post( event_in, &api->pending_events ); _Event_Surrender( the_thread ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 45f90: 588f addql #4,%sp 45f92: 4280 clrl %d0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 45f94: 4e5e unlk %fp 45f96: 4e75 rts 45f98: 242e fff8 movel %fp@(-8),%d2 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 45f9c: 7004 moveq #4,%d0 <== NOT EXECUTED } 45f9e: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 0004836c : rtems_status_code rtems_extension_create( rtems_name name, const rtems_extensions_table *extension_table, rtems_id *id ) { 4836c: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 48370: 48d7 0c04 moveml %d2/%a2-%a3,%sp@ <== NOT EXECUTED 48374: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED 48378: 246e 0010 moveal %fp@(16),%a2 <== NOT EXECUTED Extension_Control *the_extension; if ( !id ) 4837c: 4a8a tstl %a2 <== NOT EXECUTED 4837e: 6700 00a0 beqw 48420 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !rtems_is_name_valid( name ) ) 48382: 4a82 tstl %d2 <== NOT EXECUTED 48384: 660c bnes 48392 <== NOT EXECUTED return RTEMS_INVALID_NAME; 48386: 7003 moveq #3,%d0 <== NOT EXECUTED ); *id = the_extension->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 48388: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3 <== NOT EXECUTED 4838e: 4e5e unlk %fp <== NOT EXECUTED 48390: 4e75 rts <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 48392: 2039 0006 8a68 movel 68a68 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED 48398: 5280 addql #1,%d0 <== NOT EXECUTED 4839a: 23c0 0006 8a68 movel %d0,68a68 <_Thread_Dispatch_disable_level><== NOT EXECUTED #ifndef __EXTENSION_MANAGER_inl #define __EXTENSION_MANAGER_inl RTEMS_INLINE_ROUTINE Extension_Control *_Extension_Allocate( void ) { return (Extension_Control *) _Objects_Allocate( &_Extension_Information ); 483a0: 4879 0006 8bec pea 68bec <_Extension_Information> <== NOT EXECUTED 483a6: 4eb9 0004 9280 jsr 49280 <_Objects_Allocate> <== NOT EXECUTED _Thread_Disable_dispatch(); /* to prevent deletion */ the_extension = _Extension_Allocate(); if ( !the_extension ) { 483ac: 588f addql #4,%sp <== NOT EXECUTED 483ae: 2640 moveal %d0,%a3 <== NOT EXECUTED 483b0: 4a80 tstl %d0 <== NOT EXECUTED 483b2: 675a beqs 4840e <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _User_extensions_Add_set_with_table( User_extensions_Control *extension, const User_extensions_Table *extension_table ) { extension->Callouts = *extension_table; 483b4: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED 483b8: 2758 0024 movel %a0@+,%a3@(36) <== NOT EXECUTED 483bc: 2758 0028 movel %a0@+,%a3@(40) <== NOT EXECUTED 483c0: 2758 002c movel %a0@+,%a3@(44) <== NOT EXECUTED 483c4: 2758 0030 movel %a0@+,%a3@(48) <== NOT EXECUTED 483c8: 2758 0034 movel %a0@+,%a3@(52) <== NOT EXECUTED 483cc: 2758 0038 movel %a0@+,%a3@(56) <== NOT EXECUTED 483d0: 2758 003c movel %a0@+,%a3@(60) <== NOT EXECUTED 483d4: 2750 0040 movel %a0@,%a3@(64) <== NOT EXECUTED _User_extensions_Add_set( extension ); 483d8: 486b 0010 pea %a3@(16) <== NOT EXECUTED 483dc: 4eb9 0004 b0a4 jsr 4b0a4 <_User_extensions_Add_set> <== NOT EXECUTED Objects_Name name ) { _Objects_Set_local_object( information, _Objects_Get_index( the_object->id ), 483e2: 202b 0008 movel %a3@(8),%d0 <== NOT EXECUTED Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( 483e6: 4281 clrl %d1 <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 483e8: 2079 0006 8c04 moveal 68c04 <_Extension_Information+0x18>,%a0<== NOT EXECUTED Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( 483ee: 3200 movew %d0,%d1 <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 483f0: 218b 1c00 movel %a3,%a0@(00000000,%d1:l:4) <== NOT EXECUTED information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 483f4: 2742 000c movel %d2,%a3@(12) <== NOT EXECUTED &_Extension_Information, &the_extension->Object, (Objects_Name) name ); *id = the_extension->Object.id; 483f8: 2480 movel %d0,%a2@ <== NOT EXECUTED _Thread_Enable_dispatch(); 483fa: 4eb9 0004 a33e jsr 4a33e <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; 48400: 588f addql #4,%sp <== NOT EXECUTED 48402: 4280 clrl %d0 <== NOT EXECUTED } 48404: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3 <== NOT EXECUTED 4840a: 4e5e unlk %fp <== NOT EXECUTED 4840c: 4e75 rts <== NOT EXECUTED _Thread_Disable_dispatch(); /* to prevent deletion */ the_extension = _Extension_Allocate(); if ( !the_extension ) { _Thread_Enable_dispatch(); 4840e: 4eb9 0004 a33e jsr 4a33e <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_TOO_MANY; 48414: 7005 moveq #5,%d0 <== NOT EXECUTED ); *id = the_extension->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 48416: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3 <== NOT EXECUTED 4841c: 4e5e unlk %fp <== NOT EXECUTED 4841e: 4e75 rts <== NOT EXECUTED ) { Extension_Control *the_extension; if ( !id ) return RTEMS_INVALID_ADDRESS; 48420: 7009 moveq #9,%d0 <== NOT EXECUTED ); *id = the_extension->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 48422: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3 <== NOT EXECUTED 48428: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 000481fc : #include rtems_status_code rtems_extension_delete( rtems_id id ) { 481fc: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 48200: 2f0a movel %a2,%sp@- <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Extension_Control *) _Objects_Get( &_Extension_Information, id, location ); 48202: 486e fffc pea %fp@(-4) <== NOT EXECUTED 48206: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4820a: 4879 0006 852c pea 6852c <_Extension_Information> <== NOT EXECUTED 48210: 4eb9 0004 94bc jsr 494bc <_Objects_Get> <== NOT EXECUTED Extension_Control *the_extension; Objects_Locations location; the_extension = _Extension_Get( id, &location ); switch ( location ) { 48216: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4821a: 2440 moveal %d0,%a2 <== NOT EXECUTED 4821c: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 48220: 663a bnes 4825c <== NOT EXECUTED case OBJECTS_LOCAL: _User_extensions_Remove_set( &the_extension->Extension ); 48222: 486a 0010 pea %a2@(16) <== NOT EXECUTED 48226: 4eb9 0004 ad54 jsr 4ad54 <_User_extensions_Remove_set> <== NOT EXECUTED _Objects_Close( &_Extension_Information, &the_extension->Object ); 4822c: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4822e: 4879 0006 852c pea 6852c <_Extension_Information> <== NOT EXECUTED 48234: 4eb9 0004 908c jsr 4908c <_Objects_Close> <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Extension_Free ( Extension_Control *the_extension ) { _Objects_Free( &_Extension_Information, &the_extension->Object ); 4823a: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4823c: 4879 0006 852c pea 6852c <_Extension_Information> <== NOT EXECUTED 48242: 4eb9 0004 9350 jsr 49350 <_Objects_Free> <== NOT EXECUTED _Extension_Free( the_extension ); _Thread_Enable_dispatch(); 48248: 4eb9 0004 9fca jsr 49fca <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4824e: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED case OBJECTS_LOCAL: _User_extensions_Remove_set( &the_extension->Extension ); _Objects_Close( &_Extension_Information, &the_extension->Object ); _Extension_Free( the_extension ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 48252: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED 48256: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 48258: 4e5e unlk %fp <== NOT EXECUTED 4825a: 4e75 rts <== NOT EXECUTED 4825c: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 48260: 7004 moveq #4,%d0 <== NOT EXECUTED } 48262: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 000492f8 : rtems_status_code rtems_extension_ident( rtems_name name, rtems_id *id ) { 492f8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( 492fc: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 49300: 2f3c 7fff ffff movel #2147483647,%sp@- <== NOT EXECUTED 49306: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4930a: 4879 0006 1dec pea 61dec <_Extension_Information> <== NOT EXECUTED 49310: 4eb9 0004 a66c jsr 4a66c <_Objects_Name_to_id_u32> <== NOT EXECUTED name, OBJECTS_SEARCH_LOCAL_NODE, id ); return _Status_Object_name_errors_to_status[ status ]; 49316: 41f9 0005 f49a lea 5f49a <_Status_Object_name_errors_to_status>,%a0<== NOT EXECUTED } 4931c: 4e5e unlk %fp <== NOT EXECUTED 4931e: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED =============================================================================== 00048b38 : #endif #include const char *rtems_get_version_string(void) { 48b38: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return _RTEMS_version; } 48b3c: 203c 0005 fb3e movel #391998,%d0 <== NOT EXECUTED 48b42: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 00046b1a : 46b1a: 7002 moveq #2,%d0 } void rtems_initialize_start_multitasking(void) { 46b1c: 4e56 0000 linkw %fp,#0 ****** APPLICATION RUNS HERE ****** ****** RETURNS WHEN SYSTEM IS SHUT DOWN ****** ******************************************************************* ******************************************************************* *******************************************************************/ } 46b20: 4e5e unlk %fp 46b22: 23c0 0005 e630 movel %d0,5e630 <_System_state_Current> void rtems_initialize_start_multitasking(void) { _System_state_Set( SYSTEM_STATE_BEGIN_MULTITASKING ); _Thread_Start_multitasking(); 46b28: 4ef9 0004 9308 jmp 49308 <_Thread_Start_multitasking> ... =============================================================================== 00046178 : rtems_status_code rtems_interrupt_catch( rtems_isr_entry new_isr_handler, rtems_vector_number vector, rtems_isr_entry *old_isr_handler ) { 46178: 4e56 0000 linkw %fp,#0 4617c: 222e 0008 movel %fp@(8),%d1 46180: 202e 000c movel %fp@(12),%d0 46184: 206e 0010 moveal %fp@(16),%a0 if ( !_ISR_Is_vector_number_valid( vector ) ) 46188: 0c80 0000 00ff cmpil #255,%d0 4618e: 621e bhis 461ae <== NEVER TAKEN return RTEMS_INVALID_NUMBER; if ( !_ISR_Is_valid_user_handler( (void *) new_isr_handler ) ) 46190: 4a81 tstl %d1 46192: 6720 beqs 461b4 <== NEVER TAKEN return RTEMS_INVALID_ADDRESS; if ( !_ISR_Is_valid_user_handler( (void *) old_isr_handler ) ) 46194: 4a88 tstl %a0 46196: 671c beqs 461b4 <== NEVER TAKEN return RTEMS_INVALID_ADDRESS; _ISR_Install_vector( 46198: 2f08 movel %a0,%sp@- 4619a: 2f01 movel %d1,%sp@- 4619c: 2f00 movel %d0,%sp@- 4619e: 4eb9 0004 9bda jsr 49bda <_CPU_ISR_install_vector> vector, (proc_ptr)new_isr_handler, (proc_ptr *)old_isr_handler ); return RTEMS_SUCCESSFUL; 461a4: 4fef 000c lea %sp@(12),%sp 461a8: 4280 clrl %d0 } 461aa: 4e5e unlk %fp 461ac: 4e75 rts rtems_vector_number vector, rtems_isr_entry *old_isr_handler ) { if ( !_ISR_Is_vector_number_valid( vector ) ) return RTEMS_INVALID_NUMBER; 461ae: 700a moveq #10,%d0 <== NOT EXECUTED _ISR_Install_vector( vector, (proc_ptr)new_isr_handler, (proc_ptr *)old_isr_handler ); return RTEMS_SUCCESSFUL; } 461b0: 4e5e unlk %fp <== NOT EXECUTED 461b2: 4e75 rts <== NOT EXECUTED if ( !_ISR_Is_valid_user_handler( (void *) new_isr_handler ) ) return RTEMS_INVALID_ADDRESS; if ( !_ISR_Is_valid_user_handler( (void *) old_isr_handler ) ) return RTEMS_INVALID_ADDRESS; 461b4: 7009 moveq #9,%d0 <== NOT EXECUTED _ISR_Install_vector( vector, (proc_ptr)new_isr_handler, (proc_ptr *)old_isr_handler ); return RTEMS_SUCCESSFUL; } 461b6: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 000471c0 : rtems_interrupt_level rtems_interrupt_disable( void ) { rtems_interrupt_level previous_level; _ISR_Disable( previous_level ); 471c0: 223c 0000 0700 movel #1792,%d1 <== NOT EXECUTED */ #undef rtems_interrupt_disable rtems_interrupt_level rtems_interrupt_disable( void ) { 471c6: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED rtems_interrupt_level previous_level; _ISR_Disable( previous_level ); 471ca: 40c0 movew %sr,%d0 <== NOT EXECUTED 471cc: 8280 orl %d0,%d1 <== NOT EXECUTED 471ce: 46c1 movew %d1,%sr <== NOT EXECUTED return previous_level; } 471d0: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 000471d4 : #undef rtems_interrupt_enable void rtems_interrupt_enable( rtems_interrupt_level previous_level ) { 471d4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED _ISR_Enable( previous_level ); 471d8: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED 471dc: 46c0 movew %d0,%sr <== NOT EXECUTED } 471de: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 000471e2 : #undef rtems_interrupt_flash void rtems_interrupt_flash( rtems_interrupt_level previous_level ) { 471e2: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED _ISR_Flash( previous_level ); 471e6: 222e 0008 movel %fp@(8),%d1 <== NOT EXECUTED 471ea: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED 471f0: 46c1 movew %d1,%sr <== NOT EXECUTED 471f2: 8081 orl %d1,%d0 <== NOT EXECUTED 471f4: 46c0 movew %d0,%sr <== NOT EXECUTED } 471f6: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 000471fa : */ #undef rtems_interrupt_is_in_progress bool rtems_interrupt_is_in_progress( void ) { 471fa: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return _ISR_Is_in_progress(); 471fe: 4ab9 0005 fdb0 tstl 5fdb0 <_Per_CPU_Information+0x8> <== NOT EXECUTED 47204: 56c0 sne %d0 <== NOT EXECUTED } 47206: 4e5e unlk %fp <== NOT EXECUTED 47208: 4480 negl %d0 <== NOT EXECUTED =============================================================================== 00046b2c : rtems_attribute rtems_interrupt_level_attribute( uint32_t level ) { return RTEMS_INTERRUPT_LEVEL(level); } 46b2c: 7007 moveq #7,%d0 <== NOT EXECUTED uint32_t rtems_interrupt_mask = RTEMS_INTERRUPT_MASK; rtems_attribute rtems_interrupt_level_attribute( uint32_t level ) { 46b2e: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return RTEMS_INTERRUPT_LEVEL(level); } 46b32: c0ae 0008 andl %fp@(8),%d0 <== NOT EXECUTED 46b36: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 0004d52c : rtems_status_code rtems_io_close( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { 4d52c: 4e56 0000 linkw %fp,#0 4d530: 202e 0008 movel %fp@(8),%d0 4d534: 2f03 movel %d3,%sp@- 4d536: 2f02 movel %d2,%sp@- rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) 4d538: b0b9 0005 e6f4 cmpl 5e6f4 <_IO_Number_of_drivers>,%d0 4d53e: 6420 bccs 4d560 <== NEVER TAKEN return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].close_entry; 4d540: 2600 movel %d0,%d3 4d542: 2400 movel %d0,%d2 4d544: e78b lsll #3,%d3 4d546: eb8a lsll #5,%d2 4d548: 2279 0005 e6f8 moveal 5e6f8 <_IO_Driver_address_table>,%a1 4d54e: 9483 subl %d3,%d2 4d550: 2271 2808 moveal %a1@(00000008,%d2:l),%a1 return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; 4d554: 4a89 tstl %a1 4d556: 6712 beqs 4d56a <== NEVER TAKEN } 4d558: 241f movel %sp@+,%d2 4d55a: 261f movel %sp@+,%d3 4d55c: 4e5e unlk %fp if ( major >= _IO_Number_of_drivers ) return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].close_entry; return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; 4d55e: 4ed1 jmp %a1@ } 4d560: 241f movel %sp@+,%d2 <== NOT EXECUTED ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) return RTEMS_INVALID_NUMBER; 4d562: 700a moveq #10,%d0 <== NOT EXECUTED callout = _IO_Driver_address_table[major].close_entry; return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; } 4d564: 261f movel %sp@+,%d3 <== NOT EXECUTED 4d566: 4e5e unlk %fp <== NOT EXECUTED 4d568: 4e75 rts <== NOT EXECUTED 4d56a: 241f movel %sp@+,%d2 <== NOT EXECUTED if ( major >= _IO_Number_of_drivers ) return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].close_entry; return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; 4d56c: 4280 clrl %d0 <== NOT EXECUTED } 4d56e: 261f movel %sp@+,%d3 <== NOT EXECUTED 4d570: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 0004d574 : rtems_status_code rtems_io_control( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { 4d574: 4e56 0000 linkw %fp,#0 4d578: 202e 0008 movel %fp@(8),%d0 4d57c: 2f03 movel %d3,%sp@- 4d57e: 2f02 movel %d2,%sp@- rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) 4d580: b0b9 0005 e6f4 cmpl 5e6f4 <_IO_Number_of_drivers>,%d0 4d586: 6420 bccs 4d5a8 <== NEVER TAKEN return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].control_entry; 4d588: 2600 movel %d0,%d3 4d58a: 2400 movel %d0,%d2 4d58c: e78b lsll #3,%d3 4d58e: eb8a lsll #5,%d2 4d590: 2279 0005 e6f8 moveal 5e6f8 <_IO_Driver_address_table>,%a1 4d596: 9483 subl %d3,%d2 4d598: 2271 2814 moveal %a1@(00000014,%d2:l),%a1 return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; 4d59c: 4a89 tstl %a1 4d59e: 6712 beqs 4d5b2 <== NEVER TAKEN } 4d5a0: 241f movel %sp@+,%d2 4d5a2: 261f movel %sp@+,%d3 4d5a4: 4e5e unlk %fp if ( major >= _IO_Number_of_drivers ) return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].control_entry; return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; 4d5a6: 4ed1 jmp %a1@ } 4d5a8: 241f movel %sp@+,%d2 <== NOT EXECUTED ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) return RTEMS_INVALID_NUMBER; 4d5aa: 700a moveq #10,%d0 <== NOT EXECUTED callout = _IO_Driver_address_table[major].control_entry; return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; } 4d5ac: 261f movel %sp@+,%d3 <== NOT EXECUTED 4d5ae: 4e5e unlk %fp <== NOT EXECUTED 4d5b0: 4e75 rts <== NOT EXECUTED 4d5b2: 241f movel %sp@+,%d2 <== NOT EXECUTED if ( major >= _IO_Number_of_drivers ) return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].control_entry; return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; 4d5b4: 4280 clrl %d0 <== NOT EXECUTED } 4d5b6: 261f movel %sp@+,%d3 <== NOT EXECUTED 4d5b8: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 0004b898 : rtems_status_code rtems_io_initialize( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { 4b898: 4e56 0000 linkw %fp,#0 4b89c: 202e 0008 movel %fp@(8),%d0 4b8a0: 2f03 movel %d3,%sp@- 4b8a2: 2f02 movel %d2,%sp@- rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) 4b8a4: b0b9 0005 e6f4 cmpl 5e6f4 <_IO_Number_of_drivers>,%d0 4b8aa: 6420 bccs 4b8cc <== NEVER TAKEN return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].initialization_entry; 4b8ac: 2600 movel %d0,%d3 4b8ae: 2400 movel %d0,%d2 4b8b0: e78b lsll #3,%d3 4b8b2: 2279 0005 e6f8 moveal 5e6f8 <_IO_Driver_address_table>,%a1 4b8b8: 93c3 subal %d3,%a1 4b8ba: eb8a lsll #5,%d2 4b8bc: 2271 2800 moveal %a1@(00000000,%d2:l),%a1 return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; 4b8c0: 4a89 tstl %a1 4b8c2: 6712 beqs 4b8d6 } 4b8c4: 241f movel %sp@+,%d2 4b8c6: 261f movel %sp@+,%d3 4b8c8: 4e5e unlk %fp if ( major >= _IO_Number_of_drivers ) return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].initialization_entry; return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; 4b8ca: 4ed1 jmp %a1@ } 4b8cc: 241f movel %sp@+,%d2 <== NOT EXECUTED ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) return RTEMS_INVALID_NUMBER; 4b8ce: 700a moveq #10,%d0 <== NOT EXECUTED callout = _IO_Driver_address_table[major].initialization_entry; return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; } 4b8d0: 261f movel %sp@+,%d3 <== NOT EXECUTED 4b8d2: 4e5e unlk %fp <== NOT EXECUTED 4b8d4: 4e75 rts <== NOT EXECUTED 4b8d6: 241f movel %sp@+,%d2 if ( major >= _IO_Number_of_drivers ) return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].initialization_entry; return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; 4b8d8: 4280 clrl %d0 } 4b8da: 261f movel %sp@+,%d3 4b8dc: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 0004d5bc : rtems_status_code rtems_io_open( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { 4d5bc: 4e56 0000 linkw %fp,#0 4d5c0: 202e 0008 movel %fp@(8),%d0 4d5c4: 2f03 movel %d3,%sp@- 4d5c6: 2f02 movel %d2,%sp@- rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) 4d5c8: b0b9 0005 e6f4 cmpl 5e6f4 <_IO_Number_of_drivers>,%d0 4d5ce: 6420 bccs 4d5f0 <== NEVER TAKEN return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].open_entry; 4d5d0: 2600 movel %d0,%d3 4d5d2: 2400 movel %d0,%d2 4d5d4: e78b lsll #3,%d3 4d5d6: eb8a lsll #5,%d2 4d5d8: 2279 0005 e6f8 moveal 5e6f8 <_IO_Driver_address_table>,%a1 4d5de: 9483 subl %d3,%d2 4d5e0: 2271 2804 moveal %a1@(00000004,%d2:l),%a1 return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; 4d5e4: 4a89 tstl %a1 4d5e6: 6712 beqs 4d5fa <== NEVER TAKEN } 4d5e8: 241f movel %sp@+,%d2 4d5ea: 261f movel %sp@+,%d3 4d5ec: 4e5e unlk %fp if ( major >= _IO_Number_of_drivers ) return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].open_entry; return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; 4d5ee: 4ed1 jmp %a1@ } 4d5f0: 241f movel %sp@+,%d2 <== NOT EXECUTED ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) return RTEMS_INVALID_NUMBER; 4d5f2: 700a moveq #10,%d0 <== NOT EXECUTED callout = _IO_Driver_address_table[major].open_entry; return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; } 4d5f4: 261f movel %sp@+,%d3 <== NOT EXECUTED 4d5f6: 4e5e unlk %fp <== NOT EXECUTED 4d5f8: 4e75 rts <== NOT EXECUTED 4d5fa: 241f movel %sp@+,%d2 <== NOT EXECUTED if ( major >= _IO_Number_of_drivers ) return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].open_entry; return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; 4d5fc: 4280 clrl %d0 <== NOT EXECUTED } 4d5fe: 261f movel %sp@+,%d3 <== NOT EXECUTED 4d600: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 0004d604 : rtems_status_code rtems_io_read( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { 4d604: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4d608: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED 4d60c: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4d60e: 2f02 movel %d2,%sp@- <== NOT EXECUTED rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) 4d610: b0b9 0005 e6f4 cmpl 5e6f4 <_IO_Number_of_drivers>,%d0 <== NOT EXECUTED 4d616: 6420 bccs 4d638 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].read_entry; 4d618: 2600 movel %d0,%d3 <== NOT EXECUTED 4d61a: 2400 movel %d0,%d2 <== NOT EXECUTED 4d61c: e78b lsll #3,%d3 <== NOT EXECUTED 4d61e: eb8a lsll #5,%d2 <== NOT EXECUTED 4d620: 2279 0005 e6f8 moveal 5e6f8 <_IO_Driver_address_table>,%a1 <== NOT EXECUTED 4d626: 9483 subl %d3,%d2 <== NOT EXECUTED 4d628: 2271 280c moveal %a1@(0000000c,%d2:l),%a1 <== NOT EXECUTED return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; 4d62c: 4a89 tstl %a1 <== NOT EXECUTED 4d62e: 6712 beqs 4d642 <== NOT EXECUTED } 4d630: 241f movel %sp@+,%d2 <== NOT EXECUTED 4d632: 261f movel %sp@+,%d3 <== NOT EXECUTED 4d634: 4e5e unlk %fp <== NOT EXECUTED if ( major >= _IO_Number_of_drivers ) return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].read_entry; return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; 4d636: 4ed1 jmp %a1@ <== NOT EXECUTED } 4d638: 241f movel %sp@+,%d2 <== NOT EXECUTED ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) return RTEMS_INVALID_NUMBER; 4d63a: 700a moveq #10,%d0 <== NOT EXECUTED callout = _IO_Driver_address_table[major].read_entry; return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; } 4d63c: 261f movel %sp@+,%d3 <== NOT EXECUTED 4d63e: 4e5e unlk %fp <== NOT EXECUTED 4d640: 4e75 rts <== NOT EXECUTED 4d642: 241f movel %sp@+,%d2 <== NOT EXECUTED if ( major >= _IO_Number_of_drivers ) return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].read_entry; return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; 4d644: 4280 clrl %d0 <== NOT EXECUTED } 4d646: 261f movel %sp@+,%d3 <== NOT EXECUTED 4d648: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 0004807c : rtems_status_code rtems_io_register_driver( rtems_device_major_number major, const rtems_driver_address_table *driver_table, rtems_device_major_number *registered_major ) { 4807c: 4e56 fff4 linkw %fp,#-12 48080: 226e 000c moveal %fp@(12),%a1 48084: 48d7 040c moveml %d2-%d3/%a2,%sp@ 48088: 242e 0008 movel %fp@(8),%d2 4808c: 246e 0010 moveal %fp@(16),%a2 rtems_device_major_number major_limit = _IO_Number_of_drivers; 48090: 2039 0006 293c movel 6293c <_IO_Number_of_drivers>,%d0 if ( rtems_interrupt_is_in_progress() ) 48096: 4ab9 0006 28c8 tstl 628c8 <_Per_CPU_Information+0x8> 4809c: 6600 009c bnew 4813a return RTEMS_CALLED_FROM_ISR; if ( registered_major == NULL ) 480a0: 4a8a tstl %a2 480a2: 6700 00ea beqw 4818e return RTEMS_INVALID_ADDRESS; /* Set it to an invalid value */ *registered_major = major_limit; 480a6: 2480 movel %d0,%a2@ if ( driver_table == NULL ) 480a8: 4a89 tstl %a1 480aa: 6700 00e2 beqw 4818e static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; 480ae: 4a91 tstl %a1@ 480b0: 6700 00d4 beqw 48186 return RTEMS_INVALID_ADDRESS; if ( rtems_io_is_empty_table( driver_table ) ) return RTEMS_INVALID_ADDRESS; if ( major >= major_limit ) 480b4: b480 cmpl %d0,%d2 480b6: 6476 bccs 4812e <== NEVER TAKEN rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 480b8: 2039 0006 2710 movel 62710 <_Thread_Dispatch_disable_level>,%d0 480be: 5280 addql #1,%d0 480c0: 23c0 0006 2710 movel %d0,62710 <_Thread_Dispatch_disable_level> return RTEMS_INVALID_NUMBER; _Thread_Disable_dispatch(); if ( major == 0 ) { 480c6: 4a82 tstl %d2 480c8: 667c bnes 48146 <== NEVER TAKEN static rtems_status_code rtems_io_obtain_major_number( rtems_device_major_number *major ) { rtems_device_major_number n = _IO_Number_of_drivers; 480ca: 2039 0006 293c movel 6293c <_IO_Number_of_drivers>,%d0 rtems_device_major_number m = 0; /* major is error checked by caller */ for ( m = 0; m < n; ++m ) { 480d0: 6700 0106 beqw 481d8 480d4: 2239 0006 2940 movel 62940 <_IO_Driver_address_table>,%d1 480da: 2041 moveal %d1,%a0 static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; 480dc: 4a90 tstl %a0@ 480de: 6700 008e beqw 4816e rtems_device_major_number n = _IO_Number_of_drivers; rtems_device_major_number m = 0; /* major is error checked by caller */ for ( m = 0; m < n; ++m ) { 480e2: 5282 addql #1,%d2 480e4: 41e8 0018 lea %a0@(24),%a0 480e8: b480 cmpl %d0,%d2 480ea: 65f0 bcss 480dc <== ALWAYS TAKEN if ( rtems_io_is_empty_table( table ) ) break; } /* Assigns invalid value in case of failure */ *major = m; 480ec: 2482 movel %d2,%a2@ if ( m != n ) 480ee: b480 cmpl %d0,%d2 480f0: 6700 00e8 beqw 481da 480f4: 2602 movel %d2,%d3 480f6: 2002 movel %d2,%d0 } *registered_major = major; } _IO_Driver_address_table [major] = *driver_table; 480f8: 2041 moveal %d1,%a0 } /* Assigns invalid value in case of failure */ *major = m; if ( m != n ) 480fa: e78b lsll #3,%d3 480fc: eb88 lsll #5,%d0 480fe: 9083 subl %d3,%d0 } *registered_major = major; } _IO_Driver_address_table [major] = *driver_table; 48100: d1c0 addal %d0,%a0 48102: 20d9 movel %a1@+,%a0@+ 48104: 20d9 movel %a1@+,%a0@+ 48106: 20d9 movel %a1@+,%a0@+ 48108: 20d9 movel %a1@+,%a0@+ 4810a: 20d9 movel %a1@+,%a0@+ 4810c: 2091 movel %a1@,%a0@ _Thread_Enable_dispatch(); 4810e: 4eb9 0004 9e82 jsr 49e82 <_Thread_Enable_dispatch> return rtems_io_initialize( major, 0, NULL ); 48114: 2d42 0008 movel %d2,%fp@(8) } 48118: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 _IO_Driver_address_table [major] = *driver_table; _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL ); 4811e: 42ae 0010 clrl %fp@(16) 48122: 42ae 000c clrl %fp@(12) } 48126: 4e5e unlk %fp _IO_Driver_address_table [major] = *driver_table; _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL ); 48128: 4ef9 0004 fc48 jmp 4fc48 if ( rtems_io_is_empty_table( driver_table ) ) return RTEMS_INVALID_ADDRESS; if ( major >= major_limit ) return RTEMS_INVALID_NUMBER; 4812e: 700a moveq #10,%d0 <== NOT EXECUTED _IO_Driver_address_table [major] = *driver_table; _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL ); } 48130: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 48136: 4e5e unlk %fp <== NOT EXECUTED 48138: 4e75 rts <== NOT EXECUTED ) { rtems_device_major_number major_limit = _IO_Number_of_drivers; if ( rtems_interrupt_is_in_progress() ) return RTEMS_CALLED_FROM_ISR; 4813a: 7012 moveq #18,%d0 <== NOT EXECUTED _IO_Driver_address_table [major] = *driver_table; _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL ); } 4813c: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 48142: 4e5e unlk %fp <== NOT EXECUTED 48144: 4e75 rts <== NOT EXECUTED _Thread_Enable_dispatch(); return sc; } major = *registered_major; } else { rtems_driver_address_table *const table = _IO_Driver_address_table + major; 48146: 2202 movel %d2,%d1 <== NOT EXECUTED 48148: 2002 movel %d2,%d0 <== NOT EXECUTED 4814a: e789 lsll #3,%d1 <== NOT EXECUTED 4814c: eb88 lsll #5,%d0 <== NOT EXECUTED 4814e: 2079 0006 2940 moveal 62940 <_IO_Driver_address_table>,%a0 <== NOT EXECUTED 48154: 9081 subl %d1,%d0 <== NOT EXECUTED 48156: d1c0 addal %d0,%a0 <== NOT EXECUTED static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; 48158: 4a90 tstl %a0@ <== NOT EXECUTED 4815a: 673e beqs 4819a <== NOT EXECUTED major = *registered_major; } else { rtems_driver_address_table *const table = _IO_Driver_address_table + major; if ( !rtems_io_is_empty_table( table ) ) { _Thread_Enable_dispatch(); 4815c: 4eb9 0004 9e82 jsr 49e82 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_RESOURCE_IN_USE; 48162: 700c moveq #12,%d0 <== NOT EXECUTED _IO_Driver_address_table [major] = *driver_table; _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL ); } 48164: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 4816a: 4e5e unlk %fp <== NOT EXECUTED 4816c: 4e75 rts <== NOT EXECUTED static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; 4816e: 4aa8 0004 tstl %a0@(4) 48172: 6700 ff78 beqw 480ec rtems_device_major_number n = _IO_Number_of_drivers; rtems_device_major_number m = 0; /* major is error checked by caller */ for ( m = 0; m < n; ++m ) { 48176: 5282 addql #1,%d2 48178: 41e8 0018 lea %a0@(24),%a0 4817c: b480 cmpl %d0,%d2 4817e: 6500 ff5c bcsw 480dc 48182: 6000 ff68 braw 480ec <== NOT EXECUTED static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; 48186: 4aa9 0004 tstl %a1@(4) 4818a: 6600 ff28 bnew 480b4 if ( driver_table == NULL ) return RTEMS_INVALID_ADDRESS; if ( rtems_io_is_empty_table( driver_table ) ) return RTEMS_INVALID_ADDRESS; 4818e: 7009 moveq #9,%d0 <== NOT EXECUTED _IO_Driver_address_table [major] = *driver_table; _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL ); } 48190: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 48196: 4e5e unlk %fp <== NOT EXECUTED 48198: 4e75 rts <== NOT EXECUTED static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; 4819a: 4aa8 0004 tstl %a0@(4) <== NOT EXECUTED 4819e: 66bc bnes 4815c <== NOT EXECUTED 481a0: 2239 0006 2940 movel 62940 <_IO_Driver_address_table>,%d1 <== NOT EXECUTED } *registered_major = major; } _IO_Driver_address_table [major] = *driver_table; 481a6: 2041 moveal %d1,%a0 <== NOT EXECUTED 481a8: d1c0 addal %d0,%a0 <== NOT EXECUTED if ( !rtems_io_is_empty_table( table ) ) { _Thread_Enable_dispatch(); return RTEMS_RESOURCE_IN_USE; } *registered_major = major; 481aa: 2482 movel %d2,%a2@ <== NOT EXECUTED } _IO_Driver_address_table [major] = *driver_table; 481ac: 20d9 movel %a1@+,%a0@+ <== NOT EXECUTED 481ae: 20d9 movel %a1@+,%a0@+ <== NOT EXECUTED 481b0: 20d9 movel %a1@+,%a0@+ <== NOT EXECUTED 481b2: 20d9 movel %a1@+,%a0@+ <== NOT EXECUTED 481b4: 20d9 movel %a1@+,%a0@+ <== NOT EXECUTED 481b6: 2091 movel %a1@,%a0@ <== NOT EXECUTED _Thread_Enable_dispatch(); 481b8: 4eb9 0004 9e82 jsr 49e82 <_Thread_Enable_dispatch> <== NOT EXECUTED return rtems_io_initialize( major, 0, NULL ); 481be: 2d42 0008 movel %d2,%fp@(8) <== NOT EXECUTED } 481c2: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED _IO_Driver_address_table [major] = *driver_table; _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL ); 481c8: 42ae 0010 clrl %fp@(16) <== NOT EXECUTED 481cc: 42ae 000c clrl %fp@(12) <== NOT EXECUTED } 481d0: 4e5e unlk %fp <== NOT EXECUTED _IO_Driver_address_table [major] = *driver_table; _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL ); 481d2: 4ef9 0004 fc48 jmp 4fc48 <== NOT EXECUTED if ( rtems_io_is_empty_table( table ) ) break; } /* Assigns invalid value in case of failure */ *major = m; 481d8: 4292 clrl %a2@ <== NOT EXECUTED if ( major == 0 ) { rtems_status_code sc = rtems_io_obtain_major_number( registered_major ); if ( sc != RTEMS_SUCCESSFUL ) { _Thread_Enable_dispatch(); 481da: 4eb9 0004 9e82 jsr 49e82 <_Thread_Enable_dispatch> <== NOT EXECUTED *major = m; if ( m != n ) return RTEMS_SUCCESSFUL; return RTEMS_TOO_MANY; 481e0: 7005 moveq #5,%d0 <== NOT EXECUTED _IO_Driver_address_table [major] = *driver_table; _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL ); } 481e2: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 481e8: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 000481ec : */ rtems_status_code rtems_io_unregister_driver( rtems_device_major_number major ) { 481ec: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 481f0: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED if ( rtems_interrupt_is_in_progress() ) 481f4: 4ab9 0006 28c8 tstl 628c8 <_Per_CPU_Information+0x8> <== NOT EXECUTED 481fa: 6644 bnes 48240 <== NOT EXECUTED return RTEMS_CALLED_FROM_ISR; if ( major < _IO_Number_of_drivers ) { 481fc: b0b9 0006 293c cmpl 6293c <_IO_Number_of_drivers>,%d0 <== NOT EXECUTED 48202: 6506 bcss 4820a <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } return RTEMS_UNSATISFIED; 48204: 700d moveq #13,%d0 <== NOT EXECUTED } 48206: 4e5e unlk %fp <== NOT EXECUTED 48208: 4e75 rts <== NOT EXECUTED 4820a: 2239 0006 2710 movel 62710 <_Thread_Dispatch_disable_level>,%d1<== NOT EXECUTED 48210: 5281 addql #1,%d1 <== NOT EXECUTED 48212: 23c1 0006 2710 movel %d1,62710 <_Thread_Dispatch_disable_level><== NOT EXECUTED return RTEMS_CALLED_FROM_ISR; if ( major < _IO_Number_of_drivers ) { _Thread_Disable_dispatch(); memset( &_IO_Driver_address_table[major], 48218: 2200 movel %d0,%d1 <== NOT EXECUTED 4821a: eb88 lsll #5,%d0 <== NOT EXECUTED 4821c: e789 lsll #3,%d1 <== NOT EXECUTED if ( rtems_interrupt_is_in_progress() ) return RTEMS_CALLED_FROM_ISR; if ( major < _IO_Number_of_drivers ) { _Thread_Disable_dispatch(); memset( 4821e: 2079 0006 2940 moveal 62940 <_IO_Driver_address_table>,%a0 <== NOT EXECUTED &_IO_Driver_address_table[major], 48224: 9081 subl %d1,%d0 <== NOT EXECUTED if ( rtems_interrupt_is_in_progress() ) return RTEMS_CALLED_FROM_ISR; if ( major < _IO_Number_of_drivers ) { _Thread_Disable_dispatch(); memset( 48226: d1c0 addal %d0,%a0 <== NOT EXECUTED 48228: 4298 clrl %a0@+ <== NOT EXECUTED 4822a: 4298 clrl %a0@+ <== NOT EXECUTED 4822c: 4298 clrl %a0@+ <== NOT EXECUTED 4822e: 4298 clrl %a0@+ <== NOT EXECUTED 48230: 4298 clrl %a0@+ <== NOT EXECUTED 48232: 4290 clrl %a0@ <== NOT EXECUTED &_IO_Driver_address_table[major], 0, sizeof( rtems_driver_address_table ) ); _Thread_Enable_dispatch(); 48234: 4eb9 0004 9e82 jsr 49e82 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; 4823a: 4280 clrl %d0 <== NOT EXECUTED } return RTEMS_UNSATISFIED; } 4823c: 4e5e unlk %fp <== NOT EXECUTED 4823e: 4e75 rts <== NOT EXECUTED rtems_status_code rtems_io_unregister_driver( rtems_device_major_number major ) { if ( rtems_interrupt_is_in_progress() ) return RTEMS_CALLED_FROM_ISR; 48240: 7012 moveq #18,%d0 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } return RTEMS_UNSATISFIED; } 48242: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 0004d64c : rtems_status_code rtems_io_write( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { 4d64c: 4e56 0000 linkw %fp,#0 4d650: 202e 0008 movel %fp@(8),%d0 4d654: 2f03 movel %d3,%sp@- 4d656: 2f02 movel %d2,%sp@- rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) 4d658: b0b9 0005 e6f4 cmpl 5e6f4 <_IO_Number_of_drivers>,%d0 4d65e: 6420 bccs 4d680 <== NEVER TAKEN return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].write_entry; 4d660: 2600 movel %d0,%d3 4d662: 2400 movel %d0,%d2 4d664: e78b lsll #3,%d3 4d666: eb8a lsll #5,%d2 4d668: 2279 0005 e6f8 moveal 5e6f8 <_IO_Driver_address_table>,%a1 4d66e: 9483 subl %d3,%d2 4d670: 2271 2810 moveal %a1@(00000010,%d2:l),%a1 return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; 4d674: 4a89 tstl %a1 4d676: 6712 beqs 4d68a <== NEVER TAKEN } 4d678: 241f movel %sp@+,%d2 4d67a: 261f movel %sp@+,%d3 4d67c: 4e5e unlk %fp if ( major >= _IO_Number_of_drivers ) return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].write_entry; return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; 4d67e: 4ed1 jmp %a1@ } 4d680: 241f movel %sp@+,%d2 <== NOT EXECUTED ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) return RTEMS_INVALID_NUMBER; 4d682: 700a moveq #10,%d0 <== NOT EXECUTED callout = _IO_Driver_address_table[major].write_entry; return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; } 4d684: 261f movel %sp@+,%d3 <== NOT EXECUTED 4d686: 4e5e unlk %fp <== NOT EXECUTED 4d688: 4e75 rts <== NOT EXECUTED 4d68a: 241f movel %sp@+,%d2 <== NOT EXECUTED if ( major >= _IO_Number_of_drivers ) return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].write_entry; return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; 4d68c: 4280 clrl %d0 <== NOT EXECUTED } 4d68e: 261f movel %sp@+,%d3 <== NOT EXECUTED 4d690: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00049224 : #include #include void rtems_iterate_over_all_threads(rtems_per_thread_routine routine) { 49224: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 49228: 48d7 1c04 moveml %d2/%a2-%a4,%sp@ <== NOT EXECUTED 4922c: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED uint32_t i; uint32_t api_index; Thread_Control *the_thread; Objects_Information *information; if ( !routine ) 49230: 4a8b tstl %a3 <== NOT EXECUTED 49232: 6742 beqs 49276 <== NOT EXECUTED 49234: 49f9 0006 8a28 lea 68a28 <_Objects_Information_table+0x4>,%a4<== NOT EXECUTED return; for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) { #if !defined(RTEMS_POSIX_API) || defined(RTEMS_DEBUG) if ( !_Objects_Information_table[ api_index ] ) 4923a: 205c moveal %a4@+,%a0 <== NOT EXECUTED 4923c: 4a88 tstl %a0 <== NOT EXECUTED 4923e: 672e beqs 4926e <== NOT EXECUTED continue; #endif information = _Objects_Information_table[ api_index ][ 1 ]; 49240: 2468 0004 moveal %a0@(4),%a2 <== NOT EXECUTED if ( !information ) 49244: 4a8a tstl %a2 <== NOT EXECUTED 49246: 6726 beqs 4926e <== NOT EXECUTED continue; for ( i=1 ; i <= information->maximum ; i++ ) { 49248: 4a6a 000e tstw %a2@(14) <== NOT EXECUTED 4924c: 6720 beqs 4926e <== NOT EXECUTED 4924e: 7401 moveq #1,%d2 <== NOT EXECUTED the_thread = (Thread_Control *)information->local_table[ i ]; 49250: 206a 0018 moveal %a2@(24),%a0 <== NOT EXECUTED 49254: 2030 2c00 movel %a0@(00000000,%d2:l:4),%d0 <== NOT EXECUTED information = _Objects_Information_table[ api_index ][ 1 ]; if ( !information ) continue; for ( i=1 ; i <= information->maximum ; i++ ) { 49258: 5282 addql #1,%d2 <== NOT EXECUTED the_thread = (Thread_Control *)information->local_table[ i ]; if ( !the_thread ) 4925a: 4a80 tstl %d0 <== NOT EXECUTED 4925c: 6706 beqs 49264 <== NOT EXECUTED continue; (*routine)(the_thread); 4925e: 2f00 movel %d0,%sp@- <== NOT EXECUTED 49260: 4e93 jsr %a3@ <== NOT EXECUTED 49262: 588f addql #4,%sp <== NOT EXECUTED information = _Objects_Information_table[ api_index ][ 1 ]; if ( !information ) continue; for ( i=1 ; i <= information->maximum ; i++ ) { 49264: 4280 clrl %d0 <== NOT EXECUTED 49266: 302a 000e movew %a2@(14),%d0 <== NOT EXECUTED 4926a: b480 cmpl %d0,%d2 <== NOT EXECUTED 4926c: 63e2 blss 49250 <== NOT EXECUTED Objects_Information *information; if ( !routine ) return; for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) { 4926e: b9fc 0006 8a34 cmpal #428596,%a4 <== NOT EXECUTED 49274: 66c4 bnes 4923a <== NOT EXECUTED (*routine)(the_thread); } } } 49276: 4cee 1c04 fff0 moveml %fp@(-16),%d2/%a2-%a4 <== NOT EXECUTED 4927c: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 000562bc : rtems_id id, const void *buffer, size_t size, uint32_t *count ) { 562bc: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 562c0: 48d7 001c moveml %d2-%d4,%sp@ <== NOT EXECUTED 562c4: 282e 0008 movel %fp@(8),%d4 <== NOT EXECUTED 562c8: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED 562cc: 262e 0014 movel %fp@(20),%d3 <== NOT EXECUTED register Message_queue_Control *the_message_queue; Objects_Locations location; CORE_message_queue_Status core_status; if ( !buffer ) 562d0: 4a82 tstl %d2 <== NOT EXECUTED 562d2: 6762 beqs 56336 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !count ) 562d4: 4a83 tstl %d3 <== NOT EXECUTED 562d6: 675e beqs 56336 <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Message_queue_Control *) _Objects_Get( &_Message_queue_Information, id, location ); 562d8: 486e fffc pea %fp@(-4) <== NOT EXECUTED 562dc: 2f04 movel %d4,%sp@- <== NOT EXECUTED 562de: 4879 0007 d3c0 pea 7d3c0 <_Message_queue_Information> <== NOT EXECUTED 562e4: 4eb9 0005 b7bc jsr 5b7bc <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { 562ea: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 562ee: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 562f2: 6636 bnes 5632a <== NOT EXECUTED case OBJECTS_LOCAL: core_status = _CORE_message_queue_Broadcast( 562f4: 2f03 movel %d3,%sp@- <== NOT EXECUTED 562f6: 2040 moveal %d0,%a0 <== NOT EXECUTED 562f8: 42a7 clrl %sp@- <== NOT EXECUTED 562fa: 2f04 movel %d4,%sp@- <== NOT EXECUTED 562fc: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 56300: 2f02 movel %d2,%sp@- <== NOT EXECUTED 56302: 4868 0014 pea %a0@(20) <== NOT EXECUTED 56306: 4eb9 0005 9ce4 jsr 59ce4 <_CORE_message_queue_Broadcast> <== NOT EXECUTED 5630c: 2400 movel %d0,%d2 <== NOT EXECUTED NULL, #endif count ); _Thread_Enable_dispatch(); 5630e: 4eb9 0005 c34a jsr 5c34a <_Thread_Enable_dispatch> <== NOT EXECUTED return 56314: 2f02 movel %d2,%sp@- <== NOT EXECUTED 56316: 4eb9 0005 66c0 jsr 566c0 <_Message_queue_Translate_core_message_queue_return_code><== NOT EXECUTED 5631c: 4fef 001c lea %sp@(28),%sp <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 56320: 4cee 001c fff0 moveml %fp@(-16),%d2-%d4 <== NOT EXECUTED 56326: 4e5e unlk %fp <== NOT EXECUTED 56328: 4e75 rts <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 5632a: 7004 moveq #4,%d0 <== NOT EXECUTED } 5632c: 4cee 001c fff0 moveml %fp@(-16),%d2-%d4 <== NOT EXECUTED 56332: 4e5e unlk %fp <== NOT EXECUTED 56334: 4e75 rts <== NOT EXECUTED if ( !buffer ) return RTEMS_INVALID_ADDRESS; if ( !count ) return RTEMS_INVALID_ADDRESS; 56336: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 56338: 4cee 001c fff0 moveml %fp@(-16),%d2-%d4 <== NOT EXECUTED 5633e: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 0004ed40 : uint32_t count, size_t max_message_size, rtems_attribute attribute_set, rtems_id *id ) { 4ed40: 4e56 ffe8 linkw %fp,#-24 <== NOT EXECUTED 4ed44: 48d7 0c1c moveml %d2-%d4/%a2-%a3,%sp@ <== NOT EXECUTED 4ed48: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED 4ed4c: 262e 000c movel %fp@(12),%d3 <== NOT EXECUTED 4ed50: 282e 0010 movel %fp@(16),%d4 <== NOT EXECUTED 4ed54: 246e 0018 moveal %fp@(24),%a2 <== NOT EXECUTED CORE_message_queue_Attributes the_msgq_attributes; #if defined(RTEMS_MULTIPROCESSING) bool is_global; #endif if ( !rtems_is_name_valid( name ) ) 4ed58: 4a82 tstl %d2 <== NOT EXECUTED 4ed5a: 6726 beqs 4ed82 <== NOT EXECUTED return RTEMS_INVALID_NAME; if ( !id ) 4ed5c: 4a8a tstl %a2 <== NOT EXECUTED 4ed5e: 6700 009c beqw 4edfc <== NOT EXECUTED if ( (is_global = _Attributes_Is_global( attribute_set ) ) && !_System_state_Is_multiprocessing ) return RTEMS_MP_NOT_CONFIGURED; #endif if ( count == 0 ) 4ed62: 4a83 tstl %d3 <== NOT EXECUTED 4ed64: 6710 beqs 4ed76 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; if ( max_message_size == 0 ) 4ed66: 4a84 tstl %d4 <== NOT EXECUTED 4ed68: 6624 bnes 4ed8e <== NOT EXECUTED return RTEMS_INVALID_SIZE; 4ed6a: 7008 moveq #8,%d0 <== NOT EXECUTED ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 4ed6c: 4cee 0c1c ffe8 moveml %fp@(-24),%d2-%d4/%a2-%a3 <== NOT EXECUTED 4ed72: 4e5e unlk %fp <== NOT EXECUTED 4ed74: 4e75 rts <== NOT EXECUTED !_System_state_Is_multiprocessing ) return RTEMS_MP_NOT_CONFIGURED; #endif if ( count == 0 ) return RTEMS_INVALID_NUMBER; 4ed76: 700a moveq #10,%d0 <== NOT EXECUTED ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 4ed78: 4cee 0c1c ffe8 moveml %fp@(-24),%d2-%d4/%a2-%a3 <== NOT EXECUTED 4ed7e: 4e5e unlk %fp <== NOT EXECUTED 4ed80: 4e75 rts <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) bool is_global; #endif if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; 4ed82: 7003 moveq #3,%d0 <== NOT EXECUTED ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 4ed84: 4cee 0c1c ffe8 moveml %fp@(-24),%d2-%d4/%a2-%a3 <== NOT EXECUTED 4ed8a: 4e5e unlk %fp <== NOT EXECUTED 4ed8c: 4e75 rts <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 4ed8e: 2039 0006 8360 movel 68360 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED 4ed94: 5280 addql #1,%d0 <== NOT EXECUTED 4ed96: 23c0 0006 8360 movel %d0,68360 <_Thread_Dispatch_disable_level><== NOT EXECUTED #endif #endif _Thread_Disable_dispatch(); /* protects object pointer */ the_message_queue = _Message_queue_Allocate(); 4ed9c: 4eb9 0005 49cc jsr 549cc <_Message_queue_Allocate> <== NOT EXECUTED 4eda2: 2640 moveal %d0,%a3 <== NOT EXECUTED if ( !the_message_queue ) { 4eda4: 4a80 tstl %d0 <== NOT EXECUTED 4eda6: 6700 008a beqw 4ee32 <== NOT EXECUTED #endif the_message_queue->attribute_set = attribute_set; if (_Attributes_Is_priority( attribute_set ) ) the_msgq_attributes.discipline = CORE_MESSAGE_QUEUE_DISCIPLINES_PRIORITY; 4edaa: 202e 0014 movel %fp@(20),%d0 <== NOT EXECUTED 4edae: 204e moveal %fp,%a0 <== NOT EXECUTED 4edb0: 44c0 movew %d0,%ccr <== NOT EXECUTED 4edb2: 56c0 sne %d0 <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } #endif the_message_queue->attribute_set = attribute_set; 4edb4: 222e 0014 movel %fp@(20),%d1 <== NOT EXECUTED if (_Attributes_Is_priority( attribute_set ) ) the_msgq_attributes.discipline = CORE_MESSAGE_QUEUE_DISCIPLINES_PRIORITY; 4edb8: 49c0 extbl %d0 <== NOT EXECUTED 4edba: 5280 addql #1,%d0 <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } #endif the_message_queue->attribute_set = attribute_set; 4edbc: 2741 0010 movel %d1,%a3@(16) <== NOT EXECUTED if (_Attributes_Is_priority( attribute_set ) ) the_msgq_attributes.discipline = CORE_MESSAGE_QUEUE_DISCIPLINES_PRIORITY; 4edc0: 2100 movel %d0,%a0@- <== NOT EXECUTED else the_msgq_attributes.discipline = CORE_MESSAGE_QUEUE_DISCIPLINES_FIFO; if ( ! _CORE_message_queue_Initialize( 4edc2: 2f04 movel %d4,%sp@- <== NOT EXECUTED 4edc4: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4edc6: 2f08 movel %a0,%sp@- <== NOT EXECUTED 4edc8: 486b 0014 pea %a3@(20) <== NOT EXECUTED 4edcc: 4eb9 0005 00fc jsr 500fc <_CORE_message_queue_Initialize> <== NOT EXECUTED 4edd2: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 4edd6: 4a00 tstb %d0 <== NOT EXECUTED 4edd8: 662e bnes 4ee08 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Message_queue_Free ( Message_queue_Control *the_message_queue ) { _Objects_Free( &_Message_queue_Information, &the_message_queue->Object ); 4edda: 2f0b movel %a3,%sp@- <== NOT EXECUTED 4eddc: 4879 0006 8554 pea 68554 <_Message_queue_Information> <== NOT EXECUTED 4ede2: 4eb9 0005 1014 jsr 51014 <_Objects_Free> <== NOT EXECUTED _Objects_MP_Close( &_Message_queue_Information, the_message_queue->Object.id); #endif _Message_queue_Free( the_message_queue ); _Thread_Enable_dispatch(); 4ede8: 4eb9 0005 1d96 jsr 51d96 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_UNSATISFIED; 4edee: 508f addql #8,%sp <== NOT EXECUTED 4edf0: 700d moveq #13,%d0 <== NOT EXECUTED ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 4edf2: 4cee 0c1c ffe8 moveml %fp@(-24),%d2-%d4/%a2-%a3 <== NOT EXECUTED 4edf8: 4e5e unlk %fp <== NOT EXECUTED 4edfa: 4e75 rts <== NOT EXECUTED if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; if ( !id ) return RTEMS_INVALID_ADDRESS; 4edfc: 7009 moveq #9,%d0 <== NOT EXECUTED ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 4edfe: 4cee 0c1c ffe8 moveml %fp@(-24),%d2-%d4/%a2-%a3 <== NOT EXECUTED 4ee04: 4e5e unlk %fp <== NOT EXECUTED 4ee06: 4e75 rts <== NOT EXECUTED Objects_Name name ) { _Objects_Set_local_object( information, _Objects_Get_index( the_object->id ), 4ee08: 202b 0008 movel %a3@(8),%d0 <== NOT EXECUTED Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( 4ee0c: 4281 clrl %d1 <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 4ee0e: 2079 0006 856c moveal 6856c <_Message_queue_Information+0x18>,%a0<== NOT EXECUTED Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( 4ee14: 3200 movew %d0,%d1 <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 4ee16: 218b 1c00 movel %a3,%a0@(00000000,%d1:l:4) <== NOT EXECUTED information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 4ee1a: 2742 000c movel %d2,%a3@(12) <== NOT EXECUTED &_Message_queue_Information, &the_message_queue->Object, (Objects_Name) name ); *id = the_message_queue->Object.id; 4ee1e: 2480 movel %d0,%a2@ <== NOT EXECUTED name, 0 ); #endif _Thread_Enable_dispatch(); 4ee20: 4eb9 0005 1d96 jsr 51d96 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 4ee26: 4cee 0c1c ffe8 moveml %fp@(-24),%d2-%d4/%a2-%a3 <== NOT EXECUTED 0 ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 4ee2c: 4280 clrl %d0 <== NOT EXECUTED } 4ee2e: 4e5e unlk %fp <== NOT EXECUTED 4ee30: 4e75 rts <== NOT EXECUTED _Thread_Disable_dispatch(); /* protects object pointer */ the_message_queue = _Message_queue_Allocate(); if ( !the_message_queue ) { _Thread_Enable_dispatch(); 4ee32: 4eb9 0005 1d96 jsr 51d96 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_TOO_MANY; 4ee38: 7005 moveq #5,%d0 <== NOT EXECUTED ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 4ee3a: 4cee 0c1c ffe8 moveml %fp@(-24),%d2-%d4/%a2-%a3 <== NOT EXECUTED 4ee40: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00056448 : */ rtems_status_code rtems_message_queue_delete( rtems_id id ) { 56448: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 5644c: 2f0a movel %a2,%sp@- <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Message_queue_Control *) _Objects_Get( &_Message_queue_Information, id, location ); 5644e: 486e fffc pea %fp@(-4) <== NOT EXECUTED 56452: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 56456: 4879 0007 d3c0 pea 7d3c0 <_Message_queue_Information> <== NOT EXECUTED 5645c: 4eb9 0005 b7bc jsr 5b7bc <_Objects_Get> <== NOT EXECUTED register Message_queue_Control *the_message_queue; Objects_Locations location; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { 56462: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 56466: 2440 moveal %d0,%a2 <== NOT EXECUTED 56468: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 5646c: 6640 bnes 564ae <== NOT EXECUTED case OBJECTS_LOCAL: _Objects_Close( &_Message_queue_Information, 5646e: 2f00 movel %d0,%sp@- <== NOT EXECUTED 56470: 4879 0007 d3c0 pea 7d3c0 <_Message_queue_Information> <== NOT EXECUTED 56476: 4eb9 0005 b350 jsr 5b350 <_Objects_Close> <== NOT EXECUTED &the_message_queue->Object ); _CORE_message_queue_Close( 5647c: 4878 0005 pea 5 <== NOT EXECUTED 56480: 42a7 clrl %sp@- <== NOT EXECUTED 56482: 486a 0014 pea %a2@(20) <== NOT EXECUTED 56486: 4eb9 0005 9d70 jsr 59d70 <_CORE_message_queue_Close> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Message_queue_Free ( Message_queue_Control *the_message_queue ) { _Objects_Free( &_Message_queue_Information, &the_message_queue->Object ); 5648c: 2f0a movel %a2,%sp@- <== NOT EXECUTED 5648e: 4879 0007 d3c0 pea 7d3c0 <_Message_queue_Information> <== NOT EXECUTED 56494: 4eb9 0005 b614 jsr 5b614 <_Objects_Free> <== NOT EXECUTED 0, /* Not used */ 0 ); } #endif _Thread_Enable_dispatch(); 5649a: 4eb9 0005 c34a jsr 5c34a <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 564a0: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 0 ); } #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 564a4: 4fef 001c lea %sp@(28),%sp <== NOT EXECUTED 564a8: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 564aa: 4e5e unlk %fp <== NOT EXECUTED 564ac: 4e75 rts <== NOT EXECUTED 564ae: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 564b2: 7004 moveq #4,%d0 <== NOT EXECUTED } 564b4: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 000564b8 : rtems_status_code rtems_message_queue_flush( rtems_id id, uint32_t *count ) { 564b8: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 564bc: 2f0a movel %a2,%sp@- <== NOT EXECUTED 564be: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED register Message_queue_Control *the_message_queue; Objects_Locations location; if ( !count ) 564c2: 4a8a tstl %a2 <== NOT EXECUTED 564c4: 6748 beqs 5650e <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Message_queue_Control *) _Objects_Get( &_Message_queue_Information, id, location ); 564c6: 486e fffc pea %fp@(-4) <== NOT EXECUTED 564ca: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 564ce: 4879 0007 d3c0 pea 7d3c0 <_Message_queue_Information> <== NOT EXECUTED 564d4: 4eb9 0005 b7bc jsr 5b7bc <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { 564da: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 564de: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 564e2: 6620 bnes 56504 <== NOT EXECUTED case OBJECTS_LOCAL: *count = _CORE_message_queue_Flush( &the_message_queue->message_queue ); 564e4: 2040 moveal %d0,%a0 <== NOT EXECUTED 564e6: 4868 0014 pea %a0@(20) <== NOT EXECUTED 564ea: 4eb9 0005 9dc4 jsr 59dc4 <_CORE_message_queue_Flush> <== NOT EXECUTED 564f0: 2480 movel %d0,%a2@ <== NOT EXECUTED _Thread_Enable_dispatch(); 564f2: 4eb9 0005 c34a jsr 5c34a <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 564f8: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED switch ( location ) { case OBJECTS_LOCAL: *count = _CORE_message_queue_Flush( &the_message_queue->message_queue ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 564fc: 588f addql #4,%sp <== NOT EXECUTED 564fe: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 56500: 4e5e unlk %fp <== NOT EXECUTED 56502: 4e75 rts <== NOT EXECUTED 56504: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 56508: 7004 moveq #4,%d0 <== NOT EXECUTED } 5650a: 4e5e unlk %fp <== NOT EXECUTED 5650c: 4e75 rts <== NOT EXECUTED 5650e: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED { register Message_queue_Control *the_message_queue; Objects_Locations location; if ( !count ) return RTEMS_INVALID_ADDRESS; 56512: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 56514: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00056518 : rtems_status_code rtems_message_queue_get_number_pending( rtems_id id, uint32_t *count ) { 56518: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 5651c: 2f0a movel %a2,%sp@- <== NOT EXECUTED 5651e: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED register Message_queue_Control *the_message_queue; Objects_Locations location; if ( !count ) 56522: 4a8a tstl %a2 <== NOT EXECUTED 56524: 673e beqs 56564 <== NOT EXECUTED 56526: 486e fffc pea %fp@(-4) <== NOT EXECUTED 5652a: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 5652e: 4879 0007 d3c0 pea 7d3c0 <_Message_queue_Information> <== NOT EXECUTED 56534: 4eb9 0005 b7bc jsr 5b7bc <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { 5653a: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 5653e: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 56542: 6616 bnes 5655a <== NOT EXECUTED case OBJECTS_LOCAL: *count = the_message_queue->message_queue.number_of_pending_messages; 56544: 2040 moveal %d0,%a0 <== NOT EXECUTED 56546: 24a8 005c movel %a0@(92),%a2@ <== NOT EXECUTED _Thread_Enable_dispatch(); 5654a: 4eb9 0005 c34a jsr 5c34a <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 56550: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED switch ( location ) { case OBJECTS_LOCAL: *count = the_message_queue->message_queue.number_of_pending_messages; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 56554: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 56556: 4e5e unlk %fp <== NOT EXECUTED 56558: 4e75 rts <== NOT EXECUTED 5655a: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 5655e: 7004 moveq #4,%d0 <== NOT EXECUTED } 56560: 4e5e unlk %fp <== NOT EXECUTED 56562: 4e75 rts <== NOT EXECUTED 56564: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED { register Message_queue_Control *the_message_queue; Objects_Locations location; if ( !count ) return RTEMS_INVALID_ADDRESS; 56568: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 5656a: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 0004ee44 : rtems_status_code rtems_message_queue_ident( rtems_name name, uint32_t node, rtems_id *id ) { 4ee44: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( 4ee48: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 4ee4c: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 4ee50: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4ee54: 4879 0006 8554 pea 68554 <_Message_queue_Information> <== NOT EXECUTED 4ee5a: 4eb9 0005 130c jsr 5130c <_Objects_Name_to_id_u32> <== NOT EXECUTED name, node, id ); return _Status_Object_name_errors_to_status[ status ]; 4ee60: 41f9 0006 5c82 lea 65c82 <_Status_Object_name_errors_to_status>,%a0<== NOT EXECUTED } 4ee66: 4e5e unlk %fp <== NOT EXECUTED 4ee68: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED ... =============================================================================== 0004ee70 : void *buffer, size_t *size, rtems_option option_set, rtems_interval timeout ) { 4ee70: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 4ee74: 48d7 001c moveml %d2-%d4,%sp@ <== NOT EXECUTED 4ee78: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED 4ee7c: 262e 0010 movel %fp@(16),%d3 <== NOT EXECUTED register Message_queue_Control *the_message_queue; Objects_Locations location; bool wait; if ( !buffer ) 4ee80: 4a82 tstl %d2 <== NOT EXECUTED 4ee82: 6776 beqs 4eefa <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !size ) 4ee84: 4a83 tstl %d3 <== NOT EXECUTED 4ee86: 6772 beqs 4eefa <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Message_queue_Control *) _Objects_Get( &_Message_queue_Information, id, location ); 4ee88: 486e fffc pea %fp@(-4) <== NOT EXECUTED 4ee8c: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4ee90: 4879 0006 8554 pea 68554 <_Message_queue_Information> <== NOT EXECUTED 4ee96: 4eb9 0005 1180 jsr 51180 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { 4ee9c: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4eea0: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 4eea4: 6648 bnes 4eeee <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Options_Is_no_wait ( rtems_option option_set ) { return (option_set & RTEMS_NO_WAIT) ? true : false; 4eea6: 7201 moveq #1,%d1 <== NOT EXECUTED if ( _Options_Is_no_wait( option_set ) ) wait = false; else wait = true; _CORE_message_queue_Seize( 4eea8: 7801 moveq #1,%d4 <== NOT EXECUTED 4eeaa: 2040 moveal %d0,%a0 <== NOT EXECUTED 4eeac: c2ae 0014 andl %fp@(20),%d1 <== NOT EXECUTED 4eeb0: 2f2e 0018 movel %fp@(24),%sp@- <== NOT EXECUTED 4eeb4: b384 eorl %d1,%d4 <== NOT EXECUTED 4eeb6: 2f04 movel %d4,%sp@- <== NOT EXECUTED 4eeb8: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4eeba: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4eebc: 2f28 0008 movel %a0@(8),%sp@- <== NOT EXECUTED 4eec0: 4868 0014 pea %a0@(20) <== NOT EXECUTED 4eec4: 4eb9 0005 01b4 jsr 501b4 <_CORE_message_queue_Seize> <== NOT EXECUTED buffer, size, wait, timeout ); _Thread_Enable_dispatch(); 4eeca: 4eb9 0005 1d96 jsr 51d96 <_Thread_Enable_dispatch> <== NOT EXECUTED return _Message_queue_Translate_core_message_queue_return_code( _Thread_Executing->Wait.return_code 4eed0: 2079 0006 851c moveal 6851c <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED size, wait, timeout ); _Thread_Enable_dispatch(); return _Message_queue_Translate_core_message_queue_return_code( 4eed6: 2f28 0034 movel %a0@(52),%sp@- <== NOT EXECUTED 4eeda: 4eb9 0004 ef94 jsr 4ef94 <_Message_queue_Translate_core_message_queue_return_code><== NOT EXECUTED 4eee0: 4fef 001c lea %sp@(28),%sp <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4eee4: 4cee 001c fff0 moveml %fp@(-16),%d2-%d4 <== NOT EXECUTED 4eeea: 4e5e unlk %fp <== NOT EXECUTED 4eeec: 4e75 rts <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 4eeee: 7004 moveq #4,%d0 <== NOT EXECUTED } 4eef0: 4cee 001c fff0 moveml %fp@(-16),%d2-%d4 <== NOT EXECUTED 4eef6: 4e5e unlk %fp <== NOT EXECUTED 4eef8: 4e75 rts <== NOT EXECUTED if ( !buffer ) return RTEMS_INVALID_ADDRESS; if ( !size ) return RTEMS_INVALID_ADDRESS; 4eefa: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4eefc: 4cee 001c fff0 moveml %fp@(-16),%d2-%d4 <== NOT EXECUTED 4ef02: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 0004ef08 : rtems_status_code rtems_message_queue_send( rtems_id id, const void *buffer, size_t size ) { 4ef08: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 4ef0c: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4ef0e: 262e 0008 movel %fp@(8),%d3 <== NOT EXECUTED 4ef12: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4ef14: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED register Message_queue_Control *the_message_queue; Objects_Locations location; CORE_message_queue_Status status; if ( !buffer ) 4ef18: 676c beqs 4ef86 <== NOT EXECUTED 4ef1a: 486e fffc pea %fp@(-4) <== NOT EXECUTED 4ef1e: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4ef20: 4879 0006 8554 pea 68554 <_Message_queue_Information> <== NOT EXECUTED 4ef26: 4eb9 0005 1180 jsr 51180 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { 4ef2c: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4ef30: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 4ef34: 6642 bnes 4ef78 <== NOT EXECUTED CORE_message_queue_API_mp_support_callout api_message_queue_mp_support, bool wait, Watchdog_Interval timeout ) { return _CORE_message_queue_Submit( 4ef36: 42a7 clrl %sp@- <== NOT EXECUTED 4ef38: 2040 moveal %d0,%a0 <== NOT EXECUTED 4ef3a: 42a7 clrl %sp@- <== NOT EXECUTED 4ef3c: 2f3c 7fff ffff movel #2147483647,%sp@- <== NOT EXECUTED 4ef42: 42a7 clrl %sp@- <== NOT EXECUTED 4ef44: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4ef46: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 4ef4a: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4ef4c: 4868 0014 pea %a0@(20) <== NOT EXECUTED 4ef50: 4eb9 0005 0298 jsr 50298 <_CORE_message_queue_Submit> <== NOT EXECUTED MESSAGE_QUEUE_MP_HANDLER, false, /* sender does not block */ 0 /* no timeout */ ); _Thread_Enable_dispatch(); 4ef56: 4fef 0020 lea %sp@(32),%sp <== NOT EXECUTED 4ef5a: 2400 movel %d0,%d2 <== NOT EXECUTED 4ef5c: 4eb9 0005 1d96 jsr 51d96 <_Thread_Enable_dispatch> <== NOT EXECUTED /* * Since this API does not allow for blocking sends, we can directly * return the returned status. */ return _Message_queue_Translate_core_message_queue_return_code(status); 4ef62: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4ef64: 4eb9 0004 ef94 jsr 4ef94 <_Message_queue_Translate_core_message_queue_return_code><== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4ef6a: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED /* * Since this API does not allow for blocking sends, we can directly * return the returned status. */ return _Message_queue_Translate_core_message_queue_return_code(status); 4ef6e: 588f addql #4,%sp <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4ef70: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED 4ef74: 4e5e unlk %fp <== NOT EXECUTED 4ef76: 4e75 rts <== NOT EXECUTED 4ef78: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 4ef7c: 7004 moveq #4,%d0 <== NOT EXECUTED } 4ef7e: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED 4ef82: 4e5e unlk %fp <== NOT EXECUTED 4ef84: 4e75 rts <== NOT EXECUTED 4ef86: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED register Message_queue_Control *the_message_queue; Objects_Locations location; CORE_message_queue_Status status; if ( !buffer ) return RTEMS_INVALID_ADDRESS; 4ef8a: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4ef8c: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED 4ef90: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 000566d8 : rtems_status_code rtems_message_queue_urgent( rtems_id id, const void *buffer, size_t size ) { 566d8: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 566dc: 2f03 movel %d3,%sp@- <== NOT EXECUTED 566de: 262e 0008 movel %fp@(8),%d3 <== NOT EXECUTED 566e2: 2f02 movel %d2,%sp@- <== NOT EXECUTED 566e4: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED register Message_queue_Control *the_message_queue; Objects_Locations location; CORE_message_queue_Status status; if ( !buffer ) 566e8: 676c beqs 56756 <== NOT EXECUTED 566ea: 486e fffc pea %fp@(-4) <== NOT EXECUTED 566ee: 2f03 movel %d3,%sp@- <== NOT EXECUTED 566f0: 4879 0007 d3c0 pea 7d3c0 <_Message_queue_Information> <== NOT EXECUTED 566f6: 4eb9 0005 b7bc jsr 5b7bc <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { 566fc: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 56700: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 56704: 6642 bnes 56748 <== NOT EXECUTED CORE_message_queue_API_mp_support_callout api_message_queue_mp_support, bool wait, Watchdog_Interval timeout ) { return _CORE_message_queue_Submit( 56706: 42a7 clrl %sp@- <== NOT EXECUTED 56708: 2040 moveal %d0,%a0 <== NOT EXECUTED 5670a: 42a7 clrl %sp@- <== NOT EXECUTED 5670c: 2f3c 8000 0000 movel #-2147483648,%sp@- <== NOT EXECUTED 56712: 42a7 clrl %sp@- <== NOT EXECUTED 56714: 2f03 movel %d3,%sp@- <== NOT EXECUTED 56716: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 5671a: 2f02 movel %d2,%sp@- <== NOT EXECUTED 5671c: 4868 0014 pea %a0@(20) <== NOT EXECUTED 56720: 4eb9 0005 9fd8 jsr 59fd8 <_CORE_message_queue_Submit> <== NOT EXECUTED id, MESSAGE_QUEUE_MP_HANDLER, false, /* sender does not block */ 0 /* no timeout */ ); _Thread_Enable_dispatch(); 56726: 4fef 0020 lea %sp@(32),%sp <== NOT EXECUTED 5672a: 2400 movel %d0,%d2 <== NOT EXECUTED 5672c: 4eb9 0005 c34a jsr 5c34a <_Thread_Enable_dispatch> <== NOT EXECUTED /* * Since this API does not allow for blocking sends, we can directly * return the returned status. */ return _Message_queue_Translate_core_message_queue_return_code(status); 56732: 2f02 movel %d2,%sp@- <== NOT EXECUTED 56734: 4eb9 0005 66c0 jsr 566c0 <_Message_queue_Translate_core_message_queue_return_code><== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 5673a: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED /* * Since this API does not allow for blocking sends, we can directly * return the returned status. */ return _Message_queue_Translate_core_message_queue_return_code(status); 5673e: 588f addql #4,%sp <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 56740: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED 56744: 4e5e unlk %fp <== NOT EXECUTED 56746: 4e75 rts <== NOT EXECUTED 56748: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 5674c: 7004 moveq #4,%d0 <== NOT EXECUTED } 5674e: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED 56752: 4e5e unlk %fp <== NOT EXECUTED 56754: 4e75 rts <== NOT EXECUTED 56756: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED register Message_queue_Control *the_message_queue; Objects_Locations location; CORE_message_queue_Status status; if ( !buffer ) return RTEMS_INVALID_ADDRESS; 5675a: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 5675c: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED 56760: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00047e60 : #include int rtems_object_api_maximum_class( int api ) { 47e60: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return _Objects_API_maximum_class(api); } 47e64: 4e5e unlk %fp <== NOT EXECUTED int rtems_object_api_maximum_class( int api ) { return _Objects_API_maximum_class(api); 47e66: 4ef9 0004 9890 jmp 49890 <_Objects_API_maximum_class> <== NOT EXECUTED =============================================================================== 00047e6c : uint32_t api ) { if ( _Objects_Is_api_valid( api ) ) return 1; return -1; 47e6c: 7203 moveq #3,%d1 <== NOT EXECUTED #include uint32_t rtems_object_api_minimum_class( uint32_t api ) { 47e6e: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid( uint32_t the_api ) { if ( !the_api || the_api > OBJECTS_APIS_LAST ) 47e72: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED 47e76: 5380 subql #1,%d0 <== NOT EXECUTED if ( _Objects_Is_api_valid( api ) ) return 1; return -1; 47e78: b280 cmpl %d0,%d1 <== NOT EXECUTED 47e7a: 53c0 sls %d0 <== NOT EXECUTED 47e7c: 49c0 extbl %d0 <== NOT EXECUTED } 47e7e: 123c 0001 moveb #1,%d1 <== NOT EXECUTED 47e82: 4e5e unlk %fp <== NOT EXECUTED 47e84: 8081 orl %d1,%d0 <== NOT EXECUTED =============================================================================== 00047e88 : ) { const rtems_assoc_t *api_assoc; const rtems_assoc_t *class_assoc; if ( the_api == OBJECTS_INTERNAL_API ) 47e88: 7001 moveq #1,%d0 <== NOT EXECUTED const char *rtems_object_get_api_class_name( int the_api, int the_class ) { 47e8a: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 47e8e: 222e 0008 movel %fp@(8),%d1 <== NOT EXECUTED 47e92: 2f02 movel %d2,%sp@- <== NOT EXECUTED const rtems_assoc_t *api_assoc; const rtems_assoc_t *class_assoc; if ( the_api == OBJECTS_INTERNAL_API ) 47e94: b081 cmpl %d1,%d0 <== NOT EXECUTED 47e96: 673e beqs 47ed6 <== NOT EXECUTED api_assoc = rtems_object_api_internal_assoc; else if ( the_api == OBJECTS_CLASSIC_API ) 47e98: 7402 moveq #2,%d2 <== NOT EXECUTED #ifdef RTEMS_POSIX_API else if ( the_api == OBJECTS_POSIX_API ) api_assoc = rtems_object_api_posix_assoc; #endif else return "BAD API"; 47e9a: 203c 0005 edde movel #388574,%d0 <== NOT EXECUTED const rtems_assoc_t *api_assoc; const rtems_assoc_t *class_assoc; if ( the_api == OBJECTS_INTERNAL_API ) api_assoc = rtems_object_api_internal_assoc; else if ( the_api == OBJECTS_CLASSIC_API ) 47ea0: b481 cmpl %d1,%d2 <== NOT EXECUTED 47ea2: 6708 beqs 47eac <== NOT EXECUTED return "BAD API"; class_assoc = rtems_assoc_ptr_by_local( api_assoc, the_class ); if ( class_assoc ) return class_assoc->name; return "BAD CLASS"; } 47ea4: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 47ea8: 4e5e unlk %fp <== NOT EXECUTED 47eaa: 4e75 rts <== NOT EXECUTED const rtems_assoc_t *class_assoc; if ( the_api == OBJECTS_INTERNAL_API ) api_assoc = rtems_object_api_internal_assoc; else if ( the_api == OBJECTS_CLASSIC_API ) api_assoc = rtems_object_api_classic_assoc; 47eac: 203c 0005 fdcc movel #392652,%d0 <== NOT EXECUTED else if ( the_api == OBJECTS_POSIX_API ) api_assoc = rtems_object_api_posix_assoc; #endif else return "BAD API"; class_assoc = rtems_assoc_ptr_by_local( api_assoc, the_class ); 47eb2: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 47eb6: 2f00 movel %d0,%sp@- <== NOT EXECUTED 47eb8: 4eb9 0004 cda4 jsr 4cda4 <== NOT EXECUTED if ( class_assoc ) 47ebe: 508f addql #8,%sp <== NOT EXECUTED else if ( the_api == OBJECTS_POSIX_API ) api_assoc = rtems_object_api_posix_assoc; #endif else return "BAD API"; class_assoc = rtems_assoc_ptr_by_local( api_assoc, the_class ); 47ec0: 2040 moveal %d0,%a0 <== NOT EXECUTED if ( class_assoc ) return class_assoc->name; return "BAD CLASS"; 47ec2: 203c 0005 ede6 movel #388582,%d0 <== NOT EXECUTED api_assoc = rtems_object_api_posix_assoc; #endif else return "BAD API"; class_assoc = rtems_assoc_ptr_by_local( api_assoc, the_class ); if ( class_assoc ) 47ec8: 4a88 tstl %a0 <== NOT EXECUTED 47eca: 67d8 beqs 47ea4 <== NOT EXECUTED return class_assoc->name; return "BAD CLASS"; } 47ecc: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 47ed0: 4e5e unlk %fp <== NOT EXECUTED #endif else return "BAD API"; class_assoc = rtems_assoc_ptr_by_local( api_assoc, the_class ); if ( class_assoc ) return class_assoc->name; 47ed2: 2010 movel %a0@,%d0 <== NOT EXECUTED return "BAD CLASS"; } 47ed4: 4e75 rts <== NOT EXECUTED { const rtems_assoc_t *api_assoc; const rtems_assoc_t *class_assoc; if ( the_api == OBJECTS_INTERNAL_API ) api_assoc = rtems_object_api_internal_assoc; 47ed6: 203c 0005 fdb4 movel #392628,%d0 <== NOT EXECUTED 47edc: 60d4 bras 47eb2 <== NOT EXECUTED ... =============================================================================== 00047ee0 : }; const char *rtems_object_get_api_name( int api ) { 47ee0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED const rtems_assoc_t *api_assoc; api_assoc = rtems_assoc_ptr_by_local( rtems_objects_api_assoc, api ); 47ee4: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 47ee8: 4879 0005 fe44 pea 5fe44 <== NOT EXECUTED 47eee: 4eb9 0004 cda4 jsr 4cda4 <== NOT EXECUTED if ( api_assoc ) 47ef4: 508f addql #8,%sp <== NOT EXECUTED int api ) { const rtems_assoc_t *api_assoc; api_assoc = rtems_assoc_ptr_by_local( rtems_objects_api_assoc, api ); 47ef6: 2040 moveal %d0,%a0 <== NOT EXECUTED if ( api_assoc ) return api_assoc->name; return "BAD CLASS"; 47ef8: 203c 0005 ede6 movel #388582,%d0 <== NOT EXECUTED ) { const rtems_assoc_t *api_assoc; api_assoc = rtems_assoc_ptr_by_local( rtems_objects_api_assoc, api ); if ( api_assoc ) 47efe: 4a88 tstl %a0 <== NOT EXECUTED 47f00: 6702 beqs 47f04 <== NOT EXECUTED return api_assoc->name; 47f02: 2010 movel %a0@,%d0 <== NOT EXECUTED return "BAD CLASS"; } 47f04: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00047f48 : rtems_status_code rtems_object_get_class_information( int the_api, int the_class, rtems_object_api_class_information *info ) { 47f48: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 47f4c: 2f0a movel %a2,%sp@- <== NOT EXECUTED 47f4e: 246e 0010 moveal %fp@(16),%a2 <== NOT EXECUTED 47f52: 2f02 movel %d2,%sp@- <== NOT EXECUTED int i; /* * Validate parameters and look up information structure. */ if ( !info ) 47f54: 4a8a tstl %a2 <== NOT EXECUTED 47f56: 6768 beqs 47fc0 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; obj_info = _Objects_Get_information( the_api, the_class ); 47f58: 3f2e 000e movew %fp@(14),%sp@- <== NOT EXECUTED 47f5c: 4267 clrw %sp@- <== NOT EXECUTED 47f5e: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 47f62: 4eb9 0004 9c28 jsr 49c28 <_Objects_Get_information> <== NOT EXECUTED if ( !obj_info ) 47f68: 508f addql #8,%sp <== NOT EXECUTED * Validate parameters and look up information structure. */ if ( !info ) return RTEMS_INVALID_ADDRESS; obj_info = _Objects_Get_information( the_api, the_class ); 47f6a: 2040 moveal %d0,%a0 <== NOT EXECUTED if ( !obj_info ) 47f6c: 4a80 tstl %d0 <== NOT EXECUTED 47f6e: 675e beqs 47fce <== NOT EXECUTED return RTEMS_INVALID_NUMBER; /* * Return information about this object class to the user. */ info->minimum_id = obj_info->minimum_id; 47f70: 24a8 0006 movel %a0@(6),%a2@ <== NOT EXECUTED info->maximum_id = obj_info->maximum_id; info->auto_extend = obj_info->auto_extend; info->maximum = obj_info->maximum; 47f74: 4282 clrl %d2 <== NOT EXECUTED /* * Return information about this object class to the user. */ info->minimum_id = obj_info->minimum_id; info->maximum_id = obj_info->maximum_id; 47f76: 2568 000a 0004 movel %a0@(10),%a2@(4) <== NOT EXECUTED info->auto_extend = obj_info->auto_extend; info->maximum = obj_info->maximum; 47f7c: 3428 000e movew %a0@(14),%d2 <== NOT EXECUTED /* * Return information about this object class to the user. */ info->minimum_id = obj_info->minimum_id; info->maximum_id = obj_info->maximum_id; info->auto_extend = obj_info->auto_extend; 47f80: 1568 0010 000c moveb %a0@(16),%a2@(12) <== NOT EXECUTED info->maximum = obj_info->maximum; 47f86: 2542 0008 movel %d2,%a2@(8) <== NOT EXECUTED for ( unallocated=0, i=1 ; i <= info->maximum ; i++ ) 47f8a: 6750 beqs 47fdc <== NOT EXECUTED 47f8c: 2068 0018 moveal %a0@(24),%a0 <== NOT EXECUTED 47f90: 7201 moveq #1,%d1 <== NOT EXECUTED 47f92: 7001 moveq #1,%d0 <== NOT EXECUTED 47f94: 93c9 subal %a1,%a1 <== NOT EXECUTED 47f96: 5280 addql #1,%d0 <== NOT EXECUTED if ( !obj_info->local_table[i] ) 47f98: 4ab0 1c00 tstl %a0@(00000000,%d1:l:4) <== NOT EXECUTED 47f9c: 6718 beqs 47fb6 <== NOT EXECUTED info->minimum_id = obj_info->minimum_id; info->maximum_id = obj_info->maximum_id; info->auto_extend = obj_info->auto_extend; info->maximum = obj_info->maximum; for ( unallocated=0, i=1 ; i <= info->maximum ; i++ ) 47f9e: 2200 movel %d0,%d1 <== NOT EXECUTED 47fa0: b082 cmpl %d2,%d0 <== NOT EXECUTED 47fa2: 63f2 blss 47f96 <== NOT EXECUTED if ( !obj_info->local_table[i] ) unallocated++; info->unallocated = unallocated; 47fa4: 2549 000e movel %a1,%a2@(14) <== NOT EXECUTED return RTEMS_SUCCESSFUL; 47fa8: 4280 clrl %d0 <== NOT EXECUTED } 47faa: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 47fae: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 47fb2: 4e5e unlk %fp <== NOT EXECUTED 47fb4: 4e75 rts <== NOT EXECUTED info->auto_extend = obj_info->auto_extend; info->maximum = obj_info->maximum; for ( unallocated=0, i=1 ; i <= info->maximum ; i++ ) if ( !obj_info->local_table[i] ) unallocated++; 47fb6: 5289 addql #1,%a1 <== NOT EXECUTED info->minimum_id = obj_info->minimum_id; info->maximum_id = obj_info->maximum_id; info->auto_extend = obj_info->auto_extend; info->maximum = obj_info->maximum; for ( unallocated=0, i=1 ; i <= info->maximum ; i++ ) 47fb8: 2200 movel %d0,%d1 <== NOT EXECUTED 47fba: b082 cmpl %d2,%d0 <== NOT EXECUTED 47fbc: 63d8 blss 47f96 <== NOT EXECUTED 47fbe: 60e4 bras 47fa4 <== NOT EXECUTED unallocated++; info->unallocated = unallocated; return RTEMS_SUCCESSFUL; } 47fc0: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED /* * Validate parameters and look up information structure. */ if ( !info ) return RTEMS_INVALID_ADDRESS; 47fc4: 7009 moveq #9,%d0 <== NOT EXECUTED unallocated++; info->unallocated = unallocated; return RTEMS_SUCCESSFUL; } 47fc6: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 47fca: 4e5e unlk %fp <== NOT EXECUTED 47fcc: 4e75 rts <== NOT EXECUTED 47fce: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED if ( !info ) return RTEMS_INVALID_ADDRESS; obj_info = _Objects_Get_information( the_api, the_class ); if ( !obj_info ) return RTEMS_INVALID_NUMBER; 47fd2: 700a moveq #10,%d0 <== NOT EXECUTED unallocated++; info->unallocated = unallocated; return RTEMS_SUCCESSFUL; } 47fd4: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 47fd8: 4e5e unlk %fp <== NOT EXECUTED 47fda: 4e75 rts <== NOT EXECUTED info->minimum_id = obj_info->minimum_id; info->maximum_id = obj_info->maximum_id; info->auto_extend = obj_info->auto_extend; info->maximum = obj_info->maximum; for ( unallocated=0, i=1 ; i <= info->maximum ; i++ ) 47fdc: 93c9 subal %a1,%a1 <== NOT EXECUTED if ( !obj_info->local_table[i] ) unallocated++; info->unallocated = unallocated; return RTEMS_SUCCESSFUL; 47fde: 4280 clrl %d0 <== NOT EXECUTED for ( unallocated=0, i=1 ; i <= info->maximum ; i++ ) if ( !obj_info->local_table[i] ) unallocated++; info->unallocated = unallocated; 47fe0: 2549 000e movel %a1,%a2@(14) <== NOT EXECUTED 47fe4: 60c4 bras 47faa <== NOT EXECUTED ... =============================================================================== 000477cc : rtems_status_code rtems_object_get_classic_name( rtems_id id, rtems_name *name ) { 477cc: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 477d0: 2f0a movel %a2,%sp@- <== NOT EXECUTED 477d2: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED Objects_Name_or_id_lookup_errors status; Objects_Name name_u; if ( !name ) 477d6: 4a8a tstl %a2 <== NOT EXECUTED 477d8: 6726 beqs 47800 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; status = _Objects_Id_to_name( id, &name_u ); 477da: 486e fffc pea %fp@(-4) <== NOT EXECUTED 477de: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 477e2: 4eb9 0004 9490 jsr 49490 <_Objects_Id_to_name> <== NOT EXECUTED *name = name_u.name_u32; 477e8: 24ae fffc movel %fp@(-4),%a2@ <== NOT EXECUTED return _Status_Object_name_errors_to_status[ status ]; 477ec: 41f9 0005 dc20 lea 5dc20 <_Status_Object_name_errors_to_status>,%a0<== NOT EXECUTED 477f2: 508f addql #8,%sp <== NOT EXECUTED } 477f4: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 477f8: 4e5e unlk %fp <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; status = _Objects_Id_to_name( id, &name_u ); *name = name_u.name_u32; return _Status_Object_name_errors_to_status[ status ]; 477fa: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED } 477fe: 4e75 rts <== NOT EXECUTED 47800: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED { Objects_Name_or_id_lookup_errors status; Objects_Name name_u; if ( !name ) return RTEMS_INVALID_ADDRESS; 47804: 7009 moveq #9,%d0 <== NOT EXECUTED status = _Objects_Id_to_name( id, &name_u ); *name = name_u.name_u32; return _Status_Object_name_errors_to_status[ status ]; } 47806: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 00047824 : char *rtems_object_get_name( Objects_Id id, size_t length, char *name ) { 47824: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return _Objects_Get_name_as_string( id, length, name ); } 47828: 4e5e unlk %fp <== NOT EXECUTED Objects_Id id, size_t length, char *name ) { return _Objects_Get_name_as_string( id, length, name ); 4782a: 4ef9 0004 9740 jmp 49740 <_Objects_Get_name_as_string> <== NOT EXECUTED =============================================================================== 00047ff4 : #undef rtems_object_id_api_maximum int rtems_object_id_api_maximum(void) { return OBJECTS_APIS_LAST; } 47ff4: 7003 moveq #3,%d0 <== NOT EXECUTED #include #include #undef rtems_object_id_api_maximum int rtems_object_id_api_maximum(void) { 47ff6: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return OBJECTS_APIS_LAST; } 47ffa: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 00048000 : #undef rtems_object_id_api_minimum int rtems_object_id_api_minimum(void) { return OBJECTS_INTERNAL_API; } 48000: 7001 moveq #1,%d0 <== NOT EXECUTED #include #include #undef rtems_object_id_api_minimum int rtems_object_id_api_minimum(void) { 48002: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return OBJECTS_INTERNAL_API; } 48006: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 0004800c : */ RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API( Objects_Id id ) { return (Objects_APIs) ((id >> OBJECTS_API_START_BIT) & OBJECTS_API_VALID_BITS); 4800c: 4280 clrl %d0 <== NOT EXECUTED int rtems_object_id_get_api( rtems_id id ) { return _Objects_Get_API( id ); } 4800e: 7207 moveq #7,%d1 <== NOT EXECUTED #undef rtems_object_id_get_api int rtems_object_id_get_api( rtems_id id ) { 48010: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 48014: 102e 0008 moveb %fp@(8),%d0 <== NOT EXECUTED return _Objects_Get_API( id ); } 48018: 4e5e unlk %fp <== NOT EXECUTED 4801a: c081 andl %d1,%d0 <== NOT EXECUTED ... =============================================================================== 00048020 : int rtems_object_id_get_class( rtems_id id ) { return _Objects_Get_class( id ); } 48020: 721b moveq #27,%d1 <== NOT EXECUTED #undef rtems_object_id_get_class int rtems_object_id_get_class( rtems_id id ) { 48022: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 48026: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED return _Objects_Get_class( id ); } 4802a: 4e5e unlk %fp <== NOT EXECUTED 4802c: e2a8 lsrl %d1,%d0 <== NOT EXECUTED =============================================================================== 00048030 : int rtems_object_id_get_index( rtems_id id ) { return _Objects_Get_index( id ); } 48030: 4280 clrl %d0 <== NOT EXECUTED #undef rtems_object_id_get_index int rtems_object_id_get_index( rtems_id id ) { 48032: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return _Objects_Get_index( id ); } 48036: 302e 000a movew %fp@(10),%d0 <== NOT EXECUTED 4803a: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 00048040 : int rtems_object_id_get_node( rtems_id id ) { return _Objects_Get_node( id ); } 48040: 4280 clrl %d0 <== NOT EXECUTED #undef rtems_object_id_get_node int rtems_object_id_get_node( rtems_id id ) { 48042: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return _Objects_Get_node( id ); } 48046: 102e 0009 moveb %fp@(9),%d0 <== NOT EXECUTED 4804a: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 00048050 : */ rtems_status_code rtems_object_set_name( rtems_id id, const char *name ) { 48050: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 48054: 48d7 001c moveml %d2-%d4,%sp@ <== NOT EXECUTED 48058: 262e 0008 movel %fp@(8),%d3 <== NOT EXECUTED 4805c: 282e 000c movel %fp@(12),%d4 <== NOT EXECUTED Objects_Information *information; Objects_Locations location; Objects_Control *the_object; Objects_Id tmpId; if ( !name ) 48060: 6764 beqs 480c6 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; 48062: 4a83 tstl %d3 <== NOT EXECUTED 48064: 6754 beqs 480ba <== NOT EXECUTED information = _Objects_Get_information_id( tmpId ); 48066: 2f03 movel %d3,%sp@- <== NOT EXECUTED 48068: 4eb9 0004 9bfc jsr 49bfc <_Objects_Get_information_id> <== NOT EXECUTED if ( !information ) 4806e: 588f addql #4,%sp <== NOT EXECUTED if ( !name ) return RTEMS_INVALID_ADDRESS; tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; information = _Objects_Get_information_id( tmpId ); 48070: 2400 movel %d0,%d2 <== NOT EXECUTED if ( !information ) 48072: 673a beqs 480ae <== NOT EXECUTED return RTEMS_INVALID_ID; the_object = _Objects_Get( information, tmpId, &location ); 48074: 486e fffc pea %fp@(-4) <== NOT EXECUTED 48078: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4807a: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4807c: 4eb9 0004 9dd4 jsr 49dd4 <_Objects_Get> <== NOT EXECUTED switch ( location ) { 48082: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 48086: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 4808a: 6622 bnes 480ae <== NOT EXECUTED case OBJECTS_LOCAL: _Objects_Set_name( information, the_object, name ); 4808c: 2f04 movel %d4,%sp@- <== NOT EXECUTED 4808e: 2f00 movel %d0,%sp@- <== NOT EXECUTED 48090: 2f02 movel %d2,%sp@- <== NOT EXECUTED 48092: 4eb9 0004 9fe4 jsr 49fe4 <_Objects_Set_name> <== NOT EXECUTED _Thread_Enable_dispatch(); 48098: 4eb9 0004 aa16 jsr 4aa16 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; 4809e: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 480a2: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 480a4: 4cee 001c fff0 moveml %fp@(-16),%d2-%d4 <== NOT EXECUTED 480aa: 4e5e unlk %fp <== NOT EXECUTED 480ac: 4e75 rts <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 480ae: 7004 moveq #4,%d0 <== NOT EXECUTED } 480b0: 4cee 001c fff0 moveml %fp@(-16),%d2-%d4 <== NOT EXECUTED 480b6: 4e5e unlk %fp <== NOT EXECUTED 480b8: 4e75 rts <== NOT EXECUTED Objects_Id tmpId; if ( !name ) return RTEMS_INVALID_ADDRESS; tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; 480ba: 2079 0006 16fc moveal 616fc <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED 480c0: 2628 0008 movel %a0@(8),%d3 <== NOT EXECUTED 480c4: 60a0 bras 48066 <== NOT EXECUTED Objects_Locations location; Objects_Control *the_object; Objects_Id tmpId; if ( !name ) return RTEMS_INVALID_ADDRESS; 480c6: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 480c8: 4cee 001c fff0 moveml %fp@(-16),%d2-%d4 <== NOT EXECUTED 480ce: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 00056764 : uint32_t length, uint32_t buffer_size, rtems_attribute attribute_set, rtems_id *id ) { 56764: 4e56 ffe8 linkw %fp,#-24 <== NOT EXECUTED 56768: 48d7 0c3c moveml %d2-%d5/%a2-%a3,%sp@ <== NOT EXECUTED 5676c: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED 56770: 2a2e 000c movel %fp@(12),%d5 <== NOT EXECUTED 56774: 282e 0010 movel %fp@(16),%d4 <== NOT EXECUTED 56778: 262e 0014 movel %fp@(20),%d3 <== NOT EXECUTED 5677c: 246e 001c moveal %fp@(28),%a2 <== NOT EXECUTED register Partition_Control *the_partition; if ( !rtems_is_name_valid( name ) ) 56780: 4a82 tstl %d2 <== NOT EXECUTED 56782: 673a beqs 567be <== NOT EXECUTED return RTEMS_INVALID_NAME; if ( !starting_address ) 56784: 4a85 tstl %d5 <== NOT EXECUTED 56786: 671e beqs 567a6 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !id ) 56788: 4a8a tstl %a2 <== NOT EXECUTED 5678a: 671a beqs 567a6 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( length == 0 || buffer_size == 0 || length < buffer_size || 5678c: 4a84 tstl %d4 <== NOT EXECUTED 5678e: 6722 beqs 567b2 <== NOT EXECUTED 56790: 4a83 tstl %d3 <== NOT EXECUTED 56792: 671e beqs 567b2 <== NOT EXECUTED 56794: b684 cmpl %d4,%d3 <== NOT EXECUTED 56796: 621a bhis 567b2 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Partition_Is_buffer_size_aligned ( uint32_t buffer_size ) { return ((buffer_size % CPU_PARTITION_ALIGNMENT) == 0); 56798: 7003 moveq #3,%d0 <== NOT EXECUTED 5679a: c083 andl %d3,%d0 <== NOT EXECUTED 5679c: 6614 bnes 567b2 <== NOT EXECUTED ) { #if (CPU_ALIGNMENT == 0) return true; #else return (((uintptr_t)address % CPU_ALIGNMENT) == 0); 5679e: 103c 0003 moveb #3,%d0 <== NOT EXECUTED 567a2: c085 andl %d5,%d0 <== NOT EXECUTED !_Partition_Is_buffer_size_aligned( buffer_size ) ) return RTEMS_INVALID_SIZE; if ( !_Addresses_Is_aligned( starting_address ) ) 567a4: 6724 beqs 567ca <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; 567a6: 7009 moveq #9,%d0 <== NOT EXECUTED ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 567a8: 4cee 0c3c ffe8 moveml %fp@(-24),%d2-%d5/%a2-%a3 <== NOT EXECUTED 567ae: 4e5e unlk %fp <== NOT EXECUTED 567b0: 4e75 rts <== NOT EXECUTED if ( !id ) return RTEMS_INVALID_ADDRESS; if ( length == 0 || buffer_size == 0 || length < buffer_size || !_Partition_Is_buffer_size_aligned( buffer_size ) ) return RTEMS_INVALID_SIZE; 567b2: 7008 moveq #8,%d0 <== NOT EXECUTED ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 567b4: 4cee 0c3c ffe8 moveml %fp@(-24),%d2-%d5/%a2-%a3 <== NOT EXECUTED 567ba: 4e5e unlk %fp <== NOT EXECUTED 567bc: 4e75 rts <== NOT EXECUTED ) { register Partition_Control *the_partition; if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; 567be: 7003 moveq #3,%d0 <== NOT EXECUTED ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 567c0: 4cee 0c3c ffe8 moveml %fp@(-24),%d2-%d5/%a2-%a3 <== NOT EXECUTED 567c6: 4e5e unlk %fp <== NOT EXECUTED 567c8: 4e75 rts <== NOT EXECUTED 567ca: 2039 0007 d1c4 movel 7d1c4 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED 567d0: 5280 addql #1,%d0 <== NOT EXECUTED 567d2: 23c0 0007 d1c4 movel %d0,7d1c4 <_Thread_Dispatch_disable_level><== NOT EXECUTED * This function allocates a partition control block from * the inactive chain of free partition control blocks. */ RTEMS_INLINE_ROUTINE Partition_Control *_Partition_Allocate ( void ) { return (Partition_Control *) _Objects_Allocate( &_Partition_Information ); 567d8: 4879 0007 d064 pea 7d064 <_Partition_Information> <== NOT EXECUTED 567de: 4eb9 0005 b2c0 jsr 5b2c0 <_Objects_Allocate> <== NOT EXECUTED _Thread_Disable_dispatch(); /* prevents deletion */ the_partition = _Partition_Allocate(); if ( !the_partition ) { 567e4: 588f addql #4,%sp <== NOT EXECUTED 567e6: 2640 moveal %d0,%a3 <== NOT EXECUTED 567e8: 4a80 tstl %d0 <== NOT EXECUTED 567ea: 6758 beqs 56844 <== NOT EXECUTED return RTEMS_TOO_MANY; } #endif the_partition->starting_address = starting_address; the_partition->length = length; 567ec: 2744 0014 movel %d4,%a3@(20) <== NOT EXECUTED the_partition->buffer_size = buffer_size; the_partition->attribute_set = attribute_set; 567f0: 276e 0018 001c movel %fp@(24),%a3@(28) <== NOT EXECUTED the_partition->number_of_used_blocks = 0; _Chain_Initialize( &the_partition->Memory, starting_address, 567f6: 4c43 4004 remul %d3,%d4,%d4 <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } #endif the_partition->starting_address = starting_address; 567fa: 2745 0010 movel %d5,%a3@(16) <== NOT EXECUTED the_partition->length = length; the_partition->buffer_size = buffer_size; 567fe: 2743 0018 movel %d3,%a3@(24) <== NOT EXECUTED the_partition->attribute_set = attribute_set; the_partition->number_of_used_blocks = 0; 56802: 42ab 0020 clrl %a3@(32) <== NOT EXECUTED _Chain_Initialize( &the_partition->Memory, starting_address, 56806: 2f03 movel %d3,%sp@- <== NOT EXECUTED 56808: 2f04 movel %d4,%sp@- <== NOT EXECUTED 5680a: 2f05 movel %d5,%sp@- <== NOT EXECUTED 5680c: 486b 0024 pea %a3@(36) <== NOT EXECUTED 56810: 4eb9 0005 9c70 jsr 59c70 <_Chain_Initialize> <== NOT EXECUTED Objects_Name name ) { _Objects_Set_local_object( information, _Objects_Get_index( the_object->id ), 56816: 202b 0008 movel %a3@(8),%d0 <== NOT EXECUTED Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( 5681a: 4281 clrl %d1 <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 5681c: 2079 0007 d07c moveal 7d07c <_Partition_Information+0x18>,%a0<== NOT EXECUTED Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( 56822: 3200 movew %d0,%d1 <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 56824: 218b 1c00 movel %a3,%a0@(00000000,%d1:l:4) <== NOT EXECUTED information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 56828: 2742 000c movel %d2,%a3@(12) <== NOT EXECUTED &_Partition_Information, &the_partition->Object, (Objects_Name) name ); *id = the_partition->Object.id; 5682c: 2480 movel %d0,%a2@ <== NOT EXECUTED name, 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); 5682e: 4eb9 0005 c34a jsr 5c34a <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; 56834: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 56838: 4280 clrl %d0 <== NOT EXECUTED } 5683a: 4cee 0c3c ffe8 moveml %fp@(-24),%d2-%d5/%a2-%a3 <== NOT EXECUTED 56840: 4e5e unlk %fp <== NOT EXECUTED 56842: 4e75 rts <== NOT EXECUTED _Thread_Disable_dispatch(); /* prevents deletion */ the_partition = _Partition_Allocate(); if ( !the_partition ) { _Thread_Enable_dispatch(); 56844: 4eb9 0005 c34a jsr 5c34a <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_TOO_MANY; 5684a: 7005 moveq #5,%d0 <== NOT EXECUTED ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 5684c: 4cee 0c3c ffe8 moveml %fp@(-24),%d2-%d5/%a2-%a3 <== NOT EXECUTED 56852: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 00056858 : */ rtems_status_code rtems_partition_delete( rtems_id id ) { 56858: 4e56 fff8 linkw %fp,#-8 <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Partition_Control *) _Objects_Get( &_Partition_Information, id, location ); 5685c: 486e fffc pea %fp@(-4) <== NOT EXECUTED 56860: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 56864: 4879 0007 d064 pea 7d064 <_Partition_Information> <== NOT EXECUTED 5686a: 4eb9 0005 b7bc jsr 5b7bc <_Objects_Get> <== NOT EXECUTED register Partition_Control *the_partition; Objects_Locations location; the_partition = _Partition_Get( id, &location ); switch ( location ) { 56870: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 56874: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 56878: 6706 beqs 56880 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 5687a: 7004 moveq #4,%d0 <== NOT EXECUTED } 5687c: 4e5e unlk %fp <== NOT EXECUTED 5687e: 4e75 rts <== NOT EXECUTED the_partition = _Partition_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( the_partition->number_of_used_blocks == 0 ) { 56880: 2040 moveal %d0,%a0 <== NOT EXECUTED 56882: 4aa8 0020 tstl %a0@(32) <== NOT EXECUTED 56886: 670c beqs 56894 <== NOT EXECUTED #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 56888: 4eb9 0005 c34a jsr 5c34a <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_RESOURCE_IN_USE; 5688e: 700c moveq #12,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 56890: 4e5e unlk %fp <== NOT EXECUTED 56892: 4e75 rts <== NOT EXECUTED the_partition = _Partition_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( the_partition->number_of_used_blocks == 0 ) { _Objects_Close( &_Partition_Information, &the_partition->Object ); 56894: 2f00 movel %d0,%sp@- <== NOT EXECUTED 56896: 4879 0007 d064 pea 7d064 <_Partition_Information> <== NOT EXECUTED 5689c: 2d40 fff8 movel %d0,%fp@(-8) <== NOT EXECUTED 568a0: 4eb9 0005 b350 jsr 5b350 <_Objects_Close> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Partition_Free ( Partition_Control *the_partition ) { _Objects_Free( &_Partition_Information, &the_partition->Object ); 568a6: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED 568aa: 2f00 movel %d0,%sp@- <== NOT EXECUTED 568ac: 4879 0007 d064 pea 7d064 <_Partition_Information> <== NOT EXECUTED 568b2: 4eb9 0005 b614 jsr 5b614 <_Objects_Free> <== NOT EXECUTED 0 /* Not used */ ); } #endif _Thread_Enable_dispatch(); 568b8: 4eb9 0005 c34a jsr 5c34a <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; 568be: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 568c2: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 568c4: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 000568c8 : rtems_status_code rtems_partition_get_buffer( rtems_id id, void **buffer ) { 568c8: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 568cc: 48d7 0c04 moveml %d2/%a2-%a3,%sp@ <== NOT EXECUTED 568d0: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED register Partition_Control *the_partition; Objects_Locations location; void *the_buffer; if ( !buffer ) 568d4: 4a8a tstl %a2 <== NOT EXECUTED 568d6: 6754 beqs 5692c <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Partition_Control *) _Objects_Get( &_Partition_Information, id, location ); 568d8: 486e fffc pea %fp@(-4) <== NOT EXECUTED 568dc: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 568e0: 4879 0007 d064 pea 7d064 <_Partition_Information> <== NOT EXECUTED 568e6: 4eb9 0005 b7bc jsr 5b7bc <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_partition = _Partition_Get( id, &location ); switch ( location ) { 568ec: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 568f0: 2640 moveal %d0,%a3 <== NOT EXECUTED 568f2: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 568f6: 6628 bnes 56920 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void *_Partition_Allocate_buffer ( Partition_Control *the_partition ) { return _Chain_Get( &the_partition->Memory ); 568f8: 486b 0024 pea %a3@(36) <== NOT EXECUTED 568fc: 4eb9 0005 9c34 jsr 59c34 <_Chain_Get> <== NOT EXECUTED case OBJECTS_LOCAL: the_buffer = _Partition_Allocate_buffer( the_partition ); if ( the_buffer ) { 56902: 588f addql #4,%sp <== NOT EXECUTED 56904: 2400 movel %d0,%d2 <== NOT EXECUTED 56906: 6730 beqs 56938 <== NOT EXECUTED the_partition->number_of_used_blocks += 1; 56908: 52ab 0020 addql #1,%a3@(32) <== NOT EXECUTED _Thread_Enable_dispatch(); 5690c: 4eb9 0005 c34a jsr 5c34a <_Thread_Enable_dispatch> <== NOT EXECUTED *buffer = the_buffer; return RTEMS_SUCCESSFUL; 56912: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_LOCAL: the_buffer = _Partition_Allocate_buffer( the_partition ); if ( the_buffer ) { the_partition->number_of_used_blocks += 1; _Thread_Enable_dispatch(); *buffer = the_buffer; 56914: 2482 movel %d2,%a2@ <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 56916: 4cee 0c04 fff0 moveml %fp@(-16),%d2/%a2-%a3 <== NOT EXECUTED 5691c: 4e5e unlk %fp <== NOT EXECUTED 5691e: 4e75 rts <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 56920: 7004 moveq #4,%d0 <== NOT EXECUTED } 56922: 4cee 0c04 fff0 moveml %fp@(-16),%d2/%a2-%a3 <== NOT EXECUTED 56928: 4e5e unlk %fp <== NOT EXECUTED 5692a: 4e75 rts <== NOT EXECUTED register Partition_Control *the_partition; Objects_Locations location; void *the_buffer; if ( !buffer ) return RTEMS_INVALID_ADDRESS; 5692c: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 5692e: 4cee 0c04 fff0 moveml %fp@(-16),%d2/%a2-%a3 <== NOT EXECUTED 56934: 4e5e unlk %fp <== NOT EXECUTED 56936: 4e75 rts <== NOT EXECUTED the_partition->number_of_used_blocks += 1; _Thread_Enable_dispatch(); *buffer = the_buffer; return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 56938: 4eb9 0005 c34a jsr 5c34a <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_UNSATISFIED; 5693e: 700d moveq #13,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 56940: 4cee 0c04 fff0 moveml %fp@(-16),%d2/%a2-%a3 <== NOT EXECUTED 56946: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 0005694c : rtems_status_code rtems_partition_ident( rtems_name name, uint32_t node, rtems_id *id ) { 5694c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( &_Partition_Information, name, node, id ); 56950: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 56954: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 56958: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 5695c: 4879 0007 d064 pea 7d064 <_Partition_Information> <== NOT EXECUTED 56962: 4eb9 0005 b948 jsr 5b948 <_Objects_Name_to_id_u32> <== NOT EXECUTED return _Status_Object_name_errors_to_status[ status ]; 56968: 41f9 0007 67f0 lea 767f0 <_Status_Object_name_errors_to_status>,%a0<== NOT EXECUTED } 5696e: 4e5e unlk %fp <== NOT EXECUTED 56970: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED ... =============================================================================== 00056978 : rtems_status_code rtems_partition_return_buffer( rtems_id id, void *buffer ) { 56978: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 5697c: 2f0a movel %a2,%sp@- <== NOT EXECUTED 5697e: 2f02 movel %d2,%sp@- <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Partition_Control *) _Objects_Get( &_Partition_Information, id, location ); 56980: 486e fffc pea %fp@(-4) <== NOT EXECUTED 56984: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 56988: 4879 0007 d064 pea 7d064 <_Partition_Information> <== NOT EXECUTED 5698e: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED 56992: 4eb9 0005 b7bc jsr 5b7bc <_Objects_Get> <== NOT EXECUTED register Partition_Control *the_partition; Objects_Locations location; the_partition = _Partition_Get( id, &location ); switch ( location ) { 56998: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 5699c: 2440 moveal %d0,%a2 <== NOT EXECUTED 5699e: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 569a2: 670e beqs 569b2 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 569a4: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 569a8: 7004 moveq #4,%d0 <== NOT EXECUTED } 569aa: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 569ae: 4e5e unlk %fp <== NOT EXECUTED 569b0: 4e75 rts <== NOT EXECUTED ) { void *starting; void *ending; starting = the_partition->starting_address; 569b2: 202a 0010 movel %a2@(16),%d0 <== NOT EXECUTED ending = _Addresses_Add_offset( starting, the_partition->length ); 569b6: 222a 0014 movel %a2@(20),%d1 <== NOT EXECUTED const void *address, const void *base, const void *limit ) { return (address >= base && address <= limit); 569ba: b082 cmpl %d2,%d0 <== NOT EXECUTED 569bc: 623c bhis 569fa <== NOT EXECUTED RTEMS_INLINE_ROUTINE void *_Addresses_Add_offset ( const void *base, uintptr_t offset ) { return (void *)((uintptr_t)base + offset); 569be: d280 addl %d0,%d1 <== NOT EXECUTED const void *address, const void *base, const void *limit ) { return (address >= base && address <= limit); 569c0: b282 cmpl %d2,%d1 <== NOT EXECUTED 569c2: 6536 bcss 569fa <== NOT EXECUTED RTEMS_INLINE_ROUTINE int32_t _Addresses_Subtract ( const void *left, const void *right ) { return (int32_t) ((const char *) left - (const char *) right); 569c4: 2202 movel %d2,%d1 <== NOT EXECUTED 569c6: 9280 subl %d0,%d1 <== NOT EXECUTED 569c8: 2001 movel %d1,%d0 <== NOT EXECUTED offset = (uint32_t) _Addresses_Subtract( the_buffer, the_partition->starting_address ); return ((offset % the_partition->buffer_size) == 0); 569ca: 4c6a 0001 0018 remul %a2@(24),%d1,%d0 <== NOT EXECUTED starting = the_partition->starting_address; ending = _Addresses_Add_offset( starting, the_partition->length ); return ( _Addresses_Is_in_range( the_buffer, starting, ending ) && 569d0: 4a81 tstl %d1 <== NOT EXECUTED 569d2: 6626 bnes 569fa <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Partition_Free_buffer ( Partition_Control *the_partition, Chain_Node *the_buffer ) { _Chain_Append( &the_partition->Memory, the_buffer ); 569d4: 2f02 movel %d2,%sp@- <== NOT EXECUTED 569d6: 486a 0024 pea %a2@(36) <== NOT EXECUTED 569da: 4eb9 0005 9bd4 jsr 59bd4 <_Chain_Append> <== NOT EXECUTED switch ( location ) { case OBJECTS_LOCAL: if ( _Partition_Is_buffer_valid( buffer, the_partition ) ) { _Partition_Free_buffer( the_partition, buffer ); the_partition->number_of_used_blocks -= 1; 569e0: 53aa 0020 subql #1,%a2@(32) <== NOT EXECUTED _Thread_Enable_dispatch(); 569e4: 4eb9 0005 c34a jsr 5c34a <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 569ea: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED case OBJECTS_LOCAL: if ( _Partition_Is_buffer_valid( buffer, the_partition ) ) { _Partition_Free_buffer( the_partition, buffer ); the_partition->number_of_used_blocks -= 1; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 569ee: 508f addql #8,%sp <== NOT EXECUTED 569f0: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 569f2: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 569f6: 4e5e unlk %fp <== NOT EXECUTED 569f8: 4e75 rts <== NOT EXECUTED _Partition_Free_buffer( the_partition, buffer ); the_partition->number_of_used_blocks -= 1; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 569fa: 4eb9 0005 c34a jsr 5c34a <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 56a00: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED the_partition->number_of_used_blocks -= 1; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); return RTEMS_INVALID_ADDRESS; 56a04: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 56a06: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 56a0a: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 00055c60 : void *internal_start, void *external_start, uint32_t length, rtems_id *id ) { 55c60: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 55c64: 48d7 041c moveml %d2-%d4/%a2,%sp@ <== NOT EXECUTED 55c68: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED 55c6c: 282e 000c movel %fp@(12),%d4 <== NOT EXECUTED 55c70: 262e 0010 movel %fp@(16),%d3 <== NOT EXECUTED 55c74: 246e 0018 moveal %fp@(24),%a2 <== NOT EXECUTED register Dual_ported_memory_Control *the_port; if ( !rtems_is_name_valid( name ) ) 55c78: 4a82 tstl %d2 <== NOT EXECUTED 55c7a: 671a beqs 55c96 <== NOT EXECUTED return RTEMS_INVALID_NAME; if ( !id ) 55c7c: 4a8a tstl %a2 <== NOT EXECUTED 55c7e: 670a beqs 55c8a <== NOT EXECUTED * id - port id * RTEMS_SUCCESSFUL - if successful * error code - if unsuccessful */ rtems_status_code rtems_port_create( 55c80: 2003 movel %d3,%d0 <== NOT EXECUTED 55c82: 7203 moveq #3,%d1 <== NOT EXECUTED 55c84: 8084 orl %d4,%d0 <== NOT EXECUTED 55c86: c081 andl %d1,%d0 <== NOT EXECUTED return RTEMS_INVALID_NAME; if ( !id ) return RTEMS_INVALID_ADDRESS; if ( !_Addresses_Is_aligned( internal_start ) || 55c88: 6718 beqs 55ca2 <== NOT EXECUTED !_Addresses_Is_aligned( external_start ) ) return RTEMS_INVALID_ADDRESS; 55c8a: 7009 moveq #9,%d0 <== NOT EXECUTED ); *id = the_port->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 55c8c: 4cee 041c fff0 moveml %fp@(-16),%d2-%d4/%a2 <== NOT EXECUTED 55c92: 4e5e unlk %fp <== NOT EXECUTED 55c94: 4e75 rts <== NOT EXECUTED ) { register Dual_ported_memory_Control *the_port; if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; 55c96: 7003 moveq #3,%d0 <== NOT EXECUTED ); *id = the_port->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 55c98: 4cee 041c fff0 moveml %fp@(-16),%d2-%d4/%a2 <== NOT EXECUTED 55c9e: 4e5e unlk %fp <== NOT EXECUTED 55ca0: 4e75 rts <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 55ca2: 2039 0007 d1c4 movel 7d1c4 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED 55ca8: 5280 addql #1,%d0 <== NOT EXECUTED 55caa: 23c0 0007 d1c4 movel %d0,7d1c4 <_Thread_Dispatch_disable_level><== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Dual_ported_memory_Control *_Dual_ported_memory_Allocate ( void ) { return (Dual_ported_memory_Control *) _Objects_Allocate( &_Dual_ported_memory_Information ); 55cb0: 4879 0007 d02c pea 7d02c <_Dual_ported_memory_Information> <== NOT EXECUTED 55cb6: 4eb9 0005 b2c0 jsr 5b2c0 <_Objects_Allocate> <== NOT EXECUTED _Thread_Disable_dispatch(); /* to prevent deletion */ the_port = _Dual_ported_memory_Allocate(); if ( !the_port ) { 55cbc: 588f addql #4,%sp <== NOT EXECUTED 55cbe: 2040 moveal %d0,%a0 <== NOT EXECUTED 55cc0: 4a80 tstl %d0 <== NOT EXECUTED 55cc2: 673c beqs 55d00 <== NOT EXECUTED return RTEMS_TOO_MANY; } the_port->internal_base = internal_start; the_port->external_base = external_start; the_port->length = length - 1; 55cc4: 222e 0014 movel %fp@(20),%d1 <== NOT EXECUTED 55cc8: 5381 subql #1,%d1 <== NOT EXECUTED Objects_Name name ) { _Objects_Set_local_object( information, _Objects_Get_index( the_object->id ), 55cca: 2028 0008 movel %a0@(8),%d0 <== NOT EXECUTED 55cce: 2141 0018 movel %d1,%a0@(24) <== NOT EXECUTED Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( 55cd2: 4281 clrl %d1 <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 55cd4: 2279 0007 d044 moveal 7d044 <_Dual_ported_memory_Information+0x18>,%a1<== NOT EXECUTED Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( 55cda: 3200 movew %d0,%d1 <== NOT EXECUTED if ( !the_port ) { _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } the_port->internal_base = internal_start; 55cdc: 2144 0010 movel %d4,%a0@(16) <== NOT EXECUTED the_port->external_base = external_start; 55ce0: 2143 0014 movel %d3,%a0@(20) <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 55ce4: 2388 1c00 movel %a0,%a1@(00000000,%d1:l:4) <== NOT EXECUTED information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 55ce8: 2142 000c movel %d2,%a0@(12) <== NOT EXECUTED &_Dual_ported_memory_Information, &the_port->Object, (Objects_Name) name ); *id = the_port->Object.id; 55cec: 2480 movel %d0,%a2@ <== NOT EXECUTED _Thread_Enable_dispatch(); 55cee: 4eb9 0005 c34a jsr 5c34a <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 55cf4: 4cee 041c fff0 moveml %fp@(-16),%d2-%d4/%a2 <== NOT EXECUTED (Objects_Name) name ); *id = the_port->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 55cfa: 4280 clrl %d0 <== NOT EXECUTED } 55cfc: 4e5e unlk %fp <== NOT EXECUTED 55cfe: 4e75 rts <== NOT EXECUTED _Thread_Disable_dispatch(); /* to prevent deletion */ the_port = _Dual_ported_memory_Allocate(); if ( !the_port ) { _Thread_Enable_dispatch(); 55d00: 4eb9 0005 c34a jsr 5c34a <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_TOO_MANY; 55d06: 7005 moveq #5,%d0 <== NOT EXECUTED ); *id = the_port->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 55d08: 4cee 041c fff0 moveml %fp@(-16),%d2-%d4/%a2 <== NOT EXECUTED 55d0e: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 00055d14 : */ rtems_status_code rtems_port_delete( rtems_id id ) { 55d14: 4e56 fff8 linkw %fp,#-8 <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Dual_ported_memory_Control *) _Objects_Get( &_Dual_ported_memory_Information, id, location ); 55d18: 486e fffc pea %fp@(-4) <== NOT EXECUTED 55d1c: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 55d20: 4879 0007 d02c pea 7d02c <_Dual_ported_memory_Information> <== NOT EXECUTED 55d26: 4eb9 0005 b7bc jsr 5b7bc <_Objects_Get> <== NOT EXECUTED register Dual_ported_memory_Control *the_port; Objects_Locations location; the_port = _Dual_ported_memory_Get( id, &location ); switch ( location ) { 55d2c: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 55d30: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 55d34: 6634 bnes 55d6a <== NOT EXECUTED case OBJECTS_LOCAL: _Objects_Close( &_Dual_ported_memory_Information, &the_port->Object ); 55d36: 2f00 movel %d0,%sp@- <== NOT EXECUTED 55d38: 4879 0007 d02c pea 7d02c <_Dual_ported_memory_Information> <== NOT EXECUTED 55d3e: 2d40 fff8 movel %d0,%fp@(-8) <== NOT EXECUTED 55d42: 4eb9 0005 b350 jsr 5b350 <_Objects_Close> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Dual_ported_memory_Free ( Dual_ported_memory_Control *the_port ) { _Objects_Free( &_Dual_ported_memory_Information, &the_port->Object ); 55d48: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED 55d4c: 2f00 movel %d0,%sp@- <== NOT EXECUTED 55d4e: 4879 0007 d02c pea 7d02c <_Dual_ported_memory_Information> <== NOT EXECUTED 55d54: 4eb9 0005 b614 jsr 5b614 <_Objects_Free> <== NOT EXECUTED _Dual_ported_memory_Free( the_port ); _Thread_Enable_dispatch(); 55d5a: 4eb9 0005 c34a jsr 5c34a <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; 55d60: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 55d64: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 55d66: 4e5e unlk %fp <== NOT EXECUTED 55d68: 4e75 rts <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 55d6a: 7004 moveq #4,%d0 <== NOT EXECUTED } 55d6c: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00055d70 : rtems_status_code rtems_port_external_to_internal( rtems_id id, void *external, void **internal ) { 55d70: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 55d74: 2f0a movel %a2,%sp@- <== NOT EXECUTED 55d76: 246e 0010 moveal %fp@(16),%a2 <== NOT EXECUTED 55d7a: 2f02 movel %d2,%sp@- <== NOT EXECUTED 55d7c: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED register Dual_ported_memory_Control *the_port; Objects_Locations location; uint32_t ending; if ( !internal ) 55d80: 4a8a tstl %a2 <== NOT EXECUTED 55d82: 6762 beqs 55de6 <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Dual_ported_memory_Control *) _Objects_Get( &_Dual_ported_memory_Information, id, location ); 55d84: 486e fffc pea %fp@(-4) <== NOT EXECUTED 55d88: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 55d8c: 4879 0007 d02c pea 7d02c <_Dual_ported_memory_Information> <== NOT EXECUTED 55d92: 4eb9 0005 b7bc jsr 5b7bc <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_port = _Dual_ported_memory_Get( id, &location ); switch ( location ) { 55d98: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 55d9c: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 55da0: 6624 bnes 55dc6 <== NOT EXECUTED RTEMS_INLINE_ROUTINE int32_t _Addresses_Subtract ( const void *left, const void *right ) { return (int32_t) ((const char *) left - (const char *) right); 55da2: 2202 movel %d2,%d1 <== NOT EXECUTED 55da4: 2040 moveal %d0,%a0 <== NOT EXECUTED 55da6: 92a8 0014 subl %a0@(20),%d1 <== NOT EXECUTED case OBJECTS_LOCAL: ending = _Addresses_Subtract( external, the_port->external_base ); if ( ending > the_port->length ) 55daa: b2a8 0018 cmpl %a0@(24),%d1 <== NOT EXECUTED 55dae: 6324 blss 55dd4 <== NOT EXECUTED *internal = external; 55db0: 2482 movel %d2,%a2@ <== NOT EXECUTED else *internal = _Addresses_Add_offset( the_port->internal_base, ending ); _Thread_Enable_dispatch(); 55db2: 4eb9 0005 c34a jsr 5c34a <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; 55db8: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 55dba: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 55dbe: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 55dc2: 4e5e unlk %fp <== NOT EXECUTED 55dc4: 4e75 rts <== NOT EXECUTED 55dc6: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 55dca: 7004 moveq #4,%d0 <== NOT EXECUTED } 55dcc: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 55dd0: 4e5e unlk %fp <== NOT EXECUTED 55dd2: 4e75 rts <== NOT EXECUTED RTEMS_INLINE_ROUTINE void *_Addresses_Add_offset ( const void *base, uintptr_t offset ) { return (void *)((uintptr_t)base + offset); 55dd4: 2040 moveal %d0,%a0 <== NOT EXECUTED 55dd6: d2a8 0010 addl %a0@(16),%d1 <== NOT EXECUTED 55dda: 2481 movel %d1,%a2@ <== NOT EXECUTED if ( ending > the_port->length ) *internal = external; else *internal = _Addresses_Add_offset( the_port->internal_base, ending ); _Thread_Enable_dispatch(); 55ddc: 4eb9 0005 c34a jsr 5c34a <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; 55de2: 4280 clrl %d0 <== NOT EXECUTED 55de4: 60d4 bras 55dba <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 55de6: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED register Dual_ported_memory_Control *the_port; Objects_Locations location; uint32_t ending; if ( !internal ) return RTEMS_INVALID_ADDRESS; 55dea: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 55dec: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 55df0: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00055df4 : rtems_status_code rtems_port_ident( rtems_name name, rtems_id *id ) { 55df4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( 55df8: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 55dfc: 42a7 clrl %sp@- <== NOT EXECUTED 55dfe: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 55e02: 4879 0007 d02c pea 7d02c <_Dual_ported_memory_Information> <== NOT EXECUTED 55e08: 4eb9 0005 b948 jsr 5b948 <_Objects_Name_to_id_u32> <== NOT EXECUTED name, OBJECTS_SEARCH_ALL_NODES, id ); return _Status_Object_name_errors_to_status[ status ]; 55e0e: 41f9 0007 67f0 lea 767f0 <_Status_Object_name_errors_to_status>,%a0<== NOT EXECUTED } 55e14: 4e5e unlk %fp <== NOT EXECUTED 55e16: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED =============================================================================== 00055e1c : rtems_status_code rtems_port_internal_to_external( rtems_id id, void *internal, void **external ) { 55e1c: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 55e20: 2f0a movel %a2,%sp@- <== NOT EXECUTED 55e22: 246e 0010 moveal %fp@(16),%a2 <== NOT EXECUTED 55e26: 2f02 movel %d2,%sp@- <== NOT EXECUTED 55e28: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED register Dual_ported_memory_Control *the_port; Objects_Locations location; uint32_t ending; if ( !external ) 55e2c: 4a8a tstl %a2 <== NOT EXECUTED 55e2e: 6762 beqs 55e92 <== NOT EXECUTED 55e30: 486e fffc pea %fp@(-4) <== NOT EXECUTED 55e34: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 55e38: 4879 0007 d02c pea 7d02c <_Dual_ported_memory_Information> <== NOT EXECUTED 55e3e: 4eb9 0005 b7bc jsr 5b7bc <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_port = _Dual_ported_memory_Get( id, &location ); switch ( location ) { 55e44: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 55e48: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 55e4c: 6624 bnes 55e72 <== NOT EXECUTED RTEMS_INLINE_ROUTINE int32_t _Addresses_Subtract ( const void *left, const void *right ) { return (int32_t) ((const char *) left - (const char *) right); 55e4e: 2202 movel %d2,%d1 <== NOT EXECUTED 55e50: 2040 moveal %d0,%a0 <== NOT EXECUTED 55e52: 92a8 0010 subl %a0@(16),%d1 <== NOT EXECUTED case OBJECTS_LOCAL: ending = _Addresses_Subtract( internal, the_port->internal_base ); if ( ending > the_port->length ) 55e56: b2a8 0018 cmpl %a0@(24),%d1 <== NOT EXECUTED 55e5a: 6324 blss 55e80 <== NOT EXECUTED *external = internal; 55e5c: 2482 movel %d2,%a2@ <== NOT EXECUTED else *external = _Addresses_Add_offset( the_port->external_base, ending ); _Thread_Enable_dispatch(); 55e5e: 4eb9 0005 c34a jsr 5c34a <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; 55e64: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 55e66: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 55e6a: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 55e6e: 4e5e unlk %fp <== NOT EXECUTED 55e70: 4e75 rts <== NOT EXECUTED 55e72: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 55e76: 7004 moveq #4,%d0 <== NOT EXECUTED } 55e78: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 55e7c: 4e5e unlk %fp <== NOT EXECUTED 55e7e: 4e75 rts <== NOT EXECUTED RTEMS_INLINE_ROUTINE void *_Addresses_Add_offset ( const void *base, uintptr_t offset ) { return (void *)((uintptr_t)base + offset); 55e80: 2040 moveal %d0,%a0 <== NOT EXECUTED 55e82: d2a8 0014 addl %a0@(20),%d1 <== NOT EXECUTED 55e86: 2481 movel %d1,%a2@ <== NOT EXECUTED if ( ending > the_port->length ) *external = internal; else *external = _Addresses_Add_offset( the_port->external_base, ending ); _Thread_Enable_dispatch(); 55e88: 4eb9 0005 c34a jsr 5c34a <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; 55e8e: 4280 clrl %d0 <== NOT EXECUTED 55e90: 60d4 bras 55e66 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 55e92: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED register Dual_ported_memory_Control *the_port; Objects_Locations location; uint32_t ending; if ( !external ) return RTEMS_INVALID_ADDRESS; 55e96: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 55e98: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 55e9c: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00056a10 : */ rtems_status_code rtems_rate_monotonic_cancel( rtems_id id ) { 56a10: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 56a14: 2f0a movel %a2,%sp@- <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Rate_monotonic_Control *) _Objects_Get( &_Rate_monotonic_Information, id, location ); 56a16: 486e fffc pea %fp@(-4) <== NOT EXECUTED 56a1a: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 56a1e: 4879 0007 d09c pea 7d09c <_Rate_monotonic_Information> <== NOT EXECUTED 56a24: 4eb9 0005 b7bc jsr 5b7bc <_Objects_Get> <== NOT EXECUTED Rate_monotonic_Control *the_period; Objects_Locations location; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { 56a2a: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 56a2e: 2440 moveal %d0,%a2 <== NOT EXECUTED 56a30: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 56a34: 670a beqs 56a40 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 56a36: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 56a3a: 7004 moveq #4,%d0 <== NOT EXECUTED } 56a3c: 4e5e unlk %fp <== NOT EXECUTED 56a3e: 4e75 rts <== NOT EXECUTED the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_Thread_Is_executing( the_period->owner ) ) { 56a40: 2039 0007 d388 movel 7d388 <_Per_CPU_Information+0xc>,%d0 <== NOT EXECUTED 56a46: b0aa 0040 cmpl %a2@(64),%d0 <== NOT EXECUTED 56a4a: 6710 beqs 56a5c <== NOT EXECUTED _Thread_Enable_dispatch(); 56a4c: 4eb9 0005 c34a jsr 5c34a <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 56a52: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED switch ( location ) { case OBJECTS_LOCAL: if ( !_Thread_Is_executing( the_period->owner ) ) { _Thread_Enable_dispatch(); return RTEMS_NOT_OWNER_OF_RESOURCE; 56a56: 7017 moveq #23,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 56a58: 4e5e unlk %fp <== NOT EXECUTED 56a5a: 4e75 rts <== NOT EXECUTED case OBJECTS_LOCAL: if ( !_Thread_Is_executing( the_period->owner ) ) { _Thread_Enable_dispatch(); return RTEMS_NOT_OWNER_OF_RESOURCE; } (void) _Watchdog_Remove( &the_period->Timer ); 56a5c: 486a 0010 pea %a2@(16) <== NOT EXECUTED 56a60: 4eb9 0005 d630 jsr 5d630 <_Watchdog_Remove> <== NOT EXECUTED the_period->state = RATE_MONOTONIC_INACTIVE; 56a66: 42aa 0038 clrl %a2@(56) <== NOT EXECUTED _Thread_Enable_dispatch(); 56a6a: 4eb9 0005 c34a jsr 5c34a <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 56a70: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED return RTEMS_NOT_OWNER_OF_RESOURCE; } (void) _Watchdog_Remove( &the_period->Timer ); the_period->state = RATE_MONOTONIC_INACTIVE; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 56a74: 588f addql #4,%sp <== NOT EXECUTED 56a76: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 56a78: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00047188 : rtems_status_code rtems_rate_monotonic_create( rtems_name name, rtems_id *id ) { 47188: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 4718c: 48d7 0c04 moveml %d2/%a2-%a3,%sp@ <== NOT EXECUTED 47190: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED 47194: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED Rate_monotonic_Control *the_period; if ( !rtems_is_name_valid( name ) ) 47198: 6700 00ae beqw 47248 <== NOT EXECUTED return RTEMS_INVALID_NAME; if ( !id ) 4719c: 4a8a tstl %a2 <== NOT EXECUTED 4719e: 6700 00c6 beqw 47266 <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 471a2: 2039 0006 0620 movel 60620 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED 471a8: 5280 addql #1,%d0 <== NOT EXECUTED 471aa: 23c0 0006 0620 movel %d0,60620 <_Thread_Dispatch_disable_level><== NOT EXECUTED * the inactive chain of free period control blocks. */ RTEMS_INLINE_ROUTINE Rate_monotonic_Control *_Rate_monotonic_Allocate( void ) { return (Rate_monotonic_Control *) _Objects_Allocate( &_Rate_monotonic_Information ); 471b0: 4879 0006 0530 pea 60530 <_Rate_monotonic_Information> <== NOT EXECUTED 471b6: 4eb9 0004 92ac jsr 492ac <_Objects_Allocate> <== NOT EXECUTED _Thread_Disable_dispatch(); /* to prevent deletion */ the_period = _Rate_monotonic_Allocate(); if ( !the_period ) { 471bc: 588f addql #4,%sp <== NOT EXECUTED 471be: 2040 moveal %d0,%a0 <== NOT EXECUTED 471c0: 4a80 tstl %d0 <== NOT EXECUTED 471c2: 6700 0090 beqw 47254 <== NOT EXECUTED the_period->owner = _Thread_Executing; the_period->state = RATE_MONOTONIC_INACTIVE; _Watchdog_Initialize( &the_period->Timer, NULL, 0, NULL ); _Rate_monotonic_Reset_statistics( the_period ); 471c6: 42a8 0054 clrl %a0@(84) <== NOT EXECUTED 471ca: 43e8 007c lea %a0@(124),%a1 <== NOT EXECUTED 471ce: 42a8 0058 clrl %a0@(88) <== NOT EXECUTED Objects_Name name ) { _Objects_Set_local_object( information, _Objects_Get_index( the_object->id ), 471d2: 2028 0008 movel %a0@(8),%d0 <== NOT EXECUTED 471d6: 42a8 0064 clrl %a0@(100) <== NOT EXECUTED if ( !the_period ) { _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } the_period->owner = _Thread_Executing; 471da: 47f9 0006 07dc lea 607dc <_Per_CPU_Information+0xc>,%a3 <== NOT EXECUTED the_period->state = RATE_MONOTONIC_INACTIVE; _Watchdog_Initialize( &the_period->Timer, NULL, 0, NULL ); _Rate_monotonic_Reset_statistics( the_period ); 471e0: 42a8 0068 clrl %a0@(104) <== NOT EXECUTED Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( 471e4: 4281 clrl %d1 <== NOT EXECUTED 471e6: 42a8 006c clrl %a0@(108) <== NOT EXECUTED if ( !the_period ) { _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } the_period->owner = _Thread_Executing; 471ea: 2153 0040 movel %a3@,%a0@(64) <== NOT EXECUTED 471ee: 3200 movew %d0,%d1 <== NOT EXECUTED the_period->state = RATE_MONOTONIC_INACTIVE; _Watchdog_Initialize( &the_period->Timer, NULL, 0, NULL ); _Rate_monotonic_Reset_statistics( the_period ); 471f0: 42a8 0070 clrl %a0@(112) <== NOT EXECUTED 471f4: 4299 clrl %a1@+ <== NOT EXECUTED 471f6: 4299 clrl %a1@+ <== NOT EXECUTED 471f8: 4299 clrl %a1@+ <== NOT EXECUTED 471fa: 4291 clrl %a1@ <== NOT EXECUTED 471fc: 227c 7fff ffff moveal #2147483647,%a1 <== NOT EXECUTED 47202: 2149 005c movel %a1,%a0@(92) <== NOT EXECUTED 47206: 2149 0060 movel %a1,%a0@(96) <== NOT EXECUTED 4720a: 2149 0074 movel %a1,%a0@(116) <== NOT EXECUTED 4720e: 2149 0078 movel %a1,%a0@(120) <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 47212: 2279 0006 0548 moveal 60548 <_Rate_monotonic_Information+0x18>,%a1<== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } the_period->owner = _Thread_Executing; the_period->state = RATE_MONOTONIC_INACTIVE; 47218: 42a8 0038 clrl %a0@(56) <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 4721c: 42a8 0018 clrl %a0@(24) <== NOT EXECUTED the_watchdog->routine = routine; 47220: 42a8 002c clrl %a0@(44) <== NOT EXECUTED the_watchdog->id = id; 47224: 42a8 0030 clrl %a0@(48) <== NOT EXECUTED the_watchdog->user_data = user_data; 47228: 42a8 0034 clrl %a0@(52) <== NOT EXECUTED 4722c: 2388 1c00 movel %a0,%a1@(00000000,%d1:l:4) <== NOT EXECUTED information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 47230: 2142 000c movel %d2,%a0@(12) <== NOT EXECUTED &_Rate_monotonic_Information, &the_period->Object, (Objects_Name) name ); *id = the_period->Object.id; 47234: 2480 movel %d0,%a2@ <== NOT EXECUTED _Thread_Enable_dispatch(); 47236: 4eb9 0004 a3ea jsr 4a3ea <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 4723c: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3 <== NOT EXECUTED (Objects_Name) name ); *id = the_period->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 47242: 4280 clrl %d0 <== NOT EXECUTED } 47244: 4e5e unlk %fp <== NOT EXECUTED 47246: 4e75 rts <== NOT EXECUTED ) { Rate_monotonic_Control *the_period; if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; 47248: 7003 moveq #3,%d0 <== NOT EXECUTED ); *id = the_period->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 4724a: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3 <== NOT EXECUTED 47250: 4e5e unlk %fp <== NOT EXECUTED 47252: 4e75 rts <== NOT EXECUTED _Thread_Disable_dispatch(); /* to prevent deletion */ the_period = _Rate_monotonic_Allocate(); if ( !the_period ) { _Thread_Enable_dispatch(); 47254: 4eb9 0004 a3ea jsr 4a3ea <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_TOO_MANY; 4725a: 7005 moveq #5,%d0 <== NOT EXECUTED ); *id = the_period->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 4725c: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3 <== NOT EXECUTED 47262: 4e5e unlk %fp <== NOT EXECUTED 47264: 4e75 rts <== NOT EXECUTED if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; if ( !id ) return RTEMS_INVALID_ADDRESS; 47266: 7009 moveq #9,%d0 <== NOT EXECUTED ); *id = the_period->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 47268: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3 <== NOT EXECUTED 4726e: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 00056b68 : */ rtems_status_code rtems_rate_monotonic_delete( rtems_id id ) { 56b68: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 56b6c: 2f0a movel %a2,%sp@- <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Rate_monotonic_Control *) _Objects_Get( &_Rate_monotonic_Information, id, location ); 56b6e: 486e fffc pea %fp@(-4) <== NOT EXECUTED 56b72: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 56b76: 4879 0007 d09c pea 7d09c <_Rate_monotonic_Information> <== NOT EXECUTED 56b7c: 4eb9 0005 b7bc jsr 5b7bc <_Objects_Get> <== NOT EXECUTED Rate_monotonic_Control *the_period; Objects_Locations location; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { 56b82: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 56b86: 2440 moveal %d0,%a2 <== NOT EXECUTED 56b88: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 56b8c: 663e bnes 56bcc <== NOT EXECUTED case OBJECTS_LOCAL: _Objects_Close( &_Rate_monotonic_Information, &the_period->Object ); 56b8e: 2f00 movel %d0,%sp@- <== NOT EXECUTED 56b90: 4879 0007 d09c pea 7d09c <_Rate_monotonic_Information> <== NOT EXECUTED 56b96: 4eb9 0005 b350 jsr 5b350 <_Objects_Close> <== NOT EXECUTED (void) _Watchdog_Remove( &the_period->Timer ); 56b9c: 486a 0010 pea %a2@(16) <== NOT EXECUTED 56ba0: 4eb9 0005 d630 jsr 5d630 <_Watchdog_Remove> <== NOT EXECUTED the_period->state = RATE_MONOTONIC_INACTIVE; 56ba6: 42aa 0038 clrl %a2@(56) <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Rate_monotonic_Free ( Rate_monotonic_Control *the_period ) { _Objects_Free( &_Rate_monotonic_Information, &the_period->Object ); 56baa: 2f0a movel %a2,%sp@- <== NOT EXECUTED 56bac: 4879 0007 d09c pea 7d09c <_Rate_monotonic_Information> <== NOT EXECUTED 56bb2: 4eb9 0005 b614 jsr 5b614 <_Objects_Free> <== NOT EXECUTED _Rate_monotonic_Free( the_period ); _Thread_Enable_dispatch(); 56bb8: 4eb9 0005 c34a jsr 5c34a <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 56bbe: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED _Objects_Close( &_Rate_monotonic_Information, &the_period->Object ); (void) _Watchdog_Remove( &the_period->Timer ); the_period->state = RATE_MONOTONIC_INACTIVE; _Rate_monotonic_Free( the_period ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 56bc2: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED 56bc6: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 56bc8: 4e5e unlk %fp <== NOT EXECUTED 56bca: 4e75 rts <== NOT EXECUTED 56bcc: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 56bd0: 7004 moveq #4,%d0 <== NOT EXECUTED } 56bd2: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 0004d160 : rtems_status_code rtems_rate_monotonic_get_statistics( rtems_id id, rtems_rate_monotonic_period_statistics *statistics ) { 4d160: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 4d164: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4d166: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED Objects_Locations location; Rate_monotonic_Control *the_period; rtems_rate_monotonic_period_statistics *dst; Rate_monotonic_Statistics *src; if ( !statistics ) 4d16a: 4a8a tstl %a2 <== NOT EXECUTED 4d16c: 6700 00a6 beqw 4d214 <== NOT EXECUTED 4d170: 486e fffc pea %fp@(-4) <== NOT EXECUTED 4d174: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4d178: 4879 0006 0530 pea 60530 <_Rate_monotonic_Information> <== NOT EXECUTED 4d17e: 4eb9 0004 985c jsr 4985c <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { 4d184: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4d188: 2040 moveal %d0,%a0 <== NOT EXECUTED 4d18a: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 4d18e: 667a bnes 4d20a <== NOT EXECUTED case OBJECTS_LOCAL: dst = statistics; src = &the_period->Statistics; dst->count = src->count; 4d190: 24a8 0054 movel %a0@(84),%a2@ <== NOT EXECUTED dst->missed_count = src->missed_count; 4d194: 2568 0058 0004 movel %a0@(88),%a2@(4) <== NOT EXECUTED #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timestamp_To_timespec( &src->min_cpu_time, &dst->min_cpu_time ); 4d19a: 2028 005c movel %a0@(92),%d0 <== NOT EXECUTED 4d19e: 2228 0060 movel %a0@(96),%d1 <== NOT EXECUTED 4d1a2: 2540 0008 movel %d0,%a2@(8) <== NOT EXECUTED 4d1a6: 2541 000c movel %d1,%a2@(12) <== NOT EXECUTED _Timestamp_To_timespec( &src->max_cpu_time, &dst->max_cpu_time ); 4d1aa: 2028 0064 movel %a0@(100),%d0 <== NOT EXECUTED 4d1ae: 2228 0068 movel %a0@(104),%d1 <== NOT EXECUTED 4d1b2: 2540 0010 movel %d0,%a2@(16) <== NOT EXECUTED 4d1b6: 2541 0014 movel %d1,%a2@(20) <== NOT EXECUTED _Timestamp_To_timespec( &src->total_cpu_time, &dst->total_cpu_time ); 4d1ba: 2028 006c movel %a0@(108),%d0 <== NOT EXECUTED 4d1be: 2228 0070 movel %a0@(112),%d1 <== NOT EXECUTED 4d1c2: 2540 0018 movel %d0,%a2@(24) <== NOT EXECUTED 4d1c6: 2541 001c movel %d1,%a2@(28) <== NOT EXECUTED _Timestamp_To_timespec( &src->min_wall_time, &dst->min_wall_time ); 4d1ca: 2028 0074 movel %a0@(116),%d0 <== NOT EXECUTED 4d1ce: 2228 0078 movel %a0@(120),%d1 <== NOT EXECUTED 4d1d2: 2540 0020 movel %d0,%a2@(32) <== NOT EXECUTED 4d1d6: 2541 0024 movel %d1,%a2@(36) <== NOT EXECUTED _Timestamp_To_timespec( &src->max_wall_time, &dst->max_wall_time ); 4d1da: 2028 007c movel %a0@(124),%d0 <== NOT EXECUTED 4d1de: 2228 0080 movel %a0@(128),%d1 <== NOT EXECUTED 4d1e2: 2540 0028 movel %d0,%a2@(40) <== NOT EXECUTED 4d1e6: 2541 002c movel %d1,%a2@(44) <== NOT EXECUTED _Timestamp_To_timespec( &src->total_wall_time, &dst->total_wall_time ); 4d1ea: 2028 0084 movel %a0@(132),%d0 <== NOT EXECUTED 4d1ee: 2228 0088 movel %a0@(136),%d1 <== NOT EXECUTED 4d1f2: 2540 0030 movel %d0,%a2@(48) <== NOT EXECUTED 4d1f6: 2541 0034 movel %d1,%a2@(52) <== NOT EXECUTED dst->min_wall_time = src->min_wall_time; dst->max_wall_time = src->max_wall_time; dst->total_wall_time = src->total_wall_time; #endif _Thread_Enable_dispatch(); 4d1fa: 4eb9 0004 a3ea jsr 4a3ea <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4d200: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED dst->max_wall_time = src->max_wall_time; dst->total_wall_time = src->total_wall_time; #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 4d204: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4d206: 4e5e unlk %fp <== NOT EXECUTED 4d208: 4e75 rts <== NOT EXECUTED 4d20a: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 4d20e: 7004 moveq #4,%d0 <== NOT EXECUTED } 4d210: 4e5e unlk %fp <== NOT EXECUTED 4d212: 4e75 rts <== NOT EXECUTED 4d214: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED Rate_monotonic_Control *the_period; rtems_rate_monotonic_period_statistics *dst; Rate_monotonic_Statistics *src; if ( !statistics ) return RTEMS_INVALID_ADDRESS; 4d218: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4d21a: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 0004d220 : rtems_status_code rtems_rate_monotonic_get_status( rtems_id id, rtems_rate_monotonic_period_status *status ) { 4d220: 4e56 ffec linkw %fp,#-20 <== NOT EXECUTED 4d224: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4d226: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED Objects_Locations location; Rate_monotonic_Period_time_t since_last_period; Rate_monotonic_Control *the_period; bool valid_status; if ( !status ) 4d22a: 4a8a tstl %a2 <== NOT EXECUTED 4d22c: 6700 00a0 beqw 4d2ce <== NOT EXECUTED 4d230: 486e fffc pea %fp@(-4) <== NOT EXECUTED 4d234: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4d238: 4879 0006 0530 pea 60530 <_Rate_monotonic_Information> <== NOT EXECUTED 4d23e: 4eb9 0004 985c jsr 4985c <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { 4d244: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4d248: 2040 moveal %d0,%a0 <== NOT EXECUTED 4d24a: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 4d24e: 6632 bnes 4d282 <== NOT EXECUTED case OBJECTS_LOCAL: status->owner = the_period->owner->Object.id; 4d250: 2268 0040 moveal %a0@(64),%a1 <== NOT EXECUTED 4d254: 24a9 0008 movel %a1@(8),%a2@ <== NOT EXECUTED status->state = the_period->state; 4d258: 2028 0038 movel %a0@(56),%d0 <== NOT EXECUTED 4d25c: 2540 0004 movel %d0,%a2@(4) <== NOT EXECUTED /* * If the period is inactive, there is no information. */ if ( status->state == RATE_MONOTONIC_INACTIVE ) { 4d260: 662a bnes 4d28c <== NOT EXECUTED #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timespec_Set_to_zero( &status->since_last_period ); 4d262: 42aa 0008 clrl %a2@(8) <== NOT EXECUTED 4d266: 42aa 000c clrl %a2@(12) <== NOT EXECUTED _Timespec_Set_to_zero( &status->executed_since_last_period ); 4d26a: 42aa 0010 clrl %a2@(16) <== NOT EXECUTED 4d26e: 42aa 0014 clrl %a2@(20) <== NOT EXECUTED status->since_last_period = since_last_period; status->executed_since_last_period = executed; #endif } _Thread_Enable_dispatch(); 4d272: 4eb9 0004 a3ea jsr 4a3ea <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; 4d278: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4d27a: 246e ffe8 moveal %fp@(-24),%a2 <== NOT EXECUTED 4d27e: 4e5e unlk %fp <== NOT EXECUTED 4d280: 4e75 rts <== NOT EXECUTED 4d282: 246e ffe8 moveal %fp@(-24),%a2 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 4d286: 7004 moveq #4,%d0 <== NOT EXECUTED } 4d288: 4e5e unlk %fp <== NOT EXECUTED 4d28a: 4e75 rts <== NOT EXECUTED } else { /* * Grab the current status. */ valid_status = 4d28c: 486e fff4 pea %fp@(-12) <== NOT EXECUTED 4d290: 486e ffec pea %fp@(-20) <== NOT EXECUTED 4d294: 2f08 movel %a0,%sp@- <== NOT EXECUTED 4d296: 4eb9 0004 72a0 jsr 472a0 <_Rate_monotonic_Get_status> <== NOT EXECUTED _Rate_monotonic_Get_status( the_period, &since_last_period, &executed ); if (!valid_status) { 4d29c: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4d2a0: 4a00 tstb %d0 <== NOT EXECUTED 4d2a2: 6734 beqs 4d2d8 <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_NOT_DEFINED; } #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timestamp_To_timespec( 4d2a4: 202e ffec movel %fp@(-20),%d0 <== NOT EXECUTED 4d2a8: 222e fff0 movel %fp@(-16),%d1 <== NOT EXECUTED 4d2ac: 2540 0008 movel %d0,%a2@(8) <== NOT EXECUTED 4d2b0: 2541 000c movel %d1,%a2@(12) <== NOT EXECUTED &since_last_period, &status->since_last_period ); _Timestamp_To_timespec( 4d2b4: 202e fff4 movel %fp@(-12),%d0 <== NOT EXECUTED 4d2b8: 222e fff8 movel %fp@(-8),%d1 <== NOT EXECUTED 4d2bc: 2540 0010 movel %d0,%a2@(16) <== NOT EXECUTED 4d2c0: 2541 0014 movel %d1,%a2@(20) <== NOT EXECUTED status->since_last_period = since_last_period; status->executed_since_last_period = executed; #endif } _Thread_Enable_dispatch(); 4d2c4: 4eb9 0004 a3ea jsr 4a3ea <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; 4d2ca: 4280 clrl %d0 <== NOT EXECUTED 4d2cc: 60ac bras 4d27a <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4d2ce: 246e ffe8 moveal %fp@(-24),%a2 <== NOT EXECUTED Rate_monotonic_Period_time_t since_last_period; Rate_monotonic_Control *the_period; bool valid_status; if ( !status ) return RTEMS_INVALID_ADDRESS; 4d2d2: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4d2d4: 4e5e unlk %fp <== NOT EXECUTED 4d2d6: 4e75 rts <== NOT EXECUTED valid_status = _Rate_monotonic_Get_status( the_period, &since_last_period, &executed ); if (!valid_status) { _Thread_Enable_dispatch(); 4d2d8: 4eb9 0004 a3ea jsr 4a3ea <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4d2de: 246e ffe8 moveal %fp@(-24),%a2 <== NOT EXECUTED _Rate_monotonic_Get_status( the_period, &since_last_period, &executed ); if (!valid_status) { _Thread_Enable_dispatch(); return RTEMS_NOT_DEFINED; 4d2e2: 700b moveq #11,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4d2e4: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00047274 : rtems_status_code rtems_rate_monotonic_ident( rtems_name name, rtems_id *id ) { 47274: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( 47278: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 4727c: 2f3c 7fff ffff movel #2147483647,%sp@- <== NOT EXECUTED 47282: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 47286: 4879 0006 0530 pea 60530 <_Rate_monotonic_Information> <== NOT EXECUTED 4728c: 4eb9 0004 99e8 jsr 499e8 <_Objects_Name_to_id_u32> <== NOT EXECUTED name, OBJECTS_SEARCH_LOCAL_NODE, id ); return _Status_Object_name_errors_to_status[ status ]; 47292: 41f9 0005 dfe6 lea 5dfe6 <_Status_Object_name_errors_to_status>,%a0<== NOT EXECUTED } 47298: 4e5e unlk %fp <== NOT EXECUTED 4729a: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED =============================================================================== 000474f0 : rtems_status_code rtems_rate_monotonic_period( rtems_id id, rtems_interval length ) { 474f0: 4e56 fff8 linkw %fp,#-8 <== NOT EXECUTED 474f4: 2f03 movel %d3,%sp@- <== NOT EXECUTED 474f6: 2f02 movel %d2,%sp@- <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Rate_monotonic_Control *) _Objects_Get( &_Rate_monotonic_Information, id, location ); 474f8: 486e fffc pea %fp@(-4) <== NOT EXECUTED 474fc: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED 47500: 2f02 movel %d2,%sp@- <== NOT EXECUTED 47502: 4879 0006 0530 pea 60530 <_Rate_monotonic_Information> <== NOT EXECUTED 47508: 4eb9 0004 985c jsr 4985c <_Objects_Get> <== NOT EXECUTED rtems_rate_monotonic_period_states local_state; ISR_Level level; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { 4750e: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 47512: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 47516: 6624 bnes 4753c <== NOT EXECUTED case OBJECTS_LOCAL: if ( !_Thread_Is_executing( the_period->owner ) ) { 47518: 2279 0006 07dc moveal 607dc <_Per_CPU_Information+0xc>,%a1 <== NOT EXECUTED 4751e: 2040 moveal %d0,%a0 <== NOT EXECUTED 47520: b3e8 0040 cmpal %a0@(64),%a1 <== NOT EXECUTED 47524: 6726 beqs 4754c <== NOT EXECUTED _Thread_Enable_dispatch(); 47526: 4eb9 0004 a3ea jsr 4a3ea <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_NOT_OWNER_OF_RESOURCE; 4752c: 7617 moveq #23,%d3 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4752e: 2003 movel %d3,%d0 <== NOT EXECUTED 47530: 242e fff0 movel %fp@(-16),%d2 <== NOT EXECUTED 47534: 262e fff4 movel %fp@(-12),%d3 <== NOT EXECUTED 47538: 4e5e unlk %fp <== NOT EXECUTED 4753a: 4e75 rts <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 4753c: 7604 moveq #4,%d3 <== NOT EXECUTED } 4753e: 2003 movel %d3,%d0 <== NOT EXECUTED 47540: 242e fff0 movel %fp@(-16),%d2 <== NOT EXECUTED 47544: 262e fff4 movel %fp@(-12),%d3 <== NOT EXECUTED 47548: 4e5e unlk %fp <== NOT EXECUTED 4754a: 4e75 rts <== NOT EXECUTED if ( !_Thread_Is_executing( the_period->owner ) ) { _Thread_Enable_dispatch(); return RTEMS_NOT_OWNER_OF_RESOURCE; } if ( length == RTEMS_PERIOD_STATUS ) { 4754c: 4aae 000c tstl %fp@(12) <== NOT EXECUTED 47550: 6624 bnes 47576 <== NOT EXECUTED switch ( the_period->state ) { 47552: 2040 moveal %d0,%a0 <== NOT EXECUTED 47554: 7204 moveq #4,%d1 <== NOT EXECUTED 47556: 2028 0038 movel %a0@(56),%d0 <== NOT EXECUTED 4755a: b280 cmpl %d0,%d1 <== NOT EXECUTED 4755c: 6400 008a bccw 475e8 <== NOT EXECUTED 47560: 4283 clrl %d3 <== NOT EXECUTED case RATE_MONOTONIC_ACTIVE: default: /* unreached -- only to remove warnings */ return_value = RTEMS_SUCCESSFUL; break; } _Thread_Enable_dispatch(); 47562: 4eb9 0004 a3ea jsr 4a3ea <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 47568: 2003 movel %d3,%d0 <== NOT EXECUTED 4756a: 242e fff0 movel %fp@(-16),%d2 <== NOT EXECUTED 4756e: 262e fff4 movel %fp@(-12),%d3 <== NOT EXECUTED 47572: 4e5e unlk %fp <== NOT EXECUTED 47574: 4e75 rts <== NOT EXECUTED } _Thread_Enable_dispatch(); return( return_value ); } _ISR_Disable( level ); 47576: 223c 0000 0700 movel #1792,%d1 <== NOT EXECUTED 4757c: 40c3 movew %sr,%d3 <== NOT EXECUTED 4757e: 8283 orl %d3,%d1 <== NOT EXECUTED 47580: 46c1 movew %d1,%sr <== NOT EXECUTED if ( the_period->state == RATE_MONOTONIC_INACTIVE ) { 47582: 2040 moveal %d0,%a0 <== NOT EXECUTED 47584: 2228 0038 movel %a0@(56),%d1 <== NOT EXECUTED 47588: 6772 beqs 475fc <== NOT EXECUTED _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } if ( the_period->state == RATE_MONOTONIC_ACTIVE ) { 4758a: 7402 moveq #2,%d2 <== NOT EXECUTED 4758c: b481 cmpl %d1,%d2 <== NOT EXECUTED 4758e: 6700 00d2 beqw 47662 <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } if ( the_period->state == RATE_MONOTONIC_EXPIRED ) { 47592: 7404 moveq #4,%d2 <== NOT EXECUTED 47594: b481 cmpl %d1,%d2 <== NOT EXECUTED 47596: 66a4 bnes 4753c <== NOT EXECUTED /* * Update statistics from the concluding period */ _Rate_monotonic_Update_statistics( the_period ); 47598: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4759a: 2d40 fff8 movel %d0,%fp@(-8) <== NOT EXECUTED 4759e: 4eb9 0004 73d6 jsr 473d6 <_Rate_monotonic_Update_statistics><== NOT EXECUTED _ISR_Enable( level ); 475a4: 46c3 movew %d3,%sr <== NOT EXECUTED the_period->state = RATE_MONOTONIC_ACTIVE; 475a6: 7202 moveq #2,%d1 <== NOT EXECUTED the_period->next_length = length; _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); return RTEMS_TIMEOUT; 475a8: 7606 moveq #6,%d3 <== NOT EXECUTED */ _Rate_monotonic_Update_statistics( the_period ); _ISR_Enable( level ); the_period->state = RATE_MONOTONIC_ACTIVE; 475aa: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED 475ae: 2040 moveal %d0,%a0 <== NOT EXECUTED the_period->next_length = length; 475b0: 226e 000c moveal %fp@(12),%a1 <== NOT EXECUTED */ _Rate_monotonic_Update_statistics( the_period ); _ISR_Enable( level ); the_period->state = RATE_MONOTONIC_ACTIVE; 475b4: 2141 0038 movel %d1,%a0@(56) <== NOT EXECUTED the_period->next_length = length; 475b8: 2149 003c movel %a1,%a0@(60) <== NOT EXECUTED Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 475bc: 2149 001c movel %a1,%a0@(28) <== NOT EXECUTED _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 475c0: 4868 0010 pea %a0@(16) <== NOT EXECUTED 475c4: 4879 0006 0700 pea 60700 <_Watchdog_Ticks_chain> <== NOT EXECUTED 475ca: 4eb9 0004 b3cc jsr 4b3cc <_Watchdog_Insert> <== NOT EXECUTED _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); 475d0: 4eb9 0004 a3ea jsr 4a3ea <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 475d6: 242e fff0 movel %fp@(-16),%d2 <== NOT EXECUTED 475da: 2003 movel %d3,%d0 <== NOT EXECUTED the_period->state = RATE_MONOTONIC_ACTIVE; the_period->next_length = length; _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); return RTEMS_TIMEOUT; 475dc: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 475e0: 262e fff4 movel %fp@(-12),%d3 <== NOT EXECUTED 475e4: 4e5e unlk %fp <== NOT EXECUTED 475e6: 4e75 rts <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_NOT_OWNER_OF_RESOURCE; } if ( length == RTEMS_PERIOD_STATUS ) { switch ( the_period->state ) { 475e8: 41f9 0005 de06 lea 5de06 ,%a0 <== NOT EXECUTED 475ee: 2630 0c00 movel %a0@(00000000,%d0:l:4),%d3 <== NOT EXECUTED case RATE_MONOTONIC_ACTIVE: default: /* unreached -- only to remove warnings */ return_value = RTEMS_SUCCESSFUL; break; } _Thread_Enable_dispatch(); 475f2: 4eb9 0004 a3ea jsr 4a3ea <_Thread_Enable_dispatch> <== NOT EXECUTED 475f8: 6000 ff6e braw 47568 <== NOT EXECUTED return( return_value ); } _ISR_Disable( level ); if ( the_period->state == RATE_MONOTONIC_INACTIVE ) { _ISR_Enable( level ); 475fc: 46c3 movew %d3,%sr <== NOT EXECUTED /* * Baseline statistics information for the beginning of a period. */ _Rate_monotonic_Initiate_statistics( the_period ); 475fe: 2f00 movel %d0,%sp@- <== NOT EXECUTED the_period->next_length = length; _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 47600: 4283 clrl %d3 <== NOT EXECUTED _ISR_Enable( level ); /* * Baseline statistics information for the beginning of a period. */ _Rate_monotonic_Initiate_statistics( the_period ); 47602: 2d40 fff8 movel %d0,%fp@(-8) <== NOT EXECUTED 47606: 4eb9 0004 7358 jsr 47358 <_Rate_monotonic_Initiate_statistics><== NOT EXECUTED Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 4760c: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED 47610: 2240 moveal %d0,%a1 <== NOT EXECUTED 47612: 223c 0004 7974 movel #293236,%d1 <== NOT EXECUTED the_watchdog->id = id; 47618: 2342 0030 movel %d2,%a1@(48) <== NOT EXECUTED _Rate_monotonic_Timeout, id, NULL ); the_period->next_length = length; 4761c: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 47620: 2341 002c movel %d1,%a1@(44) <== NOT EXECUTED /* * Baseline statistics information for the beginning of a period. */ _Rate_monotonic_Initiate_statistics( the_period ); the_period->state = RATE_MONOTONIC_ACTIVE; 47624: 7202 moveq #2,%d1 <== NOT EXECUTED _Rate_monotonic_Timeout, id, NULL ); the_period->next_length = length; 47626: 2342 003c movel %d2,%a1@(60) <== NOT EXECUTED Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 4762a: 2342 001c movel %d2,%a1@(28) <== NOT EXECUTED /* * Baseline statistics information for the beginning of a period. */ _Rate_monotonic_Initiate_statistics( the_period ); the_period->state = RATE_MONOTONIC_ACTIVE; 4762e: 2341 0038 movel %d1,%a1@(56) <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 47632: 42a9 0018 clrl %a1@(24) <== NOT EXECUTED the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data; 47636: 42a9 0034 clrl %a1@(52) <== NOT EXECUTED ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 4763a: 4869 0010 pea %a1@(16) <== NOT EXECUTED 4763e: 4879 0006 0700 pea 60700 <_Watchdog_Ticks_chain> <== NOT EXECUTED 47644: 4eb9 0004 b3cc jsr 4b3cc <_Watchdog_Insert> <== NOT EXECUTED ); the_period->next_length = length; _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); 4764a: 4eb9 0004 a3ea jsr 4a3ea <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 47650: 242e fff0 movel %fp@(-16),%d2 <== NOT EXECUTED 47654: 2003 movel %d3,%d0 <== NOT EXECUTED the_period->next_length = length; _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 47656: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4765a: 262e fff4 movel %fp@(-12),%d3 <== NOT EXECUTED 4765e: 4e5e unlk %fp <== NOT EXECUTED 47660: 4e75 rts <== NOT EXECUTED if ( the_period->state == RATE_MONOTONIC_ACTIVE ) { /* * Update statistics from the concluding period. */ _Rate_monotonic_Update_statistics( the_period ); 47662: 2f00 movel %d0,%sp@- <== NOT EXECUTED 47664: 2d40 fff8 movel %d0,%fp@(-8) <== NOT EXECUTED 47668: 4eb9 0004 73d6 jsr 473d6 <_Rate_monotonic_Update_statistics><== NOT EXECUTED /* * This tells the _Rate_monotonic_Timeout that this task is * in the process of blocking on the period and that we * may be changing the length of the next period. */ the_period->state = RATE_MONOTONIC_OWNER_IS_BLOCKING; 4766e: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED 47672: 7201 moveq #1,%d1 <== NOT EXECUTED 47674: 2040 moveal %d0,%a0 <== NOT EXECUTED the_period->next_length = length; 47676: 226e 000c moveal %fp@(12),%a1 <== NOT EXECUTED /* * This tells the _Rate_monotonic_Timeout that this task is * in the process of blocking on the period and that we * may be changing the length of the next period. */ the_period->state = RATE_MONOTONIC_OWNER_IS_BLOCKING; 4767a: 2141 0038 movel %d1,%a0@(56) <== NOT EXECUTED the_period->next_length = length; 4767e: 2149 003c movel %a1,%a0@(60) <== NOT EXECUTED _ISR_Enable( level ); 47682: 46c3 movew %d3,%sr <== NOT EXECUTED _Thread_Executing->Wait.id = the_period->Object.id; 47684: 2079 0006 07dc moveal 607dc <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED 4768a: 2240 moveal %d0,%a1 <== NOT EXECUTED 4768c: 5089 addql #8,%a1 <== NOT EXECUTED 4768e: 2151 0020 movel %a1@,%a0@(32) <== NOT EXECUTED _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); 47692: 4878 4000 pea 4000 <== NOT EXECUTED 47696: 2d40 fff8 movel %d0,%fp@(-8) <== NOT EXECUTED 4769a: 2f08 movel %a0,%sp@- <== NOT EXECUTED 4769c: 4eb9 0004 accc jsr 4accc <_Thread_Set_state> <== NOT EXECUTED /* * Did the watchdog timer expire while we were actually blocking * on it? */ _ISR_Disable( level ); 476a2: 223c 0000 0700 movel #1792,%d1 <== NOT EXECUTED 476a8: 40c2 movew %sr,%d2 <== NOT EXECUTED 476aa: 8282 orl %d2,%d1 <== NOT EXECUTED 476ac: 46c1 movew %d1,%sr <== NOT EXECUTED local_state = the_period->state; the_period->state = RATE_MONOTONIC_ACTIVE; 476ae: 7602 moveq #2,%d3 <== NOT EXECUTED /* * Did the watchdog timer expire while we were actually blocking * on it? */ _ISR_Disable( level ); local_state = the_period->state; 476b0: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED 476b4: 2040 moveal %d0,%a0 <== NOT EXECUTED 476b6: 2228 0038 movel %a0@(56),%d1 <== NOT EXECUTED the_period->state = RATE_MONOTONIC_ACTIVE; 476ba: 2143 0038 movel %d3,%a0@(56) <== NOT EXECUTED _ISR_Enable( level ); 476be: 46c2 movew %d2,%sr <== NOT EXECUTED /* * If it did, then we want to unblock ourself and continue as * if nothing happen. The period was reset in the timeout routine. */ if ( local_state == RATE_MONOTONIC_EXPIRED_WHILE_BLOCKING ) 476c0: 7003 moveq #3,%d0 <== NOT EXECUTED 476c2: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 476c6: b081 cmpl %d1,%d0 <== NOT EXECUTED 476c8: 6716 beqs 476e0 <== NOT EXECUTED _Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); _Thread_Enable_dispatch(); 476ca: 4eb9 0004 a3ea jsr 4a3ea <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; 476d0: 4283 clrl %d3 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 476d2: 2003 movel %d3,%d0 <== NOT EXECUTED 476d4: 242e fff0 movel %fp@(-16),%d2 <== NOT EXECUTED 476d8: 262e fff4 movel %fp@(-12),%d3 <== NOT EXECUTED 476dc: 4e5e unlk %fp <== NOT EXECUTED 476de: 4e75 rts <== NOT EXECUTED /* * If it did, then we want to unblock ourself and continue as * if nothing happen. The period was reset in the timeout routine. */ if ( local_state == RATE_MONOTONIC_EXPIRED_WHILE_BLOCKING ) _Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); 476e0: 4878 4000 pea 4000 <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 476e4: 4283 clrl %d3 <== NOT EXECUTED /* * If it did, then we want to unblock ourself and continue as * if nothing happen. The period was reset in the timeout routine. */ if ( local_state == RATE_MONOTONIC_EXPIRED_WHILE_BLOCKING ) _Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); 476e6: 2f39 0006 07dc movel 607dc <_Per_CPU_Information+0xc>,%sp@-<== NOT EXECUTED 476ec: 4eb9 0004 a034 jsr 4a034 <_Thread_Clear_state> <== NOT EXECUTED 476f2: 508f addql #8,%sp <== NOT EXECUTED _Thread_Enable_dispatch(); 476f4: 4eb9 0004 a3ea jsr 4a3ea <_Thread_Enable_dispatch> <== NOT EXECUTED 476fa: 60d6 bras 476d2 <== NOT EXECUTED =============================================================================== 0004789e : } } } void rtems_rate_monotonic_report_statistics( void ) { 4789e: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED rtems_rate_monotonic_report_statistics_with_plugin( NULL, printk_plugin ); 478a2: 4879 0004 d024 pea 4d024 <== NOT EXECUTED 478a8: 42a7 clrl %sp@- <== NOT EXECUTED 478aa: 4eb9 0004 76fc jsr 476fc <== NOT EXECUTED 478b0: 508f addql #8,%sp <== NOT EXECUTED } 478b2: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 000476fc : */ void rtems_rate_monotonic_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) { 476fc: 4e56 ff78 linkw %fp,#-136 <== NOT EXECUTED 47700: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ <== NOT EXECUTED 47704: 262e 0008 movel %fp@(8),%d3 <== NOT EXECUTED 47708: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED rtems_id id; rtems_rate_monotonic_period_statistics the_stats; rtems_rate_monotonic_period_status the_status; char name[5]; if ( !print ) 4770c: 4a8a tstl %a2 <== NOT EXECUTED 4770e: 6700 0082 beqw 47792 <== NOT EXECUTED return; (*print)( context, "Period information by period\n" ); 47712: 4879 0005 de1a pea 5de1a <== NOT EXECUTED 47718: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4771a: 4e92 jsr %a2@ <== NOT EXECUTED #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ (*print)( context, "--- CPU times are in seconds ---\n" ); 4771c: 4879 0005 de38 pea 5de38 <== NOT EXECUTED 47722: 2f03 movel %d3,%sp@- <== NOT EXECUTED 47724: 4e92 jsr %a2@ <== NOT EXECUTED (*print)( context, "--- Wall times are in seconds ---\n" ); 47726: 4879 0005 de5a pea 5de5a <== NOT EXECUTED 4772c: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4772e: 4e92 jsr %a2@ <== NOT EXECUTED Be sure to test the various cases. (*print)( context,"\ 1234567890123456789012345678901234567890123456789012345678901234567890123456789\ \n"); */ (*print)( context, " ID OWNER COUNT MISSED " 47730: 4879 0005 de7d pea 5de7d <== NOT EXECUTED 47736: 2f03 movel %d3,%sp@- <== NOT EXECUTED 47738: 4e92 jsr %a2@ <== NOT EXECUTED #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ " " #endif " WALL TIME\n" ); (*print)( context, " " 4773a: 4fef 001c lea %sp@(28),%sp <== NOT EXECUTED 4773e: 2ebc 0005 dec8 movel #384712,%sp@ <== NOT EXECUTED 47744: 2f03 movel %d3,%sp@- <== NOT EXECUTED 47746: 4e92 jsr %a2@ <== NOT EXECUTED /* * Cycle through all possible ids and try to report on each one. If it * is a period that is inactive, we just get an error back. No big deal. */ for ( id=_Rate_monotonic_Information.minimum_id ; 47748: 2439 0006 0536 movel 60536 <_Rate_monotonic_Information+0x6>,%d2<== NOT EXECUTED 4774e: 508f addql #8,%sp <== NOT EXECUTED 47750: b4b9 0006 053a cmpl 6053a <_Rate_monotonic_Information+0xa>,%d2<== NOT EXECUTED 47756: 623a bhis 47792 <== NOT EXECUTED 47758: 280e movel %fp,%d4 <== NOT EXECUTED continue; #else (void) rtems_rate_monotonic_get_status( id, &the_status ); #endif rtems_object_get_name( the_status.owner, sizeof(name), name ); 4775a: 2a0e movel %fp,%d5 <== NOT EXECUTED 4775c: 0684 ffff ffa2 addil #-94,%d4 <== NOT EXECUTED 47762: 47f9 0004 d160 lea 4d160 ,%a3<== NOT EXECUTED #if defined(RTEMS_DEBUG) status = rtems_rate_monotonic_get_status( id, &the_status ); if ( status != RTEMS_SUCCESSFUL ) continue; #else (void) rtems_rate_monotonic_get_status( id, &the_status ); 47768: 4bf9 0004 d220 lea 4d220 ,%a5<== NOT EXECUTED #endif rtems_object_get_name( the_status.owner, sizeof(name), name ); 4776e: 5b85 subql #5,%d5 <== NOT EXECUTED 47770: 49f9 0004 7a54 lea 47a54 ,%a4 <== NOT EXECUTED struct timespec cpu_average; struct timespec *min_cpu = &the_stats.min_cpu_time; struct timespec *max_cpu = &the_stats.max_cpu_time; struct timespec *total_cpu = &the_stats.total_cpu_time; _Timespec_Divide_by_integer( total_cpu, the_stats.count, &cpu_average ); 47776: 2e3c 0004 afcc movel #307148,%d7 <== NOT EXECUTED * is a period that is inactive, we just get an error back. No big deal. */ for ( id=_Rate_monotonic_Information.minimum_id ; id <= _Rate_monotonic_Information.maximum_id ; id++ ) { status = rtems_rate_monotonic_get_statistics( id, &the_stats ); 4777c: 2f04 movel %d4,%sp@- <== NOT EXECUTED 4777e: 2f02 movel %d2,%sp@- <== NOT EXECUTED 47780: 4e93 jsr %a3@ <== NOT EXECUTED if ( status != RTEMS_SUCCESSFUL ) 47782: 508f addql #8,%sp <== NOT EXECUTED 47784: 4a80 tstl %d0 <== NOT EXECUTED 47786: 6714 beqs 4779c <== NOT EXECUTED * Cycle through all possible ids and try to report on each one. If it * is a period that is inactive, we just get an error back. No big deal. */ for ( id=_Rate_monotonic_Information.minimum_id ; id <= _Rate_monotonic_Information.maximum_id ; id++ ) { 47788: 5282 addql #1,%d2 <== NOT EXECUTED /* * Cycle through all possible ids and try to report on each one. If it * is a period that is inactive, we just get an error back. No big deal. */ for ( id=_Rate_monotonic_Information.minimum_id ; 4778a: b4b9 0006 053a cmpl 6053a <_Rate_monotonic_Information+0xa>,%d2<== NOT EXECUTED 47790: 63ea blss 4777c <== NOT EXECUTED the_stats.min_wall_time, the_stats.max_wall_time, ival_wall, fval_wall ); #endif } } } 47792: 4cee 3cfc ff78 moveml %fp@(-136),%d2-%d7/%a2-%a5 <== NOT EXECUTED 47798: 4e5e unlk %fp <== NOT EXECUTED 4779a: 4e75 rts <== NOT EXECUTED #if defined(RTEMS_DEBUG) status = rtems_rate_monotonic_get_status( id, &the_status ); if ( status != RTEMS_SUCCESSFUL ) continue; #else (void) rtems_rate_monotonic_get_status( id, &the_status ); 4779c: 486e ffda pea %fp@(-38) <== NOT EXECUTED 477a0: 2f02 movel %d2,%sp@- <== NOT EXECUTED 477a2: 4e95 jsr %a5@ <== NOT EXECUTED #endif rtems_object_get_name( the_status.owner, sizeof(name), name ); 477a4: 2f05 movel %d5,%sp@- <== NOT EXECUTED 477a6: 4878 0005 pea 5 <== NOT EXECUTED 477aa: 2f2e ffda movel %fp@(-38),%sp@- <== NOT EXECUTED 477ae: 4e94 jsr %a4@ <== NOT EXECUTED /* * Print part of report line that is not dependent on granularity */ (*print)( context, 477b0: 2f2e ffa6 movel %fp@(-90),%sp@- <== NOT EXECUTED 477b4: 2f2e ffa2 movel %fp@(-94),%sp@- <== NOT EXECUTED 477b8: 2f05 movel %d5,%sp@- <== NOT EXECUTED 477ba: 2f02 movel %d2,%sp@- <== NOT EXECUTED 477bc: 4879 0005 df14 pea 5df14 <== NOT EXECUTED 477c2: 2f03 movel %d3,%sp@- <== NOT EXECUTED 477c4: 4e92 jsr %a2@ <== NOT EXECUTED ); /* * If the count is zero, don't print statistics */ if (the_stats.count == 0) { 477c6: 202e ffa2 movel %fp@(-94),%d0 <== NOT EXECUTED 477ca: 4fef 002c lea %sp@(44),%sp <== NOT EXECUTED 477ce: 6618 bnes 477e8 <== NOT EXECUTED (*print)( context, "\n" ); 477d0: 4879 0005 dd3e pea 5dd3e <== NOT EXECUTED * Cycle through all possible ids and try to report on each one. If it * is a period that is inactive, we just get an error back. No big deal. */ for ( id=_Rate_monotonic_Information.minimum_id ; id <= _Rate_monotonic_Information.maximum_id ; id++ ) { 477d6: 5282 addql #1,%d2 <== NOT EXECUTED /* * If the count is zero, don't print statistics */ if (the_stats.count == 0) { (*print)( context, "\n" ); 477d8: 2f03 movel %d3,%sp@- <== NOT EXECUTED 477da: 4e92 jsr %a2@ <== NOT EXECUTED continue; 477dc: 508f addql #8,%sp <== NOT EXECUTED /* * Cycle through all possible ids and try to report on each one. If it * is a period that is inactive, we just get an error back. No big deal. */ for ( id=_Rate_monotonic_Information.minimum_id ; 477de: b4b9 0006 053a cmpl 6053a <_Rate_monotonic_Information+0xa>,%d2<== NOT EXECUTED 477e4: 6396 blss 4777c <== NOT EXECUTED 477e6: 60aa bras 47792 <== NOT EXECUTED struct timespec cpu_average; struct timespec *min_cpu = &the_stats.min_cpu_time; struct timespec *max_cpu = &the_stats.max_cpu_time; struct timespec *total_cpu = &the_stats.total_cpu_time; _Timespec_Divide_by_integer( total_cpu, the_stats.count, &cpu_average ); 477e8: 486e fff2 pea %fp@(-14) <== NOT EXECUTED 477ec: 2047 moveal %d7,%a0 <== NOT EXECUTED * Cycle through all possible ids and try to report on each one. If it * is a period that is inactive, we just get an error back. No big deal. */ for ( id=_Rate_monotonic_Information.minimum_id ; id <= _Rate_monotonic_Information.maximum_id ; id++ ) { 477ee: 5282 addql #1,%d2 <== NOT EXECUTED struct timespec cpu_average; struct timespec *min_cpu = &the_stats.min_cpu_time; struct timespec *max_cpu = &the_stats.max_cpu_time; struct timespec *total_cpu = &the_stats.total_cpu_time; _Timespec_Divide_by_integer( total_cpu, the_stats.count, &cpu_average ); 477f0: 2f00 movel %d0,%sp@- <== NOT EXECUTED 477f2: 486e ffba pea %fp@(-70) <== NOT EXECUTED 477f6: 4e90 jsr %a0@ <== NOT EXECUTED (*print)( context, 477f8: 202e fff6 movel %fp@(-10),%d0 <== NOT EXECUTED 477fc: 223c 0000 03e8 movel #1000,%d1 <== NOT EXECUTED 47802: 4c41 0800 remsl %d1,%d0,%d0 <== NOT EXECUTED 47806: 2c2e ffb6 movel %fp@(-74),%d6 <== NOT EXECUTED 4780a: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4780c: 2001 movel %d1,%d0 <== NOT EXECUTED 4780e: 2f2e fff2 movel %fp@(-14),%sp@- <== NOT EXECUTED 47812: 4c40 6806 remsl %d0,%d6,%d6 <== NOT EXECUTED 47816: 202e ffae movel %fp@(-82),%d0 <== NOT EXECUTED 4781a: 2246 moveal %d6,%a1 <== NOT EXECUTED 4781c: 223c 0000 03e8 movel #1000,%d1 <== NOT EXECUTED 47822: 2f09 movel %a1,%sp@- <== NOT EXECUTED 47824: 2f2e ffb2 movel %fp@(-78),%sp@- <== NOT EXECUTED 47828: 4c41 0800 remsl %d1,%d0,%d0 <== NOT EXECUTED struct timespec *min_wall = &the_stats.min_wall_time; struct timespec *max_wall = &the_stats.max_wall_time; struct timespec *total_wall = &the_stats.total_wall_time; _Timespec_Divide_by_integer(total_wall, the_stats.count, &wall_average); (*print)( context, 4782c: 2c3c 0000 03e8 movel #1000,%d6 <== NOT EXECUTED struct timespec *min_cpu = &the_stats.min_cpu_time; struct timespec *max_cpu = &the_stats.max_cpu_time; struct timespec *total_cpu = &the_stats.total_cpu_time; _Timespec_Divide_by_integer( total_cpu, the_stats.count, &cpu_average ); (*print)( context, 47832: 2f00 movel %d0,%sp@- <== NOT EXECUTED 47834: 2f2e ffaa movel %fp@(-86),%sp@- <== NOT EXECUTED 47838: 4879 0005 df2b pea 5df2b <== NOT EXECUTED 4783e: 2f03 movel %d3,%sp@- <== NOT EXECUTED 47840: 4e92 jsr %a2@ <== NOT EXECUTED struct timespec wall_average; struct timespec *min_wall = &the_stats.min_wall_time; struct timespec *max_wall = &the_stats.max_wall_time; struct timespec *total_wall = &the_stats.total_wall_time; _Timespec_Divide_by_integer(total_wall, the_stats.count, &wall_average); 47842: 4fef 002c lea %sp@(44),%sp <== NOT EXECUTED 47846: 2047 moveal %d7,%a0 <== NOT EXECUTED 47848: 486e fff2 pea %fp@(-14) <== NOT EXECUTED 4784c: 2f2e ffa2 movel %fp@(-94),%sp@- <== NOT EXECUTED 47850: 486e ffd2 pea %fp@(-46) <== NOT EXECUTED 47854: 4e90 jsr %a0@ <== NOT EXECUTED (*print)( context, 47856: 202e fff6 movel %fp@(-10),%d0 <== NOT EXECUTED 4785a: 4c46 0800 remsl %d6,%d0,%d0 <== NOT EXECUTED 4785e: 222e ffce movel %fp@(-50),%d1 <== NOT EXECUTED 47862: 2f00 movel %d0,%sp@- <== NOT EXECUTED 47864: 2f2e fff2 movel %fp@(-14),%sp@- <== NOT EXECUTED 47868: 4c46 1801 remsl %d6,%d1,%d1 <== NOT EXECUTED 4786c: 202e ffc6 movel %fp@(-58),%d0 <== NOT EXECUTED 47870: 2241 moveal %d1,%a1 <== NOT EXECUTED 47872: 2f09 movel %a1,%sp@- <== NOT EXECUTED 47874: 2f2e ffca movel %fp@(-54),%sp@- <== NOT EXECUTED 47878: 4c46 0800 remsl %d6,%d0,%d0 <== NOT EXECUTED 4787c: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4787e: 2f2e ffc2 movel %fp@(-62),%sp@- <== NOT EXECUTED 47882: 4879 0005 df4a pea 5df4a <== NOT EXECUTED 47888: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4788a: 4e92 jsr %a2@ <== NOT EXECUTED 4788c: 4fef 002c lea %sp@(44),%sp <== NOT EXECUTED /* * Cycle through all possible ids and try to report on each one. If it * is a period that is inactive, we just get an error back. No big deal. */ for ( id=_Rate_monotonic_Information.minimum_id ; 47890: b4b9 0006 053a cmpl 6053a <_Rate_monotonic_Information+0xa>,%d2<== NOT EXECUTED 47896: 6300 fee4 blsw 4777c <== NOT EXECUTED 4789a: 6000 fef6 braw 47792 <== NOT EXECUTED =============================================================================== 000478b8 : /* * rtems_rate_monotonic_reset_all_statistics */ void rtems_rate_monotonic_reset_all_statistics( void ) { 478b8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 478bc: 2039 0006 0620 movel 60620 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED 478c2: 5280 addql #1,%d0 <== NOT EXECUTED 478c4: 2f0a movel %a2,%sp@- <== NOT EXECUTED 478c6: 23c0 0006 0620 movel %d0,60620 <_Thread_Dispatch_disable_level><== NOT EXECUTED 478cc: 2f02 movel %d2,%sp@- <== NOT EXECUTED /* * Cycle through all possible ids and try to reset each one. If it * is a period that is inactive, we just get an error back. No big deal. */ for ( id=_Rate_monotonic_Information.minimum_id ; 478ce: 2439 0006 0536 movel 60536 <_Rate_monotonic_Information+0x6>,%d2<== NOT EXECUTED 478d4: b4b9 0006 053a cmpl 6053a <_Rate_monotonic_Information+0xa>,%d2<== NOT EXECUTED 478da: 6216 bhis 478f2 <== NOT EXECUTED 478dc: 45f9 0004 7904 lea 47904 ,%a2<== NOT EXECUTED id <= _Rate_monotonic_Information.maximum_id ; id++ ) { (void) rtems_rate_monotonic_reset_statistics( id ); 478e2: 2f02 movel %d2,%sp@- <== NOT EXECUTED * Cycle through all possible ids and try to reset each one. If it * is a period that is inactive, we just get an error back. No big deal. */ for ( id=_Rate_monotonic_Information.minimum_id ; id <= _Rate_monotonic_Information.maximum_id ; id++ ) { 478e4: 5282 addql #1,%d2 <== NOT EXECUTED (void) rtems_rate_monotonic_reset_statistics( id ); 478e6: 4e92 jsr %a2@ <== NOT EXECUTED /* * Cycle through all possible ids and try to reset each one. If it * is a period that is inactive, we just get an error back. No big deal. */ for ( id=_Rate_monotonic_Information.minimum_id ; 478e8: 588f addql #4,%sp <== NOT EXECUTED 478ea: b4b9 0006 053a cmpl 6053a <_Rate_monotonic_Information+0xa>,%d2<== NOT EXECUTED 478f0: 63f0 blss 478e2 <== NOT EXECUTED /* * Done so exit thread dispatching disabled critical section. */ _Thread_Enable_dispatch(); } 478f2: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 478f6: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 478fa: 4e5e unlk %fp <== NOT EXECUTED } /* * Done so exit thread dispatching disabled critical section. */ _Thread_Enable_dispatch(); 478fc: 4ef9 0004 a3ea jmp 4a3ea <_Thread_Enable_dispatch> <== NOT EXECUTED ... =============================================================================== 00047904 : */ rtems_status_code rtems_rate_monotonic_reset_statistics( rtems_id id ) { 47904: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 47908: 486e fffc pea %fp@(-4) <== NOT EXECUTED 4790c: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 47910: 4879 0006 0530 pea 60530 <_Rate_monotonic_Information> <== NOT EXECUTED 47916: 4eb9 0004 985c jsr 4985c <_Objects_Get> <== NOT EXECUTED Objects_Locations location; Rate_monotonic_Control *the_period; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { 4791c: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 47920: 2040 moveal %d0,%a0 <== NOT EXECUTED 47922: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 47926: 6646 bnes 4796e <== NOT EXECUTED case OBJECTS_LOCAL: _Rate_monotonic_Reset_statistics( the_period ); 47928: 42a8 0054 clrl %a0@(84) <== NOT EXECUTED 4792c: 43e8 007c lea %a0@(124),%a1 <== NOT EXECUTED 47930: 42a8 0058 clrl %a0@(88) <== NOT EXECUTED 47934: 42a8 0064 clrl %a0@(100) <== NOT EXECUTED 47938: 203c 7fff ffff movel #2147483647,%d0 <== NOT EXECUTED 4793e: 42a8 0068 clrl %a0@(104) <== NOT EXECUTED 47942: 42a8 006c clrl %a0@(108) <== NOT EXECUTED 47946: 42a8 0070 clrl %a0@(112) <== NOT EXECUTED 4794a: 4299 clrl %a1@+ <== NOT EXECUTED 4794c: 4299 clrl %a1@+ <== NOT EXECUTED 4794e: 4299 clrl %a1@+ <== NOT EXECUTED 47950: 2140 005c movel %d0,%a0@(92) <== NOT EXECUTED 47954: 2140 0060 movel %d0,%a0@(96) <== NOT EXECUTED 47958: 2140 0074 movel %d0,%a0@(116) <== NOT EXECUTED 4795c: 2140 0078 movel %d0,%a0@(120) <== NOT EXECUTED 47960: 4291 clrl %a1@ <== NOT EXECUTED _Thread_Enable_dispatch(); 47962: 4eb9 0004 a3ea jsr 4a3ea <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; 47968: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4796a: 4e5e unlk %fp <== NOT EXECUTED 4796c: 4e75 rts <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 4796e: 7004 moveq #4,%d0 <== NOT EXECUTED } 47970: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 000572c8 : uintptr_t length, uintptr_t page_size, rtems_attribute attribute_set, rtems_id *id ) { 572c8: 4e56 ffe4 linkw %fp,#-28 <== NOT EXECUTED 572cc: 48d7 0c7c moveml %d2-%d6/%a2-%a3,%sp@ <== NOT EXECUTED 572d0: 262e 0008 movel %fp@(8),%d3 <== NOT EXECUTED 572d4: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED 572d8: 2a2e 0010 movel %fp@(16),%d5 <== NOT EXECUTED 572dc: 282e 0014 movel %fp@(20),%d4 <== NOT EXECUTED 572e0: 2c2e 0018 movel %fp@(24),%d6 <== NOT EXECUTED 572e4: 266e 001c moveal %fp@(28),%a3 <== NOT EXECUTED rtems_status_code return_status; Region_Control *the_region; if ( !rtems_is_name_valid( name ) ) 572e8: 4a83 tstl %d3 <== NOT EXECUTED 572ea: 6774 beqs 57360 <== NOT EXECUTED return RTEMS_INVALID_NAME; if ( !starting_address ) 572ec: 4a82 tstl %d2 <== NOT EXECUTED 572ee: 6700 00dc beqw 573cc <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !id ) 572f2: 4a8b tstl %a3 <== NOT EXECUTED 572f4: 6700 00d6 beqw 573cc <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); /* to prevent deletion */ 572f8: 2f39 0007 d284 movel 7d284 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 572fe: 4eb9 0005 9b40 jsr 59b40 <_API_Mutex_Lock> <== NOT EXECUTED * This function allocates a region control block from * the inactive chain of free region control blocks. */ RTEMS_INLINE_ROUTINE Region_Control *_Region_Allocate( void ) { return (Region_Control *) _Objects_Allocate( &_Region_Information ); 57304: 4879 0007 d0d4 pea 7d0d4 <_Region_Information> <== NOT EXECUTED 5730a: 4eb9 0005 b2c0 jsr 5b2c0 <_Objects_Allocate> <== NOT EXECUTED the_region = _Region_Allocate(); if ( !the_region ) 57310: 508f addql #8,%sp <== NOT EXECUTED 57312: 2440 moveal %d0,%a2 <== NOT EXECUTED 57314: 4a80 tstl %d0 <== NOT EXECUTED 57316: 6700 00c2 beqw 573da <== NOT EXECUTED return_status = RTEMS_TOO_MANY; else { the_region->maximum_segment_size = _Heap_Initialize( 5731a: 2f04 movel %d4,%sp@- <== NOT EXECUTED 5731c: 2f05 movel %d5,%sp@- <== NOT EXECUTED 5731e: 2f02 movel %d2,%sp@- <== NOT EXECUTED 57320: 486a 0068 pea %a2@(104) <== NOT EXECUTED 57324: 4eb9 0005 ae52 jsr 5ae52 <_Heap_Initialize> <== NOT EXECUTED &the_region->Memory, starting_address, length, page_size ); if ( !the_region->maximum_segment_size ) { 5732a: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED if ( !the_region ) return_status = RTEMS_TOO_MANY; else { the_region->maximum_segment_size = _Heap_Initialize( 5732e: 2540 005c movel %d0,%a2@(92) <== NOT EXECUTED &the_region->Memory, starting_address, length, page_size ); if ( !the_region->maximum_segment_size ) { 57332: 663a bnes 5736e <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Region_Free ( Region_Control *the_region ) { _Objects_Free( &_Region_Information, &the_region->Object ); 57334: 2f0a movel %a2,%sp@- <== NOT EXECUTED 57336: 4879 0007 d0d4 pea 7d0d4 <_Region_Information> <== NOT EXECUTED _Region_Free( the_region ); return_status = RTEMS_INVALID_SIZE; 5733c: 7408 moveq #8,%d2 <== NOT EXECUTED 5733e: 4eb9 0005 b614 jsr 5b614 <_Objects_Free> <== NOT EXECUTED 57344: 508f addql #8,%sp <== NOT EXECUTED *id = the_region->Object.id; return_status = RTEMS_SUCCESSFUL; } } _RTEMS_Unlock_allocator(); 57346: 2f39 0007 d284 movel 7d284 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 5734c: 4eb9 0005 9ba0 jsr 59ba0 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; 57352: 588f addql #4,%sp <== NOT EXECUTED } 57354: 2002 movel %d2,%d0 <== NOT EXECUTED 57356: 4cee 0c7c ffe4 moveml %fp@(-28),%d2-%d6/%a2-%a3 <== NOT EXECUTED 5735c: 4e5e unlk %fp <== NOT EXECUTED 5735e: 4e75 rts <== NOT EXECUTED { rtems_status_code return_status; Region_Control *the_region; if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; 57360: 7403 moveq #3,%d2 <== NOT EXECUTED } } _RTEMS_Unlock_allocator(); return return_status; } 57362: 2002 movel %d2,%d0 <== NOT EXECUTED 57364: 4cee 0c7c ffe4 moveml %fp@(-28),%d2-%d6/%a2-%a3 <== NOT EXECUTED 5736a: 4e5e unlk %fp <== NOT EXECUTED 5736c: 4e75 rts <== NOT EXECUTED return_status = RTEMS_INVALID_SIZE; } else { the_region->starting_address = starting_address; 5736e: 2542 0050 movel %d2,%a2@(80) <== NOT EXECUTED &the_region->Object, (Objects_Name) name ); *id = the_region->Object.id; return_status = RTEMS_SUCCESSFUL; 57372: 4282 clrl %d2 <== NOT EXECUTED } else { the_region->starting_address = starting_address; the_region->length = length; 57374: 2545 0054 movel %d5,%a2@(84) <== NOT EXECUTED the_region->page_size = page_size; the_region->attribute_set = attribute_set; the_region->number_of_used_blocks = 0; _Thread_queue_Initialize( 57378: 44c6 movew %d6,%ccr <== NOT EXECUTED 5737a: 57c0 seq %d0 <== NOT EXECUTED else { the_region->starting_address = starting_address; the_region->length = length; the_region->page_size = page_size; 5737c: 2544 0058 movel %d4,%a2@(88) <== NOT EXECUTED the_region->attribute_set = attribute_set; the_region->number_of_used_blocks = 0; _Thread_queue_Initialize( 57380: 49c0 extbl %d0 <== NOT EXECUTED 57382: 4480 negl %d0 <== NOT EXECUTED else { the_region->starting_address = starting_address; the_region->length = length; the_region->page_size = page_size; the_region->attribute_set = attribute_set; 57384: 2546 0060 movel %d6,%a2@(96) <== NOT EXECUTED the_region->number_of_used_blocks = 0; 57388: 42aa 0064 clrl %a2@(100) <== NOT EXECUTED _Thread_queue_Initialize( 5738c: 4878 0006 pea 6 <== NOT EXECUTED 57390: 4878 0040 pea 40 <== NOT EXECUTED 57394: 2f00 movel %d0,%sp@- <== NOT EXECUTED 57396: 486a 0010 pea %a2@(16) <== NOT EXECUTED 5739a: 4eb9 0005 cac0 jsr 5cac0 <_Thread_queue_Initialize> <== NOT EXECUTED Objects_Name name ) { _Objects_Set_local_object( information, _Objects_Get_index( the_object->id ), 573a0: 202a 0008 movel %a2@(8),%d0 <== NOT EXECUTED Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( 573a4: 4281 clrl %d1 <== NOT EXECUTED &_Region_Information, &the_region->Object, (Objects_Name) name ); *id = the_region->Object.id; 573a6: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 573aa: 2079 0007 d0ec moveal 7d0ec <_Region_Information+0x18>,%a0 <== NOT EXECUTED Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( 573b0: 3200 movew %d0,%d1 <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 573b2: 218a 1c00 movel %a2,%a0@(00000000,%d1:l:4) <== NOT EXECUTED information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 573b6: 2543 000c movel %d3,%a2@(12) <== NOT EXECUTED 573ba: 2680 movel %d0,%a3@ <== NOT EXECUTED return_status = RTEMS_SUCCESSFUL; } } _RTEMS_Unlock_allocator(); 573bc: 2f39 0007 d284 movel 7d284 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 573c2: 4eb9 0005 9ba0 jsr 59ba0 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; 573c8: 588f addql #4,%sp <== NOT EXECUTED 573ca: 6088 bras 57354 <== NOT EXECUTED if ( !starting_address ) return RTEMS_INVALID_ADDRESS; if ( !id ) return RTEMS_INVALID_ADDRESS; 573cc: 7409 moveq #9,%d2 <== NOT EXECUTED } } _RTEMS_Unlock_allocator(); return return_status; } 573ce: 2002 movel %d2,%d0 <== NOT EXECUTED 573d0: 4cee 0c7c ffe4 moveml %fp@(-28),%d2-%d6/%a2-%a3 <== NOT EXECUTED 573d6: 4e5e unlk %fp <== NOT EXECUTED 573d8: 4e75 rts <== NOT EXECUTED *id = the_region->Object.id; return_status = RTEMS_SUCCESSFUL; } } _RTEMS_Unlock_allocator(); 573da: 2f39 0007 d284 movel 7d284 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED _RTEMS_Lock_allocator(); /* to prevent deletion */ the_region = _Region_Allocate(); if ( !the_region ) return_status = RTEMS_TOO_MANY; 573e0: 7405 moveq #5,%d2 <== NOT EXECUTED *id = the_region->Object.id; return_status = RTEMS_SUCCESSFUL; } } _RTEMS_Unlock_allocator(); 573e2: 4eb9 0005 9ba0 jsr 59ba0 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; 573e8: 588f addql #4,%sp <== NOT EXECUTED 573ea: 6000 ff68 braw 57354 <== NOT EXECUTED ... =============================================================================== 000573f0 : */ rtems_status_code rtems_region_delete( rtems_id id ) { 573f0: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 573f4: 2f0a movel %a2,%sp@- <== NOT EXECUTED 573f6: 2f02 movel %d2,%sp@- <== NOT EXECUTED Objects_Locations location; rtems_status_code return_status; Region_Control *the_region; _RTEMS_Lock_allocator(); 573f8: 2f39 0007 d284 movel 7d284 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 573fe: 4eb9 0005 9b40 jsr 59b40 <_API_Mutex_Lock> <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Region_Control *) _Objects_Get_no_protection( &_Region_Information, id, location ); 57404: 486e fffc pea %fp@(-4) <== NOT EXECUTED 57408: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 5740c: 4879 0007 d0d4 pea 7d0d4 <_Region_Information> <== NOT EXECUTED 57412: 4eb9 0005 b780 jsr 5b780 <_Objects_Get_no_protection> <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { 57418: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 5741c: 2440 moveal %d0,%a2 <== NOT EXECUTED 5741e: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 57422: 671c beqs 57440 <== NOT EXECUTED default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 57424: 2f39 0007 d284 movel 7d284 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED break; #endif case OBJECTS_ERROR: default: return_status = RTEMS_INVALID_ID; 5742a: 7404 moveq #4,%d2 <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); 5742c: 4eb9 0005 9ba0 jsr 59ba0 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; } 57432: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 57436: 2002 movel %d2,%d0 <== NOT EXECUTED 57438: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 5743c: 4e5e unlk %fp <== NOT EXECUTED 5743e: 4e75 rts <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: _Region_Debug_Walk( the_region, 5 ); if ( the_region->number_of_used_blocks != 0 ) 57440: 4aaa 0064 tstl %a2@(100) <== NOT EXECUTED 57444: 671c beqs 57462 <== NOT EXECUTED default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 57446: 2f39 0007 d284 movel 7d284 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED switch ( location ) { case OBJECTS_LOCAL: _Region_Debug_Walk( the_region, 5 ); if ( the_region->number_of_used_blocks != 0 ) return_status = RTEMS_RESOURCE_IN_USE; 5744c: 740c moveq #12,%d2 <== NOT EXECUTED default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 5744e: 4eb9 0005 9ba0 jsr 59ba0 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; } 57454: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 57458: 2002 movel %d2,%d0 <== NOT EXECUTED 5745a: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 5745e: 4e5e unlk %fp <== NOT EXECUTED 57460: 4e75 rts <== NOT EXECUTED case OBJECTS_LOCAL: _Region_Debug_Walk( the_region, 5 ); if ( the_region->number_of_used_blocks != 0 ) return_status = RTEMS_RESOURCE_IN_USE; else { _Objects_Close( &_Region_Information, &the_region->Object ); 57462: 2f00 movel %d0,%sp@- <== NOT EXECUTED 57464: 4879 0007 d0d4 pea 7d0d4 <_Region_Information> <== NOT EXECUTED _Region_Free( the_region ); return_status = RTEMS_SUCCESSFUL; 5746a: 4282 clrl %d2 <== NOT EXECUTED case OBJECTS_LOCAL: _Region_Debug_Walk( the_region, 5 ); if ( the_region->number_of_used_blocks != 0 ) return_status = RTEMS_RESOURCE_IN_USE; else { _Objects_Close( &_Region_Information, &the_region->Object ); 5746c: 4eb9 0005 b350 jsr 5b350 <_Objects_Close> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Region_Free ( Region_Control *the_region ) { _Objects_Free( &_Region_Information, &the_region->Object ); 57472: 2f0a movel %a2,%sp@- <== NOT EXECUTED 57474: 4879 0007 d0d4 pea 7d0d4 <_Region_Information> <== NOT EXECUTED 5747a: 4eb9 0005 b614 jsr 5b614 <_Objects_Free> <== NOT EXECUTED 57480: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 57484: 2f39 0007 d284 movel 7d284 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 5748a: 4eb9 0005 9ba0 jsr 59ba0 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; } 57490: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 57494: 2002 movel %d2,%d0 <== NOT EXECUTED 57496: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 5749a: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 000574a0 : rtems_status_code rtems_region_extend( rtems_id id, void *starting_address, uintptr_t length ) { 574a0: 4e56 fff8 linkw %fp,#-8 <== NOT EXECUTED 574a4: 2f0a movel %a2,%sp@- <== NOT EXECUTED 574a6: 2f02 movel %d2,%sp@- <== NOT EXECUTED 574a8: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED bool extend_ok; Objects_Locations location; rtems_status_code return_status; Region_Control *the_region; if ( !starting_address ) 574ac: 6700 0086 beqw 57534 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); /* to prevent deletion */ 574b0: 2f39 0007 d284 movel 7d284 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 574b6: 4eb9 0005 9b40 jsr 59b40 <_API_Mutex_Lock> <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Region_Control *) _Objects_Get_no_protection( &_Region_Information, id, location ); 574bc: 486e fff8 pea %fp@(-8) <== NOT EXECUTED 574c0: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 574c4: 4879 0007 d0d4 pea 7d0d4 <_Region_Information> <== NOT EXECUTED 574ca: 4eb9 0005 b780 jsr 5b780 <_Objects_Get_no_protection> <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { 574d0: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 574d4: 2440 moveal %d0,%a2 <== NOT EXECUTED 574d6: 4aae fff8 tstl %fp@(-8) <== NOT EXECUTED 574da: 6646 bnes 57522 <== NOT EXECUTED case OBJECTS_LOCAL: extend_ok = _Heap_Extend( 574dc: 486e fffc pea %fp@(-4) <== NOT EXECUTED 574e0: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 574e4: 2f02 movel %d2,%sp@- <== NOT EXECUTED 574e6: 486a 0068 pea %a2@(104) <== NOT EXECUTED 574ea: 4eb9 0005 a858 jsr 5a858 <_Heap_Extend> <== NOT EXECUTED starting_address, length, &amount_extended ); if ( extend_ok ) { 574f0: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 574f4: 4a00 tstb %d0 <== NOT EXECUTED 574f6: 674c beqs 57544 <== NOT EXECUTED the_region->length += amount_extended; 574f8: 202e fffc movel %fp@(-4),%d0 <== NOT EXECUTED 574fc: d1aa 0054 addl %d0,%a2@(84) <== NOT EXECUTED the_region->maximum_segment_size += amount_extended; return_status = RTEMS_SUCCESSFUL; 57500: 4282 clrl %d2 <== NOT EXECUTED &amount_extended ); if ( extend_ok ) { the_region->length += amount_extended; the_region->maximum_segment_size += amount_extended; 57502: d1aa 005c addl %d0,%a2@(92) <== NOT EXECUTED default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 57506: 2f39 0007 d284 movel 7d284 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 5750c: 4eb9 0005 9ba0 jsr 59ba0 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; 57512: 588f addql #4,%sp <== NOT EXECUTED } 57514: 2002 movel %d2,%d0 <== NOT EXECUTED 57516: 242e fff0 movel %fp@(-16),%d2 <== NOT EXECUTED 5751a: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED 5751e: 4e5e unlk %fp <== NOT EXECUTED 57520: 4e75 rts <== NOT EXECUTED default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 57522: 2f39 0007 d284 movel 7d284 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED break; #endif case OBJECTS_ERROR: default: return_status = RTEMS_INVALID_ID; 57528: 7404 moveq #4,%d2 <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); 5752a: 4eb9 0005 9ba0 jsr 59ba0 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; 57530: 588f addql #4,%sp <== NOT EXECUTED 57532: 60e0 bras 57514 <== NOT EXECUTED Objects_Locations location; rtems_status_code return_status; Region_Control *the_region; if ( !starting_address ) return RTEMS_INVALID_ADDRESS; 57534: 7409 moveq #9,%d2 <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); return return_status; } 57536: 2002 movel %d2,%d0 <== NOT EXECUTED 57538: 242e fff0 movel %fp@(-16),%d2 <== NOT EXECUTED 5753c: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED 57540: 4e5e unlk %fp <== NOT EXECUTED 57542: 4e75 rts <== NOT EXECUTED default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 57544: 2f39 0007 d284 movel 7d284 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED if ( extend_ok ) { the_region->length += amount_extended; the_region->maximum_segment_size += amount_extended; return_status = RTEMS_SUCCESSFUL; } else { return_status = RTEMS_INVALID_ADDRESS; 5754a: 7409 moveq #9,%d2 <== NOT EXECUTED default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 5754c: 4eb9 0005 9ba0 jsr 59ba0 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; 57552: 588f addql #4,%sp <== NOT EXECUTED 57554: 60be bras 57514 <== NOT EXECUTED ... =============================================================================== 00057558 : rtems_status_code rtems_region_get_free_information( rtems_id id, Heap_Information_block *the_info ) { 57558: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 5755c: 2f0a movel %a2,%sp@- <== NOT EXECUTED 5755e: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED 57562: 2f02 movel %d2,%sp@- <== NOT EXECUTED Objects_Locations location; rtems_status_code return_status; register Region_Control *the_region; if ( !the_info ) 57564: 4a8a tstl %a2 <== NOT EXECUTED 57566: 6776 beqs 575de <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); 57568: 2f39 0007 d284 movel 7d284 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 5756e: 4eb9 0005 9b40 jsr 59b40 <_API_Mutex_Lock> <== NOT EXECUTED 57574: 486e fffc pea %fp@(-4) <== NOT EXECUTED 57578: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 5757c: 4879 0007 d0d4 pea 7d0d4 <_Region_Information> <== NOT EXECUTED 57582: 4eb9 0005 b780 jsr 5b780 <_Objects_Get_no_protection> <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { 57588: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 5758c: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 57590: 663a bnes 575cc <== NOT EXECUTED the_info->Used.number = 0; the_info->Used.total = 0; the_info->Used.largest = 0; _Heap_Get_free_information( &the_region->Memory, &the_info->Free ); 57592: 2f0a movel %a2,%sp@- <== NOT EXECUTED 57594: 2040 moveal %d0,%a0 <== NOT EXECUTED 57596: 4868 0068 pea %a0@(104) <== NOT EXECUTED return_status = RTEMS_SUCCESSFUL; 5759a: 4282 clrl %d2 <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: the_info->Used.number = 0; 5759c: 42aa 000c clrl %a2@(12) <== NOT EXECUTED the_info->Used.total = 0; 575a0: 42aa 0014 clrl %a2@(20) <== NOT EXECUTED the_info->Used.largest = 0; 575a4: 42aa 0010 clrl %a2@(16) <== NOT EXECUTED _Heap_Get_free_information( &the_region->Memory, &the_info->Free ); 575a8: 4eb9 0005 ac2c jsr 5ac2c <_Heap_Get_free_information> <== NOT EXECUTED return_status = RTEMS_SUCCESSFUL; break; 575ae: 508f addql #8,%sp <== NOT EXECUTED default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 575b0: 2f39 0007 d284 movel 7d284 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 575b6: 4eb9 0005 9ba0 jsr 59ba0 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; 575bc: 588f addql #4,%sp <== NOT EXECUTED } 575be: 2002 movel %d2,%d0 <== NOT EXECUTED 575c0: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 575c4: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 575c8: 4e5e unlk %fp <== NOT EXECUTED 575ca: 4e75 rts <== NOT EXECUTED default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 575cc: 2f39 0007 d284 movel 7d284 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED break; #endif case OBJECTS_ERROR: default: return_status = RTEMS_INVALID_ID; 575d2: 7404 moveq #4,%d2 <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); 575d4: 4eb9 0005 9ba0 jsr 59ba0 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; 575da: 588f addql #4,%sp <== NOT EXECUTED 575dc: 60e0 bras 575be <== NOT EXECUTED Objects_Locations location; rtems_status_code return_status; register Region_Control *the_region; if ( !the_info ) return RTEMS_INVALID_ADDRESS; 575de: 7409 moveq #9,%d2 <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); return return_status; } 575e0: 2002 movel %d2,%d0 <== NOT EXECUTED 575e2: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 575e6: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 575ea: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 000575f0 : rtems_status_code rtems_region_get_information( rtems_id id, Heap_Information_block *the_info ) { 575f0: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 575f4: 2f02 movel %d2,%sp@- <== NOT EXECUTED 575f6: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED Objects_Locations location; rtems_status_code return_status; register Region_Control *the_region; if ( !the_info ) 575fa: 6766 beqs 57662 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); 575fc: 2f39 0007 d284 movel 7d284 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 57602: 4eb9 0005 9b40 jsr 59b40 <_API_Mutex_Lock> <== NOT EXECUTED 57608: 486e fffc pea %fp@(-4) <== NOT EXECUTED 5760c: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 57610: 4879 0007 d0d4 pea 7d0d4 <_Region_Information> <== NOT EXECUTED 57616: 4eb9 0005 b780 jsr 5b780 <_Objects_Get_no_protection> <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { 5761c: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 57620: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 57624: 662a bnes 57650 <== NOT EXECUTED case OBJECTS_LOCAL: _Heap_Get_information( &the_region->Memory, the_info ); 57626: 2f02 movel %d2,%sp@- <== NOT EXECUTED 57628: 2040 moveal %d0,%a0 <== NOT EXECUTED 5762a: 4868 0068 pea %a0@(104) <== NOT EXECUTED return_status = RTEMS_SUCCESSFUL; 5762e: 4282 clrl %d2 <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: _Heap_Get_information( &the_region->Memory, the_info ); 57630: 4eb9 0005 ac8c jsr 5ac8c <_Heap_Get_information> <== NOT EXECUTED return_status = RTEMS_SUCCESSFUL; break; 57636: 508f addql #8,%sp <== NOT EXECUTED default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 57638: 2f39 0007 d284 movel 7d284 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 5763e: 4eb9 0005 9ba0 jsr 59ba0 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; 57644: 588f addql #4,%sp <== NOT EXECUTED } 57646: 2002 movel %d2,%d0 <== NOT EXECUTED 57648: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 5764c: 4e5e unlk %fp <== NOT EXECUTED 5764e: 4e75 rts <== NOT EXECUTED default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 57650: 2f39 0007 d284 movel 7d284 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED break; #endif case OBJECTS_ERROR: default: return_status = RTEMS_INVALID_ID; 57656: 7404 moveq #4,%d2 <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); 57658: 4eb9 0005 9ba0 jsr 59ba0 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; 5765e: 588f addql #4,%sp <== NOT EXECUTED 57660: 60e4 bras 57646 <== NOT EXECUTED Objects_Locations location; rtems_status_code return_status; register Region_Control *the_region; if ( !the_info ) return RTEMS_INVALID_ADDRESS; 57662: 7409 moveq #9,%d2 <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); return return_status; } 57664: 2002 movel %d2,%d0 <== NOT EXECUTED 57666: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 5766a: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 00057670 : uintptr_t size, rtems_option option_set, rtems_interval timeout, void **segment ) { 57670: 4e56 ffe4 linkw %fp,#-28 <== NOT EXECUTED 57674: 48d7 1c0c moveml %d2-%d3/%a2-%a4,%sp@ <== NOT EXECUTED 57678: 262e 0008 movel %fp@(8),%d3 <== NOT EXECUTED 5767c: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED 57680: 246e 0018 moveal %fp@(24),%a2 <== NOT EXECUTED Objects_Locations location; rtems_status_code return_status; Region_Control *the_region; void *the_segment; if ( !segment ) 57684: 4a8a tstl %a2 <== NOT EXECUTED 57686: 6700 00be beqw 57746 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; *segment = NULL; 5768a: 4292 clrl %a2@ <== NOT EXECUTED if ( size == 0 ) 5768c: 4a82 tstl %d2 <== NOT EXECUTED 5768e: 660c bnes 5769c <== NOT EXECUTED return RTEMS_INVALID_SIZE; 57690: 7008 moveq #8,%d0 <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); return return_status; } 57692: 4cee 1c0c ffe4 moveml %fp@(-28),%d2-%d3/%a2-%a4 <== NOT EXECUTED 57698: 4e5e unlk %fp <== NOT EXECUTED 5769a: 4e75 rts <== NOT EXECUTED *segment = NULL; if ( size == 0 ) return RTEMS_INVALID_SIZE; _RTEMS_Lock_allocator(); 5769c: 2f39 0007 d284 movel 7d284 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 576a2: 4eb9 0005 9b40 jsr 59b40 <_API_Mutex_Lock> <== NOT EXECUTED 576a8: 486e fffc pea %fp@(-4) <== NOT EXECUTED 576ac: 2f03 movel %d3,%sp@- <== NOT EXECUTED 576ae: 4879 0007 d0d4 pea 7d0d4 <_Region_Information> <== NOT EXECUTED executing = _Thread_Executing; 576b4: 2879 0007 d388 moveal 7d388 <_Per_CPU_Information+0xc>,%a4 <== NOT EXECUTED 576ba: 4eb9 0005 b780 jsr 5b780 <_Objects_Get_no_protection> <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { 576c0: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 576c4: 2640 moveal %d0,%a3 <== NOT EXECUTED 576c6: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 576ca: 6628 bnes 576f4 <== NOT EXECUTED case OBJECTS_LOCAL: if ( size > the_region->maximum_segment_size ) 576cc: b4ab 005c cmpl %a3@(92),%d2 <== NOT EXECUTED 576d0: 633c blss 5770e <== NOT EXECUTED return_status = RTEMS_INVALID_SIZE; 576d2: 7008 moveq #8,%d0 <== NOT EXECUTED default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 576d4: 2f39 0007 d284 movel 7d284 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 576da: 2d40 fff8 movel %d0,%fp@(-8) <== NOT EXECUTED 576de: 4eb9 0005 9ba0 jsr 59ba0 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; 576e4: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED 576e8: 588f addql #4,%sp <== NOT EXECUTED } 576ea: 4cee 1c0c ffe4 moveml %fp@(-28),%d2-%d3/%a2-%a4 <== NOT EXECUTED 576f0: 4e5e unlk %fp <== NOT EXECUTED 576f2: 4e75 rts <== NOT EXECUTED break; #endif case OBJECTS_ERROR: default: return_status = RTEMS_INVALID_ID; 576f4: 7004 moveq #4,%d0 <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); 576f6: 2f39 0007 d284 movel 7d284 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 576fc: 2d40 fff8 movel %d0,%fp@(-8) <== NOT EXECUTED 57700: 4eb9 0005 9ba0 jsr 59ba0 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; 57706: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED 5770a: 588f addql #4,%sp <== NOT EXECUTED 5770c: 60dc bras 576ea <== NOT EXECUTED * @brief See _Heap_Allocate_aligned_with_boundary() with alignment and * boundary equals zero. */ RTEMS_INLINE_ROUTINE void *_Heap_Allocate( Heap_Control *heap, uintptr_t size ) { return _Heap_Allocate_aligned_with_boundary( heap, size, 0, 0 ); 5770e: 42a7 clrl %sp@- <== NOT EXECUTED 57710: 42a7 clrl %sp@- <== NOT EXECUTED 57712: 2f02 movel %d2,%sp@- <== NOT EXECUTED 57714: 486b 0068 pea %a3@(104) <== NOT EXECUTED 57718: 4eb9 0005 a6a8 jsr 5a6a8 <_Heap_Allocate_aligned_with_boundary><== NOT EXECUTED the_segment = _Region_Allocate_segment( the_region, size ); _Region_Debug_Walk( the_region, 2 ); if ( the_segment ) { 5771e: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 57722: 2200 movel %d0,%d1 <== NOT EXECUTED 57724: 672c beqs 57752 <== NOT EXECUTED the_region->number_of_used_blocks += 1; 57726: 52ab 0064 addql #1,%a3@(100) <== NOT EXECUTED *segment = the_segment; return_status = RTEMS_SUCCESSFUL; 5772a: 4280 clrl %d0 <== NOT EXECUTED _Region_Debug_Walk( the_region, 2 ); if ( the_segment ) { the_region->number_of_used_blocks += 1; *segment = the_segment; 5772c: 2481 movel %d1,%a2@ <== NOT EXECUTED default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 5772e: 2f39 0007 d284 movel 7d284 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 57734: 2d40 fff8 movel %d0,%fp@(-8) <== NOT EXECUTED 57738: 4eb9 0005 9ba0 jsr 59ba0 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; 5773e: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED 57742: 588f addql #4,%sp <== NOT EXECUTED 57744: 60a4 bras 576ea <== NOT EXECUTED rtems_status_code return_status; Region_Control *the_region; void *the_segment; if ( !segment ) return RTEMS_INVALID_ADDRESS; 57746: 7009 moveq #9,%d0 <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); return return_status; } 57748: 4cee 1c0c ffe4 moveml %fp@(-28),%d2-%d3/%a2-%a4 <== NOT EXECUTED 5774e: 4e5e unlk %fp <== NOT EXECUTED 57750: 4e75 rts <== NOT EXECUTED if ( the_segment ) { the_region->number_of_used_blocks += 1; *segment = the_segment; return_status = RTEMS_SUCCESSFUL; } else if ( _Options_Is_no_wait( option_set ) ) { 57752: 202e 0010 movel %fp@(16),%d0 <== NOT EXECUTED 57756: 0800 0000 btst #0,%d0 <== NOT EXECUTED 5775a: 671c beqs 57778 <== NOT EXECUTED return_status = RTEMS_UNSATISFIED; 5775c: 700d moveq #13,%d0 <== NOT EXECUTED default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 5775e: 2f39 0007 d284 movel 7d284 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 57764: 2d40 fff8 movel %d0,%fp@(-8) <== NOT EXECUTED 57768: 4eb9 0005 9ba0 jsr 59ba0 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; 5776e: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED 57772: 588f addql #4,%sp <== NOT EXECUTED 57774: 6000 ff74 braw 576ea <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 57778: 2039 0007 d1c4 movel 7d1c4 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED 5777e: 5280 addql #1,%d0 <== NOT EXECUTED 57780: 23c0 0007 d1c4 movel %d0,7d1c4 <_Thread_Dispatch_disable_level><== NOT EXECUTED * Switch from using the memory allocation mutex to using a * dispatching disabled critical section. We have to do this * because this thread is going to block. */ _Thread_Disable_dispatch(); _RTEMS_Unlock_allocator(); 57786: 2f39 0007 d284 movel 7d284 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 5778c: 4eb9 0005 9ba0 jsr 59ba0 <_API_Mutex_Unlock> <== NOT EXECUTED executing->Wait.queue = &the_region->Wait_queue; 57792: 200b movel %a3,%d0 <== NOT EXECUTED 57794: 0680 0000 0010 addil #16,%d0 <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Thread_queue_Enter_critical_section ( Thread_queue_Control *the_thread_queue ) { the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; 5779a: 7201 moveq #1,%d1 <== NOT EXECUTED 5779c: 2940 0044 movel %d0,%a4@(68) <== NOT EXECUTED executing->Wait.id = id; 577a0: 2943 0020 movel %d3,%a4@(32) <== NOT EXECUTED executing->Wait.count = size; 577a4: 2942 0024 movel %d2,%a4@(36) <== NOT EXECUTED executing->Wait.return_argument = segment; 577a8: 294a 0028 movel %a2,%a4@(40) <== NOT EXECUTED 577ac: 2741 0040 movel %d1,%a3@(64) <== NOT EXECUTED _Thread_queue_Enter_critical_section( &the_region->Wait_queue ); _Thread_queue_Enqueue( &the_region->Wait_queue, timeout ); 577b0: 4879 0005 cbcc pea 5cbcc <_Thread_queue_Timeout> <== NOT EXECUTED 577b6: 2f2e 0014 movel %fp@(20),%sp@- <== NOT EXECUTED 577ba: 2f00 movel %d0,%sp@- <== NOT EXECUTED 577bc: 4eb9 0005 c808 jsr 5c808 <_Thread_queue_Enqueue_with_handler><== NOT EXECUTED _Thread_Enable_dispatch(); 577c2: 4eb9 0005 c34a jsr 5c34a <_Thread_Enable_dispatch> <== NOT EXECUTED return (rtems_status_code) executing->Wait.return_code; 577c8: 202c 0034 movel %a4@(52),%d0 <== NOT EXECUTED 577cc: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); return return_status; } 577d0: 4cee 1c0c ffe4 moveml %fp@(-28),%d2-%d3/%a2-%a4 <== NOT EXECUTED 577d6: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 000577dc : rtems_status_code rtems_region_get_segment_size( rtems_id id, void *segment, uintptr_t *size ) { 577dc: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 577e0: 2f03 movel %d3,%sp@- <== NOT EXECUTED 577e2: 262e 0010 movel %fp@(16),%d3 <== NOT EXECUTED 577e6: 2f02 movel %d2,%sp@- <== NOT EXECUTED 577e8: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED Objects_Locations location; rtems_status_code return_status = RTEMS_SUCCESSFUL; register Region_Control *the_region; if ( !segment ) 577ec: 6700 0092 beqw 57880 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !size ) 577f0: 4a83 tstl %d3 <== NOT EXECUTED 577f2: 6700 008c beqw 57880 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); 577f6: 2f39 0007 d284 movel 7d284 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 577fc: 4eb9 0005 9b40 jsr 59b40 <_API_Mutex_Lock> <== NOT EXECUTED 57802: 486e fffc pea %fp@(-4) <== NOT EXECUTED 57806: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 5780a: 4879 0007 d0d4 pea 7d0d4 <_Region_Information> <== NOT EXECUTED 57810: 4eb9 0005 b780 jsr 5b780 <_Objects_Get_no_protection> <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { 57816: 222e fffc movel %fp@(-4),%d1 <== NOT EXECUTED 5781a: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 5781e: 6636 bnes 57856 <== NOT EXECUTED case OBJECTS_LOCAL: if ( !_Heap_Size_of_alloc_area( &the_region->Memory, segment, size ) ) 57820: 2f03 movel %d3,%sp@- <== NOT EXECUTED 57822: 2040 moveal %d0,%a0 <== NOT EXECUTED 57824: 2f02 movel %d2,%sp@- <== NOT EXECUTED 57826: 4868 0068 pea %a0@(104) <== NOT EXECUTED 5782a: 4eb9 0005 b1a0 jsr 5b1a0 <_Heap_Size_of_alloc_area> <== NOT EXECUTED 57830: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 57834: 4a00 tstb %d0 <== NOT EXECUTED 57836: 6624 bnes 5785c <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 57838: 2f39 0007 d284 movel 7d284 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_Heap_Size_of_alloc_area( &the_region->Memory, segment, size ) ) return_status = RTEMS_INVALID_ADDRESS; 5783e: 7409 moveq #9,%d2 <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 57840: 4eb9 0005 9ba0 jsr 59ba0 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; 57846: 588f addql #4,%sp <== NOT EXECUTED } 57848: 2002 movel %d2,%d0 <== NOT EXECUTED 5784a: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 5784e: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED 57852: 4e5e unlk %fp <== NOT EXECUTED 57854: 4e75 rts <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); the_region = _Region_Get( id, &location ); switch ( location ) { 57856: 7001 moveq #1,%d0 <== NOT EXECUTED 57858: b081 cmpl %d1,%d0 <== NOT EXECUTED 5785a: 6712 beqs 5786e <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 5785c: 2f39 0007 d284 movel 7d284 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED void *segment, uintptr_t *size ) { Objects_Locations location; rtems_status_code return_status = RTEMS_SUCCESSFUL; 57862: 4282 clrl %d2 <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 57864: 4eb9 0005 9ba0 jsr 59ba0 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; 5786a: 588f addql #4,%sp <== NOT EXECUTED 5786c: 60da bras 57848 <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 5786e: 2f39 0007 d284 movel 7d284 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED case OBJECTS_REMOTE: /* this error cannot be returned */ break; #endif case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; 57874: 7404 moveq #4,%d2 <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); 57876: 4eb9 0005 9ba0 jsr 59ba0 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; 5787c: 588f addql #4,%sp <== NOT EXECUTED 5787e: 60c8 bras 57848 <== NOT EXECUTED if ( !segment ) return RTEMS_INVALID_ADDRESS; if ( !size ) return RTEMS_INVALID_ADDRESS; 57880: 7409 moveq #9,%d2 <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); return return_status; } 57882: 2002 movel %d2,%d0 <== NOT EXECUTED 57884: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 57888: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED 5788c: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00057890 : rtems_status_code rtems_region_ident( rtems_name name, rtems_id *id ) { 57890: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( 57894: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 57898: 2f3c 7fff ffff movel #2147483647,%sp@- <== NOT EXECUTED 5789e: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 578a2: 4879 0007 d0d4 pea 7d0d4 <_Region_Information> <== NOT EXECUTED 578a8: 4eb9 0005 b948 jsr 5b948 <_Objects_Name_to_id_u32> <== NOT EXECUTED name, OBJECTS_SEARCH_LOCAL_NODE, id ); return _Status_Object_name_errors_to_status[ status ]; 578ae: 41f9 0007 67f0 lea 767f0 <_Status_Object_name_errors_to_status>,%a0<== NOT EXECUTED } 578b4: 4e5e unlk %fp <== NOT EXECUTED 578b6: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED =============================================================================== 000578bc : rtems_id id, void *segment, uintptr_t size, uintptr_t *old_size ) { 578bc: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 578c0: 2f0b movel %a3,%sp@- <== NOT EXECUTED 578c2: 2f0a movel %a2,%sp@- <== NOT EXECUTED 578c4: 246e 0014 moveal %fp@(20),%a2 <== NOT EXECUTED uintptr_t osize; rtems_status_code return_status; Heap_Resize_status status; register Region_Control *the_region; if ( !old_size ) 578c8: 4a8a tstl %a2 <== NOT EXECUTED 578ca: 6700 00a4 beqw 57970 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); 578ce: 2f39 0007 d284 movel 7d284 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 578d4: 4eb9 0005 9b40 jsr 59b40 <_API_Mutex_Lock> <== NOT EXECUTED 578da: 486e fff8 pea %fp@(-8) <== NOT EXECUTED 578de: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 578e2: 4879 0007 d0d4 pea 7d0d4 <_Region_Information> <== NOT EXECUTED 578e8: 4eb9 0005 b780 jsr 5b780 <_Objects_Get_no_protection> <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { 578ee: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 578f2: 2640 moveal %d0,%a3 <== NOT EXECUTED 578f4: 4aae fff8 tstl %fp@(-8) <== NOT EXECUTED 578f8: 663e bnes 57938 <== NOT EXECUTED case OBJECTS_LOCAL: _Region_Debug_Walk( the_region, 7 ); status = _Heap_Resize_block( 578fa: 486e fffc pea %fp@(-4) <== NOT EXECUTED 578fe: 486e fff4 pea %fp@(-12) <== NOT EXECUTED 57902: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 57906: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 5790a: 486b 0068 pea %a3@(104) <== NOT EXECUTED 5790e: 4eb9 0005 b0b4 jsr 5b0b4 <_Heap_Resize_block> <== NOT EXECUTED segment, (uint32_t) size, &osize, &avail_size ); *old_size = (uint32_t) osize; 57914: 24ae fff4 movel %fp@(-12),%a2@ <== NOT EXECUTED _Region_Debug_Walk( the_region, 8 ); if ( status == HEAP_RESIZE_SUCCESSFUL ) 57918: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED 5791c: 4a80 tstl %d0 <== NOT EXECUTED 5791e: 6634 bnes 57954 <== NOT EXECUTED _Region_Process_queue( the_region ); /* unlocks allocator */ 57920: 2f0b movel %a3,%sp@- <== NOT EXECUTED 57922: 4eb9 0005 f2cc jsr 5f2cc <_Region_Process_queue> <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); return return_status; } 57928: 246e ffe8 moveal %fp@(-24),%a2 <== NOT EXECUTED *old_size = (uint32_t) osize; _Region_Debug_Walk( the_region, 8 ); if ( status == HEAP_RESIZE_SUCCESSFUL ) _Region_Process_queue( the_region ); /* unlocks allocator */ 5792c: 588f addql #4,%sp <== NOT EXECUTED else _RTEMS_Unlock_allocator(); if (status == HEAP_RESIZE_SUCCESSFUL) return RTEMS_SUCCESSFUL; 5792e: 4280 clrl %d0 <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); return return_status; } 57930: 266e ffec moveal %fp@(-20),%a3 <== NOT EXECUTED 57934: 4e5e unlk %fp <== NOT EXECUTED 57936: 4e75 rts <== NOT EXECUTED default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 57938: 2f39 0007 d284 movel 7d284 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 5793e: 4eb9 0005 9ba0 jsr 59ba0 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; } 57944: 246e ffe8 moveal %fp@(-24),%a2 <== NOT EXECUTED return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); return return_status; 57948: 588f addql #4,%sp <== NOT EXECUTED 5794a: 7004 moveq #4,%d0 <== NOT EXECUTED } 5794c: 266e ffec moveal %fp@(-20),%a3 <== NOT EXECUTED 57950: 4e5e unlk %fp <== NOT EXECUTED 57952: 4e75 rts <== NOT EXECUTED _Region_Debug_Walk( the_region, 8 ); if ( status == HEAP_RESIZE_SUCCESSFUL ) _Region_Process_queue( the_region ); /* unlocks allocator */ else _RTEMS_Unlock_allocator(); 57954: 2f39 0007 d284 movel 7d284 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 5795a: 2d40 fff0 movel %d0,%fp@(-16) <== NOT EXECUTED 5795e: 4eb9 0005 9ba0 jsr 59ba0 <_API_Mutex_Unlock> <== NOT EXECUTED if (status == HEAP_RESIZE_SUCCESSFUL) return RTEMS_SUCCESSFUL; if (status == HEAP_RESIZE_UNSATISFIED) 57964: 202e fff0 movel %fp@(-16),%d0 <== NOT EXECUTED 57968: 588f addql #4,%sp <== NOT EXECUTED 5796a: 7201 moveq #1,%d1 <== NOT EXECUTED 5796c: b280 cmpl %d0,%d1 <== NOT EXECUTED 5796e: 670e beqs 5797e <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); return return_status; } 57970: 246e ffe8 moveal %fp@(-24),%a2 <== NOT EXECUTED if (status == HEAP_RESIZE_SUCCESSFUL) return RTEMS_SUCCESSFUL; if (status == HEAP_RESIZE_UNSATISFIED) return RTEMS_UNSATISFIED; return RTEMS_INVALID_ADDRESS; 57974: 7009 moveq #9,%d0 <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); return return_status; } 57976: 266e ffec moveal %fp@(-20),%a3 <== NOT EXECUTED 5797a: 4e5e unlk %fp <== NOT EXECUTED 5797c: 4e75 rts <== NOT EXECUTED 5797e: 246e ffe8 moveal %fp@(-24),%a2 <== NOT EXECUTED if (status == HEAP_RESIZE_SUCCESSFUL) return RTEMS_SUCCESSFUL; if (status == HEAP_RESIZE_UNSATISFIED) return RTEMS_UNSATISFIED; 57982: 700d moveq #13,%d0 <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); return return_status; } 57984: 266e ffec moveal %fp@(-20),%a3 <== NOT EXECUTED 57988: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 0005798c : rtems_status_code rtems_region_return_segment( rtems_id id, void *segment ) { 5798c: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 57990: 2f0a movel %a2,%sp@- <== NOT EXECUTED 57992: 2f02 movel %d2,%sp@- <== NOT EXECUTED uint32_t size; #endif int status; register Region_Control *the_region; _RTEMS_Lock_allocator(); 57994: 2f39 0007 d284 movel 7d284 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 5799a: 4eb9 0005 9b40 jsr 59b40 <_API_Mutex_Lock> <== NOT EXECUTED 579a0: 486e fffc pea %fp@(-4) <== NOT EXECUTED 579a4: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 579a8: 4879 0007 d0d4 pea 7d0d4 <_Region_Information> <== NOT EXECUTED 579ae: 4eb9 0005 b780 jsr 5b780 <_Objects_Get_no_protection> <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { 579b4: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 579b8: 2440 moveal %d0,%a2 <== NOT EXECUTED 579ba: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 579be: 6632 bnes 579f2 <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool _Region_Free_segment ( Region_Control *the_region, void *the_segment ) { return _Heap_Free( &the_region->Memory, the_segment ); 579c0: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 579c4: 486a 0068 pea %a2@(104) <== NOT EXECUTED 579c8: 4eb9 0005 aab4 jsr 5aab4 <_Heap_Free> <== NOT EXECUTED #endif status = _Region_Free_segment( the_region, segment ); _Region_Debug_Walk( the_region, 4 ); if ( !status ) 579ce: 508f addql #8,%sp <== NOT EXECUTED 579d0: 4a00 tstb %d0 <== NOT EXECUTED 579d2: 6630 bnes 57a04 <== NOT EXECUTED default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 579d4: 2f39 0007 d284 movel 7d284 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED status = _Region_Free_segment( the_region, segment ); _Region_Debug_Walk( the_region, 4 ); if ( !status ) return_status = RTEMS_INVALID_ADDRESS; 579da: 7409 moveq #9,%d2 <== NOT EXECUTED default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 579dc: 4eb9 0005 9ba0 jsr 59ba0 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; 579e2: 588f addql #4,%sp <== NOT EXECUTED } 579e4: 2002 movel %d2,%d0 <== NOT EXECUTED 579e6: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 579ea: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 579ee: 4e5e unlk %fp <== NOT EXECUTED 579f0: 4e75 rts <== NOT EXECUTED default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 579f2: 2f39 0007 d284 movel 7d284 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED break; #endif case OBJECTS_ERROR: default: return_status = RTEMS_INVALID_ID; 579f8: 7404 moveq #4,%d2 <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); 579fa: 4eb9 0005 9ba0 jsr 59ba0 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; 57a00: 588f addql #4,%sp <== NOT EXECUTED 57a02: 60e0 bras 579e4 <== NOT EXECUTED _Region_Debug_Walk( the_region, 4 ); if ( !status ) return_status = RTEMS_INVALID_ADDRESS; else { the_region->number_of_used_blocks -= 1; 57a04: 53aa 0064 subql #1,%a2@(100) <== NOT EXECUTED _Region_Process_queue(the_region); /* unlocks allocator */ return RTEMS_SUCCESSFUL; 57a08: 4282 clrl %d2 <== NOT EXECUTED if ( !status ) return_status = RTEMS_INVALID_ADDRESS; else { the_region->number_of_used_blocks -= 1; _Region_Process_queue(the_region); /* unlocks allocator */ 57a0a: 2f0a movel %a2,%sp@- <== NOT EXECUTED 57a0c: 4eb9 0005 f2cc jsr 5f2cc <_Region_Process_queue> <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); return return_status; } 57a12: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 57a16: 2002 movel %d2,%d0 <== NOT EXECUTED else { the_region->number_of_used_blocks -= 1; _Region_Process_queue(the_region); /* unlocks allocator */ return RTEMS_SUCCESSFUL; 57a18: 588f addql #4,%sp <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); return return_status; } 57a1a: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 57a1e: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 000461bc : uint32_t count, rtems_attribute attribute_set, rtems_task_priority priority_ceiling, rtems_id *id ) { 461bc: 4e56 ffd4 linkw %fp,#-44 461c0: 48d7 0c1c moveml %d2-%d4/%a2-%a3,%sp@ 461c4: 262e 0008 movel %fp@(8),%d3 461c8: 242e 0010 movel %fp@(16),%d2 461cc: 246e 0018 moveal %fp@(24),%a2 register Semaphore_Control *the_semaphore; CORE_mutex_Attributes the_mutex_attr; CORE_semaphore_Attributes the_semaphore_attr; CORE_mutex_Status mutex_status; if ( !rtems_is_name_valid( name ) ) 461d0: 4a83 tstl %d3 461d2: 6746 beqs 4621a <== NEVER TAKEN return RTEMS_INVALID_NAME; if ( !id ) 461d4: 4a8a tstl %a2 461d6: 6700 00e8 beqw 462c0 * id - semaphore id * RTEMS_SUCCESSFUL - if successful * error code - if unsuccessful */ rtems_status_code rtems_semaphore_create( 461da: 2002 movel %d2,%d0 461dc: 0280 0000 00c0 andil #192,%d0 return RTEMS_NOT_DEFINED; } else #endif if ( _Attributes_Is_inherit_priority( attribute_set ) || 461e2: 6742 beqs 46226 */ RTEMS_INLINE_ROUTINE bool _Attributes_Is_binary_semaphore( rtems_attribute attribute_set ) { return ((attribute_set & RTEMS_SEMAPHORE_CLASS) == RTEMS_BINARY_SEMAPHORE); 461e4: 7230 moveq #48,%d1 _Attributes_Is_priority_ceiling( attribute_set ) ) { if ( ! (_Attributes_Is_binary_semaphore( attribute_set ) && 461e6: 7810 moveq #16,%d4 461e8: c282 andl %d2,%d1 461ea: b881 cmpl %d1,%d4 461ec: 670c beqs 461fa <== ALWAYS TAKEN } if ( _Attributes_Is_inherit_priority( attribute_set ) && _Attributes_Is_priority_ceiling( attribute_set ) ) return RTEMS_NOT_DEFINED; 461ee: 700b moveq #11,%d0 <== NOT EXECUTED 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 461f0: 4cee 0c1c ffd4 moveml %fp@(-44),%d2-%d4/%a2-%a3 <== NOT EXECUTED 461f6: 4e5e unlk %fp <== NOT EXECUTED 461f8: 4e75 rts <== NOT EXECUTED #endif if ( _Attributes_Is_inherit_priority( attribute_set ) || _Attributes_Is_priority_ceiling( attribute_set ) ) { if ( ! (_Attributes_Is_binary_semaphore( attribute_set ) && 461fa: 44c2 movew %d2,%ccr 461fc: 66f0 bnes 461ee <== NEVER TAKEN _Attributes_Is_priority( attribute_set ) ) ) return RTEMS_NOT_DEFINED; } if ( _Attributes_Is_inherit_priority( attribute_set ) && 461fe: 0c80 0000 00c0 cmpil #192,%d0 46204: 67e8 beqs 461ee <== NEVER TAKEN _Attributes_Is_priority_ceiling( attribute_set ) ) return RTEMS_NOT_DEFINED; if ( !_Attributes_Is_counting_semaphore( attribute_set ) && ( count > 1 ) ) 46206: 7001 moveq #1,%d0 46208: b0ae 000c cmpl %fp@(12),%d0 4620c: 641e bccs 4622c <== ALWAYS TAKEN return RTEMS_INVALID_NUMBER; 4620e: 700a moveq #10,%d0 <== NOT EXECUTED 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 46210: 4cee 0c1c ffd4 moveml %fp@(-44),%d2-%d4/%a2-%a3 <== NOT EXECUTED 46216: 4e5e unlk %fp <== NOT EXECUTED 46218: 4e75 rts <== NOT EXECUTED CORE_mutex_Attributes the_mutex_attr; CORE_semaphore_Attributes the_semaphore_attr; CORE_mutex_Status mutex_status; if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; 4621a: 7003 moveq #3,%d0 <== NOT EXECUTED 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 4621c: 4cee 0c1c ffd4 moveml %fp@(-44),%d2-%d4/%a2-%a3 <== NOT EXECUTED 46222: 4e5e unlk %fp <== NOT EXECUTED 46224: 4e75 rts <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Attributes_Is_counting_semaphore( rtems_attribute attribute_set ) { return ((attribute_set & RTEMS_SEMAPHORE_CLASS) == RTEMS_COUNTING_SEMAPHORE); 46226: 7830 moveq #48,%d4 46228: c882 andl %d2,%d4 if ( _Attributes_Is_inherit_priority( attribute_set ) && _Attributes_Is_priority_ceiling( attribute_set ) ) return RTEMS_NOT_DEFINED; if ( !_Attributes_Is_counting_semaphore( attribute_set ) && ( count > 1 ) ) 4622a: 66da bnes 46206 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 4622c: 2039 0005 e4c8 movel 5e4c8 <_Thread_Dispatch_disable_level>,%d0 46232: 5280 addql #1,%d0 46234: 23c0 0005 e4c8 movel %d0,5e4c8 <_Thread_Dispatch_disable_level> * This function allocates a semaphore control block from * the inactive chain of free semaphore control blocks. */ RTEMS_INLINE_ROUTINE Semaphore_Control *_Semaphore_Allocate( void ) { return (Semaphore_Control *) _Objects_Allocate( &_Semaphore_Information ); 4623a: 4879 0005 e410 pea 5e410 <_Semaphore_Information> 46240: 4eb9 0004 7874 jsr 47874 <_Objects_Allocate> _Thread_Disable_dispatch(); /* prevents deletion */ the_semaphore = _Semaphore_Allocate(); if ( !the_semaphore ) { 46246: 588f addql #4,%sp 46248: 2640 moveal %d0,%a3 4624a: 4a80 tstl %d0 4624c: 6700 00d8 beqw 46326 _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } #endif the_semaphore->attribute_set = attribute_set; 46250: 2742 0010 movel %d2,%a3@(16) /* * Initialize it as a counting semaphore. */ if ( _Attributes_Is_counting_semaphore( attribute_set ) ) { 46254: 4a84 tstl %d4 46256: 6774 beqs 462cc <== NEVER TAKEN /* * It is either simple binary semaphore or a more powerful mutex * style binary semaphore. This is the mutex style. */ if ( _Attributes_Is_priority( attribute_set ) ) the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY; 46258: 44c2 movew %d2,%ccr 4625a: 56c0 sne %d0 4625c: 49c0 extbl %d0 4625e: 5280 addql #1,%d0 46260: 2d40 fff0 movel %d0,%fp@(-16) else the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_FIFO; if ( _Attributes_Is_binary_semaphore( attribute_set ) ) { 46264: 7010 moveq #16,%d0 46266: b084 cmpl %d4,%d0 46268: 6700 00ce beqw 46338 the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING; the_mutex_attr.only_owner_release = true; } } } else /* must be simple binary semaphore */ { the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_BLOCKS; 4626c: 7202 moveq #2,%d1 the_mutex_attr.only_owner_release = false; 4626e: 4204 clrb %d4 the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING; the_mutex_attr.only_owner_release = true; } } } else /* must be simple binary semaphore */ { the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_BLOCKS; 46270: 2d41 ffea movel %d1,%fp@(-22) the_mutex_attr.only_owner_release = false; 46274: 1d44 ffee moveb %d4,%fp@(-18) } mutex_status = _CORE_mutex_Initialize( 46278: 7001 moveq #1,%d0 4627a: b0ae 000c cmpl %fp@(12),%d0 4627e: 57c0 seq %d0 46280: 49c0 extbl %d0 46282: 4480 negl %d0 46284: 2f00 movel %d0,%sp@- 46286: 486e ffea pea %fp@(-22) 4628a: 486b 0014 pea %a3@(20) 4628e: 4eb9 0004 6f20 jsr 46f20 <_CORE_mutex_Initialize> &the_semaphore->Core_control.mutex, &the_mutex_attr, (count == 1) ? CORE_MUTEX_UNLOCKED : CORE_MUTEX_LOCKED ); if ( mutex_status == CORE_MUTEX_STATUS_CEILING_VIOLATED ) { 46294: 4fef 000c lea %sp@(12),%sp 46298: 7206 moveq #6,%d1 4629a: b280 cmpl %d0,%d1 4629c: 665e bnes 462fc <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE void _Semaphore_Free ( Semaphore_Control *the_semaphore ) { _Objects_Free( &_Semaphore_Information, &the_semaphore->Object ); 4629e: 2f0b movel %a3,%sp@- <== NOT EXECUTED 462a0: 4879 0005 e410 pea 5e410 <_Semaphore_Information> <== NOT EXECUTED 462a6: 4eb9 0004 7bc8 jsr 47bc8 <_Objects_Free> <== NOT EXECUTED _Semaphore_Free( the_semaphore ); _Thread_Enable_dispatch(); 462ac: 4eb9 0004 88c2 jsr 488c2 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_INVALID_PRIORITY; 462b2: 508f addql #8,%sp <== NOT EXECUTED 462b4: 7013 moveq #19,%d0 <== NOT EXECUTED 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 462b6: 4cee 0c1c ffd4 moveml %fp@(-44),%d2-%d4/%a2-%a3 <== NOT EXECUTED 462bc: 4e5e unlk %fp <== NOT EXECUTED 462be: 4e75 rts <== NOT EXECUTED if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; if ( !id ) return RTEMS_INVALID_ADDRESS; 462c0: 7009 moveq #9,%d0 <== NOT EXECUTED 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 462c2: 4cee 0c1c ffd4 moveml %fp@(-44),%d2-%d4/%a2-%a3 <== NOT EXECUTED 462c8: 4e5e unlk %fp <== NOT EXECUTED 462ca: 4e75 rts <== NOT EXECUTED * The following are just to make Purify happy. */ the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; the_mutex_attr.priority_ceiling = PRIORITY_MINIMUM; _CORE_semaphore_Initialize( 462cc: 2f2e 000c movel %fp@(12),%sp@- */ if ( _Attributes_Is_counting_semaphore( attribute_set ) ) { /* * This effectively disables limit checking. */ the_semaphore_attr.maximum_count = 0xFFFFFFFF; 462d0: 72ff moveq #-1,%d1 * The following are just to make Purify happy. */ the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; the_mutex_attr.priority_ceiling = PRIORITY_MINIMUM; _CORE_semaphore_Initialize( 462d2: 486e fff8 pea %fp@(-8) 462d6: 486b 0014 pea %a3@(20) * This effectively disables limit checking. */ the_semaphore_attr.maximum_count = 0xFFFFFFFF; if ( _Attributes_Is_priority( attribute_set ) ) the_semaphore_attr.discipline = CORE_SEMAPHORE_DISCIPLINES_PRIORITY; 462da: 44c2 movew %d2,%ccr 462dc: 56c0 sne %d0 */ if ( _Attributes_Is_counting_semaphore( attribute_set ) ) { /* * This effectively disables limit checking. */ the_semaphore_attr.maximum_count = 0xFFFFFFFF; 462de: 2d41 fff8 movel %d1,%fp@(-8) if ( _Attributes_Is_priority( attribute_set ) ) the_semaphore_attr.discipline = CORE_SEMAPHORE_DISCIPLINES_PRIORITY; 462e2: 49c0 extbl %d0 462e4: 5280 addql #1,%d0 the_semaphore_attr.discipline = CORE_SEMAPHORE_DISCIPLINES_FIFO; /* * The following are just to make Purify happy. */ the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; 462e6: 42ae ffea clrl %fp@(-22) * This effectively disables limit checking. */ the_semaphore_attr.maximum_count = 0xFFFFFFFF; if ( _Attributes_Is_priority( attribute_set ) ) the_semaphore_attr.discipline = CORE_SEMAPHORE_DISCIPLINES_PRIORITY; 462ea: 2d40 fffc movel %d0,%fp@(-4) /* * The following are just to make Purify happy. */ the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; the_mutex_attr.priority_ceiling = PRIORITY_MINIMUM; 462ee: 42ae fff4 clrl %fp@(-12) _CORE_semaphore_Initialize( 462f2: 4eb9 0004 7258 jsr 47258 <_CORE_semaphore_Initialize> 462f8: 4fef 000c lea %sp@(12),%sp Objects_Name name ) { _Objects_Set_local_object( information, _Objects_Get_index( the_object->id ), 462fc: 202b 0008 movel %a3@(8),%d0 Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( 46300: 4281 clrl %d1 #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 46302: 2079 0005 e428 moveal 5e428 <_Semaphore_Information+0x18>,%a0 Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( 46308: 3200 movew %d0,%d1 #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 4630a: 218b 1c00 movel %a3,%a0@(00000000,%d1:l:4) information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 4630e: 2743 000c movel %d3,%a3@(12) &_Semaphore_Information, &the_semaphore->Object, (Objects_Name) name ); *id = the_semaphore->Object.id; 46312: 2480 movel %d0,%a2@ the_semaphore->Object.id, name, 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); 46314: 4eb9 0004 88c2 jsr 488c2 <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; } 4631a: 4cee 0c1c ffd4 moveml %fp@(-44),%d2-%d4/%a2-%a3 name, 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 46320: 4280 clrl %d0 } 46322: 4e5e unlk %fp 46324: 4e75 rts _Thread_Disable_dispatch(); /* prevents deletion */ the_semaphore = _Semaphore_Allocate(); if ( !the_semaphore ) { _Thread_Enable_dispatch(); 46326: 4eb9 0004 88c2 jsr 488c2 <_Thread_Enable_dispatch> return RTEMS_TOO_MANY; 4632c: 7005 moveq #5,%d0 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 4632e: 4cee 0c1c ffd4 moveml %fp@(-44),%d2-%d4/%a2-%a3 46334: 4e5e unlk %fp 46336: 4e75 rts else the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_FIFO; if ( _Attributes_Is_binary_semaphore( attribute_set ) ) { the_mutex_attr.priority_ceiling = priority_ceiling; the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; 46338: 42ae ffea clrl %fp@(-22) the_mutex_attr.only_owner_release = false; if ( the_mutex_attr.discipline == CORE_MUTEX_DISCIPLINES_PRIORITY ) { 4633c: 7801 moveq #1,%d4 the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_FIFO; if ( _Attributes_Is_binary_semaphore( attribute_set ) ) { the_mutex_attr.priority_ceiling = priority_ceiling; the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; the_mutex_attr.only_owner_release = false; 4633e: 4201 clrb %d1 the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY; else the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_FIFO; if ( _Attributes_Is_binary_semaphore( attribute_set ) ) { the_mutex_attr.priority_ceiling = priority_ceiling; 46340: 2d6e 0014 fff4 movel %fp@(20),%fp@(-12) the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; the_mutex_attr.only_owner_release = false; 46346: 1d41 ffee moveb %d1,%fp@(-18) if ( the_mutex_attr.discipline == CORE_MUTEX_DISCIPLINES_PRIORITY ) { 4634a: b8ae fff0 cmpl %fp@(-16),%d4 4634e: 6600 ff28 bnew 46278 if ( _Attributes_Is_inherit_priority( attribute_set ) ) { 46352: 0802 0006 btst #6,%d2 46356: 6712 beqs 4636a <== NEVER TAKEN the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; 46358: 103c 0002 moveb #2,%d0 the_mutex_attr.only_owner_release = true; 4635c: 7201 moveq #1,%d1 the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; the_mutex_attr.only_owner_release = false; if ( the_mutex_attr.discipline == CORE_MUTEX_DISCIPLINES_PRIORITY ) { if ( _Attributes_Is_inherit_priority( attribute_set ) ) { the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; 4635e: 2d40 fff0 movel %d0,%fp@(-16) the_mutex_attr.only_owner_release = true; 46362: 1d41 ffee moveb %d1,%fp@(-18) 46366: 6000 ff10 braw 46278 } else if ( _Attributes_Is_priority_ceiling( attribute_set ) ) { 4636a: 4a02 tstb %d2 <== NOT EXECUTED 4636c: 6c00 ff0a bgew 46278 <== NOT EXECUTED the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING; 46370: 7803 moveq #3,%d4 <== NOT EXECUTED the_mutex_attr.only_owner_release = true; 46372: 7001 moveq #1,%d0 <== NOT EXECUTED if ( the_mutex_attr.discipline == CORE_MUTEX_DISCIPLINES_PRIORITY ) { if ( _Attributes_Is_inherit_priority( attribute_set ) ) { the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; the_mutex_attr.only_owner_release = true; } else if ( _Attributes_Is_priority_ceiling( attribute_set ) ) { the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING; 46374: 2d44 fff0 movel %d4,%fp@(-16) <== NOT EXECUTED the_mutex_attr.only_owner_release = true; 46378: 1d40 ffee moveb %d0,%fp@(-18) <== NOT EXECUTED 4637c: 6000 fefa braw 46278 <== NOT EXECUTED =============================================================================== 00046380 : #endif rtems_status_code rtems_semaphore_delete( rtems_id id ) { 46380: 4e56 fffc linkw %fp,#-4 46384: 2f0a movel %a2,%sp@- Objects_Id id, Objects_Locations *location ) { return (Semaphore_Control *) _Objects_Get( &_Semaphore_Information, id, location ); 46386: 486e fffc pea %fp@(-4) 4638a: 2f2e 0008 movel %fp@(8),%sp@- 4638e: 4879 0005 e410 pea 5e410 <_Semaphore_Information> 46394: 4eb9 0004 7d34 jsr 47d34 <_Objects_Get> register Semaphore_Control *the_semaphore; Objects_Locations location; the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) { 4639a: 4fef 000c lea %sp@(12),%sp 4639e: 2440 moveal %d0,%a2 463a0: 4aae fffc tstl %fp@(-4) 463a4: 670a beqs 463b0 <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 463a6: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 463aa: 7004 moveq #4,%d0 <== NOT EXECUTED } 463ac: 4e5e unlk %fp <== NOT EXECUTED 463ae: 4e75 rts <== NOT EXECUTED 463b0: 7030 moveq #48,%d0 463b2: c0aa 0010 andl %a2@(16),%d0 the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) { 463b6: 6760 beqs 46418 if ( _CORE_mutex_Is_locked( &the_semaphore->Core_control.mutex ) && 463b8: 4aaa 0062 tstl %a2@(98) 463bc: 6616 bnes 463d4 463be: 7220 moveq #32,%d1 463c0: b280 cmpl %d0,%d1 463c2: 6710 beqs 463d4 <== ALWAYS TAKEN !_Attributes_Is_simple_binary_semaphore( the_semaphore->attribute_set ) ) { _Thread_Enable_dispatch(); 463c4: 4eb9 0004 88c2 jsr 488c2 <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 463ca: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) { if ( _CORE_mutex_Is_locked( &the_semaphore->Core_control.mutex ) && !_Attributes_Is_simple_binary_semaphore( the_semaphore->attribute_set ) ) { _Thread_Enable_dispatch(); return RTEMS_RESOURCE_IN_USE; 463ce: 700c moveq #12,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 463d0: 4e5e unlk %fp <== NOT EXECUTED 463d2: 4e75 rts <== NOT EXECUTED !_Attributes_Is_simple_binary_semaphore( the_semaphore->attribute_set ) ) { _Thread_Enable_dispatch(); return RTEMS_RESOURCE_IN_USE; } _CORE_mutex_Flush( 463d4: 4878 0004 pea 4 463d8: 42a7 clrl %sp@- 463da: 486a 0014 pea %a2@(20) 463de: 4eb9 0004 6f14 jsr 46f14 <_CORE_mutex_Flush> 463e4: 4fef 000c lea %sp@(12),%sp SEMAPHORE_MP_OBJECT_WAS_DELETED, CORE_SEMAPHORE_WAS_DELETED ); } _Objects_Close( &_Semaphore_Information, &the_semaphore->Object ); 463e8: 2f0a movel %a2,%sp@- 463ea: 4879 0005 e410 pea 5e410 <_Semaphore_Information> 463f0: 4eb9 0004 7904 jsr 47904 <_Objects_Close> */ RTEMS_INLINE_ROUTINE void _Semaphore_Free ( Semaphore_Control *the_semaphore ) { _Objects_Free( &_Semaphore_Information, &the_semaphore->Object ); 463f6: 2f0a movel %a2,%sp@- 463f8: 4879 0005 e410 pea 5e410 <_Semaphore_Information> 463fe: 4eb9 0004 7bc8 jsr 47bc8 <_Objects_Free> 0, /* Not used */ 0 /* Not used */ ); } #endif _Thread_Enable_dispatch(); 46404: 4eb9 0004 88c2 jsr 488c2 <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; 4640a: 4fef 0010 lea %sp@(16),%sp 4640e: 4280 clrl %d0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 46410: 246e fff8 moveal %fp@(-8),%a2 46414: 4e5e unlk %fp 46416: 4e75 rts &the_semaphore->Core_control.mutex, SEMAPHORE_MP_OBJECT_WAS_DELETED, CORE_MUTEX_WAS_DELETED ); } else { _CORE_semaphore_Flush( 46418: 4878 0002 pea 2 4641c: 42a7 clrl %sp@- 4641e: 486a 0014 pea %a2@(20) 46422: 4eb9 0004 724c jsr 4724c <_CORE_semaphore_Flush> 46428: 4fef 000c lea %sp@(12),%sp SEMAPHORE_MP_OBJECT_WAS_DELETED, CORE_SEMAPHORE_WAS_DELETED ); } _Objects_Close( &_Semaphore_Information, &the_semaphore->Object ); 4642c: 2f0a movel %a2,%sp@- 4642e: 4879 0005 e410 pea 5e410 <_Semaphore_Information> 46434: 4eb9 0004 7904 jsr 47904 <_Objects_Close> 4643a: 2f0a movel %a2,%sp@- 4643c: 4879 0005 e410 pea 5e410 <_Semaphore_Information> 46442: 4eb9 0004 7bc8 jsr 47bc8 <_Objects_Free> 0, /* Not used */ 0 /* Not used */ ); } #endif _Thread_Enable_dispatch(); 46448: 4eb9 0004 88c2 jsr 488c2 <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; 4644e: 4fef 0010 lea %sp@(16),%sp 46452: 4280 clrl %d0 46454: 60ba bras 46410 ... =============================================================================== 0004f768 : #endif rtems_status_code rtems_semaphore_flush( rtems_id id ) { 4f768: 4e56 fffc linkw %fp,#-4 4f76c: 486e fffc pea %fp@(-4) 4f770: 2f2e 0008 movel %fp@(8),%sp@- 4f774: 4879 0006 2658 pea 62658 <_Semaphore_Information> 4f77a: 4eb9 0004 92ec jsr 492ec <_Objects_Get> register Semaphore_Control *the_semaphore; Objects_Locations location; the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) { 4f780: 4fef 000c lea %sp@(12),%sp 4f784: 4aae fffc tstl %fp@(-4) 4f788: 6706 beqs 4f790 <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 4f78a: 7004 moveq #4,%d0 <== NOT EXECUTED } 4f78c: 4e5e unlk %fp <== NOT EXECUTED 4f78e: 4e75 rts <== NOT EXECUTED 4f790: 7230 moveq #48,%d1 4f792: 2040 moveal %d0,%a0 4f794: c2a8 0010 andl %a0@(16),%d1 the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) { 4f798: 6720 beqs 4f7ba <== NEVER TAKEN _CORE_mutex_Flush( 4f79a: 4878 0001 pea 1 4f79e: 42a7 clrl %sp@- 4f7a0: 4868 0014 pea %a0@(20) 4f7a4: 4eb9 0004 84cc jsr 484cc <_CORE_mutex_Flush> 4f7aa: 4fef 000c lea %sp@(12),%sp &the_semaphore->Core_control.semaphore, SEND_OBJECT_WAS_DELETED, CORE_SEMAPHORE_STATUS_UNSATISFIED_NOWAIT ); } _Thread_Enable_dispatch(); 4f7ae: 4eb9 0004 9e82 jsr 49e82 <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; 4f7b4: 4280 clrl %d0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4f7b6: 4e5e unlk %fp 4f7b8: 4e75 rts &the_semaphore->Core_control.mutex, SEND_OBJECT_WAS_DELETED, CORE_MUTEX_STATUS_UNSATISFIED_NOWAIT ); } else { _CORE_semaphore_Flush( 4f7ba: 4878 0001 pea 1 <== NOT EXECUTED 4f7be: 2040 moveal %d0,%a0 <== NOT EXECUTED 4f7c0: 42a7 clrl %sp@- <== NOT EXECUTED 4f7c2: 4868 0014 pea %a0@(20) <== NOT EXECUTED 4f7c6: 4eb9 0004 8804 jsr 48804 <_CORE_semaphore_Flush> <== NOT EXECUTED 4f7cc: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED &the_semaphore->Core_control.semaphore, SEND_OBJECT_WAS_DELETED, CORE_SEMAPHORE_STATUS_UNSATISFIED_NOWAIT ); } _Thread_Enable_dispatch(); 4f7d0: 4eb9 0004 9e82 jsr 49e82 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; 4f7d6: 4280 clrl %d0 <== NOT EXECUTED 4f7d8: 60dc bras 4f7b6 <== NOT EXECUTED ... =============================================================================== 00057d34 : rtems_status_code rtems_semaphore_ident( rtems_name name, uint32_t node, rtems_id *id ) { 57d34: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( &_Semaphore_Information, name, node, id ); 57d38: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 57d3c: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 57d40: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 57d44: 4879 0007 d10c pea 7d10c <_Semaphore_Information> <== NOT EXECUTED 57d4a: 4eb9 0005 b948 jsr 5b948 <_Objects_Name_to_id_u32> <== NOT EXECUTED return _Status_Object_name_errors_to_status[ status ]; 57d50: 41f9 0007 67f0 lea 767f0 <_Status_Object_name_errors_to_status>,%a0<== NOT EXECUTED } 57d56: 4e5e unlk %fp <== NOT EXECUTED 57d58: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED ... =============================================================================== 00046458 : rtems_status_code rtems_semaphore_obtain( rtems_id id, rtems_option option_set, rtems_interval timeout ) { 46458: 4e56 ffec linkw %fp,#-20 4645c: 48d7 001c moveml %d2-%d4,%sp@ Objects_Locations *location, ISR_Level *level ) { return (Semaphore_Control *) _Objects_Get_isr_disable( &_Semaphore_Information, id, location, level ); 46460: 486e fff8 pea %fp@(-8) 46464: 486e fffc pea %fp@(-4) 46468: 242e 0008 movel %fp@(8),%d2 4646c: 2f02 movel %d2,%sp@- 4646e: 4879 0005 e410 pea 5e410 <_Semaphore_Information> 46474: 262e 000c movel %fp@(12),%d3 46478: 282e 0010 movel %fp@(16),%d4 4647c: 4eb9 0004 7cd4 jsr 47cd4 <_Objects_Get_isr_disable> register Semaphore_Control *the_semaphore; Objects_Locations location; ISR_Level level; the_semaphore = _Semaphore_Get_interrupt_disable( id, &location, &level ); switch ( location ) { 46482: 4fef 0010 lea %sp@(16),%sp 46486: 4aae fffc tstl %fp@(-4) 4648a: 670c beqs 46498 <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 4648c: 7004 moveq #4,%d0 <== NOT EXECUTED } 4648e: 4cee 001c ffec moveml %fp@(-20),%d2-%d4 <== NOT EXECUTED 46494: 4e5e unlk %fp <== NOT EXECUTED 46496: 4e75 rts <== NOT EXECUTED 46498: 7230 moveq #48,%d1 4649a: 2040 moveal %d0,%a0 4649c: c2a8 0010 andl %a0@(16),%d1 the_semaphore = _Semaphore_Get_interrupt_disable( id, &location, &level ); switch ( location ) { case OBJECTS_LOCAL: if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) { 464a0: 6738 beqs 464da <== NEVER TAKEN _CORE_mutex_Seize( 464a2: 2f2e fff8 movel %fp@(-8),%sp@- */ RTEMS_INLINE_ROUTINE bool _Options_Is_no_wait ( rtems_option option_set ) { return (option_set & RTEMS_NO_WAIT) ? true : false; 464a6: 7201 moveq #1,%d1 464a8: c681 andl %d1,%d3 464aa: 2f04 movel %d4,%sp@- 464ac: b781 eorl %d3,%d1 464ae: 2f01 movel %d1,%sp@- 464b0: 2f02 movel %d2,%sp@- 464b2: 4868 0014 pea %a0@(20) 464b6: 4eb9 0004 709c jsr 4709c <_CORE_mutex_Seize> ((_Options_Is_no_wait( option_set )) ? false : true), timeout, level ); return _Semaphore_Translate_core_mutex_return_code( _Thread_Executing->Wait.return_code ); 464bc: 2079 0005 e684 moveal 5e684 <_Per_CPU_Information+0xc>,%a0 id, ((_Options_Is_no_wait( option_set )) ? false : true), timeout, level ); return _Semaphore_Translate_core_mutex_return_code( 464c2: 2f28 0034 movel %a0@(52),%sp@- 464c6: 4eb9 0004 6628 jsr 46628 <_Semaphore_Translate_core_mutex_return_code> 464cc: 4fef 0018 lea %sp@(24),%sp break; } return RTEMS_INVALID_ID; } 464d0: 4cee 001c ffec moveml %fp@(-20),%d2-%d4 464d6: 4e5e unlk %fp 464d8: 4e75 rts /* disabled when you get here */ executing = _Thread_Executing; executing->Wait.return_code = CORE_SEMAPHORE_STATUS_SUCCESSFUL; if ( the_semaphore->count != 0 ) { 464da: 2240 moveal %d0,%a1 <== NOT EXECUTED { Thread_Control *executing; /* disabled when you get here */ executing = _Thread_Executing; 464dc: 2079 0005 e684 moveal 5e684 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED executing->Wait.return_code = CORE_SEMAPHORE_STATUS_SUCCESSFUL; if ( the_semaphore->count != 0 ) { 464e2: 2229 005c movel %a1@(92),%d1 <== NOT EXECUTED Thread_Control *executing; /* disabled when you get here */ executing = _Thread_Executing; executing->Wait.return_code = CORE_SEMAPHORE_STATUS_SUCCESSFUL; 464e6: 42a8 0034 clrl %a0@(52) <== NOT EXECUTED if ( the_semaphore->count != 0 ) { 464ea: 4a81 tstl %d1 <== NOT EXECUTED 464ec: 662e bnes 4651c <== NOT EXECUTED the_semaphore->count -= 1; _ISR_Enable( *level_p ); return; } if ( !wait ) { 464ee: 0803 0000 btst #0,%d3 <== NOT EXECUTED 464f2: 6748 beqs 4653c <== NOT EXECUTED _ISR_Enable( *level_p ); 464f4: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED 464f8: 46c0 movew %d0,%sr <== NOT EXECUTED executing->Wait.return_code = CORE_SEMAPHORE_STATUS_UNSATISFIED_NOWAIT; 464fa: 7001 moveq #1,%d0 <== NOT EXECUTED 464fc: 2140 0034 movel %d0,%a0@(52) <== NOT EXECUTED ((_Options_Is_no_wait( option_set )) ? false : true), timeout, &level ); return _Semaphore_Translate_core_semaphore_return_code( _Thread_Executing->Wait.return_code ); 46500: 2079 0005 e684 moveal 5e684 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED id, ((_Options_Is_no_wait( option_set )) ? false : true), timeout, &level ); return _Semaphore_Translate_core_semaphore_return_code( 46506: 2f28 0034 movel %a0@(52),%sp@- <== NOT EXECUTED 4650a: 4eb9 0004 663e jsr 4663e <_Semaphore_Translate_core_semaphore_return_code><== NOT EXECUTED 46510: 588f addql #4,%sp <== NOT EXECUTED break; } return RTEMS_INVALID_ID; } 46512: 4cee 001c ffec moveml %fp@(-20),%d2-%d4 <== NOT EXECUTED 46518: 4e5e unlk %fp <== NOT EXECUTED 4651a: 4e75 rts <== NOT EXECUTED /* disabled when you get here */ executing = _Thread_Executing; executing->Wait.return_code = CORE_SEMAPHORE_STATUS_SUCCESSFUL; if ( the_semaphore->count != 0 ) { the_semaphore->count -= 1; 4651c: 5381 subql #1,%d1 <== NOT EXECUTED 4651e: 2341 005c movel %d1,%a1@(92) <== NOT EXECUTED _ISR_Enable( *level_p ); 46522: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED 46526: 46c0 movew %d0,%sr <== NOT EXECUTED ((_Options_Is_no_wait( option_set )) ? false : true), timeout, &level ); return _Semaphore_Translate_core_semaphore_return_code( _Thread_Executing->Wait.return_code ); 46528: 2079 0005 e684 moveal 5e684 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED id, ((_Options_Is_no_wait( option_set )) ? false : true), timeout, &level ); return _Semaphore_Translate_core_semaphore_return_code( 4652e: 2f28 0034 movel %a0@(52),%sp@- <== NOT EXECUTED 46532: 4eb9 0004 663e jsr 4663e <_Semaphore_Translate_core_semaphore_return_code><== NOT EXECUTED 46538: 588f addql #4,%sp <== NOT EXECUTED 4653a: 60d6 bras 46512 <== NOT EXECUTED 4653c: 2239 0005 e4c8 movel 5e4c8 <_Thread_Dispatch_disable_level>,%d1<== NOT EXECUTED 46542: 5281 addql #1,%d1 <== NOT EXECUTED 46544: 23c1 0005 e4c8 movel %d1,5e4c8 <_Thread_Dispatch_disable_level><== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Thread_queue_Enter_critical_section ( Thread_queue_Control *the_thread_queue ) { the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; 4654a: 7201 moveq #1,%d1 <== NOT EXECUTED 4654c: 2240 moveal %d0,%a1 <== NOT EXECUTED return; } _Thread_Disable_dispatch(); _Thread_queue_Enter_critical_section( &the_semaphore->Wait_queue ); executing->Wait.queue = &the_semaphore->Wait_queue; 4654e: 0680 0000 0014 addil #20,%d0 <== NOT EXECUTED 46554: 2341 0044 movel %d1,%a1@(68) <== NOT EXECUTED executing->Wait.id = id; 46558: 2142 0020 movel %d2,%a0@(32) <== NOT EXECUTED return; } _Thread_Disable_dispatch(); _Thread_queue_Enter_critical_section( &the_semaphore->Wait_queue ); executing->Wait.queue = &the_semaphore->Wait_queue; 4655c: 2140 0044 movel %d0,%a0@(68) <== NOT EXECUTED executing->Wait.id = id; _ISR_Enable( *level_p ); 46560: 222e fff8 movel %fp@(-8),%d1 <== NOT EXECUTED 46564: 46c1 movew %d1,%sr <== NOT EXECUTED _Thread_queue_Enqueue( &the_semaphore->Wait_queue, timeout ); 46566: 4879 0004 9144 pea 49144 <_Thread_queue_Timeout> <== NOT EXECUTED 4656c: 2f04 movel %d4,%sp@- <== NOT EXECUTED 4656e: 2f00 movel %d0,%sp@- <== NOT EXECUTED 46570: 4eb9 0004 8d80 jsr 48d80 <_Thread_queue_Enqueue_with_handler><== NOT EXECUTED _Thread_Enable_dispatch(); 46576: 4eb9 0004 88c2 jsr 488c2 <_Thread_Enable_dispatch> <== NOT EXECUTED _Thread_Executing->Wait.return_code ); 4657c: 2079 0005 e684 moveal 5e684 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED 46582: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED id, ((_Options_Is_no_wait( option_set )) ? false : true), timeout, &level ); return _Semaphore_Translate_core_semaphore_return_code( 46586: 2f28 0034 movel %a0@(52),%sp@- <== NOT EXECUTED 4658a: 4eb9 0004 663e jsr 4663e <_Semaphore_Translate_core_semaphore_return_code><== NOT EXECUTED 46590: 588f addql #4,%sp <== NOT EXECUTED 46592: 6000 ff7e braw 46512 <== NOT EXECUTED ... =============================================================================== 00046598 : #endif rtems_status_code rtems_semaphore_release( rtems_id id ) { 46598: 4e56 fffc linkw %fp,#-4 4659c: 2f02 movel %d2,%sp@- Objects_Id id, Objects_Locations *location ) { return (Semaphore_Control *) _Objects_Get( &_Semaphore_Information, id, location ); 4659e: 486e fffc pea %fp@(-4) 465a2: 242e 0008 movel %fp@(8),%d2 465a6: 2f02 movel %d2,%sp@- 465a8: 4879 0005 e410 pea 5e410 <_Semaphore_Information> 465ae: 4eb9 0004 7d34 jsr 47d34 <_Objects_Get> Objects_Locations location; CORE_mutex_Status mutex_status; CORE_semaphore_Status semaphore_status; the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) { 465b4: 4fef 000c lea %sp@(12),%sp 465b8: 4aae fffc tstl %fp@(-4) 465bc: 670a beqs 465c8 <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 465be: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 465c2: 7004 moveq #4,%d0 <== NOT EXECUTED } 465c4: 4e5e unlk %fp <== NOT EXECUTED 465c6: 4e75 rts <== NOT EXECUTED 465c8: 7230 moveq #48,%d1 465ca: 2040 moveal %d0,%a0 465cc: c2a8 0010 andl %a0@(16),%d1 the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) { 465d0: 662c bnes 465fe <== ALWAYS TAKEN MUTEX_MP_SUPPORT ); _Thread_Enable_dispatch(); return _Semaphore_Translate_core_mutex_return_code( mutex_status ); } else { semaphore_status = _CORE_semaphore_Surrender( 465d2: 42a7 clrl %sp@- <== NOT EXECUTED 465d4: 2040 moveal %d0,%a0 <== NOT EXECUTED 465d6: 2f02 movel %d2,%sp@- <== NOT EXECUTED 465d8: 4868 0014 pea %a0@(20) <== NOT EXECUTED 465dc: 4eb9 0004 72a0 jsr 472a0 <_CORE_semaphore_Surrender> <== NOT EXECUTED 465e2: 2400 movel %d0,%d2 <== NOT EXECUTED &the_semaphore->Core_control.semaphore, id, MUTEX_MP_SUPPORT ); _Thread_Enable_dispatch(); 465e4: 4eb9 0004 88c2 jsr 488c2 <_Thread_Enable_dispatch> <== NOT EXECUTED return 465ea: 2f02 movel %d2,%sp@- <== NOT EXECUTED 465ec: 4eb9 0004 663e jsr 4663e <_Semaphore_Translate_core_semaphore_return_code><== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 465f2: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED &the_semaphore->Core_control.semaphore, id, MUTEX_MP_SUPPORT ); _Thread_Enable_dispatch(); return 465f6: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 465fa: 4e5e unlk %fp <== NOT EXECUTED 465fc: 4e75 rts <== NOT EXECUTED the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) { mutex_status = _CORE_mutex_Surrender( 465fe: 42a7 clrl %sp@- 46600: 2f02 movel %d2,%sp@- 46602: 4868 0014 pea %a0@(20) 46606: 4eb9 0004 714c jsr 4714c <_CORE_mutex_Surrender> 4660c: 2400 movel %d0,%d2 &the_semaphore->Core_control.mutex, id, MUTEX_MP_SUPPORT ); _Thread_Enable_dispatch(); 4660e: 4eb9 0004 88c2 jsr 488c2 <_Thread_Enable_dispatch> return _Semaphore_Translate_core_mutex_return_code( mutex_status ); 46614: 2f02 movel %d2,%sp@- 46616: 4eb9 0004 6628 jsr 46628 <_Semaphore_Translate_core_mutex_return_code> case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4661c: 242e fff8 movel %fp@(-8),%d2 &the_semaphore->Core_control.mutex, id, MUTEX_MP_SUPPORT ); _Thread_Enable_dispatch(); return _Semaphore_Translate_core_mutex_return_code( mutex_status ); 46620: 4fef 0010 lea %sp@(16),%sp case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 46624: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00046b30 : void rtems_shutdown_executive( uint32_t result ) { if ( _System_state_Is_up( _System_state_Get() ) ) { 46b30: 7003 moveq #3,%d0 */ void rtems_shutdown_executive( uint32_t result ) { 46b32: 4e56 0000 linkw %fp,#0 if ( _System_state_Is_up( _System_state_Get() ) ) { 46b36: b0b9 0005 e630 cmpl 5e630 <_System_state_Current>,%d0 46b3c: 6710 beqs 46b4e _System_state_Set( SYSTEM_STATE_SHUTDOWN ); _Thread_Stop_multitasking(); } _Internal_error_Occurred( 46b3e: 4878 0014 pea 14 46b42: 4878 0001 pea 1 46b46: 42a7 clrl %sp@- 46b48: 4eb9 0004 77b8 jsr 477b8 <_Internal_error_Occurred> * if we were running within the same context, it would work. * * And we will not return to this thread, so there is no point of * saving the context. */ _Context_Restart_self( &_Thread_BSP_context ); 46b4e: 4879 0005 e494 pea 5e494 <_Thread_BSP_context> 46b54: 103c 0004 moveb #4,%d0 46b58: 23c0 0005 e630 movel %d0,5e630 <_System_state_Current> 46b5e: 4eb9 0004 9b02 jsr 49b02 <_CPU_Context_Restart_self> 46b64: 588f addql #4,%sp <== NOT EXECUTED 46b66: 4878 0014 pea 14 <== NOT EXECUTED 46b6a: 4878 0001 pea 1 <== NOT EXECUTED 46b6e: 42a7 clrl %sp@- <== NOT EXECUTED 46b70: 4eb9 0004 77b8 jsr 477b8 <_Internal_error_Occurred> <== NOT EXECUTED ... =============================================================================== 00047708 : rtems_status_code rtems_signal_catch( rtems_asr_entry asr_handler, rtems_mode mode_set ) { 47708: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4770c: 2239 0005 fc50 movel 5fc50 <_Thread_Dispatch_disable_level>,%d1<== NOT EXECUTED 47712: 5281 addql #1,%d1 <== NOT EXECUTED RTEMS_API_Control *api; ASR_Information *asr; /* XXX normalize mode */ executing = _Thread_Executing; api = (RTEMS_API_Control*)executing->API_Extensions[ THREAD_API_RTEMS ]; 47714: 2079 0005 fe0c moveal 5fe0c <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED rtems_status_code rtems_signal_catch( rtems_asr_entry asr_handler, rtems_mode mode_set ) { 4771a: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED RTEMS_API_Control *api; ASR_Information *asr; /* XXX normalize mode */ executing = _Thread_Executing; api = (RTEMS_API_Control*)executing->API_Extensions[ THREAD_API_RTEMS ]; 4771e: 2068 00fc moveal %a0@(252),%a0 <== NOT EXECUTED 47722: 23c1 0005 fc50 movel %d1,5fc50 <_Thread_Dispatch_disable_level><== NOT EXECUTED asr = &api->Signal; _Thread_Disable_dispatch(); /* cannot reschedule while */ /* the thread is inconsistent */ if ( !_ASR_Is_null_handler( asr_handler ) ) { 47728: 4a80 tstl %d0 <== NOT EXECUTED 4772a: 6716 beqs 47742 <== NOT EXECUTED asr->mode_set = mode_set; asr->handler = asr_handler; 4772c: 2140 000a movel %d0,%a0@(10) <== NOT EXECUTED _Thread_Disable_dispatch(); /* cannot reschedule while */ /* the thread is inconsistent */ if ( !_ASR_Is_null_handler( asr_handler ) ) { asr->mode_set = mode_set; 47730: 216e 000c 000e movel %fp@(12),%a0@(14) <== NOT EXECUTED asr->handler = asr_handler; } else _ASR_Initialize( asr ); _Thread_Enable_dispatch(); 47736: 4eb9 0004 9cce jsr 49cce <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 4773c: 4280 clrl %d0 <== NOT EXECUTED 4773e: 4e5e unlk %fp <== NOT EXECUTED 47740: 4e75 rts <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _ASR_Initialize ( ASR_Information *information ) { information->is_enabled = false; information->handler = NULL; 47742: 42a8 000a clrl %a0@(10) <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _ASR_Initialize ( ASR_Information *information ) { information->is_enabled = false; 47746: 4200 clrb %d0 <== NOT EXECUTED information->handler = NULL; information->mode_set = RTEMS_DEFAULT_MODES; 47748: 42a8 000e clrl %a0@(14) <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _ASR_Initialize ( ASR_Information *information ) { information->is_enabled = false; 4774c: 1140 0008 moveb %d0,%a0@(8) <== NOT EXECUTED information->handler = NULL; information->mode_set = RTEMS_DEFAULT_MODES; information->signals_posted = 0; 47750: 42a8 0012 clrl %a0@(18) <== NOT EXECUTED information->signals_pending = 0; 47754: 42a8 0016 clrl %a0@(22) <== NOT EXECUTED information->nest_level = 0; 47758: 42a8 001a clrl %a0@(26) <== NOT EXECUTED asr->mode_set = mode_set; asr->handler = asr_handler; } else _ASR_Initialize( asr ); _Thread_Enable_dispatch(); 4775c: 4eb9 0004 9cce jsr 49cce <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 47762: 4280 clrl %d0 <== NOT EXECUTED 47764: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00057f5c : rtems_status_code rtems_signal_send( rtems_id id, rtems_signal_set signal_set ) { 57f5c: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 57f60: 2f03 movel %d3,%sp@- <== NOT EXECUTED 57f62: 2f02 movel %d2,%sp@- <== NOT EXECUTED 57f64: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; ASR_Information *asr; if ( !signal_set ) 57f68: 660e bnes 57f78 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 57f6a: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED Objects_Locations location; RTEMS_API_Control *api; ASR_Information *asr; if ( !signal_set ) return RTEMS_INVALID_NUMBER; 57f6e: 700a moveq #10,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 57f70: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED 57f74: 4e5e unlk %fp <== NOT EXECUTED 57f76: 4e75 rts <== NOT EXECUTED ASR_Information *asr; if ( !signal_set ) return RTEMS_INVALID_NUMBER; the_thread = _Thread_Get( id, &location ); 57f78: 486e fffc pea %fp@(-4) <== NOT EXECUTED 57f7c: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 57f80: 4eb9 0005 c370 jsr 5c370 <_Thread_Get> <== NOT EXECUTED switch ( location ) { 57f86: 508f addql #8,%sp <== NOT EXECUTED 57f88: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 57f8c: 670e beqs 57f9c <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 57f8e: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 57f92: 7004 moveq #4,%d0 <== NOT EXECUTED } 57f94: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED 57f98: 4e5e unlk %fp <== NOT EXECUTED 57f9a: 4e75 rts <== NOT EXECUTED the_thread = _Thread_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; 57f9c: 2240 moveal %d0,%a1 <== NOT EXECUTED 57f9e: 2069 00fc moveal %a1@(252),%a0 <== NOT EXECUTED asr = &api->Signal; if ( ! _ASR_Is_null_handler( asr->handler ) ) { 57fa2: 4aa8 000a tstl %a0@(10) <== NOT EXECUTED 57fa6: 676a beqs 58012 <== NOT EXECUTED if ( asr->is_enabled ) { 57fa8: 4a28 0008 tstb %a0@(8) <== NOT EXECUTED 57fac: 6736 beqs 57fe4 <== NOT EXECUTED rtems_signal_set *signal_set ) { ISR_Level _level; _ISR_Disable( _level ); 57fae: 223c 0000 0700 movel #1792,%d1 <== NOT EXECUTED 57fb4: 40c3 movew %sr,%d3 <== NOT EXECUTED 57fb6: 8283 orl %d3,%d1 <== NOT EXECUTED 57fb8: 46c1 movew %d1,%sr <== NOT EXECUTED *signal_set |= signals; 57fba: 85a8 0012 orl %d2,%a0@(18) <== NOT EXECUTED _ISR_Enable( _level ); 57fbe: 46c3 movew %d3,%sr <== NOT EXECUTED _ASR_Post_signals( signal_set, &asr->signals_posted ); if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) ) 57fc0: 4ab9 0007 d384 tstl 7d384 <_Per_CPU_Information+0x8> <== NOT EXECUTED 57fc6: 6708 beqs 57fd0 <== NOT EXECUTED 57fc8: b0b9 0007 d388 cmpl 7d388 <_Per_CPU_Information+0xc>,%d0 <== NOT EXECUTED 57fce: 6730 beqs 58000 <== NOT EXECUTED _Thread_Dispatch_necessary = true; } else { _ASR_Post_signals( signal_set, &asr->signals_pending ); } _Thread_Enable_dispatch(); 57fd0: 4eb9 0005 c34a jsr 5c34a <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; 57fd6: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 57fd8: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 57fdc: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED 57fe0: 4e5e unlk %fp <== NOT EXECUTED 57fe2: 4e75 rts <== NOT EXECUTED rtems_signal_set *signal_set ) { ISR_Level _level; _ISR_Disable( _level ); 57fe4: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED 57fea: 40c1 movew %sr,%d1 <== NOT EXECUTED 57fec: 8081 orl %d1,%d0 <== NOT EXECUTED 57fee: 46c0 movew %d0,%sr <== NOT EXECUTED *signal_set |= signals; 57ff0: 85a8 0016 orl %d2,%a0@(22) <== NOT EXECUTED _ISR_Enable( _level ); 57ff4: 46c1 movew %d1,%sr <== NOT EXECUTED if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) ) _Thread_Dispatch_necessary = true; } else { _ASR_Post_signals( signal_set, &asr->signals_pending ); } _Thread_Enable_dispatch(); 57ff6: 4eb9 0005 c34a jsr 5c34a <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; 57ffc: 4280 clrl %d0 <== NOT EXECUTED 57ffe: 60d8 bras 57fd8 <== NOT EXECUTED if ( ! _ASR_Is_null_handler( asr->handler ) ) { if ( asr->is_enabled ) { _ASR_Post_signals( signal_set, &asr->signals_posted ); if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) ) _Thread_Dispatch_necessary = true; 58000: 7001 moveq #1,%d0 <== NOT EXECUTED 58002: 13c0 0007 d394 moveb %d0,7d394 <_Per_CPU_Information+0x18> <== NOT EXECUTED } else { _ASR_Post_signals( signal_set, &asr->signals_pending ); } _Thread_Enable_dispatch(); 58008: 4eb9 0005 c34a jsr 5c34a <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; 5800e: 4280 clrl %d0 <== NOT EXECUTED 58010: 60c6 bras 57fd8 <== NOT EXECUTED } _Thread_Enable_dispatch(); 58012: 4eb9 0005 c34a jsr 5c34a <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 58018: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED } _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); return RTEMS_NOT_DEFINED; 5801c: 700b moveq #11,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 5801e: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED 58022: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 00046654 : size_t stack_size, rtems_mode initial_modes, rtems_attribute attribute_set, rtems_id *id ) { 46654: 4e56 ffe8 linkw %fp,#-24 46658: 48d7 0c3c moveml %d2-%d5/%a2-%a3,%sp@ 4665c: 242e 0008 movel %fp@(8),%d2 46660: 282e 000c movel %fp@(12),%d4 46664: 262e 0014 movel %fp@(20),%d3 46668: 2a2e 0018 movel %fp@(24),%d5 4666c: 246e 001c moveal %fp@(28),%a2 Priority_Control core_priority; RTEMS_API_Control *api; ASR_Information *asr; if ( !id ) 46670: 4a8a tstl %a2 46672: 6700 0118 beqw 4678c return RTEMS_INVALID_ADDRESS; if ( !rtems_is_name_valid( name ) ) 46676: 4a82 tstl %d2 46678: 6700 00bc beqw 46736 /* * Validate the RTEMS API priority and convert it to the core priority range. */ if ( !_Attributes_Is_system_task( the_attribute_set ) ) { 4667c: 4a45 tstw %d5 4667e: 6d14 blts 46694 <== NEVER TAKEN */ RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid ( rtems_task_priority the_priority ) { return ( ( the_priority >= RTEMS_MINIMUM_PRIORITY ) && 46680: 4a84 tstl %d4 46682: 6700 00a6 beqw 4672a ( the_priority <= RTEMS_MAXIMUM_PRIORITY ) ); 46686: 4280 clrl %d0 46688: 1039 0005 cc92 moveb 5cc92 ,%d0 */ RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid ( rtems_task_priority the_priority ) { return ( ( the_priority >= RTEMS_MINIMUM_PRIORITY ) && 4668e: b084 cmpl %d4,%d0 46690: 6500 0098 bcsw 4672a */ /* * Lock the allocator mutex for protection */ _RTEMS_Lock_allocator(); 46694: 2f39 0005 e588 movel 5e588 <_RTEMS_Allocator_Mutex>,%sp@- 4669a: 4eb9 0004 6de4 jsr 46de4 <_API_Mutex_Lock> * This function allocates a task control block from * the inactive chain of free task control blocks. */ RTEMS_INLINE_ROUTINE Thread_Control *_RTEMS_tasks_Allocate( void ) { return (Thread_Control *) _Objects_Allocate( &_RTEMS_tasks_Information ); 466a0: 4879 0005 e448 pea 5e448 <_RTEMS_tasks_Information> 466a6: 4eb9 0004 7874 jsr 47874 <_Objects_Allocate> * the event of an error. */ the_thread = _RTEMS_tasks_Allocate(); if ( !the_thread ) { 466ac: 508f addql #8,%sp 466ae: 2640 moveal %d0,%a3 466b0: 4a80 tstl %d0 466b2: 6700 00be beqw 46772 /* * Initialize the core thread for this task. */ status = _Thread_Initialize( 466b6: 7007 moveq #7,%d0 466b8: 2f02 movel %d2,%sp@- 466ba: c083 andl %d3,%d0 466bc: 0803 0009 btst #9,%d3 466c0: 56c1 sne %d1 466c2: 2f00 movel %d0,%sp@- 466c4: 0803 0008 btst #8,%d3 466c8: 57c0 seq %d0 466ca: 42a7 clrl %sp@- 466cc: 49c1 extbl %d1 466ce: 4481 negl %d1 466d0: 49c0 extbl %d0 466d2: 4480 negl %d0 466d4: 2f01 movel %d1,%sp@- 466d6: 2f00 movel %d0,%sp@- 466d8: 7001 moveq #1,%d0 466da: 2f04 movel %d4,%sp@- 466dc: c085 andl %d5,%d0 466de: 2f00 movel %d0,%sp@- 466e0: 2f2e 0010 movel %fp@(16),%sp@- 466e4: 42a7 clrl %sp@- 466e6: 2f0b movel %a3,%sp@- 466e8: 4879 0005 e448 pea 5e448 <_RTEMS_tasks_Information> 466ee: 4eb9 0004 8984 jsr 48984 <_Thread_Initialize> NULL, /* no budget algorithm callout */ _Modes_Get_interrupt_level(initial_modes), (Objects_Name) name ); if ( !status ) { 466f4: 4fef 002c lea %sp@(44),%sp 466f8: 4a00 tstb %d0 466fa: 6746 beqs 46742 _RTEMS_Unlock_allocator(); return RTEMS_UNSATISFIED; } api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; asr = &api->Signal; 466fc: 206b 00fc moveal %a3@(252),%a0 * id - thread id * RTEMS_SUCCESSFUL - if successful * error code - if unsuccessful */ rtems_status_code rtems_task_create( 46700: 0803 000a btst #10,%d3 46704: 57c0 seq %d0 46706: 4480 negl %d0 } api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; asr = &api->Signal; asr->is_enabled = _Modes_Is_asr_disabled(initial_modes) ? false : true; 46708: 1140 0008 moveb %d0,%a0@(8) *id = the_thread->Object.id; 4670c: 24ab 0008 movel %a3@(8),%a2@ ); } #endif _RTEMS_Unlock_allocator(); 46710: 2f39 0005 e588 movel 5e588 <_RTEMS_Allocator_Mutex>,%sp@- 46716: 4eb9 0004 6e44 jsr 46e44 <_API_Mutex_Unlock> return RTEMS_SUCCESSFUL; 4671c: 588f addql #4,%sp 4671e: 4280 clrl %d0 } 46720: 4cee 0c3c ffe8 moveml %fp@(-24),%d2-%d5/%a2-%a3 46726: 4e5e unlk %fp 46728: 4e75 rts * Validate the RTEMS API priority and convert it to the core priority range. */ if ( !_Attributes_Is_system_task( the_attribute_set ) ) { if ( !_RTEMS_tasks_Priority_is_valid( initial_priority ) ) return RTEMS_INVALID_PRIORITY; 4672a: 7013 moveq #19,%d0 <== NOT EXECUTED } #endif _RTEMS_Unlock_allocator(); return RTEMS_SUCCESSFUL; } 4672c: 4cee 0c3c ffe8 moveml %fp@(-24),%d2-%d5/%a2-%a3 <== NOT EXECUTED 46732: 4e5e unlk %fp <== NOT EXECUTED 46734: 4e75 rts <== NOT EXECUTED if ( !id ) return RTEMS_INVALID_ADDRESS; if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; 46736: 7003 moveq #3,%d0 <== NOT EXECUTED } #endif _RTEMS_Unlock_allocator(); return RTEMS_SUCCESSFUL; } 46738: 4cee 0c3c ffe8 moveml %fp@(-24),%d2-%d5/%a2-%a3 <== NOT EXECUTED 4673e: 4e5e unlk %fp <== NOT EXECUTED 46740: 4e75 rts <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _RTEMS_tasks_Free ( Thread_Control *the_task ) { _Objects_Free( 46742: 2f2b 0008 movel %a3@(8),%sp@- 46746: 4eb9 0004 7c4c jsr 47c4c <_Objects_Get_information_id> 4674c: 2f0b movel %a3,%sp@- 4674e: 2f00 movel %d0,%sp@- 46750: 4eb9 0004 7bc8 jsr 47bc8 <_Objects_Free> #if defined(RTEMS_MULTIPROCESSING) if ( is_global ) _Objects_MP_Free_global_object( the_global_object ); #endif _RTEMS_tasks_Free( the_thread ); _RTEMS_Unlock_allocator(); 46756: 2f39 0005 e588 movel 5e588 <_RTEMS_Allocator_Mutex>,%sp@- 4675c: 4eb9 0004 6e44 jsr 46e44 <_API_Mutex_Unlock> return RTEMS_UNSATISFIED; 46762: 4fef 0010 lea %sp@(16),%sp 46766: 700d moveq #13,%d0 } #endif _RTEMS_Unlock_allocator(); return RTEMS_SUCCESSFUL; } 46768: 4cee 0c3c ffe8 moveml %fp@(-24),%d2-%d5/%a2-%a3 4676e: 4e5e unlk %fp 46770: 4e75 rts */ the_thread = _RTEMS_tasks_Allocate(); if ( !the_thread ) { _RTEMS_Unlock_allocator(); 46772: 2f39 0005 e588 movel 5e588 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 46778: 4eb9 0004 6e44 jsr 46e44 <_API_Mutex_Unlock> <== NOT EXECUTED return RTEMS_TOO_MANY; 4677e: 588f addql #4,%sp <== NOT EXECUTED 46780: 7005 moveq #5,%d0 <== NOT EXECUTED } #endif _RTEMS_Unlock_allocator(); return RTEMS_SUCCESSFUL; } 46782: 4cee 0c3c ffe8 moveml %fp@(-24),%d2-%d5/%a2-%a3 <== NOT EXECUTED 46788: 4e5e unlk %fp <== NOT EXECUTED 4678a: 4e75 rts <== NOT EXECUTED RTEMS_API_Control *api; ASR_Information *asr; if ( !id ) return RTEMS_INVALID_ADDRESS; 4678c: 7009 moveq #9,%d0 <== NOT EXECUTED } #endif _RTEMS_Unlock_allocator(); return RTEMS_SUCCESSFUL; } 4678e: 4cee 0c3c ffe8 moveml %fp@(-24),%d2-%d5/%a2-%a3 <== NOT EXECUTED 46794: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00046798 : */ rtems_status_code rtems_task_delete( rtems_id id ) { 46798: 4e56 fffc linkw %fp,#-4 4679c: 2f0b movel %a3,%sp@- 4679e: 2f0a movel %a2,%sp@- register Thread_Control *the_thread; Objects_Locations location; Objects_Information *the_information; _RTEMS_Lock_allocator(); 467a0: 2f39 0005 e588 movel 5e588 <_RTEMS_Allocator_Mutex>,%sp@- 467a6: 4eb9 0004 6de4 jsr 46de4 <_API_Mutex_Lock> the_thread = _Thread_Get( id, &location ); 467ac: 486e fffc pea %fp@(-4) 467b0: 2f2e 0008 movel %fp@(8),%sp@- 467b4: 4eb9 0004 88e8 jsr 488e8 <_Thread_Get> switch ( location ) { 467ba: 4fef 000c lea %sp@(12),%sp Objects_Locations location; Objects_Information *the_information; _RTEMS_Lock_allocator(); the_thread = _Thread_Get( id, &location ); 467be: 2440 moveal %d0,%a2 switch ( location ) { 467c0: 4aae fffc tstl %fp@(-4) 467c4: 664a bnes 46810 <== NEVER TAKEN case OBJECTS_LOCAL: the_information = _Objects_Get_information_id( the_thread->Object.id ); 467c6: 2f2a 0008 movel %a2@(8),%sp@- 467ca: 47f9 0004 7c4c lea 47c4c <_Objects_Get_information_id>,%a3 467d0: 4e93 jsr %a3@ 0 /* Not used */ ); } #endif _Thread_Close( the_information, the_thread ); 467d2: 2f0a movel %a2,%sp@- 467d4: 2f00 movel %d0,%sp@- 467d6: 4eb9 0004 856c jsr 4856c <_Thread_Close> 467dc: 2f2a 0008 movel %a2@(8),%sp@- 467e0: 4e93 jsr %a3@ 467e2: 2f0a movel %a2,%sp@- 467e4: 2f00 movel %d0,%sp@- 467e6: 4eb9 0004 7bc8 jsr 47bc8 <_Objects_Free> _RTEMS_tasks_Free( the_thread ); _RTEMS_Unlock_allocator(); 467ec: 2f39 0005 e588 movel 5e588 <_RTEMS_Allocator_Mutex>,%sp@- 467f2: 4eb9 0004 6e44 jsr 46e44 <_API_Mutex_Unlock> _Thread_Enable_dispatch(); 467f8: 4eb9 0004 88c2 jsr 488c2 <_Thread_Enable_dispatch> break; } _RTEMS_Unlock_allocator(); return RTEMS_INVALID_ID; } 467fe: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED _RTEMS_tasks_Free( the_thread ); _RTEMS_Unlock_allocator(); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 46802: 4fef 001c lea %sp@(28),%sp <== NOT EXECUTED 46806: 4280 clrl %d0 <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); return RTEMS_INVALID_ID; } 46808: 266e fff8 moveal %fp@(-8),%a3 <== NOT EXECUTED 4680c: 4e5e unlk %fp <== NOT EXECUTED 4680e: 4e75 rts <== NOT EXECUTED case OBJECTS_ERROR: break; } _RTEMS_Unlock_allocator(); 46810: 2f39 0005 e588 movel 5e588 <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 46816: 4eb9 0004 6e44 jsr 46e44 <_API_Mutex_Unlock> <== NOT EXECUTED return RTEMS_INVALID_ID; } 4681c: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED case OBJECTS_ERROR: break; } _RTEMS_Unlock_allocator(); return RTEMS_INVALID_ID; 46820: 588f addql #4,%sp <== NOT EXECUTED 46822: 7004 moveq #4,%d0 <== NOT EXECUTED } 46824: 266e fff8 moveal %fp@(-8),%a3 <== NOT EXECUTED 46828: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00048c74 : rtems_status_code rtems_task_get_note( rtems_id id, uint32_t notepad, uint32_t *note ) { 48c74: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 48c78: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED 48c7c: 2f0a movel %a2,%sp@- <== NOT EXECUTED 48c7e: 246e 0010 moveal %fp@(16),%a2 <== NOT EXECUTED 48c82: 2f02 movel %d2,%sp@- <== NOT EXECUTED 48c84: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; if ( !rtems_configuration_get_notepads_enabled() ) 48c88: 4a39 0006 0194 tstb 60194 <== NOT EXECUTED 48c8e: 6778 beqs 48d08 <== NOT EXECUTED return RTEMS_NOT_CONFIGURED; if ( !note ) 48c90: 4a8a tstl %a2 <== NOT EXECUTED 48c92: 6700 0090 beqw 48d24 <== NOT EXECUTED /* * NOTE: There is no check for < RTEMS_NOTEPAD_FIRST because that would * be checking an unsigned number for being negative. */ if ( notepad > RTEMS_NOTEPAD_LAST ) 48c96: 720f moveq #15,%d1 <== NOT EXECUTED 48c98: b282 cmpl %d2,%d1 <== NOT EXECUTED 48c9a: 6542 bcss 48cde <== NOT EXECUTED /* * Optimize the most likely case to avoid the Thread_Dispatch. */ if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) || 48c9c: 4a80 tstl %d0 <== NOT EXECUTED 48c9e: 674c beqs 48cec <== NOT EXECUTED _Objects_Are_ids_equal( id, _Thread_Executing->Object.id ) ) { 48ca0: 2079 0006 1e5c moveal 61e5c <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED /* * Optimize the most likely case to avoid the Thread_Dispatch. */ if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) || 48ca6: b0a8 0008 cmpl %a0@(8),%d0 <== NOT EXECUTED 48caa: 6746 beqs 48cf2 <== NOT EXECUTED api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ]; *note = api->Notepads[ notepad ]; return RTEMS_SUCCESSFUL; } the_thread = _Thread_Get( id, &location ); 48cac: 486e fffc pea %fp@(-4) <== NOT EXECUTED 48cb0: 2f00 movel %d0,%sp@- <== NOT EXECUTED 48cb2: 4eb9 0004 b094 jsr 4b094 <_Thread_Get> <== NOT EXECUTED switch ( location ) { 48cb8: 508f addql #8,%sp <== NOT EXECUTED 48cba: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 48cbe: 6656 bnes 48d16 <== NOT EXECUTED case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; *note = api->Notepads[ notepad ]; 48cc0: 2240 moveal %d0,%a1 <== NOT EXECUTED 48cc2: 2069 00fc moveal %a1@(252),%a0 <== NOT EXECUTED 48cc6: 24b0 2c1e movel %a0@(0000001e,%d2:l:4),%a2@ <== NOT EXECUTED _Thread_Enable_dispatch(); 48cca: 4eb9 0004 b06e jsr 4b06e <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 48cd0: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; *note = api->Notepads[ notepad ]; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 48cd4: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 48cd6: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 48cda: 4e5e unlk %fp <== NOT EXECUTED 48cdc: 4e75 rts <== NOT EXECUTED 48cde: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED * NOTE: There is no check for < RTEMS_NOTEPAD_FIRST because that would * be checking an unsigned number for being negative. */ if ( notepad > RTEMS_NOTEPAD_LAST ) return RTEMS_INVALID_NUMBER; 48ce2: 700a moveq #10,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 48ce4: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 48ce8: 4e5e unlk %fp <== NOT EXECUTED 48cea: 4e75 rts <== NOT EXECUTED /* * Optimize the most likely case to avoid the Thread_Dispatch. */ if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) || 48cec: 2079 0006 1e5c moveal 61e5c <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED _Objects_Are_ids_equal( id, _Thread_Executing->Object.id ) ) { api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ]; *note = api->Notepads[ notepad ]; 48cf2: 2068 00fc moveal %a0@(252),%a0 <== NOT EXECUTED return RTEMS_SUCCESSFUL; 48cf6: 4280 clrl %d0 <== NOT EXECUTED */ if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) || _Objects_Are_ids_equal( id, _Thread_Executing->Object.id ) ) { api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ]; *note = api->Notepads[ notepad ]; 48cf8: 24b0 2c1e movel %a0@(0000001e,%d2:l:4),%a2@ <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 48cfc: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 48d00: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 48d04: 4e5e unlk %fp <== NOT EXECUTED 48d06: 4e75 rts <== NOT EXECUTED 48d08: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; if ( !rtems_configuration_get_notepads_enabled() ) return RTEMS_NOT_CONFIGURED; 48d0c: 7016 moveq #22,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 48d0e: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 48d12: 4e5e unlk %fp <== NOT EXECUTED 48d14: 4e75 rts <== NOT EXECUTED 48d16: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 48d1a: 7004 moveq #4,%d0 <== NOT EXECUTED } 48d1c: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 48d20: 4e5e unlk %fp <== NOT EXECUTED 48d22: 4e75 rts <== NOT EXECUTED 48d24: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED if ( !rtems_configuration_get_notepads_enabled() ) return RTEMS_NOT_CONFIGURED; if ( !note ) return RTEMS_INVALID_ADDRESS; 48d28: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 48d2a: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 48d2e: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 0004682c : rtems_status_code rtems_task_ident( rtems_name name, uint32_t node, rtems_id *id ) { 4682c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 46830: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED 46834: 206e 0010 moveal %fp@(16),%a0 <== NOT EXECUTED Objects_Name_or_id_lookup_errors status; if ( !id ) 46838: 4a88 tstl %a0 <== NOT EXECUTED 4683a: 6738 beqs 46874 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( name == OBJECTS_ID_OF_SELF ) { 4683c: 4a80 tstl %d0 <== NOT EXECUTED 4683e: 660e bnes 4684e <== NOT EXECUTED *id = _Thread_Executing->Object.id; 46840: 2279 0005 e684 moveal 5e684 <_Per_CPU_Information+0xc>,%a1 <== NOT EXECUTED } status = _Objects_Name_to_id_u32( &_RTEMS_tasks_Information, name, node, id ); return _Status_Object_name_errors_to_status[ status ]; } 46846: 4e5e unlk %fp <== NOT EXECUTED if ( !id ) return RTEMS_INVALID_ADDRESS; if ( name == OBJECTS_ID_OF_SELF ) { *id = _Thread_Executing->Object.id; 46848: 20a9 0008 movel %a1@(8),%a0@ <== NOT EXECUTED } status = _Objects_Name_to_id_u32( &_RTEMS_tasks_Information, name, node, id ); return _Status_Object_name_errors_to_status[ status ]; } 4684c: 4e75 rts <== NOT EXECUTED if ( name == OBJECTS_ID_OF_SELF ) { *id = _Thread_Executing->Object.id; return RTEMS_SUCCESSFUL; } status = _Objects_Name_to_id_u32( &_RTEMS_tasks_Information, name, node, id ); 4684e: 2f08 movel %a0,%sp@- <== NOT EXECUTED 46850: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 46854: 2f00 movel %d0,%sp@- <== NOT EXECUTED 46856: 4879 0005 e448 pea 5e448 <_RTEMS_tasks_Information> <== NOT EXECUTED 4685c: 4eb9 0004 7ec0 jsr 47ec0 <_Objects_Name_to_id_u32> <== NOT EXECUTED return _Status_Object_name_errors_to_status[ status ]; 46862: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 46866: 41f9 0005 bf6e lea 5bf6e <_Status_Object_name_errors_to_status>,%a0<== NOT EXECUTED } 4686c: 4e5e unlk %fp <== NOT EXECUTED return RTEMS_SUCCESSFUL; } status = _Objects_Name_to_id_u32( &_RTEMS_tasks_Information, name, node, id ); return _Status_Object_name_errors_to_status[ status ]; 4686e: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED } 46872: 4e75 rts <== NOT EXECUTED ) { Objects_Name_or_id_lookup_errors status; if ( !id ) return RTEMS_INVALID_ADDRESS; 46874: 7009 moveq #9,%d0 <== NOT EXECUTED } status = _Objects_Name_to_id_u32( &_RTEMS_tasks_Information, name, node, id ); return _Status_Object_name_errors_to_status[ status ]; } 46876: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 00058398 : */ rtems_status_code rtems_task_is_suspended( rtems_id id ) { 58398: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); 5839c: 486e fffc pea %fp@(-4) <== NOT EXECUTED 583a0: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 583a4: 4eb9 0005 c370 jsr 5c370 <_Thread_Get> <== NOT EXECUTED switch ( location ) { 583aa: 508f addql #8,%sp <== NOT EXECUTED 583ac: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 583b0: 6706 beqs 583b8 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 583b2: 7004 moveq #4,%d0 <== NOT EXECUTED } 583b4: 4e5e unlk %fp <== NOT EXECUTED 583b6: 4e75 rts <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _States_Is_suspended ( States_Control the_states ) { return (the_states & STATES_SUSPENDED); 583b8: 7202 moveq #2,%d1 <== NOT EXECUTED 583ba: 2040 moveal %d0,%a0 <== NOT EXECUTED 583bc: c2a8 0010 andl %a0@(16),%d1 <== NOT EXECUTED the_thread = _Thread_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_States_Is_suspended( the_thread->current_state ) ) { 583c0: 670c beqs 583ce <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 583c2: 4eb9 0005 c34a jsr 5c34a <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_ALREADY_SUSPENDED; 583c8: 700f moveq #15,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 583ca: 4e5e unlk %fp <== NOT EXECUTED 583cc: 4e75 rts <== NOT EXECUTED the_thread = _Thread_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_States_Is_suspended( the_thread->current_state ) ) { _Thread_Enable_dispatch(); 583ce: 4eb9 0005 c34a jsr 5c34a <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; 583d4: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 583d6: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 0004d3ac : rtems_status_code rtems_task_mode( rtems_mode mode_set, rtems_mode mask, rtems_mode *previous_mode_set ) { 4d3ac: 4e56 ffe4 linkw %fp,#-28 4d3b0: 48d7 1c3c moveml %d2-%d5/%a2-%a4,%sp@ 4d3b4: 2a2e 0008 movel %fp@(8),%d5 4d3b8: 242e 000c movel %fp@(12),%d2 4d3bc: 286e 0010 moveal %fp@(16),%a4 ASR_Information *asr; bool is_asr_enabled = false; bool needs_asr_dispatching = false; rtems_mode old_mode; if ( !previous_mode_set ) 4d3c0: 4a8c tstl %a4 4d3c2: 6700 015a beqw 4d51e return RTEMS_INVALID_ADDRESS; executing = _Thread_Executing; 4d3c6: 2479 0005 e684 moveal 5e684 <_Per_CPU_Information+0xc>,%a2 api = executing->API_Extensions[ THREAD_API_RTEMS ]; asr = &api->Signal; old_mode = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT; 4d3cc: 4a2a 0074 tstb %a2@(116) 4d3d0: 57c3 seq %d3 if ( !previous_mode_set ) return RTEMS_INVALID_ADDRESS; executing = _Thread_Executing; api = executing->API_Extensions[ THREAD_API_RTEMS ]; 4d3d2: 266a 00fc moveal %a2@(252),%a3 asr = &api->Signal; old_mode = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT; 4d3d6: 49c3 extbl %d3 4d3d8: 0283 0000 0100 andil #256,%d3 if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE ) 4d3de: 4aaa 007a tstl %a2@(122) 4d3e2: 6600 00cc bnew 4d4b0 old_mode |= RTEMS_NO_TIMESLICE; else old_mode |= RTEMS_TIMESLICE; old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR; 4d3e6: 4a2b 0008 tstb %a3@(8) 4d3ea: 57c4 seq %d4 old_mode |= _ISR_Get_level(); 4d3ec: 4eb9 0004 9ba8 jsr 49ba8 <_CPU_ISR_Get_level> if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE ) old_mode |= RTEMS_NO_TIMESLICE; else old_mode |= RTEMS_TIMESLICE; old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR; 4d3f2: 49c4 extbl %d4 4d3f4: 0284 0000 0400 andil #1024,%d4 4d3fa: 8084 orl %d4,%d0 old_mode |= _ISR_Get_level(); 4d3fc: 8083 orl %d3,%d0 4d3fe: 2880 movel %d0,%a4@ *previous_mode_set = old_mode; /* * These are generic thread scheduling characteristics. */ if ( mask & RTEMS_PREEMPT_MASK ) 4d400: 0802 0008 btst #8,%d2 4d404: 670c beqs 4d412 <== NEVER TAKEN executing->is_preemptible = _Modes_Is_preempt(mode_set) ? true : false; 4d406: 0805 0008 btst #8,%d5 4d40a: 57c0 seq %d0 4d40c: 4480 negl %d0 4d40e: 1540 0074 moveb %d0,%a2@(116) if ( mask & RTEMS_TIMESLICE_MASK ) { 4d412: 0802 0009 btst #9,%d2 4d416: 6718 beqs 4d430 if ( _Modes_Is_timeslice(mode_set) ) { 4d418: 0805 0009 btst #9,%d5 4d41c: 6700 00ee beqw 4d50c executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE; 4d420: 7001 moveq #1,%d0 <== NOT EXECUTED executing->cpu_time_budget = _Thread_Ticks_per_timeslice; 4d422: 41f9 0005 e480 lea 5e480 <_Thread_Ticks_per_timeslice>,%a0 <== NOT EXECUTED if ( mask & RTEMS_PREEMPT_MASK ) executing->is_preemptible = _Modes_Is_preempt(mode_set) ? true : false; if ( mask & RTEMS_TIMESLICE_MASK ) { if ( _Modes_Is_timeslice(mode_set) ) { executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE; 4d428: 2540 007a movel %d0,%a2@(122) <== NOT EXECUTED executing->cpu_time_budget = _Thread_Ticks_per_timeslice; 4d42c: 2550 0076 movel %a0@,%a2@(118) <== NOT EXECUTED } /* * Set the new interrupt level */ if ( mask & RTEMS_INTERRUPT_MASK ) 4d430: 7007 moveq #7,%d0 4d432: c082 andl %d2,%d0 4d434: 6712 beqs 4d448 <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE void _Modes_Set_interrupt_level ( Modes_Control mode_set ) { _ISR_Set_level( _Modes_Get_interrupt_level( mode_set ) ); 4d436: 40c0 movew %sr,%d0 */ RTEMS_INLINE_ROUTINE ISR_Level _Modes_Get_interrupt_level ( Modes_Control mode_set ) { return ( mode_set & RTEMS_INTERRUPT_MASK ); 4d438: 7207 moveq #7,%d1 4d43a: c285 andl %d5,%d1 */ RTEMS_INLINE_ROUTINE void _Modes_Set_interrupt_level ( Modes_Control mode_set ) { _ISR_Set_level( _Modes_Get_interrupt_level( mode_set ) ); 4d43c: 0280 0000 f8ff andil #63743,%d0 4d442: e189 lsll #8,%d1 4d444: 8081 orl %d1,%d0 4d446: 46c0 movew %d0,%sr * This is specific to the RTEMS API */ is_asr_enabled = false; needs_asr_dispatching = false; if ( mask & RTEMS_ASR_MASK ) { 4d448: 0802 000a btst #10,%d2 4d44c: 6754 beqs 4d4a2 is_asr_enabled = _Modes_Is_asr_disabled( mode_set ) ? false : true; if ( is_asr_enabled != asr->is_enabled ) { 4d44e: 4282 clrl %d2 4d450: 142b 0008 moveb %a3@(8),%d2 4d454: 4280 clrl %d0 * Output: * *previous_mode_set - previous mode set * always return RTEMS_SUCCESSFUL; */ rtems_status_code rtems_task_mode( 4d456: 0805 000a btst #10,%d5 4d45a: 57c1 seq %d1 4d45c: 4481 negl %d1 is_asr_enabled = false; needs_asr_dispatching = false; if ( mask & RTEMS_ASR_MASK ) { is_asr_enabled = _Modes_Is_asr_disabled( mode_set ) ? false : true; if ( is_asr_enabled != asr->is_enabled ) { 4d45e: 1001 moveb %d1,%d0 4d460: b082 cmpl %d2,%d0 4d462: 673e beqs 4d4a2 <== ALWAYS TAKEN ) { rtems_signal_set _signals; ISR_Level _level; _ISR_Disable( _level ); 4d464: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED asr->is_enabled = is_asr_enabled; 4d46a: 1741 0008 moveb %d1,%a3@(8) <== NOT EXECUTED 4d46e: 40c1 movew %sr,%d1 <== NOT EXECUTED 4d470: 8081 orl %d1,%d0 <== NOT EXECUTED 4d472: 46c0 movew %d0,%sr <== NOT EXECUTED _signals = information->signals_pending; 4d474: 202b 0016 movel %a3@(22),%d0 <== NOT EXECUTED information->signals_pending = information->signals_posted; 4d478: 276b 0012 0016 movel %a3@(18),%a3@(22) <== NOT EXECUTED information->signals_posted = _signals; 4d47e: 2740 0012 movel %d0,%a3@(18) <== NOT EXECUTED _ISR_Enable( _level ); 4d482: 46c1 movew %d1,%sr <== NOT EXECUTED /* * This is specific to the RTEMS API */ is_asr_enabled = false; needs_asr_dispatching = false; 4d484: 4aab 0012 tstl %a3@(18) <== NOT EXECUTED 4d488: 56c0 sne %d0 <== NOT EXECUTED needs_asr_dispatching = true; } } } if ( _System_state_Is_up( _System_state_Get() ) ) { 4d48a: 7203 moveq #3,%d1 <== NOT EXECUTED /* * This is specific to the RTEMS API */ is_asr_enabled = false; needs_asr_dispatching = false; 4d48c: 4480 negl %d0 <== NOT EXECUTED needs_asr_dispatching = true; } } } if ( _System_state_Is_up( _System_state_Get() ) ) { 4d48e: b2b9 0005 e630 cmpl 5e630 <_System_state_Current>,%d1 <== NOT EXECUTED 4d494: 6744 beqs 4d4da <== NOT EXECUTED if (_Thread_Evaluate_is_dispatch_needed( needs_asr_dispatching ) ) _Thread_Dispatch(); } return RTEMS_SUCCESSFUL; 4d496: 4280 clrl %d0 } 4d498: 4cee 1c3c ffe4 moveml %fp@(-28),%d2-%d5/%a2-%a4 4d49e: 4e5e unlk %fp 4d4a0: 4e75 rts needs_asr_dispatching = true; } } } if ( _System_state_Is_up( _System_state_Get() ) ) { 4d4a2: 7203 moveq #3,%d1 /* * This is specific to the RTEMS API */ is_asr_enabled = false; needs_asr_dispatching = false; 4d4a4: 4200 clrb %d0 needs_asr_dispatching = true; } } } if ( _System_state_Is_up( _System_state_Get() ) ) { 4d4a6: b2b9 0005 e630 cmpl 5e630 <_System_state_Current>,%d1 4d4ac: 66e8 bnes 4d496 <== NEVER TAKEN 4d4ae: 602a bras 4d4da if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE ) old_mode |= RTEMS_NO_TIMESLICE; else old_mode |= RTEMS_TIMESLICE; old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR; 4d4b0: 4a2b 0008 tstb %a3@(8) <== NOT EXECUTED 4d4b4: 57c4 seq %d4 <== NOT EXECUTED old_mode |= _ISR_Get_level(); 4d4b6: 4eb9 0004 9ba8 jsr 49ba8 <_CPU_ISR_Get_level> <== NOT EXECUTED if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE ) old_mode |= RTEMS_NO_TIMESLICE; else old_mode |= RTEMS_TIMESLICE; old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR; 4d4bc: 49c4 extbl %d4 <== NOT EXECUTED 4d4be: 0284 0000 0400 andil #1024,%d4 <== NOT EXECUTED old_mode = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT; if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE ) old_mode |= RTEMS_NO_TIMESLICE; else old_mode |= RTEMS_TIMESLICE; 4d4c4: 08c3 0009 bset #9,%d3 <== NOT EXECUTED old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR; 4d4c8: 8084 orl %d4,%d0 <== NOT EXECUTED old_mode |= _ISR_Get_level(); 4d4ca: 8083 orl %d3,%d0 <== NOT EXECUTED 4d4cc: 2880 movel %d0,%a4@ <== NOT EXECUTED *previous_mode_set = old_mode; /* * These are generic thread scheduling characteristics. */ if ( mask & RTEMS_PREEMPT_MASK ) 4d4ce: 0802 0008 btst #8,%d2 <== NOT EXECUTED 4d4d2: 6700 ff3e beqw 4d412 <== NOT EXECUTED 4d4d6: 6000 ff2e braw 4d406 <== NOT EXECUTED bool are_signals_pending ) { Thread_Control *executing; executing = _Thread_Executing; 4d4da: 2079 0005 e684 moveal 5e684 <_Per_CPU_Information+0xc>,%a0 if ( are_signals_pending || 4d4e0: 4a00 tstb %d0 4d4e2: 660e bnes 4d4f2 <== NEVER TAKEN 4d4e4: b1f9 0005 e688 cmpal 5e688 <_Per_CPU_Information+0x10>,%a0 4d4ea: 67aa beqs 4d496 <== ALWAYS TAKEN (!_Thread_Is_heir( executing ) && executing->is_preemptible) ) { 4d4ec: 4a28 0074 tstb %a0@(116) <== NOT EXECUTED 4d4f0: 67a4 beqs 4d496 <== NOT EXECUTED _Thread_Dispatch_necessary = true; 4d4f2: 7001 moveq #1,%d0 <== NOT EXECUTED 4d4f4: 13c0 0005 e690 moveb %d0,5e690 <_Per_CPU_Information+0x18> <== NOT EXECUTED } } if ( _System_state_Is_up( _System_state_Get() ) ) { if (_Thread_Evaluate_is_dispatch_needed( needs_asr_dispatching ) ) _Thread_Dispatch(); 4d4fa: 4eb9 0004 8758 jsr 48758 <_Thread_Dispatch> <== NOT EXECUTED } return RTEMS_SUCCESSFUL; } 4d500: 4cee 1c3c ffe4 moveml %fp@(-28),%d2-%d5/%a2-%a4 <== NOT EXECUTED if ( _System_state_Is_up( _System_state_Get() ) ) { if (_Thread_Evaluate_is_dispatch_needed( needs_asr_dispatching ) ) _Thread_Dispatch(); } return RTEMS_SUCCESSFUL; 4d506: 4280 clrl %d0 <== NOT EXECUTED } 4d508: 4e5e unlk %fp <== NOT EXECUTED 4d50a: 4e75 rts <== NOT EXECUTED } /* * Set the new interrupt level */ if ( mask & RTEMS_INTERRUPT_MASK ) 4d50c: 7007 moveq #7,%d0 4d50e: c082 andl %d2,%d0 if ( mask & RTEMS_TIMESLICE_MASK ) { if ( _Modes_Is_timeslice(mode_set) ) { executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE; executing->cpu_time_budget = _Thread_Ticks_per_timeslice; } else executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE; 4d510: 42aa 007a clrl %a2@(122) } /* * Set the new interrupt level */ if ( mask & RTEMS_INTERRUPT_MASK ) 4d514: 4a80 tstl %d0 4d516: 6700 ff30 beqw 4d448 4d51a: 6000 ff1a braw 4d436 bool is_asr_enabled = false; bool needs_asr_dispatching = false; rtems_mode old_mode; if ( !previous_mode_set ) return RTEMS_INVALID_ADDRESS; 4d51e: 7009 moveq #9,%d0 <== NOT EXECUTED if (_Thread_Evaluate_is_dispatch_needed( needs_asr_dispatching ) ) _Thread_Dispatch(); } return RTEMS_SUCCESSFUL; } 4d520: 4cee 1c3c ffe4 moveml %fp@(-28),%d2-%d5/%a2-%a4 <== NOT EXECUTED 4d526: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 000474a8 : rtems_status_code rtems_task_restart( rtems_id id, uint32_t argument ) { 474a8: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); 474ac: 486e fffc pea %fp@(-4) <== NOT EXECUTED 474b0: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 474b4: 4eb9 0004 94fc jsr 494fc <_Thread_Get> <== NOT EXECUTED switch ( location ) { 474ba: 508f addql #8,%sp <== NOT EXECUTED 474bc: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 474c0: 6622 bnes 474e4 <== NOT EXECUTED case OBJECTS_LOCAL: if ( _Thread_Restart( the_thread, NULL, argument ) ) { 474c2: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 474c6: 42a7 clrl %sp@- <== NOT EXECUTED 474c8: 2f00 movel %d0,%sp@- <== NOT EXECUTED 474ca: 4eb9 0004 9d90 jsr 49d90 <_Thread_Restart> <== NOT EXECUTED 474d0: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 474d4: 4a00 tstb %d0 <== NOT EXECUTED 474d6: 6612 bnes 474ea <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 474d8: 4eb9 0004 94d6 jsr 494d6 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_INCORRECT_STATE; 474de: 700e moveq #14,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 474e0: 4e5e unlk %fp <== NOT EXECUTED 474e2: 4e75 rts <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 474e4: 7004 moveq #4,%d0 <== NOT EXECUTED } 474e6: 4e5e unlk %fp <== NOT EXECUTED 474e8: 4e75 rts <== NOT EXECUTED the_thread = _Thread_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( _Thread_Restart( the_thread, NULL, argument ) ) { _Thread_Enable_dispatch(); 474ea: 4eb9 0004 94d6 jsr 494d6 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; 474f0: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 474f2: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 00049f14 : */ rtems_status_code rtems_task_resume( rtems_id id ) { 49f14: 4e56 fffc linkw %fp,#-4 register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); 49f18: 486e fffc pea %fp@(-4) 49f1c: 2f2e 0008 movel %fp@(8),%sp@- 49f20: 4eb9 0004 bf94 jsr 4bf94 <_Thread_Get> switch ( location ) { 49f26: 508f addql #8,%sp 49f28: 4aae fffc tstl %fp@(-4) 49f2c: 6706 beqs 49f34 <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 49f2e: 7004 moveq #4,%d0 <== NOT EXECUTED } 49f30: 4e5e unlk %fp <== NOT EXECUTED 49f32: 4e75 rts <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _States_Is_suspended ( States_Control the_states ) { return (the_states & STATES_SUSPENDED); 49f34: 7202 moveq #2,%d1 49f36: 2040 moveal %d0,%a0 49f38: c2a8 0010 andl %a0@(16),%d1 the_thread = _Thread_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( _States_Is_suspended( the_thread->current_state ) ) { 49f3c: 660c bnes 49f4a <== ALWAYS TAKEN _Thread_Resume( the_thread, true ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 49f3e: 4eb9 0004 bf6e jsr 4bf6e <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_INCORRECT_STATE; 49f44: 700e moveq #14,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 49f46: 4e5e unlk %fp <== NOT EXECUTED 49f48: 4e75 rts <== NOT EXECUTED the_thread = _Thread_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( _States_Is_suspended( the_thread->current_state ) ) { _Thread_Resume( the_thread, true ); 49f4a: 4878 0001 pea 1 49f4e: 2f00 movel %d0,%sp@- 49f50: 4eb9 0004 c828 jsr 4c828 <_Thread_Resume> _Thread_Enable_dispatch(); 49f56: 4eb9 0004 bf6e jsr 4bf6e <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; 49f5c: 508f addql #8,%sp 49f5e: 4280 clrl %d0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 49f60: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00048e20 : rtems_status_code rtems_task_set_note( rtems_id id, uint32_t notepad, uint32_t note ) { 48e20: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 48e24: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED 48e28: 2f02 movel %d2,%sp@- <== NOT EXECUTED 48e2a: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; if ( !rtems_configuration_get_notepads_enabled() ) 48e2e: 4a39 0006 0194 tstb 60194 <== NOT EXECUTED 48e34: 676e beqs 48ea4 <== NOT EXECUTED /* * NOTE: There is no check for < RTEMS_NOTEPAD_FIRST because that would * be checking an unsigned number for being negative. */ if ( notepad > RTEMS_NOTEPAD_LAST ) 48e36: 720f moveq #15,%d1 <== NOT EXECUTED 48e38: b282 cmpl %d2,%d1 <== NOT EXECUTED 48e3a: 6542 bcss 48e7e <== NOT EXECUTED /* * Optimize the most likely case to avoid the Thread_Dispatch. */ if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) || 48e3c: 4a80 tstl %d0 <== NOT EXECUTED 48e3e: 6748 beqs 48e88 <== NOT EXECUTED _Objects_Are_ids_equal( id, _Thread_Executing->Object.id ) ) { 48e40: 2079 0006 1e5c moveal 61e5c <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED /* * Optimize the most likely case to avoid the Thread_Dispatch. */ if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) || 48e46: b0a8 0008 cmpl %a0@(8),%d0 <== NOT EXECUTED 48e4a: 6742 beqs 48e8e <== NOT EXECUTED api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ]; api->Notepads[ notepad ] = note; return RTEMS_SUCCESSFUL; } the_thread = _Thread_Get( id, &location ); 48e4c: 486e fffc pea %fp@(-4) <== NOT EXECUTED 48e50: 2f00 movel %d0,%sp@- <== NOT EXECUTED 48e52: 4eb9 0004 b094 jsr 4b094 <_Thread_Get> <== NOT EXECUTED switch ( location ) { 48e58: 508f addql #8,%sp <== NOT EXECUTED 48e5a: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 48e5e: 664e bnes 48eae <== NOT EXECUTED case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; api->Notepads[ notepad ] = note; 48e60: 2240 moveal %d0,%a1 <== NOT EXECUTED 48e62: 202e 0010 movel %fp@(16),%d0 <== NOT EXECUTED 48e66: 2069 00fc moveal %a1@(252),%a0 <== NOT EXECUTED 48e6a: 2180 2c1e movel %d0,%a0@(0000001e,%d2:l:4) <== NOT EXECUTED _Thread_Enable_dispatch(); 48e6e: 4eb9 0004 b06e jsr 4b06e <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 48e74: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; api->Notepads[ notepad ] = note; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 48e78: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 48e7a: 4e5e unlk %fp <== NOT EXECUTED 48e7c: 4e75 rts <== NOT EXECUTED 48e7e: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED * NOTE: There is no check for < RTEMS_NOTEPAD_FIRST because that would * be checking an unsigned number for being negative. */ if ( notepad > RTEMS_NOTEPAD_LAST ) return RTEMS_INVALID_NUMBER; 48e82: 700a moveq #10,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 48e84: 4e5e unlk %fp <== NOT EXECUTED 48e86: 4e75 rts <== NOT EXECUTED /* * Optimize the most likely case to avoid the Thread_Dispatch. */ if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) || 48e88: 2079 0006 1e5c moveal 61e5c <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED _Objects_Are_ids_equal( id, _Thread_Executing->Object.id ) ) { api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ]; api->Notepads[ notepad ] = note; 48e8e: 226e 0010 moveal %fp@(16),%a1 <== NOT EXECUTED return RTEMS_SUCCESSFUL; 48e92: 4280 clrl %d0 <== NOT EXECUTED */ if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) || _Objects_Are_ids_equal( id, _Thread_Executing->Object.id ) ) { api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ]; api->Notepads[ notepad ] = note; 48e94: 2068 00fc moveal %a0@(252),%a0 <== NOT EXECUTED 48e98: 2189 2c1e movel %a1,%a0@(0000001e,%d2:l:4) <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 48e9c: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 48ea0: 4e5e unlk %fp <== NOT EXECUTED 48ea2: 4e75 rts <== NOT EXECUTED 48ea4: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; if ( !rtems_configuration_get_notepads_enabled() ) return RTEMS_NOT_CONFIGURED; 48ea8: 7016 moveq #22,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 48eaa: 4e5e unlk %fp <== NOT EXECUTED 48eac: 4e75 rts <== NOT EXECUTED 48eae: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 48eb2: 7004 moveq #4,%d0 <== NOT EXECUTED } 48eb4: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 0004acfc : rtems_status_code rtems_task_set_priority( rtems_id id, rtems_task_priority new_priority, rtems_task_priority *old_priority ) { 4acfc: 4e56 fffc linkw %fp,#-4 4ad00: 2f0a movel %a2,%sp@- 4ad02: 246e 0010 moveal %fp@(16),%a2 4ad06: 2f02 movel %d2,%sp@- 4ad08: 242e 000c movel %fp@(12),%d2 register Thread_Control *the_thread; Objects_Locations location; if ( new_priority != RTEMS_CURRENT_PRIORITY && 4ad0c: 670c beqs 4ad1a <== NEVER TAKEN RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid ( rtems_task_priority the_priority ) { return ( ( the_priority >= RTEMS_MINIMUM_PRIORITY ) && ( the_priority <= RTEMS_MAXIMUM_PRIORITY ) ); 4ad0e: 4280 clrl %d0 4ad10: 1039 0006 10e2 moveb 610e2 ,%d0 */ RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid ( rtems_task_priority the_priority ) { return ( ( the_priority >= RTEMS_MINIMUM_PRIORITY ) && 4ad16: b082 cmpl %d2,%d0 4ad18: 6566 bcss 4ad80 <== NEVER TAKEN !_RTEMS_tasks_Priority_is_valid( new_priority ) ) return RTEMS_INVALID_PRIORITY; if ( !old_priority ) 4ad1a: 4a8a tstl %a2 4ad1c: 6770 beqs 4ad8e <== NEVER TAKEN return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get( id, &location ); 4ad1e: 486e fffc pea %fp@(-4) 4ad22: 2f2e 0008 movel %fp@(8),%sp@- 4ad26: 4eb9 0004 cf28 jsr 4cf28 <_Thread_Get> switch ( location ) { 4ad2c: 508f addql #8,%sp 4ad2e: 4aae fffc tstl %fp@(-4) 4ad32: 663e bnes 4ad72 <== NEVER TAKEN case OBJECTS_LOCAL: /* XXX need helper to "convert" from core priority */ *old_priority = the_thread->current_priority; 4ad34: 2040 moveal %d0,%a0 4ad36: 24a8 0014 movel %a0@(20),%a2@ if ( new_priority != RTEMS_CURRENT_PRIORITY ) { 4ad3a: 4a82 tstl %d2 4ad3c: 6720 beqs 4ad5e <== NEVER TAKEN the_thread->real_priority = new_priority; 4ad3e: 2142 0018 movel %d2,%a0@(24) if ( the_thread->resource_count == 0 || 4ad42: 4aa8 001c tstl %a0@(28) 4ad46: 6706 beqs 4ad4e <== ALWAYS TAKEN 4ad48: b4a8 0014 cmpl %a0@(20),%d2 <== NOT EXECUTED 4ad4c: 6410 bccs 4ad5e <== NOT EXECUTED the_thread->current_priority > new_priority ) _Thread_Change_priority( the_thread, new_priority, false ); 4ad4e: 42a7 clrl %sp@- 4ad50: 2f02 movel %d2,%sp@- 4ad52: 2f00 movel %d0,%sp@- 4ad54: 4eb9 0004 ca0c jsr 4ca0c <_Thread_Change_priority> 4ad5a: 4fef 000c lea %sp@(12),%sp } _Thread_Enable_dispatch(); 4ad5e: 4eb9 0004 cf02 jsr 4cf02 <_Thread_Enable_dispatch> case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4ad64: 242e fff4 movel %fp@(-12),%d2 if ( the_thread->resource_count == 0 || the_thread->current_priority > new_priority ) _Thread_Change_priority( the_thread, new_priority, false ); } _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 4ad68: 4280 clrl %d0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4ad6a: 246e fff8 moveal %fp@(-8),%a2 4ad6e: 4e5e unlk %fp 4ad70: 4e75 rts 4ad72: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 4ad76: 7004 moveq #4,%d0 <== NOT EXECUTED } 4ad78: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 4ad7c: 4e5e unlk %fp <== NOT EXECUTED 4ad7e: 4e75 rts <== NOT EXECUTED 4ad80: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED register Thread_Control *the_thread; Objects_Locations location; if ( new_priority != RTEMS_CURRENT_PRIORITY && !_RTEMS_tasks_Priority_is_valid( new_priority ) ) return RTEMS_INVALID_PRIORITY; 4ad84: 7013 moveq #19,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4ad86: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 4ad8a: 4e5e unlk %fp <== NOT EXECUTED 4ad8c: 4e75 rts <== NOT EXECUTED 4ad8e: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED if ( new_priority != RTEMS_CURRENT_PRIORITY && !_RTEMS_tasks_Priority_is_valid( new_priority ) ) return RTEMS_INVALID_PRIORITY; if ( !old_priority ) return RTEMS_INVALID_ADDRESS; 4ad92: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4ad94: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 4ad98: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00046904 : rtems_status_code rtems_task_start( rtems_id id, rtems_task_entry entry_point, rtems_task_argument argument ) { 46904: 4e56 fffc linkw %fp,#-4 46908: 2f02 movel %d2,%sp@- 4690a: 242e 000c movel %fp@(12),%d2 register Thread_Control *the_thread; Objects_Locations location; if ( entry_point == NULL ) 4690e: 674a beqs 4695a return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get( id, &location ); 46910: 486e fffc pea %fp@(-4) 46914: 2f2e 0008 movel %fp@(8),%sp@- 46918: 4eb9 0004 88e8 jsr 488e8 <_Thread_Get> switch ( location ) { 4691e: 508f addql #8,%sp 46920: 4aae fffc tstl %fp@(-4) 46924: 662a bnes 46950 <== NEVER TAKEN case OBJECTS_LOCAL: if ( _Thread_Start( 46926: 2f2e 0010 movel %fp@(16),%sp@- 4692a: 42a7 clrl %sp@- 4692c: 2f02 movel %d2,%sp@- 4692e: 42a7 clrl %sp@- 46930: 2f00 movel %d0,%sp@- 46932: 4eb9 0004 9358 jsr 49358 <_Thread_Start> 46938: 4fef 0014 lea %sp@(20),%sp 4693c: 4a00 tstb %d0 4693e: 6624 bnes 46964 <== ALWAYS TAKEN the_thread, THREAD_START_NUMERIC, entry_point, NULL, argument ) ) { _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 46940: 4eb9 0004 88c2 jsr 488c2 <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 46946: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED the_thread, THREAD_START_NUMERIC, entry_point, NULL, argument ) ) { _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); return RTEMS_INCORRECT_STATE; 4694a: 700e moveq #14,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4694c: 4e5e unlk %fp <== NOT EXECUTED 4694e: 4e75 rts <== NOT EXECUTED 46950: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 46954: 7004 moveq #4,%d0 <== NOT EXECUTED } 46956: 4e5e unlk %fp <== NOT EXECUTED 46958: 4e75 rts <== NOT EXECUTED 4695a: 242e fff8 movel %fp@(-8),%d2 { register Thread_Control *the_thread; Objects_Locations location; if ( entry_point == NULL ) return RTEMS_INVALID_ADDRESS; 4695e: 7009 moveq #9,%d0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 46960: 4e5e unlk %fp 46962: 4e75 rts switch ( location ) { case OBJECTS_LOCAL: if ( _Thread_Start( the_thread, THREAD_START_NUMERIC, entry_point, NULL, argument ) ) { _Thread_Enable_dispatch(); 46964: 4eb9 0004 88c2 jsr 488c2 <_Thread_Enable_dispatch> case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4696a: 242e fff8 movel %fp@(-8),%d2 case OBJECTS_LOCAL: if ( _Thread_Start( the_thread, THREAD_START_NUMERIC, entry_point, NULL, argument ) ) { _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 4696e: 4280 clrl %d0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 46970: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00046974 : */ rtems_status_code rtems_task_suspend( rtems_id id ) { 46974: 4e56 fffc linkw %fp,#-4 register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); 46978: 486e fffc pea %fp@(-4) 4697c: 2f2e 0008 movel %fp@(8),%sp@- 46980: 4eb9 0004 88e8 jsr 488e8 <_Thread_Get> switch ( location ) { 46986: 508f addql #8,%sp 46988: 4aae fffc tstl %fp@(-4) 4698c: 6706 beqs 46994 <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 4698e: 7004 moveq #4,%d0 <== NOT EXECUTED } 46990: 4e5e unlk %fp <== NOT EXECUTED 46992: 4e75 rts <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _States_Is_suspended ( States_Control the_states ) { return (the_states & STATES_SUSPENDED); 46994: 7202 moveq #2,%d1 46996: 2040 moveal %d0,%a0 46998: c2a8 0010 andl %a0@(16),%d1 the_thread = _Thread_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_States_Is_suspended( the_thread->current_state ) ) { 4699c: 670c beqs 469aa <== ALWAYS TAKEN _Thread_Suspend( the_thread ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 4699e: 4eb9 0004 88c2 jsr 488c2 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_ALREADY_SUSPENDED; 469a4: 700f moveq #15,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 469a6: 4e5e unlk %fp <== NOT EXECUTED 469a8: 4e75 rts <== NOT EXECUTED the_thread = _Thread_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_States_Is_suspended( the_thread->current_state ) ) { _Thread_Suspend( the_thread ); 469aa: 2f00 movel %d0,%sp@- 469ac: 4eb9 0004 93b4 jsr 493b4 <_Thread_Suspend> _Thread_Enable_dispatch(); 469b2: 4eb9 0004 88c2 jsr 488c2 <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; 469b8: 588f addql #4,%sp 469ba: 4280 clrl %d0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 469bc: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 000477a8 : rtems_status_code rtems_task_variable_add( rtems_id tid, void **ptr, void (*dtor)(void *) ) { 477a8: 4e56 fff0 linkw %fp,#-16 477ac: 48d7 0c04 moveml %d2/%a2-%a3,%sp@ 477b0: 246e 000c moveal %fp@(12),%a2 477b4: 242e 0010 movel %fp@(16),%d2 Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp, *new; if ( !ptr ) 477b8: 4a8a tstl %a2 477ba: 6700 009a beqw 47856 return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get (tid, &location); 477be: 486e fffc pea %fp@(-4) <== NOT EXECUTED 477c2: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 477c6: 4eb9 0004 9884 jsr 49884 <_Thread_Get> <== NOT EXECUTED switch (location) { 477cc: 508f addql #8,%sp <== NOT EXECUTED rtems_task_variable_t *tvp, *new; if ( !ptr ) return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get (tid, &location); 477ce: 2640 moveal %d0,%a3 <== NOT EXECUTED switch (location) { 477d0: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 477d4: 664c bnes 47822 <== NOT EXECUTED case OBJECTS_LOCAL: /* * Figure out if the variable is already in this task's list. */ tvp = the_thread->task_variables; 477d6: 206b 0108 moveal %a3@(264),%a0 <== NOT EXECUTED while (tvp) { 477da: 4a88 tstl %a0 <== NOT EXECUTED 477dc: 670c beqs 477ea <== NOT EXECUTED if (tvp->ptr == ptr) { 477de: b5e8 0004 cmpal %a0@(4),%a2 <== NOT EXECUTED 477e2: 674a beqs 4782e <== NOT EXECUTED tvp->dtor = dtor; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } tvp = (rtems_task_variable_t *)tvp->next; 477e4: 2050 moveal %a0@,%a0 <== NOT EXECUTED case OBJECTS_LOCAL: /* * Figure out if the variable is already in this task's list. */ tvp = the_thread->task_variables; while (tvp) { 477e6: 4a88 tstl %a0 <== NOT EXECUTED 477e8: 66f4 bnes 477de <== NOT EXECUTED /* * Now allocate memory for this task variable. */ new = (rtems_task_variable_t *) _Workspace_Allocate(sizeof(rtems_task_variable_t)); 477ea: 4878 0014 pea 14 <== NOT EXECUTED 477ee: 4eb9 0004 aa1e jsr 4aa1e <_Workspace_Allocate> <== NOT EXECUTED if (new == NULL) { 477f4: 588f addql #4,%sp <== NOT EXECUTED /* * Now allocate memory for this task variable. */ new = (rtems_task_variable_t *) _Workspace_Allocate(sizeof(rtems_task_variable_t)); 477f6: 2040 moveal %d0,%a0 <== NOT EXECUTED if (new == NULL) { 477f8: 4a80 tstl %d0 <== NOT EXECUTED 477fa: 6748 beqs 47844 <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_NO_MEMORY; } new->gval = *ptr; 477fc: 2152 0008 movel %a2@,%a0@(8) <== NOT EXECUTED new->ptr = ptr; new->dtor = dtor; new->next = (struct rtems_task_variable_tt *)the_thread->task_variables; 47800: 20ab 0108 movel %a3@(264),%a0@ <== NOT EXECUTED if (new == NULL) { _Thread_Enable_dispatch(); return RTEMS_NO_MEMORY; } new->gval = *ptr; new->ptr = ptr; 47804: 214a 0004 movel %a2,%a0@(4) <== NOT EXECUTED new->dtor = dtor; 47808: 2142 0010 movel %d2,%a0@(16) <== NOT EXECUTED new->next = (struct rtems_task_variable_tt *)the_thread->task_variables; the_thread->task_variables = new; 4780c: 2740 0108 movel %d0,%a3@(264) <== NOT EXECUTED _Thread_Enable_dispatch(); 47810: 4eb9 0004 985e jsr 4985e <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 47816: 4cee 0c04 fff0 moveml %fp@(-16),%d2/%a2-%a3 <== NOT EXECUTED new->dtor = dtor; new->next = (struct rtems_task_variable_tt *)the_thread->task_variables; the_thread->task_variables = new; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 4781c: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4781e: 4e5e unlk %fp <== NOT EXECUTED 47820: 4e75 rts <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 47822: 7004 moveq #4,%d0 <== NOT EXECUTED } 47824: 4cee 0c04 fff0 moveml %fp@(-16),%d2/%a2-%a3 <== NOT EXECUTED 4782a: 4e5e unlk %fp <== NOT EXECUTED 4782c: 4e75 rts <== NOT EXECUTED * Figure out if the variable is already in this task's list. */ tvp = the_thread->task_variables; while (tvp) { if (tvp->ptr == ptr) { tvp->dtor = dtor; 4782e: 2142 0010 movel %d2,%a0@(16) <== NOT EXECUTED _Thread_Enable_dispatch(); 47832: 4eb9 0004 985e jsr 4985e <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 47838: 4cee 0c04 fff0 moveml %fp@(-16),%d2/%a2-%a3 <== NOT EXECUTED tvp = the_thread->task_variables; while (tvp) { if (tvp->ptr == ptr) { tvp->dtor = dtor; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 4783e: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 47840: 4e5e unlk %fp <== NOT EXECUTED 47842: 4e75 rts <== NOT EXECUTED * Now allocate memory for this task variable. */ new = (rtems_task_variable_t *) _Workspace_Allocate(sizeof(rtems_task_variable_t)); if (new == NULL) { _Thread_Enable_dispatch(); 47844: 4eb9 0004 985e jsr 4985e <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_NO_MEMORY; 4784a: 701a moveq #26,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4784c: 4cee 0c04 fff0 moveml %fp@(-16),%d2/%a2-%a3 <== NOT EXECUTED 47852: 4e5e unlk %fp <== NOT EXECUTED 47854: 4e75 rts <== NOT EXECUTED Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp, *new; if ( !ptr ) return RTEMS_INVALID_ADDRESS; 47856: 7009 moveq #9,%d0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 47858: 4cee 0c04 fff0 moveml %fp@(-16),%d2/%a2-%a3 4785e: 4e5e unlk %fp ... =============================================================================== 00047864 : rtems_status_code rtems_task_variable_delete( rtems_id tid, void **ptr ) { 47864: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 47868: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4786a: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp, *prev; if ( !ptr ) 4786e: 6772 beqs 478e2 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; prev = NULL; the_thread = _Thread_Get (tid, &location); 47870: 486e fffc pea %fp@(-4) <== NOT EXECUTED 47874: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 47878: 4eb9 0004 9884 jsr 49884 <_Thread_Get> <== NOT EXECUTED switch (location) { 4787e: 508f addql #8,%sp <== NOT EXECUTED 47880: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 47884: 6634 bnes 478ba <== NOT EXECUTED case OBJECTS_LOCAL: tvp = the_thread->task_variables; 47886: 2040 moveal %d0,%a0 <== NOT EXECUTED 47888: 2268 0108 moveal %a0@(264),%a1 <== NOT EXECUTED while (tvp) { 4788c: 4a89 tstl %a1 <== NOT EXECUTED 4788e: 671a beqs 478aa <== NOT EXECUTED if (tvp->ptr == ptr) { 47890: b4a9 0004 cmpl %a1@(4),%d2 <== NOT EXECUTED 47894: 6756 beqs 478ec <== NOT EXECUTED _RTEMS_Tasks_Invoke_task_variable_dtor( the_thread, tvp ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } prev = tvp; tvp = (rtems_task_variable_t *)tvp->next; 47896: 2051 moveal %a1@,%a0 <== NOT EXECUTED the_thread = _Thread_Get (tid, &location); switch (location) { case OBJECTS_LOCAL: tvp = the_thread->task_variables; while (tvp) { 47898: 4a88 tstl %a0 <== NOT EXECUTED 4789a: 670e beqs 478aa <== NOT EXECUTED if (tvp->ptr == ptr) { 4789c: b4a8 0004 cmpl %a0@(4),%d2 <== NOT EXECUTED 478a0: 6722 beqs 478c4 <== NOT EXECUTED 478a2: 2248 moveal %a0,%a1 <== NOT EXECUTED _RTEMS_Tasks_Invoke_task_variable_dtor( the_thread, tvp ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } prev = tvp; tvp = (rtems_task_variable_t *)tvp->next; 478a4: 2051 moveal %a1@,%a0 <== NOT EXECUTED the_thread = _Thread_Get (tid, &location); switch (location) { case OBJECTS_LOCAL: tvp = the_thread->task_variables; while (tvp) { 478a6: 4a88 tstl %a0 <== NOT EXECUTED 478a8: 66f2 bnes 4789c <== NOT EXECUTED return RTEMS_SUCCESSFUL; } prev = tvp; tvp = (rtems_task_variable_t *)tvp->next; } _Thread_Enable_dispatch(); 478aa: 4eb9 0004 985e jsr 4985e <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 478b0: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED } prev = tvp; tvp = (rtems_task_variable_t *)tvp->next; } _Thread_Enable_dispatch(); return RTEMS_INVALID_ADDRESS; 478b4: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 478b6: 4e5e unlk %fp <== NOT EXECUTED 478b8: 4e75 rts <== NOT EXECUTED 478ba: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 478be: 7004 moveq #4,%d0 <== NOT EXECUTED } 478c0: 4e5e unlk %fp <== NOT EXECUTED 478c2: 4e75 rts <== NOT EXECUTED case OBJECTS_LOCAL: tvp = the_thread->task_variables; while (tvp) { if (tvp->ptr == ptr) { if (prev) prev->next = tvp->next; 478c4: 2290 movel %a0@,%a1@ <== NOT EXECUTED else the_thread->task_variables = (rtems_task_variable_t *)tvp->next; _RTEMS_Tasks_Invoke_task_variable_dtor( the_thread, tvp ); 478c6: 2f08 movel %a0,%sp@- <== NOT EXECUTED 478c8: 2f00 movel %d0,%sp@- <== NOT EXECUTED 478ca: 4eb9 0004 7998 jsr 47998 <_RTEMS_Tasks_Invoke_task_variable_dtor><== NOT EXECUTED _Thread_Enable_dispatch(); 478d0: 4eb9 0004 985e jsr 4985e <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; 478d6: 508f addql #8,%sp <== NOT EXECUTED 478d8: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 478da: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 478de: 4e5e unlk %fp <== NOT EXECUTED 478e0: 4e75 rts <== NOT EXECUTED 478e2: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp, *prev; if ( !ptr ) return RTEMS_INVALID_ADDRESS; 478e6: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 478e8: 4e5e unlk %fp <== NOT EXECUTED 478ea: 4e75 rts <== NOT EXECUTED while (tvp) { if (tvp->ptr == ptr) { if (prev) prev->next = tvp->next; else the_thread->task_variables = (rtems_task_variable_t *)tvp->next; 478ec: 2040 moveal %d0,%a0 <== NOT EXECUTED 478ee: 2151 0108 movel %a1@,%a0@(264) <== NOT EXECUTED 478f2: 2049 moveal %a1,%a0 <== NOT EXECUTED _RTEMS_Tasks_Invoke_task_variable_dtor( the_thread, tvp ); 478f4: 2f08 movel %a0,%sp@- <== NOT EXECUTED 478f6: 2f00 movel %d0,%sp@- <== NOT EXECUTED 478f8: 4eb9 0004 7998 jsr 47998 <_RTEMS_Tasks_Invoke_task_variable_dtor><== NOT EXECUTED _Thread_Enable_dispatch(); 478fe: 4eb9 0004 985e jsr 4985e <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; 47904: 508f addql #8,%sp <== NOT EXECUTED 47906: 4280 clrl %d0 <== NOT EXECUTED 47908: 60d0 bras 478da <== NOT EXECUTED ... =============================================================================== 0004790c : rtems_status_code rtems_task_variable_get( rtems_id tid, void **ptr, void **result ) { 4790c: 4e56 fffc linkw %fp,#-4 47910: 2f0a movel %a2,%sp@- 47912: 246e 0010 moveal %fp@(16),%a2 47916: 2f02 movel %d2,%sp@- 47918: 242e 000c movel %fp@(12),%d2 Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp; if ( !ptr ) 4791c: 6752 beqs 47970 <== ALWAYS TAKEN return RTEMS_INVALID_ADDRESS; if ( !result ) 4791e: 4a8a tstl %a2 <== NOT EXECUTED 47920: 674e beqs 47970 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get (tid, &location); 47922: 486e fffc pea %fp@(-4) <== NOT EXECUTED 47926: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4792a: 4eb9 0004 9884 jsr 49884 <_Thread_Get> <== NOT EXECUTED switch (location) { 47930: 508f addql #8,%sp <== NOT EXECUTED 47932: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 47936: 662a bnes 47962 <== NOT EXECUTED case OBJECTS_LOCAL: /* * Figure out if the variable is in this task's list. */ tvp = the_thread->task_variables; 47938: 2240 moveal %d0,%a1 <== NOT EXECUTED 4793a: 2069 0108 moveal %a1@(264),%a0 <== NOT EXECUTED while (tvp) { 4793e: 4a88 tstl %a0 <== NOT EXECUTED 47940: 670c beqs 4794e <== NOT EXECUTED if (tvp->ptr == ptr) { 47942: b4a8 0004 cmpl %a0@(4),%d2 <== NOT EXECUTED 47946: 6736 beqs 4797e <== NOT EXECUTED */ *result = tvp->tval; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } tvp = (rtems_task_variable_t *)tvp->next; 47948: 2050 moveal %a0@,%a0 <== NOT EXECUTED case OBJECTS_LOCAL: /* * Figure out if the variable is in this task's list. */ tvp = the_thread->task_variables; while (tvp) { 4794a: 4a88 tstl %a0 <== NOT EXECUTED 4794c: 66f4 bnes 47942 <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } tvp = (rtems_task_variable_t *)tvp->next; } _Thread_Enable_dispatch(); 4794e: 4eb9 0004 985e jsr 4985e <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 47954: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } tvp = (rtems_task_variable_t *)tvp->next; } _Thread_Enable_dispatch(); return RTEMS_INVALID_ADDRESS; 47958: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4795a: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 4795e: 4e5e unlk %fp <== NOT EXECUTED 47960: 4e75 rts <== NOT EXECUTED 47962: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 47966: 7004 moveq #4,%d0 <== NOT EXECUTED } 47968: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 4796c: 4e5e unlk %fp <== NOT EXECUTED 4796e: 4e75 rts <== NOT EXECUTED 47970: 242e fff4 movel %fp@(-12),%d2 if ( !ptr ) return RTEMS_INVALID_ADDRESS; if ( !result ) return RTEMS_INVALID_ADDRESS; 47974: 7009 moveq #9,%d0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 47976: 246e fff8 moveal %fp@(-8),%a2 4797a: 4e5e unlk %fp 4797c: 4e75 rts if (tvp->ptr == ptr) { /* * Should this return the current (i.e not the * saved) value if `tid' is the current task? */ *result = tvp->tval; 4797e: 24a8 000c movel %a0@(12),%a2@ <== NOT EXECUTED _Thread_Enable_dispatch(); 47982: 4eb9 0004 985e jsr 4985e <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 47988: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED * Should this return the current (i.e not the * saved) value if `tid' is the current task? */ *result = tvp->tval; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 4798c: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4798e: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 47992: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 000469c0 : */ rtems_status_code rtems_task_wake_after( rtems_interval ticks ) { 469c0: 4e56 0000 linkw %fp,#0 469c4: 2039 0005 e4c8 movel 5e4c8 <_Thread_Dispatch_disable_level>,%d0 469ca: 5280 addql #1,%d0 469cc: 2f02 movel %d2,%sp@- 469ce: 242e 0008 movel %fp@(8),%d2 469d2: 23c0 0005 e4c8 movel %d0,5e4c8 <_Thread_Dispatch_disable_level> _Thread_Disable_dispatch(); if ( ticks == 0 ) { 469d8: 4a82 tstl %d2 469da: 6758 beqs 46a34 <== NEVER TAKEN _Scheduler_Yield(); } else { _Thread_Set_state( _Thread_Executing, STATES_DELAYING ); 469dc: 4878 0008 pea 8 469e0: 2f39 0005 e684 movel 5e684 <_Per_CPU_Information+0xc>,%sp@- 469e6: 4eb9 0004 91a4 jsr 491a4 <_Thread_Set_state> _Watchdog_Initialize( &_Thread_Executing->Timer, _Thread_Delay_ended, _Thread_Executing->Object.id, 469ec: 2079 0005 e684 moveal 5e684 <_Per_CPU_Information+0xc>,%a0 Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 469f2: 203c 0004 871c movel #296732,%d0 469f8: 2140 0064 movel %d0,%a0@(100) _Thread_Disable_dispatch(); if ( ticks == 0 ) { _Scheduler_Yield(); } else { _Thread_Set_state( _Thread_Executing, STATES_DELAYING ); _Watchdog_Initialize( 469fc: 2028 0008 movel %a0@(8),%d0 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 46a00: 2142 0054 movel %d2,%a0@(84) void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; the_watchdog->id = id; 46a04: 2140 0068 movel %d0,%a0@(104) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 46a08: 42a8 0050 clrl %a0@(80) the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data; 46a0c: 42a8 006c clrl %a0@(108) ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 46a10: 4868 0048 pea %a0@(72) 46a14: 4879 0005 e5a8 pea 5e5a8 <_Watchdog_Ticks_chain> 46a1a: 4eb9 0004 97ac jsr 497ac <_Watchdog_Insert> 46a20: 4fef 0010 lea %sp@(16),%sp _Thread_Executing->Object.id, NULL ); _Watchdog_Insert_ticks( &_Thread_Executing->Timer, ticks ); } _Thread_Enable_dispatch(); 46a24: 4eb9 0004 88c2 jsr 488c2 <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; } 46a2a: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 46a2e: 4280 clrl %d0 <== NOT EXECUTED 46a30: 4e5e unlk %fp <== NOT EXECUTED 46a32: 4e75 rts <== NOT EXECUTED * always operates on the scheduler that 'owns' the currently executing * thread. */ RTEMS_INLINE_ROUTINE void _Scheduler_Yield( void ) { _Scheduler.Operations.yield( &_Scheduler ); 46a34: 4879 0005 e54e pea 5e54e <_Scheduler> <== NOT EXECUTED 46a3a: 2079 0005 e556 moveal 5e556 <_Scheduler+0x8>,%a0 <== NOT EXECUTED 46a40: 4e90 jsr %a0@ <== NOT EXECUTED 46a42: 588f addql #4,%sp <== NOT EXECUTED _Thread_Executing->Object.id, NULL ); _Watchdog_Insert_ticks( &_Thread_Executing->Timer, ticks ); } _Thread_Enable_dispatch(); 46a44: 4eb9 0004 88c2 jsr 488c2 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 46a4a: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 46a4e: 4280 clrl %d0 <== NOT EXECUTED 46a50: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00047958 : */ rtems_status_code rtems_task_wake_when( rtems_time_of_day *time_buffer ) { 47958: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 4795c: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4795e: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED Watchdog_Interval seconds; if ( !_TOD_Is_set ) 47962: 4a39 0005 fe50 tstb 5fe50 <_TOD_Is_set> <== NOT EXECUTED 47968: 6700 00aa beqw 47a14 <== NOT EXECUTED return RTEMS_NOT_DEFINED; if ( !time_buffer ) 4796c: 4a8a tstl %a2 <== NOT EXECUTED 4796e: 6700 00ae beqw 47a1e <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; time_buffer->ticks = 0; 47972: 42aa 0018 clrl %a2@(24) <== NOT EXECUTED if ( !_TOD_Validate( time_buffer ) ) 47976: 2f0a movel %a2,%sp@- <== NOT EXECUTED 47978: 4eb9 0004 6c64 jsr 46c64 <_TOD_Validate> <== NOT EXECUTED 4797e: 588f addql #4,%sp <== NOT EXECUTED 47980: 4a00 tstb %d0 <== NOT EXECUTED 47982: 660a bnes 4798e <== NOT EXECUTED &_Thread_Executing->Timer, seconds - _TOD_Seconds_since_epoch() ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 47984: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED return RTEMS_INVALID_CLOCK; seconds = _TOD_To_seconds( time_buffer ); if ( seconds <= _TOD_Seconds_since_epoch() ) return RTEMS_INVALID_CLOCK; 47988: 7014 moveq #20,%d0 <== NOT EXECUTED &_Thread_Executing->Timer, seconds - _TOD_Seconds_since_epoch() ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 4798a: 4e5e unlk %fp <== NOT EXECUTED 4798c: 4e75 rts <== NOT EXECUTED time_buffer->ticks = 0; if ( !_TOD_Validate( time_buffer ) ) return RTEMS_INVALID_CLOCK; seconds = _TOD_To_seconds( time_buffer ); 4798e: 2f0a movel %a2,%sp@- <== NOT EXECUTED 47990: 4eb9 0004 6b5c jsr 46b5c <_TOD_To_seconds> <== NOT EXECUTED if ( seconds <= _TOD_Seconds_since_epoch() ) 47996: 588f addql #4,%sp <== NOT EXECUTED 47998: b0b9 0005 feea cmpl 5feea <_TOD_Now>,%d0 <== NOT EXECUTED 4799e: 63e4 blss 47984 <== NOT EXECUTED 479a0: 2239 0005 fe40 movel 5fe40 <_Thread_Dispatch_disable_level>,%d1<== NOT EXECUTED 479a6: 5281 addql #1,%d1 <== NOT EXECUTED 479a8: 23c1 0005 fe40 movel %d1,5fe40 <_Thread_Dispatch_disable_level><== NOT EXECUTED return RTEMS_INVALID_CLOCK; _Thread_Disable_dispatch(); _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_TIME ); 479ae: 4878 0010 pea 10 <== NOT EXECUTED 479b2: 2f39 0005 fffc movel 5fffc <_Per_CPU_Information+0xc>,%sp@-<== NOT EXECUTED 479b8: 2d40 fffc movel %d0,%fp@(-4) <== NOT EXECUTED 479bc: 4eb9 0004 a190 jsr 4a190 <_Thread_Set_state> <== NOT EXECUTED &_Thread_Executing->Timer, _Thread_Delay_ended, _Thread_Executing->Object.id, NULL ); _Watchdog_Insert_seconds( 479c2: 202e fffc movel %fp@(-4),%d0 <== NOT EXECUTED 479c6: 90b9 0005 feea subl 5feea <_TOD_Now>,%d0 <== NOT EXECUTED _Thread_Disable_dispatch(); _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_TIME ); _Watchdog_Initialize( &_Thread_Executing->Timer, _Thread_Delay_ended, _Thread_Executing->Object.id, 479cc: 2079 0005 fffc moveal 5fffc <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED NULL ); _Watchdog_Insert_seconds( 479d2: 2140 0054 movel %d0,%a0@(84) <== NOT EXECUTED Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 479d6: 203c 0004 9708 movel #300808,%d0 <== NOT EXECUTED 479dc: 2140 0064 movel %d0,%a0@(100) <== NOT EXECUTED if ( seconds <= _TOD_Seconds_since_epoch() ) return RTEMS_INVALID_CLOCK; _Thread_Disable_dispatch(); _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_TIME ); _Watchdog_Initialize( 479e0: 2028 0008 movel %a0@(8),%d0 <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 479e4: 42a8 0050 clrl %a0@(80) <== NOT EXECUTED the_watchdog->routine = routine; the_watchdog->id = id; 479e8: 2140 0068 movel %d0,%a0@(104) <== NOT EXECUTED the_watchdog->user_data = user_data; 479ec: 42a8 006c clrl %a0@(108) <== NOT EXECUTED ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog ); 479f0: 4868 0048 pea %a0@(72) <== NOT EXECUTED 479f4: 4879 0005 ff14 pea 5ff14 <_Watchdog_Seconds_chain> <== NOT EXECUTED 479fa: 4eb9 0004 a82c jsr 4a82c <_Watchdog_Insert> <== NOT EXECUTED ); _Watchdog_Insert_seconds( &_Thread_Executing->Timer, seconds - _TOD_Seconds_since_epoch() ); _Thread_Enable_dispatch(); 47a00: 4eb9 0004 98ae jsr 498ae <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 47a06: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED _Watchdog_Insert_seconds( &_Thread_Executing->Timer, seconds - _TOD_Seconds_since_epoch() ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 47a0a: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 47a0e: 4280 clrl %d0 <== NOT EXECUTED } 47a10: 4e5e unlk %fp <== NOT EXECUTED 47a12: 4e75 rts <== NOT EXECUTED 47a14: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED ) { Watchdog_Interval seconds; if ( !_TOD_Is_set ) return RTEMS_NOT_DEFINED; 47a18: 700b moveq #11,%d0 <== NOT EXECUTED &_Thread_Executing->Timer, seconds - _TOD_Seconds_since_epoch() ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 47a1a: 4e5e unlk %fp <== NOT EXECUTED 47a1c: 4e75 rts <== NOT EXECUTED 47a1e: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED if ( !_TOD_Is_set ) return RTEMS_NOT_DEFINED; if ( !time_buffer ) return RTEMS_INVALID_ADDRESS; 47a22: 7009 moveq #9,%d0 <== NOT EXECUTED &_Thread_Executing->Timer, seconds - _TOD_Seconds_since_epoch() ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 47a24: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00058954 : */ rtems_status_code rtems_timer_cancel( rtems_id id ) { 58954: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Timer_Control *) _Objects_Get( &_Timer_Information, id, location ); 58958: 486e fffc pea %fp@(-4) <== NOT EXECUTED 5895c: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 58960: 4879 0007 d3f8 pea 7d3f8 <_Timer_Information> <== NOT EXECUTED 58966: 4eb9 0005 b7bc jsr 5b7bc <_Objects_Get> <== NOT EXECUTED Timer_Control *the_timer; Objects_Locations location; the_timer = _Timer_Get( id, &location ); switch ( location ) { 5896c: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 58970: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 58974: 6706 beqs 5897c <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 58976: 7004 moveq #4,%d0 <== NOT EXECUTED } 58978: 4e5e unlk %fp <== NOT EXECUTED 5897a: 4e75 rts <== NOT EXECUTED the_timer = _Timer_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_Timer_Is_dormant_class( the_timer->the_class ) ) 5897c: 7204 moveq #4,%d1 <== NOT EXECUTED 5897e: 2040 moveal %d0,%a0 <== NOT EXECUTED 58980: b2a8 0038 cmpl %a0@(56),%d1 <== NOT EXECUTED 58984: 670c beqs 58992 <== NOT EXECUTED (void) _Watchdog_Remove( &the_timer->Ticker ); 58986: 4868 0010 pea %a0@(16) <== NOT EXECUTED 5898a: 4eb9 0005 d630 jsr 5d630 <_Watchdog_Remove> <== NOT EXECUTED 58990: 588f addql #4,%sp <== NOT EXECUTED _Thread_Enable_dispatch(); 58992: 4eb9 0005 c34a jsr 5c34a <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; 58998: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 5899a: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 00046c70 : rtems_status_code rtems_timer_create( rtems_name name, rtems_id *id ) { 46c70: 4e56 fff4 linkw %fp,#-12 46c74: 48d7 040c moveml %d2-%d3/%a2,%sp@ 46c78: 242e 0008 movel %fp@(8),%d2 46c7c: 246e 000c moveal %fp@(12),%a2 Timer_Control *the_timer; if ( !rtems_is_name_valid( name ) ) 46c80: 6768 beqs 46cea <== NEVER TAKEN return RTEMS_INVALID_NAME; if ( !id ) 46c82: 4a8a tstl %a2 46c84: 6700 0082 beqw 46d08 46c88: 2039 0005 e82a movel 5e82a <_Thread_Dispatch_disable_level>,%d0 46c8e: 5280 addql #1,%d0 46c90: 23c0 0005 e82a movel %d0,5e82a <_Thread_Dispatch_disable_level> * This function allocates a timer control block from * the inactive chain of free timer control blocks. */ RTEMS_INLINE_ROUTINE Timer_Control *_Timer_Allocate( void ) { return (Timer_Control *) _Objects_Allocate( &_Timer_Information ); 46c96: 4879 0005 ea1c pea 5ea1c <_Timer_Information> 46c9c: 4eb9 0004 7c0c jsr 47c0c <_Objects_Allocate> _Thread_Disable_dispatch(); /* to prevent deletion */ the_timer = _Timer_Allocate(); if ( !the_timer ) { 46ca2: 588f addql #4,%sp 46ca4: 2040 moveal %d0,%a0 46ca6: 4a80 tstl %d0 46ca8: 674c beqs 46cf6 <== NEVER TAKEN Objects_Name name ) { _Objects_Set_local_object( information, _Objects_Get_index( the_object->id ), 46caa: 2028 0008 movel %a0@(8),%d0 Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( 46cae: 4281 clrl %d1 _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } the_timer->the_class = TIMER_DORMANT; 46cb0: 7604 moveq #4,%d3 #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 46cb2: 2279 0005 ea34 moveal 5ea34 <_Timer_Information+0x18>,%a1 Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( 46cb8: 3200 movew %d0,%d1 46cba: 2143 0038 movel %d3,%a0@(56) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 46cbe: 42a8 0018 clrl %a0@(24) the_watchdog->routine = routine; 46cc2: 42a8 002c clrl %a0@(44) the_watchdog->id = id; 46cc6: 42a8 0030 clrl %a0@(48) the_watchdog->user_data = user_data; 46cca: 42a8 0034 clrl %a0@(52) #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 46cce: 2388 1c00 movel %a0,%a1@(00000000,%d1:l:4) information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 46cd2: 2142 000c movel %d2,%a0@(12) &_Timer_Information, &the_timer->Object, (Objects_Name) name ); *id = the_timer->Object.id; 46cd6: 2480 movel %d0,%a2@ _Thread_Enable_dispatch(); 46cd8: 4eb9 0004 8bda jsr 48bda <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; } 46cde: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 (Objects_Name) name ); *id = the_timer->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 46ce4: 4280 clrl %d0 } 46ce6: 4e5e unlk %fp 46ce8: 4e75 rts ) { Timer_Control *the_timer; if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; 46cea: 7003 moveq #3,%d0 <== NOT EXECUTED ); *id = the_timer->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 46cec: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 46cf2: 4e5e unlk %fp <== NOT EXECUTED 46cf4: 4e75 rts <== NOT EXECUTED _Thread_Disable_dispatch(); /* to prevent deletion */ the_timer = _Timer_Allocate(); if ( !the_timer ) { _Thread_Enable_dispatch(); 46cf6: 4eb9 0004 8bda jsr 48bda <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_TOO_MANY; 46cfc: 7005 moveq #5,%d0 <== NOT EXECUTED ); *id = the_timer->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 46cfe: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 46d04: 4e5e unlk %fp <== NOT EXECUTED 46d06: 4e75 rts <== NOT EXECUTED if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; if ( !id ) return RTEMS_INVALID_ADDRESS; 46d08: 7009 moveq #9,%d0 <== NOT EXECUTED ); *id = the_timer->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 46d0a: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 46d10: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00058a44 : */ rtems_status_code rtems_timer_delete( rtems_id id ) { 58a44: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 58a48: 2f0a movel %a2,%sp@- <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Timer_Control *) _Objects_Get( &_Timer_Information, id, location ); 58a4a: 486e fffc pea %fp@(-4) <== NOT EXECUTED 58a4e: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 58a52: 4879 0007 d3f8 pea 7d3f8 <_Timer_Information> <== NOT EXECUTED 58a58: 4eb9 0005 b7bc jsr 5b7bc <_Objects_Get> <== NOT EXECUTED Timer_Control *the_timer; Objects_Locations location; the_timer = _Timer_Get( id, &location ); switch ( location ) { 58a5e: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 58a62: 2440 moveal %d0,%a2 <== NOT EXECUTED 58a64: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 58a68: 663a bnes 58aa4 <== NOT EXECUTED case OBJECTS_LOCAL: _Objects_Close( &_Timer_Information, &the_timer->Object ); 58a6a: 2f00 movel %d0,%sp@- <== NOT EXECUTED 58a6c: 4879 0007 d3f8 pea 7d3f8 <_Timer_Information> <== NOT EXECUTED 58a72: 4eb9 0005 b350 jsr 5b350 <_Objects_Close> <== NOT EXECUTED (void) _Watchdog_Remove( &the_timer->Ticker ); 58a78: 486a 0010 pea %a2@(16) <== NOT EXECUTED 58a7c: 4eb9 0005 d630 jsr 5d630 <_Watchdog_Remove> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Timer_Free ( Timer_Control *the_timer ) { _Objects_Free( &_Timer_Information, &the_timer->Object ); 58a82: 2f0a movel %a2,%sp@- <== NOT EXECUTED 58a84: 4879 0007 d3f8 pea 7d3f8 <_Timer_Information> <== NOT EXECUTED 58a8a: 4eb9 0005 b614 jsr 5b614 <_Objects_Free> <== NOT EXECUTED _Timer_Free( the_timer ); _Thread_Enable_dispatch(); 58a90: 4eb9 0005 c34a jsr 5c34a <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 58a96: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED case OBJECTS_LOCAL: _Objects_Close( &_Timer_Information, &the_timer->Object ); (void) _Watchdog_Remove( &the_timer->Ticker ); _Timer_Free( the_timer ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 58a9a: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED 58a9e: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 58aa0: 4e5e unlk %fp <== NOT EXECUTED 58aa2: 4e75 rts <== NOT EXECUTED 58aa4: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 58aa8: 7004 moveq #4,%d0 <== NOT EXECUTED } 58aaa: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 00046d14 : rtems_id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { 46d14: 4e56 ffe8 linkw %fp,#-24 <== NOT EXECUTED 46d18: 48d7 043c moveml %d2-%d5/%a2,%sp@ <== NOT EXECUTED 46d1c: 282e 0008 movel %fp@(8),%d4 <== NOT EXECUTED 46d20: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED 46d24: 262e 0010 movel %fp@(16),%d3 <== NOT EXECUTED Timer_Control *the_timer; Objects_Locations location; ISR_Level level; if ( ticks == 0 ) 46d28: 4a82 tstl %d2 <== NOT EXECUTED 46d2a: 6700 0094 beqw 46dc0 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; if ( !routine ) 46d2e: 4a83 tstl %d3 <== NOT EXECUTED 46d30: 6700 00ae beqw 46de0 <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Timer_Control *) _Objects_Get( &_Timer_Information, id, location ); 46d34: 486e fffc pea %fp@(-4) <== NOT EXECUTED 46d38: 2f04 movel %d4,%sp@- <== NOT EXECUTED 46d3a: 4879 0005 ea1c pea 5ea1c <_Timer_Information> <== NOT EXECUTED 46d40: 4eb9 0004 80cc jsr 480cc <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_timer = _Timer_Get( id, &location ); switch ( location ) { 46d46: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 46d4a: 2440 moveal %d0,%a2 <== NOT EXECUTED 46d4c: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 46d50: 6662 bnes 46db4 <== NOT EXECUTED case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); 46d52: 2a00 movel %d0,%d5 <== NOT EXECUTED 46d54: 0685 0000 0010 addil #16,%d5 <== NOT EXECUTED 46d5a: 2f05 movel %d5,%sp@- <== NOT EXECUTED 46d5c: 4eb9 0004 9c18 jsr 49c18 <_Watchdog_Remove> <== NOT EXECUTED _ISR_Disable( level ); 46d62: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED 46d68: 40c1 movew %sr,%d1 <== NOT EXECUTED 46d6a: 8081 orl %d1,%d0 <== NOT EXECUTED 46d6c: 46c0 movew %d0,%sr <== NOT EXECUTED /* * Check to see if the watchdog has just been inserted by a * higher priority interrupt. If so, abandon this insert. */ if ( the_timer->Ticker.state != WATCHDOG_INACTIVE ) { 46d6e: 588f addql #4,%sp <== NOT EXECUTED 46d70: 4aaa 0018 tstl %a2@(24) <== NOT EXECUTED 46d74: 6656 bnes 46dcc <== NOT EXECUTED /* * OK. Now we now the timer was not rescheduled by an interrupt * so we can atomically initialize it as in use. */ the_timer->the_class = TIMER_INTERVAL; 46d76: 42aa 0038 clrl %a2@(56) <== NOT EXECUTED 46d7a: 256e 0014 0034 movel %fp@(20),%a2@(52) <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 46d80: 42aa 0018 clrl %a2@(24) <== NOT EXECUTED the_watchdog->routine = routine; 46d84: 2543 002c movel %d3,%a2@(44) <== NOT EXECUTED the_watchdog->id = id; 46d88: 2544 0030 movel %d4,%a2@(48) <== NOT EXECUTED _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); _ISR_Enable( level ); 46d8c: 46c1 movew %d1,%sr <== NOT EXECUTED Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 46d8e: 2542 001c movel %d2,%a2@(28) <== NOT EXECUTED _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 46d92: 2f05 movel %d5,%sp@- <== NOT EXECUTED 46d94: 4879 0005 e90a pea 5e90a <_Watchdog_Ticks_chain> <== NOT EXECUTED 46d9a: 4eb9 0004 9ac4 jsr 49ac4 <_Watchdog_Insert> <== NOT EXECUTED _Watchdog_Insert_ticks( &the_timer->Ticker, ticks ); _Thread_Enable_dispatch(); 46da0: 4eb9 0004 8bda jsr 48bda <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; 46da6: 508f addql #8,%sp <== NOT EXECUTED 46da8: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 46daa: 4cee 043c ffe8 moveml %fp@(-24),%d2-%d5/%a2 <== NOT EXECUTED 46db0: 4e5e unlk %fp <== NOT EXECUTED 46db2: 4e75 rts <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 46db4: 7004 moveq #4,%d0 <== NOT EXECUTED } 46db6: 4cee 043c ffe8 moveml %fp@(-24),%d2-%d5/%a2 <== NOT EXECUTED 46dbc: 4e5e unlk %fp <== NOT EXECUTED 46dbe: 4e75 rts <== NOT EXECUTED Timer_Control *the_timer; Objects_Locations location; ISR_Level level; if ( ticks == 0 ) return RTEMS_INVALID_NUMBER; 46dc0: 700a moveq #10,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 46dc2: 4cee 043c ffe8 moveml %fp@(-24),%d2-%d5/%a2 <== NOT EXECUTED 46dc8: 4e5e unlk %fp <== NOT EXECUTED 46dca: 4e75 rts <== NOT EXECUTED * Check to see if the watchdog has just been inserted by a * higher priority interrupt. If so, abandon this insert. */ if ( the_timer->Ticker.state != WATCHDOG_INACTIVE ) { _ISR_Enable( level ); 46dcc: 46c1 movew %d1,%sr <== NOT EXECUTED _Thread_Enable_dispatch(); 46dce: 4eb9 0004 8bda jsr 48bda <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; 46dd4: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 46dd6: 4cee 043c ffe8 moveml %fp@(-24),%d2-%d5/%a2 <== NOT EXECUTED 46ddc: 4e5e unlk %fp <== NOT EXECUTED 46dde: 4e75 rts <== NOT EXECUTED if ( ticks == 0 ) return RTEMS_INVALID_NUMBER; if ( !routine ) return RTEMS_INVALID_ADDRESS; 46de0: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 46de2: 4cee 043c ffe8 moveml %fp@(-24),%d2-%d5/%a2 <== NOT EXECUTED 46de8: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00058b88 : rtems_id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) { 58b88: 4e56 ffec linkw %fp,#-20 <== NOT EXECUTED 58b8c: 48d7 041c moveml %d2-%d4/%a2,%sp@ <== NOT EXECUTED 58b90: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED 58b94: 262e 0010 movel %fp@(16),%d3 <== NOT EXECUTED Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; if ( !_TOD_Is_set ) 58b98: 4a39 0007 d1d4 tstb 7d1d4 <_TOD_Is_set> <== NOT EXECUTED 58b9e: 660c bnes 58bac <== NOT EXECUTED return RTEMS_NOT_DEFINED; 58ba0: 700b moveq #11,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 58ba2: 4cee 041c ffec moveml %fp@(-20),%d2-%d4/%a2 <== NOT EXECUTED 58ba8: 4e5e unlk %fp <== NOT EXECUTED 58baa: 4e75 rts <== NOT EXECUTED rtems_interval seconds; if ( !_TOD_Is_set ) return RTEMS_NOT_DEFINED; if ( !_TOD_Validate( wall_time ) ) 58bac: 2f02 movel %d2,%sp@- <== NOT EXECUTED 58bae: 4eb9 0005 5bd0 jsr 55bd0 <_TOD_Validate> <== NOT EXECUTED 58bb4: 588f addql #4,%sp <== NOT EXECUTED 58bb6: 4a00 tstb %d0 <== NOT EXECUTED 58bb8: 671a beqs 58bd4 <== NOT EXECUTED return RTEMS_INVALID_CLOCK; if ( !routine ) 58bba: 4a83 tstl %d3 <== NOT EXECUTED 58bbc: 6700 00a8 beqw 58c66 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; seconds = _TOD_To_seconds( wall_time ); 58bc0: 2f02 movel %d2,%sp@- <== NOT EXECUTED 58bc2: 4eb9 0005 5ac8 jsr 55ac8 <_TOD_To_seconds> <== NOT EXECUTED if ( seconds <= _TOD_Seconds_since_epoch() ) 58bc8: 588f addql #4,%sp <== NOT EXECUTED return RTEMS_INVALID_CLOCK; if ( !routine ) return RTEMS_INVALID_ADDRESS; seconds = _TOD_To_seconds( wall_time ); 58bca: 2400 movel %d0,%d2 <== NOT EXECUTED if ( seconds <= _TOD_Seconds_since_epoch() ) 58bcc: b0b9 0007 d26e cmpl 7d26e <_TOD_Now>,%d0 <== NOT EXECUTED 58bd2: 620c bhis 58be0 <== NOT EXECUTED return RTEMS_INVALID_CLOCK; 58bd4: 7014 moveq #20,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 58bd6: 4cee 041c ffec moveml %fp@(-20),%d2-%d4/%a2 <== NOT EXECUTED 58bdc: 4e5e unlk %fp <== NOT EXECUTED 58bde: 4e75 rts <== NOT EXECUTED 58be0: 486e fffc pea %fp@(-4) <== NOT EXECUTED 58be4: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 58be8: 4879 0007 d3f8 pea 7d3f8 <_Timer_Information> <== NOT EXECUTED 58bee: 4eb9 0005 b7bc jsr 5b7bc <_Objects_Get> <== NOT EXECUTED seconds = _TOD_To_seconds( wall_time ); if ( seconds <= _TOD_Seconds_since_epoch() ) return RTEMS_INVALID_CLOCK; the_timer = _Timer_Get( id, &location ); switch ( location ) { 58bf4: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 58bf8: 2440 moveal %d0,%a2 <== NOT EXECUTED 58bfa: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 58bfe: 665a bnes 58c5a <== NOT EXECUTED case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); 58c00: 2800 movel %d0,%d4 <== NOT EXECUTED 58c02: 0684 0000 0010 addil #16,%d4 <== NOT EXECUTED 58c08: 2f04 movel %d4,%sp@- <== NOT EXECUTED 58c0a: 4eb9 0005 d630 jsr 5d630 <_Watchdog_Remove> <== NOT EXECUTED ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data; 58c10: 256e 0014 0034 movel %fp@(20),%a2@(52) <== NOT EXECUTED the_timer->the_class = TIMER_TIME_OF_DAY; 58c16: 7002 moveq #2,%d0 <== NOT EXECUTED _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); _Watchdog_Insert_seconds( 58c18: 94b9 0007 d26e subl 7d26e <_TOD_Now>,%d2 <== NOT EXECUTED the_timer = _Timer_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); the_timer->the_class = TIMER_TIME_OF_DAY; 58c1e: 2540 0038 movel %d0,%a2@(56) <== NOT EXECUTED void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; the_watchdog->id = id; 58c22: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); _Watchdog_Insert_seconds( 58c26: 2542 001c movel %d2,%a2@(28) <== NOT EXECUTED 58c2a: 2540 0030 movel %d0,%a2@(48) <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 58c2e: 42aa 0018 clrl %a2@(24) <== NOT EXECUTED the_watchdog->routine = routine; 58c32: 2543 002c movel %d3,%a2@(44) <== NOT EXECUTED ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog ); 58c36: 2f04 movel %d4,%sp@- <== NOT EXECUTED 58c38: 4879 0007 d298 pea 7d298 <_Watchdog_Seconds_chain> <== NOT EXECUTED 58c3e: 4eb9 0005 d4dc jsr 5d4dc <_Watchdog_Insert> <== NOT EXECUTED &the_timer->Ticker, seconds - _TOD_Seconds_since_epoch() ); _Thread_Enable_dispatch(); 58c44: 4eb9 0005 c34a jsr 5c34a <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; 58c4a: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 58c4e: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 58c50: 4cee 041c ffec moveml %fp@(-20),%d2-%d4/%a2 <== NOT EXECUTED 58c56: 4e5e unlk %fp <== NOT EXECUTED 58c58: 4e75 rts <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 58c5a: 7004 moveq #4,%d0 <== NOT EXECUTED } 58c5c: 4cee 041c ffec moveml %fp@(-20),%d2-%d4/%a2 <== NOT EXECUTED 58c62: 4e5e unlk %fp <== NOT EXECUTED 58c64: 4e75 rts <== NOT EXECUTED if ( !_TOD_Validate( wall_time ) ) return RTEMS_INVALID_CLOCK; if ( !routine ) return RTEMS_INVALID_ADDRESS; 58c66: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 58c68: 4cee 041c ffec moveml %fp@(-20),%d2-%d4/%a2 <== NOT EXECUTED 58c6e: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 00058c74 : rtems_status_code rtems_timer_get_information( rtems_id id, rtems_timer_information *the_info ) { 58c74: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 58c78: 2f0a movel %a2,%sp@- <== NOT EXECUTED 58c7a: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED Timer_Control *the_timer; Objects_Locations location; if ( !the_info ) 58c7e: 4a8a tstl %a2 <== NOT EXECUTED 58c80: 6752 beqs 58cd4 <== NOT EXECUTED 58c82: 486e fffc pea %fp@(-4) <== NOT EXECUTED 58c86: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 58c8a: 4879 0007 d3f8 pea 7d3f8 <_Timer_Information> <== NOT EXECUTED 58c90: 4eb9 0005 b7bc jsr 5b7bc <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_timer = _Timer_Get( id, &location ); switch ( location ) { 58c96: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 58c9a: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 58c9e: 662a bnes 58cca <== NOT EXECUTED case OBJECTS_LOCAL: the_info->the_class = the_timer->the_class; 58ca0: 2040 moveal %d0,%a0 <== NOT EXECUTED 58ca2: 24a8 0038 movel %a0@(56),%a2@ <== NOT EXECUTED the_info->initial = the_timer->Ticker.initial; 58ca6: 41e8 001c lea %a0@(28),%a0 <== NOT EXECUTED 58caa: 2550 0004 movel %a0@,%a2@(4) <== NOT EXECUTED the_info->start_time = the_timer->Ticker.start_time; 58cae: 5088 addql #8,%a0 <== NOT EXECUTED 58cb0: 2550 0008 movel %a0@,%a2@(8) <== NOT EXECUTED the_info->stop_time = the_timer->Ticker.stop_time; 58cb4: 5888 addql #4,%a0 <== NOT EXECUTED 58cb6: 2550 000c movel %a0@,%a2@(12) <== NOT EXECUTED _Thread_Enable_dispatch(); 58cba: 4eb9 0005 c34a jsr 5c34a <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 58cc0: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED the_info->the_class = the_timer->the_class; the_info->initial = the_timer->Ticker.initial; the_info->start_time = the_timer->Ticker.start_time; the_info->stop_time = the_timer->Ticker.stop_time; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 58cc4: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 58cc6: 4e5e unlk %fp <== NOT EXECUTED 58cc8: 4e75 rts <== NOT EXECUTED 58cca: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 58cce: 7004 moveq #4,%d0 <== NOT EXECUTED } 58cd0: 4e5e unlk %fp <== NOT EXECUTED 58cd2: 4e75 rts <== NOT EXECUTED 58cd4: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED { Timer_Control *the_timer; Objects_Locations location; if ( !the_info ) return RTEMS_INVALID_ADDRESS; 58cd8: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 58cda: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 00058ce0 : rtems_status_code rtems_timer_ident( rtems_name name, rtems_id *id ) { 58ce0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( 58ce4: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 58ce8: 2f3c 7fff ffff movel #2147483647,%sp@- <== NOT EXECUTED 58cee: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 58cf2: 4879 0007 d3f8 pea 7d3f8 <_Timer_Information> <== NOT EXECUTED 58cf8: 4eb9 0005 b948 jsr 5b948 <_Objects_Name_to_id_u32> <== NOT EXECUTED name, OBJECTS_SEARCH_LOCAL_NODE, id ); return _Status_Object_name_errors_to_status[ status ]; 58cfe: 41f9 0007 67f0 lea 767f0 <_Status_Object_name_errors_to_status>,%a0<== NOT EXECUTED } 58d04: 4e5e unlk %fp <== NOT EXECUTED 58d06: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED =============================================================================== 000593f6 : rtems_status_code rtems_timer_initiate_server( uint32_t priority, uint32_t stack_size, rtems_attribute attribute_set ) { 593f6: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 593fa: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED 593fe: 2f03 movel %d3,%sp@- <== NOT EXECUTED 59400: 2f02 movel %d2,%sp@- <== NOT EXECUTED 59402: 4a80 tstl %d0 <== NOT EXECUTED 59404: 6748 beqs 5944e <== NOT EXECUTED ( the_priority <= RTEMS_MAXIMUM_PRIORITY ) ); 59406: 4281 clrl %d1 <== NOT EXECUTED 59408: 1239 0007 75e2 moveb 775e2 ,%d1 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid ( rtems_task_priority the_priority ) { return ( ( the_priority >= RTEMS_MINIMUM_PRIORITY ) && 5940e: b280 cmpl %d0,%d1 <== NOT EXECUTED 59410: 644a bccs 5945c <== NOT EXECUTED * structured so we check it is invalid before looking for * a specific invalid value as the default. */ _priority = priority; if ( !_RTEMS_tasks_Priority_is_valid( priority ) ) { if ( priority != RTEMS_TIMER_SERVER_DEFAULT_PRIORITY ) 59412: 72ff moveq #-1,%d1 <== NOT EXECUTED 59414: b280 cmpl %d0,%d1 <== NOT EXECUTED 59416: 6636 bnes 5944e <== NOT EXECUTED 59418: 2239 0007 d1c4 movel 7d1c4 <_Thread_Dispatch_disable_level>,%d1<== NOT EXECUTED 5941e: 5281 addql #1,%d1 <== NOT EXECUTED return RTEMS_INVALID_PRIORITY; _priority = 0; 59420: 4283 clrl %d3 <== NOT EXECUTED 59422: 23c1 0007 d1c4 movel %d1,7d1c4 <_Thread_Dispatch_disable_level><== NOT EXECUTED /* * Just to make sure this is only called once. */ _Thread_Disable_dispatch(); tmpInitialized = initialized; initialized = true; 59428: 7001 moveq #1,%d0 <== NOT EXECUTED /* * Just to make sure this is only called once. */ _Thread_Disable_dispatch(); tmpInitialized = initialized; 5942a: 1439 0007 86ae moveb 786ae ,%d2 <== NOT EXECUTED initialized = true; 59430: 13c0 0007 86ae moveb %d0,786ae <== NOT EXECUTED _Thread_Enable_dispatch(); 59436: 4eb9 0005 c34a jsr 5c34a <_Thread_Enable_dispatch> <== NOT EXECUTED if ( tmpInitialized ) 5943c: 4a02 tstb %d2 <== NOT EXECUTED 5943e: 6744 beqs 59484 <== NOT EXECUTED initialized = false; } #endif return status; } 59440: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED tmpInitialized = initialized; initialized = true; _Thread_Enable_dispatch(); if ( tmpInitialized ) return RTEMS_INCORRECT_STATE; 59444: 700e moveq #14,%d0 <== NOT EXECUTED initialized = false; } #endif return status; } 59446: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED 5944a: 4e5e unlk %fp <== NOT EXECUTED 5944c: 4e75 rts <== NOT EXECUTED 5944e: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED * a specific invalid value as the default. */ _priority = priority; if ( !_RTEMS_tasks_Priority_is_valid( priority ) ) { if ( priority != RTEMS_TIMER_SERVER_DEFAULT_PRIORITY ) return RTEMS_INVALID_PRIORITY; 59452: 7013 moveq #19,%d0 <== NOT EXECUTED initialized = false; } #endif return status; } 59454: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED 59458: 4e5e unlk %fp <== NOT EXECUTED 5945a: 4e75 rts <== NOT EXECUTED 5945c: 2239 0007 d1c4 movel 7d1c4 <_Thread_Dispatch_disable_level>,%d1<== NOT EXECUTED 59462: 5281 addql #1,%d1 <== NOT EXECUTED 59464: 2600 movel %d0,%d3 <== NOT EXECUTED 59466: 23c1 0007 d1c4 movel %d1,7d1c4 <_Thread_Dispatch_disable_level><== NOT EXECUTED /* * Just to make sure this is only called once. */ _Thread_Disable_dispatch(); tmpInitialized = initialized; initialized = true; 5946c: 7001 moveq #1,%d0 <== NOT EXECUTED /* * Just to make sure this is only called once. */ _Thread_Disable_dispatch(); tmpInitialized = initialized; 5946e: 1439 0007 86ae moveb 786ae ,%d2 <== NOT EXECUTED initialized = true; 59474: 13c0 0007 86ae moveb %d0,786ae <== NOT EXECUTED _Thread_Enable_dispatch(); 5947a: 4eb9 0005 c34a jsr 5c34a <_Thread_Enable_dispatch> <== NOT EXECUTED if ( tmpInitialized ) 59480: 4a02 tstb %d2 <== NOT EXECUTED 59482: 66bc bnes 59440 <== NOT EXECUTED * other library rules. For example, if using a TSR written in Ada the * Server should run at the same priority as the priority Ada task. * Otherwise, the priority ceiling for the mutex used to protect the * GNAT run-time is violated. */ status = rtems_task_create( 59484: 222e 0010 movel %fp@(16),%d1 <== NOT EXECUTED 59488: 486e fffc pea %fp@(-4) <== NOT EXECUTED 5948c: 08c1 000f bset #15,%d1 <== NOT EXECUTED 59490: 2f01 movel %d1,%sp@- <== NOT EXECUTED 59492: 4878 0100 pea 100 <== NOT EXECUTED 59496: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 5949a: 2f03 movel %d3,%sp@- <== NOT EXECUTED 5949c: 2f3c 5449 4d45 movel #1414090053,%sp@- <== NOT EXECUTED 594a2: 4eb9 0005 8028 jsr 58028 <== NOT EXECUTED /* user may want floating point but we need */ /* system task specified for 0 priority */ attribute_set | RTEMS_SYSTEM_TASK, &id /* get the id back */ ); if (status) { 594a8: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED 594ac: 4a80 tstl %d0 <== NOT EXECUTED 594ae: 6714 beqs 594c4 <== NOT EXECUTED initialized = false; } #endif return status; } 594b0: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED /* system task specified for 0 priority */ attribute_set | RTEMS_SYSTEM_TASK, &id /* get the id back */ ); if (status) { initialized = false; 594b4: 4201 clrb %d1 <== NOT EXECUTED initialized = false; } #endif return status; } 594b6: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED 594ba: 4e5e unlk %fp <== NOT EXECUTED /* system task specified for 0 priority */ attribute_set | RTEMS_SYSTEM_TASK, &id /* get the id back */ ); if (status) { initialized = false; 594bc: 13c1 0007 86ae moveb %d1,786ae <== NOT EXECUTED initialized = false; } #endif return status; } 594c2: 4e75 rts <== NOT EXECUTED * We work with the TCB pointer, not the ID, so we need to convert * to a TCB pointer from here out. */ ts->thread = (Thread_Control *)_Objects_Get_local_object( &_RTEMS_tasks_Information, _Objects_Get_index(id) 594c4: 202e fffc movel %fp@(-4),%d0 <== NOT EXECUTED */ #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return NULL; #endif return information->local_table[ index ]; 594c8: 4282 clrl %d2 <== NOT EXECUTED /* * We work with the TCB pointer, not the ID, so we need to convert * to a TCB pointer from here out. */ ts->thread = (Thread_Control *)_Objects_Get_local_object( 594ca: 2079 0007 d15c moveal 7d15c <_RTEMS_tasks_Information+0x18>,%a0<== NOT EXECUTED 594d0: 3400 movew %d0,%d2 <== NOT EXECUTED * Initialize the pointer to the timer schedule method so applications that * do not use the Timer Server do not have to pull it in. */ ts->schedule_operation = _Timer_server_Schedule_operation_method; ts->Interval_watchdogs.last_snapshot = _Watchdog_Ticks_since_boot; 594d2: 2239 0007 d2ec movel 7d2ec <_Watchdog_Ticks_since_boot>,%d1<== NOT EXECUTED /* * We work with the TCB pointer, not the ID, so we need to convert * to a TCB pointer from here out. */ ts->thread = (Thread_Control *)_Objects_Get_local_object( 594d8: 41f0 2c00 lea %a0@(00000000,%d2:l:4),%a0 <== NOT EXECUTED 594dc: 23d0 0007 8630 movel %a0@,78630 <_Timer_server_Default> <== NOT EXECUTED ) { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); head->next = tail; 594e2: 41f9 0007 8664 lea 78664 <_Timer_server_Default+0x34>,%a0 <== NOT EXECUTED _Timer_server = ts; /* * Start the timer server */ status = rtems_task_start( 594e8: 4879 0007 8630 pea 78630 <_Timer_server_Default> <== NOT EXECUTED 594ee: 487a fb80 pea %pc@(59070 <_Timer_server_Body>) <== NOT EXECUTED 594f2: 23c8 0007 8660 movel %a0,78660 <_Timer_server_Default+0x30><== NOT EXECUTED head->previous = NULL; tail->previous = head; 594f8: 41f9 0007 8660 lea 78660 <_Timer_server_Default+0x30>,%a0 <== NOT EXECUTED 594fe: 23c8 0007 8668 movel %a0,78668 <_Timer_server_Default+0x38><== NOT EXECUTED ) { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); head->next = tail; 59504: 41f9 0007 869c lea 7869c <_Timer_server_Default+0x6c>,%a0 <== NOT EXECUTED * Initialize the pointer to the timer schedule method so applications that * do not use the Timer Server do not have to pull it in. */ ts->schedule_operation = _Timer_server_Schedule_operation_method; ts->Interval_watchdogs.last_snapshot = _Watchdog_Ticks_since_boot; 5950a: 23c1 0007 866c movel %d1,7866c <_Timer_server_Default+0x3c><== NOT EXECUTED head->previous = NULL; tail->previous = head; 59510: 223c 0007 8698 movel #493208,%d1 <== NOT EXECUTED ) { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); head->next = tail; 59516: 23c8 0007 8698 movel %a0,78698 <_Timer_server_Default+0x68><== NOT EXECUTED ts->TOD_watchdogs.last_snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); 5951c: 41f9 0007 d26e lea 7d26e <_TOD_Now>,%a0 <== NOT EXECUTED head->previous = NULL; tail->previous = head; 59522: 23c1 0007 86a0 movel %d1,786a0 <_Timer_server_Default+0x70><== NOT EXECUTED 59528: 23d0 0007 86a4 movel %a0@,786a4 <_Timer_server_Default+0x74><== NOT EXECUTED Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 5952e: 223c 0005 c1a4 movel #377252,%d1 <== NOT EXECUTED 59534: 41f9 0005 c1a4 lea 5c1a4 <_Thread_Delay_ended>,%a0 <== NOT EXECUTED 5953a: 23c1 0007 8654 movel %d1,78654 <_Timer_server_Default+0x24><== NOT EXECUTED ts->insert_chain = NULL; ts->active = false; 59540: 4201 clrb %d1 <== NOT EXECUTED ts->schedule_operation = _Timer_server_Schedule_operation_method; ts->Interval_watchdogs.last_snapshot = _Watchdog_Ticks_since_boot; ts->TOD_watchdogs.last_snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); ts->insert_chain = NULL; 59542: 42b9 0007 86a8 clrl 786a8 <_Timer_server_Default+0x78> <== NOT EXECUTED ts->active = false; 59548: 13c1 0007 86ac moveb %d1,786ac <_Timer_server_Default+0x7c><== NOT EXECUTED 5954e: 23c8 0007 868c movel %a0,7868c <_Timer_server_Default+0x5c><== NOT EXECUTED /* * The default timer server is now available. */ _Timer_server = ts; 59554: 41f9 0007 8630 lea 78630 <_Timer_server_Default>,%a0 <== NOT EXECUTED /* * Start the timer server */ status = rtems_task_start( 5955a: 2f00 movel %d0,%sp@- <== NOT EXECUTED /* * Initialize the pointer to the timer schedule method so applications that * do not use the Timer Server do not have to pull it in. */ ts->schedule_operation = _Timer_server_Schedule_operation_method; 5955c: 223c 0005 929a movel #365210,%d1 <== NOT EXECUTED { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); head->next = tail; head->previous = NULL; 59562: 42b9 0007 8664 clrl 78664 <_Timer_server_Default+0x34> <== NOT EXECUTED 59568: 42b9 0007 869c clrl 7869c <_Timer_server_Default+0x6c> <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 5956e: 42b9 0007 8640 clrl 78640 <_Timer_server_Default+0x10> <== NOT EXECUTED 59574: 23c1 0007 8634 movel %d1,78634 <_Timer_server_Default+0x4> <== NOT EXECUTED the_watchdog->routine = routine; the_watchdog->id = id; 5957a: 23c0 0007 8658 movel %d0,78658 <_Timer_server_Default+0x28><== NOT EXECUTED ts->active = false; /* * The default timer server is now available. */ _Timer_server = ts; 59580: 23c8 0007 d430 movel %a0,7d430 <_Timer_server> <== NOT EXECUTED the_watchdog->user_data = user_data; 59586: 42b9 0007 865c clrl 7865c <_Timer_server_Default+0x2c> <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 5958c: 42b9 0007 8678 clrl 78678 <_Timer_server_Default+0x48> <== NOT EXECUTED the_watchdog->routine = routine; the_watchdog->id = id; 59592: 23c0 0007 8690 movel %d0,78690 <_Timer_server_Default+0x60><== NOT EXECUTED the_watchdog->user_data = user_data; 59598: 42b9 0007 8694 clrl 78694 <_Timer_server_Default+0x64> <== NOT EXECUTED /* * Start the timer server */ status = rtems_task_start( 5959e: 4eb9 0005 8734 jsr 58734 <== NOT EXECUTED initialized = false; } #endif return status; } 595a4: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED if (status) { initialized = false; } #endif return status; 595a8: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED } 595ac: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED 595b0: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00058d0c : */ rtems_status_code rtems_timer_reset( rtems_id id ) { 58d0c: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 58d10: 48d7 0c04 moveml %d2/%a2-%a3,%sp@ <== NOT EXECUTED 58d14: 486e fffc pea %fp@(-4) <== NOT EXECUTED 58d18: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 58d1c: 4879 0007 d3f8 pea 7d3f8 <_Timer_Information> <== NOT EXECUTED 58d22: 4eb9 0005 b7bc jsr 5b7bc <_Objects_Get> <== NOT EXECUTED Timer_Control *the_timer; Objects_Locations location; rtems_status_code status = RTEMS_SUCCESSFUL; the_timer = _Timer_Get( id, &location ); switch ( location ) { 58d28: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 58d2c: 2440 moveal %d0,%a2 <== NOT EXECUTED 58d2e: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 58d32: 670e beqs 58d42 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 58d34: 7404 moveq #4,%d2 <== NOT EXECUTED } 58d36: 2002 movel %d2,%d0 <== NOT EXECUTED 58d38: 4cee 0c04 fff0 moveml %fp@(-16),%d2/%a2-%a3 <== NOT EXECUTED 58d3e: 4e5e unlk %fp <== NOT EXECUTED 58d40: 4e75 rts <== NOT EXECUTED the_timer = _Timer_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( the_timer->the_class == TIMER_INTERVAL ) { 58d42: 202a 0038 movel %a2@(56),%d0 <== NOT EXECUTED 58d46: 671a beqs 58d62 <== NOT EXECUTED _Watchdog_Remove( &the_timer->Ticker ); _Watchdog_Insert( &_Watchdog_Ticks_chain, &the_timer->Ticker ); } else if ( the_timer->the_class == TIMER_INTERVAL_ON_TASK ) { 58d48: 7201 moveq #1,%d1 <== NOT EXECUTED 58d4a: b280 cmpl %d0,%d1 <== NOT EXECUTED 58d4c: 673c beqs 58d8a <== NOT EXECUTED /* * Must be dormant or time of day timer (e.g. TIMER_DORMANT, * TIMER_TIME_OF_DAY, or TIMER_TIME_OF_DAY_ON_TASK). We * can only reset active interval timers. */ status = RTEMS_NOT_DEFINED; 58d4e: 740b moveq #11,%d2 <== NOT EXECUTED } _Thread_Enable_dispatch(); 58d50: 4eb9 0005 c34a jsr 5c34a <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 58d56: 2002 movel %d2,%d0 <== NOT EXECUTED 58d58: 4cee 0c04 fff0 moveml %fp@(-16),%d2/%a2-%a3 <== NOT EXECUTED 58d5e: 4e5e unlk %fp <== NOT EXECUTED 58d60: 4e75 rts <== NOT EXECUTED the_timer = _Timer_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( the_timer->the_class == TIMER_INTERVAL ) { _Watchdog_Remove( &the_timer->Ticker ); 58d62: 45ea 0010 lea %a2@(16),%a2 <== NOT EXECUTED rtems_id id ) { Timer_Control *the_timer; Objects_Locations location; rtems_status_code status = RTEMS_SUCCESSFUL; 58d66: 4282 clrl %d2 <== NOT EXECUTED the_timer = _Timer_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( the_timer->the_class == TIMER_INTERVAL ) { _Watchdog_Remove( &the_timer->Ticker ); 58d68: 2f0a movel %a2,%sp@- <== NOT EXECUTED 58d6a: 4eb9 0005 d630 jsr 5d630 <_Watchdog_Remove> <== NOT EXECUTED _Watchdog_Insert( &_Watchdog_Ticks_chain, &the_timer->Ticker ); 58d70: 2f0a movel %a2,%sp@- <== NOT EXECUTED 58d72: 4879 0007 d2a4 pea 7d2a4 <_Watchdog_Ticks_chain> <== NOT EXECUTED 58d78: 4eb9 0005 d4dc jsr 5d4dc <_Watchdog_Insert> <== NOT EXECUTED 58d7e: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED * TIMER_TIME_OF_DAY, or TIMER_TIME_OF_DAY_ON_TASK). We * can only reset active interval timers. */ status = RTEMS_NOT_DEFINED; } _Thread_Enable_dispatch(); 58d82: 4eb9 0005 c34a jsr 5c34a <_Thread_Enable_dispatch> <== NOT EXECUTED 58d88: 60cc bras 58d56 <== NOT EXECUTED if ( !timer_server ) { _Thread_Enable_dispatch(); return RTEMS_INCORRECT_STATE; } #endif _Watchdog_Remove( &the_timer->Ticker ); 58d8a: 486a 0010 pea %a2@(16) <== NOT EXECUTED rtems_id id ) { Timer_Control *the_timer; Objects_Locations location; rtems_status_code status = RTEMS_SUCCESSFUL; 58d8e: 4282 clrl %d2 <== NOT EXECUTED case OBJECTS_LOCAL: if ( the_timer->the_class == TIMER_INTERVAL ) { _Watchdog_Remove( &the_timer->Ticker ); _Watchdog_Insert( &_Watchdog_Ticks_chain, &the_timer->Ticker ); } else if ( the_timer->the_class == TIMER_INTERVAL_ON_TASK ) { Timer_server_Control *timer_server = _Timer_server; 58d90: 2679 0007 d430 moveal 7d430 <_Timer_server>,%a3 <== NOT EXECUTED if ( !timer_server ) { _Thread_Enable_dispatch(); return RTEMS_INCORRECT_STATE; } #endif _Watchdog_Remove( &the_timer->Ticker ); 58d96: 4eb9 0005 d630 jsr 5d630 <_Watchdog_Remove> <== NOT EXECUTED (*timer_server->schedule_operation)( timer_server, the_timer ); 58d9c: 2f0a movel %a2,%sp@- <== NOT EXECUTED 58d9e: 2f0b movel %a3,%sp@- <== NOT EXECUTED 58da0: 206b 0004 moveal %a3@(4),%a0 <== NOT EXECUTED 58da4: 4e90 jsr %a0@ <== NOT EXECUTED 58da6: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED * TIMER_TIME_OF_DAY, or TIMER_TIME_OF_DAY_ON_TASK). We * can only reset active interval timers. */ status = RTEMS_NOT_DEFINED; } _Thread_Enable_dispatch(); 58daa: 4eb9 0005 c34a jsr 5c34a <_Thread_Enable_dispatch> <== NOT EXECUTED 58db0: 60a4 bras 58d56 <== NOT EXECUTED ... =============================================================================== 00058db4 : rtems_id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { 58db4: 4e56 ffe8 linkw %fp,#-24 <== NOT EXECUTED 58db8: 48d7 0c1c moveml %d2-%d4/%a2-%a3,%sp@ <== NOT EXECUTED 58dbc: 282e 0008 movel %fp@(8),%d4 <== NOT EXECUTED 58dc0: 262e 000c movel %fp@(12),%d3 <== NOT EXECUTED 58dc4: 242e 0010 movel %fp@(16),%d2 <== NOT EXECUTED Timer_Control *the_timer; Objects_Locations location; ISR_Level level; Timer_server_Control *timer_server = _Timer_server; 58dc8: 2479 0007 d430 moveal 7d430 <_Timer_server>,%a2 <== NOT EXECUTED if ( !timer_server ) 58dce: 4a8a tstl %a2 <== NOT EXECUTED 58dd0: 6700 009c beqw 58e6e <== NOT EXECUTED return RTEMS_INCORRECT_STATE; if ( !routine ) 58dd4: 4a82 tstl %d2 <== NOT EXECUTED 58dd6: 6700 00a2 beqw 58e7a <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( ticks == 0 ) 58dda: 4a83 tstl %d3 <== NOT EXECUTED 58ddc: 660c bnes 58dea <== NOT EXECUTED return RTEMS_INVALID_NUMBER; 58dde: 700a moveq #10,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 58de0: 4cee 0c1c ffe8 moveml %fp@(-24),%d2-%d4/%a2-%a3 <== NOT EXECUTED 58de6: 4e5e unlk %fp <== NOT EXECUTED 58de8: 4e75 rts <== NOT EXECUTED 58dea: 486e fffc pea %fp@(-4) <== NOT EXECUTED 58dee: 2f04 movel %d4,%sp@- <== NOT EXECUTED 58df0: 4879 0007 d3f8 pea 7d3f8 <_Timer_Information> <== NOT EXECUTED 58df6: 4eb9 0005 b7bc jsr 5b7bc <_Objects_Get> <== NOT EXECUTED if ( ticks == 0 ) return RTEMS_INVALID_NUMBER; the_timer = _Timer_Get( id, &location ); switch ( location ) { 58dfc: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 58e00: 2640 moveal %d0,%a3 <== NOT EXECUTED 58e02: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 58e06: 665a bnes 58e62 <== NOT EXECUTED case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); 58e08: 486b 0010 pea %a3@(16) <== NOT EXECUTED 58e0c: 4eb9 0005 d630 jsr 5d630 <_Watchdog_Remove> <== NOT EXECUTED _ISR_Disable( level ); 58e12: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED 58e18: 40c1 movew %sr,%d1 <== NOT EXECUTED 58e1a: 8081 orl %d1,%d0 <== NOT EXECUTED 58e1c: 46c0 movew %d0,%sr <== NOT EXECUTED /* * Check to see if the watchdog has just been inserted by a * higher priority interrupt. If so, abandon this insert. */ if ( the_timer->Ticker.state != WATCHDOG_INACTIVE ) { 58e1e: 588f addql #4,%sp <== NOT EXECUTED 58e20: 4aab 0018 tstl %a3@(24) <== NOT EXECUTED 58e24: 6660 bnes 58e86 <== NOT EXECUTED /* * OK. Now we now the timer was not rescheduled by an interrupt * so we can atomically initialize it as in use. */ the_timer->the_class = TIMER_INTERVAL_ON_TASK; 58e26: 7001 moveq #1,%d0 <== NOT EXECUTED ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data; 58e28: 276e 0014 0034 movel %fp@(20),%a3@(52) <== NOT EXECUTED 58e2e: 2740 0038 movel %d0,%a3@(56) <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 58e32: 42ab 0018 clrl %a3@(24) <== NOT EXECUTED the_watchdog->routine = routine; 58e36: 2742 002c movel %d2,%a3@(44) <== NOT EXECUTED the_watchdog->id = id; 58e3a: 2744 0030 movel %d4,%a3@(48) <== NOT EXECUTED _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); the_timer->Ticker.initial = ticks; 58e3e: 2743 001c movel %d3,%a3@(28) <== NOT EXECUTED _ISR_Enable( level ); 58e42: 46c1 movew %d1,%sr <== NOT EXECUTED (*timer_server->schedule_operation)( timer_server, the_timer ); 58e44: 2f0b movel %a3,%sp@- <== NOT EXECUTED 58e46: 2f0a movel %a2,%sp@- <== NOT EXECUTED 58e48: 206a 0004 moveal %a2@(4),%a0 <== NOT EXECUTED 58e4c: 4e90 jsr %a0@ <== NOT EXECUTED _Thread_Enable_dispatch(); 58e4e: 4eb9 0005 c34a jsr 5c34a <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; 58e54: 508f addql #8,%sp <== NOT EXECUTED 58e56: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 58e58: 4cee 0c1c ffe8 moveml %fp@(-24),%d2-%d4/%a2-%a3 <== NOT EXECUTED 58e5e: 4e5e unlk %fp <== NOT EXECUTED 58e60: 4e75 rts <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 58e62: 7004 moveq #4,%d0 <== NOT EXECUTED } 58e64: 4cee 0c1c ffe8 moveml %fp@(-24),%d2-%d4/%a2-%a3 <== NOT EXECUTED 58e6a: 4e5e unlk %fp <== NOT EXECUTED 58e6c: 4e75 rts <== NOT EXECUTED Objects_Locations location; ISR_Level level; Timer_server_Control *timer_server = _Timer_server; if ( !timer_server ) return RTEMS_INCORRECT_STATE; 58e6e: 700e moveq #14,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 58e70: 4cee 0c1c ffe8 moveml %fp@(-24),%d2-%d4/%a2-%a3 <== NOT EXECUTED 58e76: 4e5e unlk %fp <== NOT EXECUTED 58e78: 4e75 rts <== NOT EXECUTED if ( !timer_server ) return RTEMS_INCORRECT_STATE; if ( !routine ) return RTEMS_INVALID_ADDRESS; 58e7a: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 58e7c: 4cee 0c1c ffe8 moveml %fp@(-24),%d2-%d4/%a2-%a3 <== NOT EXECUTED 58e82: 4e5e unlk %fp <== NOT EXECUTED 58e84: 4e75 rts <== NOT EXECUTED * Check to see if the watchdog has just been inserted by a * higher priority interrupt. If so, abandon this insert. */ if ( the_timer->Ticker.state != WATCHDOG_INACTIVE ) { _ISR_Enable( level ); 58e86: 46c1 movew %d1,%sr <== NOT EXECUTED _Thread_Enable_dispatch(); 58e88: 4eb9 0005 c34a jsr 5c34a <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; 58e8e: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 58e90: 4cee 0c1c ffe8 moveml %fp@(-24),%d2-%d4/%a2-%a3 <== NOT EXECUTED 58e96: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 00058e9c : rtems_id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) { 58e9c: 4e56 ffec linkw %fp,#-20 <== NOT EXECUTED 58ea0: 48d7 0c0c moveml %d2-%d3/%a2-%a3,%sp@ <== NOT EXECUTED 58ea4: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED 58ea8: 262e 0010 movel %fp@(16),%d3 <== NOT EXECUTED Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; Timer_server_Control *timer_server = _Timer_server; 58eac: 2479 0007 d430 moveal 7d430 <_Timer_server>,%a2 <== NOT EXECUTED if ( !timer_server ) 58eb2: 4a8a tstl %a2 <== NOT EXECUTED 58eb4: 6700 00c8 beqw 58f7e <== NOT EXECUTED return RTEMS_INCORRECT_STATE; if ( !_TOD_Is_set ) 58eb8: 4a39 0007 d1d4 tstb 7d1d4 <_TOD_Is_set> <== NOT EXECUTED 58ebe: 6700 00a6 beqw 58f66 <== NOT EXECUTED return RTEMS_NOT_DEFINED; if ( !routine ) 58ec2: 4a83 tstl %d3 <== NOT EXECUTED 58ec4: 6700 00ac beqw 58f72 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !_TOD_Validate( wall_time ) ) 58ec8: 2f02 movel %d2,%sp@- <== NOT EXECUTED 58eca: 4eb9 0005 5bd0 jsr 55bd0 <_TOD_Validate> <== NOT EXECUTED 58ed0: 588f addql #4,%sp <== NOT EXECUTED 58ed2: 4a00 tstb %d0 <== NOT EXECUTED 58ed4: 660c bnes 58ee2 <== NOT EXECUTED return RTEMS_INVALID_CLOCK; seconds = _TOD_To_seconds( wall_time ); if ( seconds <= _TOD_Seconds_since_epoch() ) return RTEMS_INVALID_CLOCK; 58ed6: 7014 moveq #20,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 58ed8: 4cee 0c0c ffec moveml %fp@(-20),%d2-%d3/%a2-%a3 <== NOT EXECUTED 58ede: 4e5e unlk %fp <== NOT EXECUTED 58ee0: 4e75 rts <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !_TOD_Validate( wall_time ) ) return RTEMS_INVALID_CLOCK; seconds = _TOD_To_seconds( wall_time ); 58ee2: 2f02 movel %d2,%sp@- <== NOT EXECUTED 58ee4: 4eb9 0005 5ac8 jsr 55ac8 <_TOD_To_seconds> <== NOT EXECUTED if ( seconds <= _TOD_Seconds_since_epoch() ) 58eea: 588f addql #4,%sp <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !_TOD_Validate( wall_time ) ) return RTEMS_INVALID_CLOCK; seconds = _TOD_To_seconds( wall_time ); 58eec: 2400 movel %d0,%d2 <== NOT EXECUTED if ( seconds <= _TOD_Seconds_since_epoch() ) 58eee: b0b9 0007 d26e cmpl 7d26e <_TOD_Now>,%d0 <== NOT EXECUTED 58ef4: 63e0 blss 58ed6 <== NOT EXECUTED 58ef6: 486e fffc pea %fp@(-4) <== NOT EXECUTED 58efa: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 58efe: 4879 0007 d3f8 pea 7d3f8 <_Timer_Information> <== NOT EXECUTED 58f04: 4eb9 0005 b7bc jsr 5b7bc <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_CLOCK; the_timer = _Timer_Get( id, &location ); switch ( location ) { 58f0a: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 58f0e: 2640 moveal %d0,%a3 <== NOT EXECUTED 58f10: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 58f14: 6674 bnes 58f8a <== NOT EXECUTED case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); 58f16: 486b 0010 pea %a3@(16) <== NOT EXECUTED 58f1a: 4eb9 0005 d630 jsr 5d630 <_Watchdog_Remove> <== NOT EXECUTED the_watchdog->user_data = user_data; 58f20: 276e 0014 0034 movel %fp@(20),%a3@(52) <== NOT EXECUTED the_timer->the_class = TIMER_TIME_OF_DAY_ON_TASK; 58f26: 7003 moveq #3,%d0 <== NOT EXECUTED _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); the_timer->Ticker.initial = seconds - _TOD_Seconds_since_epoch(); 58f28: 94b9 0007 d26e subl 7d26e <_TOD_Now>,%d2 <== NOT EXECUTED the_timer = _Timer_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); the_timer->the_class = TIMER_TIME_OF_DAY_ON_TASK; 58f2e: 2740 0038 movel %d0,%a3@(56) <== NOT EXECUTED void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; the_watchdog->id = id; 58f32: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); the_timer->Ticker.initial = seconds - _TOD_Seconds_since_epoch(); 58f36: 2742 001c movel %d2,%a3@(28) <== NOT EXECUTED 58f3a: 2740 0030 movel %d0,%a3@(48) <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 58f3e: 42ab 0018 clrl %a3@(24) <== NOT EXECUTED the_watchdog->routine = routine; 58f42: 2743 002c movel %d3,%a3@(44) <== NOT EXECUTED (*timer_server->schedule_operation)( timer_server, the_timer ); 58f46: 2f0b movel %a3,%sp@- <== NOT EXECUTED 58f48: 2f0a movel %a2,%sp@- <== NOT EXECUTED 58f4a: 206a 0004 moveal %a2@(4),%a0 <== NOT EXECUTED 58f4e: 4e90 jsr %a0@ <== NOT EXECUTED _Thread_Enable_dispatch(); 58f50: 4eb9 0005 c34a jsr 5c34a <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; 58f56: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 58f5a: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 58f5c: 4cee 0c0c ffec moveml %fp@(-20),%d2-%d3/%a2-%a3 <== NOT EXECUTED 58f62: 4e5e unlk %fp <== NOT EXECUTED 58f64: 4e75 rts <== NOT EXECUTED if ( !timer_server ) return RTEMS_INCORRECT_STATE; if ( !_TOD_Is_set ) return RTEMS_NOT_DEFINED; 58f66: 700b moveq #11,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 58f68: 4cee 0c0c ffec moveml %fp@(-20),%d2-%d3/%a2-%a3 <== NOT EXECUTED 58f6e: 4e5e unlk %fp <== NOT EXECUTED 58f70: 4e75 rts <== NOT EXECUTED if ( !_TOD_Is_set ) return RTEMS_NOT_DEFINED; if ( !routine ) return RTEMS_INVALID_ADDRESS; 58f72: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 58f74: 4cee 0c0c ffec moveml %fp@(-20),%d2-%d3/%a2-%a3 <== NOT EXECUTED 58f7a: 4e5e unlk %fp <== NOT EXECUTED 58f7c: 4e75 rts <== NOT EXECUTED Objects_Locations location; rtems_interval seconds; Timer_server_Control *timer_server = _Timer_server; if ( !timer_server ) return RTEMS_INCORRECT_STATE; 58f7e: 700e moveq #14,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 58f80: 4cee 0c0c ffec moveml %fp@(-20),%d2-%d3/%a2-%a3 <== NOT EXECUTED 58f86: 4e5e unlk %fp <== NOT EXECUTED 58f88: 4e75 rts <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 58f8a: 7004 moveq #4,%d0 <== NOT EXECUTED } 58f8c: 4cee 0c0c ffec moveml %fp@(-20),%d2-%d3/%a2-%a3 <== NOT EXECUTED 58f92: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 000470d0 : */ bool rtems_workspace_allocate( uintptr_t bytes, void **pointer ) { 470d0: 4e56 0000 linkw %fp,#0 470d4: 202e 0008 movel %fp@(8),%d0 470d8: 2f0a movel %a2,%sp@- 470da: 246e 000c moveal %fp@(12),%a2 void *ptr; /* * check the arguments */ if ( !pointer ) 470de: 4a8a tstl %a2 470e0: 6704 beqs 470e6 <== NEVER TAKEN return false; if ( !bytes ) 470e2: 4a80 tstl %d0 470e4: 660a bnes 470f0 <== ALWAYS TAKEN if (!ptr) return false; *pointer = ptr; return true; } 470e6: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 470ea: 4e5e unlk %fp <== NOT EXECUTED /* * Allocate the memory */ ptr = _Protected_heap_Allocate( &_Workspace_Area, (intptr_t) bytes ); if (!ptr) return false; 470ec: 4200 clrb %d0 <== NOT EXECUTED *pointer = ptr; return true; } 470ee: 4e75 rts <== NOT EXECUTED RTEMS_INLINE_ROUTINE void *_Protected_heap_Allocate( Heap_Control *heap, uintptr_t size ) { return _Protected_heap_Allocate_aligned_with_boundary( heap, size, 0, 0 ); 470f0: 42a7 clrl %sp@- 470f2: 42a7 clrl %sp@- 470f4: 2f00 movel %d0,%sp@- 470f6: 4879 0005 ef76 pea 5ef76 <_Workspace_Area> 470fc: 4eb9 0004 8778 jsr 48778 <_Protected_heap_Allocate_aligned_with_boundary> /* * Allocate the memory */ ptr = _Protected_heap_Allocate( &_Workspace_Area, (intptr_t) bytes ); if (!ptr) 47102: 4fef 0010 lea %sp@(16),%sp 47106: 4a80 tstl %d0 47108: 67dc beqs 470e6 <== NEVER TAKEN return false; *pointer = ptr; 4710a: 2480 movel %d0,%a2@ return true; } 4710c: 246e fffc moveal %fp@(-4),%a2 47110: 4e5e unlk %fp ptr = _Protected_heap_Allocate( &_Workspace_Area, (intptr_t) bytes ); if (!ptr) return false; *pointer = ptr; return true; 47112: 7001 moveq #1,%d0 <== NOT EXECUTED } =============================================================================== 00047116 : * _Workspace_Allocate */ bool rtems_workspace_free( void *pointer ) { 47116: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return _Protected_heap_Free( &_Workspace_Area, pointer ); 4711a: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4711e: 4879 0005 ef76 pea 5ef76 <_Workspace_Area> <== NOT EXECUTED 47124: 4eb9 0004 87b8 jsr 487b8 <_Protected_heap_Free> <== NOT EXECUTED } 4712a: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 000470ac : #include /* for memset */ bool rtems_workspace_get_information( Heap_Information_block *the_info ) { 470ac: 4e56 0000 linkw %fp,#0 470b0: 202e 0008 movel %fp@(8),%d0 if ( !the_info ) 470b4: 6714 beqs 470ca <== NEVER TAKEN return false; return _Protected_heap_Get_information( &_Workspace_Area, the_info ); 470b6: 2f00 movel %d0,%sp@- 470b8: 4879 0005 ef76 pea 5ef76 <_Workspace_Area> 470be: 4eb9 0004 87f0 jsr 487f0 <_Protected_heap_Get_information> 470c4: 508f addql #8,%sp } 470c6: 4e5e unlk %fp 470c8: 4e75 rts 470ca: 4e5e unlk %fp bool rtems_workspace_get_information( Heap_Information_block *the_info ) { if ( !the_info ) return false; 470cc: 4200 clrb %d0 <== NOT EXECUTED return _Protected_heap_Get_information( &_Workspace_Area, the_info ); }