=============================================================================== 0004c854 : uint32_t TOD_MICROSECONDS_TO_TICKS( uint32_t microseconds ) { return (microseconds / rtems_configuration_get_microseconds_per_tick()); } 4c854: 41f9 0006 2600 lea 62600 ,%a0 <== NOT EXECUTED #include uint32_t TOD_MICROSECONDS_TO_TICKS( uint32_t microseconds ) { 4c85a: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return (microseconds / rtems_configuration_get_microseconds_per_tick()); } 4c85e: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED 4c862: 4e5e unlk %fp <== NOT EXECUTED 4c864: 4c50 0000 remul %a0@,%d0,%d0 <== NOT EXECUTED ... =============================================================================== 00047fa0 : #include uint32_t TOD_MILLISECONDS_TO_TICKS( uint32_t milliseconds ) { 47fa0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return (milliseconds / rtems_configuration_get_milliseconds_per_tick()); 47fa4: 2039 0005 e210 movel 5e210 ,%d0 <== NOT EXECUTED #include uint32_t TOD_MILLISECONDS_TO_TICKS( uint32_t milliseconds ) { 47faa: 2f02 movel %d2,%sp@- <== NOT EXECUTED return (milliseconds / rtems_configuration_get_milliseconds_per_tick()); 47fac: 243c 0000 03e8 movel #1000,%d2 <== NOT EXECUTED 47fb2: 4c42 0000 remul %d2,%d0,%d0 <== NOT EXECUTED } 47fb6: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED 47fba: 4c40 2002 remul %d0,%d2,%d2 <== NOT EXECUTED 47fbe: 2002 movel %d2,%d0 <== NOT EXECUTED 47fc0: 241f movel %sp@+,%d2 <== NOT EXECUTED 47fc2: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 0004c98c : uint32_t TOD_TICKS_PER_SECOND_method(void) { return (TOD_MICROSECONDS_PER_SECOND / rtems_configuration_get_microseconds_per_tick()); } 4c98c: 41f9 0005 ed80 lea 5ed80 ,%a0 <== NOT EXECUTED #include #include #include uint32_t TOD_TICKS_PER_SECOND_method(void) { 4c992: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return (TOD_MICROSECONDS_PER_SECOND / rtems_configuration_get_microseconds_per_tick()); } 4c996: 203c 000f 4240 movel #1000000,%d0 <== NOT EXECUTED 4c99c: 4e5e unlk %fp <== NOT EXECUTED 4c99e: 4c50 0000 remul %a0@,%d0,%d0 <== NOT EXECUTED =============================================================================== 00046e54 <_API_Mutex_Unlock>: #include void _API_Mutex_Unlock( API_Mutex_Control *the_mutex ) { 46e54: 4e56 0000 linkw %fp,#0 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 46e58: 2039 0005 e46c movel 5e46c <_Thread_Dispatch_disable_level>,%d0 46e5e: 5280 addql #1,%d0 46e60: 206e 0008 moveal %fp@(8),%a0 46e64: 23c0 0005 e46c movel %d0,5e46c <_Thread_Dispatch_disable_level> _Thread_Disable_dispatch(); _CORE_mutex_Surrender( 46e6a: 42a7 clrl %sp@- 46e6c: 2f28 0008 movel %a0@(8),%sp@- 46e70: 4868 0010 pea %a0@(16) 46e74: 4eb9 0004 715c jsr 4715c <_CORE_mutex_Surrender> &the_mutex->Mutex, the_mutex->Object.id, NULL ); _Thread_Enable_dispatch(); 46e7a: 4fef 000c lea %sp@(12),%sp } 46e7e: 4e5e unlk %fp _CORE_mutex_Surrender( &the_mutex->Mutex, the_mutex->Object.id, NULL ); _Thread_Enable_dispatch(); 46e80: 4ef9 0004 8666 jmp 48666 <_Thread_Enable_dispatch> ... =============================================================================== 00046d2e <_API_extensions_Run_postdriver>: * * _API_extensions_Run_postdriver */ void _API_extensions_Run_postdriver( void ) { 46d2e: 4e56 0000 linkw %fp,#0 46d32: 2f0a movel %a2,%sp@- Chain_Node *the_node; API_extensions_Control *the_extension; for ( the_node = _API_extensions_List.first ; 46d34: 2479 0005 e5ec moveal 5e5ec <_API_extensions_List>,%a2 46d3a: b5fc 0005 e5f0 cmpal #386544,%a2 46d40: 6710 beqs 46d52 <_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)(); 46d42: 206a 0008 moveal %a2@(8),%a0 46d46: 4e90 jsr %a0@ Chain_Node *the_node; API_extensions_Control *the_extension; for ( the_node = _API_extensions_List.first ; !_Chain_Is_tail( &_API_extensions_List, the_node ) ; the_node = the_node->next ) { 46d48: 2452 moveal %a2@,%a2 void _API_extensions_Run_postdriver( void ) { Chain_Node *the_node; API_extensions_Control *the_extension; for ( the_node = _API_extensions_List.first ; 46d4a: b5fc 0005 e5f0 cmpal #386544,%a2 46d50: 66f0 bnes 46d42 <_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)(); } } 46d52: 246e fffc moveal %fp@(-4),%a2 46d56: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00046d5a <_API_extensions_Run_postswitch>: * * _API_extensions_Run_postswitch */ void _API_extensions_Run_postswitch( void ) { 46d5a: 4e56 0000 linkw %fp,#0 46d5e: 2f0a movel %a2,%sp@- Chain_Node *the_node; API_extensions_Control *the_extension; for ( the_node = _API_extensions_List.first ; 46d60: 2479 0005 e5ec moveal 5e5ec <_API_extensions_List>,%a2 46d66: b5fc 0005 e5f0 cmpal #386544,%a2 46d6c: 6718 beqs 46d86 <_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 ); 46d6e: 2f39 0005 e630 movel 5e630 <_Per_CPU_Information+0xc>,%sp@- 46d74: 206a 000c moveal %a2@(12),%a0 46d78: 4e90 jsr %a0@ Chain_Node *the_node; API_extensions_Control *the_extension; for ( the_node = _API_extensions_List.first ; !_Chain_Is_tail( &_API_extensions_List, the_node ) ; the_node = the_node->next ) { 46d7a: 2452 moveal %a2@,%a2 void _API_extensions_Run_postswitch( void ) { Chain_Node *the_node; API_extensions_Control *the_extension; for ( the_node = _API_extensions_List.first ; 46d7c: 588f addql #4,%sp 46d7e: b5fc 0005 e5f0 cmpal #386544,%a2 46d84: 66e8 bnes 46d6e <_API_extensions_Run_postswitch+0x14><== NEVER TAKEN the_extension = (API_extensions_Control *) the_node; (*the_extension->postswitch_hook)( _Thread_Executing ); } } 46d86: 246e fffc moveal %fp@(-4),%a2 46d8a: 4e5e unlk %fp ... =============================================================================== 0004f524 <_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]; 4f524: 41f9 0005 f73c lea 5f73c <_Barrier_Translate_core_barrier_return_code_>,%a0<== NOT EXECUTED }; rtems_status_code _Barrier_Translate_core_barrier_return_code ( CORE_barrier_Status the_barrier_status ) { 4f52a: 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]; } 4f52e: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED 4f532: 4e5e unlk %fp <== NOT EXECUTED 4f534: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED ... =============================================================================== 0004ea94 <_CORE_barrier_Release>: #else Objects_Id id __attribute__((unused)), CORE_barrier_API_mp_support_callout api_barrier_mp_support __attribute__((unused)) #endif ) { 4ea94: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 4ea98: 48d7 0c04 moveml %d2/%a2-%a3,%sp@ <== NOT EXECUTED 4ea9c: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 4eaa0: 47f9 0004 abec lea 4abec <_Thread_queue_Dequeue>,%a3 <== NOT EXECUTED Thread_Control *the_thread; uint32_t count; count = 0; 4eaa6: 4282 clrl %d2 <== NOT EXECUTED while ( (the_thread = _Thread_queue_Dequeue(&the_barrier->Wait_queue)) ) { 4eaa8: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4eaaa: 4e93 jsr %a3@ <== NOT EXECUTED 4eaac: 588f addql #4,%sp <== NOT EXECUTED 4eaae: 4a80 tstl %d0 <== NOT EXECUTED 4eab0: 670c beqs 4eabe <_CORE_barrier_Release+0x2a> <== NOT EXECUTED 4eab2: 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++; 4eab4: 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)) ) { 4eab6: 4e93 jsr %a3@ <== NOT EXECUTED 4eab8: 588f addql #4,%sp <== NOT EXECUTED 4eaba: 4a80 tstl %d0 <== NOT EXECUTED 4eabc: 66f4 bnes 4eab2 <_CORE_barrier_Release+0x1e> <== NOT EXECUTED #endif count++; } the_barrier->number_of_waiting_threads = 0; return count; } 4eabe: 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; 4eac0: 42aa 0048 clrl %a2@(72) <== NOT EXECUTED return count; } 4eac4: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3 <== NOT EXECUTED 4eaca: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 0004ead0 <_CORE_barrier_Wait>: Thread_Control *executing; ISR_Level level; executing = _Thread_Executing; executing->Wait.return_code = CORE_BARRIER_STATUS_SUCCESSFUL; _ISR_Disable( level ); 4ead0: 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 ) { 4ead6: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED Thread_Control *executing; ISR_Level level; executing = _Thread_Executing; 4eada: 2279 0006 0f54 moveal 60f54 <_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 ) { 4eae0: 48d7 001c moveml %d2-%d4,%sp@ <== NOT EXECUTED 4eae4: 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; 4eae8: 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 ) { 4eaec: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED 4eaf0: 262e 0014 movel %fp@(20),%d3 <== NOT EXECUTED 4eaf4: 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 ); 4eaf8: 40c1 movew %sr,%d1 <== NOT EXECUTED 4eafa: 8081 orl %d1,%d0 <== NOT EXECUTED 4eafc: 46c0 movew %d0,%sr <== NOT EXECUTED the_barrier->number_of_waiting_threads++; 4eafe: 2028 0048 movel %a0@(72),%d0 <== NOT EXECUTED 4eb02: 5280 addql #1,%d0 <== NOT EXECUTED 4eb04: 2140 0048 movel %d0,%a0@(72) <== NOT EXECUTED if ( _CORE_barrier_Is_automatic( &the_barrier->Attributes ) ) { 4eb08: 4aa8 0040 tstl %a0@(64) <== NOT EXECUTED 4eb0c: 6606 bnes 4eb14 <_CORE_barrier_Wait+0x44> <== NOT EXECUTED if ( the_barrier->number_of_waiting_threads == 4eb0e: b0a8 0044 cmpl %a0@(68),%d0 <== NOT EXECUTED 4eb12: 672e beqs 4eb42 <_CORE_barrier_Wait+0x72> <== NOT EXECUTED 4eb14: 7001 moveq #1,%d0 <== NOT EXECUTED 4eb16: 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; 4eb1a: 2348 0044 movel %a0,%a1@(68) <== NOT EXECUTED executing->Wait.id = id; 4eb1e: 2342 0020 movel %d2,%a1@(32) <== NOT EXECUTED _ISR_Enable( level ); 4eb22: 46c1 movew %d1,%sr <== NOT EXECUTED _Thread_queue_Enqueue( &the_barrier->Wait_queue, timeout ); 4eb24: 2d43 000c movel %d3,%fp@(12) <== NOT EXECUTED 4eb28: 203c 0004 b124 movel #307492,%d0 <== NOT EXECUTED 4eb2e: 2d48 0008 movel %a0,%fp@(8) <== NOT EXECUTED } 4eb32: 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 ); 4eb36: 2d40 0010 movel %d0,%fp@(16) <== NOT EXECUTED } 4eb3a: 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 ); 4eb3c: 4ef9 0004 ad5c jmp 4ad5c <_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; 4eb42: 7001 moveq #1,%d0 <== NOT EXECUTED 4eb44: 2340 0034 movel %d0,%a1@(52) <== NOT EXECUTED _ISR_Enable( level ); 4eb48: 46c1 movew %d1,%sr <== NOT EXECUTED _CORE_barrier_Release( the_barrier, id, api_barrier_mp_support ); 4eb4a: 2d44 0010 movel %d4,%fp@(16) <== NOT EXECUTED 4eb4e: 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 ); } 4eb52: 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 ); 4eb56: 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 ); } 4eb5a: 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 ); 4eb5c: 4ef9 0004 ea94 jmp 4ea94 <_CORE_barrier_Release> <== NOT EXECUTED ... =============================================================================== 00059cf8 <_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 ) { 59cf8: 4e56 ffe0 linkw %fp,#-32 <== NOT EXECUTED 59cfc: 48d7 3c3c moveml %d2-%d5/%a2-%a5,%sp@ <== NOT EXECUTED 59d00: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED 59d04: 282e 000c movel %fp@(12),%d4 <== NOT EXECUTED 59d08: 242e 0010 movel %fp@(16),%d2 <== NOT EXECUTED 59d0c: 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 ) { 59d10: b4ab 004c cmpl %a3@(76),%d2 <== NOT EXECUTED 59d14: 6262 bhis 59d78 <_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 ) { 59d16: 4aab 0048 tstl %a3@(72) <== NOT EXECUTED 59d1a: 664c bnes 59d68 <_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 = 59d1c: 2f0b movel %a3,%sp@- <== NOT EXECUTED 59d1e: 49f9 0005 c488 lea 5c488 <_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 ) { 59d24: 4283 clrl %d3 <== NOT EXECUTED const void *source, void *destination, size_t size ) { memcpy(destination, source, size); 59d26: 4bf9 0006 1990 lea 61990 ,%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 = 59d2c: 4e94 jsr %a4@ <== NOT EXECUTED 59d2e: 588f addql #4,%sp <== NOT EXECUTED 59d30: 2440 moveal %d0,%a2 <== NOT EXECUTED 59d32: 4a80 tstl %d0 <== NOT EXECUTED 59d34: 6722 beqs 59d58 <_CORE_message_queue_Broadcast+0x60><== NOT EXECUTED 59d36: 2f02 movel %d2,%sp@- <== NOT EXECUTED _Thread_queue_Dequeue(&the_message_queue->Wait_queue))) { waitp = &the_thread->Wait; number_broadcasted += 1; 59d38: 5283 addql #1,%d3 <== NOT EXECUTED 59d3a: 2f04 movel %d4,%sp@- <== NOT EXECUTED 59d3c: 2f2a 002c movel %a2@(44),%sp@- <== NOT EXECUTED 59d40: 4e95 jsr %a5@ <== NOT EXECUTED buffer, waitp->return_argument_second.mutable_object, size ); *(size_t *) the_thread->Wait.return_argument = size; 59d42: 206a 0028 moveal %a2@(40),%a0 <== NOT EXECUTED 59d46: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 59d4a: 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 = 59d4c: 2f0b movel %a3,%sp@- <== NOT EXECUTED 59d4e: 4e94 jsr %a4@ <== NOT EXECUTED 59d50: 588f addql #4,%sp <== NOT EXECUTED 59d52: 2440 moveal %d0,%a2 <== NOT EXECUTED 59d54: 4a80 tstl %d0 <== NOT EXECUTED 59d56: 66de bnes 59d36 <_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; 59d58: 2045 moveal %d5,%a0 <== NOT EXECUTED return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; 59d5a: 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; 59d5c: 2083 movel %d3,%a0@ <== NOT EXECUTED return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; } 59d5e: 4cee 3c3c ffe0 moveml %fp@(-32),%d2-%d5/%a2-%a5 <== NOT EXECUTED 59d64: 4e5e unlk %fp <== NOT EXECUTED 59d66: 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; 59d68: 2045 moveal %d5,%a0 <== NOT EXECUTED return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; 59d6a: 4280 clrl %d0 <== NOT EXECUTED #endif } *count = number_broadcasted; return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; } 59d6c: 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; 59d72: 4290 clrl %a0@ <== NOT EXECUTED #endif } *count = number_broadcasted; return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; } 59d74: 4e5e unlk %fp <== NOT EXECUTED 59d76: 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; 59d78: 7001 moveq #1,%d0 <== NOT EXECUTED #endif } *count = number_broadcasted; return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; } 59d7a: 4cee 3c3c ffe0 moveml %fp@(-32),%d2-%d5/%a2-%a5 <== NOT EXECUTED 59d80: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00059d84 <_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 ) { 59d84: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 59d88: 2f0a movel %a2,%sp@- <== NOT EXECUTED /* * This will flush blocked threads whether they were blocked on * a send or receive. */ _Thread_queue_Flush( 59d8a: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 59d8e: 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 ) { 59d92: 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( 59d96: 2f0a movel %a2,%sp@- <== NOT EXECUTED 59d98: 4eb9 0005 c878 jsr 5c878 <_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 ) 59d9e: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 59da2: 4aaa 0048 tstl %a2@(72) <== NOT EXECUTED 59da6: 6612 bnes 59dba <_CORE_message_queue_Close+0x36> <== NOT EXECUTED (void) _CORE_message_queue_Flush_support( the_message_queue ); (void) _Workspace_Free( the_message_queue->message_buffers ); 59da8: 2d6a 005c 0008 movel %a2@(92),%fp@(8) <== NOT EXECUTED } 59dae: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 59db2: 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 ); 59db4: 4ef9 0005 d862 jmp 5d862 <_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 ); 59dba: 2f0a movel %a2,%sp@- <== NOT EXECUTED 59dbc: 4eb9 0005 9df4 jsr 59df4 <_CORE_message_queue_Flush_support><== NOT EXECUTED (void) _Workspace_Free( the_message_queue->message_buffers ); 59dc2: 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 ); 59dc8: 588f addql #4,%sp <== NOT EXECUTED (void) _Workspace_Free( the_message_queue->message_buffers ); } 59dca: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 59dce: 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 ); 59dd0: 4ef9 0005 d862 jmp 5d862 <_Workspace_Free> <== NOT EXECUTED ... =============================================================================== 00059dd8 <_CORE_message_queue_Flush>: */ uint32_t _CORE_message_queue_Flush( CORE_message_queue_Control *the_message_queue ) { 59dd8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 59ddc: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED if ( the_message_queue->number_of_pending_messages != 0 ) 59de0: 4aa8 0048 tstl %a0@(72) <== NOT EXECUTED 59de4: 6606 bnes 59dec <_CORE_message_queue_Flush+0x14> <== NOT EXECUTED return _CORE_message_queue_Flush_support( the_message_queue ); else return 0; } 59de6: 4280 clrl %d0 <== NOT EXECUTED 59de8: 4e5e unlk %fp <== NOT EXECUTED 59dea: 4e75 rts <== NOT EXECUTED 59dec: 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 ); 59dee: 4ef9 0005 9df4 jmp 59df4 <_CORE_message_queue_Flush_support><== NOT EXECUTED =============================================================================== 00059df4 <_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 ); 59df4: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED */ uint32_t _CORE_message_queue_Flush_support( CORE_message_queue_Control *the_message_queue ) { 59dfa: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 59dfe: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 59e02: 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 ); 59e06: 40c1 movew %sr,%d1 <== NOT EXECUTED 59e08: 8081 orl %d1,%d0 <== NOT EXECUTED 59e0a: 46c0 movew %d0,%sr <== NOT EXECUTED inactive_first = the_message_queue->Inactive_messages.first; message_queue_first = the_message_queue->Pending_messages.first; 59e0c: 2668 0050 moveal %a0@(80),%a3 <== NOT EXECUTED the_message_queue->Inactive_messages.first = message_queue_first; message_queue_last->next = inactive_first; inactive_first->previous = message_queue_last; message_queue_first->previous = _Chain_Head( &the_message_queue->Inactive_messages ); 59e10: 49e8 0060 lea %a0@(96),%a4 <== 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_first = the_message_queue->Inactive_messages.first; 59e14: 2468 0060 moveal %a0@(96),%a2 <== NOT EXECUTED message_queue_first = the_message_queue->Pending_messages.first; message_queue_last = the_message_queue->Pending_messages.last; 59e18: 2268 0058 moveal %a0@(88),%a1 <== NOT EXECUTED message_queue_first->previous = _Chain_Head( &the_message_queue->Inactive_messages ); _Chain_Initialize_empty( &the_message_queue->Pending_messages ); count = the_message_queue->number_of_pending_messages; 59e1c: 2028 0048 movel %a0@(72),%d0 <== NOT EXECUTED _ISR_Disable( level ); inactive_first = the_message_queue->Inactive_messages.first; message_queue_first = the_message_queue->Pending_messages.first; message_queue_last = the_message_queue->Pending_messages.last; the_message_queue->Inactive_messages.first = message_queue_first; 59e20: 214b 0060 movel %a3,%a0@(96) <== NOT EXECUTED message_queue_last->next = inactive_first; inactive_first->previous = message_queue_last; 59e24: 2549 0004 movel %a1,%a2@(4) <== NOT EXECUTED inactive_first = the_message_queue->Inactive_messages.first; message_queue_first = the_message_queue->Pending_messages.first; message_queue_last = the_message_queue->Pending_messages.last; the_message_queue->Inactive_messages.first = message_queue_first; message_queue_last->next = inactive_first; 59e28: 228a movel %a2,%a1@ <== NOT EXECUTED 59e2a: 43e8 0054 lea %a0@(84),%a1 <== NOT EXECUTED inactive_first->previous = message_queue_last; message_queue_first->previous = _Chain_Head( &the_message_queue->Inactive_messages ); 59e2e: 274c 0004 movel %a4,%a3@(4) <== NOT EXECUTED _Chain_Initialize_empty( &the_message_queue->Pending_messages ); 59e32: 49e8 0050 lea %a0@(80),%a4 <== NOT EXECUTED 59e36: 2149 0050 movel %a1,%a0@(80) <== NOT EXECUTED 59e3a: 214c 0058 movel %a4,%a0@(88) <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 59e3e: 42a8 0054 clrl %a0@(84) <== NOT EXECUTED count = the_message_queue->number_of_pending_messages; the_message_queue->number_of_pending_messages = 0; 59e42: 42a8 0048 clrl %a0@(72) <== NOT EXECUTED _ISR_Enable( level ); 59e46: 46c1 movew %d1,%sr <== NOT EXECUTED return count; } 59e48: 4cd7 1c00 moveml %sp@,%a2-%a4 <== NOT EXECUTED 59e4c: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00050114 <_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)) { 50114: 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 ) { 50116: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 5011a: 202e 0014 movel %fp@(20),%d0 <== NOT EXECUTED 5011e: 48d7 040c moveml %d2-%d3/%a2,%sp@ <== NOT EXECUTED 50122: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 50126: 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)) { 5012a: 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; 5012c: 2542 0044 movel %d2,%a2@(68) <== NOT EXECUTED the_message_queue->number_of_pending_messages = 0; 50130: 42aa 0048 clrl %a2@(72) <== NOT EXECUTED the_message_queue->maximum_message_size = maximum_message_size; 50134: 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)) { 50138: 4a81 tstl %d1 <== NOT EXECUTED 5013a: 6718 beqs 50154 <_CORE_message_queue_Initialize+0x40><== NOT EXECUTED allocated_message_size += sizeof(uint32_t); 5013c: 2200 movel %d0,%d1 <== NOT EXECUTED 5013e: 5881 addql #4,%d1 <== NOT EXECUTED allocated_message_size &= ~(sizeof(uint32_t) - 1); 50140: 76fc moveq #-4,%d3 <== NOT EXECUTED 50142: c283 andl %d3,%d1 <== NOT EXECUTED } if (allocated_message_size < maximum_message_size) 50144: b280 cmpl %d0,%d1 <== NOT EXECUTED 50146: 640e bccs 50156 <_CORE_message_queue_Initialize+0x42><== NOT EXECUTED STATES_WAITING_FOR_MESSAGE, CORE_MESSAGE_QUEUE_STATUS_TIMEOUT ); return true; } 50148: 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; 5014e: 4200 clrb %d0 <== NOT EXECUTED STATES_WAITING_FOR_MESSAGE, CORE_MESSAGE_QUEUE_STATUS_TIMEOUT ); return true; } 50150: 4e5e unlk %fp <== NOT EXECUTED 50152: 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)) { 50154: 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)); 50156: 2601 movel %d1,%d3 <== NOT EXECUTED 50158: 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 * 5015e: 2003 movel %d3,%d0 <== NOT EXECUTED 50160: 4c02 0800 mulsl %d2,%d0 <== NOT EXECUTED (allocated_message_size + sizeof(CORE_message_queue_Buffer_control)); if (message_buffering_required < allocated_message_size) 50164: b280 cmpl %d0,%d1 <== NOT EXECUTED 50166: 62e0 bhis 50148 <_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 ); 50168: 2f00 movel %d0,%sp@- <== NOT EXECUTED 5016a: 4eb9 0005 2f56 jsr 52f56 <_Workspace_Allocate> <== NOT EXECUTED if (the_message_queue->message_buffers == 0) 50170: 588f addql #4,%sp <== NOT EXECUTED return false; /* * Attempt to allocate the message memory */ the_message_queue->message_buffers = (CORE_message_queue_Buffer *) 50172: 2540 005c movel %d0,%a2@(92) <== NOT EXECUTED _Workspace_Allocate( message_buffering_required ); if (the_message_queue->message_buffers == 0) 50176: 67d0 beqs 50148 <_CORE_message_queue_Initialize+0x34><== NOT EXECUTED /* * Initialize the pool of inactive messages, pending messages, * and set of waiting threads. */ _Chain_Initialize ( 50178: 2f03 movel %d3,%sp@- <== NOT EXECUTED 5017a: 2f02 movel %d2,%sp@- <== NOT EXECUTED 5017c: 2f00 movel %d0,%sp@- <== NOT EXECUTED 5017e: 486a 0060 pea %a2@(96) <== NOT EXECUTED 50182: 4eb9 0005 4dd0 jsr 54dd0 <_Chain_Initialize> <== NOT EXECUTED allocated_message_size + sizeof( CORE_message_queue_Buffer_control ) ); _Chain_Initialize_empty( &the_message_queue->Pending_messages ); _Thread_queue_Initialize( 50188: 4878 0006 pea 6 <== NOT EXECUTED 5018c: 7001 moveq #1,%d0 <== NOT EXECUTED 5018e: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED 50192: b090 cmpl %a0@,%d0 <== NOT EXECUTED 50194: 57c0 seq %d0 <== NOT EXECUTED 50196: 4878 0080 pea 80 <== NOT EXECUTED 5019a: 49c0 extbl %d0 <== NOT EXECUTED 5019c: 4480 negl %d0 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 5019e: 41ea 0054 lea %a2@(84),%a0 <== NOT EXECUTED 501a2: 2f00 movel %d0,%sp@- <== NOT EXECUTED 501a4: 2548 0050 movel %a0,%a2@(80) <== NOT EXECUTED the_message_queue->message_buffers, (size_t) maximum_pending_messages, allocated_message_size + sizeof( CORE_message_queue_Buffer_control ) ); _Chain_Initialize_empty( &the_message_queue->Pending_messages ); 501a8: 41ea 0050 lea %a2@(80),%a0 <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 501ac: 42aa 0054 clrl %a2@(84) <== NOT EXECUTED 501b0: 2548 0058 movel %a0,%a2@(88) <== NOT EXECUTED _Thread_queue_Initialize( 501b4: 2f0a movel %a2,%sp@- <== NOT EXECUTED 501b6: 4eb9 0005 22cc jsr 522cc <_Thread_queue_Initialize> <== NOT EXECUTED THREAD_QUEUE_DISCIPLINE_PRIORITY : THREAD_QUEUE_DISCIPLINE_FIFO, STATES_WAITING_FOR_MESSAGE, CORE_MESSAGE_QUEUE_STATUS_TIMEOUT ); return true; 501bc: 4fef 0020 lea %sp@(32),%sp <== NOT EXECUTED } 501c0: 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; 501c6: 7001 moveq #1,%d0 <== NOT EXECUTED } 501c8: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00054e34 <_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 ); 54e34: 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 ) { 54e3a: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 54e3e: 226e 0008 moveal %fp@(8),%a1 <== NOT EXECUTED 54e42: 2f0b movel %a3,%sp@- <== NOT EXECUTED 54e44: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED 54e48: 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 ); 54e4a: 40c1 movew %sr,%d1 <== NOT EXECUTED 54e4c: 8081 orl %d1,%d0 <== NOT EXECUTED 54e4e: 46c0 movew %d0,%sr <== NOT EXECUTED SET_NOTIFY(); the_message_queue->number_of_pending_messages++; 54e50: 52a9 0048 addql #1,%a1@(72) <== NOT EXECUTED if ( submit_type == CORE_MESSAGE_QUEUE_SEND_REQUEST ) 54e54: 203c 7fff ffff movel #2147483647,%d0 <== NOT EXECUTED 54e5a: b0ae 0010 cmpl %fp@(16),%d0 <== NOT EXECUTED 54e5e: 671c beqs 54e7c <_CORE_message_queue_Insert_message+0x48><== NOT EXECUTED RTEMS_INLINE_ROUTINE void _CORE_message_queue_Prepend_unprotected ( CORE_message_queue_Control *the_message_queue, CORE_message_queue_Buffer_control *the_message ) { _Chain_Prepend_unprotected( 54e60: 43e9 0050 lea %a1@(80),%a1 <== NOT EXECUTED ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; 54e64: 2451 moveal %a1@,%a2 <== NOT EXECUTED Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; 54e66: 2149 0004 movel %a1,%a0@(4) <== NOT EXECUTED before_node = after_node->next; after_node->next = the_node; 54e6a: 2288 movel %a0,%a1@ <== NOT EXECUTED the_node->next = before_node; before_node->previous = the_node; 54e6c: 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; 54e70: 208a movel %a2,%a0@ <== 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 ); 54e72: 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 } 54e74: 245f moveal %sp@+,%a2 <== NOT EXECUTED 54e76: 265f moveal %sp@+,%a3 <== NOT EXECUTED 54e78: 4e5e unlk %fp <== NOT EXECUTED 54e7a: 4e75 rts <== NOT EXECUTED ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); old_last_node = the_chain->last; 54e7c: 2469 0058 moveal %a1@(88),%a2 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 54e80: 47e9 0054 lea %a1@(84),%a3 <== NOT EXECUTED 54e84: 208b movel %a3,%a0@ <== NOT EXECUTED { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); old_last_node = the_chain->last; the_chain->last = the_node; 54e86: 2348 0058 movel %a0,%a1@(88) <== NOT EXECUTED old_last_node->next = the_node; 54e8a: 2488 movel %a0,%a2@ <== NOT EXECUTED the_node->previous = old_last_node; 54e8c: 214a 0004 movel %a2,%a0@(4) <== 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 ); 54e90: 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 } 54e92: 245f moveal %sp@+,%a2 <== NOT EXECUTED 54e94: 265f moveal %sp@+,%a3 <== NOT EXECUTED 54e96: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 000501cc <_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 ); 501cc: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) { 501d2: 4e56 ffe4 linkw %fp,#-28 <== NOT EXECUTED ISR_Level level; CORE_message_queue_Buffer_control *the_message; Thread_Control *executing; executing = _Thread_Executing; 501d6: 2079 0006 84c8 moveal 684c8 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) { 501dc: 48d7 1c3c moveml %d2-%d5/%a2-%a4,%sp@ <== NOT EXECUTED 501e0: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 501e4: 2a2e 000c movel %fp@(12),%d5 <== NOT EXECUTED 501e8: 242e 0010 movel %fp@(16),%d2 <== NOT EXECUTED 501ec: 226e 0014 moveal %fp@(20),%a1 <== NOT EXECUTED 501f0: 282e 001c movel %fp@(28),%d4 <== NOT EXECUTED 501f4: 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; 501f8: 42a8 0034 clrl %a0@(52) <== NOT EXECUTED _ISR_Disable( level ); 501fc: 40c1 movew %sr,%d1 <== NOT EXECUTED 501fe: 8081 orl %d1,%d0 <== NOT EXECUTED 50200: 46c0 movew %d0,%sr <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 50202: 200a movel %a2,%d0 <== NOT EXECUTED 50204: 0680 0000 0054 addil #84,%d0 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 5020a: 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)) 5020e: b08b cmpl %a3,%d0 <== NOT EXECUTED 50210: 674e beqs 50260 <_CORE_message_queue_Seize+0x94> <== NOT EXECUTED { Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; 50212: 2053 moveal %a3@,%a0 <== NOT EXECUTED CORE_message_queue_Buffer_control *_CORE_message_queue_Get_pending_message ( CORE_message_queue_Control *the_message_queue ) { return (CORE_message_queue_Buffer_control *) _Chain_Get_unprotected( &the_message_queue->Pending_messages ); 50214: 49ea 0050 lea %a2@(80),%a4 <== NOT EXECUTED the_chain->first = new_first; 50218: 2548 0050 movel %a0,%a2@(80) <== NOT EXECUTED 5021c: 214c 0004 movel %a4,%a0@(4) <== NOT EXECUTED the_message = _CORE_message_queue_Get_pending_message( the_message_queue ); if ( the_message != NULL ) { the_message_queue->number_of_pending_messages -= 1; 50220: 53aa 0048 subql #1,%a2@(72) <== NOT EXECUTED _ISR_Enable( level ); 50224: 46c1 movew %d1,%sr <== NOT EXECUTED *size_p = the_message->Contents.size; 50226: 22ab 0008 movel %a3@(8),%a1@ <== NOT EXECUTED _Thread_Executing->Wait.count = 5022a: 2079 0006 84c8 moveal 684c8 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED 50230: 42a8 0024 clrl %a0@(36) <== NOT EXECUTED const void *source, void *destination, size_t size ) { memcpy(destination, source, size); 50234: 2f11 movel %a1@,%sp@- <== NOT EXECUTED 50236: 486b 000c pea %a3@(12) <== 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 ); 5023a: 45ea 0060 lea %a2@(96),%a2 <== NOT EXECUTED const void *source, void *destination, size_t size ) { memcpy(destination, source, size); 5023e: 2f02 movel %d2,%sp@- <== NOT EXECUTED 50240: 4eb9 0005 75b0 jsr 575b0 <== 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 ); 50246: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 5024a: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED 5024e: 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 ); } 50252: 4cee 1c3c ffe4 moveml %fp@(-28),%d2-%d5/%a2-%a4 <== NOT EXECUTED 50258: 4e5e unlk %fp <== NOT EXECUTED 5025a: 4ef9 0005 0048 jmp 50048 <_Chain_Append> <== NOT EXECUTED return; } #endif } if ( !wait ) { 50260: 4a03 tstb %d3 <== NOT EXECUTED 50262: 6612 bnes 50276 <_CORE_message_queue_Seize+0xaa> <== NOT EXECUTED _ISR_Enable( level ); 50264: 46c1 movew %d1,%sr <== NOT EXECUTED executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT; 50266: 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 ); } 50268: 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; 5026e: 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 ); } 50272: 4e5e unlk %fp <== NOT EXECUTED 50274: 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; 50276: 7001 moveq #1,%d0 <== NOT EXECUTED 50278: 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; 5027c: 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; 50280: 214a 0044 movel %a2,%a0@(68) <== NOT EXECUTED executing->Wait.id = id; 50284: 2145 0020 movel %d5,%a0@(32) <== NOT EXECUTED executing->Wait.return_argument_second.mutable_object = buffer; executing->Wait.return_argument = size_p; 50288: 2149 0028 movel %a1,%a0@(40) <== NOT EXECUTED /* Wait.count will be filled in with the message priority */ _ISR_Enable( level ); 5028c: 46c1 movew %d1,%sr <== NOT EXECUTED _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); 5028e: 49f9 0005 23d8 lea 523d8 <_Thread_queue_Timeout>,%a4 <== NOT EXECUTED 50294: 2d44 000c movel %d4,%fp@(12) <== NOT EXECUTED 50298: 2d4c 0010 movel %a4,%fp@(16) <== NOT EXECUTED 5029c: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED } 502a0: 4cee 1c3c ffe4 moveml %fp@(-28),%d2-%d5/%a2-%a4 <== NOT EXECUTED 502a6: 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 ); 502a8: 4ef9 0005 2010 jmp 52010 <_Thread_queue_Enqueue_with_handler><== NOT EXECUTED ... =============================================================================== 000502b0 <_CORE_message_queue_Submit>: #endif CORE_message_queue_Submit_types submit_type, bool wait, Watchdog_Interval timeout ) { 502b0: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 502b4: 48d7 0c04 moveml %d2/%a2-%a3,%sp@ <== NOT EXECUTED 502b8: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 502bc: 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 ) { 502c0: b4aa 004c cmpl %a2@(76),%d2 <== NOT EXECUTED 502c4: 6256 bhis 5031c <_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 ) { 502c6: 202a 0048 movel %a2@(72),%d0 <== NOT EXECUTED 502ca: 675c beqs 50328 <_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 < 502cc: b0aa 0044 cmpl %a2@(68),%d0 <== NOT EXECUTED 502d0: 650c bcss 502de <_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; 502d2: 7002 moveq #2,%d0 <== NOT EXECUTED _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); } return CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT; #endif } 502d4: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3 <== NOT EXECUTED 502da: 4e5e unlk %fp <== NOT EXECUTED 502dc: 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 ); 502de: 486a 0060 pea %a2@(96) <== NOT EXECUTED 502e2: 4eb9 0005 00a8 jsr 500a8 <_Chain_Get> <== NOT EXECUTED 502e8: 2640 moveal %d0,%a3 <== NOT EXECUTED const void *source, void *destination, size_t size ) { memcpy(destination, source, size); 502ea: 2f02 movel %d2,%sp@- <== NOT EXECUTED 502ec: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 502f0: 486b 000c pea %a3@(12) <== NOT EXECUTED 502f4: 4eb9 0005 75b0 jsr 575b0 <== NOT EXECUTED _CORE_message_queue_Copy_buffer( buffer, the_message->Contents.buffer, size ); the_message->Contents.size = size; 502fa: 2742 0008 movel %d2,%a3@(8) <== NOT EXECUTED _CORE_message_queue_Set_message_priority( the_message, submit_type ); _CORE_message_queue_Insert_message( 502fe: 2f2e 001c movel %fp@(28),%sp@- <== NOT EXECUTED 50302: 2f0b movel %a3,%sp@- <== NOT EXECUTED 50304: 2f0a movel %a2,%sp@- <== NOT EXECUTED 50306: 4eb9 0005 4e34 jsr 54e34 <_CORE_message_queue_Insert_message><== NOT EXECUTED the_message_queue, the_message, submit_type ); return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; 5030c: 4fef 001c lea %sp@(28),%sp <== NOT EXECUTED 50310: 4280 clrl %d0 <== NOT EXECUTED _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); } return CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT; #endif } 50312: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3 <== NOT EXECUTED 50318: 4e5e unlk %fp <== NOT EXECUTED 5031a: 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; 5031c: 7001 moveq #1,%d0 <== NOT EXECUTED _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); } return CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT; #endif } 5031e: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3 <== NOT EXECUTED 50324: 4e5e unlk %fp <== NOT EXECUTED 50326: 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 ); 50328: 2f0a movel %a2,%sp@- <== NOT EXECUTED 5032a: 4eb9 0005 1ea0 jsr 51ea0 <_Thread_queue_Dequeue> <== NOT EXECUTED if ( the_thread ) { 50330: 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 ); 50332: 2640 moveal %d0,%a3 <== NOT EXECUTED if ( the_thread ) { 50334: 4a80 tstl %d0 <== NOT EXECUTED 50336: 672e beqs 50366 <_CORE_message_queue_Submit+0xb6><== NOT EXECUTED 50338: 2f02 movel %d2,%sp@- <== NOT EXECUTED 5033a: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 5033e: 2f2b 002c movel %a3@(44),%sp@- <== NOT EXECUTED 50342: 4eb9 0005 75b0 jsr 575b0 <== 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; 50348: 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; 5034c: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 50350: 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; 50352: 2082 movel %d2,%a0@ <== NOT EXECUTED the_thread->Wait.count = (uint32_t) submit_type; 50354: 222e 001c movel %fp@(28),%d1 <== NOT EXECUTED 50358: 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 } 5035c: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3 <== NOT EXECUTED 50362: 4e5e unlk %fp <== NOT EXECUTED 50364: 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 ) { 50366: 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 < 5036a: b0aa 0044 cmpl %a2@(68),%d0 <== NOT EXECUTED 5036e: 6400 ff62 bccw 502d2 <_CORE_message_queue_Submit+0x22><== NOT EXECUTED 50372: 6000 ff6a braw 502de <_CORE_message_queue_Submit+0x2e><== NOT EXECUTED ... =============================================================================== 00046f30 <_CORE_mutex_Initialize>: CORE_mutex_Status _CORE_mutex_Initialize( CORE_mutex_Control *the_mutex, CORE_mutex_Attributes *the_mutex_attributes, uint32_t initial_lock ) { 46f30: 4e56 0000 linkw %fp,#0 46f34: 206e 0008 moveal %fp@(8),%a0 46f38: 2f0a movel %a2,%sp@- 46f3a: 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; 46f3e: 224a moveal %a2,%a1 46f40: 2159 0040 movel %a1@+,%a0@(64) 46f44: 2159 0044 movel %a1@+,%a0@(68) 46f48: 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 ) { 46f4c: 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; 46f50: 3151 004c movew %a1@,%a0@(76) the_mutex->lock = initial_lock; 46f54: 2140 004e movel %d0,%a0@(78) the_mutex->blocked_count = 0; 46f58: 42a8 0056 clrl %a0@(86) if ( initial_lock == CORE_MUTEX_LOCKED ) { 46f5c: 4a80 tstl %d0 46f5e: 6654 bnes 46fb4 <_CORE_mutex_Initialize+0x84> the_mutex->nest_count = 1; the_mutex->holder = _Thread_Executing; 46f60: 2279 0005 e630 moveal 5e630 <_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; 46f66: 7201 moveq #1,%d1 the_mutex->holder = _Thread_Executing; the_mutex->holder_id = _Thread_Executing->Object.id; 46f68: 2169 0008 005e movel %a1@(8),%a0@(94) STATES_WAITING_FOR_MUTEX, CORE_MUTEX_TIMEOUT ); return CORE_MUTEX_STATUS_SUCCESSFUL; } 46f6e: 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; 46f72: 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 ) || 46f76: 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; 46f7a: 2149 005a movel %a1,%a0@(90) the_mutex->holder_id = _Thread_Executing->Object.id; if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || 46f7e: b280 cmpl %d0,%d1 46f80: 6762 beqs 46fe4 <_CORE_mutex_Initialize+0xb4> <== NEVER TAKEN 46f82: 123c 0003 moveb #3,%d1 46f86: b280 cmpl %d0,%d1 46f88: 675a beqs 46fe4 <_CORE_mutex_Initialize+0xb4> <== NEVER TAKEN the_mutex->nest_count = 0; the_mutex->holder = NULL; the_mutex->holder_id = 0; } _Thread_queue_Initialize( 46f8a: 4aaa 0006 tstl %a2@(6) 46f8e: 56c0 sne %d0 46f90: 4878 0005 pea 5 46f94: 49c0 extbl %d0 46f96: 4878 0400 pea 400 46f9a: 4480 negl %d0 46f9c: 2f00 movel %d0,%sp@- 46f9e: 2f08 movel %a0,%sp@- 46fa0: 4eb9 0004 8df0 jsr 48df0 <_Thread_queue_Initialize> THREAD_QUEUE_DISCIPLINE_FIFO : THREAD_QUEUE_DISCIPLINE_PRIORITY, STATES_WAITING_FOR_MUTEX, CORE_MUTEX_TIMEOUT ); return CORE_MUTEX_STATUS_SUCCESSFUL; 46fa6: 4fef 0010 lea %sp@(16),%sp 46faa: 4280 clrl %d0 } 46fac: 246e fffc moveal %fp@(-4),%a2 46fb0: 4e5e unlk %fp 46fb2: 4e75 rts the_mutex->nest_count = 0; the_mutex->holder = NULL; the_mutex->holder_id = 0; } _Thread_queue_Initialize( 46fb4: 4aaa 0006 tstl %a2@(6) 46fb8: 56c0 sne %d0 #endif _Thread_Executing->resource_count++; } } else { the_mutex->nest_count = 0; 46fba: 42a8 0052 clrl %a0@(82) the_mutex->holder = NULL; the_mutex->holder_id = 0; } _Thread_queue_Initialize( 46fbe: 49c0 extbl %d0 46fc0: 4480 negl %d0 _Thread_Executing->resource_count++; } } else { the_mutex->nest_count = 0; the_mutex->holder = NULL; 46fc2: 42a8 005a clrl %a0@(90) the_mutex->holder_id = 0; 46fc6: 42a8 005e clrl %a0@(94) } _Thread_queue_Initialize( 46fca: 4878 0005 pea 5 46fce: 4878 0400 pea 400 46fd2: 2f00 movel %d0,%sp@- 46fd4: 2f08 movel %a0,%sp@- 46fd6: 4eb9 0004 8df0 jsr 48df0 <_Thread_queue_Initialize> THREAD_QUEUE_DISCIPLINE_FIFO : THREAD_QUEUE_DISCIPLINE_PRIORITY, STATES_WAITING_FOR_MUTEX, CORE_MUTEX_TIMEOUT ); return CORE_MUTEX_STATUS_SUCCESSFUL; 46fdc: 4fef 0010 lea %sp@(16),%sp 46fe0: 4280 clrl %d0 46fe2: 60c8 bras 46fac <_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 < 46fe4: 2028 004a movel %a0@(74),%d0 <== NOT EXECUTED 46fe8: b0a9 0014 cmpl %a1@(20),%d0 <== NOT EXECUTED 46fec: 6228 bhis 47016 <_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++; 46fee: 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( 46ff2: 4aaa 0006 tstl %a2@(6) <== NOT EXECUTED 46ff6: 56c0 sne %d0 <== NOT EXECUTED 46ff8: 4878 0005 pea 5 <== NOT EXECUTED 46ffc: 49c0 extbl %d0 <== NOT EXECUTED 46ffe: 4878 0400 pea 400 <== NOT EXECUTED 47002: 4480 negl %d0 <== NOT EXECUTED 47004: 2f00 movel %d0,%sp@- <== NOT EXECUTED 47006: 2f08 movel %a0,%sp@- <== NOT EXECUTED 47008: 4eb9 0004 8df0 jsr 48df0 <_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; 4700e: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 47012: 4280 clrl %d0 <== NOT EXECUTED 47014: 6096 bras 46fac <_CORE_mutex_Initialize+0x7c> <== NOT EXECUTED } 47016: 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; 4701a: 7006 moveq #6,%d0 <== NOT EXECUTED STATES_WAITING_FOR_MUTEX, CORE_MUTEX_TIMEOUT ); return CORE_MUTEX_STATUS_SUCCESSFUL; } 4701c: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 000470ac <_CORE_mutex_Seize>: Objects_Id _id, bool _wait, Watchdog_Interval _timeout, ISR_Level _level ) { 470ac: 4e56 0000 linkw %fp,#0 _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level ); 470b0: 2039 0005 e46c movel 5e46c <_Thread_Dispatch_disable_level>,%d0 Objects_Id _id, bool _wait, Watchdog_Interval _timeout, ISR_Level _level ) { 470b6: 2f0a movel %a2,%sp@- 470b8: 246e 0008 moveal %fp@(8),%a2 470bc: 2f02 movel %d2,%sp@- 470be: 142e 0013 moveb %fp@(19),%d2 _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level ); 470c2: 4a80 tstl %d0 470c4: 6704 beqs 470ca <_CORE_mutex_Seize+0x1e> 470c6: 4a02 tstb %d2 470c8: 6634 bnes 470fe <_CORE_mutex_Seize+0x52> <== ALWAYS TAKEN 470ca: 486e 0018 pea %fp@(24) 470ce: 2f0a movel %a2,%sp@- 470d0: 4eb9 0004 b944 jsr 4b944 <_CORE_mutex_Seize_interrupt_trylock> 470d6: 508f addql #8,%sp 470d8: 4a80 tstl %d0 470da: 6716 beqs 470f2 <_CORE_mutex_Seize+0x46> 470dc: 4a02 tstb %d2 470de: 6636 bnes 47116 <_CORE_mutex_Seize+0x6a> <== ALWAYS TAKEN 470e0: 202e 0018 movel %fp@(24),%d0 <== NOT EXECUTED 470e4: 46c0 movew %d0,%sr <== NOT EXECUTED 470e6: 2079 0005 e630 moveal 5e630 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED 470ec: 7001 moveq #1,%d0 <== NOT EXECUTED 470ee: 2140 0034 movel %d0,%a0@(52) <== NOT EXECUTED } 470f2: 242e fff8 movel %fp@(-8),%d2 470f6: 246e fffc moveal %fp@(-4),%a2 470fa: 4e5e unlk %fp 470fc: 4e75 rts bool _wait, Watchdog_Interval _timeout, ISR_Level _level ) { _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level ); 470fe: 7001 moveq #1,%d0 47100: b0b9 0005 e5d8 cmpl 5e5d8 <_System_state_Current>,%d0 47106: 64c2 bccs 470ca <_CORE_mutex_Seize+0x1e> 47108: 4878 0012 pea 12 4710c: 42a7 clrl %sp@- 4710e: 42a7 clrl %sp@- 47110: 4eb9 0004 7800 jsr 47800 <_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; 47116: 7001 moveq #1,%d0 47118: 2079 0005 e630 moveal 5e630 <_Per_CPU_Information+0xc>,%a0 4711e: 2540 0030 movel %d0,%a2@(48) 47122: 2039 0005 e46c movel 5e46c <_Thread_Dispatch_disable_level>,%d0 47128: 5280 addql #1,%d0 4712a: 216e 000c 0020 movel %fp@(12),%a0@(32) 47130: 214a 0044 movel %a2,%a0@(68) 47134: 23c0 0005 e46c movel %d0,5e46c <_Thread_Dispatch_disable_level> 4713a: 202e 0018 movel %fp@(24),%d0 4713e: 46c0 movew %d0,%sr 47140: 2f2e 0014 movel %fp@(20),%sp@- 47144: 2f0a movel %a2,%sp@- 47146: 4eb9 0004 7020 jsr 47020 <_CORE_mutex_Seize_interrupt_blocking> } 4714c: 242e fff8 movel %fp@(-8),%d2 bool _wait, Watchdog_Interval _timeout, ISR_Level _level ) { _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level ); 47150: 508f addql #8,%sp } 47152: 246e fffc moveal %fp@(-4),%a2 47156: 4e5e unlk %fp ... =============================================================================== 00047020 <_CORE_mutex_Seize_interrupt_blocking>: ) { Thread_Control *executing; executing = _Thread_Executing; if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ) { 47020: 7002 moveq #2,%d0 void _CORE_mutex_Seize_interrupt_blocking( CORE_mutex_Control *the_mutex, Watchdog_Interval timeout ) { 47022: 4e56 0000 linkw %fp,#0 Thread_Control *executing; executing = _Thread_Executing; 47026: 2079 0005 e630 moveal 5e630 <_Per_CPU_Information+0xc>,%a0 void _CORE_mutex_Seize_interrupt_blocking( CORE_mutex_Control *the_mutex, Watchdog_Interval timeout ) { 4702c: 2f0a movel %a2,%sp@- 4702e: 246e 0008 moveal %fp@(8),%a2 47032: 2f02 movel %d2,%sp@- 47034: 242e 000c movel %fp@(12),%d2 Thread_Control *executing; executing = _Thread_Executing; if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ) { 47038: b0aa 0046 cmpl %a2@(70),%d0 4703c: 6728 beqs 47066 <_CORE_mutex_Seize_interrupt_blocking+0x46> ); } } the_mutex->blocked_count++; _Thread_queue_Enqueue( &the_mutex->Wait_queue, timeout ); 4703e: 4879 0004 8efc pea 48efc <_Thread_queue_Timeout> false ); } } the_mutex->blocked_count++; 47044: 52aa 0056 addql #1,%a2@(86) _Thread_queue_Enqueue( &the_mutex->Wait_queue, timeout ); 47048: 2f02 movel %d2,%sp@- 4704a: 2f0a movel %a2,%sp@- 4704c: 4eb9 0004 8b34 jsr 48b34 <_Thread_queue_Enqueue_with_handler> _Thread_Enable_dispatch(); } 47052: 242e fff8 movel %fp@(-8),%d2 } the_mutex->blocked_count++; _Thread_queue_Enqueue( &the_mutex->Wait_queue, timeout ); _Thread_Enable_dispatch(); 47056: 4fef 000c lea %sp@(12),%sp } 4705a: 246e fffc moveal %fp@(-4),%a2 4705e: 4e5e unlk %fp } the_mutex->blocked_count++; _Thread_queue_Enqueue( &the_mutex->Wait_queue, timeout ); _Thread_Enable_dispatch(); 47060: 4ef9 0004 8666 jmp 48666 <_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 ) { 47066: 226a 005a moveal %a2@(90),%a1 4706a: 2028 0014 movel %a0@(20),%d0 4706e: b0a9 0014 cmpl %a1@(20),%d0 47072: 64ca bccs 4703e <_CORE_mutex_Seize_interrupt_blocking+0x1e><== NEVER TAKEN _Thread_Change_priority( 47074: 42a7 clrl %sp@- 47076: 2f00 movel %d0,%sp@- 47078: 2f09 movel %a1,%sp@- 4707a: 4eb9 0004 8134 jsr 48134 <_Thread_Change_priority> 47080: 4fef 000c lea %sp@(12),%sp ); } } the_mutex->blocked_count++; _Thread_queue_Enqueue( &the_mutex->Wait_queue, timeout ); 47084: 4879 0004 8efc pea 48efc <_Thread_queue_Timeout> false ); } } the_mutex->blocked_count++; 4708a: 52aa 0056 addql #1,%a2@(86) _Thread_queue_Enqueue( &the_mutex->Wait_queue, timeout ); 4708e: 2f02 movel %d2,%sp@- 47090: 2f0a movel %a2,%sp@- 47092: 4eb9 0004 8b34 jsr 48b34 <_Thread_queue_Enqueue_with_handler> _Thread_Enable_dispatch(); } 47098: 242e fff8 movel %fp@(-8),%d2 } the_mutex->blocked_count++; _Thread_queue_Enqueue( &the_mutex->Wait_queue, timeout ); _Thread_Enable_dispatch(); 4709c: 4fef 000c lea %sp@(12),%sp } 470a0: 246e fffc moveal %fp@(-4),%a2 470a4: 4e5e unlk %fp } the_mutex->blocked_count++; _Thread_queue_Enqueue( &the_mutex->Wait_queue, timeout ); _Thread_Enable_dispatch(); 470a6: 4ef9 0004 8666 jmp 48666 <_Thread_Enable_dispatch> =============================================================================== 0004b944 <_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 ) { 4b944: 4e56 0000 linkw %fp,#0 { Thread_Control *executing; /* disabled when you get here */ executing = _Thread_Executing; 4b948: 2279 0005 e630 moveal 5e630 <_Per_CPU_Information+0xc>,%a1 4b94e: 2f0a movel %a2,%sp@- 4b950: 206e 0008 moveal %fp@(8),%a0 4b954: 2f02 movel %d2,%sp@- 4b956: 246e 000c moveal %fp@(12),%a2 executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; 4b95a: 42a9 0034 clrl %a1@(52) if ( !_CORE_mutex_Is_locked( the_mutex ) ) { 4b95e: 4aa8 004e tstl %a0@(78) 4b962: 673a beqs 4b99e <_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; 4b964: 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; 4b966: 2169 0008 005e movel %a1@(8),%a0@(94) return _CORE_mutex_Seize_interrupt_trylock_body( the_mutex, level_p ); } 4b96c: 2028 0046 movel %a0@(70),%d0 the_mutex->nest_count = 1; 4b970: 2141 0052 movel %d1,%a0@(82) if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || 4b974: 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; 4b978: 42a8 004e clrl %a0@(78) the_mutex->holder = executing; 4b97c: 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 ) || 4b980: b280 cmpl %d0,%d1 4b982: 672e beqs 4b9b2 <_CORE_mutex_Seize_interrupt_trylock+0x6e> 4b984: 123c 0003 moveb #3,%d1 4b988: b280 cmpl %d0,%d1 4b98a: 674e beqs 4b9da <_CORE_mutex_Seize_interrupt_trylock+0x96><== NEVER TAKEN executing->resource_count++; } if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { _ISR_Enable( *level_p ); 4b98c: 2012 movel %a2@,%d0 4b98e: 46c0 movew %d0,%sr return 0; 4b990: 4280 clrl %d0 4b992: 242e fff8 movel %fp@(-8),%d2 4b996: 246e fffc moveal %fp@(-4),%a2 4b99a: 4e5e unlk %fp 4b99c: 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 ) ) { 4b99e: b3e8 005a cmpal %a0@(90),%a1 4b9a2: 671a beqs 4b9be <_CORE_mutex_Seize_interrupt_trylock+0x7a> 4b9a4: 242e fff8 movel %fp@(-8),%d2 /* * The mutex is not available and the caller must deal with the possibility * of blocking. */ return 1; 4b9a8: 7001 moveq #1,%d0 4b9aa: 246e fffc moveal %fp@(-4),%a2 4b9ae: 4e5e unlk %fp 4b9b0: 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++; 4b9b2: 52a9 001c addql #1,%a1@(28) } if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { _ISR_Enable( *level_p ); 4b9b6: 2012 movel %a2@,%d0 4b9b8: 46c0 movew %d0,%sr return 0; 4b9ba: 4280 clrl %d0 4b9bc: 60d4 bras 4b992 <_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 ) { 4b9be: 2028 0040 movel %a0@(64),%d0 4b9c2: 6658 bnes 4ba1c <_CORE_mutex_Seize_interrupt_trylock+0xd8><== ALWAYS TAKEN case CORE_MUTEX_NESTING_ACQUIRES: the_mutex->nest_count++; 4b9c4: 52a8 0052 addql #1,%a0@(82) <== NOT EXECUTED _ISR_Enable( *level_p ); 4b9c8: 2012 movel %a2@,%d0 <== NOT EXECUTED 4b9ca: 46c0 movew %d0,%sr <== NOT EXECUTED 4b9cc: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED return 0; 4b9d0: 4280 clrl %d0 <== NOT EXECUTED 4b9d2: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4b9d6: 4e5e unlk %fp <== NOT EXECUTED 4b9d8: 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++; 4b9da: 2429 001c movel %a1@(28),%d2 <== NOT EXECUTED 4b9de: 2002 movel %d2,%d0 <== NOT EXECUTED 4b9e0: 5280 addql #1,%d0 <== NOT EXECUTED 4b9e2: 2340 001c movel %d0,%a1@(28) <== NOT EXECUTED */ { Priority_Control ceiling; Priority_Control current; ceiling = the_mutex->Attributes.priority_ceiling; 4b9e6: 2228 004a movel %a0@(74),%d1 <== NOT EXECUTED current = executing->current_priority; 4b9ea: 2029 0014 movel %a1@(20),%d0 <== NOT EXECUTED if ( current == ceiling ) { 4b9ee: b081 cmpl %d1,%d0 <== NOT EXECUTED 4b9f0: 6700 0082 beqw 4ba74 <_CORE_mutex_Seize_interrupt_trylock+0x130><== NOT EXECUTED _ISR_Enable( *level_p ); return 0; } if ( current > ceiling ) { 4b9f4: 6244 bhis 4ba3a <_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; 4b9f6: 7206 moveq #6,%d1 <== NOT EXECUTED the_mutex->lock = CORE_MUTEX_UNLOCKED; 4b9f8: 7001 moveq #1,%d0 <== NOT EXECUTED ); _Thread_Enable_dispatch(); return 0; } /* if ( current < ceiling ) */ { executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED; 4b9fa: 2341 0034 movel %d1,%a1@(52) <== NOT EXECUTED the_mutex->lock = CORE_MUTEX_UNLOCKED; 4b9fe: 2140 004e movel %d0,%a0@(78) <== NOT EXECUTED the_mutex->nest_count = 0; /* undo locking above */ 4ba02: 42a8 0052 clrl %a0@(82) <== NOT EXECUTED executing->resource_count--; /* undo locking above */ 4ba06: 2342 001c movel %d2,%a1@(28) <== NOT EXECUTED _ISR_Enable( *level_p ); 4ba0a: 2012 movel %a2@,%d0 <== NOT EXECUTED 4ba0c: 46c0 movew %d0,%sr <== NOT EXECUTED 4ba0e: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED return 0; 4ba12: 4280 clrl %d0 <== NOT EXECUTED 4ba14: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4ba18: 4e5e unlk %fp <== NOT EXECUTED 4ba1a: 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 ) { 4ba1c: 7201 moveq #1,%d1 4ba1e: b280 cmpl %d0,%d1 4ba20: 6682 bnes 4b9a4 <_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; 4ba22: 7002 moveq #2,%d0 <== NOT EXECUTED 4ba24: 2340 0034 movel %d0,%a1@(52) <== NOT EXECUTED _ISR_Enable( *level_p ); 4ba28: 2012 movel %a2@,%d0 <== NOT EXECUTED 4ba2a: 46c0 movew %d0,%sr <== NOT EXECUTED 4ba2c: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED return 0; 4ba30: 4280 clrl %d0 <== NOT EXECUTED 4ba32: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4ba36: 4e5e unlk %fp <== NOT EXECUTED 4ba38: 4e75 rts <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 4ba3a: 2039 0005 e46c movel 5e46c <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED 4ba40: 5280 addql #1,%d0 <== NOT EXECUTED 4ba42: 23c0 0005 e46c movel %d0,5e46c <_Thread_Dispatch_disable_level><== NOT EXECUTED return 0; } if ( current > ceiling ) { _Thread_Disable_dispatch(); _ISR_Enable( *level_p ); 4ba48: 2012 movel %a2@,%d0 <== NOT EXECUTED 4ba4a: 46c0 movew %d0,%sr <== NOT EXECUTED _Thread_Change_priority( 4ba4c: 42a7 clrl %sp@- <== NOT EXECUTED 4ba4e: 2f28 004a movel %a0@(74),%sp@- <== NOT EXECUTED 4ba52: 2f28 005a movel %a0@(90),%sp@- <== NOT EXECUTED 4ba56: 4eb9 0004 8134 jsr 48134 <_Thread_Change_priority> <== NOT EXECUTED the_mutex->holder, the_mutex->Attributes.priority_ceiling, false ); _Thread_Enable_dispatch(); 4ba5c: 4eb9 0004 8666 jsr 48666 <_Thread_Enable_dispatch> <== NOT EXECUTED 4ba62: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 4ba66: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED return 0; 4ba6a: 4280 clrl %d0 <== NOT EXECUTED 4ba6c: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4ba70: 4e5e unlk %fp <== NOT EXECUTED 4ba72: 4e75 rts <== NOT EXECUTED Priority_Control current; ceiling = the_mutex->Attributes.priority_ceiling; current = executing->current_priority; if ( current == ceiling ) { _ISR_Enable( *level_p ); 4ba74: 2012 movel %a2@,%d0 <== NOT EXECUTED 4ba76: 46c0 movew %d0,%sr <== NOT EXECUTED 4ba78: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED return 0; 4ba7c: 4280 clrl %d0 <== NOT EXECUTED 4ba7e: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4ba82: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 0004715c <_CORE_mutex_Surrender>: #else Objects_Id id __attribute__((unused)), CORE_mutex_API_mp_support_callout api_mutex_mp_support __attribute__((unused)) #endif ) { 4715c: 4e56 0000 linkw %fp,#0 47160: 2f0a movel %a2,%sp@- 47162: 246e 0008 moveal %fp@(8),%a2 Thread_Control *the_thread; Thread_Control *holder; holder = the_mutex->holder; 47166: 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 ) { 4716a: 4a2a 0044 tstb %a2@(68) 4716e: 6712 beqs 47182 <_CORE_mutex_Surrender+0x26> if ( !_Thread_Is_executing( holder ) ) 47170: b1f9 0005 e630 cmpal 5e630 <_Per_CPU_Information+0xc>,%a0 47176: 670a beqs 47182 <_CORE_mutex_Surrender+0x26> <== ALWAYS TAKEN } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; return CORE_MUTEX_STATUS_SUCCESSFUL; } 47178: 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; 4717c: 7003 moveq #3,%d0 <== NOT EXECUTED } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; return CORE_MUTEX_STATUS_SUCCESSFUL; } 4717e: 4e5e unlk %fp <== NOT EXECUTED 47180: 4e75 rts <== NOT EXECUTED return CORE_MUTEX_STATUS_NOT_OWNER_OF_RESOURCE; } /* XXX already unlocked -- not right status */ if ( !the_mutex->nest_count ) 47182: 202a 0052 movel %a2@(82),%d0 47186: 6758 beqs 471e0 <_CORE_mutex_Surrender+0x84> <== NEVER TAKEN return CORE_MUTEX_STATUS_SUCCESSFUL; the_mutex->nest_count--; 47188: 5380 subql #1,%d0 4718a: 2540 0052 movel %d0,%a2@(82) if ( the_mutex->nest_count != 0 ) { 4718e: 6650 bnes 471e0 <_CORE_mutex_Surrender+0x84> <== NEVER TAKEN } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; return CORE_MUTEX_STATUS_SUCCESSFUL; } 47190: 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 ) || 47194: 7202 moveq #2,%d1 47196: b280 cmpl %d0,%d1 47198: 6750 beqs 471ea <_CORE_mutex_Surrender+0x8e> 4719a: 123c 0003 moveb #3,%d1 4719e: b280 cmpl %d0,%d1 471a0: 6748 beqs 471ea <_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; 471a2: 42aa 005a clrl %a2@(90) the_mutex->holder_id = 0; 471a6: 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 ) ) ) { 471aa: 2f0a movel %a2,%sp@- 471ac: 4eb9 0004 89c4 jsr 489c4 <_Thread_queue_Dequeue> 471b2: 588f addql #4,%sp 471b4: 2040 moveal %d0,%a0 471b6: 4a80 tstl %d0 471b8: 6700 0090 beqw 4724a <_CORE_mutex_Surrender+0xee> #endif { the_mutex->holder = the_thread; the_mutex->holder_id = the_thread->Object.id; the_mutex->nest_count = 1; 471bc: 7201 moveq #1,%d1 } else #endif { the_mutex->holder = the_thread; the_mutex->holder_id = the_thread->Object.id; 471be: 2568 0008 005e movel %a0@(8),%a2@(94) the_mutex->nest_count = 1; switch ( the_mutex->Attributes.discipline ) { 471c4: 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; 471c8: 2541 0052 movel %d1,%a2@(82) switch ( the_mutex->Attributes.discipline ) { 471cc: 123c 0002 moveb #2,%d1 } else #endif { the_mutex->holder = the_thread; 471d0: 2548 005a movel %a0,%a2@(90) the_mutex->holder_id = the_thread->Object.id; the_mutex->nest_count = 1; switch ( the_mutex->Attributes.discipline ) { 471d4: b280 cmpl %d0,%d1 471d6: 6764 beqs 4723c <_CORE_mutex_Surrender+0xe0> <== ALWAYS TAKEN 471d8: 123c 0003 moveb #3,%d1 <== NOT EXECUTED 471dc: b280 cmpl %d0,%d1 <== NOT EXECUTED 471de: 6734 beqs 47214 <_CORE_mutex_Surrender+0xb8> <== NOT EXECUTED } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; return CORE_MUTEX_STATUS_SUCCESSFUL; } 471e0: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED } } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; return CORE_MUTEX_STATUS_SUCCESSFUL; 471e4: 4280 clrl %d0 <== NOT EXECUTED } 471e6: 4e5e unlk %fp <== NOT EXECUTED 471e8: 4e75 rts <== NOT EXECUTED _CORE_mutex_Pop_priority( the_mutex, holder ); if ( pop_status != CORE_MUTEX_STATUS_SUCCESSFUL ) return pop_status; holder->resource_count--; 471ea: 2028 001c movel %a0@(28),%d0 471ee: 5380 subql #1,%d0 471f0: 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 && 471f4: 66ac bnes 471a2 <_CORE_mutex_Surrender+0x46> holder->real_priority != holder->current_priority ) { 471f6: 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 && 471fa: b0a8 0014 cmpl %a0@(20),%d0 471fe: 67a2 beqs 471a2 <_CORE_mutex_Surrender+0x46> holder->real_priority != holder->current_priority ) { _Thread_Change_priority( holder, holder->real_priority, true ); 47200: 4878 0001 pea 1 47204: 2f00 movel %d0,%sp@- 47206: 2f08 movel %a0,%sp@- 47208: 4eb9 0004 8134 jsr 48134 <_Thread_Change_priority> 4720e: 4fef 000c lea %sp@(12),%sp 47212: 608e bras 471a2 <_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 < 47214: 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++; 47218: 52a8 001c addql #1,%a0@(28) <== NOT EXECUTED if (the_mutex->Attributes.priority_ceiling < 4721c: b0a8 0014 cmpl %a0@(20),%d0 <== NOT EXECUTED 47220: 64be bccs 471e0 <_CORE_mutex_Surrender+0x84> <== NOT EXECUTED the_thread->current_priority){ _Thread_Change_priority( 47222: 42a7 clrl %sp@- <== NOT EXECUTED 47224: 2f00 movel %d0,%sp@- <== NOT EXECUTED 47226: 2f08 movel %a0,%sp@- <== NOT EXECUTED 47228: 4eb9 0004 8134 jsr 48134 <_Thread_Change_priority> <== NOT EXECUTED } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; return CORE_MUTEX_STATUS_SUCCESSFUL; } 4722e: 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( 47232: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED } } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; return CORE_MUTEX_STATUS_SUCCESSFUL; 47236: 4280 clrl %d0 <== NOT EXECUTED } 47238: 4e5e unlk %fp <== NOT EXECUTED 4723a: 4e75 rts <== NOT EXECUTED 4723c: 246e fffc moveal %fp@(-4),%a2 } } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; return CORE_MUTEX_STATUS_SUCCESSFUL; 47240: 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++; 47242: 52a8 001c addql #1,%a0@(28) } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; return CORE_MUTEX_STATUS_SUCCESSFUL; } 47246: 4e5e unlk %fp 47248: 4e75 rts } break; } } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; 4724a: 7001 moveq #1,%d0 4724c: 2540 004e movel %d0,%a2@(78) return CORE_MUTEX_STATUS_SUCCESSFUL; } 47250: 246e fffc moveal %fp@(-4),%a2 } } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; return CORE_MUTEX_STATUS_SUCCESSFUL; 47254: 4200 clrb %d0 } 47256: 4e5e unlk %fp ... =============================================================================== 000472b0 <_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 ) { 472b0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 472b4: 2f0a movel %a2,%sp@- <== NOT EXECUTED 472b6: 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)) ) { 472ba: 2f0a movel %a2,%sp@- <== NOT EXECUTED 472bc: 4eb9 0004 89c4 jsr 489c4 <_Thread_queue_Dequeue> <== NOT EXECUTED 472c2: 588f addql #4,%sp <== NOT EXECUTED 472c4: 4a80 tstl %d0 <== NOT EXECUTED 472c6: 670a beqs 472d2 <_CORE_semaphore_Surrender+0x22> <== NOT EXECUTED status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED; _ISR_Enable( level ); } return status; } 472c8: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED { Thread_Control *the_thread; ISR_Level level; CORE_semaphore_Status status; status = CORE_SEMAPHORE_STATUS_SUCCESSFUL; 472cc: 4280 clrl %d0 <== NOT EXECUTED status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED; _ISR_Enable( level ); } return status; } 472ce: 4e5e unlk %fp <== NOT EXECUTED 472d0: 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 ); 472d2: 303c 0700 movew #1792,%d0 <== NOT EXECUTED 472d6: 40c1 movew %sr,%d1 <== NOT EXECUTED 472d8: 8081 orl %d1,%d0 <== NOT EXECUTED 472da: 46c0 movew %d0,%sr <== NOT EXECUTED if ( the_semaphore->count < the_semaphore->Attributes.maximum_count ) 472dc: 202a 0048 movel %a2@(72),%d0 <== NOT EXECUTED 472e0: b0aa 0040 cmpl %a2@(64),%d0 <== NOT EXECUTED 472e4: 6412 bccs 472f8 <_CORE_semaphore_Surrender+0x48> <== NOT EXECUTED the_semaphore->count += 1; 472e6: 5280 addql #1,%d0 <== NOT EXECUTED 472e8: 2540 0048 movel %d0,%a2@(72) <== NOT EXECUTED { Thread_Control *the_thread; ISR_Level level; CORE_semaphore_Status status; status = CORE_SEMAPHORE_STATUS_SUCCESSFUL; 472ec: 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 ); 472ee: 46c1 movew %d1,%sr <== NOT EXECUTED } return status; } 472f0: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 472f4: 4e5e unlk %fp <== NOT EXECUTED 472f6: 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; 472f8: 7004 moveq #4,%d0 <== NOT EXECUTED _ISR_Enable( level ); 472fa: 46c1 movew %d1,%sr <== NOT EXECUTED 472fc: 60f2 bras 472f0 <_CORE_semaphore_Surrender+0x40> <== NOT EXECUTED ... =============================================================================== 0004761c <_Chain_Append_with_empty_check>: ) { ISR_Level level; bool was_empty; _ISR_Disable( level ); 4761c: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED bool _Chain_Append_with_empty_check( Chain_Control *chain, Chain_Node *node ) { 47622: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 47626: 226e 0008 moveal %fp@(8),%a1 <== NOT EXECUTED 4762a: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4762c: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED 47630: 2f02 movel %d2,%sp@- <== NOT EXECUTED ISR_Level level; bool was_empty; _ISR_Disable( level ); 47632: 40c2 movew %sr,%d2 <== NOT EXECUTED 47634: 8082 orl %d2,%d0 <== NOT EXECUTED 47636: 46c0 movew %d0,%sr <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 47638: 2209 movel %a1,%d1 <== NOT EXECUTED 4763a: 5881 addql #4,%d1 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 4763c: b291 cmpl %a1@,%d1 <== NOT EXECUTED 4763e: 57c0 seq %d0 <== NOT EXECUTED ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); old_last_node = the_chain->last; 47640: 2469 0008 moveal %a1@(8),%a2 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 47644: 4480 negl %d0 <== NOT EXECUTED Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 47646: 2081 movel %d1,%a0@ <== NOT EXECUTED old_last_node = the_chain->last; the_chain->last = the_node; 47648: 2348 0008 movel %a0,%a1@(8) <== NOT EXECUTED old_last_node->next = the_node; 4764c: 2488 movel %a0,%a2@ <== NOT EXECUTED the_node->previous = old_last_node; 4764e: 214a 0004 movel %a2,%a0@(4) <== NOT EXECUTED was_empty = _Chain_Append_with_empty_check_unprotected( chain, node ); _ISR_Enable( level ); 47652: 46c2 movew %d2,%sr <== NOT EXECUTED return was_empty; } 47654: 241f movel %sp@+,%d2 <== NOT EXECUTED 47656: 245f moveal %sp@+,%a2 <== NOT EXECUTED 47658: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 000476bc <_Chain_Get_with_empty_check>: ) { ISR_Level level; bool is_empty_now; _ISR_Disable( level ); 476bc: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED bool _Chain_Get_with_empty_check( Chain_Control *chain, Chain_Node **node ) { 476c2: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 476c6: 48d7 1c00 moveml %a2-%a4,%sp@ <== NOT EXECUTED 476ca: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 476ce: 286e 000c moveal %fp@(12),%a4 <== NOT EXECUTED ISR_Level level; bool is_empty_now; _ISR_Disable( level ); 476d2: 40c1 movew %sr,%d1 <== NOT EXECUTED 476d4: 8081 orl %d1,%d0 <== NOT EXECUTED 476d6: 46c0 movew %d0,%sr <== NOT EXECUTED Chain_Control *the_chain, Chain_Node **the_node ) { bool is_empty_now = true; Chain_Node *first = the_chain->first; 476d8: 204a moveal %a2,%a0 <== NOT EXECUTED 476da: 2258 moveal %a0@+,%a1 <== NOT EXECUTED if ( first != _Chain_Tail( the_chain ) ) { 476dc: b1c9 cmpal %a1,%a0 <== NOT EXECUTED 476de: 671a beqs 476fa <_Chain_Get_with_empty_check+0x3e><== NOT EXECUTED Chain_Node *new_first = first->next; 476e0: 2651 moveal %a1@,%a3 <== NOT EXECUTED the_chain->first = new_first; new_first->previous = _Chain_Head( the_chain ); *the_node = first; is_empty_now = new_first == _Chain_Tail( the_chain ); 476e2: b7c8 cmpal %a0,%a3 <== NOT EXECUTED 476e4: 57c0 seq %d0 <== NOT EXECUTED Chain_Node *first = the_chain->first; if ( first != _Chain_Tail( the_chain ) ) { Chain_Node *new_first = first->next; the_chain->first = new_first; 476e6: 248b movel %a3,%a2@ <== NOT EXECUTED new_first->previous = _Chain_Head( the_chain ); *the_node = first; is_empty_now = new_first == _Chain_Tail( the_chain ); 476e8: 4480 negl %d0 <== NOT EXECUTED if ( first != _Chain_Tail( the_chain ) ) { Chain_Node *new_first = first->next; the_chain->first = new_first; new_first->previous = _Chain_Head( the_chain ); 476ea: 274a 0004 movel %a2,%a3@(4) <== NOT EXECUTED *the_node = first; 476ee: 2889 movel %a1,%a4@ <== NOT EXECUTED is_empty_now = _Chain_Get_with_empty_check_unprotected( chain, node ); _ISR_Enable( level ); 476f0: 46c1 movew %d1,%sr <== NOT EXECUTED return is_empty_now; } 476f2: 4cd7 1c00 moveml %sp@,%a2-%a4 <== NOT EXECUTED 476f6: 4e5e unlk %fp <== NOT EXECUTED 476f8: 4e75 rts <== NOT EXECUTED is_empty_now = new_first == _Chain_Tail( the_chain ); } else *the_node = NULL; 476fa: 4294 clrl %a4@ <== 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; 476fc: 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 ); 476fe: 46c1 movew %d1,%sr <== NOT EXECUTED return is_empty_now; } 47700: 4cd7 1c00 moveml %sp@,%a2-%a4 <== NOT EXECUTED 47704: 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 fff0 linkw %fp,#-16 4b8e4: 202e 0010 movel %fp@(16),%d0 4b8e8: 48d7 041c moveml %d2-%d4/%a2,%sp@ 4b8ec: 246e 0008 moveal %fp@(8),%a2 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Head( Chain_Control *the_chain ) { return (Chain_Node *) the_chain; 4b8f0: 224a moveal %a2,%a1 4b8f2: 262e 000c movel %fp@(12),%d3 4b8f6: 242e 0014 movel %fp@(20),%d2 Chain_Node *current; Chain_Node *next; count = number_nodes; current = _Chain_Head( the_chain ); the_chain->permanent_null = NULL; 4b8fa: 42aa 0004 clrl %a2@(4) next = starting_address; while ( count-- ) { 4b8fe: 4a80 tstl %d0 4b900: 6730 beqs 4b932 <_Chain_Initialize+0x52> <== NEVER TAKEN Chain_Node *next; count = number_nodes; current = _Chain_Head( the_chain ); the_chain->permanent_null = NULL; next = starting_address; 4b902: 2043 moveal %d3,%a0 while ( count-- ) { 4b904: 5380 subql #1,%d0 * node_size - size of node in bytes * * Output parameters: NONE */ void _Chain_Initialize( 4b906: 2208 movel %a0,%d1 count = number_nodes; current = _Chain_Head( the_chain ); the_chain->permanent_null = NULL; next = starting_address; while ( count-- ) { 4b908: 2800 movel %d0,%d4 * node_size - size of node in bytes * * Output parameters: NONE */ void _Chain_Initialize( 4b90a: d282 addl %d2,%d1 count = number_nodes; current = _Chain_Head( the_chain ); the_chain->permanent_null = NULL; next = starting_address; while ( count-- ) { current->next = next; 4b90c: 2288 movel %a0,%a1@ next->previous = current; 4b90e: 2149 0004 movel %a1,%a0@(4) count = number_nodes; current = _Chain_Head( the_chain ); the_chain->permanent_null = NULL; next = starting_address; while ( count-- ) { 4b912: 4a80 tstl %d0 4b914: 6714 beqs 4b92a <_Chain_Initialize+0x4a> 4b916: 2248 moveal %a0,%a1 current->next = next; next->previous = current; current = next; next = (Chain_Node *) 4b918: 2041 moveal %d1,%a0 * node_size - size of node in bytes * * Output parameters: NONE */ void _Chain_Initialize( 4b91a: 2208 movel %a0,%d1 4b91c: 5380 subql #1,%d0 4b91e: d282 addl %d2,%d1 count = number_nodes; current = _Chain_Head( the_chain ); the_chain->permanent_null = NULL; next = starting_address; while ( count-- ) { current->next = next; 4b920: 2288 movel %a0,%a1@ next->previous = current; 4b922: 2149 0004 movel %a1,%a0@(4) count = number_nodes; current = _Chain_Head( the_chain ); the_chain->permanent_null = NULL; next = starting_address; while ( count-- ) { 4b926: 4a80 tstl %d0 4b928: 66ec bnes 4b916 <_Chain_Initialize+0x36> * node_size - size of node in bytes * * Output parameters: NONE */ void _Chain_Initialize( 4b92a: 4c04 2800 mulsl %d4,%d2 count = number_nodes; current = _Chain_Head( the_chain ); the_chain->permanent_null = NULL; next = starting_address; while ( count-- ) { 4b92e: 2243 moveal %d3,%a1 4b930: d3c2 addal %d2,%a1 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 4b932: 200a movel %a2,%d0 4b934: 5880 addql #4,%d0 4b936: 2280 movel %d0,%a1@ current = next; next = (Chain_Node *) _Addresses_Add_offset( (void *) next, node_size ); } current->next = _Chain_Tail( the_chain ); the_chain->last = current; 4b938: 2549 0008 movel %a1,%a2@(8) } 4b93c: 4cd7 041c moveml %sp@,%d2-%d4/%a2 4b940: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00047774 <_Chain_Prepend_with_empty_check>: ) { ISR_Level level; bool was_empty; _ISR_Disable( level ); 47774: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED bool _Chain_Prepend_with_empty_check( Chain_Control *chain, Chain_Node *node ) { 4777a: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4777e: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 47782: 2f0a movel %a2,%sp@- <== NOT EXECUTED 47784: 226e 000c moveal %fp@(12),%a1 <== NOT EXECUTED ISR_Level level; bool was_empty; _ISR_Disable( level ); 47788: 40c1 movew %sr,%d1 <== NOT EXECUTED 4778a: 8081 orl %d1,%d0 <== NOT EXECUTED 4778c: 46c0 movew %d0,%sr <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 4778e: 2008 movel %a0,%d0 <== NOT EXECUTED 47790: 5880 addql #4,%d0 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 47792: b090 cmpl %a0@,%d0 <== NOT EXECUTED 47794: 57c0 seq %d0 <== NOT EXECUTED ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; 47796: 2450 moveal %a0@,%a2 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 47798: 4480 negl %d0 <== NOT EXECUTED Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; 4779a: 2348 0004 movel %a0,%a1@(4) <== NOT EXECUTED before_node = after_node->next; after_node->next = the_node; 4779e: 2089 movel %a1,%a0@ <== NOT EXECUTED the_node->next = before_node; before_node->previous = the_node; 477a0: 2549 0004 movel %a1,%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; 477a4: 228a movel %a2,%a1@ <== NOT EXECUTED was_empty = _Chain_Prepend_with_empty_check_unprotected( chain, node ); _ISR_Enable( level ); 477a6: 46c1 movew %d1,%sr <== NOT EXECUTED return was_empty; } 477a8: 245f moveal %sp@+,%a2 <== NOT EXECUTED 477aa: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 00045e24 <_Event_Seize>: executing = _Thread_Executing; executing->Wait.return_code = RTEMS_SUCCESSFUL; api = executing->API_Extensions[ THREAD_API_RTEMS ]; _ISR_Disable( level ); 45e24: 203c 0000 0700 movel #1792,%d0 rtems_event_set event_in, rtems_option option_set, rtems_interval ticks, rtems_event_set *event_out ) { 45e2a: 4e56 ffec linkw %fp,#-20 45e2e: 222e 0008 movel %fp@(8),%d1 45e32: 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; 45e36: 2479 0005 e630 moveal 5e630 <_Per_CPU_Information+0xc>,%a2 rtems_event_set event_in, rtems_option option_set, rtems_interval ticks, rtems_event_set *event_out ) { 45e3c: 242e 000c movel %fp@(12),%d2 45e40: 2a2e 0010 movel %fp@(16),%d5 45e44: 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; 45e48: 42aa 0034 clrl %a2@(52) api = executing->API_Extensions[ THREAD_API_RTEMS ]; 45e4c: 206a 0108 moveal %a2@(264),%a0 _ISR_Disable( level ); 45e50: 40c4 movew %sr,%d4 45e52: 8084 orl %d4,%d0 45e54: 46c0 movew %d0,%sr pending_events = api->pending_events; 45e56: 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 ); 45e58: 2001 movel %d1,%d0 45e5a: c083 andl %d3,%d0 seized_events = _Event_sets_Get( pending_events, event_in ); if ( !_Event_sets_Is_empty( seized_events ) && 45e5c: 670c beqs 45e6a <_Event_Seize+0x46> 45e5e: b081 cmpl %d1,%d0 45e60: 6700 0084 beqw 45ee6 <_Event_Seize+0xc2> (seized_events == event_in || _Options_Is_any( option_set )) ) { 45e64: 0802 0001 btst #1,%d2 <== NOT EXECUTED 45e68: 667c bnes 45ee6 <_Event_Seize+0xc2> <== NOT EXECUTED _ISR_Enable( level ); *event_out = seized_events; return; } if ( _Options_Is_no_wait( option_set ) ) { 45e6a: 0802 0000 btst #0,%d2 45e6e: 6662 bnes 45ed2 <_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; 45e70: 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; 45e74: 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; 45e76: 2541 0024 movel %d1,%a2@(36) executing->Wait.return_argument = event_out; 45e7a: 2549 0028 movel %a1,%a2@(40) _Event_Sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; 45e7e: 23c2 0005 e63e movel %d2,5e63e <_Event_Sync_state> _ISR_Enable( level ); 45e84: 46c4 movew %d4,%sr if ( ticks ) { 45e86: 4a85 tstl %d5 45e88: 6672 bnes 45efc <_Event_Seize+0xd8> NULL ); _Watchdog_Insert_ticks( &executing->Timer, ticks ); } _Thread_Set_state( executing, STATES_WAITING_FOR_EVENT ); 45e8a: 4878 0100 pea 100 45e8e: 2f0a movel %a2,%sp@- 45e90: 4eb9 0004 8fa4 jsr 48fa4 <_Thread_Set_state> _ISR_Disable( level ); 45e96: 203c 0000 0700 movel #1792,%d0 45e9c: 40c1 movew %sr,%d1 45e9e: 8081 orl %d1,%d0 45ea0: 46c0 movew %d0,%sr sync_state = _Event_Sync_state; _Event_Sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; if ( sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) { 45ea2: 7401 moveq #1,%d2 45ea4: 508f addql #8,%sp _Thread_Set_state( executing, STATES_WAITING_FOR_EVENT ); _ISR_Disable( level ); sync_state = _Event_Sync_state; 45ea6: 2039 0005 e63e movel 5e63e <_Event_Sync_state>,%d0 _Event_Sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; 45eac: 42b9 0005 e63e clrl 5e63e <_Event_Sync_state> if ( sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) { 45eb2: b480 cmpl %d0,%d2 45eb4: 6700 00a4 beqw 45f5a <_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 ); 45eb8: 2d4a 000c movel %a2,%fp@(12) <== NOT EXECUTED 45ebc: 2d41 0010 movel %d1,%fp@(16) <== NOT EXECUTED } 45ec0: 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 ); 45ec6: 2d40 0008 movel %d0,%fp@(8) <== NOT EXECUTED } 45eca: 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 ); 45ecc: 4ef9 0004 80cc jmp 480cc <_Thread_blocking_operation_Cancel><== NOT EXECUTED *event_out = seized_events; return; } if ( _Options_Is_no_wait( option_set ) ) { _ISR_Enable( level ); 45ed2: 46c4 movew %d4,%sr <== NOT EXECUTED executing->Wait.return_code = RTEMS_UNSATISFIED; 45ed4: 720d moveq #13,%d1 <== NOT EXECUTED 45ed6: 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 ); } 45eda: 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; 45ee0: 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 ); } 45ee2: 4e5e unlk %fp <== NOT EXECUTED 45ee4: 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) ); 45ee6: 2200 movel %d0,%d1 45ee8: 4681 notl %d1 45eea: c283 andl %d3,%d1 45eec: 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 ); 45eee: 46c4 movew %d4,%sr *event_out = seized_events; 45ef0: 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 ); } 45ef2: 4cee 043c ffec moveml %fp@(-20),%d2-%d5/%a2 45ef8: 4e5e unlk %fp 45efa: 4e75 rts _Event_Sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; _ISR_Enable( level ); if ( ticks ) { _Watchdog_Initialize( 45efc: 202a 0008 movel %a2@(8),%d0 Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 45f00: 223c 0004 60ec movel #286956,%d1 the_watchdog->id = id; 45f06: 2540 0068 movel %d0,%a2@(104) Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 45f0a: 2541 0064 movel %d1,%a2@(100) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 45f0e: 42aa 0050 clrl %a2@(80) the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data; 45f12: 42aa 006c clrl %a2@(108) Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 45f16: 2545 0054 movel %d5,%a2@(84) _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 45f1a: 486a 0048 pea %a2@(72) 45f1e: 4879 0005 e52e pea 5e52e <_Watchdog_Ticks_chain> 45f24: 4eb9 0004 97b0 jsr 497b0 <_Watchdog_Insert> 45f2a: 508f addql #8,%sp NULL ); _Watchdog_Insert_ticks( &executing->Timer, ticks ); } _Thread_Set_state( executing, STATES_WAITING_FOR_EVENT ); 45f2c: 4878 0100 pea 100 45f30: 2f0a movel %a2,%sp@- 45f32: 4eb9 0004 8fa4 jsr 48fa4 <_Thread_Set_state> _ISR_Disable( level ); 45f38: 203c 0000 0700 movel #1792,%d0 45f3e: 40c1 movew %sr,%d1 45f40: 8081 orl %d1,%d0 45f42: 46c0 movew %d0,%sr sync_state = _Event_Sync_state; _Event_Sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; if ( sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) { 45f44: 7401 moveq #1,%d2 45f46: 508f addql #8,%sp _Thread_Set_state( executing, STATES_WAITING_FOR_EVENT ); _ISR_Disable( level ); sync_state = _Event_Sync_state; 45f48: 2039 0005 e63e movel 5e63e <_Event_Sync_state>,%d0 _Event_Sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; 45f4e: 42b9 0005 e63e clrl 5e63e <_Event_Sync_state> if ( sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) { 45f54: b480 cmpl %d0,%d2 45f56: 6600 ff60 bnew 45eb8 <_Event_Seize+0x94> _ISR_Enable( level ); 45f5a: 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 ); } 45f5c: 4cee 043c ffec moveml %fp@(-20),%d2-%d5/%a2 45f62: 4e5e unlk %fp ... =============================================================================== 00045fc4 <_Event_Surrender>: api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; option_set = (rtems_option) the_thread->Wait.option; _ISR_Disable( level ); 45fc4: 203c 0000 0700 movel #1792,%d0 */ void _Event_Surrender( Thread_Control *the_thread ) { 45fca: 4e56 ffec linkw %fp,#-20 45fce: 48d7 043c moveml %d2-%d5/%a2,%sp@ 45fd2: 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 ]; 45fd6: 206a 0108 moveal %a2@(264),%a0 option_set = (rtems_option) the_thread->Wait.option; 45fda: 282a 0030 movel %a2@(48),%d4 _ISR_Disable( level ); 45fde: 40c3 movew %sr,%d3 45fe0: 8083 orl %d3,%d0 45fe2: 46c0 movew %d0,%sr pending_events = api->pending_events; event_condition = (rtems_event_set) the_thread->Wait.count; 45fe4: 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 ); 45fe8: 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; 45fea: 2410 movel %a0@,%d2 45fec: 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 ) ) { 45fee: 6776 beqs 46066 <_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() && 45ff0: 4ab9 0005 e62c tstl 5e62c <_Per_CPU_Information+0x8> 45ff6: 670a beqs 46002 <_Event_Surrender+0x3e> <== ALWAYS TAKEN 45ff8: b5f9 0005 e630 cmpal 5e630 <_Per_CPU_Information+0xc>,%a2 <== NOT EXECUTED 45ffe: 6700 00a0 beqw 460a0 <_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); 46002: 2a2a 0010 movel %a2@(16),%d5 46006: 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 ) ) { 4600c: 674c beqs 4605a <_Event_Surrender+0x96> <== NEVER TAKEN if ( seized_events == event_condition || _Options_Is_any( option_set ) ) { 4600e: b081 cmpl %d1,%d0 46010: 6706 beqs 46018 <_Event_Surrender+0x54> <== ALWAYS TAKEN 46012: 0804 0001 btst #1,%d4 <== NOT EXECUTED 46016: 6742 beqs 4605a <_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) ); 46018: 2200 movel %d0,%d1 4601a: 4681 notl %d1 4601c: c282 andl %d2,%d1 4601e: 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; 46020: 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; 46024: 42aa 0024 clrl %a2@(36) *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; 46028: 2080 movel %d0,%a0@ _ISR_Flash( level ); 4602a: 203c 0000 0700 movel #1792,%d0 46030: 46c3 movew %d3,%sr 46032: 8083 orl %d3,%d0 46034: 46c0 movew %d0,%sr if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { 46036: 7a02 moveq #2,%d5 46038: baaa 0050 cmpl %a2@(80),%d5 4603c: 6734 beqs 46072 <_Event_Surrender+0xae> _ISR_Enable( level ); 4603e: 46c3 movew %d3,%sr RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 46040: 2f3c 1003 fff8 movel #268697592,%sp@- 46046: 2f0a movel %a2,%sp@- 46048: 4eb9 0004 8280 jsr 48280 <_Thread_Clear_state> 4604e: 508f addql #8,%sp } return; } } _ISR_Enable( level ); } 46050: 4cee 043c ffec moveml %fp@(-20),%d2-%d5/%a2 46056: 4e5e unlk %fp 46058: 4e75 rts _Thread_Unblock( the_thread ); } return; } } _ISR_Enable( level ); 4605a: 46c3 movew %d3,%sr <== NOT EXECUTED } 4605c: 4cee 043c ffec moveml %fp@(-20),%d2-%d5/%a2 <== NOT EXECUTED 46062: 4e5e unlk %fp <== NOT EXECUTED 46064: 4e75 rts <== NOT EXECUTED /* * No events were seized in this operation */ if ( _Event_sets_Is_empty( seized_events ) ) { _ISR_Enable( level ); 46066: 46c3 movew %d3,%sr } return; } } _ISR_Enable( level ); } 46068: 4cee 043c ffec moveml %fp@(-20),%d2-%d5/%a2 4606e: 4e5e unlk %fp 46070: 4e75 rts RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_REMOVE_IT; 46072: 7003 moveq #3,%d0 46074: 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 ); 46078: 46c3 movew %d3,%sr (void) _Watchdog_Remove( &the_thread->Timer ); 4607a: 486a 0048 pea %a2@(72) 4607e: 4eb9 0004 98f8 jsr 498f8 <_Watchdog_Remove> 46084: 2f3c 1003 fff8 movel #268697592,%sp@- 4608a: 2f0a movel %a2,%sp@- 4608c: 4eb9 0004 8280 jsr 48280 <_Thread_Clear_state> 46092: 4fef 000c lea %sp@(12),%sp } return; } } _ISR_Enable( level ); } 46096: 4cee 043c ffec moveml %fp@(-20),%d2-%d5/%a2 4609c: 4e5e unlk %fp 4609e: 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) || 460a0: 2279 0005 e63e moveal 5e63e <_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 ) && 460a6: 7a02 moveq #2,%d5 <== NOT EXECUTED 460a8: ba89 cmpl %a1,%d5 <== NOT EXECUTED 460aa: 6710 beqs 460bc <_Event_Surrender+0xf8> <== NOT EXECUTED ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) || (_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) { 460ac: 2279 0005 e63e moveal 5e63e <_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) || 460b2: 1a3c 0001 moveb #1,%d5 <== NOT EXECUTED 460b6: ba89 cmpl %a1,%d5 <== NOT EXECUTED 460b8: 6600 ff48 bnew 46002 <_Event_Surrender+0x3e> <== NOT EXECUTED (_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) { if ( seized_events == event_condition || _Options_Is_any(option_set) ) { 460bc: b081 cmpl %d1,%d0 <== NOT EXECUTED 460be: 6706 beqs 460c6 <_Event_Surrender+0x102> <== NOT EXECUTED 460c0: 0804 0001 btst #1,%d4 <== NOT EXECUTED 460c4: 671a beqs 460e0 <_Event_Surrender+0x11c> <== NOT EXECUTED 460c6: 2200 movel %d0,%d1 <== NOT EXECUTED 460c8: 4681 notl %d1 <== NOT EXECUTED 460ca: c282 andl %d2,%d1 <== NOT EXECUTED 460cc: 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; 460ce: 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; 460d2: 42aa 0024 clrl %a2@(36) <== NOT EXECUTED *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; 460d6: 2080 movel %d0,%a0@ <== NOT EXECUTED _Event_Sync_state = THREAD_BLOCKING_OPERATION_SATISFIED; 460d8: 7003 moveq #3,%d0 <== NOT EXECUTED 460da: 23c0 0005 e63e movel %d0,5e63e <_Event_Sync_state> <== NOT EXECUTED } _ISR_Enable( level ); 460e0: 46c3 movew %d3,%sr <== NOT EXECUTED } return; } } _ISR_Enable( level ); } 460e2: 4cee 043c ffec moveml %fp@(-20),%d2-%d5/%a2 <== NOT EXECUTED 460e8: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 000460ec <_Event_Timeout>: void _Event_Timeout( Objects_Id id, void *ignored ) { 460ec: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 460f0: 2f03 movel %d3,%sp@- <== NOT EXECUTED 460f2: 2f02 movel %d2,%sp@- <== NOT EXECUTED Thread_Control *the_thread; Objects_Locations location; ISR_Level level; the_thread = _Thread_Get( id, &location ); 460f4: 486e fffc pea %fp@(-4) <== NOT EXECUTED 460f8: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 460fc: 4eb9 0004 868c jsr 4868c <_Thread_Get> <== NOT EXECUTED switch ( location ) { 46102: 508f addql #8,%sp <== NOT EXECUTED 46104: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 46108: 6642 bnes 4614c <_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 ); 4610a: 223c 0000 0700 movel #1792,%d1 <== NOT EXECUTED 46110: 40c2 movew %sr,%d2 <== NOT EXECUTED 46112: 8282 orl %d2,%d1 <== NOT EXECUTED 46114: 46c1 movew %d1,%sr <== NOT EXECUTED _ISR_Enable( level ); return; } #endif the_thread->Wait.count = 0; 46116: 2040 moveal %d0,%a0 <== NOT EXECUTED 46118: 42a8 0024 clrl %a0@(36) <== NOT EXECUTED if ( _Thread_Is_executing( the_thread ) ) { 4611c: b0b9 0005 e630 cmpl 5e630 <_Per_CPU_Information+0xc>,%d0 <== NOT EXECUTED 46122: 6734 beqs 46158 <_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; 46124: 7606 moveq #6,%d3 <== NOT EXECUTED 46126: 2040 moveal %d0,%a0 <== NOT EXECUTED 46128: 2143 0034 movel %d3,%a0@(52) <== NOT EXECUTED _ISR_Enable( level ); 4612c: 46c2 movew %d2,%sr <== NOT EXECUTED 4612e: 2f3c 1003 fff8 movel #268697592,%sp@- <== NOT EXECUTED 46134: 2f00 movel %d0,%sp@- <== NOT EXECUTED 46136: 4eb9 0004 8280 jsr 48280 <_Thread_Clear_state> <== NOT EXECUTED _Thread_Unblock( the_thread ); _Thread_Unnest_dispatch(); break; 4613c: 508f addql #8,%sp <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; 4613e: 2039 0005 e46c movel 5e46c <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED 46144: 5380 subql #1,%d0 <== NOT EXECUTED 46146: 23c0 0005 e46c movel %d0,5e46c <_Thread_Dispatch_disable_level><== NOT EXECUTED case OBJECTS_REMOTE: /* impossible */ #endif case OBJECTS_ERROR: break; } } 4614c: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 46150: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED 46154: 4e5e unlk %fp <== NOT EXECUTED 46156: 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 ) 46158: 2239 0005 e63e movel 5e63e <_Event_Sync_state>,%d1 <== NOT EXECUTED 4615e: 7601 moveq #1,%d3 <== NOT EXECUTED 46160: b681 cmpl %d1,%d3 <== NOT EXECUTED 46162: 66c0 bnes 46124 <_Event_Timeout+0x38> <== NOT EXECUTED _Event_Sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT; } the_thread->Wait.return_code = RTEMS_TIMEOUT; 46164: 7606 moveq #6,%d3 <== NOT EXECUTED 46166: 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; 46168: 7202 moveq #2,%d1 <== NOT EXECUTED } the_thread->Wait.return_code = RTEMS_TIMEOUT; 4616a: 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; 4616e: 23c1 0005 e63e movel %d1,5e63e <_Event_Sync_state> <== NOT EXECUTED } the_thread->Wait.return_code = RTEMS_TIMEOUT; _ISR_Enable( level ); 46174: 46c2 movew %d2,%sr <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 46176: 2f3c 1003 fff8 movel #268697592,%sp@- <== NOT EXECUTED 4617c: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4617e: 4eb9 0004 8280 jsr 48280 <_Thread_Clear_state> <== NOT EXECUTED _Thread_Unblock( the_thread ); _Thread_Unnest_dispatch(); break; 46184: 508f addql #8,%sp <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; 46186: 2039 0005 e46c movel 5e46c <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED 4618c: 5380 subql #1,%d0 <== NOT EXECUTED 4618e: 23c0 0005 e46c movel %d0,5e46c <_Thread_Dispatch_disable_level><== NOT EXECUTED 46194: 60b6 bras 4614c <_Event_Timeout+0x60> <== NOT EXECUTED ... =============================================================================== 0004bb24 <_Heap_Allocate_aligned_with_boundary>: Heap_Control *heap, uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) { 4bb24: 4e56 ffcc linkw %fp,#-52 4bb28: 226e 000c moveal %fp@(12),%a1 4bb2c: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ 4bb30: 246e 0008 moveal %fp@(8),%a2 Heap_Statistics *const stats = &heap->stats; uintptr_t const block_size_floor = alloc_size + HEAP_BLOCK_HEADER_SIZE 4bb34: 2e09 movel %a1,%d7 4bb36: 5887 addql #4,%d7 - HEAP_ALLOC_BONUS; uintptr_t const page_size = heap->page_size; 4bb38: 202a 0010 movel %a2@(16),%d0 Heap_Control *heap, uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) { 4bb3c: 222e 0010 movel %fp@(16),%d1 4bb40: 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; 4bb44: 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 ) { 4bb48: be89 cmpl %a1,%d7 4bb4a: 6500 014e bcsw 4bc9a <_Heap_Allocate_aligned_with_boundary+0x176> /* Integer overflow occured */ return NULL; } if ( boundary != 0 ) { 4bb4e: 4a84 tstl %d4 4bb50: 6600 0144 bnew 4bc96 <_Heap_Allocate_aligned_with_boundary+0x172> if ( stats->max_search < search_count ) { stats->max_search = search_count; } return (void *) alloc_begin; } 4bb54: 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 ) { 4bb58: b1ca cmpal %a2,%a0 4bb5a: 6700 013e beqw 4bc9a <_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 4bb5e: 242e fffc movel %fp@(-4),%d2 + HEAP_BLOCK_HEADER_SIZE + page_size - 1; uintptr_t alloc_end = block_end + HEAP_ALLOC_BONUS; 4bb62: 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 4bb64: 5e82 addql #7,%d2 + HEAP_BLOCK_HEADER_SIZE + page_size - 1; uintptr_t alloc_end = block_end + HEAP_ALLOC_BONUS; 4bb66: 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 ) { 4bb68: 7601 moveq #1,%d3 4bb6a: 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 4bb6c: 2d42 fff8 movel %d2,%fp@(-8) + HEAP_BLOCK_HEADER_SIZE + page_size - 1; uintptr_t alloc_end = block_end + HEAP_ALLOC_BONUS; 4bb70: 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 ) { 4bb74: 2028 0004 movel %a0@(4),%d0 4bb78: b08b cmpl %a3,%d0 4bb7a: 630e blss 4bb8a <_Heap_Allocate_aligned_with_boundary+0x66> if ( alignment == 0 ) { 4bb7c: 4a81 tstl %d1 4bb7e: 661c bnes 4bb9c <_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; 4bb80: 2408 movel %a0,%d2 4bb82: 5082 addql #8,%d2 } /* Statistics */ ++search_count; if ( alloc_begin != 0 ) { 4bb84: 4a82 tstl %d2 4bb86: 6600 00de bnew 4bc66 <_Heap_Allocate_aligned_with_boundary+0x142> break; } block = block->next; 4bb8a: 2003 movel %d3,%d0 4bb8c: 5280 addql #1,%d0 4bb8e: 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 ) { 4bb92: b1ca cmpal %a2,%a0 4bb94: 6700 0110 beqw 4bca6 <_Heap_Allocate_aligned_with_boundary+0x182> 4bb98: 2600 movel %d0,%d3 <== NOT EXECUTED 4bb9a: 60d8 bras 4bb74 <_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; 4bb9c: 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; 4bb9e: 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; 4bba2: c087 andl %d7,%d0 if ( stats->max_search < search_count ) { stats->max_search = search_count; } return (void *) alloc_begin; } 4bba4: 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; 4bba8: 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; 4bbaa: 2a2e fff8 movel %fp@(-8),%d5 4bbae: 9a8c subl %a4,%d5 uintptr_t alloc_end = block_end + HEAP_ALLOC_BONUS; uintptr_t alloc_begin = alloc_end - alloc_size; 4bbb0: 242e fff4 movel %fp@(-12),%d2 4bbb4: d480 addl %d0,%d2 RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment); 4bbb6: 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 4bbb8: d085 addl %d5,%d0 4bbba: 4c41 6005 remul %d1,%d5,%d6 4bbbe: 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 ) { 4bbc0: b480 cmpl %d0,%d2 4bbc2: 630a blss 4bbce <_Heap_Allocate_aligned_with_boundary+0xaa><== ALWAYS TAKEN 4bbc4: 2a00 movel %d0,%d5 <== NOT EXECUTED 4bbc6: 4c41 5002 remul %d1,%d2,%d5 <== NOT EXECUTED 4bbca: 9082 subl %d2,%d0 <== NOT EXECUTED 4bbcc: 2400 movel %d0,%d2 <== NOT EXECUTED } alloc_end = alloc_begin + alloc_size; /* Ensure boundary constaint */ if ( boundary != 0 ) { 4bbce: 4a84 tstl %d4 4bbd0: 676a beqs 4bc3c <_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; 4bbd2: 2002 movel %d2,%d0 <== NOT EXECUTED 4bbd4: d089 addl %a1,%d0 <== NOT EXECUTED 4bbd6: 2c00 movel %d0,%d6 <== NOT EXECUTED 4bbd8: 4c44 6005 remul %d4,%d5,%d6 <== NOT EXECUTED 4bbdc: 2c00 movel %d0,%d6 <== NOT EXECUTED 4bbde: 9c85 subl %d5,%d6 <== NOT EXECUTED 4bbe0: 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 ) { 4bbe2: bc82 cmpl %d2,%d6 <== NOT EXECUTED 4bbe4: 6356 blss 4bc3c <_Heap_Allocate_aligned_with_boundary+0x118><== NOT EXECUTED 4bbe6: bc80 cmpl %d0,%d6 <== NOT EXECUTED 4bbe8: 6452 bccs 4bc3c <_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; 4bbea: 2c0d movel %a5,%d6 <== NOT EXECUTED 4bbec: 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 ) { 4bbee: ba86 cmpl %d6,%d5 <== NOT EXECUTED 4bbf0: 6598 bcss 4bb8a <_Heap_Allocate_aligned_with_boundary+0x66><== NOT EXECUTED return 0; } alloc_begin = boundary_line - alloc_size; 4bbf2: 2405 movel %d5,%d2 <== NOT EXECUTED 4bbf4: 9489 subl %a1,%d2 <== NOT EXECUTED 4bbf6: 2a02 movel %d2,%d5 <== NOT EXECUTED 4bbf8: 4c41 5000 remul %d1,%d0,%d5 <== NOT EXECUTED 4bbfc: 9480 subl %d0,%d2 <== NOT EXECUTED alloc_begin = _Heap_Align_down( alloc_begin, alignment ); alloc_end = alloc_begin + alloc_size; 4bbfe: 2002 movel %d2,%d0 <== NOT EXECUTED 4bc00: d089 addl %a1,%d0 <== NOT EXECUTED 4bc02: 2e00 movel %d0,%d7 <== NOT EXECUTED 4bc04: 4c44 7005 remul %d4,%d5,%d7 <== NOT EXECUTED 4bc08: 2e00 movel %d0,%d7 <== NOT EXECUTED 4bc0a: 9e85 subl %d5,%d7 <== NOT EXECUTED 4bc0c: 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 ) { 4bc0e: be82 cmpl %d2,%d7 <== NOT EXECUTED 4bc10: 632a blss 4bc3c <_Heap_Allocate_aligned_with_boundary+0x118><== NOT EXECUTED 4bc12: be80 cmpl %d0,%d7 <== NOT EXECUTED 4bc14: 6426 bccs 4bc3c <_Heap_Allocate_aligned_with_boundary+0x118><== NOT EXECUTED if ( boundary_line < boundary_floor ) { 4bc16: ba86 cmpl %d6,%d5 <== NOT EXECUTED 4bc18: 6500 ff70 bcsw 4bb8a <_Heap_Allocate_aligned_with_boundary+0x66><== NOT EXECUTED return 0; } alloc_begin = boundary_line - alloc_size; 4bc1c: 2405 movel %d5,%d2 <== NOT EXECUTED 4bc1e: 9489 subl %a1,%d2 <== NOT EXECUTED 4bc20: 2a02 movel %d2,%d5 <== NOT EXECUTED 4bc22: 4c41 5000 remul %d1,%d0,%d5 <== NOT EXECUTED 4bc26: 9480 subl %d0,%d2 <== NOT EXECUTED alloc_begin = _Heap_Align_down( alloc_begin, alignment ); alloc_end = alloc_begin + alloc_size; 4bc28: 2002 movel %d2,%d0 <== NOT EXECUTED 4bc2a: d089 addl %a1,%d0 <== NOT EXECUTED 4bc2c: 2e00 movel %d0,%d7 <== NOT EXECUTED 4bc2e: 4c44 7005 remul %d4,%d5,%d7 <== NOT EXECUTED 4bc32: 2e00 movel %d0,%d7 <== NOT EXECUTED 4bc34: 9e85 subl %d5,%d7 <== NOT EXECUTED 4bc36: 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 ) { 4bc38: be82 cmpl %d2,%d7 <== NOT EXECUTED 4bc3a: 62d6 bhis 4bc12 <_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 ) { 4bc3c: b48d cmpl %a5,%d2 4bc3e: 6500 ff4a bcsw 4bb8a <_Heap_Allocate_aligned_with_boundary+0x66> 4bc42: 2e2e fffc movel %fp@(-4),%d7 4bc46: 2c02 movel %d2,%d6 4bc48: 70f8 moveq #-8,%d0 4bc4a: 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); 4bc4c: d082 addl %d2,%d0 RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment); 4bc4e: 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; 4bc52: 9085 subl %d5,%d0 if ( free_size >= min_block_size || free_size == 0 ) { 4bc54: b08c cmpl %a4,%d0 4bc56: 6400 ff2c bccw 4bb84 <_Heap_Allocate_aligned_with_boundary+0x60> 4bc5a: 4a80 tstl %d0 <== NOT EXECUTED 4bc5c: 6600 ff2c bnew 4bb8a <_Heap_Allocate_aligned_with_boundary+0x66><== NOT EXECUTED } /* Statistics */ ++search_count; if ( alloc_begin != 0 ) { 4bc60: 4a82 tstl %d2 <== NOT EXECUTED 4bc62: 6700 ff26 beqw 4bb8a <_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 ); 4bc66: 2f09 movel %a1,%sp@- search_again = _Heap_Protection_free_delayed_blocks( heap, alloc_begin ); } while ( search_again ); if ( alloc_begin != 0 ) { /* Statistics */ ++stats->allocs; 4bc68: 52aa 0048 addql #1,%a2@(72) stats->searches += search_count; 4bc6c: d7aa 004c addl %d3,%a2@(76) block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size ); 4bc70: 2f02 movel %d2,%sp@- 4bc72: 2f08 movel %a0,%sp@- 4bc74: 2f0a movel %a2,%sp@- 4bc76: 4eb9 0004 76ea jsr 476ea <_Heap_Block_allocate> 4bc7c: 4fef 0010 lea %sp@(16),%sp 4bc80: 2002 movel %d2,%d0 boundary ); } /* Statistics */ if ( stats->max_search < search_count ) { 4bc82: b6aa 0044 cmpl %a2@(68),%d3 4bc86: 6304 blss 4bc8c <_Heap_Allocate_aligned_with_boundary+0x168> stats->max_search = search_count; 4bc88: 2543 0044 movel %d3,%a2@(68) } return (void *) alloc_begin; } 4bc8c: 4cee 3cfc ffcc moveml %fp@(-52),%d2-%d7/%a2-%a5 4bc92: 4e5e unlk %fp 4bc94: 4e75 rts /* Integer overflow occured */ return NULL; } if ( boundary != 0 ) { if ( boundary < alloc_size ) { 4bc96: b889 cmpl %a1,%d4 <== NOT EXECUTED 4bc98: 6410 bccs 4bcaa <_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 ) { 4bc9a: 4280 clrl %d0 <== NOT EXECUTED if ( stats->max_search < search_count ) { stats->max_search = search_count; } return (void *) alloc_begin; } 4bc9c: 4cee 3cfc ffcc moveml %fp@(-52),%d2-%d7/%a2-%a5 <== NOT EXECUTED 4bca2: 4e5e unlk %fp <== NOT EXECUTED 4bca4: 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 ) { 4bca6: 4280 clrl %d0 4bca8: 60d8 bras 4bc82 <_Heap_Allocate_aligned_with_boundary+0x15e> if ( boundary != 0 ) { if ( boundary < alloc_size ) { return NULL; } if ( alignment == 0 ) { 4bcaa: 4a81 tstl %d1 <== NOT EXECUTED 4bcac: 6600 fea6 bnew 4bb54 <_Heap_Allocate_aligned_with_boundary+0x30><== NOT EXECUTED alignment = page_size; 4bcb0: 2200 movel %d0,%d1 <== NOT EXECUTED 4bcb2: 6000 fea0 braw 4bb54 <_Heap_Allocate_aligned_with_boundary+0x30><== NOT EXECUTED ... =============================================================================== 000476ea <_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; 476ea: 70fe moveq #-2,%d0 Heap_Control *heap, Heap_Block *block, uintptr_t alloc_begin, uintptr_t alloc_size ) { 476ec: 4e56 ffe0 linkw %fp,#-32 476f0: 206e 000c moveal %fp@(12),%a0 476f4: 48d7 3c3c moveml %d2-%d5/%a2-%a5,%sp@ } _Heap_Protection_block_initialize( heap, block ); return block; } 476f8: 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; 476fc: 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; 476fe: c082 andl %d2,%d0 Heap_Control *heap, Heap_Block *block, uintptr_t alloc_begin, uintptr_t alloc_size ) { 47700: 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); 47704: 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; 47708: 2641 moveal %d1,%a3 4770a: 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; 4770c: 2a0b movel %a3,%d5 4770e: 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; 47710: c8ac 0004 andl %a4@(4),%d4 Heap_Control *heap, Heap_Block *block, uintptr_t alloc_begin, uintptr_t alloc_size ) { 47714: 246e 0008 moveal %fp@(8),%a2 47718: 262e 0014 movel %fp@(20),%d3 Heap_Block *free_list_anchor = NULL; _HAssert( alloc_area_begin <= alloc_begin ); if ( _Heap_Is_free( block ) ) { 4771c: 4a84 tstl %d4 4771e: 6600 0090 bnew 477b0 <_Heap_Block_allocate+0xc6> } _Heap_Protection_block_initialize( heap, block ); return block; } 47722: 2828 0008 movel %a0@(8),%d4 { Heap_Block *next = block->next; Heap_Block *prev = block->prev; prev->next = next; next->prev = prev; 47726: 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; 47728: 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; 4772c: 2344 0008 movel %d4,%a1@(8) next->prev = prev; 47730: 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 ); 47734: 91aa 0030 subl %d0,%a2@(48) free_list_anchor = block->prev; _Heap_Free_list_remove( block ); /* Statistics */ --stats->free_blocks; 47738: 53aa 0038 subql #1,%a2@(56) ++stats->used_blocks; 4773c: 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 ) { 47740: 202a 0010 movel %a2@(16),%d0 47744: b085 cmpl %d5,%d0 47746: 6272 bhis 477ba <_Heap_Block_allocate+0xd0> RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment); 47748: 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); 4774c: 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; 4774e: 200b movel %a3,%d0 47750: 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; 47752: 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; 47756: 99cb subal %a3,%a4 _HAssert( new_block_size >= heap->min_block_size ); /* Statistics */ stats->free_size += block_size; if ( _Heap_Is_prev_used( block ) ) { 47758: 0802 0000 btst #0,%d2 4775c: 6774 beqs 477d2 <_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; 4775e: 2a69 0008 moveal %a1@(8),%a5 block = prev_block; block_begin = (uintptr_t) block; block_size += prev_block_size; } block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED; 47762: 7401 moveq #1,%d2 _Heap_Free_list_insert_after( free_list_anchor, block ); free_list_anchor = block; /* Statistics */ ++stats->free_blocks; 47764: 2208 movel %a0,%d1 new_block->next = next; 47766: 214d 0008 movel %a5,%a0@(8) block = prev_block; block_begin = (uintptr_t) block; block_size += prev_block_size; } block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED; 4776a: 8480 orl %d0,%d2 new_block->prev = block_before; 4776c: 2149 000c movel %a1,%a0@(12) block_before->next = new_block; 47770: 2348 0008 movel %a0,%a1@(8) next->prev = new_block; 47774: 2b48 000c movel %a0,%a5@(12) _Heap_Free_list_insert_after( free_list_anchor, block ); free_list_anchor = block; /* Statistics */ ++stats->free_blocks; 47778: 52aa 0038 addql #1,%a2@(56) block = prev_block; block_begin = (uintptr_t) block; block_size += prev_block_size; } block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED; 4777c: 2142 0004 movel %d2,%a0@(4) new_block->prev_size = block_size; 47780: 2680 movel %d0,%a3@ new_block->size_and_flag = new_block_size; 47782: 274c 0004 movel %a4,%a3@(4) _Heap_Block_split( heap, new_block, free_list_anchor, alloc_size ); 47786: 2f03 movel %d3,%sp@- 47788: 2f01 movel %d1,%sp@- 4778a: 2f0b movel %a3,%sp@- 4778c: 2f0a movel %a2,%sp@- 4778e: 4eba fcb0 jsr %pc@(47440 <_Heap_Block_split>) 47792: 4fef 0010 lea %sp@(16),%sp alloc_size ); } /* Statistics */ if ( stats->min_free_size > stats->free_size ) { 47796: 202a 0030 movel %a2@(48),%d0 4779a: b0aa 0034 cmpl %a2@(52),%d0 4779e: 6404 bccs 477a4 <_Heap_Block_allocate+0xba> <== NEVER TAKEN stats->min_free_size = stats->free_size; 477a0: 2540 0034 movel %d0,%a2@(52) } _Heap_Protection_block_initialize( heap, block ); return block; } 477a4: 200b movel %a3,%d0 477a6: 4cee 3c3c ffe0 moveml %fp@(-32),%d2-%d5/%a2-%a5 477ac: 4e5e unlk %fp 477ae: 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 ) { 477b0: 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 ); 477b4: 224a moveal %a2,%a1 <== NOT EXECUTED } if ( alloc_area_offset < heap->page_size ) { 477b6: b085 cmpl %d5,%d0 <== NOT EXECUTED 477b8: 638e blss 47748 <_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 ); 477ba: 2645 moveal %d5,%a3 477bc: 4873 3800 pea %a3@(00000000,%d3:l) 477c0: 2648 moveal %a0,%a3 477c2: 2f09 movel %a1,%sp@- 477c4: 2f08 movel %a0,%sp@- 477c6: 2f0a movel %a2,%sp@- 477c8: 4eba fc76 jsr %pc@(47440 <_Heap_Block_split>) 477cc: 4fef 0010 lea %sp@(16),%sp 477d0: 60c4 bras 47796 <_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); 477d2: 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; 477d4: 74fe moveq #-2,%d2 <== NOT EXECUTED Heap_Block *const prev_block = _Heap_Prev_block( block ); uintptr_t const prev_block_size = _Heap_Block_size( prev_block ); block = prev_block; block_begin = (uintptr_t) block; block_size += prev_block_size; 477d6: 2209 movel %a1,%d1 <== NOT EXECUTED 477d8: c4a8 0004 andl %a0@(4),%d2 <== NOT EXECUTED 477dc: d082 addl %d2,%d0 <== NOT EXECUTED } block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED; 477de: 7401 moveq #1,%d2 <== NOT EXECUTED 477e0: 8480 orl %d0,%d2 <== NOT EXECUTED new_block->prev_size = block_size; 477e2: 2680 movel %d0,%a3@ <== NOT EXECUTED block = prev_block; block_begin = (uintptr_t) block; block_size += prev_block_size; } block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED; 477e4: 2142 0004 movel %d2,%a0@(4) <== NOT EXECUTED new_block->prev_size = block_size; new_block->size_and_flag = new_block_size; 477e8: 274c 0004 movel %a4,%a3@(4) <== NOT EXECUTED _Heap_Block_split( heap, new_block, free_list_anchor, alloc_size ); 477ec: 2f03 movel %d3,%sp@- <== NOT EXECUTED 477ee: 2f01 movel %d1,%sp@- <== NOT EXECUTED 477f0: 2f0b movel %a3,%sp@- <== NOT EXECUTED 477f2: 2f0a movel %a2,%sp@- <== NOT EXECUTED 477f4: 4eba fc4a jsr %pc@(47440 <_Heap_Block_split>) <== NOT EXECUTED 477f8: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 477fc: 6098 bras 47796 <_Heap_Block_allocate+0xac> <== NOT EXECUTED ... =============================================================================== 00047440 <_Heap_Block_split>: Heap_Control *heap, Heap_Block *block, Heap_Block *free_list_anchor, uintptr_t alloc_size ) { 47440: 4e56 ffe4 linkw %fp,#-28 47444: 226e 0008 moveal %fp@(8),%a1 47448: 48d7 1c3c moveml %d2-%d5/%a2-%a4,%sp@ 4744c: 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; 47450: 76fe moveq #-2,%d3 } _Heap_Protection_block_initialize( heap, block ); return block; } 47452: 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; 47456: 2669 0014 moveal %a1@(20),%a3 uintptr_t const min_alloc_size = min_block_size - HEAP_BLOCK_HEADER_SIZE; 4745a: 220b movel %a3,%d1 4745c: 5181 subql #8,%d1 Heap_Control *heap, Heap_Block *block, Heap_Block *free_list_anchor, uintptr_t alloc_size ) { 4745e: 286e 0010 moveal %fp@(16),%a4 Heap_Statistics *const stats = &heap->stats; uintptr_t const page_size = heap->page_size; 47462: 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; 47466: 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; 4746a: 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; 4746c: b280 cmpl %d0,%d1 4746e: 6302 blss 47472 <_Heap_Block_split+0x32> 47470: 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 = 47472: 5080 addql #8,%d0 RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_up( uintptr_t value, uintptr_t alignment ) { uintptr_t remainder = value % alignment; 47474: 2a00 movel %d0,%d5 47476: 4c42 5001 remul %d2,%d1,%d5 if ( remainder != 0 ) { 4747a: 4a81 tstl %d1 4747c: 6766 beqs 474e4 <_Heap_Block_split+0xa4> return value - remainder + alignment; 4747e: d480 addl %d0,%d2 47480: 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; 47482: 2203 movel %d3,%d1 47484: 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); 47486: 41f2 3800 lea %a2@(00000000,%d3:l),%a0 4748a: 9280 subl %d0,%d1 uintptr_t const free_size_limit = min_block_size + HEAP_ALLOC_BONUS; 4748c: 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 ) { 4748e: b7c1 cmpal %d1,%a3 47490: 6264 bhis 474f6 <_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; 47492: 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); 47494: 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; 47498: 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; 4749a: 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; 4749c: 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; 4749e: 70fe moveq #-2,%d0 uintptr_t size ) { uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED; block->size_and_flag = size | flag; 474a0: 8484 orl %d4,%d2 474a2: 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; 474a6: 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; 474aa: 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; 474ae: c2b0 0804 andl %a0@(00000004,%d0:l),%d1 if ( _Heap_Is_used( next_block ) ) { 474b2: 6750 beqs 47504 <_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; 474b4: 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; 474b8: 7001 moveq #1,%d0 new_block->next = next; new_block->prev = block_before; 474ba: 274c 000c movel %a4,%a3@(12) 474be: 8083 orl %d3,%d0 Heap_Block *new_block ) { Heap_Block *next = block_before->next; new_block->next = next; 474c0: 274a 0008 movel %a2,%a3@(8) new_block->prev = block_before; block_before->next = new_block; next->prev = new_block; 474c4: 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; 474c8: 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; 474cc: 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; 474d0: 2740 0004 movel %d0,%a3@(4) next_block->prev_size = free_block_size; next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; 474d4: 70fe moveq #-2,%d0 474d6: 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; 474da: 2083 movel %d3,%a0@ _Heap_Protection_block_initialize( heap, free_block ); } else { next_block->size_and_flag |= HEAP_PREV_BLOCK_USED; } } 474dc: 4cd7 1c3c moveml %sp@,%d2-%d5/%a2-%a4 474e0: 4e5e unlk %fp 474e2: 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; 474e4: 2203 movel %d3,%d1 474e6: 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); 474e8: 41f2 3800 lea %a2@(00000000,%d3:l),%a0 uintptr_t remainder = value % alignment; if ( remainder != 0 ) { return value - remainder + alignment; } else { return value; 474ec: 2400 movel %d0,%d2 474ee: 9280 subl %d0,%d1 uintptr_t const free_size_limit = min_block_size + HEAP_ALLOC_BONUS; 474f0: 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 ) { 474f2: b7c1 cmpal %d1,%a3 474f4: 639c blss 47492 <_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; 474f6: 7001 moveq #1,%d0 } } 474f8: 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; 474fc: 81a8 0004 orl %d0,%a0@(4) } } 47500: 4e5e unlk %fp 47502: 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; 47504: 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; 47506: 7001 moveq #1,%d0 <== NOT EXECUTED } _Heap_Protection_block_initialize( heap, block ); return block; } 47508: 2268 0008 moveal %a0@(8),%a1 <== NOT EXECUTED 4750c: 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); 47510: 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; 47514: 8083 orl %d3,%d0 <== NOT EXECUTED ) { Heap_Block *next = old_block->next; Heap_Block *prev = old_block->prev; new_block->next = next; 47516: 2749 0008 movel %a1,%a3@(8) <== NOT EXECUTED new_block->prev = prev; 4751a: 274a 000c movel %a2,%a3@(12) <== NOT EXECUTED 4751e: 2740 0004 movel %d0,%a3@(4) <== NOT EXECUTED next_block->prev_size = free_block_size; next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; 47522: 70fe moveq #-2,%d0 <== NOT EXECUTED next->prev = new_block; prev->next = new_block; 47524: 254b 0008 movel %a3,%a2@(8) <== NOT EXECUTED 47528: 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; 4752c: 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; 47530: 2083 movel %d3,%a0@ <== NOT EXECUTED 47532: 60a8 bras 474dc <_Heap_Block_split+0x9c> <== NOT EXECUTED =============================================================================== 0004bfe0 <_Heap_Extend>: Heap_Control *heap, void *extend_area_begin_ptr, uintptr_t extend_area_size, uintptr_t *extended_size_ptr ) { 4bfe0: 4e56 ffcc linkw %fp,#-52 <== NOT EXECUTED 4bfe4: 202e 0010 movel %fp@(16),%d0 <== NOT EXECUTED 4bfe8: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ <== NOT EXECUTED 4bfec: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 4bff0: 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; 4bff4: 2602 movel %d2,%d3 <== NOT EXECUTED 4bff6: 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; 4bff8: 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; 4bffc: 282a 0010 movel %a2@(16),%d4 <== NOT EXECUTED uintptr_t const min_block_size = heap->min_block_size; 4c000: 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; 4c004: 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; 4c008: 42ae fffc clrl %fp@(-4) <== NOT EXECUTED Heap_Block *extend_last_block = NULL; 4c00c: 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 ) { 4c010: b682 cmpl %d2,%d3 <== NOT EXECUTED 4c012: 640c bccs 4c020 <_Heap_Extend+0x40> <== NOT EXECUTED if ( extended_size_ptr != NULL ) *extended_size_ptr = extended_size; return true; } 4c014: 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; 4c01a: 4200 clrb %d0 <== NOT EXECUTED if ( extended_size_ptr != NULL ) *extended_size_ptr = extended_size; return true; } 4c01c: 4e5e unlk %fp <== NOT EXECUTED 4c01e: 4e75 rts <== NOT EXECUTED if ( extend_area_end < extend_area_begin ) { return false; } extend_area_ok = _Heap_Get_first_and_last_block( 4c020: 486e fff8 pea %fp@(-8) <== NOT EXECUTED 4c024: 486e fffc pea %fp@(-4) <== NOT EXECUTED 4c028: 2f01 movel %d1,%sp@- <== NOT EXECUTED 4c02a: 2f04 movel %d4,%sp@- <== NOT EXECUTED 4c02c: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4c02e: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4c030: 4eb9 0004 7880 jsr 47880 <_Heap_Get_first_and_last_block> <== NOT EXECUTED page_size, min_block_size, &extend_first_block, &extend_last_block ); if (!extend_area_ok ) { 4c036: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED 4c03a: 4a00 tstb %d0 <== NOT EXECUTED 4c03c: 67d6 beqs 4c014 <_Heap_Extend+0x34> <== NOT EXECUTED 4c03e: 2045 moveal %d5,%a0 <== NOT EXECUTED 4c040: 9bcd subal %a5,%a5 <== NOT EXECUTED 4c042: 97cb subal %a3,%a3 <== NOT EXECUTED 4c044: 99cc subal %a4,%a4 <== NOT EXECUTED 4c046: 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; 4c04a: ba88 cmpl %a0,%d5 <== NOT EXECUTED 4c04c: 6700 014a beqw 4c198 <_Heap_Extend+0x1b8> <== NOT EXECUTED 4c050: 2208 movel %a0,%d1 <== NOT EXECUTED uintptr_t const sub_area_end = start_block->prev_size; 4c052: 2010 movel %a0@,%d0 <== NOT EXECUTED Heap_Block *const end_block = _Heap_Block_of_alloc_area( sub_area_end, page_size ); if ( 4c054: b082 cmpl %d2,%d0 <== NOT EXECUTED 4c056: 6304 blss 4c05c <_Heap_Extend+0x7c> <== NOT EXECUTED sub_area_end > extend_area_begin && extend_area_end > sub_area_begin 4c058: b681 cmpl %d1,%d3 <== NOT EXECUTED 4c05a: 62b8 bhis 4c014 <_Heap_Extend+0x34> <== NOT EXECUTED ) { return false; } if ( extend_area_end == sub_area_begin ) { 4c05c: b681 cmpl %d1,%d3 <== NOT EXECUTED 4c05e: 6700 0132 beqw 4c192 <_Heap_Extend+0x1b2> <== NOT EXECUTED merge_below_block = start_block; } else if ( extend_area_end < sub_area_end ) { 4c062: b083 cmpl %d3,%d0 <== NOT EXECUTED 4c064: 6304 blss 4c06a <_Heap_Extend+0x8a> <== NOT EXECUTED 4c066: 2d48 fff4 movel %a0,%fp@(-12) <== NOT EXECUTED 4c06a: 2e00 movel %d0,%d7 <== NOT EXECUTED 4c06c: 2240 moveal %d0,%a1 <== NOT EXECUTED 4c06e: 5189 subql #8,%a1 <== NOT EXECUTED 4c070: 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); 4c074: 93c1 subal %d1,%a1 <== NOT EXECUTED link_below_block = start_block; } if ( sub_area_end == extend_area_begin ) { 4c076: b480 cmpl %d0,%d2 <== NOT EXECUTED 4c078: 6700 0100 beqw 4c17a <_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 ) { 4c07c: b082 cmpl %d2,%d0 <== NOT EXECUTED 4c07e: 6402 bccs 4c082 <_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 ) 4c080: 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; 4c082: 70fe moveq #-2,%d0 <== NOT EXECUTED 4c084: 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); 4c088: 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 ); 4c08c: b1c5 cmpal %d5,%a0 <== NOT EXECUTED 4c08e: 66ba bnes 4c04a <_Heap_Extend+0x6a> <== NOT EXECUTED if ( extend_area_begin < heap->area_begin ) { 4c090: b4aa 0018 cmpl %a2@(24),%d2 <== NOT EXECUTED 4c094: 6500 010a bcsw 4c1a0 <_Heap_Extend+0x1c0> <== NOT EXECUTED heap->area_begin = extend_area_begin; } else if ( heap->area_end < extend_area_end ) { 4c098: b6aa 001c cmpl %a2@(28),%d3 <== NOT EXECUTED 4c09c: 6304 blss 4c0a2 <_Heap_Extend+0xc2> <== NOT EXECUTED heap->area_end = extend_area_end; 4c09e: 2543 001c movel %d3,%a2@(28) <== NOT EXECUTED } extend_first_block_size = (uintptr_t) extend_last_block - (uintptr_t) extend_first_block; 4c0a2: 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 = 4c0a6: 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; 4c0a8: 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; 4c0aa: 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 = 4c0ae: 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; 4c0b0: 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; 4c0b2: 2083 movel %d3,%a0@ <== NOT EXECUTED extend_first_block->size_and_flag = extend_first_block_size | HEAP_PREV_BLOCK_USED; 4c0b4: 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; 4c0b8: 2280 movel %d0,%a1@ <== NOT EXECUTED extend_last_block->size_and_flag = 0; 4c0ba: 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 ) { 4c0be: b1ea 0020 cmpal %a2@(32),%a0 <== NOT EXECUTED 4c0c2: 6400 0104 bccw 4c1c8 <_Heap_Extend+0x1e8> <== NOT EXECUTED heap->first_block = extend_first_block; 4c0c6: 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 ) { 4c0ca: 4a8c tstl %a4 <== NOT EXECUTED 4c0cc: 6700 0148 beqw 4c216 <_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; 4c0d0: 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 ); 4c0d4: 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; 4c0d6: 2802 movel %d2,%d4 <== NOT EXECUTED 4c0d8: 4c40 4001 remul %d0,%d1,%d4 <== NOT EXECUTED if ( remainder != 0 ) { 4c0dc: 4a81 tstl %d1 <== NOT EXECUTED 4c0de: 6704 beqs 4c0e4 <_Heap_Extend+0x104> <== NOT EXECUTED return value - remainder + alignment; 4c0e0: d480 addl %d0,%d2 <== NOT EXECUTED 4c0e2: 9481 subl %d1,%d2 <== NOT EXECUTED uintptr_t const new_first_block_begin = 4c0e4: 2042 moveal %d2,%a0 <== NOT EXECUTED 4c0e6: 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 = 4c0e8: 200c movel %a4,%d0 <== NOT EXECUTED 4c0ea: 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; 4c0ec: 7201 moveq #1,%d1 <== NOT EXECUTED 4c0ee: 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; 4c0f0: 2094 movel %a4@,%a0@ <== NOT EXECUTED new_first_block->size_and_flag = new_first_block_size | HEAP_PREV_BLOCK_USED; 4c0f2: 2141 0004 movel %d1,%a0@(4) <== NOT EXECUTED _Heap_Free_block( heap, new_first_block ); 4c0f6: 2f08 movel %a0,%sp@- <== NOT EXECUTED 4c0f8: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4c0fa: 4eba fec8 jsr %pc@(4bfc4 <_Heap_Free_block>) <== NOT EXECUTED 4c0fe: 508f addql #8,%sp <== NOT EXECUTED link_below_block, extend_last_block ); } if ( merge_above_block != NULL ) { 4c100: 4a8b tstl %a3 <== NOT EXECUTED 4c102: 6700 00d4 beqw 4c1d8 <_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, 4c106: 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( 4c108: 968b subl %a3,%d3 <== NOT EXECUTED RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment); 4c10a: 2203 movel %d3,%d1 <== NOT EXECUTED 4c10c: 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; 4c112: 7201 moveq #1,%d1 <== NOT EXECUTED 4c114: 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) 4c116: 202b 0004 movel %a3@(4),%d0 <== NOT EXECUTED 4c11a: 9083 subl %d3,%d0 <== NOT EXECUTED | HEAP_PREV_BLOCK_USED; 4c11c: 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; 4c11e: 7001 moveq #1,%d0 <== NOT EXECUTED 4c120: 2781 3804 movel %d1,%a3@(00000004,%d3:l) <== NOT EXECUTED 4c124: c0ab 0004 andl %a3@(4),%d0 <== NOT EXECUTED block->size_and_flag = size | flag; 4c128: 8680 orl %d0,%d3 <== NOT EXECUTED 4c12a: 2743 0004 movel %d3,%a3@(4) <== NOT EXECUTED _Heap_Block_set_size( last_block, last_block_new_size ); _Heap_Free_block( heap, last_block ); 4c12e: 2f0b movel %a3,%sp@- <== NOT EXECUTED 4c130: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4c132: 4eba fe90 jsr %pc@(4bfc4 <_Heap_Free_block>) <== NOT EXECUTED 4c136: 508f addql #8,%sp <== NOT EXECUTED extend_first_block, extend_last_block ); } if ( merge_below_block == NULL && merge_above_block == NULL ) { 4c138: 4a8c tstl %a4 <== NOT EXECUTED 4c13a: 6700 00c4 beqw 4c200 <_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; 4c13e: 202a 0030 movel %a2@(48),%d0 <== NOT EXECUTED 4c142: 9086 subl %d6,%d0 <== NOT EXECUTED 4c144: 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; 4c146: 7001 moveq #1,%d0 <== NOT EXECUTED if ( extended_size_ptr != NULL ) *extended_size_ptr = extended_size; return true; } 4c148: 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( 4c14c: 222a 0020 movel %a2@(32),%d1 <== NOT EXECUTED 4c150: 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; 4c152: c0a8 0004 andl %a0@(4),%d0 <== NOT EXECUTED block->size_and_flag = size | flag; 4c156: 8280 orl %d0,%d1 <== NOT EXECUTED 4c158: 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; 4c15c: ddaa 002c addl %d6,%a2@(44) <== NOT EXECUTED if ( extended_size_ptr != NULL ) 4c160: 4aae 0014 tstl %fp@(20) <== NOT EXECUTED 4c164: 6700 00ca beqw 4c230 <_Heap_Extend+0x250> <== NOT EXECUTED *extended_size_ptr = extended_size; 4c168: 206e 0014 moveal %fp@(20),%a0 <== NOT EXECUTED 4c16c: 2086 movel %d6,%a0@ <== NOT EXECUTED return true; } 4c16e: 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; 4c174: 7001 moveq #1,%d0 <== NOT EXECUTED } 4c176: 4e5e unlk %fp <== NOT EXECUTED 4c178: 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; 4c17a: 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 ) 4c17c: 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; 4c17e: 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; 4c182: 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); 4c184: 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 ); 4c188: b1c5 cmpal %d5,%a0 <== NOT EXECUTED 4c18a: 6600 febe bnew 4c04a <_Heap_Extend+0x6a> <== NOT EXECUTED 4c18e: 6000 ff00 braw 4c090 <_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 ) { 4c192: 2848 moveal %a0,%a4 <== NOT EXECUTED 4c194: 6000 fed4 braw 4c06a <_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; 4c198: 222a 0018 movel %a2@(24),%d1 <== NOT EXECUTED 4c19c: 6000 feb4 braw 4c052 <_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; 4c1a0: 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 = 4c1a4: 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; 4c1a6: 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; 4c1a8: 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 = 4c1ac: 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; 4c1ae: 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; 4c1b2: 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; 4c1b4: 2083 movel %d3,%a0@ <== NOT EXECUTED extend_first_block->size_and_flag = extend_first_block_size | HEAP_PREV_BLOCK_USED; 4c1b6: 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; 4c1ba: 2280 movel %d0,%a1@ <== NOT EXECUTED extend_last_block->size_and_flag = 0; 4c1bc: 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 ) { 4c1c0: b1ea 0020 cmpal %a2@(32),%a0 <== NOT EXECUTED 4c1c4: 6500 ff00 bcsw 4c0c6 <_Heap_Extend+0xe6> <== NOT EXECUTED heap->first_block = extend_first_block; } else if ( (uintptr_t) extend_last_block > (uintptr_t) heap->last_block ) { 4c1c8: b3ea 0024 cmpal %a2@(36),%a1 <== NOT EXECUTED 4c1cc: 6300 fefc blsw 4c0ca <_Heap_Extend+0xea> <== NOT EXECUTED heap->last_block = extend_last_block; 4c1d0: 2549 0024 movel %a1,%a2@(36) <== NOT EXECUTED 4c1d4: 6000 fef4 braw 4c0ca <_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 ) { 4c1d8: 4a8d tstl %a5 <== NOT EXECUTED 4c1da: 6700 ff5c beqw 4c138 <_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; 4c1de: 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 ); 4c1e0: 222e fffc movel %fp@(-4),%d1 <== NOT EXECUTED 4c1e4: 928d subl %a5,%d1 <== NOT EXECUTED 4c1e6: 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( 4c1ea: 206e fff8 moveal %fp@(-8),%a0 <== NOT EXECUTED block->size_and_flag = size | flag; 4c1ee: 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; 4c1f0: 7001 moveq #1,%d0 <== NOT EXECUTED 4c1f2: 2b41 0004 movel %d1,%a5@(4) <== NOT EXECUTED 4c1f6: 81a8 0004 orl %d0,%a0@(4) <== NOT EXECUTED extend_first_block, extend_last_block ); } if ( merge_below_block == NULL && merge_above_block == NULL ) { 4c1fa: 4a8c tstl %a4 <== NOT EXECUTED 4c1fc: 6600 ff40 bnew 4c13e <_Heap_Extend+0x15e> <== NOT EXECUTED 4c200: 4a8b tstl %a3 <== NOT EXECUTED 4c202: 6600 ff3a bnew 4c13e <_Heap_Extend+0x15e> <== NOT EXECUTED _Heap_Free_block( heap, extend_first_block ); 4c206: 2f2e fffc movel %fp@(-4),%sp@- <== NOT EXECUTED 4c20a: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4c20c: 4eba fdb6 jsr %pc@(4bfc4 <_Heap_Free_block>) <== NOT EXECUTED 4c210: 508f addql #8,%sp <== NOT EXECUTED 4c212: 6000 ff2a braw 4c13e <_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 ) { 4c216: 4aae fff4 tstl %fp@(-12) <== NOT EXECUTED 4c21a: 6700 fee4 beqw 4c100 <_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; 4c21e: 202e fff4 movel %fp@(-12),%d0 <== NOT EXECUTED 4c222: 7201 moveq #1,%d1 <== NOT EXECUTED 4c224: 9089 subl %a1,%d0 <== NOT EXECUTED 4c226: 8280 orl %d0,%d1 <== NOT EXECUTED 4c228: 2341 0004 movel %d1,%a1@(4) <== NOT EXECUTED 4c22c: 6000 fed2 braw 4c100 <_Heap_Extend+0x120> <== NOT EXECUTED if ( extended_size_ptr != NULL ) *extended_size_ptr = extended_size; return true; } 4c230: 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; 4c236: 7001 moveq #1,%d0 <== NOT EXECUTED } 4c238: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 0004bcb8 <_Heap_Free>: return do_free; } #endif bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr ) { 4bcb8: 4e56 ffe8 linkw %fp,#-24 4bcbc: 202e 000c movel %fp@(12),%d0 4bcc0: 2040 moveal %d0,%a0 4bcc2: 5188 subql #8,%a0 4bcc4: 226e 0008 moveal %fp@(8),%a1 4bcc8: 4c69 0001 0010 remul %a1@(16),%d1,%d0 4bcce: 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 4bcd2: 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); 4bcd6: 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; 4bcd8: b088 cmpl %a0,%d0 4bcda: 6200 0098 bhiw 4bd74 <_Heap_Free+0xbc> 4bcde: 2229 0024 movel %a1@(36),%d1 4bce2: b288 cmpl %a0,%d1 4bce4: 6500 008e bcsw 4bd74 <_Heap_Free+0xbc> --stats->used_blocks; ++stats->frees; stats->free_size += block_size; return( true ); } 4bce8: 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; 4bcec: 74fe moveq #-2,%d2 4bcee: 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); 4bcf0: 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; 4bcf4: b5c0 cmpal %d0,%a2 4bcf6: 657c bcss 4bd74 <_Heap_Free+0xbc> <== NEVER TAKEN 4bcf8: b5c1 cmpal %d1,%a2 4bcfa: 6278 bhis 4bd74 <_Heap_Free+0xbc> <== NEVER TAKEN 4bcfc: 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 ) ) { 4bd00: 0804 0000 btst #0,%d4 4bd04: 676e beqs 4bd74 <_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; 4bd06: 7afe moveq #-2,%d5 4bd08: 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 )); 4bd0a: b5c1 cmpal %d1,%a2 4bd0c: 6700 00f6 beqw 4be04 <_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; 4bd10: 7a01 moveq #1,%d5 4bd12: cab2 4804 andl %a2@(00000004,%d4:l),%d5 return do_free; } #endif bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr ) 4bd16: 57c5 seq %d5 4bd18: 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 ) ) { 4bd1a: 0803 0000 btst #0,%d3 4bd1e: 665e bnes 4bd7e <_Heap_Free+0xc6> uintptr_t const prev_size = block->prev_size; 4bd20: 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); 4bd22: 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; 4bd24: b1c0 cmpal %d0,%a0 4bd26: 654c bcss 4bd74 <_Heap_Free+0xbc> <== NEVER TAKEN 4bd28: b1c1 cmpal %d1,%a0 4bd2a: 6248 bhis 4bd74 <_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; 4bd2c: 7001 moveq #1,%d0 4bd2e: 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) ) { 4bd32: 6740 beqs 4bd74 <_Heap_Free+0xbc> <== NEVER TAKEN _HAssert( false ); return( false ); } if ( next_is_free ) { /* coalesce both */ 4bd34: 4a05 tstb %d5 4bd36: 6700 00d2 beqw 4be0a <_Heap_Free+0x152> --stats->used_blocks; ++stats->frees; stats->free_size += block_size; return( true ); } 4bd3a: 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; 4bd3e: d882 addl %d2,%d4 <== NOT EXECUTED 4bd40: 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; 4bd42: 7001 moveq #1,%d0 <== NOT EXECUTED --stats->used_blocks; ++stats->frees; stats->free_size += block_size; return( true ); } 4bd44: 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; 4bd48: 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; 4bd4c: 8083 orl %d3,%d0 <== NOT EXECUTED next->prev = prev; 4bd4e: 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; 4bd52: 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; 4bd56: 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; 4bd5a: 2140 0004 movel %d0,%a0@(4) <== NOT EXECUTED stats->max_free_blocks = stats->free_blocks; } } /* Statistics */ --stats->used_blocks; 4bd5e: 53a9 0040 subql #1,%a1@(64) <== NOT EXECUTED ++stats->frees; 4bd62: 52a9 0050 addql #1,%a1@(80) <== NOT EXECUTED stats->free_size += block_size; 4bd66: d5a9 0030 addl %d2,%a1@(48) <== NOT EXECUTED return( true ); 4bd6a: 7001 moveq #1,%d0 <== NOT EXECUTED } 4bd6c: 4cd7 0c3c moveml %sp@,%d2-%d5/%a2-%a3 4bd70: 4e5e unlk %fp 4bd72: 4e75 rts 4bd74: 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 ); 4bd78: 4200 clrb %d0 <== NOT EXECUTED --stats->used_blocks; ++stats->frees; stats->free_size += block_size; return( true ); } 4bd7a: 4e5e unlk %fp <== NOT EXECUTED 4bd7c: 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 */ 4bd7e: 4a05 tstb %d5 4bd80: 6736 beqs 4bdb8 <_Heap_Free+0x100> --stats->used_blocks; ++stats->frees; stats->free_size += block_size; return( true ); } 4bd82: 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; 4bd86: d882 addl %d2,%d4 _Heap_Free_list_replace( next_block, block ); block->size_and_flag = size | HEAP_PREV_BLOCK_USED; 4bd88: 7001 moveq #1,%d0 --stats->used_blocks; ++stats->frees; stats->free_size += block_size; return( true ); } 4bd8a: 246a 000c moveal %a2@(12),%a2 ) { Heap_Block *next = old_block->next; Heap_Block *prev = old_block->prev; new_block->next = next; 4bd8e: 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; 4bd92: 8084 orl %d4,%d0 new_block->prev = prev; 4bd94: 214a 000c movel %a2,%a0@(12) next_block = _Heap_Block_at( block, size ); next_block->prev_size = size; 4bd98: 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; 4bd9c: 2140 0004 movel %d0,%a0@(4) /* Statistics */ --stats->used_blocks; ++stats->frees; stats->free_size += block_size; return( true ); 4bda0: 7001 moveq #1,%d0 next->prev = new_block; prev->next = new_block; 4bda2: 2548 0008 movel %a0,%a2@(8) Heap_Block *prev = old_block->prev; new_block->next = next; new_block->prev = prev; next->prev = new_block; 4bda6: 2748 000c movel %a0,%a3@(12) stats->max_free_blocks = stats->free_blocks; } } /* Statistics */ --stats->used_blocks; 4bdaa: 53a9 0040 subql #1,%a1@(64) ++stats->frees; 4bdae: 52a9 0050 addql #1,%a1@(80) stats->free_size += block_size; 4bdb2: d5a9 0030 addl %d2,%a1@(48) 4bdb6: 60b4 bras 4bd6c <_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; 4bdb8: 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; 4bdbc: 7201 moveq #1,%d1 next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; 4bdbe: 7afe moveq #-2,%d5 next_block->prev_size = block_size; /* Statistics */ ++stats->free_blocks; 4bdc0: 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; 4bdc2: 2669 0008 moveal %a1@(8),%a3 new_block->next = next; new_block->prev = block_before; 4bdc6: 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; 4bdca: 8282 orl %d2,%d1 Heap_Block *new_block ) { Heap_Block *next = block_before->next; new_block->next = next; 4bdcc: 214b 0008 movel %a3,%a0@(8) 4bdd0: 2141 0004 movel %d1,%a0@(4) next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; 4bdd4: cbaa 0004 andl %d5,%a2@(4) new_block->prev = block_before; block_before->next = new_block; next->prev = new_block; 4bdd8: 2748 000c movel %a0,%a3@(12) next_block->prev_size = block_size; 4bddc: 2482 movel %d2,%a2@ { Heap_Block *next = block_before->next; new_block->next = next; new_block->prev = block_before; block_before->next = new_block; 4bdde: 2348 0008 movel %a0,%a1@(8) /* Statistics */ ++stats->free_blocks; 4bde2: 2340 0038 movel %d0,%a1@(56) if ( stats->max_free_blocks < stats->free_blocks ) { 4bde6: b0a9 003c cmpl %a1@(60),%d0 4bdea: 6300 ff72 blsw 4bd5e <_Heap_Free+0xa6> stats->max_free_blocks = stats->free_blocks; } } /* Statistics */ --stats->used_blocks; 4bdee: 53a9 0040 subql #1,%a1@(64) ++stats->frees; 4bdf2: 52a9 0050 addql #1,%a1@(80) stats->free_size += block_size; 4bdf6: 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; 4bdfa: 2340 003c movel %d0,%a1@(60) /* Statistics */ --stats->used_blocks; ++stats->frees; stats->free_size += block_size; return( true ); 4bdfe: 7001 moveq #1,%d0 4be00: 6000 ff6a braw 4bd6c <_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 )); 4be04: 4205 clrb %d5 <== NOT EXECUTED 4be06: 6000 ff12 braw 4bd1a <_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; 4be0a: d682 addl %d2,%d3 prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED; 4be0c: 7201 moveq #1,%d1 next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; 4be0e: 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; 4be10: 8283 orl %d3,%d1 next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; next_block->prev_size = size; 4be12: 2483 movel %d3,%a2@ /* Statistics */ --stats->used_blocks; ++stats->frees; stats->free_size += block_size; return( true ); 4be14: 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; 4be16: 2141 0004 movel %d1,%a0@(4) next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; 4be1a: cbaa 0004 andl %d5,%a2@(4) stats->max_free_blocks = stats->free_blocks; } } /* Statistics */ --stats->used_blocks; 4be1e: 53a9 0040 subql #1,%a1@(64) ++stats->frees; 4be22: 52a9 0050 addql #1,%a1@(80) stats->free_size += block_size; 4be26: d5a9 0030 addl %d2,%a1@(48) 4be2a: 6000 ff40 braw 4bd6c <_Heap_Free+0xb4> ... =============================================================================== 0004bfc4 <_Heap_Free_block>: #include #include #include static void _Heap_Free_block( Heap_Control *heap, Heap_Block *block ) { 4bfc4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4bfc8: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED Heap_Statistics *const stats = &heap->stats; /* Statistics */ ++stats->used_blocks; 4bfcc: 52a8 0040 addql #1,%a0@(64) <== NOT EXECUTED --stats->frees; 4bfd0: 53a8 0050 subql #1,%a0@(80) <== NOT EXECUTED _Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( block )); 4bfd4: 50ae 000c addql #8,%fp@(12) <== NOT EXECUTED } 4bfd8: 4e5e unlk %fp <== NOT EXECUTED /* Statistics */ ++stats->used_blocks; --stats->frees; _Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( block )); 4bfda: 4ef9 0004 c23c jmp 4c23c <_Heap_Free> <== NOT EXECUTED =============================================================================== 00047534 <_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 ) { 47534: 4e56 fff0 linkw %fp,#-16 47538: 222e 0008 movel %fp@(8),%d1 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 ); 4753c: 2001 movel %d1,%d0 4753e: 5080 addql #8,%d0 uintptr_t page_size, uintptr_t min_block_size, Heap_Block **first_block_ptr, Heap_Block **last_block_ptr ) { 47540: 48d7 003c moveml %d2-%d5,%sp@ 47544: 242e 0010 movel %fp@(16),%d2 RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_up( uintptr_t value, uintptr_t alignment ) { uintptr_t remainder = value % alignment; 47548: 2a00 movel %d0,%d5 4754a: 262e 000c movel %fp@(12),%d3 uintptr_t const heap_area_end = heap_area_begin + heap_area_size; 4754e: 2043 moveal %d3,%a0 47550: d1c1 addal %d1,%a0 47552: 4c42 5004 remul %d2,%d4,%d5 if ( remainder != 0 ) { 47556: 4a84 tstl %d4 47558: 6704 beqs 4755e <_Heap_Get_first_and_last_block+0x2a><== ALWAYS TAKEN return value - remainder + alignment; 4755a: d082 addl %d2,%d0 <== NOT EXECUTED 4755c: 9084 subl %d4,%d0 <== 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 ( 4755e: b1c1 cmpal %d1,%a0 47560: 6532 bcss 47594 <_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); 47562: 2040 moveal %d0,%a0 47564: 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 = 47566: 9081 subl %d1,%d0 Heap_Block *const last_block = _Heap_Block_at( first_block, first_block_size ); if ( heap_area_end < heap_area_begin || heap_area_size <= overhead 47568: b083 cmpl %d3,%d0 4756a: 6428 bccs 47594 <_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 ); 4756c: 9680 subl %d0,%d3 RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment); 4756e: 2203 movel %d3,%d1 47570: 4c42 1000 remul %d2,%d0,%d1 47574: 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 47576: b6ae 0014 cmpl %fp@(20),%d3 4757a: 6518 bcss 47594 <_Heap_Get_first_and_last_block+0x60><== NEVER TAKEN ) { /* Invalid area or area too small */ return false; } *first_block_ptr = first_block; 4757c: 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); 47580: d688 addl %a0,%d3 47582: 2288 movel %a0,%a1@ 47584: 226e 001c moveal %fp@(28),%a1 47588: 2283 movel %d3,%a1@ *last_block_ptr = last_block; return true; } 4758a: 4cd7 003c moveml %sp@,%d2-%d5 } *first_block_ptr = first_block; *last_block_ptr = last_block; return true; 4758e: 7001 moveq #1,%d0 } 47590: 4e5e unlk %fp 47592: 4e75 rts 47594: 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; 47598: 4200 clrb %d0 *first_block_ptr = first_block; *last_block_ptr = last_block; return true; } 4759a: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00050e08 <_Heap_Get_free_information>: void _Heap_Get_free_information( Heap_Control *the_heap, Heap_Information *info ) { 50e08: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 50e0c: 48d7 0c0c moveml %d2-%d3/%a2-%a3,%sp@ <== NOT EXECUTED 50e10: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED 50e14: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED info->number++; info->total += the_size; if ( info->largest < the_size ) info->largest = the_size; } } 50e18: 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; 50e1c: 4292 clrl %a2@ <== NOT EXECUTED info->largest = 0; 50e1e: 42aa 0004 clrl %a2@(4) <== NOT EXECUTED info->total = 0; 50e22: 42aa 0008 clrl %a2@(8) <== NOT EXECUTED for(the_block = _Heap_Free_list_first(the_heap); 50e26: b1cb cmpal %a3,%a0 <== NOT EXECUTED 50e28: 6732 beqs 50e5c <_Heap_Get_free_information+0x54><== NOT EXECUTED 50e2a: 327c 0001 moveaw #1,%a1 <== NOT EXECUTED 50e2e: 4282 clrl %d2 <== NOT EXECUTED 50e30: 4281 clrl %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; 50e32: 70fe moveq #-2,%d0 <== NOT EXECUTED the_block != tail; the_block = the_block->next) 50e34: 2609 movel %a1,%d3 <== NOT EXECUTED 50e36: 5283 addql #1,%d3 <== NOT EXECUTED 50e38: 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; 50e3c: d280 addl %d0,%d1 <== NOT EXECUTED if ( info->largest < the_size ) 50e3e: b480 cmpl %d0,%d2 <== NOT EXECUTED 50e40: 6404 bccs 50e46 <_Heap_Get_free_information+0x3e><== NOT EXECUTED info->largest = the_size; 50e42: 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) 50e46: 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); 50e4a: b1cb cmpal %a3,%a0 <== NOT EXECUTED 50e4c: 6708 beqs 50e56 <_Heap_Get_free_information+0x4e><== NOT EXECUTED 50e4e: 242a 0004 movel %a2@(4),%d2 <== NOT EXECUTED 50e52: 2243 moveal %d3,%a1 <== NOT EXECUTED 50e54: 60dc bras 50e32 <_Heap_Get_free_information+0x2a><== NOT EXECUTED 50e56: 2489 movel %a1,%a2@ <== NOT EXECUTED 50e58: 2541 0008 movel %d1,%a2@(8) <== NOT EXECUTED info->number++; info->total += the_size; if ( info->largest < the_size ) info->largest = the_size; } } 50e5c: 4cd7 0c0c moveml %sp@,%d2-%d3/%a2-%a3 <== NOT EXECUTED 50e60: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 0004c928 <_Heap_Get_information>: void _Heap_Get_information( Heap_Control *the_heap, Heap_Information_block *the_info ) { 4c928: 4e56 fff0 linkw %fp,#-16 4c92c: 226e 0008 moveal %fp@(8),%a1 4c930: 48d7 041c moveml %d2-%d4/%a2,%sp@ 4c934: 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)); 4c938: 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; 4c93a: 2469 0020 moveal %a1@(32),%a2 Heap_Block *const end = the_heap->last_block; 4c93e: 2429 0024 movel %a1@(36),%d2 memset(the_info, 0, sizeof(*the_info)); 4c942: 4298 clrl %a0@+ 4c944: 4298 clrl %a0@+ 4c946: 4298 clrl %a0@+ 4c948: 4298 clrl %a0@+ 4c94a: 4298 clrl %a0@+ 4c94c: 4290 clrl %a0@ while ( the_block != end ) { 4c94e: b48a cmpl %a2,%d2 4c950: 6738 beqs 4c98a <_Heap_Get_information+0x62> <== 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; 4c952: 2604 movel %d4,%d3 4c954: 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 ) { 4c95a: 222a 0004 movel %a2@(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; 4c95e: 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; 4c960: 2043 moveal %d3,%a0 4c962: 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); 4c964: 43f2 0800 lea %a2@(00000000,%d0:l),%a1 if ( info->largest < the_size ) info->largest = the_size; the_block = next_block; } } 4c968: 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) ) 4c96c: 0801 0000 btst #0,%d1 4c970: 6602 bnes 4c974 <_Heap_Get_information+0x4c> info = &the_info->Used; else info = &the_info->Free; 4c972: 2044 moveal %d4,%a0 info->number++; 4c974: 5290 addql #1,%a0@ 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 ) { 4c976: 2449 moveal %a1,%a2 info = &the_info->Used; else info = &the_info->Free; info->number++; info->total += the_size; 4c978: d1a8 0008 addl %d0,%a0@(8) if ( info->largest < the_size ) 4c97c: b0a8 0004 cmpl %a0@(4),%d0 4c980: 6304 blss 4c986 <_Heap_Get_information+0x5e> info->largest = the_size; 4c982: 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 ) { 4c986: b3c2 cmpal %d2,%a1 4c988: 66d4 bnes 4c95e <_Heap_Get_information+0x36> if ( info->largest < the_size ) info->largest = the_size; the_block = next_block; } } 4c98a: 4cd7 041c moveml %sp@,%d2-%d4/%a2 4c98e: 4e5e unlk %fp ... =============================================================================== 0004759e <_Heap_Initialize>: Heap_Control *heap, void *heap_area_begin_ptr, uintptr_t heap_area_size, uintptr_t page_size ) { 4759e: 4e56 ffe0 linkw %fp,#-32 475a2: 48d7 047c moveml %d2-%d6/%a2,%sp@ 475a6: 246e 0008 moveal %fp@(8),%a2 475aa: 282e 000c movel %fp@(12),%d4 475ae: 2a2e 0010 movel %fp@(16),%d5 475b2: 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; 475b6: 42ae fffc clrl %fp@(-4) Heap_Block *last_block = NULL; 475ba: 42ae fff8 clrl %fp@(-8) if ( page_size == 0 ) { 475be: 4a82 tstl %d2 475c0: 6750 beqs 47612 <_Heap_Initialize+0x74> <== NEVER TAKEN RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_up( uintptr_t value, uintptr_t alignment ) { uintptr_t remainder = value % alignment; 475c2: 7003 moveq #3,%d0 475c4: c082 andl %d2,%d0 if ( remainder != 0 ) { 475c6: 6704 beqs 475cc <_Heap_Initialize+0x2e> <== ALWAYS TAKEN return value - remainder + alignment; 475c8: 5882 addql #4,%d2 <== NOT EXECUTED 475ca: 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 ) { 475cc: 7003 moveq #3,%d0 475ce: b082 cmpl %d2,%d0 475d0: 6434 bccs 47606 <_Heap_Initialize+0x68> <== NEVER TAKEN RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_up( uintptr_t value, uintptr_t alignment ) { uintptr_t remainder = value % alignment; 475d2: 7210 moveq #16,%d1 475d4: 4c42 1000 remul %d2,%d0,%d1 if ( remainder != 0 ) { 475d8: 4a80 tstl %d0 475da: 6700 00e8 beqw 476c4 <_Heap_Initialize+0x126> return 0; } } min_block_size = _Heap_Align_up( sizeof( Heap_Block ), page_size ); area_ok = _Heap_Get_first_and_last_block( 475de: 486e fff8 pea %fp@(-8) <== NOT EXECUTED return value - remainder + alignment; 475e2: 2602 movel %d2,%d3 <== NOT EXECUTED 475e4: 486e fffc pea %fp@(-4) <== NOT EXECUTED 475e8: 0683 0000 0010 addil #16,%d3 <== NOT EXECUTED 475ee: 9680 subl %d0,%d3 <== NOT EXECUTED 475f0: 2f03 movel %d3,%sp@- <== NOT EXECUTED 475f2: 2f02 movel %d2,%sp@- <== NOT EXECUTED 475f4: 2f05 movel %d5,%sp@- <== NOT EXECUTED 475f6: 2f04 movel %d4,%sp@- <== NOT EXECUTED 475f8: 4eb9 0004 7534 jsr 47534 <_Heap_Get_first_and_last_block> <== NOT EXECUTED page_size, min_block_size, &first_block, &last_block ); if ( !area_ok ) { 475fe: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED 47602: 4a00 tstb %d0 <== NOT EXECUTED 47604: 662e bnes 47634 <_Heap_Initialize+0x96> <== NOT EXECUTED return 0; 47606: 4280 clrl %d0 _HAssert( _Heap_Is_aligned( _Heap_Alloc_area_of_block( last_block ), page_size ) ); return first_block_size; } 47608: 4cee 047c ffe0 moveml %fp@(-32),%d2-%d6/%a2 4760e: 4e5e unlk %fp 47610: 4e75 rts return 0; } } min_block_size = _Heap_Align_up( sizeof( Heap_Block ), page_size ); area_ok = _Heap_Get_first_and_last_block( 47612: 486e fff8 pea %fp@(-8) <== NOT EXECUTED } else { return value; 47616: 7610 moveq #16,%d3 <== NOT EXECUTED 47618: 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; 4761c: 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( 4761e: 2f03 movel %d3,%sp@- <== NOT EXECUTED 47620: 2f02 movel %d2,%sp@- <== NOT EXECUTED 47622: 2f05 movel %d5,%sp@- <== NOT EXECUTED 47624: 2f04 movel %d4,%sp@- <== NOT EXECUTED 47626: 4eb9 0004 7534 jsr 47534 <_Heap_Get_first_and_last_block> <== NOT EXECUTED page_size, min_block_size, &first_block, &last_block ); if ( !area_ok ) { 4762c: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED 47630: 4a00 tstb %d0 <== NOT EXECUTED 47632: 67d2 beqs 47606 <_Heap_Initialize+0x68> <== NOT EXECUTED return 0; } memset(heap, 0, sizeof(*heap)); 47634: 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; 47638: da84 addl %d4,%d5 ); if ( !area_ok ) { return 0; } memset(heap, 0, sizeof(*heap)); 4763a: 42a7 clrl %sp@- 4763c: 2f0a movel %a2,%sp@- 4763e: 4eb9 0004 e138 jsr 4e138 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++; 47644: 2239 0005 dc20 movel 5dc20 ,%d1 4764a: 2c01 movel %d1,%d6 4764c: 5286 addql #1,%d6 ); _HAssert( _Heap_Is_aligned( _Heap_Alloc_area_of_block( last_block ), page_size ) ); return first_block_size; 4764e: 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; 47652: 226e fff8 moveal %fp@(-8),%a1 first_block_size = last_block_begin - first_block_begin; 47656: 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; 47658: 206e fffc moveal %fp@(-4),%a0 last_block_begin = (uintptr_t) last_block; first_block_size = last_block_begin - first_block_begin; 4765c: 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++; 4765e: 23c6 0005 dc20 movel %d6,5dc20 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; 47664: 7c01 moveq #1,%d6 47666: 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; 47668: 2085 movel %d5,%a0@ first_block->size_and_flag = first_block_size | HEAP_PREV_BLOCK_USED; 4766a: 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; 4766e: 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 ); 47670: 214a 0008 movel %a2,%a0@(8) first_block->prev = _Heap_Free_list_head( heap ); 47674: 214a 000c movel %a2,%a0@(12) _Heap_Protection_block_initialize( heap, first_block ); /* Heap control */ heap->page_size = page_size; 47678: 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( 4767c: 2408 movel %a0,%d2 4767e: 9489 subl %a1,%d2 heap->min_block_size = min_block_size; 47680: 2543 0014 movel %d3,%a2@(20) heap->area_begin = heap_area_begin; 47684: 2544 0018 movel %d4,%a2@(24) heap->area_end = heap_area_end; 47688: 2545 001c movel %d5,%a2@(28) heap->first_block = first_block; 4768c: 2548 0020 movel %a0,%a2@(32) heap->last_block = last_block; 47690: 2549 0024 movel %a1,%a2@(36) 47694: 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; 47698: 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; 4769a: 2548 0008 movel %a0,%a2@(8) _Heap_Free_list_tail( heap )->prev = first_block; 4769e: 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; 476a2: 2540 002c movel %d0,%a2@(44) stats->free_size = first_block_size; 476a6: 2540 0030 movel %d0,%a2@(48) stats->min_free_size = first_block_size; 476aa: 2540 0034 movel %d0,%a2@(52) stats->free_blocks = 1; 476ae: 2546 0038 movel %d6,%a2@(56) stats->max_free_blocks = 1; 476b2: 2546 003c movel %d6,%a2@(60) stats->instance = instance++; 476b6: 2541 0028 movel %d1,%a2@(40) _HAssert( _Heap_Is_aligned( _Heap_Alloc_area_of_block( last_block ), page_size ) ); return first_block_size; } 476ba: 4cee 047c ffe0 moveml %fp@(-32),%d2-%d6/%a2 476c0: 4e5e unlk %fp 476c2: 4e75 rts return 0; } } min_block_size = _Heap_Align_up( sizeof( Heap_Block ), page_size ); area_ok = _Heap_Get_first_and_last_block( 476c4: 486e fff8 pea %fp@(-8) uintptr_t remainder = value % alignment; if ( remainder != 0 ) { return value - remainder + alignment; } else { return value; 476c8: 7610 moveq #16,%d3 476ca: 486e fffc pea %fp@(-4) 476ce: 2f03 movel %d3,%sp@- 476d0: 2f02 movel %d2,%sp@- 476d2: 2f05 movel %d5,%sp@- 476d4: 2f04 movel %d4,%sp@- 476d6: 4eb9 0004 7534 jsr 47534 <_Heap_Get_first_and_last_block> page_size, min_block_size, &first_block, &last_block ); if ( !area_ok ) { 476dc: 4fef 0018 lea %sp@(24),%sp 476e0: 4a00 tstb %d0 476e2: 6700 ff22 beqw 47606 <_Heap_Initialize+0x68> 476e6: 6000 ff4c braw 47634 <_Heap_Initialize+0x96> =============================================================================== 0005b0d8 <_Heap_Resize_block>: void *alloc_begin_ptr, uintptr_t new_alloc_size, uintptr_t *old_size, uintptr_t *new_size ) { 5b0d8: 4e56 ffe4 linkw %fp,#-28 <== NOT EXECUTED 5b0dc: 226e 0014 moveal %fp@(20),%a1 <== NOT EXECUTED 5b0e0: 48d7 1c3c moveml %d2-%d5/%a2-%a4,%sp@ <== NOT EXECUTED 5b0e4: 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); 5b0e8: 2202 movel %d2,%d1 <== NOT EXECUTED 5b0ea: 2042 moveal %d2,%a0 <== NOT EXECUTED 5b0ec: 5188 subql #8,%a0 <== NOT EXECUTED 5b0ee: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 5b0f2: 4c6a 1000 0010 remul %a2@(16),%d0,%d1 <== NOT EXECUTED 5b0f8: 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); 5b0fc: 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; 5b0fe: 4291 clrl %a1@ <== NOT EXECUTED void *alloc_begin_ptr, uintptr_t new_alloc_size, uintptr_t *old_size, uintptr_t *new_size ) { 5b100: 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; 5b104: 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; 5b106: b1ea 0020 cmpal %a2@(32),%a0 <== NOT EXECUTED 5b10a: 6500 0098 bcsw 5b1a4 <_Heap_Resize_block+0xcc> <== NOT EXECUTED 5b10e: b1ea 0024 cmpal %a2@(36),%a0 <== NOT EXECUTED 5b112: 6200 0090 bhiw 5b1a4 <_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; 5b116: 76fe moveq #-2,%d3 <== NOT EXECUTED 5b118: 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; 5b11a: 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; 5b11c: 7204 moveq #4,%d1 <== NOT EXECUTED 5b11e: 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; 5b120: 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; 5b124: 49f0 3800 lea %a0@(00000000,%d3:l),%a4 <== NOT EXECUTED uintptr_t alloc_size = block_end - alloc_begin + HEAP_ALLOC_BONUS; 5b128: d28c addl %a4,%d1 <== NOT EXECUTED 5b12a: 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; 5b12e: 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; 5b132: 2281 movel %d1,%a1@ <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool _Heap_Is_free( const Heap_Block *block ) { return !_Heap_Is_used( block ); 5b134: 4a85 tstl %d5 <== NOT EXECUTED 5b136: 57c5 seq %d5 <== NOT EXECUTED 5b138: 4485 negl %d5 <== NOT EXECUTED if ( next_block_is_free ) { 5b13a: 4a05 tstb %d5 <== NOT EXECUTED 5b13c: 6672 bnes 5b1b0 <_Heap_Resize_block+0xd8> <== NOT EXECUTED block_size += next_block_size; alloc_size += next_block_size; } if ( new_alloc_size > alloc_size ) { 5b13e: b280 cmpl %d0,%d1 <== NOT EXECUTED 5b140: 6576 bcss 5b1b8 <_Heap_Resize_block+0xe0> <== NOT EXECUTED return HEAP_RESIZE_UNSATISFIED; } if ( next_block_is_free ) { 5b142: 4a05 tstb %d5 <== NOT EXECUTED 5b144: 672a beqs 5b170 <_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; 5b146: 7201 moveq #1,%d1 <== NOT EXECUTED 5b148: c2a8 0004 andl %a0@(4),%d1 <== NOT EXECUTED new_size ); } else { return HEAP_RESIZE_FATAL_ERROR; } } 5b14c: 226c 0008 moveal %a4@(8),%a1 <== NOT EXECUTED block->size_and_flag = size | flag; 5b150: 8283 orl %d3,%d1 <== NOT EXECUTED 5b152: 286c 000c moveal %a4@(12),%a4 <== NOT EXECUTED 5b156: 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; 5b15a: 7201 moveq #1,%d1 <== NOT EXECUTED 5b15c: 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; 5b160: 2949 0008 movel %a1,%a4@(8) <== NOT EXECUTED next->prev = prev; 5b164: 234c 000c movel %a4,%a1@(12) <== NOT EXECUTED /* Statistics */ --stats->free_blocks; 5b168: 53aa 0038 subql #1,%a2@(56) <== NOT EXECUTED stats->free_size -= next_block_size; 5b16c: 99aa 0030 subl %d4,%a2@(48) <== NOT EXECUTED } block = _Heap_Block_allocate( heap, block, alloc_begin, new_alloc_size ); 5b170: 2f00 movel %d0,%sp@- <== NOT EXECUTED 5b172: 2f02 movel %d2,%sp@- <== NOT EXECUTED 5b174: 2f08 movel %a0,%sp@- <== NOT EXECUTED 5b176: 2f0a movel %a2,%sp@- <== NOT EXECUTED 5b178: 4eb9 0004 76ea jsr 476ea <_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; 5b17e: 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; 5b182: 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 ); 5b184: 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; 5b186: 2240 moveal %d0,%a1 <== NOT EXECUTED 5b188: 93c2 subal %d2,%a1 <== NOT EXECUTED /* Statistics */ ++stats->resizes; return HEAP_RESIZE_SUCCESSFUL; 5b18a: 4280 clrl %d0 <== NOT EXECUTED 5b18c: 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; 5b190: 43f1 1804 lea %a1@(00000004,%d1:l),%a1 <== NOT EXECUTED 5b194: 2689 movel %a1,%a3@ <== NOT EXECUTED /* Statistics */ ++stats->resizes; 5b196: 52aa 0054 addql #1,%a2@(84) <== NOT EXECUTED new_size ); } else { return HEAP_RESIZE_FATAL_ERROR; } } 5b19a: 4cee 1c3c ffe4 moveml %fp@(-28),%d2-%d5/%a2-%a4 <== NOT EXECUTED 5b1a0: 4e5e unlk %fp <== NOT EXECUTED 5b1a2: 4e75 rts <== NOT EXECUTED new_alloc_size, old_size, new_size ); } else { return HEAP_RESIZE_FATAL_ERROR; 5b1a4: 7002 moveq #2,%d0 <== NOT EXECUTED } } 5b1a6: 4cee 1c3c ffe4 moveml %fp@(-28),%d2-%d5/%a2-%a4 <== NOT EXECUTED 5b1ac: 4e5e unlk %fp <== NOT EXECUTED 5b1ae: 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; 5b1b0: d684 addl %d4,%d3 <== NOT EXECUTED alloc_size += next_block_size; 5b1b2: d284 addl %d4,%d1 <== NOT EXECUTED } if ( new_alloc_size > alloc_size ) { 5b1b4: b280 cmpl %d0,%d1 <== NOT EXECUTED 5b1b6: 648a bccs 5b142 <_Heap_Resize_block+0x6a> <== NOT EXECUTED return HEAP_RESIZE_UNSATISFIED; 5b1b8: 7001 moveq #1,%d0 <== NOT EXECUTED new_size ); } else { return HEAP_RESIZE_FATAL_ERROR; } } 5b1ba: 4cee 1c3c ffe4 moveml %fp@(-28),%d2-%d5/%a2-%a4 <== NOT EXECUTED 5b1c0: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 0005b1c4 <_Heap_Size_of_alloc_area>: bool _Heap_Size_of_alloc_area( Heap_Control *heap, void *alloc_begin_ptr, uintptr_t *alloc_size ) { 5b1c4: 4e56 0000 linkw %fp,#0 5b1c8: 202e 000c movel %fp@(12),%d0 RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment); 5b1cc: 2040 moveal %d0,%a0 5b1ce: 5188 subql #8,%a0 5b1d0: 226e 0008 moveal %fp@(8),%a1 5b1d4: 2f02 movel %d2,%sp@- 5b1d6: 2400 movel %d0,%d2 5b1d8: 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); 5b1de: 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 5b1e0: 2229 0020 movel %a1@(32),%d1 && (uintptr_t) block <= (uintptr_t) heap->last_block; 5b1e4: b288 cmpl %a0,%d1 5b1e6: 6236 bhis 5b21e <_Heap_Size_of_alloc_area+0x5a> <== NEVER TAKEN 5b1e8: 2269 0024 moveal %a1@(36),%a1 5b1ec: b3c8 cmpal %a0,%a1 5b1ee: 652e bcss 5b21e <_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; 5b1f0: 74fe moveq #-2,%d2 5b1f2: 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); 5b1f6: 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; 5b1f8: b1c1 cmpal %d1,%a0 5b1fa: 6522 bcss 5b21e <_Heap_Size_of_alloc_area+0x5a> <== NEVER TAKEN 5b1fc: b1c9 cmpal %a1,%a0 5b1fe: 621e bhis 5b21e <_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; 5b200: 7201 moveq #1,%d1 5b202: 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 ) 5b206: 6716 beqs 5b21e <_Heap_Size_of_alloc_area+0x5a> <== NEVER TAKEN ) { return false; } *alloc_size = (uintptr_t) next_block + HEAP_ALLOC_BONUS - alloc_begin; 5b208: 7204 moveq #4,%d1 5b20a: 9280 subl %d0,%d1 5b20c: 2001 movel %d1,%d0 5b20e: d088 addl %a0,%d0 5b210: 226e 0010 moveal %fp@(16),%a1 return true; } 5b214: 241f movel %sp@+,%d2 5b216: 4e5e unlk %fp || !_Heap_Is_prev_used( next_block ) ) { return false; } *alloc_size = (uintptr_t) next_block + HEAP_ALLOC_BONUS - alloc_begin; 5b218: 2280 movel %d0,%a1@ return true; 5b21a: 7001 moveq #1,%d0 } 5b21c: 4e75 rts 5b21e: 241f movel %sp@+,%d2 <== NOT EXECUTED 5b220: 4e5e unlk %fp <== NOT EXECUTED if ( !_Heap_Is_block_in_heap( heap, next_block ) || !_Heap_Is_prev_used( next_block ) ) { return false; 5b222: 4200 clrb %d0 <== NOT EXECUTED } *alloc_size = (uintptr_t) next_block + HEAP_ALLOC_BONUS - alloc_begin; return true; } ... =============================================================================== 0004821a <_Heap_Walk>: bool _Heap_Walk( Heap_Control *heap, int source, bool dump ) { 4821a: 4e56 ffc4 linkw %fp,#-60 <== NOT EXECUTED 4821e: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ <== NOT EXECUTED 48222: 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; 48226: 4bfa ff94 lea %pc@(481bc <_Heap_Walk_print_nothing>),%a5<== NOT EXECUTED bool _Heap_Walk( Heap_Control *heap, int source, bool dump ) { 4822a: 2a2e 000c movel %fp@(12),%d5 <== NOT EXECUTED uintptr_t const page_size = heap->page_size; 4822e: 262a 0010 movel %a2@(16),%d3 <== NOT EXECUTED uintptr_t const min_block_size = heap->min_block_size; 48232: 2c2a 0014 movel %a2@(20),%d6 <== NOT EXECUTED Heap_Block *const first_block = heap->first_block; 48236: 282a 0020 movel %a2@(32),%d4 <== NOT EXECUTED Heap_Block *const last_block = heap->last_block; 4823a: 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; 4823e: 4a2e 0013 tstb %fp@(19) <== NOT EXECUTED 48242: 6704 beqs 48248 <_Heap_Walk+0x2e> <== NOT EXECUTED 48244: 4bfa ff7e lea %pc@(481c4 <_Heap_Walk_print>),%a5 <== NOT EXECUTED if ( !_System_state_Is_up( _System_state_Get() ) ) { 48248: 7003 moveq #3,%d0 <== NOT EXECUTED 4824a: b0b9 0006 0a90 cmpl 60a90 <_System_state_Current>,%d0 <== NOT EXECUTED 48250: 670c beqs 4825e <_Heap_Walk+0x44> <== NOT EXECUTED block = next_block; } while ( block != first_block ); return true; } 48252: 4cee 3cfc ffc4 moveml %fp@(-60),%d2-%d7/%a2-%a5 <== NOT EXECUTED } block = next_block; } while ( block != first_block ); return true; 48258: 7001 moveq #1,%d0 <== NOT EXECUTED } 4825a: 4e5e unlk %fp <== NOT EXECUTED 4825c: 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)( 4825e: 2f2a 000c movel %a2@(12),%sp@- <== NOT EXECUTED 48262: 2f2a 0008 movel %a2@(8),%sp@- <== NOT EXECUTED 48266: 2f07 movel %d7,%sp@- <== NOT EXECUTED 48268: 2f04 movel %d4,%sp@- <== NOT EXECUTED 4826a: 2f2a 001c movel %a2@(28),%sp@- <== NOT EXECUTED 4826e: 2f2a 0018 movel %a2@(24),%sp@- <== NOT EXECUTED 48272: 2f06 movel %d6,%sp@- <== NOT EXECUTED 48274: 2f03 movel %d3,%sp@- <== NOT EXECUTED 48276: 4879 0005 cf73 pea 5cf73 <_Status_Object_name_errors_to_status+0x5d><== NOT EXECUTED 4827c: 42a7 clrl %sp@- <== NOT EXECUTED 4827e: 2f05 movel %d5,%sp@- <== NOT EXECUTED 48280: 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 ) { 48282: 4fef 002c lea %sp@(44),%sp <== NOT EXECUTED 48286: 4a83 tstl %d3 <== NOT EXECUTED 48288: 6700 0082 beqw 4830c <_Heap_Walk+0xf2> <== NOT EXECUTED ) { #if (CPU_ALIGNMENT == 0) return true; #else return (((uintptr_t)address % CPU_ALIGNMENT) == 0); 4828c: 7003 moveq #3,%d0 <== NOT EXECUTED 4828e: c083 andl %d3,%d0 <== NOT EXECUTED (*printer)( source, true, "page size is zero\n" ); return false; } if ( !_Addresses_Is_aligned( (void *) page_size ) ) { 48290: 6600 0090 bnew 48322 <_Heap_Walk+0x108> <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned( uintptr_t value, uintptr_t alignment ) { return (value % alignment) == 0; 48294: 2206 movel %d6,%d1 <== NOT EXECUTED 48296: 4c43 1000 remul %d3,%d0,%d1 <== NOT EXECUTED ); return false; } if ( !_Heap_Is_aligned( min_block_size, page_size ) ) { 4829a: 4a80 tstl %d0 <== NOT EXECUTED 4829c: 6600 00a4 bnew 48342 <_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; 482a0: 2004 movel %d4,%d0 <== NOT EXECUTED 482a2: 5080 addql #8,%d0 <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned( uintptr_t value, uintptr_t alignment ) { return (value % alignment) == 0; 482a4: 4c43 0001 remul %d3,%d1,%d0 <== NOT EXECUTED ); return false; } if ( 482a8: 4a81 tstl %d1 <== NOT EXECUTED 482aa: 6600 00ae bnew 4835a <_Heap_Walk+0x140> <== NOT EXECUTED block = next_block; } while ( block != first_block ); return true; } 482ae: 2044 moveal %d4,%a0 <== NOT EXECUTED 482b0: 2228 0004 movel %a0@(4),%d1 <== NOT EXECUTED 482b4: 2d41 fff0 movel %d1,%fp@(-16) <== NOT EXECUTED ); return false; } if ( !_Heap_Is_prev_used( first_block ) ) { 482b8: 0801 0000 btst #0,%d1 <== NOT EXECUTED 482bc: 6700 017e beqw 4843c <_Heap_Walk+0x222> <== 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; 482c0: 2047 moveal %d7,%a0 <== NOT EXECUTED 482c2: 72fe moveq #-2,%d1 <== NOT EXECUTED 482c4: 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); 482c8: 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; 482ca: 7201 moveq #1,%d1 <== NOT EXECUTED 482cc: c2a8 0004 andl %a0@(4),%d1 <== NOT EXECUTED ); return false; } if ( _Heap_Is_free( last_block ) ) { 482d0: 6724 beqs 482f6 <_Heap_Walk+0xdc> <== NOT EXECUTED ); return false; } if ( 482d2: b1c4 cmpal %d4,%a0 <== NOT EXECUTED 482d4: 6700 009c beqw 48372 <_Heap_Walk+0x158> <== NOT EXECUTED _Heap_Block_at( last_block, _Heap_Block_size( last_block ) ) != first_block ) { (*printer)( 482d8: 4879 0005 d0cd pea 5d0cd <_Status_Object_name_errors_to_status+0x1b7><== NOT EXECUTED 482de: 4878 0001 pea 1 <== NOT EXECUTED 482e2: 2f05 movel %d5,%sp@- <== NOT EXECUTED 482e4: 4e95 jsr %a5@ <== NOT EXECUTED 482e6: 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; 482ea: 4200 clrb %d0 <== NOT EXECUTED block = next_block; } while ( block != first_block ); return true; } 482ec: 4cee 3cfc ffc4 moveml %fp@(-60),%d2-%d7/%a2-%a5 <== NOT EXECUTED 482f2: 4e5e unlk %fp <== NOT EXECUTED 482f4: 4e75 rts <== NOT EXECUTED return false; } if ( _Heap_Is_free( last_block ) ) { (*printer)( 482f6: 4879 0005 d0b8 pea 5d0b8 <_Status_Object_name_errors_to_status+0x1a2><== NOT EXECUTED } if ( _Heap_Block_at( last_block, _Heap_Block_size( last_block ) ) != first_block ) { (*printer)( 482fc: 4878 0001 pea 1 <== NOT EXECUTED 48300: 2f05 movel %d5,%sp@- <== NOT EXECUTED 48302: 4e95 jsr %a5@ <== NOT EXECUTED 48304: 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; 48308: 4200 clrb %d0 <== NOT EXECUTED 4830a: 60e0 bras 482ec <_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" ); 4830c: 4879 0005 d004 pea 5d004 <_Status_Object_name_errors_to_status+0xee><== NOT EXECUTED } if ( _Heap_Block_at( last_block, _Heap_Block_size( last_block ) ) != first_block ) { (*printer)( 48312: 4878 0001 pea 1 <== NOT EXECUTED 48316: 2f05 movel %d5,%sp@- <== NOT EXECUTED 48318: 4e95 jsr %a5@ <== NOT EXECUTED 4831a: 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; 4831e: 4200 clrb %d0 <== NOT EXECUTED 48320: 60ca bras 482ec <_Heap_Walk+0xd2> <== NOT EXECUTED return false; } if ( !_Addresses_Is_aligned( (void *) page_size ) ) { (*printer)( 48322: 2f03 movel %d3,%sp@- <== NOT EXECUTED 48324: 4879 0005 d017 pea 5d017 <_Status_Object_name_errors_to_status+0x101><== NOT EXECUTED return false; } if ( !_Heap_Walk_is_in_free_list( heap, block ) ) { (*printer)( 4832a: 4878 0001 pea 1 <== NOT EXECUTED 4832e: 2f05 movel %d5,%sp@- <== NOT EXECUTED 48330: 4e95 jsr %a5@ <== NOT EXECUTED 48332: 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; 48336: 4200 clrb %d0 <== NOT EXECUTED block = next_block; } while ( block != first_block ); return true; } 48338: 4cee 3cfc ffc4 moveml %fp@(-60),%d2-%d7/%a2-%a5 <== NOT EXECUTED 4833e: 4e5e unlk %fp <== NOT EXECUTED 48340: 4e75 rts <== NOT EXECUTED return false; } if ( !_Heap_Is_aligned( min_block_size, page_size ) ) { (*printer)( 48342: 2f06 movel %d6,%sp@- <== NOT EXECUTED 48344: 4879 0005 d035 pea 5d035 <_Status_Object_name_errors_to_status+0x11f><== NOT EXECUTED return false; } if ( !_Heap_Walk_is_in_free_list( heap, block ) ) { (*printer)( 4834a: 4878 0001 pea 1 <== NOT EXECUTED 4834e: 2f05 movel %d5,%sp@- <== NOT EXECUTED 48350: 4e95 jsr %a5@ <== NOT EXECUTED 48352: 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; 48356: 4200 clrb %d0 <== NOT EXECUTED 48358: 60de bras 48338 <_Heap_Walk+0x11e> <== NOT EXECUTED } if ( !_Heap_Is_aligned( _Heap_Alloc_area_of_block( first_block ), page_size ) ) { (*printer)( 4835a: 2f04 movel %d4,%sp@- <== NOT EXECUTED 4835c: 4879 0005 d059 pea 5d059 <_Status_Object_name_errors_to_status+0x143><== NOT EXECUTED return false; } if ( !_Heap_Walk_is_in_free_list( heap, block ) ) { (*printer)( 48362: 4878 0001 pea 1 <== NOT EXECUTED 48366: 2f05 movel %d5,%sp@- <== NOT EXECUTED 48368: 4e95 jsr %a5@ <== NOT EXECUTED 4836a: 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; 4836e: 4200 clrb %d0 <== NOT EXECUTED 48370: 60c6 bras 48338 <_Heap_Walk+0x11e> <== NOT EXECUTED int source, Heap_Walk_printer printer, Heap_Control *heap ) { uintptr_t const page_size = heap->page_size; 48372: 202a 0010 movel %a2@(16),%d0 <== NOT EXECUTED block = next_block; } while ( block != first_block ); return true; } 48376: 206a 0008 moveal %a2@(8),%a0 <== NOT EXECUTED int source, Heap_Walk_printer printer, Heap_Control *heap ) { uintptr_t const page_size = heap->page_size; 4837a: 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 ) { 4837e: b1ca cmpal %a2,%a0 <== NOT EXECUTED 48380: 6700 032c beqw 486ae <_Heap_Walk+0x494> <== NOT EXECUTED block = next_block; } while ( block != first_block ); return true; } 48384: 242a 0020 movel %a2@(32),%d2 <== NOT EXECUTED 48388: 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; 4838c: b1c2 cmpal %d2,%a0 <== NOT EXECUTED 4838e: 6500 0092 bcsw 48422 <_Heap_Walk+0x208> <== NOT EXECUTED 48392: 286a 0024 moveal %a2@(36),%a4 <== NOT EXECUTED 48396: b1cc cmpal %a4,%a0 <== NOT EXECUTED 48398: 6200 0088 bhiw 48422 <_Heap_Walk+0x208> <== NOT EXECUTED RTEMS_INLINE_ROUTINE uintptr_t _Heap_Alloc_area_of_block( const Heap_Block *block ) { return (uintptr_t) block + HEAP_BLOCK_HEADER_SIZE; 4839c: 47e8 0008 lea %a0@(8),%a3 <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned( uintptr_t value, uintptr_t alignment ) { return (value % alignment) == 0; 483a0: 200b movel %a3,%d0 <== NOT EXECUTED 483a2: 222e fffc movel %fp@(-4),%d1 <== NOT EXECUTED 483a6: 4c41 0002 remul %d1,%d2,%d0 <== NOT EXECUTED ); return false; } if ( 483aa: 4a82 tstl %d2 <== NOT EXECUTED 483ac: 6600 00a6 bnew 48454 <_Heap_Walk+0x23a> <== 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; 483b0: 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; 483b2: 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; 483b4: c4a8 0004 andl %a0@(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; 483b8: c0b0 2804 andl %a0@(00000004,%d2:l),%d0 <== NOT EXECUTED ); return false; } if ( _Heap_Is_used( free_block ) ) { 483bc: 664a bnes 48408 <_Heap_Walk+0x1ee> <== NOT EXECUTED 483be: 222e fff4 movel %fp@(-12),%d1 <== NOT EXECUTED 483c2: 224a moveal %a2,%a1 <== NOT EXECUTED 483c4: 2648 moveal %a0,%a3 <== NOT EXECUTED 483c6: 2d43 fff8 movel %d3,%fp@(-8) <== NOT EXECUTED ); return false; } if ( free_block->prev != prev_block ) { 483ca: 2428 000c movel %a0@(12),%d2 <== NOT EXECUTED 483ce: b3c2 cmpal %d2,%a1 <== NOT EXECUTED 483d0: 6600 02c0 bnew 48692 <_Heap_Walk+0x478> <== NOT EXECUTED return false; } prev_block = free_block; free_block = free_block->next; 483d4: 2068 0008 moveal %a0@(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 ) { 483d8: b1ca cmpal %a2,%a0 <== NOT EXECUTED 483da: 6700 0092 beqw 4846e <_Heap_Walk+0x254> <== 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; 483de: b1c1 cmpal %d1,%a0 <== NOT EXECUTED 483e0: 6540 bcss 48422 <_Heap_Walk+0x208> <== NOT EXECUTED RTEMS_INLINE_ROUTINE uintptr_t _Heap_Alloc_area_of_block( const Heap_Block *block ) { return (uintptr_t) block + HEAP_BLOCK_HEADER_SIZE; 483e2: 2408 movel %a0,%d2 <== NOT EXECUTED 483e4: 5082 addql #8,%d2 <== 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; 483e6: b9c8 cmpal %a0,%a4 <== NOT EXECUTED 483e8: 6538 bcss 48422 <_Heap_Walk+0x208> <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned( uintptr_t value, uintptr_t alignment ) { return (value % alignment) == 0; 483ea: 202e fffc movel %fp@(-4),%d0 <== NOT EXECUTED ); return false; } if ( _Heap_Is_used( free_block ) ) { 483ee: 224b moveal %a3,%a1 <== NOT EXECUTED 483f0: 2648 moveal %a0,%a3 <== NOT EXECUTED 483f2: 4c40 2003 remul %d0,%d3,%d2 <== NOT EXECUTED ); return false; } if ( 483f6: 4a83 tstl %d3 <== NOT EXECUTED 483f8: 665a bnes 48454 <_Heap_Walk+0x23a> <== 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; 483fa: 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; 483fc: 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; 483fe: c4a8 0004 andl %a0@(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; 48402: c0b0 2804 andl %a0@(00000004,%d2:l),%d0 <== NOT EXECUTED ); return false; } if ( _Heap_Is_used( free_block ) ) { 48406: 67c2 beqs 483ca <_Heap_Walk+0x1b0> <== NOT EXECUTED (*printer)( 48408: 2f08 movel %a0,%sp@- <== NOT EXECUTED 4840a: 4879 0005 d14c pea 5d14c <_Status_Object_name_errors_to_status+0x236><== NOT EXECUTED return false; } if ( !_Heap_Walk_is_in_free_list( heap, block ) ) { (*printer)( 48410: 4878 0001 pea 1 <== NOT EXECUTED 48414: 2f05 movel %d5,%sp@- <== NOT EXECUTED 48416: 4e95 jsr %a5@ <== NOT EXECUTED 48418: 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; 4841c: 4200 clrb %d0 <== NOT EXECUTED 4841e: 6000 ff18 braw 48338 <_Heap_Walk+0x11e> <== 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)( 48422: 2f08 movel %a0,%sp@- <== NOT EXECUTED 48424: 4879 0005 d0fc pea 5d0fc <_Status_Object_name_errors_to_status+0x1e6><== NOT EXECUTED return false; } if ( !_Heap_Walk_is_in_free_list( heap, block ) ) { (*printer)( 4842a: 4878 0001 pea 1 <== NOT EXECUTED 4842e: 2f05 movel %d5,%sp@- <== NOT EXECUTED 48430: 4e95 jsr %a5@ <== NOT EXECUTED 48432: 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; 48436: 4200 clrb %d0 <== NOT EXECUTED 48438: 6000 fefe braw 48338 <_Heap_Walk+0x11e> <== NOT EXECUTED return false; } if ( !_Heap_Is_prev_used( first_block ) ) { (*printer)( 4843c: 4879 0005 d08a pea 5d08a <_Status_Object_name_errors_to_status+0x174><== NOT EXECUTED } if ( _Heap_Block_at( last_block, _Heap_Block_size( last_block ) ) != first_block ) { (*printer)( 48442: 4878 0001 pea 1 <== NOT EXECUTED 48446: 2f05 movel %d5,%sp@- <== NOT EXECUTED 48448: 4e95 jsr %a5@ <== NOT EXECUTED 4844a: 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; 4844e: 4200 clrb %d0 <== NOT EXECUTED 48450: 6000 fe9a braw 482ec <_Heap_Walk+0xd2> <== NOT EXECUTED } if ( !_Heap_Is_aligned( _Heap_Alloc_area_of_block( free_block ), page_size ) ) { (*printer)( 48454: 2f08 movel %a0,%sp@- <== NOT EXECUTED 48456: 4879 0005 d11c pea 5d11c <_Status_Object_name_errors_to_status+0x206><== NOT EXECUTED return false; } if ( !_Heap_Walk_is_in_free_list( heap, block ) ) { (*printer)( 4845c: 4878 0001 pea 1 <== NOT EXECUTED 48460: 2f05 movel %d5,%sp@- <== NOT EXECUTED 48462: 4e95 jsr %a5@ <== NOT EXECUTED 48464: 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; 48468: 4200 clrb %d0 <== NOT EXECUTED 4846a: 6000 fecc braw 48338 <_Heap_Walk+0x11e> <== NOT EXECUTED 4846e: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED ); return false; } if ( _Heap_Is_used( free_block ) ) { 48472: 2844 moveal %d4,%a4 <== NOT EXECUTED 48474: 2d41 fff4 movel %d1,%fp@(-12) <== NOT EXECUTED 48478: 222e fff4 movel %fp@(-12),%d1 <== NOT EXECUTED 4847c: 2d43 fffc movel %d3,%fp@(-4) <== NOT EXECUTED 48480: 262e fff0 movel %fp@(-16),%d3 <== NOT EXECUTED 48484: 2d47 ffec movel %d7,%fp@(-20) <== 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; 48488: 74fe moveq #-2,%d2 <== NOT EXECUTED 4848a: 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); 4848c: 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; 48490: b7c1 cmpal %d1,%a3 <== NOT EXECUTED 48492: 657e bcss 48512 <_Heap_Walk+0x2f8> <== NOT EXECUTED 48494: b7ea 0024 cmpal %a2@(36),%a3 <== NOT EXECUTED 48498: 6278 bhis 48512 <_Heap_Walk+0x2f8> <== 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; 4849a: b9ee ffec cmpal %fp@(-20),%a4 <== NOT EXECUTED 4849e: 56c1 sne %d1 <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned( uintptr_t value, uintptr_t alignment ) { return (value % alignment) == 0; 484a0: 202e fffc movel %fp@(-4),%d0 <== NOT EXECUTED 484a4: 2e02 movel %d2,%d7 <== NOT EXECUTED 484a6: 3241 moveaw %d1,%a1 <== NOT EXECUTED 484a8: 4c40 7001 remul %d0,%d1,%d7 <== NOT EXECUTED 484ac: 2009 movel %a1,%d0 <== NOT EXECUTED 484ae: 4480 negl %d0 <== NOT EXECUTED ); return false; } if ( !_Heap_Is_aligned( block_size, page_size ) && is_not_last_block ) { 484b0: 4a81 tstl %d1 <== NOT EXECUTED 484b2: 6704 beqs 484b8 <_Heap_Walk+0x29e> <== NOT EXECUTED 484b4: 4a00 tstb %d0 <== NOT EXECUTED 484b6: 667c bnes 48534 <_Heap_Walk+0x31a> <== NOT EXECUTED ); return false; } if ( block_size < min_block_size && is_not_last_block ) { 484b8: b486 cmpl %d6,%d2 <== NOT EXECUTED 484ba: 6406 bccs 484c2 <_Heap_Walk+0x2a8> <== NOT EXECUTED 484bc: 4a00 tstb %d0 <== NOT EXECUTED 484be: 6600 008e bnew 4854e <_Heap_Walk+0x334> <== NOT EXECUTED ); return false; } if ( next_block_begin <= block_begin && is_not_last_block ) { 484c2: b7cc cmpal %a4,%a3 <== NOT EXECUTED 484c4: 6206 bhis 484cc <_Heap_Walk+0x2b2> <== NOT EXECUTED 484c6: 4a00 tstb %d0 <== NOT EXECUTED 484c8: 6600 00a8 bnew 48572 <_Heap_Walk+0x358> <== 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; 484cc: 7001 moveq #1,%d0 <== NOT EXECUTED 484ce: 7e01 moveq #1,%d7 <== NOT EXECUTED 484d0: c0ab 0004 andl %a3@(4),%d0 <== NOT EXECUTED 484d4: c687 andl %d7,%d3 <== NOT EXECUTED ); return false; } if ( !_Heap_Is_prev_used( next_block ) ) { 484d6: 4a80 tstl %d0 <== NOT EXECUTED 484d8: 6700 00cc beqw 485a6 <_Heap_Walk+0x38c> <== NOT EXECUTED if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) { return false; } } else if (prev_used) { 484dc: 4a83 tstl %d3 <== NOT EXECUTED 484de: 6700 00ac beqw 4858c <_Heap_Walk+0x372> <== NOT EXECUTED (*printer)( 484e2: 2f02 movel %d2,%sp@- <== NOT EXECUTED 484e4: 2f0c movel %a4,%sp@- <== NOT EXECUTED 484e6: 4879 0005 d2f1 pea 5d2f1 <_Status_Object_name_errors_to_status+0x3db><== NOT EXECUTED 484ec: 42a7 clrl %sp@- <== NOT EXECUTED 484ee: 2f05 movel %d5,%sp@- <== NOT EXECUTED 484f0: 4e95 jsr %a5@ <== NOT EXECUTED 484f2: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED block->prev_size ); } block = next_block; } while ( block != first_block ); 484f6: b7c4 cmpal %d4,%a3 <== NOT EXECUTED 484f8: 6700 fd58 beqw 48252 <_Heap_Walk+0x38> <== NOT EXECUTED 484fc: 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; 48500: 74fe moveq #-2,%d2 <== NOT EXECUTED 48502: 284b moveal %a3,%a4 <== NOT EXECUTED 48504: c483 andl %d3,%d2 <== NOT EXECUTED 48506: 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); 4850a: 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; 4850e: b7c1 cmpal %d1,%a3 <== NOT EXECUTED 48510: 6482 bccs 48494 <_Heap_Walk+0x27a> <== 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)( 48512: 2f0b movel %a3,%sp@- <== NOT EXECUTED 48514: 2f0c movel %a4,%sp@- <== NOT EXECUTED 48516: 4879 0005 d19a pea 5d19a <_Status_Object_name_errors_to_status+0x284><== NOT EXECUTED return false; } if ( next_block_begin <= block_begin && is_not_last_block ) { (*printer)( 4851c: 4878 0001 pea 1 <== NOT EXECUTED 48520: 2f05 movel %d5,%sp@- <== NOT EXECUTED 48522: 4e95 jsr %a5@ <== NOT EXECUTED "block 0x%08x: next block 0x%08x is not a successor\n", block, next_block ); return false; 48524: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED 48528: 4200 clrb %d0 <== NOT EXECUTED block = next_block; } while ( block != first_block ); return true; } 4852a: 4cee 3cfc ffc4 moveml %fp@(-60),%d2-%d7/%a2-%a5 <== NOT EXECUTED 48530: 4e5e unlk %fp <== NOT EXECUTED 48532: 4e75 rts <== NOT EXECUTED return false; } if ( !_Heap_Is_aligned( block_size, page_size ) && is_not_last_block ) { (*printer)( 48534: 2f02 movel %d2,%sp@- <== NOT EXECUTED 48536: 2f0c movel %a4,%sp@- <== NOT EXECUTED 48538: 4879 0005 d1c7 pea 5d1c7 <_Status_Object_name_errors_to_status+0x2b1><== NOT EXECUTED return false; } if ( next_block_begin <= block_begin && is_not_last_block ) { (*printer)( 4853e: 4878 0001 pea 1 <== NOT EXECUTED 48542: 2f05 movel %d5,%sp@- <== NOT EXECUTED 48544: 4e95 jsr %a5@ <== NOT EXECUTED "block 0x%08x: next block 0x%08x is not a successor\n", block, next_block ); return false; 48546: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED 4854a: 4200 clrb %d0 <== NOT EXECUTED 4854c: 60dc bras 4852a <_Heap_Walk+0x310> <== NOT EXECUTED return false; } if ( block_size < min_block_size && is_not_last_block ) { (*printer)( 4854e: 2f06 movel %d6,%sp@- <== NOT EXECUTED 48550: 2f02 movel %d2,%sp@- <== NOT EXECUTED 48552: 2f0c movel %a4,%sp@- <== NOT EXECUTED 48554: 4879 0005 d1f5 pea 5d1f5 <_Status_Object_name_errors_to_status+0x2df><== NOT EXECUTED 4855a: 4878 0001 pea 1 <== NOT EXECUTED 4855e: 2f05 movel %d5,%sp@- <== NOT EXECUTED 48560: 4e95 jsr %a5@ <== NOT EXECUTED block, block_size, min_block_size ); return false; 48562: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED block = next_block; } while ( block != first_block ); return true; } 48566: 4cee 3cfc ffc4 moveml %fp@(-60),%d2-%d7/%a2-%a5 <== NOT EXECUTED block, block_size, min_block_size ); return false; 4856c: 4200 clrb %d0 <== NOT EXECUTED block = next_block; } while ( block != first_block ); return true; } 4856e: 4e5e unlk %fp <== NOT EXECUTED 48570: 4e75 rts <== NOT EXECUTED return false; } if ( next_block_begin <= block_begin && is_not_last_block ) { (*printer)( 48572: 2f0b movel %a3,%sp@- <== NOT EXECUTED 48574: 2f0c movel %a4,%sp@- <== NOT EXECUTED 48576: 4879 0005 d220 pea 5d220 <_Status_Object_name_errors_to_status+0x30a><== NOT EXECUTED 4857c: 4878 0001 pea 1 <== NOT EXECUTED 48580: 2f05 movel %d5,%sp@- <== NOT EXECUTED 48582: 4e95 jsr %a5@ <== NOT EXECUTED "block 0x%08x: next block 0x%08x is not a successor\n", block, next_block ); return false; 48584: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED 48588: 4200 clrb %d0 <== NOT EXECUTED 4858a: 609e bras 4852a <_Heap_Walk+0x310> <== NOT EXECUTED "block 0x%08x: size %u\n", block, block_size ); } else { (*printer)( 4858c: 2f14 movel %a4@,%sp@- <== NOT EXECUTED 4858e: 2f02 movel %d2,%sp@- <== NOT EXECUTED 48590: 2f0c movel %a4,%sp@- <== NOT EXECUTED 48592: 4879 0005 d308 pea 5d308 <_Status_Object_name_errors_to_status+0x3f2><== NOT EXECUTED 48598: 42a7 clrl %sp@- <== NOT EXECUTED 4859a: 2f05 movel %d5,%sp@- <== NOT EXECUTED 4859c: 4e95 jsr %a5@ <== NOT EXECUTED 4859e: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED 485a2: 6000 ff52 braw 484f6 <_Heap_Walk+0x2dc> <== NOT EXECUTED block = next_block; } while ( block != first_block ); return true; } 485a6: 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)( 485aa: 43f9 0005 cf40 lea 5cf40 <_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 ? 485b0: 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)( 485b4: b2aa 000c cmpl %a2@(12),%d1 <== NOT EXECUTED 485b8: 670a beqs 485c4 <_Heap_Walk+0x3aa> <== 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)" : "") 485ba: 43f9 0005 ce88 lea 5ce88 ,%a1<== NOT EXECUTED 485c0: b28a cmpl %a2,%d1 <== NOT EXECUTED 485c2: 6764 beqs 48628 <_Heap_Walk+0x40e> <== 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 ? 485c4: 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)( 485c8: 41f9 0005 cf59 lea 5cf59 <_Status_Object_name_errors_to_status+0x43>,%a0<== NOT EXECUTED 485ce: b087 cmpl %d7,%d0 <== NOT EXECUTED 485d0: 670a beqs 485dc <_Heap_Walk+0x3c2> <== NOT EXECUTED block, block_size, block->prev, block->prev == first_free_block ? " (= first free)" : (block->prev == free_list_head ? " (= head)" : ""), 485d2: 41f9 0005 ce88 lea 5ce88 ,%a0<== NOT EXECUTED 485d8: b08a cmpl %a2,%d0 <== NOT EXECUTED 485da: 6754 beqs 48630 <_Heap_Walk+0x416> <== 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)( 485dc: 2f09 movel %a1,%sp@- <== NOT EXECUTED 485de: 2f01 movel %d1,%sp@- <== NOT EXECUTED 485e0: 2f08 movel %a0,%sp@- <== NOT EXECUTED 485e2: 2f00 movel %d0,%sp@- <== NOT EXECUTED 485e4: 2f02 movel %d2,%sp@- <== NOT EXECUTED 485e6: 2f0c movel %a4,%sp@- <== NOT EXECUTED 485e8: 4879 0005 d254 pea 5d254 <_Status_Object_name_errors_to_status+0x33e><== NOT EXECUTED 485ee: 42a7 clrl %sp@- <== NOT EXECUTED 485f0: 2f05 movel %d5,%sp@- <== NOT EXECUTED 485f2: 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 ) { 485f4: 2213 movel %a3@,%d1 <== NOT EXECUTED 485f6: 4fef 0024 lea %sp@(36),%sp <== NOT EXECUTED 485fa: b282 cmpl %d2,%d1 <== NOT EXECUTED 485fc: 663a bnes 48638 <_Heap_Walk+0x41e> <== NOT EXECUTED ); return false; } if ( !prev_used ) { 485fe: 4a83 tstl %d3 <== NOT EXECUTED 48600: 6776 beqs 48678 <_Heap_Walk+0x45e> <== NOT EXECUTED block = next_block; } while ( block != first_block ); return true; } 48602: 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 ) { 48606: b1ca cmpal %a2,%a0 <== NOT EXECUTED 48608: 6754 beqs 4865e <_Heap_Walk+0x444> <== NOT EXECUTED if ( free_block == block ) { 4860a: b1cc cmpal %a4,%a0 <== NOT EXECUTED 4860c: 6700 fee8 beqw 484f6 <_Heap_Walk+0x2dc> <== NOT EXECUTED 48610: 2e2e ffec movel %fp@(-20),%d7 <== NOT EXECUTED return true; } free_block = free_block->next; 48614: 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 ) { 48618: b1ca cmpal %a2,%a0 <== NOT EXECUTED 4861a: 6742 beqs 4865e <_Heap_Walk+0x444> <== NOT EXECUTED if ( free_block == block ) { 4861c: b1cc cmpal %a4,%a0 <== NOT EXECUTED 4861e: 66f4 bnes 48614 <_Heap_Walk+0x3fa> <== NOT EXECUTED 48620: 2d47 ffec movel %d7,%fp@(-20) <== NOT EXECUTED 48624: 6000 fed0 braw 484f6 <_Heap_Walk+0x2dc> <== 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)" : "") 48628: 43f9 0005 cf4f lea 5cf4f <_Status_Object_name_errors_to_status+0x39>,%a1<== NOT EXECUTED 4862e: 6094 bras 485c4 <_Heap_Walk+0x3aa> <== NOT EXECUTED block, block_size, block->prev, block->prev == first_free_block ? " (= first free)" : (block->prev == free_list_head ? " (= head)" : ""), 48630: 41f9 0005 cf69 lea 5cf69 <_Status_Object_name_errors_to_status+0x53>,%a0<== NOT EXECUTED 48636: 60a4 bras 485dc <_Heap_Walk+0x3c2> <== NOT EXECUTED " (= last free)" : (block->next == free_list_tail ? " (= tail)" : "") ); if ( block_size != next_block->prev_size ) { (*printer)( 48638: 2f0b movel %a3,%sp@- <== NOT EXECUTED 4863a: 2f01 movel %d1,%sp@- <== NOT EXECUTED 4863c: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4863e: 2f0c movel %a4,%sp@- <== NOT EXECUTED 48640: 4879 0005 d289 pea 5d289 <_Status_Object_name_errors_to_status+0x373><== NOT EXECUTED 48646: 4878 0001 pea 1 <== NOT EXECUTED 4864a: 2f05 movel %d5,%sp@- <== NOT EXECUTED 4864c: 4e95 jsr %a5@ <== NOT EXECUTED 4864e: 4fef 001c lea %sp@(28),%sp <== NOT EXECUTED block = next_block; } while ( block != first_block ); return true; } 48652: 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; 48658: 4200 clrb %d0 <== NOT EXECUTED block = next_block; } while ( block != first_block ); return true; } 4865a: 4e5e unlk %fp <== NOT EXECUTED 4865c: 4e75 rts <== NOT EXECUTED return false; } if ( !_Heap_Walk_is_in_free_list( heap, block ) ) { (*printer)( 4865e: 2f0c movel %a4,%sp@- <== NOT EXECUTED 48660: 4879 0005 d32d pea 5d32d <_Status_Object_name_errors_to_status+0x417><== NOT EXECUTED 48666: 4878 0001 pea 1 <== NOT EXECUTED 4866a: 2f05 movel %d5,%sp@- <== NOT EXECUTED 4866c: 4e95 jsr %a5@ <== NOT EXECUTED 4866e: 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; 48672: 4200 clrb %d0 <== NOT EXECUTED 48674: 6000 fcc2 braw 48338 <_Heap_Walk+0x11e> <== NOT EXECUTED return false; } if ( !prev_used ) { (*printer)( 48678: 2f0c movel %a4,%sp@- <== NOT EXECUTED 4867a: 4879 0005 d2c2 pea 5d2c2 <_Status_Object_name_errors_to_status+0x3ac><== NOT EXECUTED return false; } if ( !_Heap_Walk_is_in_free_list( heap, block ) ) { (*printer)( 48680: 4878 0001 pea 1 <== NOT EXECUTED 48684: 2f05 movel %d5,%sp@- <== NOT EXECUTED 48686: 4e95 jsr %a5@ <== NOT EXECUTED 48688: 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; 4868c: 4200 clrb %d0 <== NOT EXECUTED 4868e: 6000 fca8 braw 48338 <_Heap_Walk+0x11e> <== NOT EXECUTED return false; } if ( free_block->prev != prev_block ) { (*printer)( 48692: 2f02 movel %d2,%sp@- <== NOT EXECUTED 48694: 2f08 movel %a0,%sp@- <== NOT EXECUTED 48696: 4879 0005 d168 pea 5d168 <_Status_Object_name_errors_to_status+0x252><== NOT EXECUTED return false; } if ( next_block_begin <= block_begin && is_not_last_block ) { (*printer)( 4869c: 4878 0001 pea 1 <== NOT EXECUTED 486a0: 2f05 movel %d5,%sp@- <== NOT EXECUTED 486a2: 4e95 jsr %a5@ <== NOT EXECUTED "block 0x%08x: next block 0x%08x is not a successor\n", block, next_block ); return false; 486a4: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED 486a8: 4200 clrb %d0 <== NOT EXECUTED 486aa: 6000 fe7e braw 4852a <_Heap_Walk+0x310> <== 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 ) { 486ae: 222a 0020 movel %a2@(32),%d1 <== NOT EXECUTED ); return false; } if ( _Heap_Is_used( free_block ) ) { 486b2: 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 ) { 486b4: 2d41 fff4 movel %d1,%fp@(-12) <== NOT EXECUTED ); return false; } if ( _Heap_Is_used( free_block ) ) { 486b8: 222e fff4 movel %fp@(-12),%d1 <== NOT EXECUTED 486bc: 2d43 fffc movel %d3,%fp@(-4) <== NOT EXECUTED 486c0: 262e fff0 movel %fp@(-16),%d3 <== NOT EXECUTED 486c4: 2d47 ffec movel %d7,%fp@(-20) <== NOT EXECUTED 486c8: 6000 fdbe braw 48488 <_Heap_Walk+0x26e> <== NOT EXECUTED =============================================================================== 000481c4 <_Heap_Walk_print>: static void _Heap_Walk_print( int source, bool error, const char *fmt, ... ) { 481c4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 481c8: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED va_list ap; if ( error ) { 481cc: 4a2e 000f tstb %fp@(15) <== NOT EXECUTED 481d0: 6624 bnes 481f6 <_Heap_Walk_print+0x32> <== NOT EXECUTED printk( "FAIL[%d]: ", source ); } else { printk( "PASS[%d]: ", source ); 481d2: 2f00 movel %d0,%sp@- <== NOT EXECUTED 481d4: 4879 0005 cf35 pea 5cf35 <_Status_Object_name_errors_to_status+0x1f><== NOT EXECUTED 481da: 4eb9 0004 429c jsr 4429c <== NOT EXECUTED 481e0: 508f addql #8,%sp <== NOT EXECUTED } va_start( ap, fmt ); vprintk( fmt, ap ); 481e2: 486e 0014 pea %fp@(20) <== NOT EXECUTED 481e6: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 481ea: 4eb9 0004 60b8 jsr 460b8 <== NOT EXECUTED va_end( ap ); 481f0: 508f addql #8,%sp <== NOT EXECUTED } 481f2: 4e5e unlk %fp <== NOT EXECUTED 481f4: 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 ); 481f6: 2f00 movel %d0,%sp@- <== NOT EXECUTED 481f8: 4879 0005 cf2a pea 5cf2a <_Status_Object_name_errors_to_status+0x14><== NOT EXECUTED 481fe: 4eb9 0004 429c jsr 4429c <== NOT EXECUTED 48204: 508f addql #8,%sp <== NOT EXECUTED } else { printk( "PASS[%d]: ", source ); } va_start( ap, fmt ); vprintk( fmt, ap ); 48206: 486e 0014 pea %fp@(20) <== NOT EXECUTED 4820a: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 4820e: 4eb9 0004 60b8 jsr 460b8 <== NOT EXECUTED va_end( ap ); 48214: 508f addql #8,%sp <== NOT EXECUTED } 48216: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 000481bc <_Heap_Walk_print_nothing>: int source, bool error, const char *fmt, ... ) { 481bc: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED /* Do nothing */ } 481c0: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00046c66 <_IO_Initialize_all_drivers>: * * Output Parameters: NONE */ void _IO_Initialize_all_drivers( void ) { 46c66: 4e56 0000 linkw %fp,#0 46c6a: 2f0a movel %a2,%sp@- 46c6c: 2f02 movel %d2,%sp@- rtems_device_major_number major; for ( major=0 ; major < _IO_Number_of_drivers ; major ++ ) 46c6e: 4ab9 0005 e67a tstl 5e67a <_IO_Number_of_drivers> 46c74: 671e beqs 46c94 <_IO_Initialize_all_drivers+0x2e><== NEVER TAKEN 46c76: 4282 clrl %d2 46c78: 45f9 0004 b898 lea 4b898 ,%a2 (void) rtems_io_initialize( major, 0, NULL ); 46c7e: 42a7 clrl %sp@- 46c80: 42a7 clrl %sp@- 46c82: 2f02 movel %d2,%sp@- void _IO_Initialize_all_drivers( void ) { rtems_device_major_number major; for ( major=0 ; major < _IO_Number_of_drivers ; major ++ ) 46c84: 5282 addql #1,%d2 (void) rtems_io_initialize( major, 0, NULL ); 46c86: 4e92 jsr %a2@ void _IO_Initialize_all_drivers( void ) { rtems_device_major_number major; for ( major=0 ; major < _IO_Number_of_drivers ; major ++ ) 46c88: 4fef 000c lea %sp@(12),%sp 46c8c: b4b9 0005 e67a cmpl 5e67a <_IO_Number_of_drivers>,%d2 46c92: 65ea bcss 46c7e <_IO_Initialize_all_drivers+0x18> (void) rtems_io_initialize( major, 0, NULL ); } 46c94: 242e fff8 movel %fp@(-8),%d2 46c98: 246e fffc moveal %fp@(-4),%a2 46c9c: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00046bcc <_IO_Manager_initialization>: * workspace. * */ void _IO_Manager_initialization(void) { 46bcc: 4e56 fff0 linkw %fp,#-16 46bd0: 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; 46bd4: 2639 0005 cc76 movel 5cc76 ,%d3 drivers_in_table = Configuration.number_of_device_drivers; 46bda: 2439 0005 cc72 movel 5cc72 ,%d2 number_of_drivers = Configuration.maximum_drivers; 46be0: 2839 0005 cc6e movel 5cc6e ,%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 ) 46be6: b882 cmpl %d2,%d4 46be8: 6366 blss 46c50 <_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( 46bea: 2004 movel %d4,%d0 46bec: 2a04 movel %d4,%d5 46bee: e788 lsll #3,%d0 46bf0: eb8d lsll #5,%d5 46bf2: 9a80 subl %d0,%d5 46bf4: 2f05 movel %d5,%sp@- 46bf6: 4eb9 0004 9aae jsr 49aae <_Workspace_Allocate_or_fatal_error> sizeof( rtems_driver_address_table ) * ( number_of_drivers ) ); _IO_Number_of_drivers = number_of_drivers; memset( 46bfc: 2f05 movel %d5,%sp@- 46bfe: 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 *) 46c00: 23c0 0005 e67e movel %d0,5e67e <_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( 46c06: 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; 46c08: 23c4 0005 e67a movel %d4,5e67a <_IO_Number_of_drivers> memset( 46c0e: 4eb9 0004 e138 jsr 4e138 _IO_Driver_address_table, 0, sizeof( rtems_driver_address_table ) * ( number_of_drivers ) ); for ( index = 0 ; index < drivers_in_table ; index++ ) 46c14: 4fef 0010 lea %sp@(16),%sp 46c18: 4a82 tstl %d2 46c1a: 672a beqs 46c46 <_IO_Manager_initialization+0x7a><== NEVER TAKEN 46c1c: 2839 0005 e67e movel 5e67e <_IO_Driver_address_table>,%d4 46c22: 4280 clrl %d0 46c24: 4281 clrl %d1 _IO_Driver_address_table[index] = driver_table[index]; 46c26: 2243 moveal %d3,%a1 46c28: 2044 moveal %d4,%a0 46c2a: d3c0 addal %d0,%a1 46c2c: 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++ ) 46c2e: 5281 addql #1,%d1 46c30: 0680 0000 0018 addil #24,%d0 _IO_Driver_address_table[index] = driver_table[index]; 46c36: 20d9 movel %a1@+,%a0@+ 46c38: 20d9 movel %a1@+,%a0@+ 46c3a: 20d9 movel %a1@+,%a0@+ 46c3c: 20d9 movel %a1@+,%a0@+ 46c3e: 20d9 movel %a1@+,%a0@+ 46c40: 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++ ) 46c42: b282 cmpl %d2,%d1 46c44: 65e0 bcss 46c26 <_IO_Manager_initialization+0x5a> _IO_Driver_address_table[index] = driver_table[index]; number_of_drivers = drivers_in_table; } 46c46: 4cee 003c fff0 moveml %fp@(-16),%d2-%d5 46c4c: 4e5e unlk %fp 46c4e: 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; 46c50: 23c3 0005 e67e movel %d3,5e67e <_IO_Driver_address_table> _IO_Number_of_drivers = number_of_drivers; 46c56: 23c2 0005 e67a movel %d2,5e67a <_IO_Number_of_drivers> ); for ( index = 0 ; index < drivers_in_table ; index++ ) _IO_Driver_address_table[index] = driver_table[index]; number_of_drivers = drivers_in_table; } 46c5c: 4cee 003c fff0 moveml %fp@(-16),%d2-%d5 46c62: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00047800 <_Internal_error_Occurred>: void _Internal_error_Occurred( Internal_errors_Source the_source, bool is_internal, Internal_errors_t the_error ) { 47800: 4e56 fffc linkw %fp,#-4 47804: 206e 0010 moveal %fp@(16),%a0 47808: 2f02 movel %d2,%sp@- 4780a: 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 ); 4780e: 4282 clrl %d2 47810: 1401 moveb %d1,%d2 47812: 2242 moveal %d2,%a1 47814: 2f08 movel %a0,%sp@- void _Internal_error_Occurred( Internal_errors_Source the_source, bool is_internal, Internal_errors_t the_error ) { 47816: 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 ); 4781a: 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; 4781c: 13c1 0005 e506 moveb %d1,5e506 <_Internal_errors_What_happened+0x4> _Internal_errors_What_happened.the_error = the_error; _User_extensions_Fatal( the_source, is_internal, the_error ); 47822: 2d48 fffc movel %a0,%fp@(-4) bool is_internal, Internal_errors_t the_error ) { _Internal_errors_What_happened.the_source = the_source; 47826: 23c0 0005 e502 movel %d0,5e502 <_Internal_errors_What_happened> _Internal_errors_What_happened.is_internal = is_internal; _Internal_errors_What_happened.the_error = the_error; 4782c: 23c8 0005 e508 movel %a0,5e508 <_Internal_errors_What_happened+0x6> _User_extensions_Fatal( the_source, is_internal, the_error ); 47832: 2f00 movel %d0,%sp@- 47834: 4eb9 0004 963a jsr 4963a <_User_extensions_Fatal> _System_state_Set( SYSTEM_STATE_FAILED ); _CPU_Fatal_halt( the_error ); 4783a: 206e fffc moveal %fp@(-4),%a0 <== NOT EXECUTED 4783e: 327c 0700 moveaw #1792,%a1 <== NOT EXECUTED 47842: 2409 movel %a1,%d2 <== NOT EXECUTED 47844: 40c0 movew %sr,%d0 <== NOT EXECUTED 47846: 8082 orl %d2,%d0 <== NOT EXECUTED 47848: 46c0 movew %d0,%sr <== NOT EXECUTED 4784a: 2008 movel %a0,%d0 <== NOT EXECUTED 4784c: 223c dead beef movel #-559038737,%d1 <== NOT EXECUTED 47852: 4ac8 halt <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _System_state_Set ( System_state_Codes state ) { _System_state_Current = state; 47854: 7005 moveq #5,%d0 <== NOT EXECUTED 47856: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4785a: 23c0 0005 e5d8 movel %d0,5e5d8 <_System_state_Current> <== NOT EXECUTED 47860: 60fe bras 47860 <_Internal_error_Occurred+0x60> <== NOT EXECUTED ... =============================================================================== 000549d4 <_Message_queue_Allocate>: * Output parameters: * the_message_queue - set if successful, NULL otherwise */ Message_queue_Control *_Message_queue_Allocate(void) { 549d4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return (Message_queue_Control *) _Objects_Allocate(&_Message_queue_Information); 549d8: 4879 0006 84da pea 684da <_Message_queue_Information> <== NOT EXECUTED 549de: 4eb9 0005 0d10 jsr 50d10 <_Objects_Allocate> <== NOT EXECUTED } 549e4: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 0004efbc <_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]; 4efbc: 41f9 0006 6b48 lea 66b48 <_Message_queue_Translate_core_return_code_>,%a0<== NOT EXECUTED }; rtems_status_code _Message_queue_Translate_core_message_queue_return_code ( uint32_t status ) { 4efc2: 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]; } 4efc6: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED 4efca: 4e5e unlk %fp <== NOT EXECUTED 4efcc: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED ... =============================================================================== 0004be30 <_Objects_API_maximum_class>: #include unsigned int _Objects_API_maximum_class( uint32_t api ) { 4be30: 7202 moveq #2,%d1 4be32: 4e56 0000 linkw %fp,#0 4be36: 202e 0008 movel %fp@(8),%d0 4be3a: 5380 subql #1,%d0 4be3c: b280 cmpl %d0,%d1 4be3e: 650e bcss 4be4e <_Objects_API_maximum_class+0x1e><== NEVER TAKEN 4be40: 41f9 0005 c20c lea 5c20c ,%a0 case OBJECTS_NO_API: default: break; } return 0; } 4be46: 4e5e unlk %fp #include unsigned int _Objects_API_maximum_class( uint32_t api ) { 4be48: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 case OBJECTS_NO_API: default: break; } return 0; } 4be4c: 4e75 rts #include unsigned int _Objects_API_maximum_class( uint32_t api ) { 4be4e: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_NO_API: default: break; } return 0; } 4be50: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 000478bc <_Objects_Allocate>: */ Objects_Control *_Objects_Allocate( Objects_Information *information ) { 478bc: 4e56 fff0 linkw %fp,#-16 478c0: 48d7 0c0c moveml %d2-%d3/%a2-%a3,%sp@ 478c4: 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 ) 478c8: 4aaa 0014 tstl %a2@(20) 478cc: 660c bnes 478da <_Objects_Allocate+0x1e> <== ALWAYS TAKEN return NULL; 478ce: 4280 clrl %d0 <== NOT EXECUTED ); } #endif return the_object; } 478d0: 4cee 0c0c fff0 moveml %fp@(-16),%d2-%d3/%a2-%a3 478d6: 4e5e unlk %fp 478d8: 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 ); 478da: 240a movel %a2,%d2 478dc: 0682 0000 001c addil #28,%d2 478e2: 47f9 0004 6ee8 lea 46ee8 <_Chain_Get>,%a3 478e8: 2f02 movel %d2,%sp@- 478ea: 4e93 jsr %a3@ if ( information->auto_extend ) { 478ec: 588f addql #4,%sp 478ee: 4a2a 0010 tstb %a2@(16) 478f2: 67dc beqs 478d0 <_Objects_Allocate+0x14> /* * If the list is empty then we are out of objects and need to * extend information base. */ if ( !the_object ) { 478f4: 4a80 tstl %d0 478f6: 6738 beqs 47930 <_Objects_Allocate+0x74> <== NEVER TAKEN } if ( the_object ) { uint32_t block; block = (uint32_t) _Objects_Get_index( the_object->id ) - 478f8: 2040 moveal %d0,%a0 478fa: 4281 clrl %d1 478fc: 4283 clrl %d3 _Objects_Get_index( information->minimum_id ); block /= information->allocation_size; 478fe: 4282 clrl %d2 } if ( the_object ) { uint32_t block; block = (uint32_t) _Objects_Get_index( the_object->id ) - 47900: 362a 0008 movew %a2@(8),%d3 47904: 3228 000a movew %a0@(10),%d1 _Objects_Get_index( information->minimum_id ); block /= information->allocation_size; 47908: 342a 0012 movew %a2@(18),%d2 information->inactive_per_block[ block ]--; 4790c: 206a 002a moveal %a2@(42),%a0 } if ( the_object ) { uint32_t block; block = (uint32_t) _Objects_Get_index( the_object->id ) - 47910: 9283 subl %d3,%d1 _Objects_Get_index( information->minimum_id ); block /= information->allocation_size; 47912: 4c42 1001 remul %d2,%d1,%d1 information->inactive_per_block[ block ]--; information->inactive--; 47916: 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 ]--; 4791a: e589 lsll #2,%d1 information->inactive--; 4791c: 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 ]--; 4791e: d1c1 addal %d1,%a0 47920: 5390 subql #1,%a0@ information->inactive--; 47922: 3549 0028 movew %a1,%a2@(40) ); } #endif return the_object; } 47926: 4cee 0c0c fff0 moveml %fp@(-16),%d2-%d3/%a2-%a3 4792c: 4e5e unlk %fp 4792e: 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 ); 47930: 2f0a movel %a2,%sp@- <== NOT EXECUTED 47932: 4eb9 0004 7978 jsr 47978 <_Objects_Extend_information> <== NOT EXECUTED the_object = (Objects_Control *) _Chain_Get( &information->Inactive ); 47938: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4793a: 4e93 jsr %a3@ <== NOT EXECUTED } if ( the_object ) { 4793c: 508f addql #8,%sp <== NOT EXECUTED 4793e: 4a80 tstl %d0 <== NOT EXECUTED 47940: 66b6 bnes 478f8 <_Objects_Allocate+0x3c> <== NOT EXECUTED ); } #endif return the_object; } 47942: 4cee 0c0c fff0 moveml %fp@(-16),%d2-%d3/%a2-%a3 <== NOT EXECUTED 47948: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 0004794c <_Objects_Close>: RTEMS_INLINE_ROUTINE void _Objects_Invalidate_Id( Objects_Information *information, Objects_Control *the_object ) { _Objects_Set_local_object( 4794c: 4280 clrl %d0 void _Objects_Close( Objects_Information *information, Objects_Control *the_object ) { 4794e: 4e56 0000 linkw %fp,#0 47952: 226e 000c moveal %fp@(12),%a1 47956: 206e 0008 moveal %fp@(8),%a0 4795a: 2f0a movel %a2,%sp@- #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 4795c: 2468 0018 moveal %a0@(24),%a2 RTEMS_INLINE_ROUTINE void _Objects_Invalidate_Id( Objects_Information *information, Objects_Control *the_object ) { _Objects_Set_local_object( 47960: 3029 000a movew %a1@(10),%d0 #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 47964: 42b2 0c00 clrl %a2@(00000000,%d0:l:4) _Objects_Invalidate_Id( information, the_object ); _Objects_Namespace_remove( information, the_object ); } 47968: 245f moveal %sp@+,%a2 Objects_Control *the_object ) { _Objects_Invalidate_Id( information, the_object ); _Objects_Namespace_remove( information, the_object ); 4796a: 2d49 000c movel %a1,%fp@(12) } 4796e: 4e5e unlk %fp Objects_Control *the_object ) { _Objects_Invalidate_Id( information, the_object ); _Objects_Namespace_remove( information, the_object ); 47970: 4ef9 0004 7ef8 jmp 47ef8 <_Objects_Namespace_remove> ... =============================================================================== 00047978 <_Objects_Extend_information>: */ void _Objects_Extend_information( Objects_Information *information ) { 47978: 4e56 ffcc linkw %fp,#-52 4797c: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ 47980: 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 ); 47984: 4285 clrl %d5 index_base = minimum_index; block = 0; /* if ( information->maximum < minimum_index ) */ if ( information->object_blocks == NULL ) 47986: 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 ); 4798a: 3a2a 0008 movew %a2@(8),%d5 index_base = minimum_index; block = 0; /* if ( information->maximum < minimum_index ) */ if ( information->object_blocks == NULL ) 4798e: 4a88 tstl %a0 47990: 6700 0232 beqw 47bc4 <_Objects_Extend_information+0x24c> block_count = 0; else { block_count = information->maximum / information->allocation_size; 47994: 322a 000e movew %a2@(14),%d1 <== NOT EXECUTED 47998: 302a 0012 movew %a2@(18),%d0 <== NOT EXECUTED 4799c: 3801 movew %d1,%d4 <== NOT EXECUTED 4799e: 0284 0000 ffff andil #65535,%d4 <== NOT EXECUTED 479a4: 88c0 divuw %d0,%d4 <== NOT EXECUTED 479a6: 0284 0000 ffff andil #65535,%d4 <== NOT EXECUTED for ( ; block < block_count; block++ ) { 479ac: 6700 022c beqw 47bda <_Objects_Extend_information+0x262><== NOT EXECUTED if ( information->object_blocks[ block ] == NULL ) { 479b0: 4a90 tstl %a0@ <== NOT EXECUTED 479b2: 6700 0236 beqw 47bea <_Objects_Extend_information+0x272><== NOT EXECUTED * information - object information table * * Output parameters: NONE */ void _Objects_Extend_information( 479b6: 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 ); 479b8: 2605 movel %d5,%d3 <== NOT EXECUTED index_base = minimum_index; block = 0; 479ba: 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 ) { 479bc: 0280 0000 ffff andil #65535,%d0 <== NOT EXECUTED do_extend = false; break; } else index_base += information->allocation_size; 479c2: 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++ ) { 479c4: 5282 addql #1,%d2 <== NOT EXECUTED 479c6: b484 cmpl %d4,%d2 <== NOT EXECUTED 479c8: 6400 01a6 bccw 47b70 <_Objects_Extend_information+0x1f8><== NOT EXECUTED if ( information->object_blocks[ block ] == NULL ) { 479cc: 4a98 tstl %a0@+ <== NOT EXECUTED 479ce: 66f2 bnes 479c2 <_Objects_Extend_information+0x4a><== NOT EXECUTED do_extend = false; 479d0: 4207 clrb %d7 <== NOT EXECUTED } else index_base += information->allocation_size; } } maximum = (uint32_t) information->maximum + information->allocation_size; 479d2: 0281 0000 ffff andil #65535,%d1 479d8: 2641 moveal %d1,%a3 479da: 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 ) { 479dc: b7fc 0000 ffff cmpal #65535,%a3 479e2: 6200 0182 bhiw 47b66 <_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; 479e6: 41ea 0014 lea %a2@(20),%a0 479ea: 4c10 0800 mulsl %a0@,%d0 if ( information->auto_extend ) { 479ee: 4a2a 0010 tstb %a2@(16) 479f2: 6700 0182 beqw 47b76 <_Objects_Extend_information+0x1fe> new_object_block = _Workspace_Allocate( block_size ); 479f6: 2f00 movel %d0,%sp@- 479f8: 4eb9 0004 9a7a jsr 49a7a <_Workspace_Allocate> if ( !new_object_block ) 479fe: 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 ); 47a00: 2c00 movel %d0,%d6 if ( !new_object_block ) 47a02: 6700 0162 beqw 47b66 <_Objects_Extend_information+0x1ee> } /* * Do we need to grow the tables? */ if ( do_extend ) { 47a06: 4a07 tstb %d7 47a08: 6700 00c4 beqw 47ace <_Objects_Extend_information+0x156> */ /* * Up the block count and maximum */ block_count++; 47a0c: 2a44 moveal %d4,%a5 47a0e: 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 *)); 47a10: 200b movel %a3,%d0 /* * Allocate the tables and break it up. */ block_size = block_count * (sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) + 47a12: 41f5 da00 lea %a5@(00000000,%a5:l:2),%a0 ((maximum + minimum_index) * sizeof(Objects_Control *)); 47a16: d088 addl %a0,%d0 /* * Allocate the tables and break it up. */ block_size = block_count * (sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) + 47a18: d085 addl %d5,%d0 block_count++; /* * Allocate the tables and break it up. */ block_size = block_count * 47a1a: 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 ); 47a1c: 2f00 movel %d0,%sp@- 47a1e: 4eb9 0004 9a7a jsr 49a7a <_Workspace_Allocate> if ( !object_blocks ) { 47a24: 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 ); 47a26: 2840 moveal %d0,%a4 if ( !object_blocks ) { 47a28: 4a80 tstl %d0 47a2a: 6700 01ce beqw 47bfa <_Objects_Extend_information+0x282> } /* * Break the block into the various sections. */ inactive_per_block = (uint32_t *) _Addresses_Add_offset( 47a2e: 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 ) { 47a30: 4280 clrl %d0 } /* * Break the block into the various sections. */ inactive_per_block = (uint32_t *) _Addresses_Add_offset( 47a32: 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 ) { 47a34: 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); 47a38: 4bf4 7800 lea %a4@(00000000,%d7:l),%a5 47a3c: de8d addl %a5,%d7 47a3e: b085 cmpl %d5,%d0 47a40: 6200 0144 bhiw 47b86 <_Objects_Extend_information+0x20e> } else { /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { 47a44: 4a85 tstl %d5 47a46: 670c beqs 47a54 <_Objects_Extend_information+0xdc><== NEVER TAKEN 47a48: 2047 moveal %d7,%a0 47a4a: 4280 clrl %d0 local_table[ index ] = NULL; 47a4c: 4298 clrl %a0@+ } else { /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { 47a4e: 5280 addql #1,%d0 47a50: b085 cmpl %d5,%d0 47a52: 65f8 bcss 47a4c <_Objects_Extend_information+0xd4><== NEVER TAKEN 47a54: 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 ); 47a56: 4281 clrl %d1 } /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; 47a58: 42b4 4800 clrl %a4@(00000000,%d4:l) inactive_per_block[block_count] = 0; for ( index=index_base ; index < ( information->allocation_size + index_base ); 47a5c: 322a 0012 movew %a2@(18),%d1 /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; 47a60: 42b5 4800 clrl %a5@(00000000,%d4:l) for ( index=index_base ; index < ( information->allocation_size + index_base ); 47a64: 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 ; 47a66: b283 cmpl %d3,%d1 47a68: 6310 blss 47a7a <_Objects_Extend_information+0x102><== NEVER TAKEN 47a6a: 2247 moveal %d7,%a1 * information - object information table * * Output parameters: NONE */ void _Objects_Extend_information( 47a6c: 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 ; 47a6e: 41f1 3c00 lea %a1@(00000000,%d3:l:4),%a0 index < ( information->allocation_size + index_base ); index++ ) { local_table[ index ] = NULL; 47a72: 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++ ) { 47a74: 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 ; 47a76: b280 cmpl %d0,%d1 47a78: 62f8 bhis 47a72 <_Objects_Extend_information+0xfa> index < ( information->allocation_size + index_base ); index++ ) { local_table[ index ] = NULL; } _ISR_Disable( level ); 47a7a: 203c 0000 0700 movel #1792,%d0 47a80: 40c4 movew %sr,%d4 47a82: 8084 orl %d4,%d0 47a84: 46c0 movew %d0,%sr uint32_t the_class, uint32_t node, uint32_t index ) { return (( (Objects_Id) the_api ) << OBJECTS_API_START_BIT) | 47a86: 2012 movel %a2@,%d0 47a88: 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( 47a8a: 4281 clrl %d1 47a8c: eba8 lsll %d5,%d0 47a8e: 4285 clrl %d5 47a90: 3a0b movew %a3,%d5 47a92: 322a 0004 movew %a2@(4),%d1 47a96: 08c0 0010 bset #16,%d0 47a9a: 2245 moveal %d5,%a1 (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) | 47a9c: 7a1b moveq #27,%d5 47a9e: eba9 lsll %d5,%d1 local_table[ index ] = NULL; } _ISR_Disable( level ); old_tables = information->object_blocks; 47aa0: 206a 002e moveal %a2@(46),%a0 47aa4: 8081 orl %d1,%d0 uint32_t the_class, uint32_t node, uint32_t index ) { return (( (Objects_Id) the_api ) << OBJECTS_API_START_BIT) | 47aa6: 2209 movel %a1,%d1 47aa8: 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; 47aaa: 354b 000e movew %a3,%a2@(14) _ISR_Disable( level ); old_tables = information->object_blocks; information->object_blocks = object_blocks; 47aae: 254c 002e movel %a4,%a2@(46) information->inactive_per_block = inactive_per_block; 47ab2: 254d 002a movel %a5,%a2@(42) 47ab6: 2541 000a movel %d1,%a2@(10) information->local_table = local_table; 47aba: 2547 0018 movel %d7,%a2@(24) information->the_class, _Objects_Local_node, information->maximum ); _ISR_Enable( level ); 47abe: 46c4 movew %d4,%sr if ( old_tables ) 47ac0: 4a88 tstl %a0 47ac2: 670a beqs 47ace <_Objects_Extend_information+0x156><== ALWAYS TAKEN _Workspace_Free( old_tables ); 47ac4: 2f08 movel %a0,%sp@- <== NOT EXECUTED 47ac6: 4eb9 0004 9a96 jsr 49a96 <_Workspace_Free> <== NOT EXECUTED 47acc: 588f addql #4,%sp <== NOT EXECUTED } /* * Assign the new object block to the object block table. */ information->object_blocks[ block ] = new_object_block; 47ace: 206a 002e moveal %a2@(46),%a0 /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( 47ad2: 4280 clrl %d0 47ad4: 280e movel %fp,%d4 47ad6: 0684 ffff fff4 addil #-12,%d4 47adc: 47f9 0004 6ee8 lea 46ee8 <_Chain_Get>,%a3 information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); 47ae2: 2a0a movel %a2,%d5 47ae4: 0685 0000 001c addil #28,%d5 47aea: 49f9 0004 6e88 lea 46e88 <_Chain_Append>,%a4 } /* * Assign the new object block to the object block table. */ information->object_blocks[ block ] = new_object_block; 47af0: e58a lsll #2,%d2 /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( 47af2: 302a 0012 movew %a2@(18),%d0 } /* * Assign the new object block to the object block table. */ information->object_blocks[ block ] = new_object_block; 47af6: 2186 2800 movel %d6,%a0@(00000000,%d2:l) /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( 47afa: 2f2a 0014 movel %a2@(20),%sp@- 47afe: 2f00 movel %d0,%sp@- 47b00: 2f06 movel %d6,%sp@- 47b02: 2f04 movel %d4,%sp@- 47b04: 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 ) { 47b0a: 4fef 0010 lea %sp@(16),%sp 47b0e: 2f04 movel %d4,%sp@- 47b10: 4e93 jsr %a3@ 47b12: 588f addql #4,%sp 47b14: 4a80 tstl %d0 47b16: 6734 beqs 47b4c <_Objects_Extend_information+0x1d4><== NEVER TAKEN 47b18: 2212 movel %a2@,%d1 47b1a: 7e18 moveq #24,%d7 the_object->id = _Objects_Build_id( 47b1c: 4286 clrl %d6 47b1e: 2040 moveal %d0,%a0 47b20: 3c2a 0004 movew %a2@(4),%d6 47b24: efa9 lsll %d7,%d1 (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) | 47b26: 1e3c 001b moveb #27,%d7 uint32_t the_class, uint32_t node, uint32_t index ) { return (( (Objects_Id) the_api ) << OBJECTS_API_START_BIT) | 47b2a: 08c1 0010 bset #16,%d1 (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) | 47b2e: efae lsll %d7,%d6 47b30: 8286 orl %d6,%d1 uint32_t the_class, uint32_t node, uint32_t index ) { return (( (Objects_Id) the_api ) << OBJECTS_API_START_BIT) | 47b32: 8283 orl %d3,%d1 index ); _Chain_Append( &information->Inactive, &the_object->Node ); index++; 47b34: 5283 addql #1,%d3 47b36: 2141 0008 movel %d1,%a0@(8) information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); 47b3a: 2f00 movel %d0,%sp@- 47b3c: 2f05 movel %d5,%sp@- 47b3e: 4e94 jsr %a4@ index++; 47b40: 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 ) { 47b42: 2f04 movel %d4,%sp@- 47b44: 4e93 jsr %a3@ 47b46: 588f addql #4,%sp 47b48: 4a80 tstl %d0 47b4a: 66cc bnes 47b18 <_Objects_Extend_information+0x1a0> _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; 47b4c: 4281 clrl %d1 47b4e: 302a 0012 movew %a2@(18),%d0 information->inactive = (Objects_Maximum)(information->inactive + information->allocation_size); 47b52: 326a 0028 moveaw %a2@(40),%a1 _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; 47b56: 206a 002a moveal %a2@(42),%a0 47b5a: 3200 movew %d0,%d1 information->inactive = (Objects_Maximum)(information->inactive + information->allocation_size); 47b5c: d089 addl %a1,%d0 _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; 47b5e: 2181 2800 movel %d1,%a0@(00000000,%d2:l) information->inactive = 47b62: 3540 0028 movew %d0,%a2@(40) (Objects_Maximum)(information->inactive + information->allocation_size); } 47b66: 4cee 3cfc ffcc moveml %fp@(-52),%d2-%d7/%a2-%a5 47b6c: 4e5e unlk %fp 47b6e: 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; 47b70: 7e01 moveq #1,%d7 <== NOT EXECUTED 47b72: 6000 fe5e braw 479d2 <_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 ); 47b76: 2f00 movel %d0,%sp@- 47b78: 4eb9 0004 9aae jsr 49aae <_Workspace_Allocate_or_fatal_error> 47b7e: 588f addql #4,%sp 47b80: 2c00 movel %d0,%d6 47b82: 6000 fe82 braw 47a06 <_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, 47b86: e58c lsll #2,%d4 <== NOT EXECUTED 47b88: 2f04 movel %d4,%sp@- <== NOT EXECUTED 47b8a: 2f2a 002e movel %a2@(46),%sp@- <== NOT EXECUTED 47b8e: 2f0c movel %a4,%sp@- <== NOT EXECUTED 47b90: 4eb9 0004 e0c8 jsr 4e0c8 <== NOT EXECUTED information->object_blocks, block_count * sizeof(void*) ); memcpy( inactive_per_block, 47b96: 2f04 movel %d4,%sp@- <== NOT EXECUTED 47b98: 2f2a 002a movel %a2@(42),%sp@- <== NOT EXECUTED 47b9c: 2f0d movel %a5,%sp@- <== NOT EXECUTED 47b9e: 4eb9 0004 e0c8 jsr 4e0c8 <== NOT EXECUTED information->inactive_per_block, block_count * sizeof(uint32_t) ); memcpy( local_table, information->local_table, (information->maximum + minimum_index) * sizeof(Objects_Control *) ); 47ba4: 4280 clrl %d0 <== NOT EXECUTED 47ba6: 302a 000e movew %a2@(14),%d0 <== NOT EXECUTED 47baa: 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, 47bac: e58d lsll #2,%d5 <== NOT EXECUTED 47bae: 2f05 movel %d5,%sp@- <== NOT EXECUTED 47bb0: 2f2a 0018 movel %a2@(24),%sp@- <== NOT EXECUTED 47bb4: 2f07 movel %d7,%sp@- <== NOT EXECUTED 47bb6: 4eb9 0004 e0c8 jsr 4e0c8 <== NOT EXECUTED 47bbc: 4fef 0024 lea %sp@(36),%sp <== NOT EXECUTED 47bc0: 6000 fe94 braw 47a56 <_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 ) 47bc4: 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 ); 47bc6: 2605 movel %d5,%d3 index_base = minimum_index; block = 0; 47bc8: 4282 clrl %d2 /* if ( information->maximum < minimum_index ) */ if ( information->object_blocks == NULL ) block_count = 0; 47bca: 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 ) 47bcc: 322a 000e movew %a2@(14),%d1 47bd0: 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; 47bd4: 7e01 moveq #1,%d7 47bd6: 6000 fdfa braw 479d2 <_Objects_Extend_information+0x5a> minimum_index = _Objects_Get_index( information->minimum_id ); 47bda: 2605 movel %d5,%d3 <== NOT EXECUTED index_base = minimum_index; block = 0; 47bdc: 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++ ) { 47bde: 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; 47be4: 7e01 moveq #1,%d7 <== NOT EXECUTED 47be6: 6000 fdea braw 479d2 <_Objects_Extend_information+0x5a><== NOT EXECUTED minimum_index = _Objects_Get_index( information->minimum_id ); 47bea: 2605 movel %d5,%d3 <== NOT EXECUTED index_base = minimum_index; block = 0; 47bec: 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 ) { 47bee: 0280 0000 ffff andil #65535,%d0 <== NOT EXECUTED do_extend = false; 47bf4: 4207 clrb %d7 <== NOT EXECUTED 47bf6: 6000 fdda braw 479d2 <_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 ); 47bfa: 2f06 movel %d6,%sp@- <== NOT EXECUTED 47bfc: 4eb9 0004 9a96 jsr 49a96 <_Workspace_Free> <== NOT EXECUTED return; 47c02: 588f addql #4,%sp <== NOT EXECUTED } information->inactive_per_block[ block ] = information->allocation_size; information->inactive = (Objects_Maximum)(information->inactive + information->allocation_size); } 47c04: 4cee 3cfc ffcc moveml %fp@(-52),%d2-%d7/%a2-%a5 <== NOT EXECUTED 47c0a: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 00047c10 <_Objects_Free>: void _Objects_Free( Objects_Information *information, Objects_Control *the_object ) { 47c10: 4e56 fff0 linkw %fp,#-16 47c14: 48d7 0c0c moveml %d2-%d3/%a2-%a3,%sp@ 47c18: 266e 000c moveal %fp@(12),%a3 47c1c: 246e 0008 moveal %fp@(8),%a2 uint32_t allocation_size = information->allocation_size; _Chain_Append( &information->Inactive, &the_object->Node ); 47c20: 2f0b movel %a3,%sp@- 47c22: 486a 001c pea %a2@(28) void _Objects_Free( Objects_Information *information, Objects_Control *the_object ) { uint32_t allocation_size = information->allocation_size; 47c26: 342a 0012 movew %a2@(18),%d2 _Chain_Append( &information->Inactive, &the_object->Node ); 47c2a: 4eb9 0004 6e88 jsr 46e88 <_Chain_Append> if ( information->auto_extend ) { 47c30: 508f addql #8,%sp 47c32: 4a2a 0010 tstb %a2@(16) 47c36: 6740 beqs 47c78 <_Objects_Free+0x68> <== ALWAYS TAKEN uint32_t block; block = (uint32_t) (_Objects_Get_index( the_object->id ) - 47c38: 4280 clrl %d0 <== NOT EXECUTED 47c3a: 4283 clrl %d3 <== NOT EXECUTED _Objects_Get_index( information->minimum_id )); block /= information->allocation_size; 47c3c: 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 ) - 47c3e: 302b 000a movew %a3@(10),%d0 <== NOT EXECUTED 47c42: 362a 0008 movew %a2@(8),%d3 <== NOT EXECUTED _Objects_Get_index( information->minimum_id )); block /= information->allocation_size; 47c46: 322a 0012 movew %a2@(18),%d1 <== NOT EXECUTED information->inactive_per_block[ block ]++; 47c4a: 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 ) - 47c4e: 9083 subl %d3,%d0 <== NOT EXECUTED _Objects_Get_index( information->minimum_id )); block /= information->allocation_size; 47c50: 4c41 0000 remul %d1,%d0,%d0 <== NOT EXECUTED information->inactive_per_block[ block ]++; information->inactive++; 47c54: 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; 47c58: 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 ]++; 47c5e: e588 lsll #2,%d0 <== NOT EXECUTED information->inactive++; 47c60: 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 ) ) ) { 47c62: 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 ]++; 47c64: d1c0 addal %d0,%a0 <== NOT EXECUTED 47c66: 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 ) ) ) { 47c68: 4280 clrl %d0 <== NOT EXECUTED 47c6a: e28b lsrl #1,%d3 <== NOT EXECUTED 47c6c: d483 addl %d3,%d2 <== NOT EXECUTED 47c6e: 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++; 47c70: 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 ) ) ) { 47c74: b480 cmpl %d0,%d2 <== NOT EXECUTED 47c76: 650a bcss 47c82 <_Objects_Free+0x72> <== NOT EXECUTED _Objects_Shrink_information( information ); } } } 47c78: 4cee 0c0c fff0 moveml %fp@(-16),%d2-%d3/%a2-%a3 47c7e: 4e5e unlk %fp 47c80: 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 ); 47c82: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED } } } 47c86: 4cee 0c0c fff0 moveml %fp@(-16),%d2-%d3/%a2-%a3 <== NOT EXECUTED 47c8c: 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 ); 47c8e: 4ef9 0004 7f88 jmp 47f88 <_Objects_Shrink_information> <== NOT EXECUTED =============================================================================== 00047d7c <_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; 47d7c: 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 ) { 47d7e: 4281 clrl %d1 Objects_Control *_Objects_Get( Objects_Information *information, Objects_Id id, Objects_Locations *location ) { 47d80: 4e56 fffc linkw %fp,#-4 47d84: 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; 47d88: 90a8 0006 subl %a0@(6),%d0 47d8c: d0ae 000c addl %fp@(12),%d0 Objects_Control *_Objects_Get( Objects_Information *information, Objects_Id id, Objects_Locations *location ) { 47d90: 2f0a movel %a2,%sp@- 47d92: 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 ) { 47d96: 3228 000e movew %a0@(14),%d1 47d9a: b280 cmpl %d0,%d1 47d9c: 6522 bcss 47dc0 <_Objects_Get+0x44> <== NEVER TAKEN 47d9e: 2239 0005 e46c movel 5e46c <_Thread_Dispatch_disable_level>,%d1 47da4: 5281 addql #1,%d1 47da6: 23c1 0005 e46c movel %d1,5e46c <_Thread_Dispatch_disable_level> _Thread_Disable_dispatch(); if ( (the_object = information->local_table[ index ]) != NULL ) { 47dac: 2068 0018 moveal %a0@(24),%a0 47db0: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 47db4: 6718 beqs 47dce <_Objects_Get+0x52> <== NEVER TAKEN *location = OBJECTS_LOCAL; 47db6: 4292 clrl %a2@ _Objects_MP_Is_remote( information, id, location, &the_object ); return the_object; #else return NULL; #endif } 47db8: 246e fff8 moveal %fp@(-8),%a2 47dbc: 4e5e unlk %fp 47dbe: 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; 47dc0: 7001 moveq #1,%d0 <== NOT EXECUTED 47dc2: 2480 movel %d0,%a2@ <== NOT EXECUTED _Objects_MP_Is_remote( information, id, location, &the_object ); return the_object; #else return NULL; #endif } 47dc4: 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; 47dc8: 4280 clrl %d0 <== NOT EXECUTED #endif } 47dca: 4e5e unlk %fp <== NOT EXECUTED 47dcc: 4e75 rts <== NOT EXECUTED /* * Valid Id for this API, Class and Node but the object has not * been allocated yet. */ _Thread_Enable_dispatch(); 47dce: 2d40 fffc movel %d0,%fp@(-4) <== NOT EXECUTED 47dd2: 4eb9 0004 8666 jsr 48666 <_Thread_Enable_dispatch> <== NOT EXECUTED *location = OBJECTS_ERROR; return NULL; 47dd8: 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; 47ddc: 7201 moveq #1,%d1 <== NOT EXECUTED 47dde: 2481 movel %d1,%a2@ <== NOT EXECUTED _Objects_MP_Is_remote( information, id, location, &the_object ); return the_object; #else return NULL; #endif } 47de0: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 47de4: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00047cc0 <_Objects_Get_information>: Objects_Information *_Objects_Get_information( Objects_APIs the_api, uint16_t the_class ) { 47cc0: 4e56 0000 linkw %fp,#0 47cc4: 2f02 movel %d2,%sp@- 47cc6: 342e 000e movew %fp@(14),%d2 Objects_Information *info; int the_class_api_maximum; if ( !the_class ) 47cca: 660a bnes 47cd6 <_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; 47ccc: 4280 clrl %d0 <== NOT EXECUTED if ( info->maximum == 0 ) return NULL; #endif return info; } 47cce: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 47cd2: 4e5e unlk %fp <== NOT EXECUTED 47cd4: 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 ); 47cd6: 2f2e 0008 movel %fp@(8),%sp@- 47cda: 4eb9 0004 be30 jsr 4be30 <_Objects_API_maximum_class> if ( the_class_api_maximum == 0 ) 47ce0: 588f addql #4,%sp 47ce2: 4a80 tstl %d0 47ce4: 67e6 beqs 47ccc <_Objects_Get_information+0xc> <== NEVER TAKEN return NULL; if ( the_class > (uint32_t) the_class_api_maximum ) 47ce6: 0282 0000 ffff andil #65535,%d2 47cec: b480 cmpl %d0,%d2 47cee: 62dc bhis 47ccc <_Objects_Get_information+0xc> <== NEVER TAKEN return NULL; if ( !_Objects_Information_table[ the_api ] ) 47cf0: 202e 0008 movel %fp@(8),%d0 47cf4: 41f9 0005 e428 lea 5e428 <_Objects_Information_table>,%a0 47cfa: 2070 0c00 moveal %a0@(00000000,%d0:l:4),%a0 47cfe: 4a88 tstl %a0 47d00: 67ca beqs 47ccc <_Objects_Get_information+0xc> <== NEVER TAKEN return NULL; info = _Objects_Information_table[ the_api ][ the_class ]; 47d02: 2030 2c00 movel %a0@(00000000,%d2:l:4),%d0 if ( !info ) 47d06: 67c6 beqs 47cce <_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; 47d08: 2040 moveal %d0,%a0 47d0a: 4a68 000e tstw %a0@(14) 47d0e: 56c1 sne %d1 #endif return info; } 47d10: 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; 47d14: 49c1 extbl %d1 #endif return info; } 47d16: 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; 47d18: c081 andl %d1,%d0 <== NOT EXECUTED #endif return info; } =============================================================================== 00047d1c <_Objects_Get_isr_disable>: { Objects_Control *the_object; uint32_t index; ISR_Level level; index = id - information->minimum_id + 1; 47d1c: 7001 moveq #1,%d0 _ISR_Disable( level ); 47d1e: 223c 0000 0700 movel #1792,%d1 Objects_Information *information, Objects_Id id, Objects_Locations *location, ISR_Level *level_p ) { 47d24: 4e56 0000 linkw %fp,#0 47d28: 206e 0008 moveal %fp@(8),%a0 Objects_Control *the_object; uint32_t index; ISR_Level level; index = id - information->minimum_id + 1; 47d2c: 90a8 0006 subl %a0@(6),%d0 47d30: d0ae 000c addl %fp@(12),%d0 Objects_Information *information, Objects_Id id, Objects_Locations *location, ISR_Level *level_p ) { 47d34: 2f02 movel %d2,%sp@- 47d36: 226e 0010 moveal %fp@(16),%a1 uint32_t index; ISR_Level level; index = id - information->minimum_id + 1; _ISR_Disable( level ); 47d3a: 40c2 movew %sr,%d2 47d3c: 8282 orl %d2,%d1 47d3e: 46c1 movew %d1,%sr if ( information->maximum >= index ) { 47d40: 4281 clrl %d1 47d42: 3228 000e movew %a0@(14),%d1 47d46: b280 cmpl %d0,%d1 47d48: 6518 bcss 47d62 <_Objects_Get_isr_disable+0x46> <== NEVER TAKEN if ( (the_object = information->local_table[ index ]) != NULL ) { 47d4a: 2068 0018 moveal %a0@(24),%a0 47d4e: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 47d52: 671c beqs 47d70 <_Objects_Get_isr_disable+0x54> <== NEVER TAKEN *location = OBJECTS_LOCAL; *level_p = level; 47d54: 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; 47d58: 4291 clrl %a1@ *level_p = level; 47d5a: 2082 movel %d2,%a0@ _Objects_MP_Is_remote( information, id, location, &the_object ); return the_object; #else return NULL; #endif } 47d5c: 241f movel %sp@+,%d2 47d5e: 4e5e unlk %fp 47d60: 4e75 rts } _ISR_Enable( level ); *location = OBJECTS_ERROR; return NULL; } _ISR_Enable( level ); 47d62: 46c2 movew %d2,%sr <== NOT EXECUTED *location = OBJECTS_ERROR; 47d64: 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; 47d66: 4280 clrl %d0 <== NOT EXECUTED #endif } 47d68: 241f movel %sp@+,%d2 <== NOT EXECUTED 47d6a: 4e5e unlk %fp <== NOT EXECUTED _ISR_Enable( level ); *location = OBJECTS_ERROR; return NULL; } _ISR_Enable( level ); *location = OBJECTS_ERROR; 47d6c: 2281 movel %d1,%a1@ <== NOT EXECUTED _Objects_MP_Is_remote( information, id, location, &the_object ); return the_object; #else return NULL; #endif } 47d6e: 4e75 rts <== NOT EXECUTED if ( (the_object = information->local_table[ index ]) != NULL ) { *location = OBJECTS_LOCAL; *level_p = level; return the_object; } _ISR_Enable( level ); 47d70: 46c2 movew %d2,%sr <== NOT EXECUTED *location = OBJECTS_ERROR; 47d72: 7401 moveq #1,%d2 <== NOT EXECUTED 47d74: 2282 movel %d2,%a1@ <== NOT EXECUTED _Objects_MP_Is_remote( information, id, location, &the_object ); return the_object; #else return NULL; #endif } 47d76: 241f movel %sp@+,%d2 <== NOT EXECUTED 47d78: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 000497a4 <_Objects_Get_name_as_string>: char *_Objects_Get_name_as_string( Objects_Id id, size_t length, char *name ) { 497a4: 4e56 ffdc linkw %fp,#-36 <== NOT EXECUTED 497a8: 48d7 0c3c moveml %d2-%d5/%a2-%a3,%sp@ <== NOT EXECUTED 497ac: 262e 000c movel %fp@(12),%d3 <== NOT EXECUTED 497b0: 242e 0010 movel %fp@(16),%d2 <== NOT EXECUTED char lname[5]; Objects_Control *the_object; Objects_Locations location; Objects_Id tmpId; if ( length == 0 ) 497b4: 4a83 tstl %d3 <== NOT EXECUTED 497b6: 660e bnes 497c6 <_Objects_Get_name_as_string+0x22><== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) case OBJECTS_REMOTE: /* not supported */ #endif case OBJECTS_ERROR: return NULL; 497b8: 4282 clrl %d2 <== NOT EXECUTED _Thread_Enable_dispatch(); return name; } return NULL; /* unreachable path */ } 497ba: 2002 movel %d2,%d0 <== NOT EXECUTED 497bc: 4cee 0c3c ffdc moveml %fp@(-36),%d2-%d5/%a2-%a3 <== NOT EXECUTED 497c2: 4e5e unlk %fp <== NOT EXECUTED 497c4: 4e75 rts <== NOT EXECUTED Objects_Id tmpId; if ( length == 0 ) return NULL; if ( name == NULL ) 497c6: 4a82 tstl %d2 <== NOT EXECUTED 497c8: 67f0 beqs 497ba <_Objects_Get_name_as_string+0x16><== NOT EXECUTED return NULL; tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; 497ca: 4aae 0008 tstl %fp@(8) <== NOT EXECUTED 497ce: 6600 00ac bnew 4987c <_Objects_Get_name_as_string+0xd8><== NOT EXECUTED 497d2: 2079 0006 8c38 moveal 68c38 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED 497d8: 2828 0008 movel %a0@(8),%d4 <== NOT EXECUTED information = _Objects_Get_information_id( tmpId ); 497dc: 2f04 movel %d4,%sp@- <== NOT EXECUTED 497de: 4eb9 0004 96bc jsr 496bc <_Objects_Get_information_id> <== NOT EXECUTED if ( !information ) 497e4: 588f addql #4,%sp <== NOT EXECUTED 497e6: 4a80 tstl %d0 <== NOT EXECUTED 497e8: 67ce beqs 497b8 <_Objects_Get_name_as_string+0x14><== NOT EXECUTED return NULL; the_object = _Objects_Get( information, tmpId, &location ); 497ea: 486e fffc pea %fp@(-4) <== NOT EXECUTED 497ee: 2f04 movel %d4,%sp@- <== NOT EXECUTED 497f0: 2f00 movel %d0,%sp@- <== NOT EXECUTED 497f2: 4eb9 0004 9890 jsr 49890 <_Objects_Get> <== NOT EXECUTED switch ( location ) { 497f8: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 497fc: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 49800: 66b6 bnes 497b8 <_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; 49802: 2040 moveal %d0,%a0 <== NOT EXECUTED lname[ 0 ] = (u32_name >> 24) & 0xff; 49804: 7818 moveq #24,%d4 <== NOT EXECUTED s = lname; } d = name; if ( s ) { for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) { 49806: 5383 subql #1,%d3 <== 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; 49808: 2228 000c movel %a0@(12),%d1 <== NOT EXECUTED lname[ 0 ] = (u32_name >> 24) & 0xff; 4980c: 2001 movel %d1,%d0 <== NOT EXECUTED 4980e: e8a8 lsrl %d4,%d0 <== NOT EXECUTED lname[ 1 ] = (u32_name >> 16) & 0xff; lname[ 2 ] = (u32_name >> 8) & 0xff; 49810: 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; 49812: 2a01 movel %d1,%d5 <== NOT EXECUTED lname[ 2 ] = (u32_name >> 8) & 0xff; 49814: e08c lsrl #8,%d4 <== NOT EXECUTED lname[ 3 ] = (u32_name >> 0) & 0xff; 49816: 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; 4981a: 4245 clrw %d5 <== NOT EXECUTED 4981c: 4845 swap %d5 <== NOT EXECUTED lname[ 2 ] = (u32_name >> 8) & 0xff; lname[ 3 ] = (u32_name >> 0) & 0xff; lname[ 4 ] = '\0'; 4981e: 4201 clrb %d1 <== NOT EXECUTED } else #endif { uint32_t u32_name = (uint32_t) the_object->name.name_u32; lname[ 0 ] = (u32_name >> 24) & 0xff; 49820: 1d40 fff7 moveb %d0,%fp@(-9) <== NOT EXECUTED lname[ 1 ] = (u32_name >> 16) & 0xff; 49824: 1d45 fff8 moveb %d5,%fp@(-8) <== NOT EXECUTED lname[ 2 ] = (u32_name >> 8) & 0xff; 49828: 1d44 fff9 moveb %d4,%fp@(-7) <== NOT EXECUTED lname[ 3 ] = (u32_name >> 0) & 0xff; lname[ 4 ] = '\0'; 4982c: 1d41 fffb moveb %d1,%fp@(-5) <== NOT EXECUTED s = lname; } d = name; if ( s ) { for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) { 49830: 4a83 tstl %d3 <== NOT EXECUTED 49832: 6750 beqs 49884 <_Objects_Get_name_as_string+0xe0><== NOT EXECUTED 49834: 4a00 tstb %d0 <== NOT EXECUTED 49836: 674c beqs 49884 <_Objects_Get_name_as_string+0xe0><== NOT EXECUTED 49838: 47ee fff8 lea %fp@(-8),%a3 <== NOT EXECUTED 4983c: 2242 moveal %d2,%a1 <== NOT EXECUTED 4983e: 91c8 subal %a0,%a0 <== NOT EXECUTED *d = (isprint((unsigned char)*s)) ? *s : '*'; 49840: 4281 clrl %d1 <== NOT EXECUTED 49842: 1200 moveb %d0,%d1 <== NOT EXECUTED s = lname; } d = name; if ( s ) { for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) { 49844: 5288 addql #1,%a0 <== NOT EXECUTED *d = (isprint((unsigned char)*s)) ? *s : '*'; 49846: 2479 0005 f658 moveal 5f658 <__ctype_ptr__>,%a2 <== NOT EXECUTED 4984c: 1232 1801 moveb %a2@(00000001,%d1:l),%d1 <== NOT EXECUTED 49850: 49c1 extbl %d1 <== NOT EXECUTED 49852: 0281 0000 0097 andil #151,%d1 <== NOT EXECUTED 49858: 6602 bnes 4985c <_Objects_Get_name_as_string+0xb8><== NOT EXECUTED 4985a: 702a moveq #42,%d0 <== NOT EXECUTED 4985c: 12c0 moveb %d0,%a1@+ <== NOT EXECUTED s = lname; } d = name; if ( s ) { for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) { 4985e: 2449 moveal %a1,%a2 <== NOT EXECUTED 49860: b688 cmpl %a0,%d3 <== NOT EXECUTED 49862: 6304 blss 49868 <_Objects_Get_name_as_string+0xc4><== NOT EXECUTED 49864: 101b moveb %a3@+,%d0 <== NOT EXECUTED 49866: 66d8 bnes 49840 <_Objects_Get_name_as_string+0x9c><== NOT EXECUTED *d = (isprint((unsigned char)*s)) ? *s : '*'; } } *d = '\0'; 49868: 4212 clrb %a2@ <== NOT EXECUTED _Thread_Enable_dispatch(); 4986a: 4eb9 0004 a0fa jsr 4a0fa <_Thread_Enable_dispatch> <== NOT EXECUTED return name; } return NULL; /* unreachable path */ } 49870: 2002 movel %d2,%d0 <== NOT EXECUTED 49872: 4cee 0c3c ffdc moveml %fp@(-36),%d2-%d5/%a2-%a3 <== NOT EXECUTED 49878: 4e5e unlk %fp <== NOT EXECUTED 4987a: 4e75 rts <== NOT EXECUTED return NULL; if ( name == NULL ) return NULL; tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; 4987c: 282e 0008 movel %fp@(8),%d4 <== NOT EXECUTED 49880: 6000 ff5a braw 497dc <_Objects_Get_name_as_string+0x38><== NOT EXECUTED s = lname; } d = name; if ( s ) { for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) { 49884: 2442 moveal %d2,%a2 <== NOT EXECUTED *d = (isprint((unsigned char)*s)) ? *s : '*'; } } *d = '\0'; 49886: 4212 clrb %a2@ <== NOT EXECUTED _Thread_Enable_dispatch(); 49888: 4eb9 0004 a0fa jsr 4a0fa <_Thread_Enable_dispatch> <== NOT EXECUTED 4988e: 60e0 bras 49870 <_Objects_Get_name_as_string+0xcc><== NOT EXECUTED =============================================================================== 00047f84 <_Objects_Get_next>: Objects_Information *information, Objects_Id id, Objects_Locations *location_p, Objects_Id *next_id_p ) { 47f84: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 47f88: 48d7 1c04 moveml %d2/%a2-%a4,%sp@ <== NOT EXECUTED 47f8c: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 47f90: 266e 0010 moveal %fp@(16),%a3 <== NOT EXECUTED Objects_Control *object; Objects_Id next_id; if ( !information ) 47f94: 4a8a tstl %a2 <== NOT EXECUTED 47f96: 660c bnes 47fa4 <_Objects_Get_next+0x20> <== NOT EXECUTED if ( !location_p ) return NULL; if ( !next_id_p ) return NULL; 47f98: 4280 clrl %d0 <== NOT EXECUTED return object; final: *next_id_p = OBJECTS_ID_FINAL; return 0; } 47f9a: 4cee 1c04 fff0 moveml %fp@(-16),%d2/%a2-%a4 <== NOT EXECUTED 47fa0: 4e5e unlk %fp <== NOT EXECUTED 47fa2: 4e75 rts <== NOT EXECUTED Objects_Id next_id; if ( !information ) return NULL; if ( !location_p ) 47fa4: 4a8b tstl %a3 <== NOT EXECUTED 47fa6: 67f0 beqs 47f98 <_Objects_Get_next+0x14> <== NOT EXECUTED return NULL; if ( !next_id_p ) 47fa8: 4aae 0014 tstl %fp@(20) <== NOT EXECUTED 47fac: 67ea beqs 47f98 <_Objects_Get_next+0x14> <== NOT EXECUTED return NULL; if (_Objects_Get_index(id) == OBJECTS_ID_INITIAL_INDEX) 47fae: 302e 000e movew %fp@(14),%d0 <== NOT EXECUTED 47fb2: 663a bnes 47fee <_Objects_Get_next+0x6a> <== NOT EXECUTED next_id = information->minimum_id; 47fb4: 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); 47fb8: 49f9 0004 8014 lea 48014 <_Objects_Get>,%a4 <== NOT EXECUTED else next_id = id; do { /* walked off end of list? */ if (_Objects_Get_index(next_id) > information->maximum) 47fbe: 4281 clrl %d1 <== NOT EXECUTED 47fc0: 4280 clrl %d0 <== NOT EXECUTED 47fc2: 322a 000e movew %a2@(14),%d1 <== NOT EXECUTED 47fc6: 3002 movew %d2,%d0 <== NOT EXECUTED 47fc8: b081 cmpl %d1,%d0 <== NOT EXECUTED 47fca: 622e bhis 47ffa <_Objects_Get_next+0x76> <== NOT EXECUTED *location_p = OBJECTS_ERROR; goto final; } /* try to grab one */ object = _Objects_Get(information, next_id, location_p); 47fcc: 2f0b movel %a3,%sp@- <== NOT EXECUTED 47fce: 2f02 movel %d2,%sp@- <== NOT EXECUTED next_id++; 47fd0: 5282 addql #1,%d2 <== NOT EXECUTED *location_p = OBJECTS_ERROR; goto final; } /* try to grab one */ object = _Objects_Get(information, next_id, location_p); 47fd2: 2f0a movel %a2,%sp@- <== NOT EXECUTED 47fd4: 4e94 jsr %a4@ <== NOT EXECUTED next_id++; } while (*location_p != OBJECTS_LOCAL); 47fd6: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 47fda: 4a93 tstl %a3@ <== NOT EXECUTED 47fdc: 66e0 bnes 47fbe <_Objects_Get_next+0x3a> <== NOT EXECUTED *next_id_p = next_id; 47fde: 206e 0014 moveal %fp@(20),%a0 <== NOT EXECUTED 47fe2: 2082 movel %d2,%a0@ <== NOT EXECUTED return object; final: *next_id_p = OBJECTS_ID_FINAL; return 0; } 47fe4: 4cee 1c04 fff0 moveml %fp@(-16),%d2/%a2-%a4 <== NOT EXECUTED 47fea: 4e5e unlk %fp <== NOT EXECUTED 47fec: 4e75 rts <== NOT EXECUTED return NULL; if (_Objects_Get_index(id) == OBJECTS_ID_INITIAL_INDEX) next_id = information->minimum_id; else next_id = id; 47fee: 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); 47ff2: 49f9 0004 8014 lea 48014 <_Objects_Get>,%a4 <== NOT EXECUTED 47ff8: 60c4 bras 47fbe <_Objects_Get_next+0x3a> <== NOT EXECUTED do { /* walked off end of list? */ if (_Objects_Get_index(next_id) > information->maximum) { *location_p = OBJECTS_ERROR; 47ffa: 7401 moveq #1,%d2 <== NOT EXECUTED *next_id_p = next_id; return object; final: *next_id_p = OBJECTS_ID_FINAL; 47ffc: 72ff moveq #-1,%d1 <== NOT EXECUTED return 0; 47ffe: 4280 clrl %d0 <== NOT EXECUTED do { /* walked off end of list? */ if (_Objects_Get_index(next_id) > information->maximum) { *location_p = OBJECTS_ERROR; 48000: 2682 movel %d2,%a3@ <== NOT EXECUTED *next_id_p = next_id; return object; final: *next_id_p = OBJECTS_ID_FINAL; 48002: 206e 0014 moveal %fp@(20),%a0 <== NOT EXECUTED return 0; } 48006: 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; 4800c: 2081 movel %d1,%a0@ <== NOT EXECUTED return 0; } 4800e: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 0005b804 <_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; 5b804: 7001 moveq #1,%d0 <== NOT EXECUTED if ( information->maximum >= index ) { 5b806: 4281 clrl %d1 <== NOT EXECUTED Objects_Control *_Objects_Get_no_protection( Objects_Information *information, Objects_Id id, Objects_Locations *location ) { 5b808: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 5b80c: 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; 5b810: 90a8 0006 subl %a0@(6),%d0 <== NOT EXECUTED 5b814: d0ae 000c addl %fp@(12),%d0 <== NOT EXECUTED if ( information->maximum >= index ) { 5b818: 3228 000e movew %a0@(14),%d1 <== NOT EXECUTED Objects_Control *_Objects_Get_no_protection( Objects_Information *information, Objects_Id id, Objects_Locations *location ) { 5b81c: 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 ) { 5b820: b280 cmpl %d0,%d1 <== NOT EXECUTED 5b822: 6510 bcss 5b834 <_Objects_Get_no_protection+0x30><== NOT EXECUTED if ( (the_object = information->local_table[ index ]) != NULL ) { 5b824: 2068 0018 moveal %a0@(24),%a0 <== NOT EXECUTED 5b828: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED 5b82c: 6706 beqs 5b834 <_Objects_Get_no_protection+0x30><== NOT EXECUTED *location = OBJECTS_LOCAL; 5b82e: 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; } 5b830: 4e5e unlk %fp <== NOT EXECUTED 5b832: 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; 5b834: 7001 moveq #1,%d0 <== NOT EXECUTED return NULL; } 5b836: 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; 5b838: 2280 movel %d0,%a1@ <== NOT EXECUTED return NULL; 5b83a: 4280 clrl %d0 <== NOT EXECUTED } ... =============================================================================== 000494d8 <_Objects_Id_to_name>: */ Objects_Name_or_id_lookup_errors _Objects_Id_to_name ( Objects_Id id, Objects_Name *name ) { 494d8: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 494dc: 222e 0008 movel %fp@(8),%d1 <== NOT EXECUTED 494e0: 2f02 movel %d2,%sp@- <== NOT EXECUTED /* * Caller is trusted for name != NULL. */ tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; 494e2: 4a81 tstl %d1 <== NOT EXECUTED 494e4: 660a bnes 494f0 <_Objects_Id_to_name+0x18> <== NOT EXECUTED 494e6: 2079 0006 0308 moveal 60308 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED 494ec: 2228 0008 movel %a0@(8),%d1 <== NOT EXECUTED 494f0: 7418 moveq #24,%d2 <== NOT EXECUTED 494f2: 2001 movel %d1,%d0 <== NOT EXECUTED 494f4: e4a8 lsrl %d2,%d0 <== NOT EXECUTED 494f6: 143c 0007 moveb #7,%d2 <== NOT EXECUTED 494fa: 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 ) 494fc: 143c 0002 moveb #2,%d2 <== NOT EXECUTED 49500: 2040 moveal %d0,%a0 <== NOT EXECUTED 49502: 5388 subql #1,%a0 <== NOT EXECUTED 49504: b488 cmpl %a0,%d2 <== NOT EXECUTED 49506: 654a bcss 49552 <_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 ] ) 49508: 41f9 0006 0100 lea 60100 <_Objects_Information_table>,%a0 <== NOT EXECUTED 4950e: 2070 0c00 moveal %a0@(00000000,%d0:l:4),%a0 <== NOT EXECUTED 49512: 4a88 tstl %a0 <== NOT EXECUTED 49514: 673c beqs 49552 <_Objects_Id_to_name+0x7a> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE uint32_t _Objects_Get_class( Objects_Id id ) { return (uint32_t) 49516: 2001 movel %d1,%d0 <== NOT EXECUTED 49518: 741b moveq #27,%d2 <== NOT EXECUTED 4951a: e4a8 lsrl %d2,%d0 <== NOT EXECUTED return OBJECTS_INVALID_ID; the_class = _Objects_Get_class( tmpId ); information = _Objects_Information_table[ the_api ][ the_class ]; 4951c: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED if ( !information ) 49520: 6730 beqs 49552 <_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 ); 49522: 486e fffc pea %fp@(-4) <== NOT EXECUTED 49526: 2f01 movel %d1,%sp@- <== NOT EXECUTED 49528: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4952a: 4eb9 0004 946c jsr 4946c <_Objects_Get> <== NOT EXECUTED if ( !the_object ) 49530: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 49534: 4a80 tstl %d0 <== NOT EXECUTED 49536: 671a beqs 49552 <_Objects_Id_to_name+0x7a> <== NOT EXECUTED return OBJECTS_INVALID_ID; *name = the_object->name; 49538: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED 4953c: 2240 moveal %d0,%a1 <== NOT EXECUTED 4953e: 20a9 000c movel %a1@(12),%a0@ <== NOT EXECUTED _Thread_Enable_dispatch(); 49542: 4eb9 0004 9dda jsr 49dda <_Thread_Enable_dispatch> <== NOT EXECUTED return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL; } 49548: 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; 4954c: 4280 clrl %d0 <== NOT EXECUTED } 4954e: 4e5e unlk %fp <== NOT EXECUTED 49550: 4e75 rts <== NOT EXECUTED 49552: 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; 49556: 7003 moveq #3,%d0 <== NOT EXECUTED return OBJECTS_INVALID_ID; *name = the_object->name; _Thread_Enable_dispatch(); return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL; } 49558: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00047de8 <_Objects_Initialize_information>: , bool supports_global, Objects_Thread_queue_Extract_callout extract #endif ) { 47de8: 4e56 ffec linkw %fp,#-20 47dec: 202e 000c movel %fp@(12),%d0 47df0: 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; 47df4: 45f9 0005 e428 lea 5e428 <_Objects_Information_table>,%a2 , bool supports_global, Objects_Thread_queue_Extract_callout extract #endif ) { 47dfa: 4282 clrl %d2 information->maximum = 0; /* * Register this Object Class in the Object Information Table. */ _Objects_Information_table[ the_api ][ the_class ] = information; 47dfc: 4283 clrl %d3 47dfe: 2472 0c00 moveal %a2@(00000000,%d0:l:4),%a2 , bool supports_global, Objects_Thread_queue_Extract_callout extract #endif ) { 47e02: 206e 0008 moveal %fp@(8),%a0 47e06: 342e 001a movew %fp@(26),%d2 47e0a: 226e 0010 moveal %fp@(16),%a1 uint32_t index; #endif information->the_api = the_api; information->the_class = the_class; information->size = size; 47e0e: 2142 0014 movel %d2,%a0@(20) , bool supports_global, Objects_Thread_queue_Extract_callout extract #endif ) { 47e12: 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; 47e16: 4242 clrw %d2 , bool supports_global, Objects_Thread_queue_Extract_callout extract #endif ) { 47e18: 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; 47e1c: 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; 47e20: 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; 47e24: 2401 movel %d1,%d2 information->maximum = 0; /* * Register this Object Class in the Object Information Table. */ _Objects_Information_table[ the_api ][ the_class ] = information; 47e26: 3609 movew %a1,%d3 uint32_t maximum_per_allocation; #if defined(RTEMS_MULTIPROCESSING) uint32_t index; #endif information->the_api = the_api; 47e28: 2080 movel %d0,%a0@ information->the_class = the_class; 47e2a: 3149 0004 movew %a1,%a0@(4) information->size = size; information->local_table = 0; 47e2e: 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; 47e32: d482 addl %d2,%d2 47e34: 9582 subxl %d2,%d2 47e36: 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; 47e38: 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; 47e3c: 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; 47e40: 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; 47e44: 2588 3c00 movel %a0,%a2@(00000000,%d3:l:4) /* * Are we operating in limited or unlimited (e.g. auto-extend) mode. */ information->auto_extend = 47e48: 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) { 47e4c: 4a82 tstl %d2 47e4e: 6706 beqs 47e56 <_Objects_Initialize_information+0x6e> 47e50: 4a81 tstl %d1 47e52: 6700 0092 beqw 47ee6 <_Objects_Initialize_information+0xfe> uint32_t the_class, uint32_t node, uint32_t index ) { return (( (Objects_Id) the_api ) << OBJECTS_API_START_BIT) | 47e56: 7a18 moveq #24,%d5 information->local_table = &null_local_table; /* * Calculate minimum and maximum Id's */ minimum_index = (maximum_per_allocation == 0) ? 0 : 1; 47e58: 4a81 tstl %d1 47e5a: 56c2 sne %d2 47e5c: eba8 lsll %d5,%d0 (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) | 47e5e: 1a3c 001b moveb #27,%d5 47e62: 49c2 extbl %d2 47e64: 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; 47e66: 43f9 0005 dc24 lea 5dc24 ,%a1 47e6c: ebab lsll %d5,%d3 uint32_t the_class, uint32_t node, uint32_t index ) { return (( (Objects_Id) the_api ) << OBJECTS_API_START_BIT) | 47e6e: 08c0 0010 bset #16,%d0 /* * Calculate the maximum name length */ name_length = maximum_name_length; if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) ) 47e72: 1a3c 0003 moveb #3,%d5 (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) | 47e76: 8083 orl %d3,%d0 47e78: ca84 andl %d4,%d5 } /* * The allocation unit is the maximum value */ information->allocation_size = maximum_per_allocation; 47e7a: 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) | 47e7e: 8082 orl %d2,%d0 /* * Provide a null local table entry for the case of any empty table. */ information->local_table = &null_local_table; 47e80: 2149 0018 movel %a1,%a0@(24) 47e84: 2140 0006 movel %d0,%a0@(6) /* * Calculate the maximum name length */ name_length = maximum_name_length; if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) ) 47e88: 4a85 tstl %d5 47e8a: 6626 bnes 47eb2 <_Objects_Initialize_information+0xca><== NEVER TAKEN */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 47e8c: 43e8 0020 lea %a0@(32),%a1 47e90: 2149 001c movel %a1,%a0@(28) name_length = (name_length + OBJECTS_NAME_ALIGNMENT) & ~(OBJECTS_NAME_ALIGNMENT-1); information->name_length = name_length; _Chain_Initialize_empty( &information->Inactive ); 47e94: 43e8 001c lea %a0@(28),%a1 if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) ) name_length = (name_length + OBJECTS_NAME_ALIGNMENT) & ~(OBJECTS_NAME_ALIGNMENT-1); information->name_length = name_length; 47e98: 3144 0032 movew %d4,%a0@(50) RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 47e9c: 42a8 0020 clrl %a0@(32) _Chain_Initialize_empty( &information->Inactive ); 47ea0: 2149 0024 movel %a1,%a0@(36) /* * Initialize objects .. if there are any */ if ( maximum_per_allocation ) { 47ea4: 4a81 tstl %d1 47ea6: 662c bnes 47ed4 <_Objects_Initialize_information+0xec> _Chain_Initialize_empty( &information->global_table[ index ] ); } else information->global_table = NULL; #endif } 47ea8: 4cee 043c ffec moveml %fp@(-20),%d2-%d5/%a2 47eae: 4e5e unlk %fp 47eb0: 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) & 47eb2: 5884 addql #4,%d4 <== NOT EXECUTED 47eb4: 70fc moveq #-4,%d0 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 47eb6: 43e8 0020 lea %a0@(32),%a1 <== NOT EXECUTED 47eba: c880 andl %d0,%d4 <== NOT EXECUTED 47ebc: 2149 001c movel %a1,%a0@(28) <== NOT EXECUTED ~(OBJECTS_NAME_ALIGNMENT-1); information->name_length = name_length; _Chain_Initialize_empty( &information->Inactive ); 47ec0: 43e8 001c lea %a0@(28),%a1 <== NOT EXECUTED if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) ) name_length = (name_length + OBJECTS_NAME_ALIGNMENT) & ~(OBJECTS_NAME_ALIGNMENT-1); information->name_length = name_length; 47ec4: 3144 0032 movew %d4,%a0@(50) <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 47ec8: 42a8 0020 clrl %a0@(32) <== NOT EXECUTED _Chain_Initialize_empty( &information->Inactive ); 47ecc: 2149 0024 movel %a1,%a0@(36) <== NOT EXECUTED /* * Initialize objects .. if there are any */ if ( maximum_per_allocation ) { 47ed0: 4a81 tstl %d1 <== NOT EXECUTED 47ed2: 67d4 beqs 47ea8 <_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 ); 47ed4: 2d48 0008 movel %a0,%fp@(8) _Chain_Initialize_empty( &information->global_table[ index ] ); } else information->global_table = NULL; #endif } 47ed8: 4cee 043c ffec moveml %fp@(-20),%d2-%d5/%a2 47ede: 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 ); 47ee0: 4ef9 0004 7978 jmp 47978 <_Objects_Extend_information> /* * Unlimited and maximum of zero is illogical. */ if ( information->auto_extend && maximum_per_allocation == 0) { _Internal_error_Occurred( 47ee6: 4878 0013 pea 13 47eea: 4878 0001 pea 1 47eee: 42a7 clrl %sp@- 47ef0: 4eb9 0004 7800 jsr 47800 <_Internal_error_Occurred> ... =============================================================================== 00047f08 <_Objects_Name_to_id_u32>: Objects_Information *information, uint32_t name, uint32_t node, Objects_Id *id ) { 47f08: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 47f0c: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 47f10: 48d7 040c moveml %d2-%d3/%a2,%sp@ <== NOT EXECUTED 47f14: 222e 000c movel %fp@(12),%d1 <== NOT EXECUTED 47f18: 202e 0010 movel %fp@(16),%d0 <== NOT EXECUTED 47f1c: 246e 0014 moveal %fp@(20),%a2 <== NOT EXECUTED Objects_Name name_for_mp; #endif /* ASSERT: information->is_string == false */ if ( !id ) 47f20: 4a8a tstl %a2 <== NOT EXECUTED 47f22: 6758 beqs 47f7c <_Objects_Name_to_id_u32+0x74> <== NOT EXECUTED return OBJECTS_INVALID_ADDRESS; if ( name == 0 ) 47f24: 4a81 tstl %d1 <== NOT EXECUTED 47f26: 6718 beqs 47f40 <_Objects_Name_to_id_u32+0x38> <== NOT EXECUTED return OBJECTS_INVALID_NAME; search_local_node = false; if ( information->maximum != 0 && 47f28: 3428 000e movew %a0@(14),%d2 <== NOT EXECUTED 47f2c: 6712 beqs 47f40 <_Objects_Name_to_id_u32+0x38> <== NOT EXECUTED 47f2e: 4a80 tstl %d0 <== NOT EXECUTED 47f30: 6718 beqs 47f4a <_Objects_Name_to_id_u32+0x42> <== NOT EXECUTED (node == OBJECTS_SEARCH_ALL_NODES || 47f32: 0c80 7fff ffff cmpil #2147483647,%d0 <== NOT EXECUTED 47f38: 6710 beqs 47f4a <_Objects_Name_to_id_u32+0x42> <== NOT EXECUTED node == OBJECTS_SEARCH_LOCAL_NODE || 47f3a: 7601 moveq #1,%d3 <== NOT EXECUTED 47f3c: b680 cmpl %d0,%d3 <== NOT EXECUTED 47f3e: 670a beqs 47f4a <_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; 47f40: 7001 moveq #1,%d0 <== NOT EXECUTED #endif } 47f42: 4cd7 040c moveml %sp@,%d2-%d3/%a2 <== NOT EXECUTED 47f46: 4e5e unlk %fp <== NOT EXECUTED 47f48: 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( 47f4a: 2268 0018 moveal %a0@(24),%a1 <== NOT EXECUTED 47f4e: 7001 moveq #1,%d0 <== NOT EXECUTED 47f50: 5889 addql #4,%a1 <== NOT EXECUTED search_local_node = true; if ( search_local_node ) { name_length = information->name_length; for ( index = 1; index <= information->maximum; index++ ) { 47f52: 0282 0000 ffff andil #65535,%d2 <== NOT EXECUTED the_object = information->local_table[ index ]; 47f58: 2059 moveal %a1@+,%a0 <== NOT EXECUTED search_local_node = true; if ( search_local_node ) { name_length = information->name_length; for ( index = 1; index <= information->maximum; index++ ) { 47f5a: 5280 addql #1,%d0 <== NOT EXECUTED the_object = information->local_table[ index ]; if ( !the_object ) 47f5c: 4a88 tstl %a0 <== NOT EXECUTED 47f5e: 6706 beqs 47f66 <_Objects_Name_to_id_u32+0x5e> <== NOT EXECUTED continue; if ( name == the_object->name.name_u32 ) { 47f60: b2a8 000c cmpl %a0@(12),%d1 <== NOT EXECUTED 47f64: 6708 beqs 47f6e <_Objects_Name_to_id_u32+0x66> <== NOT EXECUTED search_local_node = true; if ( search_local_node ) { name_length = information->name_length; for ( index = 1; index <= information->maximum; index++ ) { 47f66: b082 cmpl %d2,%d0 <== NOT EXECUTED 47f68: 63ee blss 47f58 <_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; 47f6a: 7001 moveq #1,%d0 <== NOT EXECUTED 47f6c: 60d4 bras 47f42 <_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; 47f6e: 24a8 0008 movel %a0@(8),%a2@ <== NOT EXECUTED return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL; 47f72: 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 } 47f74: 4cd7 040c moveml %sp@,%d2-%d3/%a2 <== NOT EXECUTED 47f78: 4e5e unlk %fp <== NOT EXECUTED 47f7a: 4e75 rts <== NOT EXECUTED #endif /* ASSERT: information->is_string == false */ if ( !id ) return OBJECTS_INVALID_ADDRESS; 47f7c: 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 } 47f7e: 4cd7 040c moveml %sp@,%d2-%d3/%a2 <== NOT EXECUTED 47f82: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 0004a028 <_Objects_Set_name>: { size_t length; const char *s; s = name; length = strnlen( name, information->name_length ); 4a028: 4280 clrl %d0 <== NOT EXECUTED bool _Objects_Set_name( Objects_Information *information, Objects_Control *the_object, const char *name ) { 4a02a: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4a02e: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 4a032: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4a034: 246e 0010 moveal %fp@(16),%a2 <== NOT EXECUTED 4a038: 2f02 movel %d2,%sp@- <== NOT EXECUTED size_t length; const char *s; s = name; length = strnlen( name, information->name_length ); 4a03a: 3028 0032 movew %a0@(50),%d0 <== NOT EXECUTED 4a03e: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4a040: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4a042: 4eb9 0005 0d88 jsr 50d88 <== NOT EXECUTED d[length] = '\0'; the_object->name.name_p = d; } else #endif { the_object->name.name_u32 = _Objects_Build_name( 4a048: 508f addql #8,%sp <== NOT EXECUTED 4a04a: 7218 moveq #24,%d1 <== NOT EXECUTED 4a04c: 1412 moveb %a2@,%d2 <== NOT EXECUTED 4a04e: 49c2 extbl %d2 <== NOT EXECUTED 4a050: e3aa lsll %d1,%d2 <== NOT EXECUTED 4a052: 123c 0001 moveb #1,%d1 <== NOT EXECUTED 4a056: b280 cmpl %d0,%d1 <== NOT EXECUTED 4a058: 6440 bccs 4a09a <_Objects_Set_name+0x72> <== NOT EXECUTED 4a05a: 122a 0001 moveb %a2@(1),%d1 <== NOT EXECUTED 4a05e: 49c1 extbl %d1 <== NOT EXECUTED 4a060: 4841 swap %d1 <== NOT EXECUTED 4a062: 4241 clrw %d1 <== NOT EXECUTED 4a064: 8282 orl %d2,%d1 <== NOT EXECUTED 4a066: 7402 moveq #2,%d2 <== NOT EXECUTED 4a068: b480 cmpl %d0,%d2 <== NOT EXECUTED 4a06a: 6734 beqs 4a0a0 <_Objects_Set_name+0x78> <== NOT EXECUTED 4a06c: 142a 0002 moveb %a2@(2),%d2 <== NOT EXECUTED 4a070: 49c2 extbl %d2 <== NOT EXECUTED 4a072: e18a lsll #8,%d2 <== NOT EXECUTED 4a074: 8282 orl %d2,%d1 <== NOT EXECUTED 4a076: 7403 moveq #3,%d2 <== NOT EXECUTED 4a078: b480 cmpl %d0,%d2 <== NOT EXECUTED 4a07a: 6742 beqs 4a0be <_Objects_Set_name+0x96> <== NOT EXECUTED 4a07c: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED 4a080: 102a 0003 moveb %a2@(3),%d0 <== NOT EXECUTED 4a084: 49c0 extbl %d0 <== NOT EXECUTED 4a086: 8280 orl %d0,%d1 <== NOT EXECUTED ); } return true; } 4a088: 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( 4a08a: 2141 000c movel %d1,%a0@(12) <== NOT EXECUTED ); } return true; } 4a08e: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 4a092: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4a096: 4e5e unlk %fp <== NOT EXECUTED 4a098: 4e75 rts <== NOT EXECUTED d[length] = '\0'; the_object->name.name_p = d; } else #endif { the_object->name.name_u32 = _Objects_Build_name( 4a09a: 2202 movel %d2,%d1 <== NOT EXECUTED 4a09c: 08c1 0015 bset #21,%d1 <== NOT EXECUTED 4a0a0: 7020 moveq #32,%d0 <== NOT EXECUTED 4a0a2: 08c1 000d bset #13,%d1 <== NOT EXECUTED 4a0a6: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED 4a0aa: 8280 orl %d0,%d1 <== NOT EXECUTED ); } return true; } 4a0ac: 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( 4a0ae: 2141 000c movel %d1,%a0@(12) <== NOT EXECUTED ); } return true; } 4a0b2: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 4a0b6: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4a0ba: 4e5e unlk %fp <== NOT EXECUTED 4a0bc: 4e75 rts <== NOT EXECUTED d[length] = '\0'; the_object->name.name_p = d; } else #endif { the_object->name.name_u32 = _Objects_Build_name( 4a0be: 7020 moveq #32,%d0 <== NOT EXECUTED 4a0c0: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED 4a0c4: 8280 orl %d0,%d1 <== NOT EXECUTED ); } return true; } 4a0c6: 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( 4a0c8: 2141 000c movel %d1,%a0@(12) <== NOT EXECUTED ); } return true; } 4a0cc: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 4a0d0: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4a0d4: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00047f88 <_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) / 47f88: 4281 clrl %d1 <== NOT EXECUTED */ void _Objects_Shrink_information( Objects_Information *information ) { 47f8a: 4e56 ffec linkw %fp,#-20 <== NOT EXECUTED 47f8e: 48d7 0c1c moveml %d2-%d4/%a2-%a3,%sp@ <== NOT EXECUTED 47f92: 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 ); 47f96: 4283 clrl %d3 <== NOT EXECUTED block_count = (information->maximum - index_base) / 47f98: 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 ); 47f9a: 362a 0008 movew %a2@(8),%d3 <== NOT EXECUTED block_count = (information->maximum - index_base) / 47f9e: 382a 000e movew %a2@(14),%d4 <== NOT EXECUTED 47fa2: 322a 0012 movew %a2@(18),%d1 <== NOT EXECUTED 47fa6: 9883 subl %d3,%d4 <== NOT EXECUTED 47fa8: 4c41 4004 remul %d1,%d4,%d4 <== NOT EXECUTED information->allocation_size; for ( block = 0; block < block_count; block++ ) { 47fac: 6774 beqs 48022 <_Objects_Shrink_information+0x9a><== NOT EXECUTED if ( information->inactive_per_block[ block ] == 47fae: 206a 002a moveal %a2@(42),%a0 <== NOT EXECUTED 47fb2: b290 cmpl %a0@,%d1 <== NOT EXECUTED 47fb4: 677e beqs 48034 <_Objects_Shrink_information+0xac><== NOT EXECUTED * the_block - the block to remove * * Output parameters: NONE */ void _Objects_Shrink_information( 47fb6: 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++ ) { 47fb8: 4280 clrl %d0 <== NOT EXECUTED 47fba: 5280 addql #1,%d0 <== NOT EXECUTED information->inactive -= information->allocation_size; return; } index_base += information->allocation_size; 47fbc: 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++ ) { 47fbe: b084 cmpl %d4,%d0 <== NOT EXECUTED 47fc0: 6460 bccs 48022 <_Objects_Shrink_information+0x9a><== NOT EXECUTED information->inactive -= information->allocation_size; return; } index_base += information->allocation_size; 47fc2: 2400 movel %d0,%d2 <== NOT EXECUTED 47fc4: 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 ] == 47fc6: b298 cmpl %a0@+,%d1 <== NOT EXECUTED 47fc8: 66f0 bnes 47fba <_Objects_Shrink_information+0x32><== NOT EXECUTED information->allocation_size ) { /* * Assume the Inactive chain is never empty at this point */ the_object = (Objects_Control *) information->Inactive.first; 47fca: 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 ); 47fce: 47f9 0004 6ec0 lea 46ec0 <_Chain_Extract>,%a3 <== NOT EXECUTED * Assume the Inactive chain is never empty at this point */ the_object = (Objects_Control *) information->Inactive.first; do { index = _Objects_Get_index( the_object->id ); 47fd4: 4280 clrl %d0 <== NOT EXECUTED 47fd6: 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; 47fda: 2810 movel %a0@,%d4 <== NOT EXECUTED if ((index >= index_base) && 47fdc: b680 cmpl %d0,%d3 <== NOT EXECUTED 47fde: 620c bhis 47fec <_Objects_Shrink_information+0x64><== NOT EXECUTED (index < (index_base + information->allocation_size))) { 47fe0: 4281 clrl %d1 <== NOT EXECUTED 47fe2: 322a 0012 movew %a2@(18),%d1 <== NOT EXECUTED 47fe6: 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) && 47fe8: b280 cmpl %d0,%d1 <== NOT EXECUTED 47fea: 6240 bhis 4802c <_Objects_Shrink_information+0xa4><== NOT EXECUTED (index < (index_base + information->allocation_size))) { _Chain_Extract( &extract_me->Node ); } } while ( the_object ); 47fec: 4a84 tstl %d4 <== NOT EXECUTED 47fee: 6704 beqs 47ff4 <_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; 47ff0: 2044 moveal %d4,%a0 <== NOT EXECUTED 47ff2: 60e0 bras 47fd4 <_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 ] ); 47ff4: 206a 002e moveal %a2@(46),%a0 <== NOT EXECUTED 47ff8: 2f30 2800 movel %a0@(00000000,%d2:l),%sp@- <== NOT EXECUTED 47ffc: 4eb9 0004 9a96 jsr 49a96 <_Workspace_Free> <== NOT EXECUTED information->object_blocks[ block ] = NULL; 48002: 206a 002e moveal %a2@(46),%a0 <== NOT EXECUTED information->inactive_per_block[ block ] = 0; information->inactive -= information->allocation_size; return; 48006: 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; 48008: 42b0 2800 clrl %a0@(00000000,%d2:l) <== NOT EXECUTED information->inactive_per_block[ block ] = 0; 4800c: 206a 002a moveal %a2@(42),%a0 <== NOT EXECUTED information->inactive -= information->allocation_size; 48010: 302a 0028 movew %a2@(40),%d0 <== NOT EXECUTED 48014: 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; 48018: 42b0 2800 clrl %a0@(00000000,%d2:l) <== NOT EXECUTED information->inactive -= information->allocation_size; 4801c: 9081 subl %d1,%d0 <== NOT EXECUTED 4801e: 3540 0028 movew %d0,%a2@(40) <== NOT EXECUTED return; } index_base += information->allocation_size; } } 48022: 4cee 0c1c ffec moveml %fp@(-20),%d2-%d4/%a2-%a3 <== NOT EXECUTED 48028: 4e5e unlk %fp <== NOT EXECUTED 4802a: 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 ); 4802c: 2f08 movel %a0,%sp@- <== NOT EXECUTED 4802e: 4e93 jsr %a3@ <== NOT EXECUTED 48030: 588f addql #4,%sp <== NOT EXECUTED 48032: 60b8 bras 47fec <_Objects_Shrink_information+0x64><== NOT EXECUTED information->allocation_size ) { /* * Assume the Inactive chain is never empty at this point */ the_object = (Objects_Control *) information->Inactive.first; 48034: 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 ] == 48038: 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 ); 4803a: 47f9 0004 6ec0 lea 46ec0 <_Chain_Extract>,%a3 <== NOT EXECUTED 48040: 6092 bras 47fd4 <_Objects_Shrink_information+0x4c><== NOT EXECUTED ... =============================================================================== 00048350 <_Protected_heap_Extend>: bool _Protected_heap_Extend( Heap_Control *the_heap, void *starting_address, uintptr_t size ) { 48350: 4e56 fff8 linkw %fp,#-8 <== NOT EXECUTED bool extend_ok; uintptr_t amount_extended; _RTEMS_Lock_allocator(); 48354: 2f39 0005 ebea movel 5ebea <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 4835a: 4eb9 0004 7140 jsr 47140 <_API_Mutex_Lock> <== NOT EXECUTED extend_ok = _Heap_Extend(the_heap, starting_address, size, &amount_extended); 48360: 486e fffc pea %fp@(-4) <== NOT EXECUTED 48364: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 48368: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 4836c: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 48370: 4eb9 0004 bfe0 jsr 4bfe0 <_Heap_Extend> <== NOT EXECUTED _RTEMS_Unlock_allocator(); 48376: 2f39 0005 ebea movel 5ebea <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 4837c: 2d40 fff8 movel %d0,%fp@(-8) <== NOT EXECUTED 48380: 4eb9 0004 71a0 jsr 471a0 <_API_Mutex_Unlock> <== NOT EXECUTED return extend_ok; } 48386: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED 4838a: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 0004cf40 <_Protected_heap_Get_free_information>: bool _Protected_heap_Get_free_information( Heap_Control *the_heap, Heap_Information *info ) { 4cf40: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED /* * TBD: _Heap_Get_free_information does not error check or return status. */ _RTEMS_Lock_allocator(); 4cf44: 2f39 0006 491a movel 6491a <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 4cf4a: 4eb9 0004 b25c jsr 4b25c <_API_Mutex_Lock> <== NOT EXECUTED _Heap_Get_free_information( the_heap, info ); 4cf50: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 4cf54: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4cf58: 4eb9 0005 0e08 jsr 50e08 <_Heap_Get_free_information> <== NOT EXECUTED _RTEMS_Unlock_allocator(); 4cf5e: 2f39 0006 491a movel 6491a <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 4cf64: 4eb9 0004 b2bc jsr 4b2bc <_API_Mutex_Unlock> <== NOT EXECUTED return true; } 4cf6a: 7001 moveq #1,%d0 <== NOT EXECUTED 4cf6c: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00048838 <_Protected_heap_Get_information>: bool _Protected_heap_Get_information( Heap_Control *the_heap, Heap_Information_block *the_info ) { 48838: 4e56 0000 linkw %fp,#0 4883c: 2f03 movel %d3,%sp@- 4883e: 262e 000c movel %fp@(12),%d3 48842: 2f02 movel %d2,%sp@- 48844: 242e 0008 movel %fp@(8),%d2 if ( !the_heap ) 48848: 6738 beqs 48882 <_Protected_heap_Get_information+0x4a><== NEVER TAKEN return false; if ( !the_info ) 4884a: 4a83 tstl %d3 4884c: 6734 beqs 48882 <_Protected_heap_Get_information+0x4a><== NEVER TAKEN return false; _RTEMS_Lock_allocator(); 4884e: 2f39 0005 ef9e movel 5ef9e <_RTEMS_Allocator_Mutex>,%sp@- 48854: 4eb9 0004 75f0 jsr 475f0 <_API_Mutex_Lock> _Heap_Get_information( the_heap, the_info ); 4885a: 2f03 movel %d3,%sp@- 4885c: 2f02 movel %d2,%sp@- 4885e: 4eb9 0004 c928 jsr 4c928 <_Heap_Get_information> _RTEMS_Unlock_allocator(); 48864: 2f39 0005 ef9e movel 5ef9e <_RTEMS_Allocator_Mutex>,%sp@- 4886a: 4eb9 0004 7650 jsr 47650 <_API_Mutex_Unlock> return true; } 48870: 242e fff8 movel %fp@(-8),%d2 _RTEMS_Lock_allocator(); _Heap_Get_information( the_heap, the_info ); _RTEMS_Unlock_allocator(); return true; 48874: 4fef 0010 lea %sp@(16),%sp } 48878: 262e fffc movel %fp@(-4),%d3 4887c: 4e5e unlk %fp _RTEMS_Lock_allocator(); _Heap_Get_information( the_heap, the_info ); _RTEMS_Unlock_allocator(); return true; 4887e: 7001 moveq #1,%d0 } 48880: 4e75 rts 48882: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 48886: 262e fffc movel %fp@(-4),%d3 <== NOT EXECUTED 4888a: 4e5e unlk %fp <== NOT EXECUTED { if ( !the_heap ) return false; if ( !the_info ) return false; 4888c: 4200 clrb %d0 <== NOT EXECUTED _RTEMS_Lock_allocator(); _Heap_Get_information( the_heap, the_info ); _RTEMS_Unlock_allocator(); return true; } =============================================================================== 0005b08c <_Protected_heap_Resize_block>: bool _Protected_heap_Resize_block( Heap_Control *the_heap, void *starting_address, uintptr_t size ) { 5b08c: 4e56 fff8 linkw %fp,#-8 <== NOT EXECUTED 5b090: 2f02 movel %d2,%sp@- <== NOT EXECUTED Heap_Resize_status status; uintptr_t old_mem_size; uintptr_t avail_mem_size; _RTEMS_Lock_allocator(); 5b092: 2f39 0005 e50e movel 5e50e <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 5b098: 4eb9 0004 6df4 jsr 46df4 <_API_Mutex_Lock> <== NOT EXECUTED status = _Heap_Resize_block( 5b09e: 486e fff8 pea %fp@(-8) <== NOT EXECUTED 5b0a2: 486e fffc pea %fp@(-4) <== NOT EXECUTED 5b0a6: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 5b0aa: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 5b0ae: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 5b0b2: 4eb9 0005 b0d8 jsr 5b0d8 <_Heap_Resize_block> <== NOT EXECUTED the_heap, starting_address, size, &old_mem_size, &avail_mem_size ); _RTEMS_Unlock_allocator(); 5b0b8: 2f39 0005 e50e movel 5e50e <_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( 5b0be: 2400 movel %d0,%d2 <== NOT EXECUTED the_heap, starting_address, size, &old_mem_size, &avail_mem_size ); _RTEMS_Unlock_allocator(); 5b0c0: 4eb9 0004 6e54 jsr 46e54 <_API_Mutex_Unlock> <== NOT EXECUTED return (status == HEAP_RESIZE_SUCCESSFUL); 5b0c6: 4fef 001c lea %sp@(28),%sp <== NOT EXECUTED 5b0ca: 4a82 tstl %d2 <== NOT EXECUTED 5b0cc: 57c0 seq %d0 <== NOT EXECUTED } 5b0ce: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 5b0d2: 4480 negl %d0 <== NOT EXECUTED 5b0d4: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 0004d024 <_Protected_heap_Walk>: bool _Protected_heap_Walk( Heap_Control *the_heap, int source, bool do_dump ) { 4d024: 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 ) { 4d028: 2039 0006 4878 movel 64878 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED bool _Protected_heap_Walk( Heap_Control *the_heap, int source, bool do_dump ) { 4d02e: 48d7 001c moveml %d2-%d4,%sp@ <== NOT EXECUTED 4d032: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED 4d036: 282e 000c movel %fp@(12),%d4 <== NOT EXECUTED 4d03a: 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 ) { 4d03e: 4a80 tstl %d0 <== NOT EXECUTED 4d040: 6720 beqs 4d062 <_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 ); 4d042: 2d44 000c movel %d4,%fp@(12) <== NOT EXECUTED 4d046: 0283 0000 00ff andil #255,%d3 <== NOT EXECUTED 4d04c: 2d42 0008 movel %d2,%fp@(8) <== NOT EXECUTED 4d050: 2d43 0010 movel %d3,%fp@(16) <== NOT EXECUTED } return status; } 4d054: 4cee 001c fff0 moveml %fp@(-16),%d2-%d4 <== NOT EXECUTED 4d05a: 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 ); 4d05c: 4ef9 0004 c156 jmp 4c156 <_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(); 4d062: 2f39 0006 491a movel 6491a <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED status = _Heap_Walk( the_heap, source, do_dump ); 4d068: 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(); 4d06e: 4eb9 0004 b25c jsr 4b25c <_API_Mutex_Lock> <== NOT EXECUTED status = _Heap_Walk( the_heap, source, do_dump ); 4d074: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4d076: 2f04 movel %d4,%sp@- <== NOT EXECUTED 4d078: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4d07a: 4eb9 0004 c156 jsr 4c156 <_Heap_Walk> <== NOT EXECUTED _RTEMS_Unlock_allocator(); 4d080: 2f39 0006 491a movel 6491a <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 4d086: 2d40 fffc movel %d0,%fp@(-4) <== NOT EXECUTED 4d08a: 4eb9 0004 b2bc jsr 4b2bc <_API_Mutex_Unlock> <== NOT EXECUTED } else { status = _Heap_Walk( the_heap, source, do_dump ); } return status; } 4d090: 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(); 4d094: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED } else { status = _Heap_Walk( the_heap, source, do_dump ); } return status; } 4d098: 4cee 001c fff0 moveml %fp@(-16),%d2-%d4 <== NOT EXECUTED 4d09e: 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 e630 movel 5e630 <_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 9a96 jmp 49a96 <_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 cc14 tstb 5cc14 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 9a7a jsr 49a7a <_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 0108 movel %d0,%a2@(264) */ 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 0114 clrl %a2@(276) if ( rtems_configuration_get_notepads_enabled() ) { 4b782: 4a39 0005 cc14 tstb 5cc14 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 9a7a jsr 49a7a <_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 0114 moveal %a2@(276),%a0 deleted->task_variables = NULL; 4b6f6: 42aa 0114 clrl %a2@(276) 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 0108 movel %a2@(264),%sp@- 4b720: 4eb9 0004 9a96 jsr 49a96 <_Workspace_Free> deleted->API_Extensions[ THREAD_API_RTEMS ] = NULL; 4b726: 588f addql #4,%sp 4b728: 42aa 0108 clrl %a2@(264) } 4b72c: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3 4b732: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 0004689c <_RTEMS_tasks_Initialize_user_tasks_body>: * * Output parameters: NONE */ void _RTEMS_tasks_Initialize_user_tasks_body( void ) { 4689c: 4e56 ffe4 linkw %fp,#-28 468a0: 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; 468a4: 2479 0005 cc3a moveal 5cc3a ,%a2 maximum = Configuration_RTEMS_API.number_of_initialization_tasks; 468aa: 2639 0005 cc36 movel 5cc36 ,%d3 /* * Verify that we have a set of user tasks to iterate */ if ( !user_tasks ) 468b0: 4a8a tstl %a2 468b2: 6754 beqs 46908 <_RTEMS_tasks_Initialize_user_tasks_body+0x6c> return; /* * Now iterate over the initialization tasks and create/start them. */ for ( index=0 ; index < maximum ; index++ ) { 468b4: 4a83 tstl %d3 468b6: 6750 beqs 46908 <_RTEMS_tasks_Initialize_user_tasks_body+0x6c><== NEVER TAKEN 468b8: 280e movel %fp,%d4 468ba: 4282 clrl %d2 468bc: 5984 subql #4,%d4 468be: 47f9 0004 6674 lea 46674 ,%a3 &id ); if ( !rtems_is_status_successful( return_value ) ) _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, true, return_value ); return_value = rtems_task_start( 468c4: 49f9 0004 6924 lea 46924 ,%a4 /* * Now iterate over the initialization tasks and create/start them. */ for ( index=0 ; index < maximum ; index++ ) { return_value = rtems_task_create( 468ca: 2f04 movel %d4,%sp@- 468cc: 2f2a 000c movel %a2@(12),%sp@- 468d0: 2f2a 0014 movel %a2@(20),%sp@- 468d4: 2f2a 0004 movel %a2@(4),%sp@- 468d8: 2f2a 0008 movel %a2@(8),%sp@- 468dc: 2f12 movel %a2@,%sp@- 468de: 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 ) ) 468e0: 4fef 0018 lea %sp@(24),%sp 468e4: 4a80 tstl %d0 468e6: 662a bnes 46912 <_RTEMS_tasks_Initialize_user_tasks_body+0x76> _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, true, return_value ); return_value = rtems_task_start( 468e8: 2f2a 0018 movel %a2@(24),%sp@- 468ec: 2f2a 0010 movel %a2@(16),%sp@- 468f0: 2f2e fffc movel %fp@(-4),%sp@- 468f4: 4e94 jsr %a4@ id, user_tasks[ index ].entry_point, user_tasks[ index ].argument ); if ( !rtems_is_status_successful( return_value ) ) 468f6: 4fef 000c lea %sp@(12),%sp 468fa: 4a80 tstl %d0 468fc: 6614 bnes 46912 <_RTEMS_tasks_Initialize_user_tasks_body+0x76> return; /* * Now iterate over the initialization tasks and create/start them. */ for ( index=0 ; index < maximum ; index++ ) { 468fe: 5282 addql #1,%d2 46900: 45ea 001c lea %a2@(28),%a2 46904: b483 cmpl %d3,%d2 46906: 65c2 bcss 468ca <_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 ); } } 46908: 4cee 1c1c ffe4 moveml %fp@(-28),%d2-%d4/%a2-%a4 4690e: 4e5e unlk %fp 46910: 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 ); 46912: 2f00 movel %d0,%sp@- 46914: 4878 0001 pea 1 46918: 4878 0001 pea 1 4691c: 4eb9 0004 7800 jsr 47800 <_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 0108 moveal %a0@(264),%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 d36c lea 4d36c ,%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 0114 moveal %a0@(276),%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 0114 moveal %a0@(276),%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 =============================================================================== 000472c0 <_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 ) { 472c0: 4e56 ffd0 linkw %fp,#-48 <== NOT EXECUTED 472c4: 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 ); 472c8: 280e movel %fp,%d4 <== NOT EXECUTED 472ca: 5184 subql #8,%d4 <== NOT EXECUTED _Timestamp_Subtract( 472cc: 45f9 0004 b0fc lea 4b0fc <_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 ) { 472d2: 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 ); 472d6: 2f04 movel %d4,%sp@- <== NOT EXECUTED ) { #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ Timestamp_Control uptime; #endif Thread_Control *owning_thread = the_period->owner; 472d8: 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 ); 472dc: 4eb9 0004 8d70 jsr 48d70 <_TOD_Get_uptime> <== NOT EXECUTED _Timestamp_Subtract( 472e2: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 472e6: 2f04 movel %d4,%sp@- <== NOT EXECUTED 472e8: 486b 004c pea %a3@(76) <== NOT EXECUTED 472ec: 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) { 472ee: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED #endif /* * Determine cpu usage since period initiated. */ used = owning_thread->cpu_time_used; 472f2: 202c 0082 movel %a4@(130),%d0 <== NOT EXECUTED 472f6: 222c 0086 movel %a4@(134),%d1 <== NOT EXECUTED 472fa: 2d40 fff0 movel %d0,%fp@(-16) <== NOT EXECUTED 472fe: 2d41 fff4 movel %d1,%fp@(-12) <== NOT EXECUTED #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ if (owning_thread == _Thread_Executing) { 47302: b9f9 0006 0788 cmpal 60788 <_Per_CPU_Information+0xc>,%a4 <== NOT EXECUTED 47308: 670c beqs 47316 <_Rate_monotonic_Get_status+0x56><== NOT EXECUTED return false; *cpu_since_last_period = used - the_period->cpu_usage_period_initiated; #endif return true; } 4730a: 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; 47310: 7001 moveq #1,%d0 <== NOT EXECUTED } 47312: 4e5e unlk %fp <== NOT EXECUTED 47314: 4e75 rts <== NOT EXECUTED if (owning_thread == _Thread_Executing) { Thread_CPU_usage_t ran; /* How much time time since last context switch */ _Timestamp_Subtract( 47316: 49ee ffe8 lea %fp@(-24),%a4 <== NOT EXECUTED &_Thread_Time_of_last_context_switch, &uptime, &ran ); /* cpu usage += ran */ _Timestamp_Add_to( &used, &ran ); 4731a: 240e movel %fp,%d2 <== NOT EXECUTED 4731c: 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)) 47322: 260b movel %a3,%d3 <== NOT EXECUTED 47324: 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( 4732a: 2f0c movel %a4,%sp@- <== NOT EXECUTED 4732c: 2f04 movel %d4,%sp@- <== NOT EXECUTED 4732e: 4879 0006 0672 pea 60672 <_Thread_Time_of_last_context_switch><== NOT EXECUTED 47334: 4e92 jsr %a2@ <== NOT EXECUTED &_Thread_Time_of_last_context_switch, &uptime, &ran ); /* cpu usage += ran */ _Timestamp_Add_to( &used, &ran ); 47336: 2f0c movel %a4,%sp@- <== NOT EXECUTED 47338: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4733a: 4eb9 0004 afbc jsr 4afbc <_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)) 47340: 2f03 movel %d3,%sp@- <== NOT EXECUTED 47342: 2f02 movel %d2,%sp@- <== NOT EXECUTED 47344: 4eb9 0004 b0c8 jsr 4b0c8 <_Timespec_Less_than> <== NOT EXECUTED 4734a: 4fef 001c lea %sp@(28),%sp <== NOT EXECUTED 4734e: 4a00 tstb %d0 <== NOT EXECUTED 47350: 670c beqs 4735e <_Rate_monotonic_Get_status+0x9e><== NOT EXECUTED return false; *cpu_since_last_period = used - the_period->cpu_usage_period_initiated; #endif return true; } 47352: 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; 47358: 4200 clrb %d0 <== NOT EXECUTED return false; *cpu_since_last_period = used - the_period->cpu_usage_period_initiated; #endif return true; } 4735a: 4e5e unlk %fp <== NOT EXECUTED 4735c: 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( 4735e: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 47362: 2f02 movel %d2,%sp@- <== NOT EXECUTED 47364: 2f03 movel %d3,%sp@- <== NOT EXECUTED 47366: 4e92 jsr %a2@ <== NOT EXECUTED 47368: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED return false; *cpu_since_last_period = used - the_period->cpu_usage_period_initiated; #endif return true; } 4736c: 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; 47372: 7001 moveq #1,%d0 <== NOT EXECUTED } 47374: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00047378 <_Rate_monotonic_Initiate_statistics>: void _Rate_monotonic_Initiate_statistics( Rate_monotonic_Control *the_period ) { 47378: 4e56 ffe4 linkw %fp,#-28 <== NOT EXECUTED 4737c: 48d7 0c04 moveml %d2/%a2-%a3,%sp@ <== NOT EXECUTED 47380: 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 ); 47384: 240e movel %fp,%d2 <== NOT EXECUTED 47386: 5182 subql #8,%d2 <== NOT EXECUTED void _Rate_monotonic_Initiate_statistics( Rate_monotonic_Control *the_period ) { Thread_Control *owning_thread = the_period->owner; 47388: 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 ); 4738c: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4738e: 4eb9 0004 8d70 jsr 48d70 <_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) { 47394: 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; 47396: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED 4739a: 222e fffc movel %fp@(-4),%d1 <== NOT EXECUTED 4739e: 2540 004c movel %d0,%a2@(76) <== NOT EXECUTED 473a2: 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; 473a6: 202b 0082 movel %a3@(130),%d0 <== NOT EXECUTED 473aa: 222b 0086 movel %a3@(134),%d1 <== NOT EXECUTED 473ae: 2540 0044 movel %d0,%a2@(68) <== NOT EXECUTED 473b2: 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) { 473b6: b7f9 0006 0788 cmpal 60788 <_Per_CPU_Information+0xc>,%a3 <== NOT EXECUTED 473bc: 670a beqs 473c8 <_Rate_monotonic_Initiate_statistics+0x50><== NOT EXECUTED ); _Timespec_Add_to( &the_period->cpu_usage_period_initiated, &ran ); } #endif } 473be: 4cee 0c04 ffe4 moveml %fp@(-28),%d2/%a2-%a3 <== NOT EXECUTED 473c4: 4e5e unlk %fp <== NOT EXECUTED 473c6: 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 473c8: 47ee fff0 lea %fp@(-16),%a3 <== NOT EXECUTED /* * Adjust the CPU time used to account for the time since last * context switch. */ _Timespec_Subtract( 473cc: 2f0b movel %a3,%sp@- <== NOT EXECUTED 473ce: 2f02 movel %d2,%sp@- <== NOT EXECUTED 473d0: 4879 0006 0672 pea 60672 <_Thread_Time_of_last_context_switch><== NOT EXECUTED 473d6: 4eb9 0004 b0fc jsr 4b0fc <_Timespec_Subtract> <== NOT EXECUTED &_Thread_Time_of_last_context_switch, &uptime, &ran ); _Timespec_Add_to( &the_period->cpu_usage_period_initiated, &ran ); 473dc: 2f0b movel %a3,%sp@- <== NOT EXECUTED 473de: 486a 0044 pea %a2@(68) <== NOT EXECUTED 473e2: 4eb9 0004 afbc jsr 4afbc <_Timespec_Add_to> <== NOT EXECUTED 473e8: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED } #endif } 473ec: 4cee 0c04 ffe4 moveml %fp@(-28),%d2/%a2-%a3 <== NOT EXECUTED 473f2: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00047994 <_Rate_monotonic_Timeout>: void _Rate_monotonic_Timeout( Objects_Id id, void *ignored ) { 47994: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 47998: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4799a: 486e fffc pea %fp@(-4) <== NOT EXECUTED 4799e: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 479a2: 4879 0006 04d0 pea 604d0 <_Rate_monotonic_Information> <== NOT EXECUTED 479a8: 4eb9 0004 98d8 jsr 498d8 <_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 ) { 479ae: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 479b2: 2440 moveal %d0,%a2 <== NOT EXECUTED 479b4: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 479b8: 6636 bnes 479f0 <_Rate_monotonic_Timeout+0x5c> <== NOT EXECUTED case OBJECTS_LOCAL: the_thread = the_period->owner; 479ba: 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); 479be: 2028 0010 movel %a0@(16),%d0 <== NOT EXECUTED 479c2: 0280 0000 4000 andil #16384,%d0 <== NOT EXECUTED if ( _States_Is_waiting_for_period( the_thread->current_state ) && 479c8: 670a beqs 479d4 <_Rate_monotonic_Timeout+0x40> <== NOT EXECUTED 479ca: 202a 0008 movel %a2@(8),%d0 <== NOT EXECUTED 479ce: b0a8 0020 cmpl %a0@(32),%d0 <== NOT EXECUTED 479d2: 675e beqs 47a32 <_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 ) { 479d4: 7001 moveq #1,%d0 <== NOT EXECUTED 479d6: b0aa 0038 cmpl %a2@(56),%d0 <== NOT EXECUTED 479da: 671c beqs 479f8 <_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; 479dc: 7004 moveq #4,%d0 <== NOT EXECUTED 479de: 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; 479e2: 2039 0006 05c4 movel 605c4 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED 479e8: 5380 subql #1,%d0 <== NOT EXECUTED 479ea: 23c0 0006 05c4 movel %d0,605c4 <_Thread_Dispatch_disable_level><== NOT EXECUTED case OBJECTS_REMOTE: /* impossible */ #endif case OBJECTS_ERROR: break; } } 479f0: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 479f4: 4e5e unlk %fp <== NOT EXECUTED 479f6: 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; 479f8: 103c 0003 moveb #3,%d0 <== NOT EXECUTED 479fc: 2540 0038 movel %d0,%a2@(56) <== NOT EXECUTED _Rate_monotonic_Initiate_statistics( the_period ); 47a00: 2f0a movel %a2,%sp@- <== NOT EXECUTED 47a02: 4eb9 0004 7378 jsr 47378 <_Rate_monotonic_Initiate_statistics><== NOT EXECUTED Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 47a08: 256a 003c 001c movel %a2@(60),%a2@(28) <== NOT EXECUTED _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 47a0e: 486a 0010 pea %a2@(16) <== NOT EXECUTED 47a12: 4879 0006 0686 pea 60686 <_Watchdog_Ticks_chain> <== NOT EXECUTED 47a18: 4eb9 0004 b404 jsr 4b404 <_Watchdog_Insert> <== NOT EXECUTED 47a1e: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 47a22: 2039 0006 05c4 movel 605c4 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED 47a28: 5380 subql #1,%d0 <== NOT EXECUTED 47a2a: 23c0 0006 05c4 movel %d0,605c4 <_Thread_Dispatch_disable_level><== NOT EXECUTED 47a30: 60be bras 479f0 <_Rate_monotonic_Timeout+0x5c> <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 47a32: 2f3c 1003 fff8 movel #268697592,%sp@- <== NOT EXECUTED 47a38: 2f08 movel %a0,%sp@- <== NOT EXECUTED 47a3a: 4eb9 0004 9ddc jsr 49ddc <_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 ); 47a40: 2f0a movel %a2,%sp@- <== NOT EXECUTED 47a42: 4eb9 0004 7378 jsr 47378 <_Rate_monotonic_Initiate_statistics><== NOT EXECUTED Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 47a48: 256a 003c 001c movel %a2@(60),%a2@(28) <== NOT EXECUTED _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 47a4e: 486a 0010 pea %a2@(16) <== NOT EXECUTED 47a52: 4879 0006 0686 pea 60686 <_Watchdog_Ticks_chain> <== NOT EXECUTED 47a58: 4eb9 0004 b404 jsr 4b404 <_Watchdog_Insert> <== NOT EXECUTED _Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length ); 47a5e: 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; 47a62: 2039 0006 05c4 movel 605c4 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED 47a68: 5380 subql #1,%d0 <== NOT EXECUTED 47a6a: 23c0 0006 05c4 movel %d0,605c4 <_Thread_Dispatch_disable_level><== NOT EXECUTED 47a70: 6000 ff7e braw 479f0 <_Rate_monotonic_Timeout+0x5c> <== NOT EXECUTED =============================================================================== 000473f6 <_Rate_monotonic_Update_statistics>: * Update the counts. */ stats = &the_period->Statistics; stats->count++; if ( the_period->state == RATE_MONOTONIC_EXPIRED ) 473f6: 7004 moveq #4,%d0 <== NOT EXECUTED } void _Rate_monotonic_Update_statistics( Rate_monotonic_Control *the_period ) { 473f8: 4e56 ffd8 linkw %fp,#-40 <== NOT EXECUTED 473fc: 48d7 3c0c moveml %d2-%d3/%a2-%a5,%sp@ <== NOT EXECUTED 47400: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED /* * Update the counts. */ stats = &the_period->Statistics; stats->count++; 47404: 52aa 0054 addql #1,%a2@(84) <== NOT EXECUTED if ( the_period->state == RATE_MONOTONIC_EXPIRED ) 47408: b0aa 0038 cmpl %a2@(56),%d0 <== NOT EXECUTED 4740c: 6700 00c6 beqw 474d4 <_Rate_monotonic_Update_statistics+0xde><== NOT EXECUTED /* * Grab status for time statistics. */ valid_status = _Rate_monotonic_Get_status( the_period, &since_last_period, &executed ); 47410: 260e movel %fp,%d3 <== NOT EXECUTED 47412: 5183 subql #8,%d3 <== NOT EXECUTED 47414: 240e movel %fp,%d2 <== NOT EXECUTED 47416: 0682 ffff fff0 addil #-16,%d2 <== NOT EXECUTED stats->missed_count++; /* * Grab status for time statistics. */ valid_status = 4741c: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4741e: 2f02 movel %d2,%sp@- <== NOT EXECUTED 47420: 2f0a movel %a2,%sp@- <== NOT EXECUTED 47422: 4eb9 0004 72c0 jsr 472c0 <_Rate_monotonic_Get_status> <== NOT EXECUTED _Rate_monotonic_Get_status( the_period, &since_last_period, &executed ); if (!valid_status) 47428: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4742c: 4a00 tstb %d0 <== NOT EXECUTED 4742e: 660a bnes 4743a <_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 } 47430: 4cee 3c0c ffd8 moveml %fp@(-40),%d2-%d3/%a2-%a5 <== NOT EXECUTED 47436: 4e5e unlk %fp <== NOT EXECUTED 47438: 4e75 rts <== NOT EXECUTED /* * Update CPU time */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timestamp_Add_to( &stats->total_cpu_time, &executed ); 4743a: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4743c: 486a 006c pea %a2@(108) <== NOT EXECUTED 47440: 4bf9 0004 afbc lea 4afbc <_Timespec_Add_to>,%a5 <== NOT EXECUTED if ( _Timestamp_Less_than( &executed, &stats->min_cpu_time ) ) 47446: 49f9 0004 b0c8 lea 4b0c8 <_Timespec_Less_than>,%a4 <== NOT EXECUTED /* * Update CPU time */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timestamp_Add_to( &stats->total_cpu_time, &executed ); 4744c: 4e95 jsr %a5@ <== NOT EXECUTED if ( _Timestamp_Less_than( &executed, &stats->min_cpu_time ) ) 4744e: 486a 005c pea %a2@(92) <== NOT EXECUTED 47452: 2f03 movel %d3,%sp@- <== NOT EXECUTED 47454: 4e94 jsr %a4@ <== NOT EXECUTED 47456: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 4745a: 4a00 tstb %d0 <== NOT EXECUTED 4745c: 6710 beqs 4746e <_Rate_monotonic_Update_statistics+0x78><== NOT EXECUTED stats->min_cpu_time = executed; 4745e: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED 47462: 222e fffc movel %fp@(-4),%d1 <== NOT EXECUTED 47466: 2540 005c movel %d0,%a2@(92) <== NOT EXECUTED 4746a: 2541 0060 movel %d1,%a2@(96) <== NOT EXECUTED if ( _Timestamp_Greater_than( &executed, &stats->max_cpu_time ) ) 4746e: 486a 0064 pea %a2@(100) <== NOT EXECUTED 47472: 47f9 0004 b094 lea 4b094 <_Timespec_Greater_than>,%a3 <== NOT EXECUTED 47478: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4747a: 4e93 jsr %a3@ <== NOT EXECUTED 4747c: 508f addql #8,%sp <== NOT EXECUTED 4747e: 4a00 tstb %d0 <== NOT EXECUTED 47480: 6710 beqs 47492 <_Rate_monotonic_Update_statistics+0x9c><== NOT EXECUTED stats->max_cpu_time = executed; 47482: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED 47486: 222e fffc movel %fp@(-4),%d1 <== NOT EXECUTED 4748a: 2540 0064 movel %d0,%a2@(100) <== NOT EXECUTED 4748e: 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 ); 47492: 2f02 movel %d2,%sp@- <== NOT EXECUTED 47494: 486a 0084 pea %a2@(132) <== NOT EXECUTED 47498: 4e95 jsr %a5@ <== NOT EXECUTED if ( _Timestamp_Less_than( &since_last_period, &stats->min_wall_time ) ) 4749a: 486a 0074 pea %a2@(116) <== NOT EXECUTED 4749e: 2f02 movel %d2,%sp@- <== NOT EXECUTED 474a0: 4e94 jsr %a4@ <== NOT EXECUTED 474a2: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 474a6: 4a00 tstb %d0 <== NOT EXECUTED 474a8: 6654 bnes 474fe <_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 ) ) 474aa: 486a 007c pea %a2@(124) <== NOT EXECUTED 474ae: 2f02 movel %d2,%sp@- <== NOT EXECUTED 474b0: 4e93 jsr %a3@ <== NOT EXECUTED 474b2: 508f addql #8,%sp <== NOT EXECUTED 474b4: 4a00 tstb %d0 <== NOT EXECUTED 474b6: 6700 ff78 beqw 47430 <_Rate_monotonic_Update_statistics+0x3a><== NOT EXECUTED stats->max_wall_time = since_last_period; 474ba: 202e fff0 movel %fp@(-16),%d0 <== NOT EXECUTED 474be: 222e fff4 movel %fp@(-12),%d1 <== NOT EXECUTED 474c2: 2540 007c movel %d0,%a2@(124) <== NOT EXECUTED 474c6: 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 } 474ca: 4cee 3c0c ffd8 moveml %fp@(-40),%d2-%d3/%a2-%a5 <== NOT EXECUTED 474d0: 4e5e unlk %fp <== NOT EXECUTED 474d2: 4e75 rts <== NOT EXECUTED */ stats = &the_period->Statistics; stats->count++; if ( the_period->state == RATE_MONOTONIC_EXPIRED ) stats->missed_count++; 474d4: 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 ); 474d8: 260e movel %fp,%d3 <== NOT EXECUTED 474da: 5183 subql #8,%d3 <== NOT EXECUTED 474dc: 240e movel %fp,%d2 <== NOT EXECUTED 474de: 0682 ffff fff0 addil #-16,%d2 <== NOT EXECUTED stats->missed_count++; /* * Grab status for time statistics. */ valid_status = 474e4: 2f03 movel %d3,%sp@- <== NOT EXECUTED 474e6: 2f02 movel %d2,%sp@- <== NOT EXECUTED 474e8: 2f0a movel %a2,%sp@- <== NOT EXECUTED 474ea: 4eb9 0004 72c0 jsr 472c0 <_Rate_monotonic_Get_status> <== NOT EXECUTED _Rate_monotonic_Get_status( the_period, &since_last_period, &executed ); if (!valid_status) 474f0: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 474f4: 4a00 tstb %d0 <== NOT EXECUTED 474f6: 6700 ff38 beqw 47430 <_Rate_monotonic_Update_statistics+0x3a><== NOT EXECUTED 474fa: 6000 ff3e braw 4743a <_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; 474fe: 202e fff0 movel %fp@(-16),%d0 <== NOT EXECUTED 47502: 222e fff4 movel %fp@(-12),%d1 <== NOT EXECUTED 47506: 2540 0074 movel %d0,%a2@(116) <== NOT EXECUTED 4750a: 2541 0078 movel %d1,%a2@(120) <== NOT EXECUTED 4750e: 609a bras 474aa <_Rate_monotonic_Update_statistics+0xb4><== NOT EXECUTED =============================================================================== 0005f368 <_Region_Process_queue>: */ void _Region_Process_queue( Region_Control *the_region ) { 5f368: 4e56 ffe4 linkw %fp,#-28 <== NOT EXECUTED 5f36c: 2039 0007 d1d8 movel 7d1d8 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED 5f372: 5280 addql #1,%d0 <== NOT EXECUTED 5f374: 48d7 3c1c moveml %d2-%d4/%a2-%a5,%sp@ <== NOT EXECUTED 5f378: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED 5f37c: 23c0 0007 d1d8 movel %d0,7d1d8 <_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(); 5f382: 2f39 0007 d27a movel 7d27a <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 5f388: 240b movel %a3,%d2 <== NOT EXECUTED 5f38a: 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 ); 5f390: 260b movel %a3,%d3 <== NOT EXECUTED 5f392: 49f9 0005 fb2c lea 5fb2c <_Thread_queue_First>,%a4 <== NOT EXECUTED 5f398: 0683 0000 0068 addil #104,%d3 <== NOT EXECUTED 5f39e: 4bf9 0005 a72c lea 5a72c <_Heap_Allocate_aligned_with_boundary>,%a5<== NOT EXECUTED 5f3a4: 4eb9 0005 9bc4 jsr 59bc4 <_API_Mutex_Unlock> <== NOT EXECUTED 5f3aa: 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 ); 5f3ac: 283c 0005 fa0c movel #391692,%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 ); 5f3b2: 2f02 movel %d2,%sp@- <== NOT EXECUTED 5f3b4: 4e94 jsr %a4@ <== NOT EXECUTED if ( the_thread == NULL ) 5f3b6: 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 ); 5f3b8: 2440 moveal %d0,%a2 <== NOT EXECUTED if ( the_thread == NULL ) 5f3ba: 4a80 tstl %d0 <== NOT EXECUTED 5f3bc: 6738 beqs 5f3f6 <_Region_Process_queue+0x8e> <== NOT EXECUTED 5f3be: 42a7 clrl %sp@- <== NOT EXECUTED 5f3c0: 42a7 clrl %sp@- <== NOT EXECUTED 5f3c2: 2f2a 0024 movel %a2@(36),%sp@- <== NOT EXECUTED 5f3c6: 2f03 movel %d3,%sp@- <== NOT EXECUTED 5f3c8: 4e95 jsr %a5@ <== NOT EXECUTED the_segment = (void **) _Region_Allocate_segment( the_region, the_thread->Wait.count ); if ( the_segment == NULL ) 5f3ca: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 5f3ce: 4a80 tstl %d0 <== NOT EXECUTED 5f3d0: 6724 beqs 5f3f6 <_Region_Process_queue+0x8e> <== NOT EXECUTED break; *(void **)the_thread->Wait.return_argument = the_segment; 5f3d2: 206a 0028 moveal %a2@(40),%a0 <== NOT EXECUTED 5f3d6: 2080 movel %d0,%a0@ <== NOT EXECUTED the_region->number_of_used_blocks += 1; 5f3d8: 52ab 0064 addql #1,%a3@(100) <== NOT EXECUTED _Thread_queue_Extract( &the_region->Wait_queue, the_thread ); 5f3dc: 2044 moveal %d4,%a0 <== NOT EXECUTED 5f3de: 2f0a movel %a2,%sp@- <== NOT EXECUTED 5f3e0: 2f02 movel %d2,%sp@- <== NOT EXECUTED 5f3e2: 4e90 jsr %a0@ <== NOT EXECUTED the_thread->Wait.return_code = RTEMS_SUCCESSFUL; } 5f3e4: 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; 5f3e6: 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 ); 5f3ea: 2f02 movel %d2,%sp@- <== NOT EXECUTED 5f3ec: 4e94 jsr %a4@ <== NOT EXECUTED if ( the_thread == NULL ) 5f3ee: 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 ); 5f3f0: 2440 moveal %d0,%a2 <== NOT EXECUTED if ( the_thread == NULL ) 5f3f2: 4a80 tstl %d0 <== NOT EXECUTED 5f3f4: 66c8 bnes 5f3be <_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(); } 5f3f6: 4cee 3c1c ffe4 moveml %fp@(-28),%d2-%d4/%a2-%a5 <== NOT EXECUTED 5f3fc: 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(); 5f3fe: 4ef9 0005 c12a jmp 5c12a <_Thread_Enable_dispatch> <== NOT EXECUTED =============================================================================== 0004665e <_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]; 4665e: 41f9 0005 beb6 lea 5beb6 <_Semaphore_Translate_core_semaphore_return_code_>,%a0<== NOT EXECUTED }; rtems_status_code _Semaphore_Translate_core_semaphore_return_code ( uint32_t status ) { 46664: 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]; } 46668: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED 4666c: 4e5e unlk %fp <== NOT EXECUTED 4666e: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED =============================================================================== 00047788 <_TOD_Get_uptime_as_timespec>: */ void _TOD_Get_uptime_as_timespec( struct timespec *uptime ) { 47788: 4e56 fff8 linkw %fp,#-8 <== NOT EXECUTED Timestamp_Control uptime_ts; /* assume time checked for NULL by caller */ _TOD_Get_uptime( &uptime_ts ); 4778c: 486e fff8 pea %fp@(-8) <== NOT EXECUTED 47790: 4eb9 0004 bf48 jsr 4bf48 <_TOD_Get_uptime> <== NOT EXECUTED _Timestamp_To_timespec( &uptime_ts, uptime ); 47796: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 4779a: 588f addql #4,%sp <== NOT EXECUTED 4779c: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED 477a0: 222e fffc movel %fp@(-4),%d1 <== NOT EXECUTED } 477a4: 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 ); 477a6: 2080 movel %d0,%a0@ <== NOT EXECUTED 477a8: 2141 0004 movel %d1,%a0@(4) <== NOT EXECUTED } ... =============================================================================== 00048d04 <_TOD_Set>: */ void _TOD_Set( const struct timespec *time ) { 48d04: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 48d08: 2039 0006 8a3c movel 68a3c <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED 48d0e: 5280 addql #1,%d0 <== NOT EXECUTED 48d10: 2f0a movel %a2,%sp@- <== NOT EXECUTED 48d12: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 48d16: 23c0 0006 8a3c movel %d0,68a3c <_Thread_Dispatch_disable_level><== NOT EXECUTED long seconds; _Thread_Disable_dispatch(); _TOD_Deactivate(); seconds = _TOD_Seconds_since_epoch(); 48d1c: 2039 0006 8ac6 movel 68ac6 <_TOD_Now>,%d0 <== NOT EXECUTED if ( time->tv_sec < seconds ) 48d22: 2212 movel %a2@,%d1 <== NOT EXECUTED 48d24: b280 cmpl %d0,%d1 <== NOT EXECUTED 48d26: 6d38 blts 48d60 <_TOD_Set+0x5c> <== NOT EXECUTED Watchdog_Adjust_directions direction, Watchdog_Interval units ) { _Watchdog_Adjust( &_Watchdog_Seconds_chain, direction, units ); 48d28: 9280 subl %d0,%d1 <== NOT EXECUTED 48d2a: 2f01 movel %d1,%sp@- <== NOT EXECUTED 48d2c: 42a7 clrl %sp@- <== NOT EXECUTED 48d2e: 4879 0006 8af2 pea 68af2 <_Watchdog_Seconds_chain> <== NOT EXECUTED 48d34: 4eb9 0004 b41c jsr 4b41c <_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 ); 48d3a: 23d2 0006 8ac6 movel %a2@,68ac6 <_TOD_Now> <== NOT EXECUTED 48d40: 588a addql #4,%a2 <== NOT EXECUTED 48d42: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 48d46: 23d2 0006 8aca movel %a2@,68aca <_TOD_Now+0x4> <== NOT EXECUTED _TOD_Is_set = true; _TOD_Activate(); _Thread_Enable_dispatch(); } 48d4c: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 48d50: 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; 48d52: 7001 moveq #1,%d0 <== NOT EXECUTED 48d54: 13c0 0006 8a4c moveb %d0,68a4c <_TOD_Is_set> <== NOT EXECUTED _TOD_Activate(); _Thread_Enable_dispatch(); 48d5a: 4ef9 0004 a0fa jmp 4a0fa <_Thread_Enable_dispatch> <== NOT EXECUTED 48d60: 9081 subl %d1,%d0 <== NOT EXECUTED 48d62: 2f00 movel %d0,%sp@- <== NOT EXECUTED 48d64: 4878 0001 pea 1 <== NOT EXECUTED 48d68: 4879 0006 8af2 pea 68af2 <_Watchdog_Seconds_chain> <== NOT EXECUTED 48d6e: 4eb9 0004 b41c jsr 4b41c <_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 ); 48d74: 23d2 0006 8ac6 movel %a2@,68ac6 <_TOD_Now> <== NOT EXECUTED 48d7a: 588a addql #4,%a2 <== NOT EXECUTED 48d7c: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 48d80: 23d2 0006 8aca movel %a2@,68aca <_TOD_Now+0x4> <== NOT EXECUTED _TOD_Is_set = true; _TOD_Activate(); _Thread_Enable_dispatch(); } 48d86: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 48d8a: 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; 48d8c: 7001 moveq #1,%d0 <== NOT EXECUTED 48d8e: 13c0 0006 8a4c moveb %d0,68a4c <_TOD_Is_set> <== NOT EXECUTED _TOD_Activate(); _Thread_Enable_dispatch(); 48d94: 4ef9 0004 a0fa jmp 4a0fa <_Thread_Enable_dispatch> <== NOT EXECUTED ... =============================================================================== 000473cc <_TOD_Tickle_ticks>: * * Output parameters: NONE */ void _TOD_Tickle_ticks( void ) { 473cc: 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() ); 473d0: 2239 0005 cc50 movel 5cc50 ,%d1 * * Output parameters: NONE */ void _TOD_Tickle_ticks( void ) { 473d6: 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 ); 473da: 240e movel %fp,%d2 473dc: 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() ); 473de: 263c 0000 03e8 movel #1000,%d3 473e4: 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 ); 473e8: 45f9 0004 9460 lea 49460 <_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; 473ee: 2039 0005 e598 movel 5e598 <_Watchdog_Ticks_since_boot>,%d0 473f4: 5280 addql #1,%d0 /* Update the timespec format uptime */ _Timestamp_Add_to( &_TOD_Uptime, &tick ); 473f6: 2f02 movel %d2,%sp@- 473f8: 4879 0005 e4e6 pea 5e4e6 <_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() ); 473fe: 2d41 fffc movel %d1,%fp@(-4) 47402: 42ae fff8 clrl %fp@(-8) /* Update the counter of ticks since boot */ _Watchdog_Ticks_since_boot += 1; 47406: 23c0 0005 e598 movel %d0,5e598 <_Watchdog_Ticks_since_boot> /* Update the timespec format uptime */ _Timestamp_Add_to( &_TOD_Uptime, &tick ); 4740c: 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 ); 4740e: 2f02 movel %d2,%sp@- <== NOT EXECUTED 47410: 4879 0005 e4f6 pea 5e4f6 <_TOD_Now> <== NOT EXECUTED 47416: 4e92 jsr %a2@ <== NOT EXECUTED while ( seconds ) { 47418: 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 ); 4741c: 2400 movel %d0,%d2 <== NOT EXECUTED while ( seconds ) { 4741e: 6716 beqs 47436 <_TOD_Tickle_ticks+0x6a> <== NOT EXECUTED 47420: 45f9 0004 9998 lea 49998 <_Watchdog_Tickle>,%a2 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Watchdog_Tickle_seconds( void ) { _Watchdog_Tickle( &_Watchdog_Seconds_chain ); 47426: 4879 0005 e522 pea 5e522 <_Watchdog_Seconds_chain> <== NOT EXECUTED _Watchdog_Tickle_seconds(); seconds--; 4742c: 5382 subql #1,%d2 <== NOT EXECUTED 4742e: 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 ) { 47430: 588f addql #4,%sp <== NOT EXECUTED 47432: 4a82 tstl %d2 <== NOT EXECUTED 47434: 66f0 bnes 47426 <_TOD_Tickle_ticks+0x5a> <== NOT EXECUTED _Watchdog_Tickle_seconds(); seconds--; } } 47436: 4cee 040c ffec moveml %fp@(-20),%d2-%d3/%a2 <== NOT EXECUTED 4743c: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00047278 <_TOD_To_seconds>: */ uint32_t _TOD_To_seconds( const rtems_time_of_day *the_tod ) { 47278: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 4727c: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 47280: 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; 47284: 2610 movel %a0@,%d3 <== NOT EXECUTED 47286: 7403 moveq #3,%d2 <== NOT EXECUTED ) { uint32_t time; uint32_t year_mod_4; time = the_tod->day - 1; 47288: 2028 0008 movel %a0@(8),%d0 <== NOT EXECUTED 4728c: 5380 subql #1,%d0 <== NOT EXECUTED year_mod_4 = the_tod->year & 3; 4728e: c483 andl %d3,%d2 <== NOT EXECUTED if ( year_mod_4 == 0 ) 47290: 6774 beqs 47306 <_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 ]; 47292: 2228 0004 movel %a0@(4),%d1 <== NOT EXECUTED 47296: 43f9 0005 e5a2 lea 5e5a2 <_TOD_Days_to_date>,%a1 <== NOT EXECUTED time += ( (the_tod->year - TOD_BASE_YEAR) / 4 ) * 4729c: 283c 0000 05b5 movel #1461,%d4 <== NOT EXECUTED ( (TOD_DAYS_PER_YEAR * 4) + 1); time += _TOD_Days_since_last_leap_year[ year_mod_4 ]; 472a2: 45f9 0005 e5d6 lea 5e5d6 <_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 ]; 472a8: 3231 1a00 movew %a1@(00000000,%d1:l:2),%d1 <== NOT EXECUTED 472ac: 0281 0000 ffff andil #65535,%d1 <== NOT EXECUTED 472b2: 2241 moveal %d1,%a1 <== NOT EXECUTED 472b4: d3c0 addal %d0,%a1 <== NOT EXECUTED time += ( (the_tod->year - TOD_BASE_YEAR) / 4 ) * 472b6: 2003 movel %d3,%d0 <== NOT EXECUTED 472b8: 0680 ffff f83c addil #-1988,%d0 <== NOT EXECUTED 472be: e488 lsrl #2,%d0 <== NOT EXECUTED 472c0: 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) 472c4: 2228 000c movel %a0@(12),%d1 <== NOT EXECUTED 472c8: 2601 movel %d1,%d3 <== NOT EXECUTED 472ca: ed89 lsll #6,%d1 <== NOT EXECUTED 472cc: e58b lsll #2,%d3 <== NOT EXECUTED 472ce: 9283 subl %d3,%d1 <== NOT EXECUTED 472d0: 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 ]; 472d4: 4283 clrl %d3 <== NOT EXECUTED 472d6: 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; 472da: 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 ) * 472dc: 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; 472de: 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 ]; 472e4: d089 addl %a1,%d0 <== NOT EXECUTED time *= TOD_SECONDS_PER_DAY; 472e6: 4c03 0800 mulsl %d3,%d0 <== NOT EXECUTED time += ((the_tod->hour * TOD_MINUTES_PER_HOUR) + the_tod->minute) * TOD_SECONDS_PER_MINUTE; 472ea: e58a lsll #2,%d2 <== NOT EXECUTED 472ec: 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) 472ee: 2068 0014 moveal %a0@(20),%a0 <== NOT EXECUTED * TOD_SECONDS_PER_MINUTE; 472f2: 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) 472f4: d1fc 21da e500 addal #567993600,%a0 <== NOT EXECUTED * TOD_SECONDS_PER_MINUTE; time += the_tod->second; 472fa: d288 addl %a0,%d1 <== NOT EXECUTED time += TOD_SECONDS_1970_THROUGH_1988; return( time ); } 472fc: d081 addl %d1,%d0 <== NOT EXECUTED 472fe: 4cd7 041c moveml %sp@,%d2-%d4/%a2 <== NOT EXECUTED 47302: 4e5e unlk %fp <== NOT EXECUTED 47304: 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 ]; 47306: 2228 0004 movel %a0@(4),%d1 <== NOT EXECUTED else time += _TOD_Days_to_date[ 0 ][ the_tod->month ]; 4730a: 43f9 0005 e5a2 lea 5e5a2 <_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 ]; 47310: 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 ) * 47316: 283c 0000 05b5 movel #1461,%d4 <== NOT EXECUTED ( (TOD_DAYS_PER_YEAR * 4) + 1); time += _TOD_Days_since_last_leap_year[ year_mod_4 ]; 4731c: 45f9 0005 e5d6 lea 5e5d6 <_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 ]; 47322: 3231 1a00 movew %a1@(00000000,%d1:l:2),%d1 <== NOT EXECUTED 47326: 0281 0000 ffff andil #65535,%d1 <== NOT EXECUTED 4732c: 2241 moveal %d1,%a1 <== NOT EXECUTED 4732e: d3c0 addal %d0,%a1 <== NOT EXECUTED time += ( (the_tod->year - TOD_BASE_YEAR) / 4 ) * 47330: 2003 movel %d3,%d0 <== NOT EXECUTED 47332: 0680 ffff f83c addil #-1988,%d0 <== NOT EXECUTED 47338: e488 lsrl #2,%d0 <== NOT EXECUTED 4733a: 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) 4733e: 2228 000c movel %a0@(12),%d1 <== NOT EXECUTED 47342: 2601 movel %d1,%d3 <== NOT EXECUTED 47344: ed89 lsll #6,%d1 <== NOT EXECUTED 47346: e58b lsll #2,%d3 <== NOT EXECUTED 47348: 9283 subl %d3,%d1 <== NOT EXECUTED 4734a: 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 ]; 4734e: 4283 clrl %d3 <== NOT EXECUTED 47350: 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; 47354: 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 ) * 47356: 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; 47358: 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 ]; 4735e: d089 addl %a1,%d0 <== NOT EXECUTED time *= TOD_SECONDS_PER_DAY; 47360: 4c03 0800 mulsl %d3,%d0 <== NOT EXECUTED time += ((the_tod->hour * TOD_MINUTES_PER_HOUR) + the_tod->minute) * TOD_SECONDS_PER_MINUTE; 47364: e58a lsll #2,%d2 <== NOT EXECUTED 47366: 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) 47368: 2068 0014 moveal %a0@(20),%a0 <== NOT EXECUTED * TOD_SECONDS_PER_MINUTE; 4736c: 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) 4736e: d1fc 21da e500 addal #567993600,%a0 <== NOT EXECUTED * TOD_SECONDS_PER_MINUTE; time += the_tod->second; 47374: d288 addl %a0,%d1 <== NOT EXECUTED time += TOD_SECONDS_1970_THROUGH_1988; return( time ); } 47376: d081 addl %d1,%d0 <== NOT EXECUTED 47378: 4cd7 041c moveml %sp@,%d2-%d4/%a2 <== NOT EXECUTED 4737c: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00047380 <_TOD_Validate>: */ bool _TOD_Validate( const rtems_time_of_day *the_tod ) { 47380: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 47384: 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(); 47388: 2039 0005 f460 movel 5f460 ,%d0 <== NOT EXECUTED */ bool _TOD_Validate( const rtems_time_of_day *the_tod ) { 4738e: 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) || 47390: 4a88 tstl %a0 <== NOT EXECUTED 47392: 6762 beqs 473f6 <_TOD_Validate+0x76> <== NOT EXECUTED ) { uint32_t days_in_month; uint32_t ticks_per_second; ticks_per_second = TOD_MICROSECONDS_PER_SECOND / 47394: 243c 000f 4240 movel #1000000,%d2 <== NOT EXECUTED 4739a: 4c40 2002 remul %d0,%d2,%d2 <== NOT EXECUTED rtems_configuration_get_microseconds_per_tick(); if ((!the_tod) || 4739e: b4a8 0018 cmpl %a0@(24),%d2 <== NOT EXECUTED 473a2: 6352 blss 473f6 <_TOD_Validate+0x76> <== NOT EXECUTED (the_tod->ticks >= ticks_per_second) || 473a4: 703b moveq #59,%d0 <== NOT EXECUTED 473a6: b0a8 0014 cmpl %a0@(20),%d0 <== NOT EXECUTED 473aa: 654a bcss 473f6 <_TOD_Validate+0x76> <== NOT EXECUTED (the_tod->second >= TOD_SECONDS_PER_MINUTE) || 473ac: b0a8 0010 cmpl %a0@(16),%d0 <== NOT EXECUTED 473b0: 6544 bcss 473f6 <_TOD_Validate+0x76> <== NOT EXECUTED (the_tod->minute >= TOD_MINUTES_PER_HOUR) || 473b2: 7217 moveq #23,%d1 <== NOT EXECUTED 473b4: b2a8 000c cmpl %a0@(12),%d1 <== NOT EXECUTED 473b8: 653c bcss 473f6 <_TOD_Validate+0x76> <== NOT EXECUTED (the_tod->hour >= TOD_HOURS_PER_DAY) || (the_tod->month == 0) || 473ba: 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) || 473be: 6736 beqs 473f6 <_TOD_Validate+0x76> <== NOT EXECUTED (the_tod->month == 0) || 473c0: 740c moveq #12,%d2 <== NOT EXECUTED 473c2: b480 cmpl %d0,%d2 <== NOT EXECUTED 473c4: 6530 bcss 473f6 <_TOD_Validate+0x76> <== NOT EXECUTED (the_tod->month > TOD_MONTHS_PER_YEAR) || (the_tod->year < TOD_BASE_YEAR) || 473c6: 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) || 473c8: 0c81 0000 07c3 cmpil #1987,%d1 <== NOT EXECUTED 473ce: 6326 blss 473f6 <_TOD_Validate+0x76> <== NOT EXECUTED (the_tod->year < TOD_BASE_YEAR) || (the_tod->day == 0) ) 473d0: 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) || 473d4: 4a88 tstl %a0 <== NOT EXECUTED 473d6: 671e beqs 473f6 <_TOD_Validate+0x76> <== NOT EXECUTED (the_tod->day == 0) ) return false; if ( (the_tod->year % 4) == 0 ) 473d8: 143c 0003 moveb #3,%d2 <== NOT EXECUTED 473dc: c282 andl %d2,%d1 <== NOT EXECUTED 473de: 661e bnes 473fe <_TOD_Validate+0x7e> <== NOT EXECUTED days_in_month = _TOD_Days_per_month[ 1 ][ the_tod->month ]; 473e0: 43f9 0005 e5de lea 5e5de <_TOD_Days_per_month>,%a1 <== NOT EXECUTED 473e6: 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( 473ea: b1c0 cmpal %d0,%a0 <== NOT EXECUTED 473ec: 53c0 sls %d0 <== NOT EXECUTED 473ee: 4480 negl %d0 <== NOT EXECUTED if ( the_tod->day > days_in_month ) return false; return true; } 473f0: 241f movel %sp@+,%d2 <== NOT EXECUTED 473f2: 4e5e unlk %fp <== NOT EXECUTED 473f4: 4e75 rts <== NOT EXECUTED 473f6: 241f movel %sp@+,%d2 <== NOT EXECUTED 473f8: 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; 473fa: 4200 clrb %d0 <== NOT EXECUTED if ( the_tod->day > days_in_month ) return false; return true; } 473fc: 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 ]; 473fe: 43f9 0005 e5de lea 5e5de <_TOD_Days_per_month>,%a1 <== NOT EXECUTED 47404: 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( 47408: b1c0 cmpal %d0,%a0 <== NOT EXECUTED 4740a: 53c0 sls %d0 <== NOT EXECUTED 4740c: 4480 negl %d0 <== NOT EXECUTED 4740e: 60e0 bras 473f0 <_TOD_Validate+0x70> <== NOT EXECUTED =============================================================================== 00048134 <_Thread_Change_priority>: void _Thread_Change_priority( Thread_Control *the_thread, Priority_Control new_priority, bool prepend_it ) { 48134: 4e56 fff0 linkw %fp,#-16 48138: 48d7 041c moveml %d2-%d4/%a2,%sp@ 4813c: 246e 0008 moveal %fp@(8),%a2 */ /* * Save original state */ original_state = the_thread->current_state; 48140: 262a 0010 movel %a2@(16),%d3 void _Thread_Change_priority( Thread_Control *the_thread, Priority_Control new_priority, bool prepend_it ) { 48144: 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 ); 48148: 2f0a movel %a2,%sp@- void _Thread_Change_priority( Thread_Control *the_thread, Priority_Control new_priority, bool prepend_it ) { 4814a: 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 ); 4814e: 4eb9 0004 90b8 jsr 490b8 <_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 ) 48154: 588f addql #4,%sp 48156: b4aa 0014 cmpl %a2@(20),%d2 4815a: 670c beqs 48168 <_Thread_Change_priority+0x34> _Thread_Set_priority( the_thread, new_priority ); 4815c: 2f02 movel %d2,%sp@- 4815e: 2f0a movel %a2,%sp@- 48160: 4eb9 0004 8f34 jsr 48f34 <_Thread_Set_priority> 48166: 508f addql #8,%sp _ISR_Disable( level ); 48168: 203c 0000 0700 movel #1792,%d0 4816e: 40c1 movew %sr,%d1 48170: 8081 orl %d1,%d0 48172: 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; 48174: 202a 0010 movel %a2@(16),%d0 if ( state != STATES_TRANSIENT ) { 48178: 7404 moveq #4,%d2 4817a: b480 cmpl %d0,%d2 4817c: 6738 beqs 481b6 <_Thread_Change_priority+0x82> /* Only clear the transient state if it wasn't set already */ if ( ! _States_Is_transient( original_state ) ) 4817e: 44c3 movew %d3,%ccr 48180: 6708 beqs 4818a <_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); 48182: 74fb moveq #-5,%d2 48184: c480 andl %d0,%d2 48186: 2542 0010 movel %d2,%a2@(16) the_thread->current_state = _States_Clear( STATES_TRANSIENT, state ); _ISR_Enable( level ); 4818a: 46c1 movew %d1,%sr */ RTEMS_INLINE_ROUTINE bool _States_Is_waiting_on_thread_queue ( States_Control the_states ) { return (the_states & STATES_WAITING_ON_THREAD_QUEUE); 4818c: 0280 0003 bee0 andil #245472,%d0 if ( _States_Is_waiting_on_thread_queue( state ) ) { 48192: 660a bnes 4819e <_Thread_Change_priority+0x6a> if ( !_Thread_Is_executing_also_the_heir() && _Thread_Executing->is_preemptible ) _Thread_Dispatch_necessary = true; _ISR_Enable( level ); } 48194: 4cee 041c fff0 moveml %fp@(-16),%d2-%d4/%a2 4819a: 4e5e unlk %fp 4819c: 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 ); 4819e: 2d4a 000c movel %a2,%fp@(12) 481a2: 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 ); } 481a8: 4cee 041c fff0 moveml %fp@(-16),%d2-%d4/%a2 481ae: 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 ); 481b0: 4ef9 0004 8e88 jmp 48e88 <_Thread_queue_Requeue> } return; } /* Only clear the transient state if it wasn't set already */ if ( ! _States_Is_transient( original_state ) ) { 481b6: 44c3 movew %d3,%ccr 481b8: 673c beqs 481f6 <_Thread_Change_priority+0xc2> <== NEVER TAKEN RTEMS_INLINE_ROUTINE void _Priority_bit_map_Add ( Priority_bit_map_Information *the_priority_map ) { *the_priority_map->minor |= the_priority_map->ready_minor; 481ba: 206a 008e moveal %a2@(142),%a0 481be: 302a 0094 movew %a2@(148),%d0 481c2: 3410 movew %a0@,%d2 * Interrupts are STILL disabled. * We now know the thread will be in the READY state when we remove * the TRANSIENT state. So we have to place it on the appropriate * Ready Queue with interrupts off. */ the_thread->current_state = _States_Clear( STATES_TRANSIENT, state ); 481c4: 42aa 0010 clrl %a2@(16) 481c8: 8082 orl %d2,%d0 481ca: 3080 movew %d0,%a0@ _Priority_Major_bit_map |= the_priority_map->ready_major; 481cc: 3439 0005 e50c movew 5e50c <_Priority_Major_bit_map>,%d2 481d2: 302a 0092 movew %a2@(146),%d0 481d6: 8082 orl %d2,%d0 481d8: 33c0 0005 e50c movew %d0,5e50c <_Priority_Major_bit_map> _Priority_bit_map_Add( &the_thread->Priority_map ); if ( prepend_it ) 481de: 4a04 tstb %d4 481e0: 6700 0082 beqw 48264 <_Thread_Change_priority+0x130> */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Head( Chain_Control *the_chain ) { return (Chain_Node *) the_chain; 481e4: 206a 008a moveal %a2@(138),%a0 ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; 481e8: 2250 moveal %a0@,%a1 Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; 481ea: 2548 0004 movel %a0,%a2@(4) before_node = after_node->next; after_node->next = the_node; 481ee: 208a movel %a2,%a0@ the_node->next = before_node; before_node->previous = the_node; 481f0: 234a 0004 movel %a2,%a1@(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; 481f4: 2489 movel %a1,%a2@ _Chain_Prepend_unprotected( the_thread->ready, &the_thread->Object.Node ); else _Chain_Append_unprotected( the_thread->ready, &the_thread->Object.Node ); } _ISR_Flash( level ); 481f6: 203c 0000 0700 movel #1792,%d0 481fc: 46c1 movew %d1,%sr 481fe: 8081 orl %d1,%d0 48200: 46c0 movew %d0,%sr 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 ); 48202: 3039 0005 e50c movew 5e50c <_Priority_Major_bit_map>,%d0 48208: 4840 swap %d0 4820a: 04c0 ff1 %d0 _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor ); 4820c: 4282 clrl %d2 4820e: 41f9 0005 e574 lea 5e574 <_Priority_Bit_map>,%a0 48214: 3400 movew %d0,%d2 48216: 3030 2a00 movew %a0@(00000000,%d2:l:2),%d0 4821a: 4840 swap %d0 4821c: 04c0 ff1 %d0 return (_Priority_Bits_index( major ) << 4) + 4821e: 4283 clrl %d3 48220: e98a lsll #4,%d2 48222: 3600 movew %d0,%d3 */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) _Thread_Ready_chain[ _Priority_bit_map_Get_highest() ].first; 48224: 2279 0005 e420 moveal 5e420 <_Thread_Ready_chain>,%a1 4822a: 2002 movel %d2,%d0 4822c: d083 addl %d3,%d0 4822e: 2400 movel %d0,%d2 48230: e58a lsll #2,%d2 48232: e988 lsll #4,%d0 * is also the heir thread, and false otherwise. */ RTEMS_INLINE_ROUTINE bool _Thread_Is_executing_also_the_heir( void ) { return ( _Thread_Executing == _Thread_Heir ); 48234: 2079 0005 e630 moveal 5e630 <_Per_CPU_Information+0xc>,%a0 */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) _Thread_Ready_chain[ _Priority_bit_map_Get_highest() ].first; 4823a: 93c2 subal %d2,%a1 * ready thread. */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) 4823c: 2031 0800 movel %a1@(00000000,%d0:l),%d0 48240: 23c0 0005 e634 movel %d0,5e634 <_Per_CPU_Information+0x10> * We altered the set of thread priorities. So let's figure out * who is the heir and if we need to switch to them. */ _Thread_Calculate_heir(); if ( !_Thread_Is_executing_also_the_heir() && 48246: b1c0 cmpal %d0,%a0 48248: 670e beqs 48258 <_Thread_Change_priority+0x124> 4824a: 4a28 0074 tstb %a0@(116) 4824e: 6708 beqs 48258 <_Thread_Change_priority+0x124> <== NEVER TAKEN _Thread_Executing->is_preemptible ) _Thread_Dispatch_necessary = true; 48250: 7401 moveq #1,%d2 48252: 13c2 0005 e63c moveb %d2,5e63c <_Per_CPU_Information+0x18> _ISR_Enable( level ); 48258: 46c1 movew %d1,%sr } 4825a: 4cee 041c fff0 moveml %fp@(-16),%d2-%d4/%a2 48260: 4e5e unlk %fp 48262: 4e75 rts _Priority_bit_map_Add( &the_thread->Priority_map ); if ( prepend_it ) _Chain_Prepend_unprotected( the_thread->ready, &the_thread->Object.Node ); else _Chain_Append_unprotected( the_thread->ready, &the_thread->Object.Node ); 48264: 206a 008a moveal %a2@(138),%a0 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 48268: 2008 movel %a0,%d0 4826a: 5880 addql #4,%d0 ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); old_last_node = the_chain->last; 4826c: 2268 0008 moveal %a0@(8),%a1 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 48270: 2480 movel %d0,%a2@ { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); old_last_node = the_chain->last; the_chain->last = the_node; 48272: 214a 0008 movel %a2,%a0@(8) old_last_node->next = the_node; 48276: 228a movel %a2,%a1@ the_node->previous = old_last_node; 48278: 2549 0004 movel %a1,%a2@(4) 4827c: 6000 ff78 braw 481f6 <_Thread_Change_priority+0xc2> =============================================================================== 00048280 <_Thread_Clear_state>: ) { ISR_Level level; States_Control current_state; _ISR_Disable( level ); 48280: 327c 0700 moveaw #1792,%a1 48284: 2009 movel %a1,%d0 void _Thread_Clear_state( Thread_Control *the_thread, States_Control state ) { 48286: 4e56 ffec linkw %fp,#-20 4828a: 206e 0008 moveal %fp@(8),%a0 4828e: 48d7 1c0c moveml %d2-%d3/%a2-%a4,%sp@ 48292: 242e 000c movel %fp@(12),%d2 ISR_Level level; States_Control current_state; _ISR_Disable( level ); 48296: 40c3 movew %sr,%d3 48298: 8083 orl %d3,%d0 4829a: 46c0 movew %d0,%sr current_state = the_thread->current_state; 4829c: 2228 0010 movel %a0@(16),%d1 if ( current_state & state ) { 482a0: 2002 movel %d2,%d0 482a2: c081 andl %d1,%d0 482a4: 6776 beqs 4831c <_Thread_Clear_state+0x9c> <== NEVER TAKEN RTEMS_INLINE_ROUTINE States_Control _States_Clear ( States_Control states_to_clear, States_Control current_state ) { return (current_state & ~states_to_clear); 482a6: 2002 movel %d2,%d0 482a8: 4680 notl %d0 482aa: c081 andl %d1,%d0 current_state = the_thread->current_state = _States_Clear( state, current_state ); 482ac: 2140 0010 movel %d0,%a0@(16) if ( _States_Is_ready( current_state ) ) { 482b0: 666a bnes 4831c <_Thread_Clear_state+0x9c> <== NEVER TAKEN RTEMS_INLINE_ROUTINE void _Priority_bit_map_Add ( Priority_bit_map_Information *the_priority_map ) { *the_priority_map->minor |= the_priority_map->ready_minor; 482b2: 2868 008e moveal %a0@(142),%a4 _Priority_bit_map_Add( &the_thread->Priority_map ); _Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node); 482b6: 2468 008a moveal %a0@(138),%a2 482ba: 3214 movew %a4@,%d1 482bc: 3028 0094 movew %a0@(148),%d0 ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); old_last_node = the_chain->last; 482c0: 266a 0008 moveal %a2@(8),%a3 482c4: 8081 orl %d1,%d0 482c6: 3880 movew %d0,%a4@ _Priority_Major_bit_map |= the_priority_map->ready_major; 482c8: 3239 0005 e50c movew 5e50c <_Priority_Major_bit_map>,%d1 482ce: 3028 0092 movew %a0@(146),%d0 482d2: 8081 orl %d1,%d0 482d4: 33c0 0005 e50c movew %d0,5e50c <_Priority_Major_bit_map> */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 482da: 200a movel %a2,%d0 482dc: 5880 addql #4,%d0 482de: 2080 movel %d0,%a0@ { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); old_last_node = the_chain->last; the_chain->last = the_node; 482e0: 2548 0008 movel %a0,%a2@(8) old_last_node->next = the_node; 482e4: 2688 movel %a0,%a3@ the_node->previous = old_last_node; 482e6: 214b 0004 movel %a3,%a0@(4) _ISR_Flash( level ); 482ea: 2009 movel %a1,%d0 482ec: 46c3 movew %d3,%sr 482ee: 8083 orl %d3,%d0 482f0: 46c0 movew %d0,%sr * 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 ) { 482f2: 2028 0014 movel %a0@(20),%d0 482f6: 2279 0005 e634 moveal 5e634 <_Per_CPU_Information+0x10>,%a1 482fc: b0a9 0014 cmpl %a1@(20),%d0 48300: 641a bccs 4831c <_Thread_Clear_state+0x9c> _Thread_Heir = the_thread; 48302: 23c8 0005 e634 movel %a0,5e634 <_Per_CPU_Information+0x10> if ( _Thread_Executing->is_preemptible || 48308: 2079 0005 e630 moveal 5e630 <_Per_CPU_Information+0xc>,%a0 4830e: 4a28 0074 tstb %a0@(116) 48312: 6712 beqs 48326 <_Thread_Clear_state+0xa6> the_thread->current_priority == 0 ) _Thread_Dispatch_necessary = true; 48314: 7001 moveq #1,%d0 48316: 13c0 0005 e63c moveb %d0,5e63c <_Per_CPU_Information+0x18> } } } _ISR_Enable( level ); 4831c: 46c3 movew %d3,%sr } 4831e: 4cd7 1c0c moveml %sp@,%d2-%d3/%a2-%a4 48322: 4e5e unlk %fp 48324: 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 || 48326: 4a80 tstl %d0 48328: 66f2 bnes 4831c <_Thread_Clear_state+0x9c> <== ALWAYS TAKEN the_thread->current_priority == 0 ) _Thread_Dispatch_necessary = true; 4832a: 7001 moveq #1,%d0 <== NOT EXECUTED 4832c: 13c0 0005 e63c moveb %d0,5e63c <_Per_CPU_Information+0x18> <== NOT EXECUTED 48332: 60e8 bras 4831c <_Thread_Clear_state+0x9c> <== NOT EXECUTED =============================================================================== 00048334 <_Thread_Close>: RTEMS_INLINE_ROUTINE void _Objects_Invalidate_Id( Objects_Information *information, Objects_Control *the_object ) { _Objects_Set_local_object( 48334: 4280 clrl %d0 void _Thread_Close( Objects_Information *information, Thread_Control *the_thread ) { 48336: 4e56 0000 linkw %fp,#0 4833a: 2f0b movel %a3,%sp@- 4833c: 266e 0008 moveal %fp@(8),%a3 48340: 2f0a movel %a2,%sp@- 48342: 246e 000c moveal %fp@(12),%a2 #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 48346: 206b 0018 moveal %a3@(24),%a0 RTEMS_INLINE_ROUTINE void _Objects_Invalidate_Id( Objects_Information *information, Objects_Control *the_object ) { _Objects_Set_local_object( 4834a: 302a 000a movew %a2@(10),%d0 #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 4834e: 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; 48352: 2039 0005 e46c movel 5e46c <_Thread_Dispatch_disable_level>,%d0 48358: 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 ); 4835a: 2f0a movel %a2,%sp@- 4835c: 23c0 0005 e46c movel %d0,5e46c <_Thread_Dispatch_disable_level> 48362: 4eb9 0004 96e4 jsr 496e4 <_User_extensions_Thread_delete> rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 48368: 2039 0005 e46c movel 5e46c <_Thread_Dispatch_disable_level>,%d0 4836e: 5280 addql #1,%d0 48370: 23c0 0005 e46c movel %d0,5e46c <_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 ); 48376: 2f0a movel %a2,%sp@- 48378: 2f0b movel %a3,%sp@- 4837a: 4eb9 0004 794c jsr 4794c <_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 ); 48380: 4878 0001 pea 1 48384: 2f0a movel %a2,%sp@- 48386: 4eb9 0004 8fa4 jsr 48fa4 <_Thread_Set_state> if ( !_Thread_queue_Extract_with_proxy( the_thread ) ) { 4838c: 2f0a movel %a2,%sp@- 4838e: 4eb9 0004 8d84 jsr 48d84 <_Thread_queue_Extract_with_proxy> 48394: 4fef 0018 lea %sp@(24),%sp 48398: 4a00 tstb %d0 4839a: 6608 bnes 483a4 <_Thread_Close+0x70> <== NEVER TAKEN if ( _Watchdog_Is_active( &the_thread->Timer ) ) 4839c: 7002 moveq #2,%d0 4839e: b0aa 0050 cmpl %a2@(80),%d0 483a2: 6756 beqs 483fa <_Thread_Close+0xc6> <== NEVER TAKEN /* * 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 ) ) 483a4: b5f9 0005 e4ee cmpal 5e4ee <_Thread_Allocated_fp>,%a2 483aa: 6746 beqs 483f2 <_Thread_Close+0xbe> <== NEVER TAKEN _Thread_Deallocate_fp(); #endif the_thread->fp_context = NULL; if ( the_thread->Start.fp_context ) 483ac: 202a 00c4 movel %a2@(196),%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; 483b0: 42aa 0100 clrl %a2@(256) if ( the_thread->Start.fp_context ) 483b4: 4a80 tstl %d0 483b6: 670a beqs 483c2 <_Thread_Close+0x8e> <== ALWAYS TAKEN (void) _Workspace_Free( the_thread->Start.fp_context ); 483b8: 2f00 movel %d0,%sp@- <== NOT EXECUTED 483ba: 4eb9 0004 9a96 jsr 49a96 <_Workspace_Free> <== NOT EXECUTED 483c0: 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 ); 483c2: 2f0a movel %a2,%sp@- 483c4: 4eb9 0004 91a0 jsr 491a0 <_Thread_Stack_Free> the_thread->Start.stack = NULL; if ( the_thread->extensions ) 483ca: 202a 0110 movel %a2@(272),%d0 483ce: 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; 483d0: 42aa 00c8 clrl %a2@(200) if ( the_thread->extensions ) 483d4: 4a80 tstl %d0 483d6: 670a beqs 483e2 <_Thread_Close+0xae> <== ALWAYS TAKEN (void) _Workspace_Free( the_thread->extensions ); 483d8: 2f00 movel %d0,%sp@- <== NOT EXECUTED 483da: 4eb9 0004 9a96 jsr 49a96 <_Workspace_Free> <== NOT EXECUTED 483e0: 588f addql #4,%sp <== NOT EXECUTED the_thread->extensions = NULL; 483e2: 42aa 0110 clrl %a2@(272) } 483e6: 246e fff8 moveal %fp@(-8),%a2 483ea: 266e fffc moveal %fp@(-4),%a3 483ee: 4e5e unlk %fp 483f0: 4e75 rts */ #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) RTEMS_INLINE_ROUTINE void _Thread_Deallocate_fp( void ) { _Thread_Allocated_fp = NULL; 483f2: 42b9 0005 e4ee clrl 5e4ee <_Thread_Allocated_fp> <== NOT EXECUTED 483f8: 60b2 bras 483ac <_Thread_Close+0x78> <== 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 ); 483fa: 486a 0048 pea %a2@(72) <== NOT EXECUTED 483fe: 4eb9 0004 98f8 jsr 498f8 <_Watchdog_Remove> <== NOT EXECUTED 48404: 588f addql #4,%sp <== 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 ) ) 48406: b5f9 0005 e4ee cmpal 5e4ee <_Thread_Allocated_fp>,%a2 <== NOT EXECUTED 4840c: 669e bnes 483ac <_Thread_Close+0x78> <== NOT EXECUTED 4840e: 60e2 bras 483f2 <_Thread_Close+0xbe> <== NOT EXECUTED =============================================================================== 000484c0 <_Thread_Delay_ended>: void _Thread_Delay_ended( Objects_Id id, void *ignored __attribute__((unused)) ) { 484c0: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); 484c4: 486e fffc pea %fp@(-4) <== NOT EXECUTED 484c8: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 484cc: 4eb9 0004 868c jsr 4868c <_Thread_Get> <== NOT EXECUTED switch ( location ) { 484d2: 508f addql #8,%sp <== NOT EXECUTED 484d4: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 484d8: 661e bnes 484f8 <_Thread_Delay_ended+0x38> <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) case OBJECTS_REMOTE: /* impossible */ #endif break; case OBJECTS_LOCAL: _Thread_Clear_state( 484da: 2f3c 1000 0018 movel #268435480,%sp@- <== NOT EXECUTED 484e0: 2f00 movel %d0,%sp@- <== NOT EXECUTED 484e2: 4eb9 0004 8280 jsr 48280 <_Thread_Clear_state> <== NOT EXECUTED 484e8: 508f addql #8,%sp <== NOT EXECUTED 484ea: 2039 0005 e46c movel 5e46c <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED 484f0: 5380 subql #1,%d0 <== NOT EXECUTED 484f2: 23c0 0005 e46c movel %d0,5e46c <_Thread_Dispatch_disable_level><== NOT EXECUTED | STATES_INTERRUPTIBLE_BY_SIGNAL ); _Thread_Unnest_dispatch(); break; } } 484f8: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 000484fc <_Thread_Dispatch>: * dispatch thread * no dispatch thread */ void _Thread_Dispatch( void ) { 484fc: 4e56 ffc8 linkw %fp,#-56 48500: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ Thread_Control *executing; Thread_Control *heir; ISR_Level level; executing = _Thread_Executing; _ISR_Disable( level ); 48504: 283c 0000 0700 movel #1792,%d4 4850a: 2004 movel %d4,%d0 { Thread_Control *executing; Thread_Control *heir; ISR_Level level; executing = _Thread_Executing; 4850c: 2479 0005 e630 moveal 5e630 <_Per_CPU_Information+0xc>,%a2 _ISR_Disable( level ); 48512: 40c1 movew %sr,%d1 48514: 8081 orl %d1,%d0 48516: 46c0 movew %d0,%sr while ( _Thread_Dispatch_necessary == true ) { 48518: 1039 0005 e63c moveb 5e63c <_Per_CPU_Information+0x18>,%d0 4851e: 6700 0120 beqw 48640 <_Thread_Dispatch+0x144> heir = _Thread_Heir; _Thread_Dispatch_disable_level = 1; 48522: 7001 moveq #1,%d0 48524: 23c0 0005 e46c movel %d0,5e46c <_Thread_Dispatch_disable_level> ISR_Level level; executing = _Thread_Executing; _ISR_Disable( level ); while ( _Thread_Dispatch_necessary == true ) { heir = _Thread_Heir; 4852a: 2679 0005 e634 moveal 5e634 <_Per_CPU_Information+0x10>,%a3 _Thread_Dispatch_disable_level = 1; _Thread_Dispatch_necessary = false; 48530: 4200 clrb %d0 _Thread_Executing = heir; 48532: 23cb 0005 e630 movel %a3,5e630 <_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; 48538: 13c0 0005 e63c moveb %d0,5e63c <_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 ) 4853e: b7ca cmpal %a2,%a3 48540: 6700 00fe beqw 48640 <_Thread_Dispatch+0x144> 48544: 260e movel %fp,%d3 48546: 240e movel %fp,%d2 48548: 5183 subql #8,%d3 4854a: 2e3c 0004 ba88 movel #309896,%d7 48550: 0682 ffff fff0 addil #-16,%d2 48556: 2c3c 0004 94a8 movel #300200,%d6 4855c: 2a3c 0004 9460 movel #300128,%d5 48562: 4bf9 0004 9770 lea 49770 <_User_extensions_Thread_switch>,%a5 48568: 49f9 0004 9ae4 lea 49ae4 <_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 ) 4856e: 7001 moveq #1,%d0 48570: b0ab 007a cmpl %a3@(122),%d0 48574: 6700 00e2 beqw 48658 <_Thread_Dispatch+0x15c> heir->cpu_time_budget = _Thread_Ticks_per_timeslice; _ISR_Enable( level ); 48578: 46c1 movew %d1,%sr #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ { Timestamp_Control uptime, ran; _TOD_Get_uptime( &uptime ); 4857a: 2f03 movel %d3,%sp@- 4857c: 2047 moveal %d7,%a0 4857e: 4e90 jsr %a0@ _Timestamp_Subtract( 48580: 2046 moveal %d6,%a0 48582: 2f02 movel %d2,%sp@- 48584: 2f03 movel %d3,%sp@- 48586: 4879 0005 e51a pea 5e51a <_Thread_Time_of_last_context_switch> 4858c: 4e90 jsr %a0@ &_Thread_Time_of_last_context_switch, &uptime, &ran ); _Timestamp_Add_to( &executing->cpu_time_used, &ran ); 4858e: 2045 moveal %d5,%a0 48590: 2f02 movel %d2,%sp@- 48592: 486a 0082 pea %a2@(130) 48596: 4e90 jsr %a0@ #endif /* * Switch libc's task specific data. */ if ( _Thread_libc_reent ) { 48598: 2079 0005 e4f2 moveal 5e4f2 <_Thread_libc_reent>,%a0 4859e: 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; 485a2: 202e fff8 movel %fp@(-8),%d0 485a6: 222e fffc movel %fp@(-4),%d1 485aa: 23c0 0005 e51a movel %d0,5e51a <_Thread_Time_of_last_context_switch> 485b0: 23c1 0005 e51e movel %d1,5e51e <_Thread_Time_of_last_context_switch+0x4> #endif /* * Switch libc's task specific data. */ if ( _Thread_libc_reent ) { 485b6: 4a88 tstl %a0 485b8: 6708 beqs 485c2 <_Thread_Dispatch+0xc6> <== NEVER TAKEN executing->libc_reent = *_Thread_libc_reent; 485ba: 2550 0104 movel %a0@,%a2@(260) *_Thread_libc_reent = heir->libc_reent; 485be: 20ab 0104 movel %a3@(260),%a0@ } _User_extensions_Thread_switch( executing, heir ); 485c2: 2f0b movel %a3,%sp@- 485c4: 2f0a movel %a2,%sp@- 485c6: 4e95 jsr %a5@ if ( executing->fp_context != NULL ) _Context_Save_fp( &executing->fp_context ); #endif #endif _Context_Switch( &executing->Registers, &heir->Registers ); 485c8: 486b 00cc pea %a3@(204) 485cc: 486a 00cc pea %a2@(204) 485d0: 4e94 jsr %a4@ #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) #if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE ) if ( (executing->fp_context != NULL) && 485d2: 4fef 0010 lea %sp@(16),%sp 485d6: 4aaa 0100 tstl %a2@(256) 485da: 672c beqs 48608 <_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 ); 485dc: 2079 0005 e4ee moveal 5e4ee <_Thread_Allocated_fp>,%a0 <== NOT EXECUTED 485e2: b1ca cmpal %a2,%a0 <== NOT EXECUTED 485e4: 6722 beqs 48608 <_Thread_Dispatch+0x10c> <== NOT EXECUTED !_Thread_Is_allocated_fp( executing ) ) { if ( _Thread_Allocated_fp != NULL ) 485e6: 4a88 tstl %a0 <== NOT EXECUTED 485e8: 670c beqs 485f6 <_Thread_Dispatch+0xfa> <== NOT EXECUTED _Context_Save_fp( &_Thread_Allocated_fp->fp_context ); 485ea: 4868 0100 pea %a0@(256) <== NOT EXECUTED 485ee: 4eb9 0004 9c0a jsr 49c0a <_CPU_Context_save_fp> <== NOT EXECUTED 485f4: 588f addql #4,%sp <== NOT EXECUTED _Context_Restore_fp( &executing->fp_context ); 485f6: 486a 0100 pea %a2@(256) <== NOT EXECUTED 485fa: 4eb9 0004 9c42 jsr 49c42 <_CPU_Context_restore_fp> <== NOT EXECUTED _Thread_Allocated_fp = executing; 48600: 588f addql #4,%sp <== NOT EXECUTED 48602: 23ca 0005 e4ee movel %a2,5e4ee <_Thread_Allocated_fp> <== NOT EXECUTED if ( executing->fp_context != NULL ) _Context_Restore_fp( &executing->fp_context ); #endif #endif executing = _Thread_Executing; 48608: 2479 0005 e630 moveal 5e630 <_Per_CPU_Information+0xc>,%a2 _ISR_Disable( level ); 4860e: 2004 movel %d4,%d0 48610: 40c1 movew %sr,%d1 48612: 8081 orl %d1,%d0 48614: 46c0 movew %d0,%sr Thread_Control *heir; ISR_Level level; executing = _Thread_Executing; _ISR_Disable( level ); while ( _Thread_Dispatch_necessary == true ) { 48616: 1039 0005 e63c moveb 5e63c <_Per_CPU_Information+0x18>,%d0 4861c: 6722 beqs 48640 <_Thread_Dispatch+0x144> <== ALWAYS TAKEN heir = _Thread_Heir; _Thread_Dispatch_disable_level = 1; 4861e: 7001 moveq #1,%d0 <== NOT EXECUTED 48620: 23c0 0005 e46c movel %d0,5e46c <_Thread_Dispatch_disable_level><== NOT EXECUTED ISR_Level level; executing = _Thread_Executing; _ISR_Disable( level ); while ( _Thread_Dispatch_necessary == true ) { heir = _Thread_Heir; 48626: 2679 0005 e634 moveal 5e634 <_Per_CPU_Information+0x10>,%a3<== NOT EXECUTED _Thread_Dispatch_disable_level = 1; _Thread_Dispatch_necessary = false; 4862c: 4200 clrb %d0 <== NOT EXECUTED _Thread_Executing = heir; 4862e: 23cb 0005 e630 movel %a3,5e630 <_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; 48634: 13c0 0005 e63c moveb %d0,5e63c <_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 ) 4863a: b5cb cmpal %a3,%a2 <== NOT EXECUTED 4863c: 6600 ff30 bnew 4856e <_Thread_Dispatch+0x72> <== NOT EXECUTED _ISR_Disable( level ); } post_switch: _Thread_Dispatch_disable_level = 0; 48640: 42b9 0005 e46c clrl 5e46c <_Thread_Dispatch_disable_level> _ISR_Enable( level ); 48646: 46c1 movew %d1,%sr _API_extensions_Run_postswitch(); 48648: 4eb9 0004 6d5a jsr 46d5a <_API_extensions_Run_postswitch> } 4864e: 4cee 3cfc ffc8 moveml %fp@(-56),%d2-%d7/%a2-%a5 48654: 4e5e unlk %fp 48656: 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; 48658: 41f9 0005 e424 lea 5e424 <_Thread_Ticks_per_timeslice>,%a0 <== NOT EXECUTED 4865e: 2750 0076 movel %a0@,%a3@(118) <== NOT EXECUTED 48662: 6000 ff14 braw 48578 <_Thread_Dispatch+0x7c> <== NOT EXECUTED =============================================================================== 0004868c <_Thread_Get>: */ Thread_Control *_Thread_Get ( Objects_Id id, Objects_Locations *location ) { 4868c: 4e56 0000 linkw %fp,#0 48690: 202e 0008 movel %fp@(8),%d0 48694: 2f03 movel %d3,%sp@- 48696: 206e 000c moveal %fp@(12),%a0 4869a: 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 ) ) { 4869c: 4a80 tstl %d0 4869e: 6766 beqs 48706 <_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); 486a0: 7418 moveq #24,%d2 486a2: 2200 movel %d0,%d1 486a4: e4a9 lsrl %d2,%d1 486a6: 7607 moveq #7,%d3 */ RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid( uint32_t the_api ) { if ( !the_api || the_api > OBJECTS_APIS_LAST ) 486a8: 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); 486ac: c283 andl %d3,%d1 */ RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid( uint32_t the_api ) { if ( !the_api || the_api > OBJECTS_APIS_LAST ) 486ae: 2241 moveal %d1,%a1 486b0: 5389 subql #1,%a1 486b2: b489 cmpl %a1,%d2 486b4: 653e bcss 486f4 <_Thread_Get+0x68> <== NEVER TAKEN */ RTEMS_INLINE_ROUTINE uint32_t _Objects_Get_class( Objects_Id id ) { return (uint32_t) 486b6: 761b moveq #27,%d3 486b8: 2400 movel %d0,%d2 486ba: e6aa lsrl %d3,%d2 *location = OBJECTS_ERROR; goto done; } the_class = _Objects_Get_class( id ); if ( the_class != 1 ) { /* threads are always first class :) */ 486bc: 163c 0001 moveb #1,%d3 486c0: b682 cmpl %d2,%d3 486c2: 6630 bnes 486f4 <_Thread_Get+0x68> <== NEVER TAKEN *location = OBJECTS_ERROR; goto done; } api_information = _Objects_Information_table[ the_api ]; 486c4: 43f9 0005 e428 lea 5e428 <_Objects_Information_table>,%a1 486ca: 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 ) { 486ce: 4a89 tstl %a1 486d0: 6722 beqs 486f4 <_Thread_Get+0x68> <== NEVER TAKEN *location = OBJECTS_ERROR; goto done; } #endif information = api_information[ the_class ]; 486d2: 2229 0004 movel %a1@(4),%d1 if ( !information ) { 486d6: 671c beqs 486f4 <_Thread_Get+0x68> <== NEVER TAKEN *location = OBJECTS_ERROR; goto done; } tp = (Thread_Control *) _Objects_Get( information, id, location ); 486d8: 2f08 movel %a0,%sp@- 486da: 2f00 movel %d0,%sp@- 486dc: 2f01 movel %d1,%sp@- 486de: 4eb9 0004 7d7c jsr 47d7c <_Objects_Get> done: return tp; } 486e4: 242e fff8 movel %fp@(-8),%d2 if ( !information ) { *location = OBJECTS_ERROR; goto done; } tp = (Thread_Control *) _Objects_Get( information, id, location ); 486e8: 4fef 000c lea %sp@(12),%sp done: return tp; } 486ec: 262e fffc movel %fp@(-4),%d3 486f0: 4e5e unlk %fp 486f2: 4e75 rts } #endif information = api_information[ the_class ]; if ( !information ) { *location = OBJECTS_ERROR; 486f4: 7001 moveq #1,%d0 <== NOT EXECUTED tp = (Thread_Control *) _Objects_Get( information, id, location ); done: return tp; } 486f6: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 486fa: 262e fffc movel %fp@(-4),%d3 <== NOT EXECUTED 486fe: 4e5e unlk %fp <== NOT EXECUTED } #endif information = api_information[ the_class ]; if ( !information ) { *location = OBJECTS_ERROR; 48700: 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; 48702: 4280 clrl %d0 <== NOT EXECUTED tp = (Thread_Control *) _Objects_Get( information, id, location ); done: return tp; } 48704: 4e75 rts <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 48706: 2039 0005 e46c movel 5e46c <_Thread_Dispatch_disable_level>,%d0 4870c: 5280 addql #1,%d0 4870e: 23c0 0005 e46c movel %d0,5e46c <_Thread_Dispatch_disable_level> 48714: 242e fff8 movel %fp@(-8),%d2 48718: 262e fffc movel %fp@(-4),%d3 4871c: 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; 4871e: 2039 0005 e630 movel 5e630 <_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; 48724: 4290 clrl %a0@ <== NOT EXECUTED tp = (Thread_Control *) _Objects_Get( information, id, location ); done: return tp; } =============================================================================== 0004d654 <_Thread_Handler>: * * Output parameters: NONE */ void _Thread_Handler( void ) { 4d654: 4e56 0000 linkw %fp,#0 4d658: 2f0a movel %a2,%sp@- #if defined(EXECUTE_GLOBAL_CONSTRUCTORS) static char doneConstructors; char doneCons; #endif executing = _Thread_Executing; 4d65a: 2479 0005 e630 moveal 5e630 <_Per_CPU_Information+0xc>,%a2 * * Output parameters: NONE */ void _Thread_Handler( void ) { 4d660: 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; 4d662: 222a 00b4 movel %a2@(180),%d1 _ISR_Set_level(level); 4d666: 40c0 movew %sr,%d0 4d668: e189 lsll #8,%d1 4d66a: 0280 0000 f8ff andil #63743,%d0 4d670: 8081 orl %d1,%d0 4d672: 46c0 movew %d0,%sr #if defined(EXECUTE_GLOBAL_CONSTRUCTORS) doneCons = doneConstructors; doneConstructors = 1; 4d674: 7001 moveq #1,%d0 level = executing->Start.isr_level; _ISR_Set_level(level); #if defined(EXECUTE_GLOBAL_CONSTRUCTORS) doneCons = doneConstructors; 4d676: 1439 0005 dc2c moveb 5dc2c ,%d2 doneConstructors = 1; 4d67c: 13c0 0005 dc2c moveb %d0,5dc2c #endif #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) #if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE ) if ( (executing->fp_context != NULL) && 4d682: 4aaa 0100 tstl %a2@(256) 4d686: 6720 beqs 4d6a8 <_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 ); 4d688: 2079 0005 e4ee moveal 5e4ee <_Thread_Allocated_fp>,%a0 4d68e: b1ca cmpal %a2,%a0 4d690: 6716 beqs 4d6a8 <_Thread_Handler+0x54> <== NEVER TAKEN !_Thread_Is_allocated_fp( executing ) ) { if ( _Thread_Allocated_fp != NULL ) 4d692: 4a88 tstl %a0 4d694: 670c beqs 4d6a2 <_Thread_Handler+0x4e> <== ALWAYS TAKEN _Context_Save_fp( &_Thread_Allocated_fp->fp_context ); 4d696: 4868 0100 pea %a0@(256) <== NOT EXECUTED 4d69a: 4eb9 0004 9c0a jsr 49c0a <_CPU_Context_save_fp> <== NOT EXECUTED 4d6a0: 588f addql #4,%sp <== NOT EXECUTED _Thread_Allocated_fp = executing; 4d6a2: 23ca 0005 e4ee movel %a2,5e4ee <_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 ); 4d6a8: 2f0a movel %a2,%sp@- 4d6aa: 4eb9 0004 95bc jsr 495bc <_User_extensions_Thread_begin> /* * At this point, the dispatch disable level BETTER be 1. */ _Thread_Enable_dispatch(); 4d6b0: 4eb9 0004 8666 jsr 48666 <_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) */ { 4d6b6: 588f addql #4,%sp 4d6b8: 4a02 tstb %d2 4d6ba: 6746 beqs 4d702 <_Thread_Handler+0xae> INIT_NAME (); } #endif if ( executing->Start.prototype == THREAD_START_NUMERIC ) { 4d6bc: 4aaa 009e tstl %a2@(158) 4d6c0: 6718 beqs 4d6da <_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 ); 4d6c2: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4d6c4: 4eb9 0004 95fa jsr 495fa <_User_extensions_Thread_exitted> <== NOT EXECUTED _Internal_error_Occurred( 4d6ca: 4878 0005 pea 5 <== NOT EXECUTED 4d6ce: 4878 0001 pea 1 <== NOT EXECUTED 4d6d2: 42a7 clrl %sp@- <== NOT EXECUTED 4d6d4: 4eb9 0004 7800 jsr 47800 <_Internal_error_Occurred> <== NOT EXECUTED } #endif if ( executing->Start.prototype == THREAD_START_NUMERIC ) { executing->Wait.return_argument = (*(Thread_Entry_numeric) executing->Start.entry_point)( 4d6da: 2f2a 00a6 movel %a2@(166),%sp@- 4d6de: 206a 009a moveal %a2@(154),%a0 4d6e2: 4e90 jsr %a0@ INIT_NAME (); } #endif if ( executing->Start.prototype == THREAD_START_NUMERIC ) { executing->Wait.return_argument = 4d6e4: 588f addql #4,%sp 4d6e6: 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 ); 4d6ea: 2f0a movel %a2,%sp@- 4d6ec: 4eb9 0004 95fa jsr 495fa <_User_extensions_Thread_exitted> _Internal_error_Occurred( 4d6f2: 4878 0005 pea 5 4d6f6: 4878 0001 pea 1 4d6fa: 42a7 clrl %sp@- 4d6fc: 4eb9 0004 7800 jsr 47800 <_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 (); 4d702: 4eb9 0005 b2bc jsr 5b2bc <_init> } #endif if ( executing->Start.prototype == THREAD_START_NUMERIC ) { 4d708: 4aaa 009e tstl %a2@(158) 4d70c: 66b4 bnes 4d6c2 <_Thread_Handler+0x6e> <== NEVER TAKEN 4d70e: 60ca bras 4d6da <_Thread_Handler+0x86> =============================================================================== 00048728 <_Thread_Initialize>: Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, Objects_Name name ) { 48728: 4e56 ffec linkw %fp,#-20 4872c: 48d7 0c1c moveml %d2-%d4/%a2-%a3,%sp@ 48730: 266e 0014 moveal %fp@(20),%a3 48734: 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 ); 48738: 2f0b movel %a3,%sp@- Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, Objects_Name name ) { 4873a: 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; 4873e: 42aa 0108 clrl %a2@(264) Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, Objects_Name name ) { 48742: 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; 48746: 42aa 010c clrl %a2@(268) Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, Objects_Name name ) { 4874a: 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; 4874e: 42aa 0104 clrl %a2@(260) /* * 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 ); 48752: 2f0a movel %a2,%sp@- 48754: 4eb9 0004 913c jsr 4913c <_Thread_Stack_Allocate> if ( !actual_stack_size || actual_stack_size < stack_size ) 4875a: 508f addql #8,%sp 4875c: 4a80 tstl %d0 4875e: 6700 010e beqw 4886e <_Thread_Initialize+0x146> 48762: b08b cmpl %a3,%d0 48764: 6500 0108 bcsw 4886e <_Thread_Initialize+0x146> void *starting_address, size_t size ) { the_stack->area = starting_address; the_stack->size = size; 48768: 2540 00bc movel %d0,%a2@(188) Stack_Control *the_stack, void *starting_address, size_t size ) { the_stack->area = starting_address; 4876c: 256a 00c8 00c0 movel %a2@(200),%a2@(192) /* * Allocate the floating point area for this thread */ #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( is_fp ) { 48772: 4a03 tstb %d3 48774: 6600 0110 bnew 48886 <_Thread_Initialize+0x15e> 48778: 4280 clrl %d0 extensions_area = NULL; the_thread->libc_reent = NULL; #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) fp_area = NULL; 4877a: 4283 clrl %d3 #endif /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { 4877c: 2239 0005 e4fe movel 5e4fe <_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; 48782: 2540 0100 movel %d0,%a2@(256) the_thread->Start.fp_context = fp_area; 48786: 2540 00c4 movel %d0,%a2@(196) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 4878a: 42aa 0050 clrl %a2@(80) the_watchdog->routine = routine; 4878e: 42aa 0064 clrl %a2@(100) the_watchdog->id = id; 48792: 42aa 0068 clrl %a2@(104) the_watchdog->user_data = user_data; 48796: 42aa 006c clrl %a2@(108) #endif /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { 4879a: 4a81 tstl %d1 4879c: 6600 0108 bnew 488a6 <_Thread_Initialize+0x17e> (_Thread_Maximum_extensions + 1) * sizeof( void * ) ); if ( !extensions_area ) goto failed; } the_thread->extensions = (void **) extensions_area; 487a0: 42aa 0110 clrl %a2@(272) * Zero out all the allocated memory fields */ for ( i=0 ; i <= THREAD_API_LAST ; i++ ) the_thread->API_Extensions[i] = NULL; extensions_area = NULL; 487a4: 97cb subal %a3,%a3 the_thread->current_state = STATES_DORMANT; the_thread->Wait.queue = NULL; the_thread->resource_count = 0; the_thread->real_priority = priority; the_thread->Start.initial_priority = priority; _Thread_Set_priority( the_thread, priority ); 487a6: 2f02 movel %d2,%sp@- #endif } the_thread->Start.isr_level = isr_level; the_thread->current_state = STATES_DORMANT; 487a8: 7001 moveq #1,%d0 /* * General initialization */ the_thread->Start.is_preemptible = is_preemptible; 487aa: 1544 00aa moveb %d4,%a2@(170) the_thread->current_state = STATES_DORMANT; the_thread->Wait.queue = NULL; the_thread->resource_count = 0; the_thread->real_priority = priority; the_thread->Start.initial_priority = priority; _Thread_Set_priority( the_thread, priority ); 487ae: 2f0a movel %a2,%sp@- /* * General initialization */ the_thread->Start.is_preemptible = is_preemptible; the_thread->Start.budget_algorithm = budget_algorithm; 487b0: 256e 0024 00ac movel %fp@(36),%a2@(172) the_thread->Start.budget_callout = budget_callout; 487b6: 256e 0028 00b0 movel %fp@(40),%a2@(176) case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT: break; #endif } the_thread->Start.isr_level = isr_level; 487bc: 256e 002c 00b4 movel %fp@(44),%a2@(180) the_thread->current_state = STATES_DORMANT; 487c2: 2540 0010 movel %d0,%a2@(16) the_thread->Wait.queue = NULL; 487c6: 42aa 0044 clrl %a2@(68) the_thread->resource_count = 0; 487ca: 42aa 001c clrl %a2@(28) the_thread->real_priority = priority; 487ce: 2542 0018 movel %d2,%a2@(24) the_thread->Start.initial_priority = priority; 487d2: 2542 00b8 movel %d2,%a2@(184) _Thread_Set_priority( the_thread, priority ); 487d6: 4eb9 0004 8f34 jsr 48f34 <_Thread_Set_priority> _Thread_Stack_Free( the_thread ); return false; } 487dc: 206e 0008 moveal %fp@(8),%a0 Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( 487e0: 4280 clrl %d0 487e2: 2068 0018 moveal %a0@(24),%a0 487e6: 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 ); 487ea: 42aa 0082 clrl %a2@(130) 487ee: 42aa 0086 clrl %a2@(134) #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 487f2: 218a 0c00 movel %a2,%a0@(00000000,%d0:l:4) information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 487f6: 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 ); 487fc: 2f0a movel %a2,%sp@- 487fe: 4eb9 0004 968c jsr 4968c <_User_extensions_Thread_create> if ( extension_status ) 48804: 4fef 000c lea %sp@(12),%sp 48808: 4a00 tstb %d0 4880a: 666e bnes 4887a <_Thread_Initialize+0x152> <== ALWAYS TAKEN return true; failed: if ( the_thread->libc_reent ) 4880c: 202a 0104 movel %a2@(260),%d0 <== NOT EXECUTED 48810: 670a beqs 4881c <_Thread_Initialize+0xf4> <== NOT EXECUTED _Workspace_Free( the_thread->libc_reent ); 48812: 2f00 movel %d0,%sp@- <== NOT EXECUTED 48814: 4eb9 0004 9a96 jsr 49a96 <_Workspace_Free> <== NOT EXECUTED 4881a: 588f addql #4,%sp <== NOT EXECUTED for ( i=0 ; i <= THREAD_API_LAST ; i++ ) if ( the_thread->API_Extensions[i] ) 4881c: 202a 0108 movel %a2@(264),%d0 <== NOT EXECUTED 48820: 670a beqs 4882c <_Thread_Initialize+0x104> <== NOT EXECUTED _Workspace_Free( the_thread->API_Extensions[i] ); 48822: 2f00 movel %d0,%sp@- <== NOT EXECUTED 48824: 4eb9 0004 9a96 jsr 49a96 <_Workspace_Free> <== NOT EXECUTED 4882a: 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] ) 4882c: 202a 010c movel %a2@(268),%d0 <== NOT EXECUTED 48830: 670a beqs 4883c <_Thread_Initialize+0x114> <== NOT EXECUTED _Workspace_Free( the_thread->API_Extensions[i] ); 48832: 2f00 movel %d0,%sp@- <== NOT EXECUTED 48834: 4eb9 0004 9a96 jsr 49a96 <_Workspace_Free> <== NOT EXECUTED 4883a: 588f addql #4,%sp <== NOT EXECUTED if ( extensions_area ) 4883c: 4a8b tstl %a3 <== NOT EXECUTED 4883e: 670a beqs 4884a <_Thread_Initialize+0x122> <== NOT EXECUTED (void) _Workspace_Free( extensions_area ); 48840: 2f0b movel %a3,%sp@- <== NOT EXECUTED 48842: 4eb9 0004 9a96 jsr 49a96 <_Workspace_Free> <== NOT EXECUTED 48848: 588f addql #4,%sp <== NOT EXECUTED #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( fp_area ) 4884a: 4a83 tstl %d3 <== NOT EXECUTED 4884c: 670a beqs 48858 <_Thread_Initialize+0x130> <== NOT EXECUTED (void) _Workspace_Free( fp_area ); 4884e: 2f03 movel %d3,%sp@- <== NOT EXECUTED 48850: 4eb9 0004 9a96 jsr 49a96 <_Workspace_Free> <== NOT EXECUTED 48856: 588f addql #4,%sp <== NOT EXECUTED #endif _Thread_Stack_Free( the_thread ); 48858: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4885a: 4eb9 0004 91a0 jsr 491a0 <_Thread_Stack_Free> <== NOT EXECUTED return false; 48860: 588f addql #4,%sp <== NOT EXECUTED } 48862: 4cee 0c1c ffec moveml %fp@(-20),%d2-%d4/%a2-%a3 <== NOT EXECUTED if ( fp_area ) (void) _Workspace_Free( fp_area ); #endif _Thread_Stack_Free( the_thread ); return false; 48868: 4200 clrb %d0 <== NOT EXECUTED } 4886a: 4e5e unlk %fp <== NOT EXECUTED 4886c: 4e75 rts <== NOT EXECUTED 4886e: 4cee 0c1c ffec moveml %fp@(-20),%d2-%d4/%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 */ 48874: 4200 clrb %d0 _Thread_Stack_Free( the_thread ); return false; } 48876: 4e5e unlk %fp 48878: 4e75 rts 4887a: 4cee 0c1c ffec moveml %fp@(-20),%d2-%d4/%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; 48880: 7001 moveq #1,%d0 _Thread_Stack_Free( the_thread ); return false; } 48882: 4e5e unlk %fp 48884: 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 ); 48886: 4878 001c pea 1c 4888a: 4eb9 0004 9a7a jsr 49a7a <_Workspace_Allocate> if ( !fp_area ) 48890: 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 ); 48892: 2600 movel %d0,%d3 if ( !fp_area ) 48894: 6600 fee6 bnew 4877c <_Thread_Initialize+0x54> extension_status = _User_extensions_Thread_create( the_thread ); if ( extension_status ) return true; failed: if ( the_thread->libc_reent ) 48898: 202a 0104 movel %a2@(260),%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; 4889c: 97cb subal %a3,%a3 <== NOT EXECUTED extension_status = _User_extensions_Thread_create( the_thread ); if ( extension_status ) return true; failed: if ( the_thread->libc_reent ) 4889e: 6600 ff72 bnew 48812 <_Thread_Initialize+0xea> <== NOT EXECUTED 488a2: 6000 ff78 braw 4881c <_Thread_Initialize+0xf4> <== NOT EXECUTED /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { extensions_area = _Workspace_Allocate( 488a6: e589 lsll #2,%d1 488a8: 2041 moveal %d1,%a0 488aa: 4868 0004 pea %a0@(4) 488ae: 4eb9 0004 9a7a jsr 49a7a <_Workspace_Allocate> (_Thread_Maximum_extensions + 1) * sizeof( void * ) ); if ( !extensions_area ) 488b4: 588f addql #4,%sp /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { extensions_area = _Workspace_Allocate( 488b6: 2640 moveal %d0,%a3 (_Thread_Maximum_extensions + 1) * sizeof( void * ) ); if ( !extensions_area ) 488b8: 4a80 tstl %d0 488ba: 6700 ff50 beqw 4880c <_Thread_Initialize+0xe4> goto failed; } the_thread->extensions = (void **) extensions_area; 488be: 2079 0005 e4fe moveal 5e4fe <_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++ ) 488c4: 4281 clrl %d1 (_Thread_Maximum_extensions + 1) * sizeof( void * ) ); if ( !extensions_area ) goto failed; } the_thread->extensions = (void **) extensions_area; 488c6: 4280 clrl %d0 488c8: 254b 0110 movel %a3,%a2@(272) * 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; 488cc: 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++ ) 488d0: 5280 addql #1,%d0 488d2: 2200 movel %d0,%d1 488d4: b088 cmpl %a0,%d0 488d6: 6200 fece bhiw 487a6 <_Thread_Initialize+0x7e> the_thread->extensions[i] = NULL; 488da: 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++ ) 488de: 5280 addql #1,%d0 488e0: 2200 movel %d0,%d1 488e2: b088 cmpl %a0,%d0 488e4: 63e6 blss 488cc <_Thread_Initialize+0x1a4> 488e6: 6000 febe braw 487a6 <_Thread_Initialize+0x7e> ... =============================================================================== 0004c130 <_Thread_Ready>: */ void _Thread_Ready( Thread_Control *the_thread ) { 4c130: 4e56 fff0 linkw %fp,#-16 4c134: 206e 0008 moveal %fp@(8),%a0 4c138: 48d7 0c0c moveml %d2-%d3/%a2-%a3,%sp@ ISR_Level level; Thread_Control *heir; _ISR_Disable( level ); 4c13c: 243c 0000 0700 movel #1792,%d2 4c142: 2002 movel %d2,%d0 4c144: 40c1 movew %sr,%d1 4c146: 8081 orl %d1,%d0 4c148: 46c0 movew %d0,%sr RTEMS_INLINE_ROUTINE void _Priority_bit_map_Add ( Priority_bit_map_Information *the_priority_map ) { *the_priority_map->minor |= the_priority_map->ready_minor; 4c14a: 2668 008e moveal %a0@(142),%a3 the_thread->current_state = STATES_READY; _Priority_bit_map_Add( &the_thread->Priority_map ); _Chain_Append_unprotected( the_thread->ready, &the_thread->Object.Node ); 4c14e: 2268 008a moveal %a0@(138),%a1 4c152: 3613 movew %a3@,%d3 4c154: 3028 0094 movew %a0@(148),%d0 ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); old_last_node = the_chain->last; 4c158: 2469 0008 moveal %a1@(8),%a2 4c15c: 8083 orl %d3,%d0 ISR_Level level; Thread_Control *heir; _ISR_Disable( level ); the_thread->current_state = STATES_READY; 4c15e: 42a8 0010 clrl %a0@(16) 4c162: 3680 movew %d0,%a3@ _Priority_Major_bit_map |= the_priority_map->ready_major; 4c164: 3639 0005 e50c movew 5e50c <_Priority_Major_bit_map>,%d3 4c16a: 3028 0092 movew %a0@(146),%d0 4c16e: 8083 orl %d3,%d0 4c170: 33c0 0005 e50c movew %d0,5e50c <_Priority_Major_bit_map> */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 4c176: 2009 movel %a1,%d0 4c178: 5880 addql #4,%d0 4c17a: 2080 movel %d0,%a0@ { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); old_last_node = the_chain->last; the_chain->last = the_node; 4c17c: 2348 0008 movel %a0,%a1@(8) old_last_node->next = the_node; 4c180: 2488 movel %a0,%a2@ the_node->previous = old_last_node; 4c182: 214a 0004 movel %a2,%a0@(4) _Priority_bit_map_Add( &the_thread->Priority_map ); _Chain_Append_unprotected( the_thread->ready, &the_thread->Object.Node ); _ISR_Flash( level ); 4c186: 2002 movel %d2,%d0 4c188: 46c1 movew %d1,%sr 4c18a: 8081 orl %d1,%d0 4c18c: 46c0 movew %d0,%sr 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 ); 4c18e: 3039 0005 e50c movew 5e50c <_Priority_Major_bit_map>,%d0 4c194: 4840 swap %d0 4c196: 04c0 ff1 %d0 _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor ); 4c198: 4282 clrl %d2 4c19a: 41f9 0005 e574 lea 5e574 <_Priority_Bit_map>,%a0 4c1a0: 3400 movew %d0,%d2 4c1a2: 3030 2a00 movew %a0@(00000000,%d2:l:2),%d0 4c1a6: 4840 swap %d0 4c1a8: 04c0 ff1 %d0 return (_Priority_Bits_index( major ) << 4) + 4c1aa: 4283 clrl %d3 4c1ac: e98a lsll #4,%d2 4c1ae: 3600 movew %d0,%d3 */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) _Thread_Ready_chain[ _Priority_bit_map_Get_highest() ].first; 4c1b0: 2279 0005 e420 moveal 5e420 <_Thread_Ready_chain>,%a1 4c1b6: 2002 movel %d2,%d0 4c1b8: d083 addl %d3,%d0 4c1ba: 2400 movel %d0,%d2 4c1bc: e58a lsll #2,%d2 4c1be: e988 lsll #4,%d0 RTEMS_INLINE_ROUTINE bool _Thread_Is_executing ( const Thread_Control *the_thread ) { return ( the_thread == _Thread_Executing ); 4c1c0: 2079 0005 e630 moveal 5e630 <_Per_CPU_Information+0xc>,%a0 */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) _Thread_Ready_chain[ _Priority_bit_map_Get_highest() ].first; 4c1c6: 93c2 subal %d2,%a1 * ready thread. */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) 4c1c8: 2031 0800 movel %a1@(00000000,%d0:l),%d0 4c1cc: 23c0 0005 e634 movel %d0,5e634 <_Per_CPU_Information+0x10> _Thread_Calculate_heir(); heir = _Thread_Heir; if ( !_Thread_Is_executing( heir ) && _Thread_Executing->is_preemptible ) 4c1d2: b1c0 cmpal %d0,%a0 4c1d4: 670e beqs 4c1e4 <_Thread_Ready+0xb4> 4c1d6: 4a28 0074 tstb %a0@(116) 4c1da: 6708 beqs 4c1e4 <_Thread_Ready+0xb4> <== NEVER TAKEN _Thread_Dispatch_necessary = true; 4c1dc: 7001 moveq #1,%d0 4c1de: 13c0 0005 e63c moveb %d0,5e63c <_Per_CPU_Information+0x18> _ISR_Enable( level ); 4c1e4: 46c1 movew %d1,%sr } 4c1e6: 4cd7 0c0c moveml %sp@,%d2-%d3/%a2-%a3 4c1ea: 4e5e unlk %fp ... =============================================================================== 0004ced8 <_Thread_Reset>: void _Thread_Reset( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { 4ced8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4cedc: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4cede: 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; 4cee2: 256a 00ac 007a movel %a2@(172),%a2@(122) <== NOT EXECUTED the_thread->budget_callout = the_thread->Start.budget_callout; 4cee8: 256a 00b0 007e movel %a2@(176),%a2@(126) <== NOT EXECUTED the_thread->Start.pointer_argument = pointer_argument; 4ceee: 256e 000c 00a2 movel %fp@(12),%a2@(162) <== NOT EXECUTED the_thread->Start.numeric_argument = numeric_argument; 4cef4: 256e 0010 00a6 movel %fp@(16),%a2@(166) <== 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; 4cefa: 156a 00aa 0074 moveb %a2@(170),%a2@(116) <== NOT EXECUTED Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { the_thread->resource_count = 0; 4cf00: 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 ) ) { 4cf04: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4cf06: 4eb9 0004 9998 jsr 49998 <_Thread_queue_Extract_with_proxy><== NOT EXECUTED 4cf0c: 588f addql #4,%sp <== NOT EXECUTED 4cf0e: 4a00 tstb %d0 <== NOT EXECUTED 4cf10: 6608 bnes 4cf1a <_Thread_Reset+0x42> <== NOT EXECUTED if ( _Watchdog_Is_active( &the_thread->Timer ) ) 4cf12: 7002 moveq #2,%d0 <== NOT EXECUTED 4cf14: b0aa 0050 cmpl %a2@(80),%d0 <== NOT EXECUTED 4cf18: 672a beqs 4cf44 <_Thread_Reset+0x6c> <== NOT EXECUTED (void) _Watchdog_Remove( &the_thread->Timer ); } if ( the_thread->current_priority != the_thread->Start.initial_priority ) { 4cf1a: 202a 00b8 movel %a2@(184),%d0 <== NOT EXECUTED 4cf1e: b0aa 0014 cmpl %a2@(20),%d0 <== NOT EXECUTED 4cf22: 6718 beqs 4cf3c <_Thread_Reset+0x64> <== NOT EXECUTED the_thread->real_priority = the_thread->Start.initial_priority; 4cf24: 2540 0018 movel %d0,%a2@(24) <== NOT EXECUTED _Thread_Set_priority( the_thread, the_thread->Start.initial_priority ); 4cf28: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED } } 4cf2c: 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 ); 4cf30: 2d40 000c movel %d0,%fp@(12) <== NOT EXECUTED } } 4cf34: 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 ); 4cf36: 4ef9 0004 9bd8 jmp 49bd8 <_Thread_Set_priority> <== NOT EXECUTED } } 4cf3c: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4cf40: 4e5e unlk %fp <== NOT EXECUTED 4cf42: 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 ); 4cf44: 486a 0048 pea %a2@(72) <== NOT EXECUTED 4cf48: 4eb9 0004 a5e0 jsr 4a5e0 <_Watchdog_Remove> <== NOT EXECUTED 4cf4e: 588f addql #4,%sp <== NOT EXECUTED 4cf50: 60c8 bras 4cf1a <_Thread_Reset+0x42> <== NOT EXECUTED ... =============================================================================== 00049b48 <_Thread_Restart>: */ RTEMS_INLINE_ROUTINE bool _States_Is_dormant ( States_Control the_states ) { return (the_states & STATES_DORMANT); 49b48: 7001 moveq #1,%d0 <== NOT EXECUTED bool _Thread_Restart( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { 49b4a: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 49b4e: 2f0a movel %a2,%sp@- <== NOT EXECUTED 49b50: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 49b54: c0aa 0010 andl %a2@(16),%d0 <== NOT EXECUTED if ( !_States_Is_dormant( the_thread->current_state ) ) { 49b58: 670a beqs 49b64 <_Thread_Restart+0x1c> <== NOT EXECUTED return true; } return false; } 49b5a: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 49b5e: 4e5e unlk %fp <== NOT EXECUTED _Thread_Restart_self(); return true; } return false; 49b60: 4200 clrb %d0 <== NOT EXECUTED } 49b62: 4e75 rts <== NOT EXECUTED Thread_Entry_numeric_type numeric_argument ) { if ( !_States_Is_dormant( the_thread->current_state ) ) { _Thread_Set_transient( the_thread ); 49b64: 2f0a movel %a2,%sp@- <== NOT EXECUTED 49b66: 4eb9 0004 9d5c jsr 49d5c <_Thread_Set_transient> <== NOT EXECUTED _Thread_Reset( the_thread, pointer_argument, numeric_argument ); 49b6c: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 49b70: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 49b74: 2f0a movel %a2,%sp@- <== NOT EXECUTED 49b76: 4eb9 0004 ced8 jsr 4ced8 <_Thread_Reset> <== NOT EXECUTED _Thread_Load_environment( the_thread ); 49b7c: 2f0a movel %a2,%sp@- <== NOT EXECUTED 49b7e: 4eb9 0004 cb3c jsr 4cb3c <_Thread_Load_environment> <== NOT EXECUTED _Thread_Ready( the_thread ); 49b84: 2f0a movel %a2,%sp@- <== NOT EXECUTED 49b86: 4eb9 0004 ce18 jsr 4ce18 <_Thread_Ready> <== NOT EXECUTED _User_extensions_Thread_restart( the_thread ); 49b8c: 2f0a movel %a2,%sp@- <== NOT EXECUTED 49b8e: 4eb9 0004 a3d0 jsr 4a3d0 <_User_extensions_Thread_restart> <== NOT EXECUTED if ( _Thread_Is_executing ( the_thread ) ) 49b94: 4fef 001c lea %sp@(28),%sp <== NOT EXECUTED 49b98: b5f9 0005 f5c8 cmpal 5f5c8 <_Per_CPU_Information+0xc>,%a2 <== NOT EXECUTED 49b9e: 670a beqs 49baa <_Thread_Restart+0x62> <== NOT EXECUTED return true; } return false; } 49ba0: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 49ba4: 4e5e unlk %fp <== NOT EXECUTED _User_extensions_Thread_restart( the_thread ); if ( _Thread_Is_executing ( the_thread ) ) _Thread_Restart_self(); return true; 49ba6: 7001 moveq #1,%d0 <== NOT EXECUTED } return false; } 49ba8: 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 ) 49baa: 4aaa 0100 tstl %a2@(256) <== NOT EXECUTED 49bae: 6712 beqs 49bc2 <_Thread_Restart+0x7a> <== NOT EXECUTED _Context_Restore_fp( &_Thread_Executing->fp_context ); 49bb0: 486a 0100 pea %a2@(256) <== NOT EXECUTED 49bb4: 4eb9 0004 a92a jsr 4a92a <_CPU_Context_restore_fp> <== NOT EXECUTED 49bba: 2479 0005 f5c8 moveal 5f5c8 <_Per_CPU_Information+0xc>,%a2 <== NOT EXECUTED 49bc0: 588f addql #4,%sp <== NOT EXECUTED #endif _CPU_Context_Restart_self( &_Thread_Executing->Registers ); 49bc2: 486a 00cc pea %a2@(204) <== NOT EXECUTED 49bc6: 4eb9 0004 a7e2 jsr 4a7e2 <_CPU_Context_Restart_self> <== NOT EXECUTED 49bcc: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 49bd0: 588f addql #4,%sp <== NOT EXECUTED 49bd2: 4e5e unlk %fp <== NOT EXECUTED _User_extensions_Thread_restart( the_thread ); if ( _Thread_Is_executing ( the_thread ) ) _Thread_Restart_self(); return true; 49bd4: 7001 moveq #1,%d0 <== NOT EXECUTED } return false; } =============================================================================== 0004c5ec <_Thread_Resume>: { ISR_Level level; States_Control current_state; _ISR_Disable( level ); 4c5ec: 327c 0700 moveaw #1792,%a1 4c5f0: 2009 movel %a1,%d0 void _Thread_Resume( Thread_Control *the_thread, bool force ) { 4c5f2: 4e56 fff0 linkw %fp,#-16 4c5f6: 206e 0008 moveal %fp@(8),%a0 4c5fa: 48d7 1c04 moveml %d2/%a2-%a4,%sp@ ISR_Level level; States_Control current_state; _ISR_Disable( level ); 4c5fe: 40c1 movew %sr,%d1 4c600: 8081 orl %d1,%d0 4c602: 46c0 movew %d0,%sr current_state = the_thread->current_state; 4c604: 2028 0010 movel %a0@(16),%d0 if ( current_state & STATES_SUSPENDED ) { 4c608: 0800 0001 btst #1,%d0 4c60c: 6774 beqs 4c682 <_Thread_Resume+0x96> <== NEVER TAKEN RTEMS_INLINE_ROUTINE States_Control _States_Clear ( States_Control states_to_clear, States_Control current_state ) { return (current_state & ~states_to_clear); 4c60e: 74fd moveq #-3,%d2 4c610: c082 andl %d2,%d0 current_state = the_thread->current_state = _States_Clear(STATES_SUSPENDED, current_state); 4c612: 2140 0010 movel %d0,%a0@(16) if ( _States_Is_ready( current_state ) ) { 4c616: 666a bnes 4c682 <_Thread_Resume+0x96> <== NEVER TAKEN RTEMS_INLINE_ROUTINE void _Priority_bit_map_Add ( Priority_bit_map_Information *the_priority_map ) { *the_priority_map->minor |= the_priority_map->ready_minor; 4c618: 2868 008e moveal %a0@(142),%a4 _Priority_bit_map_Add( &the_thread->Priority_map ); _Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node); 4c61c: 2468 008a moveal %a0@(138),%a2 4c620: 3414 movew %a4@,%d2 4c622: 3028 0094 movew %a0@(148),%d0 ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); old_last_node = the_chain->last; 4c626: 266a 0008 moveal %a2@(8),%a3 4c62a: 8082 orl %d2,%d0 4c62c: 3880 movew %d0,%a4@ _Priority_Major_bit_map |= the_priority_map->ready_major; 4c62e: 3439 0006 22c4 movew 622c4 <_Priority_Major_bit_map>,%d2 4c634: 3028 0092 movew %a0@(146),%d0 4c638: 8082 orl %d2,%d0 4c63a: 33c0 0006 22c4 movew %d0,622c4 <_Priority_Major_bit_map> */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 4c640: 200a movel %a2,%d0 4c642: 5880 addql #4,%d0 4c644: 2080 movel %d0,%a0@ { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); old_last_node = the_chain->last; the_chain->last = the_node; 4c646: 2548 0008 movel %a0,%a2@(8) old_last_node->next = the_node; 4c64a: 2688 movel %a0,%a3@ the_node->previous = old_last_node; 4c64c: 214b 0004 movel %a3,%a0@(4) _ISR_Flash( level ); 4c650: 2009 movel %a1,%d0 4c652: 46c1 movew %d1,%sr 4c654: 8081 orl %d1,%d0 4c656: 46c0 movew %d0,%sr if ( the_thread->current_priority < _Thread_Heir->current_priority ) { 4c658: 2028 0014 movel %a0@(20),%d0 4c65c: 2279 0006 23ec moveal 623ec <_Per_CPU_Information+0x10>,%a1 4c662: b0a9 0014 cmpl %a1@(20),%d0 4c666: 641a bccs 4c682 <_Thread_Resume+0x96> _Thread_Heir = the_thread; 4c668: 23c8 0006 23ec movel %a0,623ec <_Per_CPU_Information+0x10> if ( _Thread_Executing->is_preemptible || 4c66e: 2079 0006 23e8 moveal 623e8 <_Per_CPU_Information+0xc>,%a0 4c674: 4a28 0074 tstb %a0@(116) 4c678: 6712 beqs 4c68c <_Thread_Resume+0xa0> <== NEVER TAKEN the_thread->current_priority == 0 ) _Thread_Dispatch_necessary = true; 4c67a: 7401 moveq #1,%d2 4c67c: 13c2 0006 23f4 moveb %d2,623f4 <_Per_CPU_Information+0x18> } } } _ISR_Enable( level ); 4c682: 46c1 movew %d1,%sr } 4c684: 4cd7 1c04 moveml %sp@,%d2/%a2-%a4 4c688: 4e5e unlk %fp 4c68a: 4e75 rts _ISR_Flash( level ); if ( the_thread->current_priority < _Thread_Heir->current_priority ) { _Thread_Heir = the_thread; if ( _Thread_Executing->is_preemptible || 4c68c: 4a80 tstl %d0 <== NOT EXECUTED 4c68e: 66f2 bnes 4c682 <_Thread_Resume+0x96> <== NOT EXECUTED the_thread->current_priority == 0 ) _Thread_Dispatch_necessary = true; 4c690: 7401 moveq #1,%d2 <== NOT EXECUTED 4c692: 13c2 0006 23f4 moveb %d2,623f4 <_Per_CPU_Information+0x18> <== NOT EXECUTED 4c698: 60e8 bras 4c682 <_Thread_Resume+0x96> <== NOT EXECUTED ... =============================================================================== 00048fa4 <_Thread_Set_state>: { ISR_Level level; Chain_Control *ready; ready = the_thread->ready; _ISR_Disable( level ); 48fa4: 203c 0000 0700 movel #1792,%d0 void _Thread_Set_state( Thread_Control *the_thread, States_Control state ) { 48faa: 4e56 fff4 linkw %fp,#-12 48fae: 206e 0008 moveal %fp@(8),%a0 48fb2: 48d7 040c moveml %d2-%d3/%a2,%sp@ 48fb6: 242e 000c movel %fp@(12),%d2 ISR_Level level; Chain_Control *ready; ready = the_thread->ready; 48fba: 2268 008a moveal %a0@(138),%a1 _ISR_Disable( level ); 48fbe: 40c1 movew %sr,%d1 48fc0: 8081 orl %d1,%d0 48fc2: 46c0 movew %d0,%sr if ( !_States_Is_ready( the_thread->current_state ) ) { 48fc4: 2028 0010 movel %a0@(16),%d0 48fc8: 6640 bnes 4900a <_Thread_Set_state+0x66> <== NEVER TAKEN return; } the_thread->current_state = state; if ( _Chain_Has_only_one_node( ready ) ) { 48fca: 2029 0008 movel %a1@(8),%d0 _States_Set( state, the_thread->current_state ); _ISR_Enable( level ); return; } the_thread->current_state = state; 48fce: 2142 0010 movel %d2,%a0@(16) if ( _Chain_Has_only_one_node( ready ) ) { 48fd2: b091 cmpl %a1@,%d0 48fd4: 6700 0096 beqw 4906c <_Thread_Set_state+0xc8> ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; 48fd8: 2450 moveal %a0@,%a2 previous = the_node->previous; 48fda: 2268 0004 moveal %a0@(4),%a1 next->previous = previous; 48fde: 2549 0004 movel %a1,%a2@(4) previous->next = next; 48fe2: 228a movel %a2,%a1@ _Priority_bit_map_Remove( &the_thread->Priority_map ); } else _Chain_Extract_unprotected( &the_thread->Object.Node ); _ISR_Flash( level ); 48fe4: 203c 0000 0700 movel #1792,%d0 48fea: 46c1 movew %d1,%sr 48fec: 8081 orl %d1,%d0 48fee: 46c0 movew %d0,%sr if ( _Thread_Is_heir( the_thread ) ) 48ff0: b1f9 0005 e634 cmpal 5e634 <_Per_CPU_Information+0x10>,%a0 48ff6: 672e beqs 49026 <_Thread_Set_state+0x82> _Thread_Calculate_heir(); if ( _Thread_Is_executing( the_thread ) ) 48ff8: b1f9 0005 e630 cmpal 5e630 <_Per_CPU_Information+0xc>,%a0 48ffe: 671a beqs 4901a <_Thread_Set_state+0x76> <== ALWAYS TAKEN _Thread_Dispatch_necessary = true; _ISR_Enable( level ); 49000: 46c1 movew %d1,%sr <== NOT EXECUTED } 49002: 4cd7 040c moveml %sp@,%d2-%d3/%a2 49006: 4e5e unlk %fp 49008: 4e75 rts RTEMS_INLINE_ROUTINE States_Control _States_Set ( States_Control states_to_set, States_Control current_state ) { return (current_state | states_to_set); 4900a: 8480 orl %d0,%d2 <== NOT EXECUTED 4900c: 2142 0010 movel %d2,%a0@(16) <== NOT EXECUTED ready = the_thread->ready; _ISR_Disable( level ); if ( !_States_Is_ready( the_thread->current_state ) ) { the_thread->current_state = _States_Set( state, the_thread->current_state ); _ISR_Enable( level ); 49010: 46c1 movew %d1,%sr <== NOT EXECUTED if ( _Thread_Is_executing( the_thread ) ) _Thread_Dispatch_necessary = true; _ISR_Enable( level ); } 49012: 4cd7 040c moveml %sp@,%d2-%d3/%a2 <== NOT EXECUTED 49016: 4e5e unlk %fp <== NOT EXECUTED 49018: 4e75 rts <== NOT EXECUTED if ( _Thread_Is_heir( the_thread ) ) _Thread_Calculate_heir(); if ( _Thread_Is_executing( the_thread ) ) _Thread_Dispatch_necessary = true; 4901a: 7001 moveq #1,%d0 4901c: 13c0 0005 e63c moveb %d0,5e63c <_Per_CPU_Information+0x18> _ISR_Enable( level ); 49022: 46c1 movew %d1,%sr 49024: 60dc bras 49002 <_Thread_Set_state+0x5e> 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 ); 49026: 3039 0005 e50c movew 5e50c <_Priority_Major_bit_map>,%d0 4902c: 4840 swap %d0 4902e: 04c0 ff1 %d0 _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor ); 49030: 4282 clrl %d2 49032: 43f9 0005 e574 lea 5e574 <_Priority_Bit_map>,%a1 49038: 3400 movew %d0,%d2 4903a: 3031 2a00 movew %a1@(00000000,%d2:l:2),%d0 4903e: 4840 swap %d0 49040: 04c0 ff1 %d0 return (_Priority_Bits_index( major ) << 4) + 49042: 4283 clrl %d3 49044: e98a lsll #4,%d2 49046: 3600 movew %d0,%d3 */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) _Thread_Ready_chain[ _Priority_bit_map_Get_highest() ].first; 49048: 2279 0005 e420 moveal 5e420 <_Thread_Ready_chain>,%a1 4904e: 2002 movel %d2,%d0 49050: d083 addl %d3,%d0 49052: 2400 movel %d0,%d2 49054: e58a lsll #2,%d2 49056: e988 lsll #4,%d0 49058: 93c2 subal %d2,%a1 * ready thread. */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) 4905a: d3c0 addal %d0,%a1 4905c: 23d1 0005 e634 movel %a1@,5e634 <_Per_CPU_Information+0x10> _ISR_Flash( level ); if ( _Thread_Is_heir( the_thread ) ) _Thread_Calculate_heir(); if ( _Thread_Is_executing( the_thread ) ) 49062: b1f9 0005 e630 cmpal 5e630 <_Per_CPU_Information+0xc>,%a0 49068: 6696 bnes 49000 <_Thread_Set_state+0x5c> <== NEVER TAKEN 4906a: 60ae bras 4901a <_Thread_Set_state+0x76> RTEMS_INLINE_ROUTINE void _Priority_bit_map_Remove ( Priority_bit_map_Information *the_priority_map ) { *the_priority_map->minor &= the_priority_map->block_minor; 4906c: 2468 008e moveal %a0@(142),%a2 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 49070: 2009 movel %a1,%d0 49072: 5880 addql #4,%d0 49074: 2280 movel %d0,%a1@ 49076: 3412 movew %a2@,%d2 49078: 3028 0098 movew %a0@(152),%d0 RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 4907c: 42a9 0004 clrl %a1@(4) 49080: c082 andl %d2,%d0 the_chain->last = _Chain_Head(the_chain); 49082: 2349 0008 movel %a1,%a1@(8) 49086: 3480 movew %d0,%a2@ if ( *the_priority_map->minor == 0 ) 49088: 6600 ff5a bnew 48fe4 <_Thread_Set_state+0x40> _Priority_Major_bit_map &= the_priority_map->block_major; 4908c: 3439 0005 e50c movew 5e50c <_Priority_Major_bit_map>,%d2 49092: 3028 0096 movew %a0@(150),%d0 49096: c082 andl %d2,%d0 49098: 33c0 0005 e50c movew %d0,5e50c <_Priority_Major_bit_map> _Priority_bit_map_Remove( &the_thread->Priority_map ); } else _Chain_Extract_unprotected( &the_thread->Object.Node ); _ISR_Flash( level ); 4909e: 203c 0000 0700 movel #1792,%d0 490a4: 46c1 movew %d1,%sr 490a6: 8081 orl %d1,%d0 490a8: 46c0 movew %d0,%sr if ( _Thread_Is_heir( the_thread ) ) 490aa: b1f9 0005 e634 cmpal 5e634 <_Per_CPU_Information+0x10>,%a0 490b0: 6600 ff46 bnew 48ff8 <_Thread_Set_state+0x54> 490b4: 6000 ff70 braw 49026 <_Thread_Set_state+0x82> =============================================================================== 000490b8 <_Thread_Set_transient>: ISR_Level level; uint32_t old_state; Chain_Control *ready; ready = the_thread->ready; _ISR_Disable( level ); 490b8: 203c 0000 0700 movel #1792,%d0 */ void _Thread_Set_transient( Thread_Control *the_thread ) { 490be: 4e56 0000 linkw %fp,#0 490c2: 206e 0008 moveal %fp@(8),%a0 490c6: 2f0a movel %a2,%sp@- ISR_Level level; uint32_t old_state; Chain_Control *ready; ready = the_thread->ready; 490c8: 2268 008a moveal %a0@(138),%a1 */ void _Thread_Set_transient( Thread_Control *the_thread ) { 490cc: 2f02 movel %d2,%sp@- ISR_Level level; uint32_t old_state; Chain_Control *ready; ready = the_thread->ready; _ISR_Disable( level ); 490ce: 40c1 movew %sr,%d1 490d0: 8081 orl %d1,%d0 490d2: 46c0 movew %d0,%sr old_state = the_thread->current_state; 490d4: 2028 0010 movel %a0@(16),%d0 490d8: 7404 moveq #4,%d2 490da: 8480 orl %d0,%d2 490dc: 2142 0010 movel %d2,%a0@(16) the_thread->current_state = _States_Set( STATES_TRANSIENT, old_state ); if ( _States_Is_ready( old_state ) ) { 490e0: 4a80 tstl %d0 490e2: 6614 bnes 490f8 <_Thread_Set_transient+0x40> if ( _Chain_Has_only_one_node( ready ) ) { 490e4: 2029 0008 movel %a1@(8),%d0 490e8: b091 cmpl %a1@,%d0 490ea: 6716 beqs 49102 <_Thread_Set_transient+0x4a> <== ALWAYS TAKEN ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; 490ec: 2250 moveal %a0@,%a1 <== NOT EXECUTED previous = the_node->previous; 490ee: 2068 0004 moveal %a0@(4),%a0 <== NOT EXECUTED next->previous = previous; 490f2: 2348 0004 movel %a0,%a1@(4) <== NOT EXECUTED previous->next = next; 490f6: 2089 movel %a1,%a0@ <== NOT EXECUTED } else _Chain_Extract_unprotected( &the_thread->Object.Node ); } _ISR_Enable( level ); 490f8: 46c1 movew %d1,%sr } 490fa: 241f movel %sp@+,%d2 490fc: 245f moveal %sp@+,%a2 490fe: 4e5e unlk %fp 49100: 4e75 rts RTEMS_INLINE_ROUTINE void _Priority_bit_map_Remove ( Priority_bit_map_Information *the_priority_map ) { *the_priority_map->minor &= the_priority_map->block_minor; 49102: 2468 008e moveal %a0@(142),%a2 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 49106: 2409 movel %a1,%d2 49108: 5882 addql #4,%d2 4910a: 2282 movel %d2,%a1@ 4910c: 3412 movew %a2@,%d2 4910e: 3028 0098 movew %a0@(152),%d0 RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 49112: 42a9 0004 clrl %a1@(4) 49116: c082 andl %d2,%d0 the_chain->last = _Chain_Head(the_chain); 49118: 2349 0008 movel %a1,%a1@(8) 4911c: 3480 movew %d0,%a2@ if ( *the_priority_map->minor == 0 ) 4911e: 66d8 bnes 490f8 <_Thread_Set_transient+0x40> _Priority_Major_bit_map &= the_priority_map->block_major; 49120: 3439 0005 e50c movew 5e50c <_Priority_Major_bit_map>,%d2 49126: 3028 0096 movew %a0@(150),%d0 4912a: c082 andl %d2,%d0 4912c: 33c0 0005 e50c movew %d0,5e50c <_Priority_Major_bit_map> } else _Chain_Extract_unprotected( &the_thread->Object.Node ); } _ISR_Enable( level ); 49132: 46c1 movew %d1,%sr } 49134: 241f movel %sp@+,%d2 49136: 245f moveal %sp@+,%a2 49138: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 000491a0 <_Thread_Stack_Free>: */ void _Thread_Stack_Free( Thread_Control *the_thread ) { 491a0: 4e56 0000 linkw %fp,#0 491a4: 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 ) 491a8: 2279 0005 cc68 moveal 5cc68 ,%a1 491ae: 4a89 tstl %a1 491b0: 670a beqs 491bc <_Thread_Stack_Free+0x1c> <== ALWAYS TAKEN (*Configuration.stack_free_hook)( the_thread->Start.Initial_stack.area ); 491b2: 2d68 00c0 0008 movel %a0@(192),%fp@(8) <== NOT EXECUTED else _Workspace_Free( the_thread->Start.Initial_stack.area ); } 491b8: 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 ); 491ba: 4ed1 jmp %a1@ <== NOT EXECUTED else _Workspace_Free( the_thread->Start.Initial_stack.area ); 491bc: 2d68 00c0 0008 movel %a0@(192),%fp@(8) } 491c2: 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 ); 491c4: 4ef9 0004 9a96 jmp 49a96 <_Workspace_Free> ... =============================================================================== 0004921c <_Thread_Start>: */ RTEMS_INLINE_ROUTINE bool _States_Is_dormant ( States_Control the_states ) { return (the_states & STATES_DORMANT); 4921c: 7001 moveq #1,%d0 Thread_Start_types the_prototype, void *entry_point, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { 4921e: 4e56 0000 linkw %fp,#0 49222: 2f0a movel %a2,%sp@- 49224: 246e 0008 moveal %fp@(8),%a2 49228: c0aa 0010 andl %a2@(16),%d0 if ( _States_Is_dormant( the_thread->current_state ) ) { 4922c: 660a bnes 49238 <_Thread_Start+0x1c> <== ALWAYS TAKEN return true; } return false; } 4922e: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 49232: 4e5e unlk %fp <== NOT EXECUTED _User_extensions_Thread_start( the_thread ); return true; } return false; 49234: 4200 clrb %d0 <== NOT EXECUTED } 49236: 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 ); 49238: 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; 4923a: 256e 0010 009a movel %fp@(16),%a2@(154) the_thread->Start.prototype = the_prototype; 49240: 256e 000c 009e movel %fp@(12),%a2@(158) the_thread->Start.pointer_argument = pointer_argument; 49246: 256e 0014 00a2 movel %fp@(20),%a2@(162) the_thread->Start.numeric_argument = numeric_argument; 4924c: 256e 0018 00a6 movel %fp@(24),%a2@(166) _Thread_Load_environment( the_thread ); 49252: 4eb9 0004 be54 jsr 4be54 <_Thread_Load_environment> _Thread_Ready( the_thread ); 49258: 2f0a movel %a2,%sp@- 4925a: 4eb9 0004 c130 jsr 4c130 <_Thread_Ready> _User_extensions_Thread_start( the_thread ); 49260: 2f0a movel %a2,%sp@- 49262: 4eb9 0004 972c jsr 4972c <_User_extensions_Thread_start> return true; } return false; } 49268: 246e fffc moveal %fp@(-4),%a2 _Thread_Ready( the_thread ); _User_extensions_Thread_start( the_thread ); return true; 4926c: 4fef 000c lea %sp@(12),%sp } return false; } 49270: 4e5e unlk %fp _Thread_Ready( the_thread ); _User_extensions_Thread_start( the_thread ); return true; 49272: 7001 moveq #1,%d0 } return false; } ... =============================================================================== 00049278 <_Thread_Suspend>: { ISR_Level level; Chain_Control *ready; ready = the_thread->ready; _ISR_Disable( level ); 49278: 203c 0000 0700 movel #1792,%d0 */ void _Thread_Suspend( Thread_Control *the_thread ) { 4927e: 4e56 fff4 linkw %fp,#-12 49282: 206e 0008 moveal %fp@(8),%a0 49286: 48d7 040c moveml %d2-%d3/%a2,%sp@ ISR_Level level; Chain_Control *ready; ready = the_thread->ready; 4928a: 2268 008a moveal %a0@(138),%a1 _ISR_Disable( level ); 4928e: 40c1 movew %sr,%d1 49290: 8081 orl %d1,%d0 49292: 46c0 movew %d0,%sr if ( !_States_Is_ready( the_thread->current_state ) ) { 49294: 2028 0010 movel %a0@(16),%d0 49298: 6642 bnes 492dc <_Thread_Suspend+0x64> <== NEVER TAKEN _States_Set( STATES_SUSPENDED, the_thread->current_state ); _ISR_Enable( level ); return; } the_thread->current_state = STATES_SUSPENDED; 4929a: 7002 moveq #2,%d0 if ( _Chain_Has_only_one_node( ready ) ) { 4929c: 2429 0008 movel %a1@(8),%d2 _States_Set( STATES_SUSPENDED, the_thread->current_state ); _ISR_Enable( level ); return; } the_thread->current_state = STATES_SUSPENDED; 492a0: 2140 0010 movel %d0,%a0@(16) if ( _Chain_Has_only_one_node( ready ) ) { 492a4: b491 cmpl %a1@,%d2 492a6: 6700 0098 beqw 49340 <_Thread_Suspend+0xc8> ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; 492aa: 2450 moveal %a0@,%a2 <== NOT EXECUTED previous = the_node->previous; 492ac: 2268 0004 moveal %a0@(4),%a1 <== NOT EXECUTED next->previous = previous; 492b0: 2549 0004 movel %a1,%a2@(4) <== NOT EXECUTED previous->next = next; 492b4: 228a movel %a2,%a1@ <== NOT EXECUTED _Priority_bit_map_Remove( &the_thread->Priority_map ); } else _Chain_Extract_unprotected( &the_thread->Object.Node ); _ISR_Flash( level ); 492b6: 203c 0000 0700 movel #1792,%d0 492bc: 46c1 movew %d1,%sr 492be: 8081 orl %d1,%d0 492c0: 46c0 movew %d0,%sr if ( _Thread_Is_heir( the_thread ) ) 492c2: b1f9 0005 e634 cmpal 5e634 <_Per_CPU_Information+0x10>,%a0 492c8: 6730 beqs 492fa <_Thread_Suspend+0x82> _Thread_Calculate_heir(); if ( _Thread_Is_executing( the_thread ) ) 492ca: b1f9 0005 e630 cmpal 5e630 <_Per_CPU_Information+0xc>,%a0 492d0: 671c beqs 492ee <_Thread_Suspend+0x76> <== NEVER TAKEN _Thread_Dispatch_necessary = true; _ISR_Enable( level ); 492d2: 46c1 movew %d1,%sr } 492d4: 4cd7 040c moveml %sp@,%d2-%d3/%a2 492d8: 4e5e unlk %fp 492da: 4e75 rts RTEMS_INLINE_ROUTINE States_Control _States_Set ( States_Control states_to_set, States_Control current_state ) { return (current_state | states_to_set); 492dc: 7402 moveq #2,%d2 <== NOT EXECUTED 492de: 8480 orl %d0,%d2 <== NOT EXECUTED 492e0: 2142 0010 movel %d2,%a0@(16) <== NOT EXECUTED ready = the_thread->ready; _ISR_Disable( level ); if ( !_States_Is_ready( the_thread->current_state ) ) { the_thread->current_state = _States_Set( STATES_SUSPENDED, the_thread->current_state ); _ISR_Enable( level ); 492e4: 46c1 movew %d1,%sr <== NOT EXECUTED if ( _Thread_Is_executing( the_thread ) ) _Thread_Dispatch_necessary = true; _ISR_Enable( level ); } 492e6: 4cd7 040c moveml %sp@,%d2-%d3/%a2 <== NOT EXECUTED 492ea: 4e5e unlk %fp <== NOT EXECUTED 492ec: 4e75 rts <== NOT EXECUTED if ( _Thread_Is_heir( the_thread ) ) _Thread_Calculate_heir(); if ( _Thread_Is_executing( the_thread ) ) _Thread_Dispatch_necessary = true; 492ee: 7401 moveq #1,%d2 492f0: 13c2 0005 e63c moveb %d2,5e63c <_Per_CPU_Information+0x18> _ISR_Enable( level ); 492f6: 46c1 movew %d1,%sr 492f8: 60da bras 492d4 <_Thread_Suspend+0x5c> 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 ); 492fa: 3039 0005 e50c movew 5e50c <_Priority_Major_bit_map>,%d0 49300: 4840 swap %d0 49302: 04c0 ff1 %d0 _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor ); 49304: 4282 clrl %d2 49306: 43f9 0005 e574 lea 5e574 <_Priority_Bit_map>,%a1 4930c: 3400 movew %d0,%d2 4930e: 3031 2a00 movew %a1@(00000000,%d2:l:2),%d0 49312: 4840 swap %d0 49314: 04c0 ff1 %d0 return (_Priority_Bits_index( major ) << 4) + 49316: 4283 clrl %d3 49318: e98a lsll #4,%d2 4931a: 3600 movew %d0,%d3 _Thread_Ready_chain[ _Priority_bit_map_Get_highest() ].first; 4931c: 2279 0005 e420 moveal 5e420 <_Thread_Ready_chain>,%a1 49322: 2002 movel %d2,%d0 49324: d083 addl %d3,%d0 49326: 2400 movel %d0,%d2 49328: e58a lsll #2,%d2 4932a: e988 lsll #4,%d0 4932c: 93c2 subal %d2,%a1 * ready thread. */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) 4932e: d3c0 addal %d0,%a1 49330: 23d1 0005 e634 movel %a1@,5e634 <_Per_CPU_Information+0x10> _ISR_Flash( level ); if ( _Thread_Is_heir( the_thread ) ) _Thread_Calculate_heir(); if ( _Thread_Is_executing( the_thread ) ) 49336: b1f9 0005 e630 cmpal 5e630 <_Per_CPU_Information+0xc>,%a0 4933c: 6694 bnes 492d2 <_Thread_Suspend+0x5a> <== NEVER TAKEN 4933e: 60ae bras 492ee <_Thread_Suspend+0x76> RTEMS_INLINE_ROUTINE void _Priority_bit_map_Remove ( Priority_bit_map_Information *the_priority_map ) { *the_priority_map->minor &= the_priority_map->block_minor; 49340: 2468 008e moveal %a0@(142),%a2 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 49344: 2009 movel %a1,%d0 49346: 5880 addql #4,%d0 49348: 2280 movel %d0,%a1@ 4934a: 3412 movew %a2@,%d2 4934c: 3028 0098 movew %a0@(152),%d0 RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 49350: 42a9 0004 clrl %a1@(4) 49354: c082 andl %d2,%d0 the_chain->last = _Chain_Head(the_chain); 49356: 2349 0008 movel %a1,%a1@(8) 4935a: 3480 movew %d0,%a2@ if ( *the_priority_map->minor == 0 ) 4935c: 6600 ff58 bnew 492b6 <_Thread_Suspend+0x3e> _Priority_Major_bit_map &= the_priority_map->block_major; 49360: 3439 0005 e50c movew 5e50c <_Priority_Major_bit_map>,%d2 49366: 3028 0096 movew %a0@(150),%d0 4936a: c082 andl %d2,%d0 4936c: 33c0 0005 e50c movew %d0,5e50c <_Priority_Major_bit_map> _Priority_bit_map_Remove( &the_thread->Priority_map ); } else _Chain_Extract_unprotected( &the_thread->Object.Node ); _ISR_Flash( level ); 49372: 203c 0000 0700 movel #1792,%d0 49378: 46c1 movew %d1,%sr 4937a: 8081 orl %d1,%d0 4937c: 46c0 movew %d0,%sr if ( _Thread_Is_heir( the_thread ) ) 4937e: b1f9 0005 e634 cmpal 5e634 <_Per_CPU_Information+0x10>,%a0 49384: 6600 ff44 bnew 492ca <_Thread_Suspend+0x52> 49388: 6000 ff70 braw 492fa <_Thread_Suspend+0x82> =============================================================================== 0004938c <_Thread_Tickle_timeslice>: * * Output parameters: NONE */ void _Thread_Tickle_timeslice( void ) { 4938c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 49390: 2f0a movel %a2,%sp@- <== NOT EXECUTED Thread_Control *executing; executing = _Thread_Executing; 49392: 2479 0005 e630 moveal 5e630 <_Per_CPU_Information+0xc>,%a2 <== NOT EXECUTED /* * If the thread is not preemptible or is not ready, then * just return. */ if ( !executing->is_preemptible ) 49398: 4a2a 0074 tstb %a2@(116) <== NOT EXECUTED 4939c: 670e beqs 493ac <_Thread_Tickle_timeslice+0x20> <== NOT EXECUTED return; if ( !_States_Is_ready( executing->current_state ) ) 4939e: 4aaa 0010 tstl %a2@(16) <== NOT EXECUTED 493a2: 6608 bnes 493ac <_Thread_Tickle_timeslice+0x20> <== NOT EXECUTED /* * The cpu budget algorithm determines what happens next. */ switch ( executing->budget_algorithm ) { 493a4: 7001 moveq #1,%d0 <== NOT EXECUTED 493a6: b0aa 007a cmpl %a2@(122),%d0 <== NOT EXECUTED 493aa: 6708 beqs 493b4 <_Thread_Tickle_timeslice+0x28> <== NOT EXECUTED if ( --executing->cpu_time_budget == 0 ) (*executing->budget_callout)( executing ); break; #endif } } 493ac: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 493b0: 4e5e unlk %fp <== NOT EXECUTED 493b2: 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 ) { 493b4: 202a 0076 movel %a2@(118),%d0 <== NOT EXECUTED 493b8: 5380 subql #1,%d0 <== NOT EXECUTED 493ba: 2540 0076 movel %d0,%a2@(118) <== NOT EXECUTED 493be: 6eec bgts 493ac <_Thread_Tickle_timeslice+0x20> <== NOT EXECUTED * at the priority of the currently executing thread, then the * 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. */ _Thread_Yield_processor(); 493c0: 4eb9 0004 93d8 jsr 493d8 <_Thread_Yield_processor> <== NOT EXECUTED executing->cpu_time_budget = _Thread_Ticks_per_timeslice; 493c6: 41f9 0005 e424 lea 5e424 <_Thread_Ticks_per_timeslice>,%a0 <== NOT EXECUTED 493cc: 2550 0076 movel %a0@,%a2@(118) <== NOT EXECUTED if ( --executing->cpu_time_budget == 0 ) (*executing->budget_callout)( executing ); break; #endif } } 493d0: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 493d4: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 000493d8 <_Thread_Yield_processor>: * ready chain * select heir */ void _Thread_Yield_processor( void ) { 493d8: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED ISR_Level level; Thread_Control *executing; Chain_Control *ready; executing = _Thread_Executing; 493dc: 2079 0005 e630 moveal 5e630 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED * ready chain * select heir */ void _Thread_Yield_processor( void ) { 493e2: 48d7 1c04 moveml %d2/%a2-%a4,%sp@ <== NOT EXECUTED Thread_Control *executing; Chain_Control *ready; executing = _Thread_Executing; ready = executing->ready; _ISR_Disable( level ); 493e6: 243c 0000 0700 movel #1792,%d2 <== NOT EXECUTED 493ec: 2002 movel %d2,%d0 <== NOT EXECUTED ISR_Level level; Thread_Control *executing; Chain_Control *ready; executing = _Thread_Executing; ready = executing->ready; 493ee: 2268 008a moveal %a0@(138),%a1 <== NOT EXECUTED _ISR_Disable( level ); 493f2: 40c1 movew %sr,%d1 <== NOT EXECUTED 493f4: 8081 orl %d1,%d0 <== NOT EXECUTED 493f6: 46c0 movew %d0,%sr <== NOT EXECUTED } else if ( !_Thread_Is_heir( executing ) ) _Thread_Dispatch_necessary = true; _ISR_Enable( level ); } 493f8: 2469 0008 moveal %a1@(8),%a2 <== NOT EXECUTED Chain_Control *ready; executing = _Thread_Executing; ready = executing->ready; _ISR_Disable( level ); if ( !_Chain_Has_only_one_node( ready ) ) { 493fc: b5d1 cmpal %a1@,%a2 <== NOT EXECUTED 493fe: 674c beqs 4944c <_Thread_Yield_processor+0x74> <== NOT EXECUTED ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; 49400: 2650 moveal %a0@,%a3 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 49402: 2009 movel %a1,%d0 <== NOT EXECUTED 49404: 5880 addql #4,%d0 <== NOT EXECUTED { Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; 49406: 2868 0004 moveal %a0@(4),%a4 <== NOT EXECUTED next->previous = previous; previous->next = next; 4940a: 288b movel %a3,%a4@ <== NOT EXECUTED Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; next->previous = previous; 4940c: 274c 0004 movel %a4,%a3@(4) <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 49410: 2080 movel %d0,%a0@ <== NOT EXECUTED { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); old_last_node = the_chain->last; the_chain->last = the_node; 49412: 2348 0008 movel %a0,%a1@(8) <== NOT EXECUTED old_last_node->next = the_node; 49416: 2488 movel %a0,%a2@ <== NOT EXECUTED the_node->previous = old_last_node; 49418: 214a 0004 movel %a2,%a0@(4) <== NOT EXECUTED _Chain_Extract_unprotected( &executing->Object.Node ); _Chain_Append_unprotected( ready, &executing->Object.Node ); _ISR_Flash( level ); 4941c: 46c1 movew %d1,%sr <== NOT EXECUTED 4941e: 8481 orl %d1,%d2 <== NOT EXECUTED 49420: 46c2 movew %d2,%sr <== NOT EXECUTED if ( _Thread_Is_heir( executing ) ) 49422: b1f9 0005 e634 cmpal 5e634 <_Per_CPU_Information+0x10>,%a0 <== NOT EXECUTED 49428: 6712 beqs 4943c <_Thread_Yield_processor+0x64> <== NOT EXECUTED _Thread_Heir = (Thread_Control *) ready->first; _Thread_Dispatch_necessary = true; } else if ( !_Thread_Is_heir( executing ) ) _Thread_Dispatch_necessary = true; 4942a: 7001 moveq #1,%d0 <== NOT EXECUTED 4942c: 13c0 0005 e63c moveb %d0,5e63c <_Per_CPU_Information+0x18> <== NOT EXECUTED _ISR_Enable( level ); 49432: 46c1 movew %d1,%sr <== NOT EXECUTED } 49434: 4cd7 1c04 moveml %sp@,%d2/%a2-%a4 <== NOT EXECUTED 49438: 4e5e unlk %fp <== NOT EXECUTED 4943a: 4e75 rts <== NOT EXECUTED _Chain_Append_unprotected( ready, &executing->Object.Node ); _ISR_Flash( level ); if ( _Thread_Is_heir( executing ) ) _Thread_Heir = (Thread_Control *) ready->first; 4943c: 23d1 0005 e634 movel %a1@,5e634 <_Per_CPU_Information+0x10><== NOT EXECUTED _Thread_Dispatch_necessary = true; } else if ( !_Thread_Is_heir( executing ) ) _Thread_Dispatch_necessary = true; 49442: 7001 moveq #1,%d0 <== NOT EXECUTED 49444: 13c0 0005 e63c moveb %d0,5e63c <_Per_CPU_Information+0x18> <== NOT EXECUTED 4944a: 60e6 bras 49432 <_Thread_Yield_processor+0x5a> <== NOT EXECUTED if ( _Thread_Is_heir( executing ) ) _Thread_Heir = (Thread_Control *) ready->first; _Thread_Dispatch_necessary = true; } else if ( !_Thread_Is_heir( executing ) ) 4944c: b1f9 0005 e634 cmpal 5e634 <_Per_CPU_Information+0x10>,%a0 <== NOT EXECUTED 49452: 67de beqs 49432 <_Thread_Yield_processor+0x5a> <== NOT EXECUTED _Thread_Dispatch_necessary = true; 49454: 7001 moveq #1,%d0 <== NOT EXECUTED 49456: 13c0 0005 e63c moveb %d0,5e63c <_Per_CPU_Information+0x18> <== NOT EXECUTED 4945c: 60d4 bras 49432 <_Thread_Yield_processor+0x5a> <== NOT EXECUTED ... =============================================================================== 000480cc <_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 ) ) { 480cc: 7202 moveq #2,%d1 <== NOT EXECUTED Thread_blocking_operation_States sync_state __attribute__((unused)), #endif Thread_Control *the_thread, ISR_Level level ) { 480ce: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 480d2: 202e 0010 movel %fp@(16),%d0 <== NOT EXECUTED 480d6: 2f0a movel %a2,%sp@- <== NOT EXECUTED 480d8: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED #endif /* * The thread is not waiting on anything after this completes. */ the_thread->Wait.queue = NULL; 480dc: 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 ) ) { 480e0: b2aa 0050 cmpl %a2@(80),%d1 <== NOT EXECUTED 480e4: 671c beqs 48102 <_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 ); 480e6: 46c0 movew %d0,%sr <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 480e8: 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 } 480ec: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 480f0: 203c 1003 fff8 movel #268697592,%d0 <== NOT EXECUTED 480f6: 2d40 000c movel %d0,%fp@(12) <== NOT EXECUTED 480fa: 4e5e unlk %fp <== NOT EXECUTED 480fc: 4ef9 0004 8280 jmp 48280 <_Thread_Clear_state> <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_REMOVE_IT; 48102: 123c 0003 moveb #3,%d1 <== NOT EXECUTED 48106: 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 ); 4810a: 46c0 movew %d0,%sr <== NOT EXECUTED (void) _Watchdog_Remove( &the_thread->Timer ); 4810c: 486a 0048 pea %a2@(72) <== NOT EXECUTED 48110: 4eb9 0004 98f8 jsr 498f8 <_Watchdog_Remove> <== NOT EXECUTED 48116: 588f addql #4,%sp <== NOT EXECUTED 48118: 203c 1003 fff8 movel #268697592,%d0 <== NOT EXECUTED 4811e: 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 } 48122: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 48126: 2d40 000c movel %d0,%fp@(12) <== NOT EXECUTED 4812a: 4e5e unlk %fp <== NOT EXECUTED 4812c: 4ef9 0004 8280 jmp 48280 <_Thread_Clear_state> <== NOT EXECUTED ... =============================================================================== 000489c4 <_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; 489c4: 41f9 0004 bed0 lea 4bed0 <_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 ) 489ca: 7001 moveq #1,%d0 */ Thread_Control *_Thread_queue_Dequeue( Thread_queue_Control *the_thread_queue ) { 489cc: 4e56 fff4 linkw %fp,#-12 489d0: 48d7 040c moveml %d2-%d3/%a2,%sp@ 489d4: 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 ) 489d8: b0aa 0034 cmpl %a2@(52),%d0 489dc: 6722 beqs 48a00 <_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 ); 489de: 2f0a movel %a2,%sp@- 489e0: 4e90 jsr %a0@ _ISR_Disable( level ); 489e2: 223c 0000 0700 movel #1792,%d1 489e8: 40c2 movew %sr,%d2 489ea: 8282 orl %d2,%d1 489ec: 46c1 movew %d1,%sr if ( !the_thread ) { 489ee: 588f addql #4,%sp 489f0: 4a80 tstl %d0 489f2: 6728 beqs 48a1c <_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 ); 489f4: 46c2 movew %d2,%sr return the_thread; } 489f6: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 489fc: 4e5e unlk %fp 489fe: 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 ); 48a00: 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; 48a02: 41f9 0004 8a40 lea 48a40 <_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 ); 48a08: 4e90 jsr %a0@ _ISR_Disable( level ); 48a0a: 223c 0000 0700 movel #1792,%d1 48a10: 40c2 movew %sr,%d2 48a12: 8282 orl %d2,%d1 48a14: 46c1 movew %d1,%sr if ( !the_thread ) { 48a16: 588f addql #4,%sp 48a18: 4a80 tstl %d0 48a1a: 66d8 bnes 489f4 <_Thread_queue_Dequeue+0x30> sync_state = the_thread_queue->sync_state; if ( (sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) || 48a1c: 222a 0030 movel %a2@(48),%d1 48a20: 7601 moveq #1,%d3 48a22: 5381 subql #1,%d1 48a24: b681 cmpl %d1,%d3 48a26: 65cc bcss 489f4 <_Thread_queue_Dequeue+0x30> <== ALWAYS TAKEN (sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) ) { the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SATISFIED; 48a28: 7203 moveq #3,%d1 <== NOT EXECUTED the_thread = _Thread_Executing; 48a2a: 2039 0005 e630 movel 5e630 <_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; 48a30: 2541 0030 movel %d1,%a2@(48) <== NOT EXECUTED the_thread = _Thread_Executing; } } _ISR_Enable( level ); 48a34: 46c2 movew %d2,%sr <== NOT EXECUTED return the_thread; } 48a36: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 48a3c: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 0004bed0 <_Thread_queue_Dequeue_fifo>: ) { ISR_Level level; Thread_Control *the_thread; _ISR_Disable( level ); 4bed0: 203c 0000 0700 movel #1792,%d0 */ Thread_Control *_Thread_queue_Dequeue_fifo( Thread_queue_Control *the_thread_queue ) { 4bed6: 4e56 0000 linkw %fp,#0 4beda: 226e 0008 moveal %fp@(8),%a1 4bede: 2f0b movel %a3,%sp@- 4bee0: 2f0a movel %a2,%sp@- ISR_Level level; Thread_Control *the_thread; _ISR_Disable( level ); 4bee2: 40c1 movew %sr,%d1 4bee4: 8081 orl %d1,%d0 4bee6: 46c0 movew %d0,%sr */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 4bee8: 2049 moveal %a1,%a0 4beea: 2458 moveal %a0@+,%a2 if ( !_Chain_Is_empty( &the_thread_queue->Queues.Fifo ) ) { 4beec: b1ca cmpal %a2,%a0 4beee: 6768 beqs 4bf58 <_Thread_queue_Dequeue_fifo+0x88><== ALWAYS TAKEN { Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; 4bef0: 2052 moveal %a2@,%a0 <== NOT EXECUTED the_thread = (Thread_Control *) 4bef2: 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 ) ) { 4bef4: 7002 moveq #2,%d0 <== NOT EXECUTED the_chain->first = new_first; 4bef6: 2288 movel %a0,%a1@ <== NOT EXECUTED new_first->previous = _Chain_Head(the_chain); 4bef8: 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; 4befc: 42aa 0044 clrl %a2@(68) <== NOT EXECUTED if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { 4bf00: b0aa 0050 cmpl %a2@(80),%d0 <== NOT EXECUTED 4bf04: 6720 beqs 4bf26 <_Thread_queue_Dequeue_fifo+0x56><== NOT EXECUTED _ISR_Enable( level ); 4bf06: 46c1 movew %d1,%sr <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 4bf08: 2f3c 1003 fff8 movel #268697592,%sp@- <== NOT EXECUTED 4bf0e: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4bf10: 4eb9 0004 8280 jsr 48280 <_Thread_Clear_state> <== NOT EXECUTED return the_thread; } _ISR_Enable( level ); return NULL; } 4bf16: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 4bf1a: 200b movel %a3,%d0 <== NOT EXECUTED 4bf1c: 508f addql #8,%sp <== NOT EXECUTED 4bf1e: 266e fffc moveal %fp@(-4),%a3 <== NOT EXECUTED 4bf22: 4e5e unlk %fp <== NOT EXECUTED 4bf24: 4e75 rts <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_REMOVE_IT; 4bf26: 7003 moveq #3,%d0 <== NOT EXECUTED 4bf28: 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 ); 4bf2c: 46c1 movew %d1,%sr <== NOT EXECUTED (void) _Watchdog_Remove( &the_thread->Timer ); 4bf2e: 486a 0048 pea %a2@(72) <== NOT EXECUTED 4bf32: 4eb9 0004 98f8 jsr 498f8 <_Watchdog_Remove> <== NOT EXECUTED 4bf38: 2f3c 1003 fff8 movel #268697592,%sp@- <== NOT EXECUTED 4bf3e: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4bf40: 4eb9 0004 8280 jsr 48280 <_Thread_Clear_state> <== NOT EXECUTED return the_thread; } _ISR_Enable( level ); return NULL; } 4bf46: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 4bf4a: 200b movel %a3,%d0 <== NOT EXECUTED 4bf4c: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4bf50: 266e fffc moveal %fp@(-4),%a3 <== NOT EXECUTED 4bf54: 4e5e unlk %fp <== NOT EXECUTED 4bf56: 4e75 rts <== NOT EXECUTED #endif return the_thread; } _ISR_Enable( level ); 4bf58: 46c1 movew %d1,%sr return NULL; 4bf5a: 97cb subal %a3,%a3 } 4bf5c: 200b movel %a3,%d0 4bf5e: 246e fff8 moveal %fp@(-8),%a2 4bf62: 266e fffc moveal %fp@(-4),%a3 4bf66: 4e5e unlk %fp ... =============================================================================== 00048a40 <_Thread_queue_Dequeue_priority>: Chain_Node *new_second_node; Chain_Node *last_node; Chain_Node *next_node; Chain_Node *previous_node; _ISR_Disable( level ); 48a40: 203c 0000 0700 movel #1792,%d0 */ Thread_Control *_Thread_queue_Dequeue_priority( Thread_queue_Control *the_thread_queue ) { 48a46: 4e56 ffe8 linkw %fp,#-24 48a4a: 48d7 3c0c moveml %d2-%d3/%a2-%a5,%sp@ 48a4e: 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 ); 48a52: 40c3 movew %sr,%d3 48a54: 8083 orl %d3,%d0 48a56: 46c0 movew %d0,%sr for( index=0 ; 48a58: 4280 clrl %d0 Chain_Node *new_second_node; Chain_Node *last_node; Chain_Node *next_node; Chain_Node *previous_node; _ISR_Disable( level ); 48a5a: 204b moveal %a3,%a0 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 48a5c: 2400 movel %d0,%d2 48a5e: 2200 movel %d0,%d1 for( index=0 ; index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ; index++ ) { 48a60: 5280 addql #1,%d0 48a62: e58a lsll #2,%d2 48a64: e989 lsll #4,%d1 */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 48a66: 2450 moveal %a0@,%a2 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 48a68: 9282 subl %d2,%d1 48a6a: 41e8 000c lea %a0@(12),%a0 48a6e: 43f3 1804 lea %a3@(00000004,%d1:l),%a1 if ( !_Chain_Is_empty( &the_thread_queue->Queues.Priority[ index ] ) ) { 48a72: b3ca cmpal %a2,%a1 48a74: 6616 bnes 48a8c <_Thread_queue_Dequeue_priority+0x4c> Chain_Node *last_node; Chain_Node *next_node; Chain_Node *previous_node; _ISR_Disable( level ); for( index=0 ; 48a76: 7204 moveq #4,%d1 48a78: b280 cmpl %d0,%d1 48a7a: 66e0 bnes 48a5c <_Thread_queue_Dequeue_priority+0x1c> } /* * We did not find a thread to unblock. */ _ISR_Enable( level ); 48a7c: 46c3 movew %d3,%sr return NULL; 48a7e: 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 ); } 48a80: 2002 movel %d2,%d0 48a82: 4cee 3c0c ffe8 moveml %fp@(-24),%d2-%d3/%a2-%a5 48a88: 4e5e unlk %fp 48a8a: 4e75 rts 48a8c: 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 *) 48a8e: 240a movel %a2,%d2 48a90: 0680 0000 003c addil #60,%d0 _ISR_Enable( level ); return NULL; dequeue: the_thread->Wait.queue = NULL; new_first_node = the_thread->Wait.Block2n.first; 48a96: 206a 0038 moveal %a2@(56),%a0 new_first_thread = (Thread_Control *) new_first_node; next_node = the_thread->Object.Node.next; 48a9a: 2652 moveal %a2@,%a3 previous_node = the_thread->Object.Node.previous; 48a9c: 286a 0004 moveal %a2@(4),%a4 */ _ISR_Enable( level ); return NULL; dequeue: the_thread->Wait.queue = NULL; 48aa0: 42aa 0044 clrl %a2@(68) new_first_node = the_thread->Wait.Block2n.first; 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 ) ) { 48aa4: b088 cmpl %a0,%d0 48aa6: 6700 0084 beqw 48b2c <_Thread_queue_Dequeue_priority+0xec> last_node = the_thread->Wait.Block2n.last; 48aaa: 226a 0040 moveal %a2@(64),%a1 <== NOT EXECUTED new_second_node = new_first_node->next; 48aae: 2a50 moveal %a0@,%a5 <== NOT EXECUTED previous_node->next = new_first_node; next_node->previous = new_first_node; 48ab0: 2748 0004 movel %a0,%a3@(4) <== NOT EXECUTED if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) { last_node = the_thread->Wait.Block2n.last; new_second_node = new_first_node->next; previous_node->next = new_first_node; 48ab4: 2888 movel %a0,%a4@ <== NOT EXECUTED next_node->previous = new_first_node; new_first_node->next = next_node; new_first_node->previous = previous_node; 48ab6: 214c 0004 movel %a4,%a0@(4) <== NOT EXECUTED last_node = the_thread->Wait.Block2n.last; 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; 48aba: 208b movel %a3,%a0@ <== NOT EXECUTED new_first_node->previous = previous_node; if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) { 48abc: b3c8 cmpal %a0,%a1 <== NOT EXECUTED 48abe: 6716 beqs 48ad6 <_Thread_queue_Dequeue_priority+0x96><== NOT EXECUTED /* > two threads on 2-n */ new_second_node->previous = _Chain_Head( &new_first_thread->Wait.Block2n ); 48ac0: 47e8 0038 lea %a0@(56),%a3 <== NOT EXECUTED 48ac4: 2b4b 0004 movel %a3,%a5@(4) <== NOT EXECUTED new_first_thread->Wait.Block2n.first = new_second_node; 48ac8: 214d 0038 movel %a5,%a0@(56) <== NOT EXECUTED new_first_thread->Wait.Block2n.last = last_node; 48acc: 2149 0040 movel %a1,%a0@(64) <== NOT EXECUTED 48ad0: 41e8 003c lea %a0@(60),%a0 <== NOT EXECUTED 48ad4: 2288 movel %a0,%a1@ <== NOT EXECUTED } else { previous_node->next = next_node; next_node->previous = previous_node; } if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { 48ad6: 7002 moveq #2,%d0 48ad8: b0aa 0050 cmpl %a2@(80),%d0 48adc: 671e beqs 48afc <_Thread_queue_Dequeue_priority+0xbc><== NEVER TAKEN _ISR_Enable( level ); 48ade: 46c3 movew %d3,%sr RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 48ae0: 2f3c 1003 fff8 movel #268697592,%sp@- 48ae6: 2f0a movel %a2,%sp@- 48ae8: 4eb9 0004 8280 jsr 48280 <_Thread_Clear_state> 48aee: 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 ); } 48af0: 2002 movel %d2,%d0 48af2: 4cee 3c0c ffe8 moveml %fp@(-24),%d2-%d3/%a2-%a5 48af8: 4e5e unlk %fp 48afa: 4e75 rts RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_REMOVE_IT; 48afc: 7203 moveq #3,%d1 <== NOT EXECUTED 48afe: 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 ); 48b02: 46c3 movew %d3,%sr <== NOT EXECUTED (void) _Watchdog_Remove( &the_thread->Timer ); 48b04: 486a 0048 pea %a2@(72) <== NOT EXECUTED 48b08: 4eb9 0004 98f8 jsr 498f8 <_Watchdog_Remove> <== NOT EXECUTED 48b0e: 2f3c 1003 fff8 movel #268697592,%sp@- <== NOT EXECUTED 48b14: 2f0a movel %a2,%sp@- <== NOT EXECUTED 48b16: 4eb9 0004 8280 jsr 48280 <_Thread_Clear_state> <== NOT EXECUTED 48b1c: 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 ); } 48b20: 2002 movel %d2,%d0 <== NOT EXECUTED 48b22: 4cee 3c0c ffe8 moveml %fp@(-24),%d2-%d3/%a2-%a5 <== NOT EXECUTED 48b28: 4e5e unlk %fp <== NOT EXECUTED 48b2a: 4e75 rts <== NOT EXECUTED new_first_thread->Wait.Block2n.last = last_node; last_node->next = _Chain_Tail( &new_first_thread->Wait.Block2n ); } } else { previous_node->next = next_node; 48b2c: 288b movel %a3,%a4@ next_node->previous = previous_node; 48b2e: 274c 0004 movel %a4,%a3@(4) 48b32: 60a2 bras 48ad6 <_Thread_queue_Dequeue_priority+0x96> =============================================================================== 0004bf6c <_Thread_queue_Enqueue_fifo>: ) { Thread_blocking_operation_States sync_state; ISR_Level level; _ISR_Disable( level ); 4bf6c: 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 ) { 4bf72: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4bf76: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 4bf7a: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4bf7c: 226e 000c moveal %fp@(12),%a1 <== NOT EXECUTED 4bf80: 2f02 movel %d2,%sp@- <== NOT EXECUTED Thread_blocking_operation_States sync_state; ISR_Level level; _ISR_Disable( level ); 4bf82: 40c1 movew %sr,%d1 <== NOT EXECUTED 4bf84: 8081 orl %d1,%d0 <== NOT EXECUTED 4bf86: 46c0 movew %d0,%sr <== NOT EXECUTED sync_state = the_thread_queue->sync_state; 4bf88: 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) { 4bf8c: 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; 4bf8e: 42a8 0030 clrl %a0@(48) <== NOT EXECUTED if (sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) { 4bf92: b480 cmpl %d0,%d2 <== NOT EXECUTED 4bf94: 670e beqs 4bfa4 <_Thread_queue_Enqueue_fifo+0x38><== NOT EXECUTED * * WARNING! Returning with interrupts disabled! */ *level_p = level; return sync_state; } 4bf96: 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; 4bf98: 206e 0010 moveal %fp@(16),%a0 <== NOT EXECUTED return sync_state; } 4bf9c: 245f moveal %sp@+,%a2 <== NOT EXECUTED 4bf9e: 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; 4bfa0: 2081 movel %d1,%a0@ <== NOT EXECUTED return sync_state; } 4bfa2: 4e75 rts <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 4bfa4: 2408 movel %a0,%d2 <== NOT EXECUTED 4bfa6: 5882 addql #4,%d2 <== NOT EXECUTED ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); old_last_node = the_chain->last; 4bfa8: 2468 0008 moveal %a0@(8),%a2 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 4bfac: 2282 movel %d2,%a1@ <== NOT EXECUTED { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); old_last_node = the_chain->last; the_chain->last = the_node; 4bfae: 2149 0008 movel %a1,%a0@(8) <== NOT EXECUTED old_last_node->next = the_node; 4bfb2: 2489 movel %a1,%a2@ <== NOT EXECUTED the_node->previous = old_last_node; 4bfb4: 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; 4bfb8: 2348 0044 movel %a0,%a1@(68) <== NOT EXECUTED the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; _ISR_Enable( level ); 4bfbc: 46c1 movew %d1,%sr <== NOT EXECUTED * * WARNING! Returning with interrupts disabled! */ *level_p = level; return sync_state; } 4bfbe: 241f movel %sp@+,%d2 <== NOT EXECUTED 4bfc0: 245f moveal %sp@+,%a2 <== NOT EXECUTED 4bfc2: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 00048bdc <_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 ) { 48bdc: 4e56 ffe0 linkw %fp,#-32 48be0: 48d7 1c7c moveml %d2-%d6/%a2-%a4,%sp@ 48be4: 246e 000c moveal %fp@(12),%a2 48be8: 41ea 003c lea %a2@(60),%a0 48bec: 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; 48bf0: 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); 48bf4: 2a01 movel %d1,%d5 48bf6: ec8d lsrl #6,%d5 48bf8: 2548 0038 movel %a0,%a2@(56) header_index = _Thread_queue_Header_number( priority ); header = &the_thread_queue->Queues.Priority[ header_index ]; block_state = the_thread_queue->state; 48bfc: 242b 0038 movel %a3@(56),%d2 Chain_Node *previous_node; Chain_Node *search_node; Priority_Control priority; States_Control block_state; _Chain_Initialize_empty( &the_thread->Wait.Block2n ); 48c00: 41ea 0038 lea %a2@(56),%a0 RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 48c04: 42aa 003c clrl %a2@(60) 48c08: 2548 0040 movel %a0,%a2@(64) priority = the_thread->current_priority; header_index = _Thread_queue_Header_number( priority ); header = &the_thread_queue->Queues.Priority[ header_index ]; block_state = the_thread_queue->state; if ( _Thread_queue_Is_reverse_search( priority ) ) 48c0c: 0801 0005 btst #5,%d1 48c10: 665e bnes 48c70 <_Thread_queue_Enqueue_priority+0x94> 48c12: 700c moveq #12,%d0 48c14: 4c00 5800 mulsl %d0,%d5 goto restart_reverse_search; restart_forward_search: search_priority = PRIORITY_MINIMUM - 1; _ISR_Disable( level ); 48c18: 2c3c 0000 0700 movel #1792,%d6 48c1e: 2006 movel %d6,%d0 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 48c20: 49f3 5804 lea %a3@(00000004,%d5:l),%a4 48c24: 40c3 movew %sr,%d3 48c26: 8083 orl %d3,%d0 48c28: 46c0 movew %d0,%sr 48c2a: 2803 movel %d3,%d4 search_thread = (Thread_Control *) header->first; 48c2c: 2073 5800 moveal %a3@(00000000,%d5:l),%a0 while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) { 48c30: b9c8 cmpal %a0,%a4 48c32: 6700 013c beqw 48d70 <_Thread_queue_Enqueue_priority+0x194> search_priority = search_thread->current_priority; 48c36: 2268 0014 moveal %a0@(20),%a1 if ( priority <= search_priority ) 48c3a: b3c1 cmpal %d1,%a1 48c3c: 6418 bccs 48c56 <_Thread_queue_Enqueue_priority+0x7a> break; search_priority = search_thread->current_priority; if ( priority <= search_priority ) break; #endif _ISR_Flash( level ); 48c3e: 2006 movel %d6,%d0 48c40: 46c3 movew %d3,%sr 48c42: 8083 orl %d3,%d0 48c44: 46c0 movew %d0,%sr RTEMS_INLINE_ROUTINE bool _States_Are_set ( States_Control the_states, States_Control mask ) { return ( (the_states & mask) != STATES_READY); 48c46: 2002 movel %d2,%d0 48c48: c0a8 0010 andl %a0@(16),%d0 if ( !_States_Are_set( search_thread->current_state, block_state) ) { 48c4c: 6700 00c0 beqw 48d0e <_Thread_queue_Enqueue_priority+0x132> _ISR_Enable( level ); goto restart_forward_search; } search_thread = (Thread_Control *)search_thread->Object.Node.next; 48c50: 2050 moveal %a0@,%a0 restart_forward_search: search_priority = PRIORITY_MINIMUM - 1; _ISR_Disable( level ); search_thread = (Thread_Control *) header->first; while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) { 48c52: b9c8 cmpal %a0,%a4 48c54: 66e0 bnes 48c36 <_Thread_queue_Enqueue_priority+0x5a> } search_thread = (Thread_Control *)search_thread->Object.Node.next; } if ( the_thread_queue->sync_state != 48c56: 202b 0030 movel %a3@(48),%d0 48c5a: 7401 moveq #1,%d2 48c5c: b480 cmpl %d0,%d2 48c5e: 6700 00c6 beqw 48d26 <_Thread_queue_Enqueue_priority+0x14a> * 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; 48c62: 206e 0010 moveal %fp@(16),%a0 <== NOT EXECUTED 48c66: 2084 movel %d4,%a0@ <== NOT EXECUTED return the_thread_queue->sync_state; } 48c68: 4cd7 1c7c moveml %sp@,%d2-%d6/%a2-%a4 <== NOT EXECUTED 48c6c: 4e5e unlk %fp <== NOT EXECUTED 48c6e: 4e75 rts <== NOT EXECUTED _Chain_Initialize_empty( &the_thread->Wait.Block2n ); priority = the_thread->current_priority; header_index = _Thread_queue_Header_number( priority ); header = &the_thread_queue->Queues.Priority[ header_index ]; 48c70: 2005 movel %d5,%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; 48c72: 4283 clrl %d3 48c74: 1639 0005 cc42 moveb 5cc42 ,%d3 _ISR_Disable( level ); 48c7a: 2c3c 0000 0700 movel #1792,%d6 the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; 48c80: 2243 moveal %d3,%a1 48c82: 5289 addql #1,%a1 _Chain_Initialize_empty( &the_thread->Wait.Block2n ); priority = the_thread->current_priority; header_index = _Thread_queue_Header_number( priority ); header = &the_thread_queue->Queues.Priority[ header_index ]; 48c84: e588 lsll #2,%d0 48c86: e98d lsll #4,%d5 48c88: 9a80 subl %d0,%d5 48c8a: da8b addl %a3,%d5 restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; _ISR_Disable( level ); search_thread = (Thread_Control *) header->last; 48c8c: 2845 moveal %d5,%a4 48c8e: 508c addql #8,%a4 return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; _ISR_Disable( level ); 48c90: 2006 movel %d6,%d0 48c92: 40c3 movew %sr,%d3 48c94: 8083 orl %d3,%d0 48c96: 46c0 movew %d0,%sr 48c98: 2803 movel %d3,%d4 search_thread = (Thread_Control *) header->last; 48c9a: 2054 moveal %a4@,%a0 while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) { 48c9c: ba88 cmpl %a0,%d5 48c9e: 6720 beqs 48cc0 <_Thread_queue_Enqueue_priority+0xe4> search_priority = search_thread->current_priority; 48ca0: 2268 0014 moveal %a0@(20),%a1 if ( priority >= search_priority ) 48ca4: b3c1 cmpal %d1,%a1 48ca6: 6318 blss 48cc0 <_Thread_queue_Enqueue_priority+0xe4><== ALWAYS TAKEN break; search_priority = search_thread->current_priority; if ( priority >= search_priority ) break; #endif _ISR_Flash( level ); 48ca8: 2006 movel %d6,%d0 <== NOT EXECUTED 48caa: 46c3 movew %d3,%sr <== NOT EXECUTED 48cac: 8083 orl %d3,%d0 <== NOT EXECUTED 48cae: 46c0 movew %d0,%sr <== NOT EXECUTED 48cb0: 2002 movel %d2,%d0 <== NOT EXECUTED 48cb2: c0a8 0010 andl %a0@(16),%d0 <== NOT EXECUTED if ( !_States_Are_set( search_thread->current_state, block_state) ) { 48cb6: 6736 beqs 48cee <_Thread_queue_Enqueue_priority+0x112><== NOT EXECUTED _ISR_Enable( level ); goto restart_reverse_search; } search_thread = (Thread_Control *) search_thread->Object.Node.previous; 48cb8: 2068 0004 moveal %a0@(4),%a0 <== NOT EXECUTED restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; _ISR_Disable( level ); search_thread = (Thread_Control *) header->last; while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) { 48cbc: ba88 cmpl %a0,%d5 <== NOT EXECUTED 48cbe: 66e0 bnes 48ca0 <_Thread_queue_Enqueue_priority+0xc4><== NOT EXECUTED } search_thread = (Thread_Control *) search_thread->Object.Node.previous; } if ( the_thread_queue->sync_state != 48cc0: 202b 0030 movel %a3@(48),%d0 48cc4: 7401 moveq #1,%d2 48cc6: b480 cmpl %d0,%d2 48cc8: 6698 bnes 48c62 <_Thread_queue_Enqueue_priority+0x86><== NEVER TAKEN THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; 48cca: 42ab 0030 clrl %a3@(48) if ( priority == search_priority ) 48cce: b3c1 cmpal %d1,%a1 48cd0: 677a beqs 48d4c <_Thread_queue_Enqueue_priority+0x170><== NEVER TAKEN goto equal_priority; search_node = (Chain_Node *) search_thread; next_node = search_node->next; 48cd2: 2250 moveal %a0@,%a1 the_node = (Chain_Node *) the_thread; the_node->next = next_node; the_node->previous = search_node; 48cd4: 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; 48cd8: 2489 movel %a1,%a2@ the_node->previous = search_node; search_node->next = the_node; next_node->previous = the_node; 48cda: 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; 48cde: 208a movel %a2,%a0@ next_node->previous = the_node; the_thread->Wait.queue = the_thread_queue; 48ce0: 254b 0044 movel %a3,%a2@(68) _ISR_Enable( level ); 48ce4: 46c3 movew %d3,%sr * * WARNING! Returning with interrupts disabled! */ *level_p = level; return the_thread_queue->sync_state; } 48ce6: 4cd7 1c7c moveml %sp@,%d2-%d6/%a2-%a4 48cea: 4e5e unlk %fp 48cec: 4e75 rts if ( priority >= search_priority ) break; #endif _ISR_Flash( level ); if ( !_States_Are_set( search_thread->current_state, block_state) ) { _ISR_Enable( level ); 48cee: 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; 48cf0: 4283 clrl %d3 <== NOT EXECUTED 48cf2: 1639 0005 cc42 moveb 5cc42 ,%d3 <== NOT EXECUTED _ISR_Disable( level ); 48cf8: 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; 48cfa: 2243 moveal %d3,%a1 <== NOT EXECUTED 48cfc: 5289 addql #1,%a1 <== NOT EXECUTED _ISR_Disable( level ); 48cfe: 40c3 movew %sr,%d3 <== NOT EXECUTED 48d00: 8083 orl %d3,%d0 <== NOT EXECUTED 48d02: 46c0 movew %d0,%sr <== NOT EXECUTED 48d04: 2803 movel %d3,%d4 <== NOT EXECUTED search_thread = (Thread_Control *) header->last; 48d06: 2054 moveal %a4@,%a0 <== NOT EXECUTED while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) { 48d08: ba88 cmpl %a0,%d5 <== NOT EXECUTED 48d0a: 6694 bnes 48ca0 <_Thread_queue_Enqueue_priority+0xc4><== NOT EXECUTED 48d0c: 60b2 bras 48cc0 <_Thread_queue_Enqueue_priority+0xe4><== NOT EXECUTED if ( priority <= search_priority ) break; #endif _ISR_Flash( level ); if ( !_States_Are_set( search_thread->current_state, block_state) ) { _ISR_Enable( level ); 48d0e: 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 ); 48d10: 2006 movel %d6,%d0 <== NOT EXECUTED 48d12: 40c3 movew %sr,%d3 <== NOT EXECUTED 48d14: 8083 orl %d3,%d0 <== NOT EXECUTED 48d16: 46c0 movew %d0,%sr <== NOT EXECUTED 48d18: 2803 movel %d3,%d4 <== NOT EXECUTED search_thread = (Thread_Control *) header->first; 48d1a: 2073 5800 moveal %a3@(00000000,%d5:l),%a0 <== NOT EXECUTED while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) { 48d1e: b9c8 cmpal %a0,%a4 <== NOT EXECUTED 48d20: 6600 ff14 bnew 48c36 <_Thread_queue_Enqueue_priority+0x5a><== NOT EXECUTED 48d24: 604a bras 48d70 <_Thread_queue_Enqueue_priority+0x194><== NOT EXECUTED if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; 48d26: 42ab 0030 clrl %a3@(48) if ( priority == search_priority ) 48d2a: b3c1 cmpal %d1,%a1 48d2c: 671e beqs 48d4c <_Thread_queue_Enqueue_priority+0x170><== NEVER TAKEN goto equal_priority; search_node = (Chain_Node *) search_thread; previous_node = search_node->previous; 48d2e: 2268 0004 moveal %a0@(4),%a1 the_node = (Chain_Node *) the_thread; the_node->next = search_node; 48d32: 2488 movel %a0,%a2@ the_node->previous = previous_node; 48d34: 2549 0004 movel %a1,%a2@(4) previous_node->next = the_node; 48d38: 228a movel %a2,%a1@ search_node->previous = the_node; 48d3a: 214a 0004 movel %a2,%a0@(4) the_thread->Wait.queue = the_thread_queue; 48d3e: 254b 0044 movel %a3,%a2@(68) _ISR_Enable( level ); 48d42: 46c3 movew %d3,%sr * * WARNING! Returning with interrupts disabled! */ *level_p = level; return the_thread_queue->sync_state; } 48d44: 4cd7 1c7c moveml %sp@,%d2-%d6/%a2-%a4 48d48: 4e5e unlk %fp 48d4a: 4e75 rts 48d4c: 41e8 003c lea %a0@(60),%a0 <== NOT EXECUTED _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 ); previous_node = search_node->previous; 48d50: 2268 0004 moveal %a0@(4),%a1 <== NOT EXECUTED the_node = (Chain_Node *) the_thread; the_node->next = search_node; 48d54: 2488 movel %a0,%a2@ <== NOT EXECUTED the_node->previous = previous_node; 48d56: 2549 0004 movel %a1,%a2@(4) <== NOT EXECUTED previous_node->next = the_node; 48d5a: 228a movel %a2,%a1@ <== NOT EXECUTED search_node->previous = the_node; 48d5c: 214a 0004 movel %a2,%a0@(4) <== NOT EXECUTED the_thread->Wait.queue = the_thread_queue; 48d60: 254b 0044 movel %a3,%a2@(68) <== NOT EXECUTED _ISR_Enable( level ); 48d64: 46c4 movew %d4,%sr <== NOT EXECUTED return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; 48d66: 7001 moveq #1,%d0 <== NOT EXECUTED * * WARNING! Returning with interrupts disabled! */ *level_p = level; return the_thread_queue->sync_state; } 48d68: 4cd7 1c7c moveml %sp@,%d2-%d6/%a2-%a4 <== NOT EXECUTED 48d6c: 4e5e unlk %fp <== NOT EXECUTED 48d6e: 4e75 rts <== NOT EXECUTED } search_thread = (Thread_Control *)search_thread->Object.Node.next; } if ( the_thread_queue->sync_state != 48d70: 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; 48d74: 327c ffff moveaw #-1,%a1 } search_thread = (Thread_Control *)search_thread->Object.Node.next; } if ( the_thread_queue->sync_state != 48d78: 7401 moveq #1,%d2 48d7a: b480 cmpl %d0,%d2 48d7c: 6600 fee4 bnew 48c62 <_Thread_queue_Enqueue_priority+0x86> 48d80: 60a4 bras 48d26 <_Thread_queue_Enqueue_priority+0x14a> ... =============================================================================== 00048b34 <_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 ) { 48b34: 4e56 fff0 linkw %fp,#-16 48b38: 48d7 0c04 moveml %d2/%a2-%a3,%sp@ 48b3c: 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 ); 48b40: 2f2b 0038 movel %a3@(56),%sp@- Thread_queue_Control *, Thread_Control *, ISR_Level * ); the_thread = _Thread_Executing; 48b44: 2479 0005 e630 moveal 5e630 <_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 ) { 48b4a: 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 ); 48b4e: 2f0a movel %a2,%sp@- 48b50: 4eb9 0004 8fa4 jsr 48fa4 <_Thread_Set_state> /* * If the thread wants to timeout, then schedule its timer. */ if ( timeout ) { 48b56: 508f addql #8,%sp 48b58: 4a82 tstl %d2 48b5a: 663e bnes 48b9a <_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; 48b5c: 41f9 0004 bf6c lea 4bf6c <_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 ) 48b62: 7001 moveq #1,%d0 48b64: b0ab 0034 cmpl %a3@(52),%d0 48b68: 676a beqs 48bd4 <_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 ); 48b6a: 486e fffc pea %fp@(-4) 48b6e: 2f0a movel %a2,%sp@- 48b70: 2f0b movel %a3,%sp@- 48b72: 4e90 jsr %a0@ if ( sync_state != THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) 48b74: 4fef 000c lea %sp@(12),%sp 48b78: 7201 moveq #1,%d1 48b7a: b280 cmpl %d0,%d1 48b7c: 6712 beqs 48b90 <_Thread_queue_Enqueue_with_handler+0x5c><== ALWAYS TAKEN _Thread_blocking_operation_Cancel( sync_state, the_thread, level ); 48b7e: 2f2e fffc movel %fp@(-4),%sp@- <== NOT EXECUTED 48b82: 2f0a movel %a2,%sp@- <== NOT EXECUTED 48b84: 2f00 movel %d0,%sp@- <== NOT EXECUTED 48b86: 4eb9 0004 80cc jsr 480cc <_Thread_blocking_operation_Cancel><== NOT EXECUTED 48b8c: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED } 48b90: 4cee 0c04 fff0 moveml %fp@(-16),%d2/%a2-%a3 48b96: 4e5e unlk %fp 48b98: 4e75 rts /* * If the thread wants to timeout, then schedule its timer. */ if ( timeout ) { _Watchdog_Initialize( 48b9a: 202a 0008 movel %a2@(8),%d0 <== NOT EXECUTED Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 48b9e: 256e 0010 0064 movel %fp@(16),%a2@(100) <== NOT EXECUTED the_watchdog->id = id; 48ba4: 2540 0068 movel %d0,%a2@(104) <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 48ba8: 42aa 0050 clrl %a2@(80) <== NOT EXECUTED the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data; 48bac: 42aa 006c clrl %a2@(108) <== NOT EXECUTED Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 48bb0: 2542 0054 movel %d2,%a2@(84) <== NOT EXECUTED _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 48bb4: 486a 0048 pea %a2@(72) <== NOT EXECUTED 48bb8: 4879 0005 e52e pea 5e52e <_Watchdog_Ticks_chain> <== NOT EXECUTED 48bbe: 4eb9 0004 97b0 jsr 497b0 <_Watchdog_Insert> <== NOT EXECUTED 48bc4: 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; 48bc6: 41f9 0004 bf6c lea 4bf6c <_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 ) 48bcc: 7001 moveq #1,%d0 <== NOT EXECUTED 48bce: b0ab 0034 cmpl %a3@(52),%d0 <== NOT EXECUTED 48bd2: 6696 bnes 48b6a <_Thread_queue_Enqueue_with_handler+0x36><== NOT EXECUTED enqueue_p = _Thread_queue_Enqueue_priority; 48bd4: 41f9 0004 8bdc lea 48bdc <_Thread_queue_Enqueue_priority>,%a0 48bda: 608e bras 48b6a <_Thread_queue_Enqueue_with_handler+0x36> =============================================================================== 0004bfc8 <_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 ) 4bfc8: 7201 moveq #1,%d1 <== NOT EXECUTED void _Thread_queue_Extract( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) { 4bfca: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4bfce: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 4bfd2: 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 ) 4bfd6: b2a8 0034 cmpl %a0@(52),%d1 <== NOT EXECUTED 4bfda: 6710 beqs 4bfec <_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 ); 4bfdc: 2d40 000c movel %d0,%fp@(12) <== NOT EXECUTED 4bfe0: 2d48 0008 movel %a0,%fp@(8) <== NOT EXECUTED } 4bfe4: 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 ); 4bfe6: 4ef9 0004 d710 jmp 4d710 <_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 ); 4bfec: 42a7 clrl %sp@- <== NOT EXECUTED 4bfee: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4bff0: 2f08 movel %a0,%sp@- <== NOT EXECUTED 4bff2: 4eb9 0004 c000 jsr 4c000 <_Thread_queue_Extract_priority_helper><== NOT EXECUTED 4bff8: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */ _Thread_queue_Extract_fifo( the_thread_queue, the_thread ); } 4bffc: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 0004d710 <_Thread_queue_Extract_fifo>: Thread_Control *the_thread ) { ISR_Level level; _ISR_Disable( level ); 4d710: 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 ) { 4d716: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4d71a: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4d71c: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED ISR_Level level; _ISR_Disable( level ); 4d720: 40c1 movew %sr,%d1 <== NOT EXECUTED 4d722: 8081 orl %d1,%d0 <== NOT EXECUTED 4d724: 46c0 movew %d0,%sr <== NOT EXECUTED 4d726: 202a 0010 movel %a2@(16),%d0 <== NOT EXECUTED 4d72a: 0280 0003 bee0 andil #245472,%d0 <== NOT EXECUTED if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { 4d730: 6734 beqs 4d766 <_Thread_queue_Extract_fifo+0x56><== NOT EXECUTED ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; 4d732: 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 ) ) { 4d734: 7002 moveq #2,%d0 <== NOT EXECUTED previous = the_node->previous; 4d736: 206a 0004 moveal %a2@(4),%a0 <== NOT EXECUTED next->previous = previous; 4d73a: 2348 0004 movel %a0,%a1@(4) <== NOT EXECUTED previous->next = next; 4d73e: 2089 movel %a1,%a0@ <== NOT EXECUTED return; } _Chain_Extract_unprotected( &the_thread->Object.Node ); the_thread->Wait.queue = NULL; 4d740: 42aa 0044 clrl %a2@(68) <== NOT EXECUTED if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { 4d744: b0aa 0050 cmpl %a2@(80),%d0 <== NOT EXECUTED 4d748: 6726 beqs 4d770 <_Thread_queue_Extract_fifo+0x60><== NOT EXECUTED _ISR_Enable( level ); 4d74a: 46c1 movew %d1,%sr <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 4d74c: 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 } 4d750: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4d754: 203c 1003 fff8 movel #268697592,%d0 <== NOT EXECUTED 4d75a: 2d40 000c movel %d0,%fp@(12) <== NOT EXECUTED 4d75e: 4e5e unlk %fp <== NOT EXECUTED 4d760: 4ef9 0004 8280 jmp 48280 <_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 ); 4d766: 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 } 4d768: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4d76c: 4e5e unlk %fp <== NOT EXECUTED 4d76e: 4e75 rts <== NOT EXECUTED 4d770: 7003 moveq #3,%d0 <== NOT EXECUTED 4d772: 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 ); 4d776: 46c1 movew %d1,%sr <== NOT EXECUTED (void) _Watchdog_Remove( &the_thread->Timer ); 4d778: 486a 0048 pea %a2@(72) <== NOT EXECUTED 4d77c: 4eb9 0004 98f8 jsr 498f8 <_Watchdog_Remove> <== NOT EXECUTED 4d782: 588f addql #4,%sp <== NOT EXECUTED 4d784: 203c 1003 fff8 movel #268697592,%d0 <== NOT EXECUTED 4d78a: 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 } 4d78e: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4d792: 2d40 000c movel %d0,%fp@(12) <== NOT EXECUTED 4d796: 4e5e unlk %fp <== NOT EXECUTED 4d798: 4ef9 0004 8280 jmp 48280 <_Thread_Clear_state> <== NOT EXECUTED ... =============================================================================== 0004c000 <_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 ); 4c000: 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 ) { 4c006: 4e56 ffec linkw %fp,#-20 4c00a: 48d7 3c04 moveml %d2/%a2-%a5,%sp@ 4c00e: 246e 000c moveal %fp@(12),%a2 4c012: 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 ); 4c016: 40c1 movew %sr,%d1 4c018: 8081 orl %d1,%d0 4c01a: 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); 4c01c: 202a 0010 movel %a2@(16),%d0 4c020: 0280 0003 bee0 andil #245472,%d0 if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { 4c026: 6778 beqs 4c0a0 <_Thread_queue_Extract_priority_helper+0xa0><== NEVER TAKEN */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 4c028: 200a movel %a2,%d0 4c02a: 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; 4c030: 2652 moveal %a2@,%a3 previous_node = the_node->previous; 4c032: 286a 0004 moveal %a2@(4),%a4 */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 4c036: 206a 0038 moveal %a2@(56),%a0 if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) { 4c03a: b088 cmpl %a0,%d0 4c03c: 676e beqs 4c0ac <_Thread_queue_Extract_priority_helper+0xac><== ALWAYS TAKEN new_first_node = the_thread->Wait.Block2n.first; new_first_thread = (Thread_Control *) new_first_node; last_node = the_thread->Wait.Block2n.last; 4c03e: 226a 0040 moveal %a2@(64),%a1 <== NOT EXECUTED new_second_node = new_first_node->next; 4c042: 2a50 moveal %a0@,%a5 <== NOT EXECUTED previous_node->next = new_first_node; next_node->previous = new_first_node; 4c044: 2748 0004 movel %a0,%a3@(4) <== NOT EXECUTED new_first_node = the_thread->Wait.Block2n.first; new_first_thread = (Thread_Control *) new_first_node; last_node = the_thread->Wait.Block2n.last; new_second_node = new_first_node->next; previous_node->next = new_first_node; 4c048: 2888 movel %a0,%a4@ <== NOT EXECUTED next_node->previous = new_first_node; new_first_node->next = next_node; new_first_node->previous = previous_node; 4c04a: 214c 0004 movel %a4,%a0@(4) <== NOT EXECUTED last_node = the_thread->Wait.Block2n.last; 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; 4c04e: 208b movel %a3,%a0@ <== NOT EXECUTED new_first_node->previous = previous_node; if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) { 4c050: b1c9 cmpal %a1,%a0 <== NOT EXECUTED 4c052: 6716 beqs 4c06a <_Thread_queue_Extract_priority_helper+0x6a><== NOT EXECUTED /* > two threads on 2-n */ new_second_node->previous = _Chain_Head( &new_first_thread->Wait.Block2n ); 4c054: 47e8 0038 lea %a0@(56),%a3 <== NOT EXECUTED 4c058: 2b4b 0004 movel %a3,%a5@(4) <== NOT EXECUTED new_first_thread->Wait.Block2n.first = new_second_node; 4c05c: 214d 0038 movel %a5,%a0@(56) <== NOT EXECUTED new_first_thread->Wait.Block2n.last = last_node; 4c060: 2149 0040 movel %a1,%a0@(64) <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 4c064: 41e8 003c lea %a0@(60),%a0 <== NOT EXECUTED 4c068: 2288 movel %a0,%a1@ <== NOT EXECUTED /* * If we are not supposed to touch timers or the thread's state, return. */ if ( requeuing ) { 4c06a: 4a02 tstb %d2 <== NOT EXECUTED 4c06c: 6626 bnes 4c094 <_Thread_queue_Extract_priority_helper+0x94><== NOT EXECUTED _ISR_Enable( level ); return; } if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { 4c06e: 7002 moveq #2,%d0 <== NOT EXECUTED 4c070: b0aa 0050 cmpl %a2@(80),%d0 <== NOT EXECUTED 4c074: 6742 beqs 4c0b8 <_Thread_queue_Extract_priority_helper+0xb8><== NOT EXECUTED _ISR_Enable( level ); 4c076: 46c1 movew %d1,%sr <== NOT EXECUTED 4c078: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED 4c07c: 267c 1003 fff8 moveal #268697592,%a3 <== NOT EXECUTED 4c082: 2d4b 000c movel %a3,%fp@(12) <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } 4c086: 4cee 3c04 ffec moveml %fp@(-20),%d2/%a2-%a5 <== NOT EXECUTED 4c08c: 4e5e unlk %fp <== NOT EXECUTED 4c08e: 4ef9 0004 8280 jmp 48280 <_Thread_Clear_state> <== NOT EXECUTED /* * If we are not supposed to touch timers or the thread's state, return. */ if ( requeuing ) { _ISR_Enable( level ); 4c094: 46c1 movew %d1,%sr #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } 4c096: 4cee 3c04 ffec moveml %fp@(-20),%d2/%a2-%a5 4c09c: 4e5e unlk %fp 4c09e: 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 ); 4c0a0: 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 } 4c0a2: 4cee 3c04 ffec moveml %fp@(-20),%d2/%a2-%a5 <== NOT EXECUTED 4c0a8: 4e5e unlk %fp <== NOT EXECUTED 4c0aa: 4e75 rts <== NOT EXECUTED new_first_thread->Wait.Block2n.last = last_node; last_node->next = _Chain_Tail( &new_first_thread->Wait.Block2n ); } } else { previous_node->next = next_node; 4c0ac: 288b movel %a3,%a4@ next_node->previous = previous_node; 4c0ae: 274c 0004 movel %a4,%a3@(4) /* * If we are not supposed to touch timers or the thread's state, return. */ if ( requeuing ) { 4c0b2: 4a02 tstb %d2 4c0b4: 67b8 beqs 4c06e <_Thread_queue_Extract_priority_helper+0x6e><== NEVER TAKEN 4c0b6: 60dc bras 4c094 <_Thread_queue_Extract_priority_helper+0x94> 4c0b8: 7003 moveq #3,%d0 <== NOT EXECUTED 4c0ba: 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 ); 4c0be: 46c1 movew %d1,%sr <== NOT EXECUTED (void) _Watchdog_Remove( &the_thread->Timer ); 4c0c0: 486a 0048 pea %a2@(72) <== NOT EXECUTED 4c0c4: 267c 1003 fff8 moveal #268697592,%a3 <== NOT EXECUTED 4c0ca: 4eb9 0004 98f8 jsr 498f8 <_Watchdog_Remove> <== NOT EXECUTED 4c0d0: 588f addql #4,%sp <== NOT EXECUTED 4c0d2: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED 4c0d6: 2d4b 000c movel %a3,%fp@(12) <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } 4c0da: 4cee 3c04 ffec moveml %fp@(-20),%d2/%a2-%a5 <== NOT EXECUTED 4c0e0: 4e5e unlk %fp <== NOT EXECUTED 4c0e2: 4ef9 0004 8280 jmp 48280 <_Thread_Clear_state> <== NOT EXECUTED =============================================================================== 00048d84 <_Thread_queue_Extract_with_proxy>: */ bool _Thread_queue_Extract_with_proxy( Thread_Control *the_thread ) { 48d84: 4e56 0000 linkw %fp,#0 48d88: 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); 48d8c: 2028 0010 movel %a0@(16),%d0 48d90: 0280 0003 bee0 andil #245472,%d0 States_Control state; state = the_thread->current_state; if ( _States_Is_waiting_on_thread_queue( state ) ) { 48d96: 6606 bnes 48d9e <_Thread_queue_Extract_with_proxy+0x1a><== NEVER TAKEN _Thread_queue_Extract( the_thread->Wait.queue, the_thread ); return true; } return false; } 48d98: 4e5e unlk %fp #endif _Thread_queue_Extract( the_thread->Wait.queue, the_thread ); return true; } return false; 48d9a: 4200 clrb %d0 } 48d9c: 4e75 rts if ( proxy_extract_callout ) (*proxy_extract_callout)( the_thread ); } #endif _Thread_queue_Extract( the_thread->Wait.queue, the_thread ); 48d9e: 2f08 movel %a0,%sp@- <== NOT EXECUTED 48da0: 2f28 0044 movel %a0@(68),%sp@- <== NOT EXECUTED 48da4: 4eb9 0004 bfc8 jsr 4bfc8 <_Thread_queue_Extract> <== NOT EXECUTED return true; 48daa: 508f addql #8,%sp <== NOT EXECUTED } return false; } 48dac: 4e5e unlk %fp <== NOT EXECUTED (*proxy_extract_callout)( the_thread ); } #endif _Thread_queue_Extract( the_thread->Wait.queue, the_thread ); return true; 48dae: 7001 moveq #1,%d0 <== NOT EXECUTED } return false; } ... =============================================================================== 0005fb2c <_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; 5fb2c: 43f9 0006 0fe0 lea 60fe0 <_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 ) 5fb32: 7001 moveq #1,%d0 <== NOT EXECUTED */ Thread_Control *_Thread_queue_First( Thread_queue_Control *the_thread_queue ) { 5fb34: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 5fb38: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED Thread_Control * (*first_p)(Thread_queue_Control *); if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) 5fb3c: b0a8 0034 cmpl %a0@(52),%d0 <== NOT EXECUTED 5fb40: 6708 beqs 5fb4a <_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 ); 5fb42: 2d48 0008 movel %a0,%fp@(8) <== NOT EXECUTED } 5fb46: 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 ); 5fb48: 4ed1 jmp %a1@ <== NOT EXECUTED 5fb4a: 2d48 0008 movel %a0,%fp@(8) <== NOT EXECUTED } 5fb4e: 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; 5fb50: 43f9 0005 fb58 lea 5fb58 <_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 ); 5fb56: 4ed1 jmp %a1@ <== NOT EXECUTED =============================================================================== 00060fe0 <_Thread_queue_First_fifo>: */ Thread_Control *_Thread_queue_First_fifo( Thread_queue_Control *the_thread_queue ) { 60fe0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 60fe4: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 60fe8: 2018 movel %a0@+,%d0 <== NOT EXECUTED if ( !_Chain_Is_empty( &the_thread_queue->Queues.Fifo ) ) 60fea: b1c0 cmpal %d0,%a0 <== NOT EXECUTED 60fec: 6704 beqs 60ff2 <_Thread_queue_First_fifo+0x12> <== NOT EXECUTED return (Thread_Control *) the_thread_queue->Queues.Fifo.first; return NULL; } 60fee: 4e5e unlk %fp <== NOT EXECUTED 60ff0: 4e75 rts <== NOT EXECUTED ) { if ( !_Chain_Is_empty( &the_thread_queue->Queues.Fifo ) ) return (Thread_Control *) the_thread_queue->Queues.Fifo.first; return NULL; 60ff2: 4280 clrl %d0 <== NOT EXECUTED } 60ff4: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 0005fb58 <_Thread_queue_First_priority>: Thread_queue_Control *the_thread_queue ) { uint32_t index; for( index=0 ; 5fb58: 4281 clrl %d1 <== NOT EXECUTED */ Thread_Control *_Thread_queue_First_priority ( Thread_queue_Control *the_thread_queue ) { 5fb5a: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 5fb5e: 48d7 040c moveml %d2-%d3/%a2,%sp@ <== NOT EXECUTED 5fb62: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED index++ ) { if ( !_Chain_Is_empty( &the_thread_queue->Queues.Priority[ index ] ) ) return (Thread_Control *) the_thread_queue->Queues.Priority[ index ].first; } return NULL; 5fb66: 204a moveal %a2,%a0 <== NOT EXECUTED 5fb68: 2601 movel %d1,%d3 <== NOT EXECUTED 5fb6a: 2401 movel %d1,%d2 <== NOT EXECUTED { uint32_t index; for( index=0 ; index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ; index++ ) { 5fb6c: 5281 addql #1,%d1 <== NOT EXECUTED 5fb6e: e58b lsll #2,%d3 <== NOT EXECUTED 5fb70: e98a lsll #4,%d2 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 5fb72: 2010 movel %a0@,%d0 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 5fb74: 9483 subl %d3,%d2 <== NOT EXECUTED 5fb76: 41e8 000c lea %a0@(12),%a0 <== NOT EXECUTED 5fb7a: 43f2 2804 lea %a2@(00000004,%d2:l),%a1 <== NOT EXECUTED if ( !_Chain_Is_empty( &the_thread_queue->Queues.Priority[ index ] ) ) 5fb7e: b3c0 cmpal %d0,%a1 <== NOT EXECUTED 5fb80: 6608 bnes 5fb8a <_Thread_queue_First_priority+0x32><== NOT EXECUTED Thread_queue_Control *the_thread_queue ) { uint32_t index; for( index=0 ; 5fb82: 7004 moveq #4,%d0 <== NOT EXECUTED 5fb84: b081 cmpl %d1,%d0 <== NOT EXECUTED 5fb86: 66e0 bnes 5fb68 <_Thread_queue_First_priority+0x10><== NOT EXECUTED index++ ) { if ( !_Chain_Is_empty( &the_thread_queue->Queues.Priority[ index ] ) ) return (Thread_Control *) the_thread_queue->Queues.Priority[ index ].first; } return NULL; 5fb88: 4200 clrb %d0 <== NOT EXECUTED } 5fb8a: 4cd7 040c moveml %sp@,%d2-%d3/%a2 <== NOT EXECUTED 5fb8e: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 00048df0 <_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 ) { 48df0: 7201 moveq #1,%d1 Thread_queue_Control *the_thread_queue, Thread_queue_Disciplines the_discipline, States_Control state, uint32_t timeout_status ) { 48df2: 4e56 0000 linkw %fp,#0 48df6: 206e 0008 moveal %fp@(8),%a0 48dfa: 2f0a movel %a2,%sp@- 48dfc: 202e 000c movel %fp@(12),%d0 48e00: 2f02 movel %d2,%sp@- the_thread_queue->state = state; 48e02: 216e 0010 0038 movel %fp@(16),%a0@(56) the_thread_queue->discipline = the_discipline; the_thread_queue->timeout_status = timeout_status; 48e08: 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; 48e0e: 2140 0034 movel %d0,%a0@(52) the_thread_queue->timeout_status = timeout_status; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; 48e12: 42a8 0030 clrl %a0@(48) if ( the_discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) { 48e16: b280 cmpl %d0,%d1 48e18: 6716 beqs 48e30 <_Thread_queue_Initialize+0x40> 48e1a: 2448 moveal %a0,%a2 48e1c: 588a addql #4,%a2 RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 48e1e: 42a8 0004 clrl %a0@(4) */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 48e22: 208a movel %a2,%a0@ Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 48e24: 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 ); } } 48e28: 241f movel %sp@+,%d2 48e2a: 245f moveal %sp@+,%a2 48e2c: 4e5e unlk %fp 48e2e: 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 ) { 48e30: 2248 moveal %a0,%a1 48e32: 4280 clrl %d0 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 48e34: 2400 movel %d0,%d2 48e36: 2200 movel %d0,%d1 uint32_t index; for( index=0 ; index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ; index++) 48e38: 5280 addql #1,%d0 48e3a: e58a lsll #2,%d2 48e3c: e989 lsll #4,%d1 RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 48e3e: 42a9 0004 clrl %a1@(4) */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 48e42: 9282 subl %d2,%d1 _Chain_Initialize_empty( &the_thread_queue->Queues.Priority[index] ); 48e44: 45f0 1800 lea %a0@(00000000,%d1:l),%a2 48e48: 234a 0008 movel %a2,%a1@(8) 48e4c: 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 ; 48e50: 7204 moveq #4,%d1 48e52: 228a movel %a2,%a1@ index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ; index++) 48e54: 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 ; 48e58: b280 cmpl %d0,%d1 48e5a: 67cc beqs 48e28 <_Thread_queue_Initialize+0x38> <== NEVER TAKEN 48e5c: 2400 movel %d0,%d2 48e5e: 2200 movel %d0,%d1 index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ; index++) 48e60: 5280 addql #1,%d0 48e62: e58a lsll #2,%d2 48e64: e989 lsll #4,%d1 RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 48e66: 42a9 0004 clrl %a1@(4) */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 48e6a: 9282 subl %d2,%d1 _Chain_Initialize_empty( &the_thread_queue->Queues.Priority[index] ); 48e6c: 45f0 1800 lea %a0@(00000000,%d1:l),%a2 48e70: 234a 0008 movel %a2,%a1@(8) 48e74: 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 ; 48e78: 7204 moveq #4,%d1 48e7a: 228a movel %a2,%a1@ index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ; index++) 48e7c: 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 ; 48e80: b280 cmpl %d0,%d1 48e82: 66b0 bnes 48e34 <_Thread_queue_Initialize+0x44> 48e84: 60a2 bras 48e28 <_Thread_queue_Initialize+0x38> ... =============================================================================== 0004c0e8 <_Thread_queue_Process_timeout>: #include void _Thread_queue_Process_timeout( Thread_Control *the_thread ) { 4c0e8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4c0ec: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED Thread_queue_Control *the_thread_queue = the_thread->Wait.queue; 4c0f0: 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 && 4c0f4: 2029 0030 movel %a1@(48),%d0 <== NOT EXECUTED 4c0f8: 6708 beqs 4c102 <_Thread_queue_Process_timeout+0x1a><== NOT EXECUTED 4c0fa: b1f9 0005 e630 cmpal 5e630 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED 4c100: 6716 beqs 4c118 <_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; 4c102: 2169 003c 0034 movel %a1@(60),%a0@(52) <== NOT EXECUTED _Thread_queue_Extract( the_thread->Wait.queue, the_thread ); 4c108: 2f08 movel %a0,%sp@- <== NOT EXECUTED 4c10a: 2f09 movel %a1,%sp@- <== NOT EXECUTED 4c10c: 4eb9 0004 bfc8 jsr 4bfc8 <_Thread_queue_Extract> <== NOT EXECUTED 4c112: 508f addql #8,%sp <== NOT EXECUTED } } 4c114: 4e5e unlk %fp <== NOT EXECUTED 4c116: 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 ) { 4c118: 7203 moveq #3,%d1 <== NOT EXECUTED 4c11a: b280 cmpl %d0,%d1 <== NOT EXECUTED 4c11c: 67f6 beqs 4c114 <_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; 4c11e: 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 ); } } 4c120: 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; 4c122: 2169 003c 0034 movel %a1@(60),%a0@(52) <== NOT EXECUTED the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT; 4c128: 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 ); } } ... =============================================================================== 00048e88 <_Thread_queue_Requeue>: void _Thread_queue_Requeue( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) { 48e88: 4e56 fff0 linkw %fp,#-16 48e8c: 48d7 0c04 moveml %d2/%a2-%a3,%sp@ 48e90: 246e 0008 moveal %fp@(8),%a2 48e94: 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 ) 48e98: 4a8a tstl %a2 48e9a: 6708 beqs 48ea4 <_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 ) { 48e9c: 7001 moveq #1,%d0 48e9e: b0aa 0034 cmpl %a2@(52),%d0 48ea2: 670a beqs 48eae <_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 ); } } 48ea4: 4cee 0c04 fff0 moveml %fp@(-16),%d2/%a2-%a3 <== NOT EXECUTED 48eaa: 4e5e unlk %fp <== NOT EXECUTED 48eac: 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 ); 48eae: 303c 0700 movew #1792,%d0 48eb2: 40c2 movew %sr,%d2 48eb4: 8082 orl %d2,%d0 48eb6: 46c0 movew %d0,%sr 48eb8: 202b 0010 movel %a3@(16),%d0 48ebc: 0280 0003 bee0 andil #245472,%d0 if ( _States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { 48ec2: 660c bnes 48ed0 <_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 ); 48ec4: 46c2 movew %d2,%sr <== NOT EXECUTED } } 48ec6: 4cee 0c04 fff0 moveml %fp@(-16),%d2/%a2-%a3 48ecc: 4e5e unlk %fp 48ece: 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 ); 48ed0: 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; 48ed4: 7001 moveq #1,%d0 48ed6: 2f0b movel %a3,%sp@- 48ed8: 2540 0030 movel %d0,%a2@(48) 48edc: 2f0a movel %a2,%sp@- 48ede: 4eb9 0004 c000 jsr 4c000 <_Thread_queue_Extract_priority_helper> (void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored ); 48ee4: 486e fffc pea %fp@(-4) 48ee8: 2f0b movel %a3,%sp@- 48eea: 2f0a movel %a2,%sp@- 48eec: 4eb9 0004 8bdc jsr 48bdc <_Thread_queue_Enqueue_priority> 48ef2: 4fef 0018 lea %sp@(24),%sp } _ISR_Enable( level ); 48ef6: 46c2 movew %d2,%sr 48ef8: 60cc bras 48ec6 <_Thread_queue_Requeue+0x3e> ... =============================================================================== 00048efc <_Thread_queue_Timeout>: void _Thread_queue_Timeout( Objects_Id id, void *ignored __attribute__((unused)) ) { 48efc: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); 48f00: 486e fffc pea %fp@(-4) <== NOT EXECUTED 48f04: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 48f08: 4eb9 0004 868c jsr 4868c <_Thread_Get> <== NOT EXECUTED switch ( location ) { 48f0e: 508f addql #8,%sp <== NOT EXECUTED 48f10: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 48f14: 6618 bnes 48f2e <_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 ); 48f16: 2f00 movel %d0,%sp@- <== NOT EXECUTED 48f18: 4eb9 0004 c0e8 jsr 4c0e8 <_Thread_queue_Process_timeout> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; 48f1e: 588f addql #4,%sp <== NOT EXECUTED 48f20: 2039 0005 e46c movel 5e46c <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED 48f26: 5380 subql #1,%d0 <== NOT EXECUTED 48f28: 23c0 0005 e46c movel %d0,5e46c <_Thread_Dispatch_disable_level><== NOT EXECUTED _Thread_Unnest_dispatch(); break; } } 48f2e: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 00059088 <_Timer_server_Body>: * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) { 59088: 4e56 ffb0 linkw %fp,#-80 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 5908c: 41ee ffec lea %fp@(-20),%a0 <== NOT EXECUTED 59090: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ <== NOT EXECUTED 59094: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 59098: 2c0e movel %fp,%d6 <== NOT EXECUTED 5909a: 260e movel %fp,%d3 <== NOT EXECUTED 5909c: 5186 subql #8,%d6 <== NOT EXECUTED 5909e: 0683 ffff ffe8 addil #-24,%d3 <== NOT EXECUTED 590a4: 240a movel %a2,%d2 <== NOT EXECUTED 590a6: 2a0a movel %a2,%d5 <== NOT EXECUTED 590a8: 4bf9 0005 d4f4 lea 5d4f4 <_Watchdog_Adjust_to_chain>,%a5 <== NOT EXECUTED 590ae: 0682 0000 0030 addil #48,%d2 <== NOT EXECUTED 590b4: 0685 0000 0068 addil #104,%d5 <== NOT EXECUTED 590ba: 47f9 0005 9c58 lea 59c58 <_Chain_Get>,%a3 <== NOT EXECUTED 590c0: 49f9 0005 d57c lea 5d57c <_Watchdog_Insert>,%a4 <== 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 ); 590c6: 283c 0000 0700 movel #1792,%d4 <== NOT EXECUTED 590cc: 2d48 ffd8 movel %a0,%fp@(-40) <== NOT EXECUTED 590d0: 41ea 0008 lea %a2@(8),%a0 <== NOT EXECUTED 590d4: 2d48 ffe4 movel %a0,%fp@(-28) <== NOT EXECUTED 590d8: 41ea 0040 lea %a2@(64),%a0 <== NOT EXECUTED 590dc: 2d48 ffe0 movel %a0,%fp@(-32) <== NOT EXECUTED { Timer_server_Control *ts = (Timer_server_Control *) arg; Chain_Control insert_chain; Chain_Control fire_chain; _Chain_Initialize_empty( &insert_chain ); 590e0: 41ee fff4 lea %fp@(-12),%a0 <== NOT EXECUTED 590e4: 2d48 fffc movel %a0,%fp@(-4) <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 590e8: 41ee ffec lea %fp@(-20),%a0 <== NOT EXECUTED 590ec: 2d46 fff4 movel %d6,%fp@(-12) <== NOT EXECUTED the_chain->permanent_null = NULL; 590f0: 42ae fff8 clrl %fp@(-8) <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 590f4: 2d48 ffe8 movel %a0,%fp@(-24) <== NOT EXECUTED the_chain->permanent_null = NULL; 590f8: 42ae ffec clrl %fp@(-20) <== NOT EXECUTED the_chain->last = _Chain_Head(the_chain); 590fc: 2d43 fff0 movel %d3,%fp@(-16) <== 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; 59100: 41ee fff4 lea %fp@(-12),%a0 <== NOT EXECUTED 59104: 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; 59108: 2039 0007 d304 movel 7d304 <_Watchdog_Ticks_since_boot>,%d0<== NOT EXECUTED /* * We assume adequate unsigned arithmetic here. */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; 5910e: 222a 003c movel %a2@(60),%d1 <== NOT EXECUTED watchdogs->last_snapshot = snapshot; 59112: 2540 003c movel %d0,%a2@(60) <== NOT EXECUTED _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); 59116: 9081 subl %d1,%d0 <== NOT EXECUTED 59118: 2f03 movel %d3,%sp@- <== NOT EXECUTED 5911a: 2f00 movel %d0,%sp@- <== NOT EXECUTED 5911c: 2f02 movel %d2,%sp@- <== NOT EXECUTED 5911e: 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(); 59120: 2039 0007 d262 movel 7d262 <_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 ) { 59126: 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; 5912a: 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 ) { 5912e: b280 cmpl %d0,%d1 <== NOT EXECUTED 59130: 6500 0086 bcsw 591b8 <_Timer_server_Body+0x130> <== 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 ) { 59134: b280 cmpl %d0,%d1 <== NOT EXECUTED 59136: 6200 00a4 bhiw 591dc <_Timer_server_Body+0x154> <== NOT EXECUTED */ delta = last_snapshot - snapshot; _Watchdog_Adjust( &watchdogs->Chain, WATCHDOG_BACKWARD, delta ); } watchdogs->last_snapshot = snapshot; 5913a: 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 ); 5913e: 202a 0078 movel %a2@(120),%d0 <== NOT EXECUTED 59142: 2f00 movel %d0,%sp@- <== NOT EXECUTED 59144: 4e93 jsr %a3@ <== NOT EXECUTED if ( timer == NULL ) { 59146: 588f addql #4,%sp <== NOT EXECUTED 59148: 4a80 tstl %d0 <== NOT EXECUTED 5914a: 672e beqs 5917a <_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 ) { 5914c: 2040 moveal %d0,%a0 <== NOT EXECUTED 5914e: 7e01 moveq #1,%d7 <== NOT EXECUTED 59150: 2228 0038 movel %a0@(56),%d1 <== NOT EXECUTED 59154: be81 cmpl %d1,%d7 <== NOT EXECUTED 59156: 6700 00a8 beqw 59200 <_Timer_server_Body+0x178> <== NOT EXECUTED _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker ); } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) { 5915a: 7e03 moveq #3,%d7 <== NOT EXECUTED 5915c: be81 cmpl %d1,%d7 <== NOT EXECUTED 5915e: 66de bnes 5913e <_Timer_server_Body+0xb6> <== NOT EXECUTED _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker ); 59160: 2040 moveal %d0,%a0 <== NOT EXECUTED 59162: 4868 0010 pea %a0@(16) <== NOT EXECUTED 59166: 2f05 movel %d5,%sp@- <== NOT EXECUTED 59168: 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 ); 5916a: 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 ); 5916e: 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 ); 59170: 2f00 movel %d0,%sp@- <== NOT EXECUTED 59172: 4e93 jsr %a3@ <== NOT EXECUTED if ( timer == NULL ) { 59174: 588f addql #4,%sp <== NOT EXECUTED 59176: 4a80 tstl %d0 <== NOT EXECUTED 59178: 66d2 bnes 5914c <_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 ); 5917a: 2004 movel %d4,%d0 <== NOT EXECUTED 5917c: 40c1 movew %sr,%d1 <== NOT EXECUTED 5917e: 8081 orl %d1,%d0 <== NOT EXECUTED 59180: 46c0 movew %d0,%sr <== NOT EXECUTED if ( _Chain_Is_empty( insert_chain ) ) { 59182: bcae fff4 cmpl %fp@(-12),%d6 <== NOT EXECUTED 59186: 6700 0086 beqw 5920e <_Timer_server_Body+0x186> <== NOT EXECUTED ts->insert_chain = NULL; _ISR_Enable( level ); break; } else { _ISR_Enable( level ); 5918a: 46c1 movew %d1,%sr <== NOT EXECUTED static void _Timer_server_Process_interval_watchdogs( Timer_server_Watchdogs *watchdogs, Chain_Control *fire_chain ) { Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot; 5918c: 2039 0007 d304 movel 7d304 <_Watchdog_Ticks_since_boot>,%d0<== NOT EXECUTED /* * We assume adequate unsigned arithmetic here. */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; 59192: 222a 003c movel %a2@(60),%d1 <== NOT EXECUTED watchdogs->last_snapshot = snapshot; 59196: 2540 003c movel %d0,%a2@(60) <== NOT EXECUTED _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); 5919a: 9081 subl %d1,%d0 <== NOT EXECUTED 5919c: 2f03 movel %d3,%sp@- <== NOT EXECUTED 5919e: 2f00 movel %d0,%sp@- <== NOT EXECUTED 591a0: 2f02 movel %d2,%sp@- <== NOT EXECUTED 591a2: 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(); 591a4: 2039 0007 d262 movel 7d262 <_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 ) { 591aa: 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; 591ae: 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 ) { 591b2: b280 cmpl %d0,%d1 <== NOT EXECUTED 591b4: 6400 ff7e bccw 59134 <_Timer_server_Body+0xac> <== 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 ); 591b8: 2f03 movel %d3,%sp@- <== NOT EXECUTED 591ba: 2e00 movel %d0,%d7 <== NOT EXECUTED 591bc: 9e81 subl %d1,%d7 <== NOT EXECUTED 591be: 2f07 movel %d7,%sp@- <== NOT EXECUTED 591c0: 2d40 ffdc movel %d0,%fp@(-36) <== NOT EXECUTED 591c4: 2f05 movel %d5,%sp@- <== NOT EXECUTED 591c6: 4eb9 0005 d4f4 jsr 5d4f4 <_Watchdog_Adjust_to_chain> <== NOT EXECUTED 591cc: 202e ffdc movel %fp@(-36),%d0 <== NOT EXECUTED 591d0: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED */ delta = last_snapshot - snapshot; _Watchdog_Adjust( &watchdogs->Chain, WATCHDOG_BACKWARD, delta ); } watchdogs->last_snapshot = snapshot; 591d4: 2540 0074 movel %d0,%a2@(116) <== NOT EXECUTED 591d8: 6000 ff64 braw 5913e <_Timer_server_Body+0xb6> <== 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 ); 591dc: 9280 subl %d0,%d1 <== NOT EXECUTED 591de: 2f01 movel %d1,%sp@- <== NOT EXECUTED 591e0: 4878 0001 pea 1 <== NOT EXECUTED 591e4: 2d40 ffdc movel %d0,%fp@(-36) <== NOT EXECUTED 591e8: 2f05 movel %d5,%sp@- <== NOT EXECUTED 591ea: 4eb9 0005 d460 jsr 5d460 <_Watchdog_Adjust> <== NOT EXECUTED 591f0: 202e ffdc movel %fp@(-36),%d0 <== NOT EXECUTED 591f4: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED } watchdogs->last_snapshot = snapshot; 591f8: 2540 0074 movel %d0,%a2@(116) <== NOT EXECUTED 591fc: 6000 ff40 braw 5913e <_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 ); 59200: 4868 0010 pea %a0@(16) <== NOT EXECUTED 59204: 2f02 movel %d2,%sp@- <== NOT EXECUTED 59206: 4e94 jsr %a4@ <== NOT EXECUTED 59208: 508f addql #8,%sp <== NOT EXECUTED 5920a: 6000 ff32 braw 5913e <_Timer_server_Body+0xb6> <== NOT EXECUTED */ _Timer_server_Process_insertions( ts ); _ISR_Disable( level ); if ( _Chain_Is_empty( insert_chain ) ) { ts->insert_chain = NULL; 5920e: 42aa 0078 clrl %a2@(120) <== NOT EXECUTED _ISR_Enable( level ); 59212: 46c1 movew %d1,%sr <== 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 ) ) { 59214: 202e ffd8 movel %fp@(-40),%d0 <== NOT EXECUTED 59218: b0ae ffe8 cmpl %fp@(-24),%d0 <== NOT EXECUTED 5921c: 6752 beqs 59270 <_Timer_server_Body+0x1e8> <== 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 ); 5921e: 2204 movel %d4,%d1 <== NOT EXECUTED 59220: 40c0 movew %sr,%d0 <== NOT EXECUTED 59222: 8280 orl %d0,%d1 <== NOT EXECUTED 59224: 46c1 movew %d1,%sr <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 59226: 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)) 5922a: b1ee ffd8 cmpal %fp@(-40),%a0 <== NOT EXECUTED 5922e: 6732 beqs 59262 <_Timer_server_Body+0x1da> <== NOT EXECUTED { Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; 59230: 2250 moveal %a0@,%a1 <== NOT EXECUTED the_chain->first = new_first; new_first->previous = _Chain_Head(the_chain); 59232: 2343 0004 movel %d3,%a1@(4) <== NOT EXECUTED watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain ); if ( watchdog != NULL ) { watchdog->state = WATCHDOG_INACTIVE; 59236: 42a8 0008 clrl %a0@(8) <== NOT EXECUTED Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; the_chain->first = new_first; 5923a: 2d49 ffe8 movel %a1,%fp@(-24) <== NOT EXECUTED _ISR_Enable( level ); 5923e: 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 ); 59240: 2f28 0024 movel %a0@(36),%sp@- <== NOT EXECUTED 59244: 2f28 0020 movel %a0@(32),%sp@- <== NOT EXECUTED 59248: 2068 001c moveal %a0@(28),%a0 <== NOT EXECUTED 5924c: 4e90 jsr %a0@ <== NOT EXECUTED } 5924e: 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 ); 59250: 2204 movel %d4,%d1 <== NOT EXECUTED 59252: 40c0 movew %sr,%d0 <== NOT EXECUTED 59254: 8280 orl %d0,%d1 <== NOT EXECUTED 59256: 46c1 movew %d1,%sr <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 59258: 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)) 5925c: b1ee ffd8 cmpal %fp@(-40),%a0 <== NOT EXECUTED 59260: 66ce bnes 59230 <_Timer_server_Body+0x1a8> <== NOT EXECUTED watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain ); if ( watchdog != NULL ) { watchdog->state = WATCHDOG_INACTIVE; _ISR_Enable( level ); } else { _ISR_Enable( level ); 59262: 46c0 movew %d0,%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; 59264: 41ee fff4 lea %fp@(-12),%a0 <== NOT EXECUTED 59268: 2548 0078 movel %a0,%a2@(120) <== NOT EXECUTED 5926c: 6000 fe9a braw 59108 <_Timer_server_Body+0x80> <== NOT EXECUTED * the active flag of the timer server is true. */ (*watchdog->routine)( watchdog->id, watchdog->user_data ); } } else { ts->active = false; 59270: 4207 clrb %d7 <== NOT EXECUTED 59272: 1547 007c moveb %d7,%a2@(124) <== NOT EXECUTED 59276: 2039 0007 d1d8 movel 7d1d8 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED 5927c: 5280 addql #1,%d0 <== NOT EXECUTED 5927e: 23c0 0007 d1d8 movel %d0,7d1d8 <_Thread_Dispatch_disable_level><== NOT EXECUTED /* * Block until there is something to do. */ _Thread_Disable_dispatch(); _Thread_Set_state( ts->thread, STATES_DELAYING ); 59284: 4878 0008 pea 8 <== NOT EXECUTED 59288: 2f12 movel %a2@,%sp@- <== NOT EXECUTED 5928a: 4eb9 0005 cba8 jsr 5cba8 <_Thread_Set_state> <== NOT EXECUTED _Timer_server_Reset_interval_system_watchdog( ts ); 59290: 2f0a movel %a2,%sp@- <== NOT EXECUTED 59292: 4eba fd1c jsr %pc@(58fb0 <_Timer_server_Reset_interval_system_watchdog>)<== NOT EXECUTED _Timer_server_Reset_tod_system_watchdog( ts ); 59296: 2f0a movel %a2,%sp@- <== NOT EXECUTED 59298: 4eba fd80 jsr %pc@(5901a <_Timer_server_Reset_tod_system_watchdog>)<== NOT EXECUTED _Thread_Enable_dispatch(); 5929c: 4eb9 0005 c12a jsr 5c12a <_Thread_Enable_dispatch> <== NOT EXECUTED ts->active = true; 592a2: 7001 moveq #1,%d0 <== NOT EXECUTED 592a4: 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 ); 592a8: 2f2e ffe4 movel %fp@(-28),%sp@- <== NOT EXECUTED 592ac: 4eb9 0005 d6c4 jsr 5d6c4 <_Watchdog_Remove> <== NOT EXECUTED static void _Timer_server_Stop_tod_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog ); 592b2: 2f2e ffe0 movel %fp@(-32),%sp@- <== NOT EXECUTED 592b6: 4eb9 0005 d6c4 jsr 5d6c4 <_Watchdog_Remove> <== NOT EXECUTED 592bc: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED 592c0: 6000 fe3e braw 59100 <_Timer_server_Body+0x78> <== NOT EXECUTED =============================================================================== 00058fb0 <_Timer_server_Reset_interval_system_watchdog>: } static void _Timer_server_Reset_interval_system_watchdog( Timer_server_Control *ts ) { 58fb0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 58fb4: 2f0a movel %a2,%sp@- <== NOT EXECUTED 58fb6: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 58fba: 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 ); 58fbc: 240a movel %a2,%d2 <== NOT EXECUTED 58fbe: 5082 addql #8,%d2 <== NOT EXECUTED 58fc0: 2f02 movel %d2,%sp@- <== NOT EXECUTED 58fc2: 4eb9 0005 d6c4 jsr 5d6c4 <_Watchdog_Remove> <== NOT EXECUTED { ISR_Level level; _Timer_server_Stop_interval_system_watchdog( ts ); _ISR_Disable( level ); 58fc8: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED 58fce: 40c1 movew %sr,%d1 <== NOT EXECUTED 58fd0: 8081 orl %d1,%d0 <== NOT EXECUTED 58fd2: 46c0 movew %d0,%sr <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 58fd4: 200a movel %a2,%d0 <== NOT EXECUTED 58fd6: 0680 0000 0034 addil #52,%d0 <== NOT EXECUTED if ( !_Chain_Is_empty( &ts->Interval_watchdogs.Chain ) ) { 58fdc: 588f addql #4,%sp <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 58fde: 206a 0030 moveal %a2@(48),%a0 <== NOT EXECUTED 58fe2: b088 cmpl %a0,%d0 <== NOT EXECUTED 58fe4: 6726 beqs 5900c <_Timer_server_Reset_interval_system_watchdog+0x5c><== NOT EXECUTED Watchdog_Interval delta_interval = 58fe6: 2028 0010 movel %a0@(16),%d0 <== NOT EXECUTED _Watchdog_First( &ts->Interval_watchdogs.Chain )->delta_interval; _ISR_Enable( level ); 58fea: 46c1 movew %d1,%sr <== NOT EXECUTED ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 58fec: 2f02 movel %d2,%sp@- <== NOT EXECUTED 58fee: 4879 0007 d29a pea 7d29a <_Watchdog_Ticks_chain> <== NOT EXECUTED Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 58ff4: 2540 0014 movel %d0,%a2@(20) <== NOT EXECUTED _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 58ff8: 4eb9 0005 d57c jsr 5d57c <_Watchdog_Insert> <== NOT EXECUTED delta_interval ); } else { _ISR_Enable( level ); } } 58ffe: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 59002: 508f addql #8,%sp <== NOT EXECUTED 59004: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 59008: 4e5e unlk %fp <== NOT EXECUTED 5900a: 4e75 rts <== NOT EXECUTED _Watchdog_Insert_ticks( &ts->Interval_watchdogs.System_watchdog, delta_interval ); } else { _ISR_Enable( level ); 5900c: 46c1 movew %d1,%sr <== NOT EXECUTED } } 5900e: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 59012: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 59016: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 0005901a <_Timer_server_Reset_tod_system_watchdog>: } static void _Timer_server_Reset_tod_system_watchdog( Timer_server_Control *ts ) { 5901a: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 5901e: 2f0a movel %a2,%sp@- <== NOT EXECUTED 59020: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 59024: 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 ); 59026: 240a movel %a2,%d2 <== NOT EXECUTED 59028: 0682 0000 0040 addil #64,%d2 <== NOT EXECUTED 5902e: 2f02 movel %d2,%sp@- <== NOT EXECUTED 59030: 4eb9 0005 d6c4 jsr 5d6c4 <_Watchdog_Remove> <== NOT EXECUTED { ISR_Level level; _Timer_server_Stop_tod_system_watchdog( ts ); _ISR_Disable( level ); 59036: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED 5903c: 40c1 movew %sr,%d1 <== NOT EXECUTED 5903e: 8081 orl %d1,%d0 <== NOT EXECUTED 59040: 46c0 movew %d0,%sr <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 59042: 200a movel %a2,%d0 <== NOT EXECUTED 59044: 0680 0000 006c addil #108,%d0 <== NOT EXECUTED if ( !_Chain_Is_empty( &ts->TOD_watchdogs.Chain ) ) { 5904a: 588f addql #4,%sp <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 5904c: 206a 0068 moveal %a2@(104),%a0 <== NOT EXECUTED 59050: b088 cmpl %a0,%d0 <== NOT EXECUTED 59052: 6726 beqs 5907a <_Timer_server_Reset_tod_system_watchdog+0x60><== NOT EXECUTED Watchdog_Interval delta_interval = 59054: 2028 0010 movel %a0@(16),%d0 <== NOT EXECUTED _Watchdog_First( &ts->TOD_watchdogs.Chain )->delta_interval; _ISR_Enable( level ); 59058: 46c1 movew %d1,%sr <== NOT EXECUTED ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog ); 5905a: 2f02 movel %d2,%sp@- <== NOT EXECUTED 5905c: 4879 0007 d28e pea 7d28e <_Watchdog_Seconds_chain> <== NOT EXECUTED Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 59062: 2540 004c movel %d0,%a2@(76) <== NOT EXECUTED _Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog ); 59066: 4eb9 0005 d57c jsr 5d57c <_Watchdog_Insert> <== NOT EXECUTED delta_interval ); } else { _ISR_Enable( level ); } } 5906c: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 59070: 508f addql #8,%sp <== NOT EXECUTED 59072: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 59076: 4e5e unlk %fp <== NOT EXECUTED 59078: 4e75 rts <== NOT EXECUTED _Watchdog_Insert_seconds( &ts->TOD_watchdogs.System_watchdog, delta_interval ); } else { _ISR_Enable( level ); 5907a: 46c1 movew %d1,%sr <== NOT EXECUTED } } 5907c: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 59080: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 59084: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 000592c4 <_Timer_server_Schedule_operation_method>: static void _Timer_server_Schedule_operation_method( Timer_server_Control *ts, Timer_Control *timer ) { 592c4: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 592c8: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED 592cc: 48d7 041c moveml %d2-%d4/%a2,%sp@ <== NOT EXECUTED 592d0: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED if ( ts->insert_chain == NULL ) { 592d4: 202a 0078 movel %a2@(120),%d0 <== NOT EXECUTED 592d8: 671a beqs 592f4 <_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 ); 592da: 202a 0078 movel %a2@(120),%d0 <== NOT EXECUTED 592de: 2d48 000c movel %a0,%fp@(12) <== NOT EXECUTED } } 592e2: 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 ); 592e8: 2d40 0008 movel %d0,%fp@(8) <== NOT EXECUTED } } 592ec: 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 ); 592ee: 4ef9 0005 9bf8 jmp 59bf8 <_Chain_Append> <== NOT EXECUTED 592f4: 2039 0007 d1d8 movel 7d1d8 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED 592fa: 5280 addql #1,%d0 <== NOT EXECUTED 592fc: 23c0 0007 d1d8 movel %d0,7d1d8 <_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 ) { 59302: 2028 0038 movel %a0@(56),%d0 <== NOT EXECUTED 59306: 7201 moveq #1,%d1 <== NOT EXECUTED 59308: b280 cmpl %d0,%d1 <== NOT EXECUTED 5930a: 6700 008a beqw 59396 <_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 ) { 5930e: 7803 moveq #3,%d4 <== NOT EXECUTED 59310: b880 cmpl %d0,%d4 <== NOT EXECUTED 59312: 670e beqs 59322 <_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 ); } } 59314: 4cee 041c fff0 moveml %fp@(-16),%d2-%d4/%a2 <== NOT EXECUTED 5931a: 4e5e unlk %fp <== NOT EXECUTED if ( !ts->active ) { _Timer_server_Reset_tod_system_watchdog( ts ); } } _Thread_Enable_dispatch(); 5931c: 4ef9 0005 c12a jmp 5c12a <_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 ); 59322: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED 59328: 40c2 movew %sr,%d2 <== NOT EXECUTED 5932a: 8082 orl %d2,%d0 <== NOT EXECUTED 5932c: 46c0 movew %d0,%sr <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 5932e: 260a movel %a2,%d3 <== NOT EXECUTED 59330: 0683 0000 006c addil #108,%d3 <== NOT EXECUTED snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); 59336: 2039 0007 d262 movel 7d262 <_TOD_Now>,%d0 <== NOT EXECUTED last_snapshot = ts->TOD_watchdogs.last_snapshot; 5933c: 222a 0074 movel %a2@(116),%d1 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 59340: 226a 0068 moveal %a2@(104),%a1 <== NOT EXECUTED if ( !_Chain_Is_empty( &ts->TOD_watchdogs.Chain ) ) { 59344: b689 cmpl %a1,%d3 <== NOT EXECUTED 59346: 671c beqs 59364 <_Timer_server_Schedule_operation_method+0xa0><== NOT EXECUTED first_watchdog = _Watchdog_First( &ts->TOD_watchdogs.Chain ); delta_interval = first_watchdog->delta_interval; 59348: 2629 0010 movel %a1@(16),%d3 <== NOT EXECUTED if ( snapshot > last_snapshot ) { 5934c: b280 cmpl %d0,%d1 <== NOT EXECUTED 5934e: 6400 00ba bccw 5940a <_Timer_server_Schedule_operation_method+0x146><== NOT EXECUTED /* * We advanced in time. */ delta = snapshot - last_snapshot; 59352: 2800 movel %d0,%d4 <== NOT EXECUTED 59354: 9881 subl %d1,%d4 <== NOT EXECUTED if (delta_interval > delta) { 59356: b883 cmpl %d3,%d4 <== NOT EXECUTED 59358: 6400 00bc bccw 59416 <_Timer_server_Schedule_operation_method+0x152><== NOT EXECUTED delta_interval -= delta; 5935c: 9684 subl %d4,%d3 <== NOT EXECUTED 5935e: 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; 59360: 2341 0010 movel %d1,%a1@(16) <== NOT EXECUTED } ts->TOD_watchdogs.last_snapshot = snapshot; 59364: 2540 0074 movel %d0,%a2@(116) <== NOT EXECUTED _ISR_Enable( level ); 59368: 46c2 movew %d2,%sr <== NOT EXECUTED _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker ); 5936a: 4868 0010 pea %a0@(16) <== NOT EXECUTED 5936e: 486a 0068 pea %a2@(104) <== NOT EXECUTED 59372: 4eb9 0005 d57c jsr 5d57c <_Watchdog_Insert> <== NOT EXECUTED if ( !ts->active ) { 59378: 508f addql #8,%sp <== NOT EXECUTED 5937a: 102a 007c moveb %a2@(124),%d0 <== NOT EXECUTED 5937e: 6694 bnes 59314 <_Timer_server_Schedule_operation_method+0x50><== NOT EXECUTED _Timer_server_Reset_tod_system_watchdog( ts ); 59380: 2f0a movel %a2,%sp@- <== NOT EXECUTED 59382: 4eba fc96 jsr %pc@(5901a <_Timer_server_Reset_tod_system_watchdog>)<== NOT EXECUTED 59386: 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 ); } } 59388: 4cee 041c fff0 moveml %fp@(-16),%d2-%d4/%a2 <== NOT EXECUTED 5938e: 4e5e unlk %fp <== NOT EXECUTED if ( !ts->active ) { _Timer_server_Reset_tod_system_watchdog( ts ); } } _Thread_Enable_dispatch(); 59390: 4ef9 0005 c12a jmp 5c12a <_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 ); 59396: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED 5939c: 40c3 movew %sr,%d3 <== NOT EXECUTED 5939e: 8083 orl %d3,%d0 <== NOT EXECUTED 593a0: 46c0 movew %d0,%sr <== NOT EXECUTED snapshot = _Watchdog_Ticks_since_boot; 593a2: 2039 0007 d304 movel 7d304 <_Watchdog_Ticks_since_boot>,%d0<== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 593a8: 220a movel %a2,%d1 <== NOT EXECUTED 593aa: 0681 0000 0034 addil #52,%d1 <== NOT EXECUTED last_snapshot = ts->Interval_watchdogs.last_snapshot; 593b0: 282a 003c movel %a2@(60),%d4 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 593b4: 226a 0030 moveal %a2@(48),%a1 <== NOT EXECUTED if ( !_Chain_Is_empty( &ts->Interval_watchdogs.Chain ) ) { 593b8: b289 cmpl %a1,%d1 <== NOT EXECUTED 593ba: 6712 beqs 593ce <_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; 593bc: 2200 movel %d0,%d1 <== NOT EXECUTED 593be: 9284 subl %d4,%d1 <== NOT EXECUTED delta_interval = first_watchdog->delta_interval; 593c0: 2429 0010 movel %a1@(16),%d2 <== NOT EXECUTED if (delta_interval > delta) { 593c4: b481 cmpl %d1,%d2 <== NOT EXECUTED 593c6: 633a blss 59402 <_Timer_server_Schedule_operation_method+0x13e><== NOT EXECUTED delta_interval -= delta; 593c8: 9481 subl %d1,%d2 <== NOT EXECUTED } else { delta_interval = 0; } first_watchdog->delta_interval = delta_interval; 593ca: 2342 0010 movel %d2,%a1@(16) <== NOT EXECUTED } ts->Interval_watchdogs.last_snapshot = snapshot; 593ce: 2540 003c movel %d0,%a2@(60) <== NOT EXECUTED _ISR_Enable( level ); 593d2: 46c3 movew %d3,%sr <== NOT EXECUTED _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker ); 593d4: 4868 0010 pea %a0@(16) <== NOT EXECUTED 593d8: 486a 0030 pea %a2@(48) <== NOT EXECUTED 593dc: 4eb9 0005 d57c jsr 5d57c <_Watchdog_Insert> <== NOT EXECUTED if ( !ts->active ) { 593e2: 508f addql #8,%sp <== NOT EXECUTED 593e4: 102a 007c moveb %a2@(124),%d0 <== NOT EXECUTED 593e8: 6600 ff2a bnew 59314 <_Timer_server_Schedule_operation_method+0x50><== NOT EXECUTED _Timer_server_Reset_interval_system_watchdog( ts ); 593ec: 2f0a movel %a2,%sp@- <== NOT EXECUTED 593ee: 4eba fbc0 jsr %pc@(58fb0 <_Timer_server_Reset_interval_system_watchdog>)<== NOT EXECUTED 593f2: 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 ); } } 593f4: 4cee 041c fff0 moveml %fp@(-16),%d2-%d4/%a2 <== NOT EXECUTED 593fa: 4e5e unlk %fp <== NOT EXECUTED if ( !ts->active ) { _Timer_server_Reset_tod_system_watchdog( ts ); } } _Thread_Enable_dispatch(); 593fc: 4ef9 0005 c12a jmp 5c12a <_Thread_Enable_dispatch> <== NOT EXECUTED delta_interval = first_watchdog->delta_interval; if (delta_interval > delta) { delta_interval -= delta; } else { delta_interval = 0; 59402: 4282 clrl %d2 <== NOT EXECUTED } first_watchdog->delta_interval = delta_interval; 59404: 2342 0010 movel %d2,%a1@(16) <== NOT EXECUTED 59408: 60c4 bras 593ce <_Timer_server_Schedule_operation_method+0x10a><== NOT EXECUTED } } else { /* * Someone put us in the past. */ delta = last_snapshot - snapshot; 5940a: d283 addl %d3,%d1 <== NOT EXECUTED delta_interval += delta; 5940c: 9280 subl %d0,%d1 <== NOT EXECUTED } first_watchdog->delta_interval = delta_interval; 5940e: 2341 0010 movel %d1,%a1@(16) <== NOT EXECUTED 59412: 6000 ff50 braw 59364 <_Timer_server_Schedule_operation_method+0xa0><== NOT EXECUTED */ delta = snapshot - last_snapshot; if (delta_interval > delta) { delta_interval -= delta; } else { delta_interval = 0; 59416: 4281 clrl %d1 <== NOT EXECUTED * Someone put us in the past. */ delta = last_snapshot - snapshot; delta_interval += delta; } first_watchdog->delta_interval = delta_interval; 59418: 2341 0010 movel %d1,%a1@(16) <== NOT EXECUTED 5941c: 6000 ff46 braw 59364 <_Timer_server_Schedule_operation_method+0xa0><== NOT EXECUTED =============================================================================== 00049460 <_Timespec_Add_to>: uint32_t _Timespec_Add_to( struct timespec *time, const struct timespec *add ) { 49460: 4e56 0000 linkw %fp,#0 49464: 226e 0008 moveal %fp@(8),%a1 49468: 2f0a movel %a2,%sp@- 4946a: 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; 4946e: 206a 0004 moveal %a2@(4),%a0 49472: d1e9 0004 addal %a1@(4),%a0 /* Now adjust it so nanoseconds is in range */ while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) { 49476: 2208 movel %a0,%d1 uint32_t _Timespec_Add_to( struct timespec *time, const struct timespec *add ) { uint32_t seconds = add->tv_sec; 49478: 2012 movel %a2@,%d0 /* Add the basics */ time->tv_sec += add->tv_sec; 4947a: d191 addl %d0,%a1@ time->tv_nsec += add->tv_nsec; 4947c: 2348 0004 movel %a0,%a1@(4) /* Now adjust it so nanoseconds is in range */ while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) { 49480: b1fc 3b9a c9ff cmpal #999999999,%a0 49486: 631a blss 494a2 <_Timespec_Add_to+0x42> <== ALWAYS TAKEN 49488: 2051 moveal %a1@,%a0 <== NOT EXECUTED * * This routines adds two timespecs. The second argument is added * to the first. */ uint32_t _Timespec_Add_to( 4948a: 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; 4948c: 0681 c465 3600 addil #-1000000000,%d1 <== NOT EXECUTED time->tv_sec++; seconds++; 49492: 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 ) { 49494: 0c81 3b9a c9ff cmpil #999999999,%d1 <== NOT EXECUTED 4949a: 62ee bhis 4948a <_Timespec_Add_to+0x2a> <== NOT EXECUTED 4949c: 2341 0004 movel %d1,%a1@(4) <== NOT EXECUTED 494a0: 2288 movel %a0,%a1@ <== NOT EXECUTED time->tv_sec++; seconds++; } return seconds; } 494a2: 245f moveal %sp@+,%a2 494a4: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 0004afec <_Timespec_Divide>: const struct timespec *lhs, const struct timespec *rhs, uint32_t *ival_percentage, uint32_t *fval_percentage ) { 4afec: 4e56 ffe0 linkw %fp,#-32 <== NOT EXECUTED 4aff0: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED 4aff4: 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; 4aff8: 2f3c 3b9a ca00 movel #1000000000,%sp@- <== NOT EXECUTED const struct timespec *lhs, const struct timespec *rhs, uint32_t *ival_percentage, uint32_t *fval_percentage ) { 4affe: 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; 4b002: 45f9 0005 b71c lea 5b71c <__muldi3>,%a2 <== NOT EXECUTED 4b008: 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; 4b00a: 2a10 movel %a0@,%d5 <== NOT EXECUTED left += lhs->tv_nsec; 4b00c: 2828 0004 movel %a0@(4),%d4 <== NOT EXECUTED right = rhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; 4b010: 2f13 movel %a3@,%sp@- <== NOT EXECUTED 4b012: 5bc0 smi %d0 <== NOT EXECUTED 4b014: 49c0 extbl %d0 <== NOT EXECUTED 4b016: 2f00 movel %d0,%sp@- <== NOT EXECUTED const struct timespec *lhs, const struct timespec *rhs, uint32_t *ival_percentage, uint32_t *fval_percentage ) { 4b018: 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; 4b01c: 4e92 jsr %a2@ <== NOT EXECUTED 4b01e: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 4b022: 2040 moveal %d0,%a0 <== NOT EXECUTED 4b024: 2241 moveal %d1,%a1 <== NOT EXECUTED right += rhs->tv_nsec; 4b026: 262b 0004 movel %a3@(4),%d3 <== NOT EXECUTED 4b02a: 5bc2 smi %d2 <== NOT EXECUTED 4b02c: 49c2 extbl %d2 <== NOT EXECUTED const struct timespec *lhs, const struct timespec *rhs, uint32_t *ival_percentage, uint32_t *fval_percentage ) { 4b02e: 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; 4b032: 2208 movel %a0,%d1 <== NOT EXECUTED 4b034: d689 addl %a1,%d3 <== NOT EXECUTED 4b036: d581 addxl %d1,%d2 <== NOT EXECUTED if ( right == 0 ) { 4b038: 6700 0086 beqw 4b0c0 <_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; 4b03c: 4bf9 0005 bf68 lea 5bf68 <__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; 4b042: 2f3c 3b9a ca00 movel #1000000000,%sp@- <== NOT EXECUTED 4b048: 42a7 clrl %sp@- <== NOT EXECUTED 4b04a: 2f05 movel %d5,%sp@- <== NOT EXECUTED 4b04c: 5bc1 smi %d1 <== NOT EXECUTED 4b04e: 49c1 extbl %d1 <== NOT EXECUTED 4b050: 2f01 movel %d1,%sp@- <== NOT EXECUTED left += lhs->tv_nsec; 4b052: 2a04 movel %d4,%d5 <== NOT EXECUTED 4b054: 5bc4 smi %d4 <== NOT EXECUTED 4b056: 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; 4b058: 4e92 jsr %a2@ <== NOT EXECUTED 4b05a: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 4b05e: 2040 moveal %d0,%a0 <== NOT EXECUTED 4b060: 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; 4b062: 2f3c 0001 86a0 movel #100000,%sp@- <== NOT EXECUTED 4b068: 2008 movel %a0,%d0 <== NOT EXECUTED 4b06a: 2209 movel %a1,%d1 <== NOT EXECUTED 4b06c: 42a7 clrl %sp@- <== NOT EXECUTED 4b06e: d285 addl %d5,%d1 <== NOT EXECUTED 4b070: d184 addxl %d4,%d0 <== NOT EXECUTED 4b072: 2f01 movel %d1,%sp@- <== NOT EXECUTED 4b074: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4b076: 4e92 jsr %a2@ <== NOT EXECUTED 4b078: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4b07c: 2e83 movel %d3,%sp@ <== NOT EXECUTED 4b07e: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4b080: 2f01 movel %d1,%sp@- <== NOT EXECUTED 4b082: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4b084: 4e95 jsr %a5@ <== NOT EXECUTED 4b086: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 4b08a: 2400 movel %d0,%d2 <== NOT EXECUTED *ival_percentage = answer / 1000; 4b08c: 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; 4b090: 2601 movel %d1,%d3 <== NOT EXECUTED *ival_percentage = answer / 1000; 4b092: 42a7 clrl %sp@- <== NOT EXECUTED 4b094: 2f01 movel %d1,%sp@- <== NOT EXECUTED 4b096: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4b098: 4e95 jsr %a5@ <== NOT EXECUTED 4b09a: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED *fval_percentage = answer % 1000; 4b09e: 4878 03e8 pea 3e8 <== NOT EXECUTED 4b0a2: 42a7 clrl %sp@- <== NOT EXECUTED * TODO: Rounding on the last digit of the fval. */ answer = (left * 100000) / right; *ival_percentage = answer / 1000; 4b0a4: 2881 movel %d1,%a4@ <== NOT EXECUTED *fval_percentage = answer % 1000; 4b0a6: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4b0a8: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4b0aa: 4eb9 0005 c2f4 jsr 5c2f4 <__umoddi3> <== NOT EXECUTED 4b0b0: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 4b0b4: 2681 movel %d1,%a3@ <== NOT EXECUTED } 4b0b6: 4cee 3c3c ffe0 moveml %fp@(-32),%d2-%d5/%a2-%a5 <== NOT EXECUTED 4b0bc: 4e5e unlk %fp <== NOT EXECUTED 4b0be: 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; 4b0c0: 4294 clrl %a4@ <== NOT EXECUTED *fval_percentage = 0; 4b0c2: 4293 clrl %a3@ <== NOT EXECUTED answer = (left * 100000) / right; *ival_percentage = answer / 1000; *fval_percentage = answer % 1000; } 4b0c4: 4cee 3c3c ffe0 moveml %fp@(-32),%d2-%d5/%a2-%a5 <== NOT EXECUTED 4b0ca: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 0004b004 <_Timespec_Divide_by_integer>: void _Timespec_Divide_by_integer( const struct timespec *time, uint32_t iterations, struct timespec *result ) { 4b004: 4e56 ffec linkw %fp,#-20 <== NOT EXECUTED 4b008: 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; 4b00c: 2f3c 3b9a ca00 movel #1000000000,%sp@- <== NOT EXECUTED void _Timespec_Divide_by_integer( const struct timespec *time, uint32_t iterations, struct timespec *result ) { 4b012: 286e 0008 moveal %fp@(8),%a4 <== NOT EXECUTED /* * Divide to get nanoseconds per iteration */ t /= iterations; 4b016: 47f9 0005 ba24 lea 5ba24 <__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; 4b01c: 42a7 clrl %sp@- <== NOT EXECUTED void _Timespec_Divide_by_integer( const struct timespec *time, uint32_t iterations, struct timespec *result ) { 4b01e: 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; 4b022: 2f14 movel %a4@,%sp@- <== NOT EXECUTED 4b024: 5bc0 smi %d0 <== NOT EXECUTED 4b026: 49c0 extbl %d0 <== NOT EXECUTED 4b028: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4b02a: 4eb9 0005 b1d8 jsr 5b1d8 <__muldi3> <== NOT EXECUTED 4b030: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 4b034: 2040 moveal %d0,%a0 <== NOT EXECUTED 4b036: 2241 moveal %d1,%a1 <== NOT EXECUTED /* * Divide to get nanoseconds per iteration */ t /= iterations; 4b038: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 4b03c: 2408 movel %a0,%d2 <== NOT EXECUTED 4b03e: 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; 4b040: 222c 0004 movel %a4@(4),%d1 <== NOT EXECUTED 4b044: 5bc0 smi %d0 <== NOT EXECUTED 4b046: 49c0 extbl %d0 <== NOT EXECUTED /* * Divide to get nanoseconds per iteration */ t /= iterations; 4b048: 42a7 clrl %sp@- <== NOT EXECUTED 4b04a: d681 addl %d1,%d3 <== NOT EXECUTED 4b04c: d580 addxl %d0,%d2 <== NOT EXECUTED 4b04e: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4b050: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4b052: 4e93 jsr %a3@ <== NOT EXECUTED 4b054: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 4b058: 2400 movel %d0,%d2 <== NOT EXECUTED 4b05a: 2601 movel %d1,%d3 <== NOT EXECUTED /* * Put it back in the timespec result */ result->tv_sec = t / TOD_NANOSECONDS_PER_SECOND; 4b05c: 2f3c 3b9a ca00 movel #1000000000,%sp@- <== NOT EXECUTED 4b062: 42a7 clrl %sp@- <== NOT EXECUTED 4b064: 2f01 movel %d1,%sp@- <== NOT EXECUTED 4b066: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4b068: 4e93 jsr %a3@ <== NOT EXECUTED result->tv_nsec = t % TOD_NANOSECONDS_PER_SECOND; 4b06a: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4b06e: 2ebc 3b9a ca00 movel #1000000000,%sp@ <== NOT EXECUTED 4b074: 42a7 clrl %sp@- <== NOT EXECUTED /* * Put it back in the timespec result */ result->tv_sec = t / TOD_NANOSECONDS_PER_SECOND; 4b076: 2481 movel %d1,%a2@ <== NOT EXECUTED result->tv_nsec = t % TOD_NANOSECONDS_PER_SECOND; 4b078: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4b07a: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4b07c: 4eb9 0005 bdb0 jsr 5bdb0 <__umoddi3> <== NOT EXECUTED 4b082: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 4b086: 2541 0004 movel %d1,%a2@(4) <== NOT EXECUTED } 4b08a: 4cee 1c0c ffec moveml %fp@(-20),%d2-%d3/%a2-%a4 <== NOT EXECUTED 4b090: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 0004a1b4 <_Timespec_From_ticks>: struct timespec *time ) { uint32_t usecs; usecs = ticks * rtems_configuration_get_microseconds_per_tick(); 4a1b4: 43f9 0005 ed80 lea 5ed80 ,%a1 <== NOT EXECUTED void _Timespec_From_ticks( uint32_t ticks, struct timespec *time ) { 4a1ba: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED uint32_t usecs; usecs = ticks * rtems_configuration_get_microseconds_per_tick(); 4a1be: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED 4a1c2: 4c11 0800 mulsl %a1@,%d0 <== NOT EXECUTED void _Timespec_From_ticks( uint32_t ticks, struct timespec *time ) { 4a1c6: 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; 4a1c8: 243c 000f 4240 movel #1000000,%d2 <== NOT EXECUTED void _Timespec_From_ticks( uint32_t ticks, struct timespec *time ) { 4a1ce: 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; 4a1d2: 4c42 0001 remul %d2,%d1,%d0 <== NOT EXECUTED 4a1d6: 4c42 0000 remul %d2,%d0,%d0 <== NOT EXECUTED time->tv_nsec = (usecs % TOD_MICROSECONDS_PER_SECOND) * TOD_NANOSECONDS_PER_MICROSECOND; } 4a1da: 241f movel %sp@+,%d2 <== NOT EXECUTED 4a1dc: 4e5e unlk %fp <== NOT EXECUTED { uint32_t usecs; usecs = ticks * rtems_configuration_get_microseconds_per_tick(); time->tv_sec = usecs / TOD_MICROSECONDS_PER_SECOND; 4a1de: 2080 movel %d0,%a0@ <== NOT EXECUTED time->tv_nsec = (usecs % TOD_MICROSECONDS_PER_SECOND) * 4a1e0: 203c 0000 03e8 movel #1000,%d0 <== NOT EXECUTED 4a1e6: 4c01 0800 mulsl %d1,%d0 <== NOT EXECUTED 4a1ea: 2140 0004 movel %d0,%a0@(4) <== NOT EXECUTED TOD_NANOSECONDS_PER_MICROSECOND; } =============================================================================== 0004b094 <_Timespec_Greater_than>: bool _Timespec_Greater_than( const struct timespec *lhs, const struct timespec *rhs ) { 4b094: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4b098: 226e 0008 moveal %fp@(8),%a1 <== NOT EXECUTED 4b09c: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED if ( lhs->tv_sec > rhs->tv_sec ) 4b0a0: 2211 movel %a1@,%d1 <== NOT EXECUTED 4b0a2: 2010 movel %a0@,%d0 <== NOT EXECUTED 4b0a4: b081 cmpl %d1,%d0 <== NOT EXECUTED 4b0a6: 6d18 blts 4b0c0 <_Timespec_Greater_than+0x2c> <== NOT EXECUTED return true; if ( lhs->tv_sec < rhs->tv_sec ) 4b0a8: 6e10 bgts 4b0ba <_Timespec_Greater_than+0x26> <== NOT EXECUTED #include #include #include bool _Timespec_Greater_than( 4b0aa: 2068 0004 moveal %a0@(4),%a0 <== NOT EXECUTED 4b0ae: b1e9 0004 cmpal %a1@(4),%a0 <== NOT EXECUTED 4b0b2: 5dc0 slt %d0 <== NOT EXECUTED /* ASSERT: lhs->tv_sec == rhs->tv_sec */ if ( lhs->tv_nsec > rhs->tv_nsec ) return true; return false; } 4b0b4: 4e5e unlk %fp <== NOT EXECUTED #include #include #include bool _Timespec_Greater_than( 4b0b6: 4480 negl %d0 <== NOT EXECUTED /* ASSERT: lhs->tv_sec == rhs->tv_sec */ if ( lhs->tv_nsec > rhs->tv_nsec ) return true; return false; } 4b0b8: 4e75 rts <== NOT EXECUTED 4b0ba: 4e5e unlk %fp <== NOT EXECUTED { if ( lhs->tv_sec > rhs->tv_sec ) return true; if ( lhs->tv_sec < rhs->tv_sec ) return false; 4b0bc: 4200 clrb %d0 <== NOT EXECUTED /* ASSERT: lhs->tv_sec == rhs->tv_sec */ if ( lhs->tv_nsec > rhs->tv_nsec ) return true; return false; } 4b0be: 4e75 rts <== NOT EXECUTED 4b0c0: 4e5e unlk %fp <== NOT EXECUTED const struct timespec *lhs, const struct timespec *rhs ) { if ( lhs->tv_sec > rhs->tv_sec ) return true; 4b0c2: 7001 moveq #1,%d0 <== NOT EXECUTED /* ASSERT: lhs->tv_sec == rhs->tv_sec */ if ( lhs->tv_nsec > rhs->tv_nsec ) return true; return false; } ... =============================================================================== 0004a1f0 <_Timespec_Is_valid>: #include bool _Timespec_Is_valid( const struct timespec *time ) { 4a1f0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4a1f4: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED if ( !time ) 4a1f8: 4a88 tstl %a0 <== NOT EXECUTED 4a1fa: 6718 beqs 4a214 <_Timespec_Is_valid+0x24> <== NOT EXECUTED return false; if ( time->tv_sec < 0 ) 4a1fc: 4a90 tstl %a0@ <== NOT EXECUTED 4a1fe: 6d14 blts 4a214 <_Timespec_Is_valid+0x24> <== NOT EXECUTED return false; if ( time->tv_nsec < 0 ) 4a200: 2028 0004 movel %a0@(4),%d0 <== NOT EXECUTED 4a204: 6d0e blts 4a214 <_Timespec_Is_valid+0x24> <== NOT EXECUTED if ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) return false; return true; } 4a206: 4e5e unlk %fp <== NOT EXECUTED #include #include #include bool _Timespec_Is_valid( 4a208: 0c80 3b9a c9ff cmpil #999999999,%d0 <== NOT EXECUTED 4a20e: 53c0 sls %d0 <== NOT EXECUTED 4a210: 4480 negl %d0 <== NOT EXECUTED if ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) return false; return true; } 4a212: 4e75 rts <== NOT EXECUTED 4a214: 4e5e unlk %fp <== NOT EXECUTED if ( time->tv_sec < 0 ) return false; if ( time->tv_nsec < 0 ) return false; 4a216: 4200 clrb %d0 <== NOT EXECUTED if ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) return false; return true; } ... =============================================================================== 0004b0c8 <_Timespec_Less_than>: bool _Timespec_Less_than( const struct timespec *lhs, const struct timespec *rhs ) { 4b0c8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4b0cc: 226e 0008 moveal %fp@(8),%a1 <== NOT EXECUTED 4b0d0: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED if ( lhs->tv_sec < rhs->tv_sec ) 4b0d4: 2211 movel %a1@,%d1 <== NOT EXECUTED 4b0d6: 2010 movel %a0@,%d0 <== NOT EXECUTED 4b0d8: b081 cmpl %d1,%d0 <== NOT EXECUTED 4b0da: 6e18 bgts 4b0f4 <_Timespec_Less_than+0x2c> <== NOT EXECUTED return true; if ( lhs->tv_sec > rhs->tv_sec ) 4b0dc: 6d10 blts 4b0ee <_Timespec_Less_than+0x26> <== NOT EXECUTED #include #include #include bool _Timespec_Less_than( 4b0de: 2068 0004 moveal %a0@(4),%a0 <== NOT EXECUTED 4b0e2: b1e9 0004 cmpal %a1@(4),%a0 <== NOT EXECUTED 4b0e6: 5ec0 sgt %d0 <== NOT EXECUTED /* ASSERT: lhs->tv_sec == rhs->tv_sec */ if ( lhs->tv_nsec < rhs->tv_nsec ) return true; return false; } 4b0e8: 4e5e unlk %fp <== NOT EXECUTED #include #include #include bool _Timespec_Less_than( 4b0ea: 4480 negl %d0 <== NOT EXECUTED /* ASSERT: lhs->tv_sec == rhs->tv_sec */ if ( lhs->tv_nsec < rhs->tv_nsec ) return true; return false; } 4b0ec: 4e75 rts <== NOT EXECUTED 4b0ee: 4e5e unlk %fp <== NOT EXECUTED { if ( lhs->tv_sec < rhs->tv_sec ) return true; if ( lhs->tv_sec > rhs->tv_sec ) return false; 4b0f0: 4200 clrb %d0 <== NOT EXECUTED /* ASSERT: lhs->tv_sec == rhs->tv_sec */ if ( lhs->tv_nsec < rhs->tv_nsec ) return true; return false; } 4b0f2: 4e75 rts <== NOT EXECUTED 4b0f4: 4e5e unlk %fp <== NOT EXECUTED const struct timespec *lhs, const struct timespec *rhs ) { if ( lhs->tv_sec < rhs->tv_sec ) return true; 4b0f6: 7001 moveq #1,%d0 <== NOT EXECUTED /* ASSERT: lhs->tv_sec == rhs->tv_sec */ if ( lhs->tv_nsec < rhs->tv_nsec ) return true; return false; } ... =============================================================================== 000494a8 <_Timespec_Subtract>: void _Timespec_Subtract( const struct timespec *start, const struct timespec *end, struct timespec *result ) { 494a8: 4e56 0000 linkw %fp,#0 494ac: 226e 0008 moveal %fp@(8),%a1 494b0: 2f0a movel %a2,%sp@- 494b2: 246e 000c moveal %fp@(12),%a2 494b6: 206e 0010 moveal %fp@(16),%a0 if (end->tv_nsec < start->tv_nsec) { 494ba: 222a 0004 movel %a2@(4),%d1 494be: 2029 0004 movel %a1@(4),%d0 void _Timespec_Subtract( const struct timespec *start, const struct timespec *end, struct timespec *result ) { 494c2: 2f02 movel %d2,%sp@- if (end->tv_nsec < start->tv_nsec) { 494c4: b081 cmpl %d1,%d0 494c6: 6e14 bgts 494dc <_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; 494c8: 2412 movel %a2@,%d2 494ca: 9491 subl %a1@,%d2 result->tv_nsec = end->tv_nsec - start->tv_nsec; 494cc: 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; 494ce: 2082 movel %d2,%a0@ result->tv_nsec = end->tv_nsec - start->tv_nsec; } } 494d0: 241f movel %sp@+,%d2 494d2: 245f moveal %sp@+,%a2 494d4: 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; 494d6: 2141 0004 movel %d1,%a0@(4) } } 494da: 4e75 rts struct timespec *result ) { if (end->tv_nsec < start->tv_nsec) { result->tv_sec = end->tv_sec - start->tv_sec - 1; 494dc: 2452 moveal %a2@,%a2 <== NOT EXECUTED 494de: 538a subql #1,%a2 <== NOT EXECUTED 494e0: 95d1 subal %a1@,%a2 <== NOT EXECUTED result->tv_nsec = (TOD_NANOSECONDS_PER_SECOND - start->tv_nsec) + end->tv_nsec; 494e2: 0681 3b9a ca00 addil #1000000000,%d1 <== NOT EXECUTED 494e8: 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; } } 494ea: 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; 494ec: 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; } } 494ee: 245f moveal %sp@+,%a2 <== NOT EXECUTED 494f0: 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; 494f2: 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; } } =============================================================================== 0004a26c <_Timespec_To_ticks>: */ uint32_t _Timespec_To_ticks( const struct timespec *time ) { 4a26c: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 4a270: 48d7 040c moveml %d2-%d3/%a2,%sp@ <== NOT EXECUTED 4a274: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED uint32_t ticks; if ( (time->tv_sec == 0) && (time->tv_nsec == 0) ) 4a278: 2412 movel %a2@,%d2 <== NOT EXECUTED 4a27a: 6606 bnes 4a282 <_Timespec_To_ticks+0x16> <== NOT EXECUTED 4a27c: 4aaa 0004 tstl %a2@(4) <== NOT EXECUTED 4a280: 673e beqs 4a2c0 <_Timespec_To_ticks+0x54> <== NOT EXECUTED return 0; ticks = time->tv_sec * TOD_TICKS_PER_SECOND; 4a282: 4eb9 0004 c98c jsr 4c98c <== NOT EXECUTED ticks += time->tv_nsec / rtems_configuration_get_nanoseconds_per_tick(); 4a288: 2239 0005 ed80 movel 5ed80 ,%d1 <== NOT EXECUTED 4a28e: 263c 0000 03e8 movel #1000,%d3 <== NOT EXECUTED 4a294: 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; 4a298: 4c02 0800 mulsl %d2,%d0 <== NOT EXECUTED ticks += time->tv_nsec / rtems_configuration_get_nanoseconds_per_tick(); 4a29c: 262a 0004 movel %a2@(4),%d3 <== NOT EXECUTED 4a2a0: 4c41 3003 remul %d1,%d3,%d3 <== NOT EXECUTED 4a2a4: d083 addl %d3,%d0 <== NOT EXECUTED if (ticks) 4a2a6: 670a beqs 4a2b2 <_Timespec_To_ticks+0x46> <== NOT EXECUTED return ticks; return 1; } 4a2a8: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 4a2ae: 4e5e unlk %fp <== NOT EXECUTED 4a2b0: 4e75 rts <== NOT EXECUTED ticks += time->tv_nsec / rtems_configuration_get_nanoseconds_per_tick(); if (ticks) return ticks; return 1; 4a2b2: 103c 0001 moveb #1,%d0 <== NOT EXECUTED } 4a2b6: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 4a2bc: 4e5e unlk %fp <== NOT EXECUTED 4a2be: 4e75 rts <== NOT EXECUTED ) { uint32_t ticks; if ( (time->tv_sec == 0) && (time->tv_nsec == 0) ) return 0; 4a2c0: 4280 clrl %d0 <== NOT EXECUTED if (ticks) return ticks; return 1; } 4a2c2: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 4a2c8: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 0004963a <_User_extensions_Fatal>: void _User_extensions_Fatal ( Internal_errors_Source the_source, bool is_internal, Internal_errors_t the_error ) { 4963a: 4e56 fff0 linkw %fp,#-16 4963e: 48d7 041c moveml %d2-%d4/%a2,%sp@ 49642: 242e 0008 movel %fp@(8),%d2 49646: 262e 0010 movel %fp@(16),%d3 Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; 4964a: 2479 0005 e5e8 moveal 5e5e8 <_User_extensions_List+0x8>,%a2 void _User_extensions_Fatal ( Internal_errors_Source the_source, bool is_internal, Internal_errors_t the_error ) { 49650: 182e 000f moveb %fp@(15),%d4 Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; 49654: b5fc 0005 e5e0 cmpal #386528,%a2 4965a: 6726 beqs 49682 <_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 ); 4965c: 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 ) 49662: 206a 0030 moveal %a2@(48),%a0 49666: 4a88 tstl %a0 49668: 670c beqs 49676 <_User_extensions_Fatal+0x3c> (*the_extension->Callouts.fatal)( the_source, is_internal, the_error ); 4966a: 2f03 movel %d3,%sp@- 4966c: 2f04 movel %d4,%sp@- 4966e: 2f02 movel %d2,%sp@- 49670: 4e90 jsr %a0@ 49672: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; !_Chain_Is_head( &_User_extensions_List, the_node ) ; the_node = the_node->previous ) { 49676: 246a 0004 moveal %a2@(4),%a2 ) { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; 4967a: b5fc 0005 e5e0 cmpal #386528,%a2 49680: 66e0 bnes 49662 <_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 ); } } 49682: 4cee 041c fff0 moveml %fp@(-16),%d2-%d4/%a2 <== NOT EXECUTED 49688: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 000494f8 <_User_extensions_Handler_initialization>: #include #include #include void _User_extensions_Handler_initialization(void) { 494f8: 4e56 ffec linkw %fp,#-20 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 494fc: 203c 0005 e5e4 movel #386532,%d0 49502: 23c0 0005 e5e0 movel %d0,5e5e0 <_User_extensions_List> the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 49508: 203c 0005 e5e0 movel #386528,%d0 4950e: 23c0 0005 e5e8 movel %d0,5e5e8 <_User_extensions_List+0x8> */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 49514: 203c 0005 e474 movel #386164,%d0 4951a: 23c0 0005 e470 movel %d0,5e470 <_User_extensions_Switches_list> the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 49520: 203c 0005 e470 movel #386160,%d0 RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 49526: 42b9 0005 e5e4 clrl 5e5e4 <_User_extensions_List+0x4> 4952c: 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; 49530: 2439 0005 cc7a movel 5cc7a ,%d2 initial_extensions = Configuration.User_extension_table; 49536: 2639 0005 cc7e movel 5cc7e ,%d3 4953c: 42b9 0005 e474 clrl 5e474 <_User_extensions_Switches_list+0x4> the_chain->last = _Chain_Head(the_chain); 49542: 23c0 0005 e478 movel %d0,5e478 <_User_extensions_Switches_list+0x8> _Chain_Initialize_empty( &_User_extensions_List ); _Chain_Initialize_empty( &_User_extensions_Switches_list ); if ( initial_extensions ) { 49548: 4a83 tstl %d3 4954a: 6764 beqs 495b0 <_User_extensions_Handler_initialization+0xb8><== NEVER TAKEN extension = (User_extensions_Control *) _Workspace_Allocate_or_fatal_error( 4954c: 7834 moveq #52,%d4 4954e: 4c02 4800 mulsl %d2,%d4 49552: 2f04 movel %d4,%sp@- 49554: 4eb9 0004 9aae jsr 49aae <_Workspace_Allocate_or_fatal_error> 4955a: 2440 moveal %d0,%a2 number_of_extensions * sizeof( User_extensions_Control ) ); memset ( 4955c: 2f04 movel %d4,%sp@- 4955e: 42a7 clrl %sp@- 49560: 2f00 movel %d0,%sp@- 49562: 4eb9 0004 e138 jsr 4e138 extension, 0, number_of_extensions * sizeof( User_extensions_Control ) ); for ( i = 0 ; i < number_of_extensions ; i++ ) { 49568: 4fef 0010 lea %sp@(16),%sp 4956c: 4a82 tstl %d2 4956e: 6740 beqs 495b0 <_User_extensions_Handler_initialization+0xb8><== NEVER TAKEN 49570: 4284 clrl %d4 49572: 47f9 0004 c1f0 lea 4c1f0 <_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; 49578: 2043 moveal %d3,%a0 4957a: 5284 addql #1,%d4 4957c: 0683 0000 0020 addil #32,%d3 49582: 2558 0014 movel %a0@+,%a2@(20) 49586: 2558 0018 movel %a0@+,%a2@(24) 4958a: 2558 001c movel %a0@+,%a2@(28) 4958e: 2558 0020 movel %a0@+,%a2@(32) 49592: 2558 0024 movel %a0@+,%a2@(36) 49596: 2558 0028 movel %a0@+,%a2@(40) 4959a: 2558 002c movel %a0@+,%a2@(44) 4959e: 2550 0030 movel %a0@,%a2@(48) _User_extensions_Add_set( extension ); 495a2: 2f0a movel %a2,%sp@- _User_extensions_Add_set_with_table (extension, &initial_extensions[i]); extension++; 495a4: 45ea 0034 lea %a2@(52),%a2 495a8: 4e93 jsr %a3@ extension, 0, number_of_extensions * sizeof( User_extensions_Control ) ); for ( i = 0 ; i < number_of_extensions ; i++ ) { 495aa: 588f addql #4,%sp 495ac: b882 cmpl %d2,%d4 495ae: 65c8 bcss 49578 <_User_extensions_Handler_initialization+0x80> _User_extensions_Add_set_with_table (extension, &initial_extensions[i]); extension++; } } } 495b0: 4cee 0c1c ffec moveml %fp@(-20),%d2-%d4/%a2-%a3 495b6: 4e5e unlk %fp ... =============================================================================== 0004adb8 <_User_extensions_Remove_set>: #include void _User_extensions_Remove_set ( User_extensions_Control *the_extension ) { 4adb8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4adbc: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4adbe: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED _Chain_Extract( &the_extension->Node ); 4adc2: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4adc4: 4eb9 0004 85b0 jsr 485b0 <_Chain_Extract> <== NOT EXECUTED /* * If a switch handler is present, remove it. */ if ( the_extension->Callouts.thread_switch != NULL ) 4adca: 588f addql #4,%sp <== NOT EXECUTED 4adcc: 4aaa 0024 tstl %a2@(36) <== NOT EXECUTED 4add0: 6712 beqs 4ade4 <_User_extensions_Remove_set+0x2c><== NOT EXECUTED _Chain_Extract( &the_extension->Switch.Node ); 4add2: 508a addql #8,%a2 <== NOT EXECUTED 4add4: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED } 4add8: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4addc: 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 ); 4adde: 4ef9 0004 85b0 jmp 485b0 <_Chain_Extract> <== NOT EXECUTED } 4ade4: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4ade8: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 000495bc <_User_extensions_Thread_begin>: #include void _User_extensions_Thread_begin ( Thread_Control *executing ) { 495bc: 4e56 0000 linkw %fp,#0 495c0: 2f0a movel %a2,%sp@- Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ; 495c2: 2479 0005 e5e0 moveal 5e5e0 <_User_extensions_List>,%a2 #include void _User_extensions_Thread_begin ( Thread_Control *executing ) { 495c8: 2f02 movel %d2,%sp@- 495ca: 242e 0008 movel %fp@(8),%d2 Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ; 495ce: b5fc 0005 e5e4 cmpal #386532,%a2 495d4: 6718 beqs 495ee <_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 ) 495d6: 206a 0028 moveal %a2@(40),%a0 495da: 4a88 tstl %a0 495dc: 6706 beqs 495e4 <_User_extensions_Thread_begin+0x28> (*the_extension->Callouts.thread_begin)( executing ); 495de: 2f02 movel %d2,%sp@- 495e0: 4e90 jsr %a0@ 495e2: 588f addql #4,%sp Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ; !_Chain_Is_tail( &_User_extensions_List, the_node ) ; the_node = the_node->next ) { 495e4: 2452 moveal %a2@,%a2 ) { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ; 495e6: b5fc 0005 e5e4 cmpal #386532,%a2 495ec: 66e8 bnes 495d6 <_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 ); } } 495ee: 242e fff8 movel %fp@(-8),%d2 495f2: 246e fffc moveal %fp@(-4),%a2 495f6: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 0004968c <_User_extensions_Thread_create>: #include bool _User_extensions_Thread_create ( Thread_Control *the_thread ) { 4968c: 4e56 0000 linkw %fp,#0 49690: 2f0a movel %a2,%sp@- Chain_Node *the_node; User_extensions_Control *the_extension; bool status; for ( the_node = _User_extensions_List.first ; 49692: 2479 0005 e5e0 moveal 5e5e0 <_User_extensions_List>,%a2 #include bool _User_extensions_Thread_create ( Thread_Control *the_thread ) { 49698: 2f02 movel %d2,%sp@- 4969a: 242e 0008 movel %fp@(8),%d2 Chain_Node *the_node; User_extensions_Control *the_extension; bool status; for ( the_node = _User_extensions_List.first ; 4969e: b5fc 0005 e5e4 cmpal #386532,%a2 496a4: 6722 beqs 496c8 <_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 ) { 496a6: 206a 0014 moveal %a2@(20),%a0 496aa: 4a88 tstl %a0 496ac: 6710 beqs 496be <_User_extensions_Thread_create+0x32> status = (*the_extension->Callouts.thread_create)( 496ae: 2f02 movel %d2,%sp@- 496b0: 2f39 0005 e630 movel 5e630 <_Per_CPU_Information+0xc>,%sp@- 496b6: 4e90 jsr %a0@ _Thread_Executing, the_thread ); if ( !status ) 496b8: 508f addql #8,%sp 496ba: 4a00 tstb %d0 496bc: 6718 beqs 496d6 <_User_extensions_Thread_create+0x4a><== NEVER TAKEN User_extensions_Control *the_extension; bool status; for ( the_node = _User_extensions_List.first ; !_Chain_Is_tail( &_User_extensions_List, the_node ) ; the_node = the_node->next ) { 496be: 2452 moveal %a2@,%a2 { Chain_Node *the_node; User_extensions_Control *the_extension; bool status; for ( the_node = _User_extensions_List.first ; 496c0: b5fc 0005 e5e4 cmpal #386532,%a2 496c6: 66de bnes 496a6 <_User_extensions_Thread_create+0x1a> return false; } } return true; } 496c8: 242e fff8 movel %fp@(-8),%d2 496cc: 246e fffc moveal %fp@(-4),%a2 496d0: 4e5e unlk %fp if ( !status ) return false; } } return true; 496d2: 7001 moveq #1,%d0 } 496d4: 4e75 rts 496d6: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 496da: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 496de: 4e5e unlk %fp <== NOT EXECUTED status = (*the_extension->Callouts.thread_create)( _Thread_Executing, the_thread ); if ( !status ) return false; 496e0: 4200 clrb %d0 <== NOT EXECUTED } } return true; } =============================================================================== 000496e4 <_User_extensions_Thread_delete>: #include void _User_extensions_Thread_delete ( Thread_Control *the_thread ) { 496e4: 4e56 0000 linkw %fp,#0 496e8: 2f0a movel %a2,%sp@- Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; 496ea: 2479 0005 e5e8 moveal 5e5e8 <_User_extensions_List+0x8>,%a2 #include void _User_extensions_Thread_delete ( Thread_Control *the_thread ) { 496f0: 2f02 movel %d2,%sp@- 496f2: 242e 0008 movel %fp@(8),%d2 Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; 496f6: b5fc 0005 e5e0 cmpal #386528,%a2 496fc: 6720 beqs 4971e <_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 ) 496fe: 206a 0020 moveal %a2@(32),%a0 49702: 4a88 tstl %a0 49704: 670c beqs 49712 <_User_extensions_Thread_delete+0x2e><== NEVER TAKEN (*the_extension->Callouts.thread_delete)( 49706: 2f02 movel %d2,%sp@- 49708: 2f39 0005 e630 movel 5e630 <_Per_CPU_Information+0xc>,%sp@- 4970e: 4e90 jsr %a0@ 49710: 508f addql #8,%sp Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; !_Chain_Is_head( &_User_extensions_List, the_node ) ; the_node = the_node->previous ) { 49712: 246a 0004 moveal %a2@(4),%a2 ) { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; 49716: b5fc 0005 e5e0 cmpal #386528,%a2 4971c: 66e0 bnes 496fe <_User_extensions_Thread_delete+0x1a> (*the_extension->Callouts.thread_delete)( _Thread_Executing, the_thread ); } } 4971e: 242e fff8 movel %fp@(-8),%d2 49722: 246e fffc moveal %fp@(-4),%a2 49726: 4e5e unlk %fp ... =============================================================================== 000495fa <_User_extensions_Thread_exitted>: void _User_extensions_Thread_exitted ( Thread_Control *executing ) { 495fa: 4e56 0000 linkw %fp,#0 495fe: 2f0a movel %a2,%sp@- Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; 49600: 2479 0005 e5e8 moveal 5e5e8 <_User_extensions_List+0x8>,%a2 } void _User_extensions_Thread_exitted ( Thread_Control *executing ) { 49606: 2f02 movel %d2,%sp@- 49608: 242e 0008 movel %fp@(8),%d2 Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; 4960c: b5fc 0005 e5e0 cmpal #386528,%a2 49612: 671a beqs 4962e <_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 ) 49614: 206a 002c moveal %a2@(44),%a0 49618: 4a88 tstl %a0 4961a: 6706 beqs 49622 <_User_extensions_Thread_exitted+0x28><== ALWAYS TAKEN (*the_extension->Callouts.thread_exitted)( executing ); 4961c: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4961e: 4e90 jsr %a0@ <== NOT EXECUTED 49620: 588f addql #4,%sp <== NOT EXECUTED Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; !_Chain_Is_head( &_User_extensions_List, the_node ) ; the_node = the_node->previous ) { 49622: 246a 0004 moveal %a2@(4),%a2 ) { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; 49626: b5fc 0005 e5e0 cmpal #386528,%a2 4962c: 66e6 bnes 49614 <_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 ); } } 4962e: 242e fff8 movel %fp@(-8),%d2 49632: 246e fffc moveal %fp@(-4),%a2 49636: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 0004a3d0 <_User_extensions_Thread_restart>: #include void _User_extensions_Thread_restart ( Thread_Control *the_thread ) { 4a3d0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4a3d4: 2f0a movel %a2,%sp@- <== NOT EXECUTED Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ; 4a3d6: 2479 0005 f578 moveal 5f578 <_User_extensions_List>,%a2 <== NOT EXECUTED #include void _User_extensions_Thread_restart ( Thread_Control *the_thread ) { 4a3dc: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4a3de: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ; 4a3e2: b5fc 0005 f57c cmpal #390524,%a2 <== NOT EXECUTED 4a3e8: 671e beqs 4a408 <_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 ) 4a3ea: 206a 001c moveal %a2@(28),%a0 <== NOT EXECUTED 4a3ee: 4a88 tstl %a0 <== NOT EXECUTED 4a3f0: 670c beqs 4a3fe <_User_extensions_Thread_restart+0x2e><== NOT EXECUTED (*the_extension->Callouts.thread_restart)( 4a3f2: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4a3f4: 2f39 0005 f5c8 movel 5f5c8 <_Per_CPU_Information+0xc>,%sp@-<== NOT EXECUTED 4a3fa: 4e90 jsr %a0@ <== NOT EXECUTED 4a3fc: 508f addql #8,%sp <== NOT EXECUTED Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ; !_Chain_Is_tail( &_User_extensions_List, the_node ) ; the_node = the_node->next ) { 4a3fe: 2452 moveal %a2@,%a2 <== NOT EXECUTED ) { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ; 4a400: b5fc 0005 f57c cmpal #390524,%a2 <== NOT EXECUTED 4a406: 66e2 bnes 4a3ea <_User_extensions_Thread_restart+0x1a><== NOT EXECUTED (*the_extension->Callouts.thread_restart)( _Thread_Executing, the_thread ); } } 4a408: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 4a40c: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4a410: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 0004972c <_User_extensions_Thread_start>: #include void _User_extensions_Thread_start ( Thread_Control *the_thread ) { 4972c: 4e56 0000 linkw %fp,#0 49730: 2f0a movel %a2,%sp@- Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ; 49732: 2479 0005 e5e0 moveal 5e5e0 <_User_extensions_List>,%a2 #include void _User_extensions_Thread_start ( Thread_Control *the_thread ) { 49738: 2f02 movel %d2,%sp@- 4973a: 242e 0008 movel %fp@(8),%d2 Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ; 4973e: b5fc 0005 e5e4 cmpal #386532,%a2 49744: 671e beqs 49764 <_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 ) 49746: 206a 0018 moveal %a2@(24),%a0 4974a: 4a88 tstl %a0 4974c: 670c beqs 4975a <_User_extensions_Thread_start+0x2e> (*the_extension->Callouts.thread_start)( 4974e: 2f02 movel %d2,%sp@- 49750: 2f39 0005 e630 movel 5e630 <_Per_CPU_Information+0xc>,%sp@- 49756: 4e90 jsr %a0@ 49758: 508f addql #8,%sp Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ; !_Chain_Is_tail( &_User_extensions_List, the_node ) ; the_node = the_node->next ) { 4975a: 2452 moveal %a2@,%a2 ) { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ; 4975c: b5fc 0005 e5e4 cmpal #386532,%a2 49762: 66e2 bnes 49746 <_User_extensions_Thread_start+0x1a> (*the_extension->Callouts.thread_start)( _Thread_Executing, the_thread ); } } 49764: 242e fff8 movel %fp@(-8),%d2 49768: 246e fffc moveal %fp@(-4),%a2 4976c: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00049770 <_User_extensions_Thread_switch>: void _User_extensions_Thread_switch ( Thread_Control *executing, Thread_Control *heir ) { 49770: 4e56 fff4 linkw %fp,#-12 49774: 48d7 040c moveml %d2-%d3/%a2,%sp@ 49778: 262e 0008 movel %fp@(8),%d3 4977c: 242e 000c movel %fp@(12),%d2 Chain_Node *the_node; User_extensions_Switch_control *the_extension_switch; for ( the_node = _User_extensions_Switches_list.first ; 49780: 2479 0005 e470 moveal 5e470 <_User_extensions_Switches_list>,%a2 49786: b5fc 0005 e474 cmpal #386164,%a2 4978c: 6716 beqs 497a4 <_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 ); 4978e: 2f02 movel %d2,%sp@- 49790: 2f03 movel %d3,%sp@- 49792: 206a 0008 moveal %a2@(8),%a0 49796: 4e90 jsr %a0@ Chain_Node *the_node; User_extensions_Switch_control *the_extension_switch; for ( the_node = _User_extensions_Switches_list.first ; !_Chain_Is_tail( &_User_extensions_Switches_list, the_node ) ; the_node = the_node->next ) { 49798: 2452 moveal %a2@,%a2 ) { Chain_Node *the_node; User_extensions_Switch_control *the_extension_switch; for ( the_node = _User_extensions_Switches_list.first ; 4979a: 508f addql #8,%sp 4979c: b5fc 0005 e474 cmpal #386164,%a2 497a2: 66ea bnes 4978e <_User_extensions_Thread_switch+0x1e><== NEVER TAKEN the_extension_switch = (User_extensions_Switch_control *) the_node; (*the_extension_switch->thread_switch)( executing, heir ); } } 497a4: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 497aa: 4e5e unlk %fp ... =============================================================================== 0004b41c <_Watchdog_Adjust>: void _Watchdog_Adjust( Chain_Control *header, Watchdog_Adjust_directions direction, Watchdog_Interval units ) { 4b41c: 4e56 ffe8 linkw %fp,#-24 <== NOT EXECUTED 4b420: 226e 000c moveal %fp@(12),%a1 <== NOT EXECUTED 4b424: 48d7 1c1c moveml %d2-%d4/%a2-%a4,%sp@ <== NOT EXECUTED ISR_Level level; _ISR_Disable( level ); 4b428: 283c 0000 0700 movel #1792,%d4 <== NOT EXECUTED 4b42e: 2004 movel %d4,%d0 <== NOT EXECUTED void _Watchdog_Adjust( Chain_Control *header, Watchdog_Adjust_directions direction, Watchdog_Interval units ) { 4b430: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED 4b434: 242e 0010 movel %fp@(16),%d2 <== NOT EXECUTED ISR_Level level; _ISR_Disable( level ); 4b438: 40c1 movew %sr,%d1 <== NOT EXECUTED 4b43a: 8081 orl %d1,%d0 <== NOT EXECUTED 4b43c: 46c0 movew %d0,%sr <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 4b43e: 244b moveal %a3,%a2 <== NOT EXECUTED 4b440: 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 ) ) { 4b442: b5c8 cmpal %a0,%a2 <== NOT EXECUTED 4b444: 6748 beqs 4b48e <_Watchdog_Adjust+0x72> <== NOT EXECUTED switch ( direction ) { 4b446: 4a89 tstl %a1 <== NOT EXECUTED 4b448: 6650 bnes 4b49a <_Watchdog_Adjust+0x7e> <== NOT EXECUTED case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; break; case WATCHDOG_FORWARD: while ( units ) { 4b44a: 4a82 tstl %d2 <== NOT EXECUTED 4b44c: 6740 beqs 4b48e <_Watchdog_Adjust+0x72> <== NOT EXECUTED if ( units < _Watchdog_First( header )->delta_interval ) { 4b44e: 2628 0010 movel %a0@(16),%d3 <== NOT EXECUTED 4b452: 49f9 0004 b698 lea 4b698 <_Watchdog_Tickle>,%a4 <== NOT EXECUTED 4b458: b682 cmpl %d2,%d3 <== NOT EXECUTED 4b45a: 622c bhis 4b488 <_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; 4b45c: 7001 moveq #1,%d0 <== NOT EXECUTED 4b45e: 2140 0010 movel %d0,%a0@(16) <== NOT EXECUTED _ISR_Enable( level ); 4b462: 46c1 movew %d1,%sr <== NOT EXECUTED _Watchdog_Tickle( header ); 4b464: 2f0b movel %a3,%sp@- <== NOT EXECUTED 4b466: 4e94 jsr %a4@ <== NOT EXECUTED _ISR_Disable( level ); 4b468: 2004 movel %d4,%d0 <== NOT EXECUTED 4b46a: 40c1 movew %sr,%d1 <== NOT EXECUTED 4b46c: 8081 orl %d1,%d0 <== NOT EXECUTED 4b46e: 46c0 movew %d0,%sr <== NOT EXECUTED if ( _Chain_Is_empty( header ) ) 4b470: 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; 4b472: 9483 subl %d3,%d2 <== NOT EXECUTED 4b474: 2013 movel %a3@,%d0 <== NOT EXECUTED RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_First( Chain_Control *header ) { return ( (Watchdog_Control *) header->first ); 4b476: 2040 moveal %d0,%a0 <== NOT EXECUTED _Watchdog_Tickle( header ); _ISR_Disable( level ); if ( _Chain_Is_empty( header ) ) 4b478: b08a cmpl %a2,%d0 <== NOT EXECUTED 4b47a: 6712 beqs 4b48e <_Watchdog_Adjust+0x72> <== NOT EXECUTED switch ( direction ) { case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; break; case WATCHDOG_FORWARD: while ( units ) { 4b47c: 4a82 tstl %d2 <== NOT EXECUTED 4b47e: 670e beqs 4b48e <_Watchdog_Adjust+0x72> <== NOT EXECUTED if ( units < _Watchdog_First( header )->delta_interval ) { 4b480: 2628 0010 movel %a0@(16),%d3 <== NOT EXECUTED 4b484: b483 cmpl %d3,%d2 <== NOT EXECUTED 4b486: 64d4 bccs 4b45c <_Watchdog_Adjust+0x40> <== NOT EXECUTED _Watchdog_First( header )->delta_interval -= units; 4b488: 9682 subl %d2,%d3 <== NOT EXECUTED 4b48a: 2143 0010 movel %d3,%a0@(16) <== NOT EXECUTED } break; } } _ISR_Enable( level ); 4b48e: 46c1 movew %d1,%sr <== NOT EXECUTED } 4b490: 4cee 1c1c ffe8 moveml %fp@(-24),%d2-%d4/%a2-%a4 <== NOT EXECUTED 4b496: 4e5e unlk %fp <== NOT EXECUTED 4b498: 4e75 rts <== NOT EXECUTED * unmodified across that call. * * Till Straumann, 7/2003 */ if ( !_Chain_Is_empty( header ) ) { switch ( direction ) { 4b49a: 7001 moveq #1,%d0 <== NOT EXECUTED 4b49c: b089 cmpl %a1,%d0 <== NOT EXECUTED 4b49e: 66ee bnes 4b48e <_Watchdog_Adjust+0x72> <== NOT EXECUTED case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; 4b4a0: d5a8 0010 addl %d2,%a0@(16) <== NOT EXECUTED } break; } } _ISR_Enable( level ); 4b4a4: 46c1 movew %d1,%sr <== NOT EXECUTED } 4b4a6: 4cee 1c1c ffe8 moveml %fp@(-24),%d2-%d4/%a2-%a4 <== NOT EXECUTED 4b4ac: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 0005d4f4 <_Watchdog_Adjust_to_chain>: Chain_Control *header, Watchdog_Interval units_arg, Chain_Control *to_fire ) { 5d4f4: 4e56 ffe4 linkw %fp,#-28 <== NOT EXECUTED 5d4f8: 222e 0008 movel %fp@(8),%d1 <== NOT EXECUTED 5d4fc: 48d7 3c1c moveml %d2-%d4/%a2-%a5,%sp@ <== NOT EXECUTED 5d500: 282e 000c movel %fp@(12),%d4 <== NOT EXECUTED 5d504: 226e 0010 moveal %fp@(16),%a1 <== NOT EXECUTED Watchdog_Interval units = units_arg; ISR_Level level; Watchdog_Control *first; if ( units <= 0 ) { 5d508: 6760 beqs 5d56a <_Watchdog_Adjust_to_chain+0x76> <== NOT EXECUTED return; } _ISR_Disable( level ); 5d50a: 263c 0000 0700 movel #1792,%d3 <== NOT EXECUTED 5d510: 2003 movel %d3,%d0 <== NOT EXECUTED 5d512: 40c2 movew %sr,%d2 <== NOT EXECUTED 5d514: 8082 orl %d2,%d0 <== NOT EXECUTED 5d516: 46c0 movew %d0,%sr <== NOT EXECUTED 5d518: 2a41 moveal %d1,%a5 <== NOT EXECUTED 5d51a: 205d moveal %a5@+,%a0 <== NOT EXECUTED while ( 1 ) { if ( units <= 0 ) { break; } if ( _Chain_Is_empty( header ) ) { 5d51c: bbc8 cmpal %a0,%a5 <== NOT EXECUTED 5d51e: 6748 beqs 5d568 <_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 ) { 5d520: 2028 0010 movel %a0@(16),%d0 <== NOT EXECUTED 5d524: b880 cmpl %d0,%d4 <== NOT EXECUTED 5d526: 654a bcss 5d572 <_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; 5d528: 9880 subl %d0,%d4 <== NOT EXECUTED first->delta_interval = 0; 5d52a: 42a8 0010 clrl %a0@(16) <== NOT EXECUTED ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; 5d52e: 2650 moveal %a0@,%a3 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 5d530: 2009 movel %a1,%d0 <== NOT EXECUTED 5d532: 5880 addql #4,%d0 <== NOT EXECUTED { Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; 5d534: 2868 0004 moveal %a0@(4),%a4 <== NOT EXECUTED ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); old_last_node = the_chain->last; 5d538: 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; 5d53c: 288b movel %a3,%a4@ <== NOT EXECUTED Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; next->previous = previous; 5d53e: 274c 0004 movel %a4,%a3@(4) <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 5d542: 2080 movel %d0,%a0@ <== NOT EXECUTED { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); old_last_node = the_chain->last; the_chain->last = the_node; 5d544: 2348 0008 movel %a0,%a1@(8) <== NOT EXECUTED old_last_node->next = the_node; 5d548: 2488 movel %a0,%a2@ <== NOT EXECUTED the_node->previous = old_last_node; 5d54a: 214a 0004 movel %a2,%a0@(4) <== NOT EXECUTED while ( 1 ) { _Chain_Extract_unprotected( &first->Node ); _Chain_Append_unprotected( to_fire, &first->Node ); _ISR_Flash( level ); 5d54e: 2003 movel %d3,%d0 <== NOT EXECUTED 5d550: 46c2 movew %d2,%sr <== NOT EXECUTED 5d552: 8082 orl %d2,%d0 <== NOT EXECUTED 5d554: 46c0 movew %d0,%sr <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 5d556: 2441 moveal %d1,%a2 <== NOT EXECUTED 5d558: 2052 moveal %a2@,%a0 <== NOT EXECUTED if ( _Chain_Is_empty( header ) ) 5d55a: b1cd cmpal %a5,%a0 <== NOT EXECUTED 5d55c: 6706 beqs 5d564 <_Watchdog_Adjust_to_chain+0x70> <== NOT EXECUTED break; first = _Watchdog_First( header ); if ( first->delta_interval != 0 ) 5d55e: 4aa8 0010 tstl %a0@(16) <== NOT EXECUTED 5d562: 67ca beqs 5d52e <_Watchdog_Adjust_to_chain+0x3a> <== NOT EXECUTED } _ISR_Disable( level ); while ( 1 ) { if ( units <= 0 ) { 5d564: 4a84 tstl %d4 <== NOT EXECUTED 5d566: 66b4 bnes 5d51c <_Watchdog_Adjust_to_chain+0x28> <== NOT EXECUTED if ( first->delta_interval != 0 ) break; } } _ISR_Enable( level ); 5d568: 46c2 movew %d2,%sr <== NOT EXECUTED } 5d56a: 4cd7 3c1c moveml %sp@,%d2-%d4/%a2-%a5 <== NOT EXECUTED 5d56e: 4e5e unlk %fp <== NOT EXECUTED 5d570: 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; 5d572: 9084 subl %d4,%d0 <== NOT EXECUTED 5d574: 2140 0010 movel %d0,%a0@(16) <== NOT EXECUTED if ( first->delta_interval != 0 ) break; } } _ISR_Enable( level ); 5d578: 46c2 movew %d2,%sr <== NOT EXECUTED 5d57a: 60ee bras 5d56a <_Watchdog_Adjust_to_chain+0x76> <== NOT EXECUTED =============================================================================== 000497b0 <_Watchdog_Insert>: void _Watchdog_Insert( Chain_Control *header, Watchdog_Control *the_watchdog ) { 497b0: 4e56 ffec linkw %fp,#-20 497b4: 226e 000c moveal %fp@(12),%a1 497b8: 48d7 043c moveml %d2-%d5/%a2,%sp@ 497bc: 246e 0008 moveal %fp@(8),%a2 Watchdog_Interval delta_interval; insert_isr_nest_level = _ISR_Nest_level; _ISR_Disable( level ); 497c0: 2a3c 0000 0700 movel #1792,%d5 497c6: 2005 movel %d5,%d0 Watchdog_Control *after; uint32_t insert_isr_nest_level; Watchdog_Interval delta_interval; insert_isr_nest_level = _ISR_Nest_level; 497c8: 2839 0005 e62c movel 5e62c <_Per_CPU_Information+0x8>,%d4 _ISR_Disable( level ); 497ce: 40c3 movew %sr,%d3 497d0: 8083 orl %d3,%d0 497d2: 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 ) { 497d4: 4aa9 0008 tstl %a1@(8) 497d8: 6600 00c6 bnew 498a0 <_Watchdog_Insert+0xf0> _ISR_Enable( level ); return; } the_watchdog->state = WATCHDOG_BEING_INSERTED; _Watchdog_Sync_count++; 497dc: 2039 0005 e594 movel 5e594 <_Watchdog_Sync_count>,%d0 if ( the_watchdog->state != WATCHDOG_INACTIVE ) { _ISR_Enable( level ); return; } the_watchdog->state = WATCHDOG_BEING_INSERTED; 497e2: 7201 moveq #1,%d1 _Watchdog_Sync_count++; 497e4: 5280 addql #1,%d0 if ( the_watchdog->state != WATCHDOG_INACTIVE ) { _ISR_Enable( level ); return; } the_watchdog->state = WATCHDOG_BEING_INSERTED; 497e6: 2341 0008 movel %d1,%a1@(8) _Watchdog_Sync_count++; 497ea: 23c0 0005 e594 movel %d0,5e594 <_Watchdog_Sync_count> restart: delta_interval = the_watchdog->initial; 497f0: 2029 000c movel %a1@(12),%d0 * cache *header!! * * Till Straumann, 7/2003 (gcc-3.2.2 -O4 on powerpc) * */ for ( after = (Watchdog_Control *) ((volatile Chain_Control *)header)->first ; 497f4: 2052 moveal %a2@,%a0 ; after = _Watchdog_Next( after ) ) { if ( delta_interval == 0 || !_Watchdog_Next( after ) ) 497f6: 6764 beqs 4985c <_Watchdog_Insert+0xac> <== NEVER TAKEN 497f8: 4a90 tstl %a0@ 497fa: 6760 beqs 4985c <_Watchdog_Insert+0xac> <== ALWAYS TAKEN break; if ( delta_interval < after->delta_interval ) { 497fc: 2228 0010 movel %a0@(16),%d1 <== NOT EXECUTED 49800: b280 cmpl %d0,%d1 <== NOT EXECUTED 49802: 6252 bhis 49856 <_Watchdog_Insert+0xa6> <== NOT EXECUTED * used around this flash point allowed interrupts to execute * which violated the design assumptions. The critical section * mechanism used here WAS redesigned to address this. */ _ISR_Flash( level ); 49804: 2405 movel %d5,%d2 <== NOT EXECUTED 49806: 46c3 movew %d3,%sr <== NOT EXECUTED 49808: 8483 orl %d3,%d2 <== NOT EXECUTED 4980a: 46c2 movew %d2,%sr <== NOT EXECUTED if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) { 4980c: 7401 moveq #1,%d2 <== NOT EXECUTED 4980e: b4a9 0008 cmpl %a1@(8),%d2 <== NOT EXECUTED 49812: 666e bnes 49882 <_Watchdog_Insert+0xd2> <== NOT EXECUTED goto exit_insert; } if ( _Watchdog_Sync_level > insert_isr_nest_level ) { 49814: 2439 0005 e512 movel 5e512 <_Watchdog_Sync_level>,%d2 <== NOT EXECUTED 4981a: b484 cmpl %d4,%d2 <== NOT EXECUTED 4981c: 6230 bhis 4984e <_Watchdog_Insert+0x9e> <== NOT EXECUTED if ( delta_interval < after->delta_interval ) { after->delta_interval -= delta_interval; break; } delta_interval -= after->delta_interval; 4981e: 9081 subl %d1,%d0 <== NOT EXECUTED exit_insert: _Watchdog_Sync_level = insert_isr_nest_level; _Watchdog_Sync_count--; _ISR_Enable( level ); } 49820: 2050 moveal %a0@,%a0 <== NOT EXECUTED */ for ( after = (Watchdog_Control *) ((volatile Chain_Control *)header)->first ; ; after = _Watchdog_Next( after ) ) { if ( delta_interval == 0 || !_Watchdog_Next( after ) ) 49822: 4a80 tstl %d0 <== NOT EXECUTED 49824: 6736 beqs 4985c <_Watchdog_Insert+0xac> <== NOT EXECUTED 49826: 4a90 tstl %a0@ <== NOT EXECUTED 49828: 6732 beqs 4985c <_Watchdog_Insert+0xac> <== NOT EXECUTED break; if ( delta_interval < after->delta_interval ) { 4982a: 2228 0010 movel %a0@(16),%d1 <== NOT EXECUTED 4982e: b081 cmpl %d1,%d0 <== NOT EXECUTED 49830: 6524 bcss 49856 <_Watchdog_Insert+0xa6> <== NOT EXECUTED * used around this flash point allowed interrupts to execute * which violated the design assumptions. The critical section * mechanism used here WAS redesigned to address this. */ _ISR_Flash( level ); 49832: 2405 movel %d5,%d2 <== NOT EXECUTED 49834: 46c3 movew %d3,%sr <== NOT EXECUTED 49836: 8483 orl %d3,%d2 <== NOT EXECUTED 49838: 46c2 movew %d2,%sr <== NOT EXECUTED if ( delta_interval < after->delta_interval ) { after->delta_interval -= delta_interval; break; } delta_interval -= after->delta_interval; 4983a: 9081 subl %d1,%d0 <== NOT EXECUTED * mechanism used here WAS redesigned to address this. */ _ISR_Flash( level ); if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) { 4983c: 7201 moveq #1,%d1 <== NOT EXECUTED 4983e: b2a9 0008 cmpl %a1@(8),%d1 <== NOT EXECUTED 49842: 663e bnes 49882 <_Watchdog_Insert+0xd2> <== NOT EXECUTED goto exit_insert; } if ( _Watchdog_Sync_level > insert_isr_nest_level ) { 49844: 2239 0005 e512 movel 5e512 <_Watchdog_Sync_level>,%d1 <== NOT EXECUTED 4984a: b284 cmpl %d4,%d1 <== NOT EXECUTED 4984c: 63d2 blss 49820 <_Watchdog_Insert+0x70> <== NOT EXECUTED _Watchdog_Sync_level = insert_isr_nest_level; 4984e: 23c4 0005 e512 movel %d4,5e512 <_Watchdog_Sync_level> <== NOT EXECUTED goto restart; 49854: 609a bras 497f0 <_Watchdog_Insert+0x40> <== NOT EXECUTED if ( delta_interval == 0 || !_Watchdog_Next( after ) ) break; if ( delta_interval < after->delta_interval ) { after->delta_interval -= delta_interval; 49856: 9280 subl %d0,%d1 <== NOT EXECUTED 49858: 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 ); 4985c: 2068 0004 moveal %a0@(4),%a0 RTEMS_INLINE_ROUTINE void _Watchdog_Activate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_ACTIVE; 49860: 7402 moveq #2,%d2 ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; 49862: 2450 moveal %a0@,%a2 } } _Watchdog_Activate( the_watchdog ); the_watchdog->delta_interval = delta_interval; 49864: 2340 0010 movel %d0,%a1@(16) _Chain_Insert_unprotected( after->Node.previous, &the_watchdog->Node ); the_watchdog->start_time = _Watchdog_Ticks_since_boot; 49868: 2039 0005 e598 movel 5e598 <_Watchdog_Ticks_since_boot>,%d0 4986e: 2342 0008 movel %d2,%a1@(8) Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; 49872: 2348 0004 movel %a0,%a1@(4) before_node = after_node->next; after_node->next = the_node; 49876: 2089 movel %a1,%a0@ the_node->next = before_node; before_node->previous = the_node; 49878: 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; 4987c: 228a movel %a2,%a1@ 4987e: 2340 0014 movel %d0,%a1@(20) exit_insert: _Watchdog_Sync_level = insert_isr_nest_level; 49882: 23c4 0005 e512 movel %d4,5e512 <_Watchdog_Sync_level> _Watchdog_Sync_count--; 49888: 2039 0005 e594 movel 5e594 <_Watchdog_Sync_count>,%d0 4988e: 5380 subql #1,%d0 49890: 23c0 0005 e594 movel %d0,5e594 <_Watchdog_Sync_count> _ISR_Enable( level ); 49896: 46c3 movew %d3,%sr } 49898: 4cd7 043c moveml %sp@,%d2-%d5/%a2 4989c: 4e5e unlk %fp 4989e: 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 ); 498a0: 46c3 movew %d3,%sr <== NOT EXECUTED exit_insert: _Watchdog_Sync_level = insert_isr_nest_level; _Watchdog_Sync_count--; _ISR_Enable( level ); } 498a2: 4cd7 043c moveml %sp@,%d2-%d5/%a2 <== NOT EXECUTED 498a6: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 000498f8 <_Watchdog_Remove>: { ISR_Level level; Watchdog_States previous_state; Watchdog_Control *next_watchdog; _ISR_Disable( level ); 498f8: 203c 0000 0700 movel #1792,%d0 */ Watchdog_States _Watchdog_Remove( Watchdog_Control *the_watchdog ) { 498fe: 4e56 0000 linkw %fp,#0 49902: 206e 0008 moveal %fp@(8),%a0 49906: 2f0a movel %a2,%sp@- 49908: 2f02 movel %d2,%sp@- ISR_Level level; Watchdog_States previous_state; Watchdog_Control *next_watchdog; _ISR_Disable( level ); 4990a: 40c1 movew %sr,%d1 4990c: 8081 orl %d1,%d0 4990e: 46c0 movew %d0,%sr previous_state = the_watchdog->state; 49910: 2028 0008 movel %a0@(8),%d0 switch ( previous_state ) { 49914: 7401 moveq #1,%d2 49916: b480 cmpl %d0,%d2 49918: 6764 beqs 4997e <_Watchdog_Remove+0x86> <== NEVER TAKEN 4991a: 6314 blss 49930 <_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; 4991c: 2279 0005 e598 moveal 5e598 <_Watchdog_Ticks_since_boot>,%a1<== NOT EXECUTED 49922: 2149 0018 movel %a1,%a0@(24) <== NOT EXECUTED _ISR_Enable( level ); 49926: 46c1 movew %d1,%sr <== NOT EXECUTED return( previous_state ); } 49928: 241f movel %sp@+,%d2 <== NOT EXECUTED 4992a: 245f moveal %sp@+,%a2 <== NOT EXECUTED 4992c: 4e5e unlk %fp <== NOT EXECUTED 4992e: 4e75 rts <== NOT EXECUTED Watchdog_States previous_state; Watchdog_Control *next_watchdog; _ISR_Disable( level ); previous_state = the_watchdog->state; switch ( previous_state ) { 49930: 143c 0003 moveb #3,%d2 49934: b480 cmpl %d0,%d2 49936: 65e4 bcss 4991c <_Watchdog_Remove+0x24> <== NEVER TAKEN } the_watchdog->stop_time = _Watchdog_Ticks_since_boot; _ISR_Enable( level ); return( previous_state ); } 49938: 2250 moveal %a0@,%a1 break; case WATCHDOG_ACTIVE: case WATCHDOG_REMOVE_IT: the_watchdog->state = WATCHDOG_INACTIVE; 4993a: 42a8 0008 clrl %a0@(8) next_watchdog = _Watchdog_Next( the_watchdog ); if ( _Watchdog_Next(next_watchdog) ) 4993e: 4a91 tstl %a1@ 49940: 6708 beqs 4994a <_Watchdog_Remove+0x52> <== ALWAYS TAKEN next_watchdog->delta_interval += the_watchdog->delta_interval; 49942: 2428 0010 movel %a0@(16),%d2 <== NOT EXECUTED 49946: d5a9 0010 addl %d2,%a1@(16) <== NOT EXECUTED if ( _Watchdog_Sync_count ) 4994a: 2479 0005 e594 moveal 5e594 <_Watchdog_Sync_count>,%a2 49950: 4a8a tstl %a2 49952: 670c beqs 49960 <_Watchdog_Remove+0x68> <== ALWAYS TAKEN _Watchdog_Sync_level = _ISR_Nest_level; 49954: 45f9 0005 e62c lea 5e62c <_Per_CPU_Information+0x8>,%a2 <== NOT EXECUTED 4995a: 23d2 0005 e512 movel %a2@,5e512 <_Watchdog_Sync_level> <== NOT EXECUTED { Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; 49960: 2468 0004 moveal %a0@(4),%a2 next->previous = previous; 49964: 234a 0004 movel %a2,%a1@(4) previous->next = next; 49968: 2489 movel %a1,%a2@ _Chain_Extract_unprotected( &the_watchdog->Node ); break; } the_watchdog->stop_time = _Watchdog_Ticks_since_boot; 4996a: 2279 0005 e598 moveal 5e598 <_Watchdog_Ticks_since_boot>,%a1 49970: 2149 0018 movel %a1,%a0@(24) _ISR_Enable( level ); 49974: 46c1 movew %d1,%sr return( previous_state ); } 49976: 241f movel %sp@+,%d2 49978: 245f moveal %sp@+,%a2 4997a: 4e5e unlk %fp 4997c: 4e75 rts _Watchdog_Sync_level = _ISR_Nest_level; _Chain_Extract_unprotected( &the_watchdog->Node ); break; } the_watchdog->stop_time = _Watchdog_Ticks_since_boot; 4997e: 2279 0005 e598 moveal 5e598 <_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; 49984: 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; 49988: 2149 0018 movel %a1,%a0@(24) <== NOT EXECUTED _ISR_Enable( level ); 4998c: 46c1 movew %d1,%sr <== NOT EXECUTED return( previous_state ); } 4998e: 241f movel %sp@+,%d2 <== NOT EXECUTED 49990: 245f moveal %sp@+,%a2 <== NOT EXECUTED 49992: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 0004ae70 <_Watchdog_Report>: void _Watchdog_Report( const char *name, Watchdog_Control *watch ) { 4ae70: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED printk( 4ae74: 223c 0005 de55 movel #384597,%d1 <== NOT EXECUTED void _Watchdog_Report( const char *name, Watchdog_Control *watch ) { 4ae7a: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED 4ae7e: 48d7 003c moveml %d2-%d5,%sp@ <== NOT EXECUTED 4ae82: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED printk( 4ae86: 2a28 0024 movel %a0@(36),%d5 <== NOT EXECUTED 4ae8a: 2828 0020 movel %a0@(32),%d4 <== NOT EXECUTED 4ae8e: 2628 001c movel %a0@(28),%d3 <== NOT EXECUTED 4ae92: 2428 000c movel %a0@(12),%d2 <== NOT EXECUTED 4ae96: 2268 0010 moveal %a0@(16),%a1 <== NOT EXECUTED 4ae9a: 4a80 tstl %d0 <== NOT EXECUTED 4ae9c: 672a beqs 4aec8 <_Watchdog_Report+0x58> <== NOT EXECUTED 4ae9e: 2f05 movel %d5,%sp@- <== NOT EXECUTED 4aea0: 2f04 movel %d4,%sp@- <== NOT EXECUTED 4aea2: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4aea4: 2f08 movel %a0,%sp@- <== NOT EXECUTED 4aea6: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4aea8: 2f09 movel %a1,%sp@- <== NOT EXECUTED 4aeaa: 2f01 movel %d1,%sp@- <== NOT EXECUTED 4aeac: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4aeae: 4879 0005 dfd6 pea 5dfd6 <_Status_Object_name_errors_to_status+0x4a><== NOT EXECUTED 4aeb4: 4eb9 0004 4874 jsr 44874 <== NOT EXECUTED 4aeba: 4fef 0024 lea %sp@(36),%sp <== NOT EXECUTED watch, watch->routine, watch->id, watch->user_data ); } 4aebe: 4cee 003c fff0 moveml %fp@(-16),%d2-%d5 <== NOT EXECUTED 4aec4: 4e5e unlk %fp <== NOT EXECUTED 4aec6: 4e75 rts <== NOT EXECUTED void _Watchdog_Report( const char *name, Watchdog_Control *watch ) { printk( 4aec8: 2f05 movel %d5,%sp@- <== NOT EXECUTED 4aeca: 223c 0005 de5a movel #384602,%d1 <== NOT EXECUTED 4aed0: 2f04 movel %d4,%sp@- <== NOT EXECUTED 4aed2: 2001 movel %d1,%d0 <== NOT EXECUTED 4aed4: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4aed6: 2f08 movel %a0,%sp@- <== NOT EXECUTED 4aed8: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4aeda: 2f09 movel %a1,%sp@- <== NOT EXECUTED 4aedc: 2f01 movel %d1,%sp@- <== NOT EXECUTED 4aede: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4aee0: 4879 0005 dfd6 pea 5dfd6 <_Status_Object_name_errors_to_status+0x4a><== NOT EXECUTED 4aee6: 4eb9 0004 4874 jsr 44874 <== NOT EXECUTED 4aeec: 4fef 0024 lea %sp@(36),%sp <== NOT EXECUTED watch, watch->routine, watch->id, watch->user_data ); } 4aef0: 4cee 003c fff0 moveml %fp@(-16),%d2-%d5 <== NOT EXECUTED 4aef6: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 0004adf4 <_Watchdog_Report_chain>: ) { ISR_Level level; Chain_Node *node; _ISR_Disable( level ); 4adf4: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED void _Watchdog_Report_chain( const char *name, Chain_Control *header ) { 4adfa: 4e56 ffe8 linkw %fp,#-24 <== NOT EXECUTED 4adfe: 48d7 3c0c moveml %d2-%d3/%a2-%a5,%sp@ <== NOT EXECUTED 4ae02: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED 4ae06: 266e 000c moveal %fp@(12),%a3 <== NOT EXECUTED ISR_Level level; Chain_Node *node; _ISR_Disable( level ); 4ae0a: 40c3 movew %sr,%d3 <== NOT EXECUTED 4ae0c: 8083 orl %d3,%d0 <== NOT EXECUTED 4ae0e: 46c0 movew %d0,%sr <== NOT EXECUTED printk( "Watchdog Chain: %s %p\n", name, header ); 4ae10: 2f0b movel %a3,%sp@- <== NOT EXECUTED 4ae12: 4bf9 0004 4874 lea 44874 ,%a5 <== NOT EXECUTED 4ae18: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4ae1a: 4879 0005 dfa0 pea 5dfa0 <_Status_Object_name_errors_to_status+0x14><== NOT EXECUTED 4ae20: 4e95 jsr %a5@ <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 4ae22: 245b moveal %a3@+,%a2 <== NOT EXECUTED if ( !_Chain_Is_empty( header ) ) { 4ae24: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4ae28: b7ca cmpal %a2,%a3 <== NOT EXECUTED 4ae2a: 672c beqs 4ae58 <_Watchdog_Report_chain+0x64> <== NOT EXECUTED 4ae2c: 49f9 0004 ae70 lea 4ae70 <_Watchdog_Report>,%a4 <== NOT EXECUTED node != _Chain_Tail(header) ; node = node->next ) { Watchdog_Control *watch = (Watchdog_Control *) node; _Watchdog_Report( NULL, watch ); 4ae32: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4ae34: 42a7 clrl %sp@- <== NOT EXECUTED 4ae36: 4e94 jsr %a4@ <== NOT EXECUTED _ISR_Disable( level ); printk( "Watchdog Chain: %s %p\n", name, header ); if ( !_Chain_Is_empty( header ) ) { for ( node = header->first ; node != _Chain_Tail(header) ; node = node->next ) 4ae38: 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 = header->first ; 4ae3a: 508f addql #8,%sp <== NOT EXECUTED 4ae3c: b7ca cmpal %a2,%a3 <== NOT EXECUTED 4ae3e: 66f2 bnes 4ae32 <_Watchdog_Report_chain+0x3e> <== NOT EXECUTED { Watchdog_Control *watch = (Watchdog_Control *) node; _Watchdog_Report( NULL, watch ); } printk( "== end of %s \n", name ); 4ae40: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4ae42: 4879 0005 dfb7 pea 5dfb7 <_Status_Object_name_errors_to_status+0x2b><== NOT EXECUTED 4ae48: 4e95 jsr %a5@ <== NOT EXECUTED 4ae4a: 508f addql #8,%sp <== NOT EXECUTED } else { printk( "Chain is empty\n" ); } _ISR_Enable( level ); 4ae4c: 46c3 movew %d3,%sr <== NOT EXECUTED } 4ae4e: 4cee 3c0c ffe8 moveml %fp@(-24),%d2-%d3/%a2-%a5 <== NOT EXECUTED 4ae54: 4e5e unlk %fp <== NOT EXECUTED 4ae56: 4e75 rts <== NOT EXECUTED _Watchdog_Report( NULL, watch ); } printk( "== end of %s \n", name ); } else { printk( "Chain is empty\n" ); 4ae58: 4879 0005 dfc6 pea 5dfc6 <_Status_Object_name_errors_to_status+0x3a><== NOT EXECUTED 4ae5e: 4e95 jsr %a5@ <== NOT EXECUTED 4ae60: 588f addql #4,%sp <== NOT EXECUTED } _ISR_Enable( level ); 4ae62: 46c3 movew %d3,%sr <== NOT EXECUTED } 4ae64: 4cee 3c0c ffe8 moveml %fp@(-24),%d2-%d3/%a2-%a5 <== NOT EXECUTED 4ae6a: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 00049998 <_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 ); 49998: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED */ void _Watchdog_Tickle( Chain_Control *header ) { 4999e: 4e56 ffe8 linkw %fp,#-24 <== NOT EXECUTED 499a2: 48d7 3c0c moveml %d2-%d3/%a2-%a5,%sp@ <== NOT EXECUTED 499a6: 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 ); 499aa: 40c2 movew %sr,%d2 <== NOT EXECUTED 499ac: 8082 orl %d2,%d0 <== NOT EXECUTED 499ae: 46c0 movew %d0,%sr <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 499b0: 264c moveal %a4,%a3 <== NOT EXECUTED 499b2: 245b moveal %a3@+,%a2 <== NOT EXECUTED if ( _Chain_Is_empty( header ) ) 499b4: b7ca cmpal %a2,%a3 <== NOT EXECUTED 499b6: 673e beqs 499f6 <_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) { 499b8: 202a 0010 movel %a2@(16),%d0 <== NOT EXECUTED 499bc: 4bf9 0004 98f8 lea 498f8 <_Watchdog_Remove>,%a5 <== NOT EXECUTED 499c2: 6708 beqs 499cc <_Watchdog_Tickle+0x34> <== NOT EXECUTED the_watchdog->delta_interval--; 499c4: 5380 subql #1,%d0 <== NOT EXECUTED 499c6: 2540 0010 movel %d0,%a2@(16) <== NOT EXECUTED if ( the_watchdog->delta_interval != 0 ) 499ca: 662a bnes 499f6 <_Watchdog_Tickle+0x5e> <== NOT EXECUTED case WATCHDOG_REMOVE_IT: break; } _ISR_Disable( level ); 499cc: 263c 0000 0700 movel #1792,%d3 <== NOT EXECUTED if ( the_watchdog->delta_interval != 0 ) goto leave; } do { watchdog_state = _Watchdog_Remove( the_watchdog ); 499d2: 2f0a movel %a2,%sp@- <== NOT EXECUTED 499d4: 4e95 jsr %a5@ <== NOT EXECUTED _ISR_Enable( level ); 499d6: 46c2 movew %d2,%sr <== NOT EXECUTED switch( watchdog_state ) { 499d8: 7202 moveq #2,%d1 <== NOT EXECUTED 499da: 588f addql #4,%sp <== NOT EXECUTED 499dc: b280 cmpl %d0,%d1 <== NOT EXECUTED 499de: 6722 beqs 49a02 <_Watchdog_Tickle+0x6a> <== NOT EXECUTED case WATCHDOG_REMOVE_IT: break; } _ISR_Disable( level ); 499e0: 2003 movel %d3,%d0 <== NOT EXECUTED 499e2: 40c2 movew %sr,%d2 <== NOT EXECUTED 499e4: 8082 orl %d2,%d0 <== NOT EXECUTED 499e6: 46c0 movew %d0,%sr <== NOT EXECUTED } while ( !_Chain_Is_empty( header ) && (the_watchdog->delta_interval == 0) ); leave: _ISR_Enable(level); } 499e8: 2014 movel %a4@,%d0 <== NOT EXECUTED RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_First( Chain_Control *header ) { return ( (Watchdog_Control *) header->first ); 499ea: 2440 moveal %d0,%a2 <== NOT EXECUTED _ISR_Disable( level ); the_watchdog = _Watchdog_First( header ); } while ( !_Chain_Is_empty( header ) && (the_watchdog->delta_interval == 0) ); 499ec: b7c0 cmpal %d0,%a3 <== NOT EXECUTED 499ee: 6706 beqs 499f6 <_Watchdog_Tickle+0x5e> <== NOT EXECUTED } _ISR_Disable( level ); the_watchdog = _Watchdog_First( header ); } while ( !_Chain_Is_empty( header ) && 499f0: 4aaa 0010 tstl %a2@(16) <== NOT EXECUTED 499f4: 67dc beqs 499d2 <_Watchdog_Tickle+0x3a> <== NOT EXECUTED (the_watchdog->delta_interval == 0) ); leave: _ISR_Enable(level); 499f6: 46c2 movew %d2,%sr <== NOT EXECUTED } 499f8: 4cee 3c0c ffe8 moveml %fp@(-24),%d2-%d3/%a2-%a5 <== NOT EXECUTED 499fe: 4e5e unlk %fp <== NOT EXECUTED 49a00: 4e75 rts <== NOT EXECUTED _ISR_Enable( level ); switch( watchdog_state ) { case WATCHDOG_ACTIVE: (*the_watchdog->routine)( 49a02: 2f2a 0024 movel %a2@(36),%sp@- <== NOT EXECUTED 49a06: 2f2a 0020 movel %a2@(32),%sp@- <== NOT EXECUTED 49a0a: 206a 001c moveal %a2@(28),%a0 <== NOT EXECUTED 49a0e: 4e90 jsr %a0@ <== NOT EXECUTED the_watchdog->id, the_watchdog->user_data ); break; 49a10: 508f addql #8,%sp <== NOT EXECUTED 49a12: 60cc bras 499e0 <_Watchdog_Tickle+0x48> <== NOT EXECUTED =============================================================================== 00049aae <_Workspace_Allocate_or_fatal_error>: * _Workspace_Allocate_or_fatal_error */ void *_Workspace_Allocate_or_fatal_error( size_t size ) { 49aae: 4e56 0000 linkw %fp,#0 49ab2: 42a7 clrl %sp@- 49ab4: 42a7 clrl %sp@- 49ab6: 2f2e 0008 movel %fp@(8),%sp@- 49aba: 4879 0005 e48a pea 5e48a <_Workspace_Area> 49ac0: 4eb9 0004 bb24 jsr 4bb24 <_Heap_Allocate_aligned_with_boundary> __builtin_return_address( 1 ), memory ); #endif if ( memory == NULL ) 49ac6: 4fef 0010 lea %sp@(16),%sp 49aca: 4a80 tstl %d0 49acc: 6704 beqs 49ad2 <_Workspace_Allocate_or_fatal_error+0x24> true, INTERNAL_ERROR_WORKSPACE_ALLOCATION ); return memory; } 49ace: 4e5e unlk %fp 49ad0: 4e75 rts memory ); #endif if ( memory == NULL ) _Internal_error_Occurred( 49ad2: 4878 0003 pea 3 49ad6: 4878 0001 pea 1 49ada: 42a7 clrl %sp@- 49adc: 4eb9 0004 7800 jsr 47800 <_Internal_error_Occurred> ... =============================================================================== 0004e1b8 : rtems_name name, rtems_attribute attribute_set, uint32_t maximum_waiters, rtems_id *id ) { 4e1b8: 4e56 ffe8 linkw %fp,#-24 4e1bc: 202e 0010 movel %fp@(16),%d0 4e1c0: 48d7 0c0c moveml %d2-%d3/%a2-%a3,%sp@ 4e1c4: 242e 0008 movel %fp@(8),%d2 4e1c8: 262e 000c movel %fp@(12),%d3 4e1cc: 246e 0014 moveal %fp@(20),%a2 Barrier_Control *the_barrier; CORE_barrier_Attributes the_attributes; if ( !rtems_is_name_valid( name ) ) 4e1d0: 4a82 tstl %d2 4e1d2: 677a beqs 4e24e <== NEVER TAKEN return RTEMS_INVALID_NAME; if ( !id ) 4e1d4: 4a8a tstl %a2 4e1d6: 6700 00cc beqw 4e2a4 return RTEMS_INVALID_ADDRESS; /* Initialize core barrier attributes */ if ( _Attributes_Is_barrier_automatic( attribute_set ) ) { 4e1da: 0803 0004 btst #4,%d3 4e1de: 677a beqs 4e25a <== NEVER TAKEN the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE; 4e1e0: 42ae fff8 clrl %fp@(-8) if ( maximum_waiters == 0 ) 4e1e4: 4a80 tstl %d0 4e1e6: 6700 00b0 beqw 4e298 4e1ea: 2239 0006 0d90 movel 60d90 <_Thread_Dispatch_disable_level>,%d1 4e1f0: 5281 addql #1,%d1 return RTEMS_INVALID_NUMBER; } else the_attributes.discipline = CORE_BARRIER_MANUAL_RELEASE; the_attributes.maximum_count = maximum_waiters; 4e1f2: 2d40 fffc movel %d0,%fp@(-4) 4e1f6: 23c1 0006 0d90 movel %d1,60d90 <_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 ); 4e1fc: 4879 0006 0f62 pea 60f62 <_Barrier_Information> 4e202: 4eb9 0004 9b34 jsr 49b34 <_Objects_Allocate> _Thread_Disable_dispatch(); /* prevents deletion */ the_barrier = _Barrier_Allocate(); if ( !the_barrier ) { 4e208: 588f addql #4,%sp 4e20a: 2640 moveal %d0,%a3 4e20c: 4a80 tstl %d0 4e20e: 6776 beqs 4e286 <== NEVER TAKEN _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } the_barrier->attribute_set = attribute_set; 4e210: 2743 0010 movel %d3,%a3@(16) _CORE_barrier_Initialize( &the_barrier->Barrier, &the_attributes ); 4e214: 486e fff8 pea %fp@(-8) 4e218: 486b 0014 pea %a3@(20) 4e21c: 4eb9 0004 ea58 jsr 4ea58 <_CORE_barrier_Initialize> Objects_Name name ) { _Objects_Set_local_object( information, _Objects_Get_index( the_object->id ), 4e222: 202b 0008 movel %a3@(8),%d0 Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( 4e226: 4281 clrl %d1 #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 4e228: 2079 0006 0f7a moveal 60f7a <_Barrier_Information+0x18>,%a0 Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( 4e22e: 3200 movew %d0,%d1 #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 4e230: 218b 1c00 movel %a3,%a0@(00000000,%d1:l:4) information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 4e234: 2742 000c movel %d2,%a3@(12) &_Barrier_Information, &the_barrier->Object, (Objects_Name) name ); *id = the_barrier->Object.id; 4e238: 2480 movel %d0,%a2@ _Thread_Enable_dispatch(); 4e23a: 4eb9 0004 a88e jsr 4a88e <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; 4e240: 508f addql #8,%sp 4e242: 4280 clrl %d0 } 4e244: 4cee 0c0c ffe8 moveml %fp@(-24),%d2-%d3/%a2-%a3 4e24a: 4e5e unlk %fp 4e24c: 4e75 rts { Barrier_Control *the_barrier; CORE_barrier_Attributes the_attributes; if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; 4e24e: 7003 moveq #3,%d0 <== NOT EXECUTED *id = the_barrier->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 4e250: 4cee 0c0c ffe8 moveml %fp@(-24),%d2-%d3/%a2-%a3 <== NOT EXECUTED 4e256: 4e5e unlk %fp <== NOT EXECUTED 4e258: 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; 4e25a: 7201 moveq #1,%d1 <== NOT EXECUTED 4e25c: 2d41 fff8 movel %d1,%fp@(-8) <== NOT EXECUTED 4e260: 2239 0006 0d90 movel 60d90 <_Thread_Dispatch_disable_level>,%d1<== NOT EXECUTED 4e266: 5281 addql #1,%d1 <== NOT EXECUTED the_attributes.maximum_count = maximum_waiters; 4e268: 2d40 fffc movel %d0,%fp@(-4) <== NOT EXECUTED 4e26c: 23c1 0006 0d90 movel %d1,60d90 <_Thread_Dispatch_disable_level><== NOT EXECUTED 4e272: 4879 0006 0f62 pea 60f62 <_Barrier_Information> <== NOT EXECUTED 4e278: 4eb9 0004 9b34 jsr 49b34 <_Objects_Allocate> <== NOT EXECUTED _Thread_Disable_dispatch(); /* prevents deletion */ the_barrier = _Barrier_Allocate(); if ( !the_barrier ) { 4e27e: 588f addql #4,%sp <== NOT EXECUTED 4e280: 2640 moveal %d0,%a3 <== NOT EXECUTED 4e282: 4a80 tstl %d0 <== NOT EXECUTED 4e284: 668a bnes 4e210 <== NOT EXECUTED _Thread_Enable_dispatch(); 4e286: 4eb9 0004 a88e jsr 4a88e <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_TOO_MANY; 4e28c: 7005 moveq #5,%d0 <== NOT EXECUTED *id = the_barrier->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 4e28e: 4cee 0c0c ffe8 moveml %fp@(-24),%d2-%d3/%a2-%a3 <== NOT EXECUTED 4e294: 4e5e unlk %fp <== NOT EXECUTED 4e296: 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; 4e298: 700a moveq #10,%d0 <== NOT EXECUTED *id = the_barrier->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 4e29a: 4cee 0c0c ffe8 moveml %fp@(-24),%d2-%d3/%a2-%a3 <== NOT EXECUTED 4e2a0: 4e5e unlk %fp <== NOT EXECUTED 4e2a2: 4e75 rts <== NOT EXECUTED if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; if ( !id ) return RTEMS_INVALID_ADDRESS; 4e2a4: 7009 moveq #9,%d0 <== NOT EXECUTED *id = the_barrier->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 4e2a6: 4cee 0c0c ffe8 moveml %fp@(-24),%d2-%d3/%a2-%a3 <== NOT EXECUTED 4e2ac: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 0004e2b0 : */ rtems_status_code rtems_barrier_delete( rtems_id id ) { 4e2b0: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 4e2b4: 2f0a movel %a2,%sp@- <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Barrier_Control *) _Objects_Get( &_Barrier_Information, id, location ); 4e2b6: 486e fffc pea %fp@(-4) <== NOT EXECUTED 4e2ba: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4e2be: 4879 0006 0f62 pea 60f62 <_Barrier_Information> <== NOT EXECUTED 4e2c4: 4eb9 0004 9ff4 jsr 49ff4 <_Objects_Get> <== NOT EXECUTED Barrier_Control *the_barrier; Objects_Locations location; the_barrier = _Barrier_Get( id, &location ); switch ( location ) { 4e2ca: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4e2ce: 2440 moveal %d0,%a2 <== NOT EXECUTED 4e2d0: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 4e2d4: 6640 bnes 4e316 <== NOT EXECUTED case OBJECTS_LOCAL: _CORE_barrier_Flush( 4e2d6: 4878 0002 pea 2 <== NOT EXECUTED 4e2da: 42a7 clrl %sp@- <== NOT EXECUTED 4e2dc: 486a 0014 pea %a2@(20) <== NOT EXECUTED 4e2e0: 4eb9 0004 afdc jsr 4afdc <_Thread_queue_Flush> <== NOT EXECUTED &the_barrier->Barrier, NULL, CORE_BARRIER_WAS_DELETED ); _Objects_Close( &_Barrier_Information, &the_barrier->Object ); 4e2e6: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4e2e8: 4879 0006 0f62 pea 60f62 <_Barrier_Information> <== NOT EXECUTED 4e2ee: 4eb9 0004 9bc4 jsr 49bc4 <_Objects_Close> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Barrier_Free ( Barrier_Control *the_barrier ) { _Objects_Free( &_Barrier_Information, &the_barrier->Object ); 4e2f4: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4e2f6: 4879 0006 0f62 pea 60f62 <_Barrier_Information> <== NOT EXECUTED 4e2fc: 4eb9 0004 9e88 jsr 49e88 <_Objects_Free> <== NOT EXECUTED _Barrier_Free( the_barrier ); _Thread_Enable_dispatch(); 4e302: 4eb9 0004 a88e jsr 4a88e <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4e308: 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; 4e30c: 4fef 001c lea %sp@(28),%sp <== NOT EXECUTED 4e310: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4e312: 4e5e unlk %fp <== NOT EXECUTED 4e314: 4e75 rts <== NOT EXECUTED 4e316: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 4e31a: 7004 moveq #4,%d0 <== NOT EXECUTED } 4e31c: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00047344 : rtems_status_code rtems_barrier_ident( rtems_name name, rtems_id *id ) { 47344: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( 47348: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 4734c: 2f3c 7fff ffff movel #2147483647,%sp@- <== NOT EXECUTED 47352: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 47356: 4879 0006 016c pea 6016c <_Barrier_Information> <== NOT EXECUTED 4735c: 4eb9 0004 96dc jsr 496dc <_Objects_Name_to_id_u32> <== NOT EXECUTED name, OBJECTS_SEARCH_LOCAL_NODE, id ); return _Status_Object_name_errors_to_status[ status ]; 47362: 41f9 0005 dcb6 lea 5dcb6 <_Status_Object_name_errors_to_status>,%a0<== NOT EXECUTED } 47368: 4e5e unlk %fp <== NOT EXECUTED 4736a: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED =============================================================================== 0004e350 : rtems_status_code rtems_barrier_release( rtems_id id, uint32_t *released ) { 4e350: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 4e354: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4e356: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED 4e35a: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4e35c: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED Barrier_Control *the_barrier; Objects_Locations location; if ( !released ) 4e360: 4a8a tstl %a2 <== NOT EXECUTED 4e362: 6754 beqs 4e3b8 <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Barrier_Control *) _Objects_Get( &_Barrier_Information, id, location ); 4e364: 486e fffc pea %fp@(-4) <== NOT EXECUTED 4e368: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4e36a: 4879 0006 0f62 pea 60f62 <_Barrier_Information> <== NOT EXECUTED 4e370: 4eb9 0004 9ff4 jsr 49ff4 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_barrier = _Barrier_Get( id, &location ); switch ( location ) { 4e376: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4e37a: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 4e37e: 662a bnes 4e3aa <== NOT EXECUTED case OBJECTS_LOCAL: *released = _CORE_barrier_Release( &the_barrier->Barrier, id, NULL ); 4e380: 42a7 clrl %sp@- <== NOT EXECUTED 4e382: 2040 moveal %d0,%a0 <== NOT EXECUTED 4e384: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4e386: 4868 0014 pea %a0@(20) <== NOT EXECUTED 4e38a: 4eb9 0004 ea94 jsr 4ea94 <_CORE_barrier_Release> <== NOT EXECUTED 4e390: 2480 movel %d0,%a2@ <== NOT EXECUTED _Thread_Enable_dispatch(); 4e392: 4eb9 0004 a88e jsr 4a88e <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4e398: 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; 4e39c: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4e3a0: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4e3a2: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 4e3a6: 4e5e unlk %fp <== NOT EXECUTED 4e3a8: 4e75 rts <== NOT EXECUTED 4e3aa: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 4e3ae: 7004 moveq #4,%d0 <== NOT EXECUTED } 4e3b0: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 4e3b4: 4e5e unlk %fp <== NOT EXECUTED 4e3b6: 4e75 rts <== NOT EXECUTED 4e3b8: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED { Barrier_Control *the_barrier; Objects_Locations location; if ( !released ) return RTEMS_INVALID_ADDRESS; 4e3bc: 7009 moveq #9,%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 ... =============================================================================== 0004e3c8 : rtems_status_code rtems_barrier_wait( rtems_id id, rtems_interval timeout ) { 4e3c8: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 4e3cc: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4e3ce: 486e fffc pea %fp@(-4) <== NOT EXECUTED 4e3d2: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED 4e3d6: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4e3d8: 4879 0006 0f62 pea 60f62 <_Barrier_Information> <== NOT EXECUTED 4e3de: 4eb9 0004 9ff4 jsr 49ff4 <_Objects_Get> <== NOT EXECUTED Barrier_Control *the_barrier; Objects_Locations location; the_barrier = _Barrier_Get( id, &location ); switch ( location ) { 4e3e4: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4e3e8: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 4e3ec: 663a bnes 4e428 <== NOT EXECUTED case OBJECTS_LOCAL: _CORE_barrier_Wait( 4e3ee: 42a7 clrl %sp@- <== NOT EXECUTED 4e3f0: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 4e3f4: 2040 moveal %d0,%a0 <== NOT EXECUTED 4e3f6: 4878 0001 pea 1 <== NOT EXECUTED 4e3fa: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4e3fc: 4868 0014 pea %a0@(20) <== NOT EXECUTED 4e400: 4eb9 0004 ead0 jsr 4ead0 <_CORE_barrier_Wait> <== NOT EXECUTED id, true, timeout, NULL ); _Thread_Enable_dispatch(); 4e406: 4eb9 0004 a88e jsr 4a88e <_Thread_Enable_dispatch> <== NOT EXECUTED return _Barrier_Translate_core_barrier_return_code( _Thread_Executing->Wait.return_code ); 4e40c: 2079 0006 0f54 moveal 60f54 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED true, timeout, NULL ); _Thread_Enable_dispatch(); return _Barrier_Translate_core_barrier_return_code( 4e412: 2f28 0034 movel %a0@(52),%sp@- <== NOT EXECUTED 4e416: 4eb9 0004 f524 jsr 4f524 <_Barrier_Translate_core_barrier_return_code><== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4e41c: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED true, timeout, NULL ); _Thread_Enable_dispatch(); return _Barrier_Translate_core_barrier_return_code( 4e420: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4e424: 4e5e unlk %fp <== NOT EXECUTED 4e426: 4e75 rts <== NOT EXECUTED 4e428: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 4e42c: 7004 moveq #4,%d0 <== NOT EXECUTED } 4e42e: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 00047e18 : uint32_t the_class, uint32_t node, uint32_t index ) { return (( (Objects_Id) the_api ) << OBJECTS_API_START_BIT) | 47e18: 7218 moveq #24,%d1 <== NOT EXECUTED uint32_t api, uint32_t class, uint32_t node, uint32_t index ) { 47e1a: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 47e1e: 202e 000c movel %fp@(12),%d0 <== NOT EXECUTED 47e22: 2f02 movel %d2,%sp@- <== NOT EXECUTED 47e24: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED 47e28: e3aa lsll %d1,%d2 <== NOT EXECUTED (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) | 47e2a: 123c 001b moveb #27,%d1 <== NOT EXECUTED 47e2e: e3a8 lsll %d1,%d0 <== NOT EXECUTED 47e30: 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) | 47e34: 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) | 47e36: 4841 swap %d1 <== NOT EXECUTED 47e38: 4241 clrw %d1 <== NOT EXECUTED return _Objects_Build_id( api, class, node, index ); } 47e3a: 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) | 47e3c: 80ae 0014 orl %fp@(20),%d0 <== NOT EXECUTED 47e40: 4e5e unlk %fp <== NOT EXECUTED 47e42: 8081 orl %d1,%d0 <== NOT EXECUTED ... =============================================================================== 00047e48 : char C1, char C2, char C3, char C4 ) { 47e48: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED return _Objects_Build_name( C1, C2, C3, C4 ); 47e4c: 102e 000f moveb %fp@(15),%d0 <== NOT EXECUTED char C1, char C2, char C3, char C4 ) { 47e50: 48d7 001c moveml %d2-%d4,%sp@ <== NOT EXECUTED return _Objects_Build_name( C1, C2, C3, C4 ); 47e54: 142e 000b moveb %fp@(11),%d2 <== NOT EXECUTED 47e58: 122e 0013 moveb %fp@(19),%d1 <== NOT EXECUTED 47e5c: 7818 moveq #24,%d4 <== NOT EXECUTED 47e5e: 49c0 extbl %d0 <== NOT EXECUTED 47e60: 49c2 extbl %d2 <== NOT EXECUTED 47e62: 49c1 extbl %d1 <== NOT EXECUTED 47e64: e9aa lsll %d4,%d2 <== NOT EXECUTED 47e66: 4840 swap %d0 <== NOT EXECUTED 47e68: 4240 clrw %d0 <== NOT EXECUTED 47e6a: e189 lsll #8,%d1 <== NOT EXECUTED 47e6c: 162e 0017 moveb %fp@(23),%d3 <== NOT EXECUTED 47e70: 8082 orl %d2,%d0 <== NOT EXECUTED 47e72: 49c3 extbl %d3 <== NOT EXECUTED 47e74: 8081 orl %d1,%d0 <== NOT EXECUTED } 47e76: 8083 orl %d3,%d0 <== NOT EXECUTED 47e78: 4cd7 001c moveml %sp@,%d2-%d4 <== NOT EXECUTED 47e7c: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 000470b8 : rtems_chain_control *chain, rtems_chain_node *node, rtems_id task, rtems_event_set events ) { 470b8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 470bc: 2f03 movel %d3,%sp@- <== NOT EXECUTED 470be: 262e 0014 movel %fp@(20),%d3 <== NOT EXECUTED 470c2: 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 ); 470c4: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 470c8: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 470cc: 242e 0010 movel %fp@(16),%d2 <== NOT EXECUTED 470d0: 4eb9 0004 761c jsr 4761c <_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 ) { 470d6: 508f addql #8,%sp <== NOT EXECUTED 470d8: 4a00 tstb %d0 <== NOT EXECUTED 470da: 660e bnes 470ea <== NOT EXECUTED sc = rtems_event_send( task, events ); } return sc; } 470dc: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 470e0: 4280 clrl %d0 <== NOT EXECUTED 470e2: 262e fffc movel %fp@(-4),%d3 <== NOT EXECUTED 470e6: 4e5e unlk %fp <== NOT EXECUTED 470e8: 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 ); 470ea: 2d43 000c movel %d3,%fp@(12) <== NOT EXECUTED } return sc; } 470ee: 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 ); 470f2: 2d42 0008 movel %d2,%fp@(8) <== NOT EXECUTED } return sc; } 470f6: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 470fa: 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 ); 470fc: 4ef9 0004 65f0 jmp 465f0 <== NOT EXECUTED ... =============================================================================== 00047104 : rtems_chain_control *chain, rtems_id task, rtems_event_set events, rtems_chain_node **node ) { 47104: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 47108: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4710a: 262e 0010 movel %fp@(16),%d3 <== NOT EXECUTED 4710e: 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 ); 47110: 2f2e 0014 movel %fp@(20),%sp@- <== NOT EXECUTED 47114: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 47118: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED 4711c: 4eb9 0004 76bc jsr 476bc <_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 ) { 47122: 508f addql #8,%sp <== NOT EXECUTED 47124: 4a00 tstb %d0 <== NOT EXECUTED 47126: 660e bnes 47136 <== NOT EXECUTED sc = rtems_event_send( task, events ); } return sc; } 47128: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 4712c: 4280 clrl %d0 <== NOT EXECUTED 4712e: 262e fffc movel %fp@(-4),%d3 <== NOT EXECUTED 47132: 4e5e unlk %fp <== NOT EXECUTED 47134: 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 ); 47136: 2d43 000c movel %d3,%fp@(12) <== NOT EXECUTED } return sc; } 4713a: 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 ); 4713e: 2d42 0008 movel %d2,%fp@(8) <== NOT EXECUTED } return sc; } 47142: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 47146: 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 ); 47148: 4ef9 0004 65f0 jmp 465f0 <== NOT EXECUTED ... =============================================================================== 00047150 : rtems_chain_control *chain, rtems_event_set events, rtems_interval timeout, rtems_chain_node **node_ptr ) { 47150: 4e56 ffe0 linkw %fp,#-32 <== NOT EXECUTED 47154: 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( 47158: 2c0e movel %fp,%d6 <== NOT EXECUTED 4715a: 45f9 0004 7708 lea 47708 <_Chain_Get>,%a2 <== NOT EXECUTED 47160: 5986 subql #4,%d6 <== NOT EXECUTED 47162: 47f9 0004 6448 lea 46448 ,%a3 <== NOT EXECUTED rtems_chain_control *chain, rtems_event_set events, rtems_interval timeout, rtems_chain_node **node_ptr ) { 47168: 262e 0008 movel %fp@(8),%d3 <== NOT EXECUTED 4716c: 2a2e 000c movel %fp@(12),%d5 <== NOT EXECUTED 47170: 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 ); 47174: 2f03 movel %d3,%sp@- <== NOT EXECUTED 47176: 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 47178: 588f addql #4,%sp <== NOT EXECUTED 4717a: 2400 movel %d0,%d2 <== NOT EXECUTED 4717c: 6622 bnes 471a0 <== NOT EXECUTED ) { rtems_event_set out; sc = rtems_event_receive( 4717e: 2f06 movel %d6,%sp@- <== NOT EXECUTED 47180: 2f04 movel %d4,%sp@- <== NOT EXECUTED 47182: 42a7 clrl %sp@- <== NOT EXECUTED 47184: 2f05 movel %d5,%sp@- <== NOT EXECUTED 47186: 4e93 jsr %a3@ <== NOT EXECUTED ) { rtems_status_code sc = RTEMS_SUCCESSFUL; rtems_chain_node *node = NULL; while ( 47188: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 4718c: 4a80 tstl %d0 <== NOT EXECUTED 4718e: 67e4 beqs 47174 <== NOT EXECUTED timeout, &out ); } *node_ptr = node; 47190: 206e 0014 moveal %fp@(20),%a0 <== NOT EXECUTED 47194: 2082 movel %d2,%a0@ <== NOT EXECUTED return sc; } 47196: 4cee 0c7c ffe0 moveml %fp@(-32),%d2-%d6/%a2-%a3 <== NOT EXECUTED 4719c: 4e5e unlk %fp <== NOT EXECUTED 4719e: 4e75 rts <== NOT EXECUTED timeout, &out ); } *node_ptr = node; 471a0: 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 471a4: 4280 clrl %d0 <== NOT EXECUTED timeout, &out ); } *node_ptr = node; 471a6: 2082 movel %d2,%a0@ <== NOT EXECUTED return sc; } 471a8: 4cee 0c7c ffe0 moveml %fp@(-32),%d2-%d6/%a2-%a3 <== NOT EXECUTED 471ae: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 000471b4 : rtems_chain_control *chain, rtems_chain_node *node, rtems_id task, rtems_event_set events ) { 471b4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 471b8: 2f03 movel %d3,%sp@- <== NOT EXECUTED 471ba: 262e 0014 movel %fp@(20),%d3 <== NOT EXECUTED 471be: 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 ); 471c0: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 471c4: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 471c8: 242e 0010 movel %fp@(16),%d2 <== NOT EXECUTED 471cc: 4eb9 0004 7774 jsr 47774 <_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) { 471d2: 508f addql #8,%sp <== NOT EXECUTED 471d4: 4a00 tstb %d0 <== NOT EXECUTED 471d6: 660e bnes 471e6 <== NOT EXECUTED sc = rtems_event_send( task, events ); } return sc; } 471d8: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 471dc: 4280 clrl %d0 <== NOT EXECUTED 471de: 262e fffc movel %fp@(-4),%d3 <== NOT EXECUTED 471e2: 4e5e unlk %fp <== NOT EXECUTED 471e4: 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 ); 471e6: 2d43 000c movel %d3,%fp@(12) <== NOT EXECUTED } return sc; } 471ea: 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 ); 471ee: 2d42 0008 movel %d2,%fp@(8) <== NOT EXECUTED } return sc; } 471f2: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 471f6: 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 ); 471f8: 4ef9 0004 65f0 jmp 465f0 <== NOT EXECUTED ... =============================================================================== 000557b8 : rtems_status_code rtems_clock_get( rtems_clock_get_options option, void *time_buffer ) { 557b8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 557bc: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED 557c0: 2f0a movel %a2,%sp@- <== NOT EXECUTED 557c2: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED if ( !time_buffer ) 557c6: 4a8a tstl %a2 <== NOT EXECUTED 557c8: 6748 beqs 55812 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( option == RTEMS_CLOCK_GET_TOD ) 557ca: 4a80 tstl %d0 <== NOT EXECUTED 557cc: 6734 beqs 55802 <== NOT EXECUTED return rtems_clock_get_tod( (rtems_time_of_day *)time_buffer ); if ( option == RTEMS_CLOCK_GET_SECONDS_SINCE_EPOCH ) 557ce: 7201 moveq #1,%d1 <== NOT EXECUTED 557d0: b280 cmpl %d0,%d1 <== NOT EXECUTED 557d2: 674a beqs 5581e <== NOT EXECUTED return rtems_clock_get_seconds_since_epoch((rtems_interval *)time_buffer); if ( option == RTEMS_CLOCK_GET_TICKS_SINCE_BOOT ) { 557d4: 7202 moveq #2,%d1 <== NOT EXECUTED 557d6: b280 cmpl %d0,%d1 <== NOT EXECUTED 557d8: 6754 beqs 5582e <== NOT EXECUTED *interval = rtems_clock_get_ticks_since_boot(); return RTEMS_SUCCESSFUL; } if ( option == RTEMS_CLOCK_GET_TICKS_PER_SECOND ) { 557da: 7203 moveq #3,%d1 <== NOT EXECUTED 557dc: b280 cmpl %d0,%d1 <== NOT EXECUTED 557de: 6762 beqs 55842 <== NOT EXECUTED *interval = rtems_clock_get_ticks_per_second(); return RTEMS_SUCCESSFUL; } if ( option == RTEMS_CLOCK_GET_TIME_VALUE ) 557e0: 7204 moveq #4,%d1 <== NOT EXECUTED 557e2: b280 cmpl %d0,%d1 <== NOT EXECUTED 557e4: 670c beqs 557f2 <== NOT EXECUTED return rtems_clock_get_tod_timeval( (struct timeval *)time_buffer ); return RTEMS_INVALID_NUMBER; } 557e6: 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; 557ea: 720a moveq #10,%d1 <== NOT EXECUTED } 557ec: 2001 movel %d1,%d0 <== NOT EXECUTED 557ee: 4e5e unlk %fp <== NOT EXECUTED 557f0: 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 ); 557f2: 2d4a 0008 movel %a2,%fp@(8) <== NOT EXECUTED return RTEMS_INVALID_NUMBER; } 557f6: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 557fa: 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 ); 557fc: 4ef9 0005 5970 jmp 55970 <== 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 ); 55802: 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; } 55806: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 5580a: 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 ); 5580c: 4ef9 0005 58ac jmp 558ac <== NOT EXECUTED if ( option == RTEMS_CLOCK_GET_TIME_VALUE ) return rtems_clock_get_tod_timeval( (struct timeval *)time_buffer ); return RTEMS_INVALID_NUMBER; } 55812: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED rtems_clock_get_options option, void *time_buffer ) { if ( !time_buffer ) return RTEMS_INVALID_ADDRESS; 55816: 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; } 55818: 2001 movel %d1,%d0 <== NOT EXECUTED 5581a: 4e5e unlk %fp <== NOT EXECUTED 5581c: 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); 5581e: 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; } 55822: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 55826: 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); 55828: 4ef9 0005 5858 jmp 55858 <== NOT EXECUTED if ( option == RTEMS_CLOCK_GET_TICKS_SINCE_BOOT ) { rtems_interval *interval = (rtems_interval *)time_buffer; *interval = rtems_clock_get_ticks_since_boot(); 5582e: 4eb9 0005 589c jsr 5589c <== NOT EXECUTED return RTEMS_SUCCESSFUL; 55834: 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(); 55836: 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; } 55838: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 5583c: 2001 movel %d1,%d0 <== NOT EXECUTED 5583e: 4e5e unlk %fp <== NOT EXECUTED 55840: 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(); 55842: 4eb9 0005 5884 jsr 55884 <== NOT EXECUTED return RTEMS_SUCCESSFUL; 55848: 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(); 5584a: 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; } 5584c: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 55850: 2001 movel %d1,%d0 <== NOT EXECUTED 55852: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 00047074 : #include rtems_status_code rtems_clock_get_seconds_since_epoch( rtems_interval *the_interval ) { 47074: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 47078: 206e 0008 moveal %fp@(8),%a0 <== NOT EXECUTED if ( !the_interval ) 4707c: 4a88 tstl %a0 <== NOT EXECUTED 4707e: 671a beqs 4709a <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !_TOD_Is_set ) 47080: 4a39 0006 8a4c tstb 68a4c <_TOD_Is_set> <== NOT EXECUTED 47086: 670c beqs 47094 <== NOT EXECUTED return RTEMS_NOT_DEFINED; *the_interval = _TOD_Seconds_since_epoch(); 47088: 20b9 0006 8ac6 movel 68ac6 <_TOD_Now>,%a0@ <== NOT EXECUTED return RTEMS_SUCCESSFUL; 4708e: 4280 clrl %d0 <== NOT EXECUTED } 47090: 4e5e unlk %fp <== NOT EXECUTED 47092: 4e75 rts <== NOT EXECUTED { if ( !the_interval ) return RTEMS_INVALID_ADDRESS; if ( !_TOD_Is_set ) return RTEMS_NOT_DEFINED; 47094: 700b moveq #11,%d0 <== NOT EXECUTED *the_interval = _TOD_Seconds_since_epoch(); return RTEMS_SUCCESSFUL; } 47096: 4e5e unlk %fp <== NOT EXECUTED 47098: 4e75 rts <== NOT EXECUTED rtems_status_code rtems_clock_get_seconds_since_epoch( rtems_interval *the_interval ) { if ( !the_interval ) return RTEMS_INVALID_ADDRESS; 4709a: 7009 moveq #9,%d0 <== NOT EXECUTED if ( !_TOD_Is_set ) return RTEMS_NOT_DEFINED; *the_interval = _TOD_Seconds_since_epoch(); return RTEMS_SUCCESSFUL; } 4709c: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00045d3c : rtems_interval rtems_clock_get_ticks_per_second(void) { return TOD_MICROSECONDS_PER_SECOND / rtems_configuration_get_microseconds_per_tick(); } 45d3c: 41f9 0005 cc50 lea 5cc50 ,%a0 <== NOT EXECUTED #include #include #include rtems_interval rtems_clock_get_ticks_per_second(void) { 45d42: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return TOD_MICROSECONDS_PER_SECOND / rtems_configuration_get_microseconds_per_tick(); } 45d46: 203c 000f 4240 movel #1000000,%d0 <== NOT EXECUTED 45d4c: 4e5e unlk %fp <== NOT EXECUTED 45d4e: 4c50 0000 remul %a0@,%d0,%d0 <== NOT EXECUTED =============================================================================== 00045d54 : #include #include #include rtems_interval rtems_clock_get_ticks_since_boot(void) { 45d54: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return _Watchdog_Ticks_since_boot; 45d58: 2039 0005 e598 movel 5e598 <_Watchdog_Ticks_since_boot>,%d0<== NOT EXECUTED } 45d5e: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 000470c8 : #include rtems_status_code rtems_clock_get_tod( rtems_time_of_day *time_buffer ) { 470c8: 4e56 ffcc linkw %fp,#-52 <== NOT EXECUTED 470cc: 2f0a movel %a2,%sp@- <== NOT EXECUTED 470ce: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 470d2: 2f02 movel %d2,%sp@- <== NOT EXECUTED rtems_time_of_day *tmbuf = time_buffer; struct tm time; struct timeval now; if ( !time_buffer ) 470d4: 4a8a tstl %a2 <== NOT EXECUTED 470d6: 6700 00a6 beqw 4717e <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !_TOD_Is_set ) 470da: 4a39 0006 8a4c tstb 68a4c <_TOD_Is_set> <== NOT EXECUTED 470e0: 660e bnes 470f0 <== NOT EXECUTED tmbuf->second = time.tm_sec; tmbuf->ticks = now.tv_usec / rtems_configuration_get_microseconds_per_tick(); return RTEMS_SUCCESSFUL; } 470e2: 242e ffc4 movel %fp@(-60),%d2 <== NOT EXECUTED if ( !time_buffer ) return RTEMS_INVALID_ADDRESS; if ( !_TOD_Is_set ) return RTEMS_NOT_DEFINED; 470e6: 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; } 470e8: 246e ffc8 moveal %fp@(-56),%a2 <== NOT EXECUTED 470ec: 4e5e unlk %fp <== NOT EXECUTED 470ee: 4e75 rts <== NOT EXECUTED { ISR_Level level; struct timespec now; suseconds_t useconds; _ISR_Disable(level); 470f0: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED 470f6: 40c2 movew %sr,%d2 <== NOT EXECUTED 470f8: 8082 orl %d2,%d0 <== NOT EXECUTED 470fa: 46c0 movew %d0,%sr <== NOT EXECUTED _TOD_Get( &now ); 470fc: 486e fff0 pea %fp@(-16) <== NOT EXECUTED 47100: 4eb9 0004 8b9c jsr 48b9c <_TOD_Get> <== NOT EXECUTED _ISR_Enable(level); 47106: 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; 47108: 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 ); 4710e: 486e ffcc pea %fp@(-52) <== NOT EXECUTED _ISR_Disable(level); _TOD_Get( &now ); _ISR_Enable(level); useconds = (suseconds_t)now.tv_nsec; 47112: 202e fff4 movel %fp@(-12),%d0 <== NOT EXECUTED 47116: 486e fff8 pea %fp@(-8) <== NOT EXECUTED useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND; time->tv_sec = now.tv_sec; 4711a: 2d6e fff0 fff8 movel %fp@(-16),%fp@(-8) <== NOT EXECUTED time->tv_usec = useconds; 47120: 4c42 0800 remsl %d2,%d0,%d0 <== NOT EXECUTED 47124: 2d40 fffc movel %d0,%fp@(-4) <== NOT EXECUTED 47128: 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; 4712e: 206e ffdc moveal %fp@(-36),%a0 <== NOT EXECUTED 47132: 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; 47134: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 47138: 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; 4713a: 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; 4713e: 206e ffe0 moveal %fp@(-32),%a0 <== NOT EXECUTED 47142: 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 / 47146: 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; 4714a: 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 / 4714c: 41f9 0005 f460 lea 5f460 ,%a0 <== NOT EXECUTED 47152: 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; 47156: 256e ffd8 0008 movel %fp@(-40),%a2@(8) <== NOT EXECUTED tmbuf->hour = time.tm_hour; 4715c: 256e ffd4 000c movel %fp@(-44),%a2@(12) <== NOT EXECUTED tmbuf->minute = time.tm_min; 47162: 256e ffd0 0010 movel %fp@(-48),%a2@(16) <== NOT EXECUTED tmbuf->second = time.tm_sec; 47168: 256e ffcc 0014 movel %fp@(-52),%a2@(20) <== NOT EXECUTED tmbuf->ticks = now.tv_usec / 4716e: 2542 0018 movel %d2,%a2@(24) <== NOT EXECUTED rtems_configuration_get_microseconds_per_tick(); return RTEMS_SUCCESSFUL; } 47172: 242e ffc4 movel %fp@(-60),%d2 <== NOT EXECUTED 47176: 246e ffc8 moveal %fp@(-56),%a2 <== NOT EXECUTED 4717a: 4e5e unlk %fp <== NOT EXECUTED 4717c: 4e75 rts <== NOT EXECUTED 4717e: 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; 47182: 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; } 47184: 246e ffc8 moveal %fp@(-56),%a2 <== NOT EXECUTED 47188: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00055970 : #include rtems_status_code rtems_clock_get_tod_timeval( struct timeval *time ) { 55970: 4e56 ffec linkw %fp,#-20 <== NOT EXECUTED 55974: 48d7 040c moveml %d2-%d3/%a2,%sp@ <== NOT EXECUTED 55978: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED if ( !time ) 5597c: 4a8a tstl %a2 <== NOT EXECUTED 5597e: 6750 beqs 559d0 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !_TOD_Is_set ) 55980: 4a39 0007 d1e8 tstb 7d1e8 <_TOD_Is_set> <== NOT EXECUTED 55986: 660c bnes 55994 <== NOT EXECUTED return RTEMS_NOT_DEFINED; 55988: 700b moveq #11,%d0 <== NOT EXECUTED _TOD_Get_timeval( time ); return RTEMS_SUCCESSFUL; } 5598a: 4cee 040c ffec moveml %fp@(-20),%d2-%d3/%a2 <== NOT EXECUTED 55990: 4e5e unlk %fp <== NOT EXECUTED 55992: 4e75 rts <== NOT EXECUTED { ISR_Level level; struct timespec now; suseconds_t useconds; _ISR_Disable(level); 55994: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED 5599a: 40c2 movew %sr,%d2 <== NOT EXECUTED 5599c: 8082 orl %d2,%d0 <== NOT EXECUTED 5599e: 46c0 movew %d0,%sr <== NOT EXECUTED _TOD_Get( &now ); 559a0: 486e fff8 pea %fp@(-8) <== NOT EXECUTED 559a4: 4eb9 0005 a490 jsr 5a490 <_TOD_Get> <== NOT EXECUTED _ISR_Enable(level); 559aa: 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; 559ac: 263c 0000 03e8 movel #1000,%d3 <== NOT EXECUTED if ( !_TOD_Is_set ) return RTEMS_NOT_DEFINED; _TOD_Get_timeval( time ); return RTEMS_SUCCESSFUL; 559b2: 588f addql #4,%sp <== NOT EXECUTED 559b4: 4280 clrl %d0 <== NOT EXECUTED _ISR_Disable(level); _TOD_Get( &now ); _ISR_Enable(level); useconds = (suseconds_t)now.tv_nsec; 559b6: 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; 559ba: 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; 559be: 24ae fff8 movel %fp@(-8),%a2@ <== NOT EXECUTED time->tv_usec = useconds; 559c2: 2541 0004 movel %d1,%a2@(4) <== NOT EXECUTED } 559c6: 4cee 040c ffec moveml %fp@(-20),%d2-%d3/%a2 <== NOT EXECUTED 559cc: 4e5e unlk %fp <== NOT EXECUTED 559ce: 4e75 rts <== NOT EXECUTED rtems_status_code rtems_clock_get_tod_timeval( struct timeval *time ) { if ( !time ) return RTEMS_INVALID_ADDRESS; 559d0: 7009 moveq #9,%d0 <== NOT EXECUTED return RTEMS_NOT_DEFINED; _TOD_Get_timeval( time ); return RTEMS_SUCCESSFUL; } 559d2: 4cee 040c ffec moveml %fp@(-20),%d2-%d3/%a2 <== NOT EXECUTED 559d8: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00045f58 : * error code - if unsuccessful */ rtems_status_code rtems_clock_get_uptime( struct timespec *uptime ) { 45f58: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 45f5c: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED if ( !uptime ) 45f60: 6710 beqs 45f72 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _TOD_Get_uptime_as_timespec( uptime ); 45f62: 2f00 movel %d0,%sp@- <== NOT EXECUTED 45f64: 4eb9 0004 7788 jsr 47788 <_TOD_Get_uptime_as_timespec> <== NOT EXECUTED return RTEMS_SUCCESSFUL; 45f6a: 588f addql #4,%sp <== NOT EXECUTED 45f6c: 4280 clrl %d0 <== NOT EXECUTED } 45f6e: 4e5e unlk %fp <== NOT EXECUTED 45f70: 4e75 rts <== NOT EXECUTED rtems_status_code rtems_clock_get_uptime( struct timespec *uptime ) { if ( !uptime ) return RTEMS_INVALID_ADDRESS; 45f72: 7009 moveq #9,%d0 <== NOT EXECUTED _TOD_Get_uptime_as_timespec( uptime ); return RTEMS_SUCCESSFUL; } 45f74: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 000471a8 : */ rtems_status_code rtems_clock_set( rtems_time_of_day *time_buffer ) { 471a8: 4e56 fff8 linkw %fp,#-8 <== NOT EXECUTED 471ac: 2f0a movel %a2,%sp@- <== NOT EXECUTED 471ae: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED 471b2: 2f02 movel %d2,%sp@- <== NOT EXECUTED struct timespec newtime; if ( !time_buffer ) 471b4: 4a8a tstl %a2 <== NOT EXECUTED 471b6: 6772 beqs 4722a <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( _TOD_Validate( time_buffer ) ) { 471b8: 2f0a movel %a2,%sp@- <== NOT EXECUTED 471ba: 4eb9 0004 7380 jsr 47380 <_TOD_Validate> <== NOT EXECUTED 471c0: 588f addql #4,%sp <== NOT EXECUTED 471c2: 4a00 tstb %d0 <== NOT EXECUTED 471c4: 660e bnes 471d4 <== NOT EXECUTED _TOD_Set( &newtime ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } return RTEMS_INVALID_CLOCK; } 471c6: 242e fff0 movel %fp@(-16),%d2 <== NOT EXECUTED _Thread_Disable_dispatch(); _TOD_Set( &newtime ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } return RTEMS_INVALID_CLOCK; 471ca: 7014 moveq #20,%d0 <== NOT EXECUTED } 471cc: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED 471d0: 4e5e unlk %fp <== NOT EXECUTED 471d2: 4e75 rts <== NOT EXECUTED if ( !time_buffer ) return RTEMS_INVALID_ADDRESS; if ( _TOD_Validate( time_buffer ) ) { newtime.tv_sec = _TOD_To_seconds( time_buffer ); 471d4: 2f0a movel %a2,%sp@- <== NOT EXECUTED 471d6: 4eb9 0004 7278 jsr 47278 <_TOD_To_seconds> <== NOT EXECUTED newtime.tv_nsec = time_buffer->ticks * 471dc: 242a 0018 movel %a2@(24),%d2 <== NOT EXECUTED 471e0: 41f9 0005 f460 lea 5f460 ,%a0 <== NOT EXECUTED 471e6: 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 ); 471ea: 2d40 fff8 movel %d0,%fp@(-8) <== NOT EXECUTED newtime.tv_nsec = time_buffer->ticks * 471ee: 203c 0000 03e8 movel #1000,%d0 <== NOT EXECUTED 471f4: 4c02 0800 mulsl %d2,%d0 <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 471f8: 2239 0006 8a3c movel 68a3c <_Thread_Dispatch_disable_level>,%d1<== NOT EXECUTED 471fe: 5281 addql #1,%d1 <== NOT EXECUTED 47200: 2d40 fffc movel %d0,%fp@(-4) <== NOT EXECUTED 47204: 23c1 0006 8a3c movel %d1,68a3c <_Thread_Dispatch_disable_level><== NOT EXECUTED rtems_configuration_get_nanoseconds_per_tick(); _Thread_Disable_dispatch(); _TOD_Set( &newtime ); 4720a: 486e fff8 pea %fp@(-8) <== NOT EXECUTED 4720e: 4eb9 0004 8d04 jsr 48d04 <_TOD_Set> <== NOT EXECUTED _Thread_Enable_dispatch(); 47214: 4eb9 0004 a0fa jsr 4a0fa <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; } return RTEMS_INVALID_CLOCK; } 4721a: 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; 4721e: 508f addql #8,%sp <== NOT EXECUTED 47220: 4280 clrl %d0 <== NOT EXECUTED } return RTEMS_INVALID_CLOCK; } 47222: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED 47226: 4e5e unlk %fp <== NOT EXECUTED 47228: 4e75 rts <== NOT EXECUTED 4722a: 242e fff0 movel %fp@(-16),%d2 <== NOT EXECUTED ) { struct timespec newtime; if ( !time_buffer ) return RTEMS_INVALID_ADDRESS; 4722e: 7009 moveq #9,%d0 <== NOT EXECUTED _TOD_Set( &newtime ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } return RTEMS_INVALID_CLOCK; } 47230: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED 47234: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00045d64 : * error code - if unsuccessful */ rtems_status_code rtems_clock_set_nanoseconds_extension( rtems_nanoseconds_extension_routine routine ) { 45d64: 4e56 0000 linkw %fp,#0 45d68: 202e 0008 movel %fp@(8),%d0 if ( !routine ) 45d6c: 670c beqs 45d7a <== NEVER TAKEN return RTEMS_INVALID_ADDRESS; _Watchdog_Nanoseconds_since_tick_handler = routine; 45d6e: 23c0 0005 e5dc movel %d0,5e5dc <_Watchdog_Nanoseconds_since_tick_handler> return RTEMS_SUCCESSFUL; 45d74: 4280 clrl %d0 } 45d76: 4e5e unlk %fp 45d78: 4e75 rts rtems_status_code rtems_clock_set_nanoseconds_extension( rtems_nanoseconds_extension_routine routine ) { if ( !routine ) return RTEMS_INVALID_ADDRESS; 45d7a: 7009 moveq #9,%d0 <== NOT EXECUTED _Watchdog_Nanoseconds_since_tick_handler = routine; return RTEMS_SUCCESSFUL; } 45d7c: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00045d80 : * * NOTE: This routine only works for leap-years through 2099. */ rtems_status_code rtems_clock_tick( void ) { 45d80: 4e56 0000 linkw %fp,#0 _TOD_Tickle_ticks(); 45d84: 4eb9 0004 73cc jsr 473cc <_TOD_Tickle_ticks> */ RTEMS_INLINE_ROUTINE void _Watchdog_Tickle_ticks( void ) { _Watchdog_Tickle( &_Watchdog_Ticks_chain ); 45d8a: 4879 0005 e52e pea 5e52e <_Watchdog_Ticks_chain> <== NOT EXECUTED 45d90: 4eb9 0004 9998 jsr 49998 <_Watchdog_Tickle> <== NOT EXECUTED _Watchdog_Tickle_ticks(); _Thread_Tickle_timeslice(); 45d96: 4eb9 0004 938c jsr 4938c <_Thread_Tickle_timeslice> <== NOT EXECUTED if ( _Thread_Is_context_switch_necessary() && 45d9c: 588f addql #4,%sp <== NOT EXECUTED * otherwise. */ RTEMS_INLINE_ROUTINE bool _Thread_Is_context_switch_necessary( void ) { return ( _Thread_Dispatch_necessary ); 45d9e: 1039 0005 e63c moveb 5e63c <_Per_CPU_Information+0x18>,%d0 <== NOT EXECUTED 45da4: 6708 beqs 45dae <== NOT EXECUTED * otherwise. */ RTEMS_INLINE_ROUTINE bool _Thread_Is_dispatching_enabled( void ) { return ( _Thread_Dispatch_disable_level == 0 ); 45da6: 2039 0005 e46c movel 5e46c <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED 45dac: 6706 beqs 45db4 <== NOT EXECUTED _Thread_Is_dispatching_enabled() ) _Thread_Dispatch(); return RTEMS_SUCCESSFUL; } 45dae: 4280 clrl %d0 <== NOT EXECUTED 45db0: 4e5e unlk %fp <== NOT EXECUTED 45db2: 4e75 rts <== NOT EXECUTED _Thread_Tickle_timeslice(); if ( _Thread_Is_context_switch_necessary() && _Thread_Is_dispatching_enabled() ) _Thread_Dispatch(); 45db4: 4eb9 0004 84fc jsr 484fc <_Thread_Dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 45dba: 4280 clrl %d0 <== NOT EXECUTED 45dbc: 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 e516 andl %d0,5e516 <_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 e516 orl %d0,5e516 <_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 e516 andl 5e516 <_Debug_Level>,%d0 <== NOT EXECUTED 4b890: 56c0 sne %d0 <== NOT EXECUTED } 4b892: 4480 negl %d0 <== NOT EXECUTED ... =============================================================================== 00045dc0 : rtems_event_set event_in, rtems_option option_set, rtems_interval ticks, rtems_event_set *event_out ) { 45dc0: 4e56 0000 linkw %fp,#0 45dc4: 202e 0008 movel %fp@(8),%d0 45dc8: 206e 0014 moveal %fp@(20),%a0 RTEMS_API_Control *api; if ( !event_out ) 45dcc: 4a88 tstl %a0 45dce: 674c beqs 45e1c <== NEVER TAKEN return RTEMS_INVALID_ADDRESS; api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ]; 45dd0: 2279 0005 e630 moveal 5e630 <_Per_CPU_Information+0xc>,%a1 45dd6: 2269 0108 moveal %a1@(264),%a1 if ( _Event_sets_Is_empty( event_in ) ) { 45dda: 4a80 tstl %d0 45ddc: 6606 bnes 45de4 <== ALWAYS TAKEN *event_out = api->pending_events; 45dde: 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 ); } 45de0: 4e5e unlk %fp <== NOT EXECUTED 45de2: 4e75 rts <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 45de4: 2239 0005 e46c movel 5e46c <_Thread_Dispatch_disable_level>,%d1 45dea: 5281 addql #1,%d1 45dec: 23c1 0005 e46c movel %d1,5e46c <_Thread_Dispatch_disable_level> *event_out = api->pending_events; return RTEMS_SUCCESSFUL; } _Thread_Disable_dispatch(); _Event_Seize( event_in, option_set, ticks, event_out ); 45df2: 2f08 movel %a0,%sp@- 45df4: 2f2e 0010 movel %fp@(16),%sp@- 45df8: 2f2e 000c movel %fp@(12),%sp@- 45dfc: 2f00 movel %d0,%sp@- 45dfe: 4eb9 0004 5e24 jsr 45e24 <_Event_Seize> _Thread_Enable_dispatch(); 45e04: 4eb9 0004 8666 jsr 48666 <_Thread_Enable_dispatch> return( _Thread_Executing->Wait.return_code ); 45e0a: 2079 0005 e630 moveal 5e630 <_Per_CPU_Information+0xc>,%a0 45e10: 4fef 0010 lea %sp@(16),%sp } 45e14: 4e5e unlk %fp } _Thread_Disable_dispatch(); _Event_Seize( event_in, option_set, ticks, event_out ); _Thread_Enable_dispatch(); return( _Thread_Executing->Wait.return_code ); 45e16: 2028 0034 movel %a0@(52),%d0 } 45e1a: 4e75 rts ) { RTEMS_API_Control *api; if ( !event_out ) return RTEMS_INVALID_ADDRESS; 45e1c: 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 ); } 45e1e: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 00045f68 : rtems_status_code rtems_event_send( rtems_id id, rtems_event_set event_in ) { 45f68: 4e56 fffc linkw %fp,#-4 45f6c: 2f02 movel %d2,%sp@- register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; the_thread = _Thread_Get( id, &location ); 45f6e: 486e fffc pea %fp@(-4) 45f72: 2f2e 0008 movel %fp@(8),%sp@- 45f76: 4eb9 0004 868c jsr 4868c <_Thread_Get> switch ( location ) { 45f7c: 508f addql #8,%sp 45f7e: 4aae fffc tstl %fp@(-4) 45f82: 6634 bnes 45fb8 <== NEVER TAKEN case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; 45f84: 2240 moveal %d0,%a1 rtems_event_set *the_event_set ) { ISR_Level level; _ISR_Disable( level ); 45f86: 223c 0000 0700 movel #1792,%d1 45f8c: 2069 0108 moveal %a1@(264),%a0 45f90: 40c2 movew %sr,%d2 45f92: 8282 orl %d2,%d1 45f94: 46c1 movew %d1,%sr *the_event_set |= the_new_events; 45f96: 222e 000c movel %fp@(12),%d1 45f9a: 8390 orl %d1,%a0@ _ISR_Enable( level ); 45f9c: 46c2 movew %d2,%sr _Event_sets_Post( event_in, &api->pending_events ); _Event_Surrender( the_thread ); 45f9e: 2f00 movel %d0,%sp@- 45fa0: 4eb9 0004 5fc4 jsr 45fc4 <_Event_Surrender> _Thread_Enable_dispatch(); 45fa6: 4eb9 0004 8666 jsr 48666 <_Thread_Enable_dispatch> case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 45fac: 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; 45fb0: 588f addql #4,%sp 45fb2: 4280 clrl %d0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 45fb4: 4e5e unlk %fp 45fb6: 4e75 rts 45fb8: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 45fbc: 7004 moveq #4,%d0 <== NOT EXECUTED } 45fbe: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 00048364 : rtems_status_code rtems_extension_create( rtems_name name, const rtems_extensions_table *extension_table, rtems_id *id ) { 48364: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 48368: 48d7 0c04 moveml %d2/%a2-%a3,%sp@ <== NOT EXECUTED 4836c: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED 48370: 246e 0010 moveal %fp@(16),%a2 <== NOT EXECUTED Extension_Control *the_extension; if ( !id ) 48374: 4a8a tstl %a2 <== NOT EXECUTED 48376: 6700 00a0 beqw 48418 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !rtems_is_name_valid( name ) ) 4837a: 4a82 tstl %d2 <== NOT EXECUTED 4837c: 660c bnes 4838a <== NOT EXECUTED return RTEMS_INVALID_NAME; 4837e: 7003 moveq #3,%d0 <== NOT EXECUTED ); *id = the_extension->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 48380: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3 <== NOT EXECUTED 48386: 4e5e unlk %fp <== NOT EXECUTED 48388: 4e75 rts <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 4838a: 2039 0006 8a3c movel 68a3c <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED 48390: 5280 addql #1,%d0 <== NOT EXECUTED 48392: 23c0 0006 8a3c movel %d0,68a3c <_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 ); 48398: 4879 0006 8bc8 pea 68bc8 <_Extension_Information> <== NOT EXECUTED 4839e: 4eb9 0004 92e4 jsr 492e4 <_Objects_Allocate> <== NOT EXECUTED _Thread_Disable_dispatch(); /* to prevent deletion */ the_extension = _Extension_Allocate(); if ( !the_extension ) { 483a4: 588f addql #4,%sp <== NOT EXECUTED 483a6: 2640 moveal %d0,%a3 <== NOT EXECUTED 483a8: 4a80 tstl %d0 <== NOT EXECUTED 483aa: 675a beqs 48406 <== 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; 483ac: 206e 000c moveal %fp@(12),%a0 <== NOT EXECUTED 483b0: 2758 0024 movel %a0@+,%a3@(36) <== NOT EXECUTED 483b4: 2758 0028 movel %a0@+,%a3@(40) <== NOT EXECUTED 483b8: 2758 002c movel %a0@+,%a3@(44) <== NOT EXECUTED 483bc: 2758 0030 movel %a0@+,%a3@(48) <== NOT EXECUTED 483c0: 2758 0034 movel %a0@+,%a3@(52) <== NOT EXECUTED 483c4: 2758 0038 movel %a0@+,%a3@(56) <== NOT EXECUTED 483c8: 2758 003c movel %a0@+,%a3@(60) <== NOT EXECUTED 483cc: 2750 0040 movel %a0@,%a3@(64) <== NOT EXECUTED _User_extensions_Add_set( extension ); 483d0: 486b 0010 pea %a3@(16) <== NOT EXECUTED 483d4: 4eb9 0004 b120 jsr 4b120 <_User_extensions_Add_set> <== NOT EXECUTED Objects_Name name ) { _Objects_Set_local_object( information, _Objects_Get_index( the_object->id ), 483da: 202b 0008 movel %a3@(8),%d0 <== NOT EXECUTED Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( 483de: 4281 clrl %d1 <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 483e0: 2079 0006 8be0 moveal 68be0 <_Extension_Information+0x18>,%a0<== NOT EXECUTED Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( 483e6: 3200 movew %d0,%d1 <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 483e8: 218b 1c00 movel %a3,%a0@(00000000,%d1:l:4) <== NOT EXECUTED information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 483ec: 2742 000c movel %d2,%a3@(12) <== NOT EXECUTED &_Extension_Information, &the_extension->Object, (Objects_Name) name ); *id = the_extension->Object.id; 483f0: 2480 movel %d0,%a2@ <== NOT EXECUTED _Thread_Enable_dispatch(); 483f2: 4eb9 0004 a0fa jsr 4a0fa <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; 483f8: 588f addql #4,%sp <== NOT EXECUTED 483fa: 4280 clrl %d0 <== NOT EXECUTED } 483fc: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3 <== NOT EXECUTED 48402: 4e5e unlk %fp <== NOT EXECUTED 48404: 4e75 rts <== NOT EXECUTED _Thread_Disable_dispatch(); /* to prevent deletion */ the_extension = _Extension_Allocate(); if ( !the_extension ) { _Thread_Enable_dispatch(); 48406: 4eb9 0004 a0fa jsr 4a0fa <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_TOO_MANY; 4840c: 7005 moveq #5,%d0 <== NOT EXECUTED ); *id = the_extension->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 4840e: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3 <== NOT EXECUTED 48414: 4e5e unlk %fp <== NOT EXECUTED 48416: 4e75 rts <== NOT EXECUTED ) { Extension_Control *the_extension; if ( !id ) return RTEMS_INVALID_ADDRESS; 48418: 7009 moveq #9,%d0 <== NOT EXECUTED ); *id = the_extension->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 4841a: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3 <== NOT EXECUTED 48420: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 0004820c : #include rtems_status_code rtems_extension_delete( rtems_id id ) { 4820c: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 48210: 2f0a movel %a2,%sp@- <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Extension_Control *) _Objects_Get( &_Extension_Information, id, location ); 48212: 486e fffc pea %fp@(-4) <== NOT EXECUTED 48216: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4821a: 4879 0006 8538 pea 68538 <_Extension_Information> <== NOT EXECUTED 48220: 4eb9 0004 9504 jsr 49504 <_Objects_Get> <== NOT EXECUTED Extension_Control *the_extension; Objects_Locations location; the_extension = _Extension_Get( id, &location ); switch ( location ) { 48226: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4822a: 2440 moveal %d0,%a2 <== NOT EXECUTED 4822c: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 48230: 663a bnes 4826c <== NOT EXECUTED case OBJECTS_LOCAL: _User_extensions_Remove_set( &the_extension->Extension ); 48232: 486a 0010 pea %a2@(16) <== NOT EXECUTED 48236: 4eb9 0004 adb8 jsr 4adb8 <_User_extensions_Remove_set> <== NOT EXECUTED _Objects_Close( &_Extension_Information, &the_extension->Object ); 4823c: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4823e: 4879 0006 8538 pea 68538 <_Extension_Information> <== NOT EXECUTED 48244: 4eb9 0004 90d4 jsr 490d4 <_Objects_Close> <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Extension_Free ( Extension_Control *the_extension ) { _Objects_Free( &_Extension_Information, &the_extension->Object ); 4824a: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4824c: 4879 0006 8538 pea 68538 <_Extension_Information> <== NOT EXECUTED 48252: 4eb9 0004 9398 jsr 49398 <_Objects_Free> <== NOT EXECUTED _Extension_Free( the_extension ); _Thread_Enable_dispatch(); 48258: 4eb9 0004 9d6e jsr 49d6e <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4825e: 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; 48262: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED 48266: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 48268: 4e5e unlk %fp <== NOT EXECUTED 4826a: 4e75 rts <== NOT EXECUTED 4826c: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 48270: 7004 moveq #4,%d0 <== NOT EXECUTED } 48272: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 00049308 : rtems_status_code rtems_extension_ident( rtems_name name, rtems_id *id ) { 49308: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( 4930c: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 49310: 2f3c 7fff ffff movel #2147483647,%sp@- <== NOT EXECUTED 49316: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4931a: 4879 0006 1da8 pea 61da8 <_Extension_Information> <== NOT EXECUTED 49320: 4eb9 0004 a6b4 jsr 4a6b4 <_Objects_Name_to_id_u32> <== NOT EXECUTED name, OBJECTS_SEARCH_LOCAL_NODE, id ); return _Status_Object_name_errors_to_status[ status ]; 49326: 41f9 0005 f452 lea 5f452 <_Status_Object_name_errors_to_status>,%a0<== NOT EXECUTED } 4932c: 4e5e unlk %fp <== NOT EXECUTED 4932e: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED =============================================================================== 00048b48 : #endif #include const char *rtems_get_version_string(void) { 48b48: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return _RTEMS_version; } 48b4c: 203c 0005 faf6 movel #391926,%d0 <== NOT EXECUTED 48b52: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 00046198 : rtems_status_code rtems_interrupt_catch( rtems_isr_entry new_isr_handler, rtems_vector_number vector, rtems_isr_entry *old_isr_handler ) { 46198: 4e56 0000 linkw %fp,#0 4619c: 222e 0008 movel %fp@(8),%d1 461a0: 202e 000c movel %fp@(12),%d0 461a4: 206e 0010 moveal %fp@(16),%a0 if ( !_ISR_Is_vector_number_valid( vector ) ) 461a8: 0c80 0000 00ff cmpil #255,%d0 461ae: 621e bhis 461ce <== NEVER TAKEN return RTEMS_INVALID_NUMBER; if ( !_ISR_Is_valid_user_handler( (void *) new_isr_handler ) ) 461b0: 4a81 tstl %d1 461b2: 6720 beqs 461d4 <== NEVER TAKEN return RTEMS_INVALID_ADDRESS; if ( !_ISR_Is_valid_user_handler( (void *) old_isr_handler ) ) 461b4: 4a88 tstl %a0 461b6: 671c beqs 461d4 <== NEVER TAKEN return RTEMS_INVALID_ADDRESS; _ISR_Install_vector( 461b8: 2f08 movel %a0,%sp@- 461ba: 2f01 movel %d1,%sp@- 461bc: 2f00 movel %d0,%sp@- 461be: 4eb9 0004 9bd2 jsr 49bd2 <_CPU_ISR_install_vector> vector, (proc_ptr)new_isr_handler, (proc_ptr *)old_isr_handler ); return RTEMS_SUCCESSFUL; 461c4: 4fef 000c lea %sp@(12),%sp 461c8: 4280 clrl %d0 } 461ca: 4e5e unlk %fp 461cc: 4e75 rts rtems_vector_number vector, rtems_isr_entry *old_isr_handler ) { if ( !_ISR_Is_vector_number_valid( vector ) ) return RTEMS_INVALID_NUMBER; 461ce: 700a moveq #10,%d0 <== NOT EXECUTED _ISR_Install_vector( vector, (proc_ptr)new_isr_handler, (proc_ptr *)old_isr_handler ); return RTEMS_SUCCESSFUL; } 461d0: 4e5e unlk %fp <== NOT EXECUTED 461d2: 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; 461d4: 7009 moveq #9,%d0 <== NOT EXECUTED _ISR_Install_vector( vector, (proc_ptr)new_isr_handler, (proc_ptr *)old_isr_handler ); return RTEMS_SUCCESSFUL; } 461d6: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 000471e0 : rtems_interrupt_level rtems_interrupt_disable( void ) { rtems_interrupt_level previous_level; _ISR_Disable( previous_level ); 471e0: 223c 0000 0700 movel #1792,%d1 <== NOT EXECUTED */ #undef rtems_interrupt_disable rtems_interrupt_level rtems_interrupt_disable( void ) { 471e6: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED rtems_interrupt_level previous_level; _ISR_Disable( previous_level ); 471ea: 40c0 movew %sr,%d0 <== NOT EXECUTED 471ec: 8280 orl %d0,%d1 <== NOT EXECUTED 471ee: 46c1 movew %d1,%sr <== NOT EXECUTED return previous_level; } 471f0: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 000471f4 : #undef rtems_interrupt_enable void rtems_interrupt_enable( rtems_interrupt_level previous_level ) { 471f4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED _ISR_Enable( previous_level ); 471f8: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED 471fc: 46c0 movew %d0,%sr <== NOT EXECUTED } 471fe: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00047202 : #undef rtems_interrupt_flash void rtems_interrupt_flash( rtems_interrupt_level previous_level ) { 47202: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED _ISR_Flash( previous_level ); 47206: 222e 0008 movel %fp@(8),%d1 <== NOT EXECUTED 4720a: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED 47210: 46c1 movew %d1,%sr <== NOT EXECUTED 47212: 8081 orl %d1,%d0 <== NOT EXECUTED 47214: 46c0 movew %d0,%sr <== NOT EXECUTED } 47216: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 0004721a : */ #undef rtems_interrupt_is_in_progress bool rtems_interrupt_is_in_progress( void ) { 4721a: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return _ISR_Is_in_progress(); 4721e: 4ab9 0005 fdcc tstl 5fdcc <_Per_CPU_Information+0x8> <== NOT EXECUTED 47224: 56c0 sne %d0 <== NOT EXECUTED } 47226: 4e5e unlk %fp <== NOT EXECUTED 47228: 4480 negl %d0 <== NOT EXECUTED =============================================================================== 00046b4c : rtems_attribute rtems_interrupt_level_attribute( uint32_t level ) { return RTEMS_INTERRUPT_LEVEL(level); } 46b4c: 7007 moveq #7,%d0 <== NOT EXECUTED uint32_t rtems_interrupt_mask = RTEMS_INTERRUPT_MASK; rtems_attribute rtems_interrupt_level_attribute( uint32_t level ) { 46b4e: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return RTEMS_INTERRUPT_LEVEL(level); } 46b52: c0ae 0008 andl %fp@(8),%d0 <== NOT EXECUTED 46b56: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 0004d4ec : rtems_status_code rtems_io_close( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { 4d4ec: 4e56 0000 linkw %fp,#0 4d4f0: 202e 0008 movel %fp@(8),%d0 4d4f4: 2f03 movel %d3,%sp@- 4d4f6: 2f02 movel %d2,%sp@- rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) 4d4f8: b0b9 0005 e67a cmpl 5e67a <_IO_Number_of_drivers>,%d0 4d4fe: 6420 bccs 4d520 <== NEVER TAKEN return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].close_entry; 4d500: 2600 movel %d0,%d3 4d502: 2400 movel %d0,%d2 4d504: e78b lsll #3,%d3 4d506: eb8a lsll #5,%d2 4d508: 2279 0005 e67e moveal 5e67e <_IO_Driver_address_table>,%a1 4d50e: 9483 subl %d3,%d2 4d510: 2271 2808 moveal %a1@(00000008,%d2:l),%a1 return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; 4d514: 4a89 tstl %a1 4d516: 6712 beqs 4d52a <== NEVER TAKEN } 4d518: 241f movel %sp@+,%d2 4d51a: 261f movel %sp@+,%d3 4d51c: 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; 4d51e: 4ed1 jmp %a1@ } 4d520: 241f movel %sp@+,%d2 <== NOT EXECUTED ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) return RTEMS_INVALID_NUMBER; 4d522: 700a moveq #10,%d0 <== NOT EXECUTED callout = _IO_Driver_address_table[major].close_entry; return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; } 4d524: 261f movel %sp@+,%d3 <== NOT EXECUTED 4d526: 4e5e unlk %fp <== NOT EXECUTED 4d528: 4e75 rts <== NOT EXECUTED 4d52a: 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; 4d52c: 4280 clrl %d0 <== NOT EXECUTED } 4d52e: 261f movel %sp@+,%d3 <== NOT EXECUTED 4d530: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 0004d534 : rtems_status_code rtems_io_control( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { 4d534: 4e56 0000 linkw %fp,#0 4d538: 202e 0008 movel %fp@(8),%d0 4d53c: 2f03 movel %d3,%sp@- 4d53e: 2f02 movel %d2,%sp@- rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) 4d540: b0b9 0005 e67a cmpl 5e67a <_IO_Number_of_drivers>,%d0 4d546: 6420 bccs 4d568 <== NEVER TAKEN return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].control_entry; 4d548: 2600 movel %d0,%d3 4d54a: 2400 movel %d0,%d2 4d54c: e78b lsll #3,%d3 4d54e: eb8a lsll #5,%d2 4d550: 2279 0005 e67e moveal 5e67e <_IO_Driver_address_table>,%a1 4d556: 9483 subl %d3,%d2 4d558: 2271 2814 moveal %a1@(00000014,%d2:l),%a1 return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; 4d55c: 4a89 tstl %a1 4d55e: 6712 beqs 4d572 <== NEVER TAKEN } 4d560: 241f movel %sp@+,%d2 4d562: 261f movel %sp@+,%d3 4d564: 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; 4d566: 4ed1 jmp %a1@ } 4d568: 241f movel %sp@+,%d2 <== NOT EXECUTED ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) return RTEMS_INVALID_NUMBER; 4d56a: 700a moveq #10,%d0 <== NOT EXECUTED callout = _IO_Driver_address_table[major].control_entry; return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; } 4d56c: 261f movel %sp@+,%d3 <== NOT EXECUTED 4d56e: 4e5e unlk %fp <== NOT EXECUTED 4d570: 4e75 rts <== NOT EXECUTED 4d572: 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; 4d574: 4280 clrl %d0 <== NOT EXECUTED } 4d576: 261f movel %sp@+,%d3 <== NOT EXECUTED 4d578: 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 e67a cmpl 5e67a <_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 e67e moveal 5e67e <_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 =============================================================================== 0004d57c : rtems_status_code rtems_io_open( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { 4d57c: 4e56 0000 linkw %fp,#0 4d580: 202e 0008 movel %fp@(8),%d0 4d584: 2f03 movel %d3,%sp@- 4d586: 2f02 movel %d2,%sp@- rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) 4d588: b0b9 0005 e67a cmpl 5e67a <_IO_Number_of_drivers>,%d0 4d58e: 6420 bccs 4d5b0 <== NEVER TAKEN return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].open_entry; 4d590: 2600 movel %d0,%d3 4d592: 2400 movel %d0,%d2 4d594: e78b lsll #3,%d3 4d596: eb8a lsll #5,%d2 4d598: 2279 0005 e67e moveal 5e67e <_IO_Driver_address_table>,%a1 4d59e: 9483 subl %d3,%d2 4d5a0: 2271 2804 moveal %a1@(00000004,%d2:l),%a1 return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; 4d5a4: 4a89 tstl %a1 4d5a6: 6712 beqs 4d5ba <== NEVER TAKEN } 4d5a8: 241f movel %sp@+,%d2 4d5aa: 261f movel %sp@+,%d3 4d5ac: 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; 4d5ae: 4ed1 jmp %a1@ } 4d5b0: 241f movel %sp@+,%d2 <== NOT EXECUTED ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) return RTEMS_INVALID_NUMBER; 4d5b2: 700a moveq #10,%d0 <== NOT EXECUTED callout = _IO_Driver_address_table[major].open_entry; return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; } 4d5b4: 261f movel %sp@+,%d3 <== NOT EXECUTED 4d5b6: 4e5e unlk %fp <== NOT EXECUTED 4d5b8: 4e75 rts <== NOT EXECUTED 4d5ba: 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; 4d5bc: 4280 clrl %d0 <== NOT EXECUTED } 4d5be: 261f movel %sp@+,%d3 <== NOT EXECUTED 4d5c0: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 0004d5c4 : rtems_status_code rtems_io_read( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { 4d5c4: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4d5c8: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED 4d5cc: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4d5ce: 2f02 movel %d2,%sp@- <== NOT EXECUTED rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) 4d5d0: b0b9 0005 e67a cmpl 5e67a <_IO_Number_of_drivers>,%d0 <== NOT EXECUTED 4d5d6: 6420 bccs 4d5f8 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].read_entry; 4d5d8: 2600 movel %d0,%d3 <== NOT EXECUTED 4d5da: 2400 movel %d0,%d2 <== NOT EXECUTED 4d5dc: e78b lsll #3,%d3 <== NOT EXECUTED 4d5de: eb8a lsll #5,%d2 <== NOT EXECUTED 4d5e0: 2279 0005 e67e moveal 5e67e <_IO_Driver_address_table>,%a1 <== NOT EXECUTED 4d5e6: 9483 subl %d3,%d2 <== NOT EXECUTED 4d5e8: 2271 280c moveal %a1@(0000000c,%d2:l),%a1 <== NOT EXECUTED return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; 4d5ec: 4a89 tstl %a1 <== NOT EXECUTED 4d5ee: 6712 beqs 4d602 <== NOT EXECUTED } 4d5f0: 241f movel %sp@+,%d2 <== NOT EXECUTED 4d5f2: 261f movel %sp@+,%d3 <== NOT EXECUTED 4d5f4: 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; 4d5f6: 4ed1 jmp %a1@ <== NOT EXECUTED } 4d5f8: 241f movel %sp@+,%d2 <== NOT EXECUTED ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) return RTEMS_INVALID_NUMBER; 4d5fa: 700a moveq #10,%d0 <== NOT EXECUTED callout = _IO_Driver_address_table[major].read_entry; return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; } 4d5fc: 261f movel %sp@+,%d3 <== NOT EXECUTED 4d5fe: 4e5e unlk %fp <== NOT EXECUTED 4d600: 4e75 rts <== NOT EXECUTED 4d602: 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; 4d604: 4280 clrl %d0 <== NOT EXECUTED } 4d606: 261f movel %sp@+,%d3 <== NOT EXECUTED 4d608: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 0004808c : 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 ) { 4808c: 4e56 fff4 linkw %fp,#-12 48090: 226e 000c moveal %fp@(12),%a1 48094: 48d7 040c moveml %d2-%d3/%a2,%sp@ 48098: 242e 0008 movel %fp@(8),%d2 4809c: 246e 0010 moveal %fp@(16),%a2 rtems_device_major_number major_limit = _IO_Number_of_drivers; 480a0: 2039 0006 28c2 movel 628c2 <_IO_Number_of_drivers>,%d0 if ( rtems_interrupt_is_in_progress() ) 480a6: 4ab9 0006 2874 tstl 62874 <_Per_CPU_Information+0x8> 480ac: 6600 009c bnew 4814a return RTEMS_CALLED_FROM_ISR; if ( registered_major == NULL ) 480b0: 4a8a tstl %a2 480b2: 6700 00ea beqw 4819e return RTEMS_INVALID_ADDRESS; /* Set it to an invalid value */ *registered_major = major_limit; 480b6: 2480 movel %d0,%a2@ if ( driver_table == NULL ) 480b8: 4a89 tstl %a1 480ba: 6700 00e2 beqw 4819e static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; 480be: 4a91 tstl %a1@ 480c0: 6700 00d4 beqw 48196 return RTEMS_INVALID_ADDRESS; if ( rtems_io_is_empty_table( driver_table ) ) return RTEMS_INVALID_ADDRESS; if ( major >= major_limit ) 480c4: b480 cmpl %d0,%d2 480c6: 6476 bccs 4813e <== NEVER TAKEN rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 480c8: 2039 0006 26b4 movel 626b4 <_Thread_Dispatch_disable_level>,%d0 480ce: 5280 addql #1,%d0 480d0: 23c0 0006 26b4 movel %d0,626b4 <_Thread_Dispatch_disable_level> return RTEMS_INVALID_NUMBER; _Thread_Disable_dispatch(); if ( major == 0 ) { 480d6: 4a82 tstl %d2 480d8: 667c bnes 48156 <== 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; 480da: 2039 0006 28c2 movel 628c2 <_IO_Number_of_drivers>,%d0 rtems_device_major_number m = 0; /* major is error checked by caller */ for ( m = 0; m < n; ++m ) { 480e0: 6700 0106 beqw 481e8 480e4: 2239 0006 28c6 movel 628c6 <_IO_Driver_address_table>,%d1 480ea: 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; 480ec: 4a90 tstl %a0@ 480ee: 6700 008e beqw 4817e 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 ) { 480f2: 5282 addql #1,%d2 480f4: 41e8 0018 lea %a0@(24),%a0 480f8: b480 cmpl %d0,%d2 480fa: 65f0 bcss 480ec <== ALWAYS TAKEN if ( rtems_io_is_empty_table( table ) ) break; } /* Assigns invalid value in case of failure */ *major = m; 480fc: 2482 movel %d2,%a2@ if ( m != n ) 480fe: b480 cmpl %d0,%d2 48100: 6700 00e8 beqw 481ea 48104: 2602 movel %d2,%d3 48106: 2002 movel %d2,%d0 } *registered_major = major; } _IO_Driver_address_table [major] = *driver_table; 48108: 2041 moveal %d1,%a0 } /* Assigns invalid value in case of failure */ *major = m; if ( m != n ) 4810a: e78b lsll #3,%d3 4810c: eb88 lsll #5,%d0 4810e: 9083 subl %d3,%d0 } *registered_major = major; } _IO_Driver_address_table [major] = *driver_table; 48110: d1c0 addal %d0,%a0 48112: 20d9 movel %a1@+,%a0@+ 48114: 20d9 movel %a1@+,%a0@+ 48116: 20d9 movel %a1@+,%a0@+ 48118: 20d9 movel %a1@+,%a0@+ 4811a: 20d9 movel %a1@+,%a0@+ 4811c: 2091 movel %a1@,%a0@ _Thread_Enable_dispatch(); 4811e: 4eb9 0004 9c26 jsr 49c26 <_Thread_Enable_dispatch> return rtems_io_initialize( major, 0, NULL ); 48124: 2d42 0008 movel %d2,%fp@(8) } 48128: 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 ); 4812e: 42ae 0010 clrl %fp@(16) 48132: 42ae 000c clrl %fp@(12) } 48136: 4e5e unlk %fp _IO_Driver_address_table [major] = *driver_table; _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL ); 48138: 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; 4813e: 700a moveq #10,%d0 <== NOT EXECUTED _IO_Driver_address_table [major] = *driver_table; _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL ); } 48140: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 48146: 4e5e unlk %fp <== NOT EXECUTED 48148: 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; 4814a: 7012 moveq #18,%d0 <== NOT EXECUTED _IO_Driver_address_table [major] = *driver_table; _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL ); } 4814c: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 48152: 4e5e unlk %fp <== NOT EXECUTED 48154: 4e75 rts <== NOT EXECUTED _Thread_Enable_dispatch(); return sc; } major = *registered_major; } else { rtems_driver_address_table *const table = _IO_Driver_address_table + major; 48156: 2202 movel %d2,%d1 <== NOT EXECUTED 48158: 2002 movel %d2,%d0 <== NOT EXECUTED 4815a: e789 lsll #3,%d1 <== NOT EXECUTED 4815c: eb88 lsll #5,%d0 <== NOT EXECUTED 4815e: 2079 0006 28c6 moveal 628c6 <_IO_Driver_address_table>,%a0 <== NOT EXECUTED 48164: 9081 subl %d1,%d0 <== NOT EXECUTED 48166: 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; 48168: 4a90 tstl %a0@ <== NOT EXECUTED 4816a: 673e beqs 481aa <== 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(); 4816c: 4eb9 0004 9c26 jsr 49c26 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_RESOURCE_IN_USE; 48172: 700c moveq #12,%d0 <== NOT EXECUTED _IO_Driver_address_table [major] = *driver_table; _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL ); } 48174: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 4817a: 4e5e unlk %fp <== NOT EXECUTED 4817c: 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; 4817e: 4aa8 0004 tstl %a0@(4) 48182: 6700 ff78 beqw 480fc 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 ) { 48186: 5282 addql #1,%d2 48188: 41e8 0018 lea %a0@(24),%a0 4818c: b480 cmpl %d0,%d2 4818e: 6500 ff5c bcsw 480ec 48192: 6000 ff68 braw 480fc <== 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; 48196: 4aa9 0004 tstl %a1@(4) 4819a: 6600 ff28 bnew 480c4 if ( driver_table == NULL ) return RTEMS_INVALID_ADDRESS; if ( rtems_io_is_empty_table( driver_table ) ) return RTEMS_INVALID_ADDRESS; 4819e: 7009 moveq #9,%d0 <== NOT EXECUTED _IO_Driver_address_table [major] = *driver_table; _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL ); } 481a0: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 481a6: 4e5e unlk %fp <== NOT EXECUTED 481a8: 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; 481aa: 4aa8 0004 tstl %a0@(4) <== NOT EXECUTED 481ae: 66bc bnes 4816c <== NOT EXECUTED 481b0: 2239 0006 28c6 movel 628c6 <_IO_Driver_address_table>,%d1 <== NOT EXECUTED } *registered_major = major; } _IO_Driver_address_table [major] = *driver_table; 481b6: 2041 moveal %d1,%a0 <== NOT EXECUTED 481b8: d1c0 addal %d0,%a0 <== NOT EXECUTED if ( !rtems_io_is_empty_table( table ) ) { _Thread_Enable_dispatch(); return RTEMS_RESOURCE_IN_USE; } *registered_major = major; 481ba: 2482 movel %d2,%a2@ <== NOT EXECUTED } _IO_Driver_address_table [major] = *driver_table; 481bc: 20d9 movel %a1@+,%a0@+ <== NOT EXECUTED 481be: 20d9 movel %a1@+,%a0@+ <== NOT EXECUTED 481c0: 20d9 movel %a1@+,%a0@+ <== NOT EXECUTED 481c2: 20d9 movel %a1@+,%a0@+ <== NOT EXECUTED 481c4: 20d9 movel %a1@+,%a0@+ <== NOT EXECUTED 481c6: 2091 movel %a1@,%a0@ <== NOT EXECUTED _Thread_Enable_dispatch(); 481c8: 4eb9 0004 9c26 jsr 49c26 <_Thread_Enable_dispatch> <== NOT EXECUTED return rtems_io_initialize( major, 0, NULL ); 481ce: 2d42 0008 movel %d2,%fp@(8) <== NOT EXECUTED } 481d2: 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 ); 481d8: 42ae 0010 clrl %fp@(16) <== NOT EXECUTED 481dc: 42ae 000c clrl %fp@(12) <== NOT EXECUTED } 481e0: 4e5e unlk %fp <== NOT EXECUTED _IO_Driver_address_table [major] = *driver_table; _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL ); 481e2: 4ef9 0004 fc48 jmp 4fc48 <== NOT EXECUTED if ( rtems_io_is_empty_table( table ) ) break; } /* Assigns invalid value in case of failure */ *major = m; 481e8: 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(); 481ea: 4eb9 0004 9c26 jsr 49c26 <_Thread_Enable_dispatch> <== NOT EXECUTED *major = m; if ( m != n ) return RTEMS_SUCCESSFUL; return RTEMS_TOO_MANY; 481f0: 7005 moveq #5,%d0 <== NOT EXECUTED _IO_Driver_address_table [major] = *driver_table; _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL ); } 481f2: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 481f8: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 000481fc : */ rtems_status_code rtems_io_unregister_driver( rtems_device_major_number major ) { 481fc: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 48200: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED if ( rtems_interrupt_is_in_progress() ) 48204: 4ab9 0006 2874 tstl 62874 <_Per_CPU_Information+0x8> <== NOT EXECUTED 4820a: 6644 bnes 48250 <== NOT EXECUTED return RTEMS_CALLED_FROM_ISR; if ( major < _IO_Number_of_drivers ) { 4820c: b0b9 0006 28c2 cmpl 628c2 <_IO_Number_of_drivers>,%d0 <== NOT EXECUTED 48212: 6506 bcss 4821a <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } return RTEMS_UNSATISFIED; 48214: 700d moveq #13,%d0 <== NOT EXECUTED } 48216: 4e5e unlk %fp <== NOT EXECUTED 48218: 4e75 rts <== NOT EXECUTED 4821a: 2239 0006 26b4 movel 626b4 <_Thread_Dispatch_disable_level>,%d1<== NOT EXECUTED 48220: 5281 addql #1,%d1 <== NOT EXECUTED 48222: 23c1 0006 26b4 movel %d1,626b4 <_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], 48228: 2200 movel %d0,%d1 <== NOT EXECUTED 4822a: eb88 lsll #5,%d0 <== NOT EXECUTED 4822c: 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( 4822e: 2079 0006 28c6 moveal 628c6 <_IO_Driver_address_table>,%a0 <== NOT EXECUTED &_IO_Driver_address_table[major], 48234: 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( 48236: d1c0 addal %d0,%a0 <== NOT EXECUTED 48238: 4298 clrl %a0@+ <== NOT EXECUTED 4823a: 4298 clrl %a0@+ <== NOT EXECUTED 4823c: 4298 clrl %a0@+ <== NOT EXECUTED 4823e: 4298 clrl %a0@+ <== NOT EXECUTED 48240: 4298 clrl %a0@+ <== NOT EXECUTED 48242: 4290 clrl %a0@ <== NOT EXECUTED &_IO_Driver_address_table[major], 0, sizeof( rtems_driver_address_table ) ); _Thread_Enable_dispatch(); 48244: 4eb9 0004 9c26 jsr 49c26 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; 4824a: 4280 clrl %d0 <== NOT EXECUTED } return RTEMS_UNSATISFIED; } 4824c: 4e5e unlk %fp <== NOT EXECUTED 4824e: 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; 48250: 7012 moveq #18,%d0 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } return RTEMS_UNSATISFIED; } 48252: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 0004d60c : rtems_status_code rtems_io_write( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { 4d60c: 4e56 0000 linkw %fp,#0 4d610: 202e 0008 movel %fp@(8),%d0 4d614: 2f03 movel %d3,%sp@- 4d616: 2f02 movel %d2,%sp@- rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) 4d618: b0b9 0005 e67a cmpl 5e67a <_IO_Number_of_drivers>,%d0 4d61e: 6420 bccs 4d640 <== NEVER TAKEN return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].write_entry; 4d620: 2600 movel %d0,%d3 4d622: 2400 movel %d0,%d2 4d624: e78b lsll #3,%d3 4d626: eb8a lsll #5,%d2 4d628: 2279 0005 e67e moveal 5e67e <_IO_Driver_address_table>,%a1 4d62e: 9483 subl %d3,%d2 4d630: 2271 2810 moveal %a1@(00000010,%d2:l),%a1 return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; 4d634: 4a89 tstl %a1 4d636: 6712 beqs 4d64a <== NEVER TAKEN } 4d638: 241f movel %sp@+,%d2 4d63a: 261f movel %sp@+,%d3 4d63c: 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; 4d63e: 4ed1 jmp %a1@ } 4d640: 241f movel %sp@+,%d2 <== NOT EXECUTED ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) return RTEMS_INVALID_NUMBER; 4d642: 700a moveq #10,%d0 <== NOT EXECUTED callout = _IO_Driver_address_table[major].write_entry; return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; } 4d644: 261f movel %sp@+,%d3 <== NOT EXECUTED 4d646: 4e5e unlk %fp <== NOT EXECUTED 4d648: 4e75 rts <== NOT EXECUTED 4d64a: 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; 4d64c: 4280 clrl %d0 <== NOT EXECUTED } 4d64e: 261f movel %sp@+,%d3 <== NOT EXECUTED 4d650: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 0004928c : #include #include void rtems_iterate_over_all_threads(rtems_per_thread_routine routine) { 4928c: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 49290: 48d7 1c04 moveml %d2/%a2-%a4,%sp@ <== NOT EXECUTED 49294: 266e 0008 moveal %fp@(8),%a3 <== NOT EXECUTED uint32_t i; uint32_t api_index; Thread_Control *the_thread; Objects_Information *information; if ( !routine ) 49298: 4a8b tstl %a3 <== NOT EXECUTED 4929a: 673e beqs 492da <== NOT EXECUTED 4929c: 49f9 0006 89fc lea 689fc <_Objects_Information_table+0x4>,%a4<== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( !_Objects_Information_table[ api_index ] ) continue; #endif information = _Objects_Information_table[ api_index ][ 1 ]; 492a2: 205c moveal %a4@+,%a0 <== NOT EXECUTED 492a4: 2468 0004 moveal %a0@(4),%a2 <== NOT EXECUTED if ( !information ) 492a8: 4a8a tstl %a2 <== NOT EXECUTED 492aa: 6726 beqs 492d2 <== NOT EXECUTED continue; for ( i=1 ; i <= information->maximum ; i++ ) { 492ac: 4a6a 000e tstw %a2@(14) <== NOT EXECUTED 492b0: 6720 beqs 492d2 <== NOT EXECUTED 492b2: 7401 moveq #1,%d2 <== NOT EXECUTED the_thread = (Thread_Control *)information->local_table[ i ]; 492b4: 206a 0018 moveal %a2@(24),%a0 <== NOT EXECUTED 492b8: 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++ ) { 492bc: 5282 addql #1,%d2 <== NOT EXECUTED the_thread = (Thread_Control *)information->local_table[ i ]; if ( !the_thread ) 492be: 4a80 tstl %d0 <== NOT EXECUTED 492c0: 6706 beqs 492c8 <== NOT EXECUTED continue; (*routine)(the_thread); 492c2: 2f00 movel %d0,%sp@- <== NOT EXECUTED 492c4: 4e93 jsr %a3@ <== NOT EXECUTED 492c6: 588f addql #4,%sp <== NOT EXECUTED information = _Objects_Information_table[ api_index ][ 1 ]; if ( !information ) continue; for ( i=1 ; i <= information->maximum ; i++ ) { 492c8: 4280 clrl %d0 <== NOT EXECUTED 492ca: 302a 000e movew %a2@(14),%d0 <== NOT EXECUTED 492ce: b480 cmpl %d0,%d2 <== NOT EXECUTED 492d0: 63e2 blss 492b4 <== NOT EXECUTED Objects_Information *information; if ( !routine ) return; for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) { 492d2: b9fc 0006 8a08 cmpal #428552,%a4 <== NOT EXECUTED 492d8: 66c8 bnes 492a2 <== NOT EXECUTED (*routine)(the_thread); } } } 492da: 4cee 1c04 fff0 moveml %fp@(-16),%d2/%a2-%a4 <== NOT EXECUTED 492e0: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 000562dc : rtems_id id, const void *buffer, size_t size, uint32_t *count ) { 562dc: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 562e0: 48d7 001c moveml %d2-%d4,%sp@ <== NOT EXECUTED 562e4: 282e 0008 movel %fp@(8),%d4 <== NOT EXECUTED 562e8: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED 562ec: 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 ) 562f0: 4a82 tstl %d2 <== NOT EXECUTED 562f2: 6762 beqs 56356 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !count ) 562f4: 4a83 tstl %d3 <== NOT EXECUTED 562f6: 675e beqs 56356 <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Message_queue_Control *) _Objects_Get( &_Message_queue_Information, id, location ); 562f8: 486e fffc pea %fp@(-4) <== NOT EXECUTED 562fc: 2f04 movel %d4,%sp@- <== NOT EXECUTED 562fe: 4879 0007 d3b6 pea 7d3b6 <_Message_queue_Information> <== NOT EXECUTED 56304: 4eb9 0005 b840 jsr 5b840 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { 5630a: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 5630e: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 56312: 6636 bnes 5634a <== NOT EXECUTED case OBJECTS_LOCAL: core_status = _CORE_message_queue_Broadcast( 56314: 2f03 movel %d3,%sp@- <== NOT EXECUTED 56316: 2040 moveal %d0,%a0 <== NOT EXECUTED 56318: 42a7 clrl %sp@- <== NOT EXECUTED 5631a: 2f04 movel %d4,%sp@- <== NOT EXECUTED 5631c: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 56320: 2f02 movel %d2,%sp@- <== NOT EXECUTED 56322: 4868 0014 pea %a0@(20) <== NOT EXECUTED 56326: 4eb9 0005 9cf8 jsr 59cf8 <_CORE_message_queue_Broadcast> <== NOT EXECUTED 5632c: 2400 movel %d0,%d2 <== NOT EXECUTED NULL, #endif count ); _Thread_Enable_dispatch(); 5632e: 4eb9 0005 c12a jsr 5c12a <_Thread_Enable_dispatch> <== NOT EXECUTED return 56334: 2f02 movel %d2,%sp@- <== NOT EXECUTED 56336: 4eb9 0005 66e0 jsr 566e0 <_Message_queue_Translate_core_message_queue_return_code><== NOT EXECUTED 5633c: 4fef 001c lea %sp@(28),%sp <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 56340: 4cee 001c fff0 moveml %fp@(-16),%d2-%d4 <== NOT EXECUTED 56346: 4e5e unlk %fp <== NOT EXECUTED 56348: 4e75 rts <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 5634a: 7004 moveq #4,%d0 <== NOT EXECUTED } 5634c: 4cee 001c fff0 moveml %fp@(-16),%d2-%d4 <== NOT EXECUTED 56352: 4e5e unlk %fp <== NOT EXECUTED 56354: 4e75 rts <== NOT EXECUTED if ( !buffer ) return RTEMS_INVALID_ADDRESS; if ( !count ) return RTEMS_INVALID_ADDRESS; 56356: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 56358: 4cee 001c fff0 moveml %fp@(-16),%d2-%d4 <== NOT EXECUTED 5635e: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 0004ed68 : uint32_t count, size_t max_message_size, rtems_attribute attribute_set, rtems_id *id ) { 4ed68: 4e56 ffe8 linkw %fp,#-24 <== NOT EXECUTED 4ed6c: 48d7 0c1c moveml %d2-%d4/%a2-%a3,%sp@ <== NOT EXECUTED 4ed70: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED 4ed74: 262e 000c movel %fp@(12),%d3 <== NOT EXECUTED 4ed78: 282e 0010 movel %fp@(16),%d4 <== NOT EXECUTED 4ed7c: 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 ) ) 4ed80: 4a82 tstl %d2 <== NOT EXECUTED 4ed82: 6726 beqs 4edaa <== NOT EXECUTED return RTEMS_INVALID_NAME; if ( !id ) 4ed84: 4a8a tstl %a2 <== NOT EXECUTED 4ed86: 6700 009c beqw 4ee24 <== NOT EXECUTED if ( (is_global = _Attributes_Is_global( attribute_set ) ) && !_System_state_Is_multiprocessing ) return RTEMS_MP_NOT_CONFIGURED; #endif if ( count == 0 ) 4ed8a: 4a83 tstl %d3 <== NOT EXECUTED 4ed8c: 6710 beqs 4ed9e <== NOT EXECUTED return RTEMS_INVALID_NUMBER; if ( max_message_size == 0 ) 4ed8e: 4a84 tstl %d4 <== NOT EXECUTED 4ed90: 6624 bnes 4edb6 <== NOT EXECUTED return RTEMS_INVALID_SIZE; 4ed92: 7008 moveq #8,%d0 <== NOT EXECUTED ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 4ed94: 4cee 0c1c ffe8 moveml %fp@(-24),%d2-%d4/%a2-%a3 <== NOT EXECUTED 4ed9a: 4e5e unlk %fp <== NOT EXECUTED 4ed9c: 4e75 rts <== NOT EXECUTED !_System_state_Is_multiprocessing ) return RTEMS_MP_NOT_CONFIGURED; #endif if ( count == 0 ) return RTEMS_INVALID_NUMBER; 4ed9e: 700a moveq #10,%d0 <== NOT EXECUTED ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 4eda0: 4cee 0c1c ffe8 moveml %fp@(-24),%d2-%d4/%a2-%a3 <== NOT EXECUTED 4eda6: 4e5e unlk %fp <== NOT EXECUTED 4eda8: 4e75 rts <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) bool is_global; #endif if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; 4edaa: 7003 moveq #3,%d0 <== NOT EXECUTED ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 4edac: 4cee 0c1c ffe8 moveml %fp@(-24),%d2-%d4/%a2-%a3 <== NOT EXECUTED 4edb2: 4e5e unlk %fp <== NOT EXECUTED 4edb4: 4e75 rts <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 4edb6: 2039 0006 8304 movel 68304 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED 4edbc: 5280 addql #1,%d0 <== NOT EXECUTED 4edbe: 23c0 0006 8304 movel %d0,68304 <_Thread_Dispatch_disable_level><== NOT EXECUTED #endif #endif _Thread_Disable_dispatch(); /* protects object pointer */ the_message_queue = _Message_queue_Allocate(); 4edc4: 4eb9 0005 49d4 jsr 549d4 <_Message_queue_Allocate> <== NOT EXECUTED 4edca: 2640 moveal %d0,%a3 <== NOT EXECUTED if ( !the_message_queue ) { 4edcc: 4a80 tstl %d0 <== NOT EXECUTED 4edce: 6700 008a beqw 4ee5a <== 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; 4edd2: 202e 0014 movel %fp@(20),%d0 <== NOT EXECUTED 4edd6: 204e moveal %fp,%a0 <== NOT EXECUTED 4edd8: 44c0 movew %d0,%ccr <== NOT EXECUTED 4edda: 56c0 sne %d0 <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } #endif the_message_queue->attribute_set = attribute_set; 4eddc: 222e 0014 movel %fp@(20),%d1 <== NOT EXECUTED if (_Attributes_Is_priority( attribute_set ) ) the_msgq_attributes.discipline = CORE_MESSAGE_QUEUE_DISCIPLINES_PRIORITY; 4ede0: 49c0 extbl %d0 <== NOT EXECUTED 4ede2: 5280 addql #1,%d0 <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } #endif the_message_queue->attribute_set = attribute_set; 4ede4: 2741 0010 movel %d1,%a3@(16) <== NOT EXECUTED if (_Attributes_Is_priority( attribute_set ) ) the_msgq_attributes.discipline = CORE_MESSAGE_QUEUE_DISCIPLINES_PRIORITY; 4ede8: 2100 movel %d0,%a0@- <== NOT EXECUTED else the_msgq_attributes.discipline = CORE_MESSAGE_QUEUE_DISCIPLINES_FIFO; if ( ! _CORE_message_queue_Initialize( 4edea: 2f04 movel %d4,%sp@- <== NOT EXECUTED 4edec: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4edee: 2f08 movel %a0,%sp@- <== NOT EXECUTED 4edf0: 486b 0014 pea %a3@(20) <== NOT EXECUTED 4edf4: 4eb9 0005 0114 jsr 50114 <_CORE_message_queue_Initialize> <== NOT EXECUTED 4edfa: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 4edfe: 4a00 tstb %d0 <== NOT EXECUTED 4ee00: 662e bnes 4ee30 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Message_queue_Free ( Message_queue_Control *the_message_queue ) { _Objects_Free( &_Message_queue_Information, &the_message_queue->Object ); 4ee02: 2f0b movel %a3,%sp@- <== NOT EXECUTED 4ee04: 4879 0006 84da pea 684da <_Message_queue_Information> <== NOT EXECUTED 4ee0a: 4eb9 0005 1064 jsr 51064 <_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(); 4ee10: 4eb9 0005 1b42 jsr 51b42 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_UNSATISFIED; 4ee16: 508f addql #8,%sp <== NOT EXECUTED 4ee18: 700d moveq #13,%d0 <== NOT EXECUTED ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 4ee1a: 4cee 0c1c ffe8 moveml %fp@(-24),%d2-%d4/%a2-%a3 <== NOT EXECUTED 4ee20: 4e5e unlk %fp <== NOT EXECUTED 4ee22: 4e75 rts <== NOT EXECUTED if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; if ( !id ) return RTEMS_INVALID_ADDRESS; 4ee24: 7009 moveq #9,%d0 <== NOT EXECUTED ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 4ee26: 4cee 0c1c ffe8 moveml %fp@(-24),%d2-%d4/%a2-%a3 <== NOT EXECUTED 4ee2c: 4e5e unlk %fp <== NOT EXECUTED 4ee2e: 4e75 rts <== NOT EXECUTED Objects_Name name ) { _Objects_Set_local_object( information, _Objects_Get_index( the_object->id ), 4ee30: 202b 0008 movel %a3@(8),%d0 <== NOT EXECUTED Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( 4ee34: 4281 clrl %d1 <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 4ee36: 2079 0006 84f2 moveal 684f2 <_Message_queue_Information+0x18>,%a0<== NOT EXECUTED Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( 4ee3c: 3200 movew %d0,%d1 <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 4ee3e: 218b 1c00 movel %a3,%a0@(00000000,%d1:l:4) <== NOT EXECUTED information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 4ee42: 2742 000c movel %d2,%a3@(12) <== NOT EXECUTED &_Message_queue_Information, &the_message_queue->Object, (Objects_Name) name ); *id = the_message_queue->Object.id; 4ee46: 2480 movel %d0,%a2@ <== NOT EXECUTED name, 0 ); #endif _Thread_Enable_dispatch(); 4ee48: 4eb9 0005 1b42 jsr 51b42 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 4ee4e: 4cee 0c1c ffe8 moveml %fp@(-24),%d2-%d4/%a2-%a3 <== NOT EXECUTED 0 ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 4ee54: 4280 clrl %d0 <== NOT EXECUTED } 4ee56: 4e5e unlk %fp <== NOT EXECUTED 4ee58: 4e75 rts <== NOT EXECUTED _Thread_Disable_dispatch(); /* protects object pointer */ the_message_queue = _Message_queue_Allocate(); if ( !the_message_queue ) { _Thread_Enable_dispatch(); 4ee5a: 4eb9 0005 1b42 jsr 51b42 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_TOO_MANY; 4ee60: 7005 moveq #5,%d0 <== NOT EXECUTED ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 4ee62: 4cee 0c1c ffe8 moveml %fp@(-24),%d2-%d4/%a2-%a3 <== NOT EXECUTED 4ee68: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00056468 : */ rtems_status_code rtems_message_queue_delete( rtems_id id ) { 56468: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 5646c: 2f0a movel %a2,%sp@- <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Message_queue_Control *) _Objects_Get( &_Message_queue_Information, id, location ); 5646e: 486e fffc pea %fp@(-4) <== NOT EXECUTED 56472: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 56476: 4879 0007 d3b6 pea 7d3b6 <_Message_queue_Information> <== NOT EXECUTED 5647c: 4eb9 0005 b840 jsr 5b840 <_Objects_Get> <== NOT EXECUTED register Message_queue_Control *the_message_queue; Objects_Locations location; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { 56482: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 56486: 2440 moveal %d0,%a2 <== NOT EXECUTED 56488: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 5648c: 6640 bnes 564ce <== NOT EXECUTED case OBJECTS_LOCAL: _Objects_Close( &_Message_queue_Information, 5648e: 2f00 movel %d0,%sp@- <== NOT EXECUTED 56490: 4879 0007 d3b6 pea 7d3b6 <_Message_queue_Information> <== NOT EXECUTED 56496: 4eb9 0005 b3d4 jsr 5b3d4 <_Objects_Close> <== NOT EXECUTED &the_message_queue->Object ); _CORE_message_queue_Close( 5649c: 4878 0005 pea 5 <== NOT EXECUTED 564a0: 42a7 clrl %sp@- <== NOT EXECUTED 564a2: 486a 0014 pea %a2@(20) <== NOT EXECUTED 564a6: 4eb9 0005 9d84 jsr 59d84 <_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 ); 564ac: 2f0a movel %a2,%sp@- <== NOT EXECUTED 564ae: 4879 0007 d3b6 pea 7d3b6 <_Message_queue_Information> <== NOT EXECUTED 564b4: 4eb9 0005 b698 jsr 5b698 <_Objects_Free> <== NOT EXECUTED 0, /* Not used */ 0 ); } #endif _Thread_Enable_dispatch(); 564ba: 4eb9 0005 c12a jsr 5c12a <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 564c0: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 0 ); } #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 564c4: 4fef 001c lea %sp@(28),%sp <== NOT EXECUTED 564c8: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 564ca: 4e5e unlk %fp <== NOT EXECUTED 564cc: 4e75 rts <== NOT EXECUTED 564ce: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 564d2: 7004 moveq #4,%d0 <== NOT EXECUTED } 564d4: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 000564d8 : rtems_status_code rtems_message_queue_flush( rtems_id id, uint32_t *count ) { 564d8: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 564dc: 2f0a movel %a2,%sp@- <== NOT EXECUTED 564de: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED register Message_queue_Control *the_message_queue; Objects_Locations location; if ( !count ) 564e2: 4a8a tstl %a2 <== NOT EXECUTED 564e4: 6748 beqs 5652e <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Message_queue_Control *) _Objects_Get( &_Message_queue_Information, id, location ); 564e6: 486e fffc pea %fp@(-4) <== NOT EXECUTED 564ea: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 564ee: 4879 0007 d3b6 pea 7d3b6 <_Message_queue_Information> <== NOT EXECUTED 564f4: 4eb9 0005 b840 jsr 5b840 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { 564fa: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 564fe: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 56502: 6620 bnes 56524 <== NOT EXECUTED case OBJECTS_LOCAL: *count = _CORE_message_queue_Flush( &the_message_queue->message_queue ); 56504: 2040 moveal %d0,%a0 <== NOT EXECUTED 56506: 4868 0014 pea %a0@(20) <== NOT EXECUTED 5650a: 4eb9 0005 9dd8 jsr 59dd8 <_CORE_message_queue_Flush> <== NOT EXECUTED 56510: 2480 movel %d0,%a2@ <== NOT EXECUTED _Thread_Enable_dispatch(); 56512: 4eb9 0005 c12a jsr 5c12a <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 56518: 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; 5651c: 588f addql #4,%sp <== NOT EXECUTED 5651e: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 56520: 4e5e unlk %fp <== NOT EXECUTED 56522: 4e75 rts <== NOT EXECUTED 56524: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 56528: 7004 moveq #4,%d0 <== NOT EXECUTED } 5652a: 4e5e unlk %fp <== NOT EXECUTED 5652c: 4e75 rts <== NOT EXECUTED 5652e: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED { register Message_queue_Control *the_message_queue; Objects_Locations location; if ( !count ) return RTEMS_INVALID_ADDRESS; 56532: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 56534: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00056538 : rtems_status_code rtems_message_queue_get_number_pending( rtems_id id, uint32_t *count ) { 56538: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 5653c: 2f0a movel %a2,%sp@- <== NOT EXECUTED 5653e: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED register Message_queue_Control *the_message_queue; Objects_Locations location; if ( !count ) 56542: 4a8a tstl %a2 <== NOT EXECUTED 56544: 673e beqs 56584 <== NOT EXECUTED 56546: 486e fffc pea %fp@(-4) <== NOT EXECUTED 5654a: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 5654e: 4879 0007 d3b6 pea 7d3b6 <_Message_queue_Information> <== NOT EXECUTED 56554: 4eb9 0005 b840 jsr 5b840 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { 5655a: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 5655e: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 56562: 6616 bnes 5657a <== NOT EXECUTED case OBJECTS_LOCAL: *count = the_message_queue->message_queue.number_of_pending_messages; 56564: 2040 moveal %d0,%a0 <== NOT EXECUTED 56566: 24a8 005c movel %a0@(92),%a2@ <== NOT EXECUTED _Thread_Enable_dispatch(); 5656a: 4eb9 0005 c12a jsr 5c12a <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 56570: 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; 56574: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 56576: 4e5e unlk %fp <== NOT EXECUTED 56578: 4e75 rts <== NOT EXECUTED 5657a: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 5657e: 7004 moveq #4,%d0 <== NOT EXECUTED } 56580: 4e5e unlk %fp <== NOT EXECUTED 56582: 4e75 rts <== NOT EXECUTED 56584: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED { register Message_queue_Control *the_message_queue; Objects_Locations location; if ( !count ) return RTEMS_INVALID_ADDRESS; 56588: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 5658a: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 0004ee6c : rtems_status_code rtems_message_queue_ident( rtems_name name, uint32_t node, rtems_id *id ) { 4ee6c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( 4ee70: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 4ee74: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 4ee78: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4ee7c: 4879 0006 84da pea 684da <_Message_queue_Information> <== NOT EXECUTED 4ee82: 4eb9 0005 135c jsr 5135c <_Objects_Name_to_id_u32> <== NOT EXECUTED name, node, id ); return _Status_Object_name_errors_to_status[ status ]; 4ee88: 41f9 0006 5c3a lea 65c3a <_Status_Object_name_errors_to_status>,%a0<== NOT EXECUTED } 4ee8e: 4e5e unlk %fp <== NOT EXECUTED 4ee90: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED ... =============================================================================== 0004ee98 : void *buffer, size_t *size, rtems_option option_set, rtems_interval timeout ) { 4ee98: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 4ee9c: 48d7 001c moveml %d2-%d4,%sp@ <== NOT EXECUTED 4eea0: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED 4eea4: 262e 0010 movel %fp@(16),%d3 <== NOT EXECUTED register Message_queue_Control *the_message_queue; Objects_Locations location; bool wait; if ( !buffer ) 4eea8: 4a82 tstl %d2 <== NOT EXECUTED 4eeaa: 6776 beqs 4ef22 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !size ) 4eeac: 4a83 tstl %d3 <== NOT EXECUTED 4eeae: 6772 beqs 4ef22 <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Message_queue_Control *) _Objects_Get( &_Message_queue_Information, id, location ); 4eeb0: 486e fffc pea %fp@(-4) <== NOT EXECUTED 4eeb4: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4eeb8: 4879 0006 84da pea 684da <_Message_queue_Information> <== NOT EXECUTED 4eebe: 4eb9 0005 11d0 jsr 511d0 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { 4eec4: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4eec8: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 4eecc: 6648 bnes 4ef16 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Options_Is_no_wait ( rtems_option option_set ) { return (option_set & RTEMS_NO_WAIT) ? true : false; 4eece: 7201 moveq #1,%d1 <== NOT EXECUTED if ( _Options_Is_no_wait( option_set ) ) wait = false; else wait = true; _CORE_message_queue_Seize( 4eed0: 7801 moveq #1,%d4 <== NOT EXECUTED 4eed2: 2040 moveal %d0,%a0 <== NOT EXECUTED 4eed4: c2ae 0014 andl %fp@(20),%d1 <== NOT EXECUTED 4eed8: 2f2e 0018 movel %fp@(24),%sp@- <== NOT EXECUTED 4eedc: b384 eorl %d1,%d4 <== NOT EXECUTED 4eede: 2f04 movel %d4,%sp@- <== NOT EXECUTED 4eee0: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4eee2: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4eee4: 2f28 0008 movel %a0@(8),%sp@- <== NOT EXECUTED 4eee8: 4868 0014 pea %a0@(20) <== NOT EXECUTED 4eeec: 4eb9 0005 01cc jsr 501cc <_CORE_message_queue_Seize> <== NOT EXECUTED buffer, size, wait, timeout ); _Thread_Enable_dispatch(); 4eef2: 4eb9 0005 1b42 jsr 51b42 <_Thread_Enable_dispatch> <== NOT EXECUTED return _Message_queue_Translate_core_message_queue_return_code( _Thread_Executing->Wait.return_code 4eef8: 2079 0006 84c8 moveal 684c8 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED size, wait, timeout ); _Thread_Enable_dispatch(); return _Message_queue_Translate_core_message_queue_return_code( 4eefe: 2f28 0034 movel %a0@(52),%sp@- <== NOT EXECUTED 4ef02: 4eb9 0004 efbc jsr 4efbc <_Message_queue_Translate_core_message_queue_return_code><== NOT EXECUTED 4ef08: 4fef 001c lea %sp@(28),%sp <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4ef0c: 4cee 001c fff0 moveml %fp@(-16),%d2-%d4 <== NOT EXECUTED 4ef12: 4e5e unlk %fp <== NOT EXECUTED 4ef14: 4e75 rts <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 4ef16: 7004 moveq #4,%d0 <== NOT EXECUTED } 4ef18: 4cee 001c fff0 moveml %fp@(-16),%d2-%d4 <== NOT EXECUTED 4ef1e: 4e5e unlk %fp <== NOT EXECUTED 4ef20: 4e75 rts <== NOT EXECUTED if ( !buffer ) return RTEMS_INVALID_ADDRESS; if ( !size ) return RTEMS_INVALID_ADDRESS; 4ef22: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4ef24: 4cee 001c fff0 moveml %fp@(-16),%d2-%d4 <== NOT EXECUTED 4ef2a: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 0004ef30 : rtems_status_code rtems_message_queue_send( rtems_id id, const void *buffer, size_t size ) { 4ef30: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 4ef34: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4ef36: 262e 0008 movel %fp@(8),%d3 <== NOT EXECUTED 4ef3a: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4ef3c: 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 ) 4ef40: 676c beqs 4efae <== NOT EXECUTED 4ef42: 486e fffc pea %fp@(-4) <== NOT EXECUTED 4ef46: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4ef48: 4879 0006 84da pea 684da <_Message_queue_Information> <== NOT EXECUTED 4ef4e: 4eb9 0005 11d0 jsr 511d0 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { 4ef54: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4ef58: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 4ef5c: 6642 bnes 4efa0 <== NOT EXECUTED CORE_message_queue_API_mp_support_callout api_message_queue_mp_support, bool wait, Watchdog_Interval timeout ) { return _CORE_message_queue_Submit( 4ef5e: 42a7 clrl %sp@- <== NOT EXECUTED 4ef60: 2040 moveal %d0,%a0 <== NOT EXECUTED 4ef62: 42a7 clrl %sp@- <== NOT EXECUTED 4ef64: 2f3c 7fff ffff movel #2147483647,%sp@- <== NOT EXECUTED 4ef6a: 42a7 clrl %sp@- <== NOT EXECUTED 4ef6c: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4ef6e: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 4ef72: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4ef74: 4868 0014 pea %a0@(20) <== NOT EXECUTED 4ef78: 4eb9 0005 02b0 jsr 502b0 <_CORE_message_queue_Submit> <== NOT EXECUTED MESSAGE_QUEUE_MP_HANDLER, false, /* sender does not block */ 0 /* no timeout */ ); _Thread_Enable_dispatch(); 4ef7e: 4fef 0020 lea %sp@(32),%sp <== NOT EXECUTED 4ef82: 2400 movel %d0,%d2 <== NOT EXECUTED 4ef84: 4eb9 0005 1b42 jsr 51b42 <_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); 4ef8a: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4ef8c: 4eb9 0004 efbc jsr 4efbc <_Message_queue_Translate_core_message_queue_return_code><== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4ef92: 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); 4ef96: 588f addql #4,%sp <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4ef98: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED 4ef9c: 4e5e unlk %fp <== NOT EXECUTED 4ef9e: 4e75 rts <== NOT EXECUTED 4efa0: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 4efa4: 7004 moveq #4,%d0 <== NOT EXECUTED } 4efa6: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED 4efaa: 4e5e unlk %fp <== NOT EXECUTED 4efac: 4e75 rts <== NOT EXECUTED 4efae: 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; 4efb2: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4efb4: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED 4efb8: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 000566f8 : rtems_status_code rtems_message_queue_urgent( rtems_id id, const void *buffer, size_t size ) { 566f8: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 566fc: 2f03 movel %d3,%sp@- <== NOT EXECUTED 566fe: 262e 0008 movel %fp@(8),%d3 <== NOT EXECUTED 56702: 2f02 movel %d2,%sp@- <== NOT EXECUTED 56704: 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 ) 56708: 676c beqs 56776 <== NOT EXECUTED 5670a: 486e fffc pea %fp@(-4) <== NOT EXECUTED 5670e: 2f03 movel %d3,%sp@- <== NOT EXECUTED 56710: 4879 0007 d3b6 pea 7d3b6 <_Message_queue_Information> <== NOT EXECUTED 56716: 4eb9 0005 b840 jsr 5b840 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { 5671c: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 56720: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 56724: 6642 bnes 56768 <== NOT EXECUTED CORE_message_queue_API_mp_support_callout api_message_queue_mp_support, bool wait, Watchdog_Interval timeout ) { return _CORE_message_queue_Submit( 56726: 42a7 clrl %sp@- <== NOT EXECUTED 56728: 2040 moveal %d0,%a0 <== NOT EXECUTED 5672a: 42a7 clrl %sp@- <== NOT EXECUTED 5672c: 2f3c 8000 0000 movel #-2147483648,%sp@- <== NOT EXECUTED 56732: 42a7 clrl %sp@- <== NOT EXECUTED 56734: 2f03 movel %d3,%sp@- <== NOT EXECUTED 56736: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 5673a: 2f02 movel %d2,%sp@- <== NOT EXECUTED 5673c: 4868 0014 pea %a0@(20) <== NOT EXECUTED 56740: 4eb9 0005 9fec jsr 59fec <_CORE_message_queue_Submit> <== NOT EXECUTED id, MESSAGE_QUEUE_MP_HANDLER, false, /* sender does not block */ 0 /* no timeout */ ); _Thread_Enable_dispatch(); 56746: 4fef 0020 lea %sp@(32),%sp <== NOT EXECUTED 5674a: 2400 movel %d0,%d2 <== NOT EXECUTED 5674c: 4eb9 0005 c12a jsr 5c12a <_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); 56752: 2f02 movel %d2,%sp@- <== NOT EXECUTED 56754: 4eb9 0005 66e0 jsr 566e0 <_Message_queue_Translate_core_message_queue_return_code><== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 5675a: 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); 5675e: 588f addql #4,%sp <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 56760: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED 56764: 4e5e unlk %fp <== NOT EXECUTED 56766: 4e75 rts <== NOT EXECUTED 56768: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 5676c: 7004 moveq #4,%d0 <== NOT EXECUTED } 5676e: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED 56772: 4e5e unlk %fp <== NOT EXECUTED 56774: 4e75 rts <== NOT EXECUTED 56776: 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; 5677a: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 5677c: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED 56780: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00047e80 : #include int rtems_object_api_maximum_class( int api ) { 47e80: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return _Objects_API_maximum_class(api); } 47e84: 4e5e unlk %fp <== NOT EXECUTED int rtems_object_api_maximum_class( int api ) { return _Objects_API_maximum_class(api); 47e86: 4ef9 0004 98d8 jmp 498d8 <_Objects_API_maximum_class> <== NOT EXECUTED =============================================================================== 00047e8c : uint32_t api ) { if ( _Objects_Is_api_valid( api ) ) return 1; return -1; 47e8c: 7203 moveq #3,%d1 <== NOT EXECUTED #include uint32_t rtems_object_api_minimum_class( uint32_t api ) { 47e8e: 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 ) 47e92: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED 47e96: 5380 subql #1,%d0 <== NOT EXECUTED if ( _Objects_Is_api_valid( api ) ) return 1; return -1; 47e98: b280 cmpl %d0,%d1 <== NOT EXECUTED 47e9a: 53c0 sls %d0 <== NOT EXECUTED 47e9c: 49c0 extbl %d0 <== NOT EXECUTED } 47e9e: 123c 0001 moveb #1,%d1 <== NOT EXECUTED 47ea2: 4e5e unlk %fp <== NOT EXECUTED 47ea4: 8081 orl %d1,%d0 <== NOT EXECUTED =============================================================================== 00047ea8 : ) { const rtems_assoc_t *api_assoc; const rtems_assoc_t *class_assoc; if ( the_api == OBJECTS_INTERNAL_API ) 47ea8: 7001 moveq #1,%d0 <== NOT EXECUTED const char *rtems_object_get_api_class_name( int the_api, int the_class ) { 47eaa: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 47eae: 222e 0008 movel %fp@(8),%d1 <== NOT EXECUTED 47eb2: 2f02 movel %d2,%sp@- <== NOT EXECUTED const rtems_assoc_t *api_assoc; const rtems_assoc_t *class_assoc; if ( the_api == OBJECTS_INTERNAL_API ) 47eb4: b081 cmpl %d1,%d0 <== NOT EXECUTED 47eb6: 673e beqs 47ef6 <== NOT EXECUTED api_assoc = rtems_object_api_internal_assoc; else if ( the_api == OBJECTS_CLASSIC_API ) 47eb8: 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"; 47eba: 203c 0005 ed96 movel #388502,%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 ) 47ec0: b481 cmpl %d1,%d2 <== NOT EXECUTED 47ec2: 6708 beqs 47ecc <== 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"; } 47ec4: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 47ec8: 4e5e unlk %fp <== NOT EXECUTED 47eca: 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; 47ecc: 203c 0005 fd78 movel #392568,%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 ); 47ed2: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 47ed6: 2f00 movel %d0,%sp@- <== NOT EXECUTED 47ed8: 4eb9 0004 cda0 jsr 4cda0 <== NOT EXECUTED if ( class_assoc ) 47ede: 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 ); 47ee0: 2040 moveal %d0,%a0 <== NOT EXECUTED if ( class_assoc ) return class_assoc->name; return "BAD CLASS"; 47ee2: 203c 0005 ed9e movel #388510,%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 ) 47ee8: 4a88 tstl %a0 <== NOT EXECUTED 47eea: 67d8 beqs 47ec4 <== NOT EXECUTED return class_assoc->name; return "BAD CLASS"; } 47eec: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 47ef0: 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; 47ef2: 2010 movel %a0@,%d0 <== NOT EXECUTED return "BAD CLASS"; } 47ef4: 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; 47ef6: 203c 0005 fd60 movel #392544,%d0 <== NOT EXECUTED 47efc: 60d4 bras 47ed2 <== NOT EXECUTED ... =============================================================================== 00047f00 : }; const char *rtems_object_get_api_name( int api ) { 47f00: 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 ); 47f04: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 47f08: 4879 0005 fdf0 pea 5fdf0 <== NOT EXECUTED 47f0e: 4eb9 0004 cda0 jsr 4cda0 <== NOT EXECUTED if ( api_assoc ) 47f14: 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 ); 47f16: 2040 moveal %d0,%a0 <== NOT EXECUTED if ( api_assoc ) return api_assoc->name; return "BAD CLASS"; 47f18: 203c 0005 ed9e movel #388510,%d0 <== NOT EXECUTED ) { const rtems_assoc_t *api_assoc; api_assoc = rtems_assoc_ptr_by_local( rtems_objects_api_assoc, api ); if ( api_assoc ) 47f1e: 4a88 tstl %a0 <== NOT EXECUTED 47f20: 6702 beqs 47f24 <== NOT EXECUTED return api_assoc->name; 47f22: 2010 movel %a0@,%d0 <== NOT EXECUTED return "BAD CLASS"; } 47f24: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00047f68 : rtems_status_code rtems_object_get_class_information( int the_api, int the_class, rtems_object_api_class_information *info ) { 47f68: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 47f6c: 2f0a movel %a2,%sp@- <== NOT EXECUTED 47f6e: 246e 0010 moveal %fp@(16),%a2 <== NOT EXECUTED 47f72: 2f02 movel %d2,%sp@- <== NOT EXECUTED int i; /* * Validate parameters and look up information structure. */ if ( !info ) 47f74: 4a8a tstl %a2 <== NOT EXECUTED 47f76: 6768 beqs 47fe0 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; obj_info = _Objects_Get_information( the_api, the_class ); 47f78: 3f2e 000e movew %fp@(14),%sp@- <== NOT EXECUTED 47f7c: 4267 clrw %sp@- <== NOT EXECUTED 47f7e: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 47f82: 4eb9 0004 9c70 jsr 49c70 <_Objects_Get_information> <== NOT EXECUTED if ( !obj_info ) 47f88: 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 ); 47f8a: 2040 moveal %d0,%a0 <== NOT EXECUTED if ( !obj_info ) 47f8c: 4a80 tstl %d0 <== NOT EXECUTED 47f8e: 675e beqs 47fee <== NOT EXECUTED return RTEMS_INVALID_NUMBER; /* * Return information about this object class to the user. */ info->minimum_id = obj_info->minimum_id; 47f90: 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; 47f94: 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; 47f96: 2568 000a 0004 movel %a0@(10),%a2@(4) <== NOT EXECUTED info->auto_extend = obj_info->auto_extend; info->maximum = obj_info->maximum; 47f9c: 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; 47fa0: 1568 0010 000c moveb %a0@(16),%a2@(12) <== NOT EXECUTED info->maximum = obj_info->maximum; 47fa6: 2542 0008 movel %d2,%a2@(8) <== NOT EXECUTED for ( unallocated=0, i=1 ; i <= info->maximum ; i++ ) 47faa: 6750 beqs 47ffc <== NOT EXECUTED 47fac: 2068 0018 moveal %a0@(24),%a0 <== NOT EXECUTED 47fb0: 7201 moveq #1,%d1 <== NOT EXECUTED 47fb2: 7001 moveq #1,%d0 <== NOT EXECUTED 47fb4: 93c9 subal %a1,%a1 <== NOT EXECUTED 47fb6: 5280 addql #1,%d0 <== NOT EXECUTED if ( !obj_info->local_table[i] ) 47fb8: 4ab0 1c00 tstl %a0@(00000000,%d1:l:4) <== NOT EXECUTED 47fbc: 6718 beqs 47fd6 <== 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++ ) 47fbe: 2200 movel %d0,%d1 <== NOT EXECUTED 47fc0: b082 cmpl %d2,%d0 <== NOT EXECUTED 47fc2: 63f2 blss 47fb6 <== NOT EXECUTED if ( !obj_info->local_table[i] ) unallocated++; info->unallocated = unallocated; 47fc4: 2549 000e movel %a1,%a2@(14) <== NOT EXECUTED return RTEMS_SUCCESSFUL; 47fc8: 4280 clrl %d0 <== NOT EXECUTED } 47fca: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 47fce: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 47fd2: 4e5e unlk %fp <== NOT EXECUTED 47fd4: 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++; 47fd6: 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++ ) 47fd8: 2200 movel %d0,%d1 <== NOT EXECUTED 47fda: b082 cmpl %d2,%d0 <== NOT EXECUTED 47fdc: 63d8 blss 47fb6 <== NOT EXECUTED 47fde: 60e4 bras 47fc4 <== NOT EXECUTED unallocated++; info->unallocated = unallocated; return RTEMS_SUCCESSFUL; } 47fe0: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED /* * Validate parameters and look up information structure. */ if ( !info ) return RTEMS_INVALID_ADDRESS; 47fe4: 7009 moveq #9,%d0 <== NOT EXECUTED unallocated++; info->unallocated = unallocated; return RTEMS_SUCCESSFUL; } 47fe6: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 47fea: 4e5e unlk %fp <== NOT EXECUTED 47fec: 4e75 rts <== NOT EXECUTED 47fee: 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; 47ff2: 700a moveq #10,%d0 <== NOT EXECUTED unallocated++; info->unallocated = unallocated; return RTEMS_SUCCESSFUL; } 47ff4: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 47ff8: 4e5e unlk %fp <== NOT EXECUTED 47ffa: 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++ ) 47ffc: 93c9 subal %a1,%a1 <== NOT EXECUTED if ( !obj_info->local_table[i] ) unallocated++; info->unallocated = unallocated; return RTEMS_SUCCESSFUL; 47ffe: 4280 clrl %d0 <== NOT EXECUTED for ( unallocated=0, i=1 ; i <= info->maximum ; i++ ) if ( !obj_info->local_table[i] ) unallocated++; info->unallocated = unallocated; 48000: 2549 000e movel %a1,%a2@(14) <== NOT EXECUTED 48004: 60c4 bras 47fca <== NOT EXECUTED ... =============================================================================== 000477ec : rtems_status_code rtems_object_get_classic_name( rtems_id id, rtems_name *name ) { 477ec: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 477f0: 2f0a movel %a2,%sp@- <== NOT EXECUTED 477f2: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED Objects_Name_or_id_lookup_errors status; Objects_Name name_u; if ( !name ) 477f6: 4a8a tstl %a2 <== NOT EXECUTED 477f8: 6726 beqs 47820 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; status = _Objects_Id_to_name( id, &name_u ); 477fa: 486e fffc pea %fp@(-4) <== NOT EXECUTED 477fe: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 47802: 4eb9 0004 94d8 jsr 494d8 <_Objects_Id_to_name> <== NOT EXECUTED *name = name_u.name_u32; 47808: 24ae fffc movel %fp@(-4),%a2@ <== NOT EXECUTED return _Status_Object_name_errors_to_status[ status ]; 4780c: 41f9 0005 dbc8 lea 5dbc8 <_Status_Object_name_errors_to_status>,%a0<== NOT EXECUTED 47812: 508f addql #8,%sp <== NOT EXECUTED } 47814: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 47818: 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 ]; 4781a: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED } 4781e: 4e75 rts <== NOT EXECUTED 47820: 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; 47824: 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 ]; } 47826: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 0004782c : char *rtems_object_get_name( Objects_Id id, size_t length, char *name ) { 4782c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return _Objects_Get_name_as_string( id, length, name ); } 47830: 4e5e unlk %fp <== NOT EXECUTED Objects_Id id, size_t length, char *name ) { return _Objects_Get_name_as_string( id, length, name ); 47832: 4ef9 0004 97a4 jmp 497a4 <_Objects_Get_name_as_string> <== NOT EXECUTED =============================================================================== 00048014 : #undef rtems_object_id_api_maximum int rtems_object_id_api_maximum(void) { return OBJECTS_APIS_LAST; } 48014: 7003 moveq #3,%d0 <== NOT EXECUTED #include #include #undef rtems_object_id_api_maximum int rtems_object_id_api_maximum(void) { 48016: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return OBJECTS_APIS_LAST; } 4801a: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 00048020 : #undef rtems_object_id_api_minimum int rtems_object_id_api_minimum(void) { return OBJECTS_INTERNAL_API; } 48020: 7001 moveq #1,%d0 <== NOT EXECUTED #include #include #undef rtems_object_id_api_minimum int rtems_object_id_api_minimum(void) { 48022: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return OBJECTS_INTERNAL_API; } 48026: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 0004802c : */ RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API( Objects_Id id ) { return (Objects_APIs) ((id >> OBJECTS_API_START_BIT) & OBJECTS_API_VALID_BITS); 4802c: 4280 clrl %d0 <== NOT EXECUTED int rtems_object_id_get_api( rtems_id id ) { return _Objects_Get_API( id ); } 4802e: 7207 moveq #7,%d1 <== NOT EXECUTED #undef rtems_object_id_get_api int rtems_object_id_get_api( rtems_id id ) { 48030: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 48034: 102e 0008 moveb %fp@(8),%d0 <== NOT EXECUTED return _Objects_Get_API( id ); } 48038: 4e5e unlk %fp <== NOT EXECUTED 4803a: c081 andl %d1,%d0 <== NOT EXECUTED ... =============================================================================== 00048040 : int rtems_object_id_get_class( rtems_id id ) { return _Objects_Get_class( id ); } 48040: 721b moveq #27,%d1 <== NOT EXECUTED #undef rtems_object_id_get_class int rtems_object_id_get_class( rtems_id id ) { 48042: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 48046: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED return _Objects_Get_class( id ); } 4804a: 4e5e unlk %fp <== NOT EXECUTED 4804c: e2a8 lsrl %d1,%d0 <== NOT EXECUTED =============================================================================== 00048050 : int rtems_object_id_get_index( rtems_id id ) { return _Objects_Get_index( id ); } 48050: 4280 clrl %d0 <== NOT EXECUTED #undef rtems_object_id_get_index int rtems_object_id_get_index( rtems_id id ) { 48052: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return _Objects_Get_index( id ); } 48056: 302e 000a movew %fp@(10),%d0 <== NOT EXECUTED 4805a: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 00048060 : int rtems_object_id_get_node( rtems_id id ) { return _Objects_Get_node( id ); } 48060: 4280 clrl %d0 <== NOT EXECUTED #undef rtems_object_id_get_node int rtems_object_id_get_node( rtems_id id ) { 48062: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return _Objects_Get_node( id ); } 48066: 102e 0009 moveb %fp@(9),%d0 <== NOT EXECUTED 4806a: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 00048070 : */ rtems_status_code rtems_object_set_name( rtems_id id, const char *name ) { 48070: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 48074: 48d7 001c moveml %d2-%d4,%sp@ <== NOT EXECUTED 48078: 262e 0008 movel %fp@(8),%d3 <== NOT EXECUTED 4807c: 282e 000c movel %fp@(12),%d4 <== NOT EXECUTED Objects_Information *information; Objects_Locations location; Objects_Control *the_object; Objects_Id tmpId; if ( !name ) 48080: 6764 beqs 480e6 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; 48082: 4a83 tstl %d3 <== NOT EXECUTED 48084: 6754 beqs 480da <== NOT EXECUTED information = _Objects_Get_information_id( tmpId ); 48086: 2f03 movel %d3,%sp@- <== NOT EXECUTED 48088: 4eb9 0004 9c44 jsr 49c44 <_Objects_Get_information_id> <== NOT EXECUTED if ( !information ) 4808e: 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 ); 48090: 2400 movel %d0,%d2 <== NOT EXECUTED if ( !information ) 48092: 673a beqs 480ce <== NOT EXECUTED return RTEMS_INVALID_ID; the_object = _Objects_Get( information, tmpId, &location ); 48094: 486e fffc pea %fp@(-4) <== NOT EXECUTED 48098: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4809a: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4809c: 4eb9 0004 9e18 jsr 49e18 <_Objects_Get> <== NOT EXECUTED switch ( location ) { 480a2: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 480a6: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 480aa: 6622 bnes 480ce <== NOT EXECUTED case OBJECTS_LOCAL: _Objects_Set_name( information, the_object, name ); 480ac: 2f04 movel %d4,%sp@- <== NOT EXECUTED 480ae: 2f00 movel %d0,%sp@- <== NOT EXECUTED 480b0: 2f02 movel %d2,%sp@- <== NOT EXECUTED 480b2: 4eb9 0004 a028 jsr 4a028 <_Objects_Set_name> <== NOT EXECUTED _Thread_Enable_dispatch(); 480b8: 4eb9 0004 a7b6 jsr 4a7b6 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; 480be: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 480c2: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 480c4: 4cee 001c fff0 moveml %fp@(-16),%d2-%d4 <== NOT EXECUTED 480ca: 4e5e unlk %fp <== NOT EXECUTED 480cc: 4e75 rts <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 480ce: 7004 moveq #4,%d0 <== NOT EXECUTED } 480d0: 4cee 001c fff0 moveml %fp@(-16),%d2-%d4 <== NOT EXECUTED 480d6: 4e5e unlk %fp <== NOT EXECUTED 480d8: 4e75 rts <== NOT EXECUTED Objects_Id tmpId; if ( !name ) return RTEMS_INVALID_ADDRESS; tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; 480da: 2079 0006 16a8 moveal 616a8 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED 480e0: 2628 0008 movel %a0@(8),%d3 <== NOT EXECUTED 480e4: 60a0 bras 48086 <== NOT EXECUTED Objects_Locations location; Objects_Control *the_object; Objects_Id tmpId; if ( !name ) return RTEMS_INVALID_ADDRESS; 480e6: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 480e8: 4cee 001c fff0 moveml %fp@(-16),%d2-%d4 <== NOT EXECUTED 480ee: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 00056784 : uint32_t length, uint32_t buffer_size, rtems_attribute attribute_set, rtems_id *id ) { 56784: 4e56 ffe8 linkw %fp,#-24 <== NOT EXECUTED 56788: 48d7 0c3c moveml %d2-%d5/%a2-%a3,%sp@ <== NOT EXECUTED 5678c: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED 56790: 2a2e 000c movel %fp@(12),%d5 <== NOT EXECUTED 56794: 282e 0010 movel %fp@(16),%d4 <== NOT EXECUTED 56798: 262e 0014 movel %fp@(20),%d3 <== NOT EXECUTED 5679c: 246e 001c moveal %fp@(28),%a2 <== NOT EXECUTED register Partition_Control *the_partition; if ( !rtems_is_name_valid( name ) ) 567a0: 4a82 tstl %d2 <== NOT EXECUTED 567a2: 673a beqs 567de <== NOT EXECUTED return RTEMS_INVALID_NAME; if ( !starting_address ) 567a4: 4a85 tstl %d5 <== NOT EXECUTED 567a6: 671e beqs 567c6 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !id ) 567a8: 4a8a tstl %a2 <== NOT EXECUTED 567aa: 671a beqs 567c6 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( length == 0 || buffer_size == 0 || length < buffer_size || 567ac: 4a84 tstl %d4 <== NOT EXECUTED 567ae: 6722 beqs 567d2 <== NOT EXECUTED 567b0: 4a83 tstl %d3 <== NOT EXECUTED 567b2: 671e beqs 567d2 <== NOT EXECUTED 567b4: b684 cmpl %d4,%d3 <== NOT EXECUTED 567b6: 621a bhis 567d2 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Partition_Is_buffer_size_aligned ( uint32_t buffer_size ) { return ((buffer_size % CPU_PARTITION_ALIGNMENT) == 0); 567b8: 7003 moveq #3,%d0 <== NOT EXECUTED 567ba: c083 andl %d3,%d0 <== NOT EXECUTED 567bc: 6614 bnes 567d2 <== NOT EXECUTED ) { #if (CPU_ALIGNMENT == 0) return true; #else return (((uintptr_t)address % CPU_ALIGNMENT) == 0); 567be: 103c 0003 moveb #3,%d0 <== NOT EXECUTED 567c2: c085 andl %d5,%d0 <== NOT EXECUTED !_Partition_Is_buffer_size_aligned( buffer_size ) ) return RTEMS_INVALID_SIZE; if ( !_Addresses_Is_aligned( starting_address ) ) 567c4: 6724 beqs 567ea <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; 567c6: 7009 moveq #9,%d0 <== NOT EXECUTED ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 567c8: 4cee 0c3c ffe8 moveml %fp@(-24),%d2-%d5/%a2-%a3 <== NOT EXECUTED 567ce: 4e5e unlk %fp <== NOT EXECUTED 567d0: 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; 567d2: 7008 moveq #8,%d0 <== NOT EXECUTED ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 567d4: 4cee 0c3c ffe8 moveml %fp@(-24),%d2-%d5/%a2-%a3 <== NOT EXECUTED 567da: 4e5e unlk %fp <== NOT EXECUTED 567dc: 4e75 rts <== NOT EXECUTED ) { register Partition_Control *the_partition; if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; 567de: 7003 moveq #3,%d0 <== NOT EXECUTED ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 567e0: 4cee 0c3c ffe8 moveml %fp@(-24),%d2-%d5/%a2-%a3 <== NOT EXECUTED 567e6: 4e5e unlk %fp <== NOT EXECUTED 567e8: 4e75 rts <== NOT EXECUTED 567ea: 2039 0007 d1d8 movel 7d1d8 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED 567f0: 5280 addql #1,%d0 <== NOT EXECUTED 567f2: 23c0 0007 d1d8 movel %d0,7d1d8 <_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 ); 567f8: 4879 0007 d074 pea 7d074 <_Partition_Information> <== NOT EXECUTED 567fe: 4eb9 0005 b344 jsr 5b344 <_Objects_Allocate> <== NOT EXECUTED _Thread_Disable_dispatch(); /* prevents deletion */ the_partition = _Partition_Allocate(); if ( !the_partition ) { 56804: 588f addql #4,%sp <== NOT EXECUTED 56806: 2640 moveal %d0,%a3 <== NOT EXECUTED 56808: 4a80 tstl %d0 <== NOT EXECUTED 5680a: 6758 beqs 56864 <== NOT EXECUTED return RTEMS_TOO_MANY; } #endif the_partition->starting_address = starting_address; the_partition->length = length; 5680c: 2744 0014 movel %d4,%a3@(20) <== NOT EXECUTED the_partition->buffer_size = buffer_size; the_partition->attribute_set = attribute_set; 56810: 276e 0018 001c movel %fp@(24),%a3@(28) <== NOT EXECUTED the_partition->number_of_used_blocks = 0; _Chain_Initialize( &the_partition->Memory, starting_address, 56816: 4c43 4004 remul %d3,%d4,%d4 <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } #endif the_partition->starting_address = starting_address; 5681a: 2745 0010 movel %d5,%a3@(16) <== NOT EXECUTED the_partition->length = length; the_partition->buffer_size = buffer_size; 5681e: 2743 0018 movel %d3,%a3@(24) <== NOT EXECUTED the_partition->attribute_set = attribute_set; the_partition->number_of_used_blocks = 0; 56822: 42ab 0020 clrl %a3@(32) <== NOT EXECUTED _Chain_Initialize( &the_partition->Memory, starting_address, 56826: 2f03 movel %d3,%sp@- <== NOT EXECUTED 56828: 2f04 movel %d4,%sp@- <== NOT EXECUTED 5682a: 2f05 movel %d5,%sp@- <== NOT EXECUTED 5682c: 486b 0024 pea %a3@(36) <== NOT EXECUTED 56830: 4eb9 0005 9c94 jsr 59c94 <_Chain_Initialize> <== NOT EXECUTED Objects_Name name ) { _Objects_Set_local_object( information, _Objects_Get_index( the_object->id ), 56836: 202b 0008 movel %a3@(8),%d0 <== NOT EXECUTED Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( 5683a: 4281 clrl %d1 <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 5683c: 2079 0007 d08c moveal 7d08c <_Partition_Information+0x18>,%a0<== NOT EXECUTED Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( 56842: 3200 movew %d0,%d1 <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 56844: 218b 1c00 movel %a3,%a0@(00000000,%d1:l:4) <== NOT EXECUTED information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 56848: 2742 000c movel %d2,%a3@(12) <== NOT EXECUTED &_Partition_Information, &the_partition->Object, (Objects_Name) name ); *id = the_partition->Object.id; 5684c: 2480 movel %d0,%a2@ <== NOT EXECUTED name, 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); 5684e: 4eb9 0005 c12a jsr 5c12a <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; 56854: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 56858: 4280 clrl %d0 <== NOT EXECUTED } 5685a: 4cee 0c3c ffe8 moveml %fp@(-24),%d2-%d5/%a2-%a3 <== NOT EXECUTED 56860: 4e5e unlk %fp <== NOT EXECUTED 56862: 4e75 rts <== NOT EXECUTED _Thread_Disable_dispatch(); /* prevents deletion */ the_partition = _Partition_Allocate(); if ( !the_partition ) { _Thread_Enable_dispatch(); 56864: 4eb9 0005 c12a jsr 5c12a <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_TOO_MANY; 5686a: 7005 moveq #5,%d0 <== NOT EXECUTED ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 5686c: 4cee 0c3c ffe8 moveml %fp@(-24),%d2-%d5/%a2-%a3 <== NOT EXECUTED 56872: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 00056878 : */ rtems_status_code rtems_partition_delete( rtems_id id ) { 56878: 4e56 fff8 linkw %fp,#-8 <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Partition_Control *) _Objects_Get( &_Partition_Information, id, location ); 5687c: 486e fffc pea %fp@(-4) <== NOT EXECUTED 56880: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 56884: 4879 0007 d074 pea 7d074 <_Partition_Information> <== NOT EXECUTED 5688a: 4eb9 0005 b840 jsr 5b840 <_Objects_Get> <== NOT EXECUTED register Partition_Control *the_partition; Objects_Locations location; the_partition = _Partition_Get( id, &location ); switch ( location ) { 56890: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 56894: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 56898: 6706 beqs 568a0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 5689a: 7004 moveq #4,%d0 <== NOT EXECUTED } 5689c: 4e5e unlk %fp <== NOT EXECUTED 5689e: 4e75 rts <== NOT EXECUTED the_partition = _Partition_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( the_partition->number_of_used_blocks == 0 ) { 568a0: 2040 moveal %d0,%a0 <== NOT EXECUTED 568a2: 4aa8 0020 tstl %a0@(32) <== NOT EXECUTED 568a6: 670c beqs 568b4 <== NOT EXECUTED #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 568a8: 4eb9 0005 c12a jsr 5c12a <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_RESOURCE_IN_USE; 568ae: 700c moveq #12,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 568b0: 4e5e unlk %fp <== NOT EXECUTED 568b2: 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 ); 568b4: 2f00 movel %d0,%sp@- <== NOT EXECUTED 568b6: 4879 0007 d074 pea 7d074 <_Partition_Information> <== NOT EXECUTED 568bc: 2d40 fff8 movel %d0,%fp@(-8) <== NOT EXECUTED 568c0: 4eb9 0005 b3d4 jsr 5b3d4 <_Objects_Close> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Partition_Free ( Partition_Control *the_partition ) { _Objects_Free( &_Partition_Information, &the_partition->Object ); 568c6: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED 568ca: 2f00 movel %d0,%sp@- <== NOT EXECUTED 568cc: 4879 0007 d074 pea 7d074 <_Partition_Information> <== NOT EXECUTED 568d2: 4eb9 0005 b698 jsr 5b698 <_Objects_Free> <== NOT EXECUTED 0 /* Not used */ ); } #endif _Thread_Enable_dispatch(); 568d8: 4eb9 0005 c12a jsr 5c12a <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; 568de: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 568e2: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 568e4: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 000568e8 : rtems_status_code rtems_partition_get_buffer( rtems_id id, void **buffer ) { 568e8: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 568ec: 48d7 0c04 moveml %d2/%a2-%a3,%sp@ <== NOT EXECUTED 568f0: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED register Partition_Control *the_partition; Objects_Locations location; void *the_buffer; if ( !buffer ) 568f4: 4a8a tstl %a2 <== NOT EXECUTED 568f6: 6754 beqs 5694c <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Partition_Control *) _Objects_Get( &_Partition_Information, id, location ); 568f8: 486e fffc pea %fp@(-4) <== NOT EXECUTED 568fc: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 56900: 4879 0007 d074 pea 7d074 <_Partition_Information> <== NOT EXECUTED 56906: 4eb9 0005 b840 jsr 5b840 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_partition = _Partition_Get( id, &location ); switch ( location ) { 5690c: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 56910: 2640 moveal %d0,%a3 <== NOT EXECUTED 56912: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 56916: 6628 bnes 56940 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void *_Partition_Allocate_buffer ( Partition_Control *the_partition ) { return _Chain_Get( &the_partition->Memory ); 56918: 486b 0024 pea %a3@(36) <== NOT EXECUTED 5691c: 4eb9 0005 9c58 jsr 59c58 <_Chain_Get> <== NOT EXECUTED case OBJECTS_LOCAL: the_buffer = _Partition_Allocate_buffer( the_partition ); if ( the_buffer ) { 56922: 588f addql #4,%sp <== NOT EXECUTED 56924: 2400 movel %d0,%d2 <== NOT EXECUTED 56926: 6730 beqs 56958 <== NOT EXECUTED the_partition->number_of_used_blocks += 1; 56928: 52ab 0020 addql #1,%a3@(32) <== NOT EXECUTED _Thread_Enable_dispatch(); 5692c: 4eb9 0005 c12a jsr 5c12a <_Thread_Enable_dispatch> <== NOT EXECUTED *buffer = the_buffer; return RTEMS_SUCCESSFUL; 56932: 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; 56934: 2482 movel %d2,%a2@ <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 56936: 4cee 0c04 fff0 moveml %fp@(-16),%d2/%a2-%a3 <== NOT EXECUTED 5693c: 4e5e unlk %fp <== NOT EXECUTED 5693e: 4e75 rts <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 56940: 7004 moveq #4,%d0 <== NOT EXECUTED } 56942: 4cee 0c04 fff0 moveml %fp@(-16),%d2/%a2-%a3 <== NOT EXECUTED 56948: 4e5e unlk %fp <== NOT EXECUTED 5694a: 4e75 rts <== NOT EXECUTED register Partition_Control *the_partition; Objects_Locations location; void *the_buffer; if ( !buffer ) return RTEMS_INVALID_ADDRESS; 5694c: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 5694e: 4cee 0c04 fff0 moveml %fp@(-16),%d2/%a2-%a3 <== NOT EXECUTED 56954: 4e5e unlk %fp <== NOT EXECUTED 56956: 4e75 rts <== NOT EXECUTED the_partition->number_of_used_blocks += 1; _Thread_Enable_dispatch(); *buffer = the_buffer; return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 56958: 4eb9 0005 c12a jsr 5c12a <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_UNSATISFIED; 5695e: 700d moveq #13,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 56960: 4cee 0c04 fff0 moveml %fp@(-16),%d2/%a2-%a3 <== NOT EXECUTED 56966: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 0005696c : rtems_status_code rtems_partition_ident( rtems_name name, uint32_t node, rtems_id *id ) { 5696c: 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 ); 56970: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 56974: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 56978: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 5697c: 4879 0007 d074 pea 7d074 <_Partition_Information> <== NOT EXECUTED 56982: 4eb9 0005 b9cc jsr 5b9cc <_Objects_Name_to_id_u32> <== NOT EXECUTED return _Status_Object_name_errors_to_status[ status ]; 56988: 41f9 0007 6818 lea 76818 <_Status_Object_name_errors_to_status>,%a0<== NOT EXECUTED } 5698e: 4e5e unlk %fp <== NOT EXECUTED 56990: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED ... =============================================================================== 00056998 : rtems_status_code rtems_partition_return_buffer( rtems_id id, void *buffer ) { 56998: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 5699c: 2f0a movel %a2,%sp@- <== NOT EXECUTED 5699e: 2f02 movel %d2,%sp@- <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Partition_Control *) _Objects_Get( &_Partition_Information, id, location ); 569a0: 486e fffc pea %fp@(-4) <== NOT EXECUTED 569a4: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 569a8: 4879 0007 d074 pea 7d074 <_Partition_Information> <== NOT EXECUTED 569ae: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED 569b2: 4eb9 0005 b840 jsr 5b840 <_Objects_Get> <== NOT EXECUTED register Partition_Control *the_partition; Objects_Locations location; the_partition = _Partition_Get( id, &location ); switch ( location ) { 569b8: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 569bc: 2440 moveal %d0,%a2 <== NOT EXECUTED 569be: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 569c2: 670e beqs 569d2 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 569c4: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 569c8: 7004 moveq #4,%d0 <== NOT EXECUTED } 569ca: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 569ce: 4e5e unlk %fp <== NOT EXECUTED 569d0: 4e75 rts <== NOT EXECUTED ) { void *starting; void *ending; starting = the_partition->starting_address; 569d2: 202a 0010 movel %a2@(16),%d0 <== NOT EXECUTED ending = _Addresses_Add_offset( starting, the_partition->length ); 569d6: 222a 0014 movel %a2@(20),%d1 <== NOT EXECUTED const void *address, const void *base, const void *limit ) { return (address >= base && address <= limit); 569da: b082 cmpl %d2,%d0 <== NOT EXECUTED 569dc: 623c bhis 56a1a <== NOT EXECUTED RTEMS_INLINE_ROUTINE void *_Addresses_Add_offset ( const void *base, uintptr_t offset ) { return (void *)((uintptr_t)base + offset); 569de: d280 addl %d0,%d1 <== NOT EXECUTED const void *address, const void *base, const void *limit ) { return (address >= base && address <= limit); 569e0: b282 cmpl %d2,%d1 <== NOT EXECUTED 569e2: 6536 bcss 56a1a <== NOT EXECUTED RTEMS_INLINE_ROUTINE int32_t _Addresses_Subtract ( const void *left, const void *right ) { return (int32_t) ((const char *) left - (const char *) right); 569e4: 2202 movel %d2,%d1 <== NOT EXECUTED 569e6: 9280 subl %d0,%d1 <== NOT EXECUTED 569e8: 2001 movel %d1,%d0 <== NOT EXECUTED offset = (uint32_t) _Addresses_Subtract( the_buffer, the_partition->starting_address ); return ((offset % the_partition->buffer_size) == 0); 569ea: 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 ) && 569f0: 4a81 tstl %d1 <== NOT EXECUTED 569f2: 6626 bnes 56a1a <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Partition_Free_buffer ( Partition_Control *the_partition, Chain_Node *the_buffer ) { _Chain_Append( &the_partition->Memory, the_buffer ); 569f4: 2f02 movel %d2,%sp@- <== NOT EXECUTED 569f6: 486a 0024 pea %a2@(36) <== NOT EXECUTED 569fa: 4eb9 0005 9bf8 jsr 59bf8 <_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; 56a00: 53aa 0020 subql #1,%a2@(32) <== NOT EXECUTED _Thread_Enable_dispatch(); 56a04: 4eb9 0005 c12a jsr 5c12a <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 56a0a: 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; 56a0e: 508f addql #8,%sp <== NOT EXECUTED 56a10: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 56a12: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 56a16: 4e5e unlk %fp <== NOT EXECUTED 56a18: 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(); 56a1a: 4eb9 0005 c12a jsr 5c12a <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 56a20: 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; 56a24: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 56a26: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 56a2a: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 00055c80 : void *internal_start, void *external_start, uint32_t length, rtems_id *id ) { 55c80: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 55c84: 48d7 041c moveml %d2-%d4/%a2,%sp@ <== NOT EXECUTED 55c88: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED 55c8c: 282e 000c movel %fp@(12),%d4 <== NOT EXECUTED 55c90: 262e 0010 movel %fp@(16),%d3 <== NOT EXECUTED 55c94: 246e 0018 moveal %fp@(24),%a2 <== NOT EXECUTED register Dual_ported_memory_Control *the_port; if ( !rtems_is_name_valid( name ) ) 55c98: 4a82 tstl %d2 <== NOT EXECUTED 55c9a: 671a beqs 55cb6 <== NOT EXECUTED return RTEMS_INVALID_NAME; if ( !id ) 55c9c: 4a8a tstl %a2 <== NOT EXECUTED 55c9e: 670a beqs 55caa <== NOT EXECUTED * id - port id * RTEMS_SUCCESSFUL - if successful * error code - if unsuccessful */ rtems_status_code rtems_port_create( 55ca0: 2003 movel %d3,%d0 <== NOT EXECUTED 55ca2: 7203 moveq #3,%d1 <== NOT EXECUTED 55ca4: 8084 orl %d4,%d0 <== NOT EXECUTED 55ca6: c081 andl %d1,%d0 <== NOT EXECUTED return RTEMS_INVALID_NAME; if ( !id ) return RTEMS_INVALID_ADDRESS; if ( !_Addresses_Is_aligned( internal_start ) || 55ca8: 6718 beqs 55cc2 <== NOT EXECUTED !_Addresses_Is_aligned( external_start ) ) return RTEMS_INVALID_ADDRESS; 55caa: 7009 moveq #9,%d0 <== NOT EXECUTED ); *id = the_port->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 55cac: 4cee 041c fff0 moveml %fp@(-16),%d2-%d4/%a2 <== NOT EXECUTED 55cb2: 4e5e unlk %fp <== NOT EXECUTED 55cb4: 4e75 rts <== NOT EXECUTED ) { register Dual_ported_memory_Control *the_port; if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; 55cb6: 7003 moveq #3,%d0 <== NOT EXECUTED ); *id = the_port->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 55cb8: 4cee 041c fff0 moveml %fp@(-16),%d2-%d4/%a2 <== NOT EXECUTED 55cbe: 4e5e unlk %fp <== NOT EXECUTED 55cc0: 4e75 rts <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 55cc2: 2039 0007 d1d8 movel 7d1d8 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED 55cc8: 5280 addql #1,%d0 <== NOT EXECUTED 55cca: 23c0 0007 d1d8 movel %d0,7d1d8 <_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 ); 55cd0: 4879 0007 d03c pea 7d03c <_Dual_ported_memory_Information> <== NOT EXECUTED 55cd6: 4eb9 0005 b344 jsr 5b344 <_Objects_Allocate> <== NOT EXECUTED _Thread_Disable_dispatch(); /* to prevent deletion */ the_port = _Dual_ported_memory_Allocate(); if ( !the_port ) { 55cdc: 588f addql #4,%sp <== NOT EXECUTED 55cde: 2040 moveal %d0,%a0 <== NOT EXECUTED 55ce0: 4a80 tstl %d0 <== NOT EXECUTED 55ce2: 673c beqs 55d20 <== NOT EXECUTED return RTEMS_TOO_MANY; } the_port->internal_base = internal_start; the_port->external_base = external_start; the_port->length = length - 1; 55ce4: 222e 0014 movel %fp@(20),%d1 <== NOT EXECUTED 55ce8: 5381 subql #1,%d1 <== NOT EXECUTED Objects_Name name ) { _Objects_Set_local_object( information, _Objects_Get_index( the_object->id ), 55cea: 2028 0008 movel %a0@(8),%d0 <== NOT EXECUTED 55cee: 2141 0018 movel %d1,%a0@(24) <== NOT EXECUTED Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( 55cf2: 4281 clrl %d1 <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 55cf4: 2279 0007 d054 moveal 7d054 <_Dual_ported_memory_Information+0x18>,%a1<== NOT EXECUTED Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( 55cfa: 3200 movew %d0,%d1 <== NOT EXECUTED if ( !the_port ) { _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } the_port->internal_base = internal_start; 55cfc: 2144 0010 movel %d4,%a0@(16) <== NOT EXECUTED the_port->external_base = external_start; 55d00: 2143 0014 movel %d3,%a0@(20) <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 55d04: 2388 1c00 movel %a0,%a1@(00000000,%d1:l:4) <== NOT EXECUTED information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 55d08: 2142 000c movel %d2,%a0@(12) <== NOT EXECUTED &_Dual_ported_memory_Information, &the_port->Object, (Objects_Name) name ); *id = the_port->Object.id; 55d0c: 2480 movel %d0,%a2@ <== NOT EXECUTED _Thread_Enable_dispatch(); 55d0e: 4eb9 0005 c12a jsr 5c12a <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 55d14: 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; 55d1a: 4280 clrl %d0 <== NOT EXECUTED } 55d1c: 4e5e unlk %fp <== NOT EXECUTED 55d1e: 4e75 rts <== NOT EXECUTED _Thread_Disable_dispatch(); /* to prevent deletion */ the_port = _Dual_ported_memory_Allocate(); if ( !the_port ) { _Thread_Enable_dispatch(); 55d20: 4eb9 0005 c12a jsr 5c12a <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_TOO_MANY; 55d26: 7005 moveq #5,%d0 <== NOT EXECUTED ); *id = the_port->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 55d28: 4cee 041c fff0 moveml %fp@(-16),%d2-%d4/%a2 <== NOT EXECUTED 55d2e: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 00055d34 : */ rtems_status_code rtems_port_delete( rtems_id id ) { 55d34: 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 ); 55d38: 486e fffc pea %fp@(-4) <== NOT EXECUTED 55d3c: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 55d40: 4879 0007 d03c pea 7d03c <_Dual_ported_memory_Information> <== NOT EXECUTED 55d46: 4eb9 0005 b840 jsr 5b840 <_Objects_Get> <== NOT EXECUTED register Dual_ported_memory_Control *the_port; Objects_Locations location; the_port = _Dual_ported_memory_Get( id, &location ); switch ( location ) { 55d4c: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 55d50: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 55d54: 6634 bnes 55d8a <== NOT EXECUTED case OBJECTS_LOCAL: _Objects_Close( &_Dual_ported_memory_Information, &the_port->Object ); 55d56: 2f00 movel %d0,%sp@- <== NOT EXECUTED 55d58: 4879 0007 d03c pea 7d03c <_Dual_ported_memory_Information> <== NOT EXECUTED 55d5e: 2d40 fff8 movel %d0,%fp@(-8) <== NOT EXECUTED 55d62: 4eb9 0005 b3d4 jsr 5b3d4 <_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 ); 55d68: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED 55d6c: 2f00 movel %d0,%sp@- <== NOT EXECUTED 55d6e: 4879 0007 d03c pea 7d03c <_Dual_ported_memory_Information> <== NOT EXECUTED 55d74: 4eb9 0005 b698 jsr 5b698 <_Objects_Free> <== NOT EXECUTED _Dual_ported_memory_Free( the_port ); _Thread_Enable_dispatch(); 55d7a: 4eb9 0005 c12a jsr 5c12a <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; 55d80: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 55d84: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 55d86: 4e5e unlk %fp <== NOT EXECUTED 55d88: 4e75 rts <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 55d8a: 7004 moveq #4,%d0 <== NOT EXECUTED } 55d8c: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00055d90 : rtems_status_code rtems_port_external_to_internal( rtems_id id, void *external, void **internal ) { 55d90: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 55d94: 2f0a movel %a2,%sp@- <== NOT EXECUTED 55d96: 246e 0010 moveal %fp@(16),%a2 <== NOT EXECUTED 55d9a: 2f02 movel %d2,%sp@- <== NOT EXECUTED 55d9c: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED register Dual_ported_memory_Control *the_port; Objects_Locations location; uint32_t ending; if ( !internal ) 55da0: 4a8a tstl %a2 <== NOT EXECUTED 55da2: 6762 beqs 55e06 <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Dual_ported_memory_Control *) _Objects_Get( &_Dual_ported_memory_Information, id, location ); 55da4: 486e fffc pea %fp@(-4) <== NOT EXECUTED 55da8: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 55dac: 4879 0007 d03c pea 7d03c <_Dual_ported_memory_Information> <== NOT EXECUTED 55db2: 4eb9 0005 b840 jsr 5b840 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_port = _Dual_ported_memory_Get( id, &location ); switch ( location ) { 55db8: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 55dbc: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 55dc0: 6624 bnes 55de6 <== NOT EXECUTED RTEMS_INLINE_ROUTINE int32_t _Addresses_Subtract ( const void *left, const void *right ) { return (int32_t) ((const char *) left - (const char *) right); 55dc2: 2202 movel %d2,%d1 <== NOT EXECUTED 55dc4: 2040 moveal %d0,%a0 <== NOT EXECUTED 55dc6: 92a8 0014 subl %a0@(20),%d1 <== NOT EXECUTED case OBJECTS_LOCAL: ending = _Addresses_Subtract( external, the_port->external_base ); if ( ending > the_port->length ) 55dca: b2a8 0018 cmpl %a0@(24),%d1 <== NOT EXECUTED 55dce: 6324 blss 55df4 <== NOT EXECUTED *internal = external; 55dd0: 2482 movel %d2,%a2@ <== NOT EXECUTED else *internal = _Addresses_Add_offset( the_port->internal_base, ending ); _Thread_Enable_dispatch(); 55dd2: 4eb9 0005 c12a jsr 5c12a <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; 55dd8: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 55dda: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 55dde: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 55de2: 4e5e unlk %fp <== NOT EXECUTED 55de4: 4e75 rts <== NOT EXECUTED 55de6: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 55dea: 7004 moveq #4,%d0 <== NOT EXECUTED } 55dec: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 55df0: 4e5e unlk %fp <== NOT EXECUTED 55df2: 4e75 rts <== NOT EXECUTED RTEMS_INLINE_ROUTINE void *_Addresses_Add_offset ( const void *base, uintptr_t offset ) { return (void *)((uintptr_t)base + offset); 55df4: 2040 moveal %d0,%a0 <== NOT EXECUTED 55df6: d2a8 0010 addl %a0@(16),%d1 <== NOT EXECUTED 55dfa: 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(); 55dfc: 4eb9 0005 c12a jsr 5c12a <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; 55e02: 4280 clrl %d0 <== NOT EXECUTED 55e04: 60d4 bras 55dda <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 55e06: 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; 55e0a: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 55e0c: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 55e10: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00055e14 : rtems_status_code rtems_port_ident( rtems_name name, rtems_id *id ) { 55e14: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( 55e18: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 55e1c: 42a7 clrl %sp@- <== NOT EXECUTED 55e1e: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 55e22: 4879 0007 d03c pea 7d03c <_Dual_ported_memory_Information> <== NOT EXECUTED 55e28: 4eb9 0005 b9cc jsr 5b9cc <_Objects_Name_to_id_u32> <== NOT EXECUTED name, OBJECTS_SEARCH_ALL_NODES, id ); return _Status_Object_name_errors_to_status[ status ]; 55e2e: 41f9 0007 6818 lea 76818 <_Status_Object_name_errors_to_status>,%a0<== NOT EXECUTED } 55e34: 4e5e unlk %fp <== NOT EXECUTED 55e36: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED =============================================================================== 00055e3c : rtems_status_code rtems_port_internal_to_external( rtems_id id, void *internal, void **external ) { 55e3c: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 55e40: 2f0a movel %a2,%sp@- <== NOT EXECUTED 55e42: 246e 0010 moveal %fp@(16),%a2 <== NOT EXECUTED 55e46: 2f02 movel %d2,%sp@- <== NOT EXECUTED 55e48: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED register Dual_ported_memory_Control *the_port; Objects_Locations location; uint32_t ending; if ( !external ) 55e4c: 4a8a tstl %a2 <== NOT EXECUTED 55e4e: 6762 beqs 55eb2 <== NOT EXECUTED 55e50: 486e fffc pea %fp@(-4) <== NOT EXECUTED 55e54: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 55e58: 4879 0007 d03c pea 7d03c <_Dual_ported_memory_Information> <== NOT EXECUTED 55e5e: 4eb9 0005 b840 jsr 5b840 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_port = _Dual_ported_memory_Get( id, &location ); switch ( location ) { 55e64: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 55e68: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 55e6c: 6624 bnes 55e92 <== NOT EXECUTED RTEMS_INLINE_ROUTINE int32_t _Addresses_Subtract ( const void *left, const void *right ) { return (int32_t) ((const char *) left - (const char *) right); 55e6e: 2202 movel %d2,%d1 <== NOT EXECUTED 55e70: 2040 moveal %d0,%a0 <== NOT EXECUTED 55e72: 92a8 0010 subl %a0@(16),%d1 <== NOT EXECUTED case OBJECTS_LOCAL: ending = _Addresses_Subtract( internal, the_port->internal_base ); if ( ending > the_port->length ) 55e76: b2a8 0018 cmpl %a0@(24),%d1 <== NOT EXECUTED 55e7a: 6324 blss 55ea0 <== NOT EXECUTED *external = internal; 55e7c: 2482 movel %d2,%a2@ <== NOT EXECUTED else *external = _Addresses_Add_offset( the_port->external_base, ending ); _Thread_Enable_dispatch(); 55e7e: 4eb9 0005 c12a jsr 5c12a <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; 55e84: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 55e86: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 55e8a: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 55e8e: 4e5e unlk %fp <== NOT EXECUTED 55e90: 4e75 rts <== NOT EXECUTED 55e92: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 55e96: 7004 moveq #4,%d0 <== NOT EXECUTED } 55e98: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 55e9c: 4e5e unlk %fp <== NOT EXECUTED 55e9e: 4e75 rts <== NOT EXECUTED RTEMS_INLINE_ROUTINE void *_Addresses_Add_offset ( const void *base, uintptr_t offset ) { return (void *)((uintptr_t)base + offset); 55ea0: 2040 moveal %d0,%a0 <== NOT EXECUTED 55ea2: d2a8 0014 addl %a0@(20),%d1 <== NOT EXECUTED 55ea6: 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(); 55ea8: 4eb9 0005 c12a jsr 5c12a <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; 55eae: 4280 clrl %d0 <== NOT EXECUTED 55eb0: 60d4 bras 55e86 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 55eb2: 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; 55eb6: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 55eb8: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 55ebc: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00056a30 : */ rtems_status_code rtems_rate_monotonic_cancel( rtems_id id ) { 56a30: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 56a34: 2f0a movel %a2,%sp@- <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Rate_monotonic_Control *) _Objects_Get( &_Rate_monotonic_Information, id, location ); 56a36: 486e fffc pea %fp@(-4) <== NOT EXECUTED 56a3a: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 56a3e: 4879 0007 d0ac pea 7d0ac <_Rate_monotonic_Information> <== NOT EXECUTED 56a44: 4eb9 0005 b840 jsr 5b840 <_Objects_Get> <== NOT EXECUTED Rate_monotonic_Control *the_period; Objects_Locations location; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { 56a4a: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 56a4e: 2440 moveal %d0,%a2 <== NOT EXECUTED 56a50: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 56a54: 670a beqs 56a60 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 56a56: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 56a5a: 7004 moveq #4,%d0 <== NOT EXECUTED } 56a5c: 4e5e unlk %fp <== NOT EXECUTED 56a5e: 4e75 rts <== NOT EXECUTED the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_Thread_Is_executing( the_period->owner ) ) { 56a60: 2039 0007 d3a4 movel 7d3a4 <_Per_CPU_Information+0xc>,%d0 <== NOT EXECUTED 56a66: b0aa 0040 cmpl %a2@(64),%d0 <== NOT EXECUTED 56a6a: 6710 beqs 56a7c <== NOT EXECUTED _Thread_Enable_dispatch(); 56a6c: 4eb9 0005 c12a jsr 5c12a <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 56a72: 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; 56a76: 7017 moveq #23,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 56a78: 4e5e unlk %fp <== NOT EXECUTED 56a7a: 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 ); 56a7c: 486a 0010 pea %a2@(16) <== NOT EXECUTED 56a80: 4eb9 0005 d6c4 jsr 5d6c4 <_Watchdog_Remove> <== NOT EXECUTED the_period->state = RATE_MONOTONIC_INACTIVE; 56a86: 42aa 0038 clrl %a2@(56) <== NOT EXECUTED _Thread_Enable_dispatch(); 56a8a: 4eb9 0005 c12a jsr 5c12a <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 56a90: 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; 56a94: 588f addql #4,%sp <== NOT EXECUTED 56a96: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 56a98: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 000471a8 : rtems_status_code rtems_rate_monotonic_create( rtems_name name, rtems_id *id ) { 471a8: 4e56 fff4 linkw %fp,#-12 <== NOT EXECUTED 471ac: 48d7 0c04 moveml %d2/%a2-%a3,%sp@ <== NOT EXECUTED 471b0: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED 471b4: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED Rate_monotonic_Control *the_period; if ( !rtems_is_name_valid( name ) ) 471b8: 6700 00ae beqw 47268 <== NOT EXECUTED return RTEMS_INVALID_NAME; if ( !id ) 471bc: 4a8a tstl %a2 <== NOT EXECUTED 471be: 6700 00c6 beqw 47286 <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 471c2: 2039 0006 05c4 movel 605c4 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED 471c8: 5280 addql #1,%d0 <== NOT EXECUTED 471ca: 23c0 0006 05c4 movel %d0,605c4 <_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 ); 471d0: 4879 0006 04d0 pea 604d0 <_Rate_monotonic_Information> <== NOT EXECUTED 471d6: 4eb9 0004 932c jsr 4932c <_Objects_Allocate> <== NOT EXECUTED _Thread_Disable_dispatch(); /* to prevent deletion */ the_period = _Rate_monotonic_Allocate(); if ( !the_period ) { 471dc: 588f addql #4,%sp <== NOT EXECUTED 471de: 2040 moveal %d0,%a0 <== NOT EXECUTED 471e0: 4a80 tstl %d0 <== NOT EXECUTED 471e2: 6700 0090 beqw 47274 <== 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 ); 471e6: 42a8 0054 clrl %a0@(84) <== NOT EXECUTED 471ea: 43e8 007c lea %a0@(124),%a1 <== NOT EXECUTED 471ee: 42a8 0058 clrl %a0@(88) <== NOT EXECUTED Objects_Name name ) { _Objects_Set_local_object( information, _Objects_Get_index( the_object->id ), 471f2: 2028 0008 movel %a0@(8),%d0 <== NOT EXECUTED 471f6: 42a8 0064 clrl %a0@(100) <== NOT EXECUTED if ( !the_period ) { _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } the_period->owner = _Thread_Executing; 471fa: 47f9 0006 0788 lea 60788 <_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 ); 47200: 42a8 0068 clrl %a0@(104) <== NOT EXECUTED Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( 47204: 4281 clrl %d1 <== NOT EXECUTED 47206: 42a8 006c clrl %a0@(108) <== NOT EXECUTED if ( !the_period ) { _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } the_period->owner = _Thread_Executing; 4720a: 2153 0040 movel %a3@,%a0@(64) <== NOT EXECUTED 4720e: 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 ); 47210: 42a8 0070 clrl %a0@(112) <== NOT EXECUTED 47214: 4299 clrl %a1@+ <== NOT EXECUTED 47216: 4299 clrl %a1@+ <== NOT EXECUTED 47218: 4299 clrl %a1@+ <== NOT EXECUTED 4721a: 4291 clrl %a1@ <== NOT EXECUTED 4721c: 227c 7fff ffff moveal #2147483647,%a1 <== NOT EXECUTED 47222: 2149 005c movel %a1,%a0@(92) <== NOT EXECUTED 47226: 2149 0060 movel %a1,%a0@(96) <== NOT EXECUTED 4722a: 2149 0074 movel %a1,%a0@(116) <== NOT EXECUTED 4722e: 2149 0078 movel %a1,%a0@(120) <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 47232: 2279 0006 04e8 moveal 604e8 <_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; 47238: 42a8 0038 clrl %a0@(56) <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 4723c: 42a8 0018 clrl %a0@(24) <== NOT EXECUTED the_watchdog->routine = routine; 47240: 42a8 002c clrl %a0@(44) <== NOT EXECUTED the_watchdog->id = id; 47244: 42a8 0030 clrl %a0@(48) <== NOT EXECUTED the_watchdog->user_data = user_data; 47248: 42a8 0034 clrl %a0@(52) <== NOT EXECUTED 4724c: 2388 1c00 movel %a0,%a1@(00000000,%d1:l:4) <== NOT EXECUTED information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 47250: 2142 000c movel %d2,%a0@(12) <== NOT EXECUTED &_Rate_monotonic_Information, &the_period->Object, (Objects_Name) name ); *id = the_period->Object.id; 47254: 2480 movel %d0,%a2@ <== NOT EXECUTED _Thread_Enable_dispatch(); 47256: 4eb9 0004 a1c2 jsr 4a1c2 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 4725c: 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; 47262: 4280 clrl %d0 <== NOT EXECUTED } 47264: 4e5e unlk %fp <== NOT EXECUTED 47266: 4e75 rts <== NOT EXECUTED ) { Rate_monotonic_Control *the_period; if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; 47268: 7003 moveq #3,%d0 <== NOT EXECUTED ); *id = the_period->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 4726a: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3 <== NOT EXECUTED 47270: 4e5e unlk %fp <== NOT EXECUTED 47272: 4e75 rts <== NOT EXECUTED _Thread_Disable_dispatch(); /* to prevent deletion */ the_period = _Rate_monotonic_Allocate(); if ( !the_period ) { _Thread_Enable_dispatch(); 47274: 4eb9 0004 a1c2 jsr 4a1c2 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_TOO_MANY; 4727a: 7005 moveq #5,%d0 <== NOT EXECUTED ); *id = the_period->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 4727c: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3 <== NOT EXECUTED 47282: 4e5e unlk %fp <== NOT EXECUTED 47284: 4e75 rts <== NOT EXECUTED if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; if ( !id ) return RTEMS_INVALID_ADDRESS; 47286: 7009 moveq #9,%d0 <== NOT EXECUTED ); *id = the_period->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 47288: 4cee 0c04 fff4 moveml %fp@(-12),%d2/%a2-%a3 <== NOT EXECUTED 4728e: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 00056b88 : */ rtems_status_code rtems_rate_monotonic_delete( rtems_id id ) { 56b88: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 56b8c: 2f0a movel %a2,%sp@- <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Rate_monotonic_Control *) _Objects_Get( &_Rate_monotonic_Information, id, location ); 56b8e: 486e fffc pea %fp@(-4) <== NOT EXECUTED 56b92: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 56b96: 4879 0007 d0ac pea 7d0ac <_Rate_monotonic_Information> <== NOT EXECUTED 56b9c: 4eb9 0005 b840 jsr 5b840 <_Objects_Get> <== NOT EXECUTED Rate_monotonic_Control *the_period; Objects_Locations location; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { 56ba2: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 56ba6: 2440 moveal %d0,%a2 <== NOT EXECUTED 56ba8: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 56bac: 663e bnes 56bec <== NOT EXECUTED case OBJECTS_LOCAL: _Objects_Close( &_Rate_monotonic_Information, &the_period->Object ); 56bae: 2f00 movel %d0,%sp@- <== NOT EXECUTED 56bb0: 4879 0007 d0ac pea 7d0ac <_Rate_monotonic_Information> <== NOT EXECUTED 56bb6: 4eb9 0005 b3d4 jsr 5b3d4 <_Objects_Close> <== NOT EXECUTED (void) _Watchdog_Remove( &the_period->Timer ); 56bbc: 486a 0010 pea %a2@(16) <== NOT EXECUTED 56bc0: 4eb9 0005 d6c4 jsr 5d6c4 <_Watchdog_Remove> <== NOT EXECUTED the_period->state = RATE_MONOTONIC_INACTIVE; 56bc6: 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 ); 56bca: 2f0a movel %a2,%sp@- <== NOT EXECUTED 56bcc: 4879 0007 d0ac pea 7d0ac <_Rate_monotonic_Information> <== NOT EXECUTED 56bd2: 4eb9 0005 b698 jsr 5b698 <_Objects_Free> <== NOT EXECUTED _Rate_monotonic_Free( the_period ); _Thread_Enable_dispatch(); 56bd8: 4eb9 0005 c12a jsr 5c12a <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 56bde: 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; 56be2: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED 56be6: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 56be8: 4e5e unlk %fp <== NOT EXECUTED 56bea: 4e75 rts <== NOT EXECUTED 56bec: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 56bf0: 7004 moveq #4,%d0 <== NOT EXECUTED } 56bf2: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 0004d194 : rtems_status_code rtems_rate_monotonic_get_statistics( rtems_id id, rtems_rate_monotonic_period_statistics *statistics ) { 4d194: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 4d198: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4d19a: 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 ) 4d19e: 4a8a tstl %a2 <== NOT EXECUTED 4d1a0: 6700 00a6 beqw 4d248 <== NOT EXECUTED 4d1a4: 486e fffc pea %fp@(-4) <== NOT EXECUTED 4d1a8: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4d1ac: 4879 0006 04d0 pea 604d0 <_Rate_monotonic_Information> <== NOT EXECUTED 4d1b2: 4eb9 0004 98d8 jsr 498d8 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { 4d1b8: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4d1bc: 2040 moveal %d0,%a0 <== NOT EXECUTED 4d1be: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 4d1c2: 667a bnes 4d23e <== NOT EXECUTED case OBJECTS_LOCAL: dst = statistics; src = &the_period->Statistics; dst->count = src->count; 4d1c4: 24a8 0054 movel %a0@(84),%a2@ <== NOT EXECUTED dst->missed_count = src->missed_count; 4d1c8: 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 ); 4d1ce: 2028 005c movel %a0@(92),%d0 <== NOT EXECUTED 4d1d2: 2228 0060 movel %a0@(96),%d1 <== NOT EXECUTED 4d1d6: 2540 0008 movel %d0,%a2@(8) <== NOT EXECUTED 4d1da: 2541 000c movel %d1,%a2@(12) <== NOT EXECUTED _Timestamp_To_timespec( &src->max_cpu_time, &dst->max_cpu_time ); 4d1de: 2028 0064 movel %a0@(100),%d0 <== NOT EXECUTED 4d1e2: 2228 0068 movel %a0@(104),%d1 <== NOT EXECUTED 4d1e6: 2540 0010 movel %d0,%a2@(16) <== NOT EXECUTED 4d1ea: 2541 0014 movel %d1,%a2@(20) <== NOT EXECUTED _Timestamp_To_timespec( &src->total_cpu_time, &dst->total_cpu_time ); 4d1ee: 2028 006c movel %a0@(108),%d0 <== NOT EXECUTED 4d1f2: 2228 0070 movel %a0@(112),%d1 <== NOT EXECUTED 4d1f6: 2540 0018 movel %d0,%a2@(24) <== NOT EXECUTED 4d1fa: 2541 001c movel %d1,%a2@(28) <== NOT EXECUTED _Timestamp_To_timespec( &src->min_wall_time, &dst->min_wall_time ); 4d1fe: 2028 0074 movel %a0@(116),%d0 <== NOT EXECUTED 4d202: 2228 0078 movel %a0@(120),%d1 <== NOT EXECUTED 4d206: 2540 0020 movel %d0,%a2@(32) <== NOT EXECUTED 4d20a: 2541 0024 movel %d1,%a2@(36) <== NOT EXECUTED _Timestamp_To_timespec( &src->max_wall_time, &dst->max_wall_time ); 4d20e: 2028 007c movel %a0@(124),%d0 <== NOT EXECUTED 4d212: 2228 0080 movel %a0@(128),%d1 <== NOT EXECUTED 4d216: 2540 0028 movel %d0,%a2@(40) <== NOT EXECUTED 4d21a: 2541 002c movel %d1,%a2@(44) <== NOT EXECUTED _Timestamp_To_timespec( &src->total_wall_time, &dst->total_wall_time ); 4d21e: 2028 0084 movel %a0@(132),%d0 <== NOT EXECUTED 4d222: 2228 0088 movel %a0@(136),%d1 <== NOT EXECUTED 4d226: 2540 0030 movel %d0,%a2@(48) <== NOT EXECUTED 4d22a: 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(); 4d22e: 4eb9 0004 a1c2 jsr 4a1c2 <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4d234: 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; 4d238: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4d23a: 4e5e unlk %fp <== NOT EXECUTED 4d23c: 4e75 rts <== NOT EXECUTED 4d23e: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 4d242: 7004 moveq #4,%d0 <== NOT EXECUTED } 4d244: 4e5e unlk %fp <== NOT EXECUTED 4d246: 4e75 rts <== NOT EXECUTED 4d248: 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; 4d24c: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4d24e: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 0004d254 : rtems_status_code rtems_rate_monotonic_get_status( rtems_id id, rtems_rate_monotonic_period_status *status ) { 4d254: 4e56 ffec linkw %fp,#-20 <== NOT EXECUTED 4d258: 2f0a movel %a2,%sp@- <== NOT EXECUTED 4d25a: 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 ) 4d25e: 4a8a tstl %a2 <== NOT EXECUTED 4d260: 6700 00a0 beqw 4d302 <== NOT EXECUTED 4d264: 486e fffc pea %fp@(-4) <== NOT EXECUTED 4d268: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 4d26c: 4879 0006 04d0 pea 604d0 <_Rate_monotonic_Information> <== NOT EXECUTED 4d272: 4eb9 0004 98d8 jsr 498d8 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { 4d278: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4d27c: 2040 moveal %d0,%a0 <== NOT EXECUTED 4d27e: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 4d282: 6632 bnes 4d2b6 <== NOT EXECUTED case OBJECTS_LOCAL: status->owner = the_period->owner->Object.id; 4d284: 2268 0040 moveal %a0@(64),%a1 <== NOT EXECUTED 4d288: 24a9 0008 movel %a1@(8),%a2@ <== NOT EXECUTED status->state = the_period->state; 4d28c: 2028 0038 movel %a0@(56),%d0 <== NOT EXECUTED 4d290: 2540 0004 movel %d0,%a2@(4) <== NOT EXECUTED /* * If the period is inactive, there is no information. */ if ( status->state == RATE_MONOTONIC_INACTIVE ) { 4d294: 662a bnes 4d2c0 <== NOT EXECUTED #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timespec_Set_to_zero( &status->since_last_period ); 4d296: 42aa 0008 clrl %a2@(8) <== NOT EXECUTED 4d29a: 42aa 000c clrl %a2@(12) <== NOT EXECUTED _Timespec_Set_to_zero( &status->executed_since_last_period ); 4d29e: 42aa 0010 clrl %a2@(16) <== NOT EXECUTED 4d2a2: 42aa 0014 clrl %a2@(20) <== NOT EXECUTED status->since_last_period = since_last_period; status->executed_since_last_period = executed; #endif } _Thread_Enable_dispatch(); 4d2a6: 4eb9 0004 a1c2 jsr 4a1c2 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; 4d2ac: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4d2ae: 246e ffe8 moveal %fp@(-24),%a2 <== NOT EXECUTED 4d2b2: 4e5e unlk %fp <== NOT EXECUTED 4d2b4: 4e75 rts <== NOT EXECUTED 4d2b6: 246e ffe8 moveal %fp@(-24),%a2 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 4d2ba: 7004 moveq #4,%d0 <== NOT EXECUTED } 4d2bc: 4e5e unlk %fp <== NOT EXECUTED 4d2be: 4e75 rts <== NOT EXECUTED } else { /* * Grab the current status. */ valid_status = 4d2c0: 486e fff4 pea %fp@(-12) <== NOT EXECUTED 4d2c4: 486e ffec pea %fp@(-20) <== NOT EXECUTED 4d2c8: 2f08 movel %a0,%sp@- <== NOT EXECUTED 4d2ca: 4eb9 0004 72c0 jsr 472c0 <_Rate_monotonic_Get_status> <== NOT EXECUTED _Rate_monotonic_Get_status( the_period, &since_last_period, &executed ); if (!valid_status) { 4d2d0: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 4d2d4: 4a00 tstb %d0 <== NOT EXECUTED 4d2d6: 6734 beqs 4d30c <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_NOT_DEFINED; } #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timestamp_To_timespec( 4d2d8: 202e ffec movel %fp@(-20),%d0 <== NOT EXECUTED 4d2dc: 222e fff0 movel %fp@(-16),%d1 <== NOT EXECUTED 4d2e0: 2540 0008 movel %d0,%a2@(8) <== NOT EXECUTED 4d2e4: 2541 000c movel %d1,%a2@(12) <== NOT EXECUTED &since_last_period, &status->since_last_period ); _Timestamp_To_timespec( 4d2e8: 202e fff4 movel %fp@(-12),%d0 <== NOT EXECUTED 4d2ec: 222e fff8 movel %fp@(-8),%d1 <== NOT EXECUTED 4d2f0: 2540 0010 movel %d0,%a2@(16) <== NOT EXECUTED 4d2f4: 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(); 4d2f8: 4eb9 0004 a1c2 jsr 4a1c2 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; 4d2fe: 4280 clrl %d0 <== NOT EXECUTED 4d300: 60ac bras 4d2ae <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4d302: 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; 4d306: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4d308: 4e5e unlk %fp <== NOT EXECUTED 4d30a: 4e75 rts <== NOT EXECUTED valid_status = _Rate_monotonic_Get_status( the_period, &since_last_period, &executed ); if (!valid_status) { _Thread_Enable_dispatch(); 4d30c: 4eb9 0004 a1c2 jsr 4a1c2 <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4d312: 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; 4d316: 700b moveq #11,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4d318: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00047294 : rtems_status_code rtems_rate_monotonic_ident( rtems_name name, rtems_id *id ) { 47294: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( 47298: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 4729c: 2f3c 7fff ffff movel #2147483647,%sp@- <== NOT EXECUTED 472a2: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 472a6: 4879 0006 04d0 pea 604d0 <_Rate_monotonic_Information> <== NOT EXECUTED 472ac: 4eb9 0004 9a64 jsr 49a64 <_Objects_Name_to_id_u32> <== NOT EXECUTED name, OBJECTS_SEARCH_LOCAL_NODE, id ); return _Status_Object_name_errors_to_status[ status ]; 472b2: 41f9 0005 df8e lea 5df8e <_Status_Object_name_errors_to_status>,%a0<== NOT EXECUTED } 472b8: 4e5e unlk %fp <== NOT EXECUTED 472ba: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED =============================================================================== 00047510 : rtems_status_code rtems_rate_monotonic_period( rtems_id id, rtems_interval length ) { 47510: 4e56 fff8 linkw %fp,#-8 <== NOT EXECUTED 47514: 2f03 movel %d3,%sp@- <== NOT EXECUTED 47516: 2f02 movel %d2,%sp@- <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Rate_monotonic_Control *) _Objects_Get( &_Rate_monotonic_Information, id, location ); 47518: 486e fffc pea %fp@(-4) <== NOT EXECUTED 4751c: 242e 0008 movel %fp@(8),%d2 <== NOT EXECUTED 47520: 2f02 movel %d2,%sp@- <== NOT EXECUTED 47522: 4879 0006 04d0 pea 604d0 <_Rate_monotonic_Information> <== NOT EXECUTED 47528: 4eb9 0004 98d8 jsr 498d8 <_Objects_Get> <== NOT EXECUTED rtems_rate_monotonic_period_states local_state; ISR_Level level; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { 4752e: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 47532: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 47536: 6624 bnes 4755c <== NOT EXECUTED case OBJECTS_LOCAL: if ( !_Thread_Is_executing( the_period->owner ) ) { 47538: 2279 0006 0788 moveal 60788 <_Per_CPU_Information+0xc>,%a1 <== NOT EXECUTED 4753e: 2040 moveal %d0,%a0 <== NOT EXECUTED 47540: b3e8 0040 cmpal %a0@(64),%a1 <== NOT EXECUTED 47544: 6726 beqs 4756c <== NOT EXECUTED _Thread_Enable_dispatch(); 47546: 4eb9 0004 a1c2 jsr 4a1c2 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_NOT_OWNER_OF_RESOURCE; 4754c: 7617 moveq #23,%d3 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4754e: 2003 movel %d3,%d0 <== NOT EXECUTED 47550: 242e fff0 movel %fp@(-16),%d2 <== NOT EXECUTED 47554: 262e fff4 movel %fp@(-12),%d3 <== NOT EXECUTED 47558: 4e5e unlk %fp <== NOT EXECUTED 4755a: 4e75 rts <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 4755c: 7604 moveq #4,%d3 <== NOT EXECUTED } 4755e: 2003 movel %d3,%d0 <== NOT EXECUTED 47560: 242e fff0 movel %fp@(-16),%d2 <== NOT EXECUTED 47564: 262e fff4 movel %fp@(-12),%d3 <== NOT EXECUTED 47568: 4e5e unlk %fp <== NOT EXECUTED 4756a: 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 ) { 4756c: 4aae 000c tstl %fp@(12) <== NOT EXECUTED 47570: 6624 bnes 47596 <== NOT EXECUTED switch ( the_period->state ) { 47572: 2040 moveal %d0,%a0 <== NOT EXECUTED 47574: 7204 moveq #4,%d1 <== NOT EXECUTED 47576: 2028 0038 movel %a0@(56),%d0 <== NOT EXECUTED 4757a: b280 cmpl %d0,%d1 <== NOT EXECUTED 4757c: 6400 008a bccw 47608 <== NOT EXECUTED 47580: 4283 clrl %d3 <== NOT EXECUTED case RATE_MONOTONIC_ACTIVE: default: /* unreached -- only to remove warnings */ return_value = RTEMS_SUCCESSFUL; break; } _Thread_Enable_dispatch(); 47582: 4eb9 0004 a1c2 jsr 4a1c2 <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 47588: 2003 movel %d3,%d0 <== NOT EXECUTED 4758a: 242e fff0 movel %fp@(-16),%d2 <== NOT EXECUTED 4758e: 262e fff4 movel %fp@(-12),%d3 <== NOT EXECUTED 47592: 4e5e unlk %fp <== NOT EXECUTED 47594: 4e75 rts <== NOT EXECUTED } _Thread_Enable_dispatch(); return( return_value ); } _ISR_Disable( level ); 47596: 223c 0000 0700 movel #1792,%d1 <== NOT EXECUTED 4759c: 40c3 movew %sr,%d3 <== NOT EXECUTED 4759e: 8283 orl %d3,%d1 <== NOT EXECUTED 475a0: 46c1 movew %d1,%sr <== NOT EXECUTED if ( the_period->state == RATE_MONOTONIC_INACTIVE ) { 475a2: 2040 moveal %d0,%a0 <== NOT EXECUTED 475a4: 2228 0038 movel %a0@(56),%d1 <== NOT EXECUTED 475a8: 6772 beqs 4761c <== NOT EXECUTED _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } if ( the_period->state == RATE_MONOTONIC_ACTIVE ) { 475aa: 7402 moveq #2,%d2 <== NOT EXECUTED 475ac: b481 cmpl %d1,%d2 <== NOT EXECUTED 475ae: 6700 00d2 beqw 47682 <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } if ( the_period->state == RATE_MONOTONIC_EXPIRED ) { 475b2: 7404 moveq #4,%d2 <== NOT EXECUTED 475b4: b481 cmpl %d1,%d2 <== NOT EXECUTED 475b6: 66a4 bnes 4755c <== NOT EXECUTED /* * Update statistics from the concluding period */ _Rate_monotonic_Update_statistics( the_period ); 475b8: 2f00 movel %d0,%sp@- <== NOT EXECUTED 475ba: 2d40 fff8 movel %d0,%fp@(-8) <== NOT EXECUTED 475be: 4eb9 0004 73f6 jsr 473f6 <_Rate_monotonic_Update_statistics><== NOT EXECUTED _ISR_Enable( level ); 475c4: 46c3 movew %d3,%sr <== NOT EXECUTED the_period->state = RATE_MONOTONIC_ACTIVE; 475c6: 7202 moveq #2,%d1 <== NOT EXECUTED the_period->next_length = length; _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); return RTEMS_TIMEOUT; 475c8: 7606 moveq #6,%d3 <== NOT EXECUTED */ _Rate_monotonic_Update_statistics( the_period ); _ISR_Enable( level ); the_period->state = RATE_MONOTONIC_ACTIVE; 475ca: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED 475ce: 2040 moveal %d0,%a0 <== NOT EXECUTED the_period->next_length = length; 475d0: 226e 000c moveal %fp@(12),%a1 <== NOT EXECUTED */ _Rate_monotonic_Update_statistics( the_period ); _ISR_Enable( level ); the_period->state = RATE_MONOTONIC_ACTIVE; 475d4: 2141 0038 movel %d1,%a0@(56) <== NOT EXECUTED the_period->next_length = length; 475d8: 2149 003c movel %a1,%a0@(60) <== NOT EXECUTED Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 475dc: 2149 001c movel %a1,%a0@(28) <== NOT EXECUTED _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 475e0: 4868 0010 pea %a0@(16) <== NOT EXECUTED 475e4: 4879 0006 0686 pea 60686 <_Watchdog_Ticks_chain> <== NOT EXECUTED 475ea: 4eb9 0004 b404 jsr 4b404 <_Watchdog_Insert> <== NOT EXECUTED _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); 475f0: 4eb9 0004 a1c2 jsr 4a1c2 <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 475f6: 242e fff0 movel %fp@(-16),%d2 <== NOT EXECUTED 475fa: 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; 475fc: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 47600: 262e fff4 movel %fp@(-12),%d3 <== NOT EXECUTED 47604: 4e5e unlk %fp <== NOT EXECUTED 47606: 4e75 rts <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_NOT_OWNER_OF_RESOURCE; } if ( length == RTEMS_PERIOD_STATUS ) { switch ( the_period->state ) { 47608: 41f9 0005 ddae lea 5ddae ,%a0 <== NOT EXECUTED 4760e: 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(); 47612: 4eb9 0004 a1c2 jsr 4a1c2 <_Thread_Enable_dispatch> <== NOT EXECUTED 47618: 6000 ff6e braw 47588 <== NOT EXECUTED return( return_value ); } _ISR_Disable( level ); if ( the_period->state == RATE_MONOTONIC_INACTIVE ) { _ISR_Enable( level ); 4761c: 46c3 movew %d3,%sr <== NOT EXECUTED /* * Baseline statistics information for the beginning of a period. */ _Rate_monotonic_Initiate_statistics( the_period ); 4761e: 2f00 movel %d0,%sp@- <== NOT EXECUTED the_period->next_length = length; _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 47620: 4283 clrl %d3 <== NOT EXECUTED _ISR_Enable( level ); /* * Baseline statistics information for the beginning of a period. */ _Rate_monotonic_Initiate_statistics( the_period ); 47622: 2d40 fff8 movel %d0,%fp@(-8) <== NOT EXECUTED 47626: 4eb9 0004 7378 jsr 47378 <_Rate_monotonic_Initiate_statistics><== NOT EXECUTED Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 4762c: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED 47630: 2240 moveal %d0,%a1 <== NOT EXECUTED 47632: 223c 0004 7994 movel #293268,%d1 <== NOT EXECUTED the_watchdog->id = id; 47638: 2342 0030 movel %d2,%a1@(48) <== NOT EXECUTED _Rate_monotonic_Timeout, id, NULL ); the_period->next_length = length; 4763c: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 47640: 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; 47644: 7202 moveq #2,%d1 <== NOT EXECUTED _Rate_monotonic_Timeout, id, NULL ); the_period->next_length = length; 47646: 2342 003c movel %d2,%a1@(60) <== NOT EXECUTED Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 4764a: 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; 4764e: 2341 0038 movel %d1,%a1@(56) <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 47652: 42a9 0018 clrl %a1@(24) <== NOT EXECUTED the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data; 47656: 42a9 0034 clrl %a1@(52) <== NOT EXECUTED ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 4765a: 4869 0010 pea %a1@(16) <== NOT EXECUTED 4765e: 4879 0006 0686 pea 60686 <_Watchdog_Ticks_chain> <== NOT EXECUTED 47664: 4eb9 0004 b404 jsr 4b404 <_Watchdog_Insert> <== NOT EXECUTED ); the_period->next_length = length; _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); 4766a: 4eb9 0004 a1c2 jsr 4a1c2 <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 47670: 242e fff0 movel %fp@(-16),%d2 <== NOT EXECUTED 47674: 2003 movel %d3,%d0 <== NOT EXECUTED the_period->next_length = length; _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 47676: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4767a: 262e fff4 movel %fp@(-12),%d3 <== NOT EXECUTED 4767e: 4e5e unlk %fp <== NOT EXECUTED 47680: 4e75 rts <== NOT EXECUTED if ( the_period->state == RATE_MONOTONIC_ACTIVE ) { /* * Update statistics from the concluding period. */ _Rate_monotonic_Update_statistics( the_period ); 47682: 2f00 movel %d0,%sp@- <== NOT EXECUTED 47684: 2d40 fff8 movel %d0,%fp@(-8) <== NOT EXECUTED 47688: 4eb9 0004 73f6 jsr 473f6 <_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; 4768e: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED 47692: 7201 moveq #1,%d1 <== NOT EXECUTED 47694: 2040 moveal %d0,%a0 <== NOT EXECUTED the_period->next_length = length; 47696: 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; 4769a: 2141 0038 movel %d1,%a0@(56) <== NOT EXECUTED the_period->next_length = length; 4769e: 2149 003c movel %a1,%a0@(60) <== NOT EXECUTED _ISR_Enable( level ); 476a2: 46c3 movew %d3,%sr <== NOT EXECUTED _Thread_Executing->Wait.id = the_period->Object.id; 476a4: 2079 0006 0788 moveal 60788 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED 476aa: 2240 moveal %d0,%a1 <== NOT EXECUTED 476ac: 5089 addql #8,%a1 <== NOT EXECUTED 476ae: 2151 0020 movel %a1@,%a0@(32) <== NOT EXECUTED _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); 476b2: 4878 4000 pea 4000 <== NOT EXECUTED 476b6: 2d40 fff8 movel %d0,%fp@(-8) <== NOT EXECUTED 476ba: 2f08 movel %a0,%sp@- <== NOT EXECUTED 476bc: 4eb9 0004 ab00 jsr 4ab00 <_Thread_Set_state> <== NOT EXECUTED /* * Did the watchdog timer expire while we were actually blocking * on it? */ _ISR_Disable( level ); 476c2: 223c 0000 0700 movel #1792,%d1 <== NOT EXECUTED 476c8: 40c2 movew %sr,%d2 <== NOT EXECUTED 476ca: 8282 orl %d2,%d1 <== NOT EXECUTED 476cc: 46c1 movew %d1,%sr <== NOT EXECUTED local_state = the_period->state; the_period->state = RATE_MONOTONIC_ACTIVE; 476ce: 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; 476d0: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED 476d4: 2040 moveal %d0,%a0 <== NOT EXECUTED 476d6: 2228 0038 movel %a0@(56),%d1 <== NOT EXECUTED the_period->state = RATE_MONOTONIC_ACTIVE; 476da: 2143 0038 movel %d3,%a0@(56) <== NOT EXECUTED _ISR_Enable( level ); 476de: 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 ) 476e0: 7003 moveq #3,%d0 <== NOT EXECUTED 476e2: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 476e6: b081 cmpl %d1,%d0 <== NOT EXECUTED 476e8: 6716 beqs 47700 <== NOT EXECUTED _Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); _Thread_Enable_dispatch(); 476ea: 4eb9 0004 a1c2 jsr 4a1c2 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; 476f0: 4283 clrl %d3 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 476f2: 2003 movel %d3,%d0 <== NOT EXECUTED 476f4: 242e fff0 movel %fp@(-16),%d2 <== NOT EXECUTED 476f8: 262e fff4 movel %fp@(-12),%d3 <== NOT EXECUTED 476fc: 4e5e unlk %fp <== NOT EXECUTED 476fe: 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 ); 47700: 4878 4000 pea 4000 <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 47704: 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 ); 47706: 2f39 0006 0788 movel 60788 <_Per_CPU_Information+0xc>,%sp@-<== NOT EXECUTED 4770c: 4eb9 0004 9ddc jsr 49ddc <_Thread_Clear_state> <== NOT EXECUTED 47712: 508f addql #8,%sp <== NOT EXECUTED _Thread_Enable_dispatch(); 47714: 4eb9 0004 a1c2 jsr 4a1c2 <_Thread_Enable_dispatch> <== NOT EXECUTED 4771a: 60d6 bras 476f2 <== NOT EXECUTED =============================================================================== 000478be : } } } void rtems_rate_monotonic_report_statistics( void ) { 478be: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED rtems_rate_monotonic_report_statistics_with_plugin( NULL, printk_plugin ); 478c2: 4879 0004 d058 pea 4d058 <== NOT EXECUTED 478c8: 42a7 clrl %sp@- <== NOT EXECUTED 478ca: 4eb9 0004 771c jsr 4771c <== NOT EXECUTED 478d0: 508f addql #8,%sp <== NOT EXECUTED } 478d2: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 0004771c : */ void rtems_rate_monotonic_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) { 4771c: 4e56 ff78 linkw %fp,#-136 <== NOT EXECUTED 47720: 48d7 3cfc moveml %d2-%d7/%a2-%a5,%sp@ <== NOT EXECUTED 47724: 262e 0008 movel %fp@(8),%d3 <== NOT EXECUTED 47728: 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 ) 4772c: 4a8a tstl %a2 <== NOT EXECUTED 4772e: 6700 0082 beqw 477b2 <== NOT EXECUTED return; (*print)( context, "Period information by period\n" ); 47732: 4879 0005 ddc2 pea 5ddc2 <== NOT EXECUTED 47738: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4773a: 4e92 jsr %a2@ <== NOT EXECUTED #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ (*print)( context, "--- CPU times are in seconds ---\n" ); 4773c: 4879 0005 dde0 pea 5dde0 <== NOT EXECUTED 47742: 2f03 movel %d3,%sp@- <== NOT EXECUTED 47744: 4e92 jsr %a2@ <== NOT EXECUTED (*print)( context, "--- Wall times are in seconds ---\n" ); 47746: 4879 0005 de02 pea 5de02 <== NOT EXECUTED 4774c: 2f03 movel %d3,%sp@- <== NOT EXECUTED 4774e: 4e92 jsr %a2@ <== NOT EXECUTED Be sure to test the various cases. (*print)( context,"\ 1234567890123456789012345678901234567890123456789012345678901234567890123456789\ \n"); */ (*print)( context, " ID OWNER COUNT MISSED " 47750: 4879 0005 de25 pea 5de25 <== NOT EXECUTED 47756: 2f03 movel %d3,%sp@- <== NOT EXECUTED 47758: 4e92 jsr %a2@ <== NOT EXECUTED #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ " " #endif " WALL TIME\n" ); (*print)( context, " " 4775a: 4fef 001c lea %sp@(28),%sp <== NOT EXECUTED 4775e: 2ebc 0005 de70 movel #384624,%sp@ <== NOT EXECUTED 47764: 2f03 movel %d3,%sp@- <== NOT EXECUTED 47766: 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 ; 47768: 2439 0006 04d6 movel 604d6 <_Rate_monotonic_Information+0x6>,%d2<== NOT EXECUTED 4776e: 508f addql #8,%sp <== NOT EXECUTED 47770: b4b9 0006 04da cmpl 604da <_Rate_monotonic_Information+0xa>,%d2<== NOT EXECUTED 47776: 623a bhis 477b2 <== NOT EXECUTED 47778: 280e movel %fp,%d4 <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( status != RTEMS_SUCCESSFUL ) continue; #endif rtems_object_get_name( the_status.owner, sizeof(name), name ); 4777a: 2a0e movel %fp,%d5 <== NOT EXECUTED 4777c: 0684 ffff ffa2 addil #-94,%d4 <== NOT EXECUTED 47782: 47f9 0004 d194 lea 4d194 ,%a3<== NOT EXECUTED status = rtems_rate_monotonic_get_statistics( id, &the_stats ); if ( status != RTEMS_SUCCESSFUL ) continue; /* If the above passed, so should this but check it anyway */ status = rtems_rate_monotonic_get_status( id, &the_status ); 47788: 4bf9 0004 d254 lea 4d254 ,%a5<== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( status != RTEMS_SUCCESSFUL ) continue; #endif rtems_object_get_name( the_status.owner, sizeof(name), name ); 4778e: 5b85 subql #5,%d5 <== NOT EXECUTED 47790: 49f9 0004 7a74 lea 47a74 ,%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 ); 47796: 2e3c 0004 b004 movel #307204,%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 ); 4779c: 2f04 movel %d4,%sp@- <== NOT EXECUTED 4779e: 2f02 movel %d2,%sp@- <== NOT EXECUTED 477a0: 4e93 jsr %a3@ <== NOT EXECUTED if ( status != RTEMS_SUCCESSFUL ) 477a2: 508f addql #8,%sp <== NOT EXECUTED 477a4: 4a80 tstl %d0 <== NOT EXECUTED 477a6: 6714 beqs 477bc <== 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++ ) { 477a8: 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 ; 477aa: b4b9 0006 04da cmpl 604da <_Rate_monotonic_Information+0xa>,%d2<== NOT EXECUTED 477b0: 63ea blss 4779c <== NOT EXECUTED the_stats.min_wall_time, the_stats.max_wall_time, ival_wall, fval_wall ); #endif } } } 477b2: 4cee 3cfc ff78 moveml %fp@(-136),%d2-%d7/%a2-%a5 <== NOT EXECUTED 477b8: 4e5e unlk %fp <== NOT EXECUTED 477ba: 4e75 rts <== NOT EXECUTED status = rtems_rate_monotonic_get_statistics( id, &the_stats ); if ( status != RTEMS_SUCCESSFUL ) continue; /* If the above passed, so should this but check it anyway */ status = rtems_rate_monotonic_get_status( id, &the_status ); 477bc: 486e ffda pea %fp@(-38) <== NOT EXECUTED 477c0: 2f02 movel %d2,%sp@- <== NOT EXECUTED 477c2: 4e95 jsr %a5@ <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( status != RTEMS_SUCCESSFUL ) continue; #endif rtems_object_get_name( the_status.owner, sizeof(name), name ); 477c4: 2f05 movel %d5,%sp@- <== NOT EXECUTED 477c6: 4878 0005 pea 5 <== NOT EXECUTED 477ca: 2f2e ffda movel %fp@(-38),%sp@- <== NOT EXECUTED 477ce: 4e94 jsr %a4@ <== NOT EXECUTED /* * Print part of report line that is not dependent on granularity */ (*print)( context, 477d0: 2f2e ffa6 movel %fp@(-90),%sp@- <== NOT EXECUTED 477d4: 2f2e ffa2 movel %fp@(-94),%sp@- <== NOT EXECUTED 477d8: 2f05 movel %d5,%sp@- <== NOT EXECUTED 477da: 2f02 movel %d2,%sp@- <== NOT EXECUTED 477dc: 4879 0005 debc pea 5debc <== NOT EXECUTED 477e2: 2f03 movel %d3,%sp@- <== NOT EXECUTED 477e4: 4e92 jsr %a2@ <== NOT EXECUTED ); /* * If the count is zero, don't print statistics */ if (the_stats.count == 0) { 477e6: 202e ffa2 movel %fp@(-94),%d0 <== NOT EXECUTED 477ea: 4fef 002c lea %sp@(44),%sp <== NOT EXECUTED 477ee: 6618 bnes 47808 <== NOT EXECUTED (*print)( context, "\n" ); 477f0: 4879 0005 dce6 pea 5dce6 <== 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++ ) { 477f6: 5282 addql #1,%d2 <== NOT EXECUTED /* * If the count is zero, don't print statistics */ if (the_stats.count == 0) { (*print)( context, "\n" ); 477f8: 2f03 movel %d3,%sp@- <== NOT EXECUTED 477fa: 4e92 jsr %a2@ <== NOT EXECUTED continue; 477fc: 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 ; 477fe: b4b9 0006 04da cmpl 604da <_Rate_monotonic_Information+0xa>,%d2<== NOT EXECUTED 47804: 6396 blss 4779c <== NOT EXECUTED 47806: 60aa bras 477b2 <== 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 ); 47808: 486e fff2 pea %fp@(-14) <== NOT EXECUTED 4780c: 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++ ) { 4780e: 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 ); 47810: 2f00 movel %d0,%sp@- <== NOT EXECUTED 47812: 486e ffba pea %fp@(-70) <== NOT EXECUTED 47816: 4e90 jsr %a0@ <== NOT EXECUTED (*print)( context, 47818: 202e fff6 movel %fp@(-10),%d0 <== NOT EXECUTED 4781c: 223c 0000 03e8 movel #1000,%d1 <== NOT EXECUTED 47822: 4c41 0800 remsl %d1,%d0,%d0 <== NOT EXECUTED 47826: 2c2e ffb6 movel %fp@(-74),%d6 <== NOT EXECUTED 4782a: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4782c: 2001 movel %d1,%d0 <== NOT EXECUTED 4782e: 2f2e fff2 movel %fp@(-14),%sp@- <== NOT EXECUTED 47832: 4c40 6806 remsl %d0,%d6,%d6 <== NOT EXECUTED 47836: 202e ffae movel %fp@(-82),%d0 <== NOT EXECUTED 4783a: 2246 moveal %d6,%a1 <== NOT EXECUTED 4783c: 223c 0000 03e8 movel #1000,%d1 <== NOT EXECUTED 47842: 2f09 movel %a1,%sp@- <== NOT EXECUTED 47844: 2f2e ffb2 movel %fp@(-78),%sp@- <== NOT EXECUTED 47848: 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, 4784c: 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, 47852: 2f00 movel %d0,%sp@- <== NOT EXECUTED 47854: 2f2e ffaa movel %fp@(-86),%sp@- <== NOT EXECUTED 47858: 4879 0005 ded3 pea 5ded3 <== NOT EXECUTED 4785e: 2f03 movel %d3,%sp@- <== NOT EXECUTED 47860: 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); 47862: 4fef 002c lea %sp@(44),%sp <== NOT EXECUTED 47866: 2047 moveal %d7,%a0 <== NOT EXECUTED 47868: 486e fff2 pea %fp@(-14) <== NOT EXECUTED 4786c: 2f2e ffa2 movel %fp@(-94),%sp@- <== NOT EXECUTED 47870: 486e ffd2 pea %fp@(-46) <== NOT EXECUTED 47874: 4e90 jsr %a0@ <== NOT EXECUTED (*print)( context, 47876: 202e fff6 movel %fp@(-10),%d0 <== NOT EXECUTED 4787a: 4c46 0800 remsl %d6,%d0,%d0 <== NOT EXECUTED 4787e: 222e ffce movel %fp@(-50),%d1 <== NOT EXECUTED 47882: 2f00 movel %d0,%sp@- <== NOT EXECUTED 47884: 2f2e fff2 movel %fp@(-14),%sp@- <== NOT EXECUTED 47888: 4c46 1801 remsl %d6,%d1,%d1 <== NOT EXECUTED 4788c: 202e ffc6 movel %fp@(-58),%d0 <== NOT EXECUTED 47890: 2241 moveal %d1,%a1 <== NOT EXECUTED 47892: 2f09 movel %a1,%sp@- <== NOT EXECUTED 47894: 2f2e ffca movel %fp@(-54),%sp@- <== NOT EXECUTED 47898: 4c46 0800 remsl %d6,%d0,%d0 <== NOT EXECUTED 4789c: 2f00 movel %d0,%sp@- <== NOT EXECUTED 4789e: 2f2e ffc2 movel %fp@(-62),%sp@- <== NOT EXECUTED 478a2: 4879 0005 def2 pea 5def2 <== NOT EXECUTED 478a8: 2f03 movel %d3,%sp@- <== NOT EXECUTED 478aa: 4e92 jsr %a2@ <== NOT EXECUTED 478ac: 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 ; 478b0: b4b9 0006 04da cmpl 604da <_Rate_monotonic_Information+0xa>,%d2<== NOT EXECUTED 478b6: 6300 fee4 blsw 4779c <== NOT EXECUTED 478ba: 6000 fef6 braw 477b2 <== NOT EXECUTED =============================================================================== 000478d8 : /* * rtems_rate_monotonic_reset_all_statistics */ void rtems_rate_monotonic_reset_all_statistics( void ) { 478d8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 478dc: 2039 0006 05c4 movel 605c4 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED 478e2: 5280 addql #1,%d0 <== NOT EXECUTED 478e4: 2f0a movel %a2,%sp@- <== NOT EXECUTED 478e6: 23c0 0006 05c4 movel %d0,605c4 <_Thread_Dispatch_disable_level><== NOT EXECUTED 478ec: 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 ; 478ee: 2439 0006 04d6 movel 604d6 <_Rate_monotonic_Information+0x6>,%d2<== NOT EXECUTED 478f4: b4b9 0006 04da cmpl 604da <_Rate_monotonic_Information+0xa>,%d2<== NOT EXECUTED 478fa: 6216 bhis 47912 <== NOT EXECUTED 478fc: 45f9 0004 7924 lea 47924 ,%a2<== NOT EXECUTED id <= _Rate_monotonic_Information.maximum_id ; id++ ) { status = rtems_rate_monotonic_reset_statistics( id ); 47902: 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++ ) { 47904: 5282 addql #1,%d2 <== NOT EXECUTED status = rtems_rate_monotonic_reset_statistics( id ); 47906: 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 ; 47908: 588f addql #4,%sp <== NOT EXECUTED 4790a: b4b9 0006 04da cmpl 604da <_Rate_monotonic_Information+0xa>,%d2<== NOT EXECUTED 47910: 63f0 blss 47902 <== NOT EXECUTED /* * Done so exit thread dispatching disabled critical section. */ _Thread_Enable_dispatch(); } 47912: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 47916: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 4791a: 4e5e unlk %fp <== NOT EXECUTED } /* * Done so exit thread dispatching disabled critical section. */ _Thread_Enable_dispatch(); 4791c: 4ef9 0004 a1c2 jmp 4a1c2 <_Thread_Enable_dispatch> <== NOT EXECUTED ... =============================================================================== 00047924 : */ rtems_status_code rtems_rate_monotonic_reset_statistics( rtems_id id ) { 47924: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 47928: 486e fffc pea %fp@(-4) <== NOT EXECUTED 4792c: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 47930: 4879 0006 04d0 pea 604d0 <_Rate_monotonic_Information> <== NOT EXECUTED 47936: 4eb9 0004 98d8 jsr 498d8 <_Objects_Get> <== NOT EXECUTED Objects_Locations location; Rate_monotonic_Control *the_period; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { 4793c: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 47940: 2040 moveal %d0,%a0 <== NOT EXECUTED 47942: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 47946: 6646 bnes 4798e <== NOT EXECUTED case OBJECTS_LOCAL: _Rate_monotonic_Reset_statistics( the_period ); 47948: 42a8 0054 clrl %a0@(84) <== NOT EXECUTED 4794c: 43e8 007c lea %a0@(124),%a1 <== NOT EXECUTED 47950: 42a8 0058 clrl %a0@(88) <== NOT EXECUTED 47954: 42a8 0064 clrl %a0@(100) <== NOT EXECUTED 47958: 203c 7fff ffff movel #2147483647,%d0 <== NOT EXECUTED 4795e: 42a8 0068 clrl %a0@(104) <== NOT EXECUTED 47962: 42a8 006c clrl %a0@(108) <== NOT EXECUTED 47966: 42a8 0070 clrl %a0@(112) <== NOT EXECUTED 4796a: 4299 clrl %a1@+ <== NOT EXECUTED 4796c: 4299 clrl %a1@+ <== NOT EXECUTED 4796e: 4299 clrl %a1@+ <== NOT EXECUTED 47970: 2140 005c movel %d0,%a0@(92) <== NOT EXECUTED 47974: 2140 0060 movel %d0,%a0@(96) <== NOT EXECUTED 47978: 2140 0074 movel %d0,%a0@(116) <== NOT EXECUTED 4797c: 2140 0078 movel %d0,%a0@(120) <== NOT EXECUTED 47980: 4291 clrl %a1@ <== NOT EXECUTED _Thread_Enable_dispatch(); 47982: 4eb9 0004 a1c2 jsr 4a1c2 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; 47988: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4798a: 4e5e unlk %fp <== NOT EXECUTED 4798c: 4e75 rts <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 4798e: 7004 moveq #4,%d0 <== NOT EXECUTED } 47990: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 000572e8 : uintptr_t length, uintptr_t page_size, rtems_attribute attribute_set, rtems_id *id ) { 572e8: 4e56 ffe4 linkw %fp,#-28 <== NOT EXECUTED 572ec: 48d7 0c7c moveml %d2-%d6/%a2-%a3,%sp@ <== NOT EXECUTED 572f0: 262e 0008 movel %fp@(8),%d3 <== NOT EXECUTED 572f4: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED 572f8: 2a2e 0010 movel %fp@(16),%d5 <== NOT EXECUTED 572fc: 282e 0014 movel %fp@(20),%d4 <== NOT EXECUTED 57300: 2c2e 0018 movel %fp@(24),%d6 <== NOT EXECUTED 57304: 266e 001c moveal %fp@(28),%a3 <== NOT EXECUTED rtems_status_code return_status; Region_Control *the_region; if ( !rtems_is_name_valid( name ) ) 57308: 4a83 tstl %d3 <== NOT EXECUTED 5730a: 6774 beqs 57380 <== NOT EXECUTED return RTEMS_INVALID_NAME; if ( !starting_address ) 5730c: 4a82 tstl %d2 <== NOT EXECUTED 5730e: 6700 00dc beqw 573ec <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !id ) 57312: 4a8b tstl %a3 <== NOT EXECUTED 57314: 6700 00d6 beqw 573ec <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); /* to prevent deletion */ 57318: 2f39 0007 d27a movel 7d27a <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 5731e: 4eb9 0005 9b64 jsr 59b64 <_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 ); 57324: 4879 0007 d0e4 pea 7d0e4 <_Region_Information> <== NOT EXECUTED 5732a: 4eb9 0005 b344 jsr 5b344 <_Objects_Allocate> <== NOT EXECUTED the_region = _Region_Allocate(); if ( !the_region ) 57330: 508f addql #8,%sp <== NOT EXECUTED 57332: 2440 moveal %d0,%a2 <== NOT EXECUTED 57334: 4a80 tstl %d0 <== NOT EXECUTED 57336: 6700 00c2 beqw 573fa <== NOT EXECUTED return_status = RTEMS_TOO_MANY; else { the_region->maximum_segment_size = _Heap_Initialize( 5733a: 2f04 movel %d4,%sp@- <== NOT EXECUTED 5733c: 2f05 movel %d5,%sp@- <== NOT EXECUTED 5733e: 2f02 movel %d2,%sp@- <== NOT EXECUTED 57340: 486a 0068 pea %a2@(104) <== NOT EXECUTED 57344: 4eb9 0005 aed6 jsr 5aed6 <_Heap_Initialize> <== NOT EXECUTED &the_region->Memory, starting_address, length, page_size ); if ( !the_region->maximum_segment_size ) { 5734a: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED if ( !the_region ) return_status = RTEMS_TOO_MANY; else { the_region->maximum_segment_size = _Heap_Initialize( 5734e: 2540 005c movel %d0,%a2@(92) <== NOT EXECUTED &the_region->Memory, starting_address, length, page_size ); if ( !the_region->maximum_segment_size ) { 57352: 663a bnes 5738e <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Region_Free ( Region_Control *the_region ) { _Objects_Free( &_Region_Information, &the_region->Object ); 57354: 2f0a movel %a2,%sp@- <== NOT EXECUTED 57356: 4879 0007 d0e4 pea 7d0e4 <_Region_Information> <== NOT EXECUTED _Region_Free( the_region ); return_status = RTEMS_INVALID_SIZE; 5735c: 7408 moveq #8,%d2 <== NOT EXECUTED 5735e: 4eb9 0005 b698 jsr 5b698 <_Objects_Free> <== NOT EXECUTED 57364: 508f addql #8,%sp <== NOT EXECUTED *id = the_region->Object.id; return_status = RTEMS_SUCCESSFUL; } } _RTEMS_Unlock_allocator(); 57366: 2f39 0007 d27a movel 7d27a <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 5736c: 4eb9 0005 9bc4 jsr 59bc4 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; 57372: 588f addql #4,%sp <== NOT EXECUTED } 57374: 2002 movel %d2,%d0 <== NOT EXECUTED 57376: 4cee 0c7c ffe4 moveml %fp@(-28),%d2-%d6/%a2-%a3 <== NOT EXECUTED 5737c: 4e5e unlk %fp <== NOT EXECUTED 5737e: 4e75 rts <== NOT EXECUTED { rtems_status_code return_status; Region_Control *the_region; if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; 57380: 7403 moveq #3,%d2 <== NOT EXECUTED } } _RTEMS_Unlock_allocator(); return return_status; } 57382: 2002 movel %d2,%d0 <== NOT EXECUTED 57384: 4cee 0c7c ffe4 moveml %fp@(-28),%d2-%d6/%a2-%a3 <== NOT EXECUTED 5738a: 4e5e unlk %fp <== NOT EXECUTED 5738c: 4e75 rts <== NOT EXECUTED return_status = RTEMS_INVALID_SIZE; } else { the_region->starting_address = starting_address; 5738e: 2542 0050 movel %d2,%a2@(80) <== NOT EXECUTED &the_region->Object, (Objects_Name) name ); *id = the_region->Object.id; return_status = RTEMS_SUCCESSFUL; 57392: 4282 clrl %d2 <== NOT EXECUTED } else { the_region->starting_address = starting_address; the_region->length = length; 57394: 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( 57398: 44c6 movew %d6,%ccr <== NOT EXECUTED 5739a: 57c0 seq %d0 <== NOT EXECUTED else { the_region->starting_address = starting_address; the_region->length = length; the_region->page_size = page_size; 5739c: 2544 0058 movel %d4,%a2@(88) <== NOT EXECUTED the_region->attribute_set = attribute_set; the_region->number_of_used_blocks = 0; _Thread_queue_Initialize( 573a0: 49c0 extbl %d0 <== NOT EXECUTED 573a2: 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; 573a4: 2546 0060 movel %d6,%a2@(96) <== NOT EXECUTED the_region->number_of_used_blocks = 0; 573a8: 42aa 0064 clrl %a2@(100) <== NOT EXECUTED _Thread_queue_Initialize( 573ac: 4878 0006 pea 6 <== NOT EXECUTED 573b0: 4878 0040 pea 40 <== NOT EXECUTED 573b4: 2f00 movel %d0,%sp@- <== NOT EXECUTED 573b6: 486a 0010 pea %a2@(16) <== NOT EXECUTED 573ba: 4eb9 0005 c8b4 jsr 5c8b4 <_Thread_queue_Initialize> <== NOT EXECUTED Objects_Name name ) { _Objects_Set_local_object( information, _Objects_Get_index( the_object->id ), 573c0: 202a 0008 movel %a2@(8),%d0 <== NOT EXECUTED Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( 573c4: 4281 clrl %d1 <== NOT EXECUTED &_Region_Information, &the_region->Object, (Objects_Name) name ); *id = the_region->Object.id; 573c6: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 573ca: 2079 0007 d0fc moveal 7d0fc <_Region_Information+0x18>,%a0 <== NOT EXECUTED Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( 573d0: 3200 movew %d0,%d1 <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 573d2: 218a 1c00 movel %a2,%a0@(00000000,%d1:l:4) <== NOT EXECUTED information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 573d6: 2543 000c movel %d3,%a2@(12) <== NOT EXECUTED 573da: 2680 movel %d0,%a3@ <== NOT EXECUTED return_status = RTEMS_SUCCESSFUL; } } _RTEMS_Unlock_allocator(); 573dc: 2f39 0007 d27a movel 7d27a <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 573e2: 4eb9 0005 9bc4 jsr 59bc4 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; 573e8: 588f addql #4,%sp <== NOT EXECUTED 573ea: 6088 bras 57374 <== NOT EXECUTED if ( !starting_address ) return RTEMS_INVALID_ADDRESS; if ( !id ) return RTEMS_INVALID_ADDRESS; 573ec: 7409 moveq #9,%d2 <== NOT EXECUTED } } _RTEMS_Unlock_allocator(); return return_status; } 573ee: 2002 movel %d2,%d0 <== NOT EXECUTED 573f0: 4cee 0c7c ffe4 moveml %fp@(-28),%d2-%d6/%a2-%a3 <== NOT EXECUTED 573f6: 4e5e unlk %fp <== NOT EXECUTED 573f8: 4e75 rts <== NOT EXECUTED *id = the_region->Object.id; return_status = RTEMS_SUCCESSFUL; } } _RTEMS_Unlock_allocator(); 573fa: 2f39 0007 d27a movel 7d27a <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED _RTEMS_Lock_allocator(); /* to prevent deletion */ the_region = _Region_Allocate(); if ( !the_region ) return_status = RTEMS_TOO_MANY; 57400: 7405 moveq #5,%d2 <== NOT EXECUTED *id = the_region->Object.id; return_status = RTEMS_SUCCESSFUL; } } _RTEMS_Unlock_allocator(); 57402: 4eb9 0005 9bc4 jsr 59bc4 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; 57408: 588f addql #4,%sp <== NOT EXECUTED 5740a: 6000 ff68 braw 57374 <== NOT EXECUTED ... =============================================================================== 00057410 : */ rtems_status_code rtems_region_delete( rtems_id id ) { 57410: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 57414: 2f0a movel %a2,%sp@- <== NOT EXECUTED 57416: 2f02 movel %d2,%sp@- <== NOT EXECUTED Objects_Locations location; rtems_status_code return_status; Region_Control *the_region; _RTEMS_Lock_allocator(); 57418: 2f39 0007 d27a movel 7d27a <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 5741e: 4eb9 0005 9b64 jsr 59b64 <_API_Mutex_Lock> <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Region_Control *) _Objects_Get_no_protection( &_Region_Information, id, location ); 57424: 486e fffc pea %fp@(-4) <== NOT EXECUTED 57428: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 5742c: 4879 0007 d0e4 pea 7d0e4 <_Region_Information> <== NOT EXECUTED 57432: 4eb9 0005 b804 jsr 5b804 <_Objects_Get_no_protection> <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { 57438: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 5743c: 2440 moveal %d0,%a2 <== NOT EXECUTED 5743e: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 57442: 671c beqs 57460 <== NOT EXECUTED default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 57444: 2f39 0007 d27a movel 7d27a <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED break; #endif case OBJECTS_ERROR: default: return_status = RTEMS_INVALID_ID; 5744a: 7404 moveq #4,%d2 <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); 5744c: 4eb9 0005 9bc4 jsr 59bc4 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; } 57452: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 57456: 2002 movel %d2,%d0 <== NOT EXECUTED 57458: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 5745c: 4e5e unlk %fp <== NOT EXECUTED 5745e: 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 ) 57460: 4aaa 0064 tstl %a2@(100) <== NOT EXECUTED 57464: 671c beqs 57482 <== NOT EXECUTED default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 57466: 2f39 0007 d27a movel 7d27a <_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; 5746c: 740c moveq #12,%d2 <== NOT EXECUTED default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 5746e: 4eb9 0005 9bc4 jsr 59bc4 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; } 57474: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 57478: 2002 movel %d2,%d0 <== NOT EXECUTED 5747a: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 5747e: 4e5e unlk %fp <== NOT EXECUTED 57480: 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 ); 57482: 2f00 movel %d0,%sp@- <== NOT EXECUTED 57484: 4879 0007 d0e4 pea 7d0e4 <_Region_Information> <== NOT EXECUTED _Region_Free( the_region ); return_status = RTEMS_SUCCESSFUL; 5748a: 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 ); 5748c: 4eb9 0005 b3d4 jsr 5b3d4 <_Objects_Close> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Region_Free ( Region_Control *the_region ) { _Objects_Free( &_Region_Information, &the_region->Object ); 57492: 2f0a movel %a2,%sp@- <== NOT EXECUTED 57494: 4879 0007 d0e4 pea 7d0e4 <_Region_Information> <== NOT EXECUTED 5749a: 4eb9 0005 b698 jsr 5b698 <_Objects_Free> <== NOT EXECUTED 574a0: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 574a4: 2f39 0007 d27a movel 7d27a <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 574aa: 4eb9 0005 9bc4 jsr 59bc4 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; } 574b0: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 574b4: 2002 movel %d2,%d0 <== NOT EXECUTED 574b6: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 574ba: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 000574c0 : rtems_status_code rtems_region_extend( rtems_id id, void *starting_address, uintptr_t length ) { 574c0: 4e56 fff8 linkw %fp,#-8 <== NOT EXECUTED 574c4: 2f0a movel %a2,%sp@- <== NOT EXECUTED 574c6: 2f02 movel %d2,%sp@- <== NOT EXECUTED 574c8: 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 ) 574cc: 6700 0086 beqw 57554 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); /* to prevent deletion */ 574d0: 2f39 0007 d27a movel 7d27a <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 574d6: 4eb9 0005 9b64 jsr 59b64 <_API_Mutex_Lock> <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Region_Control *) _Objects_Get_no_protection( &_Region_Information, id, location ); 574dc: 486e fff8 pea %fp@(-8) <== NOT EXECUTED 574e0: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 574e4: 4879 0007 d0e4 pea 7d0e4 <_Region_Information> <== NOT EXECUTED 574ea: 4eb9 0005 b804 jsr 5b804 <_Objects_Get_no_protection> <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { 574f0: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 574f4: 2440 moveal %d0,%a2 <== NOT EXECUTED 574f6: 4aae fff8 tstl %fp@(-8) <== NOT EXECUTED 574fa: 6646 bnes 57542 <== NOT EXECUTED case OBJECTS_LOCAL: extend_ok = _Heap_Extend( 574fc: 486e fffc pea %fp@(-4) <== NOT EXECUTED 57500: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 57504: 2f02 movel %d2,%sp@- <== NOT EXECUTED 57506: 486a 0068 pea %a2@(104) <== NOT EXECUTED 5750a: 4eb9 0005 a8dc jsr 5a8dc <_Heap_Extend> <== NOT EXECUTED starting_address, length, &amount_extended ); if ( extend_ok ) { 57510: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 57514: 4a00 tstb %d0 <== NOT EXECUTED 57516: 674c beqs 57564 <== NOT EXECUTED the_region->length += amount_extended; 57518: 202e fffc movel %fp@(-4),%d0 <== NOT EXECUTED 5751c: d1aa 0054 addl %d0,%a2@(84) <== NOT EXECUTED the_region->maximum_segment_size += amount_extended; return_status = RTEMS_SUCCESSFUL; 57520: 4282 clrl %d2 <== NOT EXECUTED &amount_extended ); if ( extend_ok ) { the_region->length += amount_extended; the_region->maximum_segment_size += amount_extended; 57522: d1aa 005c addl %d0,%a2@(92) <== NOT EXECUTED default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 57526: 2f39 0007 d27a movel 7d27a <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 5752c: 4eb9 0005 9bc4 jsr 59bc4 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; 57532: 588f addql #4,%sp <== NOT EXECUTED } 57534: 2002 movel %d2,%d0 <== NOT EXECUTED 57536: 242e fff0 movel %fp@(-16),%d2 <== NOT EXECUTED 5753a: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED 5753e: 4e5e unlk %fp <== NOT EXECUTED 57540: 4e75 rts <== NOT EXECUTED default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 57542: 2f39 0007 d27a movel 7d27a <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED break; #endif case OBJECTS_ERROR: default: return_status = RTEMS_INVALID_ID; 57548: 7404 moveq #4,%d2 <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); 5754a: 4eb9 0005 9bc4 jsr 59bc4 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; 57550: 588f addql #4,%sp <== NOT EXECUTED 57552: 60e0 bras 57534 <== NOT EXECUTED Objects_Locations location; rtems_status_code return_status; Region_Control *the_region; if ( !starting_address ) return RTEMS_INVALID_ADDRESS; 57554: 7409 moveq #9,%d2 <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); return return_status; } 57556: 2002 movel %d2,%d0 <== NOT EXECUTED 57558: 242e fff0 movel %fp@(-16),%d2 <== NOT EXECUTED 5755c: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED 57560: 4e5e unlk %fp <== NOT EXECUTED 57562: 4e75 rts <== NOT EXECUTED default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 57564: 2f39 0007 d27a movel 7d27a <_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; 5756a: 7409 moveq #9,%d2 <== NOT EXECUTED default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 5756c: 4eb9 0005 9bc4 jsr 59bc4 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; 57572: 588f addql #4,%sp <== NOT EXECUTED 57574: 60be bras 57534 <== NOT EXECUTED ... =============================================================================== 00057578 : rtems_status_code rtems_region_get_free_information( rtems_id id, Heap_Information_block *the_info ) { 57578: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 5757c: 2f0a movel %a2,%sp@- <== NOT EXECUTED 5757e: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED 57582: 2f02 movel %d2,%sp@- <== NOT EXECUTED Objects_Locations location; rtems_status_code return_status; register Region_Control *the_region; if ( !the_info ) 57584: 4a8a tstl %a2 <== NOT EXECUTED 57586: 6776 beqs 575fe <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); 57588: 2f39 0007 d27a movel 7d27a <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 5758e: 4eb9 0005 9b64 jsr 59b64 <_API_Mutex_Lock> <== NOT EXECUTED 57594: 486e fffc pea %fp@(-4) <== NOT EXECUTED 57598: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 5759c: 4879 0007 d0e4 pea 7d0e4 <_Region_Information> <== NOT EXECUTED 575a2: 4eb9 0005 b804 jsr 5b804 <_Objects_Get_no_protection> <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { 575a8: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 575ac: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 575b0: 663a bnes 575ec <== 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 ); 575b2: 2f0a movel %a2,%sp@- <== NOT EXECUTED 575b4: 2040 moveal %d0,%a0 <== NOT EXECUTED 575b6: 4868 0068 pea %a0@(104) <== NOT EXECUTED return_status = RTEMS_SUCCESSFUL; 575ba: 4282 clrl %d2 <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: the_info->Used.number = 0; 575bc: 42aa 000c clrl %a2@(12) <== NOT EXECUTED the_info->Used.total = 0; 575c0: 42aa 0014 clrl %a2@(20) <== NOT EXECUTED the_info->Used.largest = 0; 575c4: 42aa 0010 clrl %a2@(16) <== NOT EXECUTED _Heap_Get_free_information( &the_region->Memory, &the_info->Free ); 575c8: 4eb9 0005 acb0 jsr 5acb0 <_Heap_Get_free_information> <== NOT EXECUTED return_status = RTEMS_SUCCESSFUL; break; 575ce: 508f addql #8,%sp <== NOT EXECUTED default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 575d0: 2f39 0007 d27a movel 7d27a <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 575d6: 4eb9 0005 9bc4 jsr 59bc4 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; 575dc: 588f addql #4,%sp <== NOT EXECUTED } 575de: 2002 movel %d2,%d0 <== NOT EXECUTED 575e0: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 575e4: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 575e8: 4e5e unlk %fp <== NOT EXECUTED 575ea: 4e75 rts <== NOT EXECUTED default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 575ec: 2f39 0007 d27a movel 7d27a <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED break; #endif case OBJECTS_ERROR: default: return_status = RTEMS_INVALID_ID; 575f2: 7404 moveq #4,%d2 <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); 575f4: 4eb9 0005 9bc4 jsr 59bc4 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; 575fa: 588f addql #4,%sp <== NOT EXECUTED 575fc: 60e0 bras 575de <== NOT EXECUTED Objects_Locations location; rtems_status_code return_status; register Region_Control *the_region; if ( !the_info ) return RTEMS_INVALID_ADDRESS; 575fe: 7409 moveq #9,%d2 <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); return return_status; } 57600: 2002 movel %d2,%d0 <== NOT EXECUTED 57602: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 57606: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 5760a: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 00057610 : rtems_status_code rtems_region_get_information( rtems_id id, Heap_Information_block *the_info ) { 57610: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 57614: 2f02 movel %d2,%sp@- <== NOT EXECUTED 57616: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED Objects_Locations location; rtems_status_code return_status; register Region_Control *the_region; if ( !the_info ) 5761a: 6766 beqs 57682 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); 5761c: 2f39 0007 d27a movel 7d27a <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 57622: 4eb9 0005 9b64 jsr 59b64 <_API_Mutex_Lock> <== NOT EXECUTED 57628: 486e fffc pea %fp@(-4) <== NOT EXECUTED 5762c: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 57630: 4879 0007 d0e4 pea 7d0e4 <_Region_Information> <== NOT EXECUTED 57636: 4eb9 0005 b804 jsr 5b804 <_Objects_Get_no_protection> <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { 5763c: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 57640: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 57644: 662a bnes 57670 <== NOT EXECUTED case OBJECTS_LOCAL: _Heap_Get_information( &the_region->Memory, the_info ); 57646: 2f02 movel %d2,%sp@- <== NOT EXECUTED 57648: 2040 moveal %d0,%a0 <== NOT EXECUTED 5764a: 4868 0068 pea %a0@(104) <== NOT EXECUTED return_status = RTEMS_SUCCESSFUL; 5764e: 4282 clrl %d2 <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: _Heap_Get_information( &the_region->Memory, the_info ); 57650: 4eb9 0005 ad0c jsr 5ad0c <_Heap_Get_information> <== NOT EXECUTED return_status = RTEMS_SUCCESSFUL; break; 57656: 508f addql #8,%sp <== NOT EXECUTED default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 57658: 2f39 0007 d27a movel 7d27a <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 5765e: 4eb9 0005 9bc4 jsr 59bc4 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; 57664: 588f addql #4,%sp <== NOT EXECUTED } 57666: 2002 movel %d2,%d0 <== NOT EXECUTED 57668: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 5766c: 4e5e unlk %fp <== NOT EXECUTED 5766e: 4e75 rts <== NOT EXECUTED default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 57670: 2f39 0007 d27a movel 7d27a <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED break; #endif case OBJECTS_ERROR: default: return_status = RTEMS_INVALID_ID; 57676: 7404 moveq #4,%d2 <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); 57678: 4eb9 0005 9bc4 jsr 59bc4 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; 5767e: 588f addql #4,%sp <== NOT EXECUTED 57680: 60e4 bras 57666 <== NOT EXECUTED Objects_Locations location; rtems_status_code return_status; register Region_Control *the_region; if ( !the_info ) return RTEMS_INVALID_ADDRESS; 57682: 7409 moveq #9,%d2 <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); return return_status; } 57684: 2002 movel %d2,%d0 <== NOT EXECUTED 57686: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 5768a: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 00057690 : uintptr_t size, rtems_option option_set, rtems_interval timeout, void **segment ) { 57690: 4e56 ffe4 linkw %fp,#-28 <== NOT EXECUTED 57694: 48d7 1c0c moveml %d2-%d3/%a2-%a4,%sp@ <== NOT EXECUTED 57698: 262e 0008 movel %fp@(8),%d3 <== NOT EXECUTED 5769c: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED 576a0: 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 ) 576a4: 4a8a tstl %a2 <== NOT EXECUTED 576a6: 6700 00be beqw 57766 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; *segment = NULL; 576aa: 4292 clrl %a2@ <== NOT EXECUTED if ( size == 0 ) 576ac: 4a82 tstl %d2 <== NOT EXECUTED 576ae: 660c bnes 576bc <== NOT EXECUTED return RTEMS_INVALID_SIZE; 576b0: 7008 moveq #8,%d0 <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); return return_status; } 576b2: 4cee 1c0c ffe4 moveml %fp@(-28),%d2-%d3/%a2-%a4 <== NOT EXECUTED 576b8: 4e5e unlk %fp <== NOT EXECUTED 576ba: 4e75 rts <== NOT EXECUTED *segment = NULL; if ( size == 0 ) return RTEMS_INVALID_SIZE; _RTEMS_Lock_allocator(); 576bc: 2f39 0007 d27a movel 7d27a <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 576c2: 4eb9 0005 9b64 jsr 59b64 <_API_Mutex_Lock> <== NOT EXECUTED 576c8: 486e fffc pea %fp@(-4) <== NOT EXECUTED 576cc: 2f03 movel %d3,%sp@- <== NOT EXECUTED 576ce: 4879 0007 d0e4 pea 7d0e4 <_Region_Information> <== NOT EXECUTED executing = _Thread_Executing; 576d4: 2879 0007 d3a4 moveal 7d3a4 <_Per_CPU_Information+0xc>,%a4 <== NOT EXECUTED 576da: 4eb9 0005 b804 jsr 5b804 <_Objects_Get_no_protection> <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { 576e0: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 576e4: 2640 moveal %d0,%a3 <== NOT EXECUTED 576e6: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 576ea: 6628 bnes 57714 <== NOT EXECUTED case OBJECTS_LOCAL: if ( size > the_region->maximum_segment_size ) 576ec: b4ab 005c cmpl %a3@(92),%d2 <== NOT EXECUTED 576f0: 633c blss 5772e <== NOT EXECUTED return_status = RTEMS_INVALID_SIZE; 576f2: 7008 moveq #8,%d0 <== NOT EXECUTED default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 576f4: 2f39 0007 d27a movel 7d27a <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 576fa: 2d40 fff8 movel %d0,%fp@(-8) <== NOT EXECUTED 576fe: 4eb9 0005 9bc4 jsr 59bc4 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; 57704: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED 57708: 588f addql #4,%sp <== NOT EXECUTED } 5770a: 4cee 1c0c ffe4 moveml %fp@(-28),%d2-%d3/%a2-%a4 <== NOT EXECUTED 57710: 4e5e unlk %fp <== NOT EXECUTED 57712: 4e75 rts <== NOT EXECUTED break; #endif case OBJECTS_ERROR: default: return_status = RTEMS_INVALID_ID; 57714: 7004 moveq #4,%d0 <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); 57716: 2f39 0007 d27a movel 7d27a <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 5771c: 2d40 fff8 movel %d0,%fp@(-8) <== NOT EXECUTED 57720: 4eb9 0005 9bc4 jsr 59bc4 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; 57726: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED 5772a: 588f addql #4,%sp <== NOT EXECUTED 5772c: 60dc bras 5770a <== 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 ); 5772e: 42a7 clrl %sp@- <== NOT EXECUTED 57730: 42a7 clrl %sp@- <== NOT EXECUTED 57732: 2f02 movel %d2,%sp@- <== NOT EXECUTED 57734: 486b 0068 pea %a3@(104) <== NOT EXECUTED 57738: 4eb9 0005 a72c jsr 5a72c <_Heap_Allocate_aligned_with_boundary><== NOT EXECUTED the_segment = _Region_Allocate_segment( the_region, size ); _Region_Debug_Walk( the_region, 2 ); if ( the_segment ) { 5773e: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 57742: 2200 movel %d0,%d1 <== NOT EXECUTED 57744: 672c beqs 57772 <== NOT EXECUTED the_region->number_of_used_blocks += 1; 57746: 52ab 0064 addql #1,%a3@(100) <== NOT EXECUTED *segment = the_segment; return_status = RTEMS_SUCCESSFUL; 5774a: 4280 clrl %d0 <== NOT EXECUTED _Region_Debug_Walk( the_region, 2 ); if ( the_segment ) { the_region->number_of_used_blocks += 1; *segment = the_segment; 5774c: 2481 movel %d1,%a2@ <== NOT EXECUTED default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 5774e: 2f39 0007 d27a movel 7d27a <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 57754: 2d40 fff8 movel %d0,%fp@(-8) <== NOT EXECUTED 57758: 4eb9 0005 9bc4 jsr 59bc4 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; 5775e: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED 57762: 588f addql #4,%sp <== NOT EXECUTED 57764: 60a4 bras 5770a <== NOT EXECUTED rtems_status_code return_status; Region_Control *the_region; void *the_segment; if ( !segment ) return RTEMS_INVALID_ADDRESS; 57766: 7009 moveq #9,%d0 <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); return return_status; } 57768: 4cee 1c0c ffe4 moveml %fp@(-28),%d2-%d3/%a2-%a4 <== NOT EXECUTED 5776e: 4e5e unlk %fp <== NOT EXECUTED 57770: 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 ) ) { 57772: 202e 0010 movel %fp@(16),%d0 <== NOT EXECUTED 57776: 0800 0000 btst #0,%d0 <== NOT EXECUTED 5777a: 671c beqs 57798 <== NOT EXECUTED return_status = RTEMS_UNSATISFIED; 5777c: 700d moveq #13,%d0 <== NOT EXECUTED default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 5777e: 2f39 0007 d27a movel 7d27a <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 57784: 2d40 fff8 movel %d0,%fp@(-8) <== NOT EXECUTED 57788: 4eb9 0005 9bc4 jsr 59bc4 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; 5778e: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED 57792: 588f addql #4,%sp <== NOT EXECUTED 57794: 6000 ff74 braw 5770a <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 57798: 2039 0007 d1d8 movel 7d1d8 <_Thread_Dispatch_disable_level>,%d0<== NOT EXECUTED 5779e: 5280 addql #1,%d0 <== NOT EXECUTED 577a0: 23c0 0007 d1d8 movel %d0,7d1d8 <_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(); 577a6: 2f39 0007 d27a movel 7d27a <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 577ac: 4eb9 0005 9bc4 jsr 59bc4 <_API_Mutex_Unlock> <== NOT EXECUTED executing->Wait.queue = &the_region->Wait_queue; 577b2: 200b movel %a3,%d0 <== NOT EXECUTED 577b4: 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; 577ba: 7201 moveq #1,%d1 <== NOT EXECUTED 577bc: 2940 0044 movel %d0,%a4@(68) <== NOT EXECUTED executing->Wait.id = id; 577c0: 2943 0020 movel %d3,%a4@(32) <== NOT EXECUTED executing->Wait.count = size; 577c4: 2942 0024 movel %d2,%a4@(36) <== NOT EXECUTED executing->Wait.return_argument = segment; 577c8: 294a 0028 movel %a2,%a4@(40) <== NOT EXECUTED 577cc: 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 ); 577d0: 4879 0005 c9c0 pea 5c9c0 <_Thread_queue_Timeout> <== NOT EXECUTED 577d6: 2f2e 0014 movel %fp@(20),%sp@- <== NOT EXECUTED 577da: 2f00 movel %d0,%sp@- <== NOT EXECUTED 577dc: 4eb9 0005 c5f8 jsr 5c5f8 <_Thread_queue_Enqueue_with_handler><== NOT EXECUTED _Thread_Enable_dispatch(); 577e2: 4eb9 0005 c12a jsr 5c12a <_Thread_Enable_dispatch> <== NOT EXECUTED return (rtems_status_code) executing->Wait.return_code; 577e8: 202c 0034 movel %a4@(52),%d0 <== NOT EXECUTED 577ec: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); return return_status; } 577f0: 4cee 1c0c ffe4 moveml %fp@(-28),%d2-%d3/%a2-%a4 <== NOT EXECUTED 577f6: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 000577fc : rtems_status_code rtems_region_get_segment_size( rtems_id id, void *segment, uintptr_t *size ) { 577fc: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 57800: 2f03 movel %d3,%sp@- <== NOT EXECUTED 57802: 262e 0010 movel %fp@(16),%d3 <== NOT EXECUTED 57806: 2f02 movel %d2,%sp@- <== NOT EXECUTED 57808: 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 ) 5780c: 6700 0092 beqw 578a0 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !size ) 57810: 4a83 tstl %d3 <== NOT EXECUTED 57812: 6700 008c beqw 578a0 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); 57816: 2f39 0007 d27a movel 7d27a <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 5781c: 4eb9 0005 9b64 jsr 59b64 <_API_Mutex_Lock> <== NOT EXECUTED 57822: 486e fffc pea %fp@(-4) <== NOT EXECUTED 57826: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 5782a: 4879 0007 d0e4 pea 7d0e4 <_Region_Information> <== NOT EXECUTED 57830: 4eb9 0005 b804 jsr 5b804 <_Objects_Get_no_protection> <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { 57836: 222e fffc movel %fp@(-4),%d1 <== NOT EXECUTED 5783a: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 5783e: 6636 bnes 57876 <== NOT EXECUTED case OBJECTS_LOCAL: if ( !_Heap_Size_of_alloc_area( &the_region->Memory, segment, size ) ) 57840: 2f03 movel %d3,%sp@- <== NOT EXECUTED 57842: 2040 moveal %d0,%a0 <== NOT EXECUTED 57844: 2f02 movel %d2,%sp@- <== NOT EXECUTED 57846: 4868 0068 pea %a0@(104) <== NOT EXECUTED 5784a: 4eb9 0005 b224 jsr 5b224 <_Heap_Size_of_alloc_area> <== NOT EXECUTED 57850: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 57854: 4a00 tstb %d0 <== NOT EXECUTED 57856: 6624 bnes 5787c <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 57858: 2f39 0007 d27a movel 7d27a <_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; 5785e: 7409 moveq #9,%d2 <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 57860: 4eb9 0005 9bc4 jsr 59bc4 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; 57866: 588f addql #4,%sp <== NOT EXECUTED } 57868: 2002 movel %d2,%d0 <== NOT EXECUTED 5786a: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 5786e: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED 57872: 4e5e unlk %fp <== NOT EXECUTED 57874: 4e75 rts <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); the_region = _Region_Get( id, &location ); switch ( location ) { 57876: 7001 moveq #1,%d0 <== NOT EXECUTED 57878: b081 cmpl %d1,%d0 <== NOT EXECUTED 5787a: 6712 beqs 5788e <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 5787c: 2f39 0007 d27a movel 7d27a <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED void *segment, uintptr_t *size ) { Objects_Locations location; rtems_status_code return_status = RTEMS_SUCCESSFUL; 57882: 4282 clrl %d2 <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 57884: 4eb9 0005 9bc4 jsr 59bc4 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; 5788a: 588f addql #4,%sp <== NOT EXECUTED 5788c: 60da bras 57868 <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 5788e: 2f39 0007 d27a movel 7d27a <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED case OBJECTS_REMOTE: /* this error cannot be returned */ break; #endif case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; 57894: 7404 moveq #4,%d2 <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); 57896: 4eb9 0005 9bc4 jsr 59bc4 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; 5789c: 588f addql #4,%sp <== NOT EXECUTED 5789e: 60c8 bras 57868 <== NOT EXECUTED if ( !segment ) return RTEMS_INVALID_ADDRESS; if ( !size ) return RTEMS_INVALID_ADDRESS; 578a0: 7409 moveq #9,%d2 <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); return return_status; } 578a2: 2002 movel %d2,%d0 <== NOT EXECUTED 578a4: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 578a8: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED 578ac: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 000578b0 : rtems_status_code rtems_region_ident( rtems_name name, rtems_id *id ) { 578b0: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( 578b4: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 578b8: 2f3c 7fff ffff movel #2147483647,%sp@- <== NOT EXECUTED 578be: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 578c2: 4879 0007 d0e4 pea 7d0e4 <_Region_Information> <== NOT EXECUTED 578c8: 4eb9 0005 b9cc jsr 5b9cc <_Objects_Name_to_id_u32> <== NOT EXECUTED name, OBJECTS_SEARCH_LOCAL_NODE, id ); return _Status_Object_name_errors_to_status[ status ]; 578ce: 41f9 0007 6818 lea 76818 <_Status_Object_name_errors_to_status>,%a0<== NOT EXECUTED } 578d4: 4e5e unlk %fp <== NOT EXECUTED 578d6: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED =============================================================================== 000578dc : rtems_id id, void *segment, uintptr_t size, uintptr_t *old_size ) { 578dc: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 578e0: 2f0b movel %a3,%sp@- <== NOT EXECUTED 578e2: 2f0a movel %a2,%sp@- <== NOT EXECUTED 578e4: 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 ) 578e8: 4a8a tstl %a2 <== NOT EXECUTED 578ea: 6700 00a4 beqw 57990 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); 578ee: 2f39 0007 d27a movel 7d27a <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 578f4: 4eb9 0005 9b64 jsr 59b64 <_API_Mutex_Lock> <== NOT EXECUTED 578fa: 486e fff8 pea %fp@(-8) <== NOT EXECUTED 578fe: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 57902: 4879 0007 d0e4 pea 7d0e4 <_Region_Information> <== NOT EXECUTED 57908: 4eb9 0005 b804 jsr 5b804 <_Objects_Get_no_protection> <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { 5790e: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 57912: 2640 moveal %d0,%a3 <== NOT EXECUTED 57914: 4aae fff8 tstl %fp@(-8) <== NOT EXECUTED 57918: 663e bnes 57958 <== NOT EXECUTED case OBJECTS_LOCAL: _Region_Debug_Walk( the_region, 7 ); status = _Heap_Resize_block( 5791a: 486e fffc pea %fp@(-4) <== NOT EXECUTED 5791e: 486e fff4 pea %fp@(-12) <== NOT EXECUTED 57922: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 57926: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 5792a: 486b 0068 pea %a3@(104) <== NOT EXECUTED 5792e: 4eb9 0005 b138 jsr 5b138 <_Heap_Resize_block> <== NOT EXECUTED segment, (uint32_t) size, &osize, &avail_size ); *old_size = (uint32_t) osize; 57934: 24ae fff4 movel %fp@(-12),%a2@ <== NOT EXECUTED _Region_Debug_Walk( the_region, 8 ); if ( status == HEAP_RESIZE_SUCCESSFUL ) 57938: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED 5793c: 4a80 tstl %d0 <== NOT EXECUTED 5793e: 6634 bnes 57974 <== NOT EXECUTED _Region_Process_queue( the_region ); /* unlocks allocator */ 57940: 2f0b movel %a3,%sp@- <== NOT EXECUTED 57942: 4eb9 0005 f368 jsr 5f368 <_Region_Process_queue> <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); return return_status; } 57948: 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 */ 5794c: 588f addql #4,%sp <== NOT EXECUTED else _RTEMS_Unlock_allocator(); if (status == HEAP_RESIZE_SUCCESSFUL) return RTEMS_SUCCESSFUL; 5794e: 4280 clrl %d0 <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); return return_status; } 57950: 266e ffec moveal %fp@(-20),%a3 <== NOT EXECUTED 57954: 4e5e unlk %fp <== NOT EXECUTED 57956: 4e75 rts <== NOT EXECUTED default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 57958: 2f39 0007 d27a movel 7d27a <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 5795e: 4eb9 0005 9bc4 jsr 59bc4 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; } 57964: 246e ffe8 moveal %fp@(-24),%a2 <== NOT EXECUTED return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); return return_status; 57968: 588f addql #4,%sp <== NOT EXECUTED 5796a: 7004 moveq #4,%d0 <== NOT EXECUTED } 5796c: 266e ffec moveal %fp@(-20),%a3 <== NOT EXECUTED 57970: 4e5e unlk %fp <== NOT EXECUTED 57972: 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(); 57974: 2f39 0007 d27a movel 7d27a <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 5797a: 2d40 fff0 movel %d0,%fp@(-16) <== NOT EXECUTED 5797e: 4eb9 0005 9bc4 jsr 59bc4 <_API_Mutex_Unlock> <== NOT EXECUTED if (status == HEAP_RESIZE_SUCCESSFUL) return RTEMS_SUCCESSFUL; if (status == HEAP_RESIZE_UNSATISFIED) 57984: 202e fff0 movel %fp@(-16),%d0 <== NOT EXECUTED 57988: 588f addql #4,%sp <== NOT EXECUTED 5798a: 7201 moveq #1,%d1 <== NOT EXECUTED 5798c: b280 cmpl %d0,%d1 <== NOT EXECUTED 5798e: 670e beqs 5799e <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); return return_status; } 57990: 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; 57994: 7009 moveq #9,%d0 <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); return return_status; } 57996: 266e ffec moveal %fp@(-20),%a3 <== NOT EXECUTED 5799a: 4e5e unlk %fp <== NOT EXECUTED 5799c: 4e75 rts <== NOT EXECUTED 5799e: 246e ffe8 moveal %fp@(-24),%a2 <== NOT EXECUTED if (status == HEAP_RESIZE_SUCCESSFUL) return RTEMS_SUCCESSFUL; if (status == HEAP_RESIZE_UNSATISFIED) return RTEMS_UNSATISFIED; 579a2: 700d moveq #13,%d0 <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); return return_status; } 579a4: 266e ffec moveal %fp@(-20),%a3 <== NOT EXECUTED 579a8: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 000579ac : rtems_status_code rtems_region_return_segment( rtems_id id, void *segment ) { 579ac: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 579b0: 2f0a movel %a2,%sp@- <== NOT EXECUTED 579b2: 2f02 movel %d2,%sp@- <== NOT EXECUTED uint32_t size; #endif int status; register Region_Control *the_region; _RTEMS_Lock_allocator(); 579b4: 2f39 0007 d27a movel 7d27a <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 579ba: 4eb9 0005 9b64 jsr 59b64 <_API_Mutex_Lock> <== NOT EXECUTED 579c0: 486e fffc pea %fp@(-4) <== NOT EXECUTED 579c4: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 579c8: 4879 0007 d0e4 pea 7d0e4 <_Region_Information> <== NOT EXECUTED 579ce: 4eb9 0005 b804 jsr 5b804 <_Objects_Get_no_protection> <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { 579d4: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 579d8: 2440 moveal %d0,%a2 <== NOT EXECUTED 579da: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 579de: 6632 bnes 57a12 <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool _Region_Free_segment ( Region_Control *the_region, void *the_segment ) { return _Heap_Free( &the_region->Memory, the_segment ); 579e0: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 579e4: 486a 0068 pea %a2@(104) <== NOT EXECUTED 579e8: 4eb9 0005 ab38 jsr 5ab38 <_Heap_Free> <== NOT EXECUTED #endif status = _Region_Free_segment( the_region, segment ); _Region_Debug_Walk( the_region, 4 ); if ( !status ) 579ee: 508f addql #8,%sp <== NOT EXECUTED 579f0: 4a00 tstb %d0 <== NOT EXECUTED 579f2: 6630 bnes 57a24 <== NOT EXECUTED default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 579f4: 2f39 0007 d27a movel 7d27a <_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; 579fa: 7409 moveq #9,%d2 <== NOT EXECUTED default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 579fc: 4eb9 0005 9bc4 jsr 59bc4 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; 57a02: 588f addql #4,%sp <== NOT EXECUTED } 57a04: 2002 movel %d2,%d0 <== NOT EXECUTED 57a06: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 57a0a: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 57a0e: 4e5e unlk %fp <== NOT EXECUTED 57a10: 4e75 rts <== NOT EXECUTED default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 57a12: 2f39 0007 d27a movel 7d27a <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED break; #endif case OBJECTS_ERROR: default: return_status = RTEMS_INVALID_ID; 57a18: 7404 moveq #4,%d2 <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); 57a1a: 4eb9 0005 9bc4 jsr 59bc4 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; 57a20: 588f addql #4,%sp <== NOT EXECUTED 57a22: 60e0 bras 57a04 <== NOT EXECUTED _Region_Debug_Walk( the_region, 4 ); if ( !status ) return_status = RTEMS_INVALID_ADDRESS; else { the_region->number_of_used_blocks -= 1; 57a24: 53aa 0064 subql #1,%a2@(100) <== NOT EXECUTED _Region_Process_queue(the_region); /* unlocks allocator */ return RTEMS_SUCCESSFUL; 57a28: 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 */ 57a2a: 2f0a movel %a2,%sp@- <== NOT EXECUTED 57a2c: 4eb9 0005 f368 jsr 5f368 <_Region_Process_queue> <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); return return_status; } 57a32: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 57a36: 2002 movel %d2,%d0 <== NOT EXECUTED else { the_region->number_of_used_blocks -= 1; _Region_Process_queue(the_region); /* unlocks allocator */ return RTEMS_SUCCESSFUL; 57a38: 588f addql #4,%sp <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); return return_status; } 57a3a: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 57a3e: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 000461dc : uint32_t count, rtems_attribute attribute_set, rtems_task_priority priority_ceiling, rtems_id *id ) { 461dc: 4e56 ffd4 linkw %fp,#-44 461e0: 48d7 0c1c moveml %d2-%d4/%a2-%a3,%sp@ 461e4: 262e 0008 movel %fp@(8),%d3 461e8: 242e 0010 movel %fp@(16),%d2 461ec: 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 ) ) 461f0: 4a83 tstl %d3 461f2: 6746 beqs 4623a <== NEVER TAKEN return RTEMS_INVALID_NAME; if ( !id ) 461f4: 4a8a tstl %a2 461f6: 6700 00e8 beqw 462e0 * id - semaphore id * RTEMS_SUCCESSFUL - if successful * error code - if unsuccessful */ rtems_status_code rtems_semaphore_create( 461fa: 2002 movel %d2,%d0 461fc: 0280 0000 00c0 andil #192,%d0 return RTEMS_NOT_DEFINED; } else #endif if ( _Attributes_Is_inherit_priority( attribute_set ) || 46202: 6742 beqs 46246 */ RTEMS_INLINE_ROUTINE bool _Attributes_Is_binary_semaphore( rtems_attribute attribute_set ) { return ((attribute_set & RTEMS_SEMAPHORE_CLASS) == RTEMS_BINARY_SEMAPHORE); 46204: 7230 moveq #48,%d1 _Attributes_Is_priority_ceiling( attribute_set ) ) { if ( ! (_Attributes_Is_binary_semaphore( attribute_set ) && 46206: 7810 moveq #16,%d4 46208: c282 andl %d2,%d1 4620a: b881 cmpl %d1,%d4 4620c: 670c beqs 4621a <== ALWAYS TAKEN } if ( _Attributes_Is_inherit_priority( attribute_set ) && _Attributes_Is_priority_ceiling( attribute_set ) ) return RTEMS_NOT_DEFINED; 4620e: 700b moveq #11,%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 #endif if ( _Attributes_Is_inherit_priority( attribute_set ) || _Attributes_Is_priority_ceiling( attribute_set ) ) { if ( ! (_Attributes_Is_binary_semaphore( attribute_set ) && 4621a: 44c2 movew %d2,%ccr 4621c: 66f0 bnes 4620e <== NEVER TAKEN _Attributes_Is_priority( attribute_set ) ) ) return RTEMS_NOT_DEFINED; } if ( _Attributes_Is_inherit_priority( attribute_set ) && 4621e: 0c80 0000 00c0 cmpil #192,%d0 46224: 67e8 beqs 4620e <== NEVER TAKEN _Attributes_Is_priority_ceiling( attribute_set ) ) return RTEMS_NOT_DEFINED; if ( !_Attributes_Is_counting_semaphore( attribute_set ) && ( count > 1 ) ) 46226: 7001 moveq #1,%d0 46228: b0ae 000c cmpl %fp@(12),%d0 4622c: 641e bccs 4624c <== ALWAYS TAKEN return RTEMS_INVALID_NUMBER; 4622e: 700a moveq #10,%d0 <== NOT EXECUTED 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 46230: 4cee 0c1c ffd4 moveml %fp@(-44),%d2-%d4/%a2-%a3 <== NOT EXECUTED 46236: 4e5e unlk %fp <== NOT EXECUTED 46238: 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; 4623a: 7003 moveq #3,%d0 <== NOT EXECUTED 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 4623c: 4cee 0c1c ffd4 moveml %fp@(-44),%d2-%d4/%a2-%a3 <== NOT EXECUTED 46242: 4e5e unlk %fp <== NOT EXECUTED 46244: 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); 46246: 7830 moveq #48,%d4 46248: 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 ) ) 4624a: 66da bnes 46226 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 4624c: 2039 0005 e46c movel 5e46c <_Thread_Dispatch_disable_level>,%d0 46252: 5280 addql #1,%d0 46254: 23c0 0005 e46c movel %d0,5e46c <_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 ); 4625a: 4879 0005 e3b0 pea 5e3b0 <_Semaphore_Information> 46260: 4eb9 0004 78bc jsr 478bc <_Objects_Allocate> _Thread_Disable_dispatch(); /* prevents deletion */ the_semaphore = _Semaphore_Allocate(); if ( !the_semaphore ) { 46266: 588f addql #4,%sp 46268: 2640 moveal %d0,%a3 4626a: 4a80 tstl %d0 4626c: 6700 00d8 beqw 46346 _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } #endif the_semaphore->attribute_set = attribute_set; 46270: 2742 0010 movel %d2,%a3@(16) /* * Initialize it as a counting semaphore. */ if ( _Attributes_Is_counting_semaphore( attribute_set ) ) { 46274: 4a84 tstl %d4 46276: 6774 beqs 462ec <== 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; 46278: 44c2 movew %d2,%ccr 4627a: 56c0 sne %d0 4627c: 49c0 extbl %d0 4627e: 5280 addql #1,%d0 46280: 2d40 fff0 movel %d0,%fp@(-16) else the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_FIFO; if ( _Attributes_Is_binary_semaphore( attribute_set ) ) { 46284: 7010 moveq #16,%d0 46286: b084 cmpl %d4,%d0 46288: 6700 00ce beqw 46358 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; 4628c: 7202 moveq #2,%d1 the_mutex_attr.only_owner_release = false; 4628e: 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; 46290: 2d41 ffea movel %d1,%fp@(-22) the_mutex_attr.only_owner_release = false; 46294: 1d44 ffee moveb %d4,%fp@(-18) } mutex_status = _CORE_mutex_Initialize( 46298: 7001 moveq #1,%d0 4629a: b0ae 000c cmpl %fp@(12),%d0 4629e: 57c0 seq %d0 462a0: 49c0 extbl %d0 462a2: 4480 negl %d0 462a4: 2f00 movel %d0,%sp@- 462a6: 486e ffea pea %fp@(-22) 462aa: 486b 0014 pea %a3@(20) 462ae: 4eb9 0004 6f30 jsr 46f30 <_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 ) { 462b4: 4fef 000c lea %sp@(12),%sp 462b8: 7206 moveq #6,%d1 462ba: b280 cmpl %d0,%d1 462bc: 665e bnes 4631c <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE void _Semaphore_Free ( Semaphore_Control *the_semaphore ) { _Objects_Free( &_Semaphore_Information, &the_semaphore->Object ); 462be: 2f0b movel %a3,%sp@- <== NOT EXECUTED 462c0: 4879 0005 e3b0 pea 5e3b0 <_Semaphore_Information> <== NOT EXECUTED 462c6: 4eb9 0004 7c10 jsr 47c10 <_Objects_Free> <== NOT EXECUTED _Semaphore_Free( the_semaphore ); _Thread_Enable_dispatch(); 462cc: 4eb9 0004 8666 jsr 48666 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_INVALID_PRIORITY; 462d2: 508f addql #8,%sp <== NOT EXECUTED 462d4: 7013 moveq #19,%d0 <== NOT EXECUTED 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 462d6: 4cee 0c1c ffd4 moveml %fp@(-44),%d2-%d4/%a2-%a3 <== NOT EXECUTED 462dc: 4e5e unlk %fp <== NOT EXECUTED 462de: 4e75 rts <== NOT EXECUTED if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; if ( !id ) return RTEMS_INVALID_ADDRESS; 462e0: 7009 moveq #9,%d0 <== NOT EXECUTED 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 462e2: 4cee 0c1c ffd4 moveml %fp@(-44),%d2-%d4/%a2-%a3 <== NOT EXECUTED 462e8: 4e5e unlk %fp <== NOT EXECUTED 462ea: 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( 462ec: 2f2e 000c movel %fp@(12),%sp@- */ if ( _Attributes_Is_counting_semaphore( attribute_set ) ) { /* * This effectively disables limit checking. */ the_semaphore_attr.maximum_count = 0xFFFFFFFF; 462f0: 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( 462f2: 486e fff8 pea %fp@(-8) 462f6: 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; 462fa: 44c2 movew %d2,%ccr 462fc: 56c0 sne %d0 */ if ( _Attributes_Is_counting_semaphore( attribute_set ) ) { /* * This effectively disables limit checking. */ the_semaphore_attr.maximum_count = 0xFFFFFFFF; 462fe: 2d41 fff8 movel %d1,%fp@(-8) if ( _Attributes_Is_priority( attribute_set ) ) the_semaphore_attr.discipline = CORE_SEMAPHORE_DISCIPLINES_PRIORITY; 46302: 49c0 extbl %d0 46304: 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; 46306: 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; 4630a: 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; 4630e: 42ae fff4 clrl %fp@(-12) _CORE_semaphore_Initialize( 46312: 4eb9 0004 7268 jsr 47268 <_CORE_semaphore_Initialize> 46318: 4fef 000c lea %sp@(12),%sp Objects_Name name ) { _Objects_Set_local_object( information, _Objects_Get_index( the_object->id ), 4631c: 202b 0008 movel %a3@(8),%d0 Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( 46320: 4281 clrl %d1 #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 46322: 2079 0005 e3c8 moveal 5e3c8 <_Semaphore_Information+0x18>,%a0 Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( 46328: 3200 movew %d0,%d1 #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 4632a: 218b 1c00 movel %a3,%a0@(00000000,%d1:l:4) information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 4632e: 2743 000c movel %d3,%a3@(12) &_Semaphore_Information, &the_semaphore->Object, (Objects_Name) name ); *id = the_semaphore->Object.id; 46332: 2480 movel %d0,%a2@ the_semaphore->Object.id, name, 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); 46334: 4eb9 0004 8666 jsr 48666 <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; } 4633a: 4cee 0c1c ffd4 moveml %fp@(-44),%d2-%d4/%a2-%a3 name, 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 46340: 4280 clrl %d0 } 46342: 4e5e unlk %fp 46344: 4e75 rts _Thread_Disable_dispatch(); /* prevents deletion */ the_semaphore = _Semaphore_Allocate(); if ( !the_semaphore ) { _Thread_Enable_dispatch(); 46346: 4eb9 0004 8666 jsr 48666 <_Thread_Enable_dispatch> return RTEMS_TOO_MANY; 4634c: 7005 moveq #5,%d0 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 4634e: 4cee 0c1c ffd4 moveml %fp@(-44),%d2-%d4/%a2-%a3 46354: 4e5e unlk %fp 46356: 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; 46358: 42ae ffea clrl %fp@(-22) the_mutex_attr.only_owner_release = false; if ( the_mutex_attr.discipline == CORE_MUTEX_DISCIPLINES_PRIORITY ) { 4635c: 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; 4635e: 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; 46360: 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; 46366: 1d41 ffee moveb %d1,%fp@(-18) if ( the_mutex_attr.discipline == CORE_MUTEX_DISCIPLINES_PRIORITY ) { 4636a: b8ae fff0 cmpl %fp@(-16),%d4 4636e: 6600 ff28 bnew 46298 if ( _Attributes_Is_inherit_priority( attribute_set ) ) { 46372: 0802 0006 btst #6,%d2 46376: 6712 beqs 4638a <== NEVER TAKEN the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; 46378: 103c 0002 moveb #2,%d0 the_mutex_attr.only_owner_release = true; 4637c: 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; 4637e: 2d40 fff0 movel %d0,%fp@(-16) the_mutex_attr.only_owner_release = true; 46382: 1d41 ffee moveb %d1,%fp@(-18) 46386: 6000 ff10 braw 46298 } else if ( _Attributes_Is_priority_ceiling( attribute_set ) ) { 4638a: 4a02 tstb %d2 <== NOT EXECUTED 4638c: 6c00 ff0a bgew 46298 <== NOT EXECUTED the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING; 46390: 7803 moveq #3,%d4 <== NOT EXECUTED the_mutex_attr.only_owner_release = true; 46392: 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; 46394: 2d44 fff0 movel %d4,%fp@(-16) <== NOT EXECUTED the_mutex_attr.only_owner_release = true; 46398: 1d40 ffee moveb %d0,%fp@(-18) <== NOT EXECUTED 4639c: 6000 fefa braw 46298 <== NOT EXECUTED =============================================================================== 000463a0 : #endif rtems_status_code rtems_semaphore_delete( rtems_id id ) { 463a0: 4e56 fffc linkw %fp,#-4 463a4: 2f0a movel %a2,%sp@- Objects_Id id, Objects_Locations *location ) { return (Semaphore_Control *) _Objects_Get( &_Semaphore_Information, id, location ); 463a6: 486e fffc pea %fp@(-4) 463aa: 2f2e 0008 movel %fp@(8),%sp@- 463ae: 4879 0005 e3b0 pea 5e3b0 <_Semaphore_Information> 463b4: 4eb9 0004 7d7c jsr 47d7c <_Objects_Get> register Semaphore_Control *the_semaphore; Objects_Locations location; the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) { 463ba: 4fef 000c lea %sp@(12),%sp 463be: 2440 moveal %d0,%a2 463c0: 4aae fffc tstl %fp@(-4) 463c4: 670a beqs 463d0 <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 463c6: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 463ca: 7004 moveq #4,%d0 <== NOT EXECUTED } 463cc: 4e5e unlk %fp <== NOT EXECUTED 463ce: 4e75 rts <== NOT EXECUTED 463d0: 7030 moveq #48,%d0 463d2: 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) ) { 463d6: 6760 beqs 46438 if ( _CORE_mutex_Is_locked( &the_semaphore->Core_control.mutex ) && 463d8: 4aaa 0062 tstl %a2@(98) 463dc: 6616 bnes 463f4 463de: 7220 moveq #32,%d1 463e0: b280 cmpl %d0,%d1 463e2: 6710 beqs 463f4 <== ALWAYS TAKEN !_Attributes_Is_simple_binary_semaphore( the_semaphore->attribute_set ) ) { _Thread_Enable_dispatch(); 463e4: 4eb9 0004 8666 jsr 48666 <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 463ea: 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; 463ee: 700c moveq #12,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 463f0: 4e5e unlk %fp <== NOT EXECUTED 463f2: 4e75 rts <== NOT EXECUTED !_Attributes_Is_simple_binary_semaphore( the_semaphore->attribute_set ) ) { _Thread_Enable_dispatch(); return RTEMS_RESOURCE_IN_USE; } _CORE_mutex_Flush( 463f4: 4878 0004 pea 4 463f8: 42a7 clrl %sp@- 463fa: 486a 0014 pea %a2@(20) 463fe: 4eb9 0004 6f24 jsr 46f24 <_CORE_mutex_Flush> 46404: 4fef 000c lea %sp@(12),%sp SEMAPHORE_MP_OBJECT_WAS_DELETED, CORE_SEMAPHORE_WAS_DELETED ); } _Objects_Close( &_Semaphore_Information, &the_semaphore->Object ); 46408: 2f0a movel %a2,%sp@- 4640a: 4879 0005 e3b0 pea 5e3b0 <_Semaphore_Information> 46410: 4eb9 0004 794c jsr 4794c <_Objects_Close> */ RTEMS_INLINE_ROUTINE void _Semaphore_Free ( Semaphore_Control *the_semaphore ) { _Objects_Free( &_Semaphore_Information, &the_semaphore->Object ); 46416: 2f0a movel %a2,%sp@- 46418: 4879 0005 e3b0 pea 5e3b0 <_Semaphore_Information> 4641e: 4eb9 0004 7c10 jsr 47c10 <_Objects_Free> 0, /* Not used */ 0 /* Not used */ ); } #endif _Thread_Enable_dispatch(); 46424: 4eb9 0004 8666 jsr 48666 <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; 4642a: 4fef 0010 lea %sp@(16),%sp 4642e: 4280 clrl %d0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 46430: 246e fff8 moveal %fp@(-8),%a2 46434: 4e5e unlk %fp 46436: 4e75 rts &the_semaphore->Core_control.mutex, SEMAPHORE_MP_OBJECT_WAS_DELETED, CORE_MUTEX_WAS_DELETED ); } else { _CORE_semaphore_Flush( 46438: 4878 0002 pea 2 4643c: 42a7 clrl %sp@- 4643e: 486a 0014 pea %a2@(20) 46442: 4eb9 0004 725c jsr 4725c <_CORE_semaphore_Flush> 46448: 4fef 000c lea %sp@(12),%sp SEMAPHORE_MP_OBJECT_WAS_DELETED, CORE_SEMAPHORE_WAS_DELETED ); } _Objects_Close( &_Semaphore_Information, &the_semaphore->Object ); 4644c: 2f0a movel %a2,%sp@- 4644e: 4879 0005 e3b0 pea 5e3b0 <_Semaphore_Information> 46454: 4eb9 0004 794c jsr 4794c <_Objects_Close> 4645a: 2f0a movel %a2,%sp@- 4645c: 4879 0005 e3b0 pea 5e3b0 <_Semaphore_Information> 46462: 4eb9 0004 7c10 jsr 47c10 <_Objects_Free> 0, /* Not used */ 0 /* Not used */ ); } #endif _Thread_Enable_dispatch(); 46468: 4eb9 0004 8666 jsr 48666 <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; 4646e: 4fef 0010 lea %sp@(16),%sp 46472: 4280 clrl %d0 46474: 60ba bras 46430 ... =============================================================================== 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 25f8 pea 625f8 <_Semaphore_Information> 4f77a: 4eb9 0004 9334 jsr 49334 <_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 84dc jsr 484dc <_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 9c26 jsr 49c26 <_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 8814 jsr 48814 <_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 9c26 jsr 49c26 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; 4f7d6: 4280 clrl %d0 <== NOT EXECUTED 4f7d8: 60dc bras 4f7b6 <== NOT EXECUTED ... =============================================================================== 00057d54 : rtems_status_code rtems_semaphore_ident( rtems_name name, uint32_t node, rtems_id *id ) { 57d54: 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 ); 57d58: 2f2e 0010 movel %fp@(16),%sp@- <== NOT EXECUTED 57d5c: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 57d60: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 57d64: 4879 0007 d11c pea 7d11c <_Semaphore_Information> <== NOT EXECUTED 57d6a: 4eb9 0005 b9cc jsr 5b9cc <_Objects_Name_to_id_u32> <== NOT EXECUTED return _Status_Object_name_errors_to_status[ status ]; 57d70: 41f9 0007 6818 lea 76818 <_Status_Object_name_errors_to_status>,%a0<== NOT EXECUTED } 57d76: 4e5e unlk %fp <== NOT EXECUTED 57d78: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED ... =============================================================================== 00046478 : rtems_status_code rtems_semaphore_obtain( rtems_id id, rtems_option option_set, rtems_interval timeout ) { 46478: 4e56 ffec linkw %fp,#-20 4647c: 48d7 001c moveml %d2-%d4,%sp@ Objects_Locations *location, ISR_Level *level ) { return (Semaphore_Control *) _Objects_Get_isr_disable( &_Semaphore_Information, id, location, level ); 46480: 486e fff8 pea %fp@(-8) 46484: 486e fffc pea %fp@(-4) 46488: 242e 0008 movel %fp@(8),%d2 4648c: 2f02 movel %d2,%sp@- 4648e: 4879 0005 e3b0 pea 5e3b0 <_Semaphore_Information> 46494: 262e 000c movel %fp@(12),%d3 46498: 282e 0010 movel %fp@(16),%d4 4649c: 4eb9 0004 7d1c jsr 47d1c <_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 ) { 464a2: 4fef 0010 lea %sp@(16),%sp 464a6: 4aae fffc tstl %fp@(-4) 464aa: 670c beqs 464b8 <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 464ac: 7004 moveq #4,%d0 <== NOT EXECUTED } 464ae: 4cee 001c ffec moveml %fp@(-20),%d2-%d4 <== NOT EXECUTED 464b4: 4e5e unlk %fp <== NOT EXECUTED 464b6: 4e75 rts <== NOT EXECUTED 464b8: 7230 moveq #48,%d1 464ba: 2040 moveal %d0,%a0 464bc: 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) ) { 464c0: 6738 beqs 464fa <== NEVER TAKEN _CORE_mutex_Seize( 464c2: 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; 464c6: 7201 moveq #1,%d1 464c8: c681 andl %d1,%d3 464ca: 2f04 movel %d4,%sp@- 464cc: b781 eorl %d3,%d1 464ce: 2f01 movel %d1,%sp@- 464d0: 2f02 movel %d2,%sp@- 464d2: 4868 0014 pea %a0@(20) 464d6: 4eb9 0004 70ac jsr 470ac <_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 ); 464dc: 2079 0005 e630 moveal 5e630 <_Per_CPU_Information+0xc>,%a0 id, ((_Options_Is_no_wait( option_set )) ? false : true), timeout, level ); return _Semaphore_Translate_core_mutex_return_code( 464e2: 2f28 0034 movel %a0@(52),%sp@- 464e6: 4eb9 0004 6648 jsr 46648 <_Semaphore_Translate_core_mutex_return_code> 464ec: 4fef 0018 lea %sp@(24),%sp break; } return RTEMS_INVALID_ID; } 464f0: 4cee 001c ffec moveml %fp@(-20),%d2-%d4 464f6: 4e5e unlk %fp 464f8: 4e75 rts /* disabled when you get here */ executing = _Thread_Executing; executing->Wait.return_code = CORE_SEMAPHORE_STATUS_SUCCESSFUL; if ( the_semaphore->count != 0 ) { 464fa: 2240 moveal %d0,%a1 <== NOT EXECUTED { Thread_Control *executing; /* disabled when you get here */ executing = _Thread_Executing; 464fc: 2079 0005 e630 moveal 5e630 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED executing->Wait.return_code = CORE_SEMAPHORE_STATUS_SUCCESSFUL; if ( the_semaphore->count != 0 ) { 46502: 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; 46506: 42a8 0034 clrl %a0@(52) <== NOT EXECUTED if ( the_semaphore->count != 0 ) { 4650a: 4a81 tstl %d1 <== NOT EXECUTED 4650c: 662e bnes 4653c <== NOT EXECUTED the_semaphore->count -= 1; _ISR_Enable( *level_p ); return; } if ( !wait ) { 4650e: 0803 0000 btst #0,%d3 <== NOT EXECUTED 46512: 6748 beqs 4655c <== NOT EXECUTED _ISR_Enable( *level_p ); 46514: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED 46518: 46c0 movew %d0,%sr <== NOT EXECUTED executing->Wait.return_code = CORE_SEMAPHORE_STATUS_UNSATISFIED_NOWAIT; 4651a: 7001 moveq #1,%d0 <== NOT EXECUTED 4651c: 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 ); 46520: 2079 0005 e630 moveal 5e630 <_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( 46526: 2f28 0034 movel %a0@(52),%sp@- <== NOT EXECUTED 4652a: 4eb9 0004 665e jsr 4665e <_Semaphore_Translate_core_semaphore_return_code><== NOT EXECUTED 46530: 588f addql #4,%sp <== NOT EXECUTED break; } return RTEMS_INVALID_ID; } 46532: 4cee 001c ffec moveml %fp@(-20),%d2-%d4 <== NOT EXECUTED 46538: 4e5e unlk %fp <== NOT EXECUTED 4653a: 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; 4653c: 5381 subql #1,%d1 <== NOT EXECUTED 4653e: 2341 005c movel %d1,%a1@(92) <== NOT EXECUTED _ISR_Enable( *level_p ); 46542: 202e fff8 movel %fp@(-8),%d0 <== NOT EXECUTED 46546: 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 ); 46548: 2079 0005 e630 moveal 5e630 <_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( 4654e: 2f28 0034 movel %a0@(52),%sp@- <== NOT EXECUTED 46552: 4eb9 0004 665e jsr 4665e <_Semaphore_Translate_core_semaphore_return_code><== NOT EXECUTED 46558: 588f addql #4,%sp <== NOT EXECUTED 4655a: 60d6 bras 46532 <== NOT EXECUTED 4655c: 2239 0005 e46c movel 5e46c <_Thread_Dispatch_disable_level>,%d1<== NOT EXECUTED 46562: 5281 addql #1,%d1 <== NOT EXECUTED 46564: 23c1 0005 e46c movel %d1,5e46c <_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; 4656a: 7201 moveq #1,%d1 <== NOT EXECUTED 4656c: 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; 4656e: 0680 0000 0014 addil #20,%d0 <== NOT EXECUTED 46574: 2341 0044 movel %d1,%a1@(68) <== NOT EXECUTED executing->Wait.id = id; 46578: 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; 4657c: 2140 0044 movel %d0,%a0@(68) <== NOT EXECUTED executing->Wait.id = id; _ISR_Enable( *level_p ); 46580: 222e fff8 movel %fp@(-8),%d1 <== NOT EXECUTED 46584: 46c1 movew %d1,%sr <== NOT EXECUTED _Thread_queue_Enqueue( &the_semaphore->Wait_queue, timeout ); 46586: 4879 0004 8efc pea 48efc <_Thread_queue_Timeout> <== NOT EXECUTED 4658c: 2f04 movel %d4,%sp@- <== NOT EXECUTED 4658e: 2f00 movel %d0,%sp@- <== NOT EXECUTED 46590: 4eb9 0004 8b34 jsr 48b34 <_Thread_queue_Enqueue_with_handler><== NOT EXECUTED _Thread_Enable_dispatch(); 46596: 4eb9 0004 8666 jsr 48666 <_Thread_Enable_dispatch> <== NOT EXECUTED _Thread_Executing->Wait.return_code ); 4659c: 2079 0005 e630 moveal 5e630 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED 465a2: 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( 465a6: 2f28 0034 movel %a0@(52),%sp@- <== NOT EXECUTED 465aa: 4eb9 0004 665e jsr 4665e <_Semaphore_Translate_core_semaphore_return_code><== NOT EXECUTED 465b0: 588f addql #4,%sp <== NOT EXECUTED 465b2: 6000 ff7e braw 46532 <== NOT EXECUTED ... =============================================================================== 000465b8 : #endif rtems_status_code rtems_semaphore_release( rtems_id id ) { 465b8: 4e56 fffc linkw %fp,#-4 465bc: 2f02 movel %d2,%sp@- Objects_Id id, Objects_Locations *location ) { return (Semaphore_Control *) _Objects_Get( &_Semaphore_Information, id, location ); 465be: 486e fffc pea %fp@(-4) 465c2: 242e 0008 movel %fp@(8),%d2 465c6: 2f02 movel %d2,%sp@- 465c8: 4879 0005 e3b0 pea 5e3b0 <_Semaphore_Information> 465ce: 4eb9 0004 7d7c jsr 47d7c <_Objects_Get> Objects_Locations location; CORE_mutex_Status mutex_status; CORE_semaphore_Status semaphore_status; the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) { 465d4: 4fef 000c lea %sp@(12),%sp 465d8: 4aae fffc tstl %fp@(-4) 465dc: 670a beqs 465e8 <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 465de: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 465e2: 7004 moveq #4,%d0 <== NOT EXECUTED } 465e4: 4e5e unlk %fp <== NOT EXECUTED 465e6: 4e75 rts <== NOT EXECUTED 465e8: 7230 moveq #48,%d1 465ea: 2040 moveal %d0,%a0 465ec: 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) ) { 465f0: 662c bnes 4661e <== ALWAYS TAKEN MUTEX_MP_SUPPORT ); _Thread_Enable_dispatch(); return _Semaphore_Translate_core_mutex_return_code( mutex_status ); } else { semaphore_status = _CORE_semaphore_Surrender( 465f2: 42a7 clrl %sp@- <== NOT EXECUTED 465f4: 2040 moveal %d0,%a0 <== NOT EXECUTED 465f6: 2f02 movel %d2,%sp@- <== NOT EXECUTED 465f8: 4868 0014 pea %a0@(20) <== NOT EXECUTED 465fc: 4eb9 0004 72b0 jsr 472b0 <_CORE_semaphore_Surrender> <== NOT EXECUTED 46602: 2400 movel %d0,%d2 <== NOT EXECUTED &the_semaphore->Core_control.semaphore, id, MUTEX_MP_SUPPORT ); _Thread_Enable_dispatch(); 46604: 4eb9 0004 8666 jsr 48666 <_Thread_Enable_dispatch> <== NOT EXECUTED return 4660a: 2f02 movel %d2,%sp@- <== NOT EXECUTED 4660c: 4eb9 0004 665e jsr 4665e <_Semaphore_Translate_core_semaphore_return_code><== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 46612: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED &the_semaphore->Core_control.semaphore, id, MUTEX_MP_SUPPORT ); _Thread_Enable_dispatch(); return 46616: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4661a: 4e5e unlk %fp <== NOT EXECUTED 4661c: 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( 4661e: 42a7 clrl %sp@- 46620: 2f02 movel %d2,%sp@- 46622: 4868 0014 pea %a0@(20) 46626: 4eb9 0004 715c jsr 4715c <_CORE_mutex_Surrender> 4662c: 2400 movel %d0,%d2 &the_semaphore->Core_control.mutex, id, MUTEX_MP_SUPPORT ); _Thread_Enable_dispatch(); 4662e: 4eb9 0004 8666 jsr 48666 <_Thread_Enable_dispatch> return _Semaphore_Translate_core_mutex_return_code( mutex_status ); 46634: 2f02 movel %d2,%sp@- 46636: 4eb9 0004 6648 jsr 46648 <_Semaphore_Translate_core_mutex_return_code> case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4663c: 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 ); 46640: 4fef 0010 lea %sp@(16),%sp case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 46644: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00046b40 : void rtems_shutdown_executive( uint32_t result ) { if ( _System_state_Is_up( _System_state_Get() ) ) { 46b40: 7003 moveq #3,%d0 */ void rtems_shutdown_executive( uint32_t result ) { 46b42: 4e56 0000 linkw %fp,#0 if ( _System_state_Is_up( _System_state_Get() ) ) { 46b46: b0b9 0005 e5d8 cmpl 5e5d8 <_System_state_Current>,%d0 46b4c: 6710 beqs 46b5e _System_state_Set( SYSTEM_STATE_SHUTDOWN ); _Thread_Stop_multitasking(); } _Internal_error_Occurred( 46b4e: 4878 0014 pea 14 46b52: 4878 0001 pea 1 46b56: 42a7 clrl %sp@- 46b58: 4eb9 0004 7800 jsr 47800 <_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 ); 46b5e: 4879 0005 e438 pea 5e438 <_Thread_BSP_context> 46b64: 103c 0004 moveb #4,%d0 46b68: 23c0 0005 e5d8 movel %d0,5e5d8 <_System_state_Current> 46b6e: 4eb9 0004 9afa jsr 49afa <_CPU_Context_Restart_self> 46b74: 588f addql #4,%sp <== NOT EXECUTED 46b76: 4878 0014 pea 14 <== NOT EXECUTED 46b7a: 4878 0001 pea 1 <== NOT EXECUTED 46b7e: 42a7 clrl %sp@- <== NOT EXECUTED 46b80: 4eb9 0004 7800 jsr 47800 <_Internal_error_Occurred> <== NOT EXECUTED ... =============================================================================== 00047728 : rtems_status_code rtems_signal_catch( rtems_asr_entry asr_handler, rtems_mode mode_set ) { 47728: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 4772c: 2239 0005 fbf4 movel 5fbf4 <_Thread_Dispatch_disable_level>,%d1<== NOT EXECUTED 47732: 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 ]; 47734: 2079 0005 fdb8 moveal 5fdb8 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED rtems_status_code rtems_signal_catch( rtems_asr_entry asr_handler, rtems_mode mode_set ) { 4773a: 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 ]; 4773e: 2068 0108 moveal %a0@(264),%a0 <== NOT EXECUTED 47742: 23c1 0005 fbf4 movel %d1,5fbf4 <_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 ) ) { 47748: 4a80 tstl %d0 <== NOT EXECUTED 4774a: 6716 beqs 47762 <== NOT EXECUTED asr->mode_set = mode_set; asr->handler = asr_handler; 4774c: 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; 47750: 216e 000c 000e movel %fp@(12),%a0@(14) <== NOT EXECUTED asr->handler = asr_handler; } else _ASR_Initialize( asr ); _Thread_Enable_dispatch(); 47756: 4eb9 0004 9a72 jsr 49a72 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 4775c: 4280 clrl %d0 <== NOT EXECUTED 4775e: 4e5e unlk %fp <== NOT EXECUTED 47760: 4e75 rts <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _ASR_Initialize ( ASR_Information *information ) { information->is_enabled = false; information->handler = NULL; 47762: 42a8 000a clrl %a0@(10) <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _ASR_Initialize ( ASR_Information *information ) { information->is_enabled = false; 47766: 4200 clrb %d0 <== NOT EXECUTED information->handler = NULL; information->mode_set = RTEMS_DEFAULT_MODES; 47768: 42a8 000e clrl %a0@(14) <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _ASR_Initialize ( ASR_Information *information ) { information->is_enabled = false; 4776c: 1140 0008 moveb %d0,%a0@(8) <== NOT EXECUTED information->handler = NULL; information->mode_set = RTEMS_DEFAULT_MODES; information->signals_posted = 0; 47770: 42a8 0012 clrl %a0@(18) <== NOT EXECUTED information->signals_pending = 0; 47774: 42a8 0016 clrl %a0@(22) <== NOT EXECUTED information->nest_level = 0; 47778: 42a8 001a clrl %a0@(26) <== NOT EXECUTED asr->mode_set = mode_set; asr->handler = asr_handler; } else _ASR_Initialize( asr ); _Thread_Enable_dispatch(); 4777c: 4eb9 0004 9a72 jsr 49a72 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 47782: 4280 clrl %d0 <== NOT EXECUTED 47784: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00057f7c : rtems_status_code rtems_signal_send( rtems_id id, rtems_signal_set signal_set ) { 57f7c: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 57f80: 2f03 movel %d3,%sp@- <== NOT EXECUTED 57f82: 2f02 movel %d2,%sp@- <== NOT EXECUTED 57f84: 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 ) 57f88: 660e bnes 57f98 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 57f8a: 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; 57f8e: 700a moveq #10,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 57f90: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED 57f94: 4e5e unlk %fp <== NOT EXECUTED 57f96: 4e75 rts <== NOT EXECUTED ASR_Information *asr; if ( !signal_set ) return RTEMS_INVALID_NUMBER; the_thread = _Thread_Get( id, &location ); 57f98: 486e fffc pea %fp@(-4) <== NOT EXECUTED 57f9c: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 57fa0: 4eb9 0005 c150 jsr 5c150 <_Thread_Get> <== NOT EXECUTED switch ( location ) { 57fa6: 508f addql #8,%sp <== NOT EXECUTED 57fa8: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 57fac: 670e beqs 57fbc <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 57fae: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 57fb2: 7004 moveq #4,%d0 <== NOT EXECUTED } 57fb4: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED 57fb8: 4e5e unlk %fp <== NOT EXECUTED 57fba: 4e75 rts <== NOT EXECUTED the_thread = _Thread_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; 57fbc: 2240 moveal %d0,%a1 <== NOT EXECUTED 57fbe: 2069 0108 moveal %a1@(264),%a0 <== NOT EXECUTED asr = &api->Signal; if ( ! _ASR_Is_null_handler( asr->handler ) ) { 57fc2: 4aa8 000a tstl %a0@(10) <== NOT EXECUTED 57fc6: 676a beqs 58032 <== NOT EXECUTED if ( asr->is_enabled ) { 57fc8: 4a28 0008 tstb %a0@(8) <== NOT EXECUTED 57fcc: 6736 beqs 58004 <== NOT EXECUTED rtems_signal_set *signal_set ) { ISR_Level _level; _ISR_Disable( _level ); 57fce: 223c 0000 0700 movel #1792,%d1 <== NOT EXECUTED 57fd4: 40c3 movew %sr,%d3 <== NOT EXECUTED 57fd6: 8283 orl %d3,%d1 <== NOT EXECUTED 57fd8: 46c1 movew %d1,%sr <== NOT EXECUTED *signal_set |= signals; 57fda: 85a8 0012 orl %d2,%a0@(18) <== NOT EXECUTED _ISR_Enable( _level ); 57fde: 46c3 movew %d3,%sr <== NOT EXECUTED _ASR_Post_signals( signal_set, &asr->signals_posted ); if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) ) 57fe0: 4ab9 0007 d3a0 tstl 7d3a0 <_Per_CPU_Information+0x8> <== NOT EXECUTED 57fe6: 6708 beqs 57ff0 <== NOT EXECUTED 57fe8: b0b9 0007 d3a4 cmpl 7d3a4 <_Per_CPU_Information+0xc>,%d0 <== NOT EXECUTED 57fee: 6730 beqs 58020 <== NOT EXECUTED _Thread_Dispatch_necessary = true; } else { _ASR_Post_signals( signal_set, &asr->signals_pending ); } _Thread_Enable_dispatch(); 57ff0: 4eb9 0005 c12a jsr 5c12a <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; 57ff6: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 57ff8: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 57ffc: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED 58000: 4e5e unlk %fp <== NOT EXECUTED 58002: 4e75 rts <== NOT EXECUTED rtems_signal_set *signal_set ) { ISR_Level _level; _ISR_Disable( _level ); 58004: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED 5800a: 40c1 movew %sr,%d1 <== NOT EXECUTED 5800c: 8081 orl %d1,%d0 <== NOT EXECUTED 5800e: 46c0 movew %d0,%sr <== NOT EXECUTED *signal_set |= signals; 58010: 85a8 0016 orl %d2,%a0@(22) <== NOT EXECUTED _ISR_Enable( _level ); 58014: 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(); 58016: 4eb9 0005 c12a jsr 5c12a <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; 5801c: 4280 clrl %d0 <== NOT EXECUTED 5801e: 60d8 bras 57ff8 <== 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; 58020: 7001 moveq #1,%d0 <== NOT EXECUTED 58022: 13c0 0007 d3b0 moveb %d0,7d3b0 <_Per_CPU_Information+0x18> <== NOT EXECUTED } else { _ASR_Post_signals( signal_set, &asr->signals_pending ); } _Thread_Enable_dispatch(); 58028: 4eb9 0005 c12a jsr 5c12a <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; 5802e: 4280 clrl %d0 <== NOT EXECUTED 58030: 60c6 bras 57ff8 <== NOT EXECUTED } _Thread_Enable_dispatch(); 58032: 4eb9 0005 c12a jsr 5c12a <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 58038: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED } _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); return RTEMS_NOT_DEFINED; 5803c: 700b moveq #11,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 5803e: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED 58042: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 00046674 : size_t stack_size, rtems_mode initial_modes, rtems_attribute attribute_set, rtems_id *id ) { 46674: 4e56 ffe8 linkw %fp,#-24 46678: 48d7 0c3c moveml %d2-%d5/%a2-%a3,%sp@ 4667c: 242e 0008 movel %fp@(8),%d2 46680: 282e 000c movel %fp@(12),%d4 46684: 262e 0014 movel %fp@(20),%d3 46688: 2a2e 0018 movel %fp@(24),%d5 4668c: 246e 001c moveal %fp@(28),%a2 Priority_Control core_priority; RTEMS_API_Control *api; ASR_Information *asr; if ( !id ) 46690: 4a8a tstl %a2 46692: 6700 0118 beqw 467ac return RTEMS_INVALID_ADDRESS; if ( !rtems_is_name_valid( name ) ) 46696: 4a82 tstl %d2 46698: 6700 00bc beqw 46756 /* * Validate the RTEMS API priority and convert it to the core priority range. */ if ( !_Attributes_Is_system_task( the_attribute_set ) ) { 4669c: 4a45 tstw %d5 4669e: 6d14 blts 466b4 <== NEVER TAKEN */ RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid ( rtems_task_priority the_priority ) { return ( ( the_priority >= RTEMS_MINIMUM_PRIORITY ) && 466a0: 4a84 tstl %d4 466a2: 6700 00a6 beqw 4674a ( the_priority <= RTEMS_MAXIMUM_PRIORITY ) ); 466a6: 4280 clrl %d0 466a8: 1039 0005 cc42 moveb 5cc42 ,%d0 */ RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid ( rtems_task_priority the_priority ) { return ( ( the_priority >= RTEMS_MINIMUM_PRIORITY ) && 466ae: b084 cmpl %d4,%d0 466b0: 6500 0098 bcsw 4674a */ /* * Lock the allocator mutex for protection */ _RTEMS_Lock_allocator(); 466b4: 2f39 0005 e50e movel 5e50e <_RTEMS_Allocator_Mutex>,%sp@- 466ba: 4eb9 0004 6df4 jsr 46df4 <_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 ); 466c0: 4879 0005 e3e8 pea 5e3e8 <_RTEMS_tasks_Information> 466c6: 4eb9 0004 78bc jsr 478bc <_Objects_Allocate> * the event of an error. */ the_thread = _RTEMS_tasks_Allocate(); if ( !the_thread ) { 466cc: 508f addql #8,%sp 466ce: 2640 moveal %d0,%a3 466d0: 4a80 tstl %d0 466d2: 6700 00be beqw 46792 /* * Initialize the core thread for this task. */ status = _Thread_Initialize( 466d6: 7007 moveq #7,%d0 466d8: 2f02 movel %d2,%sp@- 466da: c083 andl %d3,%d0 466dc: 0803 0009 btst #9,%d3 466e0: 56c1 sne %d1 466e2: 2f00 movel %d0,%sp@- 466e4: 0803 0008 btst #8,%d3 466e8: 57c0 seq %d0 466ea: 42a7 clrl %sp@- 466ec: 49c1 extbl %d1 466ee: 4481 negl %d1 466f0: 49c0 extbl %d0 466f2: 4480 negl %d0 466f4: 2f01 movel %d1,%sp@- 466f6: 2f00 movel %d0,%sp@- 466f8: 7001 moveq #1,%d0 466fa: 2f04 movel %d4,%sp@- 466fc: c085 andl %d5,%d0 466fe: 2f00 movel %d0,%sp@- 46700: 2f2e 0010 movel %fp@(16),%sp@- 46704: 42a7 clrl %sp@- 46706: 2f0b movel %a3,%sp@- 46708: 4879 0005 e3e8 pea 5e3e8 <_RTEMS_tasks_Information> 4670e: 4eb9 0004 8728 jsr 48728 <_Thread_Initialize> NULL, /* no budget algorithm callout */ _Modes_Get_interrupt_level(initial_modes), (Objects_Name) name ); if ( !status ) { 46714: 4fef 002c lea %sp@(44),%sp 46718: 4a00 tstb %d0 4671a: 6746 beqs 46762 _RTEMS_Unlock_allocator(); return RTEMS_UNSATISFIED; } api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; asr = &api->Signal; 4671c: 206b 0108 moveal %a3@(264),%a0 * id - thread id * RTEMS_SUCCESSFUL - if successful * error code - if unsuccessful */ rtems_status_code rtems_task_create( 46720: 0803 000a btst #10,%d3 46724: 57c0 seq %d0 46726: 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; 46728: 1140 0008 moveb %d0,%a0@(8) *id = the_thread->Object.id; 4672c: 24ab 0008 movel %a3@(8),%a2@ ); } #endif _RTEMS_Unlock_allocator(); 46730: 2f39 0005 e50e movel 5e50e <_RTEMS_Allocator_Mutex>,%sp@- 46736: 4eb9 0004 6e54 jsr 46e54 <_API_Mutex_Unlock> return RTEMS_SUCCESSFUL; 4673c: 588f addql #4,%sp 4673e: 4280 clrl %d0 } 46740: 4cee 0c3c ffe8 moveml %fp@(-24),%d2-%d5/%a2-%a3 46746: 4e5e unlk %fp 46748: 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; 4674a: 7013 moveq #19,%d0 <== NOT EXECUTED } #endif _RTEMS_Unlock_allocator(); return RTEMS_SUCCESSFUL; } 4674c: 4cee 0c3c ffe8 moveml %fp@(-24),%d2-%d5/%a2-%a3 <== NOT EXECUTED 46752: 4e5e unlk %fp <== NOT EXECUTED 46754: 4e75 rts <== NOT EXECUTED if ( !id ) return RTEMS_INVALID_ADDRESS; if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; 46756: 7003 moveq #3,%d0 <== NOT EXECUTED } #endif _RTEMS_Unlock_allocator(); return RTEMS_SUCCESSFUL; } 46758: 4cee 0c3c ffe8 moveml %fp@(-24),%d2-%d5/%a2-%a3 <== NOT EXECUTED 4675e: 4e5e unlk %fp <== NOT EXECUTED 46760: 4e75 rts <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _RTEMS_tasks_Free ( Thread_Control *the_task ) { _Objects_Free( 46762: 2f2b 0008 movel %a3@(8),%sp@- 46766: 4eb9 0004 7c94 jsr 47c94 <_Objects_Get_information_id> 4676c: 2f0b movel %a3,%sp@- 4676e: 2f00 movel %d0,%sp@- 46770: 4eb9 0004 7c10 jsr 47c10 <_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(); 46776: 2f39 0005 e50e movel 5e50e <_RTEMS_Allocator_Mutex>,%sp@- 4677c: 4eb9 0004 6e54 jsr 46e54 <_API_Mutex_Unlock> return RTEMS_UNSATISFIED; 46782: 4fef 0010 lea %sp@(16),%sp 46786: 700d moveq #13,%d0 } #endif _RTEMS_Unlock_allocator(); return RTEMS_SUCCESSFUL; } 46788: 4cee 0c3c ffe8 moveml %fp@(-24),%d2-%d5/%a2-%a3 4678e: 4e5e unlk %fp 46790: 4e75 rts */ the_thread = _RTEMS_tasks_Allocate(); if ( !the_thread ) { _RTEMS_Unlock_allocator(); 46792: 2f39 0005 e50e movel 5e50e <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 46798: 4eb9 0004 6e54 jsr 46e54 <_API_Mutex_Unlock> <== NOT EXECUTED return RTEMS_TOO_MANY; 4679e: 588f addql #4,%sp <== NOT EXECUTED 467a0: 7005 moveq #5,%d0 <== NOT EXECUTED } #endif _RTEMS_Unlock_allocator(); return RTEMS_SUCCESSFUL; } 467a2: 4cee 0c3c ffe8 moveml %fp@(-24),%d2-%d5/%a2-%a3 <== NOT EXECUTED 467a8: 4e5e unlk %fp <== NOT EXECUTED 467aa: 4e75 rts <== NOT EXECUTED RTEMS_API_Control *api; ASR_Information *asr; if ( !id ) return RTEMS_INVALID_ADDRESS; 467ac: 7009 moveq #9,%d0 <== NOT EXECUTED } #endif _RTEMS_Unlock_allocator(); return RTEMS_SUCCESSFUL; } 467ae: 4cee 0c3c ffe8 moveml %fp@(-24),%d2-%d5/%a2-%a3 <== NOT EXECUTED 467b4: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 000467b8 : */ rtems_status_code rtems_task_delete( rtems_id id ) { 467b8: 4e56 fffc linkw %fp,#-4 467bc: 2f0b movel %a3,%sp@- 467be: 2f0a movel %a2,%sp@- register Thread_Control *the_thread; Objects_Locations location; Objects_Information *the_information; _RTEMS_Lock_allocator(); 467c0: 2f39 0005 e50e movel 5e50e <_RTEMS_Allocator_Mutex>,%sp@- 467c6: 4eb9 0004 6df4 jsr 46df4 <_API_Mutex_Lock> the_thread = _Thread_Get( id, &location ); 467cc: 486e fffc pea %fp@(-4) 467d0: 2f2e 0008 movel %fp@(8),%sp@- 467d4: 4eb9 0004 868c jsr 4868c <_Thread_Get> switch ( location ) { 467da: 4fef 000c lea %sp@(12),%sp Objects_Locations location; Objects_Information *the_information; _RTEMS_Lock_allocator(); the_thread = _Thread_Get( id, &location ); 467de: 2440 moveal %d0,%a2 switch ( location ) { 467e0: 4aae fffc tstl %fp@(-4) 467e4: 664a bnes 46830 <== NEVER TAKEN case OBJECTS_LOCAL: the_information = _Objects_Get_information_id( the_thread->Object.id ); 467e6: 2f2a 0008 movel %a2@(8),%sp@- 467ea: 47f9 0004 7c94 lea 47c94 <_Objects_Get_information_id>,%a3 467f0: 4e93 jsr %a3@ 0 /* Not used */ ); } #endif _Thread_Close( the_information, the_thread ); 467f2: 2f0a movel %a2,%sp@- 467f4: 2f00 movel %d0,%sp@- 467f6: 4eb9 0004 8334 jsr 48334 <_Thread_Close> 467fc: 2f2a 0008 movel %a2@(8),%sp@- 46800: 4e93 jsr %a3@ 46802: 2f0a movel %a2,%sp@- 46804: 2f00 movel %d0,%sp@- 46806: 4eb9 0004 7c10 jsr 47c10 <_Objects_Free> _RTEMS_tasks_Free( the_thread ); _RTEMS_Unlock_allocator(); 4680c: 2f39 0005 e50e movel 5e50e <_RTEMS_Allocator_Mutex>,%sp@- 46812: 4eb9 0004 6e54 jsr 46e54 <_API_Mutex_Unlock> _Thread_Enable_dispatch(); 46818: 4eb9 0004 8666 jsr 48666 <_Thread_Enable_dispatch> break; } _RTEMS_Unlock_allocator(); return RTEMS_INVALID_ID; } 4681e: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED _RTEMS_tasks_Free( the_thread ); _RTEMS_Unlock_allocator(); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 46822: 4fef 001c lea %sp@(28),%sp <== NOT EXECUTED 46826: 4280 clrl %d0 <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); return RTEMS_INVALID_ID; } 46828: 266e fff8 moveal %fp@(-8),%a3 <== NOT EXECUTED 4682c: 4e5e unlk %fp <== NOT EXECUTED 4682e: 4e75 rts <== NOT EXECUTED case OBJECTS_ERROR: break; } _RTEMS_Unlock_allocator(); 46830: 2f39 0005 e50e movel 5e50e <_RTEMS_Allocator_Mutex>,%sp@- <== NOT EXECUTED 46836: 4eb9 0004 6e54 jsr 46e54 <_API_Mutex_Unlock> <== NOT EXECUTED return RTEMS_INVALID_ID; } 4683c: 246e fff4 moveal %fp@(-12),%a2 <== NOT EXECUTED case OBJECTS_ERROR: break; } _RTEMS_Unlock_allocator(); return RTEMS_INVALID_ID; 46840: 588f addql #4,%sp <== NOT EXECUTED 46842: 7004 moveq #4,%d0 <== NOT EXECUTED } 46844: 266e fff8 moveal %fp@(-8),%a3 <== NOT EXECUTED 46848: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00048c94 : rtems_status_code rtems_task_get_note( rtems_id id, uint32_t notepad, uint32_t *note ) { 48c94: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 48c98: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED 48c9c: 2f0a movel %a2,%sp@- <== NOT EXECUTED 48c9e: 246e 0010 moveal %fp@(16),%a2 <== NOT EXECUTED 48ca2: 2f02 movel %d2,%sp@- <== NOT EXECUTED 48ca4: 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() ) 48ca8: 4a39 0006 0154 tstb 60154 <== NOT EXECUTED 48cae: 6778 beqs 48d28 <== NOT EXECUTED return RTEMS_NOT_CONFIGURED; if ( !note ) 48cb0: 4a8a tstl %a2 <== NOT EXECUTED 48cb2: 6700 0090 beqw 48d44 <== 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 ) 48cb6: 720f moveq #15,%d1 <== NOT EXECUTED 48cb8: b282 cmpl %d2,%d1 <== NOT EXECUTED 48cba: 6542 bcss 48cfe <== NOT EXECUTED /* * Optimize the most likely case to avoid the Thread_Dispatch. */ if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) || 48cbc: 4a80 tstl %d0 <== NOT EXECUTED 48cbe: 674c beqs 48d0c <== NOT EXECUTED _Objects_Are_ids_equal( id, _Thread_Executing->Object.id ) ) { 48cc0: 2079 0006 1e18 moveal 61e18 <_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 ) || 48cc6: b0a8 0008 cmpl %a0@(8),%d0 <== NOT EXECUTED 48cca: 6746 beqs 48d12 <== NOT EXECUTED api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ]; *note = api->Notepads[ notepad ]; return RTEMS_SUCCESSFUL; } the_thread = _Thread_Get( id, &location ); 48ccc: 486e fffc pea %fp@(-4) <== NOT EXECUTED 48cd0: 2f00 movel %d0,%sp@- <== NOT EXECUTED 48cd2: 4eb9 0004 ae38 jsr 4ae38 <_Thread_Get> <== NOT EXECUTED switch ( location ) { 48cd8: 508f addql #8,%sp <== NOT EXECUTED 48cda: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 48cde: 6656 bnes 48d36 <== NOT EXECUTED case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; *note = api->Notepads[ notepad ]; 48ce0: 2240 moveal %d0,%a1 <== NOT EXECUTED 48ce2: 2069 0108 moveal %a1@(264),%a0 <== NOT EXECUTED 48ce6: 24b0 2c1e movel %a0@(0000001e,%d2:l:4),%a2@ <== NOT EXECUTED _Thread_Enable_dispatch(); 48cea: 4eb9 0004 ae12 jsr 4ae12 <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 48cf0: 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; 48cf4: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 48cf6: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 48cfa: 4e5e unlk %fp <== NOT EXECUTED 48cfc: 4e75 rts <== NOT EXECUTED 48cfe: 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; 48d02: 700a moveq #10,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 48d04: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 48d08: 4e5e unlk %fp <== NOT EXECUTED 48d0a: 4e75 rts <== NOT EXECUTED /* * Optimize the most likely case to avoid the Thread_Dispatch. */ if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) || 48d0c: 2079 0006 1e18 moveal 61e18 <_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 ]; 48d12: 2068 0108 moveal %a0@(264),%a0 <== NOT EXECUTED return RTEMS_SUCCESSFUL; 48d16: 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 ]; 48d18: 24b0 2c1e movel %a0@(0000001e,%d2:l:4),%a2@ <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 48d1c: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED 48d20: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 48d24: 4e5e unlk %fp <== NOT EXECUTED 48d26: 4e75 rts <== NOT EXECUTED 48d28: 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; 48d2c: 7016 moveq #22,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 48d2e: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 48d32: 4e5e unlk %fp <== NOT EXECUTED 48d34: 4e75 rts <== NOT EXECUTED 48d36: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 48d3a: 7004 moveq #4,%d0 <== NOT EXECUTED } 48d3c: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 48d40: 4e5e unlk %fp <== NOT EXECUTED 48d42: 4e75 rts <== NOT EXECUTED 48d44: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED if ( !rtems_configuration_get_notepads_enabled() ) return RTEMS_NOT_CONFIGURED; if ( !note ) return RTEMS_INVALID_ADDRESS; 48d48: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 48d4a: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 48d4e: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 0004684c : rtems_status_code rtems_task_ident( rtems_name name, uint32_t node, rtems_id *id ) { 4684c: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED 46850: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED 46854: 206e 0010 moveal %fp@(16),%a0 <== NOT EXECUTED Objects_Name_or_id_lookup_errors status; if ( !id ) 46858: 4a88 tstl %a0 <== NOT EXECUTED 4685a: 6738 beqs 46894 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( name == OBJECTS_ID_OF_SELF ) { 4685c: 4a80 tstl %d0 <== NOT EXECUTED 4685e: 660e bnes 4686e <== NOT EXECUTED *id = _Thread_Executing->Object.id; 46860: 2279 0005 e630 moveal 5e630 <_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 ]; } 46866: 4e5e unlk %fp <== NOT EXECUTED if ( !id ) return RTEMS_INVALID_ADDRESS; if ( name == OBJECTS_ID_OF_SELF ) { *id = _Thread_Executing->Object.id; 46868: 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 ]; } 4686c: 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 ); 4686e: 2f08 movel %a0,%sp@- <== NOT EXECUTED 46870: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 46874: 2f00 movel %d0,%sp@- <== NOT EXECUTED 46876: 4879 0005 e3e8 pea 5e3e8 <_RTEMS_tasks_Information> <== NOT EXECUTED 4687c: 4eb9 0004 7f08 jsr 47f08 <_Objects_Name_to_id_u32> <== NOT EXECUTED return _Status_Object_name_errors_to_status[ status ]; 46882: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 46886: 41f9 0005 bf16 lea 5bf16 <_Status_Object_name_errors_to_status>,%a0<== NOT EXECUTED } 4688c: 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 ]; 4688e: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED } 46892: 4e75 rts <== NOT EXECUTED ) { Objects_Name_or_id_lookup_errors status; if ( !id ) return RTEMS_INVALID_ADDRESS; 46894: 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 ]; } 46896: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 000583b8 : */ rtems_status_code rtems_task_is_suspended( rtems_id id ) { 583b8: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); 583bc: 486e fffc pea %fp@(-4) <== NOT EXECUTED 583c0: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 583c4: 4eb9 0005 c150 jsr 5c150 <_Thread_Get> <== NOT EXECUTED switch ( location ) { 583ca: 508f addql #8,%sp <== NOT EXECUTED 583cc: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 583d0: 6706 beqs 583d8 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 583d2: 7004 moveq #4,%d0 <== NOT EXECUTED } 583d4: 4e5e unlk %fp <== NOT EXECUTED 583d6: 4e75 rts <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _States_Is_suspended ( States_Control the_states ) { return (the_states & STATES_SUSPENDED); 583d8: 7202 moveq #2,%d1 <== NOT EXECUTED 583da: 2040 moveal %d0,%a0 <== NOT EXECUTED 583dc: 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 ) ) { 583e0: 670c beqs 583ee <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 583e2: 4eb9 0005 c12a jsr 5c12a <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_ALREADY_SUSPENDED; 583e8: 700f moveq #15,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 583ea: 4e5e unlk %fp <== NOT EXECUTED 583ec: 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(); 583ee: 4eb9 0005 c12a jsr 5c12a <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; 583f4: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 583f6: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 0004d36c : rtems_status_code rtems_task_mode( rtems_mode mode_set, rtems_mode mask, rtems_mode *previous_mode_set ) { 4d36c: 4e56 ffe4 linkw %fp,#-28 4d370: 48d7 1c3c moveml %d2-%d5/%a2-%a4,%sp@ 4d374: 2a2e 0008 movel %fp@(8),%d5 4d378: 242e 000c movel %fp@(12),%d2 4d37c: 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 ) 4d380: 4a8c tstl %a4 4d382: 6700 015a beqw 4d4de return RTEMS_INVALID_ADDRESS; executing = _Thread_Executing; 4d386: 2479 0005 e630 moveal 5e630 <_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; 4d38c: 4a2a 0074 tstb %a2@(116) 4d390: 57c3 seq %d3 if ( !previous_mode_set ) return RTEMS_INVALID_ADDRESS; executing = _Thread_Executing; api = executing->API_Extensions[ THREAD_API_RTEMS ]; 4d392: 266a 0108 moveal %a2@(264),%a3 asr = &api->Signal; old_mode = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT; 4d396: 49c3 extbl %d3 4d398: 0283 0000 0100 andil #256,%d3 if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE ) 4d39e: 4aaa 007a tstl %a2@(122) 4d3a2: 6600 00cc bnew 4d470 old_mode |= RTEMS_NO_TIMESLICE; else old_mode |= RTEMS_TIMESLICE; old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR; 4d3a6: 4a2b 0008 tstb %a3@(8) 4d3aa: 57c4 seq %d4 old_mode |= _ISR_Get_level(); 4d3ac: 4eb9 0004 9ba0 jsr 49ba0 <_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; 4d3b2: 49c4 extbl %d4 4d3b4: 0284 0000 0400 andil #1024,%d4 4d3ba: 8084 orl %d4,%d0 old_mode |= _ISR_Get_level(); 4d3bc: 8083 orl %d3,%d0 4d3be: 2880 movel %d0,%a4@ *previous_mode_set = old_mode; /* * These are generic thread scheduling characteristics. */ if ( mask & RTEMS_PREEMPT_MASK ) 4d3c0: 0802 0008 btst #8,%d2 4d3c4: 670c beqs 4d3d2 <== NEVER TAKEN executing->is_preemptible = _Modes_Is_preempt(mode_set) ? true : false; 4d3c6: 0805 0008 btst #8,%d5 4d3ca: 57c0 seq %d0 4d3cc: 4480 negl %d0 4d3ce: 1540 0074 moveb %d0,%a2@(116) if ( mask & RTEMS_TIMESLICE_MASK ) { 4d3d2: 0802 0009 btst #9,%d2 4d3d6: 6718 beqs 4d3f0 if ( _Modes_Is_timeslice(mode_set) ) { 4d3d8: 0805 0009 btst #9,%d5 4d3dc: 6700 00ee beqw 4d4cc executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE; 4d3e0: 7001 moveq #1,%d0 <== NOT EXECUTED executing->cpu_time_budget = _Thread_Ticks_per_timeslice; 4d3e2: 41f9 0005 e424 lea 5e424 <_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; 4d3e8: 2540 007a movel %d0,%a2@(122) <== NOT EXECUTED executing->cpu_time_budget = _Thread_Ticks_per_timeslice; 4d3ec: 2550 0076 movel %a0@,%a2@(118) <== NOT EXECUTED } /* * Set the new interrupt level */ if ( mask & RTEMS_INTERRUPT_MASK ) 4d3f0: 7007 moveq #7,%d0 4d3f2: c082 andl %d2,%d0 4d3f4: 6712 beqs 4d408 <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE void _Modes_Set_interrupt_level ( Modes_Control mode_set ) { _ISR_Set_level( _Modes_Get_interrupt_level( mode_set ) ); 4d3f6: 40c0 movew %sr,%d0 */ RTEMS_INLINE_ROUTINE ISR_Level _Modes_Get_interrupt_level ( Modes_Control mode_set ) { return ( mode_set & RTEMS_INTERRUPT_MASK ); 4d3f8: 7207 moveq #7,%d1 4d3fa: 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 ) ); 4d3fc: 0280 0000 f8ff andil #63743,%d0 4d402: e189 lsll #8,%d1 4d404: 8081 orl %d1,%d0 4d406: 46c0 movew %d0,%sr * This is specific to the RTEMS API */ is_asr_enabled = false; needs_asr_dispatching = false; if ( mask & RTEMS_ASR_MASK ) { 4d408: 0802 000a btst #10,%d2 4d40c: 6754 beqs 4d462 is_asr_enabled = _Modes_Is_asr_disabled( mode_set ) ? false : true; if ( is_asr_enabled != asr->is_enabled ) { 4d40e: 4282 clrl %d2 4d410: 142b 0008 moveb %a3@(8),%d2 4d414: 4280 clrl %d0 * Output: * *previous_mode_set - previous mode set * always return RTEMS_SUCCESSFUL; */ rtems_status_code rtems_task_mode( 4d416: 0805 000a btst #10,%d5 4d41a: 57c1 seq %d1 4d41c: 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 ) { 4d41e: 1001 moveb %d1,%d0 4d420: b082 cmpl %d2,%d0 4d422: 673e beqs 4d462 <== ALWAYS TAKEN ) { rtems_signal_set _signals; ISR_Level _level; _ISR_Disable( _level ); 4d424: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED asr->is_enabled = is_asr_enabled; 4d42a: 1741 0008 moveb %d1,%a3@(8) <== NOT EXECUTED 4d42e: 40c1 movew %sr,%d1 <== NOT EXECUTED 4d430: 8081 orl %d1,%d0 <== NOT EXECUTED 4d432: 46c0 movew %d0,%sr <== NOT EXECUTED _signals = information->signals_pending; 4d434: 202b 0016 movel %a3@(22),%d0 <== NOT EXECUTED information->signals_pending = information->signals_posted; 4d438: 276b 0012 0016 movel %a3@(18),%a3@(22) <== NOT EXECUTED information->signals_posted = _signals; 4d43e: 2740 0012 movel %d0,%a3@(18) <== NOT EXECUTED _ISR_Enable( _level ); 4d442: 46c1 movew %d1,%sr <== NOT EXECUTED /* * This is specific to the RTEMS API */ is_asr_enabled = false; needs_asr_dispatching = false; 4d444: 4aab 0012 tstl %a3@(18) <== NOT EXECUTED 4d448: 56c0 sne %d0 <== NOT EXECUTED needs_asr_dispatching = true; } } } if ( _System_state_Is_up( _System_state_Get() ) ) { 4d44a: 7203 moveq #3,%d1 <== NOT EXECUTED /* * This is specific to the RTEMS API */ is_asr_enabled = false; needs_asr_dispatching = false; 4d44c: 4480 negl %d0 <== NOT EXECUTED needs_asr_dispatching = true; } } } if ( _System_state_Is_up( _System_state_Get() ) ) { 4d44e: b2b9 0005 e5d8 cmpl 5e5d8 <_System_state_Current>,%d1 <== NOT EXECUTED 4d454: 6744 beqs 4d49a <== NOT EXECUTED if (_Thread_Evaluate_is_dispatch_needed( needs_asr_dispatching ) ) _Thread_Dispatch(); } return RTEMS_SUCCESSFUL; 4d456: 4280 clrl %d0 } 4d458: 4cee 1c3c ffe4 moveml %fp@(-28),%d2-%d5/%a2-%a4 4d45e: 4e5e unlk %fp 4d460: 4e75 rts needs_asr_dispatching = true; } } } if ( _System_state_Is_up( _System_state_Get() ) ) { 4d462: 7203 moveq #3,%d1 /* * This is specific to the RTEMS API */ is_asr_enabled = false; needs_asr_dispatching = false; 4d464: 4200 clrb %d0 needs_asr_dispatching = true; } } } if ( _System_state_Is_up( _System_state_Get() ) ) { 4d466: b2b9 0005 e5d8 cmpl 5e5d8 <_System_state_Current>,%d1 4d46c: 66e8 bnes 4d456 <== NEVER TAKEN 4d46e: 602a bras 4d49a 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; 4d470: 4a2b 0008 tstb %a3@(8) <== NOT EXECUTED 4d474: 57c4 seq %d4 <== NOT EXECUTED old_mode |= _ISR_Get_level(); 4d476: 4eb9 0004 9ba0 jsr 49ba0 <_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; 4d47c: 49c4 extbl %d4 <== NOT EXECUTED 4d47e: 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; 4d484: 08c3 0009 bset #9,%d3 <== NOT EXECUTED old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR; 4d488: 8084 orl %d4,%d0 <== NOT EXECUTED old_mode |= _ISR_Get_level(); 4d48a: 8083 orl %d3,%d0 <== NOT EXECUTED 4d48c: 2880 movel %d0,%a4@ <== NOT EXECUTED *previous_mode_set = old_mode; /* * These are generic thread scheduling characteristics. */ if ( mask & RTEMS_PREEMPT_MASK ) 4d48e: 0802 0008 btst #8,%d2 <== NOT EXECUTED 4d492: 6700 ff3e beqw 4d3d2 <== NOT EXECUTED 4d496: 6000 ff2e braw 4d3c6 <== NOT EXECUTED bool are_signals_pending ) { Thread_Control *executing; executing = _Thread_Executing; 4d49a: 2079 0005 e630 moveal 5e630 <_Per_CPU_Information+0xc>,%a0 if ( are_signals_pending || 4d4a0: 4a00 tstb %d0 4d4a2: 660e bnes 4d4b2 <== NEVER TAKEN 4d4a4: b1f9 0005 e634 cmpal 5e634 <_Per_CPU_Information+0x10>,%a0 4d4aa: 67aa beqs 4d456 <== ALWAYS TAKEN (!_Thread_Is_heir( executing ) && executing->is_preemptible) ) { 4d4ac: 4a28 0074 tstb %a0@(116) <== NOT EXECUTED 4d4b0: 67a4 beqs 4d456 <== NOT EXECUTED _Thread_Dispatch_necessary = true; 4d4b2: 7001 moveq #1,%d0 <== NOT EXECUTED 4d4b4: 13c0 0005 e63c moveb %d0,5e63c <_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(); 4d4ba: 4eb9 0004 84fc jsr 484fc <_Thread_Dispatch> <== NOT EXECUTED } return RTEMS_SUCCESSFUL; } 4d4c0: 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; 4d4c6: 4280 clrl %d0 <== NOT EXECUTED } 4d4c8: 4e5e unlk %fp <== NOT EXECUTED 4d4ca: 4e75 rts <== NOT EXECUTED } /* * Set the new interrupt level */ if ( mask & RTEMS_INTERRUPT_MASK ) 4d4cc: 7007 moveq #7,%d0 4d4ce: 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; 4d4d0: 42aa 007a clrl %a2@(122) } /* * Set the new interrupt level */ if ( mask & RTEMS_INTERRUPT_MASK ) 4d4d4: 4a80 tstl %d0 4d4d6: 6700 ff30 beqw 4d408 4d4da: 6000 ff1a braw 4d3f6 bool is_asr_enabled = false; bool needs_asr_dispatching = false; rtems_mode old_mode; if ( !previous_mode_set ) return RTEMS_INVALID_ADDRESS; 4d4de: 7009 moveq #9,%d0 <== NOT EXECUTED if (_Thread_Evaluate_is_dispatch_needed( needs_asr_dispatching ) ) _Thread_Dispatch(); } return RTEMS_SUCCESSFUL; } 4d4e0: 4cee 1c3c ffe4 moveml %fp@(-28),%d2-%d5/%a2-%a4 <== NOT EXECUTED 4d4e6: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 000474c8 : rtems_status_code rtems_task_restart( rtems_id id, uint32_t argument ) { 474c8: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); 474cc: 486e fffc pea %fp@(-4) <== NOT EXECUTED 474d0: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 474d4: 4eb9 0004 92a0 jsr 492a0 <_Thread_Get> <== NOT EXECUTED switch ( location ) { 474da: 508f addql #8,%sp <== NOT EXECUTED 474dc: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 474e0: 6622 bnes 47504 <== NOT EXECUTED case OBJECTS_LOCAL: if ( _Thread_Restart( the_thread, NULL, argument ) ) { 474e2: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 474e6: 42a7 clrl %sp@- <== NOT EXECUTED 474e8: 2f00 movel %d0,%sp@- <== NOT EXECUTED 474ea: 4eb9 0004 9b48 jsr 49b48 <_Thread_Restart> <== NOT EXECUTED 474f0: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 474f4: 4a00 tstb %d0 <== NOT EXECUTED 474f6: 6612 bnes 4750a <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 474f8: 4eb9 0004 927a jsr 4927a <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_INCORRECT_STATE; 474fe: 700e moveq #14,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 47500: 4e5e unlk %fp <== NOT EXECUTED 47502: 4e75 rts <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 47504: 7004 moveq #4,%d0 <== NOT EXECUTED } 47506: 4e5e unlk %fp <== NOT EXECUTED 47508: 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(); 4750a: 4eb9 0004 927a jsr 4927a <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; 47510: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 47512: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 00049f40 : */ rtems_status_code rtems_task_resume( rtems_id id ) { 49f40: 4e56 fffc linkw %fp,#-4 register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); 49f44: 486e fffc pea %fp@(-4) 49f48: 2f2e 0008 movel %fp@(8),%sp@- 49f4c: 4eb9 0004 bd44 jsr 4bd44 <_Thread_Get> switch ( location ) { 49f52: 508f addql #8,%sp 49f54: 4aae fffc tstl %fp@(-4) 49f58: 6706 beqs 49f60 <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 49f5a: 7004 moveq #4,%d0 <== NOT EXECUTED } 49f5c: 4e5e unlk %fp <== NOT EXECUTED 49f5e: 4e75 rts <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _States_Is_suspended ( States_Control the_states ) { return (the_states & STATES_SUSPENDED); 49f60: 7202 moveq #2,%d1 49f62: 2040 moveal %d0,%a0 49f64: 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 ) ) { 49f68: 660c bnes 49f76 <== ALWAYS TAKEN _Thread_Resume( the_thread, true ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 49f6a: 4eb9 0004 bd1e jsr 4bd1e <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_INCORRECT_STATE; 49f70: 700e moveq #14,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 49f72: 4e5e unlk %fp <== NOT EXECUTED 49f74: 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 ); 49f76: 4878 0001 pea 1 49f7a: 2f00 movel %d0,%sp@- 49f7c: 4eb9 0004 c5ec jsr 4c5ec <_Thread_Resume> _Thread_Enable_dispatch(); 49f82: 4eb9 0004 bd1e jsr 4bd1e <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; 49f88: 508f addql #8,%sp 49f8a: 4280 clrl %d0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 49f8c: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00048e40 : rtems_status_code rtems_task_set_note( rtems_id id, uint32_t notepad, uint32_t note ) { 48e40: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 48e44: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED 48e48: 2f02 movel %d2,%sp@- <== NOT EXECUTED 48e4a: 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() ) 48e4e: 4a39 0006 0154 tstb 60154 <== NOT EXECUTED 48e54: 676e beqs 48ec4 <== 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 ) 48e56: 720f moveq #15,%d1 <== NOT EXECUTED 48e58: b282 cmpl %d2,%d1 <== NOT EXECUTED 48e5a: 6542 bcss 48e9e <== NOT EXECUTED /* * Optimize the most likely case to avoid the Thread_Dispatch. */ if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) || 48e5c: 4a80 tstl %d0 <== NOT EXECUTED 48e5e: 6748 beqs 48ea8 <== NOT EXECUTED _Objects_Are_ids_equal( id, _Thread_Executing->Object.id ) ) { 48e60: 2079 0006 1e18 moveal 61e18 <_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 ) || 48e66: b0a8 0008 cmpl %a0@(8),%d0 <== NOT EXECUTED 48e6a: 6742 beqs 48eae <== NOT EXECUTED api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ]; api->Notepads[ notepad ] = note; return RTEMS_SUCCESSFUL; } the_thread = _Thread_Get( id, &location ); 48e6c: 486e fffc pea %fp@(-4) <== NOT EXECUTED 48e70: 2f00 movel %d0,%sp@- <== NOT EXECUTED 48e72: 4eb9 0004 ae38 jsr 4ae38 <_Thread_Get> <== NOT EXECUTED switch ( location ) { 48e78: 508f addql #8,%sp <== NOT EXECUTED 48e7a: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 48e7e: 664e bnes 48ece <== NOT EXECUTED case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; api->Notepads[ notepad ] = note; 48e80: 2240 moveal %d0,%a1 <== NOT EXECUTED 48e82: 202e 0010 movel %fp@(16),%d0 <== NOT EXECUTED 48e86: 2069 0108 moveal %a1@(264),%a0 <== NOT EXECUTED 48e8a: 2180 2c1e movel %d0,%a0@(0000001e,%d2:l:4) <== NOT EXECUTED _Thread_Enable_dispatch(); 48e8e: 4eb9 0004 ae12 jsr 4ae12 <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 48e94: 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; 48e98: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 48e9a: 4e5e unlk %fp <== NOT EXECUTED 48e9c: 4e75 rts <== NOT EXECUTED 48e9e: 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; 48ea2: 700a moveq #10,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 48ea4: 4e5e unlk %fp <== NOT EXECUTED 48ea6: 4e75 rts <== NOT EXECUTED /* * Optimize the most likely case to avoid the Thread_Dispatch. */ if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) || 48ea8: 2079 0006 1e18 moveal 61e18 <_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; 48eae: 226e 0010 moveal %fp@(16),%a1 <== NOT EXECUTED return RTEMS_SUCCESSFUL; 48eb2: 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; 48eb4: 2068 0108 moveal %a0@(264),%a0 <== NOT EXECUTED 48eb8: 2189 2c1e movel %a1,%a0@(0000001e,%d2:l:4) <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 48ebc: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED 48ec0: 4e5e unlk %fp <== NOT EXECUTED 48ec2: 4e75 rts <== NOT EXECUTED 48ec4: 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; 48ec8: 7016 moveq #22,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 48eca: 4e5e unlk %fp <== NOT EXECUTED 48ecc: 4e75 rts <== NOT EXECUTED 48ece: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 48ed2: 7004 moveq #4,%d0 <== NOT EXECUTED } 48ed4: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 0004ad28 : rtems_status_code rtems_task_set_priority( rtems_id id, rtems_task_priority new_priority, rtems_task_priority *old_priority ) { 4ad28: 4e56 fffc linkw %fp,#-4 4ad2c: 2f0a movel %a2,%sp@- 4ad2e: 246e 0010 moveal %fp@(16),%a2 4ad32: 2f02 movel %d2,%sp@- 4ad34: 242e 000c movel %fp@(12),%d2 register Thread_Control *the_thread; Objects_Locations location; if ( new_priority != RTEMS_CURRENT_PRIORITY && 4ad38: 670c beqs 4ad46 <== 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 ) ); 4ad3a: 4280 clrl %d0 4ad3c: 1039 0006 1102 moveb 61102 ,%d0 */ RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid ( rtems_task_priority the_priority ) { return ( ( the_priority >= RTEMS_MINIMUM_PRIORITY ) && 4ad42: b082 cmpl %d2,%d0 4ad44: 6566 bcss 4adac <== NEVER TAKEN !_RTEMS_tasks_Priority_is_valid( new_priority ) ) return RTEMS_INVALID_PRIORITY; if ( !old_priority ) 4ad46: 4a8a tstl %a2 4ad48: 6770 beqs 4adba <== NEVER TAKEN return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get( id, &location ); 4ad4a: 486e fffc pea %fp@(-4) 4ad4e: 2f2e 0008 movel %fp@(8),%sp@- 4ad52: 4eb9 0004 ccd8 jsr 4ccd8 <_Thread_Get> switch ( location ) { 4ad58: 508f addql #8,%sp 4ad5a: 4aae fffc tstl %fp@(-4) 4ad5e: 663e bnes 4ad9e <== NEVER TAKEN case OBJECTS_LOCAL: /* XXX need helper to "convert" from core priority */ *old_priority = the_thread->current_priority; 4ad60: 2040 moveal %d0,%a0 4ad62: 24a8 0014 movel %a0@(20),%a2@ if ( new_priority != RTEMS_CURRENT_PRIORITY ) { 4ad66: 4a82 tstl %d2 4ad68: 6720 beqs 4ad8a <== NEVER TAKEN the_thread->real_priority = new_priority; 4ad6a: 2142 0018 movel %d2,%a0@(24) if ( the_thread->resource_count == 0 || 4ad6e: 4aa8 001c tstl %a0@(28) 4ad72: 6706 beqs 4ad7a <== ALWAYS TAKEN 4ad74: b4a8 0014 cmpl %a0@(20),%d2 <== NOT EXECUTED 4ad78: 6410 bccs 4ad8a <== NOT EXECUTED the_thread->current_priority > new_priority ) _Thread_Change_priority( the_thread, new_priority, false ); 4ad7a: 42a7 clrl %sp@- 4ad7c: 2f02 movel %d2,%sp@- 4ad7e: 2f00 movel %d0,%sp@- 4ad80: 4eb9 0004 c780 jsr 4c780 <_Thread_Change_priority> 4ad86: 4fef 000c lea %sp@(12),%sp } _Thread_Enable_dispatch(); 4ad8a: 4eb9 0004 ccb2 jsr 4ccb2 <_Thread_Enable_dispatch> case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4ad90: 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; 4ad94: 4280 clrl %d0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4ad96: 246e fff8 moveal %fp@(-8),%a2 4ad9a: 4e5e unlk %fp 4ad9c: 4e75 rts 4ad9e: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 4ada2: 7004 moveq #4,%d0 <== NOT EXECUTED } 4ada4: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 4ada8: 4e5e unlk %fp <== NOT EXECUTED 4adaa: 4e75 rts <== NOT EXECUTED 4adac: 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; 4adb0: 7013 moveq #19,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4adb2: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 4adb6: 4e5e unlk %fp <== NOT EXECUTED 4adb8: 4e75 rts <== NOT EXECUTED 4adba: 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; 4adbe: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4adc0: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED 4adc4: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00046924 : rtems_status_code rtems_task_start( rtems_id id, rtems_task_entry entry_point, rtems_task_argument argument ) { 46924: 4e56 fffc linkw %fp,#-4 46928: 2f02 movel %d2,%sp@- 4692a: 242e 000c movel %fp@(12),%d2 register Thread_Control *the_thread; Objects_Locations location; if ( entry_point == NULL ) 4692e: 674a beqs 4697a return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get( id, &location ); 46930: 486e fffc pea %fp@(-4) 46934: 2f2e 0008 movel %fp@(8),%sp@- 46938: 4eb9 0004 868c jsr 4868c <_Thread_Get> switch ( location ) { 4693e: 508f addql #8,%sp 46940: 4aae fffc tstl %fp@(-4) 46944: 662a bnes 46970 <== NEVER TAKEN case OBJECTS_LOCAL: if ( _Thread_Start( 46946: 2f2e 0010 movel %fp@(16),%sp@- 4694a: 42a7 clrl %sp@- 4694c: 2f02 movel %d2,%sp@- 4694e: 42a7 clrl %sp@- 46950: 2f00 movel %d0,%sp@- 46952: 4eb9 0004 921c jsr 4921c <_Thread_Start> 46958: 4fef 0014 lea %sp@(20),%sp 4695c: 4a00 tstb %d0 4695e: 6624 bnes 46984 <== ALWAYS TAKEN the_thread, THREAD_START_NUMERIC, entry_point, NULL, argument ) ) { _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 46960: 4eb9 0004 8666 jsr 48666 <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 46966: 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; 4696a: 700e moveq #14,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4696c: 4e5e unlk %fp <== NOT EXECUTED 4696e: 4e75 rts <== NOT EXECUTED 46970: 242e fff8 movel %fp@(-8),%d2 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 46974: 7004 moveq #4,%d0 <== NOT EXECUTED } 46976: 4e5e unlk %fp <== NOT EXECUTED 46978: 4e75 rts <== NOT EXECUTED 4697a: 242e fff8 movel %fp@(-8),%d2 { register Thread_Control *the_thread; Objects_Locations location; if ( entry_point == NULL ) return RTEMS_INVALID_ADDRESS; 4697e: 7009 moveq #9,%d0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 46980: 4e5e unlk %fp 46982: 4e75 rts switch ( location ) { case OBJECTS_LOCAL: if ( _Thread_Start( the_thread, THREAD_START_NUMERIC, entry_point, NULL, argument ) ) { _Thread_Enable_dispatch(); 46984: 4eb9 0004 8666 jsr 48666 <_Thread_Enable_dispatch> case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 4698a: 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; 4698e: 4280 clrl %d0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 46990: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00046994 : */ rtems_status_code rtems_task_suspend( rtems_id id ) { 46994: 4e56 fffc linkw %fp,#-4 register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); 46998: 486e fffc pea %fp@(-4) 4699c: 2f2e 0008 movel %fp@(8),%sp@- 469a0: 4eb9 0004 868c jsr 4868c <_Thread_Get> switch ( location ) { 469a6: 508f addql #8,%sp 469a8: 4aae fffc tstl %fp@(-4) 469ac: 6706 beqs 469b4 <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 469ae: 7004 moveq #4,%d0 <== NOT EXECUTED } 469b0: 4e5e unlk %fp <== NOT EXECUTED 469b2: 4e75 rts <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _States_Is_suspended ( States_Control the_states ) { return (the_states & STATES_SUSPENDED); 469b4: 7202 moveq #2,%d1 469b6: 2040 moveal %d0,%a0 469b8: 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 ) ) { 469bc: 670c beqs 469ca <== ALWAYS TAKEN _Thread_Suspend( the_thread ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 469be: 4eb9 0004 8666 jsr 48666 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_ALREADY_SUSPENDED; 469c4: 700f moveq #15,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 469c6: 4e5e unlk %fp <== NOT EXECUTED 469c8: 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 ); 469ca: 2f00 movel %d0,%sp@- 469cc: 4eb9 0004 9278 jsr 49278 <_Thread_Suspend> _Thread_Enable_dispatch(); 469d2: 4eb9 0004 8666 jsr 48666 <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; 469d8: 588f addql #4,%sp 469da: 4280 clrl %d0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 469dc: 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 9608 jsr 49608 <_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 0114 moveal %a3@(276),%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 a9f6 jsr 4a9f6 <_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 0114 movel %a3@(276),%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 0114 movel %d0,%a3@(276) <== NOT EXECUTED _Thread_Enable_dispatch(); 47810: 4eb9 0004 95e2 jsr 495e2 <_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 95e2 jsr 495e2 <_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 95e2 jsr 495e2 <_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 9608 jsr 49608 <_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 0114 moveal %a0@(276),%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 95e2 jsr 495e2 <_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 95e2 jsr 495e2 <_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 0114 movel %a1@,%a0@(276) <== 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 95e2 jsr 495e2 <_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 9608 jsr 49608 <_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 0114 moveal %a1@(276),%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 95e2 jsr 495e2 <_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 95e2 jsr 495e2 <_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 ... =============================================================================== 000469e0 : */ rtems_status_code rtems_task_wake_after( rtems_interval ticks ) { 469e0: 4e56 0000 linkw %fp,#0 469e4: 2039 0005 e46c movel 5e46c <_Thread_Dispatch_disable_level>,%d0 469ea: 5280 addql #1,%d0 469ec: 2f02 movel %d2,%sp@- 469ee: 242e 0008 movel %fp@(8),%d2 469f2: 23c0 0005 e46c movel %d0,5e46c <_Thread_Dispatch_disable_level> _Thread_Disable_dispatch(); if ( ticks == 0 ) { 469f8: 4a82 tstl %d2 469fa: 6758 beqs 46a54 <== NEVER TAKEN _Thread_Yield_processor(); } else { _Thread_Set_state( _Thread_Executing, STATES_DELAYING ); 469fc: 4878 0008 pea 8 46a00: 2f39 0005 e630 movel 5e630 <_Per_CPU_Information+0xc>,%sp@- 46a06: 4eb9 0004 8fa4 jsr 48fa4 <_Thread_Set_state> _Watchdog_Initialize( &_Thread_Executing->Timer, _Thread_Delay_ended, _Thread_Executing->Object.id, 46a0c: 2079 0005 e630 moveal 5e630 <_Per_CPU_Information+0xc>,%a0 Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 46a12: 203c 0004 84c0 movel #296128,%d0 46a18: 2140 0064 movel %d0,%a0@(100) _Thread_Disable_dispatch(); if ( ticks == 0 ) { _Thread_Yield_processor(); } else { _Thread_Set_state( _Thread_Executing, STATES_DELAYING ); _Watchdog_Initialize( 46a1c: 2028 0008 movel %a0@(8),%d0 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 46a20: 2142 0054 movel %d2,%a0@(84) void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; the_watchdog->id = id; 46a24: 2140 0068 movel %d0,%a0@(104) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 46a28: 42a8 0050 clrl %a0@(80) the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data; 46a2c: 42a8 006c clrl %a0@(108) ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 46a30: 4868 0048 pea %a0@(72) 46a34: 4879 0005 e52e pea 5e52e <_Watchdog_Ticks_chain> 46a3a: 4eb9 0004 97b0 jsr 497b0 <_Watchdog_Insert> 46a40: 4fef 0010 lea %sp@(16),%sp _Thread_Executing->Object.id, NULL ); _Watchdog_Insert_ticks( &_Thread_Executing->Timer, ticks ); } _Thread_Enable_dispatch(); 46a44: 4eb9 0004 8666 jsr 48666 <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; } 46a4a: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 46a4e: 4280 clrl %d0 <== NOT EXECUTED 46a50: 4e5e unlk %fp <== NOT EXECUTED 46a52: 4e75 rts <== NOT EXECUTED rtems_interval ticks ) { _Thread_Disable_dispatch(); if ( ticks == 0 ) { _Thread_Yield_processor(); 46a54: 4eb9 0004 93d8 jsr 493d8 <_Thread_Yield_processor> <== NOT EXECUTED _Thread_Executing->Object.id, NULL ); _Watchdog_Insert_ticks( &_Thread_Executing->Timer, ticks ); } _Thread_Enable_dispatch(); 46a5a: 4eb9 0004 8666 jsr 48666 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 46a60: 242e fffc movel %fp@(-4),%d2 <== NOT EXECUTED 46a64: 4280 clrl %d0 <== NOT EXECUTED 46a66: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 00047970 : */ rtems_status_code rtems_task_wake_when( rtems_time_of_day *time_buffer ) { 47970: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 47974: 2f0a movel %a2,%sp@- <== NOT EXECUTED 47976: 246e 0008 moveal %fp@(8),%a2 <== NOT EXECUTED Watchdog_Interval seconds; if ( !_TOD_Is_set ) 4797a: 4a39 0005 fe04 tstb 5fe04 <_TOD_Is_set> <== NOT EXECUTED 47980: 6700 00aa beqw 47a2c <== NOT EXECUTED return RTEMS_NOT_DEFINED; if ( !time_buffer ) 47984: 4a8a tstl %a2 <== NOT EXECUTED 47986: 6700 00ae beqw 47a36 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; time_buffer->ticks = 0; 4798a: 42aa 0018 clrl %a2@(24) <== NOT EXECUTED if ( !_TOD_Validate( time_buffer ) ) 4798e: 2f0a movel %a2,%sp@- <== NOT EXECUTED 47990: 4eb9 0004 6c84 jsr 46c84 <_TOD_Validate> <== NOT EXECUTED 47996: 588f addql #4,%sp <== NOT EXECUTED 47998: 4a00 tstb %d0 <== NOT EXECUTED 4799a: 660a bnes 479a6 <== NOT EXECUTED &_Thread_Executing->Timer, seconds - _TOD_Seconds_since_epoch() ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 4799c: 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; 479a0: 7014 moveq #20,%d0 <== NOT EXECUTED &_Thread_Executing->Timer, seconds - _TOD_Seconds_since_epoch() ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 479a2: 4e5e unlk %fp <== NOT EXECUTED 479a4: 4e75 rts <== NOT EXECUTED time_buffer->ticks = 0; if ( !_TOD_Validate( time_buffer ) ) return RTEMS_INVALID_CLOCK; seconds = _TOD_To_seconds( time_buffer ); 479a6: 2f0a movel %a2,%sp@- <== NOT EXECUTED 479a8: 4eb9 0004 6b7c jsr 46b7c <_TOD_To_seconds> <== NOT EXECUTED if ( seconds <= _TOD_Seconds_since_epoch() ) 479ae: 588f addql #4,%sp <== NOT EXECUTED 479b0: b0b9 0005 fe7e cmpl 5fe7e <_TOD_Now>,%d0 <== NOT EXECUTED 479b6: 63e4 blss 4799c <== NOT EXECUTED 479b8: 2239 0005 fdf4 movel 5fdf4 <_Thread_Dispatch_disable_level>,%d1<== NOT EXECUTED 479be: 5281 addql #1,%d1 <== NOT EXECUTED 479c0: 23c1 0005 fdf4 movel %d1,5fdf4 <_Thread_Dispatch_disable_level><== NOT EXECUTED return RTEMS_INVALID_CLOCK; _Thread_Disable_dispatch(); _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_TIME ); 479c6: 4878 0010 pea 10 <== NOT EXECUTED 479ca: 2f39 0005 ffb8 movel 5ffb8 <_Per_CPU_Information+0xc>,%sp@-<== NOT EXECUTED 479d0: 2d40 fffc movel %d0,%fp@(-4) <== NOT EXECUTED 479d4: 4eb9 0004 9f90 jsr 49f90 <_Thread_Set_state> <== NOT EXECUTED &_Thread_Executing->Timer, _Thread_Delay_ended, _Thread_Executing->Object.id, NULL ); _Watchdog_Insert_seconds( 479da: 202e fffc movel %fp@(-4),%d0 <== NOT EXECUTED 479de: 90b9 0005 fe7e subl 5fe7e <_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, 479e4: 2079 0005 ffb8 moveal 5ffb8 <_Per_CPU_Information+0xc>,%a0 <== NOT EXECUTED NULL ); _Watchdog_Insert_seconds( 479ea: 2140 0054 movel %d0,%a0@(84) <== NOT EXECUTED Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 479ee: 203c 0004 94ac movel #300204,%d0 <== NOT EXECUTED 479f4: 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( 479f8: 2028 0008 movel %a0@(8),%d0 <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 479fc: 42a8 0050 clrl %a0@(80) <== NOT EXECUTED the_watchdog->routine = routine; the_watchdog->id = id; 47a00: 2140 0068 movel %d0,%a0@(104) <== NOT EXECUTED the_watchdog->user_data = user_data; 47a04: 42a8 006c clrl %a0@(108) <== NOT EXECUTED ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog ); 47a08: 4868 0048 pea %a0@(72) <== NOT EXECUTED 47a0c: 4879 0005 feaa pea 5feaa <_Watchdog_Seconds_chain> <== NOT EXECUTED 47a12: 4eb9 0004 a830 jsr 4a830 <_Watchdog_Insert> <== NOT EXECUTED ); _Watchdog_Insert_seconds( &_Thread_Executing->Timer, seconds - _TOD_Seconds_since_epoch() ); _Thread_Enable_dispatch(); 47a18: 4eb9 0004 9652 jsr 49652 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 47a1e: 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; 47a22: 4fef 0010 lea %sp@(16),%sp <== NOT EXECUTED 47a26: 4280 clrl %d0 <== NOT EXECUTED } 47a28: 4e5e unlk %fp <== NOT EXECUTED 47a2a: 4e75 rts <== NOT EXECUTED 47a2c: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED ) { Watchdog_Interval seconds; if ( !_TOD_Is_set ) return RTEMS_NOT_DEFINED; 47a30: 700b moveq #11,%d0 <== NOT EXECUTED &_Thread_Executing->Timer, seconds - _TOD_Seconds_since_epoch() ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 47a32: 4e5e unlk %fp <== NOT EXECUTED 47a34: 4e75 rts <== NOT EXECUTED 47a36: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED if ( !_TOD_Is_set ) return RTEMS_NOT_DEFINED; if ( !time_buffer ) return RTEMS_INVALID_ADDRESS; 47a3a: 7009 moveq #9,%d0 <== NOT EXECUTED &_Thread_Executing->Timer, seconds - _TOD_Seconds_since_epoch() ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 47a3c: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 0005896c : */ rtems_status_code rtems_timer_cancel( rtems_id id ) { 5896c: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Timer_Control *) _Objects_Get( &_Timer_Information, id, location ); 58970: 486e fffc pea %fp@(-4) <== NOT EXECUTED 58974: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 58978: 4879 0007 d3ee pea 7d3ee <_Timer_Information> <== NOT EXECUTED 5897e: 4eb9 0005 b840 jsr 5b840 <_Objects_Get> <== NOT EXECUTED Timer_Control *the_timer; Objects_Locations location; the_timer = _Timer_Get( id, &location ); switch ( location ) { 58984: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 58988: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 5898c: 6706 beqs 58994 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 5898e: 7004 moveq #4,%d0 <== NOT EXECUTED } 58990: 4e5e unlk %fp <== NOT EXECUTED 58992: 4e75 rts <== NOT EXECUTED the_timer = _Timer_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_Timer_Is_dormant_class( the_timer->the_class ) ) 58994: 7204 moveq #4,%d1 <== NOT EXECUTED 58996: 2040 moveal %d0,%a0 <== NOT EXECUTED 58998: b2a8 0038 cmpl %a0@(56),%d1 <== NOT EXECUTED 5899c: 670c beqs 589aa <== NOT EXECUTED (void) _Watchdog_Remove( &the_timer->Ticker ); 5899e: 4868 0010 pea %a0@(16) <== NOT EXECUTED 589a2: 4eb9 0005 d6c4 jsr 5d6c4 <_Watchdog_Remove> <== NOT EXECUTED 589a8: 588f addql #4,%sp <== NOT EXECUTED _Thread_Enable_dispatch(); 589aa: 4eb9 0005 c12a jsr 5c12a <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; 589b0: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 589b2: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 00046c88 : rtems_status_code rtems_timer_create( rtems_name name, rtems_id *id ) { 46c88: 4e56 fff4 linkw %fp,#-12 46c8c: 48d7 040c moveml %d2-%d3/%a2,%sp@ 46c90: 242e 0008 movel %fp@(8),%d2 46c94: 246e 000c moveal %fp@(12),%a2 Timer_Control *the_timer; if ( !rtems_is_name_valid( name ) ) 46c98: 6768 beqs 46d02 <== NEVER TAKEN return RTEMS_INVALID_NAME; if ( !id ) 46c9a: 4a8a tstl %a2 46c9c: 6700 0082 beqw 46d20 46ca0: 2039 0005 e7e0 movel 5e7e0 <_Thread_Dispatch_disable_level>,%d0 46ca6: 5280 addql #1,%d0 46ca8: 23c0 0005 e7e0 movel %d0,5e7e0 <_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 ); 46cae: 4879 0005 e9b6 pea 5e9b6 <_Timer_Information> 46cb4: 4eb9 0004 7c54 jsr 47c54 <_Objects_Allocate> _Thread_Disable_dispatch(); /* to prevent deletion */ the_timer = _Timer_Allocate(); if ( !the_timer ) { 46cba: 588f addql #4,%sp 46cbc: 2040 moveal %d0,%a0 46cbe: 4a80 tstl %d0 46cc0: 674c beqs 46d0e <== NEVER TAKEN Objects_Name name ) { _Objects_Set_local_object( information, _Objects_Get_index( the_object->id ), 46cc2: 2028 0008 movel %a0@(8),%d0 Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( 46cc6: 4281 clrl %d1 _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } the_timer->the_class = TIMER_DORMANT; 46cc8: 7604 moveq #4,%d3 #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 46cca: 2279 0005 e9ce moveal 5e9ce <_Timer_Information+0x18>,%a1 Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( 46cd0: 3200 movew %d0,%d1 46cd2: 2143 0038 movel %d3,%a0@(56) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 46cd6: 42a8 0018 clrl %a0@(24) the_watchdog->routine = routine; 46cda: 42a8 002c clrl %a0@(44) the_watchdog->id = id; 46cde: 42a8 0030 clrl %a0@(48) the_watchdog->user_data = user_data; 46ce2: 42a8 0034 clrl %a0@(52) #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 46ce6: 2388 1c00 movel %a0,%a1@(00000000,%d1:l:4) information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 46cea: 2142 000c movel %d2,%a0@(12) &_Timer_Information, &the_timer->Object, (Objects_Name) name ); *id = the_timer->Object.id; 46cee: 2480 movel %d0,%a2@ _Thread_Enable_dispatch(); 46cf0: 4eb9 0004 897e jsr 4897e <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; } 46cf6: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 (Objects_Name) name ); *id = the_timer->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 46cfc: 4280 clrl %d0 } 46cfe: 4e5e unlk %fp 46d00: 4e75 rts ) { Timer_Control *the_timer; if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; 46d02: 7003 moveq #3,%d0 <== NOT EXECUTED ); *id = the_timer->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 46d04: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 46d0a: 4e5e unlk %fp <== NOT EXECUTED 46d0c: 4e75 rts <== NOT EXECUTED _Thread_Disable_dispatch(); /* to prevent deletion */ the_timer = _Timer_Allocate(); if ( !the_timer ) { _Thread_Enable_dispatch(); 46d0e: 4eb9 0004 897e jsr 4897e <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_TOO_MANY; 46d14: 7005 moveq #5,%d0 <== NOT EXECUTED ); *id = the_timer->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 46d16: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 46d1c: 4e5e unlk %fp <== NOT EXECUTED 46d1e: 4e75 rts <== NOT EXECUTED if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; if ( !id ) return RTEMS_INVALID_ADDRESS; 46d20: 7009 moveq #9,%d0 <== NOT EXECUTED ); *id = the_timer->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 46d22: 4cee 040c fff4 moveml %fp@(-12),%d2-%d3/%a2 <== NOT EXECUTED 46d28: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00058a5c : */ rtems_status_code rtems_timer_delete( rtems_id id ) { 58a5c: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 58a60: 2f0a movel %a2,%sp@- <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Timer_Control *) _Objects_Get( &_Timer_Information, id, location ); 58a62: 486e fffc pea %fp@(-4) <== NOT EXECUTED 58a66: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 58a6a: 4879 0007 d3ee pea 7d3ee <_Timer_Information> <== NOT EXECUTED 58a70: 4eb9 0005 b840 jsr 5b840 <_Objects_Get> <== NOT EXECUTED Timer_Control *the_timer; Objects_Locations location; the_timer = _Timer_Get( id, &location ); switch ( location ) { 58a76: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 58a7a: 2440 moveal %d0,%a2 <== NOT EXECUTED 58a7c: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 58a80: 663a bnes 58abc <== NOT EXECUTED case OBJECTS_LOCAL: _Objects_Close( &_Timer_Information, &the_timer->Object ); 58a82: 2f00 movel %d0,%sp@- <== NOT EXECUTED 58a84: 4879 0007 d3ee pea 7d3ee <_Timer_Information> <== NOT EXECUTED 58a8a: 4eb9 0005 b3d4 jsr 5b3d4 <_Objects_Close> <== NOT EXECUTED (void) _Watchdog_Remove( &the_timer->Ticker ); 58a90: 486a 0010 pea %a2@(16) <== NOT EXECUTED 58a94: 4eb9 0005 d6c4 jsr 5d6c4 <_Watchdog_Remove> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Timer_Free ( Timer_Control *the_timer ) { _Objects_Free( &_Timer_Information, &the_timer->Object ); 58a9a: 2f0a movel %a2,%sp@- <== NOT EXECUTED 58a9c: 4879 0007 d3ee pea 7d3ee <_Timer_Information> <== NOT EXECUTED 58aa2: 4eb9 0005 b698 jsr 5b698 <_Objects_Free> <== NOT EXECUTED _Timer_Free( the_timer ); _Thread_Enable_dispatch(); 58aa8: 4eb9 0005 c12a jsr 5c12a <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 58aae: 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; 58ab2: 4fef 0014 lea %sp@(20),%sp <== NOT EXECUTED 58ab6: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 58ab8: 4e5e unlk %fp <== NOT EXECUTED 58aba: 4e75 rts <== NOT EXECUTED 58abc: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 58ac0: 7004 moveq #4,%d0 <== NOT EXECUTED } 58ac2: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 00046d2c : rtems_id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { 46d2c: 4e56 ffe8 linkw %fp,#-24 <== NOT EXECUTED 46d30: 48d7 043c moveml %d2-%d5/%a2,%sp@ <== NOT EXECUTED 46d34: 282e 0008 movel %fp@(8),%d4 <== NOT EXECUTED 46d38: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED 46d3c: 262e 0010 movel %fp@(16),%d3 <== NOT EXECUTED Timer_Control *the_timer; Objects_Locations location; ISR_Level level; if ( ticks == 0 ) 46d40: 4a82 tstl %d2 <== NOT EXECUTED 46d42: 6700 0094 beqw 46dd8 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; if ( !routine ) 46d46: 4a83 tstl %d3 <== NOT EXECUTED 46d48: 6700 00ae beqw 46df8 <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Timer_Control *) _Objects_Get( &_Timer_Information, id, location ); 46d4c: 486e fffc pea %fp@(-4) <== NOT EXECUTED 46d50: 2f04 movel %d4,%sp@- <== NOT EXECUTED 46d52: 4879 0005 e9b6 pea 5e9b6 <_Timer_Information> <== NOT EXECUTED 46d58: 4eb9 0004 8114 jsr 48114 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_timer = _Timer_Get( id, &location ); switch ( location ) { 46d5e: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 46d62: 2440 moveal %d0,%a2 <== NOT EXECUTED 46d64: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 46d68: 6662 bnes 46dcc <== NOT EXECUTED case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); 46d6a: 2a00 movel %d0,%d5 <== NOT EXECUTED 46d6c: 0685 0000 0010 addil #16,%d5 <== NOT EXECUTED 46d72: 2f05 movel %d5,%sp@- <== NOT EXECUTED 46d74: 4eb9 0004 9c10 jsr 49c10 <_Watchdog_Remove> <== NOT EXECUTED _ISR_Disable( level ); 46d7a: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED 46d80: 40c1 movew %sr,%d1 <== NOT EXECUTED 46d82: 8081 orl %d1,%d0 <== NOT EXECUTED 46d84: 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 ) { 46d86: 588f addql #4,%sp <== NOT EXECUTED 46d88: 4aaa 0018 tstl %a2@(24) <== NOT EXECUTED 46d8c: 6656 bnes 46de4 <== 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; 46d8e: 42aa 0038 clrl %a2@(56) <== NOT EXECUTED 46d92: 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; 46d98: 42aa 0018 clrl %a2@(24) <== NOT EXECUTED the_watchdog->routine = routine; 46d9c: 2543 002c movel %d3,%a2@(44) <== NOT EXECUTED the_watchdog->id = id; 46da0: 2544 0030 movel %d4,%a2@(48) <== NOT EXECUTED _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); _ISR_Enable( level ); 46da4: 46c1 movew %d1,%sr <== NOT EXECUTED Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 46da6: 2542 001c movel %d2,%a2@(28) <== NOT EXECUTED _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 46daa: 2f05 movel %d5,%sp@- <== NOT EXECUTED 46dac: 4879 0005 e8a2 pea 5e8a2 <_Watchdog_Ticks_chain> <== NOT EXECUTED 46db2: 4eb9 0004 9ac8 jsr 49ac8 <_Watchdog_Insert> <== NOT EXECUTED _Watchdog_Insert_ticks( &the_timer->Ticker, ticks ); _Thread_Enable_dispatch(); 46db8: 4eb9 0004 897e jsr 4897e <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; 46dbe: 508f addql #8,%sp <== NOT EXECUTED 46dc0: 4280 clrl %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 #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 46dcc: 7004 moveq #4,%d0 <== NOT EXECUTED } 46dce: 4cee 043c ffe8 moveml %fp@(-24),%d2-%d5/%a2 <== NOT EXECUTED 46dd4: 4e5e unlk %fp <== NOT EXECUTED 46dd6: 4e75 rts <== NOT EXECUTED Timer_Control *the_timer; Objects_Locations location; ISR_Level level; if ( ticks == 0 ) return RTEMS_INVALID_NUMBER; 46dd8: 700a moveq #10,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 46dda: 4cee 043c ffe8 moveml %fp@(-24),%d2-%d5/%a2 <== NOT EXECUTED 46de0: 4e5e unlk %fp <== NOT EXECUTED 46de2: 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 ); 46de4: 46c1 movew %d1,%sr <== NOT EXECUTED _Thread_Enable_dispatch(); 46de6: 4eb9 0004 897e jsr 4897e <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; 46dec: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 46dee: 4cee 043c ffe8 moveml %fp@(-24),%d2-%d5/%a2 <== NOT EXECUTED 46df4: 4e5e unlk %fp <== NOT EXECUTED 46df6: 4e75 rts <== NOT EXECUTED if ( ticks == 0 ) return RTEMS_INVALID_NUMBER; if ( !routine ) return RTEMS_INVALID_ADDRESS; 46df8: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 46dfa: 4cee 043c ffe8 moveml %fp@(-24),%d2-%d5/%a2 <== NOT EXECUTED 46e00: 4e5e unlk %fp <== NOT EXECUTED =============================================================================== 00058ba0 : rtems_id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) { 58ba0: 4e56 ffec linkw %fp,#-20 <== NOT EXECUTED 58ba4: 48d7 041c moveml %d2-%d4/%a2,%sp@ <== NOT EXECUTED 58ba8: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED 58bac: 262e 0010 movel %fp@(16),%d3 <== NOT EXECUTED Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; if ( !_TOD_Is_set ) 58bb0: 4a39 0007 d1e8 tstb 7d1e8 <_TOD_Is_set> <== NOT EXECUTED 58bb6: 660c bnes 58bc4 <== NOT EXECUTED return RTEMS_NOT_DEFINED; 58bb8: 700b moveq #11,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 58bba: 4cee 041c ffec moveml %fp@(-20),%d2-%d4/%a2 <== NOT EXECUTED 58bc0: 4e5e unlk %fp <== NOT EXECUTED 58bc2: 4e75 rts <== NOT EXECUTED rtems_interval seconds; if ( !_TOD_Is_set ) return RTEMS_NOT_DEFINED; if ( !_TOD_Validate( wall_time ) ) 58bc4: 2f02 movel %d2,%sp@- <== NOT EXECUTED 58bc6: 4eb9 0005 5bf0 jsr 55bf0 <_TOD_Validate> <== NOT EXECUTED 58bcc: 588f addql #4,%sp <== NOT EXECUTED 58bce: 4a00 tstb %d0 <== NOT EXECUTED 58bd0: 671a beqs 58bec <== NOT EXECUTED return RTEMS_INVALID_CLOCK; if ( !routine ) 58bd2: 4a83 tstl %d3 <== NOT EXECUTED 58bd4: 6700 00a8 beqw 58c7e <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; seconds = _TOD_To_seconds( wall_time ); 58bd8: 2f02 movel %d2,%sp@- <== NOT EXECUTED 58bda: 4eb9 0005 5ae8 jsr 55ae8 <_TOD_To_seconds> <== NOT EXECUTED if ( seconds <= _TOD_Seconds_since_epoch() ) 58be0: 588f addql #4,%sp <== NOT EXECUTED return RTEMS_INVALID_CLOCK; if ( !routine ) return RTEMS_INVALID_ADDRESS; seconds = _TOD_To_seconds( wall_time ); 58be2: 2400 movel %d0,%d2 <== NOT EXECUTED if ( seconds <= _TOD_Seconds_since_epoch() ) 58be4: b0b9 0007 d262 cmpl 7d262 <_TOD_Now>,%d0 <== NOT EXECUTED 58bea: 620c bhis 58bf8 <== NOT EXECUTED return RTEMS_INVALID_CLOCK; 58bec: 7014 moveq #20,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 58bee: 4cee 041c ffec moveml %fp@(-20),%d2-%d4/%a2 <== NOT EXECUTED 58bf4: 4e5e unlk %fp <== NOT EXECUTED 58bf6: 4e75 rts <== NOT EXECUTED 58bf8: 486e fffc pea %fp@(-4) <== NOT EXECUTED 58bfc: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 58c00: 4879 0007 d3ee pea 7d3ee <_Timer_Information> <== NOT EXECUTED 58c06: 4eb9 0005 b840 jsr 5b840 <_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 ) { 58c0c: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 58c10: 2440 moveal %d0,%a2 <== NOT EXECUTED 58c12: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 58c16: 665a bnes 58c72 <== NOT EXECUTED case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); 58c18: 2800 movel %d0,%d4 <== NOT EXECUTED 58c1a: 0684 0000 0010 addil #16,%d4 <== NOT EXECUTED 58c20: 2f04 movel %d4,%sp@- <== NOT EXECUTED 58c22: 4eb9 0005 d6c4 jsr 5d6c4 <_Watchdog_Remove> <== NOT EXECUTED ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data; 58c28: 256e 0014 0034 movel %fp@(20),%a2@(52) <== NOT EXECUTED the_timer->the_class = TIMER_TIME_OF_DAY; 58c2e: 7002 moveq #2,%d0 <== NOT EXECUTED _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); _Watchdog_Insert_seconds( 58c30: 94b9 0007 d262 subl 7d262 <_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; 58c36: 2540 0038 movel %d0,%a2@(56) <== NOT EXECUTED void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; the_watchdog->id = id; 58c3a: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); _Watchdog_Insert_seconds( 58c3e: 2542 001c movel %d2,%a2@(28) <== NOT EXECUTED 58c42: 2540 0030 movel %d0,%a2@(48) <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 58c46: 42aa 0018 clrl %a2@(24) <== NOT EXECUTED the_watchdog->routine = routine; 58c4a: 2543 002c movel %d3,%a2@(44) <== NOT EXECUTED ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog ); 58c4e: 2f04 movel %d4,%sp@- <== NOT EXECUTED 58c50: 4879 0007 d28e pea 7d28e <_Watchdog_Seconds_chain> <== NOT EXECUTED 58c56: 4eb9 0005 d57c jsr 5d57c <_Watchdog_Insert> <== NOT EXECUTED &the_timer->Ticker, seconds - _TOD_Seconds_since_epoch() ); _Thread_Enable_dispatch(); 58c5c: 4eb9 0005 c12a jsr 5c12a <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; 58c62: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 58c66: 4280 clrl %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 58c70: 4e75 rts <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 58c72: 7004 moveq #4,%d0 <== NOT EXECUTED } 58c74: 4cee 041c ffec moveml %fp@(-20),%d2-%d4/%a2 <== NOT EXECUTED 58c7a: 4e5e unlk %fp <== NOT EXECUTED 58c7c: 4e75 rts <== NOT EXECUTED if ( !_TOD_Validate( wall_time ) ) return RTEMS_INVALID_CLOCK; if ( !routine ) return RTEMS_INVALID_ADDRESS; 58c7e: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 58c80: 4cee 041c ffec moveml %fp@(-20),%d2-%d4/%a2 <== NOT EXECUTED 58c86: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 00058c8c : rtems_status_code rtems_timer_get_information( rtems_id id, rtems_timer_information *the_info ) { 58c8c: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 58c90: 2f0a movel %a2,%sp@- <== NOT EXECUTED 58c92: 246e 000c moveal %fp@(12),%a2 <== NOT EXECUTED Timer_Control *the_timer; Objects_Locations location; if ( !the_info ) 58c96: 4a8a tstl %a2 <== NOT EXECUTED 58c98: 6752 beqs 58cec <== NOT EXECUTED 58c9a: 486e fffc pea %fp@(-4) <== NOT EXECUTED 58c9e: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 58ca2: 4879 0007 d3ee pea 7d3ee <_Timer_Information> <== NOT EXECUTED 58ca8: 4eb9 0005 b840 jsr 5b840 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_timer = _Timer_Get( id, &location ); switch ( location ) { 58cae: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 58cb2: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 58cb6: 662a bnes 58ce2 <== NOT EXECUTED case OBJECTS_LOCAL: the_info->the_class = the_timer->the_class; 58cb8: 2040 moveal %d0,%a0 <== NOT EXECUTED 58cba: 24a8 0038 movel %a0@(56),%a2@ <== NOT EXECUTED the_info->initial = the_timer->Ticker.initial; 58cbe: 41e8 001c lea %a0@(28),%a0 <== NOT EXECUTED 58cc2: 2550 0004 movel %a0@,%a2@(4) <== NOT EXECUTED the_info->start_time = the_timer->Ticker.start_time; 58cc6: 5088 addql #8,%a0 <== NOT EXECUTED 58cc8: 2550 0008 movel %a0@,%a2@(8) <== NOT EXECUTED the_info->stop_time = the_timer->Ticker.stop_time; 58ccc: 5888 addql #4,%a0 <== NOT EXECUTED 58cce: 2550 000c movel %a0@,%a2@(12) <== NOT EXECUTED _Thread_Enable_dispatch(); 58cd2: 4eb9 0005 c12a jsr 5c12a <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 58cd8: 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; 58cdc: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 58cde: 4e5e unlk %fp <== NOT EXECUTED 58ce0: 4e75 rts <== NOT EXECUTED 58ce2: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 58ce6: 7004 moveq #4,%d0 <== NOT EXECUTED } 58ce8: 4e5e unlk %fp <== NOT EXECUTED 58cea: 4e75 rts <== NOT EXECUTED 58cec: 246e fff8 moveal %fp@(-8),%a2 <== NOT EXECUTED { Timer_Control *the_timer; Objects_Locations location; if ( !the_info ) return RTEMS_INVALID_ADDRESS; 58cf0: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 58cf2: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 00058cf8 : rtems_status_code rtems_timer_ident( rtems_name name, rtems_id *id ) { 58cf8: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( 58cfc: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 58d00: 2f3c 7fff ffff movel #2147483647,%sp@- <== NOT EXECUTED 58d06: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 58d0a: 4879 0007 d3ee pea 7d3ee <_Timer_Information> <== NOT EXECUTED 58d10: 4eb9 0005 b9cc jsr 5b9cc <_Objects_Name_to_id_u32> <== NOT EXECUTED name, OBJECTS_SEARCH_LOCAL_NODE, id ); return _Status_Object_name_errors_to_status[ status ]; 58d16: 41f9 0007 6818 lea 76818 <_Status_Object_name_errors_to_status>,%a0<== NOT EXECUTED } 58d1c: 4e5e unlk %fp <== NOT EXECUTED 58d1e: 2030 0c00 movel %a0@(00000000,%d0:l:4),%d0 <== NOT EXECUTED =============================================================================== 00059420 : rtems_status_code rtems_timer_initiate_server( uint32_t priority, uint32_t stack_size, rtems_attribute attribute_set ) { 59420: 4e56 fffc linkw %fp,#-4 <== NOT EXECUTED 59424: 202e 0008 movel %fp@(8),%d0 <== NOT EXECUTED 59428: 2f03 movel %d3,%sp@- <== NOT EXECUTED 5942a: 2f02 movel %d2,%sp@- <== NOT EXECUTED 5942c: 4a80 tstl %d0 <== NOT EXECUTED 5942e: 6748 beqs 59478 <== NOT EXECUTED ( the_priority <= RTEMS_MAXIMUM_PRIORITY ) ); 59430: 4281 clrl %d1 <== NOT EXECUTED 59432: 1239 0007 7602 moveb 77602 ,%d1 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid ( rtems_task_priority the_priority ) { return ( ( the_priority >= RTEMS_MINIMUM_PRIORITY ) && 59438: b280 cmpl %d0,%d1 <== NOT EXECUTED 5943a: 644a bccs 59486 <== 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 ) 5943c: 72ff moveq #-1,%d1 <== NOT EXECUTED 5943e: b280 cmpl %d0,%d1 <== NOT EXECUTED 59440: 6636 bnes 59478 <== NOT EXECUTED 59442: 2239 0007 d1d8 movel 7d1d8 <_Thread_Dispatch_disable_level>,%d1<== NOT EXECUTED 59448: 5281 addql #1,%d1 <== NOT EXECUTED return RTEMS_INVALID_PRIORITY; _priority = 0; 5944a: 4283 clrl %d3 <== NOT EXECUTED 5944c: 23c1 0007 d1d8 movel %d1,7d1d8 <_Thread_Dispatch_disable_level><== NOT EXECUTED /* * Just to make sure this is only called once. */ _Thread_Disable_dispatch(); tmpInitialized = initialized; initialized = true; 59452: 7001 moveq #1,%d0 <== NOT EXECUTED /* * Just to make sure this is only called once. */ _Thread_Disable_dispatch(); tmpInitialized = initialized; 59454: 1439 0007 86be moveb 786be ,%d2 <== NOT EXECUTED initialized = true; 5945a: 13c0 0007 86be moveb %d0,786be <== NOT EXECUTED _Thread_Enable_dispatch(); 59460: 4eb9 0005 c12a jsr 5c12a <_Thread_Enable_dispatch> <== NOT EXECUTED if ( tmpInitialized ) 59466: 4a02 tstb %d2 <== NOT EXECUTED 59468: 6744 beqs 594ae <== NOT EXECUTED initialized = false; } #endif return status; } 5946a: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED tmpInitialized = initialized; initialized = true; _Thread_Enable_dispatch(); if ( tmpInitialized ) return RTEMS_INCORRECT_STATE; 5946e: 700e moveq #14,%d0 <== NOT EXECUTED initialized = false; } #endif return status; } 59470: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED 59474: 4e5e unlk %fp <== NOT EXECUTED 59476: 4e75 rts <== NOT EXECUTED 59478: 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; 5947c: 7013 moveq #19,%d0 <== NOT EXECUTED initialized = false; } #endif return status; } 5947e: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED 59482: 4e5e unlk %fp <== NOT EXECUTED 59484: 4e75 rts <== NOT EXECUTED 59486: 2239 0007 d1d8 movel 7d1d8 <_Thread_Dispatch_disable_level>,%d1<== NOT EXECUTED 5948c: 5281 addql #1,%d1 <== NOT EXECUTED 5948e: 2600 movel %d0,%d3 <== NOT EXECUTED 59490: 23c1 0007 d1d8 movel %d1,7d1d8 <_Thread_Dispatch_disable_level><== NOT EXECUTED /* * Just to make sure this is only called once. */ _Thread_Disable_dispatch(); tmpInitialized = initialized; initialized = true; 59496: 7001 moveq #1,%d0 <== NOT EXECUTED /* * Just to make sure this is only called once. */ _Thread_Disable_dispatch(); tmpInitialized = initialized; 59498: 1439 0007 86be moveb 786be ,%d2 <== NOT EXECUTED initialized = true; 5949e: 13c0 0007 86be moveb %d0,786be <== NOT EXECUTED _Thread_Enable_dispatch(); 594a4: 4eb9 0005 c12a jsr 5c12a <_Thread_Enable_dispatch> <== NOT EXECUTED if ( tmpInitialized ) 594aa: 4a02 tstb %d2 <== NOT EXECUTED 594ac: 66bc bnes 5946a <== 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( 594ae: 222e 0010 movel %fp@(16),%d1 <== NOT EXECUTED 594b2: 486e fffc pea %fp@(-4) <== NOT EXECUTED 594b6: 08c1 000f bset #15,%d1 <== NOT EXECUTED 594ba: 2f01 movel %d1,%sp@- <== NOT EXECUTED 594bc: 4878 0100 pea 100 <== NOT EXECUTED 594c0: 2f2e 000c movel %fp@(12),%sp@- <== NOT EXECUTED 594c4: 2f03 movel %d3,%sp@- <== NOT EXECUTED 594c6: 2f3c 5449 4d45 movel #1414090053,%sp@- <== NOT EXECUTED 594cc: 4eb9 0005 8048 jsr 58048 <== 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) { 594d2: 4fef 0018 lea %sp@(24),%sp <== NOT EXECUTED 594d6: 4a80 tstl %d0 <== NOT EXECUTED 594d8: 6714 beqs 594ee <== NOT EXECUTED initialized = false; } #endif return status; } 594da: 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; 594de: 4201 clrb %d1 <== NOT EXECUTED initialized = false; } #endif return status; } 594e0: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED 594e4: 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; 594e6: 13c1 0007 86be moveb %d1,786be <== NOT EXECUTED initialized = false; } #endif return status; } 594ec: 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) 594ee: 202e fffc movel %fp@(-4),%d0 <== NOT EXECUTED */ #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return NULL; #endif return information->local_table[ index ]; 594f2: 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( 594f4: 2079 0007 d16c moveal 7d16c <_RTEMS_tasks_Information+0x18>,%a0<== NOT EXECUTED 594fa: 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; 594fc: 2239 0007 d304 movel 7d304 <_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( 59502: 41f0 2c00 lea %a0@(00000000,%d2:l:4),%a0 <== NOT EXECUTED 59506: 23d0 0007 8640 movel %a0@,78640 <_Timer_server_Default> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 5950c: 41f9 0007 8674 lea 78674 <_Timer_server_Default+0x34>,%a0 <== NOT EXECUTED _Timer_server = ts; /* * Start the timer server */ status = rtems_task_start( 59512: 4879 0007 8640 pea 78640 <_Timer_server_Default> <== NOT EXECUTED 59518: 487a fb6e pea %pc@(59088 <_Timer_server_Body>) <== NOT EXECUTED 5951c: 23c8 0007 8670 movel %a0,78670 <_Timer_server_Default+0x30><== NOT EXECUTED the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 59522: 41f9 0007 8670 lea 78670 <_Timer_server_Default+0x30>,%a0 <== NOT EXECUTED 59528: 23c8 0007 8678 movel %a0,78678 <_Timer_server_Default+0x38><== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 5952e: 41f9 0007 86ac lea 786ac <_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; 59534: 23c1 0007 867c movel %d1,7867c <_Timer_server_Default+0x3c><== NOT EXECUTED the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 5953a: 223c 0007 86a8 movel #493224,%d1 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 59540: 23c8 0007 86a8 movel %a0,786a8 <_Timer_server_Default+0x68><== NOT EXECUTED ts->TOD_watchdogs.last_snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); 59546: 41f9 0007 d262 lea 7d262 <_TOD_Now>,%a0 <== NOT EXECUTED the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 5954c: 23c1 0007 86b0 movel %d1,786b0 <_Timer_server_Default+0x70><== NOT EXECUTED 59552: 23d0 0007 86b4 movel %a0@,786b4 <_Timer_server_Default+0x74><== NOT EXECUTED Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 59558: 223c 0005 bf84 movel #376708,%d1 <== NOT EXECUTED 5955e: 41f9 0005 bf84 lea 5bf84 <_Thread_Delay_ended>,%a0 <== NOT EXECUTED 59564: 23c1 0007 8664 movel %d1,78664 <_Timer_server_Default+0x24><== NOT EXECUTED ts->insert_chain = NULL; ts->active = false; 5956a: 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; 5956c: 42b9 0007 86b8 clrl 786b8 <_Timer_server_Default+0x78> <== NOT EXECUTED ts->active = false; 59572: 13c1 0007 86bc moveb %d1,786bc <_Timer_server_Default+0x7c><== NOT EXECUTED 59578: 23c8 0007 869c movel %a0,7869c <_Timer_server_Default+0x5c><== NOT EXECUTED /* * The default timer server is now available. */ _Timer_server = ts; 5957e: 41f9 0007 8640 lea 78640 <_Timer_server_Default>,%a0 <== NOT EXECUTED /* * Start the timer server */ status = rtems_task_start( 59584: 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; 59586: 223c 0005 92c4 movel #365252,%d1 <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 5958c: 42b9 0007 8674 clrl 78674 <_Timer_server_Default+0x34> <== NOT EXECUTED 59592: 42b9 0007 86ac clrl 786ac <_Timer_server_Default+0x6c> <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 59598: 42b9 0007 8650 clrl 78650 <_Timer_server_Default+0x10> <== NOT EXECUTED 5959e: 23c1 0007 8644 movel %d1,78644 <_Timer_server_Default+0x4> <== NOT EXECUTED the_watchdog->routine = routine; the_watchdog->id = id; 595a4: 23c0 0007 8668 movel %d0,78668 <_Timer_server_Default+0x28><== NOT EXECUTED ts->active = false; /* * The default timer server is now available. */ _Timer_server = ts; 595aa: 23c8 0007 d426 movel %a0,7d426 <_Timer_server> <== NOT EXECUTED the_watchdog->user_data = user_data; 595b0: 42b9 0007 866c clrl 7866c <_Timer_server_Default+0x2c> <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 595b6: 42b9 0007 8688 clrl 78688 <_Timer_server_Default+0x48> <== NOT EXECUTED the_watchdog->routine = routine; the_watchdog->id = id; 595bc: 23c0 0007 86a0 movel %d0,786a0 <_Timer_server_Default+0x60><== NOT EXECUTED the_watchdog->user_data = user_data; 595c2: 42b9 0007 86a4 clrl 786a4 <_Timer_server_Default+0x64> <== NOT EXECUTED /* * Start the timer server */ status = rtems_task_start( 595c8: 4eb9 0005 8754 jsr 58754 <== NOT EXECUTED initialized = false; } #endif return status; } 595ce: 242e fff4 movel %fp@(-12),%d2 <== NOT EXECUTED if (status) { initialized = false; } #endif return status; 595d2: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED } 595d6: 262e fff8 movel %fp@(-8),%d3 <== NOT EXECUTED 595da: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 00058d24 : */ rtems_status_code rtems_timer_reset( rtems_id id ) { 58d24: 4e56 fff0 linkw %fp,#-16 <== NOT EXECUTED 58d28: 48d7 0c04 moveml %d2/%a2-%a3,%sp@ <== NOT EXECUTED 58d2c: 486e fffc pea %fp@(-4) <== NOT EXECUTED 58d30: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 58d34: 4879 0007 d3ee pea 7d3ee <_Timer_Information> <== NOT EXECUTED 58d3a: 4eb9 0005 b840 jsr 5b840 <_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 ) { 58d40: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 58d44: 2440 moveal %d0,%a2 <== NOT EXECUTED 58d46: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 58d4a: 670e beqs 58d5a <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 58d4c: 7404 moveq #4,%d2 <== NOT EXECUTED } 58d4e: 2002 movel %d2,%d0 <== NOT EXECUTED 58d50: 4cee 0c04 fff0 moveml %fp@(-16),%d2/%a2-%a3 <== NOT EXECUTED 58d56: 4e5e unlk %fp <== NOT EXECUTED 58d58: 4e75 rts <== NOT EXECUTED the_timer = _Timer_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( the_timer->the_class == TIMER_INTERVAL ) { 58d5a: 202a 0038 movel %a2@(56),%d0 <== NOT EXECUTED 58d5e: 671a beqs 58d7a <== 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 ) { 58d60: 7201 moveq #1,%d1 <== NOT EXECUTED 58d62: b280 cmpl %d0,%d1 <== NOT EXECUTED 58d64: 673c beqs 58da2 <== 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; 58d66: 740b moveq #11,%d2 <== NOT EXECUTED } _Thread_Enable_dispatch(); 58d68: 4eb9 0005 c12a jsr 5c12a <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 58d6e: 2002 movel %d2,%d0 <== NOT EXECUTED 58d70: 4cee 0c04 fff0 moveml %fp@(-16),%d2/%a2-%a3 <== NOT EXECUTED 58d76: 4e5e unlk %fp <== NOT EXECUTED 58d78: 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 ); 58d7a: 45ea 0010 lea %a2@(16),%a2 <== NOT EXECUTED rtems_id id ) { Timer_Control *the_timer; Objects_Locations location; rtems_status_code status = RTEMS_SUCCESSFUL; 58d7e: 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 ); 58d80: 2f0a movel %a2,%sp@- <== NOT EXECUTED 58d82: 4eb9 0005 d6c4 jsr 5d6c4 <_Watchdog_Remove> <== NOT EXECUTED _Watchdog_Insert( &_Watchdog_Ticks_chain, &the_timer->Ticker ); 58d88: 2f0a movel %a2,%sp@- <== NOT EXECUTED 58d8a: 4879 0007 d29a pea 7d29a <_Watchdog_Ticks_chain> <== NOT EXECUTED 58d90: 4eb9 0005 d57c jsr 5d57c <_Watchdog_Insert> <== NOT EXECUTED 58d96: 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(); 58d9a: 4eb9 0005 c12a jsr 5c12a <_Thread_Enable_dispatch> <== NOT EXECUTED 58da0: 60cc bras 58d6e <== NOT EXECUTED if ( !timer_server ) { _Thread_Enable_dispatch(); return RTEMS_INCORRECT_STATE; } #endif _Watchdog_Remove( &the_timer->Ticker ); 58da2: 486a 0010 pea %a2@(16) <== NOT EXECUTED rtems_id id ) { Timer_Control *the_timer; Objects_Locations location; rtems_status_code status = RTEMS_SUCCESSFUL; 58da6: 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; 58da8: 2679 0007 d426 moveal 7d426 <_Timer_server>,%a3 <== NOT EXECUTED if ( !timer_server ) { _Thread_Enable_dispatch(); return RTEMS_INCORRECT_STATE; } #endif _Watchdog_Remove( &the_timer->Ticker ); 58dae: 4eb9 0005 d6c4 jsr 5d6c4 <_Watchdog_Remove> <== NOT EXECUTED (*timer_server->schedule_operation)( timer_server, the_timer ); 58db4: 2f0a movel %a2,%sp@- <== NOT EXECUTED 58db6: 2f0b movel %a3,%sp@- <== NOT EXECUTED 58db8: 206b 0004 moveal %a3@(4),%a0 <== NOT EXECUTED 58dbc: 4e90 jsr %a0@ <== NOT EXECUTED 58dbe: 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(); 58dc2: 4eb9 0005 c12a jsr 5c12a <_Thread_Enable_dispatch> <== NOT EXECUTED 58dc8: 60a4 bras 58d6e <== NOT EXECUTED ... =============================================================================== 00058dcc : rtems_id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { 58dcc: 4e56 ffe8 linkw %fp,#-24 <== NOT EXECUTED 58dd0: 48d7 0c1c moveml %d2-%d4/%a2-%a3,%sp@ <== NOT EXECUTED 58dd4: 282e 0008 movel %fp@(8),%d4 <== NOT EXECUTED 58dd8: 262e 000c movel %fp@(12),%d3 <== NOT EXECUTED 58ddc: 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; 58de0: 2479 0007 d426 moveal 7d426 <_Timer_server>,%a2 <== NOT EXECUTED if ( !timer_server ) 58de6: 4a8a tstl %a2 <== NOT EXECUTED 58de8: 6700 009c beqw 58e86 <== NOT EXECUTED return RTEMS_INCORRECT_STATE; if ( !routine ) 58dec: 4a82 tstl %d2 <== NOT EXECUTED 58dee: 6700 00a2 beqw 58e92 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( ticks == 0 ) 58df2: 4a83 tstl %d3 <== NOT EXECUTED 58df4: 660c bnes 58e02 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; 58df6: 700a moveq #10,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 58df8: 4cee 0c1c ffe8 moveml %fp@(-24),%d2-%d4/%a2-%a3 <== NOT EXECUTED 58dfe: 4e5e unlk %fp <== NOT EXECUTED 58e00: 4e75 rts <== NOT EXECUTED 58e02: 486e fffc pea %fp@(-4) <== NOT EXECUTED 58e06: 2f04 movel %d4,%sp@- <== NOT EXECUTED 58e08: 4879 0007 d3ee pea 7d3ee <_Timer_Information> <== NOT EXECUTED 58e0e: 4eb9 0005 b840 jsr 5b840 <_Objects_Get> <== NOT EXECUTED if ( ticks == 0 ) return RTEMS_INVALID_NUMBER; the_timer = _Timer_Get( id, &location ); switch ( location ) { 58e14: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 58e18: 2640 moveal %d0,%a3 <== NOT EXECUTED 58e1a: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 58e1e: 665a bnes 58e7a <== NOT EXECUTED case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); 58e20: 486b 0010 pea %a3@(16) <== NOT EXECUTED 58e24: 4eb9 0005 d6c4 jsr 5d6c4 <_Watchdog_Remove> <== NOT EXECUTED _ISR_Disable( level ); 58e2a: 203c 0000 0700 movel #1792,%d0 <== NOT EXECUTED 58e30: 40c1 movew %sr,%d1 <== NOT EXECUTED 58e32: 8081 orl %d1,%d0 <== NOT EXECUTED 58e34: 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 ) { 58e36: 588f addql #4,%sp <== NOT EXECUTED 58e38: 4aab 0018 tstl %a3@(24) <== NOT EXECUTED 58e3c: 6660 bnes 58e9e <== 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; 58e3e: 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; 58e40: 276e 0014 0034 movel %fp@(20),%a3@(52) <== NOT EXECUTED 58e46: 2740 0038 movel %d0,%a3@(56) <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 58e4a: 42ab 0018 clrl %a3@(24) <== NOT EXECUTED the_watchdog->routine = routine; 58e4e: 2742 002c movel %d2,%a3@(44) <== NOT EXECUTED the_watchdog->id = id; 58e52: 2744 0030 movel %d4,%a3@(48) <== NOT EXECUTED _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); the_timer->Ticker.initial = ticks; 58e56: 2743 001c movel %d3,%a3@(28) <== NOT EXECUTED _ISR_Enable( level ); 58e5a: 46c1 movew %d1,%sr <== NOT EXECUTED (*timer_server->schedule_operation)( timer_server, the_timer ); 58e5c: 2f0b movel %a3,%sp@- <== NOT EXECUTED 58e5e: 2f0a movel %a2,%sp@- <== NOT EXECUTED 58e60: 206a 0004 moveal %a2@(4),%a0 <== NOT EXECUTED 58e64: 4e90 jsr %a0@ <== NOT EXECUTED _Thread_Enable_dispatch(); 58e66: 4eb9 0005 c12a jsr 5c12a <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; 58e6c: 508f addql #8,%sp <== NOT EXECUTED 58e6e: 4280 clrl %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 #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 58e7a: 7004 moveq #4,%d0 <== NOT EXECUTED } 58e7c: 4cee 0c1c ffe8 moveml %fp@(-24),%d2-%d4/%a2-%a3 <== NOT EXECUTED 58e82: 4e5e unlk %fp <== NOT EXECUTED 58e84: 4e75 rts <== NOT EXECUTED Objects_Locations location; ISR_Level level; Timer_server_Control *timer_server = _Timer_server; if ( !timer_server ) return RTEMS_INCORRECT_STATE; 58e86: 700e moveq #14,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 58e88: 4cee 0c1c ffe8 moveml %fp@(-24),%d2-%d4/%a2-%a3 <== NOT EXECUTED 58e8e: 4e5e unlk %fp <== NOT EXECUTED 58e90: 4e75 rts <== NOT EXECUTED if ( !timer_server ) return RTEMS_INCORRECT_STATE; if ( !routine ) return RTEMS_INVALID_ADDRESS; 58e92: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 58e94: 4cee 0c1c ffe8 moveml %fp@(-24),%d2-%d4/%a2-%a3 <== NOT EXECUTED 58e9a: 4e5e unlk %fp <== NOT EXECUTED 58e9c: 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 ); 58e9e: 46c1 movew %d1,%sr <== NOT EXECUTED _Thread_Enable_dispatch(); 58ea0: 4eb9 0005 c12a jsr 5c12a <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; 58ea6: 4280 clrl %d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 58ea8: 4cee 0c1c ffe8 moveml %fp@(-24),%d2-%d4/%a2-%a3 <== NOT EXECUTED 58eae: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 00058eb4 : rtems_id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) { 58eb4: 4e56 ffec linkw %fp,#-20 <== NOT EXECUTED 58eb8: 48d7 0c0c moveml %d2-%d3/%a2-%a3,%sp@ <== NOT EXECUTED 58ebc: 242e 000c movel %fp@(12),%d2 <== NOT EXECUTED 58ec0: 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; 58ec4: 2479 0007 d426 moveal 7d426 <_Timer_server>,%a2 <== NOT EXECUTED if ( !timer_server ) 58eca: 4a8a tstl %a2 <== NOT EXECUTED 58ecc: 6700 00c8 beqw 58f96 <== NOT EXECUTED return RTEMS_INCORRECT_STATE; if ( !_TOD_Is_set ) 58ed0: 4a39 0007 d1e8 tstb 7d1e8 <_TOD_Is_set> <== NOT EXECUTED 58ed6: 6700 00a6 beqw 58f7e <== NOT EXECUTED return RTEMS_NOT_DEFINED; if ( !routine ) 58eda: 4a83 tstl %d3 <== NOT EXECUTED 58edc: 6700 00ac beqw 58f8a <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !_TOD_Validate( wall_time ) ) 58ee0: 2f02 movel %d2,%sp@- <== NOT EXECUTED 58ee2: 4eb9 0005 5bf0 jsr 55bf0 <_TOD_Validate> <== NOT EXECUTED 58ee8: 588f addql #4,%sp <== NOT EXECUTED 58eea: 4a00 tstb %d0 <== NOT EXECUTED 58eec: 660c bnes 58efa <== NOT EXECUTED return RTEMS_INVALID_CLOCK; seconds = _TOD_To_seconds( wall_time ); if ( seconds <= _TOD_Seconds_since_epoch() ) return RTEMS_INVALID_CLOCK; 58eee: 7014 moveq #20,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 58ef0: 4cee 0c0c ffec moveml %fp@(-20),%d2-%d3/%a2-%a3 <== NOT EXECUTED 58ef6: 4e5e unlk %fp <== NOT EXECUTED 58ef8: 4e75 rts <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !_TOD_Validate( wall_time ) ) return RTEMS_INVALID_CLOCK; seconds = _TOD_To_seconds( wall_time ); 58efa: 2f02 movel %d2,%sp@- <== NOT EXECUTED 58efc: 4eb9 0005 5ae8 jsr 55ae8 <_TOD_To_seconds> <== NOT EXECUTED if ( seconds <= _TOD_Seconds_since_epoch() ) 58f02: 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 ); 58f04: 2400 movel %d0,%d2 <== NOT EXECUTED if ( seconds <= _TOD_Seconds_since_epoch() ) 58f06: b0b9 0007 d262 cmpl 7d262 <_TOD_Now>,%d0 <== NOT EXECUTED 58f0c: 63e0 blss 58eee <== NOT EXECUTED 58f0e: 486e fffc pea %fp@(-4) <== NOT EXECUTED 58f12: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 58f16: 4879 0007 d3ee pea 7d3ee <_Timer_Information> <== NOT EXECUTED 58f1c: 4eb9 0005 b840 jsr 5b840 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_CLOCK; the_timer = _Timer_Get( id, &location ); switch ( location ) { 58f22: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 58f26: 2640 moveal %d0,%a3 <== NOT EXECUTED 58f28: 4aae fffc tstl %fp@(-4) <== NOT EXECUTED 58f2c: 6674 bnes 58fa2 <== NOT EXECUTED case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); 58f2e: 486b 0010 pea %a3@(16) <== NOT EXECUTED 58f32: 4eb9 0005 d6c4 jsr 5d6c4 <_Watchdog_Remove> <== NOT EXECUTED the_watchdog->user_data = user_data; 58f38: 276e 0014 0034 movel %fp@(20),%a3@(52) <== NOT EXECUTED the_timer->the_class = TIMER_TIME_OF_DAY_ON_TASK; 58f3e: 7003 moveq #3,%d0 <== NOT EXECUTED _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); the_timer->Ticker.initial = seconds - _TOD_Seconds_since_epoch(); 58f40: 94b9 0007 d262 subl 7d262 <_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; 58f46: 2740 0038 movel %d0,%a3@(56) <== NOT EXECUTED void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; the_watchdog->id = id; 58f4a: 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(); 58f4e: 2742 001c movel %d2,%a3@(28) <== NOT EXECUTED 58f52: 2740 0030 movel %d0,%a3@(48) <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 58f56: 42ab 0018 clrl %a3@(24) <== NOT EXECUTED the_watchdog->routine = routine; 58f5a: 2743 002c movel %d3,%a3@(44) <== NOT EXECUTED (*timer_server->schedule_operation)( timer_server, the_timer ); 58f5e: 2f0b movel %a3,%sp@- <== NOT EXECUTED 58f60: 2f0a movel %a2,%sp@- <== NOT EXECUTED 58f62: 206a 0004 moveal %a2@(4),%a0 <== NOT EXECUTED 58f66: 4e90 jsr %a0@ <== NOT EXECUTED _Thread_Enable_dispatch(); 58f68: 4eb9 0005 c12a jsr 5c12a <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; 58f6e: 4fef 000c lea %sp@(12),%sp <== NOT EXECUTED 58f72: 4280 clrl %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 if ( !timer_server ) return RTEMS_INCORRECT_STATE; if ( !_TOD_Is_set ) return RTEMS_NOT_DEFINED; 58f7e: 700b moveq #11,%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 if ( !_TOD_Is_set ) return RTEMS_NOT_DEFINED; if ( !routine ) return RTEMS_INVALID_ADDRESS; 58f8a: 7009 moveq #9,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 58f8c: 4cee 0c0c ffec moveml %fp@(-20),%d2-%d3/%a2-%a3 <== NOT EXECUTED 58f92: 4e5e unlk %fp <== NOT EXECUTED 58f94: 4e75 rts <== NOT EXECUTED Objects_Locations location; rtems_interval seconds; Timer_server_Control *timer_server = _Timer_server; if ( !timer_server ) return RTEMS_INCORRECT_STATE; 58f96: 700e moveq #14,%d0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 58f98: 4cee 0c0c ffec moveml %fp@(-20),%d2-%d3/%a2-%a3 <== NOT EXECUTED 58f9e: 4e5e unlk %fp <== NOT EXECUTED 58fa0: 4e75 rts <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; 58fa2: 7004 moveq #4,%d0 <== NOT EXECUTED } 58fa4: 4cee 0c0c ffec moveml %fp@(-20),%d2-%d3/%a2-%a3 <== NOT EXECUTED 58faa: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 000470e8 : */ bool rtems_workspace_allocate( uintptr_t bytes, void **pointer ) { 470e8: 4e56 0000 linkw %fp,#0 470ec: 202e 0008 movel %fp@(8),%d0 470f0: 2f0a movel %a2,%sp@- 470f2: 246e 000c moveal %fp@(12),%a2 void *ptr; /* * check the arguments */ if ( !pointer ) 470f6: 4a8a tstl %a2 470f8: 6704 beqs 470fe <== NEVER TAKEN return false; if ( !bytes ) 470fa: 4a80 tstl %d0 470fc: 660a bnes 47108 <== ALWAYS TAKEN if (!ptr) return false; *pointer = ptr; return true; } 470fe: 246e fffc moveal %fp@(-4),%a2 <== NOT EXECUTED 47102: 4e5e unlk %fp <== NOT EXECUTED /* * Allocate the memory */ ptr = _Protected_heap_Allocate( &_Workspace_Area, (intptr_t) bytes ); if (!ptr) return false; 47104: 4200 clrb %d0 <== NOT EXECUTED *pointer = ptr; return true; } 47106: 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 ); 47108: 42a7 clrl %sp@- 4710a: 42a7 clrl %sp@- 4710c: 2f00 movel %d0,%sp@- 4710e: 4879 0005 ef1a pea 5ef1a <_Workspace_Area> 47114: 4eb9 0004 87c0 jsr 487c0 <_Protected_heap_Allocate_aligned_with_boundary> /* * Allocate the memory */ ptr = _Protected_heap_Allocate( &_Workspace_Area, (intptr_t) bytes ); if (!ptr) 4711a: 4fef 0010 lea %sp@(16),%sp 4711e: 4a80 tstl %d0 47120: 67dc beqs 470fe <== NEVER TAKEN return false; *pointer = ptr; 47122: 2480 movel %d0,%a2@ return true; } 47124: 246e fffc moveal %fp@(-4),%a2 47128: 4e5e unlk %fp ptr = _Protected_heap_Allocate( &_Workspace_Area, (intptr_t) bytes ); if (!ptr) return false; *pointer = ptr; return true; 4712a: 7001 moveq #1,%d0 <== NOT EXECUTED } =============================================================================== 0004712e : * _Workspace_Allocate */ bool rtems_workspace_free( void *pointer ) { 4712e: 4e56 0000 linkw %fp,#0 <== NOT EXECUTED return _Protected_heap_Free( &_Workspace_Area, pointer ); 47132: 2f2e 0008 movel %fp@(8),%sp@- <== NOT EXECUTED 47136: 4879 0005 ef1a pea 5ef1a <_Workspace_Area> <== NOT EXECUTED 4713c: 4eb9 0004 8800 jsr 48800 <_Protected_heap_Free> <== NOT EXECUTED } 47142: 4e5e unlk %fp <== NOT EXECUTED ... =============================================================================== 000470c4 : #include /* for memset */ bool rtems_workspace_get_information( Heap_Information_block *the_info ) { 470c4: 4e56 0000 linkw %fp,#0 470c8: 202e 0008 movel %fp@(8),%d0 if ( !the_info ) 470cc: 6714 beqs 470e2 <== NEVER TAKEN return false; return _Protected_heap_Get_information( &_Workspace_Area, the_info ); 470ce: 2f00 movel %d0,%sp@- 470d0: 4879 0005 ef1a pea 5ef1a <_Workspace_Area> 470d6: 4eb9 0004 8838 jsr 48838 <_Protected_heap_Get_information> 470dc: 508f addql #8,%sp } 470de: 4e5e unlk %fp 470e0: 4e75 rts 470e2: 4e5e unlk %fp <== NOT EXECUTED bool rtems_workspace_get_information( Heap_Information_block *the_info ) { if ( !the_info ) return false; 470e4: 4200 clrb %d0 <== NOT EXECUTED return _Protected_heap_Get_information( &_Workspace_Area, the_info ); }