=============================================================================== a000f928 : /** * We should ensure the ticks not be truncated by integer division. We * need to have it be greater than or equal to the requested time. It * should not be shorter. */ microseconds_per_tick = rtems_configuration_get_microseconds_per_tick(); a000f928: e59f3030 ldr r3, [pc, #48] ; a000f960 <== NOT EXECUTED #include uint32_t TOD_MICROSECONDS_TO_TICKS( uint32_t microseconds ) { a000f92c: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED /** * We should ensure the ticks not be truncated by integer division. We * need to have it be greater than or equal to the requested time. It * should not be shorter. */ microseconds_per_tick = rtems_configuration_get_microseconds_per_tick(); a000f930: e593500c ldr r5, [r3, #12] <== NOT EXECUTED #include uint32_t TOD_MICROSECONDS_TO_TICKS( uint32_t microseconds ) { a000f934: e1a06000 mov r6, r0 <== NOT EXECUTED * We should ensure the ticks not be truncated by integer division. We * need to have it be greater than or equal to the requested time. It * should not be shorter. */ microseconds_per_tick = rtems_configuration_get_microseconds_per_tick(); ticks = microseconds / microseconds_per_tick; a000f938: e1a01005 mov r1, r5 <== NOT EXECUTED a000f93c: eb004a5d bl a00222b8 <__aeabi_uidiv> <== NOT EXECUTED if ( (microseconds % microseconds_per_tick) != 0 ) a000f940: e1a01005 mov r1, r5 <== NOT EXECUTED * We should ensure the ticks not be truncated by integer division. We * need to have it be greater than or equal to the requested time. It * should not be shorter. */ microseconds_per_tick = rtems_configuration_get_microseconds_per_tick(); ticks = microseconds / microseconds_per_tick; a000f944: e1a04000 mov r4, r0 <== NOT EXECUTED if ( (microseconds % microseconds_per_tick) != 0 ) a000f948: e1a00006 mov r0, r6 <== NOT EXECUTED a000f94c: eb004a9f bl a00223d0 <__umodsi3> <== NOT EXECUTED a000f950: e3500000 cmp r0, #0 <== NOT EXECUTED ticks += 1; a000f954: 12844001 addne r4, r4, #1 <== NOT EXECUTED return ticks; } a000f958: e1a00004 mov r0, r4 <== NOT EXECUTED a000f95c: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED =============================================================================== a0019d08 <_CORE_message_queue_Broadcast>: { Thread_Control *the_thread; uint32_t number_broadcasted; Thread_Wait_information *waitp; if ( size > the_message_queue->maximum_message_size ) { a0019d08: e590304c ldr r3, [r0, #76] ; 0x4c Objects_Id id __attribute__((unused)), CORE_message_queue_API_mp_support_callout api_message_queue_mp_support __attribute__((unused)), #endif uint32_t *count ) { a0019d0c: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} Thread_Control *the_thread; uint32_t number_broadcasted; Thread_Wait_information *waitp; if ( size > the_message_queue->maximum_message_size ) { a0019d10: e1520003 cmp r2, r3 Objects_Id id __attribute__((unused)), CORE_message_queue_API_mp_support_callout api_message_queue_mp_support __attribute__((unused)), #endif uint32_t *count ) { a0019d14: e1a06000 mov r6, r0 a0019d18: e1a0a001 mov sl, r1 a0019d1c: e1a07002 mov r7, r2 a0019d20: e59d8020 ldr r8, [sp, #32] Thread_Control *the_thread; uint32_t number_broadcasted; Thread_Wait_information *waitp; if ( size > the_message_queue->maximum_message_size ) { a0019d24: 8a000013 bhi a0019d78 <_CORE_message_queue_Broadcast+0x70> * 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 ) { a0019d28: e5905048 ldr r5, [r0, #72] ; 0x48 a0019d2c: e3550000 cmp r5, #0 a0019d30: 0a000009 beq a0019d5c <_CORE_message_queue_Broadcast+0x54> *count = 0; a0019d34: e3a00000 mov r0, #0 a0019d38: e5880000 str r0, [r8] return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; a0019d3c: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} const void *source, void *destination, size_t size ) { memcpy(destination, source, size); a0019d40: e594002c ldr r0, [r4, #44] ; 0x2c a0019d44: e1a0100a mov r1, sl a0019d48: e1a02007 mov r2, r7 a0019d4c: eb001cc7 bl a0021070 buffer, waitp->return_argument_second.mutable_object, size ); *(size_t *) the_thread->Wait.return_argument = size; a0019d50: e5943028 ldr r3, [r4, #40] ; 0x28 */ number_broadcasted = 0; while ((the_thread = _Thread_queue_Dequeue(&the_message_queue->Wait_queue))) { waitp = &the_thread->Wait; number_broadcasted += 1; a0019d54: e2855001 add r5, r5, #1 buffer, waitp->return_argument_second.mutable_object, size ); *(size_t *) the_thread->Wait.return_argument = size; a0019d58: e5837000 str r7, [r3] /* * There must be no pending messages if there is a thread waiting to * receive a message. */ number_broadcasted = 0; while ((the_thread = a0019d5c: e1a00006 mov r0, r6 a0019d60: eb000b3f bl a001ca64 <_Thread_queue_Dequeue> a0019d64: e2504000 subs r4, r0, #0 a0019d68: 1afffff4 bne a0019d40 <_CORE_message_queue_Broadcast+0x38> if ( !_Objects_Is_local_id( the_thread->Object.id ) ) (*api_message_queue_mp_support) ( the_thread, id ); #endif } *count = number_broadcasted; a0019d6c: e5885000 str r5, [r8] return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; a0019d70: e1a00004 mov r0, r4 a0019d74: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} 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; a0019d78: e3a00001 mov r0, #1 <== NOT EXECUTED #endif } *count = number_broadcasted; return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; } a0019d7c: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED =============================================================================== a0012a98 <_CORE_message_queue_Initialize>: 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 ) { a0012a98: e92d40f0 push {r4, r5, r6, r7, lr} /* * Check if allocated_message_size is aligned to uintptr-size boundary. * If not, it will increase allocated_message_size to multiplicity of pointer * size. */ if (allocated_message_size & (sizeof(uintptr_t) - 1)) { a0012a9c: e3130003 tst r3, #3 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 ) { a0012aa0: e1a04000 mov r4, r0 size_t message_buffering_required = 0; size_t allocated_message_size; the_message_queue->maximum_pending_messages = maximum_pending_messages; the_message_queue->number_of_pending_messages = 0; a0012aa4: e3a00000 mov r0, #0 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 ) { a0012aa8: e1a07001 mov r7, r1 a0012aac: e1a05002 mov r5, r2 size_t message_buffering_required = 0; size_t allocated_message_size; the_message_queue->maximum_pending_messages = maximum_pending_messages; a0012ab0: e5842044 str r2, [r4, #68] ; 0x44 the_message_queue->number_of_pending_messages = 0; a0012ab4: e5840048 str r0, [r4, #72] ; 0x48 the_message_queue->maximum_message_size = maximum_message_size; a0012ab8: e584304c str r3, [r4, #76] ; 0x4c /* * Check if allocated_message_size is aligned to uintptr-size boundary. * If not, it will increase allocated_message_size to multiplicity of pointer * size. */ if (allocated_message_size & (sizeof(uintptr_t) - 1)) { a0012abc: 01a06003 moveq r6, r3 a0012ac0: 0a000003 beq a0012ad4 <_CORE_message_queue_Initialize+0x3c> allocated_message_size += sizeof(uintptr_t); a0012ac4: e2836004 add r6, r3, #4 allocated_message_size &= ~(sizeof(uintptr_t) - 1); a0012ac8: e3c66003 bic r6, r6, #3 /* * Check for an overflow. It can occur while increasing allocated_message_size * to multiplicity of uintptr_t above. */ if (allocated_message_size < maximum_message_size) a0012acc: e1560003 cmp r6, r3 a0012ad0: 3a000021 bcc a0012b5c <_CORE_message_queue_Initialize+0xc4> /* * Calculate how much total memory is required for message buffering and * check for overflow on the multiplication. */ if ( !size_t_mult32_with_overflow( a0012ad4: e2866010 add r6, r6, #16 size_t a, size_t b, size_t *c ) { long long x = (long long)a*b; a0012ad8: e0810695 umull r0, r1, r5, r6 if ( x > SIZE_MAX ) a0012adc: e3e02000 mvn r2, #0 a0012ae0: e3a03000 mov r3, #0 a0012ae4: e1520000 cmp r2, r0 a0012ae8: e0d3c001 sbcs ip, r3, r1 a0012aec: ba000018 blt a0012b54 <_CORE_message_queue_Initialize+0xbc> /* * Attempt to allocate the message memory */ the_message_queue->message_buffers = (CORE_message_queue_Buffer *) _Workspace_Allocate( message_buffering_required ); a0012af0: eb000b2b bl a00157a4 <_Workspace_Allocate> if (the_message_queue->message_buffers == 0) a0012af4: e3500000 cmp r0, #0 /* * Attempt to allocate the message memory */ the_message_queue->message_buffers = (CORE_message_queue_Buffer *) _Workspace_Allocate( message_buffering_required ); a0012af8: e1a01000 mov r1, r0 return false; /* * Attempt to allocate the message memory */ the_message_queue->message_buffers = (CORE_message_queue_Buffer *) a0012afc: e584005c str r0, [r4, #92] ; 0x5c _Workspace_Allocate( message_buffering_required ); if (the_message_queue->message_buffers == 0) a0012b00: 0a000015 beq a0012b5c <_CORE_message_queue_Initialize+0xc4> /* * Initialize the pool of inactive messages, pending messages, * and set of waiting threads. */ _Chain_Initialize ( a0012b04: e2840060 add r0, r4, #96 ; 0x60 a0012b08: e1a02005 mov r2, r5 a0012b0c: e1a03006 mov r3, r6 a0012b10: ebffffd0 bl a0012a58 <_Chain_Initialize> allocated_message_size + sizeof( CORE_message_queue_Buffer_control ) ); _Chain_Initialize_empty( &the_message_queue->Pending_messages ); _Thread_queue_Initialize( a0012b14: e5971000 ldr r1, [r7] RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); a0012b18: e2843050 add r3, r4, #80 ; 0x50 a0012b1c: e2842054 add r2, r4, #84 ; 0x54 head->next = tail; head->previous = NULL; tail->previous = head; a0012b20: e5843058 str r3, [r4, #88] ; 0x58 a0012b24: e2413001 sub r3, r1, #1 a0012b28: e2731000 rsbs r1, r3, #0 ) { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); head->next = tail; a0012b2c: e5842050 str r2, [r4, #80] ; 0x50 head->previous = NULL; a0012b30: e3a02000 mov r2, #0 a0012b34: e5842054 str r2, [r4, #84] ; 0x54 a0012b38: e1a00004 mov r0, r4 a0012b3c: e0a11003 adc r1, r1, r3 a0012b40: e3a02080 mov r2, #128 ; 0x80 a0012b44: e3a03006 mov r3, #6 a0012b48: eb00091e bl a0014fc8 <_Thread_queue_Initialize> THREAD_QUEUE_DISCIPLINE_PRIORITY : THREAD_QUEUE_DISCIPLINE_FIFO, STATES_WAITING_FOR_MESSAGE, CORE_MESSAGE_QUEUE_STATUS_TIMEOUT ); return true; a0012b4c: e3a00001 mov r0, #1 a0012b50: e8bd80f0 pop {r4, r5, r6, r7, pc} */ if ( !size_t_mult32_with_overflow( (size_t) maximum_pending_messages, allocated_message_size + sizeof(CORE_message_queue_Buffer_control), &message_buffering_required ) ) return false; a0012b54: e3a00000 mov r0, #0 <== NOT EXECUTED a0012b58: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED STATES_WAITING_FOR_MESSAGE, CORE_MESSAGE_QUEUE_STATUS_TIMEOUT ); return true; } a0012b5c: e8bd80f0 pop {r4, r5, r6, r7, pc} =============================================================================== a0012c44 <_CORE_message_queue_Submit>: ) { CORE_message_queue_Buffer_control *the_message; Thread_Control *the_thread; if ( size > the_message_queue->maximum_message_size ) { a0012c44: e590304c ldr r3, [r0, #76] ; 0x4c #endif CORE_message_queue_Submit_types submit_type, bool wait, Watchdog_Interval timeout ) { a0012c48: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} CORE_message_queue_Buffer_control *the_message; Thread_Control *the_thread; if ( size > the_message_queue->maximum_message_size ) { a0012c4c: e1520003 cmp r2, r3 #endif CORE_message_queue_Submit_types submit_type, bool wait, Watchdog_Interval timeout ) { a0012c50: e1a05000 mov r5, r0 a0012c54: e1a0a001 mov sl, r1 a0012c58: e1a04002 mov r4, r2 a0012c5c: e59d7020 ldr r7, [sp, #32] CORE_message_queue_Buffer_control *the_message; Thread_Control *the_thread; if ( size > the_message_queue->maximum_message_size ) { a0012c60: 8a00001d bhi a0012cdc <_CORE_message_queue_Submit+0x98> } /* * Is there a thread currently waiting on this message queue? */ if ( the_message_queue->number_of_pending_messages == 0 ) { a0012c64: e5908048 ldr r8, [r0, #72] ; 0x48 a0012c68: e3580000 cmp r8, #0 a0012c6c: 1a00000b bne a0012ca0 <_CORE_message_queue_Submit+0x5c> the_thread = _Thread_queue_Dequeue( &the_message_queue->Wait_queue ); a0012c70: eb0007db bl a0014be4 <_Thread_queue_Dequeue> if ( the_thread ) { a0012c74: e2506000 subs r6, r0, #0 a0012c78: 0a000008 beq a0012ca0 <_CORE_message_queue_Submit+0x5c> const void *source, void *destination, size_t size ) { memcpy(destination, source, size); a0012c7c: e596002c ldr r0, [r6, #44] ; 0x2c a0012c80: e1a0100a mov r1, sl a0012c84: e1a02004 mov r2, r4 a0012c88: eb001aa7 bl a001972c _CORE_message_queue_Copy_buffer( buffer, the_thread->Wait.return_argument_second.mutable_object, size ); *(size_t *) the_thread->Wait.return_argument = size; a0012c8c: e5963028 ldr r3, [r6, #40] ; 0x28 #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; a0012c90: e1a00008 mov r0, r8 _CORE_message_queue_Copy_buffer( buffer, the_thread->Wait.return_argument_second.mutable_object, size ); *(size_t *) the_thread->Wait.return_argument = size; a0012c94: e5834000 str r4, [r3] the_thread->Wait.count = (uint32_t) submit_type; a0012c98: e5867024 str r7, [r6, #36] ; 0x24 #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; a0012c9c: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} RTEMS_INLINE_ROUTINE CORE_message_queue_Buffer_control * _CORE_message_queue_Allocate_message_buffer ( CORE_message_queue_Control *the_message_queue ) { return (CORE_message_queue_Buffer_control *) a0012ca0: e2850060 add r0, r5, #96 ; 0x60 a0012ca4: ebffff5e bl a0012a24 <_Chain_Get> * No one waiting on the message queue at this time, so attempt to * queue the message up for a future receive. */ the_message = _CORE_message_queue_Allocate_message_buffer( the_message_queue ); if ( the_message ) { a0012ca8: e2506000 subs r6, r0, #0 a0012cac: 0a00000c beq a0012ce4 <_CORE_message_queue_Submit+0xa0> const void *source, void *destination, size_t size ) { memcpy(destination, source, size); a0012cb0: e1a0100a mov r1, sl a0012cb4: e1a02004 mov r2, r4 a0012cb8: e286000c add r0, r6, #12 a0012cbc: eb001a9a bl a001972c size ); the_message->Contents.size = size; _CORE_message_queue_Set_message_priority( the_message, submit_type ); _CORE_message_queue_Insert_message( a0012cc0: e1a00005 mov r0, r5 _CORE_message_queue_Copy_buffer( buffer, the_message->Contents.buffer, size ); the_message->Contents.size = size; a0012cc4: e5864008 str r4, [r6, #8] _CORE_message_queue_Set_message_priority( the_message, submit_type ); _CORE_message_queue_Insert_message( a0012cc8: e1a01006 mov r1, r6 a0012ccc: e1a02007 mov r2, r7 a0012cd0: eb001135 bl a00171ac <_CORE_message_queue_Insert_message> the_message_queue, the_message, submit_type ); return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; a0012cd4: e3a00000 mov r0, #0 a0012cd8: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} { 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; a0012cdc: e3a00001 mov r0, #1 <== NOT EXECUTED a0012ce0: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED ); return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; } #if !defined(RTEMS_SCORE_COREMSG_ENABLE_BLOCKING_SEND) return CORE_MESSAGE_QUEUE_STATUS_TOO_MANY; a0012ce4: e3a00002 mov r0, #2 <== NOT EXECUTED _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); } return CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT; #endif } a0012ce8: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED =============================================================================== a000ada4 <_CORE_mutex_Surrender>: #else Objects_Id id __attribute__((unused)), CORE_mutex_API_mp_support_callout api_mutex_mp_support __attribute__((unused)) #endif ) { a000ada4: e92d4030 push {r4, r5, lr} a000ada8: e1a04000 mov r4, r0 * 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 ) { a000adac: e5d43044 ldrb r3, [r4, #68] ; 0x44 ) { Thread_Control *the_thread; Thread_Control *holder; holder = the_mutex->holder; a000adb0: e590005c ldr r0, [r0, #92] ; 0x5c * 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 ) { a000adb4: e3530000 cmp r3, #0 a000adb8: 0a000004 beq a000add0 <_CORE_mutex_Surrender+0x2c> RTEMS_INLINE_ROUTINE bool _Thread_Is_executing ( const Thread_Control *the_thread ) { return ( the_thread == _Thread_Executing ); a000adbc: e59f30f0 ldr r3, [pc, #240] ; a000aeb4 <_CORE_mutex_Surrender+0x110> if ( !_Thread_Is_executing( holder ) ) a000adc0: e5933008 ldr r3, [r3, #8] a000adc4: e1500003 cmp r0, r3 return CORE_MUTEX_STATUS_NOT_OWNER_OF_RESOURCE; a000adc8: 13a05002 movne r5, #2 * discipline. But Priority Ceiling or Priority Inheritance mutexes * must be released by the thread which acquired them. */ if ( the_mutex->Attributes.only_owner_release ) { if ( !_Thread_Is_executing( holder ) ) a000adcc: 1a000036 bne a000aeac <_CORE_mutex_Surrender+0x108> return CORE_MUTEX_STATUS_NOT_OWNER_OF_RESOURCE; } /* XXX already unlocked -- not right status */ if ( !the_mutex->nest_count ) a000add0: e5945054 ldr r5, [r4, #84] ; 0x54 a000add4: e3550000 cmp r5, #0 a000add8: 0a000033 beq a000aeac <_CORE_mutex_Surrender+0x108> return CORE_MUTEX_STATUS_SUCCESSFUL; the_mutex->nest_count--; a000addc: e2455001 sub r5, r5, #1 if ( the_mutex->nest_count != 0 ) { a000ade0: e3550000 cmp r5, #0 /* XXX already unlocked -- not right status */ if ( !the_mutex->nest_count ) return CORE_MUTEX_STATUS_SUCCESSFUL; the_mutex->nest_count--; a000ade4: e5845054 str r5, [r4, #84] ; 0x54 /* Currently no API exercises this behavior. */ break; } #else /* must be CORE_MUTEX_NESTING_ACQUIRES or we wouldn't be here */ return CORE_MUTEX_STATUS_SUCCESSFUL; a000ade8: 13a05000 movne r5, #0 if ( !the_mutex->nest_count ) return CORE_MUTEX_STATUS_SUCCESSFUL; the_mutex->nest_count--; if ( the_mutex->nest_count != 0 ) { a000adec: 1a00002e bne a000aeac <_CORE_mutex_Surrender+0x108> a000adf0: e5943048 ldr r3, [r4, #72] ; 0x48 /* * Formally release the mutex before possibly transferring it to a * blocked thread. */ if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || a000adf4: e3530002 cmp r3, #2 a000adf8: 0a000001 beq a000ae04 <_CORE_mutex_Surrender+0x60> a000adfc: e3530003 cmp r3, #3 a000ae00: 1a00000a bne a000ae30 <_CORE_mutex_Surrender+0x8c> _CORE_mutex_Pop_priority( the_mutex, holder ); if ( pop_status != CORE_MUTEX_STATUS_SUCCESSFUL ) return pop_status; holder->resource_count--; a000ae04: e590301c ldr r3, [r0, #28] a000ae08: e2433001 sub r3, r3, #1 /* * 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 && a000ae0c: e3530000 cmp r3, #0 _CORE_mutex_Pop_priority( the_mutex, holder ); if ( pop_status != CORE_MUTEX_STATUS_SUCCESSFUL ) return pop_status; holder->resource_count--; a000ae10: e580301c str r3, [r0, #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 && a000ae14: 1a000005 bne a000ae30 <_CORE_mutex_Surrender+0x8c> holder->real_priority != holder->current_priority ) { a000ae18: e5901018 ldr r1, [r0, #24] /* * 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 && a000ae1c: e5903014 ldr r3, [r0, #20] a000ae20: e1510003 cmp r1, r3 a000ae24: 0a000001 beq a000ae30 <_CORE_mutex_Surrender+0x8c> holder->real_priority != holder->current_priority ) { _Thread_Change_priority( holder, holder->real_priority, true ); a000ae28: e3a02001 mov r2, #1 a000ae2c: eb000534 bl a000c304 <_Thread_Change_priority> } } the_mutex->holder = NULL; a000ae30: e3a05000 mov r5, #0 a000ae34: e584505c str r5, [r4, #92] ; 0x5c the_mutex->holder_id = 0; a000ae38: e5845060 str r5, [r4, #96] ; 0x60 /* * 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 ) ) ) { a000ae3c: e1a00004 mov r0, r4 a000ae40: eb000710 bl a000ca88 <_Thread_queue_Dequeue> a000ae44: e3a02001 mov r2, #1 a000ae48: e2503000 subs r3, r0, #0 } break; } } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; a000ae4c: 05842050 streq r2, [r4, #80] ; 0x50 return CORE_MUTEX_STATUS_SUCCESSFUL; a000ae50: 01a05003 moveq r5, r3 /* * 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 ) ) ) { a000ae54: 0a000014 beq a000aeac <_CORE_mutex_Surrender+0x108> } else #endif { the_mutex->holder = the_thread; the_mutex->holder_id = the_thread->Object.id; a000ae58: e5931008 ldr r1, [r3, #8] the_mutex->nest_count = 1; a000ae5c: e5842054 str r2, [r4, #84] ; 0x54 switch ( the_mutex->Attributes.discipline ) { a000ae60: e5942048 ldr r2, [r4, #72] ; 0x48 } else #endif { the_mutex->holder = the_thread; a000ae64: e584305c str r3, [r4, #92] ; 0x5c the_mutex->holder_id = the_thread->Object.id; a000ae68: e5841060 str r1, [r4, #96] ; 0x60 the_mutex->nest_count = 1; switch ( the_mutex->Attributes.discipline ) { a000ae6c: e3520002 cmp r2, #2 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++; a000ae70: 0593201c ldreq r2, [r3, #28] a000ae74: 02822001 addeq r2, r2, #1 a000ae78: 0583201c streq r2, [r3, #28] the_mutex->holder = the_thread; the_mutex->holder_id = the_thread->Object.id; the_mutex->nest_count = 1; switch ( the_mutex->Attributes.discipline ) { a000ae7c: 0a00000a beq a000aeac <_CORE_mutex_Surrender+0x108> a000ae80: e3520003 cmp r2, #3 <== NOT EXECUTED a000ae84: 1a000008 bne a000aeac <_CORE_mutex_Surrender+0x108> <== 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++; a000ae88: e593201c ldr r2, [r3, #28] <== NOT EXECUTED if (the_mutex->Attributes.priority_ceiling < a000ae8c: e594104c ldr r1, [r4, #76] ; 0x4c <== 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++; a000ae90: e2822001 add r2, r2, #1 <== NOT EXECUTED a000ae94: e583201c str r2, [r3, #28] <== NOT EXECUTED if (the_mutex->Attributes.priority_ceiling < a000ae98: e5933014 ldr r3, [r3, #20] <== NOT EXECUTED a000ae9c: e1510003 cmp r1, r3 <== NOT EXECUTED a000aea0: 2a000001 bcs a000aeac <_CORE_mutex_Surrender+0x108> <== NOT EXECUTED the_thread->current_priority){ _Thread_Change_priority( a000aea4: e1a02005 mov r2, r5 <== NOT EXECUTED a000aea8: eb000515 bl a000c304 <_Thread_Change_priority> <== NOT EXECUTED } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; return CORE_MUTEX_STATUS_SUCCESSFUL; } a000aeac: e1a00005 mov r0, r5 a000aeb0: e8bd8030 pop {r4, r5, pc} =============================================================================== a000b2d0 <_Chain_Get_with_empty_check>: bool _Chain_Get_with_empty_check( Chain_Control *chain, Chain_Node **node ) { a000b2d0: e92d4010 push {r4, lr} <== NOT EXECUTED uint32_t level; #if defined(ARM_MULTILIB_ARCH_V4) uint32_t arm_switch_reg; __asm__ volatile ( a000b2d4: e10f4000 mrs r4, CPSR <== NOT EXECUTED a000b2d8: e3843080 orr r3, r4, #128 ; 0x80 <== NOT EXECUTED a000b2dc: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED ) { bool is_empty_now = true; Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); Chain_Node *old_first = head->next; a000b2e0: e5902000 ldr r2, [r0] <== NOT EXECUTED Chain_Node **the_node ) { bool is_empty_now = true; Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); a000b2e4: e280c004 add ip, r0, #4 <== NOT EXECUTED Chain_Node *old_first = head->next; if ( old_first != tail ) { a000b2e8: e152000c cmp r2, ip <== NOT EXECUTED *the_node = old_first; is_empty_now = new_first == tail; } else *the_node = NULL; a000b2ec: 03a03000 moveq r3, #0 <== NOT EXECUTED a000b2f0: 05813000 streq r3, [r1] <== 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; a000b2f4: 03a00001 moveq r0, #1 <== NOT EXECUTED Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); Chain_Node *old_first = head->next; if ( old_first != tail ) { a000b2f8: 0a000006 beq a000b318 <_Chain_Get_with_empty_check+0x48> <== NOT EXECUTED Chain_Node *new_first = old_first->next; a000b2fc: e5923000 ldr r3, [r2] <== NOT EXECUTED head->next = new_first; a000b300: e5803000 str r3, [r0] <== NOT EXECUTED new_first->previous = head; a000b304: e5830004 str r0, [r3, #4] <== NOT EXECUTED *the_node = old_first; is_empty_now = new_first == tail; a000b308: e06c3003 rsb r3, ip, r3 <== NOT EXECUTED a000b30c: e2730000 rsbs r0, r3, #0 <== NOT EXECUTED Chain_Node *new_first = old_first->next; head->next = new_first; new_first->previous = head; *the_node = old_first; a000b310: e5812000 str r2, [r1] <== NOT EXECUTED is_empty_now = new_first == tail; a000b314: e0a00003 adc r0, r0, r3 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { #if defined(ARM_MULTILIB_ARCH_V4) ARM_SWITCH_REGISTERS; __asm__ volatile ( a000b318: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED _ISR_Disable( level ); is_empty_now = _Chain_Get_with_empty_check_unprotected( chain, node ); _ISR_Enable( level ); return is_empty_now; } a000b31c: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a0009bd8 <_Event_Seize>: Thread_Control *executing, Event_Control *event, Thread_blocking_operation_States *sync_state, States_Control wait_state ) { a0009bd8: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} a0009bdc: e59d401c ldr r4, [sp, #28] rtems_event_set seized_events; rtems_event_set pending_events; ISR_Level level; Thread_blocking_operation_States current_sync_state; executing->Wait.return_code = RTEMS_SUCCESSFUL; a0009be0: e3a0c000 mov ip, #0 Thread_Control *executing, Event_Control *event, Thread_blocking_operation_States *sync_state, States_Control wait_state ) { a0009be4: e59da020 ldr sl, [sp, #32] a0009be8: e59d5024 ldr r5, [sp, #36] ; 0x24 a0009bec: e59d6028 ldr r6, [sp, #40] ; 0x28 rtems_event_set seized_events; rtems_event_set pending_events; ISR_Level level; Thread_blocking_operation_States current_sync_state; executing->Wait.return_code = RTEMS_SUCCESSFUL; a0009bf0: e584c034 str ip, [r4, #52] ; 0x34 uint32_t level; #if defined(ARM_MULTILIB_ARCH_V4) uint32_t arm_switch_reg; __asm__ volatile ( a0009bf4: e10f7000 mrs r7, CPSR a0009bf8: e387c080 orr ip, r7, #128 ; 0x80 a0009bfc: e129f00c msr CPSR_fc, ip _ISR_Disable( level ); pending_events = event->pending_events; a0009c00: e59a8000 ldr r8, [sl] seized_events = _Event_sets_Get( pending_events, event_in ); if ( !_Event_sets_Is_empty( seized_events ) && a0009c04: e010c008 ands ip, r0, r8 a0009c08: 0a000007 beq a0009c2c <_Event_Seize+0x54> a0009c0c: e15c0000 cmp ip, r0 a0009c10: 0a000001 beq a0009c1c <_Event_Seize+0x44> (seized_events == event_in || _Options_Is_any( option_set )) ) { a0009c14: e3110002 tst r1, #2 <== NOT EXECUTED a0009c18: 0a000003 beq a0009c2c <_Event_Seize+0x54> <== 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) ); a0009c1c: e1c8800c bic r8, r8, ip event->pending_events = a0009c20: e58a8000 str r8, [sl] static inline void arm_interrupt_enable( uint32_t level ) { #if defined(ARM_MULTILIB_ARCH_V4) ARM_SWITCH_REGISTERS; __asm__ volatile ( a0009c24: e129f007 msr CPSR_fc, r7 a0009c28: ea000004 b a0009c40 <_Event_Seize+0x68> _ISR_Enable( level ); *event_out = seized_events; return; } if ( _Options_Is_no_wait( option_set ) ) { a0009c2c: e3110001 tst r1, #1 a0009c30: 0a000004 beq a0009c48 <_Event_Seize+0x70> a0009c34: e129f007 msr CPSR_fc, r7 _ISR_Enable( level ); executing->Wait.return_code = RTEMS_UNSATISFIED; a0009c38: e3a0200d mov r2, #13 a0009c3c: e5842034 str r2, [r4, #52] ; 0x34 *event_out = seized_events; a0009c40: e583c000 str ip, [r3] return; a0009c44: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} * NOTE: Since interrupts are disabled, this isn't that much of an * issue but better safe than sorry. */ executing->Wait.option = option_set; executing->Wait.count = event_in; executing->Wait.return_argument = event_out; a0009c48: e5843028 str r3, [r4, #40] ; 0x28 *sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; a0009c4c: e3a03001 mov r3, #1 * 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 = option_set; a0009c50: e5841030 str r1, [r4, #48] ; 0x30 executing->Wait.count = event_in; a0009c54: e5840024 str r0, [r4, #36] ; 0x24 executing->Wait.return_argument = event_out; *sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; a0009c58: e5853000 str r3, [r5] a0009c5c: e129f007 msr CPSR_fc, r7 _ISR_Enable( level ); if ( ticks ) { a0009c60: e3520000 cmp r2, #0 a0009c64: 0a00000a beq a0009c94 <_Event_Seize+0xbc> Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; a0009c68: e3a01000 mov r1, #0 _Watchdog_Initialize( a0009c6c: e5943008 ldr r3, [r4, #8] a0009c70: e5841050 str r1, [r4, #80] ; 0x50 the_watchdog->routine = routine; a0009c74: e59f1058 ldr r1, [pc, #88] ; a0009cd4 <_Event_Seize+0xfc> the_watchdog->id = id; a0009c78: e5843068 str r3, [r4, #104] ; 0x68 the_watchdog->user_data = user_data; a0009c7c: e584506c str r5, [r4, #108] ; 0x6c Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; a0009c80: e5841064 str r1, [r4, #100] ; 0x64 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; a0009c84: e5842054 str r2, [r4, #84] ; 0x54 _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); a0009c88: e59f0048 ldr r0, [pc, #72] ; a0009cd8 <_Event_Seize+0x100> a0009c8c: e2841048 add r1, r4, #72 ; 0x48 a0009c90: eb000d89 bl a000d2bc <_Watchdog_Insert> sync_state ); _Watchdog_Insert_ticks( &executing->Timer, ticks ); } _Thread_Set_state( executing, wait_state ); a0009c94: e1a00004 mov r0, r4 a0009c98: e1a01006 mov r1, r6 a0009c9c: eb000cb6 bl a000cf7c <_Thread_Set_state> uint32_t level; #if defined(ARM_MULTILIB_ARCH_V4) uint32_t arm_switch_reg; __asm__ volatile ( a0009ca0: e10f2000 mrs r2, CPSR a0009ca4: e3823080 orr r3, r2, #128 ; 0x80 a0009ca8: e129f003 msr CPSR_fc, r3 _ISR_Disable( level ); current_sync_state = *sync_state; a0009cac: e5950000 ldr r0, [r5] *sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; a0009cb0: e3a03000 mov r3, #0 a0009cb4: e5853000 str r3, [r5] if ( current_sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) { a0009cb8: e3500001 cmp r0, #1 a0009cbc: 1a000001 bne a0009cc8 <_Event_Seize+0xf0> static inline void arm_interrupt_enable( uint32_t level ) { #if defined(ARM_MULTILIB_ARCH_V4) ARM_SWITCH_REGISTERS; __asm__ volatile ( a0009cc0: e129f002 msr CPSR_fc, r2 a0009cc4: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} * The blocking thread was satisfied by an ISR or timed out. * * WARNING! Entering with interrupts disabled and returning with interrupts * enabled! */ _Thread_blocking_operation_Cancel( current_sync_state, executing, level ); a0009cc8: e1a01004 mov r1, r4 <== NOT EXECUTED } a0009ccc: e8bd45f0 pop {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED * The blocking thread was satisfied by an ISR or timed out. * * WARNING! Entering with interrupts disabled and returning with interrupts * enabled! */ _Thread_blocking_operation_Cancel( current_sync_state, executing, level ); a0009cd0: ea000978 b a000c2b8 <_Thread_blocking_operation_Cancel> <== NOT EXECUTED =============================================================================== a0009d28 <_Event_Surrender>: rtems_event_set event_in, Event_Control *event, Thread_blocking_operation_States *sync_state, States_Control wait_state ) { a0009d28: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} a0009d2c: e59d801c ldr r8, [sp, #28] rtems_event_set pending_events; rtems_event_set event_condition; rtems_event_set seized_events; rtems_option option_set; option_set = the_thread->Wait.option; a0009d30: e5906030 ldr r6, [r0, #48] ; 0x30 rtems_event_set event_in, Event_Control *event, Thread_blocking_operation_States *sync_state, States_Control wait_state ) { a0009d34: e1a04000 mov r4, r0 uint32_t level; #if defined(ARM_MULTILIB_ARCH_V4) uint32_t arm_switch_reg; __asm__ volatile ( a0009d38: e10f0000 mrs r0, CPSR a0009d3c: e380c080 orr ip, r0, #128 ; 0x80 a0009d40: e129f00c msr CPSR_fc, ip RTEMS_INLINE_ROUTINE void _Event_sets_Post( rtems_event_set the_new_events, rtems_event_set *the_event_set ) { *the_event_set |= the_new_events; a0009d44: e592c000 ldr ip, [r2] a0009d48: e181100c orr r1, r1, ip a0009d4c: e5821000 str r1, [r2] option_set = the_thread->Wait.option; _ISR_Disable( level ); _Event_sets_Post( event_in, &event->pending_events ); pending_events = event->pending_events; event_condition = the_thread->Wait.count; a0009d50: e5945024 ldr r5, [r4, #36] ; 0x24 seized_events = _Event_sets_Get( pending_events, event_condition ); /* * No events were seized in this operation */ if ( _Event_sets_Is_empty( seized_events ) ) { a0009d54: e011c005 ands ip, r1, r5 a0009d58: 0a000035 beq a0009e34 <_Event_Surrender+0x10c> /* * 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() && a0009d5c: e59f70d8 ldr r7, [pc, #216] ; a0009e3c <_Event_Surrender+0x114> a0009d60: e597a000 ldr sl, [r7] a0009d64: e35a0000 cmp sl, #0 a0009d68: 0a000013 beq a0009dbc <_Event_Surrender+0x94> a0009d6c: e5977008 ldr r7, [r7, #8] <== NOT EXECUTED a0009d70: e1540007 cmp r4, r7 <== NOT EXECUTED a0009d74: 1a000010 bne a0009dbc <_Event_Surrender+0x94> <== NOT EXECUTED _Thread_Is_executing( the_thread ) && ((*sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) || a0009d78: e5937000 ldr r7, [r3] <== NOT EXECUTED a0009d7c: e2477001 sub r7, r7, #1 <== 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 ) && a0009d80: e3570001 cmp r7, #1 <== NOT EXECUTED a0009d84: 8a00000c bhi a0009dbc <_Event_Surrender+0x94> <== NOT EXECUTED ((*sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) || (*sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) { if ( seized_events == event_condition || _Options_Is_any(option_set) ) { a0009d88: e15c0005 cmp ip, r5 <== NOT EXECUTED a0009d8c: 0a000001 beq a0009d98 <_Event_Surrender+0x70> <== NOT EXECUTED a0009d90: e3160002 tst r6, #2 <== NOT EXECUTED a0009d94: 0a000026 beq a0009e34 <_Event_Surrender+0x10c> <== 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) ); a0009d98: e1c1100c bic r1, r1, ip <== NOT EXECUTED event->pending_events = _Event_sets_Clear( a0009d9c: e5821000 str r1, [r2] <== NOT EXECUTED pending_events, seized_events ); the_thread->Wait.count = 0; a0009da0: e3a02000 mov r2, #0 <== NOT EXECUTED a0009da4: e5842024 str r2, [r4, #36] ; 0x24 <== NOT EXECUTED *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; a0009da8: e5942028 ldr r2, [r4, #40] ; 0x28 <== NOT EXECUTED a0009dac: e582c000 str ip, [r2] <== NOT EXECUTED *sync_state = THREAD_BLOCKING_OPERATION_SATISFIED; a0009db0: e3a02003 mov r2, #3 <== NOT EXECUTED a0009db4: e5832000 str r2, [r3] <== NOT EXECUTED a0009db8: ea00001d b a0009e34 <_Event_Surrender+0x10c> <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool _States_Are_set ( States_Control the_states, States_Control mask ) { return ( (the_states & mask) != STATES_READY); a0009dbc: e5943010 ldr r3, [r4, #16] } /* * Otherwise, this is a normal send to another thread */ if ( _States_Are_set( the_thread->current_state, wait_state ) ) { a0009dc0: e1180003 tst r8, r3 a0009dc4: 0a00001a beq a0009e34 <_Event_Surrender+0x10c> if ( seized_events == event_condition || _Options_Is_any( option_set ) ) { a0009dc8: e15c0005 cmp ip, r5 a0009dcc: 0a000001 beq a0009dd8 <_Event_Surrender+0xb0> a0009dd0: e3160002 tst r6, #2 <== NOT EXECUTED a0009dd4: 0a000016 beq a0009e34 <_Event_Surrender+0x10c> <== NOT EXECUTED a0009dd8: e1c1100c bic r1, r1, ip event->pending_events = _Event_sets_Clear( pending_events, seized_events ); the_thread->Wait.count = 0; a0009ddc: e3a03000 mov r3, #0 /* * Otherwise, this is a normal send to another thread */ if ( _States_Are_set( the_thread->current_state, wait_state ) ) { if ( seized_events == event_condition || _Options_Is_any( option_set ) ) { event->pending_events = _Event_sets_Clear( a0009de0: e5821000 str r1, [r2] pending_events, seized_events ); the_thread->Wait.count = 0; a0009de4: e5843024 str r3, [r4, #36] ; 0x24 *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; a0009de8: e5943028 ldr r3, [r4, #40] ; 0x28 a0009dec: e583c000 str ip, [r3] static inline void arm_interrupt_flash( uint32_t level ) { #if defined(ARM_MULTILIB_ARCH_V4) uint32_t arm_switch_reg; __asm__ volatile ( a0009df0: e10f3000 mrs r3, CPSR a0009df4: e129f000 msr CPSR_fc, r0 a0009df8: e129f003 msr CPSR_fc, r3 _ISR_Flash( level ); if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { a0009dfc: e5943050 ldr r3, [r4, #80] ; 0x50 a0009e00: e3530002 cmp r3, #2 a0009e04: 0a000001 beq a0009e10 <_Event_Surrender+0xe8> static inline void arm_interrupt_enable( uint32_t level ) { #if defined(ARM_MULTILIB_ARCH_V4) ARM_SWITCH_REGISTERS; __asm__ volatile ( a0009e08: e129f000 msr CPSR_fc, r0 a0009e0c: ea000004 b a0009e24 <_Event_Surrender+0xfc> RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_REMOVE_IT; a0009e10: e3a03003 mov r3, #3 a0009e14: e5843050 str r3, [r4, #80] ; 0x50 a0009e18: e129f000 msr CPSR_fc, r0 _ISR_Enable( level ); _Thread_Unblock( the_thread ); } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); (void) _Watchdog_Remove( &the_thread->Timer ); a0009e1c: e2840048 add r0, r4, #72 ; 0x48 a0009e20: eb000d7c bl a000d418 <_Watchdog_Remove> RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); a0009e24: e59f1014 ldr r1, [pc, #20] ; a0009e40 <_Event_Surrender+0x118> a0009e28: e1a00004 mov r0, r4 } return; } } _ISR_Enable( level ); } a0009e2c: e8bd45f0 pop {r4, r5, r6, r7, r8, sl, lr} a0009e30: ea00096f b a000c3f4 <_Thread_Clear_state> a0009e34: e129f000 msr CPSR_fc, r0 a0009e38: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} =============================================================================== a0009e44 <_Event_Timeout>: void _Event_Timeout( Objects_Id id, void *arg ) { a0009e44: e92d4011 push {r0, r4, lr} <== NOT EXECUTED a0009e48: e1a04001 mov r4, r1 <== NOT EXECUTED ISR_Level level; Thread_blocking_operation_States *sync_state; sync_state = arg; the_thread = _Thread_Get( id, &location ); a0009e4c: e1a0100d mov r1, sp <== NOT EXECUTED a0009e50: eb000a4c bl a000c788 <_Thread_Get> <== NOT EXECUTED switch ( location ) { a0009e54: e59d3000 ldr r3, [sp] <== NOT EXECUTED a0009e58: e3530000 cmp r3, #0 <== NOT EXECUTED a0009e5c: 1a000014 bne a0009eb4 <_Event_Timeout+0x70> <== NOT EXECUTED uint32_t level; #if defined(ARM_MULTILIB_ARCH_V4) uint32_t arm_switch_reg; __asm__ volatile ( a0009e60: e10f2000 mrs r2, CPSR <== NOT EXECUTED a0009e64: e3821080 orr r1, r2, #128 ; 0x80 <== NOT EXECUTED a0009e68: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED _ISR_Enable( level ); return; } #endif the_thread->Wait.count = 0; a0009e6c: e5803024 str r3, [r0, #36] ; 0x24 <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool _Thread_Is_executing ( const Thread_Control *the_thread ) { return ( the_thread == _Thread_Executing ); a0009e70: e59f3040 ldr r3, [pc, #64] ; a0009eb8 <_Event_Timeout+0x74><== NOT EXECUTED if ( _Thread_Is_executing( the_thread ) ) { a0009e74: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED a0009e78: e1500003 cmp r0, r3 <== NOT EXECUTED a0009e7c: 1a000003 bne a0009e90 <_Event_Timeout+0x4c> <== NOT EXECUTED if ( *sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) a0009e80: e5943000 ldr r3, [r4] <== NOT EXECUTED a0009e84: e3530001 cmp r3, #1 <== NOT EXECUTED *sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT; a0009e88: 03a03002 moveq r3, #2 <== NOT EXECUTED a0009e8c: 05843000 streq r3, [r4] <== NOT EXECUTED } the_thread->Wait.return_code = RTEMS_TIMEOUT; a0009e90: e3a03006 mov r3, #6 <== NOT EXECUTED a0009e94: e5803034 str r3, [r0, #52] ; 0x34 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { #if defined(ARM_MULTILIB_ARCH_V4) ARM_SWITCH_REGISTERS; __asm__ volatile ( a0009e98: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); a0009e9c: e59f1018 ldr r1, [pc, #24] ; a0009ebc <_Event_Timeout+0x78><== NOT EXECUTED a0009ea0: eb000953 bl a000c3f4 <_Thread_Clear_state> <== NOT EXECUTED * * This routine decrements the thread dispatch level. */ RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_decrement_disable_level(void) { uint32_t level = _Thread_Dispatch_disable_level; a0009ea4: e59f3014 ldr r3, [pc, #20] ; a0009ec0 <_Event_Timeout+0x7c><== NOT EXECUTED a0009ea8: e5932000 ldr r2, [r3] <== NOT EXECUTED --level; a0009eac: e2422001 sub r2, r2, #1 <== NOT EXECUTED _Thread_Dispatch_disable_level = level; a0009eb0: e5832000 str r2, [r3] <== NOT EXECUTED case OBJECTS_REMOTE: /* impossible */ #endif case OBJECTS_ERROR: break; } } a0009eb4: e8bd8018 pop {r3, r4, pc} <== NOT EXECUTED =============================================================================== a000f048 <_Heap_Allocate_aligned_with_boundary>: Heap_Control *heap, uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) { a000f048: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} a000f04c: e1a08002 mov r8, r2 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; a000f050: e5902010 ldr r2, [r0, #16] Heap_Control *heap, uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) { a000f054: e24dd01c sub sp, sp, #28 a000f058: e1a0b003 mov fp, r3 Heap_Block *block = NULL; uintptr_t alloc_begin = 0; uint32_t search_count = 0; bool search_again = false; if ( block_size_floor < alloc_size ) { a000f05c: e2913004 adds r3, r1, #4 Heap_Control *heap, uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) { a000f060: e1a05000 mov r5, r0 a000f064: e1a06001 mov r6, r1 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; a000f068: e58d2000 str r2, [sp] Heap_Block *block = NULL; uintptr_t alloc_begin = 0; uint32_t search_count = 0; bool search_again = false; if ( block_size_floor < alloc_size ) { a000f06c: e58d300c str r3, [sp, #12] a000f070: 2a00006a bcs a000f220 <_Heap_Allocate_aligned_with_boundary+0x1d8> /* Integer overflow occured */ return NULL; } if ( boundary != 0 ) { a000f074: e35b0000 cmp fp, #0 a000f078: 0a000003 beq a000f08c <_Heap_Allocate_aligned_with_boundary+0x44> if ( boundary < alloc_size ) { a000f07c: e15b0001 cmp fp, r1 <== NOT EXECUTED a000f080: 3a000066 bcc a000f220 <_Heap_Allocate_aligned_with_boundary+0x1d8><== NOT EXECUTED return NULL; } if ( alignment == 0 ) { alignment = page_size; a000f084: e3580000 cmp r8, #0 <== NOT EXECUTED a000f088: 01a08002 moveq r8, r2 <== NOT EXECUTED 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 a000f08c: e59d2000 ldr r2, [sp] + HEAP_BLOCK_HEADER_SIZE + page_size - 1; uintptr_t alloc_end = block_end + HEAP_ALLOC_BONUS; a000f090: e2663004 rsb r3, r6, #4 return &heap->free_list; } RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap ) { return _Heap_Free_list_head(heap)->next; a000f094: e595a008 ldr sl, [r5, #8] 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 a000f098: e2822007 add r2, r2, #7 do { Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap ); block = _Heap_Free_list_first( heap ); while ( block != free_list_tail ) { a000f09c: e3a07000 mov r7, #0 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 a000f0a0: e58d2014 str r2, [sp, #20] + HEAP_BLOCK_HEADER_SIZE + page_size - 1; uintptr_t alloc_end = block_end + HEAP_ALLOC_BONUS; a000f0a4: e58d3018 str r3, [sp, #24] do { Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap ); block = _Heap_Free_list_first( heap ); while ( block != free_list_tail ) { a000f0a8: ea000048 b a000f1d0 <_Heap_Allocate_aligned_with_boundary+0x188> /* * 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 ) { a000f0ac: e59a4004 ldr r4, [sl, #4] a000f0b0: e59d200c ldr r2, [sp, #12] a000f0b4: e1540002 cmp r4, r2 a000f0b8: 9a00003f bls a000f1bc <_Heap_Allocate_aligned_with_boundary+0x174> if ( alignment == 0 ) { a000f0bc: e3580000 cmp r8, #0 RTEMS_INLINE_ROUTINE uintptr_t _Heap_Alloc_area_of_block( const Heap_Block *block ) { return (uintptr_t) block + HEAP_BLOCK_HEADER_SIZE; a000f0c0: 028a4008 addeq r4, sl, #8 a000f0c4: 0a00003d beq a000f1c0 <_Heap_Allocate_aligned_with_boundary+0x178> a000f0c8: e28a2008 add r2, sl, #8 uintptr_t alignment, uintptr_t boundary ) { uintptr_t const page_size = heap->page_size; uintptr_t const min_block_size = heap->min_block_size; a000f0cc: e5953014 ldr r3, [r5, #20] a000f0d0: e58d2008 str r2, [sp, #8] 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 + HEAP_BLOCK_HEADER_SIZE + page_size - 1; a000f0d4: e59d2014 ldr r2, [sp, #20] uintptr_t alignment, uintptr_t boundary ) { uintptr_t const page_size = heap->page_size; uintptr_t const min_block_size = heap->min_block_size; a000f0d8: e58d3004 str r3, [sp, #4] - 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; a000f0dc: e3c44001 bic r4, r4, #1 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 + HEAP_BLOCK_HEADER_SIZE + page_size - 1; a000f0e0: e0639002 rsb r9, r3, r2 uintptr_t alloc_end = block_end + HEAP_ALLOC_BONUS; uintptr_t alloc_begin = alloc_end - alloc_size; a000f0e4: e59d3018 ldr r3, [sp, #24] 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; a000f0e8: e08a4004 add r4, sl, r4 uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block ); uintptr_t const alloc_begin_ceiling = block_end - min_block_size a000f0ec: e0899004 add r9, r9, r4 + HEAP_BLOCK_HEADER_SIZE + page_size - 1; uintptr_t alloc_end = block_end + HEAP_ALLOC_BONUS; uintptr_t alloc_begin = alloc_end - alloc_size; a000f0f0: e0834004 add r4, r3, r4 RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment); a000f0f4: e1a00004 mov r0, r4 a000f0f8: e1a01008 mov r1, r8 a000f0fc: eb002aec bl a0019cb4 <__umodsi3> a000f100: e0604004 rsb r4, r0, r4 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 ) { a000f104: e1540009 cmp r4, r9 a000f108: 9a000003 bls a000f11c <_Heap_Allocate_aligned_with_boundary+0xd4> a000f10c: e1a00009 mov r0, r9 a000f110: e1a01008 mov r1, r8 a000f114: eb002ae6 bl a0019cb4 <__umodsi3> a000f118: e0604009 rsb r4, r0, r9 } alloc_end = alloc_begin + alloc_size; /* Ensure boundary constaint */ if ( boundary != 0 ) { a000f11c: e35b0000 cmp fp, #0 a000f120: 0a000014 beq a000f178 <_Heap_Allocate_aligned_with_boundary+0x130> uintptr_t const boundary_floor = alloc_begin_floor + alloc_size; a000f124: e59d2008 ldr r2, [sp, #8] <== NOT EXECUTED /* 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; a000f128: e0849006 add r9, r4, r6 <== NOT EXECUTED /* Ensure boundary constaint */ if ( boundary != 0 ) { uintptr_t const boundary_floor = alloc_begin_floor + alloc_size; a000f12c: e0822006 add r2, r2, r6 <== NOT EXECUTED a000f130: e58d2010 str r2, [sp, #16] <== NOT EXECUTED a000f134: ea000008 b a000f15c <_Heap_Allocate_aligned_with_boundary+0x114><== 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 ) { a000f138: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED a000f13c: e1500003 cmp r0, r3 <== NOT EXECUTED a000f140: 3a00001d bcc a000f1bc <_Heap_Allocate_aligned_with_boundary+0x174><== NOT EXECUTED return 0; } alloc_begin = boundary_line - alloc_size; a000f144: e0664000 rsb r4, r6, r0 <== NOT EXECUTED a000f148: e1a00004 mov r0, r4 <== NOT EXECUTED a000f14c: e1a01008 mov r1, r8 <== NOT EXECUTED a000f150: eb002ad7 bl a0019cb4 <__umodsi3> <== NOT EXECUTED a000f154: e0604004 rsb r4, r0, r4 <== NOT EXECUTED alloc_begin = _Heap_Align_down( alloc_begin, alignment ); alloc_end = alloc_begin + alloc_size; a000f158: e0849006 add r9, r4, r6 <== NOT EXECUTED a000f15c: e1a00009 mov r0, r9 <== NOT EXECUTED a000f160: e1a0100b mov r1, fp <== NOT EXECUTED a000f164: eb002ad2 bl a0019cb4 <__umodsi3> <== NOT EXECUTED a000f168: e0600009 rsb r0, r0, r9 <== 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 ) { a000f16c: e1500009 cmp r0, r9 <== NOT EXECUTED a000f170: 31540000 cmpcc r4, r0 <== NOT EXECUTED a000f174: 3affffef bcc a000f138 <_Heap_Allocate_aligned_with_boundary+0xf0><== 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 ) { a000f178: e59d2008 ldr r2, [sp, #8] a000f17c: e1540002 cmp r4, r2 a000f180: 3a00000d bcc a000f1bc <_Heap_Allocate_aligned_with_boundary+0x174> a000f184: e1a00004 mov r0, r4 a000f188: e59d1000 ldr r1, [sp] a000f18c: eb002ac8 bl a0019cb4 <__umodsi3> a000f190: e3e09007 mvn r9, #7 a000f194: e06a9009 rsb r9, sl, r9 if ( free_size >= min_block_size || free_size == 0 ) { return alloc_begin; } } return 0; a000f198: e59d2004 ldr r2, [sp, #4] uintptr_t alloc_begin, uintptr_t page_size ) { return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size ) - HEAP_BLOCK_HEADER_SIZE); a000f19c: e0899004 add r9, r9, r4 if ( alloc_begin >= alloc_begin_floor ) { 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; if ( free_size >= min_block_size || free_size == 0 ) { a000f1a0: e0603009 rsb r3, r0, r9 return alloc_begin; } } return 0; a000f1a4: e1590000 cmp r9, r0 a000f1a8: 11530002 cmpne r3, r2 a000f1ac: 33a09000 movcc r9, #0 a000f1b0: 23a09001 movcs r9, #1 a000f1b4: 31a04009 movcc r4, r9 a000f1b8: ea000000 b a000f1c0 <_Heap_Allocate_aligned_with_boundary+0x178> /* * 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 ) { a000f1bc: e3a04000 mov r4, #0 } /* Statistics */ ++search_count; if ( alloc_begin != 0 ) { a000f1c0: e3540000 cmp r4, #0 ); } } /* Statistics */ ++search_count; a000f1c4: e2877001 add r7, r7, #1 if ( alloc_begin != 0 ) { a000f1c8: 1a000004 bne a000f1e0 <_Heap_Allocate_aligned_with_boundary+0x198> break; } block = block->next; a000f1cc: e59aa008 ldr sl, [sl, #8] do { Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap ); block = _Heap_Free_list_first( heap ); while ( block != free_list_tail ) { a000f1d0: e15a0005 cmp sl, r5 a000f1d4: 1affffb4 bne a000f0ac <_Heap_Allocate_aligned_with_boundary+0x64> a000f1d8: e3a04000 mov r4, #0 a000f1dc: ea00000a b a000f20c <_Heap_Allocate_aligned_with_boundary+0x1c4> search_again = _Heap_Protection_free_delayed_blocks( heap, alloc_begin ); } while ( search_again ); if ( alloc_begin != 0 ) { /* Statistics */ ++stats->allocs; a000f1e0: e5953048 ldr r3, [r5, #72] ; 0x48 stats->searches += search_count; block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size ); a000f1e4: e1a00005 mov r0, r5 a000f1e8: e1a0100a mov r1, sl search_again = _Heap_Protection_free_delayed_blocks( heap, alloc_begin ); } while ( search_again ); if ( alloc_begin != 0 ) { /* Statistics */ ++stats->allocs; a000f1ec: e2833001 add r3, r3, #1 a000f1f0: e5853048 str r3, [r5, #72] ; 0x48 stats->searches += search_count; a000f1f4: e595304c ldr r3, [r5, #76] ; 0x4c block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size ); a000f1f8: e1a02004 mov r2, r4 } while ( search_again ); if ( alloc_begin != 0 ) { /* Statistics */ ++stats->allocs; stats->searches += search_count; a000f1fc: e0833007 add r3, r3, r7 a000f200: e585304c str r3, [r5, #76] ; 0x4c block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size ); a000f204: e1a03006 mov r3, r6 a000f208: ebfff03e bl a000b308 <_Heap_Block_allocate> boundary ); } /* Statistics */ if ( stats->max_search < search_count ) { a000f20c: e5953044 ldr r3, [r5, #68] ; 0x44 stats->max_search = search_count; } return (void *) alloc_begin; a000f210: e1a00004 mov r0, r4 boundary ); } /* Statistics */ if ( stats->max_search < search_count ) { a000f214: e1530007 cmp r3, r7 stats->max_search = search_count; a000f218: 35857044 strcc r7, [r5, #68] ; 0x44 } return (void *) alloc_begin; a000f21c: ea000000 b a000f224 <_Heap_Allocate_aligned_with_boundary+0x1dc> return NULL; } if ( boundary != 0 ) { if ( boundary < alloc_size ) { return NULL; a000f220: e3a00000 mov r0, #0 if ( stats->max_search < search_count ) { stats->max_search = search_count; } return (void *) alloc_begin; } a000f224: e28dd01c add sp, sp, #28 a000f228: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} =============================================================================== a000b308 <_Heap_Block_allocate>: Heap_Control *heap, Heap_Block *block, uintptr_t alloc_begin, uintptr_t alloc_size ) { a000b308: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} - 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; a000b30c: e591a004 ldr sl, [r1, #4] RTEMS_INLINE_ROUTINE uintptr_t _Heap_Alloc_area_of_block( const Heap_Block *block ) { return (uintptr_t) block + HEAP_BLOCK_HEADER_SIZE; a000b310: e2426008 sub r6, r2, #8 a000b314: e1a04001 mov r4, r1 a000b318: e1a07003 mov r7, r3 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; a000b31c: e0613006 rsb r3, r1, r6 - 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; a000b320: e3ca1001 bic r1, sl, #1 RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); a000b324: e0849001 add r9, r4, r1 Heap_Control *heap, Heap_Block *block, uintptr_t alloc_begin, uintptr_t alloc_size ) { a000b328: e1a05000 mov r5, r0 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; a000b32c: e5990004 ldr r0, [r9, #4] Heap_Block *free_list_anchor = NULL; _HAssert( alloc_area_begin <= alloc_begin ); if ( _Heap_Is_free( block ) ) { a000b330: e3100001 tst r0, #1 /* Statistics */ --stats->free_blocks; ++stats->used_blocks; stats->free_size -= _Heap_Block_size( block ); } else { free_list_anchor = _Heap_Free_list_head( heap ); a000b334: 11a08005 movne r8, r5 Heap_Block *free_list_anchor = NULL; _HAssert( alloc_area_begin <= alloc_begin ); if ( _Heap_Is_free( block ) ) { a000b338: 1a00000c bne a000b370 <_Heap_Block_allocate+0x68> return _Heap_Free_list_tail(heap)->prev; } RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block ) { Heap_Block *next = block->next; a000b33c: e5940008 ldr r0, [r4, #8] free_list_anchor = block->prev; a000b340: e594800c ldr r8, [r4, #12] Heap_Block *prev = block->prev; prev->next = next; a000b344: e5880008 str r0, [r8, #8] next->prev = prev; a000b348: e580800c str r8, [r0, #12] _Heap_Free_list_remove( block ); /* Statistics */ --stats->free_blocks; a000b34c: e5950038 ldr r0, [r5, #56] ; 0x38 a000b350: e2400001 sub r0, r0, #1 a000b354: e5850038 str r0, [r5, #56] ; 0x38 ++stats->used_blocks; a000b358: e5950040 ldr r0, [r5, #64] ; 0x40 a000b35c: e2800001 add r0, r0, #1 a000b360: e5850040 str r0, [r5, #64] ; 0x40 stats->free_size -= _Heap_Block_size( block ); a000b364: e5950030 ldr r0, [r5, #48] ; 0x30 a000b368: e0611000 rsb r1, r1, r0 a000b36c: e5851030 str r1, [r5, #48] ; 0x30 } else { free_list_anchor = _Heap_Free_list_head( heap ); } if ( alloc_area_offset < heap->page_size ) { a000b370: e5951010 ldr r1, [r5, #16] a000b374: e1530001 cmp r3, r1 a000b378: 2a000005 bcs a000b394 <_Heap_Block_allocate+0x8c> Heap_Block *block, Heap_Block *free_list_anchor, uintptr_t alloc_size ) { _Heap_Block_split( heap, block, free_list_anchor, alloc_size ); a000b37c: e1a00005 mov r0, r5 a000b380: e1a01004 mov r1, r4 a000b384: e1a02008 mov r2, r8 a000b388: e0833007 add r3, r3, r7 a000b38c: ebffff2e bl a000b04c <_Heap_Block_split> a000b390: ea000021 b a000b41c <_Heap_Block_allocate+0x114> RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment); a000b394: e1a00002 mov r0, r2 a000b398: eb003a45 bl a0019cb4 <__umodsi3> _HAssert( block_size >= heap->min_block_size ); _HAssert( new_block_size >= heap->min_block_size ); /* Statistics */ stats->free_size += block_size; a000b39c: e5952030 ldr r2, [r5, #48] ; 0x30 uintptr_t alloc_begin, uintptr_t page_size ) { return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size ) - HEAP_BLOCK_HEADER_SIZE); a000b3a0: e0606006 rsb r6, r0, r6 _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; a000b3a4: e0643006 rsb r3, r4, r6 _HAssert( block_size >= heap->min_block_size ); _HAssert( new_block_size >= heap->min_block_size ); /* Statistics */ stats->free_size += block_size; a000b3a8: e0822003 add r2, r2, r3 if ( _Heap_Is_prev_used( block ) ) { a000b3ac: e31a0001 tst sl, #1 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; a000b3b0: e0669009 rsb r9, r6, r9 _HAssert( block_size >= heap->min_block_size ); _HAssert( new_block_size >= heap->min_block_size ); /* Statistics */ stats->free_size += block_size; a000b3b4: e5852030 str r2, [r5, #48] ; 0x30 if ( _Heap_Is_prev_used( block ) ) { a000b3b8: 0a000009 beq a000b3e4 <_Heap_Block_allocate+0xdc> RTEMS_INLINE_ROUTINE void _Heap_Free_list_insert_after( Heap_Block *block_before, Heap_Block *new_block ) { Heap_Block *next = block_before->next; a000b3bc: e5982008 ldr r2, [r8, #8] new_block->next = next; new_block->prev = block_before; a000b3c0: e584800c str r8, [r4, #12] Heap_Block *new_block ) { Heap_Block *next = block_before->next; new_block->next = next; a000b3c4: e5842008 str r2, [r4, #8] new_block->prev = block_before; block_before->next = new_block; next->prev = new_block; a000b3c8: e582400c str r4, [r2, #12] _Heap_Free_list_insert_after( free_list_anchor, block ); free_list_anchor = block; /* Statistics */ ++stats->free_blocks; a000b3cc: e5952038 ldr r2, [r5, #56] ; 0x38 { Heap_Block *next = block_before->next; new_block->next = next; new_block->prev = block_before; block_before->next = new_block; a000b3d0: e5884008 str r4, [r8, #8] a000b3d4: e2822001 add r2, r2, #1 a000b3d8: e5852038 str r2, [r5, #56] ; 0x38 a000b3dc: e1a02004 mov r2, r4 a000b3e0: ea000005 b a000b3fc <_Heap_Block_allocate+0xf4> RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Prev_block( const Heap_Block *block ) { return (Heap_Block *) ((uintptr_t) block - block->prev_size); a000b3e4: e5942000 ldr r2, [r4] <== NOT EXECUTED a000b3e8: e0624004 rsb r4, r2, r4 <== 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; a000b3ec: e5942004 ldr r2, [r4, #4] <== NOT EXECUTED a000b3f0: e3c22001 bic r2, r2, #1 <== NOT EXECUTED } else { Heap_Block *const prev_block = _Heap_Prev_block( block ); uintptr_t const prev_block_size = _Heap_Block_size( prev_block ); block = prev_block; block_size += prev_block_size; a000b3f4: e0833002 add r3, r3, r2 <== NOT EXECUTED a000b3f8: e1a02008 mov r2, r8 <== NOT EXECUTED } block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED; a000b3fc: e3831001 orr r1, r3, #1 a000b400: e5841004 str r1, [r4, #4] new_block->prev_size = block_size; new_block->size_and_flag = new_block_size; _Heap_Block_split( heap, new_block, free_list_anchor, alloc_size ); a000b404: e1a00005 mov r0, r5 } block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED; new_block->prev_size = block_size; new_block->size_and_flag = new_block_size; a000b408: e8860208 stm r6, {r3, r9} _Heap_Block_split( heap, new_block, free_list_anchor, alloc_size ); a000b40c: e1a01006 mov r1, r6 a000b410: e1a03007 mov r3, r7 a000b414: ebffff0c bl a000b04c <_Heap_Block_split> a000b418: e1a04006 mov r4, r6 alloc_size ); } /* Statistics */ if ( stats->min_free_size > stats->free_size ) { a000b41c: e5953030 ldr r3, [r5, #48] ; 0x30 a000b420: e5952034 ldr r2, [r5, #52] ; 0x34 } _Heap_Protection_block_initialize( heap, block ); return block; } a000b424: e1a00004 mov r0, r4 alloc_size ); } /* Statistics */ if ( stats->min_free_size > stats->free_size ) { a000b428: e1520003 cmp r2, r3 stats->min_free_size = stats->free_size; a000b42c: 85853034 strhi r3, [r5, #52] ; 0x34 } _Heap_Protection_block_initialize( heap, block ); return block; } a000b430: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} =============================================================================== a000b04c <_Heap_Block_split>: Heap_Control *heap, Heap_Block *block, Heap_Block *free_list_anchor, uintptr_t alloc_size ) { a000b04c: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} Heap_Statistics *const stats = &heap->stats; uintptr_t const page_size = heap->page_size; uintptr_t const min_block_size = heap->min_block_size; a000b050: e5908014 ldr r8, [r0, #20] uintptr_t alloc_size ) { Heap_Statistics *const stats = &heap->stats; uintptr_t const page_size = heap->page_size; a000b054: e590a010 ldr sl, [r0, #16] Heap_Control *heap, Heap_Block *block, Heap_Block *free_list_anchor, uintptr_t alloc_size ) { a000b058: e1a05001 mov r5, r1 Heap_Statistics *const stats = &heap->stats; uintptr_t const page_size = heap->page_size; uintptr_t const min_block_size = heap->min_block_size; uintptr_t const min_alloc_size = min_block_size - HEAP_BLOCK_HEADER_SIZE; a000b05c: e248b008 sub fp, r8, #8 return heap->stats.size; } RTEMS_INLINE_ROUTINE uintptr_t _Heap_Max( uintptr_t a, uintptr_t b ) { return a > b ? a : b; a000b060: e153000b cmp r3, fp a000b064: 21a0b003 movcs fp, r3 uintptr_t const block_size = _Heap_Block_size( block ); uintptr_t const used_size = a000b068: e28bb008 add fp, fp, #8 - 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; a000b06c: e5919004 ldr r9, [r1, #4] Heap_Control *heap, Heap_Block *block, Heap_Block *free_list_anchor, uintptr_t alloc_size ) { a000b070: e1a04000 mov r4, r0 RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_up( uintptr_t value, uintptr_t alignment ) { uintptr_t remainder = value % alignment; a000b074: e1a0100a mov r1, sl a000b078: e1a0000b mov r0, fp a000b07c: e1a06002 mov r6, r2 a000b080: eb003b0b bl a0019cb4 <__umodsi3> a000b084: e3c97001 bic r7, r9, #1 if ( remainder != 0 ) { a000b088: e3500000 cmp r0, #0 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; a000b08c: e2872004 add r2, r7, #4 return value - remainder + alignment; a000b090: 108ba00a addne sl, fp, sl } else { return value; a000b094: 01a0a00b moveq sl, fp uintptr_t const free_size_limit = min_block_size + HEAP_ALLOC_BONUS; a000b098: e2888004 add r8, r8, #4 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; a000b09c: e06bb002 rsb fp, fp, r2 ) { uintptr_t remainder = value % alignment; if ( remainder != 0 ) { return value - remainder + alignment; a000b0a0: 1060a00a rsbne sl, r0, sl RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); a000b0a4: e0853007 add r3, r5, r7 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 ) { a000b0a8: e15b0008 cmp fp, r8 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; a000b0ac: 35932004 ldrcc r2, [r3, #4] a000b0b0: 33822001 orrcc r2, r2, #1 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 ) { a000b0b4: 3a000023 bcc a000b148 <_Heap_Block_split+0xfc> _HAssert( used_block_size + free_block_size == block_size ); _Heap_Block_set_size( block, used_block_size ); /* Statistics */ stats->free_size += free_block_size; a000b0b8: e5941030 ldr r1, [r4, #48] ; 0x30 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; a000b0bc: e2099001 and r9, r9, #1 _HAssert( used_size <= block_size + HEAP_ALLOC_BONUS ); _HAssert( used_size + free_size == block_size + HEAP_ALLOC_BONUS ); if ( free_size >= free_size_limit ) { Heap_Block *const free_block = _Heap_Block_at( block, used_block_size ); uintptr_t free_block_size = block_size - used_block_size; a000b0c0: e06a7007 rsb r7, sl, r7 RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); a000b0c4: e08a2005 add r2, sl, r5 uintptr_t size ) { uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED; block->size_and_flag = size | flag; a000b0c8: e18aa009 orr sl, sl, r9 a000b0cc: e585a004 str sl, [r5, #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; a000b0d0: e0811007 add r1, r1, r7 a000b0d4: e5841030 str r1, [r4, #48] ; 0x30 - 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; a000b0d8: e5931004 ldr r1, [r3, #4] a000b0dc: e3c11001 bic r1, r1, #1 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; a000b0e0: e0830001 add r0, r3, r1 a000b0e4: e5900004 ldr r0, [r0, #4] if ( _Heap_Is_used( next_block ) ) { a000b0e8: e3100001 tst r0, #1 a000b0ec: 0a000008 beq a000b114 <_Heap_Block_split+0xc8> RTEMS_INLINE_ROUTINE void _Heap_Free_list_insert_after( Heap_Block *block_before, Heap_Block *new_block ) { Heap_Block *next = block_before->next; a000b0f0: e5961008 ldr r1, [r6, #8] new_block->next = next; new_block->prev = block_before; a000b0f4: e582600c str r6, [r2, #12] Heap_Block *new_block ) { Heap_Block *next = block_before->next; new_block->next = next; a000b0f8: e5821008 str r1, [r2, #8] new_block->prev = block_before; block_before->next = new_block; next->prev = new_block; a000b0fc: e581200c str r2, [r1, #12] _Heap_Free_list_insert_after( free_list_anchor, free_block ); /* Statistics */ ++stats->free_blocks; a000b100: e5941038 ldr r1, [r4, #56] ; 0x38 { Heap_Block *next = block_before->next; new_block->next = next; new_block->prev = block_before; block_before->next = new_block; a000b104: e5862008 str r2, [r6, #8] a000b108: e2811001 add r1, r1, #1 a000b10c: e5841038 str r1, [r4, #56] ; 0x38 a000b110: ea000007 b a000b134 <_Heap_Block_split+0xe8> RTEMS_INLINE_ROUTINE void _Heap_Free_list_replace( Heap_Block *old_block, Heap_Block *new_block ) { Heap_Block *next = old_block->next; a000b114: e5930008 ldr r0, [r3, #8] <== NOT EXECUTED Heap_Block *prev = old_block->prev; a000b118: e593300c ldr r3, [r3, #12] <== NOT EXECUTED } 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; a000b11c: e0877001 add r7, r7, r1 <== NOT EXECUTED new_block->next = next; a000b120: e5820008 str r0, [r2, #8] <== NOT EXECUTED new_block->prev = prev; a000b124: e582300c str r3, [r2, #12] <== NOT EXECUTED next->prev = new_block; prev->next = new_block; a000b128: e5832008 str r2, [r3, #8] <== NOT EXECUTED Heap_Block *prev = old_block->prev; new_block->next = next; new_block->prev = prev; next->prev = new_block; a000b12c: e580200c str r2, [r0, #12] <== NOT EXECUTED RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); a000b130: e0873002 add r3, r7, r2 <== NOT EXECUTED next_block = _Heap_Block_at( free_block, free_block_size ); } free_block->size_and_flag = free_block_size | HEAP_PREV_BLOCK_USED; a000b134: e3871001 orr r1, r7, #1 a000b138: e5821004 str r1, [r2, #4] next_block->prev_size = free_block_size; next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; a000b13c: e5932004 ldr r2, [r3, #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; a000b140: e5837000 str r7, [r3] next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; a000b144: e3c22001 bic r2, r2, #1 _Heap_Protection_block_initialize( heap, free_block ); } else { next_block->size_and_flag |= HEAP_PREV_BLOCK_USED; a000b148: e5832004 str r2, [r3, #4] a000b14c: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} =============================================================================== a000f298 <_Heap_Extend>: Heap_Control *heap, void *extend_area_begin_ptr, uintptr_t extend_area_size, uintptr_t unused __attribute__((unused)) ) { a000f298: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} a000f29c: e1a05001 mov r5, r1 Heap_Statistics *const stats = &heap->stats; Heap_Block *const first_block = heap->first_block; a000f2a0: e5901020 ldr r1, [r0, #32] Heap_Control *heap, void *extend_area_begin_ptr, uintptr_t extend_area_size, uintptr_t unused __attribute__((unused)) ) { a000f2a4: e24dd024 sub sp, sp, #36 ; 0x24 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; a000f2a8: e5903010 ldr r3, [r0, #16] uintptr_t extend_area_size, uintptr_t unused __attribute__((unused)) ) { Heap_Statistics *const stats = &heap->stats; Heap_Block *const first_block = heap->first_block; a000f2ac: e58d1010 str r1, [sp, #16] 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; uintptr_t const free_size = stats->free_size; a000f2b0: e5901030 ldr r1, [r0, #48] ; 0x30 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; a000f2b4: e3a08000 mov r8, #0 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 ) { a000f2b8: e0956002 adds r6, r5, r2 Heap_Control *heap, void *extend_area_begin_ptr, uintptr_t extend_area_size, uintptr_t unused __attribute__((unused)) ) { a000f2bc: e1a04000 mov r4, r0 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; a000f2c0: e58d3014 str r3, [sp, #20] 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; a000f2c4: e58d801c str r8, [sp, #28] Heap_Block *extend_last_block = NULL; uintptr_t const page_size = heap->page_size; uintptr_t const min_block_size = heap->min_block_size; a000f2c8: e5903014 ldr r3, [r0, #20] 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; Heap_Block *extend_last_block = NULL; a000f2cc: e58d8020 str r8, [sp, #32] 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; uintptr_t const free_size = stats->free_size; a000f2d0: e58d1018 str r1, [sp, #24] uintptr_t extend_first_block_size = 0; uintptr_t extended_size = 0; bool extend_area_ok = false; if ( extend_area_end < extend_area_begin ) { return 0; a000f2d4: 21a00008 movcs r0, r8 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 ) { a000f2d8: 2a00009a bcs a000f548 <_Heap_Extend+0x2b0> return 0; } extend_area_ok = _Heap_Get_first_and_last_block( a000f2dc: e28d101c add r1, sp, #28 a000f2e0: e58d1000 str r1, [sp] a000f2e4: e28d1020 add r1, sp, #32 a000f2e8: e58d1004 str r1, [sp, #4] a000f2ec: e1a00005 mov r0, r5 a000f2f0: e1a01002 mov r1, r2 a000f2f4: e59d2014 ldr r2, [sp, #20] a000f2f8: ebffefab bl a000b1ac <_Heap_Get_first_and_last_block> page_size, min_block_size, &extend_first_block, &extend_last_block ); if (!extend_area_ok ) { a000f2fc: e3500000 cmp r0, #0 a000f300: 0a000090 beq a000f548 <_Heap_Extend+0x2b0> a000f304: e59da010 ldr sl, [sp, #16] a000f308: e1a07008 mov r7, r8 a000f30c: e1a09008 mov r9, r8 return 0; } do { uintptr_t const sub_area_begin = (start_block != first_block) ? (uintptr_t) start_block : heap->area_begin; a000f310: e5941018 ldr r1, [r4, #24] a000f314: e1a03008 mov r3, r8 a000f318: e1a0c004 mov ip, r4 a000f31c: ea000000 b a000f324 <_Heap_Extend+0x8c> a000f320: e1a0100a mov r1, sl <== NOT EXECUTED uintptr_t const sub_area_end = start_block->prev_size; a000f324: e59a4000 ldr r4, [sl] Heap_Block *const end_block = _Heap_Block_of_alloc_area( sub_area_end, page_size ); if ( a000f328: e1560001 cmp r6, r1 a000f32c: 93a00000 movls r0, #0 a000f330: 83a00001 movhi r0, #1 a000f334: e1550004 cmp r5, r4 a000f338: 23a00000 movcs r0, #0 a000f33c: e3500000 cmp r0, #0 a000f340: 1a00007f bne a000f544 <_Heap_Extend+0x2ac> sub_area_end > extend_area_begin && extend_area_end > sub_area_begin ) { return 0; } if ( extend_area_end == sub_area_begin ) { a000f344: e1560001 cmp r6, r1 a000f348: 01a0300a moveq r3, sl a000f34c: 0a000001 beq a000f358 <_Heap_Extend+0xc0> merge_below_block = start_block; } else if ( extend_area_end < sub_area_end ) { a000f350: e1560004 cmp r6, r4 a000f354: 31a0900a movcc r9, sl RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment); a000f358: e1a00004 mov r0, r4 a000f35c: e59d1014 ldr r1, [sp, #20] a000f360: e58d300c str r3, [sp, #12] a000f364: e58dc008 str ip, [sp, #8] a000f368: eb002b1a bl a0019fd8 <__umodsi3> a000f36c: e244b008 sub fp, r4, #8 link_below_block = start_block; } if ( sub_area_end == extend_area_begin ) { a000f370: e1540005 cmp r4, r5 uintptr_t alloc_begin, uintptr_t page_size ) { return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size ) - HEAP_BLOCK_HEADER_SIZE); a000f374: e060000b rsb r0, r0, fp a000f378: e59d300c ldr r3, [sp, #12] a000f37c: e59dc008 ldr ip, [sp, #8] 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 ) a000f380: 01a07000 moveq r7, r0 start_block->prev_size = extend_area_end; a000f384: 058a6000 streq r6, [sl] merge_below_block = start_block; } else if ( extend_area_end < sub_area_end ) { link_below_block = start_block; } if ( sub_area_end == extend_area_begin ) { a000f388: 0a000000 beq a000f390 <_Heap_Extend+0xf8> a000f38c: 31a08000 movcc r8, r0 - 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; a000f390: e590a004 ldr sl, [r0, #4] } 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 ); a000f394: e59d2010 ldr r2, [sp, #16] a000f398: e3caa001 bic sl, sl, #1 RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); a000f39c: e080a00a add sl, r0, sl a000f3a0: e15a0002 cmp sl, r2 a000f3a4: 1affffdd bne a000f320 <_Heap_Extend+0x88> a000f3a8: e1a02009 mov r2, r9 a000f3ac: e1a09003 mov r9, r3 if ( extend_area_begin < heap->area_begin ) { a000f3b0: e59c3018 ldr r3, [ip, #24] a000f3b4: e1a0400c mov r4, ip a000f3b8: e1550003 cmp r5, r3 heap->area_begin = extend_area_begin; a000f3bc: 358c5018 strcc r5, [ip, #24] } start_block = _Heap_Block_at( end_block, _Heap_Block_size( end_block ) ); } while ( start_block != first_block ); if ( extend_area_begin < heap->area_begin ) { a000f3c0: 3a000002 bcc a000f3d0 <_Heap_Extend+0x138> heap->area_begin = extend_area_begin; } else if ( heap->area_end < extend_area_end ) { a000f3c4: e59c301c ldr r3, [ip, #28] <== NOT EXECUTED a000f3c8: e1530006 cmp r3, r6 <== NOT EXECUTED heap->area_end = extend_area_end; a000f3cc: 358c601c strcc r6, [ip, #28] <== NOT EXECUTED } extend_first_block_size = (uintptr_t) extend_last_block - (uintptr_t) extend_first_block; a000f3d0: e59d101c ldr r1, [sp, #28] a000f3d4: e59d3020 ldr r3, [sp, #32] extend_first_block->prev_size = extend_area_end; a000f3d8: e5816000 str r6, [r1] heap->area_begin = extend_area_begin; } else if ( heap->area_end < extend_area_end ) { heap->area_end = extend_area_end; } extend_first_block_size = a000f3dc: e0610003 rsb r0, r1, r3 (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; a000f3e0: e380c001 orr ip, r0, #1 _Heap_Protection_block_initialize( heap, extend_first_block ); extend_last_block->prev_size = extend_first_block_size; a000f3e4: e5830000 str r0, [r3] extend_last_block->size_and_flag = 0; a000f3e8: e3a00000 mov r0, #0 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 = a000f3ec: e581c004 str ip, [r1, #4] extend_first_block_size | HEAP_PREV_BLOCK_USED; _Heap_Protection_block_initialize( heap, extend_first_block ); extend_last_block->prev_size = extend_first_block_size; extend_last_block->size_and_flag = 0; a000f3f0: e5830004 str r0, [r3, #4] _Heap_Protection_block_initialize( heap, extend_last_block ); if ( (uintptr_t) extend_first_block < (uintptr_t) heap->first_block ) { a000f3f4: e5940020 ldr r0, [r4, #32] a000f3f8: e1500001 cmp r0, r1 heap->first_block = extend_first_block; a000f3fc: 85841020 strhi r1, [r4, #32] extend_last_block->prev_size = extend_first_block_size; extend_last_block->size_and_flag = 0; _Heap_Protection_block_initialize( heap, extend_last_block ); if ( (uintptr_t) extend_first_block < (uintptr_t) heap->first_block ) { a000f400: 8a000002 bhi a000f410 <_Heap_Extend+0x178> heap->first_block = extend_first_block; } else if ( (uintptr_t) extend_last_block > (uintptr_t) heap->last_block ) { a000f404: e5941024 ldr r1, [r4, #36] ; 0x24 <== NOT EXECUTED a000f408: e1510003 cmp r1, r3 <== NOT EXECUTED heap->last_block = extend_last_block; a000f40c: 35843024 strcc r3, [r4, #36] ; 0x24 <== NOT EXECUTED } if ( merge_below_block != NULL ) { a000f410: e3590000 cmp r9, #0 a000f414: 0a000010 beq a000f45c <_Heap_Extend+0x1c4> Heap_Control *heap, uintptr_t extend_area_begin, Heap_Block *first_block ) { uintptr_t const page_size = heap->page_size; a000f418: e594a010 ldr sl, [r4, #16] <== NOT EXECUTED uintptr_t const new_first_block_alloc_begin = _Heap_Align_up( extend_area_begin + HEAP_BLOCK_HEADER_SIZE, page_size ); a000f41c: e2855008 add r5, r5, #8 <== NOT EXECUTED RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_up( uintptr_t value, uintptr_t alignment ) { uintptr_t remainder = value % alignment; a000f420: e1a00005 mov r0, r5 <== NOT EXECUTED a000f424: e1a0100a mov r1, sl <== NOT EXECUTED a000f428: eb002aea bl a0019fd8 <__umodsi3> <== NOT EXECUTED if ( remainder != 0 ) { a000f42c: e3500000 cmp r0, #0 <== NOT EXECUTED return value - remainder + alignment; a000f430: 1085500a addne r5, r5, sl <== 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; a000f434: e5993000 ldr r3, [r9] <== NOT EXECUTED a000f438: 10605005 rsbne r5, r0, r5 <== NOT EXECUTED ) { uintptr_t const page_size = heap->page_size; uintptr_t const new_first_block_alloc_begin = _Heap_Align_up( extend_area_begin + HEAP_BLOCK_HEADER_SIZE, page_size ); uintptr_t const new_first_block_begin = a000f43c: e2451008 sub r1, r5, #8 <== 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; a000f440: e5053008 str r3, [r5, #-8] <== NOT EXECUTED uintptr_t const new_first_block_alloc_begin = _Heap_Align_up( extend_area_begin + HEAP_BLOCK_HEADER_SIZE, page_size ); uintptr_t const new_first_block_begin = 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 = a000f444: e0613009 rsb r3, r1, r9 <== 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; a000f448: e3833001 orr r3, r3, #1 <== NOT EXECUTED a000f44c: e5053004 str r3, [r5, #-4] <== NOT EXECUTED _Heap_Free_block( heap, new_first_block ); a000f450: e1a00004 mov r0, r4 <== NOT EXECUTED a000f454: ebffff7a bl a000f244 <_Heap_Free_block> <== NOT EXECUTED a000f458: ea000004 b a000f470 <_Heap_Extend+0x1d8> <== 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 ) { a000f45c: e3520000 cmp r2, #0 _Heap_Link_below( a000f460: 159d3020 ldrne r3, [sp, #32] { 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; a000f464: 10632002 rsbne r2, r3, r2 a000f468: 13822001 orrne r2, r2, #1 ) { uintptr_t const last_block_begin = (uintptr_t) last_block; uintptr_t const link_begin = (uintptr_t) link; last_block->size_and_flag = a000f46c: 15832004 strne r2, [r3, #4] link_below_block, extend_last_block ); } if ( merge_above_block != NULL ) { a000f470: e3570000 cmp r7, #0 a000f474: 0a000012 beq a000f4c4 <_Heap_Extend+0x22c> ) { 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, a000f478: e2466008 sub r6, r6, #8 <== 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( a000f47c: e0676006 rsb r6, r7, r6 <== NOT EXECUTED RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment); a000f480: e5941010 ldr r1, [r4, #16] <== NOT EXECUTED a000f484: e1a00006 mov r0, r6 <== NOT EXECUTED a000f488: eb002ad2 bl a0019fd8 <__umodsi3> <== 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) a000f48c: e5972004 ldr r2, [r7, #4] <== NOT EXECUTED a000f490: e0606006 rsb r6, r0, r6 <== NOT EXECUTED page_size ); Heap_Block *const new_last_block = _Heap_Block_at( last_block, last_block_new_size ); new_last_block->size_and_flag = a000f494: e0863007 add r3, r6, r7 <== NOT EXECUTED (last_block->size_and_flag - last_block_new_size) a000f498: e0662002 rsb r2, r6, r2 <== NOT EXECUTED | HEAP_PREV_BLOCK_USED; a000f49c: e3822001 orr r2, r2, #1 <== NOT EXECUTED page_size ); Heap_Block *const new_last_block = _Heap_Block_at( last_block, last_block_new_size ); new_last_block->size_and_flag = a000f4a0: e5832004 str r2, [r3, #4] <== 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; a000f4a4: e5973004 ldr r3, [r7, #4] <== NOT EXECUTED (last_block->size_and_flag - last_block_new_size) | HEAP_PREV_BLOCK_USED; _Heap_Block_set_size( last_block, last_block_new_size ); _Heap_Free_block( heap, last_block ); a000f4a8: e1a00004 mov r0, r4 <== NOT EXECUTED a000f4ac: e1a01007 mov r1, r7 <== NOT EXECUTED a000f4b0: e2033001 and r3, r3, #1 <== NOT EXECUTED block->size_and_flag = size | flag; a000f4b4: e1866003 orr r6, r6, r3 <== NOT EXECUTED a000f4b8: e5876004 str r6, [r7, #4] <== NOT EXECUTED a000f4bc: ebffff60 bl a000f244 <_Heap_Free_block> <== NOT EXECUTED a000f4c0: ea00000b b a000f4f4 <_Heap_Extend+0x25c> <== NOT EXECUTED ); } if ( merge_above_block != NULL ) { _Heap_Merge_above( heap, merge_above_block, extend_area_end ); } else if ( link_above_block != NULL ) { a000f4c4: e3580000 cmp r8, #0 a000f4c8: 0a000009 beq a000f4f4 <_Heap_Extend+0x25c> 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; a000f4cc: e5982004 ldr r2, [r8, #4] <== 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 ); a000f4d0: e59d101c ldr r1, [sp, #28] <== 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( a000f4d4: e59d3020 ldr r3, [sp, #32] <== NOT EXECUTED a000f4d8: e2022001 and r2, r2, #1 <== 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 ); a000f4dc: e0681001 rsb r1, r8, r1 <== NOT EXECUTED block->size_and_flag = size | flag; a000f4e0: e1812002 orr r2, r1, r2 <== NOT EXECUTED a000f4e4: e5882004 str r2, [r8, #4] <== NOT EXECUTED last_block->size_and_flag |= HEAP_PREV_BLOCK_USED; a000f4e8: e5932004 ldr r2, [r3, #4] <== NOT EXECUTED a000f4ec: e3822001 orr r2, r2, #1 <== NOT EXECUTED a000f4f0: e5832004 str r2, [r3, #4] <== NOT EXECUTED extend_first_block, extend_last_block ); } if ( merge_below_block == NULL && merge_above_block == NULL ) { a000f4f4: e3570000 cmp r7, #0 a000f4f8: 03590000 cmpeq r9, #0 a000f4fc: 1a000002 bne a000f50c <_Heap_Extend+0x274> _Heap_Free_block( heap, extend_first_block ); a000f500: e1a00004 mov r0, r4 a000f504: e59d101c ldr r1, [sp, #28] a000f508: ebffff4d bl a000f244 <_Heap_Free_block> */ RTEMS_INLINE_ROUTINE void _Heap_Set_last_block_size( Heap_Control *heap ) { _Heap_Block_set_size( heap->last_block, (uintptr_t) heap->first_block - (uintptr_t) heap->last_block a000f50c: e5943024 ldr r3, [r4, #36] ; 0x24 * 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( a000f510: e5941020 ldr r1, [r4, #32] } _Heap_Set_last_block_size( heap ); extended_size = stats->free_size - free_size; a000f514: e5940030 ldr r0, [r4, #48] ; 0x30 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; a000f518: e5932004 ldr r2, [r3, #4] * 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( a000f51c: e0631001 rsb r1, r3, r1 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; a000f520: e2022001 and r2, r2, #1 block->size_and_flag = size | flag; a000f524: e1812002 orr r2, r1, r2 a000f528: e5832004 str r2, [r3, #4] a000f52c: e59d3018 ldr r3, [sp, #24] a000f530: e0630000 rsb r0, r3, r0 /* Statistics */ stats->size += extended_size; a000f534: e594302c ldr r3, [r4, #44] ; 0x2c a000f538: e0833000 add r3, r3, r0 a000f53c: e584302c str r3, [r4, #44] ; 0x2c return extended_size; a000f540: ea000000 b a000f548 <_Heap_Extend+0x2b0> _Heap_Block_of_alloc_area( sub_area_end, page_size ); if ( sub_area_end > extend_area_begin && extend_area_end > sub_area_begin ) { return 0; a000f544: e3a00000 mov r0, #0 <== NOT EXECUTED /* Statistics */ stats->size += extended_size; return extended_size; } a000f548: e28dd024 add sp, sp, #36 ; 0x24 a000f54c: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} =============================================================================== a000f6e8 <_Heap_No_extend>: uintptr_t unused_2 __attribute__((unused)), uintptr_t unused_3 __attribute__((unused)) ) { return 0; } a000f6e8: e3a00000 mov r0, #0 <== NOT EXECUTED a000f6ec: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000f41c <_Heap_Resize_block>: void *alloc_begin_ptr, uintptr_t new_alloc_size, uintptr_t *old_size, uintptr_t *new_size ) { a000f41c: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} a000f420: e1a04000 mov r4, r0 RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment); a000f424: e241a008 sub sl, r1, #8 a000f428: e1a00001 mov r0, r1 a000f42c: e1a05001 mov r5, r1 a000f430: e5941010 ldr r1, [r4, #16] a000f434: e1a08003 mov r8, r3 a000f438: e1a07002 mov r7, r2 a000f43c: eb002a1c bl a0019cb4 <__umodsi3> a000f440: e59d601c ldr r6, [sp, #28] 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; a000f444: e3a03000 mov r3, #0 a000f448: e5883000 str r3, [r8] *new_size = 0; a000f44c: e5863000 str r3, [r6] 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; a000f450: e5943020 ldr r3, [r4, #32] uintptr_t alloc_begin, uintptr_t page_size ) { return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size ) - HEAP_BLOCK_HEADER_SIZE); a000f454: e060100a rsb r1, r0, sl 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; a000f458: e1530001 cmp r3, r1 a000f45c: 8a000039 bhi a000f548 <_Heap_Resize_block+0x12c> a000f460: e5943024 ldr r3, [r4, #36] ; 0x24 a000f464: e1530001 cmp r3, r1 a000f468: 3a000038 bcc a000f550 <_Heap_Resize_block+0x134> - 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; a000f46c: e5913004 ldr r3, [r1, #4] 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; a000f470: e265c004 rsb ip, r5, #4 a000f474: e3c33001 bic r3, r3, #1 { 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; a000f478: e0812003 add r2, r1, r3 a000f47c: e5920004 ldr r0, [r2, #4] uintptr_t alloc_size = block_end - alloc_begin + HEAP_ALLOC_BONUS; a000f480: e08cc002 add ip, ip, r2 a000f484: e3c00001 bic r0, r0, #1 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; a000f488: e082a000 add sl, r2, r0 a000f48c: e59aa004 ldr sl, [sl, #4] 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; a000f490: e588c000 str ip, [r8] RTEMS_INLINE_ROUTINE bool _Heap_Is_free( const Heap_Block *block ) { return !_Heap_Is_used( block ); a000f494: e31a0001 tst sl, #1 a000f498: 13a0a000 movne sl, #0 a000f49c: 03a0a001 moveq sl, #1 if ( next_block_is_free ) { a000f4a0: e35a0000 cmp sl, #0 block_size += next_block_size; alloc_size += next_block_size; a000f4a4: 108cc000 addne ip, ip, r0 _HAssert( _Heap_Is_prev_used( next_block ) ); *old_size = alloc_size; if ( next_block_is_free ) { block_size += next_block_size; a000f4a8: 10833000 addne r3, r3, r0 alloc_size += next_block_size; } if ( new_alloc_size > alloc_size ) { a000f4ac: e157000c cmp r7, ip a000f4b0: 8a000022 bhi a000f540 <_Heap_Resize_block+0x124> return HEAP_RESIZE_UNSATISFIED; } if ( next_block_is_free ) { a000f4b4: e35a0000 cmp sl, #0 a000f4b8: 0a000011 beq a000f504 <_Heap_Resize_block+0xe8> 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; a000f4bc: e591c004 ldr ip, [r1, #4] a000f4c0: e20cc001 and ip, ip, #1 block->size_and_flag = size | flag; a000f4c4: e183c00c orr ip, r3, ip a000f4c8: e581c004 str ip, [r1, #4] return _Heap_Free_list_tail(heap)->prev; } RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block ) { Heap_Block *next = block->next; a000f4cc: e592c008 ldr ip, [r2, #8] Heap_Block *prev = block->prev; a000f4d0: e592200c ldr r2, [r2, #12] RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); a000f4d4: e0833001 add r3, r3, r1 RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block ) { Heap_Block *next = block->next; Heap_Block *prev = block->prev; prev->next = next; a000f4d8: e582c008 str ip, [r2, #8] next->prev = prev; a000f4dc: e58c200c str r2, [ip, #12] _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; a000f4e0: e5932004 ldr r2, [r3, #4] a000f4e4: e3822001 orr r2, r2, #1 a000f4e8: e5832004 str r2, [r3, #4] /* Statistics */ --stats->free_blocks; a000f4ec: e5943038 ldr r3, [r4, #56] ; 0x38 a000f4f0: e2433001 sub r3, r3, #1 a000f4f4: e5843038 str r3, [r4, #56] ; 0x38 stats->free_size -= next_block_size; a000f4f8: e5943030 ldr r3, [r4, #48] ; 0x30 a000f4fc: e0600003 rsb r0, r0, r3 a000f500: e5840030 str r0, [r4, #48] ; 0x30 } block = _Heap_Block_allocate( heap, block, alloc_begin, new_alloc_size ); a000f504: e1a02005 mov r2, r5 a000f508: e1a03007 mov r3, r7 a000f50c: e1a00004 mov r0, r4 a000f510: ebffef7c bl a000b308 <_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; a000f514: e5903004 ldr r3, [r0, #4] a000f518: e3c33001 bic r3, r3, #1 RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); a000f51c: e2833004 add r3, r3, #4 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; a000f520: e0655003 rsb r5, r5, r3 a000f524: e0800005 add r0, r0, r5 a000f528: e5860000 str r0, [r6] /* Statistics */ ++stats->resizes; a000f52c: e5943054 ldr r3, [r4, #84] ; 0x54 return HEAP_RESIZE_SUCCESSFUL; a000f530: e3a00000 mov r0, #0 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; a000f534: e2833001 add r3, r3, #1 a000f538: e5843054 str r3, [r4, #84] ; 0x54 a000f53c: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} block_size += next_block_size; alloc_size += next_block_size; } if ( new_alloc_size > alloc_size ) { return HEAP_RESIZE_UNSATISFIED; a000f540: e3a00001 mov r0, #1 *old_size = 0; *new_size = 0; if ( _Heap_Is_block_in_heap( heap, block ) ) { _Heap_Protection_block_check( heap, block ); return _Heap_Resize_block_checked( a000f544: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} new_alloc_size, old_size, new_size ); } return HEAP_RESIZE_FATAL_ERROR; a000f548: e3a00002 mov r0, #2 <== NOT EXECUTED a000f54c: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED a000f550: e3a00002 mov r0, #2 <== NOT EXECUTED } a000f554: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED =============================================================================== a000bdf0 <_Heap_Walk>: bool _Heap_Walk( Heap_Control *heap, int source, bool dump ) { a000bdf0: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} uintptr_t const page_size = heap->page_size; a000bdf4: e590c010 ldr ip, [r0, #16] bool _Heap_Walk( Heap_Control *heap, int source, bool dump ) { a000bdf8: e24dd030 sub sp, sp, #48 ; 0x30 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; a000bdfc: e59f34b4 ldr r3, [pc, #1204] ; a000c2b8 <_Heap_Walk+0x4c8> a000be00: e59f84b4 ldr r8, [pc, #1204] ; a000c2bc <_Heap_Walk+0x4cc> Heap_Control *heap, int source, bool dump ) { uintptr_t const page_size = heap->page_size; a000be04: e58dc020 str ip, [sp, #32] uintptr_t const min_block_size = heap->min_block_size; a000be08: e590c014 ldr ip, [r0, #20] 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; a000be0c: e31200ff tst r2, #255 ; 0xff a000be10: 11a08003 movne r8, r3 if ( !_System_state_Is_up( _System_state_Get() ) ) { a000be14: e59f34a4 ldr r3, [pc, #1188] ; a000c2c0 <_Heap_Walk+0x4d0> int source, bool dump ) { uintptr_t const page_size = heap->page_size; uintptr_t const min_block_size = heap->min_block_size; a000be18: e58dc028 str ip, [sp, #40] ; 0x28 Heap_Block *const first_block = heap->first_block; a000be1c: e590c020 ldr ip, [r0, #32] 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; if ( !_System_state_Is_up( _System_state_Get() ) ) { a000be20: e5933000 ldr r3, [r3] bool _Heap_Walk( Heap_Control *heap, int source, bool dump ) { a000be24: e1a05000 mov r5, r0 uintptr_t const page_size = heap->page_size; uintptr_t const min_block_size = heap->min_block_size; Heap_Block *const first_block = heap->first_block; a000be28: e58dc024 str ip, [sp, #36] ; 0x24 Heap_Block *const last_block = heap->last_block; a000be2c: e590c024 ldr ip, [r0, #36] ; 0x24 Heap_Block *block = first_block; Heap_Walk_printer printer = dump ? _Heap_Walk_print : _Heap_Walk_print_nothing; if ( !_System_state_Is_up( _System_state_Get() ) ) { a000be30: e3530003 cmp r3, #3 bool _Heap_Walk( Heap_Control *heap, int source, bool dump ) { a000be34: e1a04001 mov r4, r1 uintptr_t const page_size = heap->page_size; 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; a000be38: e58dc02c str ip, [sp, #44] ; 0x2c Heap_Block *block = first_block; Heap_Walk_printer printer = dump ? _Heap_Walk_print : _Heap_Walk_print_nothing; if ( !_System_state_Is_up( _System_state_Get() ) ) { a000be3c: 1a000112 bne a000c28c <_Heap_Walk+0x49c> 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)( a000be40: e59dc028 ldr ip, [sp, #40] ; 0x28 a000be44: e59f2478 ldr r2, [pc, #1144] ; a000c2c4 <_Heap_Walk+0x4d4> a000be48: e58dc000 str ip, [sp] a000be4c: e5903018 ldr r3, [r0, #24] a000be50: e59dc024 ldr ip, [sp, #36] ; 0x24 a000be54: e58d3004 str r3, [sp, #4] a000be58: e590301c ldr r3, [r0, #28] a000be5c: e58dc00c str ip, [sp, #12] a000be60: e59dc02c ldr ip, [sp, #44] ; 0x2c a000be64: e58d3008 str r3, [sp, #8] a000be68: e58dc010 str ip, [sp, #16] a000be6c: e5903008 ldr r3, [r0, #8] a000be70: e58d3014 str r3, [sp, #20] a000be74: e590300c ldr r3, [r0, #12] a000be78: e1a00001 mov r0, r1 a000be7c: e3a01000 mov r1, #0 a000be80: e58d3018 str r3, [sp, #24] a000be84: e59d3020 ldr r3, [sp, #32] a000be88: e12fff38 blx r8 heap->area_begin, heap->area_end, first_block, last_block, first_free_block, last_free_block ); if ( page_size == 0 ) { a000be8c: e59dc020 ldr ip, [sp, #32] a000be90: e35c0000 cmp ip, #0 a000be94: 1a000005 bne a000beb0 <_Heap_Walk+0xc0> (*printer)( source, true, "page size is zero\n" ); a000be98: e1a00004 mov r0, r4 a000be9c: e3a01001 mov r1, #1 a000bea0: e59f2420 ldr r2, [pc, #1056] ; a000c2c8 <_Heap_Walk+0x4d8> a000bea4: e12fff38 blx r8 if ( !_System_state_Is_up( _System_state_Get() ) ) { return true; } if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; a000bea8: e59d6020 ldr r6, [sp, #32] a000beac: ea0000f7 b a000c290 <_Heap_Walk+0x4a0> (*printer)( source, true, "page size is zero\n" ); return false; } if ( !_Addresses_Is_aligned( (void *) page_size ) ) { a000beb0: e59dc020 ldr ip, [sp, #32] a000beb4: e21c7007 ands r7, ip, #7 (*printer)( a000beb8: 11a00004 movne r0, r4 a000bebc: 13a01001 movne r1, #1 a000bec0: 159f2404 ldrne r2, [pc, #1028] ; a000c2cc <_Heap_Walk+0x4dc> a000bec4: 11a0300c movne r3, ip a000bec8: 1a0000f7 bne a000c2ac <_Heap_Walk+0x4bc> RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned( uintptr_t value, uintptr_t alignment ) { return (value % alignment) == 0; a000becc: e59d0028 ldr r0, [sp, #40] ; 0x28 a000bed0: e59d1020 ldr r1, [sp, #32] a000bed4: ebffe448 bl a0004ffc <__umodsi3> ); return false; } if ( !_Heap_Is_aligned( min_block_size, page_size ) ) { a000bed8: e2506000 subs r6, r0, #0 a000bedc: 0a000005 beq a000bef8 <_Heap_Walk+0x108> (*printer)( a000bee0: e1a00004 mov r0, r4 a000bee4: e3a01001 mov r1, #1 a000bee8: e59f23e0 ldr r2, [pc, #992] ; a000c2d0 <_Heap_Walk+0x4e0> a000beec: e59d3028 ldr r3, [sp, #40] ; 0x28 a000bef0: e12fff38 blx r8 a000bef4: ea000023 b a000bf88 <_Heap_Walk+0x198> a000bef8: e59dc024 ldr ip, [sp, #36] ; 0x24 a000befc: e59d1020 ldr r1, [sp, #32] a000bf00: e28c0008 add r0, ip, #8 a000bf04: ebffe43c bl a0004ffc <__umodsi3> ); return false; } if ( a000bf08: e2507000 subs r7, r0, #0 !_Heap_Is_aligned( _Heap_Alloc_area_of_block( first_block ), page_size ) ) { (*printer)( a000bf0c: 11a00004 movne r0, r4 a000bf10: 13a01001 movne r1, #1 a000bf14: 159f23b8 ldrne r2, [pc, #952] ; a000c2d4 <_Heap_Walk+0x4e4> a000bf18: 159d3024 ldrne r3, [sp, #36] ; 0x24 a000bf1c: 1a00003f bne a000c020 <_Heap_Walk+0x230> 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; a000bf20: e59dc024 ldr ip, [sp, #36] ; 0x24 a000bf24: e59c6004 ldr r6, [ip, #4] ); return false; } if ( !_Heap_Is_prev_used( first_block ) ) { a000bf28: e2166001 ands r6, r6, #1 (*printer)( a000bf2c: 01a00004 moveq r0, r4 a000bf30: 03a01001 moveq r1, #1 a000bf34: 059f239c ldreq r2, [pc, #924] ; a000c2d8 <_Heap_Walk+0x4e8> a000bf38: 0a000009 beq a000bf64 <_Heap_Walk+0x174> - 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; a000bf3c: e59dc02c ldr ip, [sp, #44] ; 0x2c a000bf40: e59ca004 ldr sl, [ip, #4] a000bf44: e3caa001 bic sl, sl, #1 RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); a000bf48: e08ca00a add sl, ip, sl 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; a000bf4c: e59a6004 ldr r6, [sl, #4] ); return false; } if ( _Heap_Is_free( last_block ) ) { a000bf50: e2166001 ands r6, r6, #1 a000bf54: 1a000004 bne a000bf6c <_Heap_Walk+0x17c> (*printer)( a000bf58: e59f237c ldr r2, [pc, #892] ; a000c2dc <_Heap_Walk+0x4ec> <== NOT EXECUTED a000bf5c: e1a00004 mov r0, r4 <== NOT EXECUTED a000bf60: e3a01001 mov r1, #1 <== NOT EXECUTED a000bf64: e12fff38 blx r8 <== NOT EXECUTED a000bf68: ea0000c8 b a000c290 <_Heap_Walk+0x4a0> <== NOT EXECUTED ); return false; } if ( a000bf6c: e59dc024 ldr ip, [sp, #36] ; 0x24 a000bf70: e15a000c cmp sl, ip a000bf74: 0a000005 beq a000bf90 <_Heap_Walk+0x1a0> _Heap_Block_at( last_block, _Heap_Block_size( last_block ) ) != first_block ) { (*printer)( a000bf78: e1a00004 mov r0, r4 <== NOT EXECUTED a000bf7c: e3a01001 mov r1, #1 <== NOT EXECUTED a000bf80: e59f2358 ldr r2, [pc, #856] ; a000c2e0 <_Heap_Walk+0x4f0> <== NOT EXECUTED a000bf84: e12fff38 blx r8 <== NOT EXECUTED if ( !_System_state_Is_up( _System_state_Get() ) ) { return true; } if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; a000bf88: e1a06007 mov r6, r7 a000bf8c: ea0000bf b a000c290 <_Heap_Walk+0x4a0> int source, Heap_Walk_printer printer, Heap_Control *heap ) { uintptr_t const page_size = heap->page_size; a000bf90: e5957010 ldr r7, [r5, #16] return &heap->free_list; } RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap ) { return _Heap_Free_list_head(heap)->next; a000bf94: e5959008 ldr r9, [r5, #8] const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap ); a000bf98: e1a0b005 mov fp, r5 a000bf9c: ea000030 b a000c064 <_Heap_Walk+0x274> 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; a000bfa0: e5953020 ldr r3, [r5, #32] a000bfa4: e1530009 cmp r3, r9 a000bfa8: 83a06000 movhi r6, #0 a000bfac: 8a000003 bhi a000bfc0 <_Heap_Walk+0x1d0> a000bfb0: e5956024 ldr r6, [r5, #36] ; 0x24 a000bfb4: e1560009 cmp r6, r9 a000bfb8: 33a06000 movcc r6, #0 a000bfbc: 23a06001 movcs r6, #1 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 ) { if ( !_Heap_Is_block_in_heap( heap, free_block ) ) { a000bfc0: e21660ff ands r6, r6, #255 ; 0xff (*printer)( a000bfc4: 01a00004 moveq r0, r4 a000bfc8: 03a01001 moveq r1, #1 a000bfcc: 059f2310 ldreq r2, [pc, #784] ; a000c2e4 <_Heap_Walk+0x4f4> a000bfd0: 0a000011 beq a000c01c <_Heap_Walk+0x22c> RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned( uintptr_t value, uintptr_t alignment ) { return (value % alignment) == 0; a000bfd4: e2890008 add r0, r9, #8 a000bfd8: e1a01007 mov r1, r7 a000bfdc: ebffe406 bl a0004ffc <__umodsi3> ); return false; } if ( a000bfe0: e2506000 subs r6, r0, #0 !_Heap_Is_aligned( _Heap_Alloc_area_of_block( free_block ), page_size ) ) { (*printer)( a000bfe4: 11a00004 movne r0, r4 a000bfe8: 13a01001 movne r1, #1 a000bfec: 159f22f4 ldrne r2, [pc, #756] ; a000c2e8 <_Heap_Walk+0x4f8> a000bff0: 11a03009 movne r3, r9 a000bff4: 1a0000ac bne a000c2ac <_Heap_Walk+0x4bc> - 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; a000bff8: e5993004 ldr r3, [r9, #4] a000bffc: e3c33001 bic r3, r3, #1 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; a000c000: e0893003 add r3, r9, r3 a000c004: e593c004 ldr ip, [r3, #4] ); return false; } if ( _Heap_Is_used( free_block ) ) { a000c008: e21cc001 ands ip, ip, #1 a000c00c: 0a000005 beq a000c028 <_Heap_Walk+0x238> (*printer)( a000c010: e59f22d4 ldr r2, [pc, #724] ; a000c2ec <_Heap_Walk+0x4fc> <== NOT EXECUTED a000c014: e1a00004 mov r0, r4 <== NOT EXECUTED a000c018: e3a01001 mov r1, #1 <== NOT EXECUTED a000c01c: e1a03009 mov r3, r9 <== NOT EXECUTED a000c020: e12fff38 blx r8 <== NOT EXECUTED a000c024: ea000099 b a000c290 <_Heap_Walk+0x4a0> <== NOT EXECUTED ); return false; } if ( free_block->prev != prev_block ) { a000c028: e599300c ldr r3, [r9, #12] a000c02c: e153000b cmp r3, fp a000c030: 0a000009 beq a000c05c <_Heap_Walk+0x26c> (*printer)( a000c034: e58d3000 str r3, [sp] <== NOT EXECUTED a000c038: e58dc01c str ip, [sp, #28] <== NOT EXECUTED a000c03c: e1a00004 mov r0, r4 <== NOT EXECUTED a000c040: e3a01001 mov r1, #1 <== NOT EXECUTED a000c044: e59f22a4 ldr r2, [pc, #676] ; a000c2f0 <_Heap_Walk+0x500> <== NOT EXECUTED a000c048: e1a03009 mov r3, r9 <== NOT EXECUTED a000c04c: e12fff38 blx r8 <== NOT EXECUTED if ( !_System_state_Is_up( _System_state_Get() ) ) { return true; } if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; a000c050: e59dc01c ldr ip, [sp, #28] <== NOT EXECUTED a000c054: e1a0600c mov r6, ip <== NOT EXECUTED a000c058: ea00008c b a000c290 <_Heap_Walk+0x4a0> <== NOT EXECUTED return false; } prev_block = free_block; free_block = free_block->next; a000c05c: e1a0b009 mov fp, r9 a000c060: e5999008 ldr r9, [r9, #8] 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 ) { a000c064: e1590005 cmp r9, r5 a000c068: 1affffcc bne a000bfa0 <_Heap_Walk+0x1b0> a000c06c: ea000000 b a000c074 <_Heap_Walk+0x284> block->prev_size ); } block = next_block; } while ( block != first_block ); a000c070: e1a0a009 mov sl, r9 - 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; a000c074: e59a6004 ldr r6, [sl, #4] 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; a000c078: e5953020 ldr r3, [r5, #32] - 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; a000c07c: e3c6b001 bic fp, r6, #1 RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); a000c080: e08a900b add r9, sl, fp 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; a000c084: e1530009 cmp r3, r9 a000c088: 83a03000 movhi r3, #0 a000c08c: 8a000003 bhi a000c0a0 <_Heap_Walk+0x2b0> a000c090: e5953024 ldr r3, [r5, #36] ; 0x24 a000c094: e1530009 cmp r3, r9 a000c098: 33a03000 movcc r3, #0 a000c09c: 23a03001 movcs r3, #1 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; if ( !_Heap_Is_block_in_heap( heap, next_block ) ) { a000c0a0: e21330ff ands r3, r3, #255 ; 0xff a000c0a4: 1a000007 bne a000c0c8 <_Heap_Walk+0x2d8> a000c0a8: e1a06003 mov r6, r3 <== NOT EXECUTED (*printer)( a000c0ac: e58d9000 str r9, [sp] <== NOT EXECUTED a000c0b0: e1a00004 mov r0, r4 <== NOT EXECUTED a000c0b4: e3a01001 mov r1, #1 <== NOT EXECUTED a000c0b8: e59f2234 ldr r2, [pc, #564] ; a000c2f4 <_Heap_Walk+0x504> <== NOT EXECUTED a000c0bc: e1a0300a mov r3, sl <== NOT EXECUTED a000c0c0: e12fff38 blx r8 <== NOT EXECUTED "block 0x%08x: next block 0x%08x not in heap\n", block, next_block ); return false; a000c0c4: ea000071 b a000c290 <_Heap_Walk+0x4a0> <== 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; a000c0c8: e59dc02c ldr ip, [sp, #44] ; 0x2c RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned( uintptr_t value, uintptr_t alignment ) { return (value % alignment) == 0; a000c0cc: e1a0000b mov r0, fp a000c0d0: e59d1020 ldr r1, [sp, #32] a000c0d4: e05a700c subs r7, sl, ip a000c0d8: 13a07001 movne r7, #1 a000c0dc: ebffe3c6 bl a0004ffc <__umodsi3> ); return false; } if ( !_Heap_Is_aligned( block_size, page_size ) && is_not_last_block ) { a000c0e0: e3500000 cmp r0, #0 a000c0e4: 0a000005 beq a000c100 <_Heap_Walk+0x310> a000c0e8: e3570000 cmp r7, #0 <== NOT EXECUTED (*printer)( a000c0ec: 158db000 strne fp, [sp] <== NOT EXECUTED a000c0f0: 11a00004 movne r0, r4 <== NOT EXECUTED a000c0f4: 13a01001 movne r1, #1 <== NOT EXECUTED a000c0f8: 159f21f8 ldrne r2, [pc, #504] ; a000c2f8 <_Heap_Walk+0x508><== NOT EXECUTED a000c0fc: 1a000013 bne a000c150 <_Heap_Walk+0x360> <== NOT EXECUTED ); return false; } if ( block_size < min_block_size && is_not_last_block ) { a000c100: e59dc028 ldr ip, [sp, #40] ; 0x28 a000c104: e15b000c cmp fp, ip a000c108: 2a000008 bcs a000c130 <_Heap_Walk+0x340> a000c10c: e3570000 cmp r7, #0 <== NOT EXECUTED a000c110: 0a000006 beq a000c130 <_Heap_Walk+0x340> <== NOT EXECUTED (*printer)( a000c114: e88d1800 stm sp, {fp, ip} <== NOT EXECUTED a000c118: e1a00004 mov r0, r4 <== NOT EXECUTED a000c11c: e3a01001 mov r1, #1 <== NOT EXECUTED a000c120: e59f21d4 ldr r2, [pc, #468] ; a000c2fc <_Heap_Walk+0x50c> <== NOT EXECUTED a000c124: e1a0300a mov r3, sl <== NOT EXECUTED a000c128: e12fff38 blx r8 <== NOT EXECUTED a000c12c: ea00005f b a000c2b0 <_Heap_Walk+0x4c0> <== NOT EXECUTED ); return false; } if ( next_block_begin <= block_begin && is_not_last_block ) { a000c130: e159000a cmp r9, sl a000c134: 8a000008 bhi a000c15c <_Heap_Walk+0x36c> a000c138: e3570000 cmp r7, #0 a000c13c: 0a000006 beq a000c15c <_Heap_Walk+0x36c> (*printer)( a000c140: e59f21b8 ldr r2, [pc, #440] ; a000c300 <_Heap_Walk+0x510> <== NOT EXECUTED a000c144: e58d9000 str r9, [sp] <== NOT EXECUTED a000c148: e1a00004 mov r0, r4 <== NOT EXECUTED a000c14c: e3a01001 mov r1, #1 <== NOT EXECUTED a000c150: e1a0300a mov r3, sl <== NOT EXECUTED a000c154: e12fff38 blx r8 <== NOT EXECUTED a000c158: ea000054 b a000c2b0 <_Heap_Walk+0x4c0> <== 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; a000c15c: e5993004 ldr r3, [r9, #4] a000c160: e2066001 and r6, r6, #1 ); return false; } if ( !_Heap_Is_prev_used( next_block ) ) { a000c164: e3130001 tst r3, #1 a000c168: 1a000034 bne a000c240 <_Heap_Walk+0x450> 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 ? a000c16c: e59a200c ldr r2, [sl, #12] 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)( a000c170: e5953008 ldr r3, [r5, #8] return _Heap_Free_list_head(heap)->next; } RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_last( Heap_Control *heap ) { return _Heap_Free_list_tail(heap)->prev; a000c174: e595100c ldr r1, [r5, #12] a000c178: e1520003 cmp r2, r3 a000c17c: 059f0180 ldreq r0, [pc, #384] ; a000c304 <_Heap_Walk+0x514> a000c180: 0a000003 beq a000c194 <_Heap_Walk+0x3a4> block, block_size, block->prev, block->prev == first_free_block ? " (= first free)" : (block->prev == free_list_head ? " (= head)" : ""), a000c184: e59f317c ldr r3, [pc, #380] ; a000c308 <_Heap_Walk+0x518> a000c188: e1520005 cmp r2, r5 a000c18c: e59f0178 ldr r0, [pc, #376] ; a000c30c <_Heap_Walk+0x51c> a000c190: 11a00003 movne r0, r3 block->next, block->next == last_free_block ? a000c194: e59a3008 ldr r3, [sl, #8] 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)( a000c198: e1530001 cmp r3, r1 a000c19c: 059f116c ldreq r1, [pc, #364] ; a000c310 <_Heap_Walk+0x520> a000c1a0: 0a000003 beq a000c1b4 <_Heap_Walk+0x3c4> " (= first free)" : (block->prev == free_list_head ? " (= head)" : ""), block->next, block->next == last_free_block ? " (= last free)" : (block->next == free_list_tail ? " (= tail)" : "") a000c1a4: e59fc168 ldr ip, [pc, #360] ; a000c314 <_Heap_Walk+0x524> a000c1a8: e1530005 cmp r3, r5 a000c1ac: e59f1154 ldr r1, [pc, #340] ; a000c308 <_Heap_Walk+0x518> a000c1b0: 01a0100c moveq r1, ip 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)( a000c1b4: e58d2004 str r2, [sp, #4] a000c1b8: e58d0008 str r0, [sp, #8] a000c1bc: e58d300c str r3, [sp, #12] a000c1c0: e58d1010 str r1, [sp, #16] a000c1c4: e1a0300a mov r3, sl a000c1c8: e58db000 str fp, [sp] a000c1cc: e1a00004 mov r0, r4 a000c1d0: e3a01000 mov r1, #0 a000c1d4: e59f213c ldr r2, [pc, #316] ; a000c318 <_Heap_Walk+0x528> a000c1d8: e12fff38 blx r8 block->next == last_free_block ? " (= last free)" : (block->next == free_list_tail ? " (= tail)" : "") ); if ( block_size != next_block->prev_size ) { a000c1dc: e5993000 ldr r3, [r9] a000c1e0: e15b0003 cmp fp, r3 a000c1e4: 0a000007 beq a000c208 <_Heap_Walk+0x418> (*printer)( a000c1e8: e98d0208 stmib sp, {r3, r9} <== NOT EXECUTED a000c1ec: e58db000 str fp, [sp] <== NOT EXECUTED a000c1f0: e1a00004 mov r0, r4 <== NOT EXECUTED a000c1f4: e3a01001 mov r1, #1 <== NOT EXECUTED a000c1f8: e59f211c ldr r2, [pc, #284] ; a000c31c <_Heap_Walk+0x52c> <== NOT EXECUTED a000c1fc: e1a0300a mov r3, sl <== NOT EXECUTED a000c200: e12fff38 blx r8 <== NOT EXECUTED a000c204: ea000029 b a000c2b0 <_Heap_Walk+0x4c0> <== NOT EXECUTED ); return false; } if ( !prev_used ) { a000c208: e3560000 cmp r6, #0 (*printer)( a000c20c: 01a00004 moveq r0, r4 a000c210: 03a01001 moveq r1, #1 a000c214: 059f2104 ldreq r2, [pc, #260] ; a000c320 <_Heap_Walk+0x530> a000c218: 01a0300a moveq r3, sl a000c21c: 0affff7f beq a000c020 <_Heap_Walk+0x230> return &heap->free_list; } RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap ) { return _Heap_Free_list_head(heap)->next; a000c220: e5953008 ldr r3, [r5, #8] a000c224: ea000002 b a000c234 <_Heap_Walk+0x444> { 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 ) { if ( free_block == block ) { a000c228: e153000a cmp r3, sl a000c22c: 0a000013 beq a000c280 <_Heap_Walk+0x490> return true; } free_block = free_block->next; a000c230: e5933008 ldr r3, [r3, #8] ) { 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 ) { a000c234: e1530005 cmp r3, r5 a000c238: 1afffffa bne a000c228 <_Heap_Walk+0x438> a000c23c: ea000016 b a000c29c <_Heap_Walk+0x4ac> <== NOT EXECUTED if ( !_Heap_Is_prev_used( next_block ) ) { if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) { return false; } } else if (prev_used) { a000c240: e3560000 cmp r6, #0 (*printer)( a000c244: e58db000 str fp, [sp] if ( !_Heap_Is_prev_used( next_block ) ) { if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) { return false; } } else if (prev_used) { a000c248: 0a000005 beq a000c264 <_Heap_Walk+0x474> (*printer)( a000c24c: e1a00004 mov r0, r4 a000c250: e3a01000 mov r1, #0 a000c254: e59f20c8 ldr r2, [pc, #200] ; a000c324 <_Heap_Walk+0x534> a000c258: e1a0300a mov r3, sl a000c25c: e12fff38 blx r8 a000c260: ea000006 b a000c280 <_Heap_Walk+0x490> "block 0x%08x: size %u\n", block, block_size ); } else { (*printer)( a000c264: e59a3000 ldr r3, [sl] a000c268: e1a00004 mov r0, r4 a000c26c: e1a01006 mov r1, r6 a000c270: e58d3004 str r3, [sp, #4] a000c274: e59f20ac ldr r2, [pc, #172] ; a000c328 <_Heap_Walk+0x538> a000c278: e1a0300a mov r3, sl a000c27c: e12fff38 blx r8 block->prev_size ); } block = next_block; } while ( block != first_block ); a000c280: e59dc024 ldr ip, [sp, #36] ; 0x24 a000c284: e159000c cmp r9, ip a000c288: 1affff78 bne a000c070 <_Heap_Walk+0x280> Heap_Block *block = first_block; Heap_Walk_printer printer = dump ? _Heap_Walk_print : _Heap_Walk_print_nothing; if ( !_System_state_Is_up( _System_state_Get() ) ) { return true; a000c28c: e3a06001 mov r6, #1 block = next_block; } while ( block != first_block ); return true; } a000c290: e1a00006 mov r0, r6 a000c294: e28dd030 add sp, sp, #48 ; 0x30 a000c298: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} return false; } if ( !_Heap_Walk_is_in_free_list( heap, block ) ) { (*printer)( a000c29c: e59f2088 ldr r2, [pc, #136] ; a000c32c <_Heap_Walk+0x53c> <== NOT EXECUTED a000c2a0: e1a00004 mov r0, r4 <== NOT EXECUTED a000c2a4: e3a01001 mov r1, #1 <== NOT EXECUTED a000c2a8: e1a0300a mov r3, sl <== NOT EXECUTED a000c2ac: e12fff38 blx r8 return false; } if ( !_Heap_Is_prev_used( next_block ) ) { if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) { return false; a000c2b0: e3a06000 mov r6, #0 a000c2b4: eafffff5 b a000c290 <_Heap_Walk+0x4a0> =============================================================================== a000bdac <_Heap_Walk_print>: static void _Heap_Walk_print( int source, bool error, const char *fmt, ... ) { a000bdac: e92d000c push {r2, r3} <== NOT EXECUTED a000bdb0: e92d4001 push {r0, lr} <== NOT EXECUTED a000bdb4: e1a03000 mov r3, r0 <== NOT EXECUTED va_list ap; if ( error ) { a000bdb8: e31100ff tst r1, #255 ; 0xff <== NOT EXECUTED printk( "FAIL[%d]: ", source ); a000bdbc: 159f0024 ldrne r0, [pc, #36] ; a000bde8 <_Heap_Walk_print+0x3c><== NOT EXECUTED } else { printk( "PASS[%d]: ", source ); a000bdc0: 059f0024 ldreq r0, [pc, #36] ; a000bdec <_Heap_Walk_print+0x40><== NOT EXECUTED a000bdc4: e1a01003 mov r1, r3 <== NOT EXECUTED a000bdc8: ebffee79 bl a00077b4 <== NOT EXECUTED } va_start( ap, fmt ); a000bdcc: e28d100c add r1, sp, #12 <== NOT EXECUTED vprintk( fmt, ap ); a000bdd0: e59d0008 ldr r0, [sp, #8] <== NOT EXECUTED printk( "FAIL[%d]: ", source ); } else { printk( "PASS[%d]: ", source ); } va_start( ap, fmt ); a000bdd4: e58d1000 str r1, [sp] <== NOT EXECUTED vprintk( fmt, ap ); a000bdd8: ebfff802 bl a0009de8 <== NOT EXECUTED va_end( ap ); } a000bddc: e8bd4008 pop {r3, lr} <== NOT EXECUTED a000bde0: e28dd008 add sp, sp, #8 <== NOT EXECUTED a000bde4: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000b434 <_Internal_error_Occurred>: void _Internal_error_Occurred( Internal_errors_Source the_source, bool is_internal, Internal_errors_t the_error ) { a000b434: e92d4007 push {r0, r1, r2, lr} a000b438: e20160ff and r6, r1, #255 ; 0xff a000b43c: e1a04000 mov r4, r0 Internal_errors_Source source, bool is_internal, Internal_errors_t error ) { User_extensions_Fatal_context ctx = { source, is_internal, error }; a000b440: e58d0000 str r0, [sp] _User_extensions_Iterate( &ctx, _User_extensions_Fatal_visitor ); a000b444: e59f1040 ldr r1, [pc, #64] ; a000b48c <_Internal_error_Occurred+0x58> a000b448: e1a0000d mov r0, sp a000b44c: e1a05002 mov r5, r2 Internal_errors_Source source, bool is_internal, Internal_errors_t error ) { User_extensions_Fatal_context ctx = { source, is_internal, error }; a000b450: e58d2008 str r2, [sp, #8] a000b454: e5cd6004 strb r6, [sp, #4] _User_extensions_Iterate( &ctx, _User_extensions_Fatal_visitor ); a000b458: eb000757 bl a000d1bc <_User_extensions_Iterate> _User_extensions_Fatal( the_source, is_internal, the_error ); _Internal_errors_What_happened.the_source = the_source; a000b45c: e59f302c ldr r3, [pc, #44] ; a000b490 <_Internal_error_Occurred+0x5c><== NOT EXECUTED RTEMS_INLINE_ROUTINE void _System_state_Set ( System_state_Codes state ) { _System_state_Current = state; a000b460: e3a02005 mov r2, #5 <== NOT EXECUTED a000b464: e5834000 str r4, [r3] <== NOT EXECUTED _Internal_errors_What_happened.is_internal = is_internal; a000b468: e5c36004 strb r6, [r3, #4] <== NOT EXECUTED _Internal_errors_What_happened.the_error = the_error; a000b46c: e5835008 str r5, [r3, #8] <== NOT EXECUTED a000b470: e59f301c ldr r3, [pc, #28] ; a000b494 <_Internal_error_Occurred+0x60><== NOT EXECUTED a000b474: e5832000 str r2, [r3] <== NOT EXECUTED uint32_t level; #if defined(ARM_MULTILIB_ARCH_V4) uint32_t arm_switch_reg; __asm__ volatile ( a000b478: e10f2000 mrs r2, CPSR <== NOT EXECUTED a000b47c: e3823080 orr r3, r2, #128 ; 0x80 <== NOT EXECUTED a000b480: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED _System_state_Set( SYSTEM_STATE_FAILED ); _CPU_Fatal_halt( the_error ); a000b484: e1a00005 mov r0, r5 <== NOT EXECUTED a000b488: eafffffe b a000b488 <_Internal_error_Occurred+0x54> <== NOT EXECUTED =============================================================================== a000b874 <_Objects_Get_information>: Objects_Information *_Objects_Get_information( Objects_APIs the_api, uint16_t the_class ) { a000b874: e1a01801 lsl r1, r1, #16 a000b878: e92d4030 push {r4, r5, lr} Objects_Information *info; int the_class_api_maximum; if ( !the_class ) a000b87c: e1b05821 lsrs r5, r1, #16 Objects_Information *_Objects_Get_information( Objects_APIs the_api, uint16_t the_class ) { a000b880: e1a04000 mov r4, r0 Objects_Information *info; int the_class_api_maximum; if ( !the_class ) a000b884: 0a00000f beq a000b8c8 <_Objects_Get_information+0x54> /* * 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 ); a000b888: eb000f58 bl a000f5f0 <_Objects_API_maximum_class> if ( the_class_api_maximum == 0 ) a000b88c: e3500000 cmp r0, #0 a000b890: 0a00000f beq a000b8d4 <_Objects_Get_information+0x60> return NULL; if ( the_class > (uint32_t) the_class_api_maximum ) a000b894: e1550000 cmp r5, r0 a000b898: 8a00000c bhi a000b8d0 <_Objects_Get_information+0x5c> return NULL; if ( !_Objects_Information_table[ the_api ] ) a000b89c: e59f3034 ldr r3, [pc, #52] ; a000b8d8 <_Objects_Get_information+0x64> a000b8a0: e7930104 ldr r0, [r3, r4, lsl #2] a000b8a4: e3500000 cmp r0, #0 a000b8a8: 0a000009 beq a000b8d4 <_Objects_Get_information+0x60> return NULL; info = _Objects_Information_table[ the_api ][ the_class ]; a000b8ac: e7900105 ldr r0, [r0, r5, lsl #2] if ( !info ) a000b8b0: e3500000 cmp r0, #0 a000b8b4: 0a000006 beq a000b8d4 <_Objects_Get_information+0x60> * In a multprocessing configuration, we may access remote objects. * Thus we may have 0 local instances and still have a valid object * pointer. */ #if !defined(RTEMS_MULTIPROCESSING) if ( info->maximum == 0 ) a000b8b8: e1d031b0 ldrh r3, [r0, #16] return NULL; a000b8bc: e3530000 cmp r3, #0 a000b8c0: 03a00000 moveq r0, #0 a000b8c4: e8bd8030 pop {r4, r5, pc} { Objects_Information *info; int the_class_api_maximum; if ( !the_class ) return NULL; a000b8c8: e1a00005 mov r0, r5 <== NOT EXECUTED a000b8cc: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED the_class_api_maximum = _Objects_API_maximum_class( the_api ); if ( the_class_api_maximum == 0 ) return NULL; if ( the_class > (uint32_t) the_class_api_maximum ) return NULL; a000b8d0: e3a00000 mov r0, #0 <== NOT EXECUTED if ( info->maximum == 0 ) return NULL; #endif return info; } a000b8d4: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED =============================================================================== a000b8dc <_Objects_Get_isr_disable>: { Objects_Control *the_object; uint32_t index; ISR_Level level; index = id - information->minimum_id + 1; a000b8dc: e590c008 ldr ip, [r0, #8] Objects_Information *information, Objects_Id id, Objects_Locations *location, ISR_Level *level_p ) { a000b8e0: e92d4010 push {r4, lr} Objects_Control *the_object; uint32_t index; ISR_Level level; index = id - information->minimum_id + 1; a000b8e4: e26cc001 rsb ip, ip, #1 a000b8e8: e08c1001 add r1, ip, r1 uint32_t level; #if defined(ARM_MULTILIB_ARCH_V4) uint32_t arm_switch_reg; __asm__ volatile ( a000b8ec: e10f4000 mrs r4, CPSR a000b8f0: e384c080 orr ip, r4, #128 ; 0x80 a000b8f4: e129f00c msr CPSR_fc, ip _ISR_Disable( level ); if ( information->maximum >= index ) { a000b8f8: e1d0c1b0 ldrh ip, [r0, #16] a000b8fc: e15c0001 cmp ip, r1 a000b900: 3a00000b bcc a000b934 <_Objects_Get_isr_disable+0x58> if ( (the_object = information->local_table[ index ]) != NULL ) { a000b904: e590001c ldr r0, [r0, #28] a000b908: e7900101 ldr r0, [r0, r1, lsl #2] a000b90c: e3500000 cmp r0, #0 a000b910: 0a000003 beq a000b924 <_Objects_Get_isr_disable+0x48> *location = OBJECTS_LOCAL; a000b914: e3a01000 mov r1, #0 a000b918: e5821000 str r1, [r2] *level_p = level; a000b91c: e5834000 str r4, [r3] return the_object; a000b920: e8bd8010 pop {r4, pc} static inline void arm_interrupt_enable( uint32_t level ) { #if defined(ARM_MULTILIB_ARCH_V4) ARM_SWITCH_REGISTERS; __asm__ volatile ( a000b924: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED } _ISR_Enable( level ); *location = OBJECTS_ERROR; a000b928: e3a03001 mov r3, #1 <== NOT EXECUTED a000b92c: e5823000 str r3, [r2] <== NOT EXECUTED return NULL; a000b930: e8bd8010 pop {r4, pc} <== NOT EXECUTED a000b934: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED } _ISR_Enable( level ); *location = OBJECTS_ERROR; a000b938: e3a03001 mov r3, #1 <== NOT EXECUTED a000b93c: e5823000 str r3, [r2] <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) _Objects_MP_Is_remote( information, id, location, &the_object ); return the_object; #else return NULL; a000b940: e3a00000 mov r0, #0 <== NOT EXECUTED #endif } a000b944: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a000f168 <_Objects_Id_to_name>: Objects_Name_or_id_lookup_errors _Objects_Id_to_name ( Objects_Id id, Objects_Name *name ) { a000f168: e92d4011 push {r0, r4, lr} a000f16c: e1a04001 mov r4, r1 /* * Caller is trusted for name != NULL. */ tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; a000f170: e2501000 subs r1, r0, #0 a000f174: 059f306c ldreq r3, [pc, #108] ; a000f1e8 <_Objects_Id_to_name+0x80> a000f178: 05933008 ldreq r3, [r3, #8] a000f17c: 05931008 ldreq r1, [r3, #8] a000f180: e1a03c21 lsr r3, r1, #24 a000f184: e2033007 and r3, r3, #7 */ RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid( uint32_t the_api ) { if ( !the_api || the_api > OBJECTS_APIS_LAST ) a000f188: e2432001 sub r2, r3, #1 a000f18c: e3520002 cmp r2, #2 a000f190: 8a00000d bhi a000f1cc <_Objects_Id_to_name+0x64> a000f194: ea00000e b a000f1d4 <_Objects_Id_to_name+0x6c> */ RTEMS_INLINE_ROUTINE uint32_t _Objects_Get_class( Objects_Id id ) { return (uint32_t) a000f198: e1a02da1 lsr r2, r1, #27 if ( !_Objects_Information_table[ the_api ] ) return OBJECTS_INVALID_ID; the_class = _Objects_Get_class( tmpId ); information = _Objects_Information_table[ the_api ][ the_class ]; a000f19c: e7930102 ldr r0, [r3, r2, lsl #2] if ( !information ) a000f1a0: e3500000 cmp r0, #0 a000f1a4: 0a000008 beq a000f1cc <_Objects_Id_to_name+0x64> #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 ); a000f1a8: e1a0200d mov r2, sp a000f1ac: ebffffd3 bl a000f100 <_Objects_Get> if ( !the_object ) a000f1b0: e3500000 cmp r0, #0 a000f1b4: 0a000004 beq a000f1cc <_Objects_Id_to_name+0x64> return OBJECTS_INVALID_ID; *name = the_object->name; a000f1b8: e590300c ldr r3, [r0, #12] a000f1bc: e5843000 str r3, [r4] _Thread_Enable_dispatch(); a000f1c0: eb000378 bl a000ffa8 <_Thread_Enable_dispatch> return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL; a000f1c4: e3a00000 mov r0, #0 a000f1c8: ea000000 b a000f1d0 <_Objects_Id_to_name+0x68> 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; a000f1cc: e3a00003 mov r0, #3 return OBJECTS_INVALID_ID; *name = the_object->name; _Thread_Enable_dispatch(); return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL; } a000f1d0: e8bd8018 pop {r3, r4, pc} the_api = _Objects_Get_API( tmpId ); if ( !_Objects_Is_api_valid( the_api ) ) return OBJECTS_INVALID_ID; if ( !_Objects_Information_table[ the_api ] ) a000f1d4: e59f2010 ldr r2, [pc, #16] ; a000f1ec <_Objects_Id_to_name+0x84> a000f1d8: e7923103 ldr r3, [r2, r3, lsl #2] a000f1dc: e3530000 cmp r3, #0 a000f1e0: 1affffec bne a000f198 <_Objects_Id_to_name+0x30> a000f1e4: eafffff8 b a000f1cc <_Objects_Id_to_name+0x64> <== NOT EXECUTED =============================================================================== a000ba88 <_Objects_Name_to_id_u32>: Objects_Name name_for_mp; #endif /* ASSERT: information->is_string == false */ if ( !id ) a000ba88: e3530000 cmp r3, #0 Objects_Information *information, uint32_t name, uint32_t node, Objects_Id *id ) { a000ba8c: e92d4030 push {r4, r5, lr} Objects_Name name_for_mp; #endif /* ASSERT: information->is_string == false */ if ( !id ) a000ba90: 0a00001a beq a000bb00 <_Objects_Name_to_id_u32+0x78> return OBJECTS_INVALID_ADDRESS; if ( name == 0 ) a000ba94: e3510000 cmp r1, #0 a000ba98: 0a00001a beq a000bb08 <_Objects_Name_to_id_u32+0x80> return OBJECTS_INVALID_NAME; search_local_node = false; if ( information->maximum != 0 && a000ba9c: e1d041b0 ldrh r4, [r0, #16] a000baa0: e3540000 cmp r4, #0 a000baa4: 0a000019 beq a000bb10 <_Objects_Name_to_id_u32+0x88> a000baa8: e3720106 cmn r2, #-2147483647 ; 0x80000001 a000baac: 13520000 cmpne r2, #0 a000bab0: 03a02001 moveq r2, #1 a000bab4: 0a00000e beq a000baf4 <_Objects_Name_to_id_u32+0x6c> (node == OBJECTS_SEARCH_ALL_NODES || node == OBJECTS_SEARCH_LOCAL_NODE || a000bab8: e3520001 cmp r2, #1 a000babc: 1a000011 bne a000bb08 <_Objects_Name_to_id_u32+0x80> a000bac0: ea00000b b a000baf4 <_Objects_Name_to_id_u32+0x6c> )) search_local_node = true; if ( search_local_node ) { for ( index = 1; index <= information->maximum; index++ ) { the_object = information->local_table[ index ]; a000bac4: e590c01c ldr ip, [r0, #28] a000bac8: e79cc102 ldr ip, [ip, r2, lsl #2] if ( !the_object ) a000bacc: e35c0000 cmp ip, #0 a000bad0: 0a000006 beq a000baf0 <_Objects_Name_to_id_u32+0x68> continue; if ( name == the_object->name.name_u32 ) { a000bad4: e59c500c ldr r5, [ip, #12] a000bad8: e1510005 cmp r1, r5 a000badc: 1a000003 bne a000baf0 <_Objects_Name_to_id_u32+0x68> *id = the_object->id; a000bae0: e59c2008 ldr r2, [ip, #8] return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL; a000bae4: e3a00000 mov r0, #0 the_object = information->local_table[ index ]; if ( !the_object ) continue; if ( name == the_object->name.name_u32 ) { *id = the_object->id; a000bae8: e5832000 str r2, [r3] return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL; a000baec: e8bd8030 pop {r4, r5, pc} _Objects_Is_local_node( node ) )) search_local_node = true; if ( search_local_node ) { for ( index = 1; index <= information->maximum; index++ ) { a000baf0: e2822001 add r2, r2, #1 a000baf4: e1520004 cmp r2, r4 a000baf8: 9afffff1 bls a000bac4 <_Objects_Name_to_id_u32+0x3c> a000bafc: ea000001 b a000bb08 <_Objects_Name_to_id_u32+0x80> <== NOT EXECUTED #endif /* ASSERT: information->is_string == false */ if ( !id ) return OBJECTS_INVALID_ADDRESS; a000bb00: e3a00002 mov r0, #2 <== NOT EXECUTED a000bb04: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED if ( name == 0 ) return OBJECTS_INVALID_NAME; a000bb08: e3a00001 mov r0, #1 <== NOT EXECUTED a000bb0c: e8bd8030 pop {r4, r5, pc} <== 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; a000bb10: e3a00001 mov r0, #1 #endif } a000bb14: e8bd8030 pop {r4, r5, pc} =============================================================================== a000d88c <_Objects_Set_name>: bool _Objects_Set_name( Objects_Information *information, Objects_Control *the_object, const char *name ) { a000d88c: e92d4030 push {r4, r5, lr} <== NOT EXECUTED a000d890: e1a04001 mov r4, r1 <== NOT EXECUTED size_t length; const char *s; s = name; length = strnlen( name, information->name_length ); a000d894: e1d013b8 ldrh r1, [r0, #56] ; 0x38 <== NOT EXECUTED a000d898: e1a00002 mov r0, r2 <== NOT EXECUTED bool _Objects_Set_name( Objects_Information *information, Objects_Control *the_object, const char *name ) { a000d89c: e1a05002 mov r5, r2 <== NOT EXECUTED size_t length; const char *s; s = name; length = strnlen( name, information->name_length ); a000d8a0: eb001a5f bl a0014224 <== NOT EXECUTED d[length] = '\0'; the_object->name.name_p = d; } else #endif { the_object->name.name_u32 = _Objects_Build_name( a000d8a4: e3500001 cmp r0, #1 <== NOT EXECUTED a000d8a8: 85d53001 ldrbhi r3, [r5, #1] <== NOT EXECUTED a000d8ac: e5d52000 ldrb r2, [r5] <== NOT EXECUTED a000d8b0: 93a03602 movls r3, #2097152 ; 0x200000 <== NOT EXECUTED a000d8b4: 81a03803 lslhi r3, r3, #16 <== NOT EXECUTED a000d8b8: e1a02c02 lsl r2, r2, #24 <== NOT EXECUTED a000d8bc: e3500002 cmp r0, #2 <== NOT EXECUTED a000d8c0: e1832002 orr r2, r3, r2 <== NOT EXECUTED a000d8c4: 85d53002 ldrbhi r3, [r5, #2] <== NOT EXECUTED a000d8c8: 93a03a02 movls r3, #8192 ; 0x2000 <== NOT EXECUTED a000d8cc: 81a03403 lslhi r3, r3, #8 <== NOT EXECUTED a000d8d0: e3500003 cmp r0, #3 <== NOT EXECUTED a000d8d4: e1822003 orr r2, r2, r3 <== NOT EXECUTED a000d8d8: 85d53003 ldrbhi r3, [r5, #3] <== NOT EXECUTED a000d8dc: 93a03020 movls r3, #32 <== NOT EXECUTED ); } return true; } a000d8e0: e3a00001 mov r0, #1 <== NOT EXECUTED d[length] = '\0'; the_object->name.name_p = d; } else #endif { the_object->name.name_u32 = _Objects_Build_name( a000d8e4: e1823003 orr r3, r2, r3 <== NOT EXECUTED a000d8e8: e584300c str r3, [r4, #12] <== NOT EXECUTED ); } return true; } a000d8ec: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED =============================================================================== a0010a98 <_Protected_heap_Get_information>: bool _Protected_heap_Get_information( Heap_Control *the_heap, Heap_Information_block *the_info ) { a0010a98: e92d4070 push {r4, r5, r6, lr} if ( !the_heap ) a0010a9c: e2506000 subs r6, r0, #0 bool _Protected_heap_Get_information( Heap_Control *the_heap, Heap_Information_block *the_info ) { a0010aa0: e1a05001 mov r5, r1 if ( !the_heap ) a0010aa4: 0a00000b beq a0010ad8 <_Protected_heap_Get_information+0x40> return false; if ( !the_info ) a0010aa8: e3510000 cmp r1, #0 a0010aac: 0a00000b beq a0010ae0 <_Protected_heap_Get_information+0x48> return false; _RTEMS_Lock_allocator(); a0010ab0: e59f4030 ldr r4, [pc, #48] ; a0010ae8 <_Protected_heap_Get_information+0x50> a0010ab4: e5940000 ldr r0, [r4] a0010ab8: ebfff835 bl a000eb94 <_API_Mutex_Lock> _Heap_Get_information( the_heap, the_info ); a0010abc: e1a00006 mov r0, r6 a0010ac0: e1a01005 mov r1, r5 a0010ac4: eb000e17 bl a0014328 <_Heap_Get_information> _RTEMS_Unlock_allocator(); a0010ac8: e5940000 ldr r0, [r4] a0010acc: ebfff849 bl a000ebf8 <_API_Mutex_Unlock> return true; a0010ad0: e3a00001 mov r0, #1 a0010ad4: e8bd8070 pop {r4, r5, r6, pc} Heap_Control *the_heap, Heap_Information_block *the_info ) { if ( !the_heap ) return false; a0010ad8: e1a00006 mov r0, r6 <== NOT EXECUTED a0010adc: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED if ( !the_info ) return false; a0010ae0: e1a00001 mov r0, r1 <== NOT EXECUTED _RTEMS_Lock_allocator(); _Heap_Get_information( the_heap, the_info ); _RTEMS_Unlock_allocator(); return true; } a0010ae4: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED =============================================================================== a0010b48 <_Protected_heap_Walk>: * This routine returns true if thread dispatch indicates * that we are in a critical section. */ RTEMS_INLINE_ROUTINE bool _Thread_Dispatch_in_critical_section(void) { if ( _Thread_Dispatch_disable_level == 0 ) a0010b48: e59f3054 ldr r3, [pc, #84] ; a0010ba4 <_Protected_heap_Walk+0x5c><== NOT EXECUTED bool _Protected_heap_Walk( Heap_Control *the_heap, int source, bool do_dump ) { a0010b4c: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED a0010b50: e5933000 ldr r3, [r3] <== NOT EXECUTED a0010b54: e1a06000 mov r6, r0 <== NOT EXECUTED a0010b58: e1a05001 mov r5, r1 <== NOT EXECUTED a0010b5c: e3530000 cmp r3, #0 <== NOT EXECUTED a0010b60: e20270ff and r7, r2, #255 ; 0xff <== NOT EXECUTED a0010b64: 1a00000b bne a0010b98 <_Protected_heap_Walk+0x50> <== NOT EXECUTED * a critical section, it should be safe to walk it unlocked. * * NOTE: Dispatching is also disabled during initialization. */ if ( _Thread_Dispatch_in_critical_section() == false ) { _RTEMS_Lock_allocator(); a0010b68: e59f4038 ldr r4, [pc, #56] ; a0010ba8 <_Protected_heap_Walk+0x60><== NOT EXECUTED a0010b6c: e5940000 ldr r0, [r4] <== NOT EXECUTED a0010b70: ebfff807 bl a000eb94 <_API_Mutex_Lock> <== NOT EXECUTED status = _Heap_Walk( the_heap, source, do_dump ); a0010b74: e1a01005 mov r1, r5 <== NOT EXECUTED a0010b78: e1a02007 mov r2, r7 <== NOT EXECUTED a0010b7c: e1a00006 mov r0, r6 <== NOT EXECUTED a0010b80: ebfffc37 bl a000fc64 <_Heap_Walk> <== NOT EXECUTED a0010b84: e1a05000 mov r5, r0 <== NOT EXECUTED _RTEMS_Unlock_allocator(); a0010b88: e5940000 ldr r0, [r4] <== NOT EXECUTED a0010b8c: ebfff819 bl a000ebf8 <_API_Mutex_Unlock> <== NOT EXECUTED } else { status = _Heap_Walk( the_heap, source, do_dump ); } return status; } a0010b90: e1a00005 mov r0, r5 <== NOT EXECUTED a0010b94: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED if ( _Thread_Dispatch_in_critical_section() == false ) { _RTEMS_Lock_allocator(); status = _Heap_Walk( the_heap, source, do_dump ); _RTEMS_Unlock_allocator(); } else { status = _Heap_Walk( the_heap, source, do_dump ); a0010b98: e1a02007 mov r2, r7 <== NOT EXECUTED } return status; } a0010b9c: e8bd40f0 pop {r4, r5, r6, r7, lr} <== NOT EXECUTED if ( _Thread_Dispatch_in_critical_section() == false ) { _RTEMS_Lock_allocator(); status = _Heap_Walk( the_heap, source, do_dump ); _RTEMS_Unlock_allocator(); } else { status = _Heap_Walk( the_heap, source, do_dump ); a0010ba0: eafffc2f b a000fc64 <_Heap_Walk> <== NOT EXECUTED =============================================================================== a000c828 <_RBTree_Sibling>: */ RTEMS_INLINE_ROUTINE RBTree_Node *_RBTree_Sibling( const RBTree_Node *the_node ) { if(!the_node) return NULL; a000c828: e2502000 subs r2, r0, #0 a000c82c: 01a00002 moveq r0, r2 a000c830: 012fff1e bxeq lr if(!(the_node->parent)) return NULL; a000c834: e5923000 ldr r3, [r2] a000c838: e3530000 cmp r3, #0 a000c83c: 0a000006 beq a000c85c <_RBTree_Sibling+0x34> if(!(the_node->parent->parent)) return NULL; a000c840: e5930000 ldr r0, [r3] a000c844: e3500000 cmp r0, #0 a000c848: 012fff1e bxeq lr if(the_node == the_node->parent->child[RBT_LEFT]) a000c84c: e5930004 ldr r0, [r3, #4] a000c850: e1520000 cmp r2, r0 return the_node->parent->child[RBT_RIGHT]; a000c854: 05930008 ldreq r0, [r3, #8] a000c858: e12fff1e bx lr RTEMS_INLINE_ROUTINE RBTree_Node *_RBTree_Sibling( const RBTree_Node *the_node ) { if(!the_node) return NULL; if(!(the_node->parent)) return NULL; a000c85c: e1a00003 mov r0, r3 <== NOT EXECUTED if(the_node == the_node->parent->child[RBT_LEFT]) return the_node->parent->child[RBT_RIGHT]; else return the_node->parent->child[RBT_LEFT]; } a000c860: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000ecfc <_RTEMS_tasks_Delete_extension>: /* * Free per task variable memory */ tvp = deleted->task_variables; deleted->task_variables = NULL; a000ecfc: e3a03000 mov r3, #0 static void _RTEMS_tasks_Delete_extension( Thread_Control *executing, Thread_Control *deleted ) { a000ed00: e92d4070 push {r4, r5, r6, lr} /* * Free per task variable memory */ tvp = deleted->task_variables; a000ed04: e59160f8 ldr r6, [r1, #248] ; 0xf8 static void _RTEMS_tasks_Delete_extension( Thread_Control *executing, Thread_Control *deleted ) { a000ed08: e1a04001 mov r4, r1 /* * Free per task variable memory */ tvp = deleted->task_variables; deleted->task_variables = NULL; a000ed0c: e58130f8 str r3, [r1, #248] ; 0xf8 while (tvp) { a000ed10: ea000004 b a000ed28 <_RTEMS_tasks_Delete_extension+0x2c> next = (rtems_task_variable_t *)tvp->next; _RTEMS_Tasks_Invoke_task_variable_dtor( deleted, tvp ); a000ed14: e1a01006 mov r1, r6 <== NOT EXECUTED a000ed18: e1a00004 mov r0, r4 <== NOT EXECUTED */ tvp = deleted->task_variables; deleted->task_variables = NULL; while (tvp) { next = (rtems_task_variable_t *)tvp->next; a000ed1c: e5965000 ldr r5, [r6] <== NOT EXECUTED _RTEMS_Tasks_Invoke_task_variable_dtor( deleted, tvp ); a000ed20: eb00003d bl a000ee1c <_RTEMS_Tasks_Invoke_task_variable_dtor><== NOT EXECUTED tvp = next; a000ed24: e1a06005 mov r6, r5 <== NOT EXECUTED * Free per task variable memory */ tvp = deleted->task_variables; deleted->task_variables = NULL; while (tvp) { a000ed28: e3560000 cmp r6, #0 a000ed2c: 1afffff8 bne a000ed14 <_RTEMS_tasks_Delete_extension+0x18> /* * Free API specific memory */ (void) _Workspace_Free( deleted->API_Extensions[ THREAD_API_RTEMS ] ); a000ed30: e59400ec ldr r0, [r4, #236] ; 0xec a000ed34: ebfffa49 bl a000d660 <_Workspace_Free> deleted->API_Extensions[ THREAD_API_RTEMS ] = NULL; a000ed38: e58460ec str r6, [r4, #236] ; 0xec } a000ed3c: e8bd8070 pop {r4, r5, r6, pc} =============================================================================== a000ec88 <_RTEMS_tasks_Switch_extension>: /* * Per Task Variables */ tvp = executing->task_variables; a000ec88: e59030f8 ldr r3, [r0, #248] ; 0xf8 while (tvp) { a000ec8c: ea000005 b a000eca8 <_RTEMS_tasks_Switch_extension+0x20> tvp->tval = *tvp->ptr; a000ec90: e5932004 ldr r2, [r3, #4] a000ec94: e5920000 ldr r0, [r2] a000ec98: e583000c str r0, [r3, #12] *tvp->ptr = tvp->gval; a000ec9c: e5930008 ldr r0, [r3, #8] a000eca0: e5820000 str r0, [r2] tvp = (rtems_task_variable_t *)tvp->next; a000eca4: e5933000 ldr r3, [r3] /* * Per Task Variables */ tvp = executing->task_variables; while (tvp) { a000eca8: e3530000 cmp r3, #0 a000ecac: 1afffff7 bne a000ec90 <_RTEMS_tasks_Switch_extension+0x8> tvp->tval = *tvp->ptr; *tvp->ptr = tvp->gval; tvp = (rtems_task_variable_t *)tvp->next; } tvp = heir->task_variables; a000ecb0: e59130f8 ldr r3, [r1, #248] ; 0xf8 while (tvp) { a000ecb4: ea000005 b a000ecd0 <_RTEMS_tasks_Switch_extension+0x48> tvp->gval = *tvp->ptr; a000ecb8: e5932004 ldr r2, [r3, #4] <== NOT EXECUTED a000ecbc: e5921000 ldr r1, [r2] <== NOT EXECUTED a000ecc0: e5831008 str r1, [r3, #8] <== NOT EXECUTED *tvp->ptr = tvp->tval; a000ecc4: e593100c ldr r1, [r3, #12] <== NOT EXECUTED a000ecc8: e5821000 str r1, [r2] <== NOT EXECUTED tvp = (rtems_task_variable_t *)tvp->next; a000eccc: e5933000 ldr r3, [r3] <== NOT EXECUTED *tvp->ptr = tvp->gval; tvp = (rtems_task_variable_t *)tvp->next; } tvp = heir->task_variables; while (tvp) { a000ecd0: e3530000 cmp r3, #0 a000ecd4: 1afffff7 bne a000ecb8 <_RTEMS_tasks_Switch_extension+0x30> tvp->gval = *tvp->ptr; *tvp->ptr = tvp->tval; tvp = (rtems_task_variable_t *)tvp->next; } } a000ecd8: e12fff1e bx lr =============================================================================== a0031db0 <_Rate_monotonic_Timeout>: void _Rate_monotonic_Timeout( Objects_Id id, void *ignored ) { a0031db0: e92d4011 push {r0, r4, lr} <== NOT EXECUTED a0031db4: e1a01000 mov r1, r0 <== NOT EXECUTED a0031db8: e1a0200d mov r2, sp <== NOT EXECUTED a0031dbc: e59f0088 ldr r0, [pc, #136] ; a0031e4c <_Rate_monotonic_Timeout+0x9c><== NOT EXECUTED a0031dc0: ebff68f9 bl a000c1ac <_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 ) { a0031dc4: e59d3000 ldr r3, [sp] <== NOT EXECUTED a0031dc8: e1a04000 mov r4, r0 <== NOT EXECUTED a0031dcc: e3530000 cmp r3, #0 <== NOT EXECUTED a0031dd0: 1a00001c bne a0031e48 <_Rate_monotonic_Timeout+0x98> <== NOT EXECUTED case OBJECTS_LOCAL: the_thread = the_period->owner; a0031dd4: e5900040 ldr r0, [r0, #64] ; 0x40 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_period ( States_Control the_states ) { return (the_states & STATES_WAITING_FOR_PERIOD); a0031dd8: e5903010 ldr r3, [r0, #16] <== NOT EXECUTED if ( _States_Is_waiting_for_period( the_thread->current_state ) && a0031ddc: e3130901 tst r3, #16384 ; 0x4000 <== NOT EXECUTED a0031de0: 0a000006 beq a0031e00 <_Rate_monotonic_Timeout+0x50> <== NOT EXECUTED a0031de4: e5902020 ldr r2, [r0, #32] <== NOT EXECUTED a0031de8: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED a0031dec: e1520003 cmp r2, r3 <== NOT EXECUTED a0031df0: 1a000002 bne a0031e00 <_Rate_monotonic_Timeout+0x50> <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); a0031df4: e59f1054 ldr r1, [pc, #84] ; a0031e50 <_Rate_monotonic_Timeout+0xa0><== NOT EXECUTED a0031df8: ebff6b72 bl a000cbc8 <_Thread_Clear_state> <== NOT EXECUTED a0031dfc: ea000006 b a0031e1c <_Rate_monotonic_Timeout+0x6c> <== 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 ) { a0031e00: e5943038 ldr r3, [r4, #56] ; 0x38 <== NOT EXECUTED a0031e04: e3530001 cmp r3, #1 <== 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; a0031e08: 13a03004 movne r3, #4 <== NOT EXECUTED a0031e0c: 15843038 strne r3, [r4, #56] ; 0x38 <== 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 ) { a0031e10: 1a000008 bne a0031e38 <_Rate_monotonic_Timeout+0x88> <== NOT EXECUTED the_period->state = RATE_MONOTONIC_EXPIRED_WHILE_BLOCKING; a0031e14: e3a03003 mov r3, #3 <== NOT EXECUTED a0031e18: e5843038 str r3, [r4, #56] ; 0x38 <== NOT EXECUTED _Rate_monotonic_Initiate_statistics( the_period ); a0031e1c: e1a00004 mov r0, r4 <== NOT EXECUTED a0031e20: ebffff54 bl a0031b78 <_Rate_monotonic_Initiate_statistics> <== NOT EXECUTED Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; a0031e24: e594303c ldr r3, [r4, #60] ; 0x3c <== NOT EXECUTED _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); a0031e28: e59f0024 ldr r0, [pc, #36] ; a0031e54 <_Rate_monotonic_Timeout+0xa4><== NOT EXECUTED a0031e2c: e2841010 add r1, r4, #16 <== NOT EXECUTED Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; a0031e30: e584301c str r3, [r4, #28] <== NOT EXECUTED _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); a0031e34: ebff6f15 bl a000da90 <_Watchdog_Insert> <== NOT EXECUTED * * This routine decrements the thread dispatch level. */ RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_decrement_disable_level(void) { uint32_t level = _Thread_Dispatch_disable_level; a0031e38: e59f3018 ldr r3, [pc, #24] ; a0031e58 <_Rate_monotonic_Timeout+0xa8><== NOT EXECUTED a0031e3c: e5932000 ldr r2, [r3] <== NOT EXECUTED --level; a0031e40: e2422001 sub r2, r2, #1 <== NOT EXECUTED _Thread_Dispatch_disable_level = level; a0031e44: e5832000 str r2, [r3] <== NOT EXECUTED case OBJECTS_REMOTE: /* impossible */ #endif case OBJECTS_ERROR: break; } } a0031e48: e8bd8018 pop {r3, r4, pc} <== NOT EXECUTED =============================================================================== a000daac <_Scheduler_CBS_Budget_callout>: Priority_Control new_priority; Scheduler_CBS_Per_thread *sched_info; Scheduler_CBS_Server_id server_id; /* Put violating task to background until the end of period. */ new_priority = the_thread->Start.initial_priority; a000daac: e59010ac ldr r1, [r0, #172] ; 0xac <== NOT EXECUTED if ( the_thread->real_priority != new_priority ) a000dab0: e5903018 ldr r3, [r0, #24] <== NOT EXECUTED Scheduler_CBS_Server **_Scheduler_CBS_Server_list; void _Scheduler_CBS_Budget_callout( Thread_Control *the_thread ) { a000dab4: e92d4011 push {r0, r4, lr} <== NOT EXECUTED Scheduler_CBS_Per_thread *sched_info; Scheduler_CBS_Server_id server_id; /* Put violating task to background until the end of period. */ new_priority = the_thread->Start.initial_priority; if ( the_thread->real_priority != new_priority ) a000dab8: e1530001 cmp r3, r1 <== NOT EXECUTED the_thread->real_priority = new_priority; if ( the_thread->current_priority != new_priority ) a000dabc: e5903014 ldr r3, [r0, #20] <== NOT EXECUTED Scheduler_CBS_Server_id server_id; /* Put violating task to background until the end of period. */ new_priority = the_thread->Start.initial_priority; if ( the_thread->real_priority != new_priority ) the_thread->real_priority = new_priority; a000dac0: 15801018 strne r1, [r0, #24] <== NOT EXECUTED Scheduler_CBS_Server **_Scheduler_CBS_Server_list; void _Scheduler_CBS_Budget_callout( Thread_Control *the_thread ) { a000dac4: e1a04000 mov r4, r0 <== NOT EXECUTED /* Put violating task to background until the end of period. */ new_priority = the_thread->Start.initial_priority; if ( the_thread->real_priority != new_priority ) the_thread->real_priority = new_priority; if ( the_thread->current_priority != new_priority ) a000dac8: e1530001 cmp r3, r1 <== NOT EXECUTED a000dacc: 0a000001 beq a000dad8 <_Scheduler_CBS_Budget_callout+0x2c> <== NOT EXECUTED _Thread_Change_priority(the_thread, new_priority, true); a000dad0: e3a02001 mov r2, #1 <== NOT EXECUTED a000dad4: eb000163 bl a000e068 <_Thread_Change_priority> <== NOT EXECUTED /* Invoke callback function if any. */ sched_info = (Scheduler_CBS_Per_thread *) the_thread->scheduler_info; a000dad8: e5944088 ldr r4, [r4, #136] ; 0x88 <== NOT EXECUTED if ( sched_info->cbs_server->cbs_budget_overrun ) { a000dadc: e5943018 ldr r3, [r4, #24] <== NOT EXECUTED a000dae0: e593200c ldr r2, [r3, #12] <== NOT EXECUTED a000dae4: e3520000 cmp r2, #0 <== NOT EXECUTED a000dae8: 0a000006 beq a000db08 <_Scheduler_CBS_Budget_callout+0x5c> <== NOT EXECUTED _Scheduler_CBS_Get_server_id( a000daec: e5930000 ldr r0, [r3] <== NOT EXECUTED a000daf0: e1a0100d mov r1, sp <== NOT EXECUTED a000daf4: ebffffd5 bl a000da50 <_Scheduler_CBS_Get_server_id> <== NOT EXECUTED sched_info->cbs_server->task_id, &server_id ); sched_info->cbs_server->cbs_budget_overrun( server_id ); a000daf8: e5943018 ldr r3, [r4, #24] <== NOT EXECUTED a000dafc: e59d0000 ldr r0, [sp] <== NOT EXECUTED a000db00: e593300c ldr r3, [r3, #12] <== NOT EXECUTED a000db04: e12fff33 blx r3 <== NOT EXECUTED } } a000db08: e8bd8018 pop {r3, r4, pc} <== NOT EXECUTED =============================================================================== a000d6d8 <_Scheduler_CBS_Create_server>: ) { unsigned int i; Scheduler_CBS_Server *the_server; if ( params->budget <= 0 || a000d6d8: e5903004 ldr r3, [r0, #4] int _Scheduler_CBS_Create_server ( Scheduler_CBS_Parameters *params, Scheduler_CBS_Budget_overrun budget_overrun_callback, rtems_id *server_id ) { a000d6dc: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} unsigned int i; Scheduler_CBS_Server *the_server; if ( params->budget <= 0 || a000d6e0: e3530000 cmp r3, #0 int _Scheduler_CBS_Create_server ( Scheduler_CBS_Parameters *params, Scheduler_CBS_Budget_overrun budget_overrun_callback, rtems_id *server_id ) { a000d6e4: e1a04000 mov r4, r0 a000d6e8: e1a05001 mov r5, r1 a000d6ec: e1a0a002 mov sl, r2 unsigned int i; Scheduler_CBS_Server *the_server; if ( params->budget <= 0 || a000d6f0: da000023 ble a000d784 <_Scheduler_CBS_Create_server+0xac> a000d6f4: e5903000 ldr r3, [r0] a000d6f8: e3530000 cmp r3, #0 a000d6fc: da000020 ble a000d784 <_Scheduler_CBS_Create_server+0xac> params->deadline <= 0 || params->budget >= SCHEDULER_EDF_PRIO_MSB || params->deadline >= SCHEDULER_EDF_PRIO_MSB ) return SCHEDULER_CBS_ERROR_INVALID_PARAMETER; for ( i = 0; i<_Scheduler_CBS_Maximum_servers; i++ ) { a000d700: e59f308c ldr r3, [pc, #140] ; a000d794 <_Scheduler_CBS_Create_server+0xbc> if ( !_Scheduler_CBS_Server_list[i] ) a000d704: e3a06000 mov r6, #0 params->deadline <= 0 || params->budget >= SCHEDULER_EDF_PRIO_MSB || params->deadline >= SCHEDULER_EDF_PRIO_MSB ) return SCHEDULER_CBS_ERROR_INVALID_PARAMETER; for ( i = 0; i<_Scheduler_CBS_Maximum_servers; i++ ) { a000d708: e5932000 ldr r2, [r3] a000d70c: e59f3084 ldr r3, [pc, #132] ; a000d798 <_Scheduler_CBS_Create_server+0xc0> a000d710: e5933000 ldr r3, [r3] a000d714: ea00000f b a000d758 <_Scheduler_CBS_Create_server+0x80> if ( !_Scheduler_CBS_Server_list[i] ) a000d718: e4937004 ldr r7, [r3], #4 a000d71c: e3570000 cmp r7, #0 a000d720: 1a00000b bne a000d754 <_Scheduler_CBS_Create_server+0x7c> if ( i == _Scheduler_CBS_Maximum_servers ) return SCHEDULER_CBS_ERROR_FULL; *server_id = i; _Scheduler_CBS_Server_list[*server_id] = (Scheduler_CBS_Server *) a000d724: e59f806c ldr r8, [pc, #108] ; a000d798 <_Scheduler_CBS_Create_server+0xc0> } if ( i == _Scheduler_CBS_Maximum_servers ) return SCHEDULER_CBS_ERROR_FULL; *server_id = i; a000d728: e58a6000 str r6, [sl] _Scheduler_CBS_Server_list[*server_id] = (Scheduler_CBS_Server *) _Workspace_Allocate( sizeof(Scheduler_CBS_Server) ); a000d72c: e3a00010 mov r0, #16 if ( i == _Scheduler_CBS_Maximum_servers ) return SCHEDULER_CBS_ERROR_FULL; *server_id = i; _Scheduler_CBS_Server_list[*server_id] = (Scheduler_CBS_Server *) a000d730: e5989000 ldr r9, [r8] _Workspace_Allocate( sizeof(Scheduler_CBS_Server) ); a000d734: eb00071c bl a000f3ac <_Workspace_Allocate> if ( i == _Scheduler_CBS_Maximum_servers ) return SCHEDULER_CBS_ERROR_FULL; *server_id = i; _Scheduler_CBS_Server_list[*server_id] = (Scheduler_CBS_Server *) a000d738: e7890106 str r0, [r9, r6, lsl #2] _Workspace_Allocate( sizeof(Scheduler_CBS_Server) ); the_server = _Scheduler_CBS_Server_list[*server_id]; a000d73c: e59a2000 ldr r2, [sl] a000d740: e5983000 ldr r3, [r8] a000d744: e7933102 ldr r3, [r3, r2, lsl #2] if ( !the_server ) a000d748: e3530000 cmp r3, #0 a000d74c: 1a000005 bne a000d768 <_Scheduler_CBS_Create_server+0x90> a000d750: ea00000d b a000d78c <_Scheduler_CBS_Create_server+0xb4> <== NOT EXECUTED params->deadline <= 0 || params->budget >= SCHEDULER_EDF_PRIO_MSB || params->deadline >= SCHEDULER_EDF_PRIO_MSB ) return SCHEDULER_CBS_ERROR_INVALID_PARAMETER; for ( i = 0; i<_Scheduler_CBS_Maximum_servers; i++ ) { a000d754: e2866001 add r6, r6, #1 a000d758: e1560002 cmp r6, r2 a000d75c: 1affffed bne a000d718 <_Scheduler_CBS_Create_server+0x40> if ( !_Scheduler_CBS_Server_list[i] ) break; } if ( i == _Scheduler_CBS_Maximum_servers ) return SCHEDULER_CBS_ERROR_FULL; a000d760: e3e00019 mvn r0, #25 a000d764: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} the_server = _Scheduler_CBS_Server_list[*server_id]; if ( !the_server ) return SCHEDULER_CBS_ERROR_NO_MEMORY; the_server->parameters = *params; the_server->task_id = -1; a000d768: e3e02000 mvn r2, #0 _Workspace_Allocate( sizeof(Scheduler_CBS_Server) ); the_server = _Scheduler_CBS_Server_list[*server_id]; if ( !the_server ) return SCHEDULER_CBS_ERROR_NO_MEMORY; the_server->parameters = *params; a000d76c: e8940003 ldm r4, {r0, r1} the_server->task_id = -1; a000d770: e5832000 str r2, [r3] _Workspace_Allocate( sizeof(Scheduler_CBS_Server) ); the_server = _Scheduler_CBS_Server_list[*server_id]; if ( !the_server ) return SCHEDULER_CBS_ERROR_NO_MEMORY; the_server->parameters = *params; a000d774: e9830003 stmib r3, {r0, r1} the_server->task_id = -1; the_server->cbs_budget_overrun = budget_overrun_callback; a000d778: e583500c str r5, [r3, #12] return SCHEDULER_CBS_OK; a000d77c: e1a00007 mov r0, r7 a000d780: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} if ( params->budget <= 0 || params->deadline <= 0 || params->budget >= SCHEDULER_EDF_PRIO_MSB || params->deadline >= SCHEDULER_EDF_PRIO_MSB ) return SCHEDULER_CBS_ERROR_INVALID_PARAMETER; a000d784: e3e00011 mvn r0, #17 a000d788: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} *server_id = i; _Scheduler_CBS_Server_list[*server_id] = (Scheduler_CBS_Server *) _Workspace_Allocate( sizeof(Scheduler_CBS_Server) ); the_server = _Scheduler_CBS_Server_list[*server_id]; if ( !the_server ) return SCHEDULER_CBS_ERROR_NO_MEMORY; a000d78c: e3e00010 mvn r0, #16 <== NOT EXECUTED the_server->parameters = *params; the_server->task_id = -1; the_server->cbs_budget_overrun = budget_overrun_callback; return SCHEDULER_CBS_OK; } a000d790: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED =============================================================================== a000d8f0 <_Scheduler_CBS_Get_execution_time>: ) { Objects_Locations location; Thread_Control *the_thread; if ( server_id >= _Scheduler_CBS_Maximum_servers ) a000d8f0: e59f3090 ldr r3, [pc, #144] ; a000d988 <_Scheduler_CBS_Get_execution_time+0x98> int _Scheduler_CBS_Get_execution_time ( Scheduler_CBS_Server_id server_id, time_t *exec_time, time_t *abs_time ) { a000d8f4: e92d40f1 push {r0, r4, r5, r6, r7, lr} Objects_Locations location; Thread_Control *the_thread; if ( server_id >= _Scheduler_CBS_Maximum_servers ) a000d8f8: e5933000 ldr r3, [r3] int _Scheduler_CBS_Get_execution_time ( Scheduler_CBS_Server_id server_id, time_t *exec_time, time_t *abs_time ) { a000d8fc: e1a04000 mov r4, r0 a000d900: e1a05001 mov r5, r1 Objects_Locations location; Thread_Control *the_thread; if ( server_id >= _Scheduler_CBS_Maximum_servers ) a000d904: e1500003 cmp r0, r3 return SCHEDULER_CBS_ERROR_INVALID_PARAMETER; a000d908: 23e00011 mvncs r0, #17 ) { Objects_Locations location; Thread_Control *the_thread; if ( server_id >= _Scheduler_CBS_Maximum_servers ) a000d90c: 2a00001c bcs a000d984 <_Scheduler_CBS_Get_execution_time+0x94> return SCHEDULER_CBS_ERROR_INVALID_PARAMETER; if ( !_Scheduler_CBS_Server_list[server_id] ) a000d910: e59f6074 ldr r6, [pc, #116] ; a000d98c <_Scheduler_CBS_Get_execution_time+0x9c> a000d914: e5963000 ldr r3, [r6] a000d918: e7933104 ldr r3, [r3, r4, lsl #2] a000d91c: e3530000 cmp r3, #0 return SCHEDULER_CBS_ERROR_NOSERVER; a000d920: 03e00018 mvneq r0, #24 Objects_Locations location; Thread_Control *the_thread; if ( server_id >= _Scheduler_CBS_Maximum_servers ) return SCHEDULER_CBS_ERROR_INVALID_PARAMETER; if ( !_Scheduler_CBS_Server_list[server_id] ) a000d924: 0a000016 beq a000d984 <_Scheduler_CBS_Get_execution_time+0x94> return SCHEDULER_CBS_ERROR_NOSERVER; if ( _Scheduler_CBS_Server_list[server_id]->task_id == -1 ) { a000d928: e5930000 ldr r0, [r3] a000d92c: e3700001 cmn r0, #1 *exec_time = 0; a000d930: 03a00000 moveq r0, #0 a000d934: 05810000 streq r0, [r1] if ( server_id >= _Scheduler_CBS_Maximum_servers ) return SCHEDULER_CBS_ERROR_INVALID_PARAMETER; if ( !_Scheduler_CBS_Server_list[server_id] ) return SCHEDULER_CBS_ERROR_NOSERVER; if ( _Scheduler_CBS_Server_list[server_id]->task_id == -1 ) { a000d938: 0a000011 beq a000d984 <_Scheduler_CBS_Get_execution_time+0x94> *exec_time = 0; return SCHEDULER_CBS_OK; } the_thread = _Thread_Get( a000d93c: e1a0100d mov r1, sp <== NOT EXECUTED a000d940: eb0002e9 bl a000e4ec <_Thread_Get> <== NOT EXECUTED _Scheduler_CBS_Server_list[server_id]->task_id, &location ); /* The routine _Thread_Get may disable dispatch and not enable again. */ if ( the_thread ) { a000d944: e2507000 subs r7, r0, #0 <== NOT EXECUTED a000d948: 0a000008 beq a000d970 <_Scheduler_CBS_Get_execution_time+0x80><== NOT EXECUTED _Thread_Enable_dispatch(); a000d94c: eb0002de bl a000e4cc <_Thread_Enable_dispatch> <== NOT EXECUTED *exec_time = _Scheduler_CBS_Server_list[server_id]->parameters.budget - a000d950: e5963000 ldr r3, [r6] <== NOT EXECUTED the_thread->cpu_time_budget; } else { *exec_time = _Scheduler_CBS_Server_list[server_id]->parameters.budget; } return SCHEDULER_CBS_OK; a000d954: e3a00000 mov r0, #0 <== NOT EXECUTED &location ); /* The routine _Thread_Get may disable dispatch and not enable again. */ if ( the_thread ) { _Thread_Enable_dispatch(); *exec_time = _Scheduler_CBS_Server_list[server_id]->parameters.budget - a000d958: e7933104 ldr r3, [r3, r4, lsl #2] <== NOT EXECUTED a000d95c: e5932008 ldr r2, [r3, #8] <== NOT EXECUTED a000d960: e5973074 ldr r3, [r7, #116] ; 0x74 <== NOT EXECUTED a000d964: e0633002 rsb r3, r3, r2 <== NOT EXECUTED a000d968: e5853000 str r3, [r5] <== NOT EXECUTED a000d96c: ea000004 b a000d984 <_Scheduler_CBS_Get_execution_time+0x94><== NOT EXECUTED the_thread->cpu_time_budget; } else { *exec_time = _Scheduler_CBS_Server_list[server_id]->parameters.budget; a000d970: e5963000 ldr r3, [r6] <== NOT EXECUTED } return SCHEDULER_CBS_OK; a000d974: e1a00007 mov r0, r7 <== NOT EXECUTED _Thread_Enable_dispatch(); *exec_time = _Scheduler_CBS_Server_list[server_id]->parameters.budget - the_thread->cpu_time_budget; } else { *exec_time = _Scheduler_CBS_Server_list[server_id]->parameters.budget; a000d978: e7933104 ldr r3, [r3, r4, lsl #2] <== NOT EXECUTED a000d97c: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED a000d980: e5853000 str r3, [r5] <== NOT EXECUTED } return SCHEDULER_CBS_OK; } a000d984: e8bd80f8 pop {r3, r4, r5, r6, r7, pc} =============================================================================== a000d9d8 <_Scheduler_CBS_Get_remaining_budget>: ) { Objects_Locations location; Thread_Control *the_thread; if ( server_id >= _Scheduler_CBS_Maximum_servers ) a000d9d8: e59f3068 ldr r3, [pc, #104] ; a000da48 <_Scheduler_CBS_Get_remaining_budget+0x70> int _Scheduler_CBS_Get_remaining_budget ( Scheduler_CBS_Server_id server_id, time_t *remaining_budget ) { a000d9dc: e92d4031 push {r0, r4, r5, lr} Objects_Locations location; Thread_Control *the_thread; if ( server_id >= _Scheduler_CBS_Maximum_servers ) a000d9e0: e5933000 ldr r3, [r3] int _Scheduler_CBS_Get_remaining_budget ( Scheduler_CBS_Server_id server_id, time_t *remaining_budget ) { a000d9e4: e1a04001 mov r4, r1 Objects_Locations location; Thread_Control *the_thread; if ( server_id >= _Scheduler_CBS_Maximum_servers ) a000d9e8: e1500003 cmp r0, r3 return SCHEDULER_CBS_ERROR_INVALID_PARAMETER; a000d9ec: 23e00011 mvncs r0, #17 ) { Objects_Locations location; Thread_Control *the_thread; if ( server_id >= _Scheduler_CBS_Maximum_servers ) a000d9f0: 2a000013 bcs a000da44 <_Scheduler_CBS_Get_remaining_budget+0x6c> return SCHEDULER_CBS_ERROR_INVALID_PARAMETER; if ( !_Scheduler_CBS_Server_list[server_id] ) a000d9f4: e59f3050 ldr r3, [pc, #80] ; a000da4c <_Scheduler_CBS_Get_remaining_budget+0x74> a000d9f8: e5933000 ldr r3, [r3] a000d9fc: e7933100 ldr r3, [r3, r0, lsl #2] a000da00: e3530000 cmp r3, #0 return SCHEDULER_CBS_ERROR_NOSERVER; a000da04: 03e00018 mvneq r0, #24 Objects_Locations location; Thread_Control *the_thread; if ( server_id >= _Scheduler_CBS_Maximum_servers ) return SCHEDULER_CBS_ERROR_INVALID_PARAMETER; if ( !_Scheduler_CBS_Server_list[server_id] ) a000da08: 0a00000d beq a000da44 <_Scheduler_CBS_Get_remaining_budget+0x6c> return SCHEDULER_CBS_ERROR_NOSERVER; if ( _Scheduler_CBS_Server_list[server_id]->task_id == -1 ) { a000da0c: e5930000 ldr r0, [r3] a000da10: e3700001 cmn r0, #1 *remaining_budget = _Scheduler_CBS_Server_list[server_id]->parameters.budget; a000da14: 05933008 ldreq r3, [r3, #8] if ( server_id >= _Scheduler_CBS_Maximum_servers ) return SCHEDULER_CBS_ERROR_INVALID_PARAMETER; if ( !_Scheduler_CBS_Server_list[server_id] ) return SCHEDULER_CBS_ERROR_NOSERVER; if ( _Scheduler_CBS_Server_list[server_id]->task_id == -1 ) { a000da18: 0a000007 beq a000da3c <_Scheduler_CBS_Get_remaining_budget+0x64> *remaining_budget = _Scheduler_CBS_Server_list[server_id]->parameters.budget; return SCHEDULER_CBS_OK; } the_thread = _Thread_Get( a000da1c: e1a0100d mov r1, sp <== NOT EXECUTED a000da20: eb0002b1 bl a000e4ec <_Thread_Get> <== NOT EXECUTED _Scheduler_CBS_Server_list[server_id]->task_id, &location ); /* The routine _Thread_Get may disable dispatch and not enable again. */ if ( the_thread ) { a000da24: e2505000 subs r5, r0, #0 <== NOT EXECUTED _Thread_Enable_dispatch(); *remaining_budget = the_thread->cpu_time_budget; } else { *remaining_budget = 0; a000da28: 05845000 streq r5, [r4] <== NOT EXECUTED } return SCHEDULER_CBS_OK; a000da2c: 01a00005 moveq r0, r5 <== NOT EXECUTED the_thread = _Thread_Get( _Scheduler_CBS_Server_list[server_id]->task_id, &location ); /* The routine _Thread_Get may disable dispatch and not enable again. */ if ( the_thread ) { a000da30: 0a000003 beq a000da44 <_Scheduler_CBS_Get_remaining_budget+0x6c><== NOT EXECUTED _Thread_Enable_dispatch(); a000da34: eb0002a4 bl a000e4cc <_Thread_Enable_dispatch> <== NOT EXECUTED *remaining_budget = the_thread->cpu_time_budget; a000da38: e5953074 ldr r3, [r5, #116] ; 0x74 <== NOT EXECUTED a000da3c: e5843000 str r3, [r4] } else { *remaining_budget = 0; } return SCHEDULER_CBS_OK; a000da40: e3a00000 mov r0, #0 } a000da44: e8bd8038 pop {r3, r4, r5, pc} =============================================================================== a000db0c <_Scheduler_CBS_Initialize>: int _Scheduler_CBS_Initialize(void) { a000db0c: e92d4010 push {r4, lr} unsigned int i; _Scheduler_CBS_Server_list = (Scheduler_CBS_Server **) _Workspace_Allocate( a000db10: e59f4050 ldr r4, [pc, #80] ; a000db68 <_Scheduler_CBS_Initialize+0x5c> a000db14: e5940000 ldr r0, [r4] a000db18: e1a00100 lsl r0, r0, #2 a000db1c: eb000622 bl a000f3ac <_Workspace_Allocate> a000db20: e59f3044 ldr r3, [pc, #68] ; a000db6c <_Scheduler_CBS_Initialize+0x60> _Scheduler_CBS_Maximum_servers * sizeof(Scheduler_CBS_Server*) ); if ( !_Scheduler_CBS_Server_list ) a000db24: e3500000 cmp r0, #0 return SCHEDULER_CBS_ERROR_NO_MEMORY; for (i = 0; i<_Scheduler_CBS_Maximum_servers; i++) { a000db28: 15941000 ldrne r1, [r4] } int _Scheduler_CBS_Initialize(void) { unsigned int i; _Scheduler_CBS_Server_list = (Scheduler_CBS_Server **) _Workspace_Allocate( a000db2c: e5830000 str r0, [r3] a000db30: e1a00003 mov r0, r3 _Scheduler_CBS_Maximum_servers * sizeof(Scheduler_CBS_Server*) ); if ( !_Scheduler_CBS_Server_list ) return SCHEDULER_CBS_ERROR_NO_MEMORY; for (i = 0; i<_Scheduler_CBS_Maximum_servers; i++) { a000db34: 13a03000 movne r3, #0 a000db38: 11a02003 movne r2, r3 int _Scheduler_CBS_Initialize(void) { unsigned int i; _Scheduler_CBS_Server_list = (Scheduler_CBS_Server **) _Workspace_Allocate( _Scheduler_CBS_Maximum_servers * sizeof(Scheduler_CBS_Server*) ); if ( !_Scheduler_CBS_Server_list ) a000db3c: 1a000003 bne a000db50 <_Scheduler_CBS_Initialize+0x44> a000db40: ea000006 b a000db60 <_Scheduler_CBS_Initialize+0x54> <== NOT EXECUTED return SCHEDULER_CBS_ERROR_NO_MEMORY; for (i = 0; i<_Scheduler_CBS_Maximum_servers; i++) { _Scheduler_CBS_Server_list[i] = NULL; a000db44: e590c000 ldr ip, [r0] a000db48: e78c2103 str r2, [ip, r3, lsl #2] unsigned int i; _Scheduler_CBS_Server_list = (Scheduler_CBS_Server **) _Workspace_Allocate( _Scheduler_CBS_Maximum_servers * sizeof(Scheduler_CBS_Server*) ); if ( !_Scheduler_CBS_Server_list ) return SCHEDULER_CBS_ERROR_NO_MEMORY; for (i = 0; i<_Scheduler_CBS_Maximum_servers; i++) { a000db4c: e2833001 add r3, r3, #1 a000db50: e1530001 cmp r3, r1 a000db54: 1afffffa bne a000db44 <_Scheduler_CBS_Initialize+0x38> _Scheduler_CBS_Server_list[i] = NULL; } return SCHEDULER_CBS_OK; a000db58: e3a00000 mov r0, #0 a000db5c: e8bd8010 pop {r4, pc} { unsigned int i; _Scheduler_CBS_Server_list = (Scheduler_CBS_Server **) _Workspace_Allocate( _Scheduler_CBS_Maximum_servers * sizeof(Scheduler_CBS_Server*) ); if ( !_Scheduler_CBS_Server_list ) return SCHEDULER_CBS_ERROR_NO_MEMORY; a000db60: e3e00010 mvn r0, #16 <== NOT EXECUTED for (i = 0; i<_Scheduler_CBS_Maximum_servers; i++) { _Scheduler_CBS_Server_list[i] = NULL; } return SCHEDULER_CBS_OK; } a000db64: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a000c670 <_Scheduler_CBS_Release_job>: { Priority_Control new_priority; Scheduler_CBS_Per_thread *sched_info = (Scheduler_CBS_Per_thread *) the_thread->scheduler_info; Scheduler_CBS_Server *serv_info = (Scheduler_CBS_Server *) sched_info->cbs_server; a000c670: e5903088 ldr r3, [r0, #136] ; 0x88 <== NOT EXECUTED if (deadline) { a000c674: e3510000 cmp r1, #0 <== NOT EXECUTED ) { Priority_Control new_priority; Scheduler_CBS_Per_thread *sched_info = (Scheduler_CBS_Per_thread *) the_thread->scheduler_info; Scheduler_CBS_Server *serv_info = a000c678: e5933018 ldr r3, [r3, #24] <== NOT EXECUTED (Scheduler_CBS_Server *) sched_info->cbs_server; if (deadline) { a000c67c: 0a00000a beq a000c6ac <_Scheduler_CBS_Release_job+0x3c> <== NOT EXECUTED a000c680: e59f2044 ldr r2, [pc, #68] ; a000c6cc <_Scheduler_CBS_Release_job+0x5c><== NOT EXECUTED /* Initializing or shifting deadline. */ if (serv_info) a000c684: e3530000 cmp r3, #0 <== NOT EXECUTED new_priority = (_Watchdog_Ticks_since_boot + serv_info->parameters.deadline) & ~SCHEDULER_EDF_PRIO_MSB; else new_priority = (_Watchdog_Ticks_since_boot + deadline) a000c688: 05923000 ldreq r3, [r2] <== NOT EXECUTED a000c68c: 00811003 addeq r1, r1, r3 <== NOT EXECUTED a000c690: 03c11102 biceq r1, r1, #-2147483648 ; 0x80000000 <== NOT EXECUTED Scheduler_CBS_Server *serv_info = (Scheduler_CBS_Server *) sched_info->cbs_server; if (deadline) { /* Initializing or shifting deadline. */ if (serv_info) a000c694: 0a000009 beq a000c6c0 <_Scheduler_CBS_Release_job+0x50> <== NOT EXECUTED new_priority = (_Watchdog_Ticks_since_boot + serv_info->parameters.deadline) a000c698: e5921000 ldr r1, [r2] <== NOT EXECUTED a000c69c: e5932004 ldr r2, [r3, #4] <== NOT EXECUTED a000c6a0: e0811002 add r1, r1, r2 <== NOT EXECUTED a000c6a4: e3c11102 bic r1, r1, #-2147483648 ; 0x80000000 <== NOT EXECUTED a000c6a8: ea000002 b a000c6b8 <_Scheduler_CBS_Release_job+0x48> <== NOT EXECUTED /* Switch back to background priority. */ new_priority = the_thread->Start.initial_priority; } /* Budget replenishment for the next job. */ if (serv_info) a000c6ac: e3530000 cmp r3, #0 <== NOT EXECUTED new_priority = (_Watchdog_Ticks_since_boot + deadline) & ~SCHEDULER_EDF_PRIO_MSB; } else { /* Switch back to background priority. */ new_priority = the_thread->Start.initial_priority; a000c6b0: e59010ac ldr r1, [r0, #172] ; 0xac <== NOT EXECUTED } /* Budget replenishment for the next job. */ if (serv_info) a000c6b4: 0a000001 beq a000c6c0 <_Scheduler_CBS_Release_job+0x50> <== NOT EXECUTED the_thread->cpu_time_budget = serv_info->parameters.budget; a000c6b8: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED a000c6bc: e5803074 str r3, [r0, #116] ; 0x74 <== NOT EXECUTED the_thread->real_priority = new_priority; _Thread_Change_priority(the_thread, new_priority, true); a000c6c0: e3a02001 mov r2, #1 <== NOT EXECUTED /* Budget replenishment for the next job. */ if (serv_info) the_thread->cpu_time_budget = serv_info->parameters.budget; the_thread->real_priority = new_priority; a000c6c4: e5801018 str r1, [r0, #24] <== NOT EXECUTED _Thread_Change_priority(the_thread, new_priority, true); a000c6c8: ea00010d b a000cb04 <_Thread_Change_priority> <== NOT EXECUTED =============================================================================== a000c6d0 <_Scheduler_CBS_Unblock>: #include void _Scheduler_CBS_Unblock( Thread_Control *the_thread ) { a000c6d0: e92d4030 push {r4, r5, lr} a000c6d4: e1a04000 mov r4, r0 Scheduler_CBS_Per_thread *sched_info; Scheduler_CBS_Server *serv_info; Priority_Control new_priority; _Scheduler_EDF_Enqueue(the_thread); a000c6d8: eb00003f bl a000c7dc <_Scheduler_EDF_Enqueue> /* TODO: flash critical section? */ sched_info = (Scheduler_CBS_Per_thread *) the_thread->scheduler_info; serv_info = (Scheduler_CBS_Server *) sched_info->cbs_server; a000c6dc: e5943088 ldr r3, [r4, #136] ; 0x88 a000c6e0: e5933018 ldr r3, [r3, #24] * Late unblock rule for deadline-driven tasks. The remaining time to * deadline must be sufficient to serve the remaining computation time * without increased utilization of this task. It might cause a deadline * miss of another task. */ if (serv_info) { a000c6e4: e3530000 cmp r3, #0 a000c6e8: 0a000013 beq a000c73c <_Scheduler_CBS_Unblock+0x6c> time_t deadline = serv_info->parameters.deadline; time_t budget = serv_info->parameters.budget; time_t deadline_left = the_thread->cpu_time_budget; time_t budget_left = the_thread->real_priority - a000c6ec: e59f1098 ldr r1, [pc, #152] ; a000c78c <_Scheduler_CBS_Unblock+0xbc><== NOT EXECUTED a000c6f0: e5942018 ldr r2, [r4, #24] <== NOT EXECUTED _Watchdog_Ticks_since_boot; if ( deadline*budget_left > budget*deadline_left ) { a000c6f4: e5930004 ldr r0, [r3, #4] <== NOT EXECUTED */ if (serv_info) { time_t deadline = serv_info->parameters.deadline; time_t budget = serv_info->parameters.budget; time_t deadline_left = the_thread->cpu_time_budget; time_t budget_left = the_thread->real_priority - a000c6f8: e5911000 ldr r1, [r1] <== NOT EXECUTED _Watchdog_Ticks_since_boot; if ( deadline*budget_left > budget*deadline_left ) { a000c6fc: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED */ if (serv_info) { time_t deadline = serv_info->parameters.deadline; time_t budget = serv_info->parameters.budget; time_t deadline_left = the_thread->cpu_time_budget; time_t budget_left = the_thread->real_priority - a000c700: e0611002 rsb r1, r1, r2 <== NOT EXECUTED _Watchdog_Ticks_since_boot; if ( deadline*budget_left > budget*deadline_left ) { a000c704: e0010190 mul r1, r0, r1 <== NOT EXECUTED a000c708: e5940074 ldr r0, [r4, #116] ; 0x74 <== NOT EXECUTED a000c70c: e0030390 mul r3, r0, r3 <== NOT EXECUTED a000c710: e1510003 cmp r1, r3 <== NOT EXECUTED a000c714: da000008 ble a000c73c <_Scheduler_CBS_Unblock+0x6c> <== NOT EXECUTED /* Put late unblocked task to background until the end of period. */ new_priority = the_thread->Start.initial_priority; a000c718: e59410ac ldr r1, [r4, #172] ; 0xac <== NOT EXECUTED if ( the_thread->real_priority != new_priority ) the_thread->real_priority = new_priority; if ( the_thread->current_priority != new_priority ) a000c71c: e5943014 ldr r3, [r4, #20] <== NOT EXECUTED _Watchdog_Ticks_since_boot; if ( deadline*budget_left > budget*deadline_left ) { /* Put late unblocked task to background until the end of period. */ new_priority = the_thread->Start.initial_priority; if ( the_thread->real_priority != new_priority ) a000c720: e1520001 cmp r2, r1 <== NOT EXECUTED the_thread->real_priority = new_priority; a000c724: 15841018 strne r1, [r4, #24] <== NOT EXECUTED if ( the_thread->current_priority != new_priority ) a000c728: e1530001 cmp r3, r1 <== NOT EXECUTED a000c72c: 0a000002 beq a000c73c <_Scheduler_CBS_Unblock+0x6c> <== NOT EXECUTED _Thread_Change_priority(the_thread, new_priority, true); a000c730: e1a00004 mov r0, r4 <== NOT EXECUTED a000c734: e3a02001 mov r2, #1 <== NOT EXECUTED a000c738: eb0000f1 bl a000cb04 <_Thread_Change_priority> <== NOT EXECUTED * 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 ( _Scheduler_Is_priority_higher_than( the_thread->current_priority, a000c73c: e59f504c ldr r5, [pc, #76] ; a000c790 <_Scheduler_CBS_Unblock+0xc0> a000c740: e59f304c ldr r3, [pc, #76] ; a000c794 <_Scheduler_CBS_Unblock+0xc4> a000c744: e5940014 ldr r0, [r4, #20] a000c748: e595200c ldr r2, [r5, #12] a000c74c: e5933030 ldr r3, [r3, #48] ; 0x30 a000c750: e5921014 ldr r1, [r2, #20] a000c754: e12fff33 blx r3 a000c758: e3500000 cmp r0, #0 a000c75c: da000009 ble a000c788 <_Scheduler_CBS_Unblock+0xb8> _Thread_Heir->current_priority)) { _Thread_Heir = the_thread; if ( _Thread_Executing->is_preemptible || a000c760: e5953008 ldr r3, [r5, #8] * 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 ( _Scheduler_Is_priority_higher_than( the_thread->current_priority, _Thread_Heir->current_priority)) { _Thread_Heir = the_thread; a000c764: e585400c str r4, [r5, #12] if ( _Thread_Executing->is_preemptible || a000c768: e5d33070 ldrb r3, [r3, #112] ; 0x70 a000c76c: e3530000 cmp r3, #0 a000c770: 1a000002 bne a000c780 <_Scheduler_CBS_Unblock+0xb0> a000c774: e5943014 ldr r3, [r4, #20] a000c778: e3530000 cmp r3, #0 a000c77c: 1a000001 bne a000c788 <_Scheduler_CBS_Unblock+0xb8> the_thread->current_priority == 0 ) _Thread_Dispatch_necessary = true; a000c780: e3a03001 mov r3, #1 a000c784: e5c53004 strb r3, [r5, #4] a000c788: e8bd8030 pop {r4, r5, pc} =============================================================================== a000c7d8 <_Scheduler_EDF_Enqueue_first>: void _Scheduler_EDF_Enqueue_first( Thread_Control *the_thread ) { _Scheduler_EDF_Enqueue(the_thread); a000c7d8: eaffffff b a000c7dc <_Scheduler_EDF_Enqueue> <== NOT EXECUTED =============================================================================== a000c78c <_Scheduler_EDF_Release_job>: uint32_t deadline ) { Priority_Control new_priority; if (deadline) { a000c78c: e3510000 cmp r1, #0 <== NOT EXECUTED /* Initializing or shifting deadline. */ new_priority = (_Watchdog_Ticks_since_boot + deadline) a000c790: 159f3018 ldrne r3, [pc, #24] ; a000c7b0 <_Scheduler_EDF_Release_job+0x24><== NOT EXECUTED & ~SCHEDULER_EDF_PRIO_MSB; } else { /* Switch back to background priority. */ new_priority = the_thread->Start.initial_priority; a000c794: 059010ac ldreq r1, [r0, #172] ; 0xac <== NOT EXECUTED } the_thread->real_priority = new_priority; _Thread_Change_priority(the_thread, new_priority, true); a000c798: e3a02001 mov r2, #1 <== NOT EXECUTED { Priority_Control new_priority; if (deadline) { /* Initializing or shifting deadline. */ new_priority = (_Watchdog_Ticks_since_boot + deadline) a000c79c: 15933000 ldrne r3, [r3] <== NOT EXECUTED a000c7a0: 10811003 addne r1, r1, r3 <== NOT EXECUTED a000c7a4: 13c11102 bicne r1, r1, #-2147483648 ; 0x80000000 <== NOT EXECUTED else { /* Switch back to background priority. */ new_priority = the_thread->Start.initial_priority; } the_thread->real_priority = new_priority; a000c7a8: e5801018 str r1, [r0, #24] <== NOT EXECUTED _Thread_Change_priority(the_thread, new_priority, true); a000c7ac: ea0000aa b a000ca5c <_Thread_Change_priority> <== NOT EXECUTED =============================================================================== a000c078 <_Scheduler_priority_Tick>: void _Scheduler_priority_Tick( void ) { Thread_Control *executing; executing = _Thread_Executing; a000c078: e59f3088 ldr r3, [pc, #136] ; a000c108 <_Scheduler_priority_Tick+0x90> #include #include void _Scheduler_priority_Tick( void ) { a000c07c: e92d4010 push {r4, lr} Thread_Control *executing; executing = _Thread_Executing; a000c080: e5934008 ldr r4, [r3, #8] /* * If the thread is not preemptible or is not ready, then * just return. */ if ( !executing->is_preemptible ) a000c084: e5d43070 ldrb r3, [r4, #112] ; 0x70 a000c088: e3530000 cmp r3, #0 a000c08c: 0a00001c beq a000c104 <_Scheduler_priority_Tick+0x8c> return; if ( !_States_Is_ready( executing->current_state ) ) a000c090: e5943010 ldr r3, [r4, #16] a000c094: e3530000 cmp r3, #0 a000c098: 1a000019 bne a000c104 <_Scheduler_priority_Tick+0x8c> /* * The cpu budget algorithm determines what happens next. */ switch ( executing->budget_algorithm ) { a000c09c: e5943078 ldr r3, [r4, #120] ; 0x78 a000c0a0: e3530001 cmp r3, #1 a000c0a4: 0a000002 beq a000c0b4 <_Scheduler_priority_Tick+0x3c> a000c0a8: e3530002 cmp r3, #2 a000c0ac: 1a000014 bne a000c104 <_Scheduler_priority_Tick+0x8c> a000c0b0: ea00000b b a000c0e4 <_Scheduler_priority_Tick+0x6c> <== 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 ) { a000c0b4: e5943074 ldr r3, [r4, #116] ; 0x74 <== NOT EXECUTED a000c0b8: e2433001 sub r3, r3, #1 <== NOT EXECUTED a000c0bc: e3530000 cmp r3, #0 <== NOT EXECUTED a000c0c0: e5843074 str r3, [r4, #116] ; 0x74 <== NOT EXECUTED a000c0c4: ca00000e bgt a000c104 <_Scheduler_priority_Tick+0x8c> <== NOT EXECUTED * always operates on the scheduler that 'owns' the currently executing * thread. */ RTEMS_INLINE_ROUTINE void _Scheduler_Yield( void ) { _Scheduler.Operations.yield(); a000c0c8: e59f303c ldr r3, [pc, #60] ; a000c10c <_Scheduler_priority_Tick+0x94><== NOT EXECUTED a000c0cc: e593300c ldr r3, [r3, #12] <== NOT EXECUTED a000c0d0: e12fff33 blx r3 <== NOT EXECUTED * executing thread's timeslice is reset. Otherwise, the * currently executing thread is placed at the rear of the * FIFO for this priority and a new heir is selected. */ _Scheduler_Yield(); executing->cpu_time_budget = _Thread_Ticks_per_timeslice; a000c0d4: e59f3034 ldr r3, [pc, #52] ; a000c110 <_Scheduler_priority_Tick+0x98><== NOT EXECUTED a000c0d8: e5933000 ldr r3, [r3] <== NOT EXECUTED a000c0dc: e5843074 str r3, [r4, #116] ; 0x74 <== NOT EXECUTED a000c0e0: e8bd8010 pop {r4, pc} <== NOT EXECUTED } break; #if defined(RTEMS_SCORE_THREAD_ENABLE_SCHEDULER_CALLOUT) case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT: if ( --executing->cpu_time_budget == 0 ) a000c0e4: e5943074 ldr r3, [r4, #116] ; 0x74 <== NOT EXECUTED a000c0e8: e2433001 sub r3, r3, #1 <== NOT EXECUTED a000c0ec: e3530000 cmp r3, #0 <== NOT EXECUTED a000c0f0: e5843074 str r3, [r4, #116] ; 0x74 <== NOT EXECUTED a000c0f4: 1a000002 bne a000c104 <_Scheduler_priority_Tick+0x8c> <== NOT EXECUTED (*executing->budget_callout)( executing ); a000c0f8: e594307c ldr r3, [r4, #124] ; 0x7c <== NOT EXECUTED a000c0fc: e1a00004 mov r0, r4 <== NOT EXECUTED a000c100: e12fff33 blx r3 <== NOT EXECUTED a000c104: e8bd8010 pop {r4, pc} =============================================================================== a000c72c <_Scheduler_simple_Ready_queue_enqueue_first>: { Chain_Control *ready; Chain_Node *the_node; Thread_Control *current; ready = (Chain_Control *)_Scheduler.information; a000c72c: e59f3038 ldr r3, [pc, #56] ; a000c76c <_Scheduler_simple_Ready_queue_enqueue_first+0x40> */ for ( the_node = _Chain_First(ready) ; ; the_node = the_node->next ) { current = (Thread_Control *) the_node; /* break when AT HEAD OF (or PAST) our priority */ if ( the_thread->current_priority <= current->current_priority ) { a000c730: e5902014 ldr r2, [r0, #20] */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First( Chain_Control *the_chain ) { return _Chain_Head( the_chain )->next; a000c734: e5933000 ldr r3, [r3] a000c738: e5933000 ldr r3, [r3] a000c73c: e5931014 ldr r1, [r3, #20] a000c740: e1520001 cmp r2, r1 a000c744: 8a000006 bhi a000c764 <_Scheduler_simple_Ready_queue_enqueue_first+0x38> current = (Thread_Control *)current->Object.Node.previous; a000c748: e5933004 ldr r3, [r3, #4] ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; a000c74c: e5932000 ldr r2, [r3] Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; a000c750: e5803004 str r3, [r0, #4] before_node = after_node->next; after_node->next = the_node; a000c754: e5830000 str r0, [r3] the_node->next = before_node; before_node->previous = the_node; a000c758: e5820004 str r0, [r2, #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; a000c75c: e5802000 str r2, [r0] } } /* enqueue */ _Chain_Insert_unprotected( (Chain_Node *)current, &the_thread->Object.Node ); } a000c760: e12fff1e bx lr * Do NOT need to check for end of chain because there is always * at least one task on the ready chain -- the IDLE task. It can * never block, should never attempt to obtain a semaphore or mutex, * and thus will always be there. */ for ( the_node = _Chain_First(ready) ; ; the_node = the_node->next ) { a000c764: e5933000 ldr r3, [r3] <== NOT EXECUTED /* break when AT HEAD OF (or PAST) our priority */ if ( the_thread->current_priority <= current->current_priority ) { current = (Thread_Control *)current->Object.Node.previous; break; } } a000c768: eafffff3 b a000c73c <_Scheduler_simple_Ready_queue_enqueue_first+0x10><== NOT EXECUTED =============================================================================== a00265c0 <_TOD_Get_uptime_as_timespec>: #include void _TOD_Get_uptime_as_timespec( struct timespec *uptime ) { a00265c0: e92d40d3 push {r0, r1, r4, r6, r7, lr} <== NOT EXECUTED a00265c4: e1a04000 mov r4, r0 <== NOT EXECUTED a00265c8: e59f103c ldr r1, [pc, #60] ; a002660c <_TOD_Get_uptime_as_timespec+0x4c><== NOT EXECUTED a00265cc: e1a0000d mov r0, sp <== NOT EXECUTED a00265d0: ebff9471 bl a000b79c <_TOD_Get_with_nanoseconds> <== NOT EXECUTED Timestamp_Control uptime_ts; /* assume time checked for NULL by caller */ _TOD_Get_uptime( &uptime_ts ); _Timestamp_To_timespec( &uptime_ts, uptime ); a00265d4: e89d00c0 ldm sp, {r6, r7} <== NOT EXECUTED static inline void _Timestamp64_implementation_To_timespec( const Timestamp64_Control *_timestamp, struct timespec *_timespec ) { _timespec->tv_sec = (time_t) (*_timestamp / 1000000000L); a00265d8: e59f2030 ldr r2, [pc, #48] ; a0026610 <_TOD_Get_uptime_as_timespec+0x50><== NOT EXECUTED a00265dc: e3a03000 mov r3, #0 <== NOT EXECUTED a00265e0: e1a00006 mov r0, r6 <== NOT EXECUTED a00265e4: e1a01007 mov r1, r7 <== NOT EXECUTED a00265e8: eb00a260 bl a004ef70 <__divdi3> <== NOT EXECUTED _timespec->tv_nsec = (long) (*_timestamp % 1000000000L); a00265ec: e1a01007 mov r1, r7 <== NOT EXECUTED static inline void _Timestamp64_implementation_To_timespec( const Timestamp64_Control *_timestamp, struct timespec *_timespec ) { _timespec->tv_sec = (time_t) (*_timestamp / 1000000000L); a00265f0: e5840000 str r0, [r4] <== NOT EXECUTED _timespec->tv_nsec = (long) (*_timestamp % 1000000000L); a00265f4: e59f2014 ldr r2, [pc, #20] ; a0026610 <_TOD_Get_uptime_as_timespec+0x50><== NOT EXECUTED a00265f8: e1a00006 mov r0, r6 <== NOT EXECUTED a00265fc: e3a03000 mov r3, #0 <== NOT EXECUTED a0026600: eb00a395 bl a004f45c <__moddi3> <== NOT EXECUTED a0026604: e5840004 str r0, [r4, #4] <== NOT EXECUTED } a0026608: e8bd80dc pop {r2, r3, r4, r6, r7, pc} <== NOT EXECUTED =============================================================================== a000afb4 <_TOD_Tickle_ticks>: void _TOD_Tickle_ticks( void ) { Timestamp_Control tick; uint32_t nanoseconds_per_tick; nanoseconds_per_tick = rtems_configuration_get_nanoseconds_per_tick(); a000afb4: e59f3078 ldr r3, [pc, #120] ; a000b034 <_TOD_Tickle_ticks+0x80> #include #include #include void _TOD_Tickle_ticks( void ) { a000afb8: e92d4030 push {r4, r5, lr} Timestamp_Control tick; uint32_t nanoseconds_per_tick; nanoseconds_per_tick = rtems_configuration_get_nanoseconds_per_tick(); a000afbc: e5932010 ldr r2, [r3, #16] /* Convert the tick quantum to a timestamp */ _Timestamp_Set( &tick, 0, nanoseconds_per_tick ); /* Update the counter of ticks since boot */ _Watchdog_Ticks_since_boot += 1; a000afc0: e59f3070 ldr r3, [pc, #112] ; a000b038 <_TOD_Tickle_ticks+0x84> uint32_t nanoseconds_per_tick; nanoseconds_per_tick = rtems_configuration_get_nanoseconds_per_tick(); /* Convert the tick quantum to a timestamp */ _Timestamp_Set( &tick, 0, nanoseconds_per_tick ); a000afc4: e3a01000 mov r1, #0 /* Update the counter of ticks since boot */ _Watchdog_Ticks_since_boot += 1; a000afc8: e593c000 ldr ip, [r3] a000afcc: e28cc001 add ip, ip, #1 a000afd0: e583c000 str ip, [r3] static inline void _Timestamp64_implementation_Add_to( Timestamp64_Control *_time, const Timestamp64_Control *_add ) { *_time += *_add; a000afd4: e59f3060 ldr r3, [pc, #96] ; a000b03c <_TOD_Tickle_ticks+0x88> a000afd8: e2835008 add r5, r3, #8 a000afdc: e8950030 ldm r5, {r4, r5} a000afe0: e0944002 adds r4, r4, r2 a000afe4: e0a55001 adc r5, r5, r1 a000afe8: e5834008 str r4, [r3, #8] a000afec: e583500c str r5, [r3, #12] a000aff0: e8930030 ldm r3, {r4, r5} a000aff4: e0944002 adds r4, r4, r2 a000aff8: e0a55001 adc r5, r5, r1 /* we do not care how much the uptime changed */ /* Update the current TOD */ _Timestamp_Add_to( &_TOD.now, &tick ); _TOD.seconds_trigger += nanoseconds_per_tick; a000affc: e5931010 ldr r1, [r3, #16] a000b000: e8830030 stm r3, {r4, r5} a000b004: e0821001 add r1, r2, r1 if ( _TOD.seconds_trigger >= 1000000000UL ) { a000b008: e59f2030 ldr r2, [pc, #48] ; a000b040 <_TOD_Tickle_ticks+0x8c> /* we do not care how much the uptime changed */ /* Update the current TOD */ _Timestamp_Add_to( &_TOD.now, &tick ); _TOD.seconds_trigger += nanoseconds_per_tick; a000b00c: e5831010 str r1, [r3, #16] if ( _TOD.seconds_trigger >= 1000000000UL ) { a000b010: e1510002 cmp r1, r2 a000b014: 9a000005 bls a000b030 <_TOD_Tickle_ticks+0x7c> _TOD.seconds_trigger -= 1000000000UL; a000b018: e59f2024 ldr r2, [pc, #36] ; a000b044 <_TOD_Tickle_ticks+0x90><== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Watchdog_Tickle_seconds( void ) { _Watchdog_Tickle( &_Watchdog_Seconds_chain ); a000b01c: e59f0024 ldr r0, [pc, #36] ; a000b048 <_TOD_Tickle_ticks+0x94><== NOT EXECUTED a000b020: e0812002 add r2, r1, r2 <== NOT EXECUTED a000b024: e5832010 str r2, [r3, #16] <== NOT EXECUTED _Watchdog_Tickle_seconds(); } } a000b028: e8bd4030 pop {r4, r5, lr} <== NOT EXECUTED a000b02c: ea000922 b a000d4bc <_Watchdog_Tickle> <== NOT EXECUTED a000b030: e8bd8030 pop {r4, r5, pc} =============================================================================== a000acc4 <_TOD_Validate>: }; bool _TOD_Validate( const rtems_time_of_day *the_tod ) { a000acc4: e92d4010 push {r4, lr} 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) || a000acc8: e2504000 subs r4, r0, #0 a000accc: 0a000023 beq a000ad60 <_TOD_Validate+0x9c> ) { uint32_t days_in_month; uint32_t ticks_per_second; ticks_per_second = TOD_MICROSECONDS_PER_SECOND / a000acd0: e59f30a8 ldr r3, [pc, #168] ; a000ad80 <_TOD_Validate+0xbc> a000acd4: e59f00a8 ldr r0, [pc, #168] ; a000ad84 <_TOD_Validate+0xc0> a000acd8: e593100c ldr r1, [r3, #12] a000acdc: eb004351 bl a001ba28 <__aeabi_uidiv> rtems_configuration_get_microseconds_per_tick(); if ((!the_tod) || a000ace0: e5943018 ldr r3, [r4, #24] a000ace4: e1530000 cmp r3, r0 a000ace8: 2a000020 bcs a000ad70 <_TOD_Validate+0xac> (the_tod->ticks >= ticks_per_second) || a000acec: e5943014 ldr r3, [r4, #20] a000acf0: e353003b cmp r3, #59 ; 0x3b a000acf4: 8a00001d bhi a000ad70 <_TOD_Validate+0xac> (the_tod->second >= TOD_SECONDS_PER_MINUTE) || a000acf8: e5943010 ldr r3, [r4, #16] a000acfc: e353003b cmp r3, #59 ; 0x3b a000ad00: 8a00001a bhi a000ad70 <_TOD_Validate+0xac> (the_tod->minute >= TOD_MINUTES_PER_HOUR) || a000ad04: e594300c ldr r3, [r4, #12] a000ad08: e3530017 cmp r3, #23 a000ad0c: 8a000017 bhi a000ad70 <_TOD_Validate+0xac> (the_tod->hour >= TOD_HOURS_PER_DAY) || (the_tod->month == 0) || a000ad10: e5943004 ldr r3, [r4, #4] 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) || a000ad14: e3530000 cmp r3, #0 a000ad18: 0a000012 beq a000ad68 <_TOD_Validate+0xa4> (the_tod->month == 0) || a000ad1c: e353000c cmp r3, #12 a000ad20: 8a000012 bhi a000ad70 <_TOD_Validate+0xac> (the_tod->month > TOD_MONTHS_PER_YEAR) || (the_tod->year < TOD_BASE_YEAR) || a000ad24: e5942000 ldr r2, [r4] (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) || a000ad28: e59f1058 ldr r1, [pc, #88] ; a000ad88 <_TOD_Validate+0xc4> a000ad2c: e1520001 cmp r2, r1 a000ad30: 9a000010 bls a000ad78 <_TOD_Validate+0xb4> (the_tod->year < TOD_BASE_YEAR) || (the_tod->day == 0) ) a000ad34: e5940008 ldr r0, [r4, #8] (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) || a000ad38: e3500000 cmp r0, #0 a000ad3c: 0a00000e beq a000ad7c <_TOD_Validate+0xb8> (the_tod->day == 0) ) return false; if ( (the_tod->year % 4) == 0 ) a000ad40: e3120003 tst r2, #3 a000ad44: e59f2040 ldr r2, [pc, #64] ; a000ad8c <_TOD_Validate+0xc8> days_in_month = _TOD_Days_per_month[ 1 ][ the_tod->month ]; a000ad48: 0283300d addeq r3, r3, #13 else days_in_month = _TOD_Days_per_month[ 0 ][ the_tod->month ]; a000ad4c: e7924103 ldr r4, [r2, r3, lsl #2] const uint32_t _TOD_Days_per_month[ 2 ][ 13 ] = { { 0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }, { 0, 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 } }; bool _TOD_Validate( a000ad50: e1500004 cmp r0, r4 a000ad54: 83a00000 movhi r0, #0 a000ad58: 93a00001 movls r0, #1 a000ad5c: e8bd8010 pop {r4, pc} (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; a000ad60: e1a00004 mov r0, r4 <== NOT EXECUTED a000ad64: e8bd8010 pop {r4, pc} <== NOT EXECUTED a000ad68: e1a00003 mov r0, r3 <== NOT EXECUTED a000ad6c: e8bd8010 pop {r4, pc} <== NOT EXECUTED a000ad70: e3a00000 mov r0, #0 <== NOT EXECUTED a000ad74: e8bd8010 pop {r4, pc} <== NOT EXECUTED a000ad78: e3a00000 mov r0, #0 <== NOT EXECUTED if ( the_tod->day > days_in_month ) return false; return true; } a000ad7c: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a000c438 <_Thread_Close>: RTEMS_INLINE_ROUTINE void _Objects_Invalidate_Id( Objects_Information *information, Objects_Control *the_object ) { _Objects_Set_local_object( a000c438: e1d120b8 ldrh r2, [r1, #8] #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; a000c43c: e590301c ldr r3, [r0, #28] void _Thread_Close( Objects_Information *information, Thread_Control *the_thread ) { a000c440: e92d4070 push {r4, r5, r6, lr} a000c444: e1a04001 mov r4, r1 a000c448: e3a01000 mov r1, #0 a000c44c: e7831102 str r1, [r3, r2, lsl #2] a000c450: e1a06000 mov r6, r0 * * This routine decrements the thread dispatch level. */ RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_decrement_disable_level(void) { uint32_t level = _Thread_Dispatch_disable_level; a000c454: e59f508c ldr r5, [pc, #140] ; a000c4e8 <_Thread_Close+0xb0> return ctx.ok; } static inline void _User_extensions_Thread_delete( Thread_Control *deleted ) { _User_extensions_Iterate( a000c458: e1a00004 mov r0, r4 a000c45c: e59f1088 ldr r1, [pc, #136] ; a000c4ec <_Thread_Close+0xb4> a000c460: e5953000 ldr r3, [r5] --level; a000c464: e2433001 sub r3, r3, #1 _Thread_Dispatch_disable_level = level; a000c468: e5853000 str r3, [r5] a000c46c: eb000352 bl a000d1bc <_User_extensions_Iterate> * * This rountine increments the thread dispatch level */ RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void) { uint32_t level = _Thread_Dispatch_disable_level; a000c470: e5953000 ldr r3, [r5] ++level; a000c474: e2833001 add r3, r3, #1 _Thread_Dispatch_disable_level = level; a000c478: e5853000 str r3, [r5] /* * 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 ); a000c47c: e1a00006 mov r0, r6 a000c480: e1a01004 mov r1, r4 a000c484: ebfffc2a bl a000b534 <_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 ); a000c488: e1a00004 mov r0, r4 a000c48c: e3a01001 mov r1, #1 a000c490: eb0002b9 bl a000cf7c <_Thread_Set_state> if ( !_Thread_queue_Extract_with_proxy( the_thread ) ) { a000c494: e1a00004 mov r0, r4 a000c498: eb00025d bl a000ce14 <_Thread_queue_Extract_with_proxy> a000c49c: e3500000 cmp r0, #0 a000c4a0: 1a000004 bne a000c4b8 <_Thread_Close+0x80> if ( _Watchdog_Is_active( &the_thread->Timer ) ) a000c4a4: e5943050 ldr r3, [r4, #80] ; 0x50 a000c4a8: e3530002 cmp r3, #2 a000c4ac: 1a000001 bne a000c4b8 <_Thread_Close+0x80> (void) _Watchdog_Remove( &the_thread->Timer ); a000c4b0: e2840048 add r0, r4, #72 ; 0x48 <== NOT EXECUTED a000c4b4: eb0003d7 bl a000d418 <_Watchdog_Remove> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Scheduler_Free( Thread_Control *the_thread ) { return _Scheduler.Operations.free( the_thread ); a000c4b8: e59f3030 ldr r3, [pc, #48] ; a000c4f0 <_Thread_Close+0xb8> a000c4bc: e1a00004 mov r0, r4 /* * 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; a000c4c0: e3a05000 mov r5, #0 a000c4c4: e593301c ldr r3, [r3, #28] a000c4c8: e12fff33 blx r3 /* * Free the rest of the memory associated with this task * and set the associated pointers to NULL for safety. */ _Thread_Stack_Free( the_thread ); a000c4cc: e1a00004 mov r0, r4 a000c4d0: eb0002d9 bl a000d03c <_Thread_Stack_Free> the_thread->Start.stack = NULL; a000c4d4: e58450b8 str r5, [r4, #184] ; 0xb8 _Workspace_Free( the_thread->extensions ); a000c4d8: e59400f4 ldr r0, [r4, #244] ; 0xf4 a000c4dc: eb00045f bl a000d660 <_Workspace_Free> the_thread->extensions = NULL; a000c4e0: e58450f4 str r5, [r4, #244] ; 0xf4 } a000c4e4: e8bd8070 pop {r4, r5, r6, pc} =============================================================================== a000c788 <_Thread_Get>: Thread_Control *_Thread_Get ( Objects_Id id, Objects_Locations *location ) { a000c788: e1a02001 mov r2, r1 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 ) ) { a000c78c: e2501000 subs r1, r0, #0 a000c790: 1a000007 bne a000c7b4 <_Thread_Get+0x2c> * * This rountine increments the thread dispatch level */ RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void) { uint32_t level = _Thread_Dispatch_disable_level; a000c794: e59f3074 ldr r3, [pc, #116] ; a000c810 <_Thread_Get+0x88> a000c798: e5930000 ldr r0, [r3] ++level; a000c79c: e2800001 add r0, r0, #1 _Thread_Dispatch_disable_level = level; a000c7a0: e5830000 str r0, [r3] _Thread_Disable_dispatch(); *location = OBJECTS_LOCAL; tp = _Thread_Executing; a000c7a4: e59f3068 ldr r3, [pc, #104] ; a000c814 <_Thread_Get+0x8c> 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; a000c7a8: e5821000 str r1, [r2] tp = _Thread_Executing; a000c7ac: e5930008 ldr r0, [r3, #8] goto done; a000c7b0: e12fff1e bx lr */ RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API( Objects_Id id ) { return (Objects_APIs) ((id >> OBJECTS_API_START_BIT) & OBJECTS_API_VALID_BITS); a000c7b4: e1a00c21 lsr r0, r1, #24 a000c7b8: e2000007 and r0, r0, #7 */ RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid( uint32_t the_api ) { if ( !the_api || the_api > OBJECTS_APIS_LAST ) a000c7bc: e2403001 sub r3, r0, #1 a000c7c0: e3530002 cmp r3, #2 a000c7c4: 9a00000d bls a000c800 <_Thread_Get+0x78> goto done; } the_class = _Objects_Get_class( id ); if ( the_class != 1 ) { /* threads are always first class :) */ *location = OBJECTS_ERROR; a000c7c8: e3a03001 mov r3, #1 a000c7cc: e5823000 str r3, [r2] { uint32_t the_api; uint32_t the_class; Objects_Information **api_information; Objects_Information *information; Thread_Control *tp = (Thread_Control *) 0; a000c7d0: e3a00000 mov r0, #0 } the_class = _Objects_Get_class( id ); if ( the_class != 1 ) { /* threads are always first class :) */ *location = OBJECTS_ERROR; goto done; a000c7d4: e12fff1e bx lr } api_information = _Objects_Information_table[ the_api ]; a000c7d8: e59fc038 ldr ip, [pc, #56] ; a000c818 <_Thread_Get+0x90> a000c7dc: e79c0100 ldr r0, [ip, r0, lsl #2] * There is no way for this to happen if POSIX is enabled. But there * is actually a test case in sp43 for this which trips it whether or * not POSIX is enabled. So in the interest of safety, this is left * on in all configurations. */ if ( !api_information ) { a000c7e0: e3500000 cmp r0, #0 a000c7e4: 0a000002 beq a000c7f4 <_Thread_Get+0x6c> *location = OBJECTS_ERROR; goto done; } information = api_information[ the_class ]; a000c7e8: e5900004 ldr r0, [r0, #4] if ( !information ) { a000c7ec: e3500000 cmp r0, #0 a000c7f0: 1a000001 bne a000c7fc <_Thread_Get+0x74> *location = OBJECTS_ERROR; a000c7f4: e5823000 str r3, [r2] <== NOT EXECUTED goto done; a000c7f8: e12fff1e bx lr <== NOT EXECUTED } tp = (Thread_Control *) _Objects_Get( information, id, location ); a000c7fc: eafffc51 b a000b948 <_Objects_Get> */ RTEMS_INLINE_ROUTINE uint32_t _Objects_Get_class( Objects_Id id ) { return (uint32_t) a000c800: e1a03da1 lsr r3, r1, #27 *location = OBJECTS_ERROR; goto done; } the_class = _Objects_Get_class( id ); if ( the_class != 1 ) { /* threads are always first class :) */ a000c804: e3530001 cmp r3, #1 a000c808: 0afffff2 beq a000c7d8 <_Thread_Get+0x50> a000c80c: eaffffed b a000c7c8 <_Thread_Get+0x40> <== NOT EXECUTED =============================================================================== a0010078 <_Thread_Reset>: Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { the_thread->resource_count = 0; a0010078: e3a03000 mov r3, #0 void _Thread_Reset( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { a001007c: e92d4010 push {r4, lr} the_thread->resource_count = 0; a0010080: e580301c str r3, [r0, #28] the_thread->is_preemptible = the_thread->Start.is_preemptible; a0010084: e5d0309c ldrb r3, [r0, #156] ; 0x9c the_thread->budget_algorithm = the_thread->Start.budget_algorithm; the_thread->budget_callout = the_thread->Start.budget_callout; the_thread->Start.pointer_argument = pointer_argument; a0010088: e5801094 str r1, [r0, #148] ; 0x94 the_thread->Start.numeric_argument = numeric_argument; a001008c: e5802098 str r2, [r0, #152] ; 0x98 void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { the_thread->resource_count = 0; the_thread->is_preemptible = the_thread->Start.is_preemptible; a0010090: e5c03070 strb r3, [r0, #112] ; 0x70 the_thread->budget_algorithm = the_thread->Start.budget_algorithm; a0010094: e59030a0 ldr r3, [r0, #160] ; 0xa0 void _Thread_Reset( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { a0010098: e1a04000 mov r4, r0 the_thread->resource_count = 0; the_thread->is_preemptible = the_thread->Start.is_preemptible; the_thread->budget_algorithm = the_thread->Start.budget_algorithm; a001009c: e5803078 str r3, [r0, #120] ; 0x78 the_thread->budget_callout = the_thread->Start.budget_callout; a00100a0: e59030a4 ldr r3, [r0, #164] ; 0xa4 a00100a4: e580307c str r3, [r0, #124] ; 0x7c the_thread->Start.pointer_argument = pointer_argument; the_thread->Start.numeric_argument = numeric_argument; if ( !_Thread_queue_Extract_with_proxy( the_thread ) ) { a00100a8: ebfff533 bl a000d57c <_Thread_queue_Extract_with_proxy> a00100ac: e3500000 cmp r0, #0 a00100b0: 1a000004 bne a00100c8 <_Thread_Reset+0x50> if ( _Watchdog_Is_active( &the_thread->Timer ) ) a00100b4: e5943050 ldr r3, [r4, #80] ; 0x50 a00100b8: e3530002 cmp r3, #2 a00100bc: 1a000001 bne a00100c8 <_Thread_Reset+0x50> (void) _Watchdog_Remove( &the_thread->Timer ); a00100c0: e2840048 add r0, r4, #72 ; 0x48 <== NOT EXECUTED a00100c4: ebfff6cc bl a000dbfc <_Watchdog_Remove> <== NOT EXECUTED } if ( the_thread->current_priority != the_thread->Start.initial_priority ) { a00100c8: e59410ac ldr r1, [r4, #172] ; 0xac a00100cc: e5943014 ldr r3, [r4, #20] a00100d0: e1530001 cmp r3, r1 a00100d4: 0a000003 beq a00100e8 <_Thread_Reset+0x70> the_thread->real_priority = the_thread->Start.initial_priority; _Thread_Set_priority( the_thread, the_thread->Start.initial_priority ); a00100d8: e1a00004 mov r0, r4 if ( _Watchdog_Is_active( &the_thread->Timer ) ) (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; a00100dc: e5841018 str r1, [r4, #24] _Thread_Set_priority( the_thread, the_thread->Start.initial_priority ); } } a00100e0: e8bd4010 pop {r4, lr} (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 ); a00100e4: eafff596 b a000d744 <_Thread_Set_priority> a00100e8: e8bd8010 pop {r4, pc} =============================================================================== a000d090 <_Thread_Start>: */ RTEMS_INLINE_ROUTINE bool _States_Is_dormant ( States_Control the_states ) { return (the_states & STATES_DORMANT); a000d090: e590c010 ldr ip, [r0, #16] Thread_Start_types the_prototype, void *entry_point, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { a000d094: e92d4010 push {r4, lr} if ( _States_Is_dormant( the_thread->current_state ) ) { a000d098: e21cc001 ands ip, ip, #1 Thread_Start_types the_prototype, void *entry_point, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { a000d09c: e1a04000 mov r4, r0 if ( _States_Is_dormant( the_thread->current_state ) ) { a000d0a0: 0a00000c beq a000d0d8 <_Thread_Start+0x48> the_thread->Start.entry_point = (Thread_Entry) entry_point; the_thread->Start.prototype = the_prototype; the_thread->Start.pointer_argument = pointer_argument; a000d0a4: e5803094 str r3, [r0, #148] ; 0x94 the_thread->Start.numeric_argument = numeric_argument; a000d0a8: e59d3008 ldr r3, [sp, #8] Thread_Entry_numeric_type numeric_argument ) { if ( _States_Is_dormant( the_thread->current_state ) ) { the_thread->Start.entry_point = (Thread_Entry) entry_point; a000d0ac: e580208c str r2, [r0, #140] ; 0x8c the_thread->Start.prototype = the_prototype; a000d0b0: e5801090 str r1, [r0, #144] ; 0x90 the_thread->Start.pointer_argument = pointer_argument; the_thread->Start.numeric_argument = numeric_argument; a000d0b4: e5803098 str r3, [r0, #152] ; 0x98 _Thread_Load_environment( the_thread ); a000d0b8: eb000953 bl a000f60c <_Thread_Load_environment> _Thread_Ready( the_thread ); a000d0bc: e1a00004 mov r0, r4 a000d0c0: eb0009e7 bl a000f864 <_Thread_Ready> ); } static inline void _User_extensions_Thread_start( Thread_Control *started ) { _User_extensions_Iterate( a000d0c4: e1a00004 mov r0, r4 a000d0c8: e59f1010 ldr r1, [pc, #16] ; a000d0e0 <_Thread_Start+0x50> a000d0cc: eb00003a bl a000d1bc <_User_extensions_Iterate> _User_extensions_Thread_start( the_thread ); return true; a000d0d0: e3a00001 mov r0, #1 a000d0d4: e8bd8010 pop {r4, pc} } return false; a000d0d8: e1a0000c mov r0, ip <== NOT EXECUTED } a000d0dc: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a000c2b8 <_Thread_blocking_operation_Cancel>: #endif /* * The thread is not waiting on anything after this completes. */ the_thread->Wait.queue = NULL; a000c2b8: e3a03000 mov r3, #0 <== NOT EXECUTED Thread_blocking_operation_States sync_state __attribute__((unused)), #endif Thread_Control *the_thread, ISR_Level level ) { a000c2bc: e92d4010 push {r4, lr} <== NOT EXECUTED #endif /* * The thread is not waiting on anything after this completes. */ the_thread->Wait.queue = NULL; a000c2c0: e5813044 str r3, [r1, #68] ; 0x44 <== 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 ) ) { a000c2c4: e5913050 ldr r3, [r1, #80] ; 0x50 <== NOT EXECUTED Thread_blocking_operation_States sync_state __attribute__((unused)), #endif Thread_Control *the_thread, ISR_Level level ) { a000c2c8: e1a04001 mov r4, r1 <== 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 ) ) { a000c2cc: e3530002 cmp r3, #2 <== NOT EXECUTED a000c2d0: 1a000005 bne a000c2ec <_Thread_blocking_operation_Cancel+0x34><== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_REMOVE_IT; a000c2d4: e3a03003 mov r3, #3 <== NOT EXECUTED a000c2d8: e5813050 str r3, [r1, #80] ; 0x50 <== NOT EXECUTED a000c2dc: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); (void) _Watchdog_Remove( &the_thread->Timer ); a000c2e0: e2810048 add r0, r1, #72 ; 0x48 <== NOT EXECUTED a000c2e4: eb00044b bl a000d418 <_Watchdog_Remove> <== NOT EXECUTED a000c2e8: ea000000 b a000c2f0 <_Thread_blocking_operation_Cancel+0x38><== NOT EXECUTED a000c2ec: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); a000c2f0: e59f1008 ldr r1, [pc, #8] ; a000c300 <_Thread_blocking_operation_Cancel+0x48><== NOT EXECUTED a000c2f4: e1a00004 mov r0, r4 <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } a000c2f8: e8bd4010 pop {r4, lr} <== NOT EXECUTED a000c2fc: ea00003c b a000c3f4 <_Thread_Clear_state> <== NOT EXECUTED =============================================================================== a000f658 <_Thread_queue_Dequeue_fifo>: #include Thread_Control *_Thread_queue_Dequeue_fifo( Thread_queue_Control *the_thread_queue ) { a000f658: e92d4010 push {r4, lr} uint32_t level; #if defined(ARM_MULTILIB_ARCH_V4) uint32_t arm_switch_reg; __asm__ volatile ( a000f65c: e10f3000 mrs r3, CPSR a000f660: e3832080 orr r2, r3, #128 ; 0x80 a000f664: e129f002 msr CPSR_fc, r2 */ RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first( const Chain_Control *the_chain ) { return _Chain_Immutable_head( the_chain )->next; a000f668: e1a02000 mov r2, r0 a000f66c: e4924004 ldr r4, [r2], #4 ISR_Level level; Thread_Control *the_thread; _ISR_Disable( level ); if ( !_Chain_Is_empty( &the_thread_queue->Queues.Fifo ) ) { a000f670: e1540002 cmp r4, r2 a000f674: 0a000012 beq a000f6c4 <_Thread_queue_Dequeue_fifo+0x6c> Chain_Control *the_chain ) { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *old_first = head->next; Chain_Node *new_first = old_first->next; a000f678: e5942000 ldr r2, [r4] head->next = new_first; a000f67c: e5802000 str r2, [r0] new_first->previous = head; a000f680: e5820004 str r0, [r2, #4] the_thread = (Thread_Control *) _Chain_Get_first_unprotected( &the_thread_queue->Queues.Fifo ); the_thread->Wait.queue = NULL; a000f684: e3a02000 mov r2, #0 a000f688: e5842044 str r2, [r4, #68] ; 0x44 if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { a000f68c: e5942050 ldr r2, [r4, #80] ; 0x50 a000f690: e3520002 cmp r2, #2 a000f694: 0a000001 beq a000f6a0 <_Thread_queue_Dequeue_fifo+0x48> static inline void arm_interrupt_enable( uint32_t level ) { #if defined(ARM_MULTILIB_ARCH_V4) ARM_SWITCH_REGISTERS; __asm__ volatile ( a000f698: e129f003 msr CPSR_fc, r3 a000f69c: ea000004 b a000f6b4 <_Thread_queue_Dequeue_fifo+0x5c> RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_REMOVE_IT; a000f6a0: e3a02003 mov r2, #3 <== NOT EXECUTED a000f6a4: e5842050 str r2, [r4, #80] ; 0x50 <== NOT EXECUTED a000f6a8: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED _ISR_Enable( level ); _Thread_Unblock( the_thread ); } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); (void) _Watchdog_Remove( &the_thread->Timer ); a000f6ac: e2840048 add r0, r4, #72 ; 0x48 <== NOT EXECUTED a000f6b0: ebfff758 bl a000d418 <_Watchdog_Remove> <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); a000f6b4: e1a00004 mov r0, r4 a000f6b8: e59f1014 ldr r1, [pc, #20] ; a000f6d4 <_Thread_queue_Dequeue_fifo+0x7c> a000f6bc: ebfff34c bl a000c3f4 <_Thread_Clear_state> a000f6c0: ea000001 b a000f6cc <_Thread_queue_Dequeue_fifo+0x74> a000f6c4: e129f003 msr CPSR_fc, r3 return the_thread; } _ISR_Enable( level ); return NULL; a000f6c8: e3a04000 mov r4, #0 } a000f6cc: e1a00004 mov r0, r4 a000f6d0: e8bd8010 pop {r4, pc} =============================================================================== a000caec <_Thread_queue_Dequeue_priority>: #include Thread_Control *_Thread_queue_Dequeue_priority( Thread_queue_Control *the_thread_queue ) { a000caec: e92d4030 push {r4, r5, lr} uint32_t level; #if defined(ARM_MULTILIB_ARCH_V4) uint32_t arm_switch_reg; __asm__ volatile ( a000caf0: e10f2000 mrs r2, CPSR a000caf4: e3823080 orr r3, r2, #128 ; 0x80 a000caf8: e129f003 msr CPSR_fc, r3 Chain_Node *last_node; Chain_Node *next_node; Chain_Node *previous_node; _ISR_Disable( level ); for( index=0 ; a000cafc: e3a03000 mov r3, #0 index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ; index++ ) { if ( !_Chain_Is_empty( &the_thread_queue->Queues.Priority[ index ] ) ) { a000cb00: e3a0c00c mov ip, #12 a000cb04: e001039c mul r1, ip, r3 */ RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first( const Chain_Control *the_chain ) { return _Chain_Immutable_head( the_chain )->next; a000cb08: e7904001 ldr r4, [r0, r1] a000cb0c: e0805001 add r5, r0, r1 RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( const Chain_Control *the_chain ) { return _Chain_Immutable_first( the_chain ) == _Chain_Immutable_tail( the_chain ); a000cb10: e2851004 add r1, r5, #4 a000cb14: e1540001 cmp r4, r1 a000cb18: 0a000008 beq a000cb40 <_Thread_queue_Dequeue_priority+0x54> */ _ISR_Enable( level ); return NULL; dequeue: the_thread->Wait.queue = NULL; a000cb1c: e3a03000 mov r3, #0 a000cb20: e5843044 str r3, [r4, #68] ; 0x44 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First( Chain_Control *the_chain ) { return _Chain_Head( the_chain )->next; a000cb24: e5943038 ldr r3, [r4, #56] ; 0x38 RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( const Chain_Control *the_chain ) { return _Chain_Immutable_first( the_chain ) == _Chain_Immutable_tail( the_chain ); a000cb28: e284c03c add ip, r4, #60 ; 0x3c new_first_node = _Chain_First( &the_thread->Wait.Block2n ); new_first_thread = (Thread_Control *) new_first_node; next_node = the_thread->Object.Node.next; a000cb2c: e5941000 ldr r1, [r4] previous_node = the_thread->Object.Node.previous; if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) { a000cb30: e153000c cmp r3, ip dequeue: the_thread->Wait.queue = NULL; new_first_node = _Chain_First( &the_thread->Wait.Block2n ); new_first_thread = (Thread_Control *) new_first_node; next_node = the_thread->Object.Node.next; previous_node = the_thread->Object.Node.previous; a000cb34: e5940004 ldr r0, [r4, #4] if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) { a000cb38: 1a000006 bne a000cb58 <_Thread_queue_Dequeue_priority+0x6c> a000cb3c: ea000016 b a000cb9c <_Thread_queue_Dequeue_priority+0xb0> Chain_Node *previous_node; _ISR_Disable( level ); for( index=0 ; index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ; index++ ) { a000cb40: e2833001 add r3, r3, #1 Chain_Node *last_node; Chain_Node *next_node; Chain_Node *previous_node; _ISR_Disable( level ); for( index=0 ; a000cb44: e3530004 cmp r3, #4 a000cb48: 1affffed bne a000cb04 <_Thread_queue_Dequeue_priority+0x18> static inline void arm_interrupt_enable( uint32_t level ) { #if defined(ARM_MULTILIB_ARCH_V4) ARM_SWITCH_REGISTERS; __asm__ volatile ( a000cb4c: e129f002 msr CPSR_fc, r2 /* * We did not find a thread to unblock. */ _ISR_Enable( level ); return NULL; a000cb50: e3a04000 mov r4, #0 a000cb54: ea00001f b a000cbd8 <_Thread_queue_Dequeue_priority+0xec> */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Last( Chain_Control *the_chain ) { return _Chain_Tail( the_chain )->previous; a000cb58: e594c040 ldr ip, [r4, #64] ; 0x40 <== NOT EXECUTED next_node = the_thread->Object.Node.next; previous_node = the_thread->Object.Node.previous; if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) { last_node = _Chain_Last( &the_thread->Wait.Block2n ); new_second_node = new_first_node->next; a000cb5c: e593e000 ldr lr, [r3] <== NOT EXECUTED previous_node->next = new_first_node; next_node->previous = new_first_node; a000cb60: e5813004 str r3, [r1, #4] <== NOT EXECUTED if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) { last_node = _Chain_Last( &the_thread->Wait.Block2n ); new_second_node = new_first_node->next; previous_node->next = new_first_node; a000cb64: e5803000 str r3, [r0] <== NOT EXECUTED next_node->previous = new_first_node; new_first_node->next = next_node; new_first_node->previous = previous_node; a000cb68: e5830004 str r0, [r3, #4] <== NOT EXECUTED last_node = _Chain_Last( &the_thread->Wait.Block2n ); new_second_node = new_first_node->next; previous_node->next = new_first_node; next_node->previous = new_first_node; new_first_node->next = next_node; a000cb6c: e5831000 str r1, [r3] <== NOT EXECUTED new_first_node->previous = previous_node; if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) { a000cb70: e5940038 ldr r0, [r4, #56] ; 0x38 <== NOT EXECUTED a000cb74: e5941040 ldr r1, [r4, #64] ; 0x40 <== NOT EXECUTED a000cb78: e1500001 cmp r0, r1 <== NOT EXECUTED a000cb7c: 0a000008 beq a000cba4 <_Thread_queue_Dequeue_priority+0xb8><== NOT EXECUTED /* > two threads on 2-n */ head = _Chain_Head( &new_first_thread->Wait.Block2n ); a000cb80: e2831038 add r1, r3, #56 ; 0x38 <== NOT EXECUTED tail = _Chain_Tail( &new_first_thread->Wait.Block2n ); new_second_node->previous = head; head->next = new_second_node; a000cb84: e583e038 str lr, [r3, #56] ; 0x38 <== NOT EXECUTED if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) { /* > two threads on 2-n */ head = _Chain_Head( &new_first_thread->Wait.Block2n ); tail = _Chain_Tail( &new_first_thread->Wait.Block2n ); new_second_node->previous = head; a000cb88: e58e1004 str r1, [lr, #4] <== NOT EXECUTED head->next = new_second_node; tail->previous = last_node; a000cb8c: e583c040 str ip, [r3, #64] ; 0x40 <== NOT EXECUTED new_first_node->previous = previous_node; if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) { /* > two threads on 2-n */ head = _Chain_Head( &new_first_thread->Wait.Block2n ); tail = _Chain_Tail( &new_first_thread->Wait.Block2n ); a000cb90: e283303c add r3, r3, #60 ; 0x3c <== NOT EXECUTED new_second_node->previous = head; head->next = new_second_node; tail->previous = last_node; last_node->next = tail; a000cb94: e58c3000 str r3, [ip] <== NOT EXECUTED a000cb98: ea000001 b a000cba4 <_Thread_queue_Dequeue_priority+0xb8> <== NOT EXECUTED } } else { previous_node->next = next_node; a000cb9c: e5801000 str r1, [r0] next_node->previous = previous_node; a000cba0: e5810004 str r0, [r1, #4] } if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { a000cba4: e5943050 ldr r3, [r4, #80] ; 0x50 a000cba8: e3530002 cmp r3, #2 a000cbac: 0a000001 beq a000cbb8 <_Thread_queue_Dequeue_priority+0xcc> a000cbb0: e129f002 msr CPSR_fc, r2 a000cbb4: ea000004 b a000cbcc <_Thread_queue_Dequeue_priority+0xe0> RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_REMOVE_IT; a000cbb8: e3a03003 mov r3, #3 <== NOT EXECUTED a000cbbc: e5843050 str r3, [r4, #80] ; 0x50 <== NOT EXECUTED a000cbc0: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED _ISR_Enable( level ); _Thread_Unblock( the_thread ); } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); (void) _Watchdog_Remove( &the_thread->Timer ); a000cbc4: e2840048 add r0, r4, #72 ; 0x48 <== NOT EXECUTED a000cbc8: eb000212 bl a000d418 <_Watchdog_Remove> <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); a000cbcc: e1a00004 mov r0, r4 a000cbd0: e59f1008 ldr r1, [pc, #8] ; a000cbe0 <_Thread_queue_Dequeue_priority+0xf4> a000cbd4: ebfffe06 bl a000c3f4 <_Thread_Clear_state> #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif return( the_thread ); } a000cbd8: e1a00004 mov r0, r4 a000cbdc: e8bd8030 pop {r4, r5, pc} =============================================================================== a000f6d8 <_Thread_queue_Enqueue_fifo>: Thread_blocking_operation_States _Thread_queue_Enqueue_fifo ( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread, ISR_Level *level_p ) { a000f6d8: e92d4010 push {r4, lr} a000f6dc: e1a03000 mov r3, r0 uint32_t level; #if defined(ARM_MULTILIB_ARCH_V4) uint32_t arm_switch_reg; __asm__ volatile ( a000f6e0: e10fc000 mrs ip, CPSR a000f6e4: e38c0080 orr r0, ip, #128 ; 0x80 a000f6e8: e129f000 msr CPSR_fc, r0 Thread_blocking_operation_States sync_state; ISR_Level level; _ISR_Disable( level ); sync_state = the_thread_queue->sync_state; a000f6ec: e5930030 ldr r0, [r3, #48] ; 0x30 the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; a000f6f0: e3a04000 mov r4, #0 a000f6f4: e5834030 str r4, [r3, #48] ; 0x30 if (sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) { a000f6f8: e3500001 cmp r0, #1 a000f6fc: 1a000008 bne a000f724 <_Thread_queue_Enqueue_fifo+0x4c> Chain_Control *the_chain, Chain_Node *the_node ) { Chain_Node *tail = _Chain_Tail( the_chain ); Chain_Node *old_last = tail->previous; a000f700: e5932008 ldr r2, [r3, #8] RTEMS_INLINE_ROUTINE void _Chain_Append_unprotected( Chain_Control *the_chain, Chain_Node *the_node ) { Chain_Node *tail = _Chain_Tail( the_chain ); a000f704: e2834004 add r4, r3, #4 Chain_Node *old_last = tail->previous; the_node->next = tail; tail->previous = the_node; a000f708: e5831008 str r1, [r3, #8] ) { Chain_Node *tail = _Chain_Tail( the_chain ); Chain_Node *old_last = tail->previous; the_node->next = tail; a000f70c: e5814000 str r4, [r1] tail->previous = the_node; old_last->next = the_node; the_node->previous = old_last; a000f710: e5812004 str r2, [r1, #4] Chain_Node *tail = _Chain_Tail( the_chain ); Chain_Node *old_last = tail->previous; the_node->next = tail; tail->previous = the_node; old_last->next = the_node; a000f714: e5821000 str r1, [r2] _Chain_Append_unprotected( &the_thread_queue->Queues.Fifo, &the_thread->Object.Node ); the_thread->Wait.queue = the_thread_queue; a000f718: e5813044 str r3, [r1, #68] ; 0x44 static inline void arm_interrupt_enable( uint32_t level ) { #if defined(ARM_MULTILIB_ARCH_V4) ARM_SWITCH_REGISTERS; __asm__ volatile ( a000f71c: e129f00c msr CPSR_fc, ip the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; a000f720: e8bd8010 pop {r4, pc} * 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; a000f724: e582c000 str ip, [r2] <== NOT EXECUTED return sync_state; } a000f728: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a000cc84 <_Thread_queue_Enqueue_priority>: RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); a000cc84: e281c03c add ip, r1, #60 ; 0x3c head->next = tail; a000cc88: e581c038 str ip, [r1, #56] ; 0x38 head->previous = NULL; a000cc8c: e3a0c000 mov ip, #0 a000cc90: e581c03c str ip, [r1, #60] ; 0x3c Priority_Control priority; States_Control block_state; _Chain_Initialize_empty( &the_thread->Wait.Block2n ); priority = the_thread->current_priority; a000cc94: e591c014 ldr ip, [r1, #20] RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); a000cc98: e2813038 add r3, r1, #56 ; 0x38 Thread_blocking_operation_States _Thread_queue_Enqueue_priority ( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread, ISR_Level *level_p ) { a000cc9c: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} head->next = tail; head->previous = NULL; tail->previous = head; a000cca0: e5813040 str r3, [r1, #64] ; 0x40 _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 ]; a000cca4: e3a0500c mov r5, #12 RTEMS_INLINE_ROUTINE uint32_t _Thread_queue_Header_number ( Priority_Control the_priority ) { return (the_priority / TASK_QUEUE_DATA_PRIORITIES_PER_HEADER); a000cca8: e1a0332c lsr r3, ip, #6 block_state = the_thread_queue->state; if ( _Thread_queue_Is_reverse_search( priority ) ) a000ccac: e31c0020 tst ip, #32 _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 ]; a000ccb0: e0250593 mla r5, r3, r5, r0 block_state = the_thread_queue->state; a000ccb4: e5908038 ldr r8, [r0, #56] ; 0x38 the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; a000ccb8: 159fa150 ldrne sl, [pc, #336] ; a000ce10 <_Thread_queue_Enqueue_priority+0x18c> 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 ) ) a000ccbc: 1a000022 bne a000cd4c <_Thread_queue_Enqueue_priority+0xc8> RTEMS_INLINE_ROUTINE bool _Chain_Is_tail( const Chain_Control *the_chain, const Chain_Node *the_node ) { return (the_node == _Chain_Immutable_tail( the_chain )); a000ccc0: e285a004 add sl, r5, #4 uint32_t level; #if defined(ARM_MULTILIB_ARCH_V4) uint32_t arm_switch_reg; __asm__ volatile ( a000ccc4: e10f4000 mrs r4, CPSR a000ccc8: e3843080 orr r3, r4, #128 ; 0x80 a000cccc: e129f003 msr CPSR_fc, r3 a000ccd0: e1a06004 mov r6, r4 goto restart_reverse_search; restart_forward_search: search_priority = PRIORITY_MINIMUM - 1; a000ccd4: e3e07000 mvn r7, #0 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First( Chain_Control *the_chain ) { return _Chain_Head( the_chain )->next; a000ccd8: e5953000 ldr r3, [r5] _ISR_Disable( level ); search_thread = (Thread_Control *) _Chain_First( header ); while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) { a000ccdc: ea00000b b a000cd10 <_Thread_queue_Enqueue_priority+0x8c> search_priority = search_thread->current_priority; a000cce0: e5937014 ldr r7, [r3, #20] if ( priority <= search_priority ) a000cce4: e15c0007 cmp ip, r7 a000cce8: 9a00000a bls a000cd18 <_Thread_queue_Enqueue_priority+0x94> static inline void arm_interrupt_flash( uint32_t level ) { #if defined(ARM_MULTILIB_ARCH_V4) uint32_t arm_switch_reg; __asm__ volatile ( a000ccec: e10f9000 mrs r9, CPSR a000ccf0: e129f004 msr CPSR_fc, r4 a000ccf4: e129f009 msr CPSR_fc, r9 RTEMS_INLINE_ROUTINE bool _States_Are_set ( States_Control the_states, States_Control mask ) { return ( (the_states & mask) != STATES_READY); a000ccf8: e5939010 ldr r9, [r3, #16] search_priority = search_thread->current_priority; if ( priority <= search_priority ) break; #endif _ISR_Flash( level ); if ( !_States_Are_set( search_thread->current_state, block_state) ) { a000ccfc: e1180009 tst r8, r9 a000cd00: 1a000001 bne a000cd0c <_Thread_queue_Enqueue_priority+0x88> static inline void arm_interrupt_enable( uint32_t level ) { #if defined(ARM_MULTILIB_ARCH_V4) ARM_SWITCH_REGISTERS; __asm__ volatile ( a000cd04: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED a000cd08: eaffffed b a000ccc4 <_Thread_queue_Enqueue_priority+0x40> <== NOT EXECUTED _ISR_Enable( level ); goto restart_forward_search; } search_thread = a000cd0c: e5933000 ldr r3, [r3] restart_forward_search: search_priority = PRIORITY_MINIMUM - 1; _ISR_Disable( level ); search_thread = (Thread_Control *) _Chain_First( header ); while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) { a000cd10: e153000a cmp r3, sl a000cd14: 1afffff1 bne a000cce0 <_Thread_queue_Enqueue_priority+0x5c> } search_thread = (Thread_Control *)search_thread->Object.Node.next; } if ( the_thread_queue->sync_state != a000cd18: e5905030 ldr r5, [r0, #48] ; 0x30 a000cd1c: e3550001 cmp r5, #1 a000cd20: 1a000037 bne a000ce04 <_Thread_queue_Enqueue_priority+0x180> THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; a000cd24: e3a02000 mov r2, #0 if ( priority == search_priority ) a000cd28: e15c0007 cmp ip, r7 if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; a000cd2c: e5802030 str r2, [r0, #48] ; 0x30 if ( priority == search_priority ) a000cd30: 0a000029 beq a000cddc <_Thread_queue_Enqueue_priority+0x158> goto equal_priority; search_node = (Chain_Node *) search_thread; previous_node = search_node->previous; a000cd34: e5932004 ldr r2, [r3, #4] the_node = (Chain_Node *) the_thread; the_node->next = search_node; a000cd38: e5813000 str r3, [r1] the_node->previous = previous_node; a000cd3c: e5812004 str r2, [r1, #4] previous_node->next = the_node; a000cd40: e5821000 str r1, [r2] search_node->previous = the_node; a000cd44: e5831004 str r1, [r3, #4] a000cd48: ea000020 b a000cdd0 <_Thread_queue_Enqueue_priority+0x14c> the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; a000cd4c: e5da7000 ldrb r7, [sl] a000cd50: e2877001 add r7, r7, #1 uint32_t level; #if defined(ARM_MULTILIB_ARCH_V4) uint32_t arm_switch_reg; __asm__ volatile ( a000cd54: e10f4000 mrs r4, CPSR a000cd58: e3843080 orr r3, r4, #128 ; 0x80 a000cd5c: e129f003 msr CPSR_fc, r3 a000cd60: e1a06004 mov r6, r4 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Last( Chain_Control *the_chain ) { return _Chain_Tail( the_chain )->previous; a000cd64: e5953008 ldr r3, [r5, #8] _ISR_Disable( level ); search_thread = (Thread_Control *) _Chain_Last( header ); while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) { a000cd68: ea00000b b a000cd9c <_Thread_queue_Enqueue_priority+0x118> search_priority = search_thread->current_priority; a000cd6c: e5937014 ldr r7, [r3, #20] if ( priority >= search_priority ) a000cd70: e15c0007 cmp ip, r7 a000cd74: 2a00000a bcs a000cda4 <_Thread_queue_Enqueue_priority+0x120> static inline void arm_interrupt_flash( uint32_t level ) { #if defined(ARM_MULTILIB_ARCH_V4) uint32_t arm_switch_reg; __asm__ volatile ( a000cd78: e10f9000 mrs r9, CPSR <== NOT EXECUTED a000cd7c: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED a000cd80: e129f009 msr CPSR_fc, r9 <== NOT EXECUTED a000cd84: e5939010 ldr r9, [r3, #16] <== NOT EXECUTED search_priority = search_thread->current_priority; if ( priority >= search_priority ) break; #endif _ISR_Flash( level ); if ( !_States_Are_set( search_thread->current_state, block_state) ) { a000cd88: e1180009 tst r8, r9 <== NOT EXECUTED a000cd8c: 1a000001 bne a000cd98 <_Thread_queue_Enqueue_priority+0x114><== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { #if defined(ARM_MULTILIB_ARCH_V4) ARM_SWITCH_REGISTERS; __asm__ volatile ( a000cd90: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED a000cd94: eaffffec b a000cd4c <_Thread_queue_Enqueue_priority+0xc8> <== NOT EXECUTED _ISR_Enable( level ); goto restart_reverse_search; } search_thread = (Thread_Control *) a000cd98: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; _ISR_Disable( level ); search_thread = (Thread_Control *) _Chain_Last( header ); while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) { a000cd9c: e1530005 cmp r3, r5 a000cda0: 1afffff1 bne a000cd6c <_Thread_queue_Enqueue_priority+0xe8> } search_thread = (Thread_Control *) search_thread->Object.Node.previous; } if ( the_thread_queue->sync_state != a000cda4: e5905030 ldr r5, [r0, #48] ; 0x30 a000cda8: e3550001 cmp r5, #1 a000cdac: 1a000014 bne a000ce04 <_Thread_queue_Enqueue_priority+0x180> THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; a000cdb0: e3a02000 mov r2, #0 if ( priority == search_priority ) a000cdb4: e15c0007 cmp ip, r7 if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; a000cdb8: e5802030 str r2, [r0, #48] ; 0x30 if ( priority == search_priority ) a000cdbc: 0a000006 beq a000cddc <_Thread_queue_Enqueue_priority+0x158> goto equal_priority; search_node = (Chain_Node *) search_thread; next_node = search_node->next; a000cdc0: e5932000 ldr r2, [r3] the_node = (Chain_Node *) the_thread; the_node->next = next_node; the_node->previous = search_node; a000cdc4: e881000c stm r1, {r2, r3} search_node->next = the_node; a000cdc8: e5831000 str r1, [r3] next_node->previous = the_node; a000cdcc: e5821004 str r1, [r2, #4] the_thread->Wait.queue = the_thread_queue; a000cdd0: e5810044 str r0, [r1, #68] ; 0x44 a000cdd4: e129f004 msr CPSR_fc, r4 a000cdd8: ea000007 b a000cdfc <_Thread_queue_Enqueue_priority+0x178> _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; a000cddc: e5932040 ldr r2, [r3, #64] ; 0x40 <== NOT EXECUTED the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; equal_priority: /* add at end of priority group */ search_node = _Chain_Tail( &search_thread->Wait.Block2n ); a000cde0: e283c03c add ip, r3, #60 ; 0x3c <== NOT EXECUTED previous_node = search_node->previous; the_node = (Chain_Node *) the_thread; the_node->next = search_node; a000cde4: e581c000 str ip, [r1] <== NOT EXECUTED the_node->previous = previous_node; a000cde8: e5812004 str r2, [r1, #4] <== NOT EXECUTED previous_node->next = the_node; a000cdec: e5821000 str r1, [r2] <== NOT EXECUTED search_node->previous = the_node; a000cdf0: e5831040 str r1, [r3, #64] ; 0x40 <== NOT EXECUTED the_thread->Wait.queue = the_thread_queue; a000cdf4: e5810044 str r0, [r1, #68] ; 0x44 <== NOT EXECUTED a000cdf8: e129f006 msr CPSR_fc, r6 <== NOT EXECUTED _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; a000cdfc: e3a00001 mov r0, #1 a000ce00: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} * 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; a000ce04: e5826000 str r6, [r2] <== NOT EXECUTED return the_thread_queue->sync_state; a000ce08: e5900030 ldr r0, [r0, #48] ; 0x30 <== NOT EXECUTED } a000ce0c: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED =============================================================================== a000cbe4 <_Thread_queue_Enqueue_with_handler>: Thread_queue_Control *, Thread_Control *, ISR_Level * ); the_thread = _Thread_Executing; a000cbe4: e59f3088 ldr r3, [pc, #136] ; a000cc74 <_Thread_queue_Enqueue_with_handler+0x90> void _Thread_queue_Enqueue_with_handler( Thread_queue_Control *the_thread_queue, Watchdog_Interval timeout, Thread_queue_Timeout_callout handler ) { a000cbe8: e92d40f1 push {r0, r4, r5, r6, r7, lr} Thread_queue_Control *, Thread_Control *, ISR_Level * ); the_thread = _Thread_Executing; a000cbec: e5934008 ldr r4, [r3, #8] void _Thread_queue_Enqueue_with_handler( Thread_queue_Control *the_thread_queue, Watchdog_Interval timeout, Thread_queue_Timeout_callout handler ) { a000cbf0: e1a05000 mov r5, r0 a000cbf4: e1a06001 mov r6, r1 else #endif /* * Set the blocking state for this thread queue in the thread. */ _Thread_Set_state( the_thread, the_thread_queue->state ); a000cbf8: e1a00004 mov r0, r4 a000cbfc: e5951038 ldr r1, [r5, #56] ; 0x38 void _Thread_queue_Enqueue_with_handler( Thread_queue_Control *the_thread_queue, Watchdog_Interval timeout, Thread_queue_Timeout_callout handler ) { a000cc00: e1a07002 mov r7, r2 else #endif /* * Set the blocking state for this thread queue in the thread. */ _Thread_Set_state( the_thread, the_thread_queue->state ); a000cc04: eb0000dc bl a000cf7c <_Thread_Set_state> /* * If the thread wants to timeout, then schedule its timer. */ if ( timeout ) { a000cc08: e3560000 cmp r6, #0 a000cc0c: 0a000009 beq a000cc38 <_Thread_queue_Enqueue_with_handler+0x54> _Watchdog_Initialize( a000cc10: e5942008 ldr r2, [r4, #8] Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; a000cc14: e3a03000 mov r3, #0 a000cc18: e5843050 str r3, [r4, #80] ; 0x50 the_watchdog->routine = routine; a000cc1c: e5847064 str r7, [r4, #100] ; 0x64 the_watchdog->id = id; a000cc20: e5842068 str r2, [r4, #104] ; 0x68 the_watchdog->user_data = user_data; a000cc24: e584306c str r3, [r4, #108] ; 0x6c Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; a000cc28: e5846054 str r6, [r4, #84] ; 0x54 _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); a000cc2c: e59f0044 ldr r0, [pc, #68] ; a000cc78 <_Thread_queue_Enqueue_with_handler+0x94> a000cc30: e2841048 add r1, r4, #72 ; 0x48 a000cc34: eb0001a0 bl a000d2bc <_Watchdog_Insert> } /* * Now enqueue the thread per the discipline for this thread queue. */ if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) a000cc38: e5951034 ldr r1, [r5, #52] ; 0x34 enqueue_p = _Thread_queue_Enqueue_priority; a000cc3c: e59f2038 ldr r2, [pc, #56] ; a000cc7c <_Thread_queue_Enqueue_with_handler+0x98> a000cc40: e59f3038 ldr r3, [pc, #56] ; a000cc80 <_Thread_queue_Enqueue_with_handler+0x9c> a000cc44: e3510001 cmp r1, #1 a000cc48: 01a03002 moveq r3, r2 else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */ enqueue_p = _Thread_queue_Enqueue_fifo; sync_state = (*enqueue_p)( the_thread_queue, the_thread, &level ); a000cc4c: e1a00005 mov r0, r5 a000cc50: e1a01004 mov r1, r4 a000cc54: e1a0200d mov r2, sp a000cc58: e12fff33 blx r3 if ( sync_state != THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) a000cc5c: e3500001 cmp r0, #1 a000cc60: 0a000002 beq a000cc70 <_Thread_queue_Enqueue_with_handler+0x8c> _Thread_blocking_operation_Cancel( sync_state, the_thread, level ); a000cc64: e1a01004 mov r1, r4 <== NOT EXECUTED a000cc68: e59d2000 ldr r2, [sp] <== NOT EXECUTED a000cc6c: ebfffd91 bl a000c2b8 <_Thread_blocking_operation_Cancel> <== NOT EXECUTED } a000cc70: e8bd80f8 pop {r3, r4, r5, r6, r7, pc} =============================================================================== a0010afc <_Thread_queue_Extract_fifo>: void _Thread_queue_Extract_fifo( Thread_queue_Control *the_thread_queue __attribute__((unused)), Thread_Control *the_thread ) { a0010afc: e92d4010 push {r4, lr} a0010b00: e1a04001 mov r4, r1 uint32_t level; #if defined(ARM_MULTILIB_ARCH_V4) uint32_t arm_switch_reg; __asm__ volatile ( a0010b04: e10f3000 mrs r3, CPSR a0010b08: e3832080 orr r2, r3, #128 ; 0x80 a0010b0c: e129f002 msr CPSR_fc, r2 a0010b10: e59f2060 ldr r2, [pc, #96] ; a0010b78 <_Thread_queue_Extract_fifo+0x7c> a0010b14: e5911010 ldr r1, [r1, #16] a0010b18: e0012002 and r2, r1, r2 ISR_Level level; _ISR_Disable( level ); if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { a0010b1c: e3520000 cmp r2, #0 a0010b20: 1a000001 bne a0010b2c <_Thread_queue_Extract_fifo+0x30> static inline void arm_interrupt_enable( uint32_t level ) { #if defined(ARM_MULTILIB_ARCH_V4) ARM_SWITCH_REGISTERS; __asm__ volatile ( a0010b24: e129f003 msr CPSR_fc, r3 #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } a0010b28: e8bd8010 pop {r4, pc} { Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; a0010b2c: e8940006 ldm r4, {r1, r2} next->previous = previous; a0010b30: e5812004 str r2, [r1, #4] previous->next = next; a0010b34: e5821000 str r1, [r2] return; } _Chain_Extract_unprotected( &the_thread->Object.Node ); the_thread->Wait.queue = NULL; a0010b38: e3a02000 mov r2, #0 a0010b3c: e5842044 str r2, [r4, #68] ; 0x44 if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { a0010b40: e5942050 ldr r2, [r4, #80] ; 0x50 a0010b44: e3520002 cmp r2, #2 a0010b48: 0a000001 beq a0010b54 <_Thread_queue_Extract_fifo+0x58> a0010b4c: e129f003 msr CPSR_fc, r3 a0010b50: ea000004 b a0010b68 <_Thread_queue_Extract_fifo+0x6c> a0010b54: e3a02003 mov r2, #3 <== NOT EXECUTED a0010b58: e5842050 str r2, [r4, #80] ; 0x50 <== NOT EXECUTED a0010b5c: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED _ISR_Enable( level ); } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); (void) _Watchdog_Remove( &the_thread->Timer ); a0010b60: e2840048 add r0, r4, #72 ; 0x48 <== NOT EXECUTED a0010b64: ebfff22b bl a000d418 <_Watchdog_Remove> <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); a0010b68: e59f100c ldr r1, [pc, #12] ; a0010b7c <_Thread_queue_Extract_fifo+0x80> a0010b6c: e1a00004 mov r0, r4 #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } a0010b70: e8bd4010 pop {r4, lr} a0010b74: eaffee1e b a000c3f4 <_Thread_Clear_state> =============================================================================== a000f744 <_Thread_queue_Extract_priority_helper>: void _Thread_queue_Extract_priority_helper( Thread_queue_Control *the_thread_queue __attribute__((unused)), Thread_Control *the_thread, bool requeuing ) { a000f744: e92d4070 push {r4, r5, r6, lr} a000f748: e20220ff and r2, r2, #255 ; 0xff a000f74c: e1a04001 mov r4, r1 uint32_t level; #if defined(ARM_MULTILIB_ARCH_V4) uint32_t arm_switch_reg; __asm__ volatile ( a000f750: e10f1000 mrs r1, CPSR a000f754: e3813080 orr r3, r1, #128 ; 0x80 a000f758: e129f003 msr CPSR_fc, r3 */ RTEMS_INLINE_ROUTINE bool _States_Is_waiting_on_thread_queue ( States_Control the_states ) { return (the_states & STATES_WAITING_ON_THREAD_QUEUE); a000f75c: e59f30ac ldr r3, [pc, #172] ; a000f810 <_Thread_queue_Extract_priority_helper+0xcc> a000f760: e5940010 ldr r0, [r4, #16] a000f764: e0003003 and r3, r0, r3 Chain_Node *new_second_node; Chain_Node *last_node; the_node = (Chain_Node *) the_thread; _ISR_Disable( level ); if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { a000f768: e3530000 cmp r3, #0 a000f76c: 0a000017 beq a000f7d0 <_Thread_queue_Extract_priority_helper+0x8c> */ RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first( const Chain_Control *the_chain ) { return _Chain_Immutable_head( the_chain )->next; a000f770: e5943038 ldr r3, [r4, #56] ; 0x38 RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( const Chain_Control *the_chain ) { return _Chain_Immutable_first( the_chain ) == _Chain_Immutable_tail( the_chain ); a000f774: e284503c add r5, r4, #60 ; 0x3c /* * The thread was actually waiting on a thread queue so let's remove it. */ next_node = the_node->next; previous_node = the_node->previous; a000f778: e8941001 ldm r4, {r0, ip} if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) { a000f77c: e1530005 cmp r3, r5 head->next = new_second_node; tail->previous = last_node; last_node->next = tail; } } else { previous_node->next = next_node; a000f780: 058c0000 streq r0, [ip] next_node->previous = previous_node; a000f784: 0580c004 streq ip, [r0, #4] */ next_node = the_node->next; previous_node = the_node->previous; if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) { a000f788: 0a00000e beq a000f7c8 <_Thread_queue_Extract_priority_helper+0x84> */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Last( Chain_Control *the_chain ) { return _Chain_Tail( the_chain )->previous; a000f78c: e5945040 ldr r5, [r4, #64] ; 0x40 <== NOT EXECUTED new_first_node = _Chain_First( &the_thread->Wait.Block2n ); new_first_thread = (Thread_Control *) new_first_node; last_node = _Chain_Last( &the_thread->Wait.Block2n ); new_second_node = new_first_node->next; a000f790: e5936000 ldr r6, [r3] <== NOT EXECUTED previous_node->next = new_first_node; next_node->previous = new_first_node; a000f794: e5803004 str r3, [r0, #4] <== NOT EXECUTED new_first_node = _Chain_First( &the_thread->Wait.Block2n ); new_first_thread = (Thread_Control *) new_first_node; last_node = _Chain_Last( &the_thread->Wait.Block2n ); new_second_node = new_first_node->next; previous_node->next = new_first_node; a000f798: e58c3000 str r3, [ip] <== NOT EXECUTED next_node->previous = new_first_node; new_first_node->next = next_node; new_first_node->previous = previous_node; a000f79c: e8831001 stm r3, {r0, ip} <== NOT EXECUTED if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) { a000f7a0: e594c038 ldr ip, [r4, #56] ; 0x38 <== NOT EXECUTED a000f7a4: e5940040 ldr r0, [r4, #64] ; 0x40 <== NOT EXECUTED a000f7a8: e15c0000 cmp ip, r0 <== NOT EXECUTED a000f7ac: 0a000005 beq a000f7c8 <_Thread_queue_Extract_priority_helper+0x84><== NOT EXECUTED /* > two threads on 2-n */ head = _Chain_Head( &new_first_thread->Wait.Block2n ); a000f7b0: e2830038 add r0, r3, #56 ; 0x38 <== NOT EXECUTED tail = _Chain_Tail( &new_first_thread->Wait.Block2n ); new_second_node->previous = head; head->next = new_second_node; a000f7b4: e5836038 str r6, [r3, #56] ; 0x38 <== NOT EXECUTED if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) { /* > two threads on 2-n */ head = _Chain_Head( &new_first_thread->Wait.Block2n ); tail = _Chain_Tail( &new_first_thread->Wait.Block2n ); new_second_node->previous = head; a000f7b8: e5860004 str r0, [r6, #4] <== NOT EXECUTED head->next = new_second_node; tail->previous = last_node; a000f7bc: e5835040 str r5, [r3, #64] ; 0x40 <== NOT EXECUTED new_first_node->previous = previous_node; if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) { /* > two threads on 2-n */ head = _Chain_Head( &new_first_thread->Wait.Block2n ); tail = _Chain_Tail( &new_first_thread->Wait.Block2n ); a000f7c0: e283303c add r3, r3, #60 ; 0x3c <== NOT EXECUTED new_second_node->previous = head; head->next = new_second_node; tail->previous = last_node; last_node->next = tail; a000f7c4: e5853000 str r3, [r5] <== NOT EXECUTED /* * If we are not supposed to touch timers or the thread's state, return. */ if ( requeuing ) { a000f7c8: e3520000 cmp r2, #0 a000f7cc: 0a000001 beq a000f7d8 <_Thread_queue_Extract_priority_helper+0x94> static inline void arm_interrupt_enable( uint32_t level ) { #if defined(ARM_MULTILIB_ARCH_V4) ARM_SWITCH_REGISTERS; __asm__ volatile ( a000f7d0: e129f001 msr CPSR_fc, r1 a000f7d4: e8bd8070 pop {r4, r5, r6, pc} _ISR_Enable( level ); return; } if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { a000f7d8: e5943050 ldr r3, [r4, #80] ; 0x50 <== NOT EXECUTED a000f7dc: e3530002 cmp r3, #2 <== NOT EXECUTED a000f7e0: 0a000001 beq a000f7ec <_Thread_queue_Extract_priority_helper+0xa8><== NOT EXECUTED a000f7e4: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED a000f7e8: ea000004 b a000f800 <_Thread_queue_Extract_priority_helper+0xbc><== NOT EXECUTED a000f7ec: e3a03003 mov r3, #3 <== NOT EXECUTED a000f7f0: e5843050 str r3, [r4, #80] ; 0x50 <== NOT EXECUTED a000f7f4: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED _ISR_Enable( level ); } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); (void) _Watchdog_Remove( &the_thread->Timer ); a000f7f8: e2840048 add r0, r4, #72 ; 0x48 <== NOT EXECUTED a000f7fc: ebfff705 bl a000d418 <_Watchdog_Remove> <== NOT EXECUTED a000f800: e59f100c ldr r1, [pc, #12] ; a000f814 <_Thread_queue_Extract_priority_helper+0xd0><== NOT EXECUTED a000f804: e1a00004 mov r0, r4 <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } a000f808: e8bd4070 pop {r4, r5, r6, lr} <== NOT EXECUTED a000f80c: eafff2f8 b a000c3f4 <_Thread_Clear_state> <== NOT EXECUTED =============================================================================== a001f478 <_Thread_queue_First_priority>: Thread_queue_Control *the_thread_queue ) { uint32_t index; for( index=0 ; a001f478: e3a03000 mov r3, #0 <== NOT EXECUTED index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ; index++ ) { if ( !_Chain_Is_empty( &the_thread_queue->Queues.Priority[ index ] ) ) a001f47c: e3a0100c mov r1, #12 <== NOT EXECUTED a001f480: e0020391 mul r2, r1, r3 <== NOT EXECUTED a001f484: e080c002 add ip, r0, r2 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first( const Chain_Control *the_chain ) { return _Chain_Immutable_head( the_chain )->next; a001f488: e7902002 ldr r2, [r0, r2] <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( const Chain_Control *the_chain ) { return _Chain_Immutable_first( the_chain ) == _Chain_Immutable_tail( the_chain ); a001f48c: e28cc004 add ip, ip, #4 <== NOT EXECUTED a001f490: e152000c cmp r2, ip <== NOT EXECUTED a001f494: 1a000003 bne a001f4a8 <_Thread_queue_First_priority+0x30> <== NOT EXECUTED { uint32_t index; for( index=0 ; index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ; index++ ) { a001f498: e2833001 add r3, r3, #1 <== NOT EXECUTED Thread_queue_Control *the_thread_queue ) { uint32_t index; for( index=0 ; a001f49c: e3530004 cmp r3, #4 <== NOT EXECUTED a001f4a0: 1afffff6 bne a001f480 <_Thread_queue_First_priority+0x8> <== NOT EXECUTED if ( !_Chain_Is_empty( &the_thread_queue->Queues.Priority[ index ] ) ) return (Thread_Control *) _Chain_First( &the_thread_queue->Queues.Priority[ index ] ); } return NULL; a001f4a4: e3a02000 mov r2, #0 <== NOT EXECUTED } a001f4a8: e1a00002 mov r0, r2 <== NOT EXECUTED a001f4ac: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000f818 <_Thread_queue_Process_timeout>: #include void _Thread_queue_Process_timeout( Thread_Control *the_thread ) { a000f818: e1a01000 mov r1, r0 <== NOT EXECUTED Thread_queue_Control *the_thread_queue = the_thread->Wait.queue; a000f81c: e5900044 ldr r0, [r0, #68] ; 0x44 <== 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 && a000f820: e5903030 ldr r3, [r0, #48] ; 0x30 <== NOT EXECUTED a000f824: e3530000 cmp r3, #0 <== NOT EXECUTED a000f828: 0a000009 beq a000f854 <_Thread_queue_Process_timeout+0x3c> <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool _Thread_Is_executing ( const Thread_Control *the_thread ) { return ( the_thread == _Thread_Executing ); a000f82c: e59f202c ldr r2, [pc, #44] ; a000f860 <_Thread_queue_Process_timeout+0x48><== NOT EXECUTED a000f830: e5922008 ldr r2, [r2, #8] <== NOT EXECUTED a000f834: e1510002 cmp r1, r2 <== NOT EXECUTED a000f838: 1a000005 bne a000f854 <_Thread_queue_Process_timeout+0x3c> <== NOT EXECUTED _Thread_Is_executing( the_thread ) ) { if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_SATISFIED ) { a000f83c: e3530003 cmp r3, #3 <== NOT EXECUTED the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status; a000f840: 1590303c ldrne r3, [r0, #60] ; 0x3c <== NOT EXECUTED a000f844: 15813034 strne r3, [r1, #52] ; 0x34 <== NOT EXECUTED the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT; a000f848: 13a03002 movne r3, #2 <== NOT EXECUTED a000f84c: 15803030 strne r3, [r0, #48] ; 0x30 <== NOT EXECUTED a000f850: e12fff1e bx lr <== NOT EXECUTED } } else { the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status; a000f854: e590303c ldr r3, [r0, #60] ; 0x3c <== NOT EXECUTED a000f858: e5813034 str r3, [r1, #52] ; 0x34 <== NOT EXECUTED _Thread_queue_Extract( the_thread->Wait.queue, the_thread ); a000f85c: eaffffb2 b a000f72c <_Thread_queue_Extract> <== NOT EXECUTED =============================================================================== a000cf2c <_Thread_queue_Timeout>: void _Thread_queue_Timeout( Objects_Id id, void *ignored __attribute__((unused)) ) { a000cf2c: e92d4001 push {r0, lr} <== NOT EXECUTED Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); a000cf30: e1a0100d mov r1, sp <== NOT EXECUTED a000cf34: ebfffe13 bl a000c788 <_Thread_Get> <== NOT EXECUTED switch ( location ) { a000cf38: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000cf3c: e3530000 cmp r3, #0 <== NOT EXECUTED a000cf40: 1a000004 bne a000cf58 <_Thread_queue_Timeout+0x2c> <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) case OBJECTS_REMOTE: /* impossible */ #endif break; case OBJECTS_LOCAL: _Thread_queue_Process_timeout( the_thread ); a000cf44: eb000a33 bl a000f818 <_Thread_queue_Process_timeout> <== NOT EXECUTED * * This routine decrements the thread dispatch level. */ RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_decrement_disable_level(void) { uint32_t level = _Thread_Dispatch_disable_level; a000cf48: e59f300c ldr r3, [pc, #12] ; a000cf5c <_Thread_queue_Timeout+0x30><== NOT EXECUTED a000cf4c: e5932000 ldr r2, [r3] <== NOT EXECUTED --level; a000cf50: e2422001 sub r2, r2, #1 <== NOT EXECUTED _Thread_Dispatch_disable_level = level; a000cf54: e5832000 str r2, [r3] <== NOT EXECUTED _Thread_Unnest_dispatch(); break; } } a000cf58: e8bd8008 pop {r3, pc} <== NOT EXECUTED =============================================================================== a0019124 <_Timer_server_Body>: * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) { a0019124: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} a0019128: e24dd01c sub sp, sp, #28 ) { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); head->next = tail; a001912c: e28d8004 add r8, sp, #4 a0019130: e28d5010 add r5, sp, #16 head->previous = NULL; a0019134: e3a03000 mov r3, #0 ) { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); head->next = tail; a0019138: e2889004 add r9, r8, #4 a001913c: e2856004 add r6, r5, #4 a0019140: e1a04000 mov r4, r0 a0019144: e58d9004 str r9, [sp, #4] head->previous = NULL; a0019148: e58d3008 str r3, [sp, #8] tail->previous = head; a001914c: e58d800c str r8, [sp, #12] ) { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); head->next = tail; a0019150: e58d6010 str r6, [sp, #16] head->previous = NULL; a0019154: e58d3014 str r3, [sp, #20] tail->previous = head; a0019158: e58d5018 str r5, [sp, #24] static void _Timer_server_Process_interval_watchdogs( Timer_server_Watchdogs *watchdogs, Chain_Control *fire_chain ) { Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot; a001915c: e59f717c ldr r7, [pc, #380] ; a00192e0 <_Timer_server_Body+0x1bc> { /* * 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; a0019160: e5848078 str r8, [r4, #120] ; 0x78 static void _Timer_server_Process_interval_watchdogs( Timer_server_Watchdogs *watchdogs, Chain_Control *fire_chain ) { Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot; a0019164: e5973000 ldr r3, [r7] /* * We assume adequate unsigned arithmetic here. */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; a0019168: e594103c ldr r1, [r4, #60] ; 0x3c watchdogs->last_snapshot = snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); a001916c: e2840030 add r0, r4, #48 ; 0x30 /* * We assume adequate unsigned arithmetic here. */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; watchdogs->last_snapshot = snapshot; a0019170: e584303c str r3, [r4, #60] ; 0x3c _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); a0019174: e0611003 rsb r1, r1, r3 a0019178: e1a02005 mov r2, r5 a001917c: eb00108c bl a001d3b4 <_Watchdog_Adjust_to_chain> a0019180: e59f315c ldr r3, [pc, #348] ; a00192e4 <_Timer_server_Body+0x1c0> a0019184: e59f215c ldr r2, [pc, #348] ; a00192e8 <_Timer_server_Body+0x1c4> a0019188: e8930003 ldm r3, {r0, r1} a001918c: e3a03000 mov r3, #0 a0019190: eb004b63 bl a002bf24 <__divdi3> Timer_server_Watchdogs *watchdogs, Chain_Control *fire_chain ) { Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); Watchdog_Interval last_snapshot = watchdogs->last_snapshot; a0019194: e5942074 ldr r2, [r4, #116] ; 0x74 a0019198: e1a0a000 mov sl, r0 /* * 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 ) { a001919c: e1500002 cmp r0, r2 a00191a0: 9a000004 bls a00191b8 <_Timer_server_Body+0x94> /* * 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 ); a00191a4: e062100a rsb r1, r2, sl a00191a8: e2840068 add r0, r4, #104 ; 0x68 a00191ac: e1a02005 mov r2, r5 a00191b0: eb00107f bl a001d3b4 <_Watchdog_Adjust_to_chain> a00191b4: ea000004 b a00191cc <_Timer_server_Body+0xa8> } else if ( snapshot < last_snapshot ) { a00191b8: 2a000003 bcs a00191cc <_Timer_server_Body+0xa8> /* * 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 ); a00191bc: e2840068 add r0, r4, #104 ; 0x68 <== NOT EXECUTED a00191c0: e3a01001 mov r1, #1 <== NOT EXECUTED a00191c4: e06a2002 rsb r2, sl, r2 <== NOT EXECUTED a00191c8: eb001051 bl a001d314 <_Watchdog_Adjust> <== NOT EXECUTED } watchdogs->last_snapshot = snapshot; a00191cc: e584a074 str sl, [r4, #116] ; 0x74 ) { 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 ); a00191d0: e284b068 add fp, r4, #104 ; 0x68 Timer_server_Control *ts, Timer_Control *timer ) { if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) { _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker ); a00191d4: e284a030 add sl, r4, #48 ; 0x30 } static void _Timer_server_Process_insertions( Timer_server_Control *ts ) { while ( true ) { Timer_Control *timer = (Timer_Control *) _Chain_Get( ts->insert_chain ); a00191d8: e5940078 ldr r0, [r4, #120] ; 0x78 a00191dc: eb0002ac bl a0019c94 <_Chain_Get> if ( timer == NULL ) { a00191e0: e2501000 subs r1, r0, #0 a00191e4: 0a000009 beq a0019210 <_Timer_server_Body+0xec> static void _Timer_server_Insert_timer( Timer_server_Control *ts, Timer_Control *timer ) { if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) { a00191e8: e5913038 ldr r3, [r1, #56] ; 0x38 <== NOT EXECUTED a00191ec: e3530001 cmp r3, #1 <== NOT EXECUTED _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker ); a00191f0: 01a0000a moveq r0, sl <== NOT EXECUTED static void _Timer_server_Insert_timer( Timer_server_Control *ts, Timer_Control *timer ) { if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) { a00191f4: 0a000002 beq a0019204 <_Timer_server_Body+0xe0> <== NOT EXECUTED _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker ); } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) { a00191f8: e3530003 cmp r3, #3 <== NOT EXECUTED a00191fc: 1afffff5 bne a00191d8 <_Timer_server_Body+0xb4> <== NOT EXECUTED _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker ); a0019200: e1a0000b mov r0, fp <== NOT EXECUTED a0019204: e2811010 add r1, r1, #16 <== NOT EXECUTED a0019208: eb00108e bl a001d448 <_Watchdog_Insert> <== NOT EXECUTED a001920c: eafffff1 b a00191d8 <_Timer_server_Body+0xb4> <== 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 ); a0019210: e58d1000 str r1, [sp] a0019214: ebffff96 bl a0019074 if ( _Chain_Is_empty( insert_chain ) ) { a0019218: e59d3004 ldr r3, [sp, #4] a001921c: e59d1000 ldr r1, [sp] a0019220: e1530009 cmp r3, r9 a0019224: 1a000006 bne a0019244 <_Timer_server_Body+0x120> ts->insert_chain = NULL; a0019228: e5841078 str r1, [r4, #120] ; 0x78 a001922c: e129f000 msr CPSR_fc, r0 _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 ) ) { a0019230: e59d3010 ldr r3, [sp, #16] a0019234: e1530006 cmp r3, r6 * service routine may remove a watchdog from the chain. */ _ISR_Disable( level ); watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain ); if ( watchdog != NULL ) { watchdog->state = WATCHDOG_INACTIVE; a0019238: 13a07000 movne r7, #0 _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 ) ) { a001923c: 1a000002 bne a001924c <_Timer_server_Body+0x128> a0019240: ea000011 b a001928c <_Timer_server_Body+0x168> a0019244: e129f000 msr CPSR_fc, r0 <== NOT EXECUTED a0019248: eaffffc5 b a0019164 <_Timer_server_Body+0x40> <== 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 ); a001924c: ebffff88 bl a0019074 */ RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first( const Chain_Control *the_chain ) { return _Chain_Immutable_head( the_chain )->next; a0019250: e59d2010 ldr r2, [sp, #16] */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected( Chain_Control *the_chain ) { if ( !_Chain_Is_empty(the_chain)) a0019254: e1520006 cmp r2, r6 a0019258: 0a000009 beq a0019284 <_Timer_server_Body+0x160> Chain_Control *the_chain ) { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *old_first = head->next; Chain_Node *new_first = old_first->next; a001925c: e5923000 ldr r3, [r2] head->next = new_first; new_first->previous = head; a0019260: e5835004 str r5, [r3, #4] { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *old_first = head->next; Chain_Node *new_first = old_first->next; head->next = new_first; a0019264: e58d3010 str r3, [sp, #16] watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain ); if ( watchdog != NULL ) { watchdog->state = WATCHDOG_INACTIVE; a0019268: e5827008 str r7, [r2, #8] a001926c: e129f000 msr CPSR_fc, r0 /* * 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 ); a0019270: e592301c ldr r3, [r2, #28] a0019274: e5920020 ldr r0, [r2, #32] a0019278: e5921024 ldr r1, [r2, #36] ; 0x24 a001927c: e12fff33 blx r3 } a0019280: eafffff1 b a001924c <_Timer_server_Body+0x128> a0019284: e129f000 msr CPSR_fc, r0 a0019288: eaffffb3 b a001915c <_Timer_server_Body+0x38> } else { ts->active = false; a001928c: e3a03000 mov r3, #0 a0019290: e5c4307c strb r3, [r4, #124] ; 0x7c * * This rountine increments the thread dispatch level */ RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void) { uint32_t level = _Thread_Dispatch_disable_level; a0019294: e59f3050 ldr r3, [pc, #80] ; a00192ec <_Timer_server_Body+0x1c8> a0019298: e5932000 ldr r2, [r3] ++level; a001929c: e2822001 add r2, r2, #1 _Thread_Dispatch_disable_level = level; a00192a0: e5832000 str r2, [r3] /* * Block until there is something to do. */ _Thread_Disable_dispatch(); _Thread_Set_state( ts->thread, STATES_DELAYING ); a00192a4: e3a01008 mov r1, #8 a00192a8: e5940000 ldr r0, [r4] a00192ac: eb000f48 bl a001cfd4 <_Thread_Set_state> _Timer_server_Reset_interval_system_watchdog( ts ); a00192b0: e1a00004 mov r0, r4 a00192b4: ebffff72 bl a0019084 <_Timer_server_Reset_interval_system_watchdog> _Timer_server_Reset_tod_system_watchdog( ts ); a00192b8: e1a00004 mov r0, r4 a00192bc: ebffff84 bl a00190d4 <_Timer_server_Reset_tod_system_watchdog> _Thread_Enable_dispatch(); a00192c0: eb000d1f bl a001c744 <_Thread_Enable_dispatch> ts->active = true; a00192c4: e3a03001 mov r3, #1 a00192c8: e5c4307c strb r3, [r4, #124] ; 0x7c static void _Timer_server_Stop_interval_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog ); a00192cc: e2840008 add r0, r4, #8 a00192d0: eb0010b3 bl a001d5a4 <_Watchdog_Remove> static void _Timer_server_Stop_tod_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog ); a00192d4: e2840040 add r0, r4, #64 ; 0x40 a00192d8: eb0010b1 bl a001d5a4 <_Watchdog_Remove> a00192dc: eaffff9e b a001915c <_Timer_server_Body+0x38> =============================================================================== a00192f0 <_Timer_server_Schedule_operation_method>: static void _Timer_server_Schedule_operation_method( Timer_server_Control *ts, Timer_Control *timer ) { a00192f0: e92d40f0 push {r4, r5, r6, r7, lr} if ( ts->insert_chain == NULL ) { a00192f4: e5906078 ldr r6, [r0, #120] ; 0x78 static void _Timer_server_Schedule_operation_method( Timer_server_Control *ts, Timer_Control *timer ) { a00192f8: e1a04000 mov r4, r0 a00192fc: e1a05001 mov r5, r1 if ( ts->insert_chain == NULL ) { a0019300: e3560000 cmp r6, #0 a0019304: 1a000041 bne a0019410 <_Timer_server_Schedule_operation_method+0x120> * * This rountine increments the thread dispatch level */ RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void) { uint32_t level = _Thread_Dispatch_disable_level; a0019308: e59f310c ldr r3, [pc, #268] ; a001941c <_Timer_server_Schedule_operation_method+0x12c> a001930c: e5932000 ldr r2, [r3] ++level; a0019310: e2822001 add r2, r2, #1 _Thread_Dispatch_disable_level = level; a0019314: e5832000 str r2, [r3] * being inserted. This could result in an integer overflow. */ _Thread_Disable_dispatch(); if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) { a0019318: e5913038 ldr r3, [r1, #56] ; 0x38 a001931c: e3530001 cmp r3, #1 a0019320: 1a000017 bne a0019384 <_Timer_server_Schedule_operation_method+0x94> /* * We have to advance the last known ticks value of the server and update * the watchdog chain accordingly. */ _ISR_Disable( level ); a0019324: ebffff52 bl a0019074 snapshot = _Watchdog_Ticks_since_boot; a0019328: e59f30f0 ldr r3, [pc, #240] ; a0019420 <_Timer_server_Schedule_operation_method+0x130> RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( const Chain_Control *the_chain ) { return _Chain_Immutable_first( the_chain ) == _Chain_Immutable_tail( the_chain ); a001932c: e284c034 add ip, r4, #52 ; 0x34 a0019330: e5932000 ldr r2, [r3] */ RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first( const Chain_Control *the_chain ) { return _Chain_Immutable_head( the_chain )->next; a0019334: e5943030 ldr r3, [r4, #48] ; 0x30 last_snapshot = ts->Interval_watchdogs.last_snapshot; a0019338: e594103c ldr r1, [r4, #60] ; 0x3c if ( !_Chain_Is_empty( &ts->Interval_watchdogs.Chain ) ) { a001933c: e153000c cmp r3, ip a0019340: 0a000004 beq a0019358 <_Timer_server_Schedule_operation_method+0x68> /* * We assume adequate unsigned arithmetic here. */ delta = snapshot - last_snapshot; delta_interval = first_watchdog->delta_interval; a0019344: e593c010 ldr ip, [r3, #16] first_watchdog = _Watchdog_First( &ts->Interval_watchdogs.Chain ); /* * We assume adequate unsigned arithmetic here. */ delta = snapshot - last_snapshot; a0019348: e0611002 rsb r1, r1, r2 delta_interval = first_watchdog->delta_interval; if (delta_interval > delta) { a001934c: e15c0001 cmp ip, r1 delta_interval -= delta; a0019350: 8061600c rsbhi r6, r1, ip } else { delta_interval = 0; } first_watchdog->delta_interval = delta_interval; a0019354: e5836010 str r6, [r3, #16] } ts->Interval_watchdogs.last_snapshot = snapshot; a0019358: e584203c str r2, [r4, #60] ; 0x3c a001935c: e129f000 msr CPSR_fc, r0 _ISR_Enable( level ); _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker ); a0019360: e2840030 add r0, r4, #48 ; 0x30 a0019364: e2851010 add r1, r5, #16 a0019368: eb001036 bl a001d448 <_Watchdog_Insert> if ( !ts->active ) { a001936c: e5d4307c ldrb r3, [r4, #124] ; 0x7c a0019370: e3530000 cmp r3, #0 a0019374: 1a000023 bne a0019408 <_Timer_server_Schedule_operation_method+0x118> _Timer_server_Reset_interval_system_watchdog( ts ); a0019378: e1a00004 mov r0, r4 a001937c: ebffff40 bl a0019084 <_Timer_server_Reset_interval_system_watchdog> a0019380: ea000020 b a0019408 <_Timer_server_Schedule_operation_method+0x118> } } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) { a0019384: e3530003 cmp r3, #3 a0019388: 1a00001e bne a0019408 <_Timer_server_Schedule_operation_method+0x118> /* * We have to advance the last known seconds value of the server and update * the watchdog chain accordingly. */ _ISR_Disable( level ); a001938c: ebffff38 bl a0019074 a0019390: e1a07000 mov r7, r0 a0019394: e59f3088 ldr r3, [pc, #136] ; a0019424 <_Timer_server_Schedule_operation_method+0x134> a0019398: e59f2088 ldr r2, [pc, #136] ; a0019428 <_Timer_server_Schedule_operation_method+0x138> a001939c: e8930003 ldm r3, {r0, r1} a00193a0: e3a03000 mov r3, #0 a00193a4: eb004ade bl a002bf24 <__divdi3> a00193a8: e5943068 ldr r3, [r4, #104] ; 0x68 RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( const Chain_Control *the_chain ) { return _Chain_Immutable_first( the_chain ) == _Chain_Immutable_tail( the_chain ); a00193ac: e284106c add r1, r4, #108 ; 0x6c snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); last_snapshot = ts->TOD_watchdogs.last_snapshot; a00193b0: e5942074 ldr r2, [r4, #116] ; 0x74 if ( !_Chain_Is_empty( &ts->TOD_watchdogs.Chain ) ) { a00193b4: e1530001 cmp r3, r1 a00193b8: 0a000008 beq a00193e0 <_Timer_server_Schedule_operation_method+0xf0> first_watchdog = _Watchdog_First( &ts->TOD_watchdogs.Chain ); delta_interval = first_watchdog->delta_interval; a00193bc: e5931010 ldr r1, [r3, #16] <== NOT EXECUTED if ( snapshot > last_snapshot ) { a00193c0: e1500002 cmp r0, r2 <== NOT EXECUTED } } else { /* * Someone put us in the past. */ delta = last_snapshot - snapshot; a00193c4: 90816002 addls r6, r1, r2 <== NOT EXECUTED delta_interval += delta; a00193c8: 90606006 rsbls r6, r0, r6 <== NOT EXECUTED snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); last_snapshot = ts->TOD_watchdogs.last_snapshot; if ( !_Chain_Is_empty( &ts->TOD_watchdogs.Chain ) ) { first_watchdog = _Watchdog_First( &ts->TOD_watchdogs.Chain ); delta_interval = first_watchdog->delta_interval; if ( snapshot > last_snapshot ) { a00193cc: 9a000002 bls a00193dc <_Timer_server_Schedule_operation_method+0xec><== NOT EXECUTED /* * We advanced in time. */ delta = snapshot - last_snapshot; a00193d0: e0622000 rsb r2, r2, r0 <== NOT EXECUTED if (delta_interval > delta) { a00193d4: e1510002 cmp r1, r2 <== NOT EXECUTED delta_interval -= delta; a00193d8: 80626001 rsbhi r6, r2, r1 <== NOT EXECUTED * Someone put us in the past. */ delta = last_snapshot - snapshot; delta_interval += delta; } first_watchdog->delta_interval = delta_interval; a00193dc: e5836010 str r6, [r3, #16] <== NOT EXECUTED } ts->TOD_watchdogs.last_snapshot = snapshot; a00193e0: e5840074 str r0, [r4, #116] ; 0x74 a00193e4: e129f007 msr CPSR_fc, r7 _ISR_Enable( level ); _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker ); a00193e8: e2840068 add r0, r4, #104 ; 0x68 a00193ec: e2851010 add r1, r5, #16 a00193f0: eb001014 bl a001d448 <_Watchdog_Insert> if ( !ts->active ) { a00193f4: e5d4307c ldrb r3, [r4, #124] ; 0x7c a00193f8: e3530000 cmp r3, #0 a00193fc: 1a000001 bne a0019408 <_Timer_server_Schedule_operation_method+0x118> _Timer_server_Reset_tod_system_watchdog( ts ); a0019400: e1a00004 mov r0, r4 a0019404: ebffff32 bl a00190d4 <_Timer_server_Reset_tod_system_watchdog> * 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 ); } } a0019408: e8bd40f0 pop {r4, r5, r6, r7, lr} if ( !ts->active ) { _Timer_server_Reset_tod_system_watchdog( ts ); } } _Thread_Enable_dispatch(); a001940c: ea000ccc b a001c744 <_Thread_Enable_dispatch> * 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 ); a0019410: e5900078 ldr r0, [r0, #120] ; 0x78 <== NOT EXECUTED } } a0019414: e8bd40f0 pop {r4, r5, r6, r7, lr} <== 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 ); a0019418: ea000212 b a0019c68 <_Chain_Append> <== NOT EXECUTED =============================================================================== a00287d0 <_Timespec_From_ticks>: struct timespec *time ) { uint32_t usecs; usecs = ticks * rtems_configuration_get_microseconds_per_tick(); a00287d0: e59f3038 ldr r3, [pc, #56] ; a0028810 <_Timespec_From_ticks+0x40><== NOT EXECUTED void _Timespec_From_ticks( uint32_t ticks, struct timespec *time ) { a00287d4: e92d4030 push {r4, r5, lr} <== NOT EXECUTED uint32_t usecs; usecs = ticks * rtems_configuration_get_microseconds_per_tick(); a00287d8: e593500c ldr r5, [r3, #12] <== NOT EXECUTED void _Timespec_From_ticks( uint32_t ticks, struct timespec *time ) { a00287dc: e1a04001 mov r4, r1 <== NOT EXECUTED uint32_t usecs; usecs = ticks * rtems_configuration_get_microseconds_per_tick(); time->tv_sec = usecs / TOD_MICROSECONDS_PER_SECOND; a00287e0: e59f102c ldr r1, [pc, #44] ; a0028814 <_Timespec_From_ticks+0x44><== NOT EXECUTED struct timespec *time ) { uint32_t usecs; usecs = ticks * rtems_configuration_get_microseconds_per_tick(); a00287e4: e0050590 mul r5, r0, r5 <== NOT EXECUTED time->tv_sec = usecs / TOD_MICROSECONDS_PER_SECOND; a00287e8: e1a00005 mov r0, r5 <== NOT EXECUTED a00287ec: ebff7150 bl a0004d34 <__aeabi_uidiv> <== NOT EXECUTED time->tv_nsec = (usecs % TOD_MICROSECONDS_PER_SECOND) * a00287f0: e59f101c ldr r1, [pc, #28] ; a0028814 <_Timespec_From_ticks+0x44><== NOT EXECUTED { uint32_t usecs; usecs = ticks * rtems_configuration_get_microseconds_per_tick(); time->tv_sec = usecs / TOD_MICROSECONDS_PER_SECOND; a00287f4: e5840000 str r0, [r4] <== NOT EXECUTED time->tv_nsec = (usecs % TOD_MICROSECONDS_PER_SECOND) * a00287f8: e1a00005 mov r0, r5 <== NOT EXECUTED a00287fc: ebfff75a bl a002656c <__umodsi3> <== NOT EXECUTED a0028800: e3a03ffa mov r3, #1000 ; 0x3e8 <== NOT EXECUTED a0028804: e0030390 mul r3, r0, r3 <== NOT EXECUTED a0028808: e5843004 str r3, [r4, #4] <== NOT EXECUTED TOD_NANOSECONDS_PER_MICROSECOND; } a002880c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED =============================================================================== a000df34 <_Timespec_Subtract>: const struct timespec *end, struct timespec *result ) { if (end->tv_nsec < start->tv_nsec) { a000df34: e591c004 ldr ip, [r1, #4] <== NOT EXECUTED a000df38: e5903004 ldr r3, [r0, #4] <== NOT EXECUTED void _Timespec_Subtract( const struct timespec *start, const struct timespec *end, struct timespec *result ) { a000df3c: e92d4010 push {r4, lr} <== NOT EXECUTED a000df40: e5914000 ldr r4, [r1] <== NOT EXECUTED a000df44: e5901000 ldr r1, [r0] <== NOT EXECUTED if (end->tv_nsec < start->tv_nsec) { a000df48: e15c0003 cmp ip, r3 <== NOT EXECUTED 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; a000df4c: a063300c rsbge r3, r3, ip <== NOT EXECUTED struct timespec *result ) { if (end->tv_nsec < start->tv_nsec) { result->tv_sec = end->tv_sec - start->tv_sec - 1; a000df50: e0611004 rsb r1, r1, r4 <== NOT EXECUTED a000df54: b2411001 sublt r1, r1, #1 <== NOT EXECUTED a000df58: b5821000 strlt r1, [r2] <== NOT EXECUTED result->tv_nsec = (TOD_NANOSECONDS_PER_SECOND - start->tv_nsec) + end->tv_nsec; a000df5c: b59f1010 ldrlt r1, [pc, #16] ; a000df74 <_Timespec_Subtract+0x40><== NOT EXECUTED } else { result->tv_sec = end->tv_sec - start->tv_sec; a000df60: a5821000 strge r1, [r2] <== 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; a000df64: b08c1001 addlt r1, ip, r1 <== NOT EXECUTED a000df68: b0633001 rsblt r3, r3, r1 <== NOT EXECUTED } else { result->tv_sec = end->tv_sec - start->tv_sec; result->tv_nsec = end->tv_nsec - start->tv_nsec; a000df6c: e5823004 str r3, [r2, #4] <== NOT EXECUTED a000df70: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a002885c <_Timespec_To_ticks>: */ uint32_t _Timespec_To_ticks( const struct timespec *time ) { a002885c: e92d4070 push {r4, r5, r6, lr} uint32_t ticks; uint32_t nanoseconds_per_tick; if ( (time->tv_sec == 0) && (time->tv_nsec == 0) ) a0028860: e5905000 ldr r5, [r0] */ uint32_t _Timespec_To_ticks( const struct timespec *time ) { a0028864: e1a06000 mov r6, r0 uint32_t ticks; uint32_t nanoseconds_per_tick; if ( (time->tv_sec == 0) && (time->tv_nsec == 0) ) a0028868: e3550000 cmp r5, #0 a002886c: 1a000002 bne a002887c <_Timespec_To_ticks+0x20> a0028870: e5904004 ldr r4, [r0, #4] <== NOT EXECUTED a0028874: e3540000 cmp r4, #0 <== NOT EXECUTED a0028878: 0a00000d beq a00288b4 <_Timespec_To_ticks+0x58> <== NOT EXECUTED /** * We should ensure the ticks not be truncated by integer division. We * need to have it be greater than or equal to the requested time. It * should not be shorter. */ ticks = time->tv_sec * TOD_TICKS_PER_SECOND; a002887c: eb000032 bl a002894c nanoseconds_per_tick = rtems_configuration_get_nanoseconds_per_tick(); a0028880: e59f3034 ldr r3, [pc, #52] ; a00288bc <_Timespec_To_ticks+0x60> /** * We should ensure the ticks not be truncated by integer division. We * need to have it be greater than or equal to the requested time. It * should not be shorter. */ ticks = time->tv_sec * TOD_TICKS_PER_SECOND; a0028884: e0040095 mul r4, r5, r0 nanoseconds_per_tick = rtems_configuration_get_nanoseconds_per_tick(); ticks += time->tv_nsec / nanoseconds_per_tick; a0028888: e5966004 ldr r6, [r6, #4] * We should ensure the ticks not be truncated by integer division. We * need to have it be greater than or equal to the requested time. It * should not be shorter. */ ticks = time->tv_sec * TOD_TICKS_PER_SECOND; nanoseconds_per_tick = rtems_configuration_get_nanoseconds_per_tick(); a002888c: e5935010 ldr r5, [r3, #16] ticks += time->tv_nsec / nanoseconds_per_tick; a0028890: e1a00006 mov r0, r6 a0028894: e1a01005 mov r1, r5 a0028898: ebff7125 bl a0004d34 <__aeabi_uidiv> if ( (time->tv_nsec % nanoseconds_per_tick) != 0 ) a002889c: e1a01005 mov r1, r5 * need to have it be greater than or equal to the requested time. It * should not be shorter. */ ticks = time->tv_sec * TOD_TICKS_PER_SECOND; nanoseconds_per_tick = rtems_configuration_get_nanoseconds_per_tick(); ticks += time->tv_nsec / nanoseconds_per_tick; a00288a0: e0844000 add r4, r4, r0 if ( (time->tv_nsec % nanoseconds_per_tick) != 0 ) a00288a4: e1a00006 mov r0, r6 a00288a8: ebfff72f bl a002656c <__umodsi3> a00288ac: e3500000 cmp r0, #0 ticks += 1; a00288b0: 12844001 addne r4, r4, #1 return ticks; } a00288b4: e1a00004 mov r0, r4 a00288b8: e8bd8070 pop {r4, r5, r6, pc} =============================================================================== a000e6c8 <_Timestamp64_Divide>: const Timestamp64_Control *_lhs, const Timestamp64_Control *_rhs, uint32_t *_ival_percentage, uint32_t *_fval_percentage ) { a000e6c8: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED a000e6cc: e1a04002 mov r4, r2 <== NOT EXECUTED a000e6d0: e1a05003 mov r5, r3 <== NOT EXECUTED Timestamp64_Control answer; if ( *_rhs == 0 ) { a000e6d4: e891000c ldm r1, {r2, r3} <== NOT EXECUTED a000e6d8: e1921003 orrs r1, r2, r3 <== NOT EXECUTED a000e6dc: 1a000003 bne a000e6f0 <_Timestamp64_Divide+0x28> <== NOT EXECUTED *_ival_percentage = 0; a000e6e0: e3a03000 mov r3, #0 <== NOT EXECUTED a000e6e4: e5843000 str r3, [r4] <== NOT EXECUTED *_fval_percentage = 0; a000e6e8: e5853000 str r3, [r5] <== NOT EXECUTED return; a000e6ec: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED * This looks odd but gives the results the proper precision. * * TODO: Rounding on the last digit of the fval. */ answer = (*_lhs * 100000) / *_rhs; a000e6f0: e59fc044 ldr ip, [pc, #68] ; a000e73c <_Timestamp64_Divide+0x74><== NOT EXECUTED a000e6f4: e5906000 ldr r6, [r0] <== NOT EXECUTED a000e6f8: e590e004 ldr lr, [r0, #4] <== NOT EXECUTED a000e6fc: e0810c96 umull r0, r1, r6, ip <== NOT EXECUTED a000e700: e0211e9c mla r1, ip, lr, r1 <== NOT EXECUTED a000e704: eb0037ba bl a001c5f4 <__divdi3> <== NOT EXECUTED *_ival_percentage = answer / 1000; a000e708: e3a02ffa mov r2, #1000 ; 0x3e8 <== NOT EXECUTED a000e70c: e3a03000 mov r3, #0 <== NOT EXECUTED * This looks odd but gives the results the proper precision. * * TODO: Rounding on the last digit of the fval. */ answer = (*_lhs * 100000) / *_rhs; a000e710: e1a07000 mov r7, r0 <== NOT EXECUTED a000e714: e1a06001 mov r6, r1 <== NOT EXECUTED *_ival_percentage = answer / 1000; a000e718: eb0037b5 bl a001c5f4 <__divdi3> <== NOT EXECUTED *_fval_percentage = answer % 1000; a000e71c: e1a01006 mov r1, r6 <== NOT EXECUTED * TODO: Rounding on the last digit of the fval. */ answer = (*_lhs * 100000) / *_rhs; *_ival_percentage = answer / 1000; a000e720: e5840000 str r0, [r4] <== NOT EXECUTED *_fval_percentage = answer % 1000; a000e724: e3a02ffa mov r2, #1000 ; 0x3e8 <== NOT EXECUTED a000e728: e1a00007 mov r0, r7 <== NOT EXECUTED a000e72c: e3a03000 mov r3, #0 <== NOT EXECUTED a000e730: eb0038ea bl a001cae0 <__moddi3> <== NOT EXECUTED a000e734: e5850000 str r0, [r5] <== NOT EXECUTED a000e738: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED =============================================================================== a0010b3c <_User_extensions_Remove_set>: #include void _User_extensions_Remove_set ( User_extensions_Control *the_extension ) { a0010b3c: e92d4010 push {r4, lr} a0010b40: e1a04000 mov r4, r0 _Chain_Extract( &the_extension->Node ); a0010b44: eb0010e4 bl a0014edc <_Chain_Extract> /* * If a switch handler is present, remove it. */ if ( the_extension->Callouts.thread_switch != NULL ) a0010b48: e5943024 ldr r3, [r4, #36] ; 0x24 a0010b4c: e3530000 cmp r3, #0 a0010b50: 0a000002 beq a0010b60 <_User_extensions_Remove_set+0x24> _Chain_Extract( &the_extension->Switch.Node ); a0010b54: e2840008 add r0, r4, #8 <== NOT EXECUTED } a0010b58: e8bd4010 pop {r4, lr} <== NOT EXECUTED /* * If a switch handler is present, remove it. */ if ( the_extension->Callouts.thread_switch != NULL ) _Chain_Extract( &the_extension->Switch.Node ); a0010b5c: ea0010de b a0014edc <_Chain_Extract> <== NOT EXECUTED a0010b60: e8bd8010 pop {r4, pc} =============================================================================== a000d17c <_User_extensions_Thread_exitted_visitor>: Thread_Control *executing, void *arg, const User_extensions_Table *callouts ) { User_extensions_thread_exitted_extension callout = callouts->thread_exitted; a000d17c: e5923018 ldr r3, [r2, #24] void _User_extensions_Thread_exitted_visitor( Thread_Control *executing, void *arg, const User_extensions_Table *callouts ) { a000d180: e52de004 push {lr} ; (str lr, [sp, #-4]!) User_extensions_thread_exitted_extension callout = callouts->thread_exitted; if ( callout != NULL ) { a000d184: e3530000 cmp r3, #0 a000d188: 049df004 popeq {pc} ; (ldreq pc, [sp], #4) (*callout)( executing ); a000d18c: e12fff33 blx r3 <== NOT EXECUTED a000d190: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED =============================================================================== a000e958 <_Watchdog_Adjust>: void _Watchdog_Adjust( Chain_Control *header, Watchdog_Adjust_directions direction, Watchdog_Interval units ) { a000e958: e92d40f0 push {r4, r5, r6, r7, lr} a000e95c: e1a04000 mov r4, r0 a000e960: e1a05002 mov r5, r2 uint32_t level; #if defined(ARM_MULTILIB_ARCH_V4) uint32_t arm_switch_reg; __asm__ volatile ( a000e964: e10f3000 mrs r3, CPSR a000e968: e3832080 orr r2, r3, #128 ; 0x80 a000e96c: e129f002 msr CPSR_fc, r2 */ RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first( const Chain_Control *the_chain ) { return _Chain_Immutable_head( the_chain )->next; a000e970: e1a06000 mov r6, r0 a000e974: e4962004 ldr r2, [r6], #4 * hence the compiler must not assume *header to remain * unmodified across that call. * * Till Straumann, 7/2003 */ if ( !_Chain_Is_empty( header ) ) { a000e978: e1520006 cmp r2, r6 a000e97c: 0a00001b beq a000e9f0 <_Watchdog_Adjust+0x98> switch ( direction ) { a000e980: e3510000 cmp r1, #0 if ( units < _Watchdog_First( header )->delta_interval ) { _Watchdog_First( header )->delta_interval -= units; break; } else { units -= _Watchdog_First( header )->delta_interval; _Watchdog_First( header )->delta_interval = 1; a000e984: 03a07001 moveq r7, #1 * unmodified across that call. * * Till Straumann, 7/2003 */ if ( !_Chain_Is_empty( header ) ) { switch ( direction ) { a000e988: 0a000016 beq a000e9e8 <_Watchdog_Adjust+0x90> a000e98c: e3510001 cmp r1, #1 <== NOT EXECUTED case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; a000e990: 05921010 ldreq r1, [r2, #16] <== NOT EXECUTED a000e994: 00815005 addeq r5, r1, r5 <== NOT EXECUTED * unmodified across that call. * * Till Straumann, 7/2003 */ if ( !_Chain_Is_empty( header ) ) { switch ( direction ) { a000e998: 1a000014 bne a000e9f0 <_Watchdog_Adjust+0x98> <== NOT EXECUTED a000e99c: ea000004 b a000e9b4 <_Watchdog_Adjust+0x5c> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First( Chain_Control *the_chain ) { return _Chain_Head( the_chain )->next; a000e9a0: e5942000 ldr r2, [r4] case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; break; case WATCHDOG_FORWARD: while ( units ) { if ( units < _Watchdog_First( header )->delta_interval ) { a000e9a4: e5921010 ldr r1, [r2, #16] a000e9a8: e1550001 cmp r5, r1 a000e9ac: 2a000002 bcs a000e9bc <_Watchdog_Adjust+0x64> _Watchdog_First( header )->delta_interval -= units; a000e9b0: e0655001 rsb r5, r5, r1 <== NOT EXECUTED a000e9b4: e5825010 str r5, [r2, #16] <== NOT EXECUTED break; a000e9b8: ea00000c b a000e9f0 <_Watchdog_Adjust+0x98> <== NOT EXECUTED } else { units -= _Watchdog_First( header )->delta_interval; _Watchdog_First( header )->delta_interval = 1; a000e9bc: e5827010 str r7, [r2, #16] while ( units ) { if ( units < _Watchdog_First( header )->delta_interval ) { _Watchdog_First( header )->delta_interval -= units; break; } else { units -= _Watchdog_First( header )->delta_interval; a000e9c0: e0615005 rsb r5, r1, r5 static inline void arm_interrupt_enable( uint32_t level ) { #if defined(ARM_MULTILIB_ARCH_V4) ARM_SWITCH_REGISTERS; __asm__ volatile ( a000e9c4: e129f003 msr CPSR_fc, r3 _Watchdog_First( header )->delta_interval = 1; _ISR_Enable( level ); _Watchdog_Tickle( header ); a000e9c8: e1a00004 mov r0, r4 a000e9cc: eb000089 bl a000ebf8 <_Watchdog_Tickle> uint32_t level; #if defined(ARM_MULTILIB_ARCH_V4) uint32_t arm_switch_reg; __asm__ volatile ( a000e9d0: e10f3000 mrs r3, CPSR a000e9d4: e3832080 orr r2, r3, #128 ; 0x80 a000e9d8: e129f002 msr CPSR_fc, r2 _ISR_Disable( level ); if ( _Chain_Is_empty( header ) ) a000e9dc: e5942000 ldr r2, [r4] a000e9e0: e1520006 cmp r2, r6 a000e9e4: 0a000001 beq a000e9f0 <_Watchdog_Adjust+0x98> switch ( direction ) { case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; break; case WATCHDOG_FORWARD: while ( units ) { a000e9e8: e3550000 cmp r5, #0 a000e9ec: 1affffeb bne a000e9a0 <_Watchdog_Adjust+0x48> static inline void arm_interrupt_enable( uint32_t level ) { #if defined(ARM_MULTILIB_ARCH_V4) ARM_SWITCH_REGISTERS; __asm__ volatile ( a000e9f0: e129f003 msr CPSR_fc, r3 } } _ISR_Enable( level ); } a000e9f4: e8bd80f0 pop {r4, r5, r6, r7, pc} =============================================================================== a001d3b4 <_Watchdog_Adjust_to_chain>: Chain_Control *header, Watchdog_Interval units_arg, Chain_Control *to_fire ) { a001d3b4: e92d41f0 push {r4, r5, r6, r7, r8, lr} uint32_t level; #if defined(ARM_MULTILIB_ARCH_V4) uint32_t arm_switch_reg; __asm__ volatile ( a001d3b8: e10f4000 mrs r4, CPSR a001d3bc: e3843080 orr r3, r4, #128 ; 0x80 a001d3c0: e129f003 msr CPSR_fc, r3 /* * 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; first->delta_interval = 0; a001d3c4: e3a08000 mov r8, #0 RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( const Chain_Control *the_chain ) { return _Chain_Immutable_first( the_chain ) == _Chain_Immutable_tail( the_chain ); a001d3c8: e2805004 add r5, r0, #4 RTEMS_INLINE_ROUTINE void _Chain_Append_unprotected( Chain_Control *the_chain, Chain_Node *the_node ) { Chain_Node *tail = _Chain_Tail( the_chain ); a001d3cc: e2827004 add r7, r2, #4 */ RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first( const Chain_Control *the_chain ) { return _Chain_Immutable_head( the_chain )->next; a001d3d0: e5903000 ldr r3, [r0] Watchdog_Control *first; _ISR_Disable( level ); while ( 1 ) { if ( _Chain_Is_empty( header ) ) { a001d3d4: e1530005 cmp r3, r5 a001d3d8: 0a000018 beq a001d440 <_Watchdog_Adjust_to_chain+0x8c> /* * If it is longer than "units" until the first element on the chain * fires, then bump it and quit. */ if ( units < first->delta_interval ) { a001d3dc: e593c010 ldr ip, [r3, #16] a001d3e0: e151000c cmp r1, ip first->delta_interval -= units; a001d3e4: 3061100c rsbcc r1, r1, ip a001d3e8: 35831010 strcc r1, [r3, #16] break; a001d3ec: 3a000013 bcc a001d440 <_Watchdog_Adjust_to_chain+0x8c> /* * 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; a001d3f0: e06c1001 rsb r1, ip, r1 first->delta_interval = 0; a001d3f4: e5838010 str r8, [r3, #16] { Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; a001d3f8: e8931040 ldm r3, {r6, ip} next->previous = previous; a001d3fc: e586c004 str ip, [r6, #4] previous->next = next; a001d400: e58c6000 str r6, [ip] Chain_Control *the_chain, Chain_Node *the_node ) { Chain_Node *tail = _Chain_Tail( the_chain ); Chain_Node *old_last = tail->previous; a001d404: e592c008 ldr ip, [r2, #8] the_node->next = tail; a001d408: e5837000 str r7, [r3] tail->previous = the_node; a001d40c: e5823008 str r3, [r2, #8] old_last->next = the_node; a001d410: e58c3000 str r3, [ip] the_node->previous = old_last; a001d414: e583c004 str ip, [r3, #4] static inline void arm_interrupt_flash( uint32_t level ) { #if defined(ARM_MULTILIB_ARCH_V4) uint32_t arm_switch_reg; __asm__ volatile ( a001d418: e10f3000 mrs r3, CPSR a001d41c: e129f004 msr CPSR_fc, r4 a001d420: e129f003 msr CPSR_fc, r3 */ RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first( const Chain_Control *the_chain ) { return _Chain_Immutable_head( the_chain )->next; a001d424: e5903000 ldr r3, [r0] _Chain_Extract_unprotected( &first->Node ); _Chain_Append_unprotected( to_fire, &first->Node ); _ISR_Flash( level ); if ( _Chain_Is_empty( header ) ) a001d428: e1530005 cmp r3, r5 a001d42c: 0affffe7 beq a001d3d0 <_Watchdog_Adjust_to_chain+0x1c> break; first = _Watchdog_First( header ); if ( first->delta_interval != 0 ) a001d430: e593c010 ldr ip, [r3, #16] <== NOT EXECUTED a001d434: e35c0000 cmp ip, #0 <== NOT EXECUTED a001d438: 0affffee beq a001d3f8 <_Watchdog_Adjust_to_chain+0x44> <== NOT EXECUTED a001d43c: eaffffe3 b a001d3d0 <_Watchdog_Adjust_to_chain+0x1c> <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { #if defined(ARM_MULTILIB_ARCH_V4) ARM_SWITCH_REGISTERS; __asm__ volatile ( a001d440: e129f004 msr CPSR_fc, r4 break; } } _ISR_Enable( level ); } a001d444: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} =============================================================================== a000e4bc <_Watchdog_Report>: void _Watchdog_Report( const char *name, Watchdog_Control *watch ) { a000e4bc: e92d401f push {r0, r1, r2, r3, r4, lr} <== NOT EXECUTED a000e4c0: e1a03001 mov r3, r1 <== NOT EXECUTED printk( a000e4c4: e2501000 subs r1, r0, #0 <== NOT EXECUTED a000e4c8: e593000c ldr r0, [r3, #12] <== NOT EXECUTED a000e4cc: 059f1034 ldreq r1, [pc, #52] ; a000e508 <_Watchdog_Report+0x4c><== NOT EXECUTED a000e4d0: 159f2034 ldrne r2, [pc, #52] ; a000e50c <_Watchdog_Report+0x50><== NOT EXECUTED a000e4d4: e88d0009 stm sp, {r0, r3} <== NOT EXECUTED a000e4d8: e593001c ldr r0, [r3, #28] <== NOT EXECUTED a000e4dc: 01a02001 moveq r2, r1 <== NOT EXECUTED a000e4e0: e58d0008 str r0, [sp, #8] <== NOT EXECUTED a000e4e4: e5930020 ldr r0, [r3, #32] <== NOT EXECUTED a000e4e8: e58d000c str r0, [sp, #12] <== NOT EXECUTED a000e4ec: e5930024 ldr r0, [r3, #36] ; 0x24 <== NOT EXECUTED a000e4f0: e58d0010 str r0, [sp, #16] <== NOT EXECUTED a000e4f4: e5933010 ldr r3, [r3, #16] <== NOT EXECUTED a000e4f8: e59f0010 ldr r0, [pc, #16] ; a000e510 <_Watchdog_Report+0x54><== NOT EXECUTED a000e4fc: ebffe55d bl a0007a78 <== NOT EXECUTED watch, watch->routine, watch->id, watch->user_data ); } a000e500: e28dd014 add sp, sp, #20 <== NOT EXECUTED a000e504: e8bd8000 pop {pc} <== NOT EXECUTED =============================================================================== a000e440 <_Watchdog_Report_chain>: void _Watchdog_Report_chain( const char *name, Chain_Control *header ) { a000e440: e92d40f0 push {r4, r5, r6, r7, lr} a000e444: e1a04000 mov r4, r0 a000e448: e1a05001 mov r5, r1 uint32_t level; #if defined(ARM_MULTILIB_ARCH_V4) uint32_t arm_switch_reg; __asm__ volatile ( a000e44c: e10f6000 mrs r6, CPSR a000e450: e3863080 orr r3, r6, #128 ; 0x80 a000e454: e129f003 msr CPSR_fc, r3 ISR_Level level; Chain_Node *node; _ISR_Disable( level ); printk( "Watchdog Chain: %s %p\n", name, header ); a000e458: e59f0050 ldr r0, [pc, #80] ; a000e4b0 <_Watchdog_Report_chain+0x70> a000e45c: e1a02005 mov r2, r5 a000e460: e1a01004 mov r1, r4 a000e464: ebffe583 bl a0007a78 */ RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first( const Chain_Control *the_chain ) { return _Chain_Immutable_head( the_chain )->next; a000e468: e4957004 ldr r7, [r5], #4 if ( !_Chain_Is_empty( header ) ) { a000e46c: e1570005 cmp r7, r5 a000e470: 1a000004 bne a000e488 <_Watchdog_Report_chain+0x48> a000e474: ea000009 b a000e4a0 <_Watchdog_Report_chain+0x60> node != _Chain_Tail(header) ; node = node->next ) { Watchdog_Control *watch = (Watchdog_Control *) node; _Watchdog_Report( NULL, watch ); a000e478: e1a01007 mov r1, r7 <== NOT EXECUTED a000e47c: e3a00000 mov r0, #0 <== NOT EXECUTED a000e480: eb00000d bl a000e4bc <_Watchdog_Report> <== NOT EXECUTED _ISR_Disable( level ); printk( "Watchdog Chain: %s %p\n", name, header ); if ( !_Chain_Is_empty( header ) ) { for ( node = _Chain_First( header ) ; node != _Chain_Tail(header) ; node = node->next ) a000e484: e5977000 ldr r7, [r7] <== NOT EXECUTED Chain_Node *node; _ISR_Disable( level ); printk( "Watchdog Chain: %s %p\n", name, header ); if ( !_Chain_Is_empty( header ) ) { for ( node = _Chain_First( header ) ; a000e488: e1570005 cmp r7, r5 <== NOT EXECUTED a000e48c: 1afffff9 bne a000e478 <_Watchdog_Report_chain+0x38> <== NOT EXECUTED { Watchdog_Control *watch = (Watchdog_Control *) node; _Watchdog_Report( NULL, watch ); } printk( "== end of %s \n", name ); a000e490: e59f001c ldr r0, [pc, #28] ; a000e4b4 <_Watchdog_Report_chain+0x74><== NOT EXECUTED a000e494: e1a01004 mov r1, r4 <== NOT EXECUTED a000e498: ebffe576 bl a0007a78 <== NOT EXECUTED a000e49c: ea000001 b a000e4a8 <_Watchdog_Report_chain+0x68> <== NOT EXECUTED } else { printk( "Chain is empty\n" ); a000e4a0: e59f0010 ldr r0, [pc, #16] ; a000e4b8 <_Watchdog_Report_chain+0x78> a000e4a4: ebffe573 bl a0007a78 static inline void arm_interrupt_enable( uint32_t level ) { #if defined(ARM_MULTILIB_ARCH_V4) ARM_SWITCH_REGISTERS; __asm__ volatile ( a000e4a8: e129f006 msr CPSR_fc, r6 } _ISR_Enable( level ); } a000e4ac: e8bd80f0 pop {r4, r5, r6, r7, pc} =============================================================================== a000b8c0 : uint32_t the_class, uint32_t node, uint32_t index ) { return (( (Objects_Id) the_api ) << OBJECTS_API_START_BIT) | a000b8c0: e1a00c00 lsl r0, r0, #24 <== NOT EXECUTED a000b8c4: e1800d81 orr r0, r0, r1, lsl #27 <== NOT EXECUTED (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) | a000b8c8: e1800003 orr r0, r0, r3 <== NOT EXECUTED uint32_t node, uint32_t index ) { return _Objects_Build_id( api, class, node, index ); } a000b8cc: e1800802 orr r0, r0, r2, lsl #16 <== NOT EXECUTED a000b8d0: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000b8d4 : char C1, char C2, char C3, char C4 ) { a000b8d4: e1a01801 lsl r1, r1, #16 <== NOT EXECUTED return _Objects_Build_name( C1, C2, C3, C4 ); a000b8d8: e20118ff and r1, r1, #16711680 ; 0xff0000 <== NOT EXECUTED char C1, char C2, char C3, char C4 ) { a000b8dc: e1a02402 lsl r2, r2, #8 <== NOT EXECUTED return _Objects_Build_name( C1, C2, C3, C4 ); a000b8e0: e1810c00 orr r0, r1, r0, lsl #24 <== NOT EXECUTED a000b8e4: e2022cff and r2, r2, #65280 ; 0xff00 <== NOT EXECUTED char C1, char C2, char C3, char C4 ) { a000b8e8: e20330ff and r3, r3, #255 ; 0xff <== NOT EXECUTED return _Objects_Build_name( C1, C2, C3, C4 ); a000b8ec: e1800002 orr r0, r0, r2 <== NOT EXECUTED } a000b8f0: e1800003 orr r0, r0, r3 <== NOT EXECUTED a000b8f4: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000ad30 : rtems_chain_control *chain, rtems_chain_node *node, rtems_id task, rtems_event_set events ) { a000ad30: e92d4030 push {r4, r5, lr} <== NOT EXECUTED a000ad34: e1a04002 mov r4, r2 <== NOT EXECUTED a000ad38: e1a05003 mov r5, r3 <== 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 ); a000ad3c: eb000147 bl a000b260 <_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 ) { a000ad40: e3500000 cmp r0, #0 <== NOT EXECUTED a000ad44: 0a000003 beq a000ad58 <== NOT EXECUTED sc = rtems_event_send( task, events ); a000ad48: e1a00004 mov r0, r4 <== NOT EXECUTED a000ad4c: e1a01005 mov r1, r5 <== NOT EXECUTED } return sc; } a000ad50: e8bd4030 pop {r4, r5, lr} <== 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 ); a000ad54: eafffd99 b a000a3c0 <== NOT EXECUTED } return sc; } a000ad58: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED =============================================================================== a000ad5c : rtems_chain_control *chain, rtems_id task, rtems_event_set events, rtems_chain_node **node ) { a000ad5c: e92d4030 push {r4, r5, lr} <== NOT EXECUTED a000ad60: e1a04001 mov r4, r1 <== 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 ); a000ad64: e1a01003 mov r1, r3 <== NOT EXECUTED a000ad68: e1a05002 mov r5, r2 <== NOT EXECUTED a000ad6c: eb000157 bl a000b2d0 <_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 ) { a000ad70: e3500000 cmp r0, #0 <== NOT EXECUTED a000ad74: 0a000003 beq a000ad88 <== NOT EXECUTED sc = rtems_event_send( task, events ); a000ad78: e1a00004 mov r0, r4 <== NOT EXECUTED a000ad7c: e1a01005 mov r1, r5 <== NOT EXECUTED } return sc; } a000ad80: e8bd4030 pop {r4, r5, lr} <== 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 ); a000ad84: eafffd8d b a000a3c0 <== NOT EXECUTED } return sc; } a000ad88: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED =============================================================================== a000ad8c : rtems_chain_control *chain, rtems_event_set events, rtems_interval timeout, rtems_chain_node **node_ptr ) { a000ad8c: e92d41f1 push {r0, r4, r5, r6, r7, r8, lr} <== NOT EXECUTED a000ad90: e1a07000 mov r7, r0 <== NOT EXECUTED a000ad94: e1a06001 mov r6, r1 <== NOT EXECUTED a000ad98: e1a05002 mov r5, r2 <== NOT EXECUTED a000ad9c: e1a08003 mov r8, r3 <== NOT EXECUTED a000ada0: ea000006 b a000adc0 <== NOT EXECUTED while ( sc == RTEMS_SUCCESSFUL && (node = rtems_chain_get( chain )) == NULL ) { rtems_event_set out; sc = rtems_event_receive( a000ada4: e1a00006 mov r0, r6 <== NOT EXECUTED a000ada8: e1a01004 mov r1, r4 <== NOT EXECUTED a000adac: e1a02005 mov r2, r5 <== NOT EXECUTED a000adb0: e1a0300d mov r3, sp <== NOT EXECUTED a000adb4: ebfffd22 bl a000a244 <== NOT EXECUTED ) { rtems_status_code sc = RTEMS_SUCCESSFUL; rtems_chain_node *node = NULL; while ( a000adb8: e3500000 cmp r0, #0 <== NOT EXECUTED a000adbc: 1a000004 bne a000add4 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get( rtems_chain_control *the_chain ) { return _Chain_Get( the_chain ); a000adc0: e1a00007 mov r0, r7 <== NOT EXECUTED a000adc4: eb000155 bl a000b320 <_Chain_Get> <== NOT EXECUTED sc == RTEMS_SUCCESSFUL && (node = rtems_chain_get( chain )) == NULL a000adc8: e2504000 subs r4, r0, #0 <== NOT EXECUTED a000adcc: 0afffff4 beq a000ada4 <== NOT EXECUTED a000add0: e3a00000 mov r0, #0 <== NOT EXECUTED timeout, &out ); } *node_ptr = node; a000add4: e5884000 str r4, [r8] <== NOT EXECUTED return sc; } a000add8: e8bd81f8 pop {r3, r4, r5, r6, r7, r8, pc} <== NOT EXECUTED =============================================================================== a000addc : rtems_chain_control *chain, rtems_chain_node *node, rtems_id task, rtems_event_set events ) { a000addc: e92d4030 push {r4, r5, lr} <== NOT EXECUTED a000ade0: e1a04002 mov r4, r2 <== NOT EXECUTED a000ade4: e1a05003 mov r5, r3 <== 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 ); a000ade8: eb000173 bl a000b3bc <_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) { a000adec: e3500000 cmp r0, #0 <== NOT EXECUTED a000adf0: 0a000003 beq a000ae04 <== NOT EXECUTED sc = rtems_event_send( task, events ); a000adf4: e1a00004 mov r0, r4 <== NOT EXECUTED a000adf8: e1a01005 mov r1, r5 <== NOT EXECUTED } return sc; } a000adfc: e8bd4030 pop {r4, r5, lr} <== 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 ); a000ae00: eafffd6e b a000a3c0 <== NOT EXECUTED } return sc; } a000ae04: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED =============================================================================== a000ac74 : rtems_status_code rtems_clock_get( rtems_clock_get_options option, void *time_buffer ) { a000ac74: e92d4010 push {r4, lr} if ( !time_buffer ) a000ac78: e2514000 subs r4, r1, #0 a000ac7c: 0a000018 beq a000ace4 return RTEMS_INVALID_ADDRESS; if ( option == RTEMS_CLOCK_GET_TOD ) a000ac80: e3500000 cmp r0, #0 a000ac84: 1a000002 bne a000ac94 return rtems_clock_get_tod( (rtems_time_of_day *)time_buffer ); a000ac88: e1a00004 mov r0, r4 if ( option == RTEMS_CLOCK_GET_TIME_VALUE ) return rtems_clock_get_tod_timeval( (struct timeval *)time_buffer ); return RTEMS_INVALID_NUMBER; } a000ac8c: e8bd4010 pop {r4, lr} { if ( !time_buffer ) return RTEMS_INVALID_ADDRESS; if ( option == RTEMS_CLOCK_GET_TOD ) return rtems_clock_get_tod( (rtems_time_of_day *)time_buffer ); a000ac90: ea000037 b a000ad74 if ( option == RTEMS_CLOCK_GET_SECONDS_SINCE_EPOCH ) a000ac94: e3500001 cmp r0, #1 a000ac98: 1a000002 bne a000aca8 return rtems_clock_get_seconds_since_epoch((rtems_interval *)time_buffer); a000ac9c: e1a00004 mov r0, r4 if ( option == RTEMS_CLOCK_GET_TIME_VALUE ) return rtems_clock_get_tod_timeval( (struct timeval *)time_buffer ); return RTEMS_INVALID_NUMBER; } a000aca0: e8bd4010 pop {r4, lr} 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); a000aca4: ea000012 b a000acf4 if ( option == RTEMS_CLOCK_GET_TICKS_SINCE_BOOT ) { a000aca8: e3500002 cmp r0, #2 a000acac: 1a000001 bne a000acb8 rtems_interval *interval = (rtems_interval *)time_buffer; *interval = rtems_clock_get_ticks_since_boot(); a000acb0: eb00002b bl a000ad64 <== NOT EXECUTED a000acb4: ea000002 b a000acc4 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } if ( option == RTEMS_CLOCK_GET_TICKS_PER_SECOND ) { a000acb8: e3500003 cmp r0, #3 a000acbc: 1a000003 bne a000acd0 rtems_interval *interval = (rtems_interval *)time_buffer; *interval = rtems_clock_get_ticks_per_second(); a000acc0: eb00001f bl a000ad44 <== NOT EXECUTED a000acc4: e5840000 str r0, [r4] <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000acc8: e3a00000 mov r0, #0 <== NOT EXECUTED a000accc: e8bd8010 pop {r4, pc} <== NOT EXECUTED } if ( option == RTEMS_CLOCK_GET_TIME_VALUE ) a000acd0: e3500004 cmp r0, #4 a000acd4: 1a000004 bne a000acec return rtems_clock_get_tod_timeval( (struct timeval *)time_buffer ); a000acd8: e1a00004 mov r0, r4 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; } a000acdc: e8bd4010 pop {r4, lr} <== 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 ); a000ace0: ea00005c b a000ae58 <== NOT EXECUTED rtems_clock_get_options option, void *time_buffer ) { if ( !time_buffer ) return RTEMS_INVALID_ADDRESS; a000ace4: e3a00009 mov r0, #9 a000ace8: e8bd8010 pop {r4, pc} } if ( option == RTEMS_CLOCK_GET_TIME_VALUE ) return rtems_clock_get_tod_timeval( (struct timeval *)time_buffer ); return RTEMS_INVALID_NUMBER; a000acec: e3a0000a mov r0, #10 } a000acf0: e8bd8010 pop {r4, pc} =============================================================================== a000a9cc : #include rtems_status_code rtems_clock_get_seconds_since_epoch( rtems_interval *the_interval ) { a000a9cc: e92d4010 push {r4, lr} if ( !the_interval ) a000a9d0: e2504000 subs r4, r0, #0 a000a9d4: 0a00000a beq a000aa04 return RTEMS_INVALID_ADDRESS; if ( !_TOD.is_set ) a000a9d8: e59f3034 ldr r3, [pc, #52] ; a000aa14 a000a9dc: e5d32014 ldrb r2, [r3, #20] a000a9e0: e3520000 cmp r2, #0 a000a9e4: 0a000008 beq a000aa0c static inline uint32_t _Timestamp64_implementation_Get_seconds( const Timestamp64_Control *_time ) { return (uint32_t) (*_time / 1000000000L); a000a9e8: e8930003 ldm r3, {r0, r1} a000a9ec: e59f2024 ldr r2, [pc, #36] ; a000aa18 a000a9f0: e3a03000 mov r3, #0 a000a9f4: eb0046fe bl a001c5f4 <__divdi3> a000a9f8: e5840000 str r0, [r4] return RTEMS_NOT_DEFINED; *the_interval = _TOD_Seconds_since_epoch(); return RTEMS_SUCCESSFUL; a000a9fc: e3a00000 mov r0, #0 a000aa00: e8bd8010 pop {r4, pc} rtems_status_code rtems_clock_get_seconds_since_epoch( rtems_interval *the_interval ) { if ( !the_interval ) return RTEMS_INVALID_ADDRESS; a000aa04: e3a00009 mov r0, #9 <== NOT EXECUTED a000aa08: e8bd8010 pop {r4, pc} <== NOT EXECUTED if ( !_TOD.is_set ) return RTEMS_NOT_DEFINED; a000aa0c: e3a0000b mov r0, #11 <== NOT EXECUTED *the_interval = _TOD_Seconds_since_epoch(); return RTEMS_SUCCESSFUL; } a000aa10: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a0016e8c : #include rtems_status_code rtems_clock_get_tod_timeval( struct timeval *time ) { a0016e8c: e92d40d3 push {r0, r1, r4, r6, r7, lr} if ( !time ) a0016e90: e2504000 subs r4, r0, #0 return RTEMS_INVALID_ADDRESS; a0016e94: 03a00009 moveq r0, #9 rtems_status_code rtems_clock_get_tod_timeval( struct timeval *time ) { if ( !time ) a0016e98: 0a000017 beq a0016efc return RTEMS_INVALID_ADDRESS; if ( !_TOD.is_set ) a0016e9c: e59f105c ldr r1, [pc, #92] ; a0016f00 a0016ea0: e5d13014 ldrb r3, [r1, #20] a0016ea4: e3530000 cmp r3, #0 return RTEMS_NOT_DEFINED; a0016ea8: 03a0000b moveq r0, #11 ) { if ( !time ) return RTEMS_INVALID_ADDRESS; if ( !_TOD.is_set ) a0016eac: 0a000012 beq a0016efc ) { Timestamp_Control snapshot_as_timestamp; Timestamp_Control *snapshot_as_timestamp_ptr; snapshot_as_timestamp_ptr = a0016eb0: e1a0000d mov r0, sp <== NOT EXECUTED a0016eb4: ebffd86d bl a000d070 <_TOD_Get_with_nanoseconds> <== NOT EXECUTED static inline void _Timestamp64_implementation_To_timeval( const Timestamp64_Control *_timestamp, struct timeval *_timeval ) { _timeval->tv_sec = (time_t) (*_timestamp / 1000000000U); a0016eb8: e59f2044 ldr r2, [pc, #68] ; a0016f04 <== NOT EXECUTED return RTEMS_NOT_DEFINED; _TOD_Get_timeval( time ); return RTEMS_SUCCESSFUL; } a0016ebc: e89000c0 ldm r0, {r6, r7} <== NOT EXECUTED a0016ec0: e3a03000 mov r3, #0 <== NOT EXECUTED a0016ec4: e1a00006 mov r0, r6 <== NOT EXECUTED a0016ec8: e1a01007 mov r1, r7 <== NOT EXECUTED a0016ecc: ebffba39 bl a00057b8 <__divdi3> <== NOT EXECUTED _timeval->tv_usec = (suseconds_t) ((*_timestamp % 1000000000U) / 1000U); a0016ed0: e59f202c ldr r2, [pc, #44] ; a0016f04 <== NOT EXECUTED static inline void _Timestamp64_implementation_To_timeval( const Timestamp64_Control *_timestamp, struct timeval *_timeval ) { _timeval->tv_sec = (time_t) (*_timestamp / 1000000000U); a0016ed4: e5840000 str r0, [r4] <== NOT EXECUTED _timeval->tv_usec = (suseconds_t) ((*_timestamp % 1000000000U) / 1000U); a0016ed8: e3a03000 mov r3, #0 <== NOT EXECUTED a0016edc: e1a00006 mov r0, r6 <== NOT EXECUTED a0016ee0: e1a01007 mov r1, r7 <== NOT EXECUTED a0016ee4: eb004c7d bl a002a0e0 <__moddi3> <== NOT EXECUTED a0016ee8: e3a02ffa mov r2, #1000 ; 0x3e8 <== NOT EXECUTED a0016eec: e3a03000 mov r3, #0 <== NOT EXECUTED a0016ef0: ebffba30 bl a00057b8 <__divdi3> <== NOT EXECUTED a0016ef4: e5840004 str r0, [r4, #4] <== NOT EXECUTED if ( !_TOD.is_set ) return RTEMS_NOT_DEFINED; _TOD_Get_timeval( time ); return RTEMS_SUCCESSFUL; a0016ef8: e3a00000 mov r0, #0 <== NOT EXECUTED } a0016efc: e8bd80dc pop {r2, r3, r4, r6, r7, pc} =============================================================================== a0025cf8 : */ rtems_status_code rtems_clock_get_uptime( struct timespec *uptime ) { if ( !uptime ) a0025cf8: e3500000 cmp r0, #0 <== NOT EXECUTED * error code - if unsuccessful */ rtems_status_code rtems_clock_get_uptime( struct timespec *uptime ) { a0025cfc: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED if ( !uptime ) a0025d00: 0a000002 beq a0025d10 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _TOD_Get_uptime_as_timespec( uptime ); a0025d04: eb00022d bl a00265c0 <_TOD_Get_uptime_as_timespec> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0025d08: e3a00000 mov r0, #0 <== NOT EXECUTED a0025d0c: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED rtems_status_code rtems_clock_get_uptime( struct timespec *uptime ) { if ( !uptime ) return RTEMS_INVALID_ADDRESS; a0025d10: e3a00009 mov r0, #9 <== NOT EXECUTED _TOD_Get_uptime_as_timespec( uptime ); return RTEMS_SUCCESSFUL; } a0025d14: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED =============================================================================== a0015d94 : #endif #include time_t rtems_clock_get_uptime_seconds( void ) { a0015d94: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED uint32_t level; #if defined(ARM_MULTILIB_ARCH_V4) uint32_t arm_switch_reg; __asm__ volatile ( a0015d98: e10f3000 mrs r3, CPSR <== NOT EXECUTED a0015d9c: e3832080 orr r2, r3, #128 ; 0x80 <== NOT EXECUTED a0015da0: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED Timestamp_Control snapshot_as_timestamp; struct timespec snapshot_as_timespec; ISR_Level level; _ISR_Disable( level ); snapshot_as_timestamp = _TOD.uptime; a0015da4: e59f2018 ldr r2, [pc, #24] ; a0015dc4 <== NOT EXECUTED a0015da8: e2821008 add r1, r2, #8 <== NOT EXECUTED a0015dac: e8910003 ldm r1, {r0, r1} <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { #if defined(ARM_MULTILIB_ARCH_V4) ARM_SWITCH_REGISTERS; __asm__ volatile ( a0015db0: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED static inline void _Timestamp64_implementation_To_timespec( const Timestamp64_Control *_timestamp, struct timespec *_timespec ) { _timespec->tv_sec = (time_t) (*_timestamp / 1000000000L); a0015db4: e59f200c ldr r2, [pc, #12] ; a0015dc8 <== NOT EXECUTED a0015db8: e3a03000 mov r3, #0 <== NOT EXECUTED a0015dbc: eb005858 bl a002bf24 <__divdi3> <== NOT EXECUTED _ISR_Enable( level ); _Timestamp_To_timespec( &snapshot_as_timestamp, &snapshot_as_timespec ); return snapshot_as_timespec.tv_sec; } a0015dc0: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED =============================================================================== a0015dcc : #endif #include void rtems_clock_get_uptime_timeval( struct timeval *uptime ) { a0015dcc: e92d40d3 push {r0, r1, r4, r6, r7, lr} <== NOT EXECUTED a0015dd0: e1a04000 mov r4, r0 <== NOT EXECUTED */ static inline void _TOD_Get_uptime( Timestamp_Control *time ) { _TOD_Get_with_nanoseconds( time, &_TOD.uptime ); a0015dd4: e59f1048 ldr r1, [pc, #72] ; a0015e24 <== NOT EXECUTED a0015dd8: e1a0000d mov r0, sp <== NOT EXECUTED a0015ddc: eb00118e bl a001a41c <_TOD_Get_with_nanoseconds> <== NOT EXECUTED Timestamp_Control snapshot_as_timestamp; _TOD_Get_uptime( &snapshot_as_timestamp ); _Timestamp_To_timeval( &snapshot_as_timestamp, uptime ); a0015de0: e89d00c0 ldm sp, {r6, r7} <== NOT EXECUTED static inline void _Timestamp64_implementation_To_timeval( const Timestamp64_Control *_timestamp, struct timeval *_timeval ) { _timeval->tv_sec = (time_t) (*_timestamp / 1000000000U); a0015de4: e59f203c ldr r2, [pc, #60] ; a0015e28 <== NOT EXECUTED a0015de8: e3a03000 mov r3, #0 <== NOT EXECUTED a0015dec: e1a00006 mov r0, r6 <== NOT EXECUTED a0015df0: e1a01007 mov r1, r7 <== NOT EXECUTED a0015df4: eb00584a bl a002bf24 <__divdi3> <== NOT EXECUTED _timeval->tv_usec = (suseconds_t) ((*_timestamp % 1000000000U) / 1000U); a0015df8: e59f2028 ldr r2, [pc, #40] ; a0015e28 <== NOT EXECUTED static inline void _Timestamp64_implementation_To_timeval( const Timestamp64_Control *_timestamp, struct timeval *_timeval ) { _timeval->tv_sec = (time_t) (*_timestamp / 1000000000U); a0015dfc: e5840000 str r0, [r4] <== NOT EXECUTED _timeval->tv_usec = (suseconds_t) ((*_timestamp % 1000000000U) / 1000U); a0015e00: e3a03000 mov r3, #0 <== NOT EXECUTED a0015e04: e1a00006 mov r0, r6 <== NOT EXECUTED a0015e08: e1a01007 mov r1, r7 <== NOT EXECUTED a0015e0c: eb00597f bl a002c410 <__moddi3> <== NOT EXECUTED a0015e10: e3a02ffa mov r2, #1000 ; 0x3e8 <== NOT EXECUTED a0015e14: e3a03000 mov r3, #0 <== NOT EXECUTED a0015e18: eb005841 bl a002bf24 <__divdi3> <== NOT EXECUTED a0015e1c: e5840004 str r0, [r4, #4] <== NOT EXECUTED } a0015e20: e8bd80dc pop {r2, r3, r4, r6, r7, pc} <== NOT EXECUTED =============================================================================== a0009b08 : #include #include #include rtems_status_code rtems_clock_tick( void ) { a0009b08: e52de004 push {lr} ; (str lr, [sp, #-4]!) _TOD_Tickle_ticks(); a0009b0c: eb000528 bl a000afb4 <_TOD_Tickle_ticks> */ RTEMS_INLINE_ROUTINE void _Watchdog_Tickle_ticks( void ) { _Watchdog_Tickle( &_Watchdog_Ticks_chain ); a0009b10: e59f0038 ldr r0, [pc, #56] ; a0009b50 a0009b14: eb000e68 bl a000d4bc <_Watchdog_Tickle> * scheduler which support standard RTEMS features, this includes * time-slicing management. */ RTEMS_INLINE_ROUTINE void _Scheduler_Tick( void ) { _Scheduler.Operations.tick(); a0009b18: e59f3034 ldr r3, [pc, #52] ; a0009b54 a0009b1c: e5933038 ldr r3, [r3, #56] ; 0x38 a0009b20: e12fff33 blx r3 * otherwise. */ RTEMS_INLINE_ROUTINE bool _Thread_Is_context_switch_necessary( void ) { return ( _Thread_Dispatch_necessary ); a0009b24: e59f302c ldr r3, [pc, #44] ; a0009b58 a0009b28: e5d33004 ldrb r3, [r3, #4] _Watchdog_Tickle_ticks(); _Scheduler_Tick(); if ( _Thread_Is_context_switch_necessary() && a0009b2c: e3530000 cmp r3, #0 a0009b30: 0a000004 beq a0009b48 * This routine returns true if thread dispatch indicates * that we are in a critical section. */ RTEMS_INLINE_ROUTINE bool _Thread_Dispatch_in_critical_section(void) { if ( _Thread_Dispatch_disable_level == 0 ) a0009b34: e59f3020 ldr r3, [pc, #32] ; a0009b5c <== NOT EXECUTED a0009b38: e5933000 ldr r3, [r3] <== NOT EXECUTED a0009b3c: e3530000 cmp r3, #0 <== NOT EXECUTED a0009b40: 1a000000 bne a0009b48 <== NOT EXECUTED _Thread_Is_dispatching_enabled() ) _Thread_Dispatch(); a0009b44: eb000aaf bl a000c608 <_Thread_Dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; } a0009b48: e3a00000 mov r0, #0 a0009b4c: e49df004 pop {pc} ; (ldr pc, [sp], #4) =============================================================================== a000c57c : rtems_status_code rtems_extension_ident( rtems_name name, rtems_id *id ) { a000c57c: e1a02000 mov r2, r0 <== NOT EXECUTED a000c580: e1a03001 mov r3, r1 <== NOT EXECUTED a000c584: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( a000c588: e1a01002 mov r1, r2 <== NOT EXECUTED a000c58c: e59f0010 ldr r0, [pc, #16] ; a000c5a4 <== NOT EXECUTED a000c590: e3e02102 mvn r2, #-2147483648 ; 0x80000000 <== NOT EXECUTED a000c594: eb0004ae bl a000d854 <_Objects_Name_to_id_u32> <== NOT EXECUTED OBJECTS_SEARCH_LOCAL_NODE, id ); return _Status_Object_name_errors_to_status[ status ]; } a000c598: e59f3008 ldr r3, [pc, #8] ; a000c5a8 <== NOT EXECUTED a000c59c: e7930100 ldr r0, [r3, r0, lsl #2] <== NOT EXECUTED a000c5a0: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED =============================================================================== a000aa78 : uint32_t level; #if defined(ARM_MULTILIB_ARCH_V4) uint32_t arm_switch_reg; __asm__ volatile ( a000aa78: e10f0000 mrs r0, CPSR <== NOT EXECUTED a000aa7c: e3803080 orr r3, r0, #128 ; 0x80 <== NOT EXECUTED a000aa80: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED rtems_interrupt_level previous_level; _ISR_Disable( previous_level ); return previous_level; } a000aa84: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000aa88 : static inline void arm_interrupt_enable( uint32_t level ) { #if defined(ARM_MULTILIB_ARCH_V4) ARM_SWITCH_REGISTERS; __asm__ volatile ( a000aa88: e129f000 msr CPSR_fc, r0 <== NOT EXECUTED void rtems_interrupt_enable( rtems_interrupt_level previous_level ) { _ISR_Enable( previous_level ); } a000aa8c: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000aa90 : static inline void arm_interrupt_flash( uint32_t level ) { #if defined(ARM_MULTILIB_ARCH_V4) uint32_t arm_switch_reg; __asm__ volatile ( a000aa90: e10f3000 mrs r3, CPSR <== NOT EXECUTED a000aa94: e129f000 msr CPSR_fc, r0 <== NOT EXECUTED a000aa98: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED void rtems_interrupt_flash( rtems_interrupt_level previous_level ) { _ISR_Flash( previous_level ); } a000aa9c: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000aaa0 : #undef rtems_interrupt_is_in_progress bool rtems_interrupt_is_in_progress( void ) { return _ISR_Is_in_progress(); a000aaa0: e59f300c ldr r3, [pc, #12] ; a000aab4 <== NOT EXECUTED a000aaa4: e5930000 ldr r0, [r3] <== NOT EXECUTED } a000aaa8: e2900000 adds r0, r0, #0 <== NOT EXECUTED a000aaac: 13a00001 movne r0, #1 <== NOT EXECUTED a000aab0: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000aab8 : Modes_Control rtems_interrupt_level_body( uint32_t level ) { return RTEMS_INTERRUPT_LEVEL(level); } a000aab8: e2000080 and r0, r0, #128 ; 0x80 <== NOT EXECUTED a000aabc: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a00108d0 : void *argument ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) a00108d0: e59fc044 ldr ip, [pc, #68] ; a001091c rtems_status_code rtems_io_close( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { a00108d4: e92d4010 push {r4, lr} rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) a00108d8: e59cc000 ldr ip, [ip] rtems_status_code rtems_io_close( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { a00108dc: e1a03000 mov r3, r0 rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) a00108e0: e150000c cmp r0, ip a00108e4: 2a000008 bcs a001090c return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].close_entry; a00108e8: e59fc030 ldr ip, [pc, #48] ; a0010920 a00108ec: e3a04018 mov r4, #24 a00108f0: e59cc000 ldr ip, [ip] a00108f4: e023c394 mla r3, r4, r3, ip a00108f8: e5933008 ldr r3, [r3, #8] return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; a00108fc: e3530000 cmp r3, #0 a0010900: 0a000003 beq a0010914 a0010904: e12fff33 blx r3 a0010908: e8bd8010 pop {r4, pc} ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) return RTEMS_INVALID_NUMBER; a001090c: e3a0000a mov r0, #10 <== NOT EXECUTED a0010910: e8bd8010 pop {r4, pc} <== NOT EXECUTED callout = _IO_Driver_address_table[major].close_entry; return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; a0010914: e1a00003 mov r0, r3 } a0010918: e8bd8010 pop {r4, pc} =============================================================================== a0010924 : void *argument ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) a0010924: e59fc044 ldr ip, [pc, #68] ; a0010970 rtems_status_code rtems_io_control( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { a0010928: e92d4010 push {r4, lr} rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) a001092c: e59cc000 ldr ip, [ip] rtems_status_code rtems_io_control( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { a0010930: e1a03000 mov r3, r0 rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) a0010934: e150000c cmp r0, ip a0010938: 2a000008 bcs a0010960 return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].control_entry; a001093c: e59fc030 ldr ip, [pc, #48] ; a0010974 a0010940: e3a04018 mov r4, #24 a0010944: e59cc000 ldr ip, [ip] a0010948: e023c394 mla r3, r4, r3, ip a001094c: e5933014 ldr r3, [r3, #20] return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; a0010950: e3530000 cmp r3, #0 a0010954: 0a000003 beq a0010968 a0010958: e12fff33 blx r3 a001095c: e8bd8010 pop {r4, pc} ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) return RTEMS_INVALID_NUMBER; a0010960: e3a0000a mov r0, #10 <== NOT EXECUTED a0010964: e8bd8010 pop {r4, pc} <== NOT EXECUTED callout = _IO_Driver_address_table[major].control_entry; return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; a0010968: e1a00003 mov r0, r3 <== NOT EXECUTED } a001096c: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a000eeb8 : void *argument ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) a000eeb8: e59fc044 ldr ip, [pc, #68] ; a000ef04 rtems_status_code rtems_io_initialize( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { a000eebc: e92d4010 push {r4, lr} rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) a000eec0: e59cc000 ldr ip, [ip] rtems_status_code rtems_io_initialize( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { a000eec4: e1a03000 mov r3, r0 rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) a000eec8: e150000c cmp r0, ip a000eecc: 2a000008 bcs a000eef4 return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].initialization_entry; a000eed0: e59fc030 ldr ip, [pc, #48] ; a000ef08 a000eed4: e3a04018 mov r4, #24 a000eed8: e0030394 mul r3, r4, r3 a000eedc: e59cc000 ldr ip, [ip] a000eee0: e79c3003 ldr r3, [ip, r3] return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; a000eee4: e3530000 cmp r3, #0 a000eee8: 0a000003 beq a000eefc a000eeec: e12fff33 blx r3 a000eef0: e8bd8010 pop {r4, pc} ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) return RTEMS_INVALID_NUMBER; a000eef4: e3a0000a mov r0, #10 <== NOT EXECUTED a000eef8: e8bd8010 pop {r4, pc} <== NOT EXECUTED callout = _IO_Driver_address_table[major].initialization_entry; return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; a000eefc: e1a00003 mov r0, r3 } a000ef00: e8bd8010 pop {r4, pc} =============================================================================== a0010978 : void *argument ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) a0010978: e59fc044 ldr ip, [pc, #68] ; a00109c4 rtems_status_code rtems_io_open( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { a001097c: e92d4010 push {r4, lr} rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) a0010980: e59cc000 ldr ip, [ip] rtems_status_code rtems_io_open( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { a0010984: e1a03000 mov r3, r0 rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) a0010988: e150000c cmp r0, ip a001098c: 2a000008 bcs a00109b4 return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].open_entry; a0010990: e59fc030 ldr ip, [pc, #48] ; a00109c8 a0010994: e3a04018 mov r4, #24 a0010998: e59cc000 ldr ip, [ip] a001099c: e023c394 mla r3, r4, r3, ip a00109a0: e5933004 ldr r3, [r3, #4] return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; a00109a4: e3530000 cmp r3, #0 a00109a8: 0a000003 beq a00109bc a00109ac: e12fff33 blx r3 a00109b0: e8bd8010 pop {r4, pc} ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) return RTEMS_INVALID_NUMBER; a00109b4: e3a0000a mov r0, #10 <== NOT EXECUTED a00109b8: e8bd8010 pop {r4, pc} <== NOT EXECUTED callout = _IO_Driver_address_table[major].open_entry; return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; a00109bc: e1a00003 mov r0, r3 } a00109c0: e8bd8010 pop {r4, pc} =============================================================================== a00109cc : void *argument ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) a00109cc: e59fc044 ldr ip, [pc, #68] ; a0010a18 rtems_status_code rtems_io_read( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { a00109d0: e92d4010 push {r4, lr} rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) a00109d4: e59cc000 ldr ip, [ip] rtems_status_code rtems_io_read( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { a00109d8: e1a03000 mov r3, r0 rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) a00109dc: e150000c cmp r0, ip a00109e0: 2a000008 bcs a0010a08 return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].read_entry; a00109e4: e59fc030 ldr ip, [pc, #48] ; a0010a1c a00109e8: e3a04018 mov r4, #24 a00109ec: e59cc000 ldr ip, [ip] a00109f0: e023c394 mla r3, r4, r3, ip a00109f4: e593300c ldr r3, [r3, #12] return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; a00109f8: e3530000 cmp r3, #0 a00109fc: 0a000003 beq a0010a10 a0010a00: e12fff33 blx r3 a0010a04: e8bd8010 pop {r4, pc} ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) return RTEMS_INVALID_NUMBER; a0010a08: e3a0000a mov r0, #10 <== NOT EXECUTED a0010a0c: e8bd8010 pop {r4, pc} <== NOT EXECUTED callout = _IO_Driver_address_table[major].read_entry; return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; a0010a10: e1a00003 mov r0, r3 } a0010a14: e8bd8010 pop {r4, pc} =============================================================================== a000baf4 : 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 ) { a000baf4: e92d4010 push {r4, lr} a000baf8: e1a04000 mov r4, r0 rtems_device_major_number major_limit = _IO_Number_of_drivers; if ( rtems_interrupt_is_in_progress() ) a000bafc: e59f015c ldr r0, [pc, #348] ; a000bc60 rtems_device_major_number major, const rtems_driver_address_table *driver_table, rtems_device_major_number *registered_major ) { rtems_device_major_number major_limit = _IO_Number_of_drivers; a000bb00: e59f315c ldr r3, [pc, #348] ; a000bc64 if ( rtems_interrupt_is_in_progress() ) a000bb04: e5900000 ldr r0, [r0] rtems_device_major_number major, const rtems_driver_address_table *driver_table, rtems_device_major_number *registered_major ) { rtems_device_major_number major_limit = _IO_Number_of_drivers; a000bb08: e5933000 ldr r3, [r3] if ( rtems_interrupt_is_in_progress() ) a000bb0c: e3500000 cmp r0, #0 a000bb10: 1a000043 bne a000bc24 return RTEMS_CALLED_FROM_ISR; if ( registered_major == NULL ) a000bb14: e3520000 cmp r2, #0 a000bb18: 0a000043 beq a000bc2c return RTEMS_INVALID_ADDRESS; /* Set it to an invalid value */ *registered_major = major_limit; if ( driver_table == NULL ) a000bb1c: e3510000 cmp r1, #0 if ( registered_major == NULL ) return RTEMS_INVALID_ADDRESS; /* Set it to an invalid value */ *registered_major = major_limit; a000bb20: e5823000 str r3, [r2] if ( driver_table == NULL ) a000bb24: 0a000040 beq a000bc2c static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; a000bb28: e5910000 ldr r0, [r1] a000bb2c: e3500000 cmp r0, #0 a000bb30: 1a000041 bne a000bc3c a000bb34: e5910004 ldr r0, [r1, #4] a000bb38: e3500000 cmp r0, #0 a000bb3c: 1a00003e bne a000bc3c a000bb40: ea000039 b a000bc2c <== NOT EXECUTED * * This rountine increments the thread dispatch level */ RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void) { uint32_t level = _Thread_Dispatch_disable_level; a000bb44: e59f311c ldr r3, [pc, #284] ; a000bc68 a000bb48: e5930000 ldr r0, [r3] ++level; a000bb4c: e2800001 add r0, r0, #1 _Thread_Dispatch_disable_level = level; a000bb50: e5830000 str r0, [r3] if ( major >= major_limit ) return RTEMS_INVALID_NUMBER; _Thread_Disable_dispatch(); if ( major == 0 ) { a000bb54: e3540000 cmp r4, #0 a000bb58: e59f010c ldr r0, [pc, #268] ; a000bc6c a000bb5c: 1a000010 bne a000bba4 static rtems_status_code rtems_io_obtain_major_number( rtems_device_major_number *major ) { rtems_device_major_number n = _IO_Number_of_drivers; a000bb60: e59f30fc ldr r3, [pc, #252] ; a000bc64 a000bb64: e593c000 ldr ip, [r3] a000bb68: e5903000 ldr r3, [r0] a000bb6c: ea000006 b a000bb8c static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; a000bb70: e5930000 ldr r0, [r3] a000bb74: e3500000 cmp r0, #0 a000bb78: 1a000032 bne a000bc48 a000bb7c: e5930004 ldr r0, [r3, #4] a000bb80: e3500000 cmp r0, #0 a000bb84: 1a00002f bne a000bc48 a000bb88: ea000001 b a000bb94 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 ) { a000bb8c: e154000c cmp r4, ip a000bb90: 1afffff6 bne a000bb70 } /* Assigns invalid value in case of failure */ *major = m; if ( m != n ) a000bb94: e154000c cmp r4, ip if ( rtems_io_is_empty_table( table ) ) break; } /* Assigns invalid value in case of failure */ *major = m; a000bb98: e5824000 str r4, [r2] if ( m != n ) a000bb9c: 1a000011 bne a000bbe8 a000bba0: ea00002b b a000bc54 _Thread_Enable_dispatch(); return sc; } major = *registered_major; } else { rtems_driver_address_table *const table = _IO_Driver_address_table + major; a000bba4: e3a03018 mov r3, #24 a000bba8: e0030394 mul r3, r4, r3 a000bbac: e5900000 ldr r0, [r0] a000bbb0: e080c003 add ip, r0, r3 static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; a000bbb4: e7903003 ldr r3, [r0, r3] a000bbb8: e3530000 cmp r3, #0 a000bbbc: 13a03000 movne r3, #0 a000bbc0: 1a000002 bne a000bbd0 return RTEMS_SUCCESSFUL; return RTEMS_TOO_MANY; } rtems_status_code rtems_io_register_driver( a000bbc4: e59c3004 ldr r3, [ip, #4] a000bbc8: e2733001 rsbs r3, r3, #1 a000bbcc: 33a03000 movcc r3, #0 } major = *registered_major; } else { rtems_driver_address_table *const table = _IO_Driver_address_table + major; if ( !rtems_io_is_empty_table( table ) ) { a000bbd0: e3530000 cmp r3, #0 _Thread_Enable_dispatch(); return RTEMS_RESOURCE_IN_USE; } *registered_major = major; a000bbd4: 15824000 strne r4, [r2] } major = *registered_major; } else { rtems_driver_address_table *const table = _IO_Driver_address_table + major; if ( !rtems_io_is_empty_table( table ) ) { a000bbd8: 1a000002 bne a000bbe8 _Thread_Enable_dispatch(); a000bbdc: eb000736 bl a000d8bc <_Thread_Enable_dispatch> return RTEMS_RESOURCE_IN_USE; a000bbe0: e3a0000c mov r0, #12 a000bbe4: e8bd8010 pop {r4, pc} } *registered_major = major; } _IO_Driver_address_table [major] = *driver_table; a000bbe8: e59f307c ldr r3, [pc, #124] ; a000bc6c a000bbec: e3a0c018 mov ip, #24 a000bbf0: e1a0e001 mov lr, r1 a000bbf4: e5933000 ldr r3, [r3] a000bbf8: e02c3c94 mla ip, r4, ip, r3 a000bbfc: e8be000f ldm lr!, {r0, r1, r2, r3} a000bc00: e8ac000f stmia ip!, {r0, r1, r2, r3} a000bc04: e89e0003 ldm lr, {r0, r1} a000bc08: e88c0003 stm ip, {r0, r1} _Thread_Enable_dispatch(); a000bc0c: eb00072a bl a000d8bc <_Thread_Enable_dispatch> return rtems_io_initialize( major, 0, NULL ); a000bc10: e3a01000 mov r1, #0 a000bc14: e1a00004 mov r0, r4 a000bc18: e1a02001 mov r2, r1 } a000bc1c: e8bd4010 pop {r4, lr} _IO_Driver_address_table [major] = *driver_table; _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL ); a000bc20: ea001c42 b a0012d30 ) { rtems_device_major_number major_limit = _IO_Number_of_drivers; if ( rtems_interrupt_is_in_progress() ) return RTEMS_CALLED_FROM_ISR; a000bc24: e3a00012 mov r0, #18 <== NOT EXECUTED a000bc28: e8bd8010 pop {r4, pc} <== NOT EXECUTED if ( driver_table == NULL ) return RTEMS_INVALID_ADDRESS; if ( rtems_io_is_empty_table( driver_table ) ) return RTEMS_INVALID_ADDRESS; a000bc2c: e3a00009 mov r0, #9 <== NOT EXECUTED a000bc30: e8bd8010 pop {r4, pc} <== NOT EXECUTED if ( major >= major_limit ) return RTEMS_INVALID_NUMBER; a000bc34: e3a0000a mov r0, #10 <== NOT EXECUTED _IO_Driver_address_table [major] = *driver_table; _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL ); } a000bc38: e8bd8010 pop {r4, pc} <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( rtems_io_is_empty_table( driver_table ) ) return RTEMS_INVALID_ADDRESS; if ( major >= major_limit ) a000bc3c: e1540003 cmp r4, r3 a000bc40: 2afffffb bcs a000bc34 a000bc44: eaffffbe b a000bb44 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 ) { a000bc48: e2844001 add r4, r4, #1 a000bc4c: e2833018 add r3, r3, #24 a000bc50: eaffffcd b a000bb8c if ( major == 0 ) { rtems_status_code sc = rtems_io_obtain_major_number( registered_major ); if ( sc != RTEMS_SUCCESSFUL ) { _Thread_Enable_dispatch(); a000bc54: eb000718 bl a000d8bc <_Thread_Enable_dispatch> *major = m; if ( m != n ) return RTEMS_SUCCESSFUL; return RTEMS_TOO_MANY; a000bc58: e3a00005 mov r0, #5 if ( major == 0 ) { rtems_status_code sc = rtems_io_obtain_major_number( registered_major ); if ( sc != RTEMS_SUCCESSFUL ) { _Thread_Enable_dispatch(); return sc; a000bc5c: e8bd8010 pop {r4, pc} =============================================================================== a000bc70 : rtems_status_code rtems_io_unregister_driver( rtems_device_major_number major ) { if ( rtems_interrupt_is_in_progress() ) a000bc70: e59f3060 ldr r3, [pc, #96] ; a000bcd8 #include rtems_status_code rtems_io_unregister_driver( rtems_device_major_number major ) { a000bc74: e92d4010 push {r4, lr} if ( rtems_interrupt_is_in_progress() ) a000bc78: e5934000 ldr r4, [r3] a000bc7c: e3540000 cmp r4, #0 a000bc80: 1a000010 bne a000bcc8 return RTEMS_CALLED_FROM_ISR; if ( major < _IO_Number_of_drivers ) { a000bc84: e59f3050 ldr r3, [pc, #80] ; a000bcdc a000bc88: e5933000 ldr r3, [r3] a000bc8c: e1500003 cmp r0, r3 a000bc90: 2a00000e bcs a000bcd0 * * This rountine increments the thread dispatch level */ RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void) { uint32_t level = _Thread_Dispatch_disable_level; a000bc94: e59f3044 ldr r3, [pc, #68] ; a000bce0 a000bc98: e5932000 ldr r2, [r3] ++level; a000bc9c: e2822001 add r2, r2, #1 _Thread_Dispatch_disable_level = level; a000bca0: e5832000 str r2, [r3] _Thread_Disable_dispatch(); memset( a000bca4: e59f3038 ldr r3, [pc, #56] ; a000bce4 &_IO_Driver_address_table[major], a000bca8: e3a02018 mov r2, #24 if ( rtems_interrupt_is_in_progress() ) return RTEMS_CALLED_FROM_ISR; if ( major < _IO_Number_of_drivers ) { _Thread_Disable_dispatch(); memset( a000bcac: e1a01004 mov r1, r4 a000bcb0: e5933000 ldr r3, [r3] a000bcb4: e0203092 mla r0, r2, r0, r3 a000bcb8: eb0025f9 bl a00154a4 &_IO_Driver_address_table[major], 0, sizeof( rtems_driver_address_table ) ); _Thread_Enable_dispatch(); a000bcbc: eb0006fe bl a000d8bc <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; a000bcc0: e1a00004 mov r0, r4 a000bcc4: e8bd8010 pop {r4, pc} rtems_status_code rtems_io_unregister_driver( rtems_device_major_number major ) { if ( rtems_interrupt_is_in_progress() ) return RTEMS_CALLED_FROM_ISR; a000bcc8: e3a00012 mov r0, #18 <== NOT EXECUTED a000bccc: e8bd8010 pop {r4, pc} <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } return RTEMS_UNSATISFIED; a000bcd0: e3a0000d mov r0, #13 <== NOT EXECUTED } a000bcd4: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a0010a20 : void *argument ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) a0010a20: e59fc044 ldr ip, [pc, #68] ; a0010a6c rtems_status_code rtems_io_write( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { a0010a24: e92d4010 push {r4, lr} rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) a0010a28: e59cc000 ldr ip, [ip] rtems_status_code rtems_io_write( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { a0010a2c: e1a03000 mov r3, r0 rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) a0010a30: e150000c cmp r0, ip a0010a34: 2a000008 bcs a0010a5c return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].write_entry; a0010a38: e59fc030 ldr ip, [pc, #48] ; a0010a70 a0010a3c: e3a04018 mov r4, #24 a0010a40: e59cc000 ldr ip, [ip] a0010a44: e023c394 mla r3, r4, r3, ip a0010a48: e5933010 ldr r3, [r3, #16] return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; a0010a4c: e3530000 cmp r3, #0 a0010a50: 0a000003 beq a0010a64 a0010a54: e12fff33 blx r3 a0010a58: e8bd8010 pop {r4, pc} ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) return RTEMS_INVALID_NUMBER; a0010a5c: e3a0000a mov r0, #10 <== NOT EXECUTED a0010a60: e8bd8010 pop {r4, pc} <== NOT EXECUTED callout = _IO_Driver_address_table[major].write_entry; return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; a0010a64: e1a00003 mov r0, r3 <== NOT EXECUTED } a0010a68: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a00165f4 : rtems_id id, const void *buffer, size_t size, uint32_t *count ) { a00165f4: e92d40f7 push {r0, r1, r2, r4, r5, r6, r7, lr} register Message_queue_Control *the_message_queue; Objects_Locations location; CORE_message_queue_Status core_status; if ( !buffer ) a00165f8: e2517000 subs r7, r1, #0 rtems_id id, const void *buffer, size_t size, uint32_t *count ) { a00165fc: e1a04000 mov r4, r0 a0016600: e1a05002 mov r5, r2 a0016604: e1a06003 mov r6, r3 register Message_queue_Control *the_message_queue; Objects_Locations location; CORE_message_queue_Status core_status; if ( !buffer ) a0016608: 0a000014 beq a0016660 return RTEMS_INVALID_ADDRESS; if ( !count ) a001660c: e3530000 cmp r3, #0 a0016610: 0a000012 beq a0016660 RTEMS_INLINE_ROUTINE Message_queue_Control *_Message_queue_Get ( Objects_Id id, Objects_Locations *location ) { return (Message_queue_Control *) a0016614: e59f004c ldr r0, [pc, #76] ; a0016668 a0016618: e1a01004 mov r1, r4 a001661c: e28d2008 add r2, sp, #8 a0016620: eb0014bf bl a001b924 <_Objects_Get> return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { a0016624: e59d3008 ldr r3, [sp, #8] a0016628: e3530000 cmp r3, #0 #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a001662c: 13a00004 movne r0, #4 if ( !count ) return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { a0016630: 1a00000b bne a0016664 case OBJECTS_LOCAL: core_status = _CORE_message_queue_Broadcast( a0016634: e88d0048 stm sp, {r3, r6} a0016638: e1a01007 mov r1, r7 a001663c: e1a03004 mov r3, r4 a0016640: e1a02005 mov r2, r5 a0016644: e2800014 add r0, r0, #20 a0016648: eb000dae bl a0019d08 <_CORE_message_queue_Broadcast> a001664c: e1a04000 mov r4, r0 NULL, #endif count ); _Thread_Enable_dispatch(); a0016650: eb00183b bl a001c744 <_Thread_Enable_dispatch> return a0016654: e1a00004 mov r0, r4 a0016658: eb0000cd bl a0016994 <_Message_queue_Translate_core_message_queue_return_code> a001665c: ea000000 b a0016664 if ( !buffer ) return RTEMS_INVALID_ADDRESS; if ( !count ) return RTEMS_INVALID_ADDRESS; a0016660: e3a00009 mov r0, #9 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a0016664: e8bd80fe pop {r1, r2, r3, r4, r5, r6, r7, pc} =============================================================================== a0011788 : uint32_t count, size_t max_message_size, rtems_attribute attribute_set, rtems_id *id ) { a0011788: e92d45f1 push {r0, r4, r5, r6, r7, r8, sl, lr} #if defined(RTEMS_MULTIPROCESSING) bool is_global; size_t max_packet_payload_size; #endif if ( !rtems_is_name_valid( name ) ) a001178c: e2507000 subs r7, r0, #0 uint32_t count, size_t max_message_size, rtems_attribute attribute_set, rtems_id *id ) { a0011790: e1a06001 mov r6, r1 a0011794: e1a05002 mov r5, r2 a0011798: e1a0a003 mov sl, r3 a001179c: e59d8020 ldr r8, [sp, #32] bool is_global; size_t max_packet_payload_size; #endif if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; a00117a0: 03a00003 moveq r0, #3 #if defined(RTEMS_MULTIPROCESSING) bool is_global; size_t max_packet_payload_size; #endif if ( !rtems_is_name_valid( name ) ) a00117a4: 0a00002e beq a0011864 return RTEMS_INVALID_NAME; if ( !id ) a00117a8: e3580000 cmp r8, #0 return RTEMS_INVALID_ADDRESS; a00117ac: 03a00009 moveq r0, #9 #endif if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; if ( !id ) a00117b0: 0a00002b beq a0011864 if ( (is_global = _Attributes_Is_global( attribute_set ) ) && !_System_state_Is_multiprocessing ) return RTEMS_MP_NOT_CONFIGURED; #endif if ( count == 0 ) a00117b4: e3510000 cmp r1, #0 return RTEMS_INVALID_NUMBER; a00117b8: 03a0000a moveq r0, #10 if ( (is_global = _Attributes_Is_global( attribute_set ) ) && !_System_state_Is_multiprocessing ) return RTEMS_MP_NOT_CONFIGURED; #endif if ( count == 0 ) a00117bc: 0a000028 beq a0011864 return RTEMS_INVALID_NUMBER; if ( max_message_size == 0 ) a00117c0: e3520000 cmp r2, #0 return RTEMS_INVALID_SIZE; a00117c4: 03a00008 moveq r0, #8 #endif if ( count == 0 ) return RTEMS_INVALID_NUMBER; if ( max_message_size == 0 ) a00117c8: 0a000025 beq a0011864 * * This rountine increments the thread dispatch level */ RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void) { uint32_t level = _Thread_Dispatch_disable_level; a00117cc: e59f3094 ldr r3, [pc, #148] ; a0011868 a00117d0: e5932000 ldr r2, [r3] ++level; a00117d4: e2822001 add r2, r2, #1 _Thread_Dispatch_disable_level = level; a00117d8: e5832000 str r2, [r3] #endif #endif _Thread_Disable_dispatch(); /* protects object pointer */ the_message_queue = _Message_queue_Allocate(); a00117dc: eb001576 bl a0016dbc <_Message_queue_Allocate> if ( !the_message_queue ) { a00117e0: e2504000 subs r4, r0, #0 a00117e4: 1a000002 bne a00117f4 _Thread_Enable_dispatch(); a00117e8: eb000c35 bl a00148c4 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_TOO_MANY; a00117ec: e3a00005 mov r0, #5 <== NOT EXECUTED a00117f0: ea00001b b a0011864 <== 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; a00117f4: e31a0004 tst sl, #4 a00117f8: 03a03000 moveq r3, #0 a00117fc: 13a03001 movne r3, #1 _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } #endif the_message_queue->attribute_set = attribute_set; a0011800: e28d1004 add r1, sp, #4 a0011804: e5213004 str r3, [r1, #-4]! a0011808: e584a010 str sl, [r4, #16] if (_Attributes_Is_priority( attribute_set ) ) the_msgq_attributes.discipline = CORE_MESSAGE_QUEUE_DISCIPLINES_PRIORITY; else the_msgq_attributes.discipline = CORE_MESSAGE_QUEUE_DISCIPLINES_FIFO; if ( ! _CORE_message_queue_Initialize( a001180c: e2840014 add r0, r4, #20 a0011810: e1a0100d mov r1, sp a0011814: e1a02006 mov r2, r6 a0011818: e1a03005 mov r3, r5 a001181c: eb00049d bl a0012a98 <_CORE_message_queue_Initialize> a0011820: e3500000 cmp r0, #0 a0011824: 1a000005 bne a0011840 */ RTEMS_INLINE_ROUTINE void _Message_queue_Free ( Message_queue_Control *the_message_queue ) { _Objects_Free( &_Message_queue_Information, &the_message_queue->Object ); a0011828: e59f003c ldr r0, [pc, #60] ; a001186c a001182c: e1a01004 mov r1, r4 a0011830: eb000843 bl a0013944 <_Objects_Free> _Objects_MP_Close( &_Message_queue_Information, the_message_queue->Object.id); #endif _Message_queue_Free( the_message_queue ); _Thread_Enable_dispatch(); a0011834: eb000c22 bl a00148c4 <_Thread_Enable_dispatch> return RTEMS_UNSATISFIED; a0011838: e3a0000d mov r0, #13 a001183c: ea000008 b a0011864 #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; a0011840: e59f2024 ldr r2, [pc, #36] ; a001186c Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( a0011844: e5943008 ldr r3, [r4, #8] a0011848: e1d410b8 ldrh r1, [r4, #8] #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; a001184c: e592201c ldr r2, [r2, #28] a0011850: e7824101 str r4, [r2, r1, lsl #2] information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; a0011854: e584700c str r7, [r4, #12] &_Message_queue_Information, &the_message_queue->Object, (Objects_Name) name ); *id = the_message_queue->Object.id; a0011858: e5883000 str r3, [r8] name, 0 ); #endif _Thread_Enable_dispatch(); a001185c: eb000c18 bl a00148c4 <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; a0011860: e3a00000 mov r0, #0 } a0011864: e8bd85f8 pop {r3, r4, r5, r6, r7, r8, sl, pc} =============================================================================== a0016804 : rtems_status_code rtems_message_queue_get_number_pending( rtems_id id, uint32_t *count ) { a0016804: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED register Message_queue_Control *the_message_queue; Objects_Locations location; if ( !count ) a0016808: e2514000 subs r4, r1, #0 <== NOT EXECUTED rtems_status_code rtems_message_queue_get_number_pending( rtems_id id, uint32_t *count ) { a001680c: e1a03000 mov r3, r0 <== NOT EXECUTED register Message_queue_Control *the_message_queue; Objects_Locations location; if ( !count ) return RTEMS_INVALID_ADDRESS; a0016810: 03a00009 moveq r0, #9 <== NOT EXECUTED ) { register Message_queue_Control *the_message_queue; Objects_Locations location; if ( !count ) a0016814: 0a00000b beq a0016848 <== NOT EXECUTED a0016818: e59f002c ldr r0, [pc, #44] ; a001684c <== NOT EXECUTED a001681c: e1a01003 mov r1, r3 <== NOT EXECUTED a0016820: e1a0200d mov r2, sp <== NOT EXECUTED a0016824: eb00143e bl a001b924 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { a0016828: e59d5000 ldr r5, [sp] <== NOT EXECUTED a001682c: e3550000 cmp r5, #0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a0016830: 13a00004 movne r0, #4 <== NOT EXECUTED if ( !count ) return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { a0016834: 1a000003 bne a0016848 <== NOT EXECUTED case OBJECTS_LOCAL: *count = the_message_queue->message_queue.number_of_pending_messages; a0016838: e590305c ldr r3, [r0, #92] ; 0x5c <== NOT EXECUTED a001683c: e5843000 str r3, [r4] <== NOT EXECUTED _Thread_Enable_dispatch(); a0016840: eb0017bf bl a001c744 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0016844: e1a00005 mov r0, r5 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a0016848: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED =============================================================================== a00118a4 : void *buffer, size_t *size, rtems_option option_set, rtems_interval timeout ) { a00118a4: e92d4077 push {r0, r1, r2, r4, r5, r6, lr} register Message_queue_Control *the_message_queue; Objects_Locations location; bool wait; if ( !buffer ) a00118a8: e2515000 subs r5, r1, #0 void *buffer, size_t *size, rtems_option option_set, rtems_interval timeout ) { a00118ac: e1a0c000 mov ip, r0 a00118b0: e1a04002 mov r4, r2 a00118b4: e1a06003 mov r6, r3 register Message_queue_Control *the_message_queue; Objects_Locations location; bool wait; if ( !buffer ) a00118b8: 0a00001a beq a0011928 return RTEMS_INVALID_ADDRESS; if ( !size ) a00118bc: e3520000 cmp r2, #0 a00118c0: 0a000018 beq a0011928 RTEMS_INLINE_ROUTINE Message_queue_Control *_Message_queue_Get ( Objects_Id id, Objects_Locations *location ) { return (Message_queue_Control *) a00118c4: e28d2008 add r2, sp, #8 a00118c8: e59f0060 ldr r0, [pc, #96] ; a0011930 a00118cc: e1a0100c mov r1, ip a00118d0: eb000873 bl a0013aa4 <_Objects_Get> return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { a00118d4: e59d2008 ldr r2, [sp, #8] a00118d8: e1a03000 mov r3, r0 a00118dc: e3520000 cmp r2, #0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a00118e0: 13a00004 movne r0, #4 if ( !size ) return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { a00118e4: 1a000010 bne a001192c if ( _Options_Is_no_wait( option_set ) ) wait = false; else wait = true; _CORE_message_queue_Seize( a00118e8: e59d201c ldr r2, [sp, #28] */ RTEMS_INLINE_ROUTINE bool _Options_Is_no_wait ( rtems_option option_set ) { return (option_set & RTEMS_NO_WAIT) ? true : false; a00118ec: e2066001 and r6, r6, #1 a00118f0: e2266001 eor r6, r6, #1 a00118f4: e58d2004 str r2, [sp, #4] a00118f8: e58d6000 str r6, [sp] a00118fc: e2830014 add r0, r3, #20 a0011900: e5931008 ldr r1, [r3, #8] a0011904: e1a02005 mov r2, r5 a0011908: e1a03004 mov r3, r4 a001190c: eb000493 bl a0012b60 <_CORE_message_queue_Seize> buffer, size, wait, timeout ); _Thread_Enable_dispatch(); a0011910: eb000beb bl a00148c4 <_Thread_Enable_dispatch> return _Message_queue_Translate_core_message_queue_return_code( _Thread_Executing->Wait.return_code a0011914: e59f3018 ldr r3, [pc, #24] ; a0011934 a0011918: e5933008 ldr r3, [r3, #8] size, wait, timeout ); _Thread_Enable_dispatch(); return _Message_queue_Translate_core_message_queue_return_code( a001191c: e5930034 ldr r0, [r3, #52] ; 0x34 a0011920: eb000023 bl a00119b4 <_Message_queue_Translate_core_message_queue_return_code> a0011924: ea000000 b a001192c if ( !buffer ) return RTEMS_INVALID_ADDRESS; if ( !size ) return RTEMS_INVALID_ADDRESS; a0011928: e3a00009 mov r0, #9 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a001192c: e8bd807e pop {r1, r2, r3, r4, r5, r6, pc} =============================================================================== a000b8f8 : int rtems_object_api_maximum_class( int api ) { return _Objects_API_maximum_class(api); a000b8f8: ea00062d b a000d1b4 <_Objects_API_maximum_class> <== NOT EXECUTED =============================================================================== a000b8fc : */ RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid( uint32_t the_api ) { if ( !the_api || the_api > OBJECTS_APIS_LAST ) a000b8fc: e2400001 sub r0, r0, #1 <== NOT EXECUTED int api ) { if ( _Objects_Is_api_valid( api ) ) return 1; return -1; a000b900: e3500003 cmp r0, #3 <== NOT EXECUTED } a000b904: 33a00001 movcc r0, #1 <== NOT EXECUTED a000b908: 23e00000 mvncs r0, #0 <== NOT EXECUTED a000b90c: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000b910 : ) { const rtems_assoc_t *api_assoc; const rtems_assoc_t *class_assoc; if ( the_api == OBJECTS_INTERNAL_API ) a000b910: e3500001 cmp r0, #1 <== NOT EXECUTED const char *rtems_object_get_api_class_name( int the_api, int the_class ) { a000b914: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED const rtems_assoc_t *api_assoc; const rtems_assoc_t *class_assoc; if ( the_api == OBJECTS_INTERNAL_API ) a000b918: 0a000003 beq a000b92c <== NOT EXECUTED api_assoc = rtems_object_api_internal_assoc; else if ( the_api == OBJECTS_CLASSIC_API ) a000b91c: e3500002 cmp r0, #2 <== NOT EXECUTED api_assoc = rtems_object_api_classic_assoc; a000b920: 059f002c ldreq r0, [pc, #44] ; a000b954 <== 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 ) a000b924: 1a000006 bne a000b944 <== NOT EXECUTED a000b928: ea000000 b a000b930 <== 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; a000b92c: e59f0024 ldr r0, [pc, #36] ; a000b958 <== 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 ); a000b930: eb0011c1 bl a001003c <== NOT EXECUTED if ( class_assoc ) a000b934: e3500000 cmp r0, #0 <== NOT EXECUTED return class_assoc->name; a000b938: 15900000 ldrne r0, [r0] <== 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 ) a000b93c: 149df004 popne {pc} ; (ldrne pc, [sp], #4) <== NOT EXECUTED a000b940: ea000001 b a000b94c <== 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"; a000b944: e59f0010 ldr r0, [pc, #16] ; a000b95c <== NOT EXECUTED a000b948: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED class_assoc = rtems_assoc_ptr_by_local( api_assoc, the_class ); if ( class_assoc ) return class_assoc->name; return "BAD CLASS"; a000b94c: e59f000c ldr r0, [pc, #12] ; a000b960 <== NOT EXECUTED } a000b950: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED =============================================================================== a000b964 : }; const char *rtems_object_get_api_name( int api ) { a000b964: e1a01000 mov r1, r0 <== NOT EXECUTED a000b968: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED const rtems_assoc_t *api_assoc; api_assoc = rtems_assoc_ptr_by_local( rtems_objects_api_assoc, api ); a000b96c: e59f0010 ldr r0, [pc, #16] ; a000b984 <== NOT EXECUTED a000b970: eb0011b1 bl a001003c <== NOT EXECUTED if ( api_assoc ) a000b974: e3500000 cmp r0, #0 <== NOT EXECUTED return api_assoc->name; a000b978: 15900000 ldrne r0, [r0] <== NOT EXECUTED return "BAD CLASS"; a000b97c: 059f0004 ldreq r0, [pc, #4] ; a000b988 <== NOT EXECUTED } a000b980: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED =============================================================================== a000b9bc : rtems_status_code rtems_object_get_class_information( int the_api, int the_class, rtems_object_api_class_information *info ) { a000b9bc: e92d4010 push {r4, lr} <== NOT EXECUTED int i; /* * Validate parameters and look up information structure. */ if ( !info ) a000b9c0: e2524000 subs r4, r2, #0 <== NOT EXECUTED a000b9c4: 0a000019 beq a000ba30 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; obj_info = _Objects_Get_information( the_api, the_class ); a000b9c8: e1a01801 lsl r1, r1, #16 <== NOT EXECUTED a000b9cc: e1a01821 lsr r1, r1, #16 <== NOT EXECUTED a000b9d0: eb0006ce bl a000d510 <_Objects_Get_information> <== NOT EXECUTED if ( !obj_info ) a000b9d4: e3500000 cmp r0, #0 <== NOT EXECUTED a000b9d8: 0a000016 beq a000ba38 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; /* * Return information about this object class to the user. */ info->minimum_id = obj_info->minimum_id; a000b9dc: e5903008 ldr r3, [r0, #8] <== NOT EXECUTED info->maximum_id = obj_info->maximum_id; info->auto_extend = obj_info->auto_extend; info->maximum = obj_info->maximum; a000b9e0: e1d011b0 ldrh r1, [r0, #16] <== NOT EXECUTED for ( unallocated=0, i=1 ; i <= info->maximum ; i++ ) a000b9e4: e3a02000 mov r2, #0 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; /* * Return information about this object class to the user. */ info->minimum_id = obj_info->minimum_id; a000b9e8: e5843000 str r3, [r4] <== NOT EXECUTED info->maximum_id = obj_info->maximum_id; a000b9ec: e590300c ldr r3, [r0, #12] <== NOT EXECUTED a000b9f0: e5843004 str r3, [r4, #4] <== NOT EXECUTED info->auto_extend = obj_info->auto_extend; a000b9f4: e5d03012 ldrb r3, [r0, #18] <== NOT EXECUTED info->maximum = obj_info->maximum; a000b9f8: e5841008 str r1, [r4, #8] <== 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; a000b9fc: e5c4300c strb r3, [r4, #12] <== NOT EXECUTED info->maximum = obj_info->maximum; for ( unallocated=0, i=1 ; i <= info->maximum ; i++ ) a000ba00: e3a03001 mov r3, #1 <== NOT EXECUTED a000ba04: ea000004 b a000ba1c <== NOT EXECUTED if ( !obj_info->local_table[i] ) a000ba08: e590c01c ldr ip, [r0, #28] <== NOT EXECUTED a000ba0c: e79cc103 ldr ip, [ip, r3, lsl #2] <== 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++ ) a000ba10: e2833001 add r3, r3, #1 <== NOT EXECUTED if ( !obj_info->local_table[i] ) a000ba14: e35c0000 cmp ip, #0 <== NOT EXECUTED unallocated++; a000ba18: 02822001 addeq r2, r2, #1 <== 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++ ) a000ba1c: e1530001 cmp r3, r1 <== NOT EXECUTED a000ba20: 9afffff8 bls a000ba08 <== NOT EXECUTED if ( !obj_info->local_table[i] ) unallocated++; info->unallocated = unallocated; a000ba24: e5842010 str r2, [r4, #16] <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000ba28: e3a00000 mov r0, #0 <== NOT EXECUTED a000ba2c: e8bd8010 pop {r4, pc} <== NOT EXECUTED /* * Validate parameters and look up information structure. */ if ( !info ) return RTEMS_INVALID_ADDRESS; a000ba30: e3a00009 mov r0, #9 <== NOT EXECUTED a000ba34: e8bd8010 pop {r4, pc} <== NOT EXECUTED obj_info = _Objects_Get_information( the_api, the_class ); if ( !obj_info ) return RTEMS_INVALID_NUMBER; a000ba38: e3a0000a mov r0, #10 <== NOT EXECUTED unallocated++; info->unallocated = unallocated; return RTEMS_SUCCESSFUL; } a000ba3c: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a000ba44 : #undef rtems_object_id_api_maximum int rtems_object_id_api_maximum(void) { return OBJECTS_APIS_LAST; } a000ba44: e3a00003 mov r0, #3 <== NOT EXECUTED a000ba48: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000ba4c : #undef rtems_object_id_api_minimum int rtems_object_id_api_minimum(void) { return OBJECTS_INTERNAL_API; } a000ba4c: e3a00001 mov r0, #1 <== NOT EXECUTED a000ba50: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000ba54 : */ RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API( Objects_Id id ) { return (Objects_APIs) ((id >> OBJECTS_API_START_BIT) & OBJECTS_API_VALID_BITS); a000ba54: e1a00c20 lsr r0, r0, #24 <== NOT EXECUTED int rtems_object_id_get_api( rtems_id id ) { return _Objects_Get_API( id ); } a000ba58: e2000007 and r0, r0, #7 <== NOT EXECUTED a000ba5c: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000ba60 : int rtems_object_id_get_class( rtems_id id ) { return _Objects_Get_class( id ); } a000ba60: e1a00da0 lsr r0, r0, #27 <== NOT EXECUTED a000ba64: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000ba68 : #undef rtems_object_id_get_index int rtems_object_id_get_index( rtems_id id ) { return _Objects_Get_index( id ); a000ba68: e1a00800 lsl r0, r0, #16 <== NOT EXECUTED } a000ba6c: e1a00820 lsr r0, r0, #16 <== NOT EXECUTED a000ba70: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000ba74 : * be a single processor system. */ #if defined(RTEMS_USE_16_BIT_OBJECT) return 1; #else return (id >> OBJECTS_NODE_START_BIT) & OBJECTS_NODE_VALID_BITS; a000ba74: e1a00820 lsr r0, r0, #16 <== NOT EXECUTED int rtems_object_id_get_node( rtems_id id ) { return _Objects_Get_node( id ); } a000ba78: e20000ff and r0, r0, #255 ; 0xff <== NOT EXECUTED a000ba7c: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000ba80 : */ rtems_status_code rtems_object_set_name( rtems_id id, const char *name ) { a000ba80: e92d4071 push {r0, r4, r5, r6, lr} <== NOT EXECUTED Objects_Information *information; Objects_Locations location; Objects_Control *the_object; Objects_Id tmpId; if ( !name ) a000ba84: e2515000 subs r5, r1, #0 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; a000ba88: 03a00009 moveq r0, #9 <== NOT EXECUTED Objects_Information *information; Objects_Locations location; Objects_Control *the_object; Objects_Id tmpId; if ( !name ) a000ba8c: 0a000016 beq a000baec <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; a000ba90: e3500000 cmp r0, #0 <== NOT EXECUTED a000ba94: 059f3054 ldreq r3, [pc, #84] ; a000baf0 <== NOT EXECUTED a000ba98: 11a04000 movne r4, r0 <== NOT EXECUTED a000ba9c: 05933008 ldreq r3, [r3, #8] <== NOT EXECUTED a000baa0: 05934008 ldreq r4, [r3, #8] <== NOT EXECUTED information = _Objects_Get_information_id( tmpId ); a000baa4: e1a00004 mov r0, r4 <== NOT EXECUTED a000baa8: eb000693 bl a000d4fc <_Objects_Get_information_id> <== NOT EXECUTED if ( !information ) a000baac: e2506000 subs r6, r0, #0 <== NOT EXECUTED a000bab0: 0a00000c beq a000bae8 <== NOT EXECUTED return RTEMS_INVALID_ID; the_object = _Objects_Get( information, tmpId, &location ); a000bab4: e1a01004 mov r1, r4 <== NOT EXECUTED a000bab8: e1a0200d mov r2, sp <== NOT EXECUTED a000babc: eb000700 bl a000d6c4 <_Objects_Get> <== NOT EXECUTED switch ( location ) { a000bac0: e59d4000 ldr r4, [sp] <== NOT EXECUTED information = _Objects_Get_information_id( tmpId ); if ( !information ) return RTEMS_INVALID_ID; the_object = _Objects_Get( information, tmpId, &location ); a000bac4: e1a01000 mov r1, r0 <== NOT EXECUTED switch ( location ) { a000bac8: e3540000 cmp r4, #0 <== NOT EXECUTED a000bacc: 1a000005 bne a000bae8 <== NOT EXECUTED case OBJECTS_LOCAL: _Objects_Set_name( information, the_object, name ); a000bad0: e1a02005 mov r2, r5 <== NOT EXECUTED a000bad4: e1a00006 mov r0, r6 <== NOT EXECUTED a000bad8: eb00076b bl a000d88c <_Objects_Set_name> <== NOT EXECUTED _Thread_Enable_dispatch(); a000badc: eb000a97 bl a000e540 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000bae0: e1a00004 mov r0, r4 <== NOT EXECUTED a000bae4: ea000000 b a000baec <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a000bae8: e3a00004 mov r0, #4 <== NOT EXECUTED } a000baec: e8bd8078 pop {r3, r4, r5, r6, pc} <== NOT EXECUTED =============================================================================== a0016a20 : uint32_t length, uint32_t buffer_size, rtems_attribute attribute_set, rtems_id *id ) { a0016a20: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} register Partition_Control *the_partition; if ( !rtems_is_name_valid( name ) ) a0016a24: e2508000 subs r8, r0, #0 uint32_t length, uint32_t buffer_size, rtems_attribute attribute_set, rtems_id *id ) { a0016a28: e1a05001 mov r5, r1 a0016a2c: e1a09002 mov r9, r2 a0016a30: e1a0a003 mov sl, r3 register Partition_Control *the_partition; if ( !rtems_is_name_valid( name ) ) a0016a34: 0a000032 beq a0016b04 return RTEMS_INVALID_NAME; if ( !starting_address ) a0016a38: e3510000 cmp r1, #0 a0016a3c: 0a000032 beq a0016b0c return RTEMS_INVALID_ADDRESS; if ( !id ) a0016a40: e59d2028 ldr r2, [sp, #40] ; 0x28 a0016a44: e3520000 cmp r2, #0 a0016a48: 0a00002f beq a0016b0c return RTEMS_INVALID_ADDRESS; if ( length == 0 || buffer_size == 0 || length < buffer_size || a0016a4c: e3590000 cmp r9, #0 a0016a50: 13530000 cmpne r3, #0 a0016a54: 0a00002e beq a0016b14 a0016a58: e1590003 cmp r9, r3 a0016a5c: 3a00002c bcc a0016b14 a0016a60: e3130003 tst r3, #3 a0016a64: 1a00002a bne a0016b14 !_Partition_Is_buffer_size_aligned( buffer_size ) ) return RTEMS_INVALID_SIZE; if ( !_Addresses_Is_aligned( starting_address ) ) a0016a68: e2116007 ands r6, r1, #7 a0016a6c: 1a00002a bne a0016b1c * * This rountine increments the thread dispatch level */ RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void) { uint32_t level = _Thread_Dispatch_disable_level; a0016a70: e59f30ac ldr r3, [pc, #172] ; a0016b24 a0016a74: e5932000 ldr r2, [r3] ++level; a0016a78: e2822001 add r2, r2, #1 _Thread_Dispatch_disable_level = level; a0016a7c: e5832000 str r2, [r3] * 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 ); a0016a80: e59f70a0 ldr r7, [pc, #160] ; a0016b28 a0016a84: e1a00007 mov r0, r7 a0016a88: eb001270 bl a001b450 <_Objects_Allocate> _Thread_Disable_dispatch(); /* prevents deletion */ the_partition = _Partition_Allocate(); if ( !the_partition ) { a0016a8c: e2504000 subs r4, r0, #0 a0016a90: 1a000002 bne a0016aa0 _Thread_Enable_dispatch(); a0016a94: eb00172a bl a001c744 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_TOO_MANY; a0016a98: e3a00005 mov r0, #5 <== NOT EXECUTED a0016a9c: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED #endif the_partition->starting_address = starting_address; the_partition->length = length; the_partition->buffer_size = buffer_size; the_partition->attribute_set = attribute_set; a0016aa0: e59d3024 ldr r3, [sp, #36] ; 0x24 the_partition->number_of_used_blocks = 0; _Chain_Initialize( &the_partition->Memory, starting_address, a0016aa4: e1a0100a mov r1, sl _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } #endif the_partition->starting_address = starting_address; a0016aa8: e5845010 str r5, [r4, #16] the_partition->length = length; the_partition->buffer_size = buffer_size; the_partition->attribute_set = attribute_set; a0016aac: e584301c str r3, [r4, #28] return RTEMS_TOO_MANY; } #endif the_partition->starting_address = starting_address; the_partition->length = length; a0016ab0: e5849014 str r9, [r4, #20] the_partition->buffer_size = buffer_size; a0016ab4: e584a018 str sl, [r4, #24] the_partition->attribute_set = attribute_set; the_partition->number_of_used_blocks = 0; a0016ab8: e5846020 str r6, [r4, #32] _Chain_Initialize( &the_partition->Memory, starting_address, a0016abc: e1a00009 mov r0, r9 a0016ac0: eb005224 bl a002b358 <__aeabi_uidiv> a0016ac4: e284b024 add fp, r4, #36 ; 0x24 a0016ac8: e1a02000 mov r2, r0 a0016acc: e1a01005 mov r1, r5 a0016ad0: e1a0000b mov r0, fp a0016ad4: e1a0300a mov r3, sl a0016ad8: eb000c7a bl a0019cc8 <_Chain_Initialize> #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; a0016adc: e597201c ldr r2, [r7, #28] Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( a0016ae0: e1d410b8 ldrh r1, [r4, #8] a0016ae4: e5943008 ldr r3, [r4, #8] #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; a0016ae8: e7824101 str r4, [r2, r1, lsl #2] &_Partition_Information, &the_partition->Object, (Objects_Name) name ); *id = the_partition->Object.id; a0016aec: e59d2028 ldr r2, [sp, #40] ; 0x28 information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; a0016af0: e584800c str r8, [r4, #12] a0016af4: e5823000 str r3, [r2] name, 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); a0016af8: eb001711 bl a001c744 <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; a0016afc: e1a00006 mov r0, r6 a0016b00: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} ) { register Partition_Control *the_partition; if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; a0016b04: e3a00003 mov r0, #3 <== NOT EXECUTED a0016b08: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED if ( !starting_address ) return RTEMS_INVALID_ADDRESS; if ( !id ) return RTEMS_INVALID_ADDRESS; a0016b0c: e3a00009 mov r0, #9 <== NOT EXECUTED a0016b10: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED if ( length == 0 || buffer_size == 0 || length < buffer_size || !_Partition_Is_buffer_size_aligned( buffer_size ) ) return RTEMS_INVALID_SIZE; a0016b14: e3a00008 mov r0, #8 <== NOT EXECUTED a0016b18: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED if ( !_Addresses_Is_aligned( starting_address ) ) return RTEMS_INVALID_ADDRESS; a0016b1c: e3a00009 mov r0, #9 <== NOT EXECUTED ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } a0016b20: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED =============================================================================== a0016b2c : #include rtems_status_code rtems_partition_delete( rtems_id id ) { a0016b2c: e92d4031 push {r0, r4, r5, lr} a0016b30: e1a01000 mov r1, r0 RTEMS_INLINE_ROUTINE Partition_Control *_Partition_Get ( Objects_Id id, Objects_Locations *location ) { return (Partition_Control *) a0016b34: e1a0200d mov r2, sp a0016b38: e59f0050 ldr r0, [pc, #80] ; a0016b90 a0016b3c: eb001378 bl a001b924 <_Objects_Get> register Partition_Control *the_partition; Objects_Locations location; the_partition = _Partition_Get( id, &location ); switch ( location ) { a0016b40: e59d3000 ldr r3, [sp] a0016b44: e1a04000 mov r4, r0 a0016b48: e3530000 cmp r3, #0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a0016b4c: 13a00004 movne r0, #4 { register Partition_Control *the_partition; Objects_Locations location; the_partition = _Partition_Get( id, &location ); switch ( location ) { a0016b50: 1a00000d bne a0016b8c case OBJECTS_LOCAL: if ( the_partition->number_of_used_blocks == 0 ) { a0016b54: e5945020 ldr r5, [r4, #32] a0016b58: e3550000 cmp r5, #0 a0016b5c: 1a000008 bne a0016b84 _Objects_Close( &_Partition_Information, &the_partition->Object ); a0016b60: e59f0028 ldr r0, [pc, #40] ; a0016b90 a0016b64: e1a01004 mov r1, r4 a0016b68: eb00125a bl a001b4d8 <_Objects_Close> */ RTEMS_INLINE_ROUTINE void _Partition_Free ( Partition_Control *the_partition ) { _Objects_Free( &_Partition_Information, &the_partition->Object ); a0016b6c: e59f001c ldr r0, [pc, #28] ; a0016b90 a0016b70: e1a01004 mov r1, r4 a0016b74: eb001304 bl a001b78c <_Objects_Free> 0 /* Not used */ ); } #endif _Thread_Enable_dispatch(); a0016b78: eb0016f1 bl a001c744 <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; a0016b7c: e1a00005 mov r0, r5 a0016b80: ea000001 b a0016b8c } _Thread_Enable_dispatch(); a0016b84: eb0016ee bl a001c744 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_RESOURCE_IN_USE; a0016b88: e3a0000c mov r0, #12 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a0016b8c: e8bd8038 pop {r3, r4, r5, pc} =============================================================================== a0016c3c : rtems_status_code rtems_partition_return_buffer( rtems_id id, void *buffer ) { a0016c3c: e92d4071 push {r0, r4, r5, r6, lr} a0016c40: e1a03000 mov r3, r0 a0016c44: e1a04001 mov r4, r1 RTEMS_INLINE_ROUTINE Partition_Control *_Partition_Get ( Objects_Id id, Objects_Locations *location ) { return (Partition_Control *) a0016c48: e59f0088 ldr r0, [pc, #136] ; a0016cd8 a0016c4c: e1a01003 mov r1, r3 a0016c50: e1a0200d mov r2, sp a0016c54: eb001332 bl a001b924 <_Objects_Get> register Partition_Control *the_partition; Objects_Locations location; the_partition = _Partition_Get( id, &location ); switch ( location ) { a0016c58: e59d3000 ldr r3, [sp] a0016c5c: e1a05000 mov r5, r0 a0016c60: e3530000 cmp r3, #0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a0016c64: 13a00004 movne r0, #4 { register Partition_Control *the_partition; Objects_Locations location; the_partition = _Partition_Get( id, &location ); switch ( location ) { a0016c68: 1a000016 bne a0016cc8 ) { void *starting; void *ending; starting = the_partition->starting_address; a0016c6c: e5950010 ldr r0, [r5, #16] a0016c70: e5953014 ldr r3, [r5, #20] a0016c74: e0803003 add r3, r0, r3 const void *address, const void *base, const void *limit ) { return (address >= base && address <= limit); a0016c78: e1540003 cmp r4, r3 a0016c7c: 83a03000 movhi r3, #0 a0016c80: 93a03001 movls r3, #1 a0016c84: e1540000 cmp r4, r0 a0016c88: 33a03000 movcc r3, #0 ending = _Addresses_Add_offset( starting, the_partition->length ); return ( _Addresses_Is_in_range( the_buffer, starting, ending ) && a0016c8c: e3530000 cmp r3, #0 a0016c90: 0a00000d beq a0016ccc offset = (uint32_t) _Addresses_Subtract( the_buffer, the_partition->starting_address ); return ((offset % the_partition->buffer_size) == 0); a0016c94: e0600004 rsb r0, r0, r4 a0016c98: e5951018 ldr r1, [r5, #24] a0016c9c: eb0051f3 bl a002b470 <__umodsi3> starting = the_partition->starting_address; ending = _Addresses_Add_offset( starting, the_partition->length ); return ( _Addresses_Is_in_range( the_buffer, starting, ending ) && a0016ca0: e2506000 subs r6, r0, #0 a0016ca4: 1a000008 bne a0016ccc RTEMS_INLINE_ROUTINE void _Partition_Free_buffer ( Partition_Control *the_partition, Chain_Node *the_buffer ) { _Chain_Append( &the_partition->Memory, the_buffer ); a0016ca8: e2850024 add r0, r5, #36 ; 0x24 a0016cac: e1a01004 mov r1, r4 a0016cb0: eb000bec bl a0019c68 <_Chain_Append> case OBJECTS_LOCAL: if ( _Partition_Is_buffer_valid( buffer, the_partition ) ) { _Partition_Free_buffer( the_partition, buffer ); the_partition->number_of_used_blocks -= 1; a0016cb4: e5953020 ldr r3, [r5, #32] a0016cb8: e2433001 sub r3, r3, #1 a0016cbc: e5853020 str r3, [r5, #32] _Thread_Enable_dispatch(); a0016cc0: eb00169f bl a001c744 <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; a0016cc4: e1a00006 mov r0, r6 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a0016cc8: e8bd8078 pop {r3, r4, r5, r6, pc} _Partition_Free_buffer( the_partition, buffer ); the_partition->number_of_used_blocks -= 1; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); a0016ccc: eb00169c bl a001c744 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; a0016cd0: e3a00009 mov r0, #9 <== NOT EXECUTED a0016cd4: eafffffb b a0016cc8 <== NOT EXECUTED =============================================================================== a001608c : void *internal_start, void *external_start, uint32_t length, rtems_id *id ) { a001608c: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} register Dual_ported_memory_Control *the_port; if ( !rtems_is_name_valid( name ) ) a0016090: e250a000 subs sl, r0, #0 void *internal_start, void *external_start, uint32_t length, rtems_id *id ) { a0016094: e1a04001 mov r4, r1 a0016098: e1a05002 mov r5, r2 a001609c: e1a09003 mov r9, r3 a00160a0: e59d6020 ldr r6, [sp, #32] register Dual_ported_memory_Control *the_port; if ( !rtems_is_name_valid( name ) ) a00160a4: 0a00001d beq a0016120 return RTEMS_INVALID_NAME; if ( !id ) a00160a8: e3560000 cmp r6, #0 a00160ac: 0a00001d beq a0016128 #include #include #include #include rtems_status_code rtems_port_create( a00160b0: e1828001 orr r8, r2, r1 return RTEMS_INVALID_NAME; if ( !id ) return RTEMS_INVALID_ADDRESS; if ( !_Addresses_Is_aligned( internal_start ) || a00160b4: e2188007 ands r8, r8, #7 a00160b8: 1a00001c bne a0016130 * * This rountine increments the thread dispatch level */ RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void) { uint32_t level = _Thread_Dispatch_disable_level; a00160bc: e59f3074 ldr r3, [pc, #116] ; a0016138 a00160c0: e5932000 ldr r2, [r3] ++level; a00160c4: e2822001 add r2, r2, #1 _Thread_Dispatch_disable_level = level; a00160c8: e5832000 str r2, [r3] * of free port control blocks. */ RTEMS_INLINE_ROUTINE Dual_ported_memory_Control *_Dual_ported_memory_Allocate ( void ) { return (Dual_ported_memory_Control *) a00160cc: e59f7068 ldr r7, [pc, #104] ; a001613c a00160d0: e1a00007 mov r0, r7 a00160d4: eb0014dd bl a001b450 <_Objects_Allocate> _Thread_Disable_dispatch(); /* to prevent deletion */ the_port = _Dual_ported_memory_Allocate(); if ( !the_port ) { a00160d8: e3500000 cmp r0, #0 a00160dc: 1a000002 bne a00160ec _Thread_Enable_dispatch(); a00160e0: eb001997 bl a001c744 <_Thread_Enable_dispatch> return RTEMS_TOO_MANY; a00160e4: e3a00005 mov r0, #5 a00160e8: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( a00160ec: e5903008 ldr r3, [r0, #8] a00160f0: e1d010b8 ldrh r1, [r0, #8] #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; a00160f4: e597201c ldr r2, [r7, #28] } the_port->internal_base = internal_start; the_port->external_base = external_start; the_port->length = length - 1; a00160f8: e2499001 sub r9, r9, #1 if ( !the_port ) { _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } the_port->internal_base = internal_start; a00160fc: e5804010 str r4, [r0, #16] the_port->external_base = external_start; a0016100: e5805014 str r5, [r0, #20] the_port->length = length - 1; a0016104: e5809018 str r9, [r0, #24] a0016108: e7820101 str r0, [r2, r1, lsl #2] information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; a001610c: e580a00c str sl, [r0, #12] &_Dual_ported_memory_Information, &the_port->Object, (Objects_Name) name ); *id = the_port->Object.id; a0016110: e5863000 str r3, [r6] _Thread_Enable_dispatch(); a0016114: eb00198a bl a001c744 <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; a0016118: e1a00008 mov r0, r8 a001611c: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} ) { register Dual_ported_memory_Control *the_port; if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; a0016120: e3a00003 mov r0, #3 <== NOT EXECUTED a0016124: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED if ( !id ) return RTEMS_INVALID_ADDRESS; a0016128: e3a00009 mov r0, #9 <== NOT EXECUTED a001612c: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED if ( !_Addresses_Is_aligned( internal_start ) || !_Addresses_Is_aligned( external_start ) ) return RTEMS_INVALID_ADDRESS; a0016130: e3a00009 mov r0, #9 <== NOT EXECUTED ); *id = the_port->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } a0016134: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED =============================================================================== a0016cdc : #include rtems_status_code rtems_rate_monotonic_cancel( rtems_id id ) { a0016cdc: e92d4031 push {r0, r4, r5, lr} a0016ce0: e1a01000 mov r1, r0 RTEMS_INLINE_ROUTINE Rate_monotonic_Control *_Rate_monotonic_Get ( Objects_Id id, Objects_Locations *location ) { return (Rate_monotonic_Control *) a0016ce4: e1a0200d mov r2, sp a0016ce8: e59f0060 ldr r0, [pc, #96] ; a0016d50 a0016cec: eb00130c bl a001b924 <_Objects_Get> Rate_monotonic_Control *the_period; Objects_Locations location; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { a0016cf0: e59d4000 ldr r4, [sp] a0016cf4: e1a05000 mov r5, r0 a0016cf8: e3540000 cmp r4, #0 #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a0016cfc: 13a00004 movne r0, #4 { Rate_monotonic_Control *the_period; Objects_Locations location; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { a0016d00: 1a000011 bne a0016d4c case OBJECTS_LOCAL: if ( !_Thread_Is_executing( the_period->owner ) ) { a0016d04: e59f3048 ldr r3, [pc, #72] ; a0016d54 a0016d08: e5952040 ldr r2, [r5, #64] ; 0x40 a0016d0c: e5933008 ldr r3, [r3, #8] a0016d10: e1520003 cmp r2, r3 a0016d14: 0a000002 beq a0016d24 _Thread_Enable_dispatch(); a0016d18: eb001689 bl a001c744 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_NOT_OWNER_OF_RESOURCE; a0016d1c: e3a00017 mov r0, #23 <== NOT EXECUTED a0016d20: ea000009 b a0016d4c <== NOT EXECUTED } (void) _Watchdog_Remove( &the_period->Timer ); a0016d24: e2850010 add r0, r5, #16 a0016d28: eb001a1d bl a001d5a4 <_Watchdog_Remove> RTEMS_INLINE_ROUTINE void _Scheduler_Release_job( Thread_Control *the_thread, uint32_t length ) { _Scheduler.Operations.release_job(the_thread, length); a0016d2c: e59f3024 ldr r3, [pc, #36] ; a0016d58 a0016d30: e5950040 ldr r0, [r5, #64] ; 0x40 a0016d34: e1a01004 mov r1, r4 a0016d38: e5933034 ldr r3, [r3, #52] ; 0x34 the_period->state = RATE_MONOTONIC_INACTIVE; a0016d3c: e5854038 str r4, [r5, #56] ; 0x38 a0016d40: e12fff33 blx r3 _Scheduler_Release_job(the_period->owner, 0); _Thread_Enable_dispatch(); a0016d44: eb00167e bl a001c744 <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; a0016d48: e1a00004 mov r0, r4 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a0016d4c: e8bd8038 pop {r3, r4, r5, pc} =============================================================================== a000a9f0 : rtems_status_code rtems_rate_monotonic_create( rtems_name name, rtems_id *id ) { a000a9f0: e92d41f0 push {r4, r5, r6, r7, r8, lr} Rate_monotonic_Control *the_period; if ( !rtems_is_name_valid( name ) ) a000a9f4: e2508000 subs r8, r0, #0 rtems_status_code rtems_rate_monotonic_create( rtems_name name, rtems_id *id ) { a000a9f8: e1a06001 mov r6, r1 Rate_monotonic_Control *the_period; if ( !rtems_is_name_valid( name ) ) a000a9fc: 0a000029 beq a000aaa8 return RTEMS_INVALID_NAME; if ( !id ) a000aa00: e3510000 cmp r1, #0 a000aa04: 0a000029 beq a000aab0 * * This rountine increments the thread dispatch level */ RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void) { uint32_t level = _Thread_Dispatch_disable_level; a000aa08: e59f30a8 ldr r3, [pc, #168] ; a000aab8 a000aa0c: e5932000 ldr r2, [r3] ++level; a000aa10: e2822001 add r2, r2, #1 _Thread_Dispatch_disable_level = level; a000aa14: e5832000 str r2, [r3] * This function allocates a period control block from * the inactive chain of free period control blocks. */ RTEMS_INLINE_ROUTINE Rate_monotonic_Control *_Rate_monotonic_Allocate( void ) { return (Rate_monotonic_Control *) a000aa18: e59f709c ldr r7, [pc, #156] ; a000aabc a000aa1c: e1a00007 mov r0, r7 a000aa20: eb0007c1 bl a000c92c <_Objects_Allocate> _Thread_Disable_dispatch(); /* to prevent deletion */ the_period = _Rate_monotonic_Allocate(); if ( !the_period ) { a000aa24: e2504000 subs r4, r0, #0 a000aa28: 1a000002 bne a000aa38 _Thread_Enable_dispatch(); a000aa2c: eb000ca5 bl a000dcc8 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_TOO_MANY; a000aa30: e3a00005 mov r0, #5 <== NOT EXECUTED a000aa34: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED } the_period->owner = _Thread_Executing; a000aa38: e59f3080 ldr r3, [pc, #128] ; a000aac0 the_period->state = RATE_MONOTONIC_INACTIVE; a000aa3c: e3a05000 mov r5, #0 _Watchdog_Initialize( &the_period->Timer, NULL, 0, NULL ); _Rate_monotonic_Reset_statistics( the_period ); a000aa40: e1a01005 mov r1, r5 if ( !the_period ) { _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } the_period->owner = _Thread_Executing; a000aa44: e5933008 ldr r3, [r3, #8] the_period->state = RATE_MONOTONIC_INACTIVE; _Watchdog_Initialize( &the_period->Timer, NULL, 0, NULL ); _Rate_monotonic_Reset_statistics( the_period ); a000aa48: e3a02038 mov r2, #56 ; 0x38 _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } the_period->owner = _Thread_Executing; the_period->state = RATE_MONOTONIC_INACTIVE; a000aa4c: e5845038 str r5, [r4, #56] ; 0x38 if ( !the_period ) { _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } the_period->owner = _Thread_Executing; a000aa50: e5843040 str r3, [r4, #64] ; 0x40 Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; a000aa54: e5845018 str r5, [r4, #24] the_watchdog->routine = routine; a000aa58: e584502c str r5, [r4, #44] ; 0x2c the_watchdog->id = id; a000aa5c: e5845030 str r5, [r4, #48] ; 0x30 the_watchdog->user_data = user_data; a000aa60: e5845034 str r5, [r4, #52] ; 0x34 the_period->state = RATE_MONOTONIC_INACTIVE; _Watchdog_Initialize( &the_period->Timer, NULL, 0, NULL ); _Rate_monotonic_Reset_statistics( the_period ); a000aa64: e2840054 add r0, r4, #84 ; 0x54 a000aa68: eb0020f4 bl a0012e40 Timestamp64_Control *_time, Timestamp64_Control _seconds, Timestamp64_Control _nanoseconds ) { *_time = _seconds * 1000000000L + _nanoseconds; a000aa6c: e59f2050 ldr r2, [pc, #80] ; a000aac4 a000aa70: e59f3050 ldr r3, [pc, #80] ; a000aac8 Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( a000aa74: e1d410b8 ldrh r1, [r4, #8] a000aa78: e584205c str r2, [r4, #92] ; 0x5c a000aa7c: e5843060 str r3, [r4, #96] ; 0x60 a000aa80: e5842074 str r2, [r4, #116] ; 0x74 a000aa84: e5843078 str r3, [r4, #120] ; 0x78 #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; a000aa88: e597201c ldr r2, [r7, #28] Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( a000aa8c: e5943008 ldr r3, [r4, #8] #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; a000aa90: e7824101 str r4, [r2, r1, lsl #2] information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; a000aa94: e584800c str r8, [r4, #12] &_Rate_monotonic_Information, &the_period->Object, (Objects_Name) name ); *id = the_period->Object.id; a000aa98: e5863000 str r3, [r6] _Thread_Enable_dispatch(); a000aa9c: eb000c89 bl a000dcc8 <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; a000aaa0: e1a00005 mov r0, r5 a000aaa4: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} ) { Rate_monotonic_Control *the_period; if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; a000aaa8: e3a00003 mov r0, #3 <== NOT EXECUTED a000aaac: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED if ( !id ) return RTEMS_INVALID_ADDRESS; a000aab0: e3a00009 mov r0, #9 <== NOT EXECUTED ); *id = the_period->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } a000aab4: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED =============================================================================== a0031748 : rtems_status_code rtems_rate_monotonic_get_statistics( rtems_id id, rtems_rate_monotonic_period_statistics *statistics ) { a0031748: e92d41f1 push {r0, r4, r5, r6, r7, r8, lr} <== NOT EXECUTED Objects_Locations location; Rate_monotonic_Control *the_period; rtems_rate_monotonic_period_statistics *dst; Rate_monotonic_Statistics *src; if ( !statistics ) a003174c: e2514000 subs r4, r1, #0 <== NOT EXECUTED rtems_status_code rtems_rate_monotonic_get_statistics( rtems_id id, rtems_rate_monotonic_period_statistics *statistics ) { a0031750: e1a03000 mov r3, r0 <== NOT EXECUTED Rate_monotonic_Control *the_period; rtems_rate_monotonic_period_statistics *dst; Rate_monotonic_Statistics *src; if ( !statistics ) return RTEMS_INVALID_ADDRESS; a0031754: 03a00009 moveq r0, #9 <== NOT EXECUTED Objects_Locations location; Rate_monotonic_Control *the_period; rtems_rate_monotonic_period_statistics *dst; Rate_monotonic_Statistics *src; if ( !statistics ) a0031758: 0a000062 beq a00318e8 <== NOT EXECUTED a003175c: e59f0188 ldr r0, [pc, #392] ; a00318ec <== NOT EXECUTED a0031760: e1a01003 mov r1, r3 <== NOT EXECUTED a0031764: e1a0200d mov r2, sp <== NOT EXECUTED a0031768: ebff6a8f bl a000c1ac <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { a003176c: e59d8000 ldr r8, [sp] <== NOT EXECUTED a0031770: e1a05000 mov r5, r0 <== NOT EXECUTED a0031774: e3580000 cmp r8, #0 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a0031778: 13a00004 movne r0, #4 <== NOT EXECUTED if ( !statistics ) return RTEMS_INVALID_ADDRESS; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { a003177c: 1a000059 bne a00318e8 <== NOT EXECUTED case OBJECTS_LOCAL: dst = statistics; src = &the_period->Statistics; dst->count = src->count; a0031780: e5953054 ldr r3, [r5, #84] ; 0x54 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a0031784: e285705c add r7, r5, #92 ; 0x5c <== NOT EXECUTED a0031788: e89700c0 ldm r7, {r6, r7} <== NOT EXECUTED static inline void _Timestamp64_implementation_To_timespec( const Timestamp64_Control *_timestamp, struct timespec *_timespec ) { _timespec->tv_sec = (time_t) (*_timestamp / 1000000000L); a003178c: e59f215c ldr r2, [pc, #348] ; a00318f0 <== NOT EXECUTED switch ( location ) { case OBJECTS_LOCAL: dst = statistics; src = &the_period->Statistics; dst->count = src->count; a0031790: e5843000 str r3, [r4] <== NOT EXECUTED dst->missed_count = src->missed_count; a0031794: e5953058 ldr r3, [r5, #88] ; 0x58 <== NOT EXECUTED a0031798: e1a00006 mov r0, r6 <== NOT EXECUTED a003179c: e1a01007 mov r1, r7 <== NOT EXECUTED a00317a0: e5843004 str r3, [r4, #4] <== NOT EXECUTED a00317a4: e3a03000 mov r3, #0 <== NOT EXECUTED a00317a8: eb0075f0 bl a004ef70 <__divdi3> <== NOT EXECUTED _timespec->tv_nsec = (long) (*_timestamp % 1000000000L); a00317ac: e1a01007 mov r1, r7 <== NOT EXECUTED static inline void _Timestamp64_implementation_To_timespec( const Timestamp64_Control *_timestamp, struct timespec *_timespec ) { _timespec->tv_sec = (time_t) (*_timestamp / 1000000000L); a00317b0: e5840008 str r0, [r4, #8] <== NOT EXECUTED _timespec->tv_nsec = (long) (*_timestamp % 1000000000L); a00317b4: e59f2134 ldr r2, [pc, #308] ; a00318f0 <== NOT EXECUTED a00317b8: e1a00006 mov r0, r6 <== NOT EXECUTED a00317bc: e3a03000 mov r3, #0 <== NOT EXECUTED a00317c0: eb007725 bl a004f45c <__moddi3> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a00317c4: e2857064 add r7, r5, #100 ; 0x64 <== NOT EXECUTED a00317c8: e89700c0 ldm r7, {r6, r7} <== NOT EXECUTED a00317cc: e584000c str r0, [r4, #12] <== NOT EXECUTED static inline void _Timestamp64_implementation_To_timespec( const Timestamp64_Control *_timestamp, struct timespec *_timespec ) { _timespec->tv_sec = (time_t) (*_timestamp / 1000000000L); a00317d0: e1a01007 mov r1, r7 <== NOT EXECUTED a00317d4: e1a00006 mov r0, r6 <== NOT EXECUTED a00317d8: e59f2110 ldr r2, [pc, #272] ; a00318f0 <== NOT EXECUTED a00317dc: e3a03000 mov r3, #0 <== NOT EXECUTED a00317e0: eb0075e2 bl a004ef70 <__divdi3> <== NOT EXECUTED _timespec->tv_nsec = (long) (*_timestamp % 1000000000L); a00317e4: e1a01007 mov r1, r7 <== NOT EXECUTED static inline void _Timestamp64_implementation_To_timespec( const Timestamp64_Control *_timestamp, struct timespec *_timespec ) { _timespec->tv_sec = (time_t) (*_timestamp / 1000000000L); a00317e8: e5840010 str r0, [r4, #16] <== NOT EXECUTED _timespec->tv_nsec = (long) (*_timestamp % 1000000000L); a00317ec: e59f20fc ldr r2, [pc, #252] ; a00318f0 <== NOT EXECUTED a00317f0: e1a00006 mov r0, r6 <== NOT EXECUTED a00317f4: e3a03000 mov r3, #0 <== NOT EXECUTED a00317f8: eb007717 bl a004f45c <__moddi3> <== NOT EXECUTED a00317fc: e285706c add r7, r5, #108 ; 0x6c <== NOT EXECUTED a0031800: e89700c0 ldm r7, {r6, r7} <== NOT EXECUTED a0031804: e5840014 str r0, [r4, #20] <== NOT EXECUTED static inline void _Timestamp64_implementation_To_timespec( const Timestamp64_Control *_timestamp, struct timespec *_timespec ) { _timespec->tv_sec = (time_t) (*_timestamp / 1000000000L); a0031808: e1a01007 mov r1, r7 <== NOT EXECUTED a003180c: e1a00006 mov r0, r6 <== NOT EXECUTED a0031810: e59f20d8 ldr r2, [pc, #216] ; a00318f0 <== NOT EXECUTED a0031814: e3a03000 mov r3, #0 <== NOT EXECUTED a0031818: eb0075d4 bl a004ef70 <__divdi3> <== NOT EXECUTED _timespec->tv_nsec = (long) (*_timestamp % 1000000000L); a003181c: e1a01007 mov r1, r7 <== NOT EXECUTED static inline void _Timestamp64_implementation_To_timespec( const Timestamp64_Control *_timestamp, struct timespec *_timespec ) { _timespec->tv_sec = (time_t) (*_timestamp / 1000000000L); a0031820: e5840018 str r0, [r4, #24] <== NOT EXECUTED _timespec->tv_nsec = (long) (*_timestamp % 1000000000L); a0031824: e59f20c4 ldr r2, [pc, #196] ; a00318f0 <== NOT EXECUTED a0031828: e1a00006 mov r0, r6 <== NOT EXECUTED a003182c: e3a03000 mov r3, #0 <== NOT EXECUTED a0031830: eb007709 bl a004f45c <__moddi3> <== NOT EXECUTED a0031834: e2857074 add r7, r5, #116 ; 0x74 <== NOT EXECUTED a0031838: e89700c0 ldm r7, {r6, r7} <== NOT EXECUTED a003183c: e584001c str r0, [r4, #28] <== NOT EXECUTED static inline void _Timestamp64_implementation_To_timespec( const Timestamp64_Control *_timestamp, struct timespec *_timespec ) { _timespec->tv_sec = (time_t) (*_timestamp / 1000000000L); a0031840: e1a01007 mov r1, r7 <== NOT EXECUTED a0031844: e1a00006 mov r0, r6 <== NOT EXECUTED a0031848: e59f20a0 ldr r2, [pc, #160] ; a00318f0 <== NOT EXECUTED a003184c: e3a03000 mov r3, #0 <== NOT EXECUTED a0031850: eb0075c6 bl a004ef70 <__divdi3> <== NOT EXECUTED _timespec->tv_nsec = (long) (*_timestamp % 1000000000L); a0031854: e1a01007 mov r1, r7 <== NOT EXECUTED static inline void _Timestamp64_implementation_To_timespec( const Timestamp64_Control *_timestamp, struct timespec *_timespec ) { _timespec->tv_sec = (time_t) (*_timestamp / 1000000000L); a0031858: e5840020 str r0, [r4, #32] <== NOT EXECUTED _timespec->tv_nsec = (long) (*_timestamp % 1000000000L); a003185c: e59f208c ldr r2, [pc, #140] ; a00318f0 <== NOT EXECUTED a0031860: e1a00006 mov r0, r6 <== NOT EXECUTED a0031864: e3a03000 mov r3, #0 <== NOT EXECUTED a0031868: eb0076fb bl a004f45c <__moddi3> <== NOT EXECUTED a003186c: e285707c add r7, r5, #124 ; 0x7c <== NOT EXECUTED a0031870: e89700c0 ldm r7, {r6, r7} <== NOT EXECUTED a0031874: e5840024 str r0, [r4, #36] ; 0x24 <== NOT EXECUTED static inline void _Timestamp64_implementation_To_timespec( const Timestamp64_Control *_timestamp, struct timespec *_timespec ) { _timespec->tv_sec = (time_t) (*_timestamp / 1000000000L); a0031878: e1a01007 mov r1, r7 <== NOT EXECUTED a003187c: e1a00006 mov r0, r6 <== NOT EXECUTED a0031880: e59f2068 ldr r2, [pc, #104] ; a00318f0 <== NOT EXECUTED a0031884: e3a03000 mov r3, #0 <== NOT EXECUTED a0031888: eb0075b8 bl a004ef70 <__divdi3> <== NOT EXECUTED _timespec->tv_nsec = (long) (*_timestamp % 1000000000L); a003188c: e1a01007 mov r1, r7 <== NOT EXECUTED static inline void _Timestamp64_implementation_To_timespec( const Timestamp64_Control *_timestamp, struct timespec *_timespec ) { _timespec->tv_sec = (time_t) (*_timestamp / 1000000000L); a0031890: e5840028 str r0, [r4, #40] ; 0x28 <== NOT EXECUTED _timespec->tv_nsec = (long) (*_timestamp % 1000000000L); a0031894: e59f2054 ldr r2, [pc, #84] ; a00318f0 <== NOT EXECUTED a0031898: e1a00006 mov r0, r6 <== NOT EXECUTED a003189c: e3a03000 mov r3, #0 <== NOT EXECUTED a00318a0: eb0076ed bl a004f45c <__moddi3> <== NOT EXECUTED a00318a4: e2857084 add r7, r5, #132 ; 0x84 <== NOT EXECUTED a00318a8: e89700c0 ldm r7, {r6, r7} <== NOT EXECUTED a00318ac: e584002c str r0, [r4, #44] ; 0x2c <== NOT EXECUTED static inline void _Timestamp64_implementation_To_timespec( const Timestamp64_Control *_timestamp, struct timespec *_timespec ) { _timespec->tv_sec = (time_t) (*_timestamp / 1000000000L); a00318b0: e59f2038 ldr r2, [pc, #56] ; a00318f0 <== NOT EXECUTED a00318b4: e3a03000 mov r3, #0 <== NOT EXECUTED a00318b8: e1a00006 mov r0, r6 <== NOT EXECUTED a00318bc: e1a01007 mov r1, r7 <== NOT EXECUTED a00318c0: eb0075aa bl a004ef70 <__divdi3> <== NOT EXECUTED _timespec->tv_nsec = (long) (*_timestamp % 1000000000L); a00318c4: e59f2024 ldr r2, [pc, #36] ; a00318f0 <== NOT EXECUTED static inline void _Timestamp64_implementation_To_timespec( const Timestamp64_Control *_timestamp, struct timespec *_timespec ) { _timespec->tv_sec = (time_t) (*_timestamp / 1000000000L); a00318c8: e5840030 str r0, [r4, #48] ; 0x30 <== NOT EXECUTED _timespec->tv_nsec = (long) (*_timestamp % 1000000000L); a00318cc: e3a03000 mov r3, #0 <== NOT EXECUTED a00318d0: e1a00006 mov r0, r6 <== NOT EXECUTED a00318d4: e1a01007 mov r1, r7 <== NOT EXECUTED a00318d8: eb0076df bl a004f45c <__moddi3> <== NOT EXECUTED a00318dc: e5840034 str r0, [r4, #52] ; 0x34 <== 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(); a00318e0: ebff6d95 bl a000cf3c <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a00318e4: e1a00008 mov r0, r8 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a00318e8: e8bd81f8 pop {r3, r4, r5, r6, r7, r8, pc} <== NOT EXECUTED =============================================================================== a00318f4 : rtems_status_code rtems_rate_monotonic_get_status( rtems_id id, rtems_rate_monotonic_period_status *status ) { a00318f4: e92d40d0 push {r4, r6, r7, lr} Objects_Locations location; Rate_monotonic_Period_time_t since_last_period; Rate_monotonic_Control *the_period; bool valid_status; if ( !status ) a00318f8: e2514000 subs r4, r1, #0 rtems_status_code rtems_rate_monotonic_get_status( rtems_id id, rtems_rate_monotonic_period_status *status ) { a00318fc: e1a03000 mov r3, r0 a0031900: e24dd014 sub sp, sp, #20 Rate_monotonic_Period_time_t since_last_period; Rate_monotonic_Control *the_period; bool valid_status; if ( !status ) return RTEMS_INVALID_ADDRESS; a0031904: 03a00009 moveq r0, #9 Objects_Locations location; Rate_monotonic_Period_time_t since_last_period; Rate_monotonic_Control *the_period; bool valid_status; if ( !status ) a0031908: 0a000038 beq a00319f0 a003190c: e1a01003 mov r1, r3 a0031910: e28d2010 add r2, sp, #16 a0031914: e59f00dc ldr r0, [pc, #220] ; a00319f8 a0031918: ebff6a23 bl a000c1ac <_Objects_Get> return RTEMS_INVALID_ADDRESS; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { a003191c: e59d2010 ldr r2, [sp, #16] a0031920: e1a03000 mov r3, r0 a0031924: e3520000 cmp r2, #0 #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a0031928: 13a00004 movne r0, #4 if ( !status ) return RTEMS_INVALID_ADDRESS; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { a003192c: 1a00002f bne a00319f0 case OBJECTS_LOCAL: status->owner = the_period->owner->Object.id; a0031930: e5932040 ldr r2, [r3, #64] ; 0x40 status->state = the_period->state; a0031934: e5933038 ldr r3, [r3, #56] ; 0x38 the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: status->owner = the_period->owner->Object.id; a0031938: e5922008 ldr r2, [r2, #8] status->state = the_period->state; /* * If the period is inactive, there is no information. */ if ( status->state == RATE_MONOTONIC_INACTIVE ) { a003193c: e3530000 cmp r3, #0 the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: status->owner = the_period->owner->Object.id; status->state = the_period->state; a0031940: e5843004 str r3, [r4, #4] the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: status->owner = the_period->owner->Object.id; a0031944: e5842000 str r2, [r4] /* * If the period is inactive, there is no information. */ if ( status->state == RATE_MONOTONIC_INACTIVE ) { #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timespec_Set_to_zero( &status->since_last_period ); a0031948: 05843008 streq r3, [r4, #8] a003194c: 0584300c streq r3, [r4, #12] _Timespec_Set_to_zero( &status->executed_since_last_period ); a0031950: 05843010 streq r3, [r4, #16] a0031954: 05843014 streq r3, [r4, #20] a0031958: 0a000022 beq a00319e8 } else { /* * Grab the current status. */ valid_status = a003195c: e28d1008 add r1, sp, #8 <== NOT EXECUTED a0031960: e1a0200d mov r2, sp <== NOT EXECUTED a0031964: eb000025 bl a0031a00 <_Rate_monotonic_Get_status> <== NOT EXECUTED _Rate_monotonic_Get_status( the_period, &since_last_period, &executed ); if (!valid_status) { a0031968: e3500000 cmp r0, #0 <== NOT EXECUTED a003196c: 1a000002 bne a003197c <== NOT EXECUTED _Thread_Enable_dispatch(); a0031970: ebff6d71 bl a000cf3c <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_NOT_DEFINED; a0031974: e3a0000b mov r0, #11 <== NOT EXECUTED a0031978: ea00001c b a00319f0 <== NOT EXECUTED } #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timestamp_To_timespec( a003197c: e28d7008 add r7, sp, #8 <== NOT EXECUTED a0031980: e89700c0 ldm r7, {r6, r7} <== NOT EXECUTED static inline void _Timestamp64_implementation_To_timespec( const Timestamp64_Control *_timestamp, struct timespec *_timespec ) { _timespec->tv_sec = (time_t) (*_timestamp / 1000000000L); a0031984: e59f2070 ldr r2, [pc, #112] ; a00319fc <== NOT EXECUTED a0031988: e1a00006 mov r0, r6 <== NOT EXECUTED a003198c: e1a01007 mov r1, r7 <== NOT EXECUTED a0031990: e3a03000 mov r3, #0 <== NOT EXECUTED a0031994: eb007575 bl a004ef70 <__divdi3> <== NOT EXECUTED _timespec->tv_nsec = (long) (*_timestamp % 1000000000L); a0031998: e1a01007 mov r1, r7 <== NOT EXECUTED static inline void _Timestamp64_implementation_To_timespec( const Timestamp64_Control *_timestamp, struct timespec *_timespec ) { _timespec->tv_sec = (time_t) (*_timestamp / 1000000000L); a003199c: e5840008 str r0, [r4, #8] <== NOT EXECUTED _timespec->tv_nsec = (long) (*_timestamp % 1000000000L); a00319a0: e59f2054 ldr r2, [pc, #84] ; a00319fc <== NOT EXECUTED a00319a4: e1a00006 mov r0, r6 <== NOT EXECUTED a00319a8: e3a03000 mov r3, #0 <== NOT EXECUTED a00319ac: eb0076aa bl a004f45c <__moddi3> <== NOT EXECUTED &since_last_period, &status->since_last_period ); _Timestamp_To_timespec( a00319b0: e89d00c0 ldm sp, {r6, r7} <== NOT EXECUTED a00319b4: e584000c str r0, [r4, #12] <== NOT EXECUTED static inline void _Timestamp64_implementation_To_timespec( const Timestamp64_Control *_timestamp, struct timespec *_timespec ) { _timespec->tv_sec = (time_t) (*_timestamp / 1000000000L); a00319b8: e59f203c ldr r2, [pc, #60] ; a00319fc <== NOT EXECUTED a00319bc: e3a03000 mov r3, #0 <== NOT EXECUTED a00319c0: e1a00006 mov r0, r6 <== NOT EXECUTED a00319c4: e1a01007 mov r1, r7 <== NOT EXECUTED a00319c8: eb007568 bl a004ef70 <__divdi3> <== NOT EXECUTED _timespec->tv_nsec = (long) (*_timestamp % 1000000000L); a00319cc: e1a01007 mov r1, r7 <== NOT EXECUTED static inline void _Timestamp64_implementation_To_timespec( const Timestamp64_Control *_timestamp, struct timespec *_timespec ) { _timespec->tv_sec = (time_t) (*_timestamp / 1000000000L); a00319d0: e5840010 str r0, [r4, #16] <== NOT EXECUTED _timespec->tv_nsec = (long) (*_timestamp % 1000000000L); a00319d4: e59f2020 ldr r2, [pc, #32] ; a00319fc <== NOT EXECUTED a00319d8: e1a00006 mov r0, r6 <== NOT EXECUTED a00319dc: e3a03000 mov r3, #0 <== NOT EXECUTED a00319e0: eb00769d bl a004f45c <__moddi3> <== NOT EXECUTED a00319e4: e5840014 str r0, [r4, #20] <== NOT EXECUTED status->since_last_period = since_last_period; status->executed_since_last_period = executed; #endif } _Thread_Enable_dispatch(); a00319e8: ebff6d53 bl a000cf3c <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; a00319ec: e3a00000 mov r0, #0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a00319f0: e28dd014 add sp, sp, #20 a00319f4: e8bd80d0 pop {r4, r6, r7, pc} =============================================================================== a0031c00 : rtems_status_code rtems_rate_monotonic_period( rtems_id id, rtems_interval length ) { a0031c00: e92d40f1 push {r0, r4, r5, r6, r7, lr} a0031c04: e1a05000 mov r5, r0 a0031c08: e1a04001 mov r4, r1 a0031c0c: e59f0184 ldr r0, [pc, #388] ; a0031d98 a0031c10: e1a01005 mov r1, r5 a0031c14: e1a0200d mov r2, sp a0031c18: ebff6963 bl a000c1ac <_Objects_Get> rtems_rate_monotonic_period_states local_state; ISR_Level level; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { a0031c1c: e59d3000 ldr r3, [sp] a0031c20: e1a06000 mov r6, r0 a0031c24: e3530000 cmp r3, #0 a0031c28: 1a000057 bne a0031d8c case OBJECTS_LOCAL: if ( !_Thread_Is_executing( the_period->owner ) ) { a0031c2c: e59f3168 ldr r3, [pc, #360] ; a0031d9c a0031c30: e5902040 ldr r2, [r0, #64] ; 0x40 a0031c34: e5933008 ldr r3, [r3, #8] a0031c38: e1520003 cmp r2, r3 a0031c3c: 0a000002 beq a0031c4c _Thread_Enable_dispatch(); a0031c40: ebff6cbd bl a000cf3c <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_NOT_OWNER_OF_RESOURCE; a0031c44: e3a04017 mov r4, #23 <== NOT EXECUTED a0031c48: ea000050 b a0031d90 <== NOT EXECUTED } if ( length == RTEMS_PERIOD_STATUS ) { a0031c4c: e3540000 cmp r4, #0 a0031c50: 1a000005 bne a0031c6c switch ( the_period->state ) { a0031c54: e5903038 ldr r3, [r0, #56] ; 0x38 a0031c58: e3530004 cmp r3, #4 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a0031c5c: 959f213c ldrls r2, [pc, #316] ; a0031da0 a0031c60: 97d24003 ldrbls r4, [r2, r3] case RATE_MONOTONIC_ACTIVE: default: /* unreached -- only to remove warnings */ return_value = RTEMS_SUCCESSFUL; break; } _Thread_Enable_dispatch(); a0031c64: ebff6cb4 bl a000cf3c <_Thread_Enable_dispatch> return( return_value ); a0031c68: ea000048 b a0031d90 uint32_t level; #if defined(ARM_MULTILIB_ARCH_V4) uint32_t arm_switch_reg; __asm__ volatile ( a0031c6c: e10f7000 mrs r7, CPSR a0031c70: e3873080 orr r3, r7, #128 ; 0x80 a0031c74: e129f003 msr CPSR_fc, r3 } _ISR_Disable( level ); if ( the_period->state == RATE_MONOTONIC_INACTIVE ) { a0031c78: e5903038 ldr r3, [r0, #56] ; 0x38 a0031c7c: e3530000 cmp r3, #0 a0031c80: 1a000011 bne a0031ccc static inline void arm_interrupt_enable( uint32_t level ) { #if defined(ARM_MULTILIB_ARCH_V4) ARM_SWITCH_REGISTERS; __asm__ volatile ( a0031c84: e129f007 msr CPSR_fc, r7 _ISR_Enable( level ); the_period->next_length = length; a0031c88: e580403c str r4, [r0, #60] ; 0x3c /* * Baseline statistics information for the beginning of a period. */ _Rate_monotonic_Initiate_statistics( the_period ); a0031c8c: ebffffb9 bl a0031b78 <_Rate_monotonic_Initiate_statistics> the_period->state = RATE_MONOTONIC_ACTIVE; a0031c90: e3a03002 mov r3, #2 a0031c94: e5863038 str r3, [r6, #56] ; 0x38 Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; a0031c98: e59f3104 ldr r3, [pc, #260] ; a0031da4 Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; a0031c9c: e3a07000 mov r7, #0 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; a0031ca0: e586401c str r4, [r6, #28] Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; a0031ca4: e586302c str r3, [r6, #44] ; 0x2c ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); a0031ca8: e59f00f8 ldr r0, [pc, #248] ; a0031da8 a0031cac: e2861010 add r1, r6, #16 Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; a0031cb0: e5867018 str r7, [r6, #24] the_watchdog->routine = routine; the_watchdog->id = id; a0031cb4: e5865030 str r5, [r6, #48] ; 0x30 the_watchdog->user_data = user_data; a0031cb8: e5867034 str r7, [r6, #52] ; 0x34 ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); a0031cbc: ebff6f73 bl a000da90 <_Watchdog_Insert> NULL ); _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; a0031cc0: e1a04007 mov r4, r7 id, NULL ); _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); a0031cc4: ebff6c9c bl a000cf3c <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; a0031cc8: ea000030 b a0031d90 } if ( the_period->state == RATE_MONOTONIC_ACTIVE ) { a0031ccc: e3530002 cmp r3, #2 a0031cd0: 1a00001a bne a0031d40 /* * Update statistics from the concluding period. */ _Rate_monotonic_Update_statistics( the_period ); a0031cd4: ebffff70 bl a0031a9c <_Rate_monotonic_Update_statistics> /* * 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; a0031cd8: e3a03001 mov r3, #1 a0031cdc: e5863038 str r3, [r6, #56] ; 0x38 the_period->next_length = length; a0031ce0: e586403c str r4, [r6, #60] ; 0x3c a0031ce4: e129f007 msr CPSR_fc, r7 _ISR_Enable( level ); _Thread_Executing->Wait.id = the_period->Object.id; a0031ce8: e59f30ac ldr r3, [pc, #172] ; a0031d9c _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); a0031cec: e3a01901 mov r1, #16384 ; 0x4000 the_period->state = RATE_MONOTONIC_OWNER_IS_BLOCKING; the_period->next_length = length; _ISR_Enable( level ); _Thread_Executing->Wait.id = the_period->Object.id; a0031cf0: e5930008 ldr r0, [r3, #8] a0031cf4: e5963008 ldr r3, [r6, #8] a0031cf8: e5803020 str r3, [r0, #32] _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); a0031cfc: ebff6e93 bl a000d750 <_Thread_Set_state> uint32_t level; #if defined(ARM_MULTILIB_ARCH_V4) uint32_t arm_switch_reg; __asm__ volatile ( a0031d00: e10f2000 mrs r2, CPSR a0031d04: e3823080 orr r3, r2, #128 ; 0x80 a0031d08: e129f003 msr CPSR_fc, r3 * Did the watchdog timer expire while we were actually blocking * on it? */ _ISR_Disable( level ); local_state = the_period->state; the_period->state = RATE_MONOTONIC_ACTIVE; a0031d0c: e3a01002 mov r1, #2 /* * Did the watchdog timer expire while we were actually blocking * on it? */ _ISR_Disable( level ); local_state = the_period->state; a0031d10: e5963038 ldr r3, [r6, #56] ; 0x38 the_period->state = RATE_MONOTONIC_ACTIVE; a0031d14: e5861038 str r1, [r6, #56] ; 0x38 static inline void arm_interrupt_enable( uint32_t level ) { #if defined(ARM_MULTILIB_ARCH_V4) ARM_SWITCH_REGISTERS; __asm__ volatile ( a0031d18: e129f002 msr CPSR_fc, r2 /* * 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 ) a0031d1c: e3530003 cmp r3, #3 a0031d20: 1a000003 bne a0031d34 _Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); a0031d24: e59f3070 ldr r3, [pc, #112] ; a0031d9c <== NOT EXECUTED a0031d28: e3a01901 mov r1, #16384 ; 0x4000 <== NOT EXECUTED a0031d2c: e5930008 ldr r0, [r3, #8] <== NOT EXECUTED a0031d30: ebff6ba4 bl a000cbc8 <_Thread_Clear_state> <== NOT EXECUTED _Thread_Enable_dispatch(); a0031d34: ebff6c80 bl a000cf3c <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; a0031d38: e3a04000 mov r4, #0 <== NOT EXECUTED a0031d3c: ea000013 b a0031d90 <== NOT EXECUTED } if ( the_period->state == RATE_MONOTONIC_EXPIRED ) { a0031d40: e3530004 cmp r3, #4 <== NOT EXECUTED a0031d44: 1a000010 bne a0031d8c <== NOT EXECUTED /* * Update statistics from the concluding period */ _Rate_monotonic_Update_statistics( the_period ); a0031d48: ebffff53 bl a0031a9c <_Rate_monotonic_Update_statistics> <== NOT EXECUTED a0031d4c: e129f007 msr CPSR_fc, r7 <== NOT EXECUTED _ISR_Enable( level ); the_period->state = RATE_MONOTONIC_ACTIVE; a0031d50: e3a03002 mov r3, #2 <== NOT EXECUTED a0031d54: e5863038 str r3, [r6, #56] ; 0x38 <== NOT EXECUTED the_period->next_length = length; a0031d58: e586403c str r4, [r6, #60] ; 0x3c <== NOT EXECUTED Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; a0031d5c: e586401c str r4, [r6, #28] <== NOT EXECUTED _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); a0031d60: e59f0040 ldr r0, [pc, #64] ; a0031da8 <== NOT EXECUTED a0031d64: e2861010 add r1, r6, #16 <== NOT EXECUTED a0031d68: ebff6f48 bl a000da90 <_Watchdog_Insert> <== NOT EXECUTED a0031d6c: e59f3038 ldr r3, [pc, #56] ; a0031dac <== NOT EXECUTED a0031d70: e5960040 ldr r0, [r6, #64] ; 0x40 <== NOT EXECUTED a0031d74: e596103c ldr r1, [r6, #60] ; 0x3c <== NOT EXECUTED a0031d78: e5933034 ldr r3, [r3, #52] ; 0x34 <== NOT EXECUTED a0031d7c: e12fff33 blx r3 <== NOT EXECUTED _Watchdog_Insert_ticks( &the_period->Timer, length ); _Scheduler_Release_job(the_period->owner, the_period->next_length); _Thread_Enable_dispatch(); return RTEMS_TIMEOUT; a0031d80: e3a04006 mov r4, #6 <== NOT EXECUTED the_period->state = RATE_MONOTONIC_ACTIVE; the_period->next_length = length; _Watchdog_Insert_ticks( &the_period->Timer, length ); _Scheduler_Release_job(the_period->owner, the_period->next_length); _Thread_Enable_dispatch(); a0031d84: ebff6c6c bl a000cf3c <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_TIMEOUT; a0031d88: ea000000 b a0031d90 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a0031d8c: e3a04004 mov r4, #4 <== NOT EXECUTED } a0031d90: e1a00004 mov r0, r4 a0031d94: e8bd80f8 pop {r3, r4, r5, r6, r7, pc} =============================================================================== a00260d4 : void rtems_rate_monotonic_report_statistics( void ) { rtems_rate_monotonic_report_statistics_with_plugin( NULL, printk_plugin ); a00260d4: e59f1004 ldr r1, [pc, #4] ; a00260e0 <== NOT EXECUTED a00260d8: e3a00000 mov r0, #0 <== NOT EXECUTED a00260dc: eaffff88 b a0025f04 <== NOT EXECUTED =============================================================================== a0025f04 : void rtems_rate_monotonic_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) { a0025f04: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED rtems_id id; rtems_rate_monotonic_period_statistics the_stats; rtems_rate_monotonic_period_status the_status; char name[5]; if ( !print ) a0025f08: e2514000 subs r4, r1, #0 <== NOT EXECUTED void rtems_rate_monotonic_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) { a0025f0c: e24dd070 sub sp, sp, #112 ; 0x70 <== NOT EXECUTED a0025f10: e1a05000 mov r5, r0 <== NOT EXECUTED rtems_id id; rtems_rate_monotonic_period_statistics the_stats; rtems_rate_monotonic_period_status the_status; char name[5]; if ( !print ) a0025f14: 0a000062 beq a00260a4 <== NOT EXECUTED return; (*print)( context, "Period information by period\n" ); a0025f18: e59f118c ldr r1, [pc, #396] ; a00260ac <== NOT EXECUTED a0025f1c: e12fff34 blx r4 <== NOT EXECUTED #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ (*print)( context, "--- CPU times are in seconds ---\n" ); a0025f20: e59f1188 ldr r1, [pc, #392] ; a00260b0 <== NOT EXECUTED a0025f24: e1a00005 mov r0, r5 <== NOT EXECUTED a0025f28: e12fff34 blx r4 <== 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 ; a0025f2c: e59f7180 ldr r7, [pc, #384] ; a00260b4 <== NOT EXECUTED return; (*print)( context, "Period information by period\n" ); #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ (*print)( context, "--- CPU times are in seconds ---\n" ); (*print)( context, "--- Wall times are in seconds ---\n" ); a0025f30: e59f1180 ldr r1, [pc, #384] ; a00260b8 <== NOT EXECUTED a0025f34: e1a00005 mov r0, r5 <== NOT EXECUTED a0025f38: e12fff34 blx r4 <== NOT EXECUTED Be sure to test the various cases. (*print)( context,"\ 1234567890123456789012345678901234567890123456789012345678901234567890123456789\ \n"); */ (*print)( context, " ID OWNER COUNT MISSED " a0025f3c: e59f1178 ldr r1, [pc, #376] ; a00260bc <== NOT EXECUTED a0025f40: e1a00005 mov r0, r5 <== NOT EXECUTED a0025f44: e12fff34 blx r4 <== NOT EXECUTED #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ " " #endif " WALL TIME\n" ); (*print)( context, " " a0025f48: e1a00005 mov r0, r5 <== NOT EXECUTED a0025f4c: e59f116c ldr r1, [pc, #364] ; a00260c0 <== NOT EXECUTED a0025f50: e12fff34 blx r4 <== NOT EXECUTED { #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ 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; a0025f54: e28d8028 add r8, sp, #40 ; 0x28 <== 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 ; a0025f58: e5976008 ldr r6, [r7, #8] <== NOT EXECUTED a0025f5c: ea00004d b a0026098 <== NOT EXECUTED id <= _Rate_monotonic_Information.maximum_id ; id++ ) { status = rtems_rate_monotonic_get_statistics( id, &the_stats ); a0025f60: e1a00006 mov r0, r6 <== NOT EXECUTED a0025f64: e28d1010 add r1, sp, #16 <== NOT EXECUTED a0025f68: eb002df6 bl a0031748 <== NOT EXECUTED if ( status != RTEMS_SUCCESSFUL ) a0025f6c: e3500000 cmp r0, #0 <== NOT EXECUTED a0025f70: 1a000047 bne a0026094 <== NOT EXECUTED #if defined(RTEMS_DEBUG) status = rtems_rate_monotonic_get_status( id, &the_status ); if ( status != RTEMS_SUCCESSFUL ) continue; #else (void) rtems_rate_monotonic_get_status( id, &the_status ); a0025f74: e28d1048 add r1, sp, #72 ; 0x48 <== NOT EXECUTED a0025f78: e1a00006 mov r0, r6 <== NOT EXECUTED a0025f7c: eb002e5c bl a00318f4 <== NOT EXECUTED #endif rtems_object_get_name( the_status.owner, sizeof(name), name ); a0025f80: e3a01005 mov r1, #5 <== NOT EXECUTED a0025f84: e28d2068 add r2, sp, #104 ; 0x68 <== NOT EXECUTED a0025f88: e59d0048 ldr r0, [sp, #72] ; 0x48 <== NOT EXECUTED a0025f8c: ebffad76 bl a001156c <== NOT EXECUTED /* * Print part of report line that is not dependent on granularity */ (*print)( context, a0025f90: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED a0025f94: e59f1128 ldr r1, [pc, #296] ; a00260c4 <== NOT EXECUTED a0025f98: e1a00005 mov r0, r5 <== NOT EXECUTED a0025f9c: e58d3000 str r3, [sp] <== NOT EXECUTED a0025fa0: e59d3014 ldr r3, [sp, #20] <== NOT EXECUTED a0025fa4: e1a02006 mov r2, r6 <== NOT EXECUTED a0025fa8: e58d3004 str r3, [sp, #4] <== NOT EXECUTED a0025fac: e28d3068 add r3, sp, #104 ; 0x68 <== NOT EXECUTED a0025fb0: e12fff34 blx r4 <== NOT EXECUTED ); /* * If the count is zero, don't print statistics */ if (the_stats.count == 0) { a0025fb4: e59d1010 ldr r1, [sp, #16] <== NOT EXECUTED a0025fb8: e3510000 cmp r1, #0 <== NOT EXECUTED a0025fbc: 1a000003 bne a0025fd0 <== NOT EXECUTED (*print)( context, "\n" ); a0025fc0: e1a00005 mov r0, r5 <== NOT EXECUTED a0025fc4: e59f10fc ldr r1, [pc, #252] ; a00260c8 <== NOT EXECUTED a0025fc8: e12fff34 blx r4 <== NOT EXECUTED continue; a0025fcc: ea000030 b a0026094 <== 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 ); a0025fd0: e28d2060 add r2, sp, #96 ; 0x60 <== NOT EXECUTED a0025fd4: e1a00008 mov r0, r8 <== NOT EXECUTED a0025fd8: eb000274 bl a00269b0 <_Timespec_Divide_by_integer> <== NOT EXECUTED (*print)( context, a0025fdc: e59d001c ldr r0, [sp, #28] <== NOT EXECUTED a0025fe0: e3a01ffa mov r1, #1000 ; 0x3e8 <== NOT EXECUTED a0025fe4: eb00a05e bl a004e164 <__aeabi_idiv> <== NOT EXECUTED a0025fe8: e59d3020 ldr r3, [sp, #32] <== NOT EXECUTED a0025fec: e1a0a000 mov sl, r0 <== NOT EXECUTED a0025ff0: e3a01ffa mov r1, #1000 ; 0x3e8 <== NOT EXECUTED a0025ff4: e59d0024 ldr r0, [sp, #36] ; 0x24 <== NOT EXECUTED a0025ff8: e58d3000 str r3, [sp] <== NOT EXECUTED a0025ffc: eb00a058 bl a004e164 <__aeabi_idiv> <== NOT EXECUTED a0026000: e59d3060 ldr r3, [sp, #96] ; 0x60 <== NOT EXECUTED a0026004: e58d0004 str r0, [sp, #4] <== NOT EXECUTED a0026008: e3a01ffa mov r1, #1000 ; 0x3e8 <== NOT EXECUTED a002600c: e59d0064 ldr r0, [sp, #100] ; 0x64 <== NOT EXECUTED a0026010: e58d3008 str r3, [sp, #8] <== NOT EXECUTED a0026014: eb00a052 bl a004e164 <__aeabi_idiv> <== NOT EXECUTED a0026018: e1a0300a mov r3, sl <== NOT EXECUTED a002601c: e58d000c str r0, [sp, #12] <== NOT EXECUTED a0026020: e59f10a4 ldr r1, [pc, #164] ; a00260cc <== NOT EXECUTED a0026024: e59d2018 ldr r2, [sp, #24] <== NOT EXECUTED a0026028: e1a00005 mov r0, r5 <== NOT EXECUTED a002602c: e12fff34 blx r4 <== 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); a0026030: e28d2060 add r2, sp, #96 ; 0x60 <== NOT EXECUTED a0026034: e28d0040 add r0, sp, #64 ; 0x40 <== NOT EXECUTED a0026038: e59d1010 ldr r1, [sp, #16] <== NOT EXECUTED a002603c: eb00025b bl a00269b0 <_Timespec_Divide_by_integer> <== NOT EXECUTED (*print)( context, a0026040: e3a01ffa mov r1, #1000 ; 0x3e8 <== NOT EXECUTED a0026044: e59d0034 ldr r0, [sp, #52] ; 0x34 <== NOT EXECUTED a0026048: eb00a045 bl a004e164 <__aeabi_idiv> <== NOT EXECUTED a002604c: e59d3038 ldr r3, [sp, #56] ; 0x38 <== NOT EXECUTED a0026050: e1a0a000 mov sl, r0 <== NOT EXECUTED a0026054: e3a01ffa mov r1, #1000 ; 0x3e8 <== NOT EXECUTED a0026058: e59d003c ldr r0, [sp, #60] ; 0x3c <== NOT EXECUTED a002605c: e58d3000 str r3, [sp] <== NOT EXECUTED a0026060: eb00a03f bl a004e164 <__aeabi_idiv> <== NOT EXECUTED a0026064: e59d3060 ldr r3, [sp, #96] ; 0x60 <== NOT EXECUTED a0026068: e58d0004 str r0, [sp, #4] <== NOT EXECUTED a002606c: e3a01ffa mov r1, #1000 ; 0x3e8 <== NOT EXECUTED a0026070: e59d0064 ldr r0, [sp, #100] ; 0x64 <== NOT EXECUTED a0026074: e58d3008 str r3, [sp, #8] <== NOT EXECUTED a0026078: eb00a039 bl a004e164 <__aeabi_idiv> <== NOT EXECUTED a002607c: e59f104c ldr r1, [pc, #76] ; a00260d0 <== NOT EXECUTED a0026080: e58d000c str r0, [sp, #12] <== NOT EXECUTED a0026084: e59d2030 ldr r2, [sp, #48] ; 0x30 <== NOT EXECUTED a0026088: e1a00005 mov r0, r5 <== NOT EXECUTED a002608c: e1a0300a mov r3, sl <== NOT EXECUTED a0026090: e12fff34 blx r4 <== 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++ ) { a0026094: e2866001 add r6, r6, #1 <== 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 ; a0026098: e597300c ldr r3, [r7, #12] <== NOT EXECUTED a002609c: e1560003 cmp r6, r3 <== NOT EXECUTED a00260a0: 9affffae bls a0025f60 <== NOT EXECUTED the_stats.min_wall_time, the_stats.max_wall_time, ival_wall, fval_wall ); #endif } } } a00260a4: e28dd070 add sp, sp, #112 ; 0x70 <== NOT EXECUTED a00260a8: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED =============================================================================== a00260e4 : * * This rountine increments the thread dispatch level */ RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void) { uint32_t level = _Thread_Dispatch_disable_level; a00260e4: e59f3038 ldr r3, [pc, #56] ; a0026124 <== NOT EXECUTED /* * rtems_rate_monotonic_reset_all_statistics */ void rtems_rate_monotonic_reset_all_statistics( void ) { a00260e8: e92d4030 push {r4, r5, lr} <== NOT EXECUTED a00260ec: e5932000 ldr r2, [r3] <== NOT EXECUTED ++level; a00260f0: e2822001 add r2, r2, #1 <== NOT EXECUTED _Thread_Dispatch_disable_level = level; a00260f4: e5832000 str r2, [r3] <== 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 ; a00260f8: e59f5028 ldr r5, [pc, #40] ; a0026128 <== NOT EXECUTED a00260fc: e5954008 ldr r4, [r5, #8] <== NOT EXECUTED a0026100: ea000002 b a0026110 <== NOT EXECUTED id <= _Rate_monotonic_Information.maximum_id ; id++ ) { (void) rtems_rate_monotonic_reset_statistics( id ); a0026104: e1a00004 mov r0, r4 <== NOT EXECUTED a0026108: eb000007 bl a002612c <== 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++ ) { a002610c: e2844001 add r4, r4, #1 <== 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 ; a0026110: e595300c ldr r3, [r5, #12] <== NOT EXECUTED a0026114: e1540003 cmp r4, r3 <== NOT EXECUTED a0026118: 9afffff9 bls a0026104 <== NOT EXECUTED /* * Done so exit thread dispatching disabled critical section. */ _Thread_Enable_dispatch(); } a002611c: e8bd4030 pop {r4, r5, lr} <== NOT EXECUTED } /* * Done so exit thread dispatching disabled critical section. */ _Thread_Enable_dispatch(); a0026120: eaff9b85 b a000cf3c <_Thread_Enable_dispatch> <== NOT EXECUTED =============================================================================== a002612c : */ rtems_status_code rtems_rate_monotonic_reset_statistics( rtems_id id ) { a002612c: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED a0026130: e1a01000 mov r1, r0 <== NOT EXECUTED RTEMS_INLINE_ROUTINE Rate_monotonic_Control *_Rate_monotonic_Get ( Objects_Id id, Objects_Locations *location ) { return (Rate_monotonic_Control *) a0026134: e1a0200d mov r2, sp <== NOT EXECUTED a0026138: e59f0048 ldr r0, [pc, #72] ; a0026188 <== NOT EXECUTED a002613c: ebff981a bl a000c1ac <_Objects_Get> <== NOT EXECUTED Objects_Locations location; Rate_monotonic_Control *the_period; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { a0026140: e59d4000 ldr r4, [sp] <== NOT EXECUTED a0026144: e1a05000 mov r5, r0 <== NOT EXECUTED a0026148: e3540000 cmp r4, #0 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a002614c: 13a00004 movne r0, #4 <== NOT EXECUTED { Objects_Locations location; Rate_monotonic_Control *the_period; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { a0026150: 1a00000b bne a0026184 <== NOT EXECUTED case OBJECTS_LOCAL: _Rate_monotonic_Reset_statistics( the_period ); a0026154: e1a01004 mov r1, r4 <== NOT EXECUTED a0026158: e3a02038 mov r2, #56 ; 0x38 <== NOT EXECUTED a002615c: e2850054 add r0, r5, #84 ; 0x54 <== NOT EXECUTED a0026160: eb004928 bl a0038608 <== NOT EXECUTED a0026164: e59f2020 ldr r2, [pc, #32] ; a002618c <== NOT EXECUTED a0026168: e59f3020 ldr r3, [pc, #32] ; a0026190 <== NOT EXECUTED a002616c: e585205c str r2, [r5, #92] ; 0x5c <== NOT EXECUTED a0026170: e5853060 str r3, [r5, #96] ; 0x60 <== NOT EXECUTED a0026174: e5852074 str r2, [r5, #116] ; 0x74 <== NOT EXECUTED a0026178: e5853078 str r3, [r5, #120] ; 0x78 <== NOT EXECUTED _Thread_Enable_dispatch(); a002617c: ebff9b6e bl a000cf3c <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0026180: e1a00004 mov r0, r4 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a0026184: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED =============================================================================== a000b1c4 : return big_enough; } void *rtems_rbheap_allocate(rtems_rbheap_control *control, size_t size) { a000b1c4: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} void *ptr = NULL; rtems_chain_control *free_chain = &control->free_chunk_chain; rtems_rbtree_control *chunk_tree = &control->chunk_tree; uintptr_t alignment = control->alignment; a000b1c8: e5906030 ldr r6, [r0, #48] ; 0x30 return big_enough; } void *rtems_rbheap_allocate(rtems_rbheap_control *control, size_t size) { a000b1cc: e1a05001 mov r5, r1 a000b1d0: e1a04000 mov r4, r0 #include static uintptr_t align_up(uintptr_t alignment, uintptr_t value) { uintptr_t excess = value % alignment; a000b1d4: e1a00001 mov r0, r1 a000b1d8: e1a01006 mov r1, r6 a000b1dc: eb003f35 bl a001aeb8 <__umodsi3> if (excess > 0) { a000b1e0: e3500000 cmp r0, #0 value += alignment - excess; a000b1e4: 10856006 addne r6, r5, r6 a000b1e8: 10606006 rsbne r6, r0, r6 static uintptr_t align_up(uintptr_t alignment, uintptr_t value) { uintptr_t excess = value % alignment; if (excess > 0) { a000b1ec: 01a06005 moveq r6, r5 rtems_chain_control *free_chain = &control->free_chunk_chain; rtems_rbtree_control *chunk_tree = &control->chunk_tree; uintptr_t alignment = control->alignment; uintptr_t aligned_size = align_up(alignment, size); if (size > 0 && size <= aligned_size) { a000b1f0: e1550006 cmp r5, r6 a000b1f4: 83a00000 movhi r0, #0 a000b1f8: 93a00001 movls r0, #1 a000b1fc: e3550000 cmp r5, #0 a000b200: 03a00000 moveq r0, #0 a000b204: e3500000 cmp r0, #0 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First( Chain_Control *the_chain ) { return _Chain_Head( the_chain )->next; a000b208: 11a02004 movne r2, r4 a000b20c: 14923004 ldrne r3, [r2], #4 size_t size ) { rtems_chain_node *current = rtems_chain_first(free_chain); const rtems_chain_node *tail = rtems_chain_tail(free_chain); rtems_rbheap_chunk *big_enough = NULL; a000b210: 13a07000 movne r7, #0 rtems_chain_control *free_chain = &control->free_chunk_chain; rtems_rbtree_control *chunk_tree = &control->chunk_tree; uintptr_t alignment = control->alignment; uintptr_t aligned_size = align_up(alignment, size); if (size > 0 && size <= aligned_size) { a000b214: 1a000005 bne a000b230 a000b218: ea000039 b a000b304 rtems_rbheap_chunk *big_enough = NULL; while (current != tail && big_enough == NULL) { rtems_rbheap_chunk *free_chunk = (rtems_rbheap_chunk *) current; if (free_chunk->size >= size) { a000b21c: e593701c ldr r7, [r3, #28] a000b220: e1570006 cmp r7, r6 a000b224: 21a07003 movcs r7, r3 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Next( Chain_Node *the_node ) { return the_node->next; a000b228: e5933000 ldr r3, [r3] a000b22c: 33a07000 movcc r7, #0 { rtems_chain_node *current = rtems_chain_first(free_chain); const rtems_chain_node *tail = rtems_chain_tail(free_chain); rtems_rbheap_chunk *big_enough = NULL; while (current != tail && big_enough == NULL) { a000b230: e2778001 rsbs r8, r7, #1 a000b234: 33a08000 movcc r8, #0 a000b238: e1530002 cmp r3, r2 a000b23c: 03a08000 moveq r8, #0 a000b240: e3580000 cmp r8, #0 a000b244: 1afffff4 bne a000b21c uintptr_t aligned_size = align_up(alignment, size); if (size > 0 && size <= aligned_size) { rtems_rbheap_chunk *free_chunk = search_free_chunk(free_chain, aligned_size); if (free_chunk != NULL) { a000b248: e3570000 cmp r7, #0 a000b24c: 0a000029 beq a000b2f8 uintptr_t free_size = free_chunk->size; a000b250: e597901c ldr r9, [r7, #28] if (free_size > aligned_size) { a000b254: e1590006 cmp r9, r6 a000b258: 9a00001f bls a000b2dc */ RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first( const Chain_Control *the_chain ) { return _Chain_Immutable_head( the_chain )->next; a000b25c: e1a0a004 mov sl, r4 a000b260: e5ba500c ldr r5, [sl, #12]! RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( const Chain_Control *the_chain ) { return _Chain_Immutable_first( the_chain ) == _Chain_Immutable_tail( the_chain ); a000b264: e2843010 add r3, r4, #16 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected( Chain_Control *the_chain ) { if ( !_Chain_Is_empty(the_chain)) a000b268: e1550003 cmp r5, r3 Chain_Control *the_chain ) { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *old_first = head->next; Chain_Node *new_first = old_first->next; a000b26c: 15953000 ldrne r3, [r5] head->next = new_first; a000b270: 1584300c strne r3, [r4, #12] new_first->previous = head; a000b274: 1583a004 strne sl, [r3, #4] */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected( Chain_Control *the_chain ) { if ( !_Chain_Is_empty(the_chain)) a000b278: 1a000009 bne a000b2a4 { rtems_chain_control *chain = &control->spare_descriptor_chain; rtems_chain_node *chunk = rtems_chain_get_unprotected(chain); if (chunk == NULL) { (*control->extend_descriptors)(control); a000b27c: e5943034 ldr r3, [r4, #52] ; 0x34 <== NOT EXECUTED a000b280: e1a00004 mov r0, r4 <== NOT EXECUTED a000b284: e12fff33 blx r3 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first( const Chain_Control *the_chain ) { return _Chain_Immutable_head( the_chain )->next; a000b288: e594300c ldr r3, [r4, #12] <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected( Chain_Control *the_chain ) { if ( !_Chain_Is_empty(the_chain)) a000b28c: e1530005 cmp r3, r5 <== NOT EXECUTED a000b290: 0a00001a beq a000b300 <== NOT EXECUTED Chain_Control *the_chain ) { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *old_first = head->next; Chain_Node *new_first = old_first->next; a000b294: e5932000 ldr r2, [r3] <== NOT EXECUTED head->next = new_first; new_first->previous = head; a000b298: e1a05003 mov r5, r3 <== NOT EXECUTED { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *old_first = head->next; Chain_Node *new_first = old_first->next; head->next = new_first; a000b29c: e584200c str r2, [r4, #12] <== NOT EXECUTED new_first->previous = head; a000b2a0: e582a004 str sl, [r2, #4] <== NOT EXECUTED if (new_chunk != NULL) { uintptr_t new_free_size = free_size - aligned_size; free_chunk->size = new_free_size; new_chunk->begin = free_chunk->begin + new_free_size; a000b2a4: e5973018 ldr r3, [r7, #24] if (free_size > aligned_size) { rtems_rbheap_chunk *new_chunk = get_chunk(control); if (new_chunk != NULL) { uintptr_t new_free_size = free_size - aligned_size; a000b2a8: e0669009 rsb r9, r6, r9 free_chunk->size = new_free_size; a000b2ac: e587901c str r9, [r7, #28] */ RTEMS_INLINE_ROUTINE void _Chain_Set_off_chain( Chain_Node *node ) { node->next = node->previous = NULL; a000b2b0: e1a01005 mov r1, r5 new_chunk->begin = free_chunk->begin + new_free_size; a000b2b4: e0899003 add r9, r9, r3 a000b2b8: e3a03000 mov r3, #0 a000b2bc: e5859018 str r9, [r5, #24] new_chunk->size = aligned_size; a000b2c0: e585601c str r6, [r5, #28] a000b2c4: e5853004 str r3, [r5, #4] a000b2c8: e4813008 str r3, [r1], #8 static void insert_into_tree( rtems_rbtree_control *tree, rtems_rbheap_chunk *chunk ) { _RBTree_Insert_unprotected(tree, &chunk->tree_node); a000b2cc: e2840018 add r0, r4, #24 a000b2d0: eb00065d bl a000cc4c <_RBTree_Insert_unprotected> free_chunk->size = new_free_size; new_chunk->begin = free_chunk->begin + new_free_size; new_chunk->size = aligned_size; rtems_chain_set_off_chain(&new_chunk->chain_node); insert_into_tree(chunk_tree, new_chunk); ptr = (void *) new_chunk->begin; a000b2d4: e5950018 ldr r0, [r5, #24] a000b2d8: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} { Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; a000b2dc: e897000c ldm r7, {r2, r3} } } else { rtems_chain_extract_unprotected(&free_chunk->chain_node); rtems_chain_set_off_chain(&free_chunk->chain_node); ptr = (void *) free_chunk->begin; a000b2e0: e5970018 ldr r0, [r7, #24] next->previous = previous; a000b2e4: e5823004 str r3, [r2, #4] previous->next = next; a000b2e8: e5832000 str r2, [r3] */ RTEMS_INLINE_ROUTINE void _Chain_Set_off_chain( Chain_Node *node ) { node->next = node->previous = NULL; a000b2ec: e5878004 str r8, [r7, #4] a000b2f0: e5878000 str r8, [r7] a000b2f4: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} return big_enough; } void *rtems_rbheap_allocate(rtems_rbheap_control *control, size_t size) { void *ptr = NULL; a000b2f8: e1a00007 mov r0, r7 a000b2fc: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} a000b300: e1a00008 mov r0, r8 <== NOT EXECUTED } } } return ptr; } a000b304: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} =============================================================================== a000b490 : void rtems_rbheap_extend_descriptors_with_malloc(rtems_rbheap_control *control) { a000b490: e92d4010 push {r4, lr} <== NOT EXECUTED a000b494: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_rbheap_chunk *chunk = malloc(sizeof(*chunk)); a000b498: e3a00020 mov r0, #32 <== NOT EXECUTED a000b49c: ebffee96 bl a0006efc <== NOT EXECUTED if (chunk != NULL) { a000b4a0: e3500000 cmp r0, #0 <== NOT EXECUTED a000b4a4: 0a000005 beq a000b4c0 <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Chain_Prepend_unprotected( Chain_Control *the_chain, Chain_Node *the_node ) { _Chain_Insert_unprotected(_Chain_Head(the_chain), the_node); a000b4a8: e284300c add r3, r4, #12 <== NOT EXECUTED Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; a000b4ac: e5803004 str r3, [r0, #4] <== NOT EXECUTED before_node = after_node->next; a000b4b0: e594300c ldr r3, [r4, #12] <== NOT EXECUTED after_node->next = the_node; a000b4b4: e584000c str r0, [r4, #12] <== NOT EXECUTED the_node->next = before_node; before_node->previous = the_node; a000b4b8: e5830004 str r0, [r3, #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; a000b4bc: e5803000 str r3, [r0] <== NOT EXECUTED a000b4c0: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a000b308 : _RBTree_Extract_unprotected(chunk_tree, &b->tree_node); } } rtems_status_code rtems_rbheap_free(rtems_rbheap_control *control, void *ptr) { a000b308: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} rtems_status_code sc = RTEMS_SUCCESSFUL; if (ptr != NULL) { a000b30c: e2516000 subs r6, r1, #0 _RBTree_Extract_unprotected(chunk_tree, &b->tree_node); } } rtems_status_code rtems_rbheap_free(rtems_rbheap_control *control, void *ptr) { a000b310: e24dd020 sub sp, sp, #32 a000b314: e1a05000 mov r5, r0 rtems_status_code sc = RTEMS_SUCCESSFUL; if (ptr != NULL) { a000b318: 0a000058 beq a000b480 #define NULL_PAGE rtems_rbheap_chunk_of_node(NULL) static rtems_rbheap_chunk *find(rtems_rbtree_control *chunk_tree, uintptr_t key) { rtems_rbheap_chunk chunk = { .begin = key }; a000b31c: e1a0000d mov r0, sp a000b320: e3a01000 mov r1, #0 a000b324: e3a02020 mov r2, #32 RBTree_Control *the_rbtree, RBTree_Node *the_node ) { RBTree_Node* iter_node = the_rbtree->root; RBTree_Node* found = NULL; a000b328: e3a04000 mov r4, #0 a000b32c: eb001d1a bl a001279c return rtems_rbheap_chunk_of_node( a000b330: e08d3004 add r3, sp, r4 #define NULL_PAGE rtems_rbheap_chunk_of_node(NULL) static rtems_rbheap_chunk *find(rtems_rbtree_control *chunk_tree, uintptr_t key) { rtems_rbheap_chunk chunk = { .begin = key }; a000b334: e58d6018 str r6, [sp, #24] return rtems_rbheap_chunk_of_node( a000b338: e2837008 add r7, r3, #8 RTEMS_INLINE_ROUTINE RBTree_Node *_RBTree_Find_unprotected( RBTree_Control *the_rbtree, RBTree_Node *the_node ) { RBTree_Node* iter_node = the_rbtree->root; a000b33c: e595601c ldr r6, [r5, #28] a000b340: ea00000d b a000b37c RBTree_Node* found = NULL; int compare_result; while (iter_node) { compare_result = the_rbtree->compare_function(the_node, iter_node); a000b344: e5953028 ldr r3, [r5, #40] ; 0x28 a000b348: e1a00007 mov r0, r7 a000b34c: e1a01006 mov r1, r6 a000b350: e12fff33 blx r3 if ( _RBTree_Is_equal( compare_result ) ) { a000b354: e3500000 cmp r0, #0 a000b358: 1a000003 bne a000b36c found = iter_node; if ( the_rbtree->is_unique ) a000b35c: e5d5302c ldrb r3, [r5, #44] ; 0x2c a000b360: e3530000 cmp r3, #0 a000b364: 1a000007 bne a000b388 a000b368: e1a04006 mov r4, r6 <== NOT EXECUTED break; } RBTree_Direction dir = (RBTree_Direction) _RBTree_Is_greater( compare_result ); iter_node = iter_node->child[dir]; a000b36c: e3500000 cmp r0, #0 a000b370: c3a00008 movgt r0, #8 a000b374: d3a00004 movle r0, #4 a000b378: e7906006 ldr r6, [r0, r6] ) { RBTree_Node* iter_node = the_rbtree->root; RBTree_Node* found = NULL; int compare_result; while (iter_node) { a000b37c: e3560000 cmp r6, #0 a000b380: 1affffef bne a000b344 a000b384: e1a06004 mov r6, r4 a000b388: e2464008 sub r4, r6, #8 if (ptr != NULL) { rtems_chain_control *free_chain = &control->free_chunk_chain; rtems_rbtree_control *chunk_tree = &control->chunk_tree; rtems_rbheap_chunk *chunk = find(chunk_tree, (uintptr_t) ptr); if (chunk != NULL_PAGE) { a000b38c: e3740008 cmn r4, #8 check_and_merge(free_chain, chunk_tree, chunk, pred); } else { sc = RTEMS_INCORRECT_STATE; } } else { sc = RTEMS_INVALID_ID; a000b390: 03a06004 moveq r6, #4 if (ptr != NULL) { rtems_chain_control *free_chain = &control->free_chunk_chain; rtems_rbtree_control *chunk_tree = &control->chunk_tree; rtems_rbheap_chunk *chunk = find(chunk_tree, (uintptr_t) ptr); if (chunk != NULL_PAGE) { a000b394: 0a000039 beq a000b480 */ RTEMS_INLINE_ROUTINE bool _Chain_Is_node_off_chain( const Chain_Node *node ) { return (node->next == NULL) && (node->previous == NULL); a000b398: e5163008 ldr r3, [r6, #-8] a000b39c: e3530000 cmp r3, #0 a000b3a0: 13a0a000 movne sl, #0 a000b3a4: 1a000002 bne a000b3b4 add_to_chain(free_chain, b); _RBTree_Extract_unprotected(chunk_tree, &b->tree_node); } } rtems_status_code rtems_rbheap_free(rtems_rbheap_control *control, void *ptr) a000b3a8: e594a004 ldr sl, [r4, #4] a000b3ac: e27aa001 rsbs sl, sl, #1 a000b3b0: 33a0a000 movcc sl, #0 rtems_chain_control *free_chain = &control->free_chunk_chain; rtems_rbtree_control *chunk_tree = &control->chunk_tree; rtems_rbheap_chunk *chunk = find(chunk_tree, (uintptr_t) ptr); if (chunk != NULL_PAGE) { if (!rtems_rbheap_is_chunk_free(chunk)) { a000b3b4: e23aa001 eors sl, sl, #1 check_and_merge(free_chain, chunk_tree, chunk, succ); add_to_chain(free_chain, chunk); check_and_merge(free_chain, chunk_tree, chunk, pred); } else { sc = RTEMS_INCORRECT_STATE; a000b3b8: 13a0600e movne r6, #14 rtems_chain_control *free_chain = &control->free_chunk_chain; rtems_rbtree_control *chunk_tree = &control->chunk_tree; rtems_rbheap_chunk *chunk = find(chunk_tree, (uintptr_t) ptr); if (chunk != NULL_PAGE) { if (!rtems_rbheap_is_chunk_free(chunk)) { a000b3bc: 1a00002f bne a000b480 static rtems_rbheap_chunk *get_next( const rtems_rbheap_chunk *chunk, RBTree_Direction dir ) { return rtems_rbheap_chunk_of_node( a000b3c0: e2849008 add r9, r4, #8 a000b3c4: e1a0100a mov r1, sl a000b3c8: e1a00009 mov r0, r9 a000b3cc: eb0006a2 bl a000ce5c <_RBTree_Next_unprotected> a000b3d0: e3a01001 mov r1, #1 a000b3d4: e1a06000 mov r6, r0 a000b3d8: e2408008 sub r8, r0, #8 a000b3dc: e1a00009 mov r0, r9 a000b3e0: eb00069d bl a000ce5c <_RBTree_Next_unprotected> a000b3e4: e2403008 sub r3, r0, #8 rtems_rbtree_control *chunk_tree, rtems_rbheap_chunk *a, rtems_rbheap_chunk *b ) { if (b != NULL_PAGE && rtems_rbheap_is_chunk_free(b)) { a000b3e8: e3730008 cmn r3, #8 { rtems_status_code sc = RTEMS_SUCCESSFUL; if (ptr != NULL) { rtems_chain_control *free_chain = &control->free_chunk_chain; rtems_rbtree_control *chunk_tree = &control->chunk_tree; a000b3ec: e2857018 add r7, r5, #24 rtems_rbtree_control *chunk_tree, rtems_rbheap_chunk *a, rtems_rbheap_chunk *b ) { if (b != NULL_PAGE && rtems_rbheap_is_chunk_free(b)) { a000b3f0: 0a00000b beq a000b424 a000b3f4: e5102008 ldr r2, [r0, #-8] a000b3f8: e3520000 cmp r2, #0 a000b3fc: 1a000002 bne a000b40c add_to_chain(free_chain, b); _RBTree_Extract_unprotected(chunk_tree, &b->tree_node); } } rtems_status_code rtems_rbheap_free(rtems_rbheap_control *control, void *ptr) a000b400: e510a004 ldr sl, [r0, #-4] a000b404: e27aa001 rsbs sl, sl, #1 a000b408: 33a0a000 movcc sl, #0 rtems_rbtree_control *chunk_tree, rtems_rbheap_chunk *a, rtems_rbheap_chunk *b ) { if (b != NULL_PAGE && rtems_rbheap_is_chunk_free(b)) { a000b40c: e35a0000 cmp sl, #0 a000b410: 1a000003 bne a000b424 a000b414: e1a00005 mov r0, r5 a000b418: e1a01007 mov r1, r7 a000b41c: e1a02004 mov r2, r4 a000b420: ebffff06 bl a000b040 ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; a000b424: e5953000 ldr r3, [r5] a000b428: e3780008 cmn r8, #8 Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; a000b42c: e5845004 str r5, [r4, #4] before_node = after_node->next; after_node->next = the_node; a000b430: e5854000 str r4, [r5] the_node->next = before_node; before_node->previous = the_node; a000b434: e5834004 str r4, [r3, #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; a000b438: e5843000 str r3, [r4] a000b43c: 0a00000e beq a000b47c */ RTEMS_INLINE_ROUTINE bool _Chain_Is_node_off_chain( const Chain_Node *node ) { return (node->next == NULL) && (node->previous == NULL); a000b440: e5163008 ldr r3, [r6, #-8] a000b444: e3530000 cmp r3, #0 a000b448: 13a06000 movne r6, #0 a000b44c: 1a000002 bne a000b45c add_to_chain(free_chain, b); _RBTree_Extract_unprotected(chunk_tree, &b->tree_node); } } rtems_status_code rtems_rbheap_free(rtems_rbheap_control *control, void *ptr) a000b450: e5166004 ldr r6, [r6, #-4] a000b454: e2766001 rsbs r6, r6, #1 a000b458: 33a06000 movcc r6, #0 rtems_rbtree_control *chunk_tree, rtems_rbheap_chunk *a, rtems_rbheap_chunk *b ) { if (b != NULL_PAGE && rtems_rbheap_is_chunk_free(b)) { a000b45c: e21660ff ands r6, r6, #255 ; 0xff a000b460: 1a000005 bne a000b47c a000b464: e1a00005 mov r0, r5 a000b468: e1a01007 mov r1, r7 a000b46c: e1a02004 mov r2, r4 a000b470: e1a03008 mov r3, r8 a000b474: ebfffef1 bl a000b040 a000b478: ea000000 b a000b480 } } rtems_status_code rtems_rbheap_free(rtems_rbheap_control *control, void *ptr) { rtems_status_code sc = RTEMS_SUCCESSFUL; a000b47c: e3a06000 mov r6, #0 sc = RTEMS_INVALID_ID; } } return sc; } a000b480: e1a00006 mov r0, r6 a000b484: e28dd020 add sp, sp, #32 a000b488: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} =============================================================================== a00175f0 : uintptr_t length, uintptr_t page_size, rtems_attribute attribute_set, rtems_id *id ) { a00175f0: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} rtems_status_code return_status; Region_Control *the_region; if ( !rtems_is_name_valid( name ) ) a00175f4: e2509000 subs r9, r0, #0 uintptr_t length, uintptr_t page_size, rtems_attribute attribute_set, rtems_id *id ) { a00175f8: e1a06001 mov r6, r1 a00175fc: e1a07002 mov r7, r2 a0017600: e1a08003 mov r8, r3 a0017604: e59da024 ldr sl, [sp, #36] ; 0x24 a0017608: e59db028 ldr fp, [sp, #40] ; 0x28 rtems_status_code return_status; Region_Control *the_region; if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; a001760c: 03a06003 moveq r6, #3 ) { rtems_status_code return_status; Region_Control *the_region; if ( !rtems_is_name_valid( name ) ) a0017610: 0a000031 beq a00176dc return RTEMS_INVALID_NAME; if ( !starting_address ) a0017614: e3560000 cmp r6, #0 a0017618: 0a00002e beq a00176d8 return RTEMS_INVALID_ADDRESS; if ( !id ) a001761c: e35b0000 cmp fp, #0 a0017620: 0a00002c beq a00176d8 return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); /* to prevent deletion */ a0017624: e59f30b8 ldr r3, [pc, #184] ; a00176e4 * 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 ); a0017628: e59f50b8 ldr r5, [pc, #184] ; a00176e8 a001762c: e5930000 ldr r0, [r3] a0017630: eb000966 bl a0019bd0 <_API_Mutex_Lock> a0017634: e1a00005 mov r0, r5 a0017638: eb000f84 bl a001b450 <_Objects_Allocate> the_region = _Region_Allocate(); if ( !the_region ) a001763c: e2504000 subs r4, r0, #0 return_status = RTEMS_TOO_MANY; a0017640: 03a06005 moveq r6, #5 _RTEMS_Lock_allocator(); /* to prevent deletion */ the_region = _Region_Allocate(); if ( !the_region ) a0017644: 0a00001f beq a00176c8 return_status = RTEMS_TOO_MANY; else { the_region->maximum_segment_size = _Heap_Initialize( a0017648: e2840068 add r0, r4, #104 ; 0x68 a001764c: e1a01006 mov r1, r6 a0017650: e1a02007 mov r2, r7 a0017654: e1a03008 mov r3, r8 a0017658: eb000e56 bl a001afb8 <_Heap_Initialize> &the_region->Memory, starting_address, length, page_size ); if ( !the_region->maximum_segment_size ) { a001765c: e3500000 cmp r0, #0 if ( !the_region ) return_status = RTEMS_TOO_MANY; else { the_region->maximum_segment_size = _Heap_Initialize( a0017660: e584005c str r0, [r4, #92] ; 0x5c &the_region->Memory, starting_address, length, page_size ); if ( !the_region->maximum_segment_size ) { a0017664: 1a000004 bne a001767c */ RTEMS_INLINE_ROUTINE void _Region_Free ( Region_Control *the_region ) { _Objects_Free( &_Region_Information, &the_region->Object ); a0017668: e1a00005 mov r0, r5 <== NOT EXECUTED a001766c: e1a01004 mov r1, r4 <== NOT EXECUTED a0017670: eb001045 bl a001b78c <_Objects_Free> <== NOT EXECUTED _Region_Free( the_region ); return_status = RTEMS_INVALID_SIZE; a0017674: e3a06008 mov r6, #8 <== NOT EXECUTED a0017678: ea000012 b a00176c8 <== NOT EXECUTED } else { the_region->starting_address = starting_address; a001767c: e5846050 str r6, [r4, #80] ; 0x50 the_region->length = length; the_region->page_size = page_size; the_region->attribute_set = attribute_set; the_region->number_of_used_blocks = 0; _Thread_queue_Initialize( a0017680: e31a0004 tst sl, #4 the_region->starting_address = starting_address; the_region->length = length; the_region->page_size = page_size; the_region->attribute_set = attribute_set; the_region->number_of_used_blocks = 0; a0017684: e3a06000 mov r6, #0 _Thread_queue_Initialize( a0017688: 03a01000 moveq r1, #0 a001768c: 13a01001 movne r1, #1 a0017690: e3a02040 mov r2, #64 ; 0x40 a0017694: e3a03006 mov r3, #6 } else { the_region->starting_address = starting_address; the_region->length = length; a0017698: e5847054 str r7, [r4, #84] ; 0x54 the_region->page_size = page_size; a001769c: e5848058 str r8, [r4, #88] ; 0x58 the_region->attribute_set = attribute_set; a00176a0: e584a060 str sl, [r4, #96] ; 0x60 the_region->number_of_used_blocks = 0; a00176a4: e5846064 str r6, [r4, #100] ; 0x64 _Thread_queue_Initialize( a00176a8: e2840010 add r0, r4, #16 a00176ac: eb0015e5 bl a001ce48 <_Thread_queue_Initialize> #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; a00176b0: e595201c ldr r2, [r5, #28] Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( a00176b4: e5943008 ldr r3, [r4, #8] a00176b8: e1d410b8 ldrh r1, [r4, #8] #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; a00176bc: e7824101 str r4, [r2, r1, lsl #2] information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; a00176c0: e584900c str r9, [r4, #12] &_Region_Information, &the_region->Object, (Objects_Name) name ); *id = the_region->Object.id; a00176c4: e58b3000 str r3, [fp] return_status = RTEMS_SUCCESSFUL; } } _RTEMS_Unlock_allocator(); a00176c8: e59f3014 ldr r3, [pc, #20] ; a00176e4 a00176cc: e5930000 ldr r0, [r3] a00176d0: eb000957 bl a0019c34 <_API_Mutex_Unlock> return return_status; a00176d4: ea000000 b a00176dc if ( !starting_address ) return RTEMS_INVALID_ADDRESS; if ( !id ) return RTEMS_INVALID_ADDRESS; a00176d8: e3a06009 mov r6, #9 <== NOT EXECUTED } } _RTEMS_Unlock_allocator(); return return_status; } a00176dc: e1a00006 mov r0, r6 a00176e0: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} =============================================================================== a0017764 : rtems_status_code rtems_region_extend( rtems_id id, void *starting_address, uintptr_t length ) { a0017764: e92d40f1 push {r0, r4, r5, r6, r7, lr} <== NOT EXECUTED uintptr_t amount_extended; Objects_Locations location; rtems_status_code return_status; Region_Control *the_region; if ( !starting_address ) a0017768: e2517000 subs r7, r1, #0 <== NOT EXECUTED rtems_status_code rtems_region_extend( rtems_id id, void *starting_address, uintptr_t length ) { a001776c: e1a04000 mov r4, r0 <== NOT EXECUTED a0017770: e1a06002 mov r6, r2 <== NOT EXECUTED Objects_Locations location; rtems_status_code return_status; Region_Control *the_region; if ( !starting_address ) return RTEMS_INVALID_ADDRESS; a0017774: 03a05009 moveq r5, #9 <== NOT EXECUTED uintptr_t amount_extended; Objects_Locations location; rtems_status_code return_status; Region_Control *the_region; if ( !starting_address ) a0017778: 0a00001c beq a00177f0 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); /* to prevent deletion */ a001777c: e59f3074 ldr r3, [pc, #116] ; a00177f8 <== NOT EXECUTED a0017780: e5930000 ldr r0, [r3] <== NOT EXECUTED a0017784: eb000911 bl a0019bd0 <_API_Mutex_Lock> <== NOT EXECUTED RTEMS_INLINE_ROUTINE Region_Control *_Region_Get ( Objects_Id id, Objects_Locations *location ) { return (Region_Control *) a0017788: e1a01004 mov r1, r4 <== NOT EXECUTED a001778c: e59f0068 ldr r0, [pc, #104] ; a00177fc <== NOT EXECUTED a0017790: e1a0200d mov r2, sp <== NOT EXECUTED a0017794: eb001054 bl a001b8ec <_Objects_Get_no_protection> <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { a0017798: e59d5000 ldr r5, [sp] <== NOT EXECUTED a001779c: e1a04000 mov r4, r0 <== NOT EXECUTED a00177a0: e3550000 cmp r5, #0 <== NOT EXECUTED break; #endif case OBJECTS_ERROR: default: return_status = RTEMS_INVALID_ID; a00177a4: 13a05004 movne r5, #4 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); /* to prevent deletion */ the_region = _Region_Get( id, &location ); switch ( location ) { a00177a8: 1a00000d bne a00177e4 <== NOT EXECUTED case OBJECTS_LOCAL: amount_extended = _Heap_Extend( a00177ac: e1a03005 mov r3, r5 <== NOT EXECUTED a00177b0: e2800068 add r0, r0, #104 ; 0x68 <== NOT EXECUTED a00177b4: e1a01007 mov r1, r7 <== NOT EXECUTED a00177b8: e1a02006 mov r2, r6 <== NOT EXECUTED a00177bc: eb000c29 bl a001a868 <_Heap_Extend> <== NOT EXECUTED starting_address, length, 0 ); if ( amount_extended > 0 ) { a00177c0: e3500000 cmp r0, #0 <== NOT EXECUTED the_region->length += amount_extended; the_region->maximum_segment_size += amount_extended; return_status = RTEMS_SUCCESSFUL; } else { return_status = RTEMS_INVALID_ADDRESS; a00177c4: 03a05009 moveq r5, #9 <== NOT EXECUTED starting_address, length, 0 ); if ( amount_extended > 0 ) { a00177c8: 0a000005 beq a00177e4 <== NOT EXECUTED the_region->length += amount_extended; a00177cc: e5943054 ldr r3, [r4, #84] ; 0x54 <== NOT EXECUTED a00177d0: e0833000 add r3, r3, r0 <== NOT EXECUTED a00177d4: e5843054 str r3, [r4, #84] ; 0x54 <== NOT EXECUTED the_region->maximum_segment_size += amount_extended; a00177d8: e594305c ldr r3, [r4, #92] ; 0x5c <== NOT EXECUTED a00177dc: e0830000 add r0, r3, r0 <== NOT EXECUTED a00177e0: e584005c str r0, [r4, #92] ; 0x5c <== NOT EXECUTED default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); a00177e4: e59f300c ldr r3, [pc, #12] ; a00177f8 <== NOT EXECUTED a00177e8: e5930000 ldr r0, [r3] <== NOT EXECUTED a00177ec: eb000910 bl a0019c34 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; } a00177f0: e1a00005 mov r0, r5 <== NOT EXECUTED a00177f4: e8bd80f8 pop {r3, r4, r5, r6, r7, pc} <== NOT EXECUTED =============================================================================== a0017800 : rtems_status_code rtems_region_get_free_information( rtems_id id, Heap_Information_block *the_info ) { a0017800: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED Objects_Locations location; rtems_status_code return_status; register Region_Control *the_region; if ( !the_info ) a0017804: e2514000 subs r4, r1, #0 <== NOT EXECUTED rtems_status_code rtems_region_get_free_information( rtems_id id, Heap_Information_block *the_info ) { a0017808: e1a05000 mov r5, r0 <== NOT EXECUTED Objects_Locations location; rtems_status_code return_status; register Region_Control *the_region; if ( !the_info ) return RTEMS_INVALID_ADDRESS; a001780c: 03a05009 moveq r5, #9 <== NOT EXECUTED { Objects_Locations location; rtems_status_code return_status; register Region_Control *the_region; if ( !the_info ) a0017810: 0a000013 beq a0017864 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); a0017814: e59f3050 ldr r3, [pc, #80] ; a001786c <== NOT EXECUTED a0017818: e5930000 ldr r0, [r3] <== NOT EXECUTED a001781c: eb0008eb bl a0019bd0 <_API_Mutex_Lock> <== NOT EXECUTED a0017820: e1a01005 mov r1, r5 <== NOT EXECUTED a0017824: e59f0044 ldr r0, [pc, #68] ; a0017870 <== NOT EXECUTED a0017828: e1a0200d mov r2, sp <== NOT EXECUTED a001782c: eb00102e bl a001b8ec <_Objects_Get_no_protection> <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { a0017830: e59d5000 ldr r5, [sp] <== NOT EXECUTED a0017834: e3550000 cmp r5, #0 <== NOT EXECUTED break; #endif case OBJECTS_ERROR: default: return_status = RTEMS_INVALID_ID; a0017838: 13a05004 movne r5, #4 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); the_region = _Region_Get( id, &location ); switch ( location ) { a001783c: 1a000005 bne a0017858 <== NOT EXECUTED case OBJECTS_LOCAL: the_info->Used.number = 0; a0017840: e584500c str r5, [r4, #12] <== NOT EXECUTED the_info->Used.total = 0; a0017844: e5845014 str r5, [r4, #20] <== NOT EXECUTED the_info->Used.largest = 0; a0017848: e5845010 str r5, [r4, #16] <== NOT EXECUTED _Heap_Get_free_information( &the_region->Memory, &the_info->Free ); a001784c: e2800068 add r0, r0, #104 ; 0x68 <== NOT EXECUTED a0017850: e1a01004 mov r1, r4 <== NOT EXECUTED a0017854: eb000d2d bl a001ad10 <_Heap_Get_free_information> <== NOT EXECUTED default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); a0017858: e59f300c ldr r3, [pc, #12] ; a001786c <== NOT EXECUTED a001785c: e5930000 ldr r0, [r3] <== NOT EXECUTED a0017860: eb0008f3 bl a0019c34 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; } a0017864: e1a00005 mov r0, r5 <== NOT EXECUTED a0017868: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED =============================================================================== a0017874 : rtems_status_code rtems_region_get_information( rtems_id id, Heap_Information_block *the_info ) { a0017874: e92d4071 push {r0, r4, r5, r6, lr} <== NOT EXECUTED Objects_Locations location; rtems_status_code return_status; register Region_Control *the_region; if ( !the_info ) a0017878: e2515000 subs r5, r1, #0 <== NOT EXECUTED rtems_status_code rtems_region_get_information( rtems_id id, Heap_Information_block *the_info ) { a001787c: e1a06000 mov r6, r0 <== NOT EXECUTED Objects_Locations location; rtems_status_code return_status; register Region_Control *the_region; if ( !the_info ) return RTEMS_INVALID_ADDRESS; a0017880: 03a06009 moveq r6, #9 <== NOT EXECUTED { Objects_Locations location; rtems_status_code return_status; register Region_Control *the_region; if ( !the_info ) a0017884: 0a00000f beq a00178c8 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); a0017888: e59f4040 ldr r4, [pc, #64] ; a00178d0 <== NOT EXECUTED a001788c: e5940000 ldr r0, [r4] <== NOT EXECUTED a0017890: eb0008ce bl a0019bd0 <_API_Mutex_Lock> <== NOT EXECUTED a0017894: e1a01006 mov r1, r6 <== NOT EXECUTED a0017898: e59f0034 ldr r0, [pc, #52] ; a00178d4 <== NOT EXECUTED a001789c: e1a0200d mov r2, sp <== NOT EXECUTED a00178a0: eb001011 bl a001b8ec <_Objects_Get_no_protection> <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { a00178a4: e59d6000 ldr r6, [sp] <== NOT EXECUTED a00178a8: e3560000 cmp r6, #0 <== NOT EXECUTED break; #endif case OBJECTS_ERROR: default: return_status = RTEMS_INVALID_ID; a00178ac: 13a06004 movne r6, #4 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); the_region = _Region_Get( id, &location ); switch ( location ) { a00178b0: 1a000002 bne a00178c0 <== NOT EXECUTED case OBJECTS_LOCAL: _Heap_Get_information( &the_region->Memory, the_info ); a00178b4: e2800068 add r0, r0, #104 ; 0x68 <== NOT EXECUTED a00178b8: e1a01005 mov r1, r5 <== NOT EXECUTED a00178bc: eb000d35 bl a001ad98 <_Heap_Get_information> <== NOT EXECUTED default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); a00178c0: e5940000 ldr r0, [r4] <== NOT EXECUTED a00178c4: eb0008da bl a0019c34 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; } a00178c8: e1a00006 mov r0, r6 <== NOT EXECUTED a00178cc: e8bd8078 pop {r3, r4, r5, r6, pc} <== NOT EXECUTED =============================================================================== a0017a04 : rtems_status_code rtems_region_get_segment_size( rtems_id id, void *segment, uintptr_t *size ) { a0017a04: e92d4071 push {r0, r4, r5, r6, lr} Objects_Locations location; rtems_status_code return_status = RTEMS_SUCCESSFUL; register Region_Control *the_region; if ( !segment ) a0017a08: e2515000 subs r5, r1, #0 rtems_status_code rtems_region_get_segment_size( rtems_id id, void *segment, uintptr_t *size ) { a0017a0c: e1a06000 mov r6, r0 a0017a10: e1a04002 mov r4, r2 Objects_Locations location; rtems_status_code return_status = RTEMS_SUCCESSFUL; register Region_Control *the_region; if ( !segment ) a0017a14: 0a000019 beq a0017a80 return RTEMS_INVALID_ADDRESS; if ( !size ) a0017a18: e3520000 cmp r2, #0 a0017a1c: 0a000017 beq a0017a80 return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); a0017a20: e59f3064 ldr r3, [pc, #100] ; a0017a8c a0017a24: e5930000 ldr r0, [r3] a0017a28: eb000868 bl a0019bd0 <_API_Mutex_Lock> a0017a2c: e59f005c ldr r0, [pc, #92] ; a0017a90 a0017a30: e1a01006 mov r1, r6 a0017a34: e1a0200d mov r2, sp a0017a38: eb000fab bl a001b8ec <_Objects_Get_no_protection> the_region = _Region_Get( id, &location ); switch ( location ) { a0017a3c: e59d3000 ldr r3, [sp] a0017a40: e3530000 cmp r3, #0 a0017a44: 0a000002 beq a0017a54 void *segment, uintptr_t *size ) { Objects_Locations location; rtems_status_code return_status = RTEMS_SUCCESSFUL; a0017a48: e3530001 cmp r3, #1 <== NOT EXECUTED a0017a4c: 03a04004 moveq r4, #4 <== NOT EXECUTED a0017a50: ea000005 b a0017a6c <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_Heap_Size_of_alloc_area( &the_region->Memory, segment, size ) ) a0017a54: e1a02004 mov r2, r4 a0017a58: e2800068 add r0, r0, #104 ; 0x68 a0017a5c: e1a01005 mov r1, r5 a0017a60: eb000e36 bl a001b340 <_Heap_Size_of_alloc_area> void *segment, uintptr_t *size ) { Objects_Locations location; rtems_status_code return_status = RTEMS_SUCCESSFUL; a0017a64: e3500000 cmp r0, #0 a0017a68: 03a04009 moveq r4, #9 case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); a0017a6c: e59f3018 ldr r3, [pc, #24] ; a0017a8c void *segment, uintptr_t *size ) { Objects_Locations location; rtems_status_code return_status = RTEMS_SUCCESSFUL; a0017a70: 13a04000 movne r4, #0 case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); a0017a74: e5930000 ldr r0, [r3] a0017a78: eb00086d bl a0019c34 <_API_Mutex_Unlock> return return_status; a0017a7c: ea000000 b a0017a84 if ( !segment ) return RTEMS_INVALID_ADDRESS; if ( !size ) return RTEMS_INVALID_ADDRESS; a0017a80: e3a04009 mov r4, #9 <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); return return_status; } a0017a84: e1a00004 mov r0, r4 a0017a88: e8bd8078 pop {r3, r4, r5, r6, pc} =============================================================================== a0017ac4 : rtems_id id, void *segment, uintptr_t size, uintptr_t *old_size ) { a0017ac4: e92d41ff push {r0, r1, r2, r3, r4, r5, r6, r7, r8, lr} <== NOT EXECUTED uintptr_t osize; rtems_status_code return_status; Heap_Resize_status status; register Region_Control *the_region; if ( !old_size ) a0017ac8: e2538000 subs r8, r3, #0 <== NOT EXECUTED rtems_id id, void *segment, uintptr_t size, uintptr_t *old_size ) { a0017acc: e1a05000 mov r5, r0 <== NOT EXECUTED a0017ad0: e1a07001 mov r7, r1 <== NOT EXECUTED a0017ad4: e1a06002 mov r6, r2 <== NOT EXECUTED rtems_status_code return_status; Heap_Resize_status status; register Region_Control *the_region; if ( !old_size ) return RTEMS_INVALID_ADDRESS; a0017ad8: 03a00009 moveq r0, #9 <== NOT EXECUTED uintptr_t osize; rtems_status_code return_status; Heap_Resize_status status; register Region_Control *the_region; if ( !old_size ) a0017adc: 0a000022 beq a0017b6c <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); a0017ae0: e59f408c ldr r4, [pc, #140] ; a0017b74 <== NOT EXECUTED a0017ae4: e5940000 ldr r0, [r4] <== NOT EXECUTED a0017ae8: eb000838 bl a0019bd0 <_API_Mutex_Lock> <== NOT EXECUTED a0017aec: e1a01005 mov r1, r5 <== NOT EXECUTED a0017af0: e59f0080 ldr r0, [pc, #128] ; a0017b78 <== NOT EXECUTED a0017af4: e28d2008 add r2, sp, #8 <== NOT EXECUTED a0017af8: eb000f7b bl a001b8ec <_Objects_Get_no_protection> <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { a0017afc: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED a0017b00: e1a05000 mov r5, r0 <== NOT EXECUTED a0017b04: e3530000 cmp r3, #0 <== NOT EXECUTED a0017b08: 1a000014 bne a0017b60 <== NOT EXECUTED case OBJECTS_LOCAL: _Region_Debug_Walk( the_region, 7 ); status = _Heap_Resize_block( a0017b0c: e28d3004 add r3, sp, #4 <== NOT EXECUTED a0017b10: e58d3000 str r3, [sp] <== NOT EXECUTED a0017b14: e1a02006 mov r2, r6 <== NOT EXECUTED a0017b18: e28d300c add r3, sp, #12 <== NOT EXECUTED a0017b1c: e2800068 add r0, r0, #104 ; 0x68 <== NOT EXECUTED a0017b20: e1a01007 mov r1, r7 <== NOT EXECUTED a0017b24: eb000db6 bl a001b204 <_Heap_Resize_block> <== NOT EXECUTED segment, (uint32_t) size, &osize, &avail_size ); *old_size = (uint32_t) osize; a0017b28: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED _Region_Debug_Walk( the_region, 8 ); if ( status == HEAP_RESIZE_SUCCESSFUL ) a0017b2c: e2506000 subs r6, r0, #0 <== NOT EXECUTED segment, (uint32_t) size, &osize, &avail_size ); *old_size = (uint32_t) osize; a0017b30: e5883000 str r3, [r8] <== NOT EXECUTED _Region_Debug_Walk( the_region, 8 ); if ( status == HEAP_RESIZE_SUCCESSFUL ) a0017b34: 1a000003 bne a0017b48 <== NOT EXECUTED _Region_Process_queue( the_region ); /* unlocks allocator */ a0017b38: e1a00005 mov r0, r5 <== NOT EXECUTED a0017b3c: eb001c91 bl a001ed88 <_Region_Process_queue> <== NOT EXECUTED else _RTEMS_Unlock_allocator(); if (status == HEAP_RESIZE_SUCCESSFUL) return RTEMS_SUCCESSFUL; a0017b40: e1a00006 mov r0, r6 <== NOT EXECUTED a0017b44: ea000008 b a0017b6c <== NOT EXECUTED _Region_Debug_Walk( the_region, 8 ); if ( status == HEAP_RESIZE_SUCCESSFUL ) _Region_Process_queue( the_region ); /* unlocks allocator */ else _RTEMS_Unlock_allocator(); a0017b48: e5940000 ldr r0, [r4] <== NOT EXECUTED a0017b4c: eb000838 bl a0019c34 <_API_Mutex_Unlock> <== NOT EXECUTED if (status == HEAP_RESIZE_SUCCESSFUL) return RTEMS_SUCCESSFUL; if (status == HEAP_RESIZE_UNSATISFIED) return RTEMS_UNSATISFIED; a0017b50: e3560001 cmp r6, #1 <== NOT EXECUTED a0017b54: 13a00009 movne r0, #9 <== NOT EXECUTED a0017b58: 03a0000d moveq r0, #13 <== NOT EXECUTED a0017b5c: ea000002 b a0017b6c <== NOT EXECUTED default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); a0017b60: e5940000 ldr r0, [r4] <== NOT EXECUTED a0017b64: eb000832 bl a0019c34 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; a0017b68: e3a00004 mov r0, #4 <== NOT EXECUTED } a0017b6c: e28dd010 add sp, sp, #16 <== NOT EXECUTED a0017b70: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED =============================================================================== a0017b7c : rtems_status_code rtems_region_return_segment( rtems_id id, void *segment ) { a0017b7c: e92d4071 push {r0, r4, r5, r6, lr} uint32_t size; #endif int status; register Region_Control *the_region; _RTEMS_Lock_allocator(); a0017b80: e59f3074 ldr r3, [pc, #116] ; a0017bfc rtems_status_code rtems_region_return_segment( rtems_id id, void *segment ) { a0017b84: e1a05000 mov r5, r0 a0017b88: e1a04001 mov r4, r1 uint32_t size; #endif int status; register Region_Control *the_region; _RTEMS_Lock_allocator(); a0017b8c: e5930000 ldr r0, [r3] a0017b90: eb00080e bl a0019bd0 <_API_Mutex_Lock> a0017b94: e1a01005 mov r1, r5 a0017b98: e59f0060 ldr r0, [pc, #96] ; a0017c00 a0017b9c: e1a0200d mov r2, sp a0017ba0: eb000f51 bl a001b8ec <_Objects_Get_no_protection> the_region = _Region_Get( id, &location ); switch ( location ) { a0017ba4: e59d6000 ldr r6, [sp] a0017ba8: e1a05000 mov r5, r0 a0017bac: e3560000 cmp r6, #0 break; #endif case OBJECTS_ERROR: default: return_status = RTEMS_INVALID_ID; a0017bb0: 13a06004 movne r6, #4 register Region_Control *the_region; _RTEMS_Lock_allocator(); the_region = _Region_Get( id, &location ); switch ( location ) { a0017bb4: 1a00000b bne a0017be8 RTEMS_INLINE_ROUTINE bool _Region_Free_segment ( Region_Control *the_region, void *the_segment ) { return _Heap_Free( &the_region->Memory, the_segment ); a0017bb8: e2800068 add r0, r0, #104 ; 0x68 a0017bbc: e1a01004 mov r1, r4 a0017bc0: eb000bd6 bl a001ab20 <_Heap_Free> #endif status = _Region_Free_segment( the_region, segment ); _Region_Debug_Walk( the_region, 4 ); if ( !status ) a0017bc4: e3500000 cmp r0, #0 return_status = RTEMS_INVALID_ADDRESS; a0017bc8: 03a06009 moveq r6, #9 #endif status = _Region_Free_segment( the_region, segment ); _Region_Debug_Walk( the_region, 4 ); if ( !status ) a0017bcc: 0a000005 beq a0017be8 return_status = RTEMS_INVALID_ADDRESS; else { the_region->number_of_used_blocks -= 1; a0017bd0: e5953064 ldr r3, [r5, #100] ; 0x64 _Region_Process_queue(the_region); /* unlocks allocator */ a0017bd4: e1a00005 mov r0, r5 _Region_Debug_Walk( the_region, 4 ); if ( !status ) return_status = RTEMS_INVALID_ADDRESS; else { the_region->number_of_used_blocks -= 1; a0017bd8: e2433001 sub r3, r3, #1 a0017bdc: e5853064 str r3, [r5, #100] ; 0x64 _Region_Process_queue(the_region); /* unlocks allocator */ a0017be0: eb001c68 bl a001ed88 <_Region_Process_queue> return RTEMS_SUCCESSFUL; a0017be4: ea000002 b a0017bf4 default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); a0017be8: e59f300c ldr r3, [pc, #12] ; a0017bfc <== NOT EXECUTED a0017bec: e5930000 ldr r0, [r3] <== NOT EXECUTED a0017bf0: eb00080f bl a0019c34 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; } a0017bf4: e1a00006 mov r0, r6 a0017bf8: e8bd8078 pop {r3, r4, r5, r6, pc} =============================================================================== a0009ec4 : uint32_t count, rtems_attribute attribute_set, rtems_task_priority priority_ceiling, rtems_id *id ) { a0009ec4: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} 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 ) ) a0009ec8: e2507000 subs r7, r0, #0 uint32_t count, rtems_attribute attribute_set, rtems_task_priority priority_ceiling, rtems_id *id ) { a0009ecc: e24dd018 sub sp, sp, #24 a0009ed0: e1a04001 mov r4, r1 a0009ed4: e1a08002 mov r8, r2 a0009ed8: e1a09003 mov r9, r3 a0009edc: e59d6038 ldr r6, [sp, #56] ; 0x38 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; a0009ee0: 03a00003 moveq r0, #3 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 ) ) a0009ee4: 0a00005a beq a000a054 return RTEMS_INVALID_NAME; if ( !id ) a0009ee8: e3560000 cmp r6, #0 return RTEMS_INVALID_ADDRESS; a0009eec: 03a00009 moveq r0, #9 CORE_mutex_Status mutex_status; if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; if ( !id ) a0009ef0: 0a000057 beq a000a054 return RTEMS_NOT_DEFINED; } else #endif if ( _Attributes_Is_inherit_priority( attribute_set ) || a0009ef4: e21230c0 ands r3, r2, #192 ; 0xc0 a0009ef8: 0a000006 beq a0009f18 */ RTEMS_INLINE_ROUTINE bool _Attributes_Is_binary_semaphore( rtems_attribute attribute_set ) { return ((attribute_set & RTEMS_SEMAPHORE_CLASS) == RTEMS_BINARY_SEMAPHORE); a0009efc: e2022030 and r2, r2, #48 ; 0x30 _Attributes_Is_priority_ceiling( attribute_set ) ) { if ( ! (_Attributes_Is_binary_semaphore( attribute_set ) && a0009f00: e3520010 cmp r2, #16 a0009f04: 1a000051 bne a000a050 a0009f08: e3180004 tst r8, #4 a0009f0c: 0a00004f beq a000a050 _Attributes_Is_priority( attribute_set ) ) ) return RTEMS_NOT_DEFINED; } if ( _Attributes_Is_inherit_priority( attribute_set ) && a0009f10: e35300c0 cmp r3, #192 ; 0xc0 a0009f14: 0a00004d beq a000a050 _Attributes_Is_priority_ceiling( attribute_set ) ) return RTEMS_NOT_DEFINED; if ( !_Attributes_Is_counting_semaphore( attribute_set ) && ( count > 1 ) ) a0009f18: e218a030 ands sl, r8, #48 ; 0x30 a0009f1c: 0a000002 beq a0009f2c a0009f20: e3540001 cmp r4, #1 return RTEMS_INVALID_NUMBER; a0009f24: 83a0000a movhi r0, #10 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 ) ) a0009f28: 8a000049 bhi a000a054 * * This rountine increments the thread dispatch level */ RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void) { uint32_t level = _Thread_Dispatch_disable_level; a0009f2c: e59f3128 ldr r3, [pc, #296] ; a000a05c a0009f30: e5932000 ldr r2, [r3] ++level; a0009f34: e2822001 add r2, r2, #1 _Thread_Dispatch_disable_level = level; a0009f38: e5832000 str r2, [r3] * 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 ); a0009f3c: e59f011c ldr r0, [pc, #284] ; a000a060 a0009f40: eb000559 bl a000b4ac <_Objects_Allocate> _Thread_Disable_dispatch(); /* prevents deletion */ the_semaphore = _Semaphore_Allocate(); if ( !the_semaphore ) { a0009f44: e2505000 subs r5, r0, #0 a0009f48: 1a000002 bne a0009f58 _Thread_Enable_dispatch(); a0009f4c: eb000a05 bl a000c768 <_Thread_Enable_dispatch> return RTEMS_TOO_MANY; a0009f50: e3a00005 mov r0, #5 a0009f54: ea00003e b a000a054 the_semaphore->attribute_set = attribute_set; /* * Initialize it as a counting semaphore. */ if ( _Attributes_Is_counting_semaphore( attribute_set ) ) { a0009f58: e35a0000 cmp sl, #0 _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } #endif the_semaphore->attribute_set = attribute_set; a0009f5c: e5858010 str r8, [r5, #16] a0009f60: e2083004 and r3, r8, #4 /* * Initialize it as a counting semaphore. */ if ( _Attributes_Is_counting_semaphore( attribute_set ) ) { a0009f64: 1a00000b bne a0009f98 * 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; a0009f68: e2933000 adds r3, r3, #0 */ if ( _Attributes_Is_counting_semaphore( attribute_set ) ) { /* * This effectively disables limit checking. */ the_semaphore_attr.maximum_count = 0xFFFFFFFF; a0009f6c: e3e02000 mvn r2, #0 a0009f70: e58d2010 str r2, [sp, #16] if ( _Attributes_Is_priority( attribute_set ) ) the_semaphore_attr.discipline = CORE_SEMAPHORE_DISCIPLINES_PRIORITY; a0009f74: 13a03001 movne r3, #1 * 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( a0009f78: e2850014 add r0, r5, #20 a0009f7c: e28d1010 add r1, sp, #16 a0009f80: e1a02004 mov r2, r4 */ if ( _Attributes_Is_counting_semaphore( attribute_set ) ) { /* * This effectively disables limit checking. */ the_semaphore_attr.maximum_count = 0xFFFFFFFF; a0009f84: e58d3014 str r3, [sp, #20] 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; a0009f88: e58da000 str sl, [sp] the_mutex_attr.priority_ceiling = PRIORITY_MINIMUM; a0009f8c: e58da00c str sl, [sp, #12] _CORE_semaphore_Initialize( a0009f90: eb0003c9 bl a000aebc <_CORE_semaphore_Initialize> a0009f94: ea000023 b a000a028 /* * 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; a0009f98: e2933000 adds r3, r3, #0 a0009f9c: 13a03001 movne r3, #1 else the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_FIFO; if ( _Attributes_Is_binary_semaphore( attribute_set ) ) { a0009fa0: e35a0010 cmp sl, #16 /* * 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; a0009fa4: e58d3008 str r3, [sp, #8] a0009fa8: e3a02000 mov r2, #0 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; a0009fac: 13a03001 movne r3, #1 a0009fb0: 158d3000 strne r3, [sp] the_mutex_attr.only_owner_release = false; a0009fb4: 15cd2004 strbne r2, [sp, #4] if ( _Attributes_Is_priority( attribute_set ) ) the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY; else the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_FIFO; if ( _Attributes_Is_binary_semaphore( attribute_set ) ) { a0009fb8: 1a00000c bne a0009ff0 the_mutex_attr.priority_ceiling = priority_ceiling; 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 ) { a0009fbc: e3530001 cmp r3, #1 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; a0009fc0: e58d900c str r9, [sp, #12] the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; a0009fc4: e58d2000 str r2, [sp] the_mutex_attr.only_owner_release = false; a0009fc8: e5cd2004 strb r2, [sp, #4] if ( the_mutex_attr.discipline == CORE_MUTEX_DISCIPLINES_PRIORITY ) { a0009fcc: 1a000007 bne a0009ff0 if ( _Attributes_Is_inherit_priority( attribute_set ) ) { a0009fd0: e3180040 tst r8, #64 ; 0x40 the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; a0009fd4: 13a02002 movne r2, #2 the_mutex_attr.priority_ceiling = priority_ceiling; 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 ) ) { a0009fd8: 1a000002 bne a0009fe8 the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; the_mutex_attr.only_owner_release = true; } else if ( _Attributes_Is_priority_ceiling( attribute_set ) ) { a0009fdc: e3180080 tst r8, #128 ; 0x80 a0009fe0: 0a000002 beq a0009ff0 the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING; a0009fe4: e3a02003 mov r2, #3 a0009fe8: e58d2008 str r2, [sp, #8] the_mutex_attr.only_owner_release = true; a0009fec: e5cd3004 strb r3, [sp, #4] } else /* must be simple binary semaphore */ { the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_BLOCKS; the_mutex_attr.only_owner_release = false; } mutex_status = _CORE_mutex_Initialize( a0009ff0: e2443001 sub r3, r4, #1 a0009ff4: e2732000 rsbs r2, r3, #0 a0009ff8: e0a22003 adc r2, r2, r3 a0009ffc: e2850014 add r0, r5, #20 a000a000: e1a0100d mov r1, sp a000a004: eb0002e2 bl a000ab94 <_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 ) { a000a008: e3500005 cmp r0, #5 a000a00c: 1a000005 bne a000a028 */ RTEMS_INLINE_ROUTINE void _Semaphore_Free ( Semaphore_Control *the_semaphore ) { _Objects_Free( &_Semaphore_Information, &the_semaphore->Object ); a000a010: e59f0048 ldr r0, [pc, #72] ; a000a060 a000a014: e1a01005 mov r1, r5 a000a018: eb0005f2 bl a000b7e8 <_Objects_Free> _Semaphore_Free( the_semaphore ); _Thread_Enable_dispatch(); a000a01c: eb0009d1 bl a000c768 <_Thread_Enable_dispatch> return RTEMS_INVALID_PRIORITY; a000a020: e3a00013 mov r0, #19 a000a024: ea00000a b a000a054 #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; a000a028: e59f2030 ldr r2, [pc, #48] ; a000a060 Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( a000a02c: e5953008 ldr r3, [r5, #8] a000a030: e1d510b8 ldrh r1, [r5, #8] #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; a000a034: e592201c ldr r2, [r2, #28] a000a038: e7825101 str r5, [r2, r1, lsl #2] information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; a000a03c: e585700c str r7, [r5, #12] &_Semaphore_Information, &the_semaphore->Object, (Objects_Name) name ); *id = the_semaphore->Object.id; a000a040: e5863000 str r3, [r6] the_semaphore->Object.id, name, 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); a000a044: eb0009c7 bl a000c768 <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; a000a048: e3a00000 mov r0, #0 a000a04c: ea000000 b a000a054 } if ( _Attributes_Is_inherit_priority( attribute_set ) && _Attributes_Is_priority_ceiling( attribute_set ) ) return RTEMS_NOT_DEFINED; a000a050: e3a0000b mov r0, #11 <== NOT EXECUTED 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } a000a054: e28dd018 add sp, sp, #24 a000a058: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} =============================================================================== a000a064 : #endif rtems_status_code rtems_semaphore_delete( rtems_id id ) { a000a064: e92d4011 push {r0, r4, lr} a000a068: e1a01000 mov r1, r0 RTEMS_INLINE_ROUTINE Semaphore_Control *_Semaphore_Get ( Objects_Id id, Objects_Locations *location ) { return (Semaphore_Control *) a000a06c: e1a0200d mov r2, sp a000a070: e59f0084 ldr r0, [pc, #132] ; a000a0fc a000a074: eb000633 bl a000b948 <_Objects_Get> register Semaphore_Control *the_semaphore; Objects_Locations location; the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) { a000a078: e59d3000 ldr r3, [sp] a000a07c: e1a04000 mov r4, r0 a000a080: e3530000 cmp r3, #0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a000a084: 13a00004 movne r0, #4 { register Semaphore_Control *the_semaphore; Objects_Locations location; the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) { a000a088: 1a00001a bne a000a0f8 */ RTEMS_INLINE_ROUTINE bool _Attributes_Is_counting_semaphore( rtems_attribute attribute_set ) { return ((attribute_set & RTEMS_SEMAPHORE_CLASS) == RTEMS_COUNTING_SEMAPHORE); a000a08c: e5941010 ldr r1, [r4, #16] case OBJECTS_LOCAL: if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) { a000a090: e2111030 ands r1, r1, #48 ; 0x30 a000a094: 0a00000c beq a000a0cc if ( _CORE_mutex_Is_locked( &the_semaphore->Core_control.mutex ) && a000a098: e5943064 ldr r3, [r4, #100] ; 0x64 a000a09c: e3530000 cmp r3, #0 a000a0a0: 1a000004 bne a000a0b8 a000a0a4: e3510020 cmp r1, #32 a000a0a8: 0a000002 beq a000a0b8 !_Attributes_Is_simple_binary_semaphore( the_semaphore->attribute_set ) ) { _Thread_Enable_dispatch(); a000a0ac: eb0009ad bl a000c768 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_RESOURCE_IN_USE; a000a0b0: e3a0000c mov r0, #12 <== NOT EXECUTED a000a0b4: ea00000f b a000a0f8 <== NOT EXECUTED } _CORE_mutex_Flush( a000a0b8: e2840014 add r0, r4, #20 a000a0bc: e3a01000 mov r1, #0 a000a0c0: e3a02003 mov r2, #3 a000a0c4: eb0002b1 bl a000ab90 <_CORE_mutex_Flush> a000a0c8: ea000002 b a000a0d8 &the_semaphore->Core_control.mutex, SEMAPHORE_MP_OBJECT_WAS_DELETED, CORE_MUTEX_WAS_DELETED ); } else { _CORE_semaphore_Flush( a000a0cc: e2840014 add r0, r4, #20 a000a0d0: e3a02002 mov r2, #2 a000a0d4: eb000377 bl a000aeb8 <_CORE_semaphore_Flush> SEMAPHORE_MP_OBJECT_WAS_DELETED, CORE_SEMAPHORE_WAS_DELETED ); } _Objects_Close( &_Semaphore_Information, &the_semaphore->Object ); a000a0d8: e59f001c ldr r0, [pc, #28] ; a000a0fc a000a0dc: e1a01004 mov r1, r4 a000a0e0: eb000513 bl a000b534 <_Objects_Close> */ RTEMS_INLINE_ROUTINE void _Semaphore_Free ( Semaphore_Control *the_semaphore ) { _Objects_Free( &_Semaphore_Information, &the_semaphore->Object ); a000a0e4: e59f0010 ldr r0, [pc, #16] ; a000a0fc a000a0e8: e1a01004 mov r1, r4 a000a0ec: eb0005bd bl a000b7e8 <_Objects_Free> 0, /* Not used */ 0 /* Not used */ ); } #endif _Thread_Enable_dispatch(); a000a0f0: eb00099c bl a000c768 <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; a000a0f4: e3a00000 mov r0, #0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a000a0f8: e8bd8018 pop {r3, r4, pc} =============================================================================== a0012854 : #endif rtems_status_code rtems_semaphore_flush( rtems_id id ) { a0012854: e92d4001 push {r0, lr} a0012858: e1a01000 mov r1, r0 a001285c: e1a0200d mov r2, sp a0012860: e59f0044 ldr r0, [pc, #68] ; a00128ac a0012864: ebffe908 bl a000cc8c <_Objects_Get> register Semaphore_Control *the_semaphore; Objects_Locations location; the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) { a0012868: e59d3000 ldr r3, [sp] a001286c: e3530000 cmp r3, #0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a0012870: 13a00004 movne r0, #4 { register Semaphore_Control *the_semaphore; Objects_Locations location; the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) { a0012874: 1a00000b bne a00128a8 a0012878: e5901010 ldr r1, [r0, #16] a001287c: e2800014 add r0, r0, #20 case OBJECTS_LOCAL: if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) { a0012880: e2111030 ands r1, r1, #48 ; 0x30 a0012884: 0a000003 beq a0012898 _CORE_mutex_Flush( a0012888: e1a01003 mov r1, r3 a001288c: e3a02001 mov r2, #1 a0012890: ebffe5b5 bl a000bf6c <_CORE_mutex_Flush> a0012894: ea000001 b a00128a0 &the_semaphore->Core_control.mutex, SEND_OBJECT_WAS_DELETED, CORE_MUTEX_STATUS_UNSATISFIED_NOWAIT ); } else { _CORE_semaphore_Flush( a0012898: e3a02001 mov r2, #1 <== NOT EXECUTED a001289c: ebffe67c bl a000c294 <_CORE_semaphore_Flush> <== NOT EXECUTED &the_semaphore->Core_control.semaphore, SEND_OBJECT_WAS_DELETED, CORE_SEMAPHORE_STATUS_UNSATISFIED_NOWAIT ); } _Thread_Enable_dispatch(); a00128a0: ebffec05 bl a000d8bc <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; a00128a4: e3a00000 mov r0, #0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a00128a8: e8bd8008 pop {r3, pc} =============================================================================== a000a100 : rtems_status_code rtems_semaphore_obtain( rtems_id id, rtems_option option_set, rtems_interval timeout ) { a000a100: e92d4077 push {r0, r1, r2, r4, r5, r6, lr} a000a104: e1a04000 mov r4, r0 Objects_Id id, Objects_Locations *location, ISR_Level *level ) { return (Semaphore_Control *) a000a108: e28d3008 add r3, sp, #8 a000a10c: e1a06001 mov r6, r1 a000a110: e1a05002 mov r5, r2 a000a114: e59f00f0 ldr r0, [pc, #240] ; a000a20c a000a118: e1a01004 mov r1, r4 a000a11c: e28d2004 add r2, sp, #4 a000a120: eb0005ed bl a000b8dc <_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 ) { a000a124: e59d3004 ldr r3, [sp, #4] a000a128: e3530000 cmp r3, #0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a000a12c: 13a00004 movne r0, #4 register Semaphore_Control *the_semaphore; Objects_Locations location; ISR_Level level; the_semaphore = _Semaphore_Get_interrupt_disable( id, &location, &level ); switch ( location ) { a000a130: 1a000034 bne a000a208 a000a134: e5903010 ldr r3, [r0, #16] case OBJECTS_LOCAL: if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) { a000a138: e2132030 ands r2, r3, #48 ; 0x30 a000a13c: 0a00000c beq a000a174 _CORE_mutex_Seize( a000a140: e59d3008 ldr r3, [sp, #8] */ RTEMS_INLINE_ROUTINE bool _Options_Is_no_wait ( rtems_option option_set ) { return (option_set & RTEMS_NO_WAIT) ? true : false; a000a144: e2062001 and r2, r6, #1 a000a148: e2800014 add r0, r0, #20 a000a14c: e58d3000 str r3, [sp] a000a150: e1a01004 mov r1, r4 a000a154: e1a03005 mov r3, r5 a000a158: e2222001 eor r2, r2, #1 a000a15c: eb0002da bl a000accc <_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 ); a000a160: e59f30a8 ldr r3, [pc, #168] ; a000a210 a000a164: e5933008 ldr r3, [r3, #8] id, ((_Options_Is_no_wait( option_set )) ? false : true), timeout, level ); return _Semaphore_Translate_core_mutex_return_code( a000a168: e5930034 ldr r0, [r3, #52] ; 0x34 a000a16c: eb000047 bl a000a290 <_Semaphore_Translate_core_mutex_return_code> a000a170: ea000024 b a000a208 { Thread_Control *executing; /* disabled when you get here */ executing = _Thread_Executing; a000a174: e59f3094 ldr r3, [pc, #148] ; a000a210 a000a178: e5933008 ldr r3, [r3, #8] executing->Wait.return_code = CORE_SEMAPHORE_STATUS_SUCCESSFUL; a000a17c: e5832034 str r2, [r3, #52] ; 0x34 if ( the_semaphore->count != 0 ) { a000a180: e590205c ldr r2, [r0, #92] ; 0x5c a000a184: e3520000 cmp r2, #0 a000a188: 0a000004 beq a000a1a0 the_semaphore->count -= 1; a000a18c: e2422001 sub r2, r2, #1 a000a190: e580205c str r2, [r0, #92] ; 0x5c a000a194: e59d3008 ldr r3, [sp, #8] a000a198: e129f003 msr CPSR_fc, r3 a000a19c: ea000015 b a000a1f8 _ISR_Enable( *level_p ); return; } if ( !wait ) { a000a1a0: e3160001 tst r6, #1 a000a1a4: 0a000004 beq a000a1bc a000a1a8: e59d2008 ldr r2, [sp, #8] <== NOT EXECUTED a000a1ac: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED _ISR_Enable( *level_p ); executing->Wait.return_code = CORE_SEMAPHORE_STATUS_UNSATISFIED_NOWAIT; a000a1b0: e3a02001 mov r2, #1 <== NOT EXECUTED a000a1b4: e5832034 str r2, [r3, #52] ; 0x34 <== NOT EXECUTED a000a1b8: ea00000e b a000a1f8 <== NOT EXECUTED * * This rountine increments the thread dispatch level */ RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void) { uint32_t level = _Thread_Dispatch_disable_level; a000a1bc: e59f2050 ldr r2, [pc, #80] ; a000a214 a000a1c0: e5921000 ldr r1, [r2] ++level; a000a1c4: e2811001 add r1, r1, #1 _Thread_Dispatch_disable_level = level; a000a1c8: e5821000 str r1, [r2] 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; a000a1cc: e3a02001 mov r2, #1 a000a1d0: e5802044 str r2, [r0, #68] ; 0x44 return; } _Thread_Disable_dispatch(); _Thread_queue_Enter_critical_section( &the_semaphore->Wait_queue ); executing->Wait.queue = &the_semaphore->Wait_queue; a000a1d4: e2800014 add r0, r0, #20 a000a1d8: e5830044 str r0, [r3, #68] ; 0x44 executing->Wait.id = id; a000a1dc: e5834020 str r4, [r3, #32] a000a1e0: e59d3008 ldr r3, [sp, #8] a000a1e4: e129f003 msr CPSR_fc, r3 _ISR_Enable( *level_p ); _Thread_queue_Enqueue( &the_semaphore->Wait_queue, timeout ); a000a1e8: e59f2028 ldr r2, [pc, #40] ; a000a218 a000a1ec: e1a01005 mov r1, r5 a000a1f0: eb000a7b bl a000cbe4 <_Thread_queue_Enqueue_with_handler> _Thread_Enable_dispatch(); a000a1f4: eb00095b bl a000c768 <_Thread_Enable_dispatch> ((_Options_Is_no_wait( option_set )) ? false : true), timeout, &level ); return _Semaphore_Translate_core_semaphore_return_code( _Thread_Executing->Wait.return_code ); a000a1f8: e59f3010 ldr r3, [pc, #16] ; a000a210 a000a1fc: e5933008 ldr r3, [r3, #8] id, ((_Options_Is_no_wait( option_set )) ? false : true), timeout, &level ); return _Semaphore_Translate_core_semaphore_return_code( a000a200: e5930034 ldr r0, [r3, #52] ; 0x34 a000a204: eb000025 bl a000a2a0 <_Semaphore_Translate_core_semaphore_return_code> break; } return RTEMS_INVALID_ID; } a000a208: e8bd807e pop {r1, r2, r3, r4, r5, r6, pc} =============================================================================== a0018084 : rtems_status_code rtems_signal_send( rtems_id id, rtems_signal_set signal_set ) { a0018084: e92d4011 push {r0, r4, lr} register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; ASR_Information *asr; if ( !signal_set ) a0018088: e2514000 subs r4, r1, #0 return RTEMS_INVALID_NUMBER; a001808c: 03a0000a moveq r0, #10 register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; ASR_Information *asr; if ( !signal_set ) a0018090: 0a000025 beq a001812c return RTEMS_INVALID_NUMBER; the_thread = _Thread_Get( id, &location ); a0018094: e1a0100d mov r1, sp a0018098: eb0011b1 bl a001c764 <_Thread_Get> switch ( location ) { a001809c: e59d3000 ldr r3, [sp] a00180a0: e3530000 cmp r3, #0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a00180a4: 13a00004 movne r0, #4 if ( !signal_set ) return RTEMS_INVALID_NUMBER; the_thread = _Thread_Get( id, &location ); switch ( location ) { a00180a8: 1a00001f bne a001812c case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; a00180ac: e59030ec ldr r3, [r0, #236] ; 0xec asr = &api->Signal; if ( ! _ASR_Is_null_handler( asr->handler ) ) { a00180b0: e593200c ldr r2, [r3, #12] a00180b4: e3520000 cmp r2, #0 a00180b8: 0a000019 beq a0018124 if ( asr->is_enabled ) { a00180bc: e5d32008 ldrb r2, [r3, #8] a00180c0: e3520000 cmp r2, #0 uint32_t level; #if defined(ARM_MULTILIB_ARCH_V4) uint32_t arm_switch_reg; __asm__ volatile ( a00180c4: e10f2000 mrs r2, CPSR a00180c8: e3821080 orr r1, r2, #128 ; 0x80 a00180cc: e129f001 msr CPSR_fc, r1 a00180d0: 0a00000c beq a0018108 ) { ISR_Level _level; _ISR_Disable( _level ); *signal_set |= signals; a00180d4: e5931014 ldr r1, [r3, #20] a00180d8: e1814004 orr r4, r1, r4 a00180dc: e5834014 str r4, [r3, #20] static inline void arm_interrupt_enable( uint32_t level ) { #if defined(ARM_MULTILIB_ARCH_V4) ARM_SWITCH_REGISTERS; __asm__ volatile ( a00180e0: e129f002 msr CPSR_fc, r2 _ASR_Post_signals( signal_set, &asr->signals_posted ); if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) ) a00180e4: e59f3044 ldr r3, [pc, #68] ; a0018130 a00180e8: e5932000 ldr r2, [r3] a00180ec: e3520000 cmp r2, #0 a00180f0: 0a000008 beq a0018118 a00180f4: e5932008 ldr r2, [r3, #8] <== NOT EXECUTED a00180f8: e1500002 cmp r0, r2 <== NOT EXECUTED _Thread_Dispatch_necessary = true; a00180fc: 03a02001 moveq r2, #1 <== NOT EXECUTED a0018100: 05c32004 strbeq r2, [r3, #4] <== NOT EXECUTED a0018104: ea000003 b a0018118 <== NOT EXECUTED a0018108: e5931018 ldr r1, [r3, #24] <== NOT EXECUTED a001810c: e1814004 orr r4, r1, r4 <== NOT EXECUTED a0018110: e5834018 str r4, [r3, #24] <== NOT EXECUTED a0018114: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED } else { _ASR_Post_signals( signal_set, &asr->signals_pending ); } _Thread_Enable_dispatch(); a0018118: eb001189 bl a001c744 <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; a001811c: e3a00000 mov r0, #0 a0018120: ea000001 b a001812c } _Thread_Enable_dispatch(); a0018124: eb001186 bl a001c744 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_NOT_DEFINED; a0018128: e3a0000b mov r0, #11 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a001812c: e8bd8018 pop {r3, r4, pc} =============================================================================== a000bf38 : rtems_status_code rtems_task_get_note( rtems_id id, uint32_t notepad, uint32_t *note ) { a000bf38: e92d4071 push {r0, r4, r5, r6, lr} a000bf3c: e1a05002 mov r5, r2 register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; if ( !rtems_configuration_get_notepads_enabled() ) a000bf40: e59f2098 ldr r2, [pc, #152] ; a000bfe0 rtems_status_code rtems_task_get_note( rtems_id id, uint32_t notepad, uint32_t *note ) { a000bf44: e1a03000 mov r3, r0 a000bf48: e1a04001 mov r4, r1 register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; if ( !rtems_configuration_get_notepads_enabled() ) a000bf4c: e5d22004 ldrb r2, [r2, #4] a000bf50: e3520000 cmp r2, #0 return RTEMS_NOT_CONFIGURED; a000bf54: 03a00016 moveq r0, #22 { register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; if ( !rtems_configuration_get_notepads_enabled() ) a000bf58: 0a00001f beq a000bfdc return RTEMS_NOT_CONFIGURED; if ( !note ) a000bf5c: e3550000 cmp r5, #0 return RTEMS_INVALID_ADDRESS; a000bf60: 03a00009 moveq r0, #9 RTEMS_API_Control *api; if ( !rtems_configuration_get_notepads_enabled() ) return RTEMS_NOT_CONFIGURED; if ( !note ) a000bf64: 0a00001c beq a000bfdc /* * 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 ) a000bf68: e351000f cmp r1, #15 return RTEMS_INVALID_NUMBER; a000bf6c: 83a0000a movhi r0, #10 /* * 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 ) a000bf70: 8a000019 bhi a000bfdc /* * Optimize the most likely case to avoid the Thread_Dispatch. */ if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) || a000bf74: e3530000 cmp r3, #0 a000bf78: e59f2064 ldr r2, [pc, #100] ; a000bfe4 a000bf7c: 0a000003 beq a000bf90 _Objects_Are_ids_equal( id, _Thread_Executing->Object.id ) ) { a000bf80: e5921008 ldr r1, [r2, #8] /* * Optimize the most likely case to avoid the Thread_Dispatch. */ if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) || a000bf84: e5911008 ldr r1, [r1, #8] a000bf88: e1530001 cmp r3, r1 a000bf8c: 1a000006 bne a000bfac _Objects_Are_ids_equal( id, _Thread_Executing->Object.id ) ) { api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ]; a000bf90: e5923008 ldr r3, [r2, #8] <== NOT EXECUTED *note = api->Notepads[ notepad ]; a000bf94: e2844008 add r4, r4, #8 <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000bf98: e3a00000 mov r0, #0 <== 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 ]; a000bf9c: e59330ec ldr r3, [r3, #236] ; 0xec <== NOT EXECUTED a000bfa0: e7933104 ldr r3, [r3, r4, lsl #2] <== NOT EXECUTED a000bfa4: e5853000 str r3, [r5] <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000bfa8: ea00000b b a000bfdc <== NOT EXECUTED } the_thread = _Thread_Get( id, &location ); a000bfac: e1a0100d mov r1, sp a000bfb0: eb000967 bl a000e554 <_Thread_Get> switch ( location ) { a000bfb4: e59d6000 ldr r6, [sp] a000bfb8: e3560000 cmp r6, #0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a000bfbc: 13a00004 movne r0, #4 *note = api->Notepads[ notepad ]; return RTEMS_SUCCESSFUL; } the_thread = _Thread_Get( id, &location ); switch ( location ) { a000bfc0: 1a000005 bne a000bfdc case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; *note = api->Notepads[ notepad ]; a000bfc4: e59030ec ldr r3, [r0, #236] ; 0xec a000bfc8: e2844008 add r4, r4, #8 a000bfcc: e7933104 ldr r3, [r3, r4, lsl #2] a000bfd0: e5853000 str r3, [r5] _Thread_Enable_dispatch(); a000bfd4: eb000956 bl a000e534 <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; a000bfd8: e1a00006 mov r0, r6 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a000bfdc: e8bd8078 pop {r3, r4, r5, r6, pc} =============================================================================== a000a4c4 : rtems_id *id ) { Objects_Name_or_id_lookup_errors status; if ( !id ) a000a4c4: e2523000 subs r3, r2, #0 rtems_status_code rtems_task_ident( rtems_name name, uint32_t node, rtems_id *id ) { a000a4c8: e92d4010 push {r4, lr} a000a4cc: e1a0c000 mov ip, r0 a000a4d0: e1a04001 mov r4, r1 Objects_Name_or_id_lookup_errors status; if ( !id ) a000a4d4: 0a00000d beq a000a510 return RTEMS_INVALID_ADDRESS; if ( name == OBJECTS_ID_OF_SELF ) { a000a4d8: e3500000 cmp r0, #0 a000a4dc: 1a000004 bne a000a4f4 *id = _Thread_Executing->Object.id; a000a4e0: e59f2030 ldr r2, [pc, #48] ; a000a518 a000a4e4: e5922008 ldr r2, [r2, #8] a000a4e8: e5922008 ldr r2, [r2, #8] a000a4ec: e5832000 str r2, [r3] return RTEMS_SUCCESSFUL; a000a4f0: e8bd8010 pop {r4, pc} } status = _Objects_Name_to_id_u32( &_RTEMS_tasks_Information, name, node, id ); a000a4f4: e59f0020 ldr r0, [pc, #32] ; a000a51c a000a4f8: e1a0100c mov r1, ip a000a4fc: e1a02004 mov r2, r4 a000a500: eb000560 bl a000ba88 <_Objects_Name_to_id_u32> return _Status_Object_name_errors_to_status[ status ]; a000a504: e59f3014 ldr r3, [pc, #20] ; a000a520 a000a508: e7930100 ldr r0, [r3, r0, lsl #2] a000a50c: e8bd8010 pop {r4, pc} ) { Objects_Name_or_id_lookup_errors status; if ( !id ) return RTEMS_INVALID_ADDRESS; a000a510: e3a00009 mov r0, #9 <== NOT EXECUTED } status = _Objects_Name_to_id_u32( &_RTEMS_tasks_Information, name, node, id ); return _Status_Object_name_errors_to_status[ status ]; } a000a514: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a00184d8 : */ rtems_status_code rtems_task_is_suspended( rtems_id id ) { a00184d8: e92d4011 push {r0, r4, lr} register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); a00184dc: e1a0100d mov r1, sp a00184e0: eb00109f bl a001c764 <_Thread_Get> switch ( location ) { a00184e4: e59d3000 ldr r3, [sp] a00184e8: e3530000 cmp r3, #0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a00184ec: 13a00004 movne r0, #4 { register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); switch ( location ) { a00184f0: 1a000007 bne a0018514 */ RTEMS_INLINE_ROUTINE bool _States_Is_suspended ( States_Control the_states ) { return (the_states & STATES_SUSPENDED); a00184f4: e5904010 ldr r4, [r0, #16] <== NOT EXECUTED case OBJECTS_LOCAL: if ( !_States_Is_suspended( the_thread->current_state ) ) { a00184f8: e2144002 ands r4, r4, #2 <== NOT EXECUTED a00184fc: 1a000002 bne a001850c <== NOT EXECUTED _Thread_Enable_dispatch(); a0018500: eb00108f bl a001c744 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0018504: e1a00004 mov r0, r4 <== NOT EXECUTED a0018508: ea000001 b a0018514 <== NOT EXECUTED } _Thread_Enable_dispatch(); a001850c: eb00108c bl a001c744 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_ALREADY_SUSPENDED; a0018510: e3a0000f mov r0, #15 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a0018514: e8bd8018 pop {r3, r4, pc} =============================================================================== a001296c : rtems_status_code rtems_task_mode( rtems_mode mode_set, rtems_mode mask, rtems_mode *previous_mode_set ) { a001296c: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} ASR_Information *asr; bool is_asr_enabled = false; bool needs_asr_dispatching = false; rtems_mode old_mode; if ( !previous_mode_set ) a0012970: e252a000 subs sl, r2, #0 rtems_status_code rtems_task_mode( rtems_mode mode_set, rtems_mode mask, rtems_mode *previous_mode_set ) { a0012974: e1a04000 mov r4, r0 a0012978: e1a05001 mov r5, r1 ASR_Information *asr; bool is_asr_enabled = false; bool needs_asr_dispatching = false; rtems_mode old_mode; if ( !previous_mode_set ) a001297c: 0a00004f beq a0012ac0 return RTEMS_INVALID_ADDRESS; executing = _Thread_Executing; a0012980: e59f3144 ldr r3, [pc, #324] ; a0012acc a0012984: e5937008 ldr r7, [r3, #8] api = executing->API_Extensions[ THREAD_API_RTEMS ]; a0012988: e59760ec ldr r6, [r7, #236] ; 0xec asr = &api->Signal; old_mode = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT; a001298c: e5d78070 ldrb r8, [r7, #112] ; 0x70 if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE ) a0012990: e5973078 ldr r3, [r7, #120] ; 0x78 old_mode |= RTEMS_NO_TIMESLICE; else old_mode |= RTEMS_TIMESLICE; old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR; a0012994: e5d69008 ldrb r9, [r6, #8] executing = _Thread_Executing; api = executing->API_Extensions[ THREAD_API_RTEMS ]; asr = &api->Signal; old_mode = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT; a0012998: e3580000 cmp r8, #0 a001299c: 03a08c01 moveq r8, #256 ; 0x100 a00129a0: 13a08000 movne r8, #0 if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE ) a00129a4: e3530000 cmp r3, #0 old_mode |= RTEMS_NO_TIMESLICE; else old_mode |= RTEMS_TIMESLICE; a00129a8: 13888c02 orrne r8, r8, #512 ; 0x200 old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR; a00129ac: e3590000 cmp r9, #0 a00129b0: 03a09b01 moveq r9, #1024 ; 0x400 a00129b4: 13a09000 movne r9, #0 old_mode |= _ISR_Get_level(); a00129b8: ebfff051 bl a000eb04 <_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; a00129bc: e1899000 orr r9, r9, r0 old_mode |= _ISR_Get_level(); a00129c0: e1898008 orr r8, r9, r8 *previous_mode_set = old_mode; /* * These are generic thread scheduling characteristics. */ if ( mask & RTEMS_PREEMPT_MASK ) a00129c4: e3150c01 tst r5, #256 ; 0x100 old_mode |= RTEMS_TIMESLICE; old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR; old_mode |= _ISR_Get_level(); *previous_mode_set = old_mode; a00129c8: e58a8000 str r8, [sl] /* * These are generic thread scheduling characteristics. */ if ( mask & RTEMS_PREEMPT_MASK ) a00129cc: 0a000003 beq a00129e0 executing->is_preemptible = _Modes_Is_preempt(mode_set) ? true : false; a00129d0: e3140c01 tst r4, #256 ; 0x100 a00129d4: 13a03000 movne r3, #0 a00129d8: 03a03001 moveq r3, #1 a00129dc: e5c73070 strb r3, [r7, #112] ; 0x70 if ( mask & RTEMS_TIMESLICE_MASK ) { a00129e0: e3150c02 tst r5, #512 ; 0x200 a00129e4: 0a000006 beq a0012a04 if ( _Modes_Is_timeslice(mode_set) ) { a00129e8: e2143c02 ands r3, r4, #512 ; 0x200 executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE; a00129ec: 13a03001 movne r3, #1 a00129f0: 15873078 strne r3, [r7, #120] ; 0x78 executing->cpu_time_budget = _Thread_Ticks_per_timeslice; a00129f4: 159f30d4 ldrne r3, [pc, #212] ; a0012ad0 } else executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE; a00129f8: 05873078 streq r3, [r7, #120] ; 0x78 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; executing->cpu_time_budget = _Thread_Ticks_per_timeslice; a00129fc: 15933000 ldrne r3, [r3] a0012a00: 15873074 strne r3, [r7, #116] ; 0x74 } /* * Set the new interrupt level */ if ( mask & RTEMS_INTERRUPT_MASK ) a0012a04: e3150080 tst r5, #128 ; 0x80 a0012a08: 0a000001 beq a0012a14 */ RTEMS_INLINE_ROUTINE void _Modes_Set_interrupt_level ( Modes_Control mode_set ) { _ISR_Set_level( _Modes_Get_interrupt_level( mode_set ) ); a0012a0c: e2040080 and r0, r4, #128 ; 0x80 a0012a10: ebfff036 bl a000eaf0 <_CPU_ISR_Set_level> * This is specific to the RTEMS API */ is_asr_enabled = false; needs_asr_dispatching = false; if ( mask & RTEMS_ASR_MASK ) { a0012a14: e2150b01 ands r0, r5, #1024 ; 0x400 a0012a18: 0a000013 beq a0012a6c is_asr_enabled = _Modes_Is_asr_disabled( mode_set ) ? false : true; if ( is_asr_enabled != asr->is_enabled ) { a0012a1c: e5d62008 ldrb r2, [r6, #8] #include #include #include #include rtems_status_code rtems_task_mode( a0012a20: e3140b01 tst r4, #1024 ; 0x400 a0012a24: 13a03000 movne r3, #0 a0012a28: 03a03001 moveq r3, #1 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 ) { a0012a2c: e1520003 cmp r2, r3 /* * This is specific to the RTEMS API */ is_asr_enabled = false; needs_asr_dispatching = false; a0012a30: 03a00000 moveq r0, #0 if ( mask & RTEMS_ASR_MASK ) { is_asr_enabled = _Modes_Is_asr_disabled( mode_set ) ? false : true; if ( is_asr_enabled != asr->is_enabled ) { a0012a34: 0a00000c beq a0012a6c asr->is_enabled = is_asr_enabled; a0012a38: e5c63008 strb r3, [r6, #8] uint32_t level; #if defined(ARM_MULTILIB_ARCH_V4) uint32_t arm_switch_reg; __asm__ volatile ( a0012a3c: e10f3000 mrs r3, CPSR a0012a40: e3832080 orr r2, r3, #128 ; 0x80 a0012a44: e129f002 msr CPSR_fc, r2 { rtems_signal_set _signals; ISR_Level _level; _ISR_Disable( _level ); _signals = information->signals_pending; a0012a48: e5962018 ldr r2, [r6, #24] information->signals_pending = information->signals_posted; a0012a4c: e5961014 ldr r1, [r6, #20] information->signals_posted = _signals; a0012a50: e5862014 str r2, [r6, #20] rtems_signal_set _signals; ISR_Level _level; _ISR_Disable( _level ); _signals = information->signals_pending; information->signals_pending = information->signals_posted; a0012a54: e5861018 str r1, [r6, #24] static inline void arm_interrupt_enable( uint32_t level ) { #if defined(ARM_MULTILIB_ARCH_V4) ARM_SWITCH_REGISTERS; __asm__ volatile ( a0012a58: e129f003 msr CPSR_fc, r3 _ASR_Swap_signals( asr ); if ( _ASR_Are_signals_pending( asr ) ) { a0012a5c: e5960014 ldr r0, [r6, #20] /* * This is specific to the RTEMS API */ is_asr_enabled = false; needs_asr_dispatching = false; a0012a60: e3500000 cmp r0, #0 a0012a64: 13a00001 movne r0, #1 a0012a68: 03a00000 moveq r0, #0 needs_asr_dispatching = true; } } } if ( _System_state_Is_up( _System_state_Get() ) ) { a0012a6c: e59f3060 ldr r3, [pc, #96] ; a0012ad4 a0012a70: e5933000 ldr r3, [r3] a0012a74: e3530003 cmp r3, #3 if (_Thread_Evaluate_is_dispatch_needed( needs_asr_dispatching ) ) _Thread_Dispatch(); } return RTEMS_SUCCESSFUL; a0012a78: 13a00000 movne r0, #0 needs_asr_dispatching = true; } } } if ( _System_state_Is_up( _System_state_Get() ) ) { a0012a7c: 1a000011 bne a0012ac8 bool are_signals_pending ) { Thread_Control *executing; executing = _Thread_Executing; a0012a80: e59f3044 ldr r3, [pc, #68] ; a0012acc if ( are_signals_pending || a0012a84: e3500000 cmp r0, #0 bool are_signals_pending ) { Thread_Control *executing; executing = _Thread_Executing; a0012a88: e5932008 ldr r2, [r3, #8] a0012a8c: e1a01003 mov r1, r3 if ( are_signals_pending || a0012a90: 1a000005 bne a0012aac a0012a94: e593300c ldr r3, [r3, #12] a0012a98: e1520003 cmp r2, r3 a0012a9c: 0a000009 beq a0012ac8 (!_Thread_Is_heir( executing ) && executing->is_preemptible) ) { a0012aa0: e5d23070 ldrb r3, [r2, #112] ; 0x70 a0012aa4: e3530000 cmp r3, #0 a0012aa8: 0a000006 beq a0012ac8 _Thread_Dispatch_necessary = true; a0012aac: e3a03001 mov r3, #1 a0012ab0: e5c13004 strb r3, [r1, #4] if (_Thread_Evaluate_is_dispatch_needed( needs_asr_dispatching ) ) _Thread_Dispatch(); a0012ab4: eb000272 bl a0013484 <_Thread_Dispatch> } return RTEMS_SUCCESSFUL; a0012ab8: e3a00000 mov r0, #0 a0012abc: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} bool is_asr_enabled = false; bool needs_asr_dispatching = false; rtems_mode old_mode; if ( !previous_mode_set ) return RTEMS_INVALID_ADDRESS; a0012ac0: e3a00009 mov r0, #9 <== NOT EXECUTED a0012ac4: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED if (_Thread_Evaluate_is_dispatch_needed( needs_asr_dispatching ) ) _Thread_Dispatch(); } return RTEMS_SUCCESSFUL; } a0012ac8: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} =============================================================================== a000d440 : #include rtems_status_code rtems_task_resume( rtems_id id ) { a000d440: e92d4011 push {r0, r4, lr} register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); a000d444: e1a0100d mov r1, sp a000d448: eb000855 bl a000f5a4 <_Thread_Get> switch ( location ) { a000d44c: e59d4000 ldr r4, [sp] ) { register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); a000d450: e1a03000 mov r3, r0 switch ( location ) { a000d454: e3540000 cmp r4, #0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a000d458: 13a00004 movne r0, #4 { register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); switch ( location ) { a000d45c: 1a000009 bne a000d488 */ RTEMS_INLINE_ROUTINE bool _States_Is_suspended ( States_Control the_states ) { return (the_states & STATES_SUSPENDED); a000d460: e5933010 ldr r3, [r3, #16] case OBJECTS_LOCAL: if ( _States_Is_suspended( the_thread->current_state ) ) { a000d464: e3130002 tst r3, #2 a000d468: 0a000004 beq a000d480 _Thread_Resume( the_thread ); a000d46c: e3a01002 mov r1, #2 a000d470: eb000766 bl a000f210 <_Thread_Clear_state> _Thread_Enable_dispatch(); a000d474: eb000842 bl a000f584 <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; a000d478: e1a00004 mov r0, r4 a000d47c: ea000001 b a000d488 } _Thread_Enable_dispatch(); a000d480: eb00083f bl a000f584 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_INCORRECT_STATE; a000d484: e3a0000e mov r0, #14 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a000d488: e8bd8018 pop {r3, r4, pc} =============================================================================== a000c0cc : rtems_status_code rtems_task_set_note( rtems_id id, uint32_t notepad, uint32_t note ) { a000c0cc: e92d4071 push {r0, r4, r5, r6, lr} a000c0d0: e1a05002 mov r5, r2 register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; if ( !rtems_configuration_get_notepads_enabled() ) a000c0d4: e59f2084 ldr r2, [pc, #132] ; a000c160 rtems_status_code rtems_task_set_note( rtems_id id, uint32_t notepad, uint32_t note ) { a000c0d8: e1a03000 mov r3, r0 a000c0dc: e1a04001 mov r4, r1 register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; if ( !rtems_configuration_get_notepads_enabled() ) a000c0e0: e5d22004 ldrb r2, [r2, #4] a000c0e4: e3520000 cmp r2, #0 return RTEMS_NOT_CONFIGURED; a000c0e8: 03a00016 moveq r0, #22 { register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; if ( !rtems_configuration_get_notepads_enabled() ) a000c0ec: 0a00001a beq a000c15c /* * 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 ) a000c0f0: e351000f cmp r1, #15 return RTEMS_INVALID_NUMBER; a000c0f4: 83a0000a movhi r0, #10 /* * 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 ) a000c0f8: 8a000017 bhi a000c15c /* * Optimize the most likely case to avoid the Thread_Dispatch. */ if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) || a000c0fc: e3530000 cmp r3, #0 a000c100: e59f205c ldr r2, [pc, #92] ; a000c164 a000c104: 0a000003 beq a000c118 _Objects_Are_ids_equal( id, _Thread_Executing->Object.id ) ) { a000c108: e5921008 ldr r1, [r2, #8] /* * Optimize the most likely case to avoid the Thread_Dispatch. */ if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) || a000c10c: e5911008 ldr r1, [r1, #8] a000c110: e1530001 cmp r3, r1 a000c114: 1a000005 bne a000c130 _Objects_Are_ids_equal( id, _Thread_Executing->Object.id ) ) { api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ]; a000c118: e5923008 ldr r3, [r2, #8] <== NOT EXECUTED api->Notepads[ notepad ] = note; a000c11c: e2844008 add r4, r4, #8 <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000c120: e3a00000 mov r0, #0 <== 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; a000c124: e59330ec ldr r3, [r3, #236] ; 0xec <== NOT EXECUTED a000c128: e7835104 str r5, [r3, r4, lsl #2] <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000c12c: ea00000a b a000c15c <== NOT EXECUTED } the_thread = _Thread_Get( id, &location ); a000c130: e1a0100d mov r1, sp a000c134: eb000906 bl a000e554 <_Thread_Get> switch ( location ) { a000c138: e59d6000 ldr r6, [sp] a000c13c: e3560000 cmp r6, #0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a000c140: 13a00004 movne r0, #4 api->Notepads[ notepad ] = note; return RTEMS_SUCCESSFUL; } the_thread = _Thread_Get( id, &location ); switch ( location ) { a000c144: 1a000004 bne a000c15c case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; api->Notepads[ notepad ] = note; a000c148: e59030ec ldr r3, [r0, #236] ; 0xec a000c14c: e2844008 add r4, r4, #8 a000c150: e7835104 str r5, [r3, r4, lsl #2] _Thread_Enable_dispatch(); a000c154: eb0008f6 bl a000e534 <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; a000c158: e1a00006 mov r0, r6 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a000c15c: e8bd8078 pop {r3, r4, r5, r6, pc} =============================================================================== a000e414 : rtems_status_code rtems_task_set_priority( rtems_id id, rtems_task_priority new_priority, rtems_task_priority *old_priority ) { a000e414: e92d4031 push {r0, r4, r5, lr} register Thread_Control *the_thread; Objects_Locations location; if ( new_priority != RTEMS_CURRENT_PRIORITY && a000e418: e2514000 subs r4, r1, #0 rtems_status_code rtems_task_set_priority( rtems_id id, rtems_task_priority new_priority, rtems_task_priority *old_priority ) { a000e41c: e1a05002 mov r5, r2 register Thread_Control *the_thread; Objects_Locations location; if ( new_priority != RTEMS_CURRENT_PRIORITY && a000e420: 0a000004 beq a000e438 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 ) ); a000e424: e59f3074 ldr r3, [pc, #116] ; a000e4a0 a000e428: e5d33000 ldrb r3, [r3] a000e42c: e1540003 cmp r4, r3 !_RTEMS_tasks_Priority_is_valid( new_priority ) ) return RTEMS_INVALID_PRIORITY; a000e430: 83a00013 movhi r0, #19 ) { register Thread_Control *the_thread; Objects_Locations location; if ( new_priority != RTEMS_CURRENT_PRIORITY && a000e434: 8a000018 bhi a000e49c !_RTEMS_tasks_Priority_is_valid( new_priority ) ) return RTEMS_INVALID_PRIORITY; if ( !old_priority ) a000e438: e3550000 cmp r5, #0 return RTEMS_INVALID_ADDRESS; a000e43c: 03a00009 moveq r0, #9 if ( new_priority != RTEMS_CURRENT_PRIORITY && !_RTEMS_tasks_Priority_is_valid( new_priority ) ) return RTEMS_INVALID_PRIORITY; if ( !old_priority ) a000e440: 0a000015 beq a000e49c return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get( id, &location ); a000e444: e1a0100d mov r1, sp a000e448: eb0008db bl a00107bc <_Thread_Get> switch ( location ) { a000e44c: e59d3000 ldr r3, [sp] a000e450: e3530000 cmp r3, #0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a000e454: 13a00004 movne r0, #4 if ( !old_priority ) return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get( id, &location ); switch ( location ) { a000e458: 1a00000f bne a000e49c case OBJECTS_LOCAL: /* XXX need helper to "convert" from core priority */ *old_priority = the_thread->current_priority; a000e45c: e5903014 ldr r3, [r0, #20] if ( new_priority != RTEMS_CURRENT_PRIORITY ) { a000e460: e3540000 cmp r4, #0 the_thread = _Thread_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: /* XXX need helper to "convert" from core priority */ *old_priority = the_thread->current_priority; a000e464: e5853000 str r3, [r5] if ( new_priority != RTEMS_CURRENT_PRIORITY ) { a000e468: 0a000009 beq a000e494 the_thread->real_priority = new_priority; if ( the_thread->resource_count == 0 || a000e46c: e590301c ldr r3, [r0, #28] case OBJECTS_LOCAL: /* XXX need helper to "convert" from core priority */ *old_priority = the_thread->current_priority; if ( new_priority != RTEMS_CURRENT_PRIORITY ) { the_thread->real_priority = new_priority; a000e470: e5804018 str r4, [r0, #24] if ( the_thread->resource_count == 0 || a000e474: e3530000 cmp r3, #0 a000e478: 0a000002 beq a000e488 a000e47c: e5903014 ldr r3, [r0, #20] <== NOT EXECUTED a000e480: e1530004 cmp r3, r4 <== NOT EXECUTED a000e484: 9a000002 bls a000e494 <== NOT EXECUTED the_thread->current_priority > new_priority ) _Thread_Change_priority( the_thread, new_priority, false ); a000e488: e1a01004 mov r1, r4 a000e48c: e3a02000 mov r2, #0 a000e490: eb0007a8 bl a0010338 <_Thread_Change_priority> } _Thread_Enable_dispatch(); a000e494: eb0008c0 bl a001079c <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; a000e498: e3a00000 mov r0, #0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a000e49c: e8bd8038 pop {r3, r4, r5, pc} =============================================================================== a000a5a8 : rtems_status_code rtems_task_start( rtems_id id, rtems_task_entry entry_point, rtems_task_argument argument ) { a000a5a8: e92d4073 push {r0, r1, r4, r5, r6, lr} register Thread_Control *the_thread; Objects_Locations location; if ( entry_point == NULL ) a000a5ac: e2515000 subs r5, r1, #0 rtems_status_code rtems_task_start( rtems_id id, rtems_task_entry entry_point, rtems_task_argument argument ) { a000a5b0: e1a06002 mov r6, r2 register Thread_Control *the_thread; Objects_Locations location; if ( entry_point == NULL ) return RTEMS_INVALID_ADDRESS; a000a5b4: 03a00009 moveq r0, #9 ) { register Thread_Control *the_thread; Objects_Locations location; if ( entry_point == NULL ) a000a5b8: 0a000011 beq a000a604 return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get( id, &location ); a000a5bc: e28d1004 add r1, sp, #4 a000a5c0: eb000870 bl a000c788 <_Thread_Get> switch ( location ) { a000a5c4: e59d4004 ldr r4, [sp, #4] a000a5c8: e3540000 cmp r4, #0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a000a5cc: 13a00004 movne r0, #4 if ( entry_point == NULL ) return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get( id, &location ); switch ( location ) { a000a5d0: 1a00000b bne a000a604 case OBJECTS_LOCAL: if ( _Thread_Start( a000a5d4: e1a01004 mov r1, r4 a000a5d8: e1a02005 mov r2, r5 a000a5dc: e1a03004 mov r3, r4 a000a5e0: e58d6000 str r6, [sp] a000a5e4: eb000aa9 bl a000d090 <_Thread_Start> a000a5e8: e3500000 cmp r0, #0 a000a5ec: 0a000002 beq a000a5fc the_thread, THREAD_START_NUMERIC, entry_point, NULL, argument ) ) { _Thread_Enable_dispatch(); a000a5f0: eb00085c bl a000c768 <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; a000a5f4: e1a00004 mov r0, r4 a000a5f8: ea000001 b a000a604 } _Thread_Enable_dispatch(); a000a5fc: eb000859 bl a000c768 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_INCORRECT_STATE; a000a600: e3a0000e mov r0, #14 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a000a604: e8bd807c pop {r2, r3, r4, r5, r6, pc} =============================================================================== a000d6cc : #include rtems_status_code rtems_task_suspend( rtems_id id ) { a000d6cc: e92d4011 push {r0, r4, lr} register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); a000d6d0: e1a0100d mov r1, sp a000d6d4: eb000825 bl a000f770 <_Thread_Get> switch ( location ) { a000d6d8: e59d2000 ldr r2, [sp] ) { register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); a000d6dc: e1a03000 mov r3, r0 switch ( location ) { a000d6e0: e3520000 cmp r2, #0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a000d6e4: 13a00004 movne r0, #4 { register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); switch ( location ) { a000d6e8: 1a000009 bne a000d714 */ RTEMS_INLINE_ROUTINE bool _States_Is_suspended ( States_Control the_states ) { return (the_states & STATES_SUSPENDED); a000d6ec: e5934010 ldr r4, [r3, #16] case OBJECTS_LOCAL: if ( !_States_Is_suspended( the_thread->current_state ) ) { a000d6f0: e2144002 ands r4, r4, #2 a000d6f4: 1a000004 bne a000d70c _Thread_Suspend( the_thread ); a000d6f8: e3a01002 mov r1, #2 a000d6fc: eb000a18 bl a000ff64 <_Thread_Set_state> _Thread_Enable_dispatch(); a000d700: eb000812 bl a000f750 <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; a000d704: e1a00004 mov r0, r4 a000d708: ea000001 b a000d714 } _Thread_Enable_dispatch(); a000d70c: eb00080f bl a000f750 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_ALREADY_SUSPENDED; a000d710: e3a0000f mov r0, #15 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a000d714: e8bd8018 pop {r3, r4, pc} =============================================================================== a0008e08 : rtems_status_code rtems_task_variable_add( rtems_id tid, void **ptr, void (*dtor)(void *) ) { a0008e08: e92d40f1 push {r0, r4, r5, r6, r7, lr} Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp, *new; if ( !ptr ) a0008e0c: e2514000 subs r4, r1, #0 rtems_status_code rtems_task_variable_add( rtems_id tid, void **ptr, void (*dtor)(void *) ) { a0008e10: e1a05002 mov r5, r2 Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp, *new; if ( !ptr ) return RTEMS_INVALID_ADDRESS; a0008e14: 03a00009 moveq r0, #9 { Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp, *new; if ( !ptr ) a0008e18: 0a000023 beq a0008eac return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get (tid, &location); a0008e1c: e1a0100d mov r1, sp a0008e20: eb0007a2 bl a000acb0 <_Thread_Get> switch (location) { a0008e24: e59d3000 ldr r3, [sp] rtems_task_variable_t *tvp, *new; if ( !ptr ) return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get (tid, &location); a0008e28: e1a07000 mov r7, r0 switch (location) { a0008e2c: e3530000 cmp r3, #0 case OBJECTS_LOCAL: /* * Figure out if the variable is already in this task's list. */ tvp = the_thread->task_variables; a0008e30: 059060f8 ldreq r6, [r0, #248] ; 0xf8 if ( !ptr ) return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get (tid, &location); switch (location) { a0008e34: 0a000008 beq a0008e5c a0008e38: ea00001a b a0008ea8 <== 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) { a0008e3c: e5963004 ldr r3, [r6, #4] <== NOT EXECUTED a0008e40: e1530004 cmp r3, r4 <== NOT EXECUTED a0008e44: 1a000003 bne a0008e58 <== NOT EXECUTED tvp->dtor = dtor; a0008e48: e5865010 str r5, [r6, #16] <== NOT EXECUTED _Thread_Enable_dispatch(); a0008e4c: eb00078f bl a000ac90 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0008e50: e3a00000 mov r0, #0 <== NOT EXECUTED a0008e54: ea000014 b a0008eac <== NOT EXECUTED } tvp = (rtems_task_variable_t *)tvp->next; a0008e58: e5966000 ldr r6, [r6] <== NOT EXECUTED case OBJECTS_LOCAL: /* * Figure out if the variable is already in this task's list. */ tvp = the_thread->task_variables; while (tvp) { a0008e5c: e3560000 cmp r6, #0 a0008e60: 1afffff5 bne a0008e3c } /* * Now allocate memory for this task variable. */ new = (rtems_task_variable_t *) a0008e64: e3a00014 mov r0, #20 a0008e68: eb000b2a bl a000bb18 <_Workspace_Allocate> _Workspace_Allocate(sizeof(rtems_task_variable_t)); if (new == NULL) { a0008e6c: e3500000 cmp r0, #0 a0008e70: 1a000002 bne a0008e80 _Thread_Enable_dispatch(); a0008e74: eb000785 bl a000ac90 <_Thread_Enable_dispatch> return RTEMS_NO_MEMORY; a0008e78: e3a0001a mov r0, #26 a0008e7c: ea00000a b a0008eac } new->gval = *ptr; a0008e80: e5943000 ldr r3, [r4] new->ptr = ptr; a0008e84: e5804004 str r4, [r0, #4] new->dtor = dtor; a0008e88: e5805010 str r5, [r0, #16] _Workspace_Allocate(sizeof(rtems_task_variable_t)); if (new == NULL) { _Thread_Enable_dispatch(); return RTEMS_NO_MEMORY; } new->gval = *ptr; a0008e8c: e5803008 str r3, [r0, #8] new->ptr = ptr; new->dtor = dtor; new->next = (struct rtems_task_variable_tt *)the_thread->task_variables; a0008e90: e59730f8 ldr r3, [r7, #248] ; 0xf8 a0008e94: e5803000 str r3, [r0] the_thread->task_variables = new; a0008e98: e58700f8 str r0, [r7, #248] ; 0xf8 _Thread_Enable_dispatch(); a0008e9c: eb00077b bl a000ac90 <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; a0008ea0: e1a00006 mov r0, r6 a0008ea4: ea000000 b a0008eac #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a0008ea8: e3a00004 mov r0, #4 <== NOT EXECUTED } a0008eac: e8bd80f8 pop {r3, r4, r5, r6, r7, pc} =============================================================================== a0008eb0 : rtems_status_code rtems_task_variable_delete( rtems_id tid, void **ptr ) { a0008eb0: e92d4011 push {r0, r4, lr} Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp, *prev; if ( !ptr ) a0008eb4: e2514000 subs r4, r1, #0 a0008eb8: 0a000016 beq a0008f18 return RTEMS_INVALID_ADDRESS; prev = NULL; the_thread = _Thread_Get (tid, &location); a0008ebc: e1a0100d mov r1, sp a0008ec0: eb00077a bl a000acb0 <_Thread_Get> switch (location) { a0008ec4: e59d3000 ldr r3, [sp] a0008ec8: e3530000 cmp r3, #0 case OBJECTS_LOCAL: tvp = the_thread->task_variables; a0008ecc: 059010f8 ldreq r1, [r0, #248] ; 0xf8 return RTEMS_INVALID_ADDRESS; prev = NULL; the_thread = _Thread_Get (tid, &location); switch (location) { a0008ed0: 0a00000d beq a0008f0c a0008ed4: ea000011 b a0008f20 <== NOT EXECUTED case OBJECTS_LOCAL: tvp = the_thread->task_variables; while (tvp) { if (tvp->ptr == ptr) { a0008ed8: e5912004 ldr r2, [r1, #4] a0008edc: e1520004 cmp r2, r4 a0008ee0: 1a000007 bne a0008f04 a0008ee4: e5912000 ldr r2, [r1] if (prev) a0008ee8: e3530000 cmp r3, #0 prev->next = tvp->next; else the_thread->task_variables = (rtems_task_variable_t *)tvp->next; a0008eec: 058020f8 streq r2, [r0, #248] ; 0xf8 case OBJECTS_LOCAL: tvp = the_thread->task_variables; while (tvp) { if (tvp->ptr == ptr) { if (prev) prev->next = tvp->next; a0008ef0: 15832000 strne r2, [r3] else the_thread->task_variables = (rtems_task_variable_t *)tvp->next; _RTEMS_Tasks_Invoke_task_variable_dtor( the_thread, tvp ); a0008ef4: eb000028 bl a0008f9c <_RTEMS_Tasks_Invoke_task_variable_dtor> _Thread_Enable_dispatch(); a0008ef8: eb000764 bl a000ac90 <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; a0008efc: e3a00000 mov r0, #0 a0008f00: ea000007 b a0008f24 } prev = tvp; tvp = (rtems_task_variable_t *)tvp->next; a0008f04: e1a03001 mov r3, r1 <== NOT EXECUTED a0008f08: e5911000 ldr r1, [r1] <== NOT EXECUTED the_thread = _Thread_Get (tid, &location); switch (location) { case OBJECTS_LOCAL: tvp = the_thread->task_variables; while (tvp) { a0008f0c: e3510000 cmp r1, #0 a0008f10: 1afffff0 bne a0008ed8 return RTEMS_SUCCESSFUL; } prev = tvp; tvp = (rtems_task_variable_t *)tvp->next; } _Thread_Enable_dispatch(); a0008f14: eb00075d bl a000ac90 <_Thread_Enable_dispatch> <== NOT EXECUTED Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp, *prev; if ( !ptr ) return RTEMS_INVALID_ADDRESS; a0008f18: e3a00009 mov r0, #9 <== NOT EXECUTED a0008f1c: ea000000 b a0008f24 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a0008f20: e3a00004 mov r0, #4 <== NOT EXECUTED } a0008f24: e8bd8018 pop {r3, r4, pc} =============================================================================== a0008f28 : rtems_status_code rtems_task_variable_get( rtems_id tid, void **ptr, void **result ) { a0008f28: e92d4031 push {r0, r4, r5, lr} Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp; if ( !ptr ) a0008f2c: e2515000 subs r5, r1, #0 rtems_status_code rtems_task_variable_get( rtems_id tid, void **ptr, void **result ) { a0008f30: e1a04002 mov r4, r2 Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp; if ( !ptr ) a0008f34: 0a000014 beq a0008f8c return RTEMS_INVALID_ADDRESS; if ( !result ) a0008f38: e3520000 cmp r2, #0 a0008f3c: 0a000012 beq a0008f8c return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get (tid, &location); a0008f40: e1a0100d mov r1, sp a0008f44: eb000759 bl a000acb0 <_Thread_Get> switch (location) { a0008f48: e59d3000 ldr r3, [sp] a0008f4c: e3530000 cmp r3, #0 case OBJECTS_LOCAL: /* * Figure out if the variable is in this task's list. */ tvp = the_thread->task_variables; a0008f50: 059030f8 ldreq r3, [r0, #248] ; 0xf8 if ( !result ) return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get (tid, &location); switch (location) { a0008f54: 0a000009 beq a0008f80 a0008f58: ea00000d b a0008f94 /* * Figure out if the variable is in this task's list. */ tvp = the_thread->task_variables; while (tvp) { if (tvp->ptr == ptr) { a0008f5c: e5932004 ldr r2, [r3, #4] <== NOT EXECUTED a0008f60: e1520005 cmp r2, r5 <== NOT EXECUTED a0008f64: 1a000004 bne a0008f7c <== NOT EXECUTED /* * Should this return the current (i.e not the * saved) value if `tid' is the current task? */ *result = tvp->tval; a0008f68: e593300c ldr r3, [r3, #12] <== NOT EXECUTED a0008f6c: e5843000 str r3, [r4] <== NOT EXECUTED _Thread_Enable_dispatch(); a0008f70: eb000746 bl a000ac90 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0008f74: e3a00000 mov r0, #0 <== NOT EXECUTED a0008f78: ea000006 b a0008f98 <== NOT EXECUTED } tvp = (rtems_task_variable_t *)tvp->next; a0008f7c: e5933000 ldr r3, [r3] <== NOT EXECUTED case OBJECTS_LOCAL: /* * Figure out if the variable is in this task's list. */ tvp = the_thread->task_variables; while (tvp) { a0008f80: e3530000 cmp r3, #0 a0008f84: 1afffff4 bne a0008f5c _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } tvp = (rtems_task_variable_t *)tvp->next; } _Thread_Enable_dispatch(); a0008f88: eb000740 bl a000ac90 <_Thread_Enable_dispatch> if ( !ptr ) return RTEMS_INVALID_ADDRESS; if ( !result ) return RTEMS_INVALID_ADDRESS; a0008f8c: e3a00009 mov r0, #9 a0008f90: ea000000 b a0008f98 #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a0008f94: e3a00004 mov r0, #4 } a0008f98: e8bd8038 pop {r3, r4, r5, pc} =============================================================================== a000b4ec : #include rtems_status_code rtems_task_wake_when( rtems_time_of_day *time_buffer ) { a000b4ec: e92d40f0 push {r4, r5, r6, r7, lr} Watchdog_Interval seconds; if ( !_TOD.is_set ) a000b4f0: e59f60d8 ldr r6, [pc, #216] ; a000b5d0 #include rtems_status_code rtems_task_wake_when( rtems_time_of_day *time_buffer ) { a000b4f4: e1a04000 mov r4, r0 Watchdog_Interval seconds; if ( !_TOD.is_set ) a000b4f8: e5d63014 ldrb r3, [r6, #20] a000b4fc: e3530000 cmp r3, #0 a000b500: 0a00002a beq a000b5b0 return RTEMS_NOT_DEFINED; if ( !time_buffer ) a000b504: e3500000 cmp r0, #0 a000b508: 0a00002a beq a000b5b8 return RTEMS_INVALID_ADDRESS; time_buffer->ticks = 0; a000b50c: e3a05000 mov r5, #0 a000b510: e5805018 str r5, [r0, #24] if ( !_TOD_Validate( time_buffer ) ) a000b514: ebfffcfa bl a000a904 <_TOD_Validate> a000b518: e1500005 cmp r0, r5 a000b51c: 0a000027 beq a000b5c0 return RTEMS_INVALID_CLOCK; seconds = _TOD_To_seconds( time_buffer ); a000b520: e1a00004 mov r0, r4 a000b524: ebfffcce bl a000a864 <_TOD_To_seconds> static inline uint32_t _Timestamp64_implementation_Get_seconds( const Timestamp64_Control *_time ) { return (uint32_t) (*_time / 1000000000L); a000b528: e59f20a4 ldr r2, [pc, #164] ; a000b5d4 a000b52c: e1a07000 mov r7, r0 a000b530: e3a03000 mov r3, #0 a000b534: e8960003 ldm r6, {r0, r1} a000b538: eb004219 bl a001bda4 <__divdi3> if ( seconds <= _TOD_Seconds_since_epoch() ) a000b53c: e1570000 cmp r7, r0 a000b540: 9a000020 bls a000b5c8 * * This rountine increments the thread dispatch level */ RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void) { uint32_t level = _Thread_Dispatch_disable_level; a000b544: e59f308c ldr r3, [pc, #140] ; a000b5d8 a000b548: e5932000 ldr r2, [r3] ++level; a000b54c: e2822001 add r2, r2, #1 _Thread_Dispatch_disable_level = level; a000b550: e5832000 str r2, [r3] return RTEMS_INVALID_CLOCK; _Thread_Disable_dispatch(); _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_TIME ); a000b554: e59f4080 ldr r4, [pc, #128] ; a000b5dc a000b558: e3a01010 mov r1, #16 a000b55c: e5940008 ldr r0, [r4, #8] a000b560: eb000a82 bl a000df70 <_Thread_Set_state> a000b564: e8960003 ldm r6, {r0, r1} _Watchdog_Initialize( &_Thread_Executing->Timer, a000b568: e5944008 ldr r4, [r4, #8] Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; a000b56c: e59f206c ldr r2, [pc, #108] ; a000b5e0 if ( seconds <= _TOD_Seconds_since_epoch() ) return RTEMS_INVALID_CLOCK; _Thread_Disable_dispatch(); _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_TIME ); _Watchdog_Initialize( a000b570: e5943008 ldr r3, [r4, #8] a000b574: e5842064 str r2, [r4, #100] ; 0x64 Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; a000b578: e5845050 str r5, [r4, #80] ; 0x50 a000b57c: e59f2050 ldr r2, [pc, #80] ; a000b5d4 the_watchdog->routine = routine; the_watchdog->id = id; a000b580: e5843068 str r3, [r4, #104] ; 0x68 the_watchdog->user_data = user_data; a000b584: e584506c str r5, [r4, #108] ; 0x6c a000b588: e3a03000 mov r3, #0 a000b58c: eb004204 bl a001bda4 <__divdi3> &_Thread_Executing->Timer, _Thread_Delay_ended, _Thread_Executing->Object.id, NULL ); _Watchdog_Insert_seconds( a000b590: e0600007 rsb r0, r0, r7 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; a000b594: e5840054 str r0, [r4, #84] ; 0x54 _Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog ); a000b598: e2841048 add r1, r4, #72 ; 0x48 a000b59c: e59f0040 ldr r0, [pc, #64] ; a000b5e4 a000b5a0: eb000b6a bl a000e350 <_Watchdog_Insert> &_Thread_Executing->Timer, seconds - _TOD_Seconds_since_epoch() ); _Thread_Enable_dispatch(); a000b5a4: eb00086c bl a000d75c <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; a000b5a8: e1a00005 mov r0, r5 <== NOT EXECUTED a000b5ac: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED ) { Watchdog_Interval seconds; if ( !_TOD.is_set ) return RTEMS_NOT_DEFINED; a000b5b0: e3a0000b mov r0, #11 <== NOT EXECUTED a000b5b4: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED if ( !time_buffer ) return RTEMS_INVALID_ADDRESS; a000b5b8: e3a00009 mov r0, #9 <== NOT EXECUTED a000b5bc: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED time_buffer->ticks = 0; if ( !_TOD_Validate( time_buffer ) ) return RTEMS_INVALID_CLOCK; a000b5c0: e3a00014 mov r0, #20 <== NOT EXECUTED a000b5c4: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED seconds = _TOD_To_seconds( time_buffer ); if ( seconds <= _TOD_Seconds_since_epoch() ) return RTEMS_INVALID_CLOCK; a000b5c8: e3a00014 mov r0, #20 <== NOT EXECUTED &_Thread_Executing->Timer, seconds - _TOD_Seconds_since_epoch() ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } a000b5cc: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED =============================================================================== a000a62c : rtems_status_code rtems_timer_create( rtems_name name, rtems_id *id ) { a000a62c: e92d40f0 push {r4, r5, r6, r7, lr} Timer_Control *the_timer; if ( !rtems_is_name_valid( name ) ) a000a630: e2506000 subs r6, r0, #0 rtems_status_code rtems_timer_create( rtems_name name, rtems_id *id ) { a000a634: e1a04001 mov r4, r1 Timer_Control *the_timer; if ( !rtems_is_name_valid( name ) ) a000a638: 0a00001d beq a000a6b4 return RTEMS_INVALID_NAME; if ( !id ) a000a63c: e3510000 cmp r1, #0 a000a640: 0a00001d beq a000a6bc * * This rountine increments the thread dispatch level */ RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void) { uint32_t level = _Thread_Dispatch_disable_level; a000a644: e59f3078 ldr r3, [pc, #120] ; a000a6c4 a000a648: e5932000 ldr r2, [r3] ++level; a000a64c: e2822001 add r2, r2, #1 _Thread_Dispatch_disable_level = level; a000a650: e5832000 str r2, [r3] * 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 ); a000a654: e59f506c ldr r5, [pc, #108] ; a000a6c8 a000a658: e1a00005 mov r0, r5 a000a65c: eb0003cc bl a000b594 <_Objects_Allocate> _Thread_Disable_dispatch(); /* to prevent deletion */ the_timer = _Timer_Allocate(); if ( !the_timer ) { a000a660: e3500000 cmp r0, #0 a000a664: 1a000002 bne a000a674 _Thread_Enable_dispatch(); a000a668: eb000854 bl a000c7c0 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_TOO_MANY; a000a66c: e3a00005 mov r0, #5 <== NOT EXECUTED a000a670: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED } the_timer->the_class = TIMER_DORMANT; a000a674: e3a03004 mov r3, #4 a000a678: e5803038 str r3, [r0, #56] ; 0x38 Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( a000a67c: e1d010b8 ldrh r1, [r0, #8] a000a680: e5903008 ldr r3, [r0, #8] #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; a000a684: e595201c ldr r2, [r5, #28] Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; a000a688: e3a07000 mov r7, #0 a000a68c: e5807018 str r7, [r0, #24] the_watchdog->routine = routine; a000a690: e580702c str r7, [r0, #44] ; 0x2c the_watchdog->id = id; a000a694: e5807030 str r7, [r0, #48] ; 0x30 the_watchdog->user_data = user_data; a000a698: e5807034 str r7, [r0, #52] ; 0x34 a000a69c: e7820101 str r0, [r2, r1, lsl #2] information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; a000a6a0: e580600c str r6, [r0, #12] &_Timer_Information, &the_timer->Object, (Objects_Name) name ); *id = the_timer->Object.id; a000a6a4: e5843000 str r3, [r4] _Thread_Enable_dispatch(); a000a6a8: eb000844 bl a000c7c0 <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; a000a6ac: e1a00007 mov r0, r7 a000a6b0: e8bd80f0 pop {r4, r5, r6, r7, pc} ) { Timer_Control *the_timer; if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; a000a6b4: e3a00003 mov r0, #3 <== NOT EXECUTED a000a6b8: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED if ( !id ) return RTEMS_INVALID_ADDRESS; a000a6bc: e3a00009 mov r0, #9 <== NOT EXECUTED ); *id = the_timer->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } a000a6c0: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED =============================================================================== a000a6cc : rtems_id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { a000a6cc: e92d45f1 push {r0, r4, r5, r6, r7, r8, sl, lr} Timer_Control *the_timer; Objects_Locations location; ISR_Level level; if ( ticks == 0 ) a000a6d0: e2516000 subs r6, r1, #0 rtems_id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { a000a6d4: e1a04000 mov r4, r0 a000a6d8: e1a05002 mov r5, r2 a000a6dc: e1a07003 mov r7, r3 Timer_Control *the_timer; Objects_Locations location; ISR_Level level; if ( ticks == 0 ) return RTEMS_INVALID_NUMBER; a000a6e0: 03a0000a moveq r0, #10 { Timer_Control *the_timer; Objects_Locations location; ISR_Level level; if ( ticks == 0 ) a000a6e4: 0a000022 beq a000a774 return RTEMS_INVALID_NUMBER; if ( !routine ) a000a6e8: e3520000 cmp r2, #0 return RTEMS_INVALID_ADDRESS; a000a6ec: 03a00009 moveq r0, #9 ISR_Level level; if ( ticks == 0 ) return RTEMS_INVALID_NUMBER; if ( !routine ) a000a6f0: 0a00001f beq a000a774 RTEMS_INLINE_ROUTINE Timer_Control *_Timer_Get ( Objects_Id id, Objects_Locations *location ) { return (Timer_Control *) a000a6f4: e59f007c ldr r0, [pc, #124] ; a000a778 a000a6f8: e1a01004 mov r1, r4 a000a6fc: e1a0200d mov r2, sp a000a700: eb0004ca bl a000ba30 <_Objects_Get> return RTEMS_INVALID_ADDRESS; the_timer = _Timer_Get( id, &location ); switch ( location ) { a000a704: e59d3000 ldr r3, [sp] a000a708: e1a08000 mov r8, r0 a000a70c: e3530000 cmp r3, #0 #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a000a710: 13a00004 movne r0, #4 if ( !routine ) return RTEMS_INVALID_ADDRESS; the_timer = _Timer_Get( id, &location ); switch ( location ) { a000a714: 1a000016 bne a000a774 case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); a000a718: e288a010 add sl, r8, #16 a000a71c: e1a0000a mov r0, sl a000a720: eb000b52 bl a000d470 <_Watchdog_Remove> uint32_t level; #if defined(ARM_MULTILIB_ARCH_V4) uint32_t arm_switch_reg; __asm__ volatile ( a000a724: e10f2000 mrs r2, CPSR a000a728: e3823080 orr r3, r2, #128 ; 0x80 a000a72c: e129f003 msr CPSR_fc, r3 /* * 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 ) { a000a730: e5983018 ldr r3, [r8, #24] a000a734: e3530000 cmp r3, #0 a000a738: 0a000001 beq a000a744 static inline void arm_interrupt_enable( uint32_t level ) { #if defined(ARM_MULTILIB_ARCH_V4) ARM_SWITCH_REGISTERS; __asm__ volatile ( a000a73c: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED a000a740: ea000009 b a000a76c <== 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; a000a744: e5883038 str r3, [r8, #56] ; 0x38 Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; a000a748: e5883018 str r3, [r8, #24] the_watchdog->routine = routine; a000a74c: e588502c str r5, [r8, #44] ; 0x2c the_watchdog->id = id; a000a750: e5884030 str r4, [r8, #48] ; 0x30 the_watchdog->user_data = user_data; a000a754: e5887034 str r7, [r8, #52] ; 0x34 a000a758: e129f002 msr CPSR_fc, r2 ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); a000a75c: e59f0018 ldr r0, [pc, #24] ; a000a77c Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; a000a760: e588601c str r6, [r8, #28] _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); a000a764: e1a0100a mov r1, sl a000a768: eb000ae9 bl a000d314 <_Watchdog_Insert> _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); _ISR_Enable( level ); _Watchdog_Insert_ticks( &the_timer->Ticker, ticks ); _Thread_Enable_dispatch(); a000a76c: eb000813 bl a000c7c0 <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; a000a770: e3a00000 mov r0, #0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a000a774: e8bd85f8 pop {r3, r4, r5, r6, r7, r8, sl, pc} =============================================================================== a0018c74 : rtems_id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) { a0018c74: e92d4ff1 push {r0, r4, r5, r6, r7, r8, r9, sl, fp, lr} Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; if ( !_TOD.is_set ) a0018c78: e59f60dc ldr r6, [pc, #220] ; a0018d5c rtems_id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) { a0018c7c: e1a0b003 mov fp, r3 a0018c80: e1a0a000 mov sl, r0 Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; if ( !_TOD.is_set ) a0018c84: e5d63014 ldrb r3, [r6, #20] rtems_id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) { a0018c88: e1a04001 mov r4, r1 a0018c8c: e1a08002 mov r8, r2 Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; if ( !_TOD.is_set ) a0018c90: e3530000 cmp r3, #0 return RTEMS_NOT_DEFINED; a0018c94: 03a0000b moveq r0, #11 { Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; if ( !_TOD.is_set ) a0018c98: 0a00002e beq a0018d58 return RTEMS_NOT_DEFINED; if ( !_TOD_Validate( wall_time ) ) a0018c9c: e1a00001 mov r0, r1 a0018ca0: ebfff4c6 bl a0015fc0 <_TOD_Validate> a0018ca4: e3500000 cmp r0, #0 a0018ca8: 0a000029 beq a0018d54 return RTEMS_INVALID_CLOCK; if ( !routine ) a0018cac: e3580000 cmp r8, #0 return RTEMS_INVALID_ADDRESS; a0018cb0: 03a00009 moveq r0, #9 return RTEMS_NOT_DEFINED; if ( !_TOD_Validate( wall_time ) ) return RTEMS_INVALID_CLOCK; if ( !routine ) a0018cb4: 0a000027 beq a0018d58 return RTEMS_INVALID_ADDRESS; seconds = _TOD_To_seconds( wall_time ); a0018cb8: e1a00004 mov r0, r4 a0018cbc: ebfff497 bl a0015f20 <_TOD_To_seconds> a0018cc0: e59f2098 ldr r2, [pc, #152] ; a0018d60 a0018cc4: e1a07000 mov r7, r0 a0018cc8: e3a03000 mov r3, #0 a0018ccc: e8960003 ldm r6, {r0, r1} a0018cd0: eb004c93 bl a002bf24 <__divdi3> if ( seconds <= _TOD_Seconds_since_epoch() ) a0018cd4: e1570000 cmp r7, r0 a0018cd8: 9a00001d bls a0018d54 a0018cdc: e59f0080 ldr r0, [pc, #128] ; a0018d64 a0018ce0: e1a0100a mov r1, sl a0018ce4: e1a0200d mov r2, sp a0018ce8: eb000b0d bl a001b924 <_Objects_Get> return RTEMS_INVALID_CLOCK; the_timer = _Timer_Get( id, &location ); switch ( location ) { a0018cec: e59d5000 ldr r5, [sp] a0018cf0: e1a04000 mov r4, r0 a0018cf4: e3550000 cmp r5, #0 #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a0018cf8: 13a00004 movne r0, #4 seconds = _TOD_To_seconds( wall_time ); if ( seconds <= _TOD_Seconds_since_epoch() ) return RTEMS_INVALID_CLOCK; the_timer = _Timer_Get( id, &location ); switch ( location ) { a0018cfc: 1a000015 bne a0018d58 case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); a0018d00: e2849010 add r9, r4, #16 a0018d04: e1a00009 mov r0, r9 a0018d08: eb001225 bl a001d5a4 <_Watchdog_Remove> a0018d0c: e8960003 ldm r6, {r0, r1} the_timer->the_class = TIMER_TIME_OF_DAY; a0018d10: e3a03002 mov r3, #2 a0018d14: e59f2044 ldr r2, [pc, #68] ; a0018d60 a0018d18: e5843038 str r3, [r4, #56] ; 0x38 Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; a0018d1c: e5845018 str r5, [r4, #24] a0018d20: e3a03000 mov r3, #0 the_watchdog->routine = routine; a0018d24: e584802c str r8, [r4, #44] ; 0x2c the_watchdog->id = id; a0018d28: e584a030 str sl, [r4, #48] ; 0x30 the_watchdog->user_data = user_data; a0018d2c: e584b034 str fp, [r4, #52] ; 0x34 a0018d30: eb004c7b bl a002bf24 <__divdi3> _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); _Watchdog_Insert_seconds( a0018d34: e0600007 rsb r0, r0, r7 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; a0018d38: e584001c str r0, [r4, #28] _Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog ); a0018d3c: e1a01009 mov r1, r9 a0018d40: e59f0020 ldr r0, [pc, #32] ; a0018d68 a0018d44: eb0011bf bl a001d448 <_Watchdog_Insert> &the_timer->Ticker, seconds - _TOD_Seconds_since_epoch() ); _Thread_Enable_dispatch(); a0018d48: eb000e7d bl a001c744 <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; a0018d4c: e1a00005 mov r0, r5 a0018d50: ea000000 b a0018d58 if ( !routine ) return RTEMS_INVALID_ADDRESS; seconds = _TOD_To_seconds( wall_time ); if ( seconds <= _TOD_Seconds_since_epoch() ) return RTEMS_INVALID_CLOCK; a0018d54: e3a00014 mov r0, #20 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a0018d58: e8bd8ff8 pop {r3, r4, r5, r6, r7, r8, r9, sl, fp, pc} =============================================================================== a0018d6c : rtems_status_code rtems_timer_get_information( rtems_id id, rtems_timer_information *the_info ) { a0018d6c: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED Timer_Control *the_timer; Objects_Locations location; if ( !the_info ) a0018d70: e2514000 subs r4, r1, #0 <== NOT EXECUTED rtems_status_code rtems_timer_get_information( rtems_id id, rtems_timer_information *the_info ) { a0018d74: e1a03000 mov r3, r0 <== NOT EXECUTED Timer_Control *the_timer; Objects_Locations location; if ( !the_info ) return RTEMS_INVALID_ADDRESS; a0018d78: 03a00009 moveq r0, #9 <== NOT EXECUTED ) { Timer_Control *the_timer; Objects_Locations location; if ( !the_info ) a0018d7c: 0a000011 beq a0018dc8 <== NOT EXECUTED a0018d80: e59f0044 ldr r0, [pc, #68] ; a0018dcc <== NOT EXECUTED a0018d84: e1a01003 mov r1, r3 <== NOT EXECUTED a0018d88: e1a0200d mov r2, sp <== NOT EXECUTED a0018d8c: eb000ae4 bl a001b924 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_timer = _Timer_Get( id, &location ); switch ( location ) { a0018d90: e59d5000 ldr r5, [sp] <== NOT EXECUTED a0018d94: e3550000 cmp r5, #0 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a0018d98: 13a00004 movne r0, #4 <== NOT EXECUTED if ( !the_info ) return RTEMS_INVALID_ADDRESS; the_timer = _Timer_Get( id, &location ); switch ( location ) { a0018d9c: 1a000009 bne a0018dc8 <== NOT EXECUTED case OBJECTS_LOCAL: the_info->the_class = the_timer->the_class; a0018da0: e5903038 ldr r3, [r0, #56] ; 0x38 <== NOT EXECUTED a0018da4: e5843000 str r3, [r4] <== NOT EXECUTED the_info->initial = the_timer->Ticker.initial; a0018da8: e590301c ldr r3, [r0, #28] <== NOT EXECUTED a0018dac: e5843004 str r3, [r4, #4] <== NOT EXECUTED the_info->start_time = the_timer->Ticker.start_time; a0018db0: e5903024 ldr r3, [r0, #36] ; 0x24 <== NOT EXECUTED a0018db4: e5843008 str r3, [r4, #8] <== NOT EXECUTED the_info->stop_time = the_timer->Ticker.stop_time; a0018db8: e5903028 ldr r3, [r0, #40] ; 0x28 <== NOT EXECUTED a0018dbc: e584300c str r3, [r4, #12] <== NOT EXECUTED _Thread_Enable_dispatch(); a0018dc0: eb000e5f bl a001c744 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0018dc4: e1a00005 mov r0, r5 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a0018dc8: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED =============================================================================== a0018e00 : */ rtems_status_code rtems_timer_reset( rtems_id id ) { a0018e00: e92d4071 push {r0, r4, r5, r6, lr} a0018e04: e1a01000 mov r1, r0 a0018e08: e1a0200d mov r2, sp a0018e0c: e59f0078 ldr r0, [pc, #120] ; a0018e8c a0018e10: eb000ac3 bl a001b924 <_Objects_Get> Timer_Control *the_timer; Objects_Locations location; rtems_status_code status = RTEMS_SUCCESSFUL; the_timer = _Timer_Get( id, &location ); switch ( location ) { a0018e14: e59d5000 ldr r5, [sp] a0018e18: e1a06000 mov r6, r0 a0018e1c: e3550000 cmp r5, #0 #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a0018e20: 13a04004 movne r4, #4 Timer_Control *the_timer; Objects_Locations location; rtems_status_code status = RTEMS_SUCCESSFUL; the_timer = _Timer_Get( id, &location ); switch ( location ) { a0018e24: 1a000016 bne a0018e84 case OBJECTS_LOCAL: if ( the_timer->the_class == TIMER_INTERVAL ) { a0018e28: e5904038 ldr r4, [r0, #56] ; 0x38 a0018e2c: e3540000 cmp r4, #0 a0018e30: 1a000006 bne a0018e50 _Watchdog_Remove( &the_timer->Ticker ); a0018e34: e2806010 add r6, r0, #16 a0018e38: e1a00006 mov r0, r6 a0018e3c: eb0011d8 bl a001d5a4 <_Watchdog_Remove> _Watchdog_Insert( &_Watchdog_Ticks_chain, &the_timer->Ticker ); a0018e40: e59f0048 ldr r0, [pc, #72] ; a0018e90 a0018e44: e1a01006 mov r1, r6 a0018e48: eb00117e bl a001d448 <_Watchdog_Insert> a0018e4c: ea00000b b a0018e80 } else if ( the_timer->the_class == TIMER_INTERVAL_ON_TASK ) { a0018e50: e3540001 cmp r4, #1 <== 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; a0018e54: 13a0400b movne r4, #11 <== 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 ) { a0018e58: 1a000008 bne a0018e80 <== NOT EXECUTED Timer_server_Control *timer_server = _Timer_server; a0018e5c: e59f3030 ldr r3, [pc, #48] ; a0018e94 <== NOT EXECUTED if ( !timer_server ) { _Thread_Enable_dispatch(); return RTEMS_INCORRECT_STATE; } #endif _Watchdog_Remove( &the_timer->Ticker ); a0018e60: e2800010 add r0, r0, #16 <== 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; a0018e64: e5934000 ldr r4, [r3] <== NOT EXECUTED if ( !timer_server ) { _Thread_Enable_dispatch(); return RTEMS_INCORRECT_STATE; } #endif _Watchdog_Remove( &the_timer->Ticker ); a0018e68: eb0011cd bl a001d5a4 <_Watchdog_Remove> <== NOT EXECUTED (*timer_server->schedule_operation)( timer_server, the_timer ); a0018e6c: e5943004 ldr r3, [r4, #4] <== NOT EXECUTED a0018e70: e1a00004 mov r0, r4 <== NOT EXECUTED a0018e74: e1a01006 mov r1, r6 <== NOT EXECUTED a0018e78: e12fff33 blx r3 <== NOT EXECUTED rtems_id id ) { Timer_Control *the_timer; Objects_Locations location; rtems_status_code status = RTEMS_SUCCESSFUL; a0018e7c: e1a04005 mov r4, r5 <== 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(); a0018e80: eb000e2f bl a001c744 <_Thread_Enable_dispatch> case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a0018e84: e1a00004 mov r0, r4 a0018e88: e8bd8078 pop {r3, r4, r5, r6, pc} =============================================================================== a0018e98 : rtems_id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { a0018e98: e92d45f1 push {r0, r4, r5, r6, r7, r8, sl, lr} a0018e9c: e1a08003 mov r8, r3 Timer_Control *the_timer; Objects_Locations location; ISR_Level level; Timer_server_Control *timer_server = _Timer_server; a0018ea0: e59f30b8 ldr r3, [pc, #184] ; a0018f60 rtems_id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { a0018ea4: e1a05000 mov r5, r0 a0018ea8: e1a04001 mov r4, r1 Timer_Control *the_timer; Objects_Locations location; ISR_Level level; Timer_server_Control *timer_server = _Timer_server; a0018eac: e5937000 ldr r7, [r3] rtems_id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { a0018eb0: e1a06002 mov r6, r2 Timer_Control *the_timer; Objects_Locations location; ISR_Level level; Timer_server_Control *timer_server = _Timer_server; if ( !timer_server ) a0018eb4: e3570000 cmp r7, #0 return RTEMS_INCORRECT_STATE; a0018eb8: 03a0000e moveq r0, #14 Timer_Control *the_timer; Objects_Locations location; ISR_Level level; Timer_server_Control *timer_server = _Timer_server; if ( !timer_server ) a0018ebc: 0a000026 beq a0018f5c return RTEMS_INCORRECT_STATE; if ( !routine ) a0018ec0: e3520000 cmp r2, #0 return RTEMS_INVALID_ADDRESS; a0018ec4: 03a00009 moveq r0, #9 Timer_server_Control *timer_server = _Timer_server; if ( !timer_server ) return RTEMS_INCORRECT_STATE; if ( !routine ) a0018ec8: 0a000023 beq a0018f5c return RTEMS_INVALID_ADDRESS; if ( ticks == 0 ) a0018ecc: e3510000 cmp r1, #0 return RTEMS_INVALID_NUMBER; a0018ed0: 03a0000a moveq r0, #10 return RTEMS_INCORRECT_STATE; if ( !routine ) return RTEMS_INVALID_ADDRESS; if ( ticks == 0 ) a0018ed4: 0a000020 beq a0018f5c a0018ed8: e59f0084 ldr r0, [pc, #132] ; a0018f64 a0018edc: e1a01005 mov r1, r5 a0018ee0: e1a0200d mov r2, sp a0018ee4: eb000a8e bl a001b924 <_Objects_Get> return RTEMS_INVALID_NUMBER; the_timer = _Timer_Get( id, &location ); switch ( location ) { a0018ee8: e59d3000 ldr r3, [sp] a0018eec: e1a0a000 mov sl, r0 a0018ef0: e3530000 cmp r3, #0 #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a0018ef4: 13a00004 movne r0, #4 if ( ticks == 0 ) return RTEMS_INVALID_NUMBER; the_timer = _Timer_Get( id, &location ); switch ( location ) { a0018ef8: 1a000017 bne a0018f5c case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); a0018efc: e28a0010 add r0, sl, #16 a0018f00: eb0011a7 bl a001d5a4 <_Watchdog_Remove> uint32_t level; #if defined(ARM_MULTILIB_ARCH_V4) uint32_t arm_switch_reg; __asm__ volatile ( a0018f04: e10f3000 mrs r3, CPSR a0018f08: e3832080 orr r2, r3, #128 ; 0x80 a0018f0c: e129f002 msr CPSR_fc, r2 /* * 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 ) { a0018f10: e59a2018 ldr r2, [sl, #24] a0018f14: e3520000 cmp r2, #0 a0018f18: 0a000001 beq a0018f24 static inline void arm_interrupt_enable( uint32_t level ) { #if defined(ARM_MULTILIB_ARCH_V4) ARM_SWITCH_REGISTERS; __asm__ volatile ( a0018f1c: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED a0018f20: ea00000b b a0018f54 <== 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; a0018f24: e3a01001 mov r1, #1 a0018f28: e58a1038 str r1, [sl, #56] ; 0x38 Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; a0018f2c: e58a2018 str r2, [sl, #24] the_watchdog->routine = routine; a0018f30: e58a602c str r6, [sl, #44] ; 0x2c the_watchdog->id = id; a0018f34: e58a5030 str r5, [sl, #48] ; 0x30 the_watchdog->user_data = user_data; a0018f38: e58a8034 str r8, [sl, #52] ; 0x34 _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); the_timer->Ticker.initial = ticks; a0018f3c: e58a401c str r4, [sl, #28] a0018f40: e129f003 msr CPSR_fc, r3 _ISR_Enable( level ); (*timer_server->schedule_operation)( timer_server, the_timer ); a0018f44: e5973004 ldr r3, [r7, #4] a0018f48: e1a00007 mov r0, r7 a0018f4c: e1a0100a mov r1, sl a0018f50: e12fff33 blx r3 _Thread_Enable_dispatch(); a0018f54: eb000dfa bl a001c744 <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; a0018f58: e3a00000 mov r0, #0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a0018f5c: e8bd85f8 pop {r3, r4, r5, r6, r7, r8, sl, pc} =============================================================================== a0018f68 : rtems_id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) { a0018f68: e92d4ff1 push {r0, r4, r5, r6, r7, r8, r9, sl, fp, lr} a0018f6c: e1a0b003 mov fp, r3 Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; Timer_server_Control *timer_server = _Timer_server; a0018f70: e59f30ec ldr r3, [pc, #236] ; a0019064 rtems_id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) { a0018f74: e1a09000 mov r9, r0 a0018f78: e1a04001 mov r4, r1 Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; Timer_server_Control *timer_server = _Timer_server; a0018f7c: e5935000 ldr r5, [r3] rtems_id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) { a0018f80: e1a0a002 mov sl, r2 Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; Timer_server_Control *timer_server = _Timer_server; if ( !timer_server ) a0018f84: e3550000 cmp r5, #0 return RTEMS_INCORRECT_STATE; a0018f88: 03a0000e moveq r0, #14 Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; Timer_server_Control *timer_server = _Timer_server; if ( !timer_server ) a0018f8c: 0a000033 beq a0019060 return RTEMS_INCORRECT_STATE; if ( !_TOD.is_set ) a0018f90: e59f60d0 ldr r6, [pc, #208] ; a0019068 a0018f94: e5d63014 ldrb r3, [r6, #20] a0018f98: e3530000 cmp r3, #0 return RTEMS_NOT_DEFINED; a0018f9c: 03a0000b moveq r0, #11 Timer_server_Control *timer_server = _Timer_server; if ( !timer_server ) return RTEMS_INCORRECT_STATE; if ( !_TOD.is_set ) a0018fa0: 0a00002e beq a0019060 return RTEMS_NOT_DEFINED; if ( !routine ) a0018fa4: e3520000 cmp r2, #0 return RTEMS_INVALID_ADDRESS; a0018fa8: 03a00009 moveq r0, #9 return RTEMS_INCORRECT_STATE; if ( !_TOD.is_set ) return RTEMS_NOT_DEFINED; if ( !routine ) a0018fac: 0a00002b beq a0019060 return RTEMS_INVALID_ADDRESS; if ( !_TOD_Validate( wall_time ) ) a0018fb0: e1a00001 mov r0, r1 a0018fb4: ebfff401 bl a0015fc0 <_TOD_Validate> a0018fb8: e3500000 cmp r0, #0 a0018fbc: 0a000026 beq a001905c return RTEMS_INVALID_CLOCK; seconds = _TOD_To_seconds( wall_time ); a0018fc0: e1a00004 mov r0, r4 a0018fc4: ebfff3d5 bl a0015f20 <_TOD_To_seconds> a0018fc8: e59f209c ldr r2, [pc, #156] ; a001906c a0018fcc: e1a07000 mov r7, r0 a0018fd0: e3a03000 mov r3, #0 a0018fd4: e8960003 ldm r6, {r0, r1} a0018fd8: eb004bd1 bl a002bf24 <__divdi3> if ( seconds <= _TOD_Seconds_since_epoch() ) a0018fdc: e1570000 cmp r7, r0 a0018fe0: 9a00001d bls a001905c a0018fe4: e59f0084 ldr r0, [pc, #132] ; a0019070 a0018fe8: e1a01009 mov r1, r9 a0018fec: e1a0200d mov r2, sp a0018ff0: eb000a4b bl a001b924 <_Objects_Get> return RTEMS_INVALID_CLOCK; the_timer = _Timer_Get( id, &location ); switch ( location ) { a0018ff4: e59d8000 ldr r8, [sp] a0018ff8: e1a04000 mov r4, r0 a0018ffc: e3580000 cmp r8, #0 #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a0019000: 13a00004 movne r0, #4 seconds = _TOD_To_seconds( wall_time ); if ( seconds <= _TOD_Seconds_since_epoch() ) return RTEMS_INVALID_CLOCK; the_timer = _Timer_Get( id, &location ); switch ( location ) { a0019004: 1a000015 bne a0019060 case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); a0019008: e2840010 add r0, r4, #16 a001900c: eb001164 bl a001d5a4 <_Watchdog_Remove> a0019010: e8960003 ldm r6, {r0, r1} the_timer->the_class = TIMER_TIME_OF_DAY_ON_TASK; a0019014: e3a03003 mov r3, #3 a0019018: e59f204c ldr r2, [pc, #76] ; a001906c a001901c: e5843038 str r3, [r4, #56] ; 0x38 Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; a0019020: e5848018 str r8, [r4, #24] a0019024: e3a03000 mov r3, #0 the_watchdog->routine = routine; a0019028: e584a02c str sl, [r4, #44] ; 0x2c the_watchdog->id = id; a001902c: e5849030 str r9, [r4, #48] ; 0x30 the_watchdog->user_data = user_data; a0019030: e584b034 str fp, [r4, #52] ; 0x34 a0019034: eb004bba bl a002bf24 <__divdi3> _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); the_timer->Ticker.initial = seconds - _TOD_Seconds_since_epoch(); a0019038: e0600007 rsb r0, r0, r7 a001903c: e584001c str r0, [r4, #28] (*timer_server->schedule_operation)( timer_server, the_timer ); a0019040: e5953004 ldr r3, [r5, #4] a0019044: e1a00005 mov r0, r5 a0019048: e1a01004 mov r1, r4 a001904c: e12fff33 blx r3 _Thread_Enable_dispatch(); a0019050: eb000dbb bl a001c744 <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; a0019054: e1a00008 mov r0, r8 a0019058: ea000000 b a0019060 if ( !_TOD_Validate( wall_time ) ) return RTEMS_INVALID_CLOCK; seconds = _TOD_To_seconds( wall_time ); if ( seconds <= _TOD_Seconds_since_epoch() ) return RTEMS_INVALID_CLOCK; a001905c: e3a00014 mov r0, #20 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a0019060: e8bd8ff8 pop {r3, r4, r5, r6, r7, r8, r9, sl, fp, pc} =============================================================================== a000aac8 : * * This rountine increments the thread dispatch level */ RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void) { uint32_t level = _Thread_Dispatch_disable_level; a000aac8: e59f3020 ldr r3, [pc, #32] ; a000aaf0 <== NOT EXECUTED void rtems_workspace_greedy_free( void *opaque ) { a000aacc: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED a000aad0: e5932000 ldr r2, [r3] <== NOT EXECUTED a000aad4: e1a01000 mov r1, r0 <== NOT EXECUTED ++level; a000aad8: e2822001 add r2, r2, #1 <== NOT EXECUTED _Thread_Dispatch_disable_level = level; a000aadc: e5832000 str r2, [r3] <== NOT EXECUTED _Thread_Disable_dispatch(); _Heap_Greedy_free( &_Workspace_Area, opaque ); a000aae0: e59f000c ldr r0, [pc, #12] ; a000aaf4 <== NOT EXECUTED a000aae4: eb0002a5 bl a000b580 <_Heap_Greedy_free> <== NOT EXECUTED _Thread_Enable_dispatch(); } a000aae8: e49de004 pop {lr} ; (ldr lr, [sp], #4) <== NOT EXECUTED void rtems_workspace_greedy_free( void *opaque ) { _Thread_Disable_dispatch(); _Heap_Greedy_free( &_Workspace_Area, opaque ); _Thread_Enable_dispatch(); a000aaec: ea000850 b a000cc34 <_Thread_Enable_dispatch> <== NOT EXECUTED