=============================================================================== a000ff40 : uint32_t TOD_MICROSECONDS_TO_TICKS( uint32_t microseconds ) { return (microseconds / rtems_configuration_get_microseconds_per_tick()); a000ff40: e59f300c ldr r3, [pc, #12] ; a000ff54 <== NOT EXECUTED #include uint32_t TOD_MICROSECONDS_TO_TICKS( uint32_t microseconds ) { a000ff44: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED return (microseconds / rtems_configuration_get_microseconds_per_tick()); a000ff48: e593100c ldr r1, [r3, #12] <== NOT EXECUTED a000ff4c: eb004e6e bl a002390c <__aeabi_uidiv> <== NOT EXECUTED } a000ff50: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED =============================================================================== a000b610 : uint32_t TOD_MILLISECONDS_TO_TICKS( uint32_t milliseconds ) { return (milliseconds / rtems_configuration_get_milliseconds_per_tick()); a000b610: e59f3018 ldr r3, [pc, #24] ; a000b630 <== NOT EXECUTED #include uint32_t TOD_MILLISECONDS_TO_TICKS( uint32_t milliseconds ) { a000b614: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED return (milliseconds / rtems_configuration_get_milliseconds_per_tick()); a000b618: e593100c ldr r1, [r3, #12] <== NOT EXECUTED a000b61c: e59f3010 ldr r3, [pc, #16] ; a000b634 <== NOT EXECUTED a000b620: e0812193 umull r2, r1, r3, r1 <== NOT EXECUTED a000b624: e1a01321 lsr r1, r1, #6 <== NOT EXECUTED a000b628: eb00409d bl a001b8a4 <__aeabi_uidiv> <== NOT EXECUTED } a000b62c: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED =============================================================================== a0021c50 : #include #include uint32_t TOD_TICKS_PER_SECOND_method(void) { return (TOD_MICROSECONDS_PER_SECOND / a0021c50: e59f3014 ldr r3, [pc, #20] ; a0021c6c <== NOT EXECUTED a0021c54: e3a0093d mov r0, #999424 ; 0xf4000 <== NOT EXECUTED #include #include #include uint32_t TOD_TICKS_PER_SECOND_method(void) { a0021c58: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED return (TOD_MICROSECONDS_PER_SECOND / a0021c5c: e593100c ldr r1, [r3, #12] <== NOT EXECUTED a0021c60: e2800d09 add r0, r0, #576 ; 0x240 <== NOT EXECUTED a0021c64: ebfff604 bl a001f47c <__aeabi_uidiv> <== NOT EXECUTED rtems_configuration_get_microseconds_per_tick()); } a0021c68: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED =============================================================================== a0012cb4 <_Barrier_Translate_core_barrier_return_code>: */ #if defined(RTEMS_DEBUG) if ( the_barrier_status > CORE_BARRIER_STATUS_LAST ) return RTEMS_INTERNAL_ERROR; #endif return _Barrier_Translate_core_barrier_return_code_[the_barrier_status]; a0012cb4: e59f3004 ldr r3, [pc, #4] ; a0012cc0 <_Barrier_Translate_core_barrier_return_code+0xc><== NOT EXECUTED } a0012cb8: e7930100 ldr r0, [r3, r0, lsl #2] <== NOT EXECUTED a0012cbc: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a0012230 <_CORE_barrier_Initialize>: void _CORE_barrier_Initialize( CORE_barrier_Control *the_barrier, CORE_barrier_Attributes *the_barrier_attributes ) { a0012230: e92d0030 push {r4, r5} <== NOT EXECUTED the_barrier->Attributes = *the_barrier_attributes; a0012234: e8910030 ldm r1, {r4, r5} <== NOT EXECUTED the_barrier->number_of_waiting_threads = 0; a0012238: e3a03000 mov r3, #0 <== NOT EXECUTED a001223c: e5803048 str r3, [r0, #72] ; 0x48 <== NOT EXECUTED _Thread_queue_Initialize( a0012240: e1a01003 mov r1, r3 <== NOT EXECUTED a0012244: e3a02801 mov r2, #65536 ; 0x10000 <== NOT EXECUTED a0012248: e3a03003 mov r3, #3 <== NOT EXECUTED CORE_barrier_Control *the_barrier, CORE_barrier_Attributes *the_barrier_attributes ) { the_barrier->Attributes = *the_barrier_attributes; a001224c: e5804040 str r4, [r0, #64] ; 0x40 <== NOT EXECUTED a0012250: e5805044 str r5, [r0, #68] ; 0x44 <== NOT EXECUTED &the_barrier->Wait_queue, THREAD_QUEUE_DISCIPLINE_FIFO, STATES_WAITING_FOR_BARRIER, CORE_BARRIER_TIMEOUT ); } a0012254: e8bd0030 pop {r4, r5} <== NOT EXECUTED { the_barrier->Attributes = *the_barrier_attributes; the_barrier->number_of_waiting_threads = 0; _Thread_queue_Initialize( a0012258: eafff16c b a000e810 <_Thread_queue_Initialize> <== NOT EXECUTED =============================================================================== a001225c <_CORE_barrier_Release>: #else Objects_Id id __attribute__((unused)), CORE_barrier_API_mp_support_callout api_barrier_mp_support __attribute__((unused)) #endif ) { a001225c: e92d4030 push {r4, r5, lr} <== NOT EXECUTED a0012260: e1a05000 mov r5, r0 <== NOT EXECUTED Thread_Control *the_thread; uint32_t count; count = 0; a0012264: e3a04000 mov r4, #0 <== NOT EXECUTED while ( (the_thread = _Thread_queue_Dequeue(&the_barrier->Wait_queue)) ) { a0012268: ea000000 b a0012270 <_CORE_barrier_Release+0x14> <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) (*api_barrier_mp_support) ( the_thread, id ); #endif count++; a001226c: e2844001 add r4, r4, #1 <== NOT EXECUTED { Thread_Control *the_thread; uint32_t count; count = 0; while ( (the_thread = _Thread_queue_Dequeue(&the_barrier->Wait_queue)) ) { a0012270: e1a00005 mov r0, r5 <== NOT EXECUTED a0012274: ebfff059 bl a000e3e0 <_Thread_queue_Dequeue> <== NOT EXECUTED a0012278: e3500000 cmp r0, #0 <== NOT EXECUTED a001227c: 1afffffa bne a001226c <_CORE_barrier_Release+0x10> <== NOT EXECUTED if ( !_Objects_Is_local_id( the_thread->Object.id ) ) (*api_barrier_mp_support) ( the_thread, id ); #endif count++; } the_barrier->number_of_waiting_threads = 0; a0012280: e5850048 str r0, [r5, #72] ; 0x48 <== NOT EXECUTED return count; } a0012284: e1a00004 mov r0, r4 <== NOT EXECUTED a0012288: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED =============================================================================== a001228c <_CORE_barrier_Wait>: ) { Thread_Control *executing; ISR_Level level; executing = _Thread_Executing; a001228c: e59fc078 ldr ip, [pc, #120] ; a001230c <_CORE_barrier_Wait+0x80><== NOT EXECUTED Objects_Id id, bool wait, Watchdog_Interval timeout, CORE_barrier_API_mp_support_callout api_barrier_mp_support ) { a0012290: e92d0070 push {r4, r5, r6} <== NOT EXECUTED Thread_Control *executing; ISR_Level level; executing = _Thread_Executing; a0012294: e59cc004 ldr ip, [ip, #4] <== NOT EXECUTED executing->Wait.return_code = CORE_BARRIER_STATUS_SUCCESSFUL; a0012298: e3a04000 mov r4, #0 <== NOT EXECUTED Objects_Id id, bool wait, Watchdog_Interval timeout, CORE_barrier_API_mp_support_callout api_barrier_mp_support ) { a001229c: e59d200c ldr r2, [sp, #12] <== NOT EXECUTED Thread_Control *executing; ISR_Level level; executing = _Thread_Executing; executing->Wait.return_code = CORE_BARRIER_STATUS_SUCCESSFUL; a00122a0: e58c4034 str r4, [ip, #52] ; 0x34 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a00122a4: e10f6000 mrs r6, CPSR <== NOT EXECUTED a00122a8: e3864080 orr r4, r6, #128 ; 0x80 <== NOT EXECUTED a00122ac: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED _ISR_Disable( level ); the_barrier->number_of_waiting_threads++; a00122b0: e5904048 ldr r4, [r0, #72] ; 0x48 <== NOT EXECUTED if ( _CORE_barrier_Is_automatic( &the_barrier->Attributes ) ) { a00122b4: e5905040 ldr r5, [r0, #64] ; 0x40 <== NOT EXECUTED ISR_Level level; executing = _Thread_Executing; executing->Wait.return_code = CORE_BARRIER_STATUS_SUCCESSFUL; _ISR_Disable( level ); the_barrier->number_of_waiting_threads++; a00122b8: e2844001 add r4, r4, #1 <== NOT EXECUTED if ( _CORE_barrier_Is_automatic( &the_barrier->Attributes ) ) { a00122bc: e3550000 cmp r5, #0 <== NOT EXECUTED ISR_Level level; executing = _Thread_Executing; executing->Wait.return_code = CORE_BARRIER_STATUS_SUCCESSFUL; _ISR_Disable( level ); the_barrier->number_of_waiting_threads++; a00122c0: e5804048 str r4, [r0, #72] ; 0x48 <== NOT EXECUTED if ( _CORE_barrier_Is_automatic( &the_barrier->Attributes ) ) { a00122c4: 1a000002 bne a00122d4 <_CORE_barrier_Wait+0x48> <== NOT EXECUTED if ( the_barrier->number_of_waiting_threads == a00122c8: e5905044 ldr r5, [r0, #68] ; 0x44 <== NOT EXECUTED a00122cc: e1540005 cmp r4, r5 <== NOT EXECUTED a00122d0: 0a000008 beq a00122f8 <_CORE_barrier_Wait+0x6c> <== NOT EXECUTED a00122d4: e3a02001 mov r2, #1 <== NOT EXECUTED a00122d8: e5802030 str r2, [r0, #48] ; 0x30 <== NOT EXECUTED return; } } _Thread_queue_Enter_critical_section( &the_barrier->Wait_queue ); executing->Wait.queue = &the_barrier->Wait_queue; a00122dc: e58c0044 str r0, [ip, #68] ; 0x44 <== NOT EXECUTED executing->Wait.id = id; a00122e0: e58c1020 str r1, [ip, #32] <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a00122e4: e129f006 msr CPSR_fc, r6 <== NOT EXECUTED _ISR_Enable( level ); _Thread_queue_Enqueue( &the_barrier->Wait_queue, timeout ); a00122e8: e59f2020 ldr r2, [pc, #32] ; a0012310 <_CORE_barrier_Wait+0x84><== NOT EXECUTED a00122ec: e1a01003 mov r1, r3 <== NOT EXECUTED } a00122f0: e8bd0070 pop {r4, r5, r6} <== NOT EXECUTED _Thread_queue_Enter_critical_section( &the_barrier->Wait_queue ); executing->Wait.queue = &the_barrier->Wait_queue; executing->Wait.id = id; _ISR_Enable( level ); _Thread_queue_Enqueue( &the_barrier->Wait_queue, timeout ); a00122f4: eafff097 b a000e558 <_Thread_queue_Enqueue_with_handler> <== NOT EXECUTED _ISR_Disable( level ); the_barrier->number_of_waiting_threads++; if ( _CORE_barrier_Is_automatic( &the_barrier->Attributes ) ) { if ( the_barrier->number_of_waiting_threads == the_barrier->Attributes.maximum_count) { executing->Wait.return_code = CORE_BARRIER_STATUS_AUTOMATICALLY_RELEASED; a00122f8: e3a03001 mov r3, #1 <== NOT EXECUTED a00122fc: e58c3034 str r3, [ip, #52] ; 0x34 <== NOT EXECUTED a0012300: e129f006 msr CPSR_fc, r6 <== NOT EXECUTED executing->Wait.queue = &the_barrier->Wait_queue; executing->Wait.id = id; _ISR_Enable( level ); _Thread_queue_Enqueue( &the_barrier->Wait_queue, timeout ); } a0012304: e8bd0070 pop {r4, r5, r6} <== NOT EXECUTED if ( _CORE_barrier_Is_automatic( &the_barrier->Attributes ) ) { if ( the_barrier->number_of_waiting_threads == the_barrier->Attributes.maximum_count) { executing->Wait.return_code = CORE_BARRIER_STATUS_AUTOMATICALLY_RELEASED; _ISR_Enable( level ); _CORE_barrier_Release( the_barrier, id, api_barrier_mp_support ); a0012308: eaffffd3 b a001225c <_CORE_barrier_Release> <== NOT EXECUTED =============================================================================== a001afc8 <_CORE_message_queue_Broadcast>: { Thread_Control *the_thread; uint32_t number_broadcasted; Thread_Wait_information *waitp; if ( size > the_message_queue->maximum_message_size ) { a001afc8: e590304c ldr r3, [r0, #76] ; 0x4c <== NOT EXECUTED Objects_Id id __attribute__((unused)), CORE_message_queue_API_mp_support_callout api_message_queue_mp_support __attribute__((unused)), #endif uint32_t *count ) { a001afcc: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED Thread_Control *the_thread; uint32_t number_broadcasted; Thread_Wait_information *waitp; if ( size > the_message_queue->maximum_message_size ) { a001afd0: e1530002 cmp r3, r2 <== NOT EXECUTED Objects_Id id __attribute__((unused)), CORE_message_queue_API_mp_support_callout api_message_queue_mp_support __attribute__((unused)), #endif uint32_t *count ) { a001afd4: e1a07000 mov r7, r0 <== NOT EXECUTED a001afd8: e1a05002 mov r5, r2 <== NOT EXECUTED a001afdc: e1a08001 mov r8, r1 <== NOT EXECUTED a001afe0: e59da020 ldr sl, [sp, #32] <== NOT EXECUTED Thread_Control *the_thread; uint32_t number_broadcasted; Thread_Wait_information *waitp; if ( size > the_message_queue->maximum_message_size ) { a001afe4: 3a000013 bcc a001b038 <_CORE_message_queue_Broadcast+0x70> <== NOT EXECUTED * NOTE: This check is critical because threads can block on * send and receive and this ensures that we are broadcasting * the message to threads waiting to receive -- not to send. */ if ( the_message_queue->number_of_pending_messages != 0 ) { a001afe8: e5906048 ldr r6, [r0, #72] ; 0x48 <== NOT EXECUTED a001afec: e3560000 cmp r6, #0 <== NOT EXECUTED a001aff0: 0a000009 beq a001b01c <_CORE_message_queue_Broadcast+0x54> <== NOT EXECUTED *count = 0; a001aff4: e3a00000 mov r0, #0 <== NOT EXECUTED a001aff8: e58a0000 str r0, [sl] <== NOT EXECUTED return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; a001affc: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED const void *source, void *destination, size_t size ) { memcpy(destination, source, size); a001b000: e594002c ldr r0, [r4, #44] ; 0x2c <== NOT EXECUTED a001b004: e1a01008 mov r1, r8 <== NOT EXECUTED a001b008: e1a02005 mov r2, r5 <== NOT EXECUTED a001b00c: eb002024 bl a00230a4 <== NOT EXECUTED buffer, waitp->return_argument_second.mutable_object, size ); *(size_t *) the_thread->Wait.return_argument = size; a001b010: e5943028 ldr r3, [r4, #40] ; 0x28 <== NOT EXECUTED */ number_broadcasted = 0; while ((the_thread = _Thread_queue_Dequeue(&the_message_queue->Wait_queue))) { waitp = &the_thread->Wait; number_broadcasted += 1; a001b014: e2866001 add r6, r6, #1 <== NOT EXECUTED buffer, waitp->return_argument_second.mutable_object, size ); *(size_t *) the_thread->Wait.return_argument = size; a001b018: e5835000 str r5, [r3] <== NOT EXECUTED /* * There must be no pending messages if there is a thread waiting to * receive a message. */ number_broadcasted = 0; while ((the_thread = a001b01c: e1a00007 mov r0, r7 <== NOT EXECUTED a001b020: eb000b15 bl a001dc7c <_Thread_queue_Dequeue> <== NOT EXECUTED a001b024: e2504000 subs r4, r0, #0 <== NOT EXECUTED a001b028: 1afffff4 bne a001b000 <_CORE_message_queue_Broadcast+0x38> <== NOT EXECUTED if ( !_Objects_Is_local_id( the_thread->Object.id ) ) (*api_message_queue_mp_support) ( the_thread, id ); #endif } *count = number_broadcasted; a001b02c: e58a6000 str r6, [sl] <== NOT EXECUTED return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; a001b030: e1a00004 mov r0, r4 <== NOT EXECUTED a001b034: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED Thread_Control *the_thread; uint32_t number_broadcasted; Thread_Wait_information *waitp; if ( size > the_message_queue->maximum_message_size ) { return CORE_MESSAGE_QUEUE_STATUS_INVALID_SIZE; a001b038: e3a00001 mov r0, #1 <== NOT EXECUTED #endif } *count = number_broadcasted; return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; } a001b03c: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED =============================================================================== a001042c <_CORE_message_queue_Close>: void _CORE_message_queue_Close( CORE_message_queue_Control *the_message_queue, Thread_queue_Flush_callout remote_extract_callout, uint32_t status ) { a001042c: e92d4010 push {r4, lr} <== NOT EXECUTED a0010430: e1a04000 mov r4, r0 <== NOT EXECUTED /* * This will flush blocked threads whether they were blocked on * a send or receive. */ _Thread_queue_Flush( a0010434: ebfff3d5 bl a000d390 <_Thread_queue_Flush> <== NOT EXECUTED * This removes all messages from the pending message queue. Since * we just flushed all waiting threads, we don't have to worry about * the flush satisfying any blocked senders as a side-effect. */ if ( the_message_queue->number_of_pending_messages != 0 ) a0010438: e5943048 ldr r3, [r4, #72] ; 0x48 <== NOT EXECUTED a001043c: e3530000 cmp r3, #0 <== NOT EXECUTED a0010440: 0a000001 beq a001044c <_CORE_message_queue_Close+0x20> <== NOT EXECUTED (void) _CORE_message_queue_Flush_support( the_message_queue ); a0010444: e1a00004 mov r0, r4 <== NOT EXECUTED a0010448: eb000002 bl a0010458 <_CORE_message_queue_Flush_support> <== NOT EXECUTED (void) _Workspace_Free( the_message_queue->message_buffers ); a001044c: e594005c ldr r0, [r4, #92] ; 0x5c <== NOT EXECUTED } a0010450: e8bd4010 pop {r4, lr} <== NOT EXECUTED */ if ( the_message_queue->number_of_pending_messages != 0 ) (void) _CORE_message_queue_Flush_support( the_message_queue ); (void) _Workspace_Free( the_message_queue->message_buffers ); a0010454: eafff668 b a000ddfc <_Workspace_Free> <== NOT EXECUTED =============================================================================== a001b06c <_CORE_message_queue_Flush>: uint32_t _CORE_message_queue_Flush( CORE_message_queue_Control *the_message_queue ) { if ( the_message_queue->number_of_pending_messages != 0 ) a001b06c: e5903048 ldr r3, [r0, #72] ; 0x48 <== NOT EXECUTED a001b070: e3530000 cmp r3, #0 <== NOT EXECUTED a001b074: 1a000001 bne a001b080 <_CORE_message_queue_Flush+0x14> <== NOT EXECUTED return _CORE_message_queue_Flush_support( the_message_queue ); else return 0; } a001b078: e1a00003 mov r0, r3 <== NOT EXECUTED a001b07c: e12fff1e bx lr <== NOT EXECUTED uint32_t _CORE_message_queue_Flush( CORE_message_queue_Control *the_message_queue ) { if ( the_message_queue->number_of_pending_messages != 0 ) return _CORE_message_queue_Flush_support( the_message_queue ); a001b080: eaffffff b a001b084 <_CORE_message_queue_Flush_support> <== NOT EXECUTED =============================================================================== a0010458 <_CORE_message_queue_Flush_support>: */ uint32_t _CORE_message_queue_Flush_support( CORE_message_queue_Control *the_message_queue ) { a0010458: e92d00f0 push {r4, r5, r6, r7} <== NOT EXECUTED a001045c: e1a03000 mov r3, r0 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a0010460: e10f5000 mrs r5, CPSR <== NOT EXECUTED a0010464: e3852080 orr r2, r5, #128 ; 0x80 <== NOT EXECUTED a0010468: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED count = the_message_queue->number_of_pending_messages; the_message_queue->number_of_pending_messages = 0; _ISR_Enable( level ); return count; } a001046c: e5900050 ldr r0, [r0, #80] ; 0x50 <== NOT EXECUTED a0010470: e593c058 ldr ip, [r3, #88] ; 0x58 <== NOT EXECUTED * fixed execution time that only deals with pending messages. */ _ISR_Disable( level ); inactive_head = _Chain_Head( &the_message_queue->Inactive_messages ); inactive_first = inactive_head->next;; a0010474: e5934060 ldr r4, [r3, #96] ; 0x60 <== NOT EXECUTED message_queue_first = _Chain_First( &the_message_queue->Pending_messages ); message_queue_last = _Chain_Last( &the_message_queue->Pending_messages ); inactive_head->next = message_queue_first; a0010478: e1a02003 mov r2, r3 <== NOT EXECUTED a001047c: e5a20060 str r0, [r2, #96]! ; 0x60 <== NOT EXECUTED { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); head->next = tail; head->previous = NULL; a0010480: e3a01000 mov r1, #0 <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); a0010484: e2837054 add r7, r3, #84 ; 0x54 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { Chain_Node *head = _Chain_Head( the_chain ); a0010488: e2836050 add r6, r3, #80 ; 0x50 <== NOT EXECUTED message_queue_last->next = inactive_first; inactive_first->previous = message_queue_last; a001048c: e584c004 str ip, [r4, #4] <== NOT EXECUTED inactive_first = inactive_head->next;; message_queue_first = _Chain_First( &the_message_queue->Pending_messages ); message_queue_last = _Chain_Last( &the_message_queue->Pending_messages ); inactive_head->next = message_queue_first; message_queue_last->next = inactive_first; a0010490: e58c4000 str r4, [ip] <== NOT EXECUTED inactive_first->previous = message_queue_last; message_queue_first->previous = inactive_head; a0010494: e5802004 str r2, [r0, #4] <== NOT EXECUTED Chain_Node *tail = _Chain_Tail( the_chain ); head->next = tail; a0010498: e5837050 str r7, [r3, #80] ; 0x50 <== NOT EXECUTED _Chain_Initialize_empty( &the_message_queue->Pending_messages ); count = the_message_queue->number_of_pending_messages; a001049c: e5930048 ldr r0, [r3, #72] ; 0x48 <== NOT EXECUTED head->previous = NULL; a00104a0: e5831054 str r1, [r3, #84] ; 0x54 <== NOT EXECUTED tail->previous = head; a00104a4: e5836058 str r6, [r3, #88] ; 0x58 <== NOT EXECUTED the_message_queue->number_of_pending_messages = 0; a00104a8: e5831048 str r1, [r3, #72] ; 0x48 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a00104ac: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED _ISR_Enable( level ); return count; } a00104b0: e8bd00f0 pop {r4, r5, r6, r7} <== NOT EXECUTED a00104b4: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a0013224 <_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 ) { a0013224: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED /* * Round size up to multiple of a pointer for chain init and * check for overflow on adding overhead to each message. */ allocated_message_size = maximum_message_size; if (allocated_message_size & (sizeof(uint32_t) - 1)) { a0013228: e3130003 tst r3, #3 <== NOT EXECUTED CORE_message_queue_Control *the_message_queue, CORE_message_queue_Attributes *the_message_queue_attributes, uint32_t maximum_pending_messages, size_t maximum_message_size ) { a001322c: e1a04000 mov r4, r0 <== NOT EXECUTED size_t message_buffering_required; size_t allocated_message_size; the_message_queue->maximum_pending_messages = maximum_pending_messages; the_message_queue->number_of_pending_messages = 0; a0013230: e3a00000 mov r0, #0 <== NOT EXECUTED CORE_message_queue_Control *the_message_queue, CORE_message_queue_Attributes *the_message_queue_attributes, uint32_t maximum_pending_messages, size_t maximum_message_size ) { a0013234: e1a05001 mov r5, r1 <== NOT EXECUTED a0013238: e24dd004 sub sp, sp, #4 <== NOT EXECUTED size_t message_buffering_required; size_t allocated_message_size; the_message_queue->maximum_pending_messages = maximum_pending_messages; a001323c: e5842044 str r2, [r4, #68] ; 0x44 <== NOT EXECUTED the_message_queue->number_of_pending_messages = 0; a0013240: e5840048 str r0, [r4, #72] ; 0x48 <== NOT EXECUTED the_message_queue->maximum_message_size = maximum_message_size; a0013244: e584304c str r3, [r4, #76] ; 0x4c <== NOT EXECUTED /* * Round size up to multiple of a pointer for chain init and * check for overflow on adding overhead to each message. */ allocated_message_size = maximum_message_size; if (allocated_message_size & (sizeof(uint32_t) - 1)) { a0013248: 01a01003 moveq r1, r3 <== NOT EXECUTED a001324c: 0a000005 beq a0013268 <_CORE_message_queue_Initialize+0x44><== NOT EXECUTED allocated_message_size += sizeof(uint32_t); a0013250: e2831004 add r1, r3, #4 <== NOT EXECUTED allocated_message_size &= ~(sizeof(uint32_t) - 1); a0013254: e3c11003 bic r1, r1, #3 <== NOT EXECUTED } if (allocated_message_size < maximum_message_size) a0013258: e1530001 cmp r3, r1 <== NOT EXECUTED a001325c: 9a000001 bls a0013268 <_CORE_message_queue_Initialize+0x44><== NOT EXECUTED STATES_WAITING_FOR_MESSAGE, CORE_MESSAGE_QUEUE_STATUS_TIMEOUT ); return true; } a0013260: e28dd004 add sp, sp, #4 <== NOT EXECUTED a0013264: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED /* * Calculate how much total memory is required for message buffering and * check for overflow on the multiplication. */ message_buffering_required = (size_t) maximum_pending_messages * (allocated_message_size + sizeof(CORE_message_queue_Buffer_control)); a0013268: e2816010 add r6, r1, #16 <== NOT EXECUTED /* * Calculate how much total memory is required for message buffering and * check for overflow on the multiplication. */ message_buffering_required = (size_t) maximum_pending_messages * a001326c: e0000692 mul r0, r2, r6 <== NOT EXECUTED (allocated_message_size + sizeof(CORE_message_queue_Buffer_control)); if (message_buffering_required < allocated_message_size) a0013270: e1500001 cmp r0, r1 <== NOT EXECUTED return false; a0013274: 33a00000 movcc r0, #0 <== NOT EXECUTED * check for overflow on the multiplication. */ message_buffering_required = (size_t) maximum_pending_messages * (allocated_message_size + sizeof(CORE_message_queue_Buffer_control)); if (message_buffering_required < allocated_message_size) a0013278: 3afffff8 bcc a0013260 <_CORE_message_queue_Initialize+0x3c><== NOT EXECUTED /* * Attempt to allocate the message memory */ the_message_queue->message_buffers = (CORE_message_queue_Buffer *) _Workspace_Allocate( message_buffering_required ); a001327c: e58d2000 str r2, [sp] <== NOT EXECUTED a0013280: eb000bd4 bl a00161d8 <_Workspace_Allocate> <== NOT EXECUTED if (the_message_queue->message_buffers == 0) a0013284: e3500000 cmp r0, #0 <== NOT EXECUTED /* * Attempt to allocate the message memory */ the_message_queue->message_buffers = (CORE_message_queue_Buffer *) _Workspace_Allocate( message_buffering_required ); a0013288: e1a01000 mov r1, r0 <== NOT EXECUTED return false; /* * Attempt to allocate the message memory */ the_message_queue->message_buffers = (CORE_message_queue_Buffer *) a001328c: e584005c str r0, [r4, #92] ; 0x5c <== NOT EXECUTED _Workspace_Allocate( message_buffering_required ); if (the_message_queue->message_buffers == 0) a0013290: e59d2000 ldr r2, [sp] <== NOT EXECUTED return false; a0013294: 01a00000 moveq r0, r0 <== NOT EXECUTED * Attempt to allocate the message memory */ the_message_queue->message_buffers = (CORE_message_queue_Buffer *) _Workspace_Allocate( message_buffering_required ); if (the_message_queue->message_buffers == 0) a0013298: 0afffff0 beq a0013260 <_CORE_message_queue_Initialize+0x3c><== NOT EXECUTED /* * Initialize the pool of inactive messages, pending messages, * and set of waiting threads. */ _Chain_Initialize ( a001329c: e2840060 add r0, r4, #96 ; 0x60 <== NOT EXECUTED a00132a0: e1a03006 mov r3, r6 <== NOT EXECUTED a00132a4: eb0013b0 bl a001816c <_Chain_Initialize> <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); a00132a8: e2842054 add r2, r4, #84 ; 0x54 <== NOT EXECUTED head->next = tail; a00132ac: e5842050 str r2, [r4, #80] ; 0x50 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { Chain_Node *head = _Chain_Head( the_chain ); a00132b0: e2843050 add r3, r4, #80 ; 0x50 <== NOT EXECUTED Chain_Node *tail = _Chain_Tail( the_chain ); head->next = tail; head->previous = NULL; a00132b4: e3a02000 mov r2, #0 <== NOT EXECUTED a00132b8: e5842054 str r2, [r4, #84] ; 0x54 <== NOT EXECUTED tail->previous = head; a00132bc: e5843058 str r3, [r4, #88] ; 0x58 <== NOT EXECUTED allocated_message_size + sizeof( CORE_message_queue_Buffer_control ) ); _Chain_Initialize_empty( &the_message_queue->Pending_messages ); _Thread_queue_Initialize( a00132c0: e5951000 ldr r1, [r5] <== NOT EXECUTED a00132c4: e1a00004 mov r0, r4 <== NOT EXECUTED a00132c8: e3a02080 mov r2, #128 ; 0x80 <== NOT EXECUTED a00132cc: e3510001 cmp r1, #1 <== NOT EXECUTED a00132d0: 13a01000 movne r1, #0 <== NOT EXECUTED a00132d4: 03a01001 moveq r1, #1 <== NOT EXECUTED a00132d8: e3a03006 mov r3, #6 <== NOT EXECUTED a00132dc: eb000932 bl a00157ac <_Thread_queue_Initialize> <== NOT EXECUTED THREAD_QUEUE_DISCIPLINE_PRIORITY : THREAD_QUEUE_DISCIPLINE_FIFO, STATES_WAITING_FOR_MESSAGE, CORE_MESSAGE_QUEUE_STATUS_TIMEOUT ); return true; a00132e0: e3a00001 mov r0, #1 <== NOT EXECUTED a00132e4: eaffffdd b a0013260 <_CORE_message_queue_Initialize+0x3c> <== NOT EXECUTED =============================================================================== a00181d0 <_CORE_message_queue_Insert_message>: static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a00181d0: e10fc000 mrs ip, CPSR <== NOT EXECUTED a00181d4: e38c3080 orr r3, ip, #128 ; 0x80 <== NOT EXECUTED a00181d8: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED _CORE_message_queue_Set_message_priority( the_message, submit_type ); #if !defined(RTEMS_SCORE_COREMSG_ENABLE_MESSAGE_PRIORITY) _ISR_Disable( level ); SET_NOTIFY(); the_message_queue->number_of_pending_messages++; a00181dc: e5903048 ldr r3, [r0, #72] ; 0x48 <== NOT EXECUTED if ( submit_type == CORE_MESSAGE_QUEUE_SEND_REQUEST ) a00181e0: e3720106 cmn r2, #-2147483647 ; 0x80000001 <== NOT EXECUTED _CORE_message_queue_Set_message_priority( the_message, submit_type ); #if !defined(RTEMS_SCORE_COREMSG_ENABLE_MESSAGE_PRIORITY) _ISR_Disable( level ); SET_NOTIFY(); the_message_queue->number_of_pending_messages++; a00181e4: e2833001 add r3, r3, #1 <== NOT EXECUTED a00181e8: e5803048 str r3, [r0, #72] ; 0x48 <== NOT EXECUTED if ( submit_type == CORE_MESSAGE_QUEUE_SEND_REQUEST ) a00181ec: 0a000007 beq a0018210 <_CORE_message_queue_Insert_message+0x40><== NOT EXECUTED ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; a00181f0: e5903050 ldr r3, [r0, #80] ; 0x50 <== 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); a00181f4: e2802050 add r2, r0, #80 ; 0x50 <== NOT EXECUTED Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; a00181f8: e5812004 str r2, [r1, #4] <== NOT EXECUTED before_node = after_node->next; after_node->next = the_node; a00181fc: e5801050 str r1, [r0, #80] ; 0x50 <== NOT EXECUTED the_node->next = before_node; before_node->previous = the_node; a0018200: e5831004 str r1, [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; a0018204: e5813000 str r3, [r1] <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a0018208: e129f00c msr CPSR_fc, ip <== NOT EXECUTED * the message is actually in the queue at this point. */ if ( notify && the_message_queue->notify_handler ) (*the_message_queue->notify_handler)(the_message_queue->notify_argument); #endif } a001820c: e12fff1e bx lr <== NOT EXECUTED Chain_Control *the_chain, Chain_Node *the_node ) { Chain_Node *tail = _Chain_Tail( the_chain ); Chain_Node *old_last = tail->previous; a0018210: e5903058 ldr r3, [r0, #88] ; 0x58 <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Chain_Append_unprotected( Chain_Control *the_chain, Chain_Node *the_node ) { Chain_Node *tail = _Chain_Tail( the_chain ); a0018214: e2802054 add r2, r0, #84 ; 0x54 <== NOT EXECUTED Chain_Node *old_last = tail->previous; the_node->next = tail; a0018218: e5812000 str r2, [r1] <== NOT EXECUTED tail->previous = the_node; a001821c: e5801058 str r1, [r0, #88] ; 0x58 <== NOT EXECUTED old_last->next = the_node; a0018220: e5831000 str r1, [r3] <== NOT EXECUTED the_node->previous = old_last; a0018224: e5813004 str r3, [r1, #4] <== NOT EXECUTED a0018228: e129f00c msr CPSR_fc, ip <== NOT EXECUTED a001822c: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a00132e8 <_CORE_message_queue_Seize>: void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) { a00132e8: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED ISR_Level level; CORE_message_queue_Buffer_control *the_message; Thread_Control *executing; executing = _Thread_Executing; a00132ec: e59f50cc ldr r5, [pc, #204] ; a00133c0 <_CORE_message_queue_Seize+0xd8><== NOT EXECUTED void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) { a00132f0: e1a04000 mov r4, r0 <== NOT EXECUTED ISR_Level level; CORE_message_queue_Buffer_control *the_message; Thread_Control *executing; executing = _Thread_Executing; executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; a00132f4: e3a00000 mov r0, #0 <== NOT EXECUTED { ISR_Level level; CORE_message_queue_Buffer_control *the_message; Thread_Control *executing; executing = _Thread_Executing; a00132f8: e595c004 ldr ip, [r5, #4] <== NOT EXECUTED void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) { a00132fc: e59d8020 ldr r8, [sp, #32] <== NOT EXECUTED a0013300: e5dd601c ldrb r6, [sp, #28] <== NOT EXECUTED ISR_Level level; CORE_message_queue_Buffer_control *the_message; Thread_Control *executing; executing = _Thread_Executing; executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; a0013304: e58c0034 str r0, [ip, #52] ; 0x34 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a0013308: e10f0000 mrs r0, CPSR <== NOT EXECUTED a001330c: e3807080 orr r7, r0, #128 ; 0x80 <== NOT EXECUTED a0013310: e129f007 msr CPSR_fc, r7 <== NOT EXECUTED executing->Wait.return_argument = size_p; /* Wait.count will be filled in with the message priority */ _ISR_Enable( level ); _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); } a0013314: e5947050 ldr r7, [r4, #80] ; 0x50 <== 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 ); a0013318: e284a054 add sl, r4, #84 ; 0x54 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected( Chain_Control *the_chain ) { if ( !_Chain_Is_empty(the_chain)) a001331c: e157000a cmp r7, sl <== NOT EXECUTED a0013320: 0a000014 beq a0013378 <_CORE_message_queue_Seize+0x90> <== 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; a0013324: e597c000 ldr ip, [r7] <== NOT EXECUTED executing = _Thread_Executing; executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; _ISR_Disable( level ); the_message = _CORE_message_queue_Get_pending_message( the_message_queue ); if ( the_message != NULL ) { the_message_queue->number_of_pending_messages -= 1; a0013328: e594e048 ldr lr, [r4, #72] ; 0x48 <== NOT EXECUTED head->next = new_first; a001332c: e1a01004 mov r1, r4 <== NOT EXECUTED a0013330: e5a1c050 str ip, [r1, #80]! ; 0x50 <== NOT EXECUTED a0013334: e24ee001 sub lr, lr, #1 <== NOT EXECUTED new_first->previous = head; a0013338: e58c1004 str r1, [ip, #4] <== NOT EXECUTED a001333c: e584e048 str lr, [r4, #72] ; 0x48 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a0013340: e129f000 msr CPSR_fc, r0 <== NOT EXECUTED _ISR_Enable( level ); *size_p = the_message->Contents.size; a0013344: e5970008 ldr r0, [r7, #8] <== NOT EXECUTED _Thread_Executing->Wait.count = a0013348: e5951004 ldr r1, [r5, #4] <== NOT EXECUTED the_message = _CORE_message_queue_Get_pending_message( the_message_queue ); if ( the_message != NULL ) { the_message_queue->number_of_pending_messages -= 1; _ISR_Enable( level ); *size_p = the_message->Contents.size; a001334c: e5830000 str r0, [r3] <== NOT EXECUTED _Thread_Executing->Wait.count = a0013350: e3a00000 mov r0, #0 <== NOT EXECUTED a0013354: e5810024 str r0, [r1, #36] ; 0x24 <== NOT EXECUTED const void *source, void *destination, size_t size ) { memcpy(destination, source, size); a0013358: e287100c add r1, r7, #12 <== NOT EXECUTED a001335c: e1a00002 mov r0, r2 <== NOT EXECUTED a0013360: e5932000 ldr r2, [r3] <== NOT EXECUTED a0013364: eb001dc8 bl a001aa8c <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _CORE_message_queue_Free_message_buffer ( CORE_message_queue_Control *the_message_queue, CORE_message_queue_Buffer_control *the_message ) { _Chain_Append( &the_message_queue->Inactive_messages, &the_message->Node ); a0013368: e2840060 add r0, r4, #96 ; 0x60 <== NOT EXECUTED a001336c: e1a01007 mov r1, r7 <== NOT EXECUTED executing->Wait.return_argument = size_p; /* Wait.count will be filled in with the message priority */ _ISR_Enable( level ); _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); } a0013370: e8bd45f0 pop {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED a0013374: eaffff80 b a001317c <_Chain_Append> <== NOT EXECUTED return; } #endif } if ( !wait ) { a0013378: e3560000 cmp r6, #0 <== NOT EXECUTED a001337c: 1a000003 bne a0013390 <_CORE_message_queue_Seize+0xa8> <== NOT EXECUTED a0013380: e129f000 msr CPSR_fc, r0 <== NOT EXECUTED _ISR_Enable( level ); executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT; a0013384: e3a03004 mov r3, #4 <== NOT EXECUTED a0013388: e58c3034 str r3, [ip, #52] ; 0x34 <== NOT EXECUTED executing->Wait.return_argument = size_p; /* Wait.count will be filled in with the message priority */ _ISR_Enable( level ); _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); } a001338c: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Thread_queue_Enter_critical_section ( Thread_queue_Control *the_thread_queue ) { the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; a0013390: e3a05001 mov r5, #1 <== NOT EXECUTED a0013394: e5845030 str r5, [r4, #48] ; 0x30 <== NOT EXECUTED executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT; return; } _Thread_queue_Enter_critical_section( &the_message_queue->Wait_queue ); executing->Wait.queue = &the_message_queue->Wait_queue; a0013398: e58c4044 str r4, [ip, #68] ; 0x44 <== NOT EXECUTED executing->Wait.id = id; a001339c: e58c1020 str r1, [ip, #32] <== NOT EXECUTED executing->Wait.return_argument_second.mutable_object = buffer; a00133a0: e58c202c str r2, [ip, #44] ; 0x2c <== NOT EXECUTED executing->Wait.return_argument = size_p; a00133a4: e58c3028 str r3, [ip, #40] ; 0x28 <== NOT EXECUTED a00133a8: e129f000 msr CPSR_fc, r0 <== NOT EXECUTED /* Wait.count will be filled in with the message priority */ _ISR_Enable( level ); _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); a00133ac: e59f2010 ldr r2, [pc, #16] ; a00133c4 <_CORE_message_queue_Seize+0xdc><== NOT EXECUTED a00133b0: e1a00004 mov r0, r4 <== NOT EXECUTED a00133b4: e1a01008 mov r1, r8 <== NOT EXECUTED } a00133b8: e8bd45f0 pop {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED executing->Wait.return_argument_second.mutable_object = buffer; executing->Wait.return_argument = size_p; /* Wait.count will be filled in with the message priority */ _ISR_Enable( level ); _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); a00133bc: ea00084c b a00154f4 <_Thread_queue_Enqueue_with_handler> <== NOT EXECUTED =============================================================================== a00133c8 <_CORE_message_queue_Submit>: ) { CORE_message_queue_Buffer_control *the_message; Thread_Control *the_thread; if ( size > the_message_queue->maximum_message_size ) { a00133c8: e590304c ldr r3, [r0, #76] ; 0x4c <== NOT EXECUTED #endif CORE_message_queue_Submit_types submit_type, bool wait, Watchdog_Interval timeout ) { a00133cc: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED CORE_message_queue_Buffer_control *the_message; Thread_Control *the_thread; if ( size > the_message_queue->maximum_message_size ) { a00133d0: e1530002 cmp r3, r2 <== NOT EXECUTED #endif CORE_message_queue_Submit_types submit_type, bool wait, Watchdog_Interval timeout ) { a00133d4: e1a04000 mov r4, r0 <== NOT EXECUTED a00133d8: e1a05002 mov r5, r2 <== NOT EXECUTED a00133dc: e1a0a001 mov sl, r1 <== NOT EXECUTED a00133e0: e59d7020 ldr r7, [sp, #32] <== NOT EXECUTED CORE_message_queue_Buffer_control *the_message; Thread_Control *the_thread; if ( size > the_message_queue->maximum_message_size ) { a00133e4: 3a000015 bcc a0013440 <_CORE_message_queue_Submit+0x78> <== NOT EXECUTED } /* * Is there a thread currently waiting on this message queue? */ if ( the_message_queue->number_of_pending_messages == 0 ) { a00133e8: e5906048 ldr r6, [r0, #72] ; 0x48 <== NOT EXECUTED a00133ec: e3560000 cmp r6, #0 <== NOT EXECUTED a00133f0: 0a000014 beq a0013448 <_CORE_message_queue_Submit+0x80> <== NOT EXECUTED /* * No one waiting on the message queue at this time, so attempt to * queue the message up for a future receive. */ if ( the_message_queue->number_of_pending_messages < a00133f4: e5943044 ldr r3, [r4, #68] ; 0x44 <== NOT EXECUTED a00133f8: e1530006 cmp r3, r6 <== NOT EXECUTED a00133fc: 8a000001 bhi a0013408 <_CORE_message_queue_Submit+0x40> <== NOT EXECUTED ); return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; } #if !defined(RTEMS_SCORE_COREMSG_ENABLE_BLOCKING_SEND) return CORE_MESSAGE_QUEUE_STATUS_TOO_MANY; a0013400: e3a00002 mov r0, #2 <== NOT EXECUTED _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); } return CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT; #endif } a0013404: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED _CORE_message_queue_Allocate_message_buffer ( CORE_message_queue_Control *the_message_queue ) { return (CORE_message_queue_Buffer_control *) _Chain_Get( &the_message_queue->Inactive_messages ); a0013408: e2840060 add r0, r4, #96 ; 0x60 <== NOT EXECUTED a001340c: ebffff6d bl a00131c8 <_Chain_Get> <== NOT EXECUTED const void *source, void *destination, size_t size ) { memcpy(destination, source, size); a0013410: e1a0100a mov r1, sl <== NOT EXECUTED _CORE_message_queue_Allocate_message_buffer ( CORE_message_queue_Control *the_message_queue ) { return (CORE_message_queue_Buffer_control *) _Chain_Get( &the_message_queue->Inactive_messages ); a0013414: e1a06000 mov r6, r0 <== NOT EXECUTED const void *source, void *destination, size_t size ) { memcpy(destination, source, size); a0013418: e1a02005 mov r2, r5 <== NOT EXECUTED a001341c: e280000c add r0, r0, #12 <== NOT EXECUTED a0013420: eb001d99 bl a001aa8c <== NOT EXECUTED size ); the_message->Contents.size = size; _CORE_message_queue_Set_message_priority( the_message, submit_type ); _CORE_message_queue_Insert_message( a0013424: e1a00004 mov r0, r4 <== NOT EXECUTED _CORE_message_queue_Copy_buffer( buffer, the_message->Contents.buffer, size ); the_message->Contents.size = size; a0013428: e5865008 str r5, [r6, #8] <== NOT EXECUTED _CORE_message_queue_Set_message_priority( the_message, submit_type ); _CORE_message_queue_Insert_message( a001342c: e1a01006 mov r1, r6 <== NOT EXECUTED a0013430: e1a02007 mov r2, r7 <== NOT EXECUTED a0013434: eb001365 bl a00181d0 <_CORE_message_queue_Insert_message> <== NOT EXECUTED the_message_queue, the_message, submit_type ); return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; a0013438: e3a00000 mov r0, #0 <== NOT EXECUTED a001343c: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED { CORE_message_queue_Buffer_control *the_message; Thread_Control *the_thread; if ( size > the_message_queue->maximum_message_size ) { return CORE_MESSAGE_QUEUE_STATUS_INVALID_SIZE; a0013440: e3a00001 mov r0, #1 <== NOT EXECUTED a0013444: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED /* * Is there a thread currently waiting on this message queue? */ if ( the_message_queue->number_of_pending_messages == 0 ) { the_thread = _Thread_queue_Dequeue( &the_message_queue->Wait_queue ); a0013448: eb0007cb bl a001537c <_Thread_queue_Dequeue> <== NOT EXECUTED if ( the_thread ) { a001344c: e2508000 subs r8, r0, #0 <== NOT EXECUTED a0013450: 05946048 ldreq r6, [r4, #72] ; 0x48 <== NOT EXECUTED a0013454: 0affffe6 beq a00133f4 <_CORE_message_queue_Submit+0x2c> <== NOT EXECUTED a0013458: e598002c ldr r0, [r8, #44] ; 0x2c <== NOT EXECUTED a001345c: e1a0100a mov r1, sl <== NOT EXECUTED a0013460: e1a02005 mov r2, r5 <== NOT EXECUTED a0013464: eb001d88 bl a001aa8c <== NOT EXECUTED _CORE_message_queue_Copy_buffer( buffer, the_thread->Wait.return_argument_second.mutable_object, size ); *(size_t *) the_thread->Wait.return_argument = size; a0013468: e5983028 ldr r3, [r8, #40] ; 0x28 <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) (*api_message_queue_mp_support) ( the_thread, id ); #endif return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; a001346c: e1a00006 mov r0, r6 <== NOT EXECUTED _CORE_message_queue_Copy_buffer( buffer, the_thread->Wait.return_argument_second.mutable_object, size ); *(size_t *) the_thread->Wait.return_argument = size; a0013470: e5835000 str r5, [r3] <== NOT EXECUTED the_thread->Wait.count = (uint32_t) submit_type; a0013474: e5887024 str r7, [r8, #36] ; 0x24 <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) (*api_message_queue_mp_support) ( the_thread, id ); #endif return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; a0013478: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED =============================================================================== a000a470 <_CORE_mutex_Initialize>: CORE_mutex_Status _CORE_mutex_Initialize( CORE_mutex_Control *the_mutex, CORE_mutex_Attributes *the_mutex_attributes, uint32_t initial_lock ) { a000a470: e92d40f0 push {r4, r5, r6, r7, lr} initial_lock == CORE_MUTEX_UNLOCKED ); */ the_mutex->Attributes = *the_mutex_attributes; the_mutex->lock = initial_lock; the_mutex->blocked_count = 0; a000a474: e3a05000 mov r5, #0 CORE_mutex_Status _CORE_mutex_Initialize( CORE_mutex_Control *the_mutex, CORE_mutex_Attributes *the_mutex_attributes, uint32_t initial_lock ) { a000a478: e1a0c000 mov ip, r0 the_mutex->Attributes = *the_mutex_attributes; the_mutex->lock = initial_lock; the_mutex->blocked_count = 0; if ( initial_lock == CORE_MUTEX_LOCKED ) { a000a47c: e1520005 cmp r2, r5 CORE_mutex_Status _CORE_mutex_Initialize( CORE_mutex_Control *the_mutex, CORE_mutex_Attributes *the_mutex_attributes, uint32_t initial_lock ) { a000a480: e1a06002 mov r6, r2 /* Add this to the RTEMS environment later ????????? rtems_assert( initial_lock == CORE_MUTEX_LOCKED || initial_lock == CORE_MUTEX_UNLOCKED ); */ the_mutex->Attributes = *the_mutex_attributes; a000a484: e2807040 add r7, r0, #64 ; 0x40 CORE_mutex_Status _CORE_mutex_Initialize( CORE_mutex_Control *the_mutex, CORE_mutex_Attributes *the_mutex_attributes, uint32_t initial_lock ) { a000a488: e1a04001 mov r4, r1 /* Add this to the RTEMS environment later ????????? rtems_assert( initial_lock == CORE_MUTEX_LOCKED || initial_lock == CORE_MUTEX_UNLOCKED ); */ the_mutex->Attributes = *the_mutex_attributes; a000a48c: e891000f ldm r1, {r0, r1, r2, r3} the_mutex->lock = initial_lock; a000a490: e58c6050 str r6, [ip, #80] ; 0x50 /* Add this to the RTEMS environment later ????????? rtems_assert( initial_lock == CORE_MUTEX_LOCKED || initial_lock == CORE_MUTEX_UNLOCKED ); */ the_mutex->Attributes = *the_mutex_attributes; a000a494: e887000f stm r7, {r0, r1, r2, r3} the_mutex->lock = initial_lock; the_mutex->blocked_count = 0; a000a498: e58c5058 str r5, [ip, #88] ; 0x58 #endif _Thread_Executing->resource_count++; } } else { the_mutex->nest_count = 0; a000a49c: 158c5054 strne r5, [ip, #84] ; 0x54 the_mutex->holder = NULL; a000a4a0: 158c505c strne r5, [ip, #92] ; 0x5c the_mutex->holder_id = 0; a000a4a4: 158c5060 strne r5, [ip, #96] ; 0x60 the_mutex->Attributes = *the_mutex_attributes; the_mutex->lock = initial_lock; the_mutex->blocked_count = 0; if ( initial_lock == CORE_MUTEX_LOCKED ) { a000a4a8: 1a00000b bne a000a4dc <_CORE_mutex_Initialize+0x6c> the_mutex->nest_count = 1; the_mutex->holder = _Thread_Executing; a000a4ac: e59f3074 ldr r3, [pc, #116] ; a000a528 <_CORE_mutex_Initialize+0xb8><== NOT EXECUTED the_mutex->Attributes = *the_mutex_attributes; the_mutex->lock = initial_lock; the_mutex->blocked_count = 0; if ( initial_lock == CORE_MUTEX_LOCKED ) { the_mutex->nest_count = 1; a000a4b0: e3a01001 mov r1, #1 <== NOT EXECUTED STATES_WAITING_FOR_MUTEX, CORE_MUTEX_TIMEOUT ); return CORE_MUTEX_STATUS_SUCCESSFUL; } a000a4b4: e59c2048 ldr r2, [ip, #72] ; 0x48 <== NOT EXECUTED the_mutex->lock = initial_lock; the_mutex->blocked_count = 0; if ( initial_lock == CORE_MUTEX_LOCKED ) { the_mutex->nest_count = 1; the_mutex->holder = _Thread_Executing; a000a4b8: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED the_mutex->Attributes = *the_mutex_attributes; the_mutex->lock = initial_lock; the_mutex->blocked_count = 0; if ( initial_lock == CORE_MUTEX_LOCKED ) { the_mutex->nest_count = 1; a000a4bc: e58c1054 str r1, [ip, #84] ; 0x54 <== NOT EXECUTED the_mutex->holder = _Thread_Executing; the_mutex->holder_id = _Thread_Executing->Object.id; if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || a000a4c0: e3520002 cmp r2, #2 <== NOT EXECUTED the_mutex->blocked_count = 0; if ( initial_lock == CORE_MUTEX_LOCKED ) { the_mutex->nest_count = 1; the_mutex->holder = _Thread_Executing; the_mutex->holder_id = _Thread_Executing->Object.id; a000a4c4: e5931008 ldr r1, [r3, #8] <== NOT EXECUTED the_mutex->lock = initial_lock; the_mutex->blocked_count = 0; if ( initial_lock == CORE_MUTEX_LOCKED ) { the_mutex->nest_count = 1; the_mutex->holder = _Thread_Executing; a000a4c8: e58c305c str r3, [ip, #92] ; 0x5c <== NOT EXECUTED the_mutex->holder_id = _Thread_Executing->Object.id; a000a4cc: e58c1060 str r1, [ip, #96] ; 0x60 <== NOT EXECUTED if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || a000a4d0: 0a00000a beq a000a500 <_CORE_mutex_Initialize+0x90> <== NOT EXECUTED a000a4d4: e3520003 cmp r2, #3 <== NOT EXECUTED a000a4d8: 0a000008 beq a000a500 <_CORE_mutex_Initialize+0x90> <== NOT EXECUTED the_mutex->nest_count = 0; the_mutex->holder = NULL; the_mutex->holder_id = 0; } _Thread_queue_Initialize( a000a4dc: e5941008 ldr r1, [r4, #8] a000a4e0: e1a0000c mov r0, ip a000a4e4: e3a02b01 mov r2, #1024 ; 0x400 a000a4e8: e2511000 subs r1, r1, #0 a000a4ec: 13a01001 movne r1, #1 a000a4f0: e3a03004 mov r3, #4 a000a4f4: eb000880 bl a000c6fc <_Thread_queue_Initialize> THREAD_QUEUE_DISCIPLINE_FIFO : THREAD_QUEUE_DISCIPLINE_PRIORITY, STATES_WAITING_FOR_MUTEX, CORE_MUTEX_TIMEOUT ); return CORE_MUTEX_STATUS_SUCCESSFUL; a000a4f8: e3a00000 mov r0, #0 a000a4fc: e8bd80f0 pop {r4, r5, r6, r7, pc} the_mutex->holder = _Thread_Executing; the_mutex->holder_id = _Thread_Executing->Object.id; if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || _CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { if ( _Thread_Executing->current_priority < a000a500: e5931014 ldr r1, [r3, #20] <== NOT EXECUTED a000a504: e59c204c ldr r2, [ip, #76] ; 0x4c <== NOT EXECUTED a000a508: e1510002 cmp r1, r2 <== NOT EXECUTED a000a50c: 3a000003 bcc a000a520 <_CORE_mutex_Initialize+0xb0> <== NOT EXECUTED _Chain_Prepend_unprotected( &_Thread_Executing->lock_mutex, &the_mutex->queue.lock_queue ); the_mutex->queue.priority_before = _Thread_Executing->current_priority; #endif _Thread_Executing->resource_count++; a000a510: e593201c ldr r2, [r3, #28] <== NOT EXECUTED a000a514: e2822001 add r2, r2, #1 <== NOT EXECUTED a000a518: e583201c str r2, [r3, #28] <== NOT EXECUTED a000a51c: eaffffee b a000a4dc <_CORE_mutex_Initialize+0x6c> <== NOT EXECUTED if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || _CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { if ( _Thread_Executing->current_priority < the_mutex->Attributes.priority_ceiling ) return CORE_MUTEX_STATUS_CEILING_VIOLATED; a000a520: e3a00005 mov r0, #5 <== NOT EXECUTED STATES_WAITING_FOR_MUTEX, CORE_MUTEX_TIMEOUT ); return CORE_MUTEX_STATUS_SUCCESSFUL; } a000a524: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED =============================================================================== a000a598 <_CORE_mutex_Seize>: Objects_Id _id, bool _wait, Watchdog_Interval _timeout, ISR_Level _level ) { a000a598: e92d41f0 push {r4, r5, r6, r7, r8, lr} _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level ); a000a59c: e59f40b4 ldr r4, [pc, #180] ; a000a658 <_CORE_mutex_Seize+0xc0> Objects_Id _id, bool _wait, Watchdog_Interval _timeout, ISR_Level _level ) { a000a5a0: e1a05000 mov r5, r0 a000a5a4: e1a06001 mov r6, r1 _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level ); a000a5a8: e5940000 ldr r0, [r4] Objects_Id _id, bool _wait, Watchdog_Interval _timeout, ISR_Level _level ) { a000a5ac: e1a08003 mov r8, r3 a000a5b0: e20270ff and r7, r2, #255 ; 0xff _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level ); a000a5b4: e3500000 cmp r0, #0 a000a5b8: 0a000001 beq a000a5c4 <_CORE_mutex_Seize+0x2c> a000a5bc: e3570000 cmp r7, #0 a000a5c0: 1a00001c bne a000a638 <_CORE_mutex_Seize+0xa0> a000a5c4: e1a00005 mov r0, r5 a000a5c8: e28d1018 add r1, sp, #24 a000a5cc: eb0012d0 bl a000f114 <_CORE_mutex_Seize_interrupt_trylock> a000a5d0: e3500000 cmp r0, #0 a000a5d4: 0a000016 beq a000a634 <_CORE_mutex_Seize+0x9c> a000a5d8: e3570000 cmp r7, #0 <== NOT EXECUTED a000a5dc: 1a000006 bne a000a5fc <_CORE_mutex_Seize+0x64> <== NOT EXECUTED a000a5e0: e59d3018 ldr r3, [sp, #24] <== NOT EXECUTED a000a5e4: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED a000a5e8: e59f306c ldr r3, [pc, #108] ; a000a65c <_CORE_mutex_Seize+0xc4><== NOT EXECUTED a000a5ec: e3a02001 mov r2, #1 <== NOT EXECUTED a000a5f0: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED a000a5f4: e5832034 str r2, [r3, #52] ; 0x34 <== NOT EXECUTED a000a5f8: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED a000a5fc: e59f3058 ldr r3, [pc, #88] ; a000a65c <_CORE_mutex_Seize+0xc4><== NOT EXECUTED a000a600: e5942000 ldr r2, [r4] <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Thread_queue_Enter_critical_section ( Thread_queue_Control *the_thread_queue ) { the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; a000a604: e3a01001 mov r1, #1 <== NOT EXECUTED a000a608: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED a000a60c: e2822001 add r2, r2, #1 <== NOT EXECUTED a000a610: e5851030 str r1, [r5, #48] ; 0x30 <== NOT EXECUTED a000a614: e5842000 str r2, [r4] <== NOT EXECUTED a000a618: e5835044 str r5, [r3, #68] ; 0x44 <== NOT EXECUTED a000a61c: e5836020 str r6, [r3, #32] <== NOT EXECUTED a000a620: e59d3018 ldr r3, [sp, #24] <== NOT EXECUTED a000a624: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED a000a628: e1a00005 mov r0, r5 <== NOT EXECUTED a000a62c: e1a01008 mov r1, r8 <== NOT EXECUTED a000a630: ebffffbd bl a000a52c <_CORE_mutex_Seize_interrupt_blocking><== NOT EXECUTED a000a634: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} a000a638: e59f3020 ldr r3, [pc, #32] ; a000a660 <_CORE_mutex_Seize+0xc8> a000a63c: e5933000 ldr r3, [r3] a000a640: e3530001 cmp r3, #1 a000a644: 9affffde bls a000a5c4 <_CORE_mutex_Seize+0x2c> a000a648: e3a00000 mov r0, #0 <== NOT EXECUTED a000a64c: e1a01000 mov r1, r0 <== NOT EXECUTED a000a650: e3a02012 mov r2, #18 <== NOT EXECUTED a000a654: eb0001bf bl a000ad58 <_Internal_error_Occurred> <== NOT EXECUTED =============================================================================== a000a52c <_CORE_mutex_Seize_interrupt_blocking>: ) { Thread_Control *executing; executing = _Thread_Executing; if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ) { a000a52c: e5903048 ldr r3, [r0, #72] ; 0x48 <== NOT EXECUTED void _CORE_mutex_Seize_interrupt_blocking( CORE_mutex_Control *the_mutex, Watchdog_Interval timeout ) { a000a530: e92d4030 push {r4, r5, lr} <== NOT EXECUTED Thread_Control *executing; executing = _Thread_Executing; if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ) { a000a534: e3530002 cmp r3, #2 <== NOT EXECUTED Watchdog_Interval timeout ) { Thread_Control *executing; executing = _Thread_Executing; a000a538: e59f3050 ldr r3, [pc, #80] ; a000a590 <_CORE_mutex_Seize_interrupt_blocking+0x64><== NOT EXECUTED void _CORE_mutex_Seize_interrupt_blocking( CORE_mutex_Control *the_mutex, Watchdog_Interval timeout ) { a000a53c: e1a04000 mov r4, r0 <== NOT EXECUTED a000a540: e1a05001 mov r5, r1 <== NOT EXECUTED Thread_Control *executing; executing = _Thread_Executing; a000a544: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ) { a000a548: 0a000008 beq a000a570 <_CORE_mutex_Seize_interrupt_blocking+0x44><== NOT EXECUTED false ); } } the_mutex->blocked_count++; a000a54c: e5943058 ldr r3, [r4, #88] ; 0x58 <== NOT EXECUTED _Thread_queue_Enqueue( &the_mutex->Wait_queue, timeout ); a000a550: e1a00004 mov r0, r4 <== NOT EXECUTED a000a554: e1a01005 mov r1, r5 <== NOT EXECUTED false ); } } the_mutex->blocked_count++; a000a558: e2833001 add r3, r3, #1 <== NOT EXECUTED a000a55c: e5843058 str r3, [r4, #88] ; 0x58 <== NOT EXECUTED _Thread_queue_Enqueue( &the_mutex->Wait_queue, timeout ); a000a560: e59f202c ldr r2, [pc, #44] ; a000a594 <_CORE_mutex_Seize_interrupt_blocking+0x68><== NOT EXECUTED a000a564: eb0007b6 bl a000c444 <_Thread_queue_Enqueue_with_handler> <== NOT EXECUTED _Thread_Enable_dispatch(); } a000a568: e8bd4030 pop {r4, r5, lr} <== NOT EXECUTED } the_mutex->blocked_count++; _Thread_queue_Enqueue( &the_mutex->Wait_queue, timeout ); _Thread_Enable_dispatch(); a000a56c: ea000697 b a000bfd0 <_Thread_Enable_dispatch> <== NOT EXECUTED { Thread_Control *executing; executing = _Thread_Executing; if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ) { if ( the_mutex->holder->current_priority > executing->current_priority ) { a000a570: e590005c ldr r0, [r0, #92] ; 0x5c <== NOT EXECUTED a000a574: e5931014 ldr r1, [r3, #20] <== NOT EXECUTED a000a578: e5903014 ldr r3, [r0, #20] <== NOT EXECUTED a000a57c: e1530001 cmp r3, r1 <== NOT EXECUTED a000a580: 9afffff1 bls a000a54c <_CORE_mutex_Seize_interrupt_blocking+0x20><== NOT EXECUTED _Thread_Change_priority( a000a584: e3a02000 mov r2, #0 <== NOT EXECUTED a000a588: eb000570 bl a000bb50 <_Thread_Change_priority> <== NOT EXECUTED a000a58c: eaffffee b a000a54c <_CORE_mutex_Seize_interrupt_blocking+0x20><== NOT EXECUTED =============================================================================== a000f114 <_CORE_mutex_Seize_interrupt_trylock>: { Thread_Control *executing; /* disabled when you get here */ executing = _Thread_Executing; a000f114: e59f2140 ldr r2, [pc, #320] ; a000f25c <_CORE_mutex_Seize_interrupt_trylock+0x148> executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; if ( !_CORE_mutex_Is_locked( the_mutex ) ) { a000f118: e590c050 ldr ip, [r0, #80] ; 0x50 #if defined(__RTEMS_DO_NOT_INLINE_CORE_MUTEX_SEIZE__) int _CORE_mutex_Seize_interrupt_trylock( CORE_mutex_Control *the_mutex, ISR_Level *level_p ) { a000f11c: e1a03000 mov r3, r0 { Thread_Control *executing; /* disabled when you get here */ executing = _Thread_Executing; a000f120: e5922004 ldr r2, [r2, #4] executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; a000f124: e3a00000 mov r0, #0 if ( !_CORE_mutex_Is_locked( the_mutex ) ) { a000f128: e15c0000 cmp ip, r0 a000f12c: e92d40f0 push {r4, r5, r6, r7, lr} Thread_Control *executing; /* disabled when you get here */ executing = _Thread_Executing; executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; a000f130: e5820034 str r0, [r2, #52] ; 0x34 if ( !_CORE_mutex_Is_locked( the_mutex ) ) { a000f134: 0a00000e beq a000f174 <_CORE_mutex_Seize_interrupt_trylock+0x60> return _CORE_mutex_Seize_interrupt_trylock_body( the_mutex, level_p ); } a000f138: e593c048 ldr ip, [r3, #72] ; 0x48 the_mutex->lock = CORE_MUTEX_LOCKED; the_mutex->holder = executing; the_mutex->holder_id = executing->Object.id; a000f13c: e5925008 ldr r5, [r2, #8] the_mutex->nest_count = 1; a000f140: e3a04001 mov r4, #1 if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || a000f144: e35c0002 cmp ip, #2 /* disabled when you get here */ executing = _Thread_Executing; executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; if ( !_CORE_mutex_Is_locked( the_mutex ) ) { the_mutex->lock = CORE_MUTEX_LOCKED; a000f148: e5830050 str r0, [r3, #80] ; 0x50 the_mutex->holder = executing; a000f14c: e583205c str r2, [r3, #92] ; 0x5c the_mutex->holder_id = executing->Object.id; a000f150: e5835060 str r5, [r3, #96] ; 0x60 the_mutex->nest_count = 1; a000f154: e5834054 str r4, [r3, #84] ; 0x54 if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || a000f158: 0a00000a beq a000f188 <_CORE_mutex_Seize_interrupt_trylock+0x74> a000f15c: e35c0003 cmp ip, #3 <== NOT EXECUTED a000f160: 0a000014 beq a000f1b8 <_CORE_mutex_Seize_interrupt_trylock+0xa4><== NOT EXECUTED a000f164: e5913000 ldr r3, [r1] <== NOT EXECUTED a000f168: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED executing->resource_count++; } if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { _ISR_Enable( *level_p ); return 0; a000f16c: e3a00000 mov r0, #0 <== NOT EXECUTED a000f170: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED /* * At this point, we know the mutex was not available. If this thread * is the thread that has locked the mutex, let's see if we are allowed * to nest access. */ if ( _Thread_Is_executing( the_mutex->holder ) ) { a000f174: e593005c ldr r0, [r3, #92] ; 0x5c <== NOT EXECUTED a000f178: e1520000 cmp r2, r0 <== NOT EXECUTED a000f17c: 0a000008 beq a000f1a4 <_CORE_mutex_Seize_interrupt_trylock+0x90><== NOT EXECUTED /* * The mutex is not available and the caller must deal with the possibility * of blocking. */ return 1; a000f180: e3a00001 mov r0, #1 <== NOT EXECUTED a000f184: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED _Chain_Prepend_unprotected( &executing->lock_mutex, &the_mutex->queue.lock_queue ); the_mutex->queue.priority_before = executing->current_priority; #endif executing->resource_count++; a000f188: e592301c ldr r3, [r2, #28] a000f18c: e2833001 add r3, r3, #1 a000f190: e582301c str r3, [r2, #28] a000f194: e5913000 ldr r3, [r1] a000f198: e129f003 msr CPSR_fc, r3 } if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { _ISR_Enable( *level_p ); return 0; a000f19c: e3a00000 mov r0, #0 a000f1a0: e8bd80f0 pop {r4, r5, r6, r7, pc} * At this point, we know the mutex was not available. If this thread * is the thread that has locked the mutex, let's see if we are allowed * to nest access. */ if ( _Thread_Is_executing( the_mutex->holder ) ) { switch ( the_mutex->Attributes.lock_nesting_behavior ) { a000f1a4: e5932040 ldr r2, [r3, #64] ; 0x40 <== NOT EXECUTED a000f1a8: e3520000 cmp r2, #0 <== NOT EXECUTED a000f1ac: 0a000012 beq a000f1fc <_CORE_mutex_Seize_interrupt_trylock+0xe8><== NOT EXECUTED /* * The mutex is not available and the caller must deal with the possibility * of blocking. */ return 1; a000f1b0: e3a00001 mov r0, #1 <== NOT EXECUTED a000f1b4: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED _Chain_Prepend_unprotected( &executing->lock_mutex, &the_mutex->queue.lock_queue ); the_mutex->queue.priority_before = executing->current_priority; #endif executing->resource_count++; a000f1b8: e592c01c ldr ip, [r2, #28] <== NOT EXECUTED */ { Priority_Control ceiling; Priority_Control current; ceiling = the_mutex->Attributes.priority_ceiling; a000f1bc: e593604c ldr r6, [r3, #76] ; 0x4c <== NOT EXECUTED current = executing->current_priority; a000f1c0: e5925014 ldr r5, [r2, #20] <== NOT EXECUTED _Chain_Prepend_unprotected( &executing->lock_mutex, &the_mutex->queue.lock_queue ); the_mutex->queue.priority_before = executing->current_priority; #endif executing->resource_count++; a000f1c4: e08c7004 add r7, ip, r4 <== NOT EXECUTED a000f1c8: e582701c str r7, [r2, #28] <== NOT EXECUTED Priority_Control ceiling; Priority_Control current; ceiling = the_mutex->Attributes.priority_ceiling; current = executing->current_priority; if ( current == ceiling ) { a000f1cc: e1560005 cmp r6, r5 <== NOT EXECUTED a000f1d0: 0a00001d beq a000f24c <_CORE_mutex_Seize_interrupt_trylock+0x138><== NOT EXECUTED _ISR_Enable( *level_p ); return 0; } if ( current > ceiling ) { a000f1d4: 3a00000f bcc a000f218 <_CORE_mutex_Seize_interrupt_trylock+0x104><== NOT EXECUTED ); _Thread_Enable_dispatch(); return 0; } /* if ( current < ceiling ) */ { executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED; a000f1d8: e3a05005 mov r5, #5 <== NOT EXECUTED a000f1dc: e5825034 str r5, [r2, #52] ; 0x34 <== NOT EXECUTED the_mutex->lock = CORE_MUTEX_UNLOCKED; a000f1e0: e5834050 str r4, [r3, #80] ; 0x50 <== NOT EXECUTED the_mutex->nest_count = 0; /* undo locking above */ a000f1e4: e5830054 str r0, [r3, #84] ; 0x54 <== NOT EXECUTED executing->resource_count--; /* undo locking above */ a000f1e8: e582c01c str ip, [r2, #28] <== NOT EXECUTED a000f1ec: e5913000 ldr r3, [r1] <== NOT EXECUTED a000f1f0: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED _ISR_Enable( *level_p ); return 0; a000f1f4: e3a00000 mov r0, #0 <== NOT EXECUTED a000f1f8: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED * to nest access. */ if ( _Thread_Is_executing( the_mutex->holder ) ) { switch ( the_mutex->Attributes.lock_nesting_behavior ) { case CORE_MUTEX_NESTING_ACQUIRES: the_mutex->nest_count++; a000f1fc: e5932054 ldr r2, [r3, #84] ; 0x54 <== NOT EXECUTED a000f200: e2822001 add r2, r2, #1 <== NOT EXECUTED a000f204: e5832054 str r2, [r3, #84] ; 0x54 <== NOT EXECUTED a000f208: e5913000 ldr r3, [r1] <== NOT EXECUTED a000f20c: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED _ISR_Enable( *level_p ); return 0; a000f210: e3a00000 mov r0, #0 <== NOT EXECUTED a000f214: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; a000f218: e59f2040 ldr r2, [pc, #64] ; a000f260 <_CORE_mutex_Seize_interrupt_trylock+0x14c><== NOT EXECUTED a000f21c: e5920000 ldr r0, [r2] <== NOT EXECUTED a000f220: e2800001 add r0, r0, #1 <== NOT EXECUTED a000f224: e5820000 str r0, [r2] <== NOT EXECUTED a000f228: e5912000 ldr r2, [r1] <== NOT EXECUTED a000f22c: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED } if ( current > ceiling ) { _Thread_Disable_dispatch(); _ISR_Enable( *level_p ); _Thread_Change_priority( a000f230: e3a02000 mov r2, #0 <== NOT EXECUTED a000f234: e593005c ldr r0, [r3, #92] ; 0x5c <== NOT EXECUTED a000f238: e593104c ldr r1, [r3, #76] ; 0x4c <== NOT EXECUTED a000f23c: ebfff243 bl a000bb50 <_Thread_Change_priority> <== NOT EXECUTED the_mutex->holder, the_mutex->Attributes.priority_ceiling, false ); _Thread_Enable_dispatch(); a000f240: ebfff362 bl a000bfd0 <_Thread_Enable_dispatch> <== NOT EXECUTED return 0; a000f244: e3a00000 mov r0, #0 <== NOT EXECUTED a000f248: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED a000f24c: e5913000 ldr r3, [r1] <== NOT EXECUTED a000f250: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED ceiling = the_mutex->Attributes.priority_ceiling; current = executing->current_priority; if ( current == ceiling ) { _ISR_Enable( *level_p ); return 0; a000f254: e3a00000 mov r0, #0 <== NOT EXECUTED a000f258: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED =============================================================================== a000a664 <_CORE_mutex_Surrender>: * 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 ) { a000a664: e5d03044 ldrb r3, [r0, #68] ; 0x44 #else Objects_Id id __attribute__((unused)), CORE_mutex_API_mp_support_callout api_mutex_mp_support __attribute__((unused)) #endif ) { a000a668: e92d4030 push {r4, r5, lr} * 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 ) { a000a66c: e3530000 cmp r3, #0 #else Objects_Id id __attribute__((unused)), CORE_mutex_API_mp_support_callout api_mutex_mp_support __attribute__((unused)) #endif ) { a000a670: e1a04000 mov r4, r0 Thread_Control *the_thread; Thread_Control *holder; holder = the_mutex->holder; a000a674: e590205c ldr r2, [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 ) { a000a678: 0a000005 beq a000a694 <_CORE_mutex_Surrender+0x30> RTEMS_INLINE_ROUTINE bool _Thread_Is_executing ( const Thread_Control *the_thread ) { return ( the_thread == _Thread_Executing ); a000a67c: e59f3120 ldr r3, [pc, #288] ; a000a7a4 <_CORE_mutex_Surrender+0x140> if ( !_Thread_Is_executing( holder ) ) a000a680: e5933004 ldr r3, [r3, #4] a000a684: e1520003 cmp r2, r3 a000a688: 0a000001 beq a000a694 <_CORE_mutex_Surrender+0x30> return CORE_MUTEX_STATUS_NOT_OWNER_OF_RESOURCE; a000a68c: e3a00002 mov r0, #2 <== NOT EXECUTED a000a690: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED } /* XXX already unlocked -- not right status */ if ( !the_mutex->nest_count ) a000a694: e5940054 ldr r0, [r4, #84] ; 0x54 a000a698: e3500000 cmp r0, #0 a000a69c: 0a000023 beq a000a730 <_CORE_mutex_Surrender+0xcc> return CORE_MUTEX_STATUS_SUCCESSFUL; the_mutex->nest_count--; a000a6a0: e2400001 sub r0, r0, #1 if ( the_mutex->nest_count != 0 ) { a000a6a4: e3500000 cmp r0, #0 /* XXX already unlocked -- not right status */ if ( !the_mutex->nest_count ) return CORE_MUTEX_STATUS_SUCCESSFUL; the_mutex->nest_count--; a000a6a8: e5840054 str r0, [r4, #84] ; 0x54 if ( the_mutex->nest_count != 0 ) { a000a6ac: 1a000020 bne a000a734 <_CORE_mutex_Surrender+0xd0> } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; return CORE_MUTEX_STATUS_SUCCESSFUL; } a000a6b0: 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 ) || a000a6b4: e3530002 cmp r3, #2 a000a6b8: 0a00001f beq a000a73c <_CORE_mutex_Surrender+0xd8> a000a6bc: e3530003 cmp r3, #3 <== NOT EXECUTED a000a6c0: 0a00001d beq a000a73c <_CORE_mutex_Surrender+0xd8> <== NOT EXECUTED if ( holder->resource_count == 0 && holder->real_priority != holder->current_priority ) { _Thread_Change_priority( holder, holder->real_priority, true ); } } the_mutex->holder = NULL; a000a6c4: e3a05000 mov r5, #0 a000a6c8: e584505c str r5, [r4, #92] ; 0x5c the_mutex->holder_id = 0; a000a6cc: 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 ) ) ) { a000a6d0: e1a00004 mov r0, r4 a000a6d4: eb0006fc bl a000c2cc <_Thread_queue_Dequeue> a000a6d8: e2503000 subs r3, r0, #0 a000a6dc: 0a00002c beq a000a794 <_CORE_mutex_Surrender+0x130> } else #endif { the_mutex->holder = the_thread; the_mutex->holder_id = the_thread->Object.id; a000a6e0: e5931008 ldr r1, [r3, #8] <== NOT EXECUTED the_mutex->nest_count = 1; switch ( the_mutex->Attributes.discipline ) { a000a6e4: e5942048 ldr r2, [r4, #72] ; 0x48 <== NOT EXECUTED } else #endif { the_mutex->holder = the_thread; a000a6e8: e584305c str r3, [r4, #92] ; 0x5c <== NOT EXECUTED the_mutex->holder_id = the_thread->Object.id; a000a6ec: e5841060 str r1, [r4, #96] ; 0x60 <== NOT EXECUTED the_mutex->nest_count = 1; switch ( the_mutex->Attributes.discipline ) { a000a6f0: e3520002 cmp r2, #2 <== NOT EXECUTED #endif { the_mutex->holder = the_thread; the_mutex->holder_id = the_thread->Object.id; the_mutex->nest_count = 1; a000a6f4: e3a01001 mov r1, #1 <== NOT EXECUTED a000a6f8: e5841054 str r1, [r4, #84] ; 0x54 <== NOT EXECUTED switch ( the_mutex->Attributes.discipline ) { a000a6fc: 0a00001b beq a000a770 <_CORE_mutex_Surrender+0x10c> <== NOT EXECUTED a000a700: e3520003 cmp r2, #3 <== NOT EXECUTED a000a704: 0a000001 beq a000a710 <_CORE_mutex_Surrender+0xac> <== NOT EXECUTED } } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; return CORE_MUTEX_STATUS_SUCCESSFUL; a000a708: e1a00005 mov r0, r5 <== NOT EXECUTED a000a70c: e8bd8030 pop {r4, r5, pc} <== 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++; a000a710: e593c01c ldr ip, [r3, #28] <== NOT EXECUTED if (the_mutex->Attributes.priority_ceiling < a000a714: e594104c ldr r1, [r4, #76] ; 0x4c <== NOT EXECUTED a000a718: e5932014 ldr r2, [r3, #20] <== 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++; a000a71c: e28cc001 add ip, ip, #1 <== NOT EXECUTED a000a720: e583c01c str ip, [r3, #28] <== NOT EXECUTED if (the_mutex->Attributes.priority_ceiling < a000a724: e1510002 cmp r1, r2 <== NOT EXECUTED } } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; return CORE_MUTEX_STATUS_SUCCESSFUL; a000a728: 21a00005 movcs r0, r5 <== NOT EXECUTED the_thread->resource_count++; break; case CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING: _CORE_mutex_Push_priority( the_mutex, the_thread ); the_thread->resource_count++; if (the_mutex->Attributes.priority_ceiling < a000a72c: 3a000014 bcc a000a784 <_CORE_mutex_Surrender+0x120> <== NOT EXECUTED } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; return CORE_MUTEX_STATUS_SUCCESSFUL; } a000a730: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED /* 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; a000a734: e3a00000 mov r0, #0 <== NOT EXECUTED a000a738: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED _CORE_mutex_Pop_priority( the_mutex, holder ); if ( pop_status != CORE_MUTEX_STATUS_SUCCESSFUL ) return pop_status; holder->resource_count--; a000a73c: e592301c ldr r3, [r2, #28] a000a740: 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 && a000a744: e3530000 cmp r3, #0 _CORE_mutex_Pop_priority( the_mutex, holder ); if ( pop_status != CORE_MUTEX_STATUS_SUCCESSFUL ) return pop_status; holder->resource_count--; a000a748: e582301c str r3, [r2, #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 && a000a74c: 1affffdc bne a000a6c4 <_CORE_mutex_Surrender+0x60> holder->real_priority != holder->current_priority ) { a000a750: e5921018 ldr r1, [r2, #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 && a000a754: e5923014 ldr r3, [r2, #20] a000a758: e1510003 cmp r1, r3 a000a75c: 0affffd8 beq a000a6c4 <_CORE_mutex_Surrender+0x60> holder->real_priority != holder->current_priority ) { _Thread_Change_priority( holder, holder->real_priority, true ); a000a760: e1a00002 mov r0, r2 <== NOT EXECUTED a000a764: e3a02001 mov r2, #1 <== NOT EXECUTED a000a768: eb0004f8 bl a000bb50 <_Thread_Change_priority> <== NOT EXECUTED a000a76c: eaffffd4 b a000a6c4 <_CORE_mutex_Surrender+0x60> <== NOT EXECUTED 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++; a000a770: e593201c ldr r2, [r3, #28] <== NOT EXECUTED } } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; return CORE_MUTEX_STATUS_SUCCESSFUL; a000a774: e1a00005 mov r0, r5 <== NOT EXECUTED 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++; a000a778: e2822001 add r2, r2, #1 <== NOT EXECUTED a000a77c: e583201c str r2, [r3, #28] <== NOT EXECUTED break; a000a780: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED case CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING: _CORE_mutex_Push_priority( the_mutex, the_thread ); the_thread->resource_count++; if (the_mutex->Attributes.priority_ceiling < the_thread->current_priority){ _Thread_Change_priority( a000a784: e1a02005 mov r2, r5 <== NOT EXECUTED a000a788: eb0004f0 bl a000bb50 <_Thread_Change_priority> <== NOT EXECUTED } } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; return CORE_MUTEX_STATUS_SUCCESSFUL; a000a78c: e1a00005 mov r0, r5 <== NOT EXECUTED a000a790: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED } break; } } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; a000a794: e3a02001 mov r2, #1 a000a798: e5842050 str r2, [r4, #80] ; 0x50 return CORE_MUTEX_STATUS_SUCCESSFUL; a000a79c: e1a00003 mov r0, r3 a000a7a0: e8bd8030 pop {r4, r5, pc} =============================================================================== a000a7e0 <_CORE_semaphore_Surrender>: CORE_semaphore_Status _CORE_semaphore_Surrender( CORE_semaphore_Control *the_semaphore, Objects_Id id, CORE_semaphore_API_mp_support_callout api_semaphore_mp_support ) { a000a7e0: e92d4010 push {r4, lr} <== NOT EXECUTED a000a7e4: e1a04000 mov r4, r0 <== NOT EXECUTED ISR_Level level; CORE_semaphore_Status status; status = CORE_SEMAPHORE_STATUS_SUCCESSFUL; if ( (the_thread = _Thread_queue_Dequeue(&the_semaphore->Wait_queue)) ) { a000a7e8: eb0006b7 bl a000c2cc <_Thread_queue_Dequeue> <== NOT EXECUTED a000a7ec: e3500000 cmp r0, #0 <== NOT EXECUTED a000a7f0: 0a000001 beq a000a7fc <_CORE_semaphore_Surrender+0x1c> <== NOT EXECUTED { Thread_Control *the_thread; ISR_Level level; CORE_semaphore_Status status; status = CORE_SEMAPHORE_STATUS_SUCCESSFUL; a000a7f4: e3a00000 mov r0, #0 <== NOT EXECUTED status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED; _ISR_Enable( level ); } return status; } a000a7f8: e8bd8010 pop {r4, pc} <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000a7fc: e10f2000 mrs r2, CPSR <== NOT EXECUTED a000a800: e3823080 orr r3, r2, #128 ; 0x80 <== NOT EXECUTED a000a804: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED (*api_semaphore_mp_support) ( the_thread, id ); #endif } else { _ISR_Disable( level ); if ( the_semaphore->count < the_semaphore->Attributes.maximum_count ) a000a808: e5943048 ldr r3, [r4, #72] ; 0x48 <== NOT EXECUTED a000a80c: e5941040 ldr r1, [r4, #64] ; 0x40 <== NOT EXECUTED a000a810: e1530001 cmp r3, r1 <== NOT EXECUTED the_semaphore->count += 1; a000a814: 32833001 addcc r3, r3, #1 <== NOT EXECUTED a000a818: 35843048 strcc r3, [r4, #72] ; 0x48 <== NOT EXECUTED else status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED; a000a81c: 23a00004 movcs r0, #4 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000a820: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED a000a824: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a000ae2c <_Chain_Append_with_empty_check>: bool _Chain_Append_with_empty_check( Chain_Control *chain, Chain_Node *node ) { a000ae2c: e52d4004 push {r4} ; (str r4, [sp, #-4]!) <== NOT EXECUTED a000ae30: e10fc000 mrs ip, CPSR <== NOT EXECUTED a000ae34: e38c3080 orr r3, ip, #128 ; 0x80 <== NOT EXECUTED a000ae38: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED Chain_Control *the_chain, Chain_Node *the_node ) { Chain_Node *tail = _Chain_Tail( the_chain ); Chain_Node *old_last = tail->previous; a000ae3c: e5903008 ldr r3, [r0, #8] <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( const Chain_Control *the_chain ) { return _Chain_Immutable_first( the_chain ) a000ae40: e5904000 ldr r4, [r0] <== NOT EXECUTED == _Chain_Immutable_tail( the_chain ); a000ae44: e2802004 add r2, r0, #4 <== NOT EXECUTED { Chain_Node *tail = _Chain_Tail( the_chain ); Chain_Node *old_last = tail->previous; the_node->next = tail; tail->previous = the_node; a000ae48: e5801008 str r1, [r0, #8] <== NOT EXECUTED ) { Chain_Node *tail = _Chain_Tail( the_chain ); Chain_Node *old_last = tail->previous; the_node->next = tail; a000ae4c: e881000c stm r1, {r2, r3} <== NOT EXECUTED tail->previous = the_node; old_last->next = the_node; a000ae50: e5831000 str r1, [r3] <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( const Chain_Control *the_chain ) { return _Chain_Immutable_first( the_chain ) a000ae54: e1540002 cmp r4, r2 <== NOT EXECUTED a000ae58: 13a00000 movne r0, #0 <== NOT EXECUTED a000ae5c: 03a00001 moveq r0, #1 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000ae60: e129f00c msr CPSR_fc, ip <== NOT EXECUTED _ISR_Disable( level ); was_empty = _Chain_Append_with_empty_check_unprotected( chain, node ); _ISR_Enable( level ); return was_empty; } a000ae64: e8bd0010 pop {r4} <== NOT EXECUTED a000ae68: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000a418 <_Chain_Extract>: static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000a418: e10f1000 mrs r1, CPSR <== NOT EXECUTED a000a41c: e3813080 orr r3, r1, #128 ; 0x80 <== NOT EXECUTED a000a420: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; a000a424: e890000c ldm r0, {r2, r3} <== NOT EXECUTED previous = the_node->previous; next->previous = previous; a000a428: e5823004 str r3, [r2, #4] <== NOT EXECUTED previous->next = next; a000a42c: e5832000 str r2, [r3] <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000a430: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED ISR_Level level; _ISR_Disable( level ); _Chain_Extract_unprotected( node ); _ISR_Enable( level ); } a000a434: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000aeb8 <_Chain_Get_with_empty_check>: bool _Chain_Get_with_empty_check( Chain_Control *chain, Chain_Node **node ) { a000aeb8: e52d4004 push {r4} ; (str r4, [sp, #-4]!) <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000aebc: e10f4000 mrs r4, CPSR <== NOT EXECUTED a000aec0: e3843080 orr r3, r4, #128 ; 0x80 <== NOT EXECUTED a000aec4: 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; a000aec8: e5903000 ldr r3, [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 ); a000aecc: e280c004 add ip, r0, #4 <== NOT EXECUTED Chain_Node *old_first = head->next; if ( old_first != tail ) { a000aed0: e15c0003 cmp ip, r3 <== NOT EXECUTED *the_node = old_first; is_empty_now = new_first == tail; } else *the_node = NULL; a000aed4: 03a03000 moveq r3, #0 <== NOT EXECUTED a000aed8: 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; a000aedc: 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 ) { a000aee0: 0a000006 beq a000af00 <_Chain_Get_with_empty_check+0x48> <== NOT EXECUTED Chain_Node *new_first = old_first->next; a000aee4: e5932000 ldr r2, [r3] <== NOT EXECUTED head->next = new_first; a000aee8: e5802000 str r2, [r0] <== NOT EXECUTED new_first->previous = head; a000aeec: e5820004 str r0, [r2, #4] <== NOT EXECUTED *the_node = old_first; is_empty_now = new_first == tail; a000aef0: e15c0002 cmp ip, r2 <== NOT EXECUTED a000aef4: 13a00000 movne r0, #0 <== NOT EXECUTED a000aef8: 03a00001 moveq r0, #1 <== NOT EXECUTED Chain_Node *new_first = old_first->next; head->next = new_first; new_first->previous = head; *the_node = old_first; a000aefc: e5813000 str r3, [r1] <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000af00: 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; } a000af04: e8bd0010 pop {r4} <== NOT EXECUTED a000af08: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a00130c0 <_Chain_Insert>: static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a00130c0: e10f2000 mrs r2, CPSR <== NOT EXECUTED a00130c4: e3823080 orr r3, r2, #128 ; 0x80 <== NOT EXECUTED a00130c8: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; a00130cc: e5903000 ldr r3, [r0] <== NOT EXECUTED Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; a00130d0: e5810004 str r0, [r1, #4] <== NOT EXECUTED before_node = after_node->next; after_node->next = the_node; a00130d4: e5801000 str r1, [r0] <== NOT EXECUTED the_node->next = before_node; before_node->previous = the_node; a00130d8: e5831004 str r1, [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; a00130dc: e5813000 str r3, [r1] <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a00130e0: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED ISR_Level level; _ISR_Disable( level ); _Chain_Insert_unprotected( after_node, node ); _ISR_Enable( level ); } a00130e4: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000af68 <_Chain_Prepend_with_empty_check>: static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000af68: e10fc000 mrs ip, CPSR <== NOT EXECUTED a000af6c: e38c3080 orr r3, ip, #128 ; 0x80 <== NOT EXECUTED a000af70: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED _ISR_Disable( level ); was_empty = _Chain_Prepend_with_empty_check_unprotected( chain, node ); _ISR_Enable( level ); return was_empty; } a000af74: e5902000 ldr r2, [r0] <== NOT EXECUTED { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; after_node->next = the_node; a000af78: e1a03000 mov r3, r0 <== NOT EXECUTED Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; a000af7c: e5810004 str r0, [r1, #4] <== NOT EXECUTED before_node = after_node->next; after_node->next = the_node; a000af80: e4831004 str r1, [r3], #4 <== NOT EXECUTED the_node->next = before_node; before_node->previous = the_node; a000af84: e5821004 str r1, [r2, #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; a000af88: e5812000 str r2, [r1] <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000af8c: e129f00c msr CPSR_fc, ip <== NOT EXECUTED a000af90: e1520003 cmp r2, r3 <== NOT EXECUTED a000af94: 13a00000 movne r0, #0 <== NOT EXECUTED a000af98: 03a00001 moveq r0, #1 <== NOT EXECUTED a000af9c: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a00094cc <_Event_Seize>: rtems_event_set pending_events; ISR_Level level; RTEMS_API_Control *api; Thread_blocking_operation_States sync_state; executing = _Thread_Executing; a00094cc: e59fc0fc ldr ip, [pc, #252] ; a00095d0 <_Event_Seize+0x104><== NOT EXECUTED rtems_event_set event_in, rtems_option option_set, rtems_interval ticks, rtems_event_set *event_out ) { a00094d0: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED rtems_event_set pending_events; ISR_Level level; RTEMS_API_Control *api; Thread_blocking_operation_States sync_state; executing = _Thread_Executing; a00094d4: e59c4004 ldr r4, [ip, #4] <== NOT EXECUTED executing->Wait.return_code = RTEMS_SUCCESSFUL; a00094d8: e3a0c000 mov ip, #0 <== NOT EXECUTED a00094dc: e584c034 str ip, [r4, #52] ; 0x34 <== NOT EXECUTED api = executing->API_Extensions[ THREAD_API_RTEMS ]; a00094e0: e594c0f4 ldr ip, [r4, #244] ; 0xf4 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a00094e4: e10f7000 mrs r7, CPSR <== NOT EXECUTED a00094e8: e3875080 orr r5, r7, #128 ; 0x80 <== NOT EXECUTED a00094ec: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED _ISR_Disable( level ); pending_events = api->pending_events; a00094f0: e59c5000 ldr r5, [ip] <== NOT EXECUTED seized_events = _Event_sets_Get( pending_events, event_in ); if ( !_Event_sets_Is_empty( seized_events ) && a00094f4: e0106005 ands r6, r0, r5 <== NOT EXECUTED a00094f8: 0a000003 beq a000950c <_Event_Seize+0x40> <== NOT EXECUTED a00094fc: e1500006 cmp r0, r6 <== NOT EXECUTED a0009500: 0a00001f beq a0009584 <_Event_Seize+0xb8> <== NOT EXECUTED (seized_events == event_in || _Options_Is_any( option_set )) ) { a0009504: e3110002 tst r1, #2 <== NOT EXECUTED a0009508: 1a00001d bne a0009584 <_Event_Seize+0xb8> <== NOT EXECUTED _ISR_Enable( level ); *event_out = seized_events; return; } if ( _Options_Is_no_wait( option_set ) ) { a000950c: e3110001 tst r1, #1 <== NOT EXECUTED a0009510: 1a000016 bne a0009570 <_Event_Seize+0xa4> <== NOT EXECUTED */ executing->Wait.option = (uint32_t) option_set; executing->Wait.count = (uint32_t) event_in; executing->Wait.return_argument = event_out; _Event_Sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; a0009514: e59f50b8 ldr r5, [pc, #184] ; a00095d4 <_Event_Seize+0x108><== NOT EXECUTED * NOTE: Since interrupts are disabled, this isn't that much of an * issue but better safe than sorry. */ executing->Wait.option = (uint32_t) option_set; executing->Wait.count = (uint32_t) event_in; executing->Wait.return_argument = event_out; a0009518: e5843028 str r3, [r4, #40] ; 0x28 <== NOT EXECUTED _Event_Sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; a000951c: e3a03001 mov r3, #1 <== NOT EXECUTED * set properly when we are marked as in the event critical section. * * NOTE: Since interrupts are disabled, this isn't that much of an * issue but better safe than sorry. */ executing->Wait.option = (uint32_t) option_set; a0009520: e5841030 str r1, [r4, #48] ; 0x30 <== NOT EXECUTED executing->Wait.count = (uint32_t) event_in; a0009524: e5840024 str r0, [r4, #36] ; 0x24 <== NOT EXECUTED executing->Wait.return_argument = event_out; _Event_Sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; a0009528: e5853000 str r3, [r5] <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000952c: e129f007 msr CPSR_fc, r7 <== NOT EXECUTED _ISR_Enable( level ); if ( ticks ) { a0009530: e3520000 cmp r2, #0 <== NOT EXECUTED a0009534: 1a000019 bne a00095a0 <_Event_Seize+0xd4> <== NOT EXECUTED NULL ); _Watchdog_Insert_ticks( &executing->Timer, ticks ); } _Thread_Set_state( executing, STATES_WAITING_FOR_EVENT ); a0009538: e1a00004 mov r0, r4 <== NOT EXECUTED a000953c: e3a01c01 mov r1, #256 ; 0x100 <== NOT EXECUTED a0009540: eb000cbb bl a000c834 <_Thread_Set_state> <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a0009544: e10f2000 mrs r2, CPSR <== NOT EXECUTED a0009548: e3823080 orr r3, r2, #128 ; 0x80 <== NOT EXECUTED a000954c: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED _ISR_Disable( level ); sync_state = _Event_Sync_state; a0009550: e5950000 ldr r0, [r5] <== NOT EXECUTED _Event_Sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; a0009554: e3a03000 mov r3, #0 <== NOT EXECUTED a0009558: e5853000 str r3, [r5] <== NOT EXECUTED if ( sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) { a000955c: e3500001 cmp r0, #1 <== NOT EXECUTED a0009560: 0a00000c beq a0009598 <_Event_Seize+0xcc> <== NOT EXECUTED * An interrupt completed the thread's blocking request. * The blocking thread was satisfied by an ISR or timed out. * * WARNING! Returning with interrupts disabled! */ _Thread_blocking_operation_Cancel( sync_state, executing, level ); a0009564: e1a01004 mov r1, r4 <== NOT EXECUTED } a0009568: e8bd40f0 pop {r4, r5, r6, r7, lr} <== NOT EXECUTED * An interrupt completed the thread's blocking request. * The blocking thread was satisfied by an ISR or timed out. * * WARNING! Returning with interrupts disabled! */ _Thread_blocking_operation_Cancel( sync_state, executing, level ); a000956c: ea000961 b a000baf8 <_Thread_blocking_operation_Cancel> <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a0009570: e129f007 msr CPSR_fc, r7 <== NOT EXECUTED return; } if ( _Options_Is_no_wait( option_set ) ) { _ISR_Enable( level ); executing->Wait.return_code = RTEMS_UNSATISFIED; a0009574: e3a0200d mov r2, #13 <== NOT EXECUTED a0009578: e5842034 str r2, [r4, #52] ; 0x34 <== NOT EXECUTED *event_out = seized_events; a000957c: e5836000 str r6, [r3] <== NOT EXECUTED return; a0009580: e8bd80f0 pop {r4, r5, r6, r7, pc} <== 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) ); a0009584: e1c55006 bic r5, r5, r6 <== NOT EXECUTED pending_events = api->pending_events; seized_events = _Event_sets_Get( pending_events, event_in ); if ( !_Event_sets_Is_empty( seized_events ) && (seized_events == event_in || _Options_Is_any( option_set )) ) { api->pending_events = a0009588: e58c5000 str r5, [ip] <== NOT EXECUTED a000958c: e129f007 msr CPSR_fc, r7 <== NOT EXECUTED _Event_sets_Clear( pending_events, seized_events ); _ISR_Enable( level ); *event_out = seized_events; a0009590: e5836000 str r6, [r3] <== NOT EXECUTED return; a0009594: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED a0009598: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED a000959c: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED _Event_Sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; _ISR_Enable( level ); if ( ticks ) { _Watchdog_Initialize( a00095a0: e5941008 ldr r1, [r4, #8] <== NOT EXECUTED Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; a00095a4: e59f002c ldr r0, [pc, #44] ; a00095d8 <_Event_Seize+0x10c> <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; a00095a8: e3a03000 mov r3, #0 <== NOT EXECUTED the_watchdog->routine = routine; the_watchdog->id = id; a00095ac: e5841068 str r1, [r4, #104] ; 0x68 <== NOT EXECUTED Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; a00095b0: e5840064 str r0, [r4, #100] ; 0x64 <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; a00095b4: e5843050 str r3, [r4, #80] ; 0x50 <== NOT EXECUTED the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data; a00095b8: e584306c str r3, [r4, #108] ; 0x6c <== NOT EXECUTED Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; a00095bc: e5842054 str r2, [r4, #84] ; 0x54 <== NOT EXECUTED _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); a00095c0: e59f0014 ldr r0, [pc, #20] ; a00095dc <_Event_Seize+0x110> <== NOT EXECUTED a00095c4: e2841048 add r1, r4, #72 ; 0x48 <== NOT EXECUTED a00095c8: eb000dfa bl a000cdb8 <_Watchdog_Insert> <== NOT EXECUTED a00095cc: eaffffd9 b a0009538 <_Event_Seize+0x6c> <== NOT EXECUTED =============================================================================== a0009638 <_Event_Surrender>: */ void _Event_Surrender( Thread_Control *the_thread ) { a0009638: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED rtems_event_set event_condition; rtems_event_set seized_events; rtems_option option_set; RTEMS_API_Control *api; api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; a000963c: e59010f4 ldr r1, [r0, #244] ; 0xf4 <== NOT EXECUTED option_set = (rtems_option) the_thread->Wait.option; a0009640: e5906030 ldr r6, [r0, #48] ; 0x30 <== NOT EXECUTED */ void _Event_Surrender( Thread_Control *the_thread ) { a0009644: e1a04000 mov r4, r0 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a0009648: e10f0000 mrs r0, CPSR <== NOT EXECUTED a000964c: e3803080 orr r3, r0, #128 ; 0x80 <== NOT EXECUTED a0009650: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; option_set = (rtems_option) the_thread->Wait.option; _ISR_Disable( level ); pending_events = api->pending_events; a0009654: e5912000 ldr r2, [r1] <== NOT EXECUTED event_condition = (rtems_event_set) the_thread->Wait.count; a0009658: e5943024 ldr r3, [r4, #36] ; 0x24 <== NOT EXECUTED seized_events = _Event_sets_Get( pending_events, event_condition ); /* * No events were seized in this operation */ if ( _Event_sets_Is_empty( seized_events ) ) { a000965c: e013c002 ands ip, r3, r2 <== NOT EXECUTED a0009660: 0a000020 beq a00096e8 <_Event_Surrender+0xb0> <== 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() && a0009664: e59f50fc ldr r5, [pc, #252] ; a0009768 <_Event_Surrender+0x130><== NOT EXECUTED a0009668: e5957000 ldr r7, [r5] <== NOT EXECUTED a000966c: e3570000 cmp r7, #0 <== NOT EXECUTED a0009670: 0a000002 beq a0009680 <_Event_Surrender+0x48> <== NOT EXECUTED a0009674: e5955004 ldr r5, [r5, #4] <== NOT EXECUTED a0009678: e1540005 cmp r4, r5 <== NOT EXECUTED a000967c: 0a000024 beq a0009714 <_Event_Surrender+0xdc> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_event ( States_Control the_states ) { return (the_states & STATES_WAITING_FOR_EVENT); a0009680: e5945010 ldr r5, [r4, #16] <== NOT EXECUTED } /* * Otherwise, this is a normal send to another thread */ if ( _States_Is_waiting_for_event( the_thread->current_state ) ) { a0009684: e3150c01 tst r5, #256 ; 0x100 <== NOT EXECUTED a0009688: 0a000014 beq a00096e0 <_Event_Surrender+0xa8> <== NOT EXECUTED if ( seized_events == event_condition || _Options_Is_any( option_set ) ) { a000968c: e153000c cmp r3, ip <== NOT EXECUTED a0009690: 0a000001 beq a000969c <_Event_Surrender+0x64> <== NOT EXECUTED a0009694: e3160002 tst r6, #2 <== NOT EXECUTED a0009698: 0a000010 beq a00096e0 <_Event_Surrender+0xa8> <== NOT EXECUTED api->pending_events = _Event_sets_Clear( pending_events, seized_events ); the_thread->Wait.count = 0; *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; a000969c: e5943028 ldr r3, [r4, #40] ; 0x28 <== 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) ); a00096a0: e1c2200c bic r2, r2, ip <== NOT EXECUTED /* * Otherwise, this is a normal send to another thread */ if ( _States_Is_waiting_for_event( the_thread->current_state ) ) { if ( seized_events == event_condition || _Options_Is_any( option_set ) ) { api->pending_events = _Event_sets_Clear( pending_events, seized_events ); a00096a4: e5812000 str r2, [r1] <== NOT EXECUTED the_thread->Wait.count = 0; a00096a8: e3a02000 mov r2, #0 <== NOT EXECUTED a00096ac: e5842024 str r2, [r4, #36] ; 0x24 <== NOT EXECUTED *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; a00096b0: e583c000 str ip, [r3] <== NOT EXECUTED static inline void arm_interrupt_flash( uint32_t level ) { uint32_t arm_switch_reg; __asm__ volatile ( a00096b4: e10f3000 mrs r3, CPSR <== NOT EXECUTED a00096b8: e129f000 msr CPSR_fc, r0 <== NOT EXECUTED a00096bc: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED _ISR_Flash( level ); if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { a00096c0: e5943050 ldr r3, [r4, #80] ; 0x50 <== NOT EXECUTED a00096c4: e3530002 cmp r3, #2 <== NOT EXECUTED a00096c8: 0a000008 beq a00096f0 <_Event_Surrender+0xb8> <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a00096cc: e129f000 msr CPSR_fc, r0 <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); a00096d0: e59f1094 ldr r1, [pc, #148] ; a000976c <_Event_Surrender+0x134><== NOT EXECUTED a00096d4: e1a00004 mov r0, r4 <== NOT EXECUTED } return; } } _ISR_Enable( level ); } a00096d8: e8bd40f0 pop {r4, r5, r6, r7, lr} <== NOT EXECUTED a00096dc: ea00095d b a000bc58 <_Thread_Clear_state> <== NOT EXECUTED a00096e0: e129f000 msr CPSR_fc, r0 <== NOT EXECUTED a00096e4: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED a00096e8: e129f000 msr CPSR_fc, r0 <== NOT EXECUTED a00096ec: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_REMOVE_IT; a00096f0: e3a03003 mov r3, #3 <== NOT EXECUTED a00096f4: e5843050 str r3, [r4, #80] ; 0x50 <== NOT EXECUTED a00096f8: e129f000 msr CPSR_fc, r0 <== NOT EXECUTED _ISR_Enable( level ); _Thread_Unblock( the_thread ); } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); (void) _Watchdog_Remove( &the_thread->Timer ); a00096fc: e2840048 add r0, r4, #72 ; 0x48 <== NOT EXECUTED a0009700: eb000e1b bl a000cf74 <_Watchdog_Remove> <== NOT EXECUTED a0009704: e59f1060 ldr r1, [pc, #96] ; a000976c <_Event_Surrender+0x134><== NOT EXECUTED a0009708: e1a00004 mov r0, r4 <== NOT EXECUTED } return; } } _ISR_Enable( level ); } a000970c: e8bd40f0 pop {r4, r5, r6, r7, lr} <== NOT EXECUTED a0009710: ea000950 b a000bc58 <_Thread_Clear_state> <== NOT EXECUTED * If we are in an ISR and sending to the current thread, then * we have a critical section issue to deal with. */ if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) && ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) || a0009714: e59f5054 ldr r5, [pc, #84] ; a0009770 <_Event_Surrender+0x138><== NOT EXECUTED a0009718: e5957000 ldr r7, [r5] <== 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 ) && a000971c: e3570002 cmp r7, #2 <== NOT EXECUTED a0009720: 0a000002 beq a0009730 <_Event_Surrender+0xf8> <== NOT EXECUTED ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) || (_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) { a0009724: e5957000 ldr r7, [r5] <== NOT EXECUTED * If we are in an ISR and sending to the current thread, then * we have a critical section issue to deal with. */ if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) && ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) || a0009728: e3570001 cmp r7, #1 <== NOT EXECUTED a000972c: 1affffd3 bne a0009680 <_Event_Surrender+0x48> <== NOT EXECUTED (_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) { if ( seized_events == event_condition || _Options_Is_any(option_set) ) { a0009730: e153000c cmp r3, ip <== NOT EXECUTED a0009734: 0a000001 beq a0009740 <_Event_Surrender+0x108> <== NOT EXECUTED a0009738: e3160002 tst r6, #2 <== NOT EXECUTED a000973c: 0a000007 beq a0009760 <_Event_Surrender+0x128> <== NOT EXECUTED api->pending_events = _Event_sets_Clear( pending_events,seized_events ); the_thread->Wait.count = 0; *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; a0009740: e5943028 ldr r3, [r4, #40] ; 0x28 <== NOT EXECUTED a0009744: e1c2200c bic r2, r2, ip <== NOT EXECUTED if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) && ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) || (_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) { if ( seized_events == event_condition || _Options_Is_any(option_set) ) { api->pending_events = _Event_sets_Clear( pending_events,seized_events ); a0009748: e5812000 str r2, [r1] <== NOT EXECUTED the_thread->Wait.count = 0; a000974c: e3a02000 mov r2, #0 <== NOT EXECUTED a0009750: e5842024 str r2, [r4, #36] ; 0x24 <== NOT EXECUTED *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; a0009754: e583c000 str ip, [r3] <== NOT EXECUTED _Event_Sync_state = THREAD_BLOCKING_OPERATION_SATISFIED; a0009758: e3a03003 mov r3, #3 <== NOT EXECUTED a000975c: e5853000 str r3, [r5] <== NOT EXECUTED a0009760: e129f000 msr CPSR_fc, r0 <== NOT EXECUTED a0009764: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED =============================================================================== a0009774 <_Event_Timeout>: void _Event_Timeout( Objects_Id id, void *ignored ) { a0009774: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED a0009778: e24dd004 sub sp, sp, #4 <== NOT EXECUTED Thread_Control *the_thread; Objects_Locations location; ISR_Level level; the_thread = _Thread_Get( id, &location ); a000977c: e1a0100d mov r1, sp <== NOT EXECUTED a0009780: eb000a1b bl a000bff4 <_Thread_Get> <== NOT EXECUTED switch ( location ) { a0009784: e59d3000 ldr r3, [sp] <== NOT EXECUTED a0009788: e3530000 cmp r3, #0 <== NOT EXECUTED a000978c: 1a000010 bne a00097d4 <_Event_Timeout+0x60> <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a0009790: e10f2000 mrs r2, CPSR <== NOT EXECUTED a0009794: e3821080 orr r1, r2, #128 ; 0x80 <== NOT EXECUTED a0009798: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED _ISR_Enable( level ); return; } #endif the_thread->Wait.count = 0; a000979c: e5803024 str r3, [r0, #36] ; 0x24 <== NOT EXECUTED if ( _Thread_Is_executing( the_thread ) ) { a00097a0: e59f304c ldr r3, [pc, #76] ; a00097f4 <_Event_Timeout+0x80><== NOT EXECUTED a00097a4: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED a00097a8: e1500003 cmp r0, r3 <== NOT EXECUTED a00097ac: 0a00000a beq a00097dc <_Event_Timeout+0x68> <== NOT EXECUTED if ( _Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) _Event_Sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT; } the_thread->Wait.return_code = RTEMS_TIMEOUT; a00097b0: e3a03006 mov r3, #6 <== NOT EXECUTED a00097b4: e5803034 str r3, [r0, #52] ; 0x34 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a00097b8: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED a00097bc: e59f1034 ldr r1, [pc, #52] ; a00097f8 <_Event_Timeout+0x84><== NOT EXECUTED a00097c0: eb000924 bl a000bc58 <_Thread_Clear_state> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; a00097c4: e59f3030 ldr r3, [pc, #48] ; a00097fc <_Event_Timeout+0x88><== NOT EXECUTED a00097c8: e5932000 ldr r2, [r3] <== NOT EXECUTED a00097cc: e2422001 sub r2, r2, #1 <== NOT EXECUTED a00097d0: e5832000 str r2, [r3] <== NOT EXECUTED case OBJECTS_REMOTE: /* impossible */ #endif case OBJECTS_ERROR: break; } } a00097d4: e28dd004 add sp, sp, #4 <== NOT EXECUTED a00097d8: e8bd8000 pop {pc} <== NOT EXECUTED } #endif the_thread->Wait.count = 0; if ( _Thread_Is_executing( the_thread ) ) { if ( _Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) a00097dc: e59f301c ldr r3, [pc, #28] ; a0009800 <_Event_Timeout+0x8c><== NOT EXECUTED a00097e0: e5931000 ldr r1, [r3] <== NOT EXECUTED a00097e4: e3510001 cmp r1, #1 <== NOT EXECUTED _Event_Sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT; a00097e8: 03a01002 moveq r1, #2 <== NOT EXECUTED a00097ec: 05831000 streq r1, [r3] <== NOT EXECUTED a00097f0: eaffffee b a00097b0 <_Event_Timeout+0x3c> <== NOT EXECUTED =============================================================================== a000f2cc <_Heap_Allocate_aligned_with_boundary>: Heap_Control *heap, uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) { a000f2cc: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} a000f2d0: 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; a000f2d4: e5902010 ldr r2, [r0, #16] Heap_Control *heap, uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) { a000f2d8: e24dd01c sub sp, sp, #28 a000f2dc: e1a05001 mov r5, r1 Heap_Block *block = NULL; uintptr_t alloc_begin = 0; uint32_t search_count = 0; bool search_again = false; if ( block_size_floor < alloc_size ) { a000f2e0: e2911004 adds r1, r1, #4 Heap_Control *heap, uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) { a000f2e4: e1a07000 mov r7, r0 Heap_Block *block = NULL; uintptr_t alloc_begin = 0; uint32_t search_count = 0; bool search_again = false; if ( block_size_floor < alloc_size ) { a000f2e8: e58d1000 str r1, [sp] Heap_Control *heap, uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) { a000f2ec: e1a0b003 mov fp, r3 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; a000f2f0: e58d200c str r2, [sp, #12] Heap_Block *block = NULL; uintptr_t alloc_begin = 0; uint32_t search_count = 0; bool search_again = false; if ( block_size_floor < alloc_size ) { a000f2f4: 2a000078 bcs a000f4dc <_Heap_Allocate_aligned_with_boundary+0x210> /* Integer overflow occured */ return NULL; } if ( boundary != 0 ) { a000f2f8: e3530000 cmp r3, #0 a000f2fc: 1a000074 bne a000f4d4 <_Heap_Allocate_aligned_with_boundary+0x208> if ( stats->max_search < search_count ) { stats->max_search = search_count; } return (void *) alloc_begin; } a000f300: e5979008 ldr r9, [r7, #8] do { Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap ); block = _Heap_Free_list_first( heap ); while ( block != free_list_tail ) { a000f304: e1570009 cmp r7, r9 a000f308: 0a000073 beq a000f4dc <_Heap_Allocate_aligned_with_boundary+0x210> 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 a000f30c: e59d300c ldr r3, [sp, #12] + HEAP_BLOCK_HEADER_SIZE + page_size - 1; uintptr_t alloc_end = block_end + HEAP_ALLOC_BONUS; a000f310: e2651004 rsb r1, r5, #4 do { Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap ); block = _Heap_Free_list_first( heap ); while ( block != free_list_tail ) { a000f314: e3a06001 mov r6, #1 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 a000f318: e2833007 add r3, r3, #7 a000f31c: e58d3010 str r3, [sp, #16] + HEAP_BLOCK_HEADER_SIZE + page_size - 1; uintptr_t alloc_end = block_end + HEAP_ALLOC_BONUS; a000f320: e58d1014 str r1, [sp, #20] /* * 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 ) { a000f324: e599a004 ldr sl, [r9, #4] a000f328: e59d2000 ldr r2, [sp] a000f32c: e152000a cmp r2, sl a000f330: 2a00004e bcs a000f470 <_Heap_Allocate_aligned_with_boundary+0x1a4> if ( alignment == 0 ) { a000f334: 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; a000f338: 02894008 addeq r4, r9, #8 a000f33c: 0a000051 beq a000f488 <_Heap_Allocate_aligned_with_boundary+0x1bc> if ( stats->max_search < search_count ) { stats->max_search = search_count; } return (void *) alloc_begin; } a000f340: e5973014 ldr r3, [r7, #20] <== NOT EXECUTED 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; uintptr_t alloc_end = block_end + HEAP_ALLOC_BONUS; uintptr_t alloc_begin = alloc_end - alloc_size; a000f344: e59d1014 ldr r1, [sp, #20] <== NOT EXECUTED 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; a000f348: e59d2010 ldr r2, [sp, #16] <== NOT EXECUTED - HEAP_BLOCK_HEADER_SIZE); } RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block ) { return block->size_and_flag & ~HEAP_PREV_BLOCK_USED; a000f34c: e3caa001 bic sl, sl, #1 <== NOT EXECUTED 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; a000f350: e089a00a add sl, r9, sl <== NOT EXECUTED 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; uintptr_t alloc_end = block_end + HEAP_ALLOC_BONUS; uintptr_t alloc_begin = alloc_end - alloc_size; a000f354: e081400a add r4, r1, sl <== NOT EXECUTED if ( stats->max_search < search_count ) { stats->max_search = search_count; } return (void *) alloc_begin; } a000f358: e58d3004 str r3, [sp, #4] <== NOT EXECUTED 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; a000f35c: e0633002 rsb r3, r3, r2 <== NOT EXECUTED RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment); a000f360: e1a00004 mov r0, r4 <== 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 a000f364: e083a00a add sl, r3, sl <== NOT EXECUTED a000f368: e1a01008 mov r1, r8 <== NOT EXECUTED RTEMS_INLINE_ROUTINE uintptr_t _Heap_Alloc_area_of_block( const Heap_Block *block ) { return (uintptr_t) block + HEAP_BLOCK_HEADER_SIZE; a000f36c: e2893008 add r3, r9, #8 <== NOT EXECUTED a000f370: e58d3008 str r3, [sp, #8] <== NOT EXECUTED RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment); a000f374: eb001562 bl a0014904 <__umodsi3> <== NOT EXECUTED a000f378: e0604004 rsb r4, r0, r4 <== NOT EXECUTED uintptr_t alloc_begin = alloc_end - alloc_size; alloc_begin = _Heap_Align_down( alloc_begin, alignment ); /* Ensure that the we have a valid new block at the end */ if ( alloc_begin > alloc_begin_ceiling ) { a000f37c: e15a0004 cmp sl, r4 <== NOT EXECUTED a000f380: 2a000003 bcs a000f394 <_Heap_Allocate_aligned_with_boundary+0xc8><== NOT EXECUTED a000f384: e1a0000a mov r0, sl <== NOT EXECUTED a000f388: e1a01008 mov r1, r8 <== NOT EXECUTED a000f38c: eb00155c bl a0014904 <__umodsi3> <== NOT EXECUTED a000f390: e060400a rsb r4, r0, sl <== NOT EXECUTED } alloc_end = alloc_begin + alloc_size; /* Ensure boundary constaint */ if ( boundary != 0 ) { a000f394: e35b0000 cmp fp, #0 <== NOT EXECUTED a000f398: 0a000026 beq a000f438 <_Heap_Allocate_aligned_with_boundary+0x16c><== 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; a000f39c: e084a005 add sl, r4, r5 <== NOT EXECUTED a000f3a0: e1a0000a mov r0, sl <== NOT EXECUTED a000f3a4: e1a0100b mov r1, fp <== NOT EXECUTED a000f3a8: eb001555 bl a0014904 <__umodsi3> <== NOT EXECUTED a000f3ac: e060000a rsb r0, r0, sl <== 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 ) { a000f3b0: e15a0000 cmp sl, r0 <== NOT EXECUTED a000f3b4: 93a0a000 movls sl, #0 <== NOT EXECUTED a000f3b8: 83a0a001 movhi sl, #1 <== NOT EXECUTED a000f3bc: e1540000 cmp r4, r0 <== NOT EXECUTED a000f3c0: 23a0a000 movcs sl, #0 <== NOT EXECUTED a000f3c4: e35a0000 cmp sl, #0 <== NOT EXECUTED a000f3c8: 0a00001a beq a000f438 <_Heap_Allocate_aligned_with_boundary+0x16c><== NOT EXECUTED alloc_end = alloc_begin + alloc_size; /* Ensure boundary constaint */ if ( boundary != 0 ) { uintptr_t const boundary_floor = alloc_begin_floor + alloc_size; a000f3cc: e59d1008 ldr r1, [sp, #8] <== NOT EXECUTED a000f3d0: e0813005 add r3, r1, r5 <== 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 ) { a000f3d4: e1530000 cmp r3, r0 <== NOT EXECUTED a000f3d8: 958d9018 strls r9, [sp, #24] <== NOT EXECUTED a000f3dc: 91a09003 movls r9, r3 <== NOT EXECUTED a000f3e0: 9a000002 bls a000f3f0 <_Heap_Allocate_aligned_with_boundary+0x124><== NOT EXECUTED a000f3e4: ea000021 b a000f470 <_Heap_Allocate_aligned_with_boundary+0x1a4><== NOT EXECUTED a000f3e8: e1590000 cmp r9, r0 <== NOT EXECUTED a000f3ec: 8a00003c bhi a000f4e4 <_Heap_Allocate_aligned_with_boundary+0x218><== NOT EXECUTED return 0; } alloc_begin = boundary_line - alloc_size; a000f3f0: e0654000 rsb r4, r5, r0 <== NOT EXECUTED a000f3f4: e1a01008 mov r1, r8 <== NOT EXECUTED a000f3f8: e1a00004 mov r0, r4 <== NOT EXECUTED a000f3fc: eb001540 bl a0014904 <__umodsi3> <== NOT EXECUTED a000f400: e0604004 rsb r4, r0, r4 <== NOT EXECUTED alloc_begin = _Heap_Align_down( alloc_begin, alignment ); alloc_end = alloc_begin + alloc_size; a000f404: e084a005 add sl, r4, r5 <== NOT EXECUTED a000f408: e1a0000a mov r0, sl <== NOT EXECUTED a000f40c: e1a0100b mov r1, fp <== NOT EXECUTED a000f410: eb00153b bl a0014904 <__umodsi3> <== NOT EXECUTED a000f414: e060000a rsb r0, r0, sl <== 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 ) { a000f418: e15a0000 cmp sl, r0 <== NOT EXECUTED a000f41c: 93a0a000 movls sl, #0 <== NOT EXECUTED a000f420: 83a0a001 movhi sl, #1 <== NOT EXECUTED a000f424: e1540000 cmp r4, r0 <== NOT EXECUTED a000f428: 23a0a000 movcs sl, #0 <== NOT EXECUTED a000f42c: e35a0000 cmp sl, #0 <== NOT EXECUTED a000f430: 1affffec bne a000f3e8 <_Heap_Allocate_aligned_with_boundary+0x11c><== NOT EXECUTED a000f434: e59d9018 ldr r9, [sp, #24] <== 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 ) { a000f438: e59d2008 ldr r2, [sp, #8] <== NOT EXECUTED a000f43c: e1520004 cmp r2, r4 <== NOT EXECUTED a000f440: 8a00000a bhi a000f470 <_Heap_Allocate_aligned_with_boundary+0x1a4><== NOT EXECUTED a000f444: e59d100c ldr r1, [sp, #12] <== NOT EXECUTED a000f448: e1a00004 mov r0, r4 <== NOT EXECUTED a000f44c: eb00152c bl a0014904 <__umodsi3> <== NOT EXECUTED a000f450: e3e0a007 mvn sl, #7 <== NOT EXECUTED a000f454: e069a00a rsb sl, r9, sl <== NOT EXECUTED 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 ) { a000f458: e59d1004 ldr r1, [sp, #4] <== NOT EXECUTED uintptr_t alloc_begin, uintptr_t page_size ) { return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size ) - HEAP_BLOCK_HEADER_SIZE); a000f45c: e08aa004 add sl, sl, r4 <== NOT EXECUTED a000f460: e060300a rsb r3, r0, sl <== NOT EXECUTED a000f464: e15a0000 cmp sl, r0 <== NOT EXECUTED a000f468: 11510003 cmpne r1, r3 <== NOT EXECUTED a000f46c: 9a000005 bls a000f488 <_Heap_Allocate_aligned_with_boundary+0x1bc><== NOT EXECUTED if ( alloc_begin != 0 ) { break; } block = block->next; a000f470: e5999008 ldr r9, [r9, #8] <== NOT EXECUTED a000f474: e2863001 add r3, r6, #1 <== NOT EXECUTED do { Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap ); block = _Heap_Free_list_first( heap ); while ( block != free_list_tail ) { a000f478: e1570009 cmp r7, r9 <== NOT EXECUTED a000f47c: 0a00001d beq a000f4f8 <_Heap_Allocate_aligned_with_boundary+0x22c><== NOT EXECUTED a000f480: e1a06003 mov r6, r3 <== NOT EXECUTED a000f484: eaffffa6 b a000f324 <_Heap_Allocate_aligned_with_boundary+0x58><== NOT EXECUTED } /* Statistics */ ++search_count; if ( alloc_begin != 0 ) { a000f488: e3540000 cmp r4, #0 a000f48c: 0afffff7 beq a000f470 <_Heap_Allocate_aligned_with_boundary+0x1a4> search_again = _Heap_Protection_free_delayed_blocks( heap, alloc_begin ); } while ( search_again ); if ( alloc_begin != 0 ) { /* Statistics */ ++stats->allocs; a000f490: e5972048 ldr r2, [r7, #72] ; 0x48 stats->searches += search_count; a000f494: e597304c ldr r3, [r7, #76] ; 0x4c block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size ); a000f498: e1a00007 mov r0, r7 search_again = _Heap_Protection_free_delayed_blocks( heap, alloc_begin ); } while ( search_again ); if ( alloc_begin != 0 ) { /* Statistics */ ++stats->allocs; a000f49c: e2822001 add r2, r2, #1 stats->searches += search_count; a000f4a0: e0833006 add r3, r3, r6 search_again = _Heap_Protection_free_delayed_blocks( heap, alloc_begin ); } while ( search_again ); if ( alloc_begin != 0 ) { /* Statistics */ ++stats->allocs; a000f4a4: e5872048 str r2, [r7, #72] ; 0x48 stats->searches += search_count; a000f4a8: e587304c str r3, [r7, #76] ; 0x4c block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size ); a000f4ac: e1a01009 mov r1, r9 a000f4b0: e1a02004 mov r2, r4 a000f4b4: e1a03005 mov r3, r5 a000f4b8: ebffedd5 bl a000ac14 <_Heap_Block_allocate> a000f4bc: e1a00004 mov r0, r4 boundary ); } /* Statistics */ if ( stats->max_search < search_count ) { a000f4c0: e5973044 ldr r3, [r7, #68] ; 0x44 a000f4c4: e1530006 cmp r3, r6 stats->max_search = search_count; a000f4c8: 35876044 strcc r6, [r7, #68] ; 0x44 } return (void *) alloc_begin; } a000f4cc: e28dd01c add sp, sp, #28 a000f4d0: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} /* Integer overflow occured */ return NULL; } if ( boundary != 0 ) { if ( boundary < alloc_size ) { a000f4d4: e1550003 cmp r5, r3 <== NOT EXECUTED a000f4d8: 9a000008 bls a000f500 <_Heap_Allocate_aligned_with_boundary+0x234><== NOT EXECUTED do { Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap ); block = _Heap_Free_list_first( heap ); while ( block != free_list_tail ) { a000f4dc: e3a00000 mov r0, #0 <== NOT EXECUTED a000f4e0: eafffff9 b a000f4cc <_Heap_Allocate_aligned_with_boundary+0x200><== NOT EXECUTED a000f4e4: e59d9018 ldr r9, [sp, #24] <== NOT EXECUTED if ( alloc_begin != 0 ) { break; } block = block->next; a000f4e8: e2863001 add r3, r6, #1 <== NOT EXECUTED a000f4ec: e5999008 ldr r9, [r9, #8] <== NOT EXECUTED do { Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap ); block = _Heap_Free_list_first( heap ); while ( block != free_list_tail ) { a000f4f0: e1570009 cmp r7, r9 <== NOT EXECUTED a000f4f4: 1affffe1 bne a000f480 <_Heap_Allocate_aligned_with_boundary+0x1b4><== NOT EXECUTED a000f4f8: e3a00000 mov r0, #0 <== NOT EXECUTED a000f4fc: eaffffef b a000f4c0 <_Heap_Allocate_aligned_with_boundary+0x1f4><== NOT EXECUTED if ( boundary < alloc_size ) { return NULL; } if ( alignment == 0 ) { alignment = page_size; a000f500: e3580000 cmp r8, #0 <== NOT EXECUTED a000f504: 01a08002 moveq r8, r2 <== NOT EXECUTED a000f508: eaffff7c b a000f300 <_Heap_Allocate_aligned_with_boundary+0x34><== NOT EXECUTED =============================================================================== a000ac14 <_Heap_Block_allocate>: Heap_Control *heap, Heap_Block *block, uintptr_t alloc_begin, uintptr_t alloc_size ) { a000ac14: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} } _Heap_Protection_block_initialize( heap, block ); return block; } a000ac18: e5917004 ldr r7, [r1, #4] Heap_Control *heap, Heap_Block *block, uintptr_t alloc_begin, uintptr_t alloc_size ) { a000ac1c: e1a05001 mov r5, r1 RTEMS_INLINE_ROUTINE uintptr_t _Heap_Alloc_area_of_block( const Heap_Block *block ) { return (uintptr_t) block + HEAP_BLOCK_HEADER_SIZE; a000ac20: e2426008 sub r6, r2, #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; a000ac24: e3c71001 bic r1, r7, #1 RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); a000ac28: e0858001 add r8, r5, r1 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; a000ac2c: e598c004 ldr ip, [r8, #4] a000ac30: e1a0a003 mov sl, r3 a000ac34: e1a04000 mov r4, r0 Heap_Block *free_list_anchor = NULL; _HAssert( alloc_area_begin <= alloc_begin ); if ( _Heap_Is_free( block ) ) { a000ac38: e31c0001 tst ip, #1 ) { 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; a000ac3c: e0653006 rsb r3, r5, r6 /* Statistics */ --stats->free_blocks; ++stats->used_blocks; stats->free_size -= _Heap_Block_size( block ); } else { free_list_anchor = _Heap_Free_list_head( heap ); a000ac40: 11a09000 movne r9, r0 Heap_Block *free_list_anchor = NULL; _HAssert( alloc_area_begin <= alloc_begin ); if ( _Heap_Is_free( block ) ) { a000ac44: 1a00000c bne a000ac7c <_Heap_Block_allocate+0x68> free_list_anchor = block->prev; _Heap_Free_list_remove( block ); /* Statistics */ --stats->free_blocks; a000ac48: e590e038 ldr lr, [r0, #56] ; 0x38 ++stats->used_blocks; a000ac4c: e590c040 ldr ip, [r0, #64] ; 0x40 stats->free_size -= _Heap_Block_size( block ); a000ac50: e590b030 ldr fp, [r0, #48] ; 0x30 Heap_Block *free_list_anchor = NULL; _HAssert( alloc_area_begin <= alloc_begin ); if ( _Heap_Is_free( block ) ) { free_list_anchor = block->prev; a000ac54: e595900c ldr r9, [r5, #12] } _Heap_Protection_block_initialize( heap, block ); return block; } a000ac58: e5950008 ldr r0, [r5, #8] free_list_anchor = block->prev; _Heap_Free_list_remove( block ); /* Statistics */ --stats->free_blocks; a000ac5c: e24ee001 sub lr, lr, #1 ++stats->used_blocks; a000ac60: e28cc001 add ip, ip, #1 stats->free_size -= _Heap_Block_size( block ); a000ac64: e061100b rsb r1, r1, fp RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block ) { Heap_Block *next = block->next; Heap_Block *prev = block->prev; prev->next = next; a000ac68: e5890008 str r0, [r9, #8] next->prev = prev; a000ac6c: e580900c str r9, [r0, #12] free_list_anchor = block->prev; _Heap_Free_list_remove( block ); /* Statistics */ --stats->free_blocks; a000ac70: e584e038 str lr, [r4, #56] ; 0x38 ++stats->used_blocks; a000ac74: e584c040 str ip, [r4, #64] ; 0x40 stats->free_size -= _Heap_Block_size( block ); a000ac78: e5841030 str r1, [r4, #48] ; 0x30 } else { free_list_anchor = _Heap_Free_list_head( heap ); } if ( alloc_area_offset < heap->page_size ) { a000ac7c: e5941010 ldr r1, [r4, #16] a000ac80: e1530001 cmp r3, r1 a000ac84: 3a000027 bcc a000ad28 <_Heap_Block_allocate+0x114> RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment); a000ac88: e1a00002 mov r0, r2 <== NOT EXECUTED a000ac8c: eb00271c bl a0014904 <__umodsi3> <== NOT EXECUTED _HAssert( block_size >= heap->min_block_size ); _HAssert( new_block_size >= heap->min_block_size ); /* Statistics */ stats->free_size += block_size; a000ac90: e5943030 ldr r3, [r4, #48] ; 0x30 <== NOT EXECUTED uintptr_t alloc_begin, uintptr_t page_size ) { return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size ) - HEAP_BLOCK_HEADER_SIZE); a000ac94: e0606006 rsb r6, r0, r6 <== NOT EXECUTED _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; a000ac98: e0651006 rsb r1, r5, r6 <== NOT EXECUTED _HAssert( block_size >= heap->min_block_size ); _HAssert( new_block_size >= heap->min_block_size ); /* Statistics */ stats->free_size += block_size; a000ac9c: e0833001 add r3, r3, r1 <== NOT EXECUTED if ( _Heap_Is_prev_used( block ) ) { a000aca0: e3170001 tst r7, #1 <== NOT EXECUTED 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; a000aca4: e0668008 rsb r8, r6, r8 <== NOT EXECUTED _HAssert( block_size >= heap->min_block_size ); _HAssert( new_block_size >= heap->min_block_size ); /* Statistics */ stats->free_size += block_size; a000aca8: e5843030 str r3, [r4, #48] ; 0x30 <== NOT EXECUTED if ( _Heap_Is_prev_used( block ) ) { a000acac: 1a000013 bne a000ad00 <_Heap_Block_allocate+0xec> <== NOT EXECUTED RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Prev_block( const Heap_Block *block ) { return (Heap_Block *) ((uintptr_t) block - block->prev_size); a000acb0: e5953000 ldr r3, [r5] <== 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; a000acb4: e1a02009 mov r2, r9 <== NOT EXECUTED a000acb8: e0635005 rsb r5, r3, r5 <== 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; a000acbc: e5953004 ldr r3, [r5, #4] <== NOT EXECUTED a000acc0: e3c33001 bic r3, r3, #1 <== NOT EXECUTED a000acc4: e0811003 add r1, r1, r3 <== NOT EXECUTED } block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED; a000acc8: e3813001 orr r3, r1, #1 <== NOT EXECUTED a000accc: e5853004 str r3, [r5, #4] <== NOT EXECUTED new_block->prev_size = block_size; a000acd0: e5861000 str r1, [r6] <== NOT EXECUTED new_block->size_and_flag = new_block_size; _Heap_Block_split( heap, new_block, free_list_anchor, alloc_size ); a000acd4: e1a00004 mov r0, r4 <== NOT EXECUTED a000acd8: e1a0300a mov r3, sl <== NOT EXECUTED } block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED; new_block->prev_size = block_size; new_block->size_and_flag = new_block_size; a000acdc: e5868004 str r8, [r6, #4] <== NOT EXECUTED _Heap_Block_split( heap, new_block, free_list_anchor, alloc_size ); a000ace0: e1a01006 mov r1, r6 <== NOT EXECUTED a000ace4: ebffff17 bl a000a948 <_Heap_Block_split> <== NOT EXECUTED alloc_size ); } /* Statistics */ if ( stats->min_free_size > stats->free_size ) { a000ace8: e5943030 ldr r3, [r4, #48] ; 0x30 <== NOT EXECUTED a000acec: e5942034 ldr r2, [r4, #52] ; 0x34 <== NOT EXECUTED } _Heap_Protection_block_initialize( heap, block ); return block; } a000acf0: e1a00006 mov r0, r6 <== NOT EXECUTED alloc_size ); } /* Statistics */ if ( stats->min_free_size > stats->free_size ) { a000acf4: e1520003 cmp r2, r3 <== NOT EXECUTED stats->min_free_size = stats->free_size; a000acf8: 85843034 strhi r3, [r4, #52] ; 0x34 <== NOT EXECUTED } _Heap_Protection_block_initialize( heap, block ); return block; } a000acfc: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED _Heap_Free_list_insert_after( free_list_anchor, block ); free_list_anchor = block; /* Statistics */ ++stats->free_blocks; a000ad00: e5940038 ldr r0, [r4, #56] ; 0x38 <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Heap_Free_list_insert_after( Heap_Block *block_before, Heap_Block *new_block ) { Heap_Block *next = block_before->next; a000ad04: e5993008 ldr r3, [r9, #8] <== NOT EXECUTED new_block->next = next; new_block->prev = block_before; a000ad08: e585900c str r9, [r5, #12] <== NOT EXECUTED a000ad0c: e2800001 add r0, r0, #1 <== NOT EXECUTED Heap_Block *new_block ) { Heap_Block *next = block_before->next; new_block->next = next; a000ad10: e5853008 str r3, [r5, #8] <== NOT EXECUTED new_block->prev = block_before; block_before->next = new_block; next->prev = new_block; a000ad14: e583500c str r5, [r3, #12] <== NOT EXECUTED { Heap_Block *next = block_before->next; new_block->next = next; new_block->prev = block_before; block_before->next = new_block; a000ad18: e5895008 str r5, [r9, #8] <== NOT EXECUTED a000ad1c: e1a02005 mov r2, r5 <== NOT EXECUTED a000ad20: e5840038 str r0, [r4, #56] ; 0x38 <== NOT EXECUTED a000ad24: eaffffe7 b a000acc8 <_Heap_Block_allocate+0xb4> <== NOT EXECUTED Heap_Block *block, Heap_Block *free_list_anchor, uintptr_t alloc_size ) { _Heap_Block_split( heap, block, free_list_anchor, alloc_size ); a000ad28: e1a00004 mov r0, r4 a000ad2c: e1a02009 mov r2, r9 a000ad30: e083300a add r3, r3, sl a000ad34: e1a01005 mov r1, r5 a000ad38: ebffff02 bl a000a948 <_Heap_Block_split> alloc_size ); } /* Statistics */ if ( stats->min_free_size > stats->free_size ) { a000ad3c: e5943030 ldr r3, [r4, #48] ; 0x30 a000ad40: e5942034 ldr r2, [r4, #52] ; 0x34 Heap_Block *block, Heap_Block *free_list_anchor, uintptr_t alloc_size ) { _Heap_Block_split( heap, block, free_list_anchor, alloc_size ); a000ad44: e1a06005 mov r6, r5 } _Heap_Protection_block_initialize( heap, block ); return block; } a000ad48: e1a00006 mov r0, r6 alloc_size ); } /* Statistics */ if ( stats->min_free_size > stats->free_size ) { a000ad4c: e1520003 cmp r2, r3 stats->min_free_size = stats->free_size; a000ad50: 85843034 strhi r3, [r4, #52] ; 0x34 } _Heap_Protection_block_initialize( heap, block ); return block; } a000ad54: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} =============================================================================== a000a948 <_Heap_Block_split>: Heap_Control *heap, Heap_Block *block, Heap_Block *free_list_anchor, uintptr_t alloc_size ) { a000a948: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, 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; a000a94c: e5906014 ldr r6, [r0, #20] uintptr_t alloc_size ) { Heap_Statistics *const stats = &heap->stats; uintptr_t const page_size = heap->page_size; a000a950: e5907010 ldr r7, [r0, #16] Heap_Control *heap, Heap_Block *block, Heap_Block *free_list_anchor, uintptr_t alloc_size ) { a000a954: 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; a000a958: e2468008 sub r8, r6, #8 return heap->stats.size; } RTEMS_INLINE_ROUTINE uintptr_t _Heap_Max( uintptr_t a, uintptr_t b ) { return a > b ? a : b; a000a95c: e1530008 cmp r3, r8 a000a960: 21a08003 movcs r8, r3 uintptr_t const block_size = _Heap_Block_size( block ); uintptr_t const used_size = a000a964: e2888008 add r8, r8, #8 RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_up( uintptr_t value, uintptr_t alignment ) { uintptr_t remainder = value % alignment; a000a968: e1a01007 mov r1, r7 Heap_Control *heap, Heap_Block *block, Heap_Block *free_list_anchor, uintptr_t alloc_size ) { a000a96c: e1a04000 mov r4, r0 a000a970: e1a00008 mov r0, r8 a000a974: e1a09002 mov r9, r2 a000a978: eb0027e1 bl a0014904 <__umodsi3> } _Heap_Protection_block_initialize( heap, block ); return block; } a000a97c: e595a004 ldr sl, [r5, #4] if ( remainder != 0 ) { a000a980: e3500000 cmp r0, #0 return value - remainder + alignment; a000a984: 10887007 addne r7, r8, r7 - 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; a000a988: e3ca2001 bic r2, sl, #1 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; a000a98c: e2823004 add r3, r2, #4 uintptr_t remainder = value % alignment; if ( remainder != 0 ) { return value - remainder + alignment; } else { return value; a000a990: 01a07008 moveq r7, r8 uintptr_t const free_size_limit = min_block_size + HEAP_ALLOC_BONUS; a000a994: e2866004 add r6, r6, #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; a000a998: e0688003 rsb r8, r8, r3 ) { uintptr_t remainder = value % alignment; if ( remainder != 0 ) { return value - remainder + alignment; a000a99c: 10607007 rsbne r7, r0, 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 ) { a000a9a0: e1580006 cmp r8, r6 RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); a000a9a4: e0853002 add r3, r5, r2 a000a9a8: 3a00001c bcc a000aa20 <_Heap_Block_split+0xd8> 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; a000a9ac: e20aa001 and sl, sl, #1 block->size_and_flag = size | flag; a000a9b0: e187a00a orr sl, r7, sl a000a9b4: e585a004 str sl, [r5, #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; a000a9b8: e5931004 ldr r1, [r3, #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; a000a9bc: e5940030 ldr r0, [r4, #48] ; 0x30 _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; a000a9c0: e0672002 rsb r2, r7, r2 a000a9c4: e3c11001 bic r1, r1, #1 } _Heap_Protection_block_initialize( heap, block ); return block; } a000a9c8: e083c001 add ip, r3, r1 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; a000a9cc: e59cc004 ldr ip, [ip, #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; a000a9d0: e0800002 add r0, r0, r2 RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); a000a9d4: e0875005 add r5, r7, r5 if ( _Heap_Is_used( next_block ) ) { a000a9d8: e31c0001 tst ip, #1 _HAssert( used_block_size + free_block_size == block_size ); _Heap_Block_set_size( block, used_block_size ); /* Statistics */ stats->free_size += free_block_size; a000a9dc: e5840030 str r0, [r4, #48] ; 0x30 if ( _Heap_Is_used( next_block ) ) { a000a9e0: 1a000012 bne a000aa30 <_Heap_Block_split+0xe8> } _Heap_Protection_block_initialize( heap, block ); return block; } a000a9e4: e5930008 ldr r0, [r3, #8] <== NOT EXECUTED a000a9e8: 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; a000a9ec: e0822001 add r2, r2, r1 <== NOT EXECUTED ) { Heap_Block *next = old_block->next; Heap_Block *prev = old_block->prev; new_block->next = next; a000a9f0: e5850008 str r0, [r5, #8] <== NOT EXECUTED new_block->prev = prev; a000a9f4: e585300c str r3, [r5, #12] <== NOT EXECUTED next->prev = new_block; prev->next = new_block; a000a9f8: e5835008 str r5, [r3, #8] <== NOT EXECUTED Heap_Block *prev = old_block->prev; new_block->next = next; new_block->prev = prev; next->prev = new_block; a000a9fc: e580500c str r5, [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); a000aa00: e0823005 add r3, r2, r5 <== NOT EXECUTED next_block = _Heap_Block_at( free_block, free_block_size ); } free_block->size_and_flag = free_block_size | HEAP_PREV_BLOCK_USED; a000aa04: e3821001 orr r1, r2, #1 a000aa08: e5851004 str r1, [r5, #4] next_block->prev_size = free_block_size; next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; a000aa0c: e5931004 ldr r1, [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; a000aa10: e5832000 str r2, [r3] next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; a000aa14: e3c12001 bic r2, r1, #1 a000aa18: e5832004 str r2, [r3, #4] a000aa1c: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} _Heap_Protection_block_initialize( heap, free_block ); } else { next_block->size_and_flag |= HEAP_PREV_BLOCK_USED; a000aa20: e5932004 ldr r2, [r3, #4] <== NOT EXECUTED a000aa24: e3822001 orr r2, r2, #1 <== NOT EXECUTED a000aa28: e5832004 str r2, [r3, #4] <== NOT EXECUTED a000aa2c: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED if ( _Heap_Is_used( next_block ) ) { _Heap_Free_list_insert_after( free_list_anchor, free_block ); /* Statistics */ ++stats->free_blocks; a000aa30: e5940038 ldr r0, [r4, #56] ; 0x38 RTEMS_INLINE_ROUTINE void _Heap_Free_list_insert_after( Heap_Block *block_before, Heap_Block *new_block ) { Heap_Block *next = block_before->next; a000aa34: e5991008 ldr r1, [r9, #8] new_block->next = next; new_block->prev = block_before; a000aa38: e585900c str r9, [r5, #12] a000aa3c: e2800001 add r0, r0, #1 Heap_Block *new_block ) { Heap_Block *next = block_before->next; new_block->next = next; a000aa40: e5851008 str r1, [r5, #8] new_block->prev = block_before; block_before->next = new_block; next->prev = new_block; a000aa44: e581500c str r5, [r1, #12] { Heap_Block *next = block_before->next; new_block->next = next; new_block->prev = block_before; block_before->next = new_block; a000aa48: e5895008 str r5, [r9, #8] a000aa4c: e5840038 str r0, [r4, #56] ; 0x38 a000aa50: eaffffeb b a000aa04 <_Heap_Block_split+0xbc> =============================================================================== a000f858 <_Heap_Extend>: Heap_Control *heap, void *extend_area_begin_ptr, uintptr_t extend_area_size, uintptr_t *extended_size_ptr ) { a000f858: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED a000f85c: e1a05000 mov r5, r0 <== NOT EXECUTED uintptr_t const free_size = stats->free_size; uintptr_t extend_first_block_size = 0; uintptr_t extended_size = 0; bool extend_area_ok = false; if ( extend_area_end < extend_area_begin ) { a000f860: e0916002 adds r6, r1, r2 <== NOT EXECUTED Heap_Control *heap, void *extend_area_begin_ptr, uintptr_t extend_area_size, uintptr_t *extended_size_ptr ) { a000f864: e1a04001 mov r4, r1 <== NOT EXECUTED Heap_Statistics *const stats = &heap->stats; Heap_Block *const first_block = heap->first_block; a000f868: e5908020 ldr r8, [r0, #32] <== NOT EXECUTED 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; a000f86c: e5951030 ldr r1, [r5, #48] ; 0x30 <== NOT EXECUTED Heap_Block *merge_above_block = NULL; Heap_Block *link_below_block = NULL; Heap_Block *link_above_block = NULL; Heap_Block *extend_first_block = NULL; Heap_Block *extend_last_block = NULL; uintptr_t const page_size = heap->page_size; a000f870: e5900010 ldr r0, [r0, #16] <== NOT EXECUTED Heap_Control *heap, void *extend_area_begin_ptr, uintptr_t extend_area_size, uintptr_t *extended_size_ptr ) { a000f874: e24dd024 sub sp, sp, #36 ; 0x24 <== NOT EXECUTED Heap_Block *start_block = first_block; Heap_Block *merge_below_block = NULL; Heap_Block *merge_above_block = NULL; Heap_Block *link_below_block = NULL; Heap_Block *link_above_block = NULL; Heap_Block *extend_first_block = NULL; a000f878: e3a07000 mov r7, #0 <== NOT EXECUTED Heap_Control *heap, void *extend_area_begin_ptr, uintptr_t extend_area_size, uintptr_t *extended_size_ptr ) { a000f87c: e58d3010 str r3, [sp, #16] <== NOT EXECUTED Heap_Block *merge_above_block = NULL; Heap_Block *link_below_block = NULL; Heap_Block *link_above_block = NULL; Heap_Block *extend_first_block = NULL; Heap_Block *extend_last_block = NULL; uintptr_t const page_size = heap->page_size; a000f880: e58d0008 str r0, [sp, #8] <== NOT EXECUTED Heap_Block *start_block = first_block; Heap_Block *merge_below_block = NULL; Heap_Block *merge_above_block = NULL; Heap_Block *link_below_block = NULL; Heap_Block *link_above_block = NULL; Heap_Block *extend_first_block = NULL; a000f884: e58d7020 str r7, [sp, #32] <== NOT EXECUTED Heap_Block *extend_last_block = NULL; a000f888: e58d701c str r7, [sp, #28] <== NOT EXECUTED uintptr_t const page_size = heap->page_size; uintptr_t const min_block_size = heap->min_block_size; a000f88c: e5953014 ldr r3, [r5, #20] <== NOT EXECUTED uintptr_t const extend_area_begin = (uintptr_t) extend_area_begin_ptr; uintptr_t const extend_area_end = extend_area_begin + extend_area_size; uintptr_t const free_size = stats->free_size; a000f890: e58d1018 str r1, [sp, #24] <== NOT EXECUTED 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 false; a000f894: 21a00007 movcs r0, r7 <== NOT EXECUTED uintptr_t const free_size = stats->free_size; uintptr_t extend_first_block_size = 0; uintptr_t extended_size = 0; bool extend_area_ok = false; if ( extend_area_end < extend_area_begin ) { a000f898: 3a000001 bcc a000f8a4 <_Heap_Extend+0x4c> <== NOT EXECUTED if ( extended_size_ptr != NULL ) *extended_size_ptr = extended_size; return true; } a000f89c: e28dd024 add sp, sp, #36 ; 0x24 <== NOT EXECUTED a000f8a0: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED if ( extend_area_end < extend_area_begin ) { return false; } extend_area_ok = _Heap_Get_first_and_last_block( a000f8a4: e28dc020 add ip, sp, #32 <== NOT EXECUTED a000f8a8: e1a01002 mov r1, r2 <== NOT EXECUTED a000f8ac: e58dc000 str ip, [sp] <== NOT EXECUTED a000f8b0: e1a00004 mov r0, r4 <== NOT EXECUTED a000f8b4: e28dc01c add ip, sp, #28 <== NOT EXECUTED a000f8b8: e59d2008 ldr r2, [sp, #8] <== NOT EXECUTED a000f8bc: e58dc004 str ip, [sp, #4] <== NOT EXECUTED a000f8c0: ebffed3c bl a000adb8 <_Heap_Get_first_and_last_block> <== NOT EXECUTED page_size, min_block_size, &extend_first_block, &extend_last_block ); if (!extend_area_ok ) { a000f8c4: e3500000 cmp r0, #0 <== NOT EXECUTED a000f8c8: 0afffff3 beq a000f89c <_Heap_Extend+0x44> <== NOT EXECUTED a000f8cc: e1a09008 mov r9, r8 <== NOT EXECUTED a000f8d0: e1a0b007 mov fp, r7 <== NOT EXECUTED a000f8d4: e58d700c str r7, [sp, #12] <== NOT EXECUTED a000f8d8: e58d7014 str r7, [sp, #20] <== NOT EXECUTED return false; } do { uintptr_t const sub_area_begin = (start_block != first_block) ? (uintptr_t) start_block : heap->area_begin; a000f8dc: e1590008 cmp r9, r8 <== NOT EXECUTED a000f8e0: 05953018 ldreq r3, [r5, #24] <== NOT EXECUTED uintptr_t const sub_area_end = start_block->prev_size; a000f8e4: e599a000 ldr sl, [r9] <== NOT EXECUTED return false; } do { uintptr_t const sub_area_begin = (start_block != first_block) ? (uintptr_t) start_block : heap->area_begin; a000f8e8: 11a03009 movne r3, r9 <== NOT EXECUTED uintptr_t const sub_area_end = start_block->prev_size; Heap_Block *const end_block = _Heap_Block_of_alloc_area( sub_area_end, page_size ); if ( a000f8ec: e1530006 cmp r3, r6 <== NOT EXECUTED a000f8f0: 3154000a cmpcc r4, sl <== NOT EXECUTED a000f8f4: 3a00006c bcc a000faac <_Heap_Extend+0x254> <== NOT EXECUTED sub_area_end > extend_area_begin && extend_area_end > sub_area_begin ) { return false; } if ( extend_area_end == sub_area_begin ) { a000f8f8: e1530006 cmp r3, r6 <== NOT EXECUTED a000f8fc: 058d9014 streq r9, [sp, #20] <== NOT EXECUTED a000f900: 0a000001 beq a000f90c <_Heap_Extend+0xb4> <== NOT EXECUTED merge_below_block = start_block; } else if ( extend_area_end < sub_area_end ) { a000f904: e156000a cmp r6, sl <== NOT EXECUTED a000f908: 31a0b009 movcc fp, r9 <== NOT EXECUTED RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment); a000f90c: e1a0000a mov r0, sl <== NOT EXECUTED a000f910: e59d1008 ldr r1, [sp, #8] <== NOT EXECUTED a000f914: eb00154f bl a0014e58 <__umodsi3> <== NOT EXECUTED a000f918: e24a3008 sub r3, sl, #8 <== NOT EXECUTED link_below_block = start_block; } if ( sub_area_end == extend_area_begin ) { a000f91c: e15a0004 cmp sl, r4 <== NOT EXECUTED uintptr_t alloc_begin, uintptr_t page_size ) { return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size ) - HEAP_BLOCK_HEADER_SIZE); a000f920: e0603003 rsb r3, r0, r3 <== NOT EXECUTED start_block->prev_size = extend_area_end; a000f924: 05896000 streq r6, [r9] <== NOT EXECUTED RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_of_alloc_area( uintptr_t alloc_begin, uintptr_t page_size ) { return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size ) a000f928: 058d300c streq r3, [sp, #12] <== NOT EXECUTED 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 ) { a000f92c: 0a000001 beq a000f938 <_Heap_Extend+0xe0> <== NOT EXECUTED a000f930: e154000a cmp r4, sl <== NOT EXECUTED a000f934: 81a07003 movhi r7, r3 <== 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; a000f938: e5939004 ldr r9, [r3, #4] <== NOT EXECUTED a000f93c: e3c99001 bic r9, r9, #1 <== NOT EXECUTED RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); a000f940: e0839009 add r9, r3, r9 <== NOT EXECUTED } else if ( sub_area_end < extend_area_begin ) { link_above_block = end_block; } start_block = _Heap_Block_at( end_block, _Heap_Block_size( end_block ) ); } while ( start_block != first_block ); a000f944: e1580009 cmp r8, r9 <== NOT EXECUTED a000f948: 1affffe3 bne a000f8dc <_Heap_Extend+0x84> <== NOT EXECUTED if ( extend_area_begin < heap->area_begin ) { a000f94c: e5953018 ldr r3, [r5, #24] <== NOT EXECUTED a000f950: e1540003 cmp r4, r3 <== NOT EXECUTED heap->area_begin = extend_area_begin; a000f954: 35854018 strcc r4, [r5, #24] <== NOT EXECUTED } start_block = _Heap_Block_at( end_block, _Heap_Block_size( end_block ) ); } while ( start_block != first_block ); if ( extend_area_begin < heap->area_begin ) { a000f958: 3a000002 bcc a000f968 <_Heap_Extend+0x110> <== NOT EXECUTED heap->area_begin = extend_area_begin; } else if ( heap->area_end < extend_area_end ) { a000f95c: e595301c ldr r3, [r5, #28] <== NOT EXECUTED a000f960: e1560003 cmp r6, r3 <== NOT EXECUTED heap->area_end = extend_area_end; a000f964: 8585601c strhi r6, [r5, #28] <== NOT EXECUTED } extend_first_block_size = (uintptr_t) extend_last_block - (uintptr_t) extend_first_block; a000f968: e59d3020 ldr r3, [sp, #32] <== NOT EXECUTED a000f96c: e59d201c ldr r2, [sp, #28] <== NOT EXECUTED 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 ) { a000f970: e595c020 ldr ip, [r5, #32] <== NOT EXECUTED } extend_first_block_size = (uintptr_t) extend_last_block - (uintptr_t) extend_first_block; extend_first_block->prev_size = extend_area_end; a000f974: e5836000 str r6, [r3] <== NOT EXECUTED heap->area_begin = extend_area_begin; } else if ( heap->area_end < extend_area_end ) { heap->area_end = extend_area_end; } extend_first_block_size = a000f978: e0631002 rsb r1, r3, r2 <== NOT EXECUTED (uintptr_t) extend_last_block - (uintptr_t) extend_first_block; extend_first_block->prev_size = extend_area_end; extend_first_block->size_and_flag = extend_first_block_size | HEAP_PREV_BLOCK_USED; a000f97c: e3810001 orr r0, r1, #1 <== NOT EXECUTED _Heap_Protection_block_initialize( heap, extend_first_block ); extend_last_block->prev_size = extend_first_block_size; a000f980: e5821000 str r1, [r2] <== NOT EXECUTED 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 ) { a000f984: e15c0003 cmp ip, r3 <== NOT EXECUTED extend_first_block->size_and_flag = 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; a000f988: e3a01000 mov r1, #0 <== NOT EXECUTED extend_first_block_size = (uintptr_t) extend_last_block - (uintptr_t) extend_first_block; extend_first_block->prev_size = extend_area_end; extend_first_block->size_and_flag = a000f98c: e5830004 str r0, [r3, #4] <== NOT EXECUTED 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; a000f990: e5821004 str r1, [r2, #4] <== NOT EXECUTED _Heap_Protection_block_initialize( heap, extend_last_block ); if ( (uintptr_t) extend_first_block < (uintptr_t) heap->first_block ) { heap->first_block = extend_first_block; a000f994: 85853020 strhi r3, [r5, #32] <== NOT EXECUTED 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 ) { a000f998: 8a000002 bhi a000f9a8 <_Heap_Extend+0x150> <== NOT EXECUTED heap->first_block = extend_first_block; } else if ( (uintptr_t) extend_last_block > (uintptr_t) heap->last_block ) { a000f99c: e5953024 ldr r3, [r5, #36] ; 0x24 <== NOT EXECUTED a000f9a0: e1530002 cmp r3, r2 <== NOT EXECUTED heap->last_block = extend_last_block; a000f9a4: 35852024 strcc r2, [r5, #36] ; 0x24 <== NOT EXECUTED } if ( merge_below_block != NULL ) { a000f9a8: e59d3014 ldr r3, [sp, #20] <== NOT EXECUTED a000f9ac: e3530000 cmp r3, #0 <== NOT EXECUTED a000f9b0: 0a000050 beq a000faf8 <_Heap_Extend+0x2a0> <== NOT EXECUTED Heap_Control *heap, uintptr_t extend_area_begin, Heap_Block *first_block ) { uintptr_t const page_size = heap->page_size; a000f9b4: e5958010 ldr r8, [r5, #16] <== NOT EXECUTED uintptr_t const new_first_block_alloc_begin = _Heap_Align_up( extend_area_begin + HEAP_BLOCK_HEADER_SIZE, page_size ); a000f9b8: e2844008 add r4, r4, #8 <== NOT EXECUTED RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_up( uintptr_t value, uintptr_t alignment ) { uintptr_t remainder = value % alignment; a000f9bc: e1a00004 mov r0, r4 <== NOT EXECUTED a000f9c0: e1a01008 mov r1, r8 <== NOT EXECUTED a000f9c4: eb001523 bl a0014e58 <__umodsi3> <== 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; a000f9c8: e59dc014 ldr ip, [sp, #20] <== NOT EXECUTED if ( remainder != 0 ) { a000f9cc: e3500000 cmp r0, #0 <== NOT EXECUTED return value - remainder + alignment; a000f9d0: 10844008 addne r4, r4, r8 <== NOT EXECUTED a000f9d4: 10604004 rsbne r4, r0, r4 <== 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 = a000f9d8: e2441008 sub r1, r4, #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; a000f9dc: e59c2000 ldr r2, [ip] <== 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 = a000f9e0: e061300c rsb r3, r1, ip <== 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; a000f9e4: e3833001 orr r3, r3, #1 <== 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; a000f9e8: e5042008 str r2, [r4, #-8] <== NOT EXECUTED new_first_block->size_and_flag = new_first_block_size | HEAP_PREV_BLOCK_USED; a000f9ec: e5813004 str r3, [r1, #4] <== NOT EXECUTED _Heap_Free_block( heap, new_first_block ); a000f9f0: e1a00005 mov r0, r5 <== NOT EXECUTED a000f9f4: ebffff8f bl a000f838 <_Heap_Free_block> <== NOT EXECUTED link_below_block, extend_last_block ); } if ( merge_above_block != NULL ) { a000f9f8: e59d000c ldr r0, [sp, #12] <== NOT EXECUTED a000f9fc: e3500000 cmp r0, #0 <== NOT EXECUTED a000fa00: 0a00002b beq a000fab4 <_Heap_Extend+0x25c> <== NOT EXECUTED ) { uintptr_t const page_size = heap->page_size; uintptr_t const last_block_begin = (uintptr_t) last_block; uintptr_t const last_block_new_size = _Heap_Align_down( extend_area_end - last_block_begin - HEAP_BLOCK_HEADER_SIZE, a000fa04: 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( a000fa08: e0606006 rsb r6, r0, r6 <== NOT EXECUTED RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment); a000fa0c: e5951010 ldr r1, [r5, #16] <== NOT EXECUTED a000fa10: e1a00006 mov r0, r6 <== NOT EXECUTED a000fa14: eb00150f bl a0014e58 <__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) a000fa18: e59d100c ldr r1, [sp, #12] <== NOT EXECUTED a000fa1c: e0606006 rsb r6, r0, r6 <== NOT EXECUTED | HEAP_PREV_BLOCK_USED; _Heap_Block_set_size( last_block, last_block_new_size ); _Heap_Free_block( heap, last_block ); a000fa20: e1a00005 mov r0, r5 <== 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) a000fa24: e5913004 ldr r3, [r1, #4] <== 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 = a000fa28: e0862001 add r2, r6, r1 <== NOT EXECUTED (last_block->size_and_flag - last_block_new_size) a000fa2c: e0663003 rsb r3, r6, r3 <== NOT EXECUTED | HEAP_PREV_BLOCK_USED; a000fa30: e3833001 orr r3, r3, #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 = a000fa34: e5823004 str r3, [r2, #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; a000fa38: e5913004 ldr r3, [r1, #4] <== NOT EXECUTED a000fa3c: e2033001 and r3, r3, #1 <== NOT EXECUTED block->size_and_flag = size | flag; a000fa40: e1866003 orr r6, r6, r3 <== NOT EXECUTED a000fa44: e5816004 str r6, [r1, #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 ); a000fa48: ebffff7a bl a000f838 <_Heap_Free_block> <== NOT EXECUTED extend_first_block, extend_last_block ); } if ( merge_below_block == NULL && merge_above_block == NULL ) { a000fa4c: e59d200c ldr r2, [sp, #12] <== NOT EXECUTED a000fa50: e59d3014 ldr r3, [sp, #20] <== NOT EXECUTED a000fa54: e3520000 cmp r2, #0 <== NOT EXECUTED a000fa58: 03530000 cmpeq r3, #0 <== NOT EXECUTED a000fa5c: 0a000021 beq a000fae8 <_Heap_Extend+0x290> <== NOT EXECUTED if ( extended_size_ptr != NULL ) *extended_size_ptr = extended_size; return true; } a000fa60: e5953024 ldr r3, [r5, #36] ; 0x24 <== NOT EXECUTED * This feature will be used to terminate the scattered heap area list. See * also _Heap_Extend(). */ RTEMS_INLINE_ROUTINE void _Heap_Set_last_block_size( Heap_Control *heap ) { _Heap_Block_set_size( a000fa64: e595c020 ldr ip, [r5, #32] <== NOT EXECUTED _Heap_Free_block( heap, extend_first_block ); } _Heap_Set_last_block_size( heap ); extended_size = stats->free_size - free_size; a000fa68: e5952030 ldr r2, [r5, #48] ; 0x30 <== 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; a000fa6c: e5930004 ldr r0, [r3, #4] <== NOT EXECUTED * This feature will be used to terminate the scattered heap area list. See * also _Heap_Extend(). */ RTEMS_INLINE_ROUTINE void _Heap_Set_last_block_size( Heap_Control *heap ) { _Heap_Block_set_size( a000fa70: e063c00c rsb ip, r3, ip <== NOT EXECUTED a000fa74: e59d4018 ldr r4, [sp, #24] <== 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; a000fa78: e2000001 and r0, r0, #1 <== NOT EXECUTED /* Statistics */ stats->size += extended_size; a000fa7c: e595102c ldr r1, [r5, #44] ; 0x2c <== NOT EXECUTED block->size_and_flag = size | flag; a000fa80: e18c0000 orr r0, ip, r0 <== NOT EXECUTED if ( extended_size_ptr != NULL ) a000fa84: e59dc010 ldr ip, [sp, #16] <== NOT EXECUTED _Heap_Free_block( heap, extend_first_block ); } _Heap_Set_last_block_size( heap ); extended_size = stats->free_size - free_size; a000fa88: e0642002 rsb r2, r4, r2 <== NOT EXECUTED /* Statistics */ stats->size += extended_size; a000fa8c: e0811002 add r1, r1, r2 <== NOT EXECUTED if ( extended_size_ptr != NULL ) a000fa90: e35c0000 cmp ip, #0 <== NOT EXECUTED a000fa94: e5830004 str r0, [r3, #4] <== NOT EXECUTED _Heap_Set_last_block_size( heap ); extended_size = stats->free_size - free_size; /* Statistics */ stats->size += extended_size; a000fa98: e585102c str r1, [r5, #44] ; 0x2c <== NOT EXECUTED if ( extended_size_ptr != NULL ) *extended_size_ptr = extended_size; return true; a000fa9c: 13a00001 movne r0, #1 <== NOT EXECUTED /* Statistics */ stats->size += extended_size; if ( extended_size_ptr != NULL ) *extended_size_ptr = extended_size; a000faa0: 158c2000 strne r2, [ip] <== NOT EXECUTED return true; a000faa4: 03a00001 moveq r0, #1 <== NOT EXECUTED a000faa8: eaffff7b b a000f89c <_Heap_Extend+0x44> <== NOT EXECUTED _Heap_Block_of_alloc_area( sub_area_end, page_size ); if ( sub_area_end > extend_area_begin && extend_area_end > sub_area_begin ) { return false; a000faac: e3a00000 mov r0, #0 <== NOT EXECUTED a000fab0: eaffff79 b a000f89c <_Heap_Extend+0x44> <== NOT EXECUTED ); } if ( merge_above_block != NULL ) { _Heap_Merge_above( heap, merge_above_block, extend_area_end ); } else if ( link_above_block != NULL ) { a000fab4: e3570000 cmp r7, #0 <== NOT EXECUTED a000fab8: 0affffe3 beq a000fa4c <_Heap_Extend+0x1f4> <== 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; a000fabc: e5971004 ldr r1, [r7, #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 ); a000fac0: e59d2020 ldr r2, [sp, #32] <== 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( a000fac4: e59d301c ldr r3, [sp, #28] <== NOT EXECUTED a000fac8: e2011001 and r1, r1, #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 ); a000facc: e0672002 rsb r2, r7, r2 <== NOT EXECUTED block->size_and_flag = size | flag; a000fad0: e1822001 orr r2, r2, r1 <== NOT EXECUTED a000fad4: e5872004 str r2, [r7, #4] <== NOT EXECUTED last_block->size_and_flag |= HEAP_PREV_BLOCK_USED; a000fad8: e5932004 ldr r2, [r3, #4] <== NOT EXECUTED a000fadc: e3822001 orr r2, r2, #1 <== NOT EXECUTED a000fae0: e5832004 str r2, [r3, #4] <== NOT EXECUTED a000fae4: eaffffd8 b a000fa4c <_Heap_Extend+0x1f4> <== NOT EXECUTED extend_last_block ); } if ( merge_below_block == NULL && merge_above_block == NULL ) { _Heap_Free_block( heap, extend_first_block ); a000fae8: e1a00005 mov r0, r5 <== NOT EXECUTED a000faec: e59d1020 ldr r1, [sp, #32] <== NOT EXECUTED a000faf0: ebffff50 bl a000f838 <_Heap_Free_block> <== NOT EXECUTED a000faf4: eaffffd9 b a000fa60 <_Heap_Extend+0x208> <== 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 ) { a000faf8: e35b0000 cmp fp, #0 <== NOT EXECUTED { uintptr_t const last_block_begin = (uintptr_t) last_block; uintptr_t const link_begin = (uintptr_t) link; last_block->size_and_flag = (link_begin - last_block_begin) | HEAP_PREV_BLOCK_USED; a000fafc: 1062b00b rsbne fp, r2, fp <== NOT EXECUTED a000fb00: 138bb001 orrne fp, fp, #1 <== NOT EXECUTED ) { uintptr_t const last_block_begin = (uintptr_t) last_block; uintptr_t const link_begin = (uintptr_t) link; last_block->size_and_flag = a000fb04: 1582b004 strne fp, [r2, #4] <== NOT EXECUTED a000fb08: eaffffba b a000f9f8 <_Heap_Extend+0x1a0> <== NOT EXECUTED =============================================================================== a000f50c <_Heap_Free>: /* * If NULL return true so a free on NULL is considered a valid release. This * is a special case that could be handled by the in heap check how-ever that * would result in false being returned which is wrong. */ if ( alloc_begin_ptr == NULL ) { a000f50c: e2513000 subs r3, r1, #0 return do_free; } #endif bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr ) { a000f510: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} a000f514: e1a04000 mov r4, r0 /* * If NULL return true so a free on NULL is considered a valid release. This * is a special case that could be handled by the in heap check how-ever that * would result in false being returned which is wrong. */ if ( alloc_begin_ptr == NULL ) { a000f518: 0a000052 beq a000f668 <_Heap_Free+0x15c> RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment); a000f51c: e1a00003 mov r0, r3 <== NOT EXECUTED a000f520: e5941010 ldr r1, [r4, #16] <== NOT EXECUTED a000f524: e2435008 sub r5, r3, #8 <== NOT EXECUTED a000f528: eb0014f5 bl a0014904 <__umodsi3> <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap( const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block a000f52c: e5942020 ldr r2, [r4, #32] <== NOT EXECUTED uintptr_t alloc_begin, uintptr_t page_size ) { return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size ) - HEAP_BLOCK_HEADER_SIZE); a000f530: e0605005 rsb r5, r0, r5 <== NOT EXECUTED const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block && (uintptr_t) block <= (uintptr_t) heap->last_block; a000f534: e1550002 cmp r5, r2 <== NOT EXECUTED a000f538: 3a000030 bcc a000f600 <_Heap_Free+0xf4> <== NOT EXECUTED a000f53c: e5941024 ldr r1, [r4, #36] ; 0x24 <== NOT EXECUTED a000f540: e1550001 cmp r5, r1 <== NOT EXECUTED a000f544: 8a00002d bhi a000f600 <_Heap_Free+0xf4> <== NOT EXECUTED --stats->used_blocks; ++stats->frees; stats->free_size += block_size; return( true ); } a000f548: e595c004 ldr ip, [r5, #4] <== 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; a000f54c: e3cc6001 bic r6, ip, #1 <== NOT EXECUTED RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); a000f550: e0853006 add r3, r5, r6 <== NOT EXECUTED const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block && (uintptr_t) block <= (uintptr_t) heap->last_block; a000f554: e1520003 cmp r2, r3 <== NOT EXECUTED a000f558: 8a000028 bhi a000f600 <_Heap_Free+0xf4> <== NOT EXECUTED a000f55c: e1510003 cmp r1, r3 <== NOT EXECUTED block_size = _Heap_Block_size( block ); next_block = _Heap_Block_at( block, block_size ); if ( !_Heap_Is_block_in_heap( heap, next_block ) ) { return false; a000f560: 33a00000 movcc r0, #0 <== NOT EXECUTED a000f564: 3a000027 bcc a000f608 <_Heap_Free+0xfc> <== NOT EXECUTED --stats->used_blocks; ++stats->frees; stats->free_size += block_size; return( true ); } a000f568: e5937004 ldr r7, [r3, #4] <== NOT EXECUTED return false; } _Heap_Protection_block_check( heap, next_block ); if ( !_Heap_Is_prev_used( next_block ) ) { a000f56c: e2170001 ands r0, r7, #1 <== NOT EXECUTED a000f570: 0a000024 beq a000f608 <_Heap_Free+0xfc> <== NOT EXECUTED return true; } next_block_size = _Heap_Block_size( next_block ); next_is_free = next_block != heap->last_block && !_Heap_Is_prev_used( _Heap_Block_at( next_block, next_block_size )); a000f574: e1510003 cmp r1, r3 <== 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; a000f578: e3c77001 bic r7, r7, #1 <== NOT EXECUTED a000f57c: 03a08000 moveq r8, #0 <== NOT EXECUTED a000f580: 0a000004 beq a000f598 <_Heap_Free+0x8c> <== NOT EXECUTED --stats->used_blocks; ++stats->frees; stats->free_size += block_size; return( true ); } a000f584: e0830007 add r0, r3, r7 <== 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; a000f588: e5900004 ldr r0, [r0, #4] <== NOT EXECUTED return do_free; } #endif bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr ) a000f58c: e3100001 tst r0, #1 <== NOT EXECUTED a000f590: 13a08000 movne r8, #0 <== NOT EXECUTED a000f594: 03a08001 moveq r8, #1 <== NOT EXECUTED next_block_size = _Heap_Block_size( next_block ); next_is_free = next_block != heap->last_block && !_Heap_Is_prev_used( _Heap_Block_at( next_block, next_block_size )); if ( !_Heap_Is_prev_used( block ) ) { a000f598: e21c0001 ands r0, ip, #1 <== NOT EXECUTED a000f59c: 1a00001a bne a000f60c <_Heap_Free+0x100> <== NOT EXECUTED uintptr_t const prev_size = block->prev_size; a000f5a0: e595c000 ldr ip, [r5] <== NOT EXECUTED RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); a000f5a4: e06ca005 rsb sl, ip, r5 <== NOT EXECUTED const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block && (uintptr_t) block <= (uintptr_t) heap->last_block; a000f5a8: e152000a cmp r2, sl <== NOT EXECUTED a000f5ac: 8a000015 bhi a000f608 <_Heap_Free+0xfc> <== NOT EXECUTED a000f5b0: e151000a cmp r1, sl <== NOT EXECUTED a000f5b4: 3a000013 bcc a000f608 <_Heap_Free+0xfc> <== 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; a000f5b8: e59a0004 ldr r0, [sl, #4] <== NOT EXECUTED return( false ); } /* As we always coalesce free blocks, the block that preceedes prev_block must have been used. */ if ( !_Heap_Is_prev_used ( prev_block) ) { a000f5bc: e2100001 ands r0, r0, #1 <== NOT EXECUTED a000f5c0: 0a000010 beq a000f608 <_Heap_Free+0xfc> <== NOT EXECUTED _HAssert( false ); return( false ); } if ( next_is_free ) { /* coalesce both */ a000f5c4: e3580000 cmp r8, #0 <== NOT EXECUTED a000f5c8: 0a00003a beq a000f6b8 <_Heap_Free+0x1ac> <== NOT EXECUTED uintptr_t const size = block_size + prev_size + next_block_size; _Heap_Free_list_remove( next_block ); stats->free_blocks -= 1; a000f5cc: e5940038 ldr r0, [r4, #56] ; 0x38 <== NOT EXECUTED --stats->used_blocks; ++stats->frees; stats->free_size += block_size; return( true ); } a000f5d0: e5932008 ldr r2, [r3, #8] <== NOT EXECUTED _HAssert( false ); return( false ); } if ( next_is_free ) { /* coalesce both */ uintptr_t const size = block_size + prev_size + next_block_size; a000f5d4: e0867007 add r7, r6, r7 <== NOT EXECUTED --stats->used_blocks; ++stats->frees; stats->free_size += block_size; return( true ); } a000f5d8: e593300c ldr r3, [r3, #12] <== NOT EXECUTED _HAssert( false ); return( false ); } if ( next_is_free ) { /* coalesce both */ uintptr_t const size = block_size + prev_size + next_block_size; a000f5dc: e087c00c add ip, r7, ip <== NOT EXECUTED _Heap_Free_list_remove( next_block ); stats->free_blocks -= 1; a000f5e0: e2400001 sub r0, r0, #1 <== NOT EXECUTED prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED; a000f5e4: e38c1001 orr r1, ip, #1 <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block ) { Heap_Block *next = block->next; Heap_Block *prev = block->prev; prev->next = next; a000f5e8: e5832008 str r2, [r3, #8] <== NOT EXECUTED next->prev = prev; a000f5ec: e582300c str r3, [r2, #12] <== NOT EXECUTED } if ( next_is_free ) { /* coalesce both */ uintptr_t const size = block_size + prev_size + next_block_size; _Heap_Free_list_remove( next_block ); stats->free_blocks -= 1; a000f5f0: e5840038 str r0, [r4, #56] ; 0x38 <== NOT EXECUTED prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED; a000f5f4: e58a1004 str r1, [sl, #4] <== NOT EXECUTED next_block = _Heap_Block_at( prev_block, size ); _HAssert(!_Heap_Is_prev_used( next_block)); next_block->prev_size = size; a000f5f8: e78ac00c str ip, [sl, ip] <== NOT EXECUTED a000f5fc: ea00000e b a000f63c <_Heap_Free+0x130> <== NOT EXECUTED block_size = _Heap_Block_size( block ); next_block = _Heap_Block_at( block, block_size ); if ( !_Heap_Is_block_in_heap( heap, next_block ) ) { return false; a000f600: e3a00000 mov r0, #0 <== NOT EXECUTED a000f604: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED --stats->used_blocks; ++stats->frees; stats->free_size += block_size; return( true ); } a000f608: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED uintptr_t const size = block_size + prev_size; prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED; next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; next_block->prev_size = size; } } else if ( next_is_free ) { /* coalesce next */ a000f60c: e3580000 cmp r8, #0 <== NOT EXECUTED a000f610: 0a000016 beq a000f670 <_Heap_Free+0x164> <== NOT EXECUTED --stats->used_blocks; ++stats->frees; stats->free_size += block_size; return( true ); } a000f614: e5932008 ldr r2, [r3, #8] <== NOT EXECUTED a000f618: e593300c ldr r3, [r3, #12] <== NOT EXECUTED prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED; next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; next_block->prev_size = size; } } else if ( next_is_free ) { /* coalesce next */ uintptr_t const size = block_size + next_block_size; a000f61c: e0877006 add r7, r7, r6 <== NOT EXECUTED _Heap_Free_list_replace( next_block, block ); block->size_and_flag = size | HEAP_PREV_BLOCK_USED; a000f620: e3871001 orr r1, r7, #1 <== NOT EXECUTED ) { Heap_Block *next = old_block->next; Heap_Block *prev = old_block->prev; new_block->next = next; a000f624: e5852008 str r2, [r5, #8] <== NOT EXECUTED new_block->prev = prev; a000f628: e585300c str r3, [r5, #12] <== NOT EXECUTED next->prev = new_block; prev->next = new_block; a000f62c: e5835008 str r5, [r3, #8] <== NOT EXECUTED Heap_Block *prev = old_block->prev; new_block->next = next; new_block->prev = prev; next->prev = new_block; a000f630: e582500c str r5, [r2, #12] <== NOT EXECUTED a000f634: e5851004 str r1, [r5, #4] <== NOT EXECUTED next_block = _Heap_Block_at( block, size ); next_block->prev_size = size; a000f638: e7857007 str r7, [r5, r7] <== NOT EXECUTED stats->max_free_blocks = stats->free_blocks; } } /* Statistics */ --stats->used_blocks; a000f63c: e5942040 ldr r2, [r4, #64] ; 0x40 <== NOT EXECUTED ++stats->frees; a000f640: e5943050 ldr r3, [r4, #80] ; 0x50 <== NOT EXECUTED stats->free_size += block_size; a000f644: e5941030 ldr r1, [r4, #48] ; 0x30 <== NOT EXECUTED stats->max_free_blocks = stats->free_blocks; } } /* Statistics */ --stats->used_blocks; a000f648: e2422001 sub r2, r2, #1 <== NOT EXECUTED ++stats->frees; a000f64c: e2833001 add r3, r3, #1 <== NOT EXECUTED stats->free_size += block_size; a000f650: e0816006 add r6, r1, r6 <== NOT EXECUTED stats->max_free_blocks = stats->free_blocks; } } /* Statistics */ --stats->used_blocks; a000f654: e5842040 str r2, [r4, #64] ; 0x40 <== NOT EXECUTED ++stats->frees; a000f658: e5843050 str r3, [r4, #80] ; 0x50 <== NOT EXECUTED stats->free_size += block_size; a000f65c: e5846030 str r6, [r4, #48] ; 0x30 <== NOT EXECUTED return( true ); a000f660: e3a00001 mov r0, #1 <== NOT EXECUTED a000f664: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED * If NULL return true so a free on NULL is considered a valid release. This * is a special case that could be handled by the in heap check how-ever that * would result in false being returned which is wrong. */ if ( alloc_begin_ptr == NULL ) { return true; a000f668: e3a00001 mov r0, #1 a000f66c: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} next_block->prev_size = size; } else { /* no coalesce */ /* Add 'block' to the head of the free blocks list as it tends to produce less fragmentation than adding to the tail. */ _Heap_Free_list_insert_after( _Heap_Free_list_head( heap), block ); block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED; a000f670: e3862001 orr r2, r6, #1 <== NOT EXECUTED a000f674: e5852004 str r2, [r5, #4] <== NOT EXECUTED next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; next_block->prev_size = block_size; /* Statistics */ ++stats->free_blocks; a000f678: e5942038 ldr r2, [r4, #56] ; 0x38 <== NOT EXECUTED if ( stats->max_free_blocks < stats->free_blocks ) { a000f67c: e594c03c ldr ip, [r4, #60] ; 0x3c <== NOT EXECUTED } else { /* no coalesce */ /* Add 'block' to the head of the free blocks list as it tends to produce less fragmentation than adding to the tail. */ _Heap_Free_list_insert_after( _Heap_Free_list_head( heap), block ); block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED; next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; a000f680: e5930004 ldr r0, [r3, #4] <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Heap_Free_list_insert_after( Heap_Block *block_before, Heap_Block *new_block ) { Heap_Block *next = block_before->next; a000f684: e5941008 ldr r1, [r4, #8] <== NOT EXECUTED next_block->prev_size = block_size; /* Statistics */ ++stats->free_blocks; a000f688: e2822001 add r2, r2, #1 <== NOT EXECUTED } else { /* no coalesce */ /* Add 'block' to the head of the free blocks list as it tends to produce less fragmentation than adding to the tail. */ _Heap_Free_list_insert_after( _Heap_Free_list_head( heap), block ); block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED; next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; a000f68c: e3c00001 bic r0, r0, #1 <== NOT EXECUTED next_block->prev_size = block_size; /* Statistics */ ++stats->free_blocks; if ( stats->max_free_blocks < stats->free_blocks ) { a000f690: e152000c cmp r2, ip <== NOT EXECUTED new_block->next = next; a000f694: e5851008 str r1, [r5, #8] <== NOT EXECUTED new_block->prev = block_before; a000f698: e585400c str r4, [r5, #12] <== NOT EXECUTED } else { /* no coalesce */ /* Add 'block' to the head of the free blocks list as it tends to produce less fragmentation than adding to the tail. */ _Heap_Free_list_insert_after( _Heap_Free_list_head( heap), block ); block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED; next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; a000f69c: e5830004 str r0, [r3, #4] <== NOT EXECUTED block_before->next = new_block; next->prev = new_block; a000f6a0: e581500c str r5, [r1, #12] <== NOT EXECUTED next_block->prev_size = block_size; a000f6a4: e7856006 str r6, [r5, r6] <== NOT EXECUTED { Heap_Block *next = block_before->next; new_block->next = next; new_block->prev = block_before; block_before->next = new_block; a000f6a8: e5845008 str r5, [r4, #8] <== NOT EXECUTED /* Statistics */ ++stats->free_blocks; a000f6ac: e5842038 str r2, [r4, #56] ; 0x38 <== NOT EXECUTED if ( stats->max_free_blocks < stats->free_blocks ) { stats->max_free_blocks = stats->free_blocks; a000f6b0: 8584203c strhi r2, [r4, #60] ; 0x3c <== NOT EXECUTED a000f6b4: eaffffe0 b a000f63c <_Heap_Free+0x130> <== NOT EXECUTED prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED; next_block = _Heap_Block_at( prev_block, size ); _HAssert(!_Heap_Is_prev_used( next_block)); next_block->prev_size = size; } else { /* coalesce prev */ uintptr_t const size = block_size + prev_size; a000f6b8: e086c00c add ip, r6, ip <== NOT EXECUTED prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED; a000f6bc: e38c2001 orr r2, ip, #1 <== NOT EXECUTED a000f6c0: e58a2004 str r2, [sl, #4] <== NOT EXECUTED next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; a000f6c4: e5932004 ldr r2, [r3, #4] <== NOT EXECUTED next_block->prev_size = size; a000f6c8: e785c006 str ip, [r5, r6] <== NOT EXECUTED _HAssert(!_Heap_Is_prev_used( next_block)); next_block->prev_size = size; } else { /* coalesce prev */ uintptr_t const size = block_size + prev_size; prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED; next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; a000f6cc: e3c22001 bic r2, r2, #1 <== NOT EXECUTED a000f6d0: e5832004 str r2, [r3, #4] <== NOT EXECUTED a000f6d4: eaffffd8 b a000f63c <_Heap_Free+0x130> <== NOT EXECUTED =============================================================================== a000f838 <_Heap_Free_block>: static void _Heap_Free_block( Heap_Control *heap, Heap_Block *block ) { Heap_Statistics *const stats = &heap->stats; /* Statistics */ ++stats->used_blocks; a000f838: e590c040 ldr ip, [r0, #64] ; 0x40 <== NOT EXECUTED --stats->frees; a000f83c: e5902050 ldr r2, [r0, #80] ; 0x50 <== NOT EXECUTED _Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( block )); a000f840: e2811008 add r1, r1, #8 <== NOT EXECUTED static void _Heap_Free_block( Heap_Control *heap, Heap_Block *block ) { Heap_Statistics *const stats = &heap->stats; /* Statistics */ ++stats->used_blocks; a000f844: e28cc001 add ip, ip, #1 <== NOT EXECUTED --stats->frees; a000f848: e2422001 sub r2, r2, #1 <== NOT EXECUTED static void _Heap_Free_block( Heap_Control *heap, Heap_Block *block ) { Heap_Statistics *const stats = &heap->stats; /* Statistics */ ++stats->used_blocks; a000f84c: e580c040 str ip, [r0, #64] ; 0x40 <== NOT EXECUTED --stats->frees; a000f850: e5802050 str r2, [r0, #80] ; 0x50 <== NOT EXECUTED _Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( block )); a000f854: ea0000ac b a000fb0c <_Heap_Free> <== NOT EXECUTED =============================================================================== a000aa54 <_Heap_Get_first_and_last_block>: uintptr_t page_size, uintptr_t min_block_size, Heap_Block **first_block_ptr, Heap_Block **last_block_ptr ) { a000aa54: e92d41f0 push {r4, r5, r6, r7, r8, lr} uintptr_t const heap_area_end = heap_area_begin + heap_area_size; uintptr_t const alloc_area_begin = _Heap_Align_up( heap_area_begin + HEAP_BLOCK_HEADER_SIZE, page_size ); a000aa58: e2807008 add r7, r0, #8 uintptr_t page_size, uintptr_t min_block_size, Heap_Block **first_block_ptr, Heap_Block **last_block_ptr ) { a000aa5c: e1a04000 mov r4, r0 a000aa60: e1a05001 mov r5, r1 RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_up( uintptr_t value, uintptr_t alignment ) { uintptr_t remainder = value % alignment; a000aa64: e1a00007 mov r0, r7 a000aa68: e1a01002 mov r1, r2 a000aa6c: e1a06002 mov r6, r2 a000aa70: e1a08003 mov r8, r3 a000aa74: eb0027a2 bl a0014904 <__umodsi3> if ( remainder != 0 ) { a000aa78: e3500000 cmp r0, #0 return value - remainder + alignment; a000aa7c: 10867007 addne r7, r6, r7 a000aa80: 10607007 rsbne r7, r0, r7 uintptr_t const heap_area_end = heap_area_begin + heap_area_size; uintptr_t const alloc_area_begin = _Heap_Align_up( heap_area_begin + HEAP_BLOCK_HEADER_SIZE, page_size ); uintptr_t const first_block_begin = alloc_area_begin - HEAP_BLOCK_HEADER_SIZE; uintptr_t const overhead = a000aa84: e0643007 rsb r3, r4, r7 uintptr_t min_block_size, Heap_Block **first_block_ptr, Heap_Block **last_block_ptr ) { uintptr_t const heap_area_end = heap_area_begin + heap_area_size; a000aa88: e0852004 add r2, r5, r4 _Heap_Align_down( heap_area_size - overhead, page_size ); Heap_Block *const first_block = (Heap_Block *) first_block_begin; Heap_Block *const last_block = _Heap_Block_at( first_block, first_block_size ); if ( a000aa8c: e1520004 cmp r2, r4 a000aa90: 21550003 cmpcs r5, r3 a000aa94: 83a04000 movhi r4, #0 a000aa98: 93a04001 movls r4, #1 uintptr_t const alloc_area_begin = _Heap_Align_up( heap_area_begin + HEAP_BLOCK_HEADER_SIZE, page_size ); uintptr_t const first_block_begin = alloc_area_begin - HEAP_BLOCK_HEADER_SIZE; uintptr_t const overhead = HEAP_BLOCK_HEADER_SIZE + (first_block_begin - heap_area_begin); a000aa9c: e2477008 sub r7, r7, #8 _Heap_Align_down( heap_area_size - overhead, page_size ); Heap_Block *const first_block = (Heap_Block *) first_block_begin; Heap_Block *const last_block = _Heap_Block_at( first_block, first_block_size ); if ( a000aaa0: 9a00000f bls a000aae4 <_Heap_Get_first_and_last_block+0x90> uintptr_t const first_block_begin = alloc_area_begin - HEAP_BLOCK_HEADER_SIZE; uintptr_t const overhead = HEAP_BLOCK_HEADER_SIZE + (first_block_begin - heap_area_begin); uintptr_t const first_block_size = _Heap_Align_down( heap_area_size - overhead, page_size ); a000aaa4: e0635005 rsb r5, r3, r5 RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment); a000aaa8: e1a00005 mov r0, r5 a000aaac: e1a01006 mov r1, r6 a000aab0: eb002793 bl a0014904 <__umodsi3> a000aab4: e0605005 rsb r5, r0, r5 _Heap_Block_at( first_block, first_block_size ); if ( heap_area_end < heap_area_begin || heap_area_size <= overhead || first_block_size < min_block_size a000aab8: e1580005 cmp r8, r5 a000aabc: 8a000006 bhi a000aadc <_Heap_Get_first_and_last_block+0x88> ) { /* Invalid area or area too small */ return false; } *first_block_ptr = first_block; a000aac0: e59d3018 ldr r3, [sp, #24] RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); a000aac4: e0855007 add r5, r5, r7 *last_block_ptr = last_block; return true; a000aac8: e3a00001 mov r0, #1 ) { /* Invalid area or area too small */ return false; } *first_block_ptr = first_block; a000aacc: e5837000 str r7, [r3] *last_block_ptr = last_block; a000aad0: e59d301c ldr r3, [sp, #28] a000aad4: e5835000 str r5, [r3] return true; a000aad8: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} heap_area_end < heap_area_begin || heap_area_size <= overhead || first_block_size < min_block_size ) { /* Invalid area or area too small */ return false; a000aadc: e1a00004 mov r0, r4 <== NOT EXECUTED *first_block_ptr = first_block; *last_block_ptr = last_block; return true; } a000aae0: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED heap_area_end < heap_area_begin || heap_area_size <= overhead || first_block_size < min_block_size ) { /* Invalid area or area too small */ return false; a000aae4: e3a00000 mov r0, #0 <== NOT EXECUTED a000aae8: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED =============================================================================== a0014d28 <_Heap_Get_free_information>: info->number++; info->total += the_size; if ( info->largest < the_size ) info->largest = the_size; } } a0014d28: e5903008 ldr r3, [r0, #8] <== NOT EXECUTED ) { Heap_Block *the_block; Heap_Block *const tail = _Heap_Free_list_tail(the_heap); info->number = 0; a0014d2c: e3a0c000 mov ip, #0 <== NOT EXECUTED void _Heap_Get_free_information( Heap_Control *the_heap, Heap_Information *info ) { a0014d30: e92d0070 push {r4, r5, r6} <== NOT EXECUTED info->number = 0; info->largest = 0; info->total = 0; for(the_block = _Heap_Free_list_first(the_heap); a0014d34: e1500003 cmp r0, r3 <== NOT EXECUTED ) { Heap_Block *the_block; Heap_Block *const tail = _Heap_Free_list_tail(the_heap); info->number = 0; a0014d38: e581c000 str ip, [r1] <== NOT EXECUTED info->largest = 0; a0014d3c: e581c004 str ip, [r1, #4] <== NOT EXECUTED info->total = 0; a0014d40: e581c008 str ip, [r1, #8] <== NOT EXECUTED for(the_block = _Heap_Free_list_first(the_heap); a0014d44: 0a00000f beq a0014d88 <_Heap_Get_free_information+0x60> <== NOT EXECUTED a0014d48: e3a05001 mov r5, #1 <== NOT EXECUTED a0014d4c: e1a0400c mov r4, ip <== NOT EXECUTED a0014d50: ea000001 b a0014d5c <_Heap_Get_free_information+0x34> <== NOT EXECUTED a0014d54: e591c004 ldr ip, [r1, #4] <== NOT EXECUTED a0014d58: e1a05006 mov r5, r6 <== 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; a0014d5c: e993000c ldmib r3, {r2, r3} <== NOT EXECUTED the_block != tail; the_block = the_block->next) a0014d60: e2856001 add r6, r5, #1 <== NOT EXECUTED a0014d64: e3c22001 bic r2, r2, #1 <== NOT EXECUTED /* As we always coalesce free blocks, prev block must have been used. */ _HAssert(_Heap_Is_prev_used(the_block)); info->number++; info->total += the_size; if ( info->largest < the_size ) a0014d68: e152000c cmp r2, ip <== NOT EXECUTED info->largest = the_size; a0014d6c: 85812004 strhi r2, [r1, #4] <== NOT EXECUTED /* As we always coalesce free blocks, prev block must have been used. */ _HAssert(_Heap_Is_prev_used(the_block)); info->number++; info->total += the_size; a0014d70: e084c002 add ip, r4, r2 <== NOT EXECUTED info->number = 0; info->largest = 0; info->total = 0; for(the_block = _Heap_Free_list_first(the_heap); a0014d74: e1500003 cmp r0, r3 <== NOT EXECUTED a0014d78: e1a0400c mov r4, ip <== NOT EXECUTED a0014d7c: 1afffff4 bne a0014d54 <_Heap_Get_free_information+0x2c> <== NOT EXECUTED a0014d80: e5815000 str r5, [r1] <== NOT EXECUTED a0014d84: e581c008 str ip, [r1, #8] <== NOT EXECUTED info->number++; info->total += the_size; if ( info->largest < the_size ) info->largest = the_size; } } a0014d88: e8bd0070 pop {r4, r5, r6} <== NOT EXECUTED a0014d8c: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a001018c <_Heap_Get_information>: ) { Heap_Block *the_block = the_heap->first_block; Heap_Block *const end = the_heap->last_block; memset(the_info, 0, sizeof(*the_info)); a001018c: e3a03000 mov r3, #0 <== NOT EXECUTED a0010190: e1a02001 mov r2, r1 <== NOT EXECUTED void _Heap_Get_information( Heap_Control *the_heap, Heap_Information_block *the_info ) { Heap_Block *the_block = the_heap->first_block; a0010194: e590c020 ldr ip, [r0, #32] <== NOT EXECUTED void _Heap_Get_information( Heap_Control *the_heap, Heap_Information_block *the_info ) { a0010198: e92d00f0 push {r4, r5, r6, r7} <== NOT EXECUTED Heap_Block *the_block = the_heap->first_block; Heap_Block *const end = the_heap->last_block; a001019c: e5907024 ldr r7, [r0, #36] ; 0x24 <== NOT EXECUTED memset(the_info, 0, sizeof(*the_info)); a00101a0: e4823004 str r3, [r2], #4 <== NOT EXECUTED a00101a4: e2822004 add r2, r2, #4 <== NOT EXECUTED a00101a8: e5813004 str r3, [r1, #4] <== NOT EXECUTED a00101ac: e4823004 str r3, [r2], #4 <== NOT EXECUTED a00101b0: e4823004 str r3, [r2], #4 <== NOT EXECUTED a00101b4: e4823004 str r3, [r2], #4 <== NOT EXECUTED while ( the_block != end ) { a00101b8: e15c0007 cmp ip, r7 <== NOT EXECUTED ) { Heap_Block *the_block = the_heap->first_block; Heap_Block *const end = the_heap->last_block; memset(the_info, 0, sizeof(*the_info)); a00101bc: e5823000 str r3, [r2] <== NOT EXECUTED while ( the_block != end ) { a00101c0: 0a000010 beq a0010208 <_Heap_Get_information+0x7c> <== NOT EXECUTED a00101c4: e59c0004 ldr r0, [ip, #4] <== 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; a00101c8: e3c02001 bic r2, r0, #1 <== NOT EXECUTED RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); a00101cc: e08cc002 add ip, ip, r2 <== NOT EXECUTED if ( info->largest < the_size ) info->largest = the_size; the_block = next_block; } } a00101d0: e59c0004 ldr r0, [ip, #4] <== NOT EXECUTED Heap_Information *info; if ( _Heap_Is_prev_used(next_block) ) info = &the_info->Used; else info = &the_info->Free; a00101d4: e1a03001 mov r3, r1 <== NOT EXECUTED while ( the_block != end ) { uintptr_t const the_size = _Heap_Block_size(the_block); Heap_Block *const next_block = _Heap_Block_at(the_block, the_size); Heap_Information *info; if ( _Heap_Is_prev_used(next_block) ) a00101d8: e3100001 tst r0, #1 <== NOT EXECUTED info = &the_info->Used; a00101dc: 1281300c addne r3, r1, #12 <== NOT EXECUTED else info = &the_info->Free; info->number++; info->total += the_size; if ( info->largest < the_size ) a00101e0: e8930060 ldm r3, {r5, r6} <== NOT EXECUTED info = &the_info->Used; else info = &the_info->Free; info->number++; info->total += the_size; a00101e4: e5934008 ldr r4, [r3, #8] <== NOT EXECUTED if ( info->largest < the_size ) a00101e8: e1560002 cmp r6, r2 <== NOT EXECUTED if ( _Heap_Is_prev_used(next_block) ) info = &the_info->Used; else info = &the_info->Free; info->number++; a00101ec: e2855001 add r5, r5, #1 <== NOT EXECUTED info->total += the_size; a00101f0: e0844002 add r4, r4, r2 <== NOT EXECUTED if ( info->largest < the_size ) info->largest = the_size; a00101f4: 35832004 strcc r2, [r3, #4] <== NOT EXECUTED Heap_Block *the_block = the_heap->first_block; Heap_Block *const end = the_heap->last_block; memset(the_info, 0, sizeof(*the_info)); while ( the_block != end ) { a00101f8: e157000c cmp r7, ip <== NOT EXECUTED if ( _Heap_Is_prev_used(next_block) ) info = &the_info->Used; else info = &the_info->Free; info->number++; a00101fc: e5835000 str r5, [r3] <== NOT EXECUTED info->total += the_size; a0010200: e5834008 str r4, [r3, #8] <== NOT EXECUTED Heap_Block *the_block = the_heap->first_block; Heap_Block *const end = the_heap->last_block; memset(the_info, 0, sizeof(*the_info)); while ( the_block != end ) { a0010204: 1affffef bne a00101c8 <_Heap_Get_information+0x3c> <== NOT EXECUTED if ( info->largest < the_size ) info->largest = the_size; the_block = next_block; } } a0010208: e8bd00f0 pop {r4, r5, r6, r7} <== NOT EXECUTED a001020c: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a0016480 <_Heap_Resize_block>: void *alloc_begin_ptr, uintptr_t new_alloc_size, uintptr_t *old_size, uintptr_t *new_size ) { a0016480: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED a0016484: e1a04000 mov r4, r0 <== NOT EXECUTED a0016488: e1a05001 mov r5, r1 <== NOT EXECUTED RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment); a001648c: e1a00001 mov r0, r1 <== NOT EXECUTED a0016490: e5941010 ldr r1, [r4, #16] <== NOT EXECUTED a0016494: e1a07003 mov r7, r3 <== NOT EXECUTED a0016498: e1a0a002 mov sl, r2 <== NOT EXECUTED a001649c: ebfff918 bl a0014904 <__umodsi3> <== NOT EXECUTED const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block && (uintptr_t) block <= (uintptr_t) heap->last_block; a00164a0: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED a00164a4: e59d601c ldr r6, [sp, #28] <== NOT EXECUTED RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment); a00164a8: e2458008 sub r8, r5, #8 <== NOT EXECUTED uintptr_t alloc_begin, uintptr_t page_size ) { return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size ) - HEAP_BLOCK_HEADER_SIZE); a00164ac: e0601008 rsb r1, r0, r8 <== NOT EXECUTED uintptr_t const alloc_begin = (uintptr_t) alloc_begin_ptr; Heap_Block *const block = _Heap_Block_of_alloc_area( alloc_begin, page_size ); *old_size = 0; a00164b0: e3a02000 mov r2, #0 <== NOT EXECUTED const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block && (uintptr_t) block <= (uintptr_t) heap->last_block; a00164b4: e1530001 cmp r3, r1 <== NOT EXECUTED a00164b8: e5872000 str r2, [r7] <== NOT EXECUTED *new_size = 0; a00164bc: e5862000 str r2, [r6] <== NOT EXECUTED a00164c0: 8a000038 bhi a00165a8 <_Heap_Resize_block+0x128> <== NOT EXECUTED a00164c4: e5943024 ldr r3, [r4, #36] ; 0x24 <== NOT EXECUTED a00164c8: e1530001 cmp r3, r1 <== NOT EXECUTED a00164cc: 3a000037 bcc a00165b0 <_Heap_Resize_block+0x130> <== 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; a00164d0: e5910004 ldr r0, [r1, #4] <== NOT EXECUTED uintptr_t const block_begin = (uintptr_t) block; uintptr_t block_size = _Heap_Block_size( block ); uintptr_t block_end = block_begin + block_size; uintptr_t alloc_size = block_end - alloc_begin + HEAP_ALLOC_BONUS; a00164d4: e2653004 rsb r3, r5, #4 <== NOT EXECUTED a00164d8: e3c00001 bic r0, r0, #1 <== NOT EXECUTED { Heap_Statistics *const stats = &heap->stats; uintptr_t const block_begin = (uintptr_t) block; uintptr_t block_size = _Heap_Block_size( block ); uintptr_t block_end = block_begin + block_size; a00164dc: e0812000 add r2, r1, r0 <== NOT EXECUTED a00164e0: e592c004 ldr ip, [r2, #4] <== NOT EXECUTED uintptr_t alloc_size = block_end - alloc_begin + HEAP_ALLOC_BONUS; a00164e4: e0833002 add r3, r3, r2 <== NOT EXECUTED a00164e8: e3ccc001 bic ip, ip, #1 <== NOT EXECUTED old_size, new_size ); } return HEAP_RESIZE_FATAL_ERROR; } a00164ec: e082800c add r8, r2, ip <== 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; a00164f0: e5988004 ldr r8, [r8, #4] <== NOT EXECUTED bool next_block_is_free = _Heap_Is_free( next_block );; _HAssert( _Heap_Is_block_in_heap( heap, next_block ) ); _HAssert( _Heap_Is_prev_used( next_block ) ); *old_size = alloc_size; a00164f4: e5873000 str r3, [r7] <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool _Heap_Is_free( const Heap_Block *block ) { return !_Heap_Is_used( block ); a00164f8: e3180001 tst r8, #1 <== NOT EXECUTED a00164fc: 13a07000 movne r7, #0 <== NOT EXECUTED a0016500: 03a07001 moveq r7, #1 <== NOT EXECUTED if ( next_block_is_free ) { a0016504: e3570000 cmp r7, #0 <== NOT EXECUTED block_size += next_block_size; alloc_size += next_block_size; a0016508: 1083300c addne r3, r3, ip <== NOT EXECUTED _HAssert( _Heap_Is_prev_used( next_block ) ); *old_size = alloc_size; if ( next_block_is_free ) { block_size += next_block_size; a001650c: 1080000c addne r0, r0, ip <== NOT EXECUTED alloc_size += next_block_size; } if ( new_alloc_size > alloc_size ) { a0016510: e15a0003 cmp sl, r3 <== NOT EXECUTED a0016514: 8a000027 bhi a00165b8 <_Heap_Resize_block+0x138> <== NOT EXECUTED return HEAP_RESIZE_UNSATISFIED; } if ( next_block_is_free ) { a0016518: e3570000 cmp r7, #0 <== NOT EXECUTED a001651c: 0a000011 beq a0016568 <_Heap_Resize_block+0xe8> <== 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; a0016520: e5917004 ldr r7, [r1, #4] <== NOT EXECUTED RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); a0016524: e0803001 add r3, r0, r1 <== NOT EXECUTED next_block = _Heap_Block_at( block, block_size ); next_block->size_and_flag |= HEAP_PREV_BLOCK_USED; /* Statistics */ --stats->free_blocks; a0016528: e594e038 ldr lr, [r4, #56] ; 0x38 <== 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; a001652c: e2077001 and r7, r7, #1 <== NOT EXECUTED block->size_and_flag = size | flag; a0016530: e1800007 orr r0, r0, r7 <== NOT EXECUTED a0016534: e5810004 str r0, [r1, #4] <== NOT EXECUTED stats->free_size -= next_block_size; a0016538: e5948030 ldr r8, [r4, #48] ; 0x30 <== NOT EXECUTED _Heap_Block_set_size( block, block_size ); _Heap_Free_list_remove( next_block ); next_block = _Heap_Block_at( block, block_size ); next_block->size_and_flag |= HEAP_PREV_BLOCK_USED; a001653c: e5937004 ldr r7, [r3, #4] <== NOT EXECUTED old_size, new_size ); } return HEAP_RESIZE_FATAL_ERROR; } a0016540: e5920008 ldr r0, [r2, #8] <== NOT EXECUTED a0016544: e592200c ldr r2, [r2, #12] <== NOT EXECUTED _Heap_Block_set_size( block, block_size ); _Heap_Free_list_remove( next_block ); next_block = _Heap_Block_at( block, block_size ); next_block->size_and_flag |= HEAP_PREV_BLOCK_USED; a0016548: e3877001 orr r7, r7, #1 <== NOT EXECUTED /* Statistics */ --stats->free_blocks; a001654c: e24ee001 sub lr, lr, #1 <== NOT EXECUTED stats->free_size -= next_block_size; a0016550: e06cc008 rsb ip, ip, r8 <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block ) { Heap_Block *next = block->next; Heap_Block *prev = block->prev; prev->next = next; a0016554: e5820008 str r0, [r2, #8] <== NOT EXECUTED next->prev = prev; a0016558: e580200c str r2, [r0, #12] <== NOT EXECUTED _Heap_Block_set_size( block, block_size ); _Heap_Free_list_remove( next_block ); next_block = _Heap_Block_at( block, block_size ); next_block->size_and_flag |= HEAP_PREV_BLOCK_USED; a001655c: e5837004 str r7, [r3, #4] <== NOT EXECUTED /* Statistics */ --stats->free_blocks; a0016560: e584e038 str lr, [r4, #56] ; 0x38 <== NOT EXECUTED stats->free_size -= next_block_size; a0016564: e584c030 str ip, [r4, #48] ; 0x30 <== NOT EXECUTED } block = _Heap_Block_allocate( heap, block, alloc_begin, new_alloc_size ); a0016568: e1a02005 mov r2, r5 <== NOT EXECUTED a001656c: e1a0300a mov r3, sl <== NOT EXECUTED a0016570: e1a00004 mov r0, r4 <== NOT EXECUTED a0016574: ebffd1a6 bl a000ac14 <_Heap_Block_allocate> <== 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; a0016578: e5902004 ldr r2, [r0, #4] <== NOT EXECUTED a001657c: e1a03000 mov r3, r0 <== NOT EXECUTED *new_size = (uintptr_t) next_block - alloc_begin + HEAP_ALLOC_BONUS; /* Statistics */ ++stats->resizes; return HEAP_RESIZE_SUCCESSFUL; a0016580: e3a00000 mov r0, #0 <== NOT EXECUTED a0016584: e3c22001 bic r2, r2, #1 <== NOT EXECUTED RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); a0016588: e2822004 add r2, r2, #4 <== NOT EXECUTED block = _Heap_Block_allocate( heap, block, alloc_begin, new_alloc_size ); block_size = _Heap_Block_size( block ); next_block = _Heap_Block_at( block, block_size ); *new_size = (uintptr_t) next_block - alloc_begin + HEAP_ALLOC_BONUS; a001658c: e0655002 rsb r5, r5, r2 <== NOT EXECUTED a0016590: e0833005 add r3, r3, r5 <== NOT EXECUTED a0016594: e5863000 str r3, [r6] <== NOT EXECUTED /* Statistics */ ++stats->resizes; a0016598: e5943054 ldr r3, [r4, #84] ; 0x54 <== NOT EXECUTED a001659c: e2833001 add r3, r3, #1 <== NOT EXECUTED a00165a0: e5843054 str r3, [r4, #84] ; 0x54 <== NOT EXECUTED a00165a4: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED new_alloc_size, old_size, new_size ); } return HEAP_RESIZE_FATAL_ERROR; a00165a8: e3a00002 mov r0, #2 <== NOT EXECUTED a00165ac: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED a00165b0: e3a00002 mov r0, #2 <== NOT EXECUTED } a00165b4: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED block_size += next_block_size; alloc_size += next_block_size; } if ( new_alloc_size > alloc_size ) { return HEAP_RESIZE_UNSATISFIED; a00165b8: e3a00001 mov r0, #1 <== NOT EXECUTED *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( a00165bc: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED =============================================================================== a00165c0 <_Heap_Size_of_alloc_area>: bool _Heap_Size_of_alloc_area( Heap_Control *heap, void *alloc_begin_ptr, uintptr_t *alloc_size ) { a00165c0: e92d40f0 push {r4, r5, r6, r7, lr} a00165c4: e1a04000 mov r4, r0 a00165c8: e1a05001 mov r5, r1 RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment); a00165cc: e1a00001 mov r0, r1 a00165d0: e5941010 ldr r1, [r4, #16] a00165d4: e1a07002 mov r7, r2 a00165d8: ebfff8c9 bl a0014904 <__umodsi3> RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap( const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block a00165dc: e5943020 ldr r3, [r4, #32] RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment); a00165e0: e2456008 sub r6, r5, #8 uintptr_t alloc_begin, uintptr_t page_size ) { return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size ) - HEAP_BLOCK_HEADER_SIZE); a00165e4: e0600006 rsb r0, r0, 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; a00165e8: e1500003 cmp r0, r3 a00165ec: 3a000012 bcc a001663c <_Heap_Size_of_alloc_area+0x7c> a00165f0: e5942024 ldr r2, [r4, #36] ; 0x24 a00165f4: e1500002 cmp r0, r2 a00165f8: 8a00000f bhi a001663c <_Heap_Size_of_alloc_area+0x7c> - 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; a00165fc: e5906004 ldr r6, [r0, #4] a0016600: e3c66001 bic r6, r6, #1 RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); a0016604: e0806006 add r6, r0, 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; a0016608: e1530006 cmp r3, r6 a001660c: 8a00000a bhi a001663c <_Heap_Size_of_alloc_area+0x7c> a0016610: e1520006 cmp r2, r6 if ( !_Heap_Is_block_in_heap( heap, next_block ) || !_Heap_Is_prev_used( next_block ) ) { return false; a0016614: 33a00000 movcc r0, #0 a0016618: 3a000009 bcc a0016644 <_Heap_Size_of_alloc_area+0x84> 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; a001661c: e5960004 ldr r0, [r6, #4] block_size = _Heap_Block_size( block ); next_block = _Heap_Block_at( block, block_size ); if ( !_Heap_Is_block_in_heap( heap, next_block ) || !_Heap_Is_prev_used( next_block ) a0016620: e2100001 ands r0, r0, #1 a0016624: 0a000006 beq a0016644 <_Heap_Size_of_alloc_area+0x84> ) { return false; } *alloc_size = (uintptr_t) next_block + HEAP_ALLOC_BONUS - alloc_begin; a0016628: e2655004 rsb r5, r5, #4 a001662c: e0856006 add r6, r5, r6 a0016630: e5876000 str r6, [r7] return true; a0016634: e3a00001 mov r0, #1 a0016638: e8bd80f0 pop {r4, r5, r6, r7, pc} if ( !_Heap_Is_block_in_heap( heap, next_block ) || !_Heap_Is_prev_used( next_block ) ) { return false; a001663c: e3a00000 mov r0, #0 <== NOT EXECUTED a0016640: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED } *alloc_size = (uintptr_t) next_block + HEAP_ALLOC_BONUS - alloc_begin; return true; } a0016644: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED =============================================================================== a000b9b4 <_Heap_Walk>: 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() ) ) { a000b9b4: e59f3584 ldr r3, [pc, #1412] ; a000bf40 <_Heap_Walk+0x58c> <== NOT EXECUTED bool _Heap_Walk( Heap_Control *heap, int source, bool dump ) { a000b9b8: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED uintptr_t const min_block_size = heap->min_block_size; Heap_Block *const first_block = heap->first_block; Heap_Block *const last_block = heap->last_block; Heap_Block *block = first_block; Heap_Walk_printer printer = dump ? _Heap_Walk_print : _Heap_Walk_print_nothing; a000b9bc: e31200ff tst r2, #255 ; 0xff <== NOT EXECUTED if ( !_System_state_Is_up( _System_state_Get() ) ) { a000b9c0: e5933000 ldr r3, [r3] <== NOT EXECUTED uintptr_t const min_block_size = heap->min_block_size; Heap_Block *const first_block = heap->first_block; Heap_Block *const last_block = heap->last_block; Heap_Block *block = first_block; Heap_Walk_printer printer = dump ? _Heap_Walk_print : _Heap_Walk_print_nothing; a000b9c4: e59f2578 ldr r2, [pc, #1400] ; a000bf44 <_Heap_Walk+0x590> <== NOT EXECUTED a000b9c8: e59f9578 ldr r9, [pc, #1400] ; a000bf48 <_Heap_Walk+0x594> <== NOT EXECUTED bool _Heap_Walk( Heap_Control *heap, int source, bool dump ) { a000b9cc: e1a0a001 mov sl, r1 <== NOT EXECUTED uintptr_t const page_size = heap->page_size; a000b9d0: e5901010 ldr r1, [r0, #16] <== NOT EXECUTED uintptr_t const min_block_size = heap->min_block_size; Heap_Block *const first_block = heap->first_block; Heap_Block *const last_block = heap->last_block; Heap_Block *block = first_block; Heap_Walk_printer printer = dump ? _Heap_Walk_print : _Heap_Walk_print_nothing; a000b9d4: 11a09002 movne r9, r2 <== NOT EXECUTED if ( !_System_state_Is_up( _System_state_Get() ) ) { a000b9d8: e3530003 cmp r3, #3 <== NOT EXECUTED int source, bool dump ) { uintptr_t const page_size = heap->page_size; uintptr_t const min_block_size = heap->min_block_size; a000b9dc: e5902014 ldr r2, [r0, #20] <== NOT EXECUTED Heap_Block *const first_block = heap->first_block; Heap_Block *const last_block = heap->last_block; a000b9e0: e5903024 ldr r3, [r0, #36] ; 0x24 <== NOT EXECUTED bool _Heap_Walk( Heap_Control *heap, int source, bool dump ) { a000b9e4: e24dd038 sub sp, sp, #56 ; 0x38 <== NOT EXECUTED a000b9e8: e1a04000 mov r4, r0 <== NOT EXECUTED uintptr_t const page_size = heap->page_size; a000b9ec: e58d1024 str r1, [sp, #36] ; 0x24 <== NOT EXECUTED uintptr_t const min_block_size = heap->min_block_size; a000b9f0: e58d2028 str r2, [sp, #40] ; 0x28 <== NOT EXECUTED Heap_Block *const first_block = heap->first_block; a000b9f4: e5908020 ldr r8, [r0, #32] <== NOT EXECUTED Heap_Block *const last_block = heap->last_block; a000b9f8: e58d302c str r3, [sp, #44] ; 0x2c <== NOT EXECUTED 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() ) ) { a000b9fc: 0a000002 beq a000ba0c <_Heap_Walk+0x58> <== NOT EXECUTED } block = next_block; } while ( block != first_block ); return true; a000ba00: e3a00001 mov r0, #1 <== NOT EXECUTED } a000ba04: e28dd038 add sp, sp, #56 ; 0x38 <== NOT EXECUTED a000ba08: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED Heap_Block *const first_free_block = _Heap_Free_list_first( heap ); Heap_Block *const last_free_block = _Heap_Free_list_last( heap ); Heap_Block *const first_block = heap->first_block; Heap_Block *const last_block = heap->last_block; (*printer)( a000ba0c: e594101c ldr r1, [r4, #28] <== NOT EXECUTED a000ba10: e5900018 ldr r0, [r0, #24] <== NOT EXECUTED a000ba14: e5942008 ldr r2, [r4, #8] <== NOT EXECUTED a000ba18: e594300c ldr r3, [r4, #12] <== NOT EXECUTED a000ba1c: e59dc028 ldr ip, [sp, #40] ; 0x28 <== NOT EXECUTED a000ba20: e58d1008 str r1, [sp, #8] <== NOT EXECUTED a000ba24: e59d102c ldr r1, [sp, #44] ; 0x2c <== NOT EXECUTED a000ba28: e58d0004 str r0, [sp, #4] <== NOT EXECUTED a000ba2c: e58d2014 str r2, [sp, #20] <== NOT EXECUTED a000ba30: e58d1010 str r1, [sp, #16] <== NOT EXECUTED a000ba34: e58d3018 str r3, [sp, #24] <== NOT EXECUTED a000ba38: e59f250c ldr r2, [pc, #1292] ; a000bf4c <_Heap_Walk+0x598> <== NOT EXECUTED a000ba3c: e58dc000 str ip, [sp] <== NOT EXECUTED a000ba40: e58d800c str r8, [sp, #12] <== NOT EXECUTED a000ba44: e1a0000a mov r0, sl <== NOT EXECUTED a000ba48: e3a01000 mov r1, #0 <== NOT EXECUTED a000ba4c: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED a000ba50: e12fff39 blx r9 <== NOT EXECUTED heap->area_begin, heap->area_end, first_block, last_block, first_free_block, last_free_block ); if ( page_size == 0 ) { a000ba54: e59d2024 ldr r2, [sp, #36] ; 0x24 <== NOT EXECUTED a000ba58: e3520000 cmp r2, #0 <== NOT EXECUTED a000ba5c: 0a000024 beq a000baf4 <_Heap_Walk+0x140> <== NOT EXECUTED (*printer)( source, true, "page size is zero\n" ); return false; } if ( !_Addresses_Is_aligned( (void *) page_size ) ) { a000ba60: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED a000ba64: e2135007 ands r5, r3, #7 <== NOT EXECUTED a000ba68: 1a000027 bne a000bb0c <_Heap_Walk+0x158> <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned( uintptr_t value, uintptr_t alignment ) { return (value % alignment) == 0; a000ba6c: e59d0028 ldr r0, [sp, #40] ; 0x28 <== NOT EXECUTED a000ba70: e59d1024 ldr r1, [sp, #36] ; 0x24 <== NOT EXECUTED a000ba74: ebffe56f bl a0005038 <__umodsi3> <== NOT EXECUTED ); return false; } if ( !_Heap_Is_aligned( min_block_size, page_size ) ) { a000ba78: e250b000 subs fp, r0, #0 <== NOT EXECUTED a000ba7c: 1a000028 bne a000bb24 <_Heap_Walk+0x170> <== NOT EXECUTED a000ba80: e2880008 add r0, r8, #8 <== NOT EXECUTED a000ba84: e59d1024 ldr r1, [sp, #36] ; 0x24 <== NOT EXECUTED a000ba88: ebffe56a bl a0005038 <__umodsi3> <== NOT EXECUTED ); return false; } if ( a000ba8c: e2506000 subs r6, r0, #0 <== NOT EXECUTED a000ba90: 1a00002a bne a000bb40 <_Heap_Walk+0x18c> <== NOT EXECUTED block = next_block; } while ( block != first_block ); return true; } a000ba94: e598b004 ldr fp, [r8, #4] <== NOT EXECUTED ); return false; } if ( !_Heap_Is_prev_used( first_block ) ) { a000ba98: e21b5001 ands r5, fp, #1 <== NOT EXECUTED a000ba9c: 0a0000f4 beq a000be74 <_Heap_Walk+0x4c0> <== 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; a000baa0: e59dc02c ldr ip, [sp, #44] ; 0x2c <== NOT EXECUTED a000baa4: e59c3004 ldr r3, [ip, #4] <== NOT EXECUTED a000baa8: e3c33001 bic r3, r3, #1 <== NOT EXECUTED RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); a000baac: e08c3003 add r3, ip, r3 <== 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; a000bab0: e5935004 ldr r5, [r3, #4] <== NOT EXECUTED ); return false; } if ( _Heap_Is_free( last_block ) ) { a000bab4: e2155001 ands r5, r5, #1 <== NOT EXECUTED a000bab8: 0a000007 beq a000badc <_Heap_Walk+0x128> <== NOT EXECUTED ); return false; } if ( a000babc: e1580003 cmp r8, r3 <== NOT EXECUTED a000bac0: 0a000025 beq a000bb5c <_Heap_Walk+0x1a8> <== NOT EXECUTED _Heap_Block_at( last_block, _Heap_Block_size( last_block ) ) != first_block ) { (*printer)( a000bac4: e1a0000a mov r0, sl <== NOT EXECUTED a000bac8: e3a01001 mov r1, #1 <== NOT EXECUTED a000bacc: e59f247c ldr r2, [pc, #1148] ; a000bf50 <_Heap_Walk+0x59c> <== NOT EXECUTED a000bad0: e12fff39 blx r9 <== NOT EXECUTED if ( !_System_state_Is_up( _System_state_Get() ) ) { return true; } if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; a000bad4: e1a00006 mov r0, r6 <== NOT EXECUTED a000bad8: eaffffc9 b a000ba04 <_Heap_Walk+0x50> <== NOT EXECUTED return false; } if ( _Heap_Is_free( last_block ) ) { (*printer)( a000badc: e1a0000a mov r0, sl <== NOT EXECUTED a000bae0: e3a01001 mov r1, #1 <== NOT EXECUTED a000bae4: e59f2468 ldr r2, [pc, #1128] ; a000bf54 <_Heap_Walk+0x5a0> <== NOT EXECUTED a000bae8: e12fff39 blx r9 <== NOT EXECUTED if ( !_System_state_Is_up( _System_state_Get() ) ) { return true; } if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; a000baec: e1a00005 mov r0, r5 <== NOT EXECUTED a000baf0: eaffffc3 b a000ba04 <_Heap_Walk+0x50> <== NOT EXECUTED first_block, last_block, first_free_block, last_free_block ); if ( page_size == 0 ) { (*printer)( source, true, "page size is zero\n" ); a000baf4: e1a0000a mov r0, sl <== NOT EXECUTED a000baf8: e3a01001 mov r1, #1 <== NOT EXECUTED a000bafc: e59f2454 ldr r2, [pc, #1108] ; a000bf58 <_Heap_Walk+0x5a4> <== NOT EXECUTED a000bb00: e12fff39 blx r9 <== NOT EXECUTED if ( !_System_state_Is_up( _System_state_Get() ) ) { return true; } if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; a000bb04: e59d0024 ldr r0, [sp, #36] ; 0x24 <== NOT EXECUTED a000bb08: eaffffbd b a000ba04 <_Heap_Walk+0x50> <== NOT EXECUTED return false; } if ( !_Addresses_Is_aligned( (void *) page_size ) ) { (*printer)( a000bb0c: e1a0000a mov r0, sl <== NOT EXECUTED a000bb10: e3a01001 mov r1, #1 <== NOT EXECUTED a000bb14: e59f2440 ldr r2, [pc, #1088] ; a000bf5c <_Heap_Walk+0x5a8> <== NOT EXECUTED a000bb18: e12fff39 blx r9 <== NOT EXECUTED if ( !_System_state_Is_up( _System_state_Get() ) ) { return true; } if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; a000bb1c: e3a00000 mov r0, #0 <== NOT EXECUTED a000bb20: eaffffb7 b a000ba04 <_Heap_Walk+0x50> <== NOT EXECUTED return false; } if ( !_Heap_Is_aligned( min_block_size, page_size ) ) { (*printer)( a000bb24: e1a0000a mov r0, sl <== NOT EXECUTED a000bb28: e3a01001 mov r1, #1 <== NOT EXECUTED a000bb2c: e59f242c ldr r2, [pc, #1068] ; a000bf60 <_Heap_Walk+0x5ac> <== NOT EXECUTED a000bb30: e59d3028 ldr r3, [sp, #40] ; 0x28 <== NOT EXECUTED a000bb34: e12fff39 blx r9 <== NOT EXECUTED if ( !_System_state_Is_up( _System_state_Get() ) ) { return true; } if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; a000bb38: e1a00005 mov r0, r5 <== NOT EXECUTED a000bb3c: eaffffb0 b a000ba04 <_Heap_Walk+0x50> <== NOT EXECUTED } if ( !_Heap_Is_aligned( _Heap_Alloc_area_of_block( first_block ), page_size ) ) { (*printer)( a000bb40: e1a0000a mov r0, sl <== NOT EXECUTED a000bb44: e3a01001 mov r1, #1 <== NOT EXECUTED a000bb48: e59f2414 ldr r2, [pc, #1044] ; a000bf64 <_Heap_Walk+0x5b0> <== NOT EXECUTED a000bb4c: e1a03008 mov r3, r8 <== NOT EXECUTED a000bb50: e12fff39 blx r9 <== NOT EXECUTED if ( !_System_state_Is_up( _System_state_Get() ) ) { return true; } if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; a000bb54: e1a0000b mov r0, fp <== NOT EXECUTED a000bb58: eaffffa9 b a000ba04 <_Heap_Walk+0x50> <== NOT EXECUTED block = next_block; } while ( block != first_block ); return true; } a000bb5c: e5946008 ldr r6, [r4, #8] <== NOT EXECUTED int source, Heap_Walk_printer printer, Heap_Control *heap ) { uintptr_t const page_size = heap->page_size; a000bb60: e5947010 ldr r7, [r4, #16] <== NOT EXECUTED const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap ); const Heap_Block *const first_free_block = _Heap_Free_list_first( heap ); const Heap_Block *prev_block = free_list_tail; const Heap_Block *free_block = first_free_block; while ( free_block != free_list_tail ) { a000bb64: e1540006 cmp r4, r6 <== NOT EXECUTED a000bb68: 05943020 ldreq r3, [r4, #32] <== NOT EXECUTED a000bb6c: 0a00002b beq a000bc20 <_Heap_Walk+0x26c> <== NOT EXECUTED block = next_block; } while ( block != first_block ); return true; } a000bb70: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block && (uintptr_t) block <= (uintptr_t) heap->last_block; a000bb74: e1530006 cmp r3, r6 <== NOT EXECUTED a000bb78: 8a0000c3 bhi a000be8c <_Heap_Walk+0x4d8> <== NOT EXECUTED a000bb7c: e594c024 ldr ip, [r4, #36] ; 0x24 <== NOT EXECUTED a000bb80: e15c0006 cmp ip, r6 <== NOT EXECUTED a000bb84: 3a0000c0 bcc a000be8c <_Heap_Walk+0x4d8> <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned( uintptr_t value, uintptr_t alignment ) { return (value % alignment) == 0; a000bb88: e2860008 add r0, r6, #8 <== NOT EXECUTED a000bb8c: e1a01007 mov r1, r7 <== NOT EXECUTED a000bb90: e58d3020 str r3, [sp, #32] <== NOT EXECUTED a000bb94: e58dc01c str ip, [sp, #28] <== NOT EXECUTED a000bb98: ebffe526 bl a0005038 <__umodsi3> <== NOT EXECUTED ); return false; } if ( a000bb9c: e3500000 cmp r0, #0 <== NOT EXECUTED a000bba0: e59d3020 ldr r3, [sp, #32] <== NOT EXECUTED a000bba4: e59dc01c ldr ip, [sp, #28] <== NOT EXECUTED a000bba8: 1a0000d2 bne a000bef8 <_Heap_Walk+0x544> <== 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; a000bbac: e5962004 ldr r2, [r6, #4] <== NOT EXECUTED a000bbb0: e3c22001 bic r2, r2, #1 <== NOT EXECUTED block = next_block; } while ( block != first_block ); return true; } a000bbb4: e0862002 add r2, r6, r2 <== 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; a000bbb8: e5922004 ldr r2, [r2, #4] <== NOT EXECUTED ); return false; } if ( _Heap_Is_used( free_block ) ) { a000bbbc: e3120001 tst r2, #1 <== NOT EXECUTED a000bbc0: 1a0000dc bne a000bf38 <_Heap_Walk+0x584> <== NOT EXECUTED a000bbc4: e58d8030 str r8, [sp, #48] ; 0x30 <== NOT EXECUTED a000bbc8: e58db034 str fp, [sp, #52] ; 0x34 <== NOT EXECUTED a000bbcc: e1a02004 mov r2, r4 <== NOT EXECUTED a000bbd0: e1a08003 mov r8, r3 <== NOT EXECUTED a000bbd4: e1a0b00c mov fp, ip <== NOT EXECUTED ); return false; } if ( free_block->prev != prev_block ) { a000bbd8: e596100c ldr r1, [r6, #12] <== NOT EXECUTED a000bbdc: e1510002 cmp r1, r2 <== NOT EXECUTED a000bbe0: 1a0000cc bne a000bf18 <_Heap_Walk+0x564> <== NOT EXECUTED return false; } prev_block = free_block; free_block = free_block->next; a000bbe4: e5965008 ldr r5, [r6, #8] <== NOT EXECUTED const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap ); const Heap_Block *const first_free_block = _Heap_Free_list_first( heap ); const Heap_Block *prev_block = free_list_tail; const Heap_Block *free_block = first_free_block; while ( free_block != free_list_tail ) { a000bbe8: e1540005 cmp r4, r5 <== NOT EXECUTED a000bbec: 0a000008 beq a000bc14 <_Heap_Walk+0x260> <== NOT EXECUTED const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block && (uintptr_t) block <= (uintptr_t) heap->last_block; a000bbf0: e1580005 cmp r8, r5 <== NOT EXECUTED a000bbf4: 9a000077 bls a000bdd8 <_Heap_Walk+0x424> <== NOT EXECUTED if ( !_Heap_Is_block_in_heap( heap, free_block ) ) { (*printer)( a000bbf8: e1a0000a mov r0, sl <== NOT EXECUTED a000bbfc: e3a01001 mov r1, #1 <== NOT EXECUTED a000bc00: e59f2360 ldr r2, [pc, #864] ; a000bf68 <_Heap_Walk+0x5b4> <== NOT EXECUTED a000bc04: e1a03005 mov r3, r5 <== NOT EXECUTED a000bc08: e12fff39 blx r9 <== NOT EXECUTED if ( !_System_state_Is_up( _System_state_Get() ) ) { return true; } if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; a000bc0c: e3a00000 mov r0, #0 <== NOT EXECUTED a000bc10: eaffff7b b a000ba04 <_Heap_Walk+0x50> <== NOT EXECUTED a000bc14: e1a03008 mov r3, r8 <== NOT EXECUTED a000bc18: e59db034 ldr fp, [sp, #52] ; 0x34 <== NOT EXECUTED a000bc1c: e59d8030 ldr r8, [sp, #48] ; 0x30 <== NOT EXECUTED ); return false; } if ( _Heap_Is_used( free_block ) ) { a000bc20: e1a06008 mov r6, r8 <== 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; a000bc24: e3cb7001 bic r7, fp, #1 <== NOT EXECUTED RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); a000bc28: e0875006 add r5, r7, r6 <== NOT EXECUTED const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block && (uintptr_t) block <= (uintptr_t) heap->last_block; a000bc2c: e1530005 cmp r3, r5 <== NOT EXECUTED a000bc30: 9a000007 bls a000bc54 <_Heap_Walk+0x2a0> <== NOT EXECUTED Heap_Block *const next_block = _Heap_Block_at( block, block_size ); uintptr_t const next_block_begin = (uintptr_t) next_block; bool const is_not_last_block = block != last_block; if ( !_Heap_Is_block_in_heap( heap, next_block ) ) { (*printer)( a000bc34: e1a0000a mov r0, sl <== NOT EXECUTED a000bc38: e58d5000 str r5, [sp] <== NOT EXECUTED a000bc3c: e3a01001 mov r1, #1 <== NOT EXECUTED a000bc40: e59f2324 ldr r2, [pc, #804] ; a000bf6c <_Heap_Walk+0x5b8> <== NOT EXECUTED a000bc44: e1a03006 mov r3, r6 <== NOT EXECUTED a000bc48: e12fff39 blx r9 <== NOT EXECUTED "block 0x%08x: next block 0x%08x not in heap\n", block, next_block ); return false; a000bc4c: e3a00000 mov r0, #0 <== NOT EXECUTED a000bc50: eaffff6b b a000ba04 <_Heap_Walk+0x50> <== NOT EXECUTED a000bc54: e5943024 ldr r3, [r4, #36] ; 0x24 <== NOT EXECUTED a000bc58: e1530005 cmp r3, r5 <== NOT EXECUTED a000bc5c: 3afffff4 bcc a000bc34 <_Heap_Walk+0x280> <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned( uintptr_t value, uintptr_t alignment ) { return (value % alignment) == 0; a000bc60: e59d1024 ldr r1, [sp, #36] ; 0x24 <== NOT EXECUTED a000bc64: e1a00007 mov r0, r7 <== NOT EXECUTED a000bc68: ebffe4f2 bl a0005038 <__umodsi3> <== 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; a000bc6c: e59d102c ldr r1, [sp, #44] ; 0x2c <== NOT EXECUTED a000bc70: e0563001 subs r3, r6, r1 <== NOT EXECUTED a000bc74: 13a03001 movne r3, #1 <== NOT EXECUTED ); return false; } if ( !_Heap_Is_aligned( block_size, page_size ) && is_not_last_block ) { a000bc78: e3500000 cmp r0, #0 <== NOT EXECUTED a000bc7c: 0a000001 beq a000bc88 <_Heap_Walk+0x2d4> <== NOT EXECUTED a000bc80: e3530000 cmp r3, #0 <== NOT EXECUTED a000bc84: 1a000082 bne a000be94 <_Heap_Walk+0x4e0> <== NOT EXECUTED ); return false; } if ( block_size < min_block_size && is_not_last_block ) { a000bc88: e59d2028 ldr r2, [sp, #40] ; 0x28 <== NOT EXECUTED a000bc8c: e1520007 cmp r2, r7 <== NOT EXECUTED a000bc90: 9a000001 bls a000bc9c <_Heap_Walk+0x2e8> <== NOT EXECUTED a000bc94: e3530000 cmp r3, #0 <== NOT EXECUTED a000bc98: 1a000085 bne a000beb4 <_Heap_Walk+0x500> <== NOT EXECUTED ); return false; } if ( next_block_begin <= block_begin && is_not_last_block ) { a000bc9c: e1560005 cmp r6, r5 <== NOT EXECUTED a000bca0: 3a000001 bcc a000bcac <_Heap_Walk+0x2f8> <== NOT EXECUTED a000bca4: e3530000 cmp r3, #0 <== NOT EXECUTED a000bca8: 1a00008a bne a000bed8 <_Heap_Walk+0x524> <== 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; a000bcac: e5953004 ldr r3, [r5, #4] <== NOT EXECUTED a000bcb0: e20bb001 and fp, fp, #1 <== NOT EXECUTED ); return false; } if ( !_Heap_Is_prev_used( next_block ) ) { a000bcb4: e3130001 tst r3, #1 <== NOT EXECUTED a000bcb8: 0a000016 beq a000bd18 <_Heap_Walk+0x364> <== NOT EXECUTED if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) { return false; } } else if (prev_used) { a000bcbc: e35b0000 cmp fp, #0 <== NOT EXECUTED a000bcc0: 0a00000b beq a000bcf4 <_Heap_Walk+0x340> <== NOT EXECUTED (*printer)( a000bcc4: e58d7000 str r7, [sp] <== NOT EXECUTED a000bcc8: e1a0000a mov r0, sl <== NOT EXECUTED a000bccc: e3a01000 mov r1, #0 <== NOT EXECUTED a000bcd0: e59f2298 ldr r2, [pc, #664] ; a000bf70 <_Heap_Walk+0x5bc> <== NOT EXECUTED a000bcd4: e1a03006 mov r3, r6 <== NOT EXECUTED a000bcd8: e12fff39 blx r9 <== NOT EXECUTED block->prev_size ); } block = next_block; } while ( block != first_block ); a000bcdc: e1580005 cmp r8, r5 <== NOT EXECUTED a000bce0: 0affff46 beq a000ba00 <_Heap_Walk+0x4c> <== NOT EXECUTED a000bce4: e595b004 ldr fp, [r5, #4] <== NOT EXECUTED a000bce8: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED a000bcec: e1a06005 mov r6, r5 <== NOT EXECUTED a000bcf0: eaffffcb b a000bc24 <_Heap_Walk+0x270> <== NOT EXECUTED "block 0x%08x: size %u\n", block, block_size ); } else { (*printer)( a000bcf4: e58d7000 str r7, [sp] <== NOT EXECUTED a000bcf8: e5963000 ldr r3, [r6] <== NOT EXECUTED a000bcfc: e1a0000a mov r0, sl <== NOT EXECUTED a000bd00: e1a0100b mov r1, fp <== NOT EXECUTED a000bd04: e58d3004 str r3, [sp, #4] <== NOT EXECUTED a000bd08: e59f2264 ldr r2, [pc, #612] ; a000bf74 <_Heap_Walk+0x5c0> <== NOT EXECUTED a000bd0c: e1a03006 mov r3, r6 <== NOT EXECUTED a000bd10: e12fff39 blx r9 <== NOT EXECUTED a000bd14: eafffff0 b a000bcdc <_Heap_Walk+0x328> <== NOT EXECUTED false, "block 0x%08x: size %u, prev 0x%08x%s, next 0x%08x%s\n", block, block_size, block->prev, block->prev == first_free_block ? a000bd18: e596200c ldr r2, [r6, #12] <== NOT EXECUTED Heap_Block *const last_free_block = _Heap_Free_list_last( heap ); bool const prev_used = _Heap_Is_prev_used( block ); uintptr_t const block_size = _Heap_Block_size( block ); Heap_Block *const next_block = _Heap_Block_at( block, block_size ); (*printer)( a000bd1c: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED block = next_block; } while ( block != first_block ); return true; } a000bd20: e594100c ldr r1, [r4, #12] <== NOT EXECUTED Heap_Block *const last_free_block = _Heap_Free_list_last( heap ); bool const prev_used = _Heap_Is_prev_used( block ); uintptr_t const block_size = _Heap_Block_size( block ); Heap_Block *const next_block = _Heap_Block_at( block, block_size ); (*printer)( a000bd24: e1530002 cmp r3, r2 <== NOT EXECUTED a000bd28: 059f0248 ldreq r0, [pc, #584] ; a000bf78 <_Heap_Walk+0x5c4><== NOT EXECUTED a000bd2c: 0a000003 beq a000bd40 <_Heap_Walk+0x38c> <== NOT EXECUTED block, block_size, block->prev, block->prev == first_free_block ? " (= first free)" : (block->prev == free_list_head ? " (= head)" : ""), a000bd30: e59f3244 ldr r3, [pc, #580] ; a000bf7c <_Heap_Walk+0x5c8> <== NOT EXECUTED a000bd34: e1540002 cmp r4, r2 <== NOT EXECUTED a000bd38: e59f0240 ldr r0, [pc, #576] ; a000bf80 <_Heap_Walk+0x5cc> <== NOT EXECUTED a000bd3c: 01a00003 moveq r0, r3 <== NOT EXECUTED block->next, block->next == last_free_block ? a000bd40: e5963008 ldr r3, [r6, #8] <== NOT EXECUTED Heap_Block *const last_free_block = _Heap_Free_list_last( heap ); bool const prev_used = _Heap_Is_prev_used( block ); uintptr_t const block_size = _Heap_Block_size( block ); Heap_Block *const next_block = _Heap_Block_at( block, block_size ); (*printer)( a000bd44: e1510003 cmp r1, r3 <== NOT EXECUTED a000bd48: 059f1234 ldreq r1, [pc, #564] ; a000bf84 <_Heap_Walk+0x5d0><== NOT EXECUTED a000bd4c: 0a000003 beq a000bd60 <_Heap_Walk+0x3ac> <== NOT EXECUTED " (= first free)" : (block->prev == free_list_head ? " (= head)" : ""), block->next, block->next == last_free_block ? " (= last free)" : (block->next == free_list_tail ? " (= tail)" : "") a000bd50: e59fc230 ldr ip, [pc, #560] ; a000bf88 <_Heap_Walk+0x5d4> <== NOT EXECUTED a000bd54: e1540003 cmp r4, r3 <== NOT EXECUTED a000bd58: e59f1220 ldr r1, [pc, #544] ; a000bf80 <_Heap_Walk+0x5cc> <== NOT EXECUTED a000bd5c: 01a0100c moveq r1, ip <== NOT EXECUTED Heap_Block *const last_free_block = _Heap_Free_list_last( heap ); bool const prev_used = _Heap_Is_prev_used( block ); uintptr_t const block_size = _Heap_Block_size( block ); Heap_Block *const next_block = _Heap_Block_at( block, block_size ); (*printer)( a000bd60: e58d2004 str r2, [sp, #4] <== NOT EXECUTED a000bd64: e58d0008 str r0, [sp, #8] <== NOT EXECUTED a000bd68: e58d300c str r3, [sp, #12] <== NOT EXECUTED a000bd6c: e58d1010 str r1, [sp, #16] <== NOT EXECUTED a000bd70: e1a03006 mov r3, r6 <== NOT EXECUTED a000bd74: e58d7000 str r7, [sp] <== NOT EXECUTED a000bd78: e1a0000a mov r0, sl <== NOT EXECUTED a000bd7c: e3a01000 mov r1, #0 <== NOT EXECUTED a000bd80: e59f2204 ldr r2, [pc, #516] ; a000bf8c <_Heap_Walk+0x5d8> <== NOT EXECUTED a000bd84: e12fff39 blx r9 <== NOT EXECUTED block->next == last_free_block ? " (= last free)" : (block->next == free_list_tail ? " (= tail)" : "") ); if ( block_size != next_block->prev_size ) { a000bd88: e5953000 ldr r3, [r5] <== NOT EXECUTED a000bd8c: e1570003 cmp r7, r3 <== NOT EXECUTED a000bd90: 1a000026 bne a000be30 <_Heap_Walk+0x47c> <== NOT EXECUTED ); return false; } if ( !prev_used ) { a000bd94: e35b0000 cmp fp, #0 <== NOT EXECUTED a000bd98: 0a00002e beq a000be58 <_Heap_Walk+0x4a4> <== NOT EXECUTED block = next_block; } while ( block != first_block ); return true; } a000bd9c: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED ) { const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap ); const Heap_Block *free_block = _Heap_Free_list_first( heap ); while ( free_block != free_list_tail ) { a000bda0: e1540003 cmp r4, r3 <== NOT EXECUTED a000bda4: 0a000004 beq a000bdbc <_Heap_Walk+0x408> <== NOT EXECUTED if ( free_block == block ) { a000bda8: e1560003 cmp r6, r3 <== NOT EXECUTED a000bdac: 0affffca beq a000bcdc <_Heap_Walk+0x328> <== NOT EXECUTED return true; } free_block = free_block->next; a000bdb0: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED ) { const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap ); const Heap_Block *free_block = _Heap_Free_list_first( heap ); while ( free_block != free_list_tail ) { a000bdb4: e1540003 cmp r4, r3 <== NOT EXECUTED a000bdb8: 1afffffa bne a000bda8 <_Heap_Walk+0x3f4> <== NOT EXECUTED return false; } if ( !_Heap_Walk_is_in_free_list( heap, block ) ) { (*printer)( a000bdbc: e1a0000a mov r0, sl <== NOT EXECUTED a000bdc0: e3a01001 mov r1, #1 <== NOT EXECUTED a000bdc4: e59f21c4 ldr r2, [pc, #452] ; a000bf90 <_Heap_Walk+0x5dc> <== NOT EXECUTED a000bdc8: e1a03006 mov r3, r6 <== NOT EXECUTED a000bdcc: e12fff39 blx r9 <== NOT EXECUTED return false; } if ( !_Heap_Is_prev_used( next_block ) ) { if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) { return false; a000bdd0: e3a00000 mov r0, #0 <== NOT EXECUTED a000bdd4: eaffff0a b a000ba04 <_Heap_Walk+0x50> <== NOT EXECUTED const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block && (uintptr_t) block <= (uintptr_t) heap->last_block; a000bdd8: e155000b cmp r5, fp <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned( uintptr_t value, uintptr_t alignment ) { return (value % alignment) == 0; a000bddc: e2850008 add r0, r5, #8 <== NOT EXECUTED a000bde0: e1a01007 mov r1, r7 <== NOT EXECUTED const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block && (uintptr_t) block <= (uintptr_t) heap->last_block; a000bde4: 8affff83 bhi a000bbf8 <_Heap_Walk+0x244> <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned( uintptr_t value, uintptr_t alignment ) { return (value % alignment) == 0; a000bde8: ebffe492 bl a0005038 <__umodsi3> <== NOT EXECUTED ); return false; } if ( a000bdec: e3500000 cmp r0, #0 <== NOT EXECUTED a000bdf0: 1a000041 bne a000befc <_Heap_Walk+0x548> <== 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; a000bdf4: e5953004 ldr r3, [r5, #4] <== NOT EXECUTED ); return false; } if ( _Heap_Is_used( free_block ) ) { a000bdf8: e1a02006 mov r2, r6 <== NOT EXECUTED a000bdfc: e1a06005 mov r6, r5 <== NOT EXECUTED a000be00: e3c33001 bic r3, r3, #1 <== NOT EXECUTED block = next_block; } while ( block != first_block ); return true; } a000be04: e0833005 add r3, r3, r5 <== 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; a000be08: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED ); return false; } if ( _Heap_Is_used( free_block ) ) { a000be0c: e3130001 tst r3, #1 <== NOT EXECUTED a000be10: 0affff70 beq a000bbd8 <_Heap_Walk+0x224> <== NOT EXECUTED (*printer)( a000be14: e1a0000a mov r0, sl <== NOT EXECUTED a000be18: e3a01001 mov r1, #1 <== NOT EXECUTED a000be1c: e59f2170 ldr r2, [pc, #368] ; a000bf94 <_Heap_Walk+0x5e0> <== NOT EXECUTED a000be20: e1a03005 mov r3, r5 <== NOT EXECUTED a000be24: e12fff39 blx r9 <== NOT EXECUTED if ( !_System_state_Is_up( _System_state_Get() ) ) { return true; } if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; a000be28: e3a00000 mov r0, #0 <== NOT EXECUTED a000be2c: eafffef4 b a000ba04 <_Heap_Walk+0x50> <== NOT EXECUTED " (= last free)" : (block->next == free_list_tail ? " (= tail)" : "") ); if ( block_size != next_block->prev_size ) { (*printer)( a000be30: e58d3004 str r3, [sp, #4] <== NOT EXECUTED a000be34: e1a0000a mov r0, sl <== NOT EXECUTED a000be38: e58d7000 str r7, [sp] <== NOT EXECUTED a000be3c: e58d5008 str r5, [sp, #8] <== NOT EXECUTED a000be40: e3a01001 mov r1, #1 <== NOT EXECUTED a000be44: e59f214c ldr r2, [pc, #332] ; a000bf98 <_Heap_Walk+0x5e4> <== NOT EXECUTED a000be48: e1a03006 mov r3, r6 <== NOT EXECUTED a000be4c: e12fff39 blx r9 <== NOT EXECUTED return false; } if ( !_Heap_Is_prev_used( next_block ) ) { if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) { return false; a000be50: e3a00000 mov r0, #0 <== NOT EXECUTED a000be54: eafffeea b a000ba04 <_Heap_Walk+0x50> <== NOT EXECUTED return false; } if ( !prev_used ) { (*printer)( a000be58: e1a0000a mov r0, sl <== NOT EXECUTED a000be5c: e3a01001 mov r1, #1 <== NOT EXECUTED a000be60: e59f2134 ldr r2, [pc, #308] ; a000bf9c <_Heap_Walk+0x5e8> <== NOT EXECUTED a000be64: e1a03006 mov r3, r6 <== NOT EXECUTED a000be68: e12fff39 blx r9 <== NOT EXECUTED return false; } if ( !_Heap_Is_prev_used( next_block ) ) { if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) { return false; a000be6c: e1a0000b mov r0, fp <== NOT EXECUTED a000be70: eafffee3 b a000ba04 <_Heap_Walk+0x50> <== NOT EXECUTED return false; } if ( !_Heap_Is_prev_used( first_block ) ) { (*printer)( a000be74: e1a0000a mov r0, sl <== NOT EXECUTED a000be78: e3a01001 mov r1, #1 <== NOT EXECUTED a000be7c: e59f211c ldr r2, [pc, #284] ; a000bfa0 <_Heap_Walk+0x5ec> <== NOT EXECUTED a000be80: e12fff39 blx r9 <== NOT EXECUTED if ( !_System_state_Is_up( _System_state_Get() ) ) { return true; } if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; a000be84: e1a00005 mov r0, r5 <== NOT EXECUTED a000be88: eafffedd b a000ba04 <_Heap_Walk+0x50> <== NOT EXECUTED const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block && (uintptr_t) block <= (uintptr_t) heap->last_block; a000be8c: e1a05006 mov r5, r6 <== NOT EXECUTED a000be90: eaffff58 b a000bbf8 <_Heap_Walk+0x244> <== NOT EXECUTED return false; } if ( !_Heap_Is_aligned( block_size, page_size ) && is_not_last_block ) { (*printer)( a000be94: e1a0000a mov r0, sl <== NOT EXECUTED a000be98: e58d7000 str r7, [sp] <== NOT EXECUTED a000be9c: e3a01001 mov r1, #1 <== NOT EXECUTED a000bea0: e59f20fc ldr r2, [pc, #252] ; a000bfa4 <_Heap_Walk+0x5f0> <== NOT EXECUTED a000bea4: e1a03006 mov r3, r6 <== NOT EXECUTED a000bea8: e12fff39 blx r9 <== NOT EXECUTED "block 0x%08x: block size %u not page aligned\n", block, block_size ); return false; a000beac: e3a00000 mov r0, #0 <== NOT EXECUTED a000beb0: eafffed3 b a000ba04 <_Heap_Walk+0x50> <== NOT EXECUTED } if ( block_size < min_block_size && is_not_last_block ) { (*printer)( a000beb4: e58d2004 str r2, [sp, #4] <== NOT EXECUTED a000beb8: e1a0000a mov r0, sl <== NOT EXECUTED a000bebc: e58d7000 str r7, [sp] <== NOT EXECUTED a000bec0: e3a01001 mov r1, #1 <== NOT EXECUTED a000bec4: e59f20dc ldr r2, [pc, #220] ; a000bfa8 <_Heap_Walk+0x5f4> <== NOT EXECUTED a000bec8: e1a03006 mov r3, r6 <== NOT EXECUTED a000becc: e12fff39 blx r9 <== NOT EXECUTED block, block_size, min_block_size ); return false; a000bed0: e3a00000 mov r0, #0 <== NOT EXECUTED a000bed4: eafffeca b a000ba04 <_Heap_Walk+0x50> <== NOT EXECUTED } if ( next_block_begin <= block_begin && is_not_last_block ) { (*printer)( a000bed8: e1a0000a mov r0, sl <== NOT EXECUTED a000bedc: e58d5000 str r5, [sp] <== NOT EXECUTED a000bee0: e3a01001 mov r1, #1 <== NOT EXECUTED a000bee4: e59f20c0 ldr r2, [pc, #192] ; a000bfac <_Heap_Walk+0x5f8> <== NOT EXECUTED a000bee8: e1a03006 mov r3, r6 <== NOT EXECUTED a000beec: e12fff39 blx r9 <== NOT EXECUTED "block 0x%08x: next block 0x%08x is not a successor\n", block, next_block ); return false; a000bef0: e3a00000 mov r0, #0 <== NOT EXECUTED a000bef4: eafffec2 b a000ba04 <_Heap_Walk+0x50> <== NOT EXECUTED ); return false; } if ( a000bef8: e1a05006 mov r5, r6 <== NOT EXECUTED !_Heap_Is_aligned( _Heap_Alloc_area_of_block( free_block ), page_size ) ) { (*printer)( a000befc: e1a0000a mov r0, sl <== NOT EXECUTED a000bf00: e3a01001 mov r1, #1 <== NOT EXECUTED a000bf04: e59f20a4 ldr r2, [pc, #164] ; a000bfb0 <_Heap_Walk+0x5fc> <== NOT EXECUTED a000bf08: e1a03005 mov r3, r5 <== NOT EXECUTED a000bf0c: e12fff39 blx r9 <== NOT EXECUTED if ( !_System_state_Is_up( _System_state_Get() ) ) { return true; } if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; a000bf10: e3a00000 mov r0, #0 <== NOT EXECUTED a000bf14: eafffeba b a000ba04 <_Heap_Walk+0x50> <== NOT EXECUTED return false; } if ( free_block->prev != prev_block ) { (*printer)( a000bf18: e58d1000 str r1, [sp] <== NOT EXECUTED a000bf1c: e1a0000a mov r0, sl <== NOT EXECUTED a000bf20: e3a01001 mov r1, #1 <== NOT EXECUTED a000bf24: e59f2088 ldr r2, [pc, #136] ; a000bfb4 <_Heap_Walk+0x600> <== NOT EXECUTED a000bf28: e1a03006 mov r3, r6 <== NOT EXECUTED a000bf2c: e12fff39 blx r9 <== NOT EXECUTED if ( !_System_state_Is_up( _System_state_Get() ) ) { return true; } if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; a000bf30: e3a00000 mov r0, #0 <== NOT EXECUTED a000bf34: eafffeb2 b a000ba04 <_Heap_Walk+0x50> <== NOT EXECUTED ); return false; } if ( _Heap_Is_used( free_block ) ) { a000bf38: e1a05006 mov r5, r6 <== NOT EXECUTED a000bf3c: eaffffb4 b a000be14 <_Heap_Walk+0x460> <== NOT EXECUTED =============================================================================== a000b95c <_Heap_Walk_print>: static void _Heap_Walk_print( int source, bool error, const char *fmt, ... ) { a000b95c: e92d000c push {r2, r3} <== NOT EXECUTED a000b960: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED va_list ap; if ( error ) { a000b964: e31100ff tst r1, #255 ; 0xff <== NOT EXECUTED { /* Do nothing */ } static void _Heap_Walk_print( int source, bool error, const char *fmt, ... ) { a000b968: e24dd004 sub sp, sp, #4 <== NOT EXECUTED a000b96c: e1a01000 mov r1, r0 <== NOT EXECUTED va_list ap; if ( error ) { a000b970: 1a00000a bne a000b9a0 <_Heap_Walk_print+0x44> <== NOT EXECUTED printk( "FAIL[%d]: ", source ); } else { printk( "PASS[%d]: ", source ); a000b974: e59f0030 ldr r0, [pc, #48] ; a000b9ac <_Heap_Walk_print+0x50><== NOT EXECUTED a000b978: ebfff036 bl a0007a58 <== NOT EXECUTED } va_start( ap, fmt ); a000b97c: e28d300c add r3, sp, #12 <== NOT EXECUTED vprintk( fmt, ap ); a000b980: e59d0008 ldr r0, [sp, #8] <== NOT EXECUTED a000b984: e1a01003 mov r1, r3 <== NOT EXECUTED printk( "FAIL[%d]: ", source ); } else { printk( "PASS[%d]: ", source ); } va_start( ap, fmt ); a000b988: e58d3000 str r3, [sp] <== NOT EXECUTED vprintk( fmt, ap ); a000b98c: ebfff7b7 bl a0009870 <== NOT EXECUTED va_end( ap ); } a000b990: e28dd004 add sp, sp, #4 <== NOT EXECUTED a000b994: e49de004 pop {lr} ; (ldr lr, [sp], #4) <== NOT EXECUTED a000b998: e28dd008 add sp, sp, #8 <== NOT EXECUTED a000b99c: e12fff1e bx lr <== NOT EXECUTED static void _Heap_Walk_print( int source, bool error, const char *fmt, ... ) { va_list ap; if ( error ) { printk( "FAIL[%d]: ", source ); a000b9a0: e59f0008 ldr r0, [pc, #8] ; a000b9b0 <_Heap_Walk_print+0x54><== NOT EXECUTED a000b9a4: ebfff02b bl a0007a58 <== NOT EXECUTED a000b9a8: eafffff3 b a000b97c <_Heap_Walk_print+0x20> <== NOT EXECUTED =============================================================================== a000b950 <_Heap_Walk_print_nothing>: int source, bool error, const char *fmt, ... ) { a000b950: e92d000c push {r2, r3} <== NOT EXECUTED /* Do nothing */ } a000b954: e28dd008 add sp, sp, #8 <== NOT EXECUTED a000b958: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a0017ca0 <_Message_queue_Allocate>: */ Message_queue_Control *_Message_queue_Allocate(void) { return (Message_queue_Control *) _Objects_Allocate(&_Message_queue_Information); a0017ca0: e59f0000 ldr r0, [pc, #0] ; a0017ca8 <_Message_queue_Allocate+0x8><== NOT EXECUTED a0017ca4: eafff047 b a0013dc8 <_Objects_Allocate> <== NOT EXECUTED =============================================================================== a00121e0 <_Message_queue_Translate_core_message_queue_return_code>: #if defined(RTEMS_DEBUG) if ( status > CORE_MESSAGE_QUEUE_STATUS_TIMEOUT ) return RTEMS_INTERNAL_ERROR; #endif return _Message_queue_Translate_core_return_code_[status]; a00121e0: e59f3004 ldr r3, [pc, #4] ; a00121ec <_Message_queue_Translate_core_message_queue_return_code+0xc><== NOT EXECUTED } a00121e4: e7930100 ldr r0, [r3, r0, lsl #2] <== NOT EXECUTED a00121e8: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000f6d8 <_Objects_API_maximum_class>: #include unsigned int _Objects_API_maximum_class( uint32_t api ) { a000f6d8: e2400001 sub r0, r0, #1 <== NOT EXECUTED a000f6dc: e3500002 cmp r0, #2 <== NOT EXECUTED a000f6e0: 959f3008 ldrls r3, [pc, #8] ; a000f6f0 <_Objects_API_maximum_class+0x18><== NOT EXECUTED a000f6e4: 83a00000 movhi r0, #0 <== NOT EXECUTED a000f6e8: 97930100 ldrls r0, [r3, r0, lsl #2] <== NOT EXECUTED case OBJECTS_NO_API: default: break; } return 0; } a000f6ec: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000adb8 <_Objects_Allocate>: */ Objects_Control *_Objects_Allocate( Objects_Information *information ) { a000adb8: e92d4070 push {r4, r5, r6, lr} * If the application is using the optional manager stubs and * still attempts to create the object, the information block * should be all zeroed out because it is in the BSS. So let's * check that code for this manager is even present. */ if ( information->size == 0 ) a000adbc: e5905018 ldr r5, [r0, #24] */ Objects_Control *_Objects_Allocate( Objects_Information *information ) { a000adc0: e1a04000 mov r4, r0 * If the application is using the optional manager stubs and * still attempts to create the object, the information block * should be all zeroed out because it is in the BSS. So let's * check that code for this manager is even present. */ if ( information->size == 0 ) a000adc4: e3550000 cmp r5, #0 a000adc8: 1a000001 bne a000add4 <_Objects_Allocate+0x1c> ); } #endif return the_object; } a000adcc: e1a00005 mov r0, r5 a000add0: e8bd8070 pop {r4, r5, r6, pc} /* * OK. The manager should be initialized and configured to have objects. * With any luck, it is safe to attempt to allocate an object. */ the_object = (Objects_Control *) _Chain_Get( &information->Inactive ); a000add4: e2806020 add r6, r0, #32 a000add8: e1a00006 mov r0, r6 a000addc: ebfffd95 bl a000a438 <_Chain_Get> if ( information->auto_extend ) { a000ade0: e5d43012 ldrb r3, [r4, #18] /* * OK. The manager should be initialized and configured to have objects. * With any luck, it is safe to attempt to allocate an object. */ the_object = (Objects_Control *) _Chain_Get( &information->Inactive ); a000ade4: e1a05000 mov r5, r0 if ( information->auto_extend ) { a000ade8: e3530000 cmp r3, #0 a000adec: 0afffff6 beq a000adcc <_Objects_Allocate+0x14> /* * If the list is empty then we are out of objects and need to * extend information base. */ if ( !the_object ) { a000adf0: e3500000 cmp r0, #0 a000adf4: 0a00000d beq a000ae30 <_Objects_Allocate+0x78> } if ( the_object ) { uint32_t block; block = (uint32_t) _Objects_Get_index( the_object->id ) - a000adf8: e1d430b8 ldrh r3, [r4, #8] a000adfc: e1d500b8 ldrh r0, [r5, #8] _Objects_Get_index( information->minimum_id ); block /= information->allocation_size; a000ae00: e1d411b4 ldrh r1, [r4, #20] a000ae04: e0630000 rsb r0, r3, r0 a000ae08: eb002677 bl a00147ec <__aeabi_uidiv> information->inactive_per_block[ block ]--; a000ae0c: e5943030 ldr r3, [r4, #48] ; 0x30 information->inactive--; a000ae10: e1d422bc ldrh r2, [r4, #44] ; 0x2c block = (uint32_t) _Objects_Get_index( the_object->id ) - _Objects_Get_index( information->minimum_id ); block /= information->allocation_size; information->inactive_per_block[ block ]--; a000ae14: e7931100 ldr r1, [r3, r0, lsl #2] information->inactive--; a000ae18: e2422001 sub r2, r2, #1 block = (uint32_t) _Objects_Get_index( the_object->id ) - _Objects_Get_index( information->minimum_id ); block /= information->allocation_size; information->inactive_per_block[ block ]--; a000ae1c: e2411001 sub r1, r1, #1 a000ae20: e7831100 str r1, [r3, r0, lsl #2] information->inactive--; a000ae24: e1c422bc strh r2, [r4, #44] ; 0x2c ); } #endif return the_object; } a000ae28: e1a00005 mov r0, r5 a000ae2c: e8bd8070 pop {r4, r5, r6, pc} * If the list is empty then we are out of objects and need to * extend information base. */ if ( !the_object ) { _Objects_Extend_information( information ); a000ae30: e1a00004 mov r0, r4 <== NOT EXECUTED a000ae34: eb000009 bl a000ae60 <_Objects_Extend_information> <== NOT EXECUTED the_object = (Objects_Control *) _Chain_Get( &information->Inactive ); a000ae38: e1a00006 mov r0, r6 <== NOT EXECUTED a000ae3c: ebfffd7d bl a000a438 <_Chain_Get> <== NOT EXECUTED } if ( the_object ) { a000ae40: e2505000 subs r5, r0, #0 <== NOT EXECUTED a000ae44: 0affffe0 beq a000adcc <_Objects_Allocate+0x14> <== NOT EXECUTED a000ae48: eaffffea b a000adf8 <_Objects_Allocate+0x40> <== NOT EXECUTED =============================================================================== a000ae60 <_Objects_Extend_information>: */ void _Objects_Extend_information( Objects_Information *information ) { a000ae60: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} minimum_index = _Objects_Get_index( information->minimum_id ); index_base = minimum_index; block = 0; /* if ( information->maximum < minimum_index ) */ if ( information->object_blocks == NULL ) a000ae64: e5904034 ldr r4, [r0, #52] ; 0x34 */ void _Objects_Extend_information( Objects_Information *information ) { a000ae68: e24dd014 sub sp, sp, #20 a000ae6c: e1a05000 mov r5, r0 minimum_index = _Objects_Get_index( information->minimum_id ); index_base = minimum_index; block = 0; /* if ( information->maximum < minimum_index ) */ if ( information->object_blocks == NULL ) a000ae70: e3540000 cmp r4, #0 /* * Search for a free block of indexes. If we do NOT need to allocate or * extend the block table, then we will change do_extend. */ do_extend = true; minimum_index = _Objects_Get_index( information->minimum_id ); a000ae74: e1d070b8 ldrh r7, [r0, #8] index_base = minimum_index; block = 0; /* if ( information->maximum < minimum_index ) */ if ( information->object_blocks == NULL ) a000ae78: 0a00009a beq a000b0e8 <_Objects_Extend_information+0x288> block_count = 0; else { block_count = information->maximum / information->allocation_size; a000ae7c: e1d081b4 ldrh r8, [r0, #20] <== NOT EXECUTED a000ae80: e1d0a1b0 ldrh sl, [r0, #16] <== NOT EXECUTED a000ae84: e1a01008 mov r1, r8 <== NOT EXECUTED a000ae88: e1a0000a mov r0, sl <== NOT EXECUTED a000ae8c: eb002656 bl a00147ec <__aeabi_uidiv> <== NOT EXECUTED a000ae90: e1a03800 lsl r3, r0, #16 <== NOT EXECUTED for ( ; block < block_count; block++ ) { a000ae94: e1b03823 lsrs r3, r3, #16 <== NOT EXECUTED a000ae98: 0a000098 beq a000b100 <_Objects_Extend_information+0x2a0> <== NOT EXECUTED if ( information->object_blocks[ block ] == NULL ) { a000ae9c: e5949000 ldr r9, [r4] <== NOT EXECUTED a000aea0: e3590000 cmp r9, #0 <== NOT EXECUTED a000aea4: 01a01008 moveq r1, r8 <== NOT EXECUTED /* * Search for a free block of indexes. If we do NOT need to allocate or * extend the block table, then we will change do_extend. */ do_extend = true; minimum_index = _Objects_Get_index( information->minimum_id ); a000aea8: 01a06007 moveq r6, r7 <== NOT EXECUTED index_base = minimum_index; block = 0; a000aeac: 01a04009 moveq r4, r9 <== NOT EXECUTED block_count = 0; else { block_count = information->maximum / information->allocation_size; for ( ; block < block_count; block++ ) { if ( information->object_blocks[ block ] == NULL ) { a000aeb0: 0a00000c beq a000aee8 <_Objects_Extend_information+0x88> <== NOT EXECUTED a000aeb4: e1a02004 mov r2, r4 <== NOT EXECUTED a000aeb8: e1a01008 mov r1, r8 <== NOT EXECUTED /* * Search for a free block of indexes. If we do NOT need to allocate or * extend the block table, then we will change do_extend. */ do_extend = true; minimum_index = _Objects_Get_index( information->minimum_id ); a000aebc: e1a06007 mov r6, r7 <== NOT EXECUTED index_base = minimum_index; block = 0; a000aec0: e3a04000 mov r4, #0 <== NOT EXECUTED a000aec4: ea000002 b a000aed4 <_Objects_Extend_information+0x74> <== NOT EXECUTED block_count = 0; else { block_count = information->maximum / information->allocation_size; for ( ; block < block_count; block++ ) { if ( information->object_blocks[ block ] == NULL ) { a000aec8: e5b29004 ldr r9, [r2, #4]! <== NOT EXECUTED a000aecc: e3590000 cmp r9, #0 <== NOT EXECUTED a000aed0: 0a000004 beq a000aee8 <_Objects_Extend_information+0x88> <== NOT EXECUTED if ( information->object_blocks == NULL ) block_count = 0; else { block_count = information->maximum / information->allocation_size; for ( ; block < block_count; block++ ) { a000aed4: e2844001 add r4, r4, #1 <== NOT EXECUTED a000aed8: e1530004 cmp r3, r4 <== NOT EXECUTED if ( information->object_blocks[ block ] == NULL ) { do_extend = false; break; } else index_base += information->allocation_size; a000aedc: e0866008 add r6, r6, r8 <== NOT EXECUTED if ( information->object_blocks == NULL ) block_count = 0; else { block_count = information->maximum / information->allocation_size; for ( ; block < block_count; block++ ) { a000aee0: 8afffff8 bhi a000aec8 <_Objects_Extend_information+0x68> <== NOT EXECUTED /* * Search for a free block of indexes. If we do NOT need to allocate or * extend the block table, then we will change do_extend. */ do_extend = true; a000aee4: e3a09001 mov r9, #1 <== NOT EXECUTED } else index_base += information->allocation_size; } } maximum = (uint32_t) information->maximum + information->allocation_size; a000aee8: e08aa001 add sl, sl, r1 /* * We need to limit the number of objects to the maximum number * representable in the index portion of the object Id. In the * case of 16-bit Ids, this is only 256 object instances. */ if ( maximum > OBJECTS_ID_FINAL_INDEX ) { a000aeec: e35a0801 cmp sl, #65536 ; 0x10000 a000aef0: 2a000062 bcs a000b080 <_Objects_Extend_information+0x220> /* * Allocate the name table, and the objects and if it fails either return or * generate a fatal error depending on auto-extending being active. */ block_size = information->allocation_size * information->size; if ( information->auto_extend ) { a000aef4: e5d52012 ldrb r2, [r5, #18] /* * Allocate the name table, and the objects and if it fails either return or * generate a fatal error depending on auto-extending being active. */ block_size = information->allocation_size * information->size; a000aef8: e5950018 ldr r0, [r5, #24] if ( information->auto_extend ) { a000aefc: e3520000 cmp r2, #0 /* * Allocate the name table, and the objects and if it fails either return or * generate a fatal error depending on auto-extending being active. */ block_size = information->allocation_size * information->size; a000af00: e0000091 mul r0, r1, r0 if ( information->auto_extend ) { a000af04: 1a00005f bne a000b088 <_Objects_Extend_information+0x228> new_object_block = _Workspace_Allocate( block_size ); if ( !new_object_block ) return; } else { new_object_block = _Workspace_Allocate_or_fatal_error( block_size ); a000af08: e58d3000 str r3, [sp] a000af0c: eb00088f bl a000d150 <_Workspace_Allocate_or_fatal_error> a000af10: e59d3000 ldr r3, [sp] a000af14: e1a08000 mov r8, r0 } /* * Do we need to grow the tables? */ if ( do_extend ) { a000af18: e3590000 cmp r9, #0 a000af1c: 0a000038 beq a000b004 <_Objects_Extend_information+0x1a4> */ /* * Up the block count and maximum */ block_count++; a000af20: e283b001 add fp, r3, #1 /* * Allocate the tables and break it up. */ block_size = block_count * (sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) + a000af24: e08b008b add r0, fp, fp, lsl #1 ((maximum + minimum_index) * sizeof(Objects_Control *)); a000af28: e08a0000 add r0, sl, r0 /* * Allocate the tables and break it up. */ block_size = block_count * (sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) + a000af2c: e0800007 add r0, r0, r7 ((maximum + minimum_index) * sizeof(Objects_Control *)); object_blocks = (void**) _Workspace_Allocate( block_size ); a000af30: e1a00100 lsl r0, r0, #2 a000af34: e58d3000 str r3, [sp] a000af38: eb00087a bl a000d128 <_Workspace_Allocate> if ( !object_blocks ) { a000af3c: e2509000 subs r9, r0, #0 a000af40: e59d3000 ldr r3, [sp] a000af44: 0a000072 beq a000b114 <_Objects_Extend_information+0x2b4> * Take the block count down. Saves all the (block_count - 1) * in the copies. */ block_count--; if ( information->maximum > minimum_index ) { a000af48: e1d521b0 ldrh r2, [r5, #16] RTEMS_INLINE_ROUTINE void *_Addresses_Add_offset ( const void *base, uintptr_t offset ) { return (void *)((uintptr_t)base + offset); a000af4c: e089c10b add ip, r9, fp, lsl #2 a000af50: e089b18b add fp, r9, fp, lsl #3 a000af54: e1570002 cmp r7, r2 a000af58: 3a000050 bcc a000b0a0 <_Objects_Extend_information+0x240> } else { /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { a000af5c: e3570000 cmp r7, #0 a000af60: 13a02000 movne r2, #0 a000af64: 11a0100b movne r1, fp local_table[ index ] = NULL; a000af68: 11a00002 movne r0, r2 } else { /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { a000af6c: 0a000003 beq a000af80 <_Objects_Extend_information+0x120> a000af70: e2822001 add r2, r2, #1 a000af74: e1570002 cmp r7, r2 local_table[ index ] = NULL; a000af78: e4810004 str r0, [r1], #4 } else { /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { a000af7c: 8afffffb bhi a000af70 <_Objects_Extend_information+0x110> a000af80: e1a03103 lsl r3, r3, #2 */ object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; for ( index=index_base ; index < ( information->allocation_size + index_base ); a000af84: e1d511b4 ldrh r1, [r5, #20] } /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; a000af88: e3a00000 mov r0, #0 a000af8c: e7890003 str r0, [r9, r3] inactive_per_block[block_count] = 0; for ( index=index_base ; index < ( information->allocation_size + index_base ); a000af90: e0861001 add r1, r6, r1 * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; for ( index=index_base ; a000af94: e1560001 cmp r6, r1 /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; a000af98: e78c0003 str r0, [ip, r3] for ( index=index_base ; a000af9c: 2a000005 bcs a000afb8 <_Objects_Extend_information+0x158> a000afa0: e08b2106 add r2, fp, r6, lsl #2 * information - object information table * * Output parameters: NONE */ void _Objects_Extend_information( a000afa4: e1a03006 mov r3, r6 object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; for ( index=index_base ; index < ( information->allocation_size + index_base ); index++ ) { a000afa8: e2833001 add r3, r3, #1 * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; for ( index=index_base ; a000afac: e1530001 cmp r3, r1 index < ( information->allocation_size + index_base ); index++ ) { local_table[ index ] = NULL; a000afb0: e4820004 str r0, [r2], #4 * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; for ( index=index_base ; a000afb4: 3afffffb bcc a000afa8 <_Objects_Extend_information+0x148> a000afb8: e10f3000 mrs r3, CPSR a000afbc: e3832080 orr r2, r3, #128 ; 0x80 a000afc0: e129f002 msr CPSR_fc, r2 uint32_t the_class, uint32_t node, uint32_t index ) { return (( (Objects_Id) the_api ) << OBJECTS_API_START_BIT) | a000afc4: e5952000 ldr r2, [r5] information->object_blocks = object_blocks; information->inactive_per_block = inactive_per_block; information->local_table = local_table; information->maximum = (Objects_Maximum) maximum; information->maximum_id = _Objects_Build_id( a000afc8: e1d510b4 ldrh r1, [r5, #4] old_tables = information->object_blocks; information->object_blocks = object_blocks; information->inactive_per_block = inactive_per_block; information->local_table = local_table; information->maximum = (Objects_Maximum) maximum; a000afcc: e1a0a80a lsl sl, sl, #16 a000afd0: e1a02c02 lsl r2, r2, #24 a000afd4: e3822801 orr r2, r2, #65536 ; 0x10000 a000afd8: e1a0a82a lsr sl, sl, #16 (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) | a000afdc: e1822d81 orr r2, r2, r1, lsl #27 uint32_t the_class, uint32_t node, uint32_t index ) { return (( (Objects_Id) the_api ) << OBJECTS_API_START_BIT) | a000afe0: e182200a orr r2, r2, sl local_table[ index ] = NULL; } _ISR_Disable( level ); old_tables = information->object_blocks; a000afe4: e5950034 ldr r0, [r5, #52] ; 0x34 information->object_blocks = object_blocks; information->inactive_per_block = inactive_per_block; a000afe8: e585c030 str ip, [r5, #48] ; 0x30 _ISR_Disable( level ); old_tables = information->object_blocks; information->object_blocks = object_blocks; a000afec: e5859034 str r9, [r5, #52] ; 0x34 information->inactive_per_block = inactive_per_block; information->local_table = local_table; a000aff0: e585b01c str fp, [r5, #28] information->maximum = (Objects_Maximum) maximum; a000aff4: e1c5a1b0 strh sl, [r5, #16] information->maximum_id = _Objects_Build_id( a000aff8: e585200c str r2, [r5, #12] static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000affc: e129f003 msr CPSR_fc, r3 information->maximum ); _ISR_Enable( level ); _Workspace_Free( old_tables ); a000b000: eb00084e bl a000d140 <_Workspace_Free> } /* * Assign the new object block to the object block table. */ information->object_blocks[ block ] = new_object_block; a000b004: e5953034 ldr r3, [r5, #52] ; 0x34 /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( a000b008: e28d7008 add r7, sp, #8 a000b00c: e1a01008 mov r1, r8 } /* * Assign the new object block to the object block table. */ information->object_blocks[ block ] = new_object_block; a000b010: e7838104 str r8, [r3, r4, lsl #2] /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( a000b014: e1a00007 mov r0, r7 a000b018: e1d521b4 ldrh r2, [r5, #20] a000b01c: e5953018 ldr r3, [r5, #24] a000b020: eb001022 bl a000f0b0 <_Chain_Initialize> } /* * Assign the new object block to the object block table. */ information->object_blocks[ block ] = new_object_block; a000b024: e1a04104 lsl r4, r4, #2 information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); a000b028: e2858020 add r8, r5, #32 /* * Move from the local chain, initialise, then append to the inactive chain */ index = index_base; while ((the_object = (Objects_Control *) _Chain_Get( &Inactive )) != NULL ) { a000b02c: ea000009 b a000b058 <_Objects_Extend_information+0x1f8> a000b030: e5953000 ldr r3, [r5] the_object->id = _Objects_Build_id( a000b034: e1d520b4 ldrh r2, [r5, #4] information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); a000b038: e1a00008 mov r0, r8 a000b03c: e1a03c03 lsl r3, r3, #24 a000b040: e3833801 orr r3, r3, #65536 ; 0x10000 (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) | a000b044: e1833d82 orr r3, r3, r2, lsl #27 uint32_t the_class, uint32_t node, uint32_t index ) { return (( (Objects_Id) the_api ) << OBJECTS_API_START_BIT) | a000b048: e1833006 orr r3, r3, r6 */ index = index_base; while ((the_object = (Objects_Control *) _Chain_Get( &Inactive )) != NULL ) { the_object->id = _Objects_Build_id( a000b04c: e5813008 str r3, [r1, #8] information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); a000b050: ebfffce5 bl a000a3ec <_Chain_Append> index++; a000b054: e2866001 add r6, r6, #1 /* * Move from the local chain, initialise, then append to the inactive chain */ index = index_base; while ((the_object = (Objects_Control *) _Chain_Get( &Inactive )) != NULL ) { a000b058: e1a00007 mov r0, r7 a000b05c: ebfffcf5 bl a000a438 <_Chain_Get> a000b060: e2501000 subs r1, r0, #0 a000b064: 1afffff1 bne a000b030 <_Objects_Extend_information+0x1d0> index++; } information->inactive_per_block[ block ] = information->allocation_size; information->inactive = (Objects_Maximum)(information->inactive + information->allocation_size); a000b068: e1d522bc ldrh r2, [r5, #44] ; 0x2c _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; a000b06c: e1d531b4 ldrh r3, [r5, #20] a000b070: e5951030 ldr r1, [r5, #48] ; 0x30 information->inactive = (Objects_Maximum)(information->inactive + information->allocation_size); a000b074: e0832002 add r2, r3, r2 _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; a000b078: e7813004 str r3, [r1, r4] information->inactive = a000b07c: e1c522bc strh r2, [r5, #44] ; 0x2c (Objects_Maximum)(information->inactive + information->allocation_size); } a000b080: e28dd014 add sp, sp, #20 a000b084: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} * Allocate the name table, and the objects and if it fails either return or * generate a fatal error depending on auto-extending being active. */ block_size = information->allocation_size * information->size; if ( information->auto_extend ) { new_object_block = _Workspace_Allocate( block_size ); a000b088: e58d3000 str r3, [sp] a000b08c: eb000825 bl a000d128 <_Workspace_Allocate> if ( !new_object_block ) a000b090: e2508000 subs r8, r0, #0 a000b094: e59d3000 ldr r3, [sp] a000b098: 1affff9e bne a000af18 <_Objects_Extend_information+0xb8> a000b09c: eafffff7 b a000b080 <_Objects_Extend_information+0x220> <== NOT EXECUTED /* * Copy each section of the table over. This has to be performed as * separate parts as size of each block has changed. */ memcpy( object_blocks, a000b0a0: e1a03103 lsl r3, r3, #2 <== NOT EXECUTED a000b0a4: e5951034 ldr r1, [r5, #52] ; 0x34 <== NOT EXECUTED a000b0a8: e1a02003 mov r2, r3 <== NOT EXECUTED a000b0ac: e88d1008 stm sp, {r3, ip} <== NOT EXECUTED a000b0b0: eb001a38 bl a0011998 <== NOT EXECUTED information->object_blocks, block_count * sizeof(void*) ); memcpy( inactive_per_block, a000b0b4: e89d1008 ldm sp, {r3, ip} <== NOT EXECUTED a000b0b8: e5951030 ldr r1, [r5, #48] ; 0x30 <== NOT EXECUTED a000b0bc: e1a0000c mov r0, ip <== NOT EXECUTED a000b0c0: e1a02003 mov r2, r3 <== NOT EXECUTED a000b0c4: eb001a33 bl a0011998 <== NOT EXECUTED information->inactive_per_block, block_count * sizeof(uint32_t) ); memcpy( local_table, information->local_table, (information->maximum + minimum_index) * sizeof(Objects_Control *) ); a000b0c8: e1d521b0 ldrh r2, [r5, #16] <== NOT EXECUTED information->object_blocks, block_count * sizeof(void*) ); memcpy( inactive_per_block, information->inactive_per_block, block_count * sizeof(uint32_t) ); memcpy( local_table, a000b0cc: e1a0000b mov r0, fp <== NOT EXECUTED a000b0d0: e595101c ldr r1, [r5, #28] <== NOT EXECUTED information->local_table, (information->maximum + minimum_index) * sizeof(Objects_Control *) ); a000b0d4: e0872002 add r2, r7, r2 <== NOT EXECUTED information->object_blocks, block_count * sizeof(void*) ); memcpy( inactive_per_block, information->inactive_per_block, block_count * sizeof(uint32_t) ); memcpy( local_table, a000b0d8: e1a02102 lsl r2, r2, #2 <== NOT EXECUTED a000b0dc: eb001a2d bl a0011998 <== NOT EXECUTED a000b0e0: e89d1008 ldm sp, {r3, ip} <== NOT EXECUTED a000b0e4: eaffffa6 b a000af84 <_Objects_Extend_information+0x124> <== NOT EXECUTED minimum_index = _Objects_Get_index( information->minimum_id ); index_base = minimum_index; block = 0; /* if ( information->maximum < minimum_index ) */ if ( information->object_blocks == NULL ) a000b0e8: e1d0a1b0 ldrh sl, [r0, #16] a000b0ec: e1d011b4 ldrh r1, [r0, #20] /* * Search for a free block of indexes. If we do NOT need to allocate or * extend the block table, then we will change do_extend. */ do_extend = true; minimum_index = _Objects_Get_index( information->minimum_id ); a000b0f0: e1a06007 mov r6, r7 /* * Search for a free block of indexes. If we do NOT need to allocate or * extend the block table, then we will change do_extend. */ do_extend = true; a000b0f4: e3a09001 mov r9, #1 index_base = minimum_index; block = 0; /* if ( information->maximum < minimum_index ) */ if ( information->object_blocks == NULL ) block_count = 0; a000b0f8: e1a03004 mov r3, r4 a000b0fc: eaffff79 b a000aee8 <_Objects_Extend_information+0x88> else { block_count = information->maximum / information->allocation_size; for ( ; block < block_count; block++ ) { a000b100: e1a01008 mov r1, r8 <== NOT EXECUTED /* * Search for a free block of indexes. If we do NOT need to allocate or * extend the block table, then we will change do_extend. */ do_extend = true; minimum_index = _Objects_Get_index( information->minimum_id ); a000b104: e1a06007 mov r6, r7 <== NOT EXECUTED /* * Search for a free block of indexes. If we do NOT need to allocate or * extend the block table, then we will change do_extend. */ do_extend = true; a000b108: e3a09001 mov r9, #1 <== NOT EXECUTED minimum_index = _Objects_Get_index( information->minimum_id ); index_base = minimum_index; block = 0; a000b10c: e1a04003 mov r4, r3 <== NOT EXECUTED a000b110: eaffff74 b a000aee8 <_Objects_Extend_information+0x88> <== NOT EXECUTED (sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) + ((maximum + minimum_index) * sizeof(Objects_Control *)); object_blocks = (void**) _Workspace_Allocate( block_size ); if ( !object_blocks ) { _Workspace_Free( new_object_block ); a000b114: e1a00008 mov r0, r8 <== NOT EXECUTED a000b118: eb000808 bl a000d140 <_Workspace_Free> <== NOT EXECUTED return; a000b11c: eaffffd7 b a000b080 <_Objects_Extend_information+0x220> <== NOT EXECUTED =============================================================================== a000b120 <_Objects_Free>: void _Objects_Free( Objects_Information *information, Objects_Control *the_object ) { a000b120: e92d4070 push {r4, r5, r6, lr} a000b124: e1a04000 mov r4, r0 uint32_t allocation_size = information->allocation_size; _Chain_Append( &information->Inactive, &the_object->Node ); a000b128: e2800020 add r0, r0, #32 void _Objects_Free( Objects_Information *information, Objects_Control *the_object ) { a000b12c: e1a06001 mov r6, r1 uint32_t allocation_size = information->allocation_size; a000b130: e1d451b4 ldrh r5, [r4, #20] _Chain_Append( &information->Inactive, &the_object->Node ); a000b134: ebfffcac bl a000a3ec <_Chain_Append> if ( information->auto_extend ) { a000b138: e5d43012 ldrb r3, [r4, #18] a000b13c: e3530000 cmp r3, #0 a000b140: 0a000010 beq a000b188 <_Objects_Free+0x68> uint32_t block; block = (uint32_t) (_Objects_Get_index( the_object->id ) - a000b144: e1d430b8 ldrh r3, [r4, #8] <== NOT EXECUTED a000b148: e1d600b8 ldrh r0, [r6, #8] <== NOT EXECUTED _Objects_Get_index( information->minimum_id )); block /= information->allocation_size; a000b14c: e1d411b4 ldrh r1, [r4, #20] <== NOT EXECUTED /* * Check if the threshold level has been met of * 1.5 x allocation_size are free. */ if ( information->inactive > ( allocation_size + ( allocation_size >> 1 ) ) ) { a000b150: e08550a5 add r5, r5, r5, lsr #1 <== NOT EXECUTED if ( information->auto_extend ) { uint32_t block; block = (uint32_t) (_Objects_Get_index( the_object->id ) - _Objects_Get_index( information->minimum_id )); block /= information->allocation_size; a000b154: e0630000 rsb r0, r3, r0 <== NOT EXECUTED a000b158: eb0025a3 bl a00147ec <__aeabi_uidiv> <== NOT EXECUTED information->inactive_per_block[ block ]++; information->inactive++; a000b15c: e1d432bc ldrh r3, [r4, #44] ; 0x2c <== NOT EXECUTED block = (uint32_t) (_Objects_Get_index( the_object->id ) - _Objects_Get_index( information->minimum_id )); block /= information->allocation_size; information->inactive_per_block[ block ]++; a000b160: e5942030 ldr r2, [r4, #48] ; 0x30 <== NOT EXECUTED information->inactive++; a000b164: e2833001 add r3, r3, #1 <== NOT EXECUTED block = (uint32_t) (_Objects_Get_index( the_object->id ) - _Objects_Get_index( information->minimum_id )); block /= information->allocation_size; information->inactive_per_block[ block ]++; a000b168: e7921100 ldr r1, [r2, r0, lsl #2] <== NOT EXECUTED information->inactive++; a000b16c: e1a03803 lsl r3, r3, #16 <== NOT EXECUTED a000b170: e1a03823 lsr r3, r3, #16 <== NOT EXECUTED block = (uint32_t) (_Objects_Get_index( the_object->id ) - _Objects_Get_index( information->minimum_id )); block /= information->allocation_size; information->inactive_per_block[ block ]++; a000b174: e2811001 add r1, r1, #1 <== NOT EXECUTED /* * Check if the threshold level has been met of * 1.5 x allocation_size are free. */ if ( information->inactive > ( allocation_size + ( allocation_size >> 1 ) ) ) { a000b178: e1530005 cmp r3, r5 <== NOT EXECUTED block = (uint32_t) (_Objects_Get_index( the_object->id ) - _Objects_Get_index( information->minimum_id )); block /= information->allocation_size; information->inactive_per_block[ block ]++; a000b17c: e7821100 str r1, [r2, r0, lsl #2] <== NOT EXECUTED information->inactive++; a000b180: e1c432bc strh r3, [r4, #44] ; 0x2c <== NOT EXECUTED /* * Check if the threshold level has been met of * 1.5 x allocation_size are free. */ if ( information->inactive > ( allocation_size + ( allocation_size >> 1 ) ) ) { a000b184: 8a000000 bhi a000b18c <_Objects_Free+0x6c> <== NOT EXECUTED a000b188: e8bd8070 pop {r4, r5, r6, pc} _Objects_Shrink_information( information ); a000b18c: e1a00004 mov r0, r4 <== NOT EXECUTED } } } a000b190: e8bd4070 pop {r4, r5, r6, lr} <== NOT EXECUTED * Check if the threshold level has been met of * 1.5 x allocation_size are free. */ if ( information->inactive > ( allocation_size + ( allocation_size >> 1 ) ) ) { _Objects_Shrink_information( information ); a000b194: ea0000b1 b a000b460 <_Objects_Shrink_information> <== NOT EXECUTED =============================================================================== a000b284 <_Objects_Get>: * always NULL. * * If the Id is valid but the object has not been created yet, then * the local_table entry will be NULL. */ index = id - information->minimum_id + 1; a000b284: e590c008 ldr ip, [r0, #8] /* * If the index is less than maximum, then it is OK to use it to * index into the local_table array. */ if ( index <= information->maximum ) { a000b288: e1d031b0 ldrh r3, [r0, #16] Objects_Control *_Objects_Get( Objects_Information *information, Objects_Id id, Objects_Locations *location ) { a000b28c: e52de004 push {lr} ; (str lr, [sp, #-4]!) * always NULL. * * If the Id is valid but the object has not been created yet, then * the local_table entry will be NULL. */ index = id - information->minimum_id + 1; a000b290: e26cc001 rsb ip, ip, #1 a000b294: e08cc001 add ip, ip, r1 /* * If the index is less than maximum, then it is OK to use it to * index into the local_table array. */ if ( index <= information->maximum ) { a000b298: e15c0003 cmp ip, r3 /* * Object Id is not within this API and Class on this node. So * it may be global in a multiprocessing system. But it is clearly * invalid on a single processor system. */ *location = OBJECTS_ERROR; a000b29c: 83a03001 movhi r3, #1 Objects_Control *_Objects_Get( Objects_Information *information, Objects_Id id, Objects_Locations *location ) { a000b2a0: e24dd008 sub sp, sp, #8 /* * Object Id is not within this API and Class on this node. So * it may be global in a multiprocessing system. But it is clearly * invalid on a single processor system. */ *location = OBJECTS_ERROR; a000b2a4: 85823000 strhi r3, [r2] #if defined(RTEMS_MULTIPROCESSING) _Objects_MP_Is_remote( information, id, location, &the_object ); return the_object; #else return NULL; a000b2a8: 83a00000 movhi r0, #0 /* * If the index is less than maximum, then it is OK to use it to * index into the local_table array. */ if ( index <= information->maximum ) { a000b2ac: 8a000009 bhi a000b2d8 <_Objects_Get+0x54> rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; a000b2b0: e59f3048 ldr r3, [pc, #72] ; a000b300 <_Objects_Get+0x7c> a000b2b4: e5931000 ldr r1, [r3] a000b2b8: e2811001 add r1, r1, #1 a000b2bc: e5831000 str r1, [r3] _Thread_Disable_dispatch(); if ( (the_object = information->local_table[ index ]) != NULL ) { a000b2c0: e590301c ldr r3, [r0, #28] a000b2c4: e793010c ldr r0, [r3, ip, lsl #2] a000b2c8: e3500000 cmp r0, #0 *location = OBJECTS_LOCAL; a000b2cc: 13a03000 movne r3, #0 a000b2d0: 15823000 strne r3, [r2] * If the index is less than maximum, then it is OK to use it to * index into the local_table array. */ if ( index <= information->maximum ) { _Thread_Disable_dispatch(); if ( (the_object = information->local_table[ index ]) != NULL ) { a000b2d4: 0a000001 beq a000b2e0 <_Objects_Get+0x5c> _Objects_MP_Is_remote( information, id, location, &the_object ); return the_object; #else return NULL; #endif } a000b2d8: e28dd008 add sp, sp, #8 a000b2dc: e8bd8000 pop {pc} /* * Valid Id for this API, Class and Node but the object has not * been allocated yet. */ _Thread_Enable_dispatch(); a000b2e0: e58d0004 str r0, [sp, #4] <== NOT EXECUTED a000b2e4: e58d2000 str r2, [sp] <== NOT EXECUTED a000b2e8: eb000338 bl a000bfd0 <_Thread_Enable_dispatch> <== NOT EXECUTED *location = OBJECTS_ERROR; a000b2ec: e59d2000 ldr r2, [sp] <== NOT EXECUTED a000b2f0: e3a03001 mov r3, #1 <== NOT EXECUTED return NULL; a000b2f4: e59d0004 ldr r0, [sp, #4] <== NOT EXECUTED /* * Valid Id for this API, Class and Node but the object has not * been allocated yet. */ _Thread_Enable_dispatch(); *location = OBJECTS_ERROR; a000b2f8: e5823000 str r3, [r2] <== NOT EXECUTED return NULL; a000b2fc: eafffff5 b a000b2d8 <_Objects_Get+0x54> <== NOT EXECUTED =============================================================================== a000b1ac <_Objects_Get_information>: Objects_Information *_Objects_Get_information( Objects_APIs the_api, uint16_t the_class ) { a000b1ac: e1a01801 lsl r1, r1, #16 <== NOT EXECUTED a000b1b0: e92d4030 push {r4, r5, lr} <== NOT EXECUTED Objects_Information *info; int the_class_api_maximum; if ( !the_class ) a000b1b4: e1b04821 lsrs r4, r1, #16 <== NOT EXECUTED Objects_Information *_Objects_Get_information( Objects_APIs the_api, uint16_t the_class ) { a000b1b8: e1a05000 mov r5, r0 <== NOT EXECUTED Objects_Information *info; int the_class_api_maximum; if ( !the_class ) a000b1bc: 1a000001 bne a000b1c8 <_Objects_Get_information+0x1c> <== NOT EXECUTED return NULL; a000b1c0: e1a00004 mov r0, r4 <== NOT EXECUTED a000b1c4: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED /* * This call implicitly validates the_api so we do not call * _Objects_Is_api_valid above here. */ the_class_api_maximum = _Objects_API_maximum_class( the_api ); a000b1c8: eb001142 bl a000f6d8 <_Objects_API_maximum_class> <== NOT EXECUTED if ( the_class_api_maximum == 0 ) a000b1cc: e3500000 cmp r0, #0 <== NOT EXECUTED a000b1d0: 1a000000 bne a000b1d8 <_Objects_Get_information+0x2c> <== NOT EXECUTED if ( info->maximum == 0 ) return NULL; #endif return info; } a000b1d4: 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 ) a000b1d8: e1500004 cmp r0, r4 <== NOT EXECUTED return NULL; a000b1dc: 33a00000 movcc r0, #0 <== 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 ) a000b1e0: 3afffffb bcc a000b1d4 <_Objects_Get_information+0x28> <== NOT EXECUTED return NULL; if ( !_Objects_Information_table[ the_api ] ) a000b1e4: e59f3024 ldr r3, [pc, #36] ; a000b210 <_Objects_Get_information+0x64><== NOT EXECUTED a000b1e8: e7930105 ldr r0, [r3, r5, lsl #2] <== NOT EXECUTED a000b1ec: e3500000 cmp r0, #0 <== NOT EXECUTED a000b1f0: 0afffff7 beq a000b1d4 <_Objects_Get_information+0x28> <== NOT EXECUTED return NULL; info = _Objects_Information_table[ the_api ][ the_class ]; a000b1f4: e7900104 ldr r0, [r0, r4, lsl #2] <== NOT EXECUTED if ( !info ) a000b1f8: e3500000 cmp r0, #0 <== NOT EXECUTED a000b1fc: 0afffff4 beq a000b1d4 <_Objects_Get_information+0x28> <== NOT EXECUTED * 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 ) a000b200: e1d031b0 ldrh r3, [r0, #16] <== NOT EXECUTED return NULL; a000b204: e3530000 cmp r3, #0 <== NOT EXECUTED a000b208: 03a00000 moveq r0, #0 <== NOT EXECUTED a000b20c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED =============================================================================== a000b198 <_Objects_Get_information_id>: #include Objects_Information *_Objects_Get_information_id( Objects_Id id ) { a000b198: e1a01000 mov r1, r0 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API( Objects_Id id ) { return (Objects_APIs) ((id >> OBJECTS_API_START_BIT) & OBJECTS_API_VALID_BITS); a000b19c: e1a00c20 lsr r0, r0, #24 <== NOT EXECUTED return _Objects_Get_information( a000b1a0: e2000007 and r0, r0, #7 <== NOT EXECUTED a000b1a4: e1a01da1 lsr r1, r1, #27 <== NOT EXECUTED a000b1a8: eaffffff b a000b1ac <_Objects_Get_information> <== NOT EXECUTED =============================================================================== a000b214 <_Objects_Get_isr_disable>: { Objects_Control *the_object; uint32_t index; ISR_Level level; index = id - information->minimum_id + 1; a000b214: e590c008 ldr ip, [r0, #8] Objects_Information *information, Objects_Id id, Objects_Locations *location, ISR_Level *level_p ) { a000b218: e52d4004 push {r4} ; (str r4, [sp, #-4]!) Objects_Control *the_object; uint32_t index; ISR_Level level; index = id - information->minimum_id + 1; a000b21c: e26cc001 rsb ip, ip, #1 a000b220: e08cc001 add ip, ip, r1 static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000b224: e10f4000 mrs r4, CPSR a000b228: e3841080 orr r1, r4, #128 ; 0x80 a000b22c: e129f001 msr CPSR_fc, r1 _ISR_Disable( level ); if ( information->maximum >= index ) { a000b230: e1d011b0 ldrh r1, [r0, #16] a000b234: e15c0001 cmp ip, r1 a000b238: 8a000008 bhi a000b260 <_Objects_Get_isr_disable+0x4c> if ( (the_object = information->local_table[ index ]) != NULL ) { a000b23c: e590101c ldr r1, [r0, #28] a000b240: e791010c ldr r0, [r1, ip, lsl #2] a000b244: e3500000 cmp r0, #0 *location = OBJECTS_LOCAL; a000b248: 13a01000 movne r1, #0 a000b24c: 15821000 strne r1, [r2] *level_p = level; a000b250: 15834000 strne r4, [r3] index = id - information->minimum_id + 1; _ISR_Disable( level ); if ( information->maximum >= index ) { if ( (the_object = information->local_table[ index ]) != NULL ) { a000b254: 0a000006 beq a000b274 <_Objects_Get_isr_disable+0x60> _Objects_MP_Is_remote( information, id, location, &the_object ); return the_object; #else return NULL; #endif } a000b258: e8bd0010 pop {r4} a000b25c: e12fff1e bx lr static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000b260: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED _ISR_Enable( level ); *location = OBJECTS_ERROR; return NULL; } _ISR_Enable( level ); *location = OBJECTS_ERROR; a000b264: e3a03001 mov r3, #1 <== NOT EXECUTED a000b268: 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; a000b26c: e3a00000 mov r0, #0 <== NOT EXECUTED a000b270: eafffff8 b a000b258 <_Objects_Get_isr_disable+0x44> <== NOT EXECUTED a000b274: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED *location = OBJECTS_LOCAL; *level_p = level; return the_object; } _ISR_Enable( level ); *location = OBJECTS_ERROR; a000b278: e3a03001 mov r3, #1 <== NOT EXECUTED a000b27c: e5823000 str r3, [r2] <== NOT EXECUTED return NULL; a000b280: eafffff4 b a000b258 <_Objects_Get_isr_disable+0x44> <== NOT EXECUTED =============================================================================== a000cde8 <_Objects_Get_name_as_string>: char *_Objects_Get_name_as_string( Objects_Id id, size_t length, char *name ) { a000cde8: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED char lname[5]; Objects_Control *the_object; Objects_Locations location; Objects_Id tmpId; if ( length == 0 ) a000cdec: e2515000 subs r5, r1, #0 <== NOT EXECUTED char *_Objects_Get_name_as_string( Objects_Id id, size_t length, char *name ) { a000cdf0: e1a04002 mov r4, r2 <== NOT EXECUTED a000cdf4: e24dd00c sub sp, sp, #12 <== NOT EXECUTED Objects_Control *the_object; Objects_Locations location; Objects_Id tmpId; if ( length == 0 ) return NULL; a000cdf8: 01a04005 moveq r4, r5 <== NOT EXECUTED char lname[5]; Objects_Control *the_object; Objects_Locations location; Objects_Id tmpId; if ( length == 0 ) a000cdfc: 1a000002 bne a000ce0c <_Objects_Get_name_as_string+0x24> <== NOT EXECUTED _Thread_Enable_dispatch(); return name; } return NULL; /* unreachable path */ } a000ce00: e1a00004 mov r0, r4 <== NOT EXECUTED a000ce04: e28dd00c add sp, sp, #12 <== NOT EXECUTED a000ce08: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED Objects_Id tmpId; if ( length == 0 ) return NULL; if ( name == NULL ) a000ce0c: e3540000 cmp r4, #0 <== NOT EXECUTED a000ce10: 0afffffa beq a000ce00 <_Objects_Get_name_as_string+0x18> <== NOT EXECUTED return NULL; tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; a000ce14: e3500000 cmp r0, #0 <== NOT EXECUTED a000ce18: 059f30c4 ldreq r3, [pc, #196] ; a000cee4 <_Objects_Get_name_as_string+0xfc><== NOT EXECUTED a000ce1c: 11a06000 movne r6, r0 <== NOT EXECUTED a000ce20: 05933004 ldreq r3, [r3, #4] <== NOT EXECUTED a000ce24: 05936008 ldreq r6, [r3, #8] <== NOT EXECUTED information = _Objects_Get_information_id( tmpId ); a000ce28: e1a00006 mov r0, r6 <== NOT EXECUTED a000ce2c: ebffffb2 bl a000ccfc <_Objects_Get_information_id> <== NOT EXECUTED if ( !information ) a000ce30: e2503000 subs r3, r0, #0 <== NOT EXECUTED return NULL; a000ce34: 01a04003 moveq r4, r3 <== NOT EXECUTED return NULL; tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; information = _Objects_Get_information_id( tmpId ); if ( !information ) a000ce38: 0afffff0 beq a000ce00 <_Objects_Get_name_as_string+0x18> <== NOT EXECUTED return NULL; the_object = _Objects_Get( information, tmpId, &location ); a000ce3c: e1a01006 mov r1, r6 <== NOT EXECUTED a000ce40: e28d2008 add r2, sp, #8 <== NOT EXECUTED a000ce44: eb000028 bl a000ceec <_Objects_Get> <== NOT EXECUTED switch ( location ) { a000ce48: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED a000ce4c: e3530000 cmp r3, #0 <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) case OBJECTS_REMOTE: /* not supported */ #endif case OBJECTS_ERROR: return NULL; a000ce50: 13a04000 movne r4, #0 <== NOT EXECUTED information = _Objects_Get_information_id( tmpId ); if ( !information ) return NULL; the_object = _Objects_Get( information, tmpId, &location ); switch ( location ) { a000ce54: 1affffe9 bne a000ce00 <_Objects_Get_name_as_string+0x18> <== NOT EXECUTED if ( information->is_string ) { s = the_object->name.name_p; } else #endif { uint32_t u32_name = (uint32_t) the_object->name.name_u32; a000ce58: e590100c ldr r1, [r0, #12] <== NOT EXECUTED s = lname; } d = name; if ( s ) { for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) { a000ce5c: e2555001 subs r5, r5, #1 <== NOT EXECUTED lname[ 0 ] = (u32_name >> 24) & 0xff; lname[ 1 ] = (u32_name >> 16) & 0xff; lname[ 2 ] = (u32_name >> 8) & 0xff; lname[ 3 ] = (u32_name >> 0) & 0xff; lname[ 4 ] = '\0'; a000ce60: e5cd3004 strb r3, [sp, #4] <== NOT EXECUTED } else #endif { uint32_t u32_name = (uint32_t) the_object->name.name_u32; lname[ 0 ] = (u32_name >> 24) & 0xff; a000ce64: e1a02c21 lsr r2, r1, #24 <== NOT EXECUTED lname[ 1 ] = (u32_name >> 16) & 0xff; a000ce68: e1a0c821 lsr ip, r1, #16 <== NOT EXECUTED lname[ 2 ] = (u32_name >> 8) & 0xff; a000ce6c: e1a00421 lsr r0, r1, #8 <== NOT EXECUTED } else #endif { uint32_t u32_name = (uint32_t) the_object->name.name_u32; lname[ 0 ] = (u32_name >> 24) & 0xff; a000ce70: e5cd2000 strb r2, [sp] <== NOT EXECUTED lname[ 1 ] = (u32_name >> 16) & 0xff; a000ce74: e5cdc001 strb ip, [sp, #1] <== NOT EXECUTED lname[ 2 ] = (u32_name >> 8) & 0xff; a000ce78: e5cd0002 strb r0, [sp, #2] <== NOT EXECUTED lname[ 3 ] = (u32_name >> 0) & 0xff; a000ce7c: e5cd1003 strb r1, [sp, #3] <== NOT EXECUTED s = lname; } d = name; if ( s ) { for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) { a000ce80: 0a000015 beq a000cedc <_Objects_Get_name_as_string+0xf4> <== NOT EXECUTED a000ce84: e3520000 cmp r2, #0 <== NOT EXECUTED a000ce88: 0a000013 beq a000cedc <_Objects_Get_name_as_string+0xf4> <== NOT EXECUTED a000ce8c: e59fc054 ldr ip, [pc, #84] ; a000cee8 <_Objects_Get_name_as_string+0x100><== NOT EXECUTED a000ce90: e1a01004 mov r1, r4 <== NOT EXECUTED a000ce94: ea000002 b a000cea4 <_Objects_Get_name_as_string+0xbc> <== NOT EXECUTED a000ce98: e7dd2003 ldrb r2, [sp, r3] <== NOT EXECUTED a000ce9c: e3520000 cmp r2, #0 <== NOT EXECUTED a000cea0: 0a000009 beq a000cecc <_Objects_Get_name_as_string+0xe4> <== NOT EXECUTED *d = (isprint((unsigned char)*s)) ? *s : '*'; a000cea4: e59c0000 ldr r0, [ip] <== NOT EXECUTED s = lname; } d = name; if ( s ) { for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) { a000cea8: e2833001 add r3, r3, #1 <== NOT EXECUTED *d = (isprint((unsigned char)*s)) ? *s : '*'; a000ceac: e0800002 add r0, r0, r2 <== NOT EXECUTED a000ceb0: e5d00001 ldrb r0, [r0, #1] <== NOT EXECUTED a000ceb4: e3100097 tst r0, #151 ; 0x97 <== NOT EXECUTED a000ceb8: 03a0202a moveq r2, #42 ; 0x2a <== NOT EXECUTED a000cebc: e4c12001 strb r2, [r1], #1 <== NOT EXECUTED s = lname; } d = name; if ( s ) { for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) { a000cec0: e1530005 cmp r3, r5 <== NOT EXECUTED a000cec4: e1a00001 mov r0, r1 <== NOT EXECUTED a000cec8: 3afffff2 bcc a000ce98 <_Objects_Get_name_as_string+0xb0> <== NOT EXECUTED *d = (isprint((unsigned char)*s)) ? *s : '*'; } } *d = '\0'; a000cecc: e3a03000 mov r3, #0 <== NOT EXECUTED a000ced0: e5c03000 strb r3, [r0] <== NOT EXECUTED _Thread_Enable_dispatch(); a000ced4: eb000335 bl a000dbb0 <_Thread_Enable_dispatch> <== NOT EXECUTED return name; a000ced8: eaffffc8 b a000ce00 <_Objects_Get_name_as_string+0x18> <== NOT EXECUTED s = lname; } d = name; if ( s ) { for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) { a000cedc: e1a00004 mov r0, r4 <== NOT EXECUTED a000cee0: eafffff9 b a000cecc <_Objects_Get_name_as_string+0xe4> <== NOT EXECUTED =============================================================================== a000b44c <_Objects_Get_next>: Objects_Information *information, Objects_Id id, Objects_Locations *location_p, Objects_Id *next_id_p ) { a000b44c: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED Objects_Control *object; Objects_Id next_id; if ( !information ) a000b450: e2504000 subs r4, r0, #0 <== NOT EXECUTED Objects_Information *information, Objects_Id id, Objects_Locations *location_p, Objects_Id *next_id_p ) { a000b454: e1a05002 mov r5, r2 <== NOT EXECUTED a000b458: e1a08003 mov r8, r3 <== NOT EXECUTED Objects_Control *object; Objects_Id next_id; if ( !information ) a000b45c: 1a000001 bne a000b468 <_Objects_Get_next+0x1c> <== NOT EXECUTED return NULL; a000b460: e1a00004 mov r0, r4 <== NOT EXECUTED a000b464: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED if ( !location_p ) a000b468: e3520000 cmp r2, #0 <== NOT EXECUTED a000b46c: 1a000001 bne a000b478 <_Objects_Get_next+0x2c> <== NOT EXECUTED return NULL; a000b470: e1a00002 mov r0, r2 <== NOT EXECUTED a000b474: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED if ( !next_id_p ) a000b478: e3530000 cmp r3, #0 <== NOT EXECUTED a000b47c: 0a000016 beq a000b4dc <_Objects_Get_next+0x90> <== NOT EXECUTED return NULL; if (_Objects_Get_index(id) == OBJECTS_ID_INITIAL_INDEX) a000b480: e1b03801 lsls r3, r1, #16 <== NOT EXECUTED next_id = information->minimum_id; a000b484: 05946008 ldreq r6, [r4, #8] <== NOT EXECUTED else next_id = id; a000b488: 11a06001 movne r6, r1 <== NOT EXECUTED do { /* walked off end of list? */ if (_Objects_Get_index(next_id) > information->maximum) a000b48c: e1d4c1b0 ldrh ip, [r4, #16] <== NOT EXECUTED a000b490: e1a07806 lsl r7, r6, #16 <== NOT EXECUTED *location_p = OBJECTS_ERROR; goto final; } /* try to grab one */ object = _Objects_Get(information, next_id, location_p); a000b494: e1a01006 mov r1, r6 <== NOT EXECUTED else next_id = id; do { /* walked off end of list? */ if (_Objects_Get_index(next_id) > information->maximum) a000b498: e15c0827 cmp ip, r7, lsr #16 <== NOT EXECUTED *location_p = OBJECTS_ERROR; goto final; } /* try to grab one */ object = _Objects_Get(information, next_id, location_p); a000b49c: e1a00004 mov r0, r4 <== NOT EXECUTED a000b4a0: e1a02005 mov r2, r5 <== NOT EXECUTED else next_id = id; do { /* walked off end of list? */ if (_Objects_Get_index(next_id) > information->maximum) a000b4a4: 3a000006 bcc a000b4c4 <_Objects_Get_next+0x78> <== NOT EXECUTED *location_p = OBJECTS_ERROR; goto final; } /* try to grab one */ object = _Objects_Get(information, next_id, location_p); a000b4a8: eb00000d bl a000b4e4 <_Objects_Get> <== NOT EXECUTED next_id++; } while (*location_p != OBJECTS_LOCAL); a000b4ac: e5953000 ldr r3, [r5] <== NOT EXECUTED } /* try to grab one */ object = _Objects_Get(information, next_id, location_p); next_id++; a000b4b0: e2866001 add r6, r6, #1 <== NOT EXECUTED } while (*location_p != OBJECTS_LOCAL); a000b4b4: e3530000 cmp r3, #0 <== NOT EXECUTED a000b4b8: 1afffff3 bne a000b48c <_Objects_Get_next+0x40> <== NOT EXECUTED *next_id_p = next_id; a000b4bc: e5886000 str r6, [r8] <== NOT EXECUTED return object; a000b4c0: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED do { /* walked off end of list? */ if (_Objects_Get_index(next_id) > information->maximum) { *location_p = OBJECTS_ERROR; a000b4c4: e3a03001 mov r3, #1 <== NOT EXECUTED a000b4c8: e5853000 str r3, [r5] <== NOT EXECUTED *next_id_p = next_id; return object; final: *next_id_p = OBJECTS_ID_FINAL; a000b4cc: e3e03000 mvn r3, #0 <== NOT EXECUTED return 0; a000b4d0: e3a00000 mov r0, #0 <== NOT EXECUTED *next_id_p = next_id; return object; final: *next_id_p = OBJECTS_ID_FINAL; a000b4d4: e5883000 str r3, [r8] <== NOT EXECUTED return 0; a000b4d8: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED if ( !location_p ) return NULL; if ( !next_id_p ) return NULL; a000b4dc: e1a00003 mov r0, r3 <== NOT EXECUTED return object; final: *next_id_p = OBJECTS_ID_FINAL; return 0; } a000b4e0: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED =============================================================================== a001cbf4 <_Objects_Get_no_protection>: /* * You can't just extract the index portion or you can get tricked * by a value between 1 and maximum. */ index = id - information->minimum_id + 1; a001cbf4: e590c008 ldr ip, [r0, #8] <== NOT EXECUTED if ( information->maximum >= index ) { a001cbf8: e1d031b0 ldrh r3, [r0, #16] <== NOT EXECUTED /* * You can't just extract the index portion or you can get tricked * by a value between 1 and maximum. */ index = id - information->minimum_id + 1; a001cbfc: e26cc001 rsb ip, ip, #1 <== NOT EXECUTED a001cc00: e08cc001 add ip, ip, r1 <== NOT EXECUTED if ( information->maximum >= index ) { a001cc04: e15c0003 cmp ip, r3 <== NOT EXECUTED a001cc08: 8a000005 bhi a001cc24 <_Objects_Get_no_protection+0x30> <== NOT EXECUTED if ( (the_object = information->local_table[ index ]) != NULL ) { a001cc0c: e590301c ldr r3, [r0, #28] <== NOT EXECUTED a001cc10: e793010c ldr r0, [r3, ip, lsl #2] <== NOT EXECUTED a001cc14: e3500000 cmp r0, #0 <== NOT EXECUTED *location = OBJECTS_LOCAL; a001cc18: 13a03000 movne r3, #0 <== NOT EXECUTED a001cc1c: 15823000 strne r3, [r2] <== NOT EXECUTED * by a value between 1 and maximum. */ index = id - information->minimum_id + 1; if ( information->maximum >= index ) { if ( (the_object = information->local_table[ index ]) != NULL ) { a001cc20: 112fff1e bxne lr <== NOT EXECUTED /* * This isn't supported or required yet for Global objects so * if it isn't local, we don't find it. */ *location = OBJECTS_ERROR; a001cc24: e3a03001 mov r3, #1 <== NOT EXECUTED a001cc28: e5823000 str r3, [r2] <== NOT EXECUTED return NULL; a001cc2c: e3a00000 mov r0, #0 <== NOT EXECUTED } a001cc30: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000c994 <_Objects_Id_to_name>: /* * Caller is trusted for name != NULL. */ tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; a000c994: e3500000 cmp r0, #0 <== NOT EXECUTED a000c998: 059f3078 ldreq r3, [pc, #120] ; a000ca18 <_Objects_Id_to_name+0x84><== NOT EXECUTED */ Objects_Name_or_id_lookup_errors _Objects_Id_to_name ( Objects_Id id, Objects_Name *name ) { a000c99c: e92d4010 push {r4, lr} <== NOT EXECUTED /* * Caller is trusted for name != NULL. */ tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; a000c9a0: 05933004 ldreq r3, [r3, #4] <== NOT EXECUTED */ Objects_Name_or_id_lookup_errors _Objects_Id_to_name ( Objects_Id id, Objects_Name *name ) { a000c9a4: e1a04001 mov r4, r1 <== NOT EXECUTED /* * Caller is trusted for name != NULL. */ tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; a000c9a8: 11a01000 movne r1, r0 <== NOT EXECUTED a000c9ac: 05931008 ldreq r1, [r3, #8] <== NOT EXECUTED */ Objects_Name_or_id_lookup_errors _Objects_Id_to_name ( Objects_Id id, Objects_Name *name ) { a000c9b0: e24dd004 sub sp, sp, #4 <== NOT EXECUTED a000c9b4: e1a03c21 lsr r3, r1, #24 <== NOT EXECUTED a000c9b8: e2033007 and r3, r3, #7 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid( uint32_t the_api ) { if ( !the_api || the_api > OBJECTS_APIS_LAST ) a000c9bc: e2432001 sub r2, r3, #1 <== NOT EXECUTED a000c9c0: e3520002 cmp r2, #2 <== NOT EXECUTED a000c9c4: 8a000010 bhi a000ca0c <_Objects_Id_to_name+0x78> <== NOT EXECUTED the_api = _Objects_Get_API( tmpId ); if ( !_Objects_Is_api_valid( the_api ) ) return OBJECTS_INVALID_ID; if ( !_Objects_Information_table[ the_api ] ) a000c9c8: e59f204c ldr r2, [pc, #76] ; a000ca1c <_Objects_Id_to_name+0x88><== NOT EXECUTED a000c9cc: e7923103 ldr r3, [r2, r3, lsl #2] <== NOT EXECUTED a000c9d0: e3530000 cmp r3, #0 <== NOT EXECUTED a000c9d4: 0a00000c beq a000ca0c <_Objects_Id_to_name+0x78> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE uint32_t _Objects_Get_class( Objects_Id id ) { return (uint32_t) a000c9d8: e1a02da1 lsr r2, r1, #27 <== NOT EXECUTED return OBJECTS_INVALID_ID; the_class = _Objects_Get_class( tmpId ); information = _Objects_Information_table[ the_api ][ the_class ]; a000c9dc: e7930102 ldr r0, [r3, r2, lsl #2] <== NOT EXECUTED if ( !information ) a000c9e0: e3500000 cmp r0, #0 <== NOT EXECUTED a000c9e4: 0a000008 beq a000ca0c <_Objects_Id_to_name+0x78> <== NOT EXECUTED #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES) if ( information->is_string ) return OBJECTS_INVALID_ID; #endif the_object = _Objects_Get( information, tmpId, &ignored_location ); a000c9e8: e1a0200d mov r2, sp <== NOT EXECUTED a000c9ec: ebffffc8 bl a000c914 <_Objects_Get> <== NOT EXECUTED if ( !the_object ) a000c9f0: e3500000 cmp r0, #0 <== NOT EXECUTED a000c9f4: 0a000004 beq a000ca0c <_Objects_Id_to_name+0x78> <== NOT EXECUTED return OBJECTS_INVALID_ID; *name = the_object->name; a000c9f8: e590300c ldr r3, [r0, #12] <== NOT EXECUTED a000c9fc: e5843000 str r3, [r4] <== NOT EXECUTED _Thread_Enable_dispatch(); a000ca00: eb000339 bl a000d6ec <_Thread_Enable_dispatch> <== NOT EXECUTED return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL; a000ca04: e3a00000 mov r0, #0 <== NOT EXECUTED a000ca08: ea000000 b a000ca10 <_Objects_Id_to_name+0x7c> <== NOT EXECUTED the_api = _Objects_Get_API( tmpId ); if ( !_Objects_Is_api_valid( the_api ) ) return OBJECTS_INVALID_ID; if ( !_Objects_Information_table[ the_api ] ) return OBJECTS_INVALID_ID; a000ca0c: e3a00003 mov r0, #3 <== NOT EXECUTED return OBJECTS_INVALID_ID; *name = the_object->name; _Thread_Enable_dispatch(); return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL; } a000ca10: e28dd004 add sp, sp, #4 <== NOT EXECUTED a000ca14: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a000b3d8 <_Objects_Name_to_id_u32>: Objects_Name name_for_mp; #endif /* ASSERT: information->is_string == false */ if ( !id ) a000b3d8: e3530000 cmp r3, #0 <== NOT EXECUTED Objects_Information *information, uint32_t name, uint32_t node, Objects_Id *id ) { a000b3dc: e92d0030 push {r4, r5} <== NOT EXECUTED #endif /* ASSERT: information->is_string == false */ if ( !id ) return OBJECTS_INVALID_ADDRESS; a000b3e0: 03a00002 moveq r0, #2 <== NOT EXECUTED Objects_Name name_for_mp; #endif /* ASSERT: information->is_string == false */ if ( !id ) a000b3e4: 0a000005 beq a000b400 <_Objects_Name_to_id_u32+0x28> <== NOT EXECUTED return OBJECTS_INVALID_ADDRESS; if ( name == 0 ) a000b3e8: e3510000 cmp r1, #0 <== NOT EXECUTED a000b3ec: 0a000002 beq a000b3fc <_Objects_Name_to_id_u32+0x24> <== NOT EXECUTED return OBJECTS_INVALID_NAME; search_local_node = false; if ( information->maximum != 0 && a000b3f0: e1d051b0 ldrh r5, [r0, #16] <== NOT EXECUTED a000b3f4: e3550000 cmp r5, #0 <== NOT EXECUTED a000b3f8: 1a000002 bne a000b408 <_Objects_Name_to_id_u32+0x30> <== 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; a000b3fc: e3a00001 mov r0, #1 <== NOT EXECUTED #endif } a000b400: e8bd0030 pop {r4, r5} <== NOT EXECUTED a000b404: e12fff1e bx lr <== NOT EXECUTED if ( name == 0 ) return OBJECTS_INVALID_NAME; search_local_node = false; if ( information->maximum != 0 && a000b408: e3720106 cmn r2, #-2147483647 ; 0x80000001 <== NOT EXECUTED a000b40c: 13520000 cmpne r2, #0 <== NOT EXECUTED a000b410: 1a00000b bne a000b444 <_Objects_Name_to_id_u32+0x6c> <== NOT EXECUTED _Objects_Is_local_node( node ) )) search_local_node = true; if ( search_local_node ) { for ( index = 1; index <= information->maximum; index++ ) { a000b414: e590c01c ldr ip, [r0, #28] <== NOT EXECUTED a000b418: e3a02001 mov r2, #1 <== NOT EXECUTED the_object = information->local_table[ index ]; a000b41c: e5bc0004 ldr r0, [ip, #4]! <== NOT EXECUTED _Objects_Is_local_node( node ) )) search_local_node = true; if ( search_local_node ) { for ( index = 1; index <= information->maximum; index++ ) { a000b420: e2822001 add r2, r2, #1 <== NOT EXECUTED the_object = information->local_table[ index ]; if ( !the_object ) a000b424: e3500000 cmp r0, #0 <== NOT EXECUTED a000b428: 0a000002 beq a000b438 <_Objects_Name_to_id_u32+0x60> <== NOT EXECUTED continue; if ( name == the_object->name.name_u32 ) { a000b42c: e590400c ldr r4, [r0, #12] <== NOT EXECUTED a000b430: e1540001 cmp r4, r1 <== NOT EXECUTED a000b434: 0a000005 beq a000b450 <_Objects_Name_to_id_u32+0x78> <== NOT EXECUTED _Objects_Is_local_node( node ) )) search_local_node = true; if ( search_local_node ) { for ( index = 1; index <= information->maximum; index++ ) { a000b438: e1550002 cmp r5, r2 <== NOT EXECUTED a000b43c: 2afffff6 bcs a000b41c <_Objects_Name_to_id_u32+0x44> <== NOT EXECUTED a000b440: eaffffed b a000b3fc <_Objects_Name_to_id_u32+0x24> <== NOT EXECUTED search_local_node = false; if ( information->maximum != 0 && (node == OBJECTS_SEARCH_ALL_NODES || node == OBJECTS_SEARCH_LOCAL_NODE || a000b444: e3520001 cmp r2, #1 <== NOT EXECUTED a000b448: 1affffeb bne a000b3fc <_Objects_Name_to_id_u32+0x24> <== NOT EXECUTED a000b44c: eafffff0 b a000b414 <_Objects_Name_to_id_u32+0x3c> <== NOT EXECUTED the_object = information->local_table[ index ]; if ( !the_object ) continue; if ( name == the_object->name.name_u32 ) { *id = the_object->id; a000b450: e5902008 ldr r2, [r0, #8] <== NOT EXECUTED return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL; a000b454: e3a00000 mov r0, #0 <== NOT EXECUTED the_object = information->local_table[ index ]; if ( !the_object ) continue; if ( name == the_object->name.name_u32 ) { *id = the_object->id; a000b458: e5832000 str r2, [r3] <== NOT EXECUTED return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL; a000b45c: eaffffe7 b a000b400 <_Objects_Name_to_id_u32+0x28> <== NOT EXECUTED =============================================================================== a000d910 <_Objects_Set_name>: { size_t length; const char *s; s = name; length = strnlen( name, information->name_length ); a000d910: e1d033b8 ldrh r3, [r0, #56] ; 0x38 <== NOT EXECUTED bool _Objects_Set_name( Objects_Information *information, Objects_Control *the_object, const char *name ) { a000d914: e92d4030 push {r4, r5, lr} <== NOT EXECUTED size_t length; const char *s; s = name; length = strnlen( name, information->name_length ); a000d918: e1a00002 mov r0, r2 <== NOT EXECUTED bool _Objects_Set_name( Objects_Information *information, Objects_Control *the_object, const char *name ) { a000d91c: e1a05001 mov r5, r1 <== NOT EXECUTED size_t length; const char *s; s = name; length = strnlen( name, information->name_length ); a000d920: e1a01003 mov r1, r3 <== NOT EXECUTED bool _Objects_Set_name( Objects_Information *information, Objects_Control *the_object, const char *name ) { a000d924: e1a04002 mov r4, r2 <== NOT EXECUTED size_t length; const char *s; s = name; length = strnlen( name, information->name_length ); a000d928: eb001d76 bl a0014f08 <== NOT EXECUTED d[length] = '\0'; the_object->name.name_p = d; } else #endif { the_object->name.name_u32 = _Objects_Build_name( a000d92c: e5d42000 ldrb r2, [r4] <== NOT EXECUTED a000d930: e3500001 cmp r0, #1 <== NOT EXECUTED a000d934: e1a02c02 lsl r2, r2, #24 <== NOT EXECUTED a000d938: 9a00000c bls a000d970 <_Objects_Set_name+0x60> <== NOT EXECUTED a000d93c: e5d43001 ldrb r3, [r4, #1] <== NOT EXECUTED a000d940: e3500002 cmp r0, #2 <== NOT EXECUTED a000d944: e1822803 orr r2, r2, r3, lsl #16 <== NOT EXECUTED a000d948: 0a000009 beq a000d974 <_Objects_Set_name+0x64> <== NOT EXECUTED a000d94c: e5d43002 ldrb r3, [r4, #2] <== NOT EXECUTED a000d950: e3500003 cmp r0, #3 <== NOT EXECUTED ); } return true; } a000d954: 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( a000d958: e1822403 orr r2, r2, r3, lsl #8 <== NOT EXECUTED a000d95c: 15d43003 ldrbne r3, [r4, #3] <== NOT EXECUTED a000d960: 03a03020 moveq r3, #32 <== NOT EXECUTED a000d964: e1823003 orr r3, r2, r3 <== NOT EXECUTED a000d968: e585300c str r3, [r5, #12] <== NOT EXECUTED ); } return true; } a000d96c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED d[length] = '\0'; the_object->name.name_p = d; } else #endif { the_object->name.name_u32 = _Objects_Build_name( a000d970: e3822602 orr r2, r2, #2097152 ; 0x200000 <== NOT EXECUTED a000d974: e3822a02 orr r2, r2, #8192 ; 0x2000 <== NOT EXECUTED a000d978: e3a03020 mov r3, #32 <== NOT EXECUTED a000d97c: e1823003 orr r3, r2, r3 <== NOT EXECUTED a000d980: e585300c str r3, [r5, #12] <== NOT EXECUTED ); } return true; } a000d984: e3a00001 mov r0, #1 <== NOT EXECUTED a000d988: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED =============================================================================== a000b460 <_Objects_Shrink_information>: */ void _Objects_Shrink_information( Objects_Information *information ) { a000b460: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED /* * Search the list to find block or chunk with all objects inactive. */ index_base = _Objects_Get_index( information->minimum_id ); a000b464: e1d040b8 ldrh r4, [r0, #8] <== NOT EXECUTED block_count = (information->maximum - index_base) / a000b468: e1d051b4 ldrh r5, [r0, #20] <== NOT EXECUTED */ void _Objects_Shrink_information( Objects_Information *information ) { a000b46c: e1a06000 mov r6, r0 <== NOT EXECUTED /* * Search the list to find block or chunk with all objects inactive. */ index_base = _Objects_Get_index( information->minimum_id ); block_count = (information->maximum - index_base) / a000b470: e1d001b0 ldrh r0, [r0, #16] <== NOT EXECUTED a000b474: e1a01005 mov r1, r5 <== NOT EXECUTED a000b478: e0640000 rsb r0, r4, r0 <== NOT EXECUTED a000b47c: eb0024da bl a00147ec <__aeabi_uidiv> <== NOT EXECUTED information->allocation_size; for ( block = 0; block < block_count; block++ ) { a000b480: e3500000 cmp r0, #0 <== NOT EXECUTED a000b484: 0a00000d beq a000b4c0 <_Objects_Shrink_information+0x60> <== NOT EXECUTED if ( information->inactive_per_block[ block ] == a000b488: e5962030 ldr r2, [r6, #48] ; 0x30 <== NOT EXECUTED a000b48c: e5923000 ldr r3, [r2] <== NOT EXECUTED a000b490: e1550003 cmp r5, r3 <== NOT EXECUTED index_base = _Objects_Get_index( information->minimum_id ); block_count = (information->maximum - index_base) / information->allocation_size; for ( block = 0; block < block_count; block++ ) { a000b494: 13a03000 movne r3, #0 <== NOT EXECUTED if ( information->inactive_per_block[ block ] == a000b498: 1a000005 bne a000b4b4 <_Objects_Shrink_information+0x54> <== NOT EXECUTED a000b49c: ea000008 b a000b4c4 <_Objects_Shrink_information+0x64> <== NOT EXECUTED a000b4a0: e5b21004 ldr r1, [r2, #4]! <== NOT EXECUTED information->inactive -= information->allocation_size; return; } index_base += information->allocation_size; a000b4a4: e0844005 add r4, r4, r5 <== NOT EXECUTED a000b4a8: e1a07103 lsl r7, r3, #2 <== NOT EXECUTED index_base = _Objects_Get_index( information->minimum_id ); block_count = (information->maximum - index_base) / information->allocation_size; for ( block = 0; block < block_count; block++ ) { if ( information->inactive_per_block[ block ] == a000b4ac: e1550001 cmp r5, r1 <== NOT EXECUTED a000b4b0: 0a000004 beq a000b4c8 <_Objects_Shrink_information+0x68> <== NOT EXECUTED index_base = _Objects_Get_index( information->minimum_id ); block_count = (information->maximum - index_base) / information->allocation_size; for ( block = 0; block < block_count; block++ ) { a000b4b4: e2833001 add r3, r3, #1 <== NOT EXECUTED a000b4b8: e1500003 cmp r0, r3 <== NOT EXECUTED a000b4bc: 8afffff7 bhi a000b4a0 <_Objects_Shrink_information+0x40> <== NOT EXECUTED a000b4c0: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED if ( information->inactive_per_block[ block ] == a000b4c4: e3a07000 mov r7, #0 <== NOT EXECUTED information->allocation_size ) { /* * Assume the Inactive chain is never empty at this point */ the_object = (Objects_Control *) _Chain_First( &information->Inactive ); a000b4c8: e5960020 ldr r0, [r6, #32] <== NOT EXECUTED a000b4cc: ea000002 b a000b4dc <_Objects_Shrink_information+0x7c> <== NOT EXECUTED if ((index >= index_base) && (index < (index_base + information->allocation_size))) { _Chain_Extract( &extract_me->Node ); } } while ( the_object ); a000b4d0: e3550000 cmp r5, #0 <== NOT EXECUTED a000b4d4: 0a00000b beq a000b508 <_Objects_Shrink_information+0xa8> <== NOT EXECUTED index = _Objects_Get_index( the_object->id ); /* * Get the next node before the node is extracted */ extract_me = the_object; the_object = (Objects_Control *) the_object->Node.next; a000b4d8: e1a00005 mov r0, r5 <== NOT EXECUTED * Assume the Inactive chain is never empty at this point */ the_object = (Objects_Control *) _Chain_First( &information->Inactive ); do { index = _Objects_Get_index( the_object->id ); a000b4dc: e1d030b8 ldrh r3, [r0, #8] <== NOT EXECUTED /* * Get the next node before the node is extracted */ extract_me = the_object; the_object = (Objects_Control *) the_object->Node.next; a000b4e0: e5905000 ldr r5, [r0] <== NOT EXECUTED if ((index >= index_base) && a000b4e4: e1530004 cmp r3, r4 <== NOT EXECUTED a000b4e8: 3afffff8 bcc a000b4d0 <_Objects_Shrink_information+0x70> <== NOT EXECUTED (index < (index_base + information->allocation_size))) { a000b4ec: e1d621b4 ldrh r2, [r6, #20] <== NOT EXECUTED a000b4f0: e0842002 add r2, r4, r2 <== NOT EXECUTED /* * Get the next node before the node is extracted */ extract_me = the_object; the_object = (Objects_Control *) the_object->Node.next; if ((index >= index_base) && a000b4f4: e1530002 cmp r3, r2 <== NOT EXECUTED a000b4f8: 2afffff4 bcs a000b4d0 <_Objects_Shrink_information+0x70> <== NOT EXECUTED (index < (index_base + information->allocation_size))) { _Chain_Extract( &extract_me->Node ); a000b4fc: ebfffbc5 bl a000a418 <_Chain_Extract> <== NOT EXECUTED } } while ( the_object ); a000b500: e3550000 cmp r5, #0 <== NOT EXECUTED a000b504: 1afffff3 bne a000b4d8 <_Objects_Shrink_information+0x78> <== NOT EXECUTED /* * Free the memory and reset the structures in the object' information */ _Workspace_Free( information->object_blocks[ block ] ); a000b508: e5963034 ldr r3, [r6, #52] ; 0x34 <== NOT EXECUTED a000b50c: e7930007 ldr r0, [r3, r7] <== NOT EXECUTED a000b510: eb00070a bl a000d140 <_Workspace_Free> <== NOT EXECUTED information->object_blocks[ block ] = NULL; information->inactive_per_block[ block ] = 0; information->inactive -= information->allocation_size; a000b514: e1d602bc ldrh r0, [r6, #44] ; 0x2c <== NOT EXECUTED a000b518: e1d631b4 ldrh r3, [r6, #20] <== NOT EXECUTED /* * Free the memory and reset the structures in the object' information */ _Workspace_Free( information->object_blocks[ block ] ); information->object_blocks[ block ] = NULL; a000b51c: e5961034 ldr r1, [r6, #52] ; 0x34 <== NOT EXECUTED information->inactive_per_block[ block ] = 0; a000b520: e5962030 ldr r2, [r6, #48] ; 0x30 <== NOT EXECUTED information->inactive -= information->allocation_size; a000b524: e0633000 rsb r3, r3, r0 <== NOT EXECUTED /* * Free the memory and reset the structures in the object' information */ _Workspace_Free( information->object_blocks[ block ] ); information->object_blocks[ block ] = NULL; a000b528: e7815007 str r5, [r1, r7] <== NOT EXECUTED information->inactive_per_block[ block ] = 0; a000b52c: e7825007 str r5, [r2, r7] <== NOT EXECUTED information->inactive -= information->allocation_size; a000b530: e1c632bc strh r3, [r6, #44] ; 0x2c <== NOT EXECUTED return; a000b534: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED =============================================================================== a000b860 <_Protected_heap_Extend>: bool _Protected_heap_Extend( Heap_Control *the_heap, void *starting_address, uintptr_t size ) { a000b860: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED bool extend_ok; uintptr_t amount_extended; _RTEMS_Lock_allocator(); a000b864: e59f4040 ldr r4, [pc, #64] ; a000b8ac <_Protected_heap_Extend+0x4c><== NOT EXECUTED bool _Protected_heap_Extend( Heap_Control *the_heap, void *starting_address, uintptr_t size ) { a000b868: e24dd004 sub sp, sp, #4 <== NOT EXECUTED a000b86c: e1a05000 mov r5, r0 <== NOT EXECUTED a000b870: e1a07001 mov r7, r1 <== NOT EXECUTED a000b874: e1a06002 mov r6, r2 <== NOT EXECUTED bool extend_ok; uintptr_t amount_extended; _RTEMS_Lock_allocator(); a000b878: e5940000 ldr r0, [r4] <== NOT EXECUTED a000b87c: ebfffb8a bl a000a6ac <_API_Mutex_Lock> <== NOT EXECUTED extend_ok = _Heap_Extend(the_heap, starting_address, size, &amount_extended); a000b880: e1a01007 mov r1, r7 <== NOT EXECUTED a000b884: e1a02006 mov r2, r6 <== NOT EXECUTED a000b888: e1a0300d mov r3, sp <== NOT EXECUTED a000b88c: e1a00005 mov r0, r5 <== NOT EXECUTED a000b890: eb000ff0 bl a000f858 <_Heap_Extend> <== NOT EXECUTED a000b894: e1a05000 mov r5, r0 <== NOT EXECUTED _RTEMS_Unlock_allocator(); a000b898: e5940000 ldr r0, [r4] <== NOT EXECUTED a000b89c: ebfffb9e bl a000a71c <_API_Mutex_Unlock> <== NOT EXECUTED return extend_ok; } a000b8a0: e1a00005 mov r0, r5 <== NOT EXECUTED a000b8a4: e28dd004 add sp, sp, #4 <== NOT EXECUTED a000b8a8: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED =============================================================================== a000b584 <_Protected_heap_Free>: bool _Protected_heap_Free( Heap_Control *the_heap, void *start_address ) { a000b584: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED bool status; _RTEMS_Lock_allocator(); a000b588: e59f402c ldr r4, [pc, #44] ; a000b5bc <_Protected_heap_Free+0x38><== NOT EXECUTED bool _Protected_heap_Free( Heap_Control *the_heap, void *start_address ) { a000b58c: e1a05000 mov r5, r0 <== NOT EXECUTED a000b590: e1a06001 mov r6, r1 <== NOT EXECUTED bool status; _RTEMS_Lock_allocator(); a000b594: e5940000 ldr r0, [r4] <== NOT EXECUTED a000b598: ebfffb6a bl a000a348 <_API_Mutex_Lock> <== NOT EXECUTED status = _Heap_Free( the_heap, start_address ); a000b59c: e1a01006 mov r1, r6 <== NOT EXECUTED a000b5a0: e1a00005 mov r0, r5 <== NOT EXECUTED a000b5a4: eb000fd8 bl a000f50c <_Heap_Free> <== NOT EXECUTED a000b5a8: e1a05000 mov r5, r0 <== NOT EXECUTED _RTEMS_Unlock_allocator(); a000b5ac: e5940000 ldr r0, [r4] <== NOT EXECUTED a000b5b0: ebfffb80 bl a000a3b8 <_API_Mutex_Unlock> <== NOT EXECUTED return status; } a000b5b4: e1a00005 mov r0, r5 <== NOT EXECUTED a000b5b8: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED =============================================================================== a0010a94 <_Protected_heap_Get_free_information>: bool _Protected_heap_Get_free_information( Heap_Control *the_heap, Heap_Information *info ) { a0010a94: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED /* * TBD: _Heap_Get_free_information does not error check or return status. */ _RTEMS_Lock_allocator(); a0010a98: e59f4028 ldr r4, [pc, #40] ; a0010ac8 <_Protected_heap_Get_free_information+0x34><== NOT EXECUTED bool _Protected_heap_Get_free_information( Heap_Control *the_heap, Heap_Information *info ) { a0010a9c: e1a05000 mov r5, r0 <== NOT EXECUTED a0010aa0: e1a06001 mov r6, r1 <== NOT EXECUTED /* * TBD: _Heap_Get_free_information does not error check or return status. */ _RTEMS_Lock_allocator(); a0010aa4: e5940000 ldr r0, [r4] <== NOT EXECUTED a0010aa8: ebfff829 bl a000eb54 <_API_Mutex_Lock> <== NOT EXECUTED _Heap_Get_free_information( the_heap, info ); a0010aac: e1a00005 mov r0, r5 <== NOT EXECUTED a0010ab0: e1a01006 mov r1, r6 <== NOT EXECUTED a0010ab4: eb00109b bl a0014d28 <_Heap_Get_free_information> <== NOT EXECUTED _RTEMS_Unlock_allocator(); a0010ab8: e5940000 ldr r0, [r4] <== NOT EXECUTED a0010abc: ebfff840 bl a000ebc4 <_API_Mutex_Unlock> <== NOT EXECUTED return true; } a0010ac0: e3a00001 mov r0, #1 <== NOT EXECUTED a0010ac4: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED =============================================================================== a000bce8 <_Protected_heap_Get_information>: bool _Protected_heap_Get_information( Heap_Control *the_heap, Heap_Information_block *the_info ) { a000bce8: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED if ( !the_heap ) a000bcec: e2505000 subs r5, r0, #0 <== NOT EXECUTED bool _Protected_heap_Get_information( Heap_Control *the_heap, Heap_Information_block *the_info ) { a000bcf0: e1a06001 mov r6, r1 <== NOT EXECUTED if ( !the_heap ) a000bcf4: 0a00000d beq a000bd30 <_Protected_heap_Get_information+0x48><== NOT EXECUTED return false; if ( !the_info ) a000bcf8: e3510000 cmp r1, #0 <== NOT EXECUTED a000bcfc: 0a000009 beq a000bd28 <_Protected_heap_Get_information+0x40><== NOT EXECUTED return false; _RTEMS_Lock_allocator(); a000bd00: e59f4030 ldr r4, [pc, #48] ; a000bd38 <_Protected_heap_Get_information+0x50><== NOT EXECUTED a000bd04: e5940000 ldr r0, [r4] <== NOT EXECUTED a000bd08: ebfffb7a bl a000aaf8 <_API_Mutex_Lock> <== NOT EXECUTED _Heap_Get_information( the_heap, the_info ); a000bd0c: e1a00005 mov r0, r5 <== NOT EXECUTED a000bd10: e1a01006 mov r1, r6 <== NOT EXECUTED a000bd14: eb00111c bl a001018c <_Heap_Get_information> <== NOT EXECUTED _RTEMS_Unlock_allocator(); a000bd18: e5940000 ldr r0, [r4] <== NOT EXECUTED a000bd1c: ebfffb91 bl a000ab68 <_API_Mutex_Unlock> <== NOT EXECUTED return true; a000bd20: e3a00001 mov r0, #1 <== NOT EXECUTED a000bd24: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED { if ( !the_heap ) return false; if ( !the_info ) return false; a000bd28: e1a00001 mov r0, r1 <== NOT EXECUTED _RTEMS_Lock_allocator(); _Heap_Get_information( the_heap, the_info ); _RTEMS_Unlock_allocator(); return true; } a000bd2c: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED Heap_Control *the_heap, Heap_Information_block *the_info ) { if ( !the_heap ) return false; a000bd30: e1a00005 mov r0, r5 <== NOT EXECUTED a000bd34: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED =============================================================================== a0016424 <_Protected_heap_Resize_block>: bool _Protected_heap_Resize_block( Heap_Control *the_heap, void *starting_address, uintptr_t size ) { a0016424: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED Heap_Resize_status status; uintptr_t old_mem_size; uintptr_t avail_mem_size; _RTEMS_Lock_allocator(); a0016428: e59f404c ldr r4, [pc, #76] ; a001647c <_Protected_heap_Resize_block+0x58><== NOT EXECUTED bool _Protected_heap_Resize_block( Heap_Control *the_heap, void *starting_address, uintptr_t size ) { a001642c: e24dd00c sub sp, sp, #12 <== NOT EXECUTED a0016430: e1a05000 mov r5, r0 <== NOT EXECUTED Heap_Resize_status status; uintptr_t old_mem_size; uintptr_t avail_mem_size; _RTEMS_Lock_allocator(); a0016434: e5940000 ldr r0, [r4] <== NOT EXECUTED bool _Protected_heap_Resize_block( Heap_Control *the_heap, void *starting_address, uintptr_t size ) { a0016438: e1a07001 mov r7, r1 <== NOT EXECUTED a001643c: e1a06002 mov r6, r2 <== NOT EXECUTED Heap_Resize_status status; uintptr_t old_mem_size; uintptr_t avail_mem_size; _RTEMS_Lock_allocator(); a0016440: ebffcfc0 bl a000a348 <_API_Mutex_Lock> <== NOT EXECUTED status = _Heap_Resize_block( a0016444: e28d3004 add r3, sp, #4 <== NOT EXECUTED a0016448: e58d3000 str r3, [sp] <== NOT EXECUTED a001644c: e1a01007 mov r1, r7 <== NOT EXECUTED a0016450: e28d3008 add r3, sp, #8 <== NOT EXECUTED a0016454: e1a02006 mov r2, r6 <== NOT EXECUTED a0016458: e1a00005 mov r0, r5 <== NOT EXECUTED a001645c: eb000007 bl a0016480 <_Heap_Resize_block> <== NOT EXECUTED a0016460: e1a05000 mov r5, r0 <== NOT EXECUTED the_heap, starting_address, size, &old_mem_size, &avail_mem_size ); _RTEMS_Unlock_allocator(); a0016464: e5940000 ldr r0, [r4] <== NOT EXECUTED a0016468: ebffcfd2 bl a000a3b8 <_API_Mutex_Unlock> <== NOT EXECUTED return (status == HEAP_RESIZE_SUCCESSFUL); } a001646c: e2750001 rsbs r0, r5, #1 <== NOT EXECUTED a0016470: 33a00000 movcc r0, #0 <== NOT EXECUTED a0016474: e28dd00c add sp, sp, #12 <== NOT EXECUTED a0016478: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED =============================================================================== a0010b84 <_Protected_heap_Walk>: * then it is forbidden to lock a mutex. But since we are inside * a critical section, it should be safe to walk it unlocked. * * NOTE: Dispatching is also disabled during initialization. */ if ( !_Thread_Dispatch_disable_level ) { a0010b84: e59f3054 ldr r3, [pc, #84] ; a0010be0 <_Protected_heap_Walk+0x5c><== NOT EXECUTED bool _Protected_heap_Walk( Heap_Control *the_heap, int source, bool do_dump ) { a0010b88: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED * then it is forbidden to lock a mutex. But since we are inside * a critical section, it should be safe to walk it unlocked. * * NOTE: Dispatching is also disabled during initialization. */ if ( !_Thread_Dispatch_disable_level ) { a0010b8c: e5933000 ldr r3, [r3] <== NOT EXECUTED bool _Protected_heap_Walk( Heap_Control *the_heap, int source, bool do_dump ) { a0010b90: e1a07000 mov r7, r0 <== NOT EXECUTED a0010b94: e1a06001 mov r6, r1 <== NOT EXECUTED * then it is forbidden to lock a mutex. But since we are inside * a critical section, it should be safe to walk it unlocked. * * NOTE: Dispatching is also disabled during initialization. */ if ( !_Thread_Dispatch_disable_level ) { a0010b98: e3530000 cmp r3, #0 <== NOT EXECUTED bool _Protected_heap_Walk( Heap_Control *the_heap, int source, bool do_dump ) { a0010b9c: e20250ff and r5, r2, #255 ; 0xff <== NOT EXECUTED * then it is forbidden to lock a mutex. But since we are inside * a critical section, it should be safe to walk it unlocked. * * NOTE: Dispatching is also disabled during initialization. */ if ( !_Thread_Dispatch_disable_level ) { a0010ba0: 0a000002 beq a0010bb0 <_Protected_heap_Walk+0x2c> <== NOT EXECUTED _RTEMS_Lock_allocator(); status = _Heap_Walk( the_heap, source, do_dump ); _RTEMS_Unlock_allocator(); } else { status = _Heap_Walk( the_heap, source, do_dump ); a0010ba4: e1a02005 mov r2, r5 <== NOT EXECUTED } return status; } a0010ba8: e8bd40f0 pop {r4, r5, r6, r7, lr} <== NOT EXECUTED if ( !_Thread_Dispatch_disable_level ) { _RTEMS_Lock_allocator(); status = _Heap_Walk( the_heap, source, do_dump ); _RTEMS_Unlock_allocator(); } else { status = _Heap_Walk( the_heap, source, do_dump ); a0010bac: eafffbf8 b a000fb94 <_Heap_Walk> <== NOT EXECUTED * a critical section, it should be safe to walk it unlocked. * * NOTE: Dispatching is also disabled during initialization. */ if ( !_Thread_Dispatch_disable_level ) { _RTEMS_Lock_allocator(); a0010bb0: e59f402c ldr r4, [pc, #44] ; a0010be4 <_Protected_heap_Walk+0x60><== NOT EXECUTED a0010bb4: e5940000 ldr r0, [r4] <== NOT EXECUTED a0010bb8: ebfff7e5 bl a000eb54 <_API_Mutex_Lock> <== NOT EXECUTED status = _Heap_Walk( the_heap, source, do_dump ); a0010bbc: e1a02005 mov r2, r5 <== NOT EXECUTED a0010bc0: e1a01006 mov r1, r6 <== NOT EXECUTED a0010bc4: e1a00007 mov r0, r7 <== NOT EXECUTED a0010bc8: ebfffbf1 bl a000fb94 <_Heap_Walk> <== NOT EXECUTED a0010bcc: e1a05000 mov r5, r0 <== NOT EXECUTED _RTEMS_Unlock_allocator(); a0010bd0: e5940000 ldr r0, [r4] <== NOT EXECUTED a0010bd4: ebfff7fa bl a000ebc4 <_API_Mutex_Unlock> <== NOT EXECUTED } else { status = _Heap_Walk( the_heap, source, do_dump ); } return status; } a0010bd8: e1a00005 mov r0, r5 <== NOT EXECUTED a0010bdc: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED =============================================================================== a000efb8 <_RTEMS_Tasks_Invoke_task_variable_dtor>: { void (*dtor)(void *); void *value; dtor = tvp->dtor; if (_Thread_Is_executing(the_thread)) { a000efb8: e59f203c ldr r2, [pc, #60] ; a000effc <_RTEMS_Tasks_Invoke_task_variable_dtor+0x44><== NOT EXECUTED ) { void (*dtor)(void *); void *value; dtor = tvp->dtor; a000efbc: e5913010 ldr r3, [r1, #16] <== NOT EXECUTED void _RTEMS_Tasks_Invoke_task_variable_dtor( Thread_Control *the_thread, rtems_task_variable_t *tvp ) { a000efc0: e92d4010 push {r4, lr} <== NOT EXECUTED void (*dtor)(void *); void *value; dtor = tvp->dtor; if (_Thread_Is_executing(the_thread)) { a000efc4: e5922004 ldr r2, [r2, #4] <== NOT EXECUTED void _RTEMS_Tasks_Invoke_task_variable_dtor( Thread_Control *the_thread, rtems_task_variable_t *tvp ) { a000efc8: e1a04001 mov r4, r1 <== NOT EXECUTED void (*dtor)(void *); void *value; dtor = tvp->dtor; if (_Thread_Is_executing(the_thread)) { a000efcc: e1520000 cmp r2, r0 <== NOT EXECUTED value = *tvp->ptr; a000efd0: 05912004 ldreq r2, [r1, #4] <== NOT EXECUTED *tvp->ptr = tvp->gval; a000efd4: 05911008 ldreq r1, [r1, #8] <== NOT EXECUTED } else { value = tvp->tval; a000efd8: 1594000c ldrne r0, [r4, #12] <== NOT EXECUTED void (*dtor)(void *); void *value; dtor = tvp->dtor; if (_Thread_Is_executing(the_thread)) { value = *tvp->ptr; a000efdc: 05920000 ldreq r0, [r2] <== NOT EXECUTED *tvp->ptr = tvp->gval; a000efe0: 05821000 streq r1, [r2] <== NOT EXECUTED } else { value = tvp->tval; } if ( dtor ) a000efe4: e3530000 cmp r3, #0 <== NOT EXECUTED a000efe8: 0a000000 beq a000eff0 <_RTEMS_Tasks_Invoke_task_variable_dtor+0x38><== NOT EXECUTED (*dtor)(value); a000efec: e12fff33 blx r3 <== NOT EXECUTED _Workspace_Free(tvp); a000eff0: e1a00004 mov r0, r4 <== NOT EXECUTED } a000eff4: e8bd4010 pop {r4, lr} <== NOT EXECUTED } if ( dtor ) (*dtor)(value); _Workspace_Free(tvp); a000eff8: eafff850 b a000d140 <_Workspace_Free> <== NOT EXECUTED =============================================================================== a000ee84 <_RTEMS_tasks_Delete_extension>: void _RTEMS_tasks_Delete_extension( Thread_Control *executing, Thread_Control *deleted ) { a000ee84: e92d4030 push {r4, r5, lr} <== NOT EXECUTED a000ee88: e1a05001 mov r5, r1 <== NOT EXECUTED /* * Free per task variable memory */ tvp = deleted->task_variables; a000ee8c: e5911100 ldr r1, [r1, #256] ; 0x100 <== NOT EXECUTED deleted->task_variables = NULL; a000ee90: e3a03000 mov r3, #0 <== NOT EXECUTED a000ee94: e5853100 str r3, [r5, #256] ; 0x100 <== NOT EXECUTED while (tvp) { a000ee98: e1510003 cmp r1, r3 <== NOT EXECUTED a000ee9c: 1a000001 bne a000eea8 <_RTEMS_tasks_Delete_extension+0x24> <== NOT EXECUTED a000eea0: ea000005 b a000eebc <_RTEMS_tasks_Delete_extension+0x38> <== NOT EXECUTED next = (rtems_task_variable_t *)tvp->next; _RTEMS_Tasks_Invoke_task_variable_dtor( deleted, tvp ); tvp = next; a000eea4: e1a01004 mov r1, r4 <== NOT EXECUTED */ tvp = deleted->task_variables; deleted->task_variables = NULL; while (tvp) { next = (rtems_task_variable_t *)tvp->next; a000eea8: e5914000 ldr r4, [r1] <== NOT EXECUTED _RTEMS_Tasks_Invoke_task_variable_dtor( deleted, tvp ); a000eeac: e1a00005 mov r0, r5 <== NOT EXECUTED a000eeb0: eb000040 bl a000efb8 <_RTEMS_Tasks_Invoke_task_variable_dtor><== NOT EXECUTED * Free per task variable memory */ tvp = deleted->task_variables; deleted->task_variables = NULL; while (tvp) { a000eeb4: e3540000 cmp r4, #0 <== NOT EXECUTED a000eeb8: 1afffff9 bne a000eea4 <_RTEMS_tasks_Delete_extension+0x20> <== NOT EXECUTED /* * Free API specific memory */ (void) _Workspace_Free( deleted->API_Extensions[ THREAD_API_RTEMS ] ); a000eebc: e59500f4 ldr r0, [r5, #244] ; 0xf4 <== NOT EXECUTED a000eec0: ebfff89e bl a000d140 <_Workspace_Free> <== NOT EXECUTED deleted->API_Extensions[ THREAD_API_RTEMS ] = NULL; a000eec4: e3a03000 mov r3, #0 <== NOT EXECUTED a000eec8: e58530f4 str r3, [r5, #244] ; 0xf4 <== NOT EXECUTED } a000eecc: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED =============================================================================== a0009e50 <_RTEMS_tasks_Initialize_user_tasks_body>: rtems_initialization_tasks_table *user_tasks; /* * Move information into local variables */ user_tasks = Configuration_RTEMS_API.User_initialization_tasks_table; a0009e50: e59f3084 ldr r3, [pc, #132] ; a0009edc <_RTEMS_tasks_Initialize_user_tasks_body+0x8c> * * Output parameters: NONE */ void _RTEMS_tasks_Initialize_user_tasks_body( void ) { a0009e54: e92d40f0 push {r4, r5, r6, r7, lr} rtems_initialization_tasks_table *user_tasks; /* * Move information into local variables */ user_tasks = Configuration_RTEMS_API.User_initialization_tasks_table; a0009e58: e593402c ldr r4, [r3, #44] ; 0x2c * * Output parameters: NONE */ void _RTEMS_tasks_Initialize_user_tasks_body( void ) { a0009e5c: e24dd00c sub sp, sp, #12 /* * Move information into local variables */ user_tasks = Configuration_RTEMS_API.User_initialization_tasks_table; maximum = Configuration_RTEMS_API.number_of_initialization_tasks; a0009e60: e5936028 ldr r6, [r3, #40] ; 0x28 /* * Verify that we have a set of user tasks to iterate */ if ( !user_tasks ) a0009e64: e3540000 cmp r4, #0 a0009e68: 0a000016 beq a0009ec8 <_RTEMS_tasks_Initialize_user_tasks_body+0x78> return; /* * Now iterate over the initialization tasks and create/start them. */ for ( index=0 ; index < maximum ; index++ ) { a0009e6c: e3560000 cmp r6, #0 a0009e70: 0a000014 beq a0009ec8 <_RTEMS_tasks_Initialize_user_tasks_body+0x78> a0009e74: e3a05000 mov r5, #0 a0009e78: e28d7008 add r7, sp, #8 return_value = rtems_task_create( a0009e7c: e594c00c ldr ip, [r4, #12] a0009e80: e8940005 ldm r4, {r0, r2} a0009e84: e5941008 ldr r1, [r4, #8] a0009e88: e5943014 ldr r3, [r4, #20] a0009e8c: e58dc000 str ip, [sp] a0009e90: e58d7004 str r7, [sp, #4] a0009e94: ebffff67 bl a0009c38 user_tasks[ index ].stack_size, user_tasks[ index ].mode_set, user_tasks[ index ].attribute_set, &id ); if ( !rtems_is_status_successful( return_value ) ) a0009e98: e2502000 subs r2, r0, #0 a0009e9c: 1a00000b bne a0009ed0 <_RTEMS_tasks_Initialize_user_tasks_body+0x80> _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, true, return_value ); return_value = rtems_task_start( a0009ea0: e5942018 ldr r2, [r4, #24] a0009ea4: e59d0008 ldr r0, [sp, #8] a0009ea8: e5941010 ldr r1, [r4, #16] a0009eac: eb00000b bl a0009ee0 id, user_tasks[ index ].entry_point, user_tasks[ index ].argument ); if ( !rtems_is_status_successful( return_value ) ) a0009eb0: e2502000 subs r2, r0, #0 a0009eb4: 1a000005 bne a0009ed0 <_RTEMS_tasks_Initialize_user_tasks_body+0x80> return; /* * Now iterate over the initialization tasks and create/start them. */ for ( index=0 ; index < maximum ; index++ ) { a0009eb8: e2855001 add r5, r5, #1 a0009ebc: e1560005 cmp r6, r5 a0009ec0: e284401c add r4, r4, #28 a0009ec4: 8affffec bhi a0009e7c <_RTEMS_tasks_Initialize_user_tasks_body+0x2c> user_tasks[ index ].argument ); if ( !rtems_is_status_successful( return_value ) ) _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, true, return_value ); } } a0009ec8: e28dd00c add sp, sp, #12 a0009ecc: e8bd80f0 pop {r4, r5, r6, r7, pc} id, user_tasks[ index ].entry_point, user_tasks[ index ].argument ); if ( !rtems_is_status_successful( return_value ) ) _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, true, return_value ); a0009ed0: e3a00001 mov r0, #1 <== NOT EXECUTED a0009ed4: e1a01000 mov r1, r0 <== NOT EXECUTED a0009ed8: eb00039e bl a000ad58 <_Internal_error_Occurred> <== NOT EXECUTED =============================================================================== a000edf4 <_RTEMS_tasks_Post_switch_extension>: */ void _RTEMS_tasks_Post_switch_extension( Thread_Control *executing ) { a000edf4: e92d4070 push {r4, r5, r6, lr} RTEMS_API_Control *api; ASR_Information *asr; rtems_signal_set signal_set; Modes_Control prev_mode; api = executing->API_Extensions[ THREAD_API_RTEMS ]; a000edf8: e59040f4 ldr r4, [r0, #244] ; 0xf4 */ void _RTEMS_tasks_Post_switch_extension( Thread_Control *executing ) { a000edfc: e24dd004 sub sp, sp, #4 ASR_Information *asr; rtems_signal_set signal_set; Modes_Control prev_mode; api = executing->API_Extensions[ THREAD_API_RTEMS ]; if ( !api ) a000ee00: e3540000 cmp r4, #0 a000ee04: 0a00001c beq a000ee7c <_RTEMS_tasks_Post_switch_extension+0x88> static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000ee08: e10f3000 mrs r3, CPSR a000ee0c: e3832080 orr r2, r3, #128 ; 0x80 a000ee10: e129f002 msr CPSR_fc, r2 asr = &api->Signal; _ISR_Disable( level ); signal_set = asr->signals_posted; asr->signals_posted = 0; a000ee14: e3a02000 mov r2, #0 */ asr = &api->Signal; _ISR_Disable( level ); signal_set = asr->signals_posted; a000ee18: e5945014 ldr r5, [r4, #20] asr->signals_posted = 0; a000ee1c: e5842014 str r2, [r4, #20] static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000ee20: e129f003 msr CPSR_fc, r3 _ISR_Enable( level ); if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */ a000ee24: e3550000 cmp r5, #0 a000ee28: 0a000013 beq a000ee7c <_RTEMS_tasks_Post_switch_extension+0x88> return; asr->nest_level += 1; a000ee2c: e594301c ldr r3, [r4, #28] <== NOT EXECUTED rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); a000ee30: e3a01801 mov r1, #65536 ; 0x10000 <== NOT EXECUTED a000ee34: e2411001 sub r1, r1, #1 <== NOT EXECUTED if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */ return; asr->nest_level += 1; a000ee38: e2833001 add r3, r3, #1 <== NOT EXECUTED rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); a000ee3c: e1a0200d mov r2, sp <== NOT EXECUTED if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */ return; asr->nest_level += 1; a000ee40: e584301c str r3, [r4, #28] <== NOT EXECUTED rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); a000ee44: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED a000ee48: eb000781 bl a0010c54 <== NOT EXECUTED (*asr->handler)( signal_set ); a000ee4c: e1a00005 mov r0, r5 <== NOT EXECUTED a000ee50: e594300c ldr r3, [r4, #12] <== NOT EXECUTED a000ee54: e12fff33 blx r3 <== NOT EXECUTED asr->nest_level -= 1; a000ee58: e594301c ldr r3, [r4, #28] <== NOT EXECUTED rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode ); a000ee5c: e3a01801 mov r1, #65536 ; 0x10000 <== NOT EXECUTED a000ee60: e59d0000 ldr r0, [sp] <== NOT EXECUTED asr->nest_level += 1; rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); (*asr->handler)( signal_set ); asr->nest_level -= 1; a000ee64: e2433001 sub r3, r3, #1 <== NOT EXECUTED a000ee68: e584301c str r3, [r4, #28] <== NOT EXECUTED rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode ); a000ee6c: e2411001 sub r1, r1, #1 <== NOT EXECUTED a000ee70: e1a0200d mov r2, sp <== NOT EXECUTED if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */ return; asr->nest_level += 1; rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); a000ee74: e1a0600d mov r6, sp <== NOT EXECUTED (*asr->handler)( signal_set ); asr->nest_level -= 1; rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode ); a000ee78: eb000775 bl a0010c54 <== NOT EXECUTED } a000ee7c: e28dd004 add sp, sp, #4 a000ee80: e8bd8070 pop {r4, r5, r6, pc} =============================================================================== a000ed78 <_RTEMS_tasks_Switch_extension>: /* * Per Task Variables */ tvp = executing->task_variables; a000ed78: e5903100 ldr r3, [r0, #256] ; 0x100 <== NOT EXECUTED while (tvp) { a000ed7c: e3530000 cmp r3, #0 <== NOT EXECUTED a000ed80: 0a000007 beq a000eda4 <_RTEMS_tasks_Switch_extension+0x2c> <== NOT EXECUTED tvp->tval = *tvp->ptr; a000ed84: e5932004 ldr r2, [r3, #4] <== NOT EXECUTED *tvp->ptr = tvp->gval; a000ed88: e5930008 ldr r0, [r3, #8] <== NOT EXECUTED * Per Task Variables */ tvp = executing->task_variables; while (tvp) { tvp->tval = *tvp->ptr; a000ed8c: e592c000 ldr ip, [r2] <== NOT EXECUTED a000ed90: e583c00c str ip, [r3, #12] <== NOT EXECUTED *tvp->ptr = tvp->gval; tvp = (rtems_task_variable_t *)tvp->next; a000ed94: e5933000 ldr r3, [r3] <== NOT EXECUTED */ tvp = executing->task_variables; while (tvp) { tvp->tval = *tvp->ptr; *tvp->ptr = tvp->gval; a000ed98: e5820000 str r0, [r2] <== NOT EXECUTED /* * Per Task Variables */ tvp = executing->task_variables; while (tvp) { a000ed9c: e3530000 cmp r3, #0 <== NOT EXECUTED a000eda0: 1afffff7 bne a000ed84 <_RTEMS_tasks_Switch_extension+0xc> <== NOT EXECUTED tvp->tval = *tvp->ptr; *tvp->ptr = tvp->gval; tvp = (rtems_task_variable_t *)tvp->next; } tvp = heir->task_variables; a000eda4: e5913100 ldr r3, [r1, #256] ; 0x100 <== NOT EXECUTED while (tvp) { a000eda8: e3530000 cmp r3, #0 <== NOT EXECUTED a000edac: 012fff1e bxeq lr <== NOT EXECUTED tvp->gval = *tvp->ptr; a000edb0: e5932004 ldr r2, [r3, #4] <== NOT EXECUTED *tvp->ptr = tvp->tval; a000edb4: e593100c ldr r1, [r3, #12] <== NOT EXECUTED tvp = (rtems_task_variable_t *)tvp->next; } tvp = heir->task_variables; while (tvp) { tvp->gval = *tvp->ptr; a000edb8: e5920000 ldr r0, [r2] <== NOT EXECUTED a000edbc: e5830008 str r0, [r3, #8] <== NOT EXECUTED *tvp->ptr = tvp->tval; tvp = (rtems_task_variable_t *)tvp->next; a000edc0: e5933000 ldr r3, [r3] <== NOT EXECUTED } tvp = heir->task_variables; while (tvp) { tvp->gval = *tvp->ptr; *tvp->ptr = tvp->tval; a000edc4: e5821000 str r1, [r2] <== NOT EXECUTED *tvp->ptr = tvp->gval; tvp = (rtems_task_variable_t *)tvp->next; } tvp = heir->task_variables; while (tvp) { a000edc8: e3530000 cmp r3, #0 <== NOT EXECUTED a000edcc: 1afffff7 bne a000edb0 <_RTEMS_tasks_Switch_extension+0x38> <== NOT EXECUTED a000edd0: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000a990 <_Rate_monotonic_Get_status>: bool _Rate_monotonic_Get_status( Rate_monotonic_Control *the_period, Rate_monotonic_Period_time_t *wall_since_last_period, Thread_CPU_usage_t *cpu_since_last_period ) { a000a990: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED a000a994: e1a04000 mov r4, r0 <== NOT EXECUTED a000a998: e24dd018 sub sp, sp, #24 <== NOT EXECUTED #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ Timestamp_Control uptime; #endif Thread_Control *owning_thread = the_period->owner; a000a99c: e5946040 ldr r6, [r4, #64] ; 0x40 <== NOT EXECUTED /* * Determine elapsed wall time since period initiated. */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _TOD_Get_uptime( &uptime ); a000a9a0: e28d5010 add r5, sp, #16 <== NOT EXECUTED bool _Rate_monotonic_Get_status( Rate_monotonic_Control *the_period, Rate_monotonic_Period_time_t *wall_since_last_period, Thread_CPU_usage_t *cpu_since_last_period ) { a000a9a4: e1a07001 mov r7, r1 <== NOT EXECUTED /* * Determine elapsed wall time since period initiated. */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _TOD_Get_uptime( &uptime ); a000a9a8: e1a00005 mov r0, r5 <== NOT EXECUTED bool _Rate_monotonic_Get_status( Rate_monotonic_Control *the_period, Rate_monotonic_Period_time_t *wall_since_last_period, Thread_CPU_usage_t *cpu_since_last_period ) { a000a9ac: e1a08002 mov r8, r2 <== NOT EXECUTED /* * Determine elapsed wall time since period initiated. */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _TOD_Get_uptime( &uptime ); a000a9b0: eb000667 bl a000c354 <_TOD_Get_uptime> <== NOT EXECUTED _Timestamp_Subtract( a000a9b4: e284004c add r0, r4, #76 ; 0x4c <== NOT EXECUTED a000a9b8: e1a02007 mov r2, r7 <== NOT EXECUTED a000a9bc: e1a01005 mov r1, r5 <== NOT EXECUTED a000a9c0: eb000f7f bl a000e7c4 <_Timespec_Subtract> <== NOT EXECUTED #endif /* * Determine cpu usage since period initiated. */ used = owning_thread->cpu_time_used; a000a9c4: e2863084 add r3, r6, #132 ; 0x84 <== NOT EXECUTED a000a9c8: e893000c ldm r3, {r2, r3} <== NOT EXECUTED a000a9cc: e58d2008 str r2, [sp, #8] <== NOT EXECUTED a000a9d0: e58d300c str r3, [sp, #12] <== NOT EXECUTED #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ if (owning_thread == _Thread_Executing) { a000a9d4: e59f306c ldr r3, [pc, #108] ; a000aa48 <_Rate_monotonic_Get_status+0xb8><== NOT EXECUTED a000a9d8: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED a000a9dc: e1530006 cmp r3, r6 <== NOT EXECUTED if (used < the_period->cpu_usage_period_initiated) return false; *cpu_since_last_period = used - the_period->cpu_usage_period_initiated; #endif return true; a000a9e0: 13a00001 movne r0, #1 <== NOT EXECUTED * Determine cpu usage since period initiated. */ used = owning_thread->cpu_time_used; #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ if (owning_thread == _Thread_Executing) { a000a9e4: 0a000001 beq a000a9f0 <_Rate_monotonic_Get_status+0x60> <== NOT EXECUTED return false; *cpu_since_last_period = used - the_period->cpu_usage_period_initiated; #endif return true; } a000a9e8: e28dd018 add sp, sp, #24 <== NOT EXECUTED a000a9ec: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED if (owning_thread == _Thread_Executing) { Thread_CPU_usage_t ran; /* How much time time since last context switch */ _Timestamp_Subtract( a000a9f0: e1a01005 mov r1, r5 <== NOT EXECUTED a000a9f4: e1a0200d mov r2, sp <== NOT EXECUTED a000a9f8: e59f004c ldr r0, [pc, #76] ; a000aa4c <_Rate_monotonic_Get_status+0xbc><== NOT EXECUTED &_Thread_Time_of_last_context_switch, &uptime, &ran ); /* cpu usage += ran */ _Timestamp_Add_to( &used, &ran ); a000a9fc: e28d5008 add r5, sp, #8 <== NOT EXECUTED if (owning_thread == _Thread_Executing) { Thread_CPU_usage_t ran; /* How much time time since last context switch */ _Timestamp_Subtract( a000aa00: eb000f6f bl a000e7c4 <_Timespec_Subtract> <== NOT EXECUTED /* * The cpu usage info was reset while executing. Can't * determine a status. */ if (_Timestamp_Less_than(&used, &the_period->cpu_usage_period_initiated)) a000aa04: e2844044 add r4, r4, #68 ; 0x44 <== NOT EXECUTED _Timestamp_Subtract( &_Thread_Time_of_last_context_switch, &uptime, &ran ); /* cpu usage += ran */ _Timestamp_Add_to( &used, &ran ); a000aa08: e1a0100d mov r1, sp <== NOT EXECUTED a000aa0c: e1a00005 mov r0, r5 <== NOT EXECUTED a000aa10: eb000f1a bl a000e680 <_Timespec_Add_to> <== NOT EXECUTED /* * The cpu usage info was reset while executing. Can't * determine a status. */ if (_Timestamp_Less_than(&used, &the_period->cpu_usage_period_initiated)) a000aa14: e1a00005 mov r0, r5 <== NOT EXECUTED a000aa18: e1a01004 mov r1, r4 <== NOT EXECUTED a000aa1c: eb000f5a bl a000e78c <_Timespec_Less_than> <== NOT EXECUTED a000aa20: e3500000 cmp r0, #0 <== NOT EXECUTED if (owning_thread == _Thread_Executing) { Thread_CPU_usage_t ran; /* How much time time since last context switch */ _Timestamp_Subtract( a000aa24: e1a0600d mov r6, sp <== NOT EXECUTED /* * The cpu usage info was reset while executing. Can't * determine a status. */ if (_Timestamp_Less_than(&used, &the_period->cpu_usage_period_initiated)) return false; a000aa28: 13a00000 movne r0, #0 <== NOT EXECUTED /* * The cpu usage info was reset while executing. Can't * determine a status. */ if (_Timestamp_Less_than(&used, &the_period->cpu_usage_period_initiated)) a000aa2c: 1affffed bne a000a9e8 <_Rate_monotonic_Get_status+0x58> <== NOT EXECUTED return false; /* used = current cpu usage - cpu usage at start of period */ _Timestamp_Subtract( a000aa30: e1a00004 mov r0, r4 <== NOT EXECUTED a000aa34: e1a01005 mov r1, r5 <== NOT EXECUTED a000aa38: e1a02008 mov r2, r8 <== NOT EXECUTED a000aa3c: eb000f60 bl a000e7c4 <_Timespec_Subtract> <== NOT EXECUTED if (used < the_period->cpu_usage_period_initiated) return false; *cpu_since_last_period = used - the_period->cpu_usage_period_initiated; #endif return true; a000aa40: e3a00001 mov r0, #1 <== NOT EXECUTED a000aa44: eaffffe7 b a000a9e8 <_Rate_monotonic_Get_status+0x58> <== NOT EXECUTED =============================================================================== a000aa50 <_Rate_monotonic_Initiate_statistics>: } void _Rate_monotonic_Initiate_statistics( Rate_monotonic_Control *the_period ) { a000aa50: e92d4870 push {r4, r5, r6, fp, lr} <== NOT EXECUTED a000aa54: e24dd010 sub sp, sp, #16 <== NOT EXECUTED * If using nanosecond statistics, we need to obtain the uptime. */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ Timestamp_Control uptime; _TOD_Get_uptime( &uptime ); a000aa58: e28d6008 add r6, sp, #8 <== NOT EXECUTED } void _Rate_monotonic_Initiate_statistics( Rate_monotonic_Control *the_period ) { a000aa5c: e1a04000 mov r4, r0 <== NOT EXECUTED * If using nanosecond statistics, we need to obtain the uptime. */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ Timestamp_Control uptime; _TOD_Get_uptime( &uptime ); a000aa60: e1a00006 mov r0, r6 <== NOT EXECUTED void _Rate_monotonic_Initiate_statistics( Rate_monotonic_Control *the_period ) { Thread_Control *owning_thread = the_period->owner; a000aa64: e5945040 ldr r5, [r4, #64] ; 0x40 <== NOT EXECUTED * If using nanosecond statistics, we need to obtain the uptime. */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ Timestamp_Control uptime; _TOD_Get_uptime( &uptime ); a000aa68: eb000639 bl a000c354 <_TOD_Get_uptime> <== NOT EXECUTED /* * Set the starting point and the CPU time used for the statistics. */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ the_period->time_period_initiated = uptime; a000aa6c: e28dc008 add ip, sp, #8 <== NOT EXECUTED a000aa70: e89c1800 ldm ip, {fp, ip} <== NOT EXECUTED #else the_period->time_period_initiated = _Watchdog_Ticks_since_boot; #endif the_period->cpu_usage_period_initiated = owning_thread->cpu_time_used; a000aa74: e2852084 add r2, r5, #132 ; 0x84 <== NOT EXECUTED a000aa78: e8920006 ldm r2, {r1, r2} <== NOT EXECUTED * routine is invoked from rtems_rate_monotonic_period, the owner will * be the executing thread. When this routine is invoked from * _Rate_monotonic_Timeout, it will not. */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ if (owning_thread == _Thread_Executing) { a000aa7c: e59f3044 ldr r3, [pc, #68] ; a000aac8 <_Rate_monotonic_Initiate_statistics+0x78><== NOT EXECUTED /* * Set the starting point and the CPU time used for the statistics. */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ the_period->time_period_initiated = uptime; a000aa80: e584b04c str fp, [r4, #76] ; 0x4c <== NOT EXECUTED a000aa84: e584c050 str ip, [r4, #80] ; 0x50 <== NOT EXECUTED * routine is invoked from rtems_rate_monotonic_period, the owner will * be the executing thread. When this routine is invoked from * _Rate_monotonic_Timeout, it will not. */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ if (owning_thread == _Thread_Executing) { a000aa88: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED the_period->time_period_initiated = uptime; #else the_period->time_period_initiated = _Watchdog_Ticks_since_boot; #endif the_period->cpu_usage_period_initiated = owning_thread->cpu_time_used; a000aa8c: e5841044 str r1, [r4, #68] ; 0x44 <== NOT EXECUTED a000aa90: e5842048 str r2, [r4, #72] ; 0x48 <== NOT EXECUTED * routine is invoked from rtems_rate_monotonic_period, the owner will * be the executing thread. When this routine is invoked from * _Rate_monotonic_Timeout, it will not. */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ if (owning_thread == _Thread_Executing) { a000aa94: e1530005 cmp r3, r5 <== NOT EXECUTED a000aa98: 0a000001 beq a000aaa4 <_Rate_monotonic_Initiate_statistics+0x54><== NOT EXECUTED ); _Timespec_Add_to( &the_period->cpu_usage_period_initiated, &ran ); } #endif } a000aa9c: e28dd010 add sp, sp, #16 <== NOT EXECUTED a000aaa0: e8bd8870 pop {r4, r5, r6, fp, pc} <== NOT EXECUTED /* * Adjust the CPU time used to account for the time since last * context switch. */ _Timespec_Subtract( a000aaa4: e1a01006 mov r1, r6 <== NOT EXECUTED a000aaa8: e59f001c ldr r0, [pc, #28] ; a000aacc <_Rate_monotonic_Initiate_statistics+0x7c><== NOT EXECUTED a000aaac: e1a0200d mov r2, sp <== NOT EXECUTED a000aab0: eb000f43 bl a000e7c4 <_Timespec_Subtract> <== NOT EXECUTED &_Thread_Time_of_last_context_switch, &uptime, &ran ); _Timespec_Add_to( &the_period->cpu_usage_period_initiated, &ran ); a000aab4: e2840044 add r0, r4, #68 ; 0x44 <== NOT EXECUTED a000aab8: e1a0100d mov r1, sp <== NOT EXECUTED /* * Adjust the CPU time used to account for the time since last * context switch. */ _Timespec_Subtract( &_Thread_Time_of_last_context_switch, &uptime, &ran a000aabc: e1a0500d mov r5, sp <== NOT EXECUTED ); _Timespec_Add_to( &the_period->cpu_usage_period_initiated, &ran ); a000aac0: eb000eee bl a000e680 <_Timespec_Add_to> <== NOT EXECUTED a000aac4: eafffff4 b a000aa9c <_Rate_monotonic_Initiate_statistics+0x4c><== NOT EXECUTED =============================================================================== a000b054 <_Rate_monotonic_Timeout>: void _Rate_monotonic_Timeout( Objects_Id id, void *ignored ) { a000b054: e92d4010 push {r4, lr} <== NOT EXECUTED a000b058: e24dd004 sub sp, sp, #4 <== NOT EXECUTED a000b05c: e1a01000 mov r1, r0 <== NOT EXECUTED a000b060: e1a0200d mov r2, sp <== NOT EXECUTED a000b064: e59f0094 ldr r0, [pc, #148] ; a000b100 <_Rate_monotonic_Timeout+0xac><== NOT EXECUTED a000b068: eb000791 bl a000ceb4 <_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 ) { a000b06c: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000b070: e1a04000 mov r4, r0 <== NOT EXECUTED a000b074: e3530000 cmp r3, #0 <== NOT EXECUTED a000b078: 1a000010 bne a000b0c0 <_Rate_monotonic_Timeout+0x6c> <== NOT EXECUTED case OBJECTS_LOCAL: the_thread = the_period->owner; a000b07c: 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); a000b080: e5903010 ldr r3, [r0, #16] <== NOT EXECUTED if ( _States_Is_waiting_for_period( the_thread->current_state ) && a000b084: e3130901 tst r3, #16384 ; 0x4000 <== NOT EXECUTED a000b088: 0a000003 beq a000b09c <_Rate_monotonic_Timeout+0x48> <== NOT EXECUTED a000b08c: e5902020 ldr r2, [r0, #32] <== NOT EXECUTED a000b090: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED a000b094: e1520003 cmp r2, r3 <== NOT EXECUTED a000b098: 0a000014 beq a000b0f0 <_Rate_monotonic_Timeout+0x9c> <== 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 ) { a000b09c: e5943038 ldr r3, [r4, #56] ; 0x38 <== NOT EXECUTED a000b0a0: 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; a000b0a4: 13a03004 movne r3, #4 <== NOT EXECUTED a000b0a8: 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 ) { a000b0ac: 0a000005 beq a000b0c8 <_Rate_monotonic_Timeout+0x74> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; a000b0b0: e59f304c ldr r3, [pc, #76] ; a000b104 <_Rate_monotonic_Timeout+0xb0><== NOT EXECUTED a000b0b4: e5932000 ldr r2, [r3] <== NOT EXECUTED a000b0b8: e2422001 sub r2, r2, #1 <== NOT EXECUTED a000b0bc: e5832000 str r2, [r3] <== NOT EXECUTED case OBJECTS_REMOTE: /* impossible */ #endif case OBJECTS_ERROR: break; } } a000b0c0: e28dd004 add sp, sp, #4 <== NOT EXECUTED a000b0c4: e8bd8010 pop {r4, pc} <== NOT EXECUTED _Rate_monotonic_Initiate_statistics( the_period ); _Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length ); } else if ( the_period->state == RATE_MONOTONIC_OWNER_IS_BLOCKING ) { the_period->state = RATE_MONOTONIC_EXPIRED_WHILE_BLOCKING; a000b0c8: e3a03003 mov r3, #3 <== NOT EXECUTED _Rate_monotonic_Initiate_statistics( the_period ); a000b0cc: e1a00004 mov r0, r4 <== NOT EXECUTED _Rate_monotonic_Initiate_statistics( the_period ); _Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length ); } else if ( the_period->state == RATE_MONOTONIC_OWNER_IS_BLOCKING ) { the_period->state = RATE_MONOTONIC_EXPIRED_WHILE_BLOCKING; a000b0d0: e5843038 str r3, [r4, #56] ; 0x38 <== NOT EXECUTED _Rate_monotonic_Initiate_statistics( the_period ); a000b0d4: ebfffe5d bl a000aa50 <_Rate_monotonic_Initiate_statistics> <== NOT EXECUTED Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; a000b0d8: e594303c ldr r3, [r4, #60] ; 0x3c <== NOT EXECUTED _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); a000b0dc: e59f0024 ldr r0, [pc, #36] ; a000b108 <_Rate_monotonic_Timeout+0xb4><== NOT EXECUTED a000b0e0: e2841010 add r1, r4, #16 <== NOT EXECUTED Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; a000b0e4: e584301c str r3, [r4, #28] <== NOT EXECUTED _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); a000b0e8: eb000e78 bl a000ead0 <_Watchdog_Insert> <== NOT EXECUTED a000b0ec: eaffffef b a000b0b0 <_Rate_monotonic_Timeout+0x5c> <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); a000b0f0: e59f1014 ldr r1, [pc, #20] ; a000b10c <_Rate_monotonic_Timeout+0xb8><== NOT EXECUTED a000b0f4: eb0009e3 bl a000d888 <_Thread_Clear_state> <== NOT EXECUTED the_thread = the_period->owner; if ( _States_Is_waiting_for_period( the_thread->current_state ) && the_thread->Wait.id == the_period->Object.id ) { _Thread_Unblock( the_thread ); _Rate_monotonic_Initiate_statistics( the_period ); a000b0f8: e1a00004 mov r0, r4 <== NOT EXECUTED a000b0fc: eafffff4 b a000b0d4 <_Rate_monotonic_Timeout+0x80> <== NOT EXECUTED =============================================================================== a000aad0 <_Rate_monotonic_Update_statistics>: /* * Update the counts. */ stats = &the_period->Statistics; stats->count++; a000aad0: e5903054 ldr r3, [r0, #84] ; 0x54 <== NOT EXECUTED if ( the_period->state == RATE_MONOTONIC_EXPIRED ) a000aad4: e5902038 ldr r2, [r0, #56] ; 0x38 <== NOT EXECUTED } void _Rate_monotonic_Update_statistics( Rate_monotonic_Control *the_period ) { a000aad8: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED * Update the counts. */ stats = &the_period->Statistics; stats->count++; if ( the_period->state == RATE_MONOTONIC_EXPIRED ) a000aadc: e3520004 cmp r2, #4 <== NOT EXECUTED /* * Update the counts. */ stats = &the_period->Statistics; stats->count++; a000aae0: e2833001 add r3, r3, #1 <== NOT EXECUTED a000aae4: e5803054 str r3, [r0, #84] ; 0x54 <== NOT EXECUTED if ( the_period->state == RATE_MONOTONIC_EXPIRED ) stats->missed_count++; a000aae8: 05903058 ldreq r3, [r0, #88] ; 0x58 <== NOT EXECUTED } void _Rate_monotonic_Update_statistics( Rate_monotonic_Control *the_period ) { a000aaec: e24dd010 sub sp, sp, #16 <== NOT EXECUTED /* * Grab status for time statistics. */ valid_status = _Rate_monotonic_Get_status( the_period, &since_last_period, &executed ); a000aaf0: e28d6008 add r6, sp, #8 <== NOT EXECUTED */ stats = &the_period->Statistics; stats->count++; if ( the_period->state == RATE_MONOTONIC_EXPIRED ) stats->missed_count++; a000aaf4: 02833001 addeq r3, r3, #1 <== NOT EXECUTED a000aaf8: 05803058 streq r3, [r0, #88] ; 0x58 <== NOT EXECUTED /* * Grab status for time statistics. */ valid_status = a000aafc: e1a0100d mov r1, sp <== NOT EXECUTED a000ab00: e1a02006 mov r2, r6 <== NOT EXECUTED } void _Rate_monotonic_Update_statistics( Rate_monotonic_Control *the_period ) { a000ab04: e1a04000 mov r4, r0 <== NOT EXECUTED stats->missed_count++; /* * Grab status for time statistics. */ valid_status = a000ab08: ebffffa0 bl a000a990 <_Rate_monotonic_Get_status> <== NOT EXECUTED _Rate_monotonic_Get_status( the_period, &since_last_period, &executed ); if (!valid_status) a000ab0c: e3500000 cmp r0, #0 <== NOT EXECUTED /* * Grab status for time statistics. */ valid_status = _Rate_monotonic_Get_status( the_period, &since_last_period, &executed ); a000ab10: e1a0500d mov r5, sp <== NOT EXECUTED if (!valid_status) a000ab14: 1a000001 bne a000ab20 <_Rate_monotonic_Update_statistics+0x50><== NOT EXECUTED stats->min_wall_time = since_last_period; if ( since_last_period > stats->max_wall_time ) stats->max_wall_time = since_last_period; #endif } a000ab18: e28dd010 add sp, sp, #16 <== NOT EXECUTED a000ab1c: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED /* * Update CPU time */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timestamp_Add_to( &stats->total_cpu_time, &executed ); a000ab20: e1a01006 mov r1, r6 <== NOT EXECUTED a000ab24: e284006c add r0, r4, #108 ; 0x6c <== NOT EXECUTED a000ab28: eb000ed4 bl a000e680 <_Timespec_Add_to> <== NOT EXECUTED if ( _Timestamp_Less_than( &executed, &stats->min_cpu_time ) ) a000ab2c: e1a00006 mov r0, r6 <== NOT EXECUTED a000ab30: e284105c add r1, r4, #92 ; 0x5c <== NOT EXECUTED a000ab34: eb000f14 bl a000e78c <_Timespec_Less_than> <== NOT EXECUTED a000ab38: e3500000 cmp r0, #0 <== NOT EXECUTED stats->min_cpu_time = executed; a000ab3c: 128d3008 addne r3, sp, #8 <== NOT EXECUTED a000ab40: 1893000c ldmne r3, {r2, r3} <== NOT EXECUTED a000ab44: 1584205c strne r2, [r4, #92] ; 0x5c <== NOT EXECUTED a000ab48: 15843060 strne r3, [r4, #96] ; 0x60 <== NOT EXECUTED if ( _Timestamp_Greater_than( &executed, &stats->max_cpu_time ) ) a000ab4c: e1a00006 mov r0, r6 <== NOT EXECUTED a000ab50: e2841064 add r1, r4, #100 ; 0x64 <== NOT EXECUTED a000ab54: eb000efe bl a000e754 <_Timespec_Greater_than> <== NOT EXECUTED a000ab58: e3500000 cmp r0, #0 <== NOT EXECUTED stats->max_cpu_time = executed; a000ab5c: 128d3008 addne r3, sp, #8 <== NOT EXECUTED a000ab60: 1893000c ldmne r3, {r2, r3} <== NOT EXECUTED a000ab64: 15842064 strne r2, [r4, #100] ; 0x64 <== NOT EXECUTED a000ab68: 15843068 strne r3, [r4, #104] ; 0x68 <== NOT EXECUTED /* * Update Wall time */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timestamp_Add_to( &stats->total_wall_time, &since_last_period ); a000ab6c: e1a0100d mov r1, sp <== NOT EXECUTED a000ab70: e2840084 add r0, r4, #132 ; 0x84 <== NOT EXECUTED a000ab74: eb000ec1 bl a000e680 <_Timespec_Add_to> <== NOT EXECUTED if ( _Timestamp_Less_than( &since_last_period, &stats->min_wall_time ) ) a000ab78: e1a0000d mov r0, sp <== NOT EXECUTED a000ab7c: e2841074 add r1, r4, #116 ; 0x74 <== NOT EXECUTED a000ab80: eb000f01 bl a000e78c <_Timespec_Less_than> <== NOT EXECUTED a000ab84: e3500000 cmp r0, #0 <== NOT EXECUTED a000ab88: 1a000007 bne a000abac <_Rate_monotonic_Update_statistics+0xdc><== NOT EXECUTED stats->min_wall_time = since_last_period; if ( _Timestamp_Greater_than( &since_last_period, &stats->max_wall_time ) ) a000ab8c: e1a0000d mov r0, sp <== NOT EXECUTED a000ab90: e284107c add r1, r4, #124 ; 0x7c <== NOT EXECUTED a000ab94: eb000eee bl a000e754 <_Timespec_Greater_than> <== NOT EXECUTED a000ab98: e3500000 cmp r0, #0 <== NOT EXECUTED stats->max_wall_time = since_last_period; a000ab9c: 189d000c ldmne sp, {r2, r3} <== NOT EXECUTED a000aba0: 1584207c strne r2, [r4, #124] ; 0x7c <== NOT EXECUTED a000aba4: 15843080 strne r3, [r4, #128] ; 0x80 <== NOT EXECUTED a000aba8: eaffffda b a000ab18 <_Rate_monotonic_Update_statistics+0x48><== NOT EXECUTED */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timestamp_Add_to( &stats->total_wall_time, &since_last_period ); if ( _Timestamp_Less_than( &since_last_period, &stats->min_wall_time ) ) stats->min_wall_time = since_last_period; a000abac: e89d000c ldm sp, {r2, r3} <== NOT EXECUTED a000abb0: e5842074 str r2, [r4, #116] ; 0x74 <== NOT EXECUTED a000abb4: e5843078 str r3, [r4, #120] ; 0x78 <== NOT EXECUTED a000abb8: eafffff3 b a000ab8c <_Rate_monotonic_Update_statistics+0xbc><== NOT EXECUTED =============================================================================== a00209c8 <_Region_Process_queue>: a00209c8: e59f3084 ldr r3, [pc, #132] ; a0020a54 <_Region_Process_queue+0x8c><== NOT EXECUTED */ void _Region_Process_queue( Region_Control *the_region ) { a00209cc: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED a00209d0: e5932000 ldr r2, [r3] <== NOT EXECUTED a00209d4: e1a05000 mov r5, r0 <== NOT EXECUTED a00209d8: e2822001 add r2, r2, #1 <== NOT EXECUTED a00209dc: e5832000 str r2, [r3] <== NOT EXECUTED * NOTE: Be sure to disable dispatching before unlocking the mutex * since we do not want to open a window where a context * switch could occur. */ _Thread_Disable_dispatch(); _RTEMS_Unlock_allocator(); a00209e0: e59f3070 ldr r3, [pc, #112] ; a0020a58 <_Region_Process_queue+0x90><== NOT EXECUTED a00209e4: e2856010 add r6, r5, #16 <== NOT EXECUTED RTEMS_INLINE_ROUTINE void *_Region_Allocate_segment ( Region_Control *the_region, uintptr_t size ) { return _Heap_Allocate( &the_region->Memory, size ); a00209e8: e2857068 add r7, r5, #104 ; 0x68 <== NOT EXECUTED a00209ec: e5930000 ldr r0, [r3] <== NOT EXECUTED a00209f0: ebffe92e bl a001aeb0 <_API_Mutex_Unlock> <== NOT EXECUTED a00209f4: e3a08000 mov r8, #0 <== NOT EXECUTED a00209f8: ea00000c b a0020a30 <_Region_Process_queue+0x68> <== NOT EXECUTED a00209fc: e5941024 ldr r1, [r4, #36] ; 0x24 <== NOT EXECUTED a0020a00: ebffebc7 bl a001b924 <_Heap_Allocate_aligned_with_boundary><== NOT EXECUTED the_segment = (void **) _Region_Allocate_segment( the_region, the_thread->Wait.count ); if ( the_segment == NULL ) a0020a04: e2503000 subs r3, r0, #0 <== NOT EXECUTED a0020a08: 0a00000f beq a0020a4c <_Region_Process_queue+0x84> <== NOT EXECUTED break; *(void **)the_thread->Wait.return_argument = the_segment; the_region->number_of_used_blocks += 1; a0020a0c: e5952064 ldr r2, [r5, #100] ; 0x64 <== NOT EXECUTED ); if ( the_segment == NULL ) break; *(void **)the_thread->Wait.return_argument = the_segment; a0020a10: e5941028 ldr r1, [r4, #40] ; 0x28 <== NOT EXECUTED the_region->number_of_used_blocks += 1; _Thread_queue_Extract( &the_region->Wait_queue, the_thread ); a0020a14: e1a00006 mov r0, r6 <== NOT EXECUTED if ( the_segment == NULL ) break; *(void **)the_thread->Wait.return_argument = the_segment; the_region->number_of_used_blocks += 1; a0020a18: e2822001 add r2, r2, #1 <== NOT EXECUTED ); if ( the_segment == NULL ) break; *(void **)the_thread->Wait.return_argument = the_segment; a0020a1c: e5813000 str r3, [r1] <== NOT EXECUTED the_region->number_of_used_blocks += 1; _Thread_queue_Extract( &the_region->Wait_queue, the_thread ); a0020a20: e1a01004 mov r1, r4 <== NOT EXECUTED if ( the_segment == NULL ) break; *(void **)the_thread->Wait.return_argument = the_segment; the_region->number_of_used_blocks += 1; a0020a24: e5852064 str r2, [r5, #100] ; 0x64 <== NOT EXECUTED _Thread_queue_Extract( &the_region->Wait_queue, the_thread ); a0020a28: eb00019b bl a002109c <_Thread_queue_Extract> <== NOT EXECUTED the_thread->Wait.return_code = RTEMS_SUCCESSFUL; a0020a2c: e5848034 str r8, [r4, #52] ; 0x34 <== NOT EXECUTED /* * NOTE: The following loop is O(n) where n is the number of * threads whose memory request is satisfied. */ for ( ; ; ) { the_thread = _Thread_queue_First( &the_region->Wait_queue ); a0020a30: e1a00006 mov r0, r6 <== NOT EXECUTED a0020a34: eb0001da bl a00211a4 <_Thread_queue_First> <== NOT EXECUTED a0020a38: e3a02000 mov r2, #0 <== NOT EXECUTED if ( the_thread == NULL ) a0020a3c: e2504000 subs r4, r0, #0 <== NOT EXECUTED a0020a40: e1a03002 mov r3, r2 <== NOT EXECUTED a0020a44: e1a00007 mov r0, r7 <== NOT EXECUTED a0020a48: 1affffeb bne a00209fc <_Region_Process_queue+0x34> <== NOT EXECUTED the_region->number_of_used_blocks += 1; _Thread_queue_Extract( &the_region->Wait_queue, the_thread ); the_thread->Wait.return_code = RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); } a0020a4c: e8bd41f0 pop {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED *(void **)the_thread->Wait.return_argument = the_segment; the_region->number_of_used_blocks += 1; _Thread_queue_Extract( &the_region->Wait_queue, the_thread ); the_thread->Wait.return_code = RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); a0020a50: eafff3ca b a001d980 <_Thread_Enable_dispatch> <== NOT EXECUTED =============================================================================== a000b5f8 <_Scheduler_priority_Block>: ) { Scheduler_priority_Per_thread *sched_info; Chain_Control *ready; sched_info = (Scheduler_priority_Per_thread *) the_thread->scheduler_info; a000b5f8: e590208c ldr r2, [r0, #140] ; 0x8c <== NOT EXECUTED #include void _Scheduler_priority_Block( Thread_Control *the_thread ) { a000b5fc: e92d0030 push {r4, r5} <== NOT EXECUTED ready = sched_info->ready_chain; a000b600: e5923000 ldr r3, [r2] <== NOT EXECUTED if ( _Chain_Has_only_one_node( ready ) ) { a000b604: e593c000 ldr ip, [r3] <== NOT EXECUTED a000b608: e5931008 ldr r1, [r3, #8] <== NOT EXECUTED a000b60c: e15c0001 cmp ip, r1 <== NOT EXECUTED a000b610: 0a00000d beq a000b64c <_Scheduler_priority_Block+0x54> <== NOT EXECUTED ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; a000b614: e890000c ldm r0, {r2, r3} <== NOT EXECUTED previous = the_node->previous; next->previous = previous; a000b618: e5823004 str r3, [r2, #4] <== NOT EXECUTED previous->next = next; a000b61c: e5832000 str r2, [r3] <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool _Thread_Is_heir ( const Thread_Control *the_thread ) { return ( the_thread == _Thread_Heir ); a000b620: e59f30dc ldr r3, [pc, #220] ; a000b704 <_Scheduler_priority_Block+0x10c><== NOT EXECUTED _Scheduler_priority_Ready_queue_extract( the_thread ); /* TODO: flash critical section? */ if ( _Thread_Is_heir( the_thread ) ) a000b624: e5932008 ldr r2, [r3, #8] <== NOT EXECUTED a000b628: e1500002 cmp r0, r2 <== NOT EXECUTED a000b62c: 0a000018 beq a000b694 <_Scheduler_priority_Block+0x9c> <== NOT EXECUTED _Scheduler_priority_Schedule_body(); if ( _Thread_Is_executing( the_thread ) ) a000b630: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED a000b634: e1500003 cmp r0, r3 <== NOT EXECUTED _Thread_Dispatch_necessary = true; a000b638: 059f30c4 ldreq r3, [pc, #196] ; a000b704 <_Scheduler_priority_Block+0x10c><== NOT EXECUTED a000b63c: 03a02001 moveq r2, #1 <== NOT EXECUTED a000b640: 05c32010 strbeq r2, [r3, #16] <== NOT EXECUTED } a000b644: e8bd0030 pop {r4, r5} <== NOT EXECUTED a000b648: e12fff1e bx lr <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Priority_bit_map_Remove ( Priority_bit_map_Information *the_priority_map ) { *the_priority_map->minor &= the_priority_map->block_minor; a000b64c: e5921004 ldr r1, [r2, #4] <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); a000b650: e283c004 add ip, r3, #4 <== NOT EXECUTED head->next = tail; a000b654: e583c000 str ip, [r3] <== NOT EXECUTED head->previous = NULL; a000b658: e3a0c000 mov ip, #0 <== NOT EXECUTED a000b65c: e583c004 str ip, [r3, #4] <== NOT EXECUTED tail->previous = head; a000b660: e5833008 str r3, [r3, #8] <== NOT EXECUTED a000b664: e1d1c0b0 ldrh ip, [r1] <== NOT EXECUTED a000b668: e1d230be ldrh r3, [r2, #14] <== NOT EXECUTED a000b66c: e00c3003 and r3, ip, r3 <== NOT EXECUTED if ( *the_priority_map->minor == 0 ) a000b670: e3530000 cmp r3, #0 <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Priority_bit_map_Remove ( Priority_bit_map_Information *the_priority_map ) { *the_priority_map->minor &= the_priority_map->block_minor; a000b674: e1c130b0 strh r3, [r1] <== NOT EXECUTED if ( *the_priority_map->minor == 0 ) a000b678: 1affffe8 bne a000b620 <_Scheduler_priority_Block+0x28> <== NOT EXECUTED _Priority_Major_bit_map &= the_priority_map->block_major; a000b67c: e59f3084 ldr r3, [pc, #132] ; a000b708 <_Scheduler_priority_Block+0x110><== NOT EXECUTED a000b680: e1d220bc ldrh r2, [r2, #12] <== NOT EXECUTED a000b684: e1d310b0 ldrh r1, [r3] <== NOT EXECUTED a000b688: e0012002 and r2, r1, r2 <== NOT EXECUTED a000b68c: e1c320b0 strh r2, [r3] <== NOT EXECUTED a000b690: eaffffe2 b a000b620 <_Scheduler_priority_Block+0x28> <== NOT EXECUTED RTEMS_INLINE_ROUTINE Priority_Control _Priority_bit_map_Get_highest( void ) { Priority_bit_map_Control minor; Priority_bit_map_Control major; _Bitfield_Find_first_bit( _Priority_Major_bit_map, major ); a000b694: e59f206c ldr r2, [pc, #108] ; a000b708 <_Scheduler_priority_Block+0x110><== NOT EXECUTED * * @param[in] the_thread - pointer to thread */ RTEMS_INLINE_ROUTINE void _Scheduler_priority_Schedule_body(void) { _Thread_Heir = _Scheduler_priority_Ready_queue_first( a000b698: e59f106c ldr r1, [pc, #108] ; a000b70c <_Scheduler_priority_Block+0x114><== NOT EXECUTED _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor ); a000b69c: e59f506c ldr r5, [pc, #108] ; a000b710 <_Scheduler_priority_Block+0x118><== NOT EXECUTED RTEMS_INLINE_ROUTINE Priority_Control _Priority_bit_map_Get_highest( void ) { Priority_bit_map_Control minor; Priority_bit_map_Control major; _Bitfield_Find_first_bit( _Priority_Major_bit_map, major ); a000b6a0: e1d220b0 ldrh r2, [r2] <== NOT EXECUTED a000b6a4: e591c000 ldr ip, [r1] <== NOT EXECUTED a000b6a8: e1a02802 lsl r2, r2, #16 <== NOT EXECUTED a000b6ac: e35208ff cmp r2, #16711680 ; 0xff0000 <== NOT EXECUTED a000b6b0: 959f105c ldrls r1, [pc, #92] ; a000b714 <_Scheduler_priority_Block+0x11c><== NOT EXECUTED a000b6b4: 859f1058 ldrhi r1, [pc, #88] ; a000b714 <_Scheduler_priority_Block+0x11c><== NOT EXECUTED a000b6b8: 97d12822 ldrbls r2, [r1, r2, lsr #16] <== NOT EXECUTED a000b6bc: 87d12c22 ldrbhi r2, [r1, r2, lsr #24] <== NOT EXECUTED a000b6c0: 92822008 addls r2, r2, #8 <== NOT EXECUTED _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor ); a000b6c4: e1a04082 lsl r4, r2, #1 <== NOT EXECUTED a000b6c8: e19540b4 ldrh r4, [r5, r4] <== NOT EXECUTED a000b6cc: e35400ff cmp r4, #255 ; 0xff <== NOT EXECUTED a000b6d0: 97d11004 ldrbls r1, [r1, r4] <== NOT EXECUTED a000b6d4: 87d11424 ldrbhi r1, [r1, r4, lsr #8] <== NOT EXECUTED a000b6d8: 92811008 addls r1, r1, #8 <== NOT EXECUTED return (_Priority_Bits_index( major ) << 4) + a000b6dc: e0812202 add r2, r1, r2, lsl #4 <== NOT EXECUTED Chain_Control *the_ready_queue ) { Priority_Control index = _Priority_bit_map_Get_highest(); if ( !_Chain_Is_empty( &the_ready_queue[ index ] ) ) a000b6e0: e3a0100c mov r1, #12 <== NOT EXECUTED a000b6e4: e0010192 mul r1, r2, r1 <== NOT EXECUTED a000b6e8: e79c2001 ldr r2, [ip, r1] <== NOT EXECUTED a000b6ec: e08c1001 add r1, ip, r1 <== 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 ); a000b6f0: e2811004 add r1, r1, #4 <== NOT EXECUTED return (Thread_Control *) _Chain_First( &the_ready_queue[ index ] ); a000b6f4: e1520001 cmp r2, r1 <== NOT EXECUTED a000b6f8: 03a02000 moveq r2, #0 <== NOT EXECUTED * * @param[in] the_thread - pointer to thread */ RTEMS_INLINE_ROUTINE void _Scheduler_priority_Schedule_body(void) { _Thread_Heir = _Scheduler_priority_Ready_queue_first( a000b6fc: e5832008 str r2, [r3, #8] <== NOT EXECUTED a000b700: eaffffca b a000b630 <_Scheduler_priority_Block+0x38> <== NOT EXECUTED =============================================================================== a000b76c <_Scheduler_priority_Enqueue>: ) { Scheduler_priority_Per_thread *sched_info; Chain_Control *ready; sched_info = (Scheduler_priority_Per_thread *) the_thread->scheduler_info; a000b76c: e590308c ldr r3, [r0, #140] ; 0x8c <== NOT EXECUTED #include void _Scheduler_priority_Enqueue( Thread_Control *the_thread ) { a000b770: e92d0070 push {r4, r5, r6} <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Priority_bit_map_Add ( Priority_bit_map_Information *the_priority_map ) { *the_priority_map->minor |= the_priority_map->ready_minor; a000b774: e593c004 ldr ip, [r3, #4] <== NOT EXECUTED a000b778: e1d350ba ldrh r5, [r3, #10] <== NOT EXECUTED _Priority_Major_bit_map |= the_priority_map->ready_major; a000b77c: e59f103c ldr r1, [pc, #60] ; a000b7c0 <_Scheduler_priority_Enqueue+0x54><== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Priority_bit_map_Add ( Priority_bit_map_Information *the_priority_map ) { *the_priority_map->minor |= the_priority_map->ready_minor; a000b780: e1dc60b0 ldrh r6, [ip] <== NOT EXECUTED ready = sched_info->ready_chain; a000b784: e5932000 ldr r2, [r3] <== NOT EXECUTED a000b788: e1865005 orr r5, r6, r5 <== NOT EXECUTED a000b78c: e1cc50b0 strh r5, [ip] <== NOT EXECUTED _Priority_Major_bit_map |= the_priority_map->ready_major; a000b790: e1d3c0b8 ldrh ip, [r3, #8] <== NOT EXECUTED a000b794: e1d150b0 ldrh r5, [r1] <== NOT EXECUTED Chain_Control *the_chain, Chain_Node *the_node ) { Chain_Node *tail = _Chain_Tail( the_chain ); Chain_Node *old_last = tail->previous; a000b798: e5923008 ldr r3, [r2, #8] <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Chain_Append_unprotected( Chain_Control *the_chain, Chain_Node *the_node ) { Chain_Node *tail = _Chain_Tail( the_chain ); a000b79c: e2824004 add r4, r2, #4 <== NOT EXECUTED Chain_Node *old_last = tail->previous; the_node->next = tail; tail->previous = the_node; a000b7a0: e5820008 str r0, [r2, #8] <== NOT EXECUTED a000b7a4: e185200c orr r2, r5, ip <== NOT EXECUTED a000b7a8: e1c120b0 strh r2, [r1] <== NOT EXECUTED old_last->next = the_node; the_node->previous = old_last; a000b7ac: e5803004 str r3, [r0, #4] <== NOT EXECUTED ) { Chain_Node *tail = _Chain_Tail( the_chain ); Chain_Node *old_last = tail->previous; the_node->next = tail; a000b7b0: e5804000 str r4, [r0] <== NOT EXECUTED tail->previous = the_node; old_last->next = the_node; a000b7b4: e5830000 str r0, [r3] <== NOT EXECUTED _Scheduler_priority_Ready_queue_enqueue( the_thread ); } a000b7b8: e8bd0070 pop {r4, r5, r6} <== NOT EXECUTED a000b7bc: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000b718 <_Scheduler_priority_Enqueue_first>: ) { Scheduler_priority_Per_thread *sched_info; Chain_Control *ready; sched_info = (Scheduler_priority_Per_thread *) the_thread->scheduler_info; a000b718: e590308c ldr r3, [r0, #140] ; 0x8c <== NOT EXECUTED #include void _Scheduler_priority_Enqueue_first( Thread_Control *the_thread ) { a000b71c: e92d0030 push {r4, r5} <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Priority_bit_map_Add ( Priority_bit_map_Information *the_priority_map ) { *the_priority_map->minor |= the_priority_map->ready_minor; a000b720: e593c004 ldr ip, [r3, #4] <== NOT EXECUTED a000b724: e1d340ba ldrh r4, [r3, #10] <== NOT EXECUTED _Priority_Major_bit_map |= the_priority_map->ready_major; a000b728: e59f1038 ldr r1, [pc, #56] ; a000b768 <_Scheduler_priority_Enqueue_first+0x50><== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Priority_bit_map_Add ( Priority_bit_map_Information *the_priority_map ) { *the_priority_map->minor |= the_priority_map->ready_minor; a000b72c: e1dc50b0 ldrh r5, [ip] <== NOT EXECUTED ready = sched_info->ready_chain; _Priority_bit_map_Add( &sched_info->Priority_map ); _Chain_Prepend_unprotected( a000b730: e5932000 ldr r2, [r3] <== NOT EXECUTED a000b734: e1854004 orr r4, r5, r4 <== NOT EXECUTED a000b738: e1cc40b0 strh r4, [ip] <== NOT EXECUTED _Priority_Major_bit_map |= the_priority_map->ready_major; a000b73c: e1d3c0b8 ldrh ip, [r3, #8] <== NOT EXECUTED a000b740: e1d140b0 ldrh r4, [r1] <== NOT EXECUTED ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; a000b744: e5923000 ldr r3, [r2] <== NOT EXECUTED Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; a000b748: e5802004 str r2, [r0, #4] <== NOT EXECUTED a000b74c: e184c00c orr ip, r4, ip <== NOT EXECUTED a000b750: e1c1c0b0 strh ip, [r1] <== NOT EXECUTED before_node = after_node->next; after_node->next = the_node; the_node->next = before_node; before_node->previous = the_node; a000b754: 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; a000b758: e5820000 str r0, [r2] <== NOT EXECUTED the_node->next = before_node; a000b75c: e5803000 str r3, [r0] <== NOT EXECUTED _Scheduler_priority_Ready_queue_enqueue_first( the_thread ); } a000b760: e8bd0030 pop {r4, r5} <== NOT EXECUTED a000b764: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000b7c4 <_Scheduler_priority_Extract>: ) { Scheduler_priority_Per_thread *sched_info; Chain_Control *ready; sched_info = (Scheduler_priority_Per_thread *) the_thread->scheduler_info; a000b7c4: e590208c ldr r2, [r0, #140] ; 0x8c <== NOT EXECUTED ready = sched_info->ready_chain; a000b7c8: e5923000 ldr r3, [r2] <== NOT EXECUTED if ( _Chain_Has_only_one_node( ready ) ) { a000b7cc: e593c000 ldr ip, [r3] <== NOT EXECUTED a000b7d0: e5931008 ldr r1, [r3, #8] <== NOT EXECUTED a000b7d4: e15c0001 cmp ip, r1 <== NOT EXECUTED a000b7d8: 0a000003 beq a000b7ec <_Scheduler_priority_Extract+0x28> <== NOT EXECUTED ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; a000b7dc: e890000c ldm r0, {r2, r3} <== NOT EXECUTED previous = the_node->previous; next->previous = previous; a000b7e0: e5823004 str r3, [r2, #4] <== NOT EXECUTED previous->next = next; a000b7e4: e5832000 str r2, [r3] <== NOT EXECUTED a000b7e8: e12fff1e bx lr <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Priority_bit_map_Remove ( Priority_bit_map_Information *the_priority_map ) { *the_priority_map->minor &= the_priority_map->block_minor; a000b7ec: e5921004 ldr r1, [r2, #4] <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); a000b7f0: e2830004 add r0, r3, #4 <== NOT EXECUTED head->next = tail; a000b7f4: e5830000 str r0, [r3] <== NOT EXECUTED head->previous = NULL; a000b7f8: e3a00000 mov r0, #0 <== NOT EXECUTED a000b7fc: e9830009 stmib r3, {r0, r3} <== NOT EXECUTED a000b800: e1d100b0 ldrh r0, [r1] <== NOT EXECUTED a000b804: e1d230be ldrh r3, [r2, #14] <== NOT EXECUTED a000b808: e0003003 and r3, r0, r3 <== NOT EXECUTED if ( *the_priority_map->minor == 0 ) a000b80c: e3530000 cmp r3, #0 <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Priority_bit_map_Remove ( Priority_bit_map_Information *the_priority_map ) { *the_priority_map->minor &= the_priority_map->block_minor; a000b810: e1c130b0 strh r3, [r1] <== NOT EXECUTED if ( *the_priority_map->minor == 0 ) _Priority_Major_bit_map &= the_priority_map->block_major; a000b814: 059f3010 ldreq r3, [pc, #16] ; a000b82c <_Scheduler_priority_Extract+0x68><== NOT EXECUTED a000b818: 01d220bc ldrheq r2, [r2, #12] <== NOT EXECUTED a000b81c: 01d310b0 ldrheq r1, [r3] <== NOT EXECUTED a000b820: 00012002 andeq r2, r1, r2 <== NOT EXECUTED a000b824: 01c320b0 strheq r2, [r3] <== NOT EXECUTED a000b828: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000b830 <_Scheduler_priority_Free>: void _Scheduler_priority_Free ( Thread_Control *the_thread ) { _Workspace_Free( the_thread->scheduler_info ); a000b830: e590008c ldr r0, [r0, #140] ; 0x8c <== NOT EXECUTED a000b834: ea000641 b a000d140 <_Workspace_Free> <== NOT EXECUTED =============================================================================== a000b8b8 <_Scheduler_priority_Schedule>: RTEMS_INLINE_ROUTINE Priority_Control _Priority_bit_map_Get_highest( void ) { Priority_bit_map_Control minor; Priority_bit_map_Control major; _Bitfield_Find_first_bit( _Priority_Major_bit_map, major ); a000b8b8: e59f306c ldr r3, [pc, #108] ; a000b92c <_Scheduler_priority_Schedule+0x74><== NOT EXECUTED * * @param[in] the_thread - pointer to thread */ RTEMS_INLINE_ROUTINE void _Scheduler_priority_Schedule_body(void) { _Thread_Heir = _Scheduler_priority_Ready_queue_first( a000b8bc: e59f206c ldr r2, [pc, #108] ; a000b930 <_Scheduler_priority_Schedule+0x78><== NOT EXECUTED _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor ); a000b8c0: e59fc06c ldr ip, [pc, #108] ; a000b934 <_Scheduler_priority_Schedule+0x7c><== NOT EXECUTED RTEMS_INLINE_ROUTINE Priority_Control _Priority_bit_map_Get_highest( void ) { Priority_bit_map_Control minor; Priority_bit_map_Control major; _Bitfield_Find_first_bit( _Priority_Major_bit_map, major ); a000b8c4: e1d330b0 ldrh r3, [r3] <== NOT EXECUTED a000b8c8: e5921000 ldr r1, [r2] <== NOT EXECUTED a000b8cc: e1a03803 lsl r3, r3, #16 <== NOT EXECUTED a000b8d0: e35308ff cmp r3, #16711680 ; 0xff0000 <== NOT EXECUTED a000b8d4: 959f005c ldrls r0, [pc, #92] ; a000b938 <_Scheduler_priority_Schedule+0x80><== NOT EXECUTED a000b8d8: 859f0058 ldrhi r0, [pc, #88] ; a000b938 <_Scheduler_priority_Schedule+0x80><== NOT EXECUTED a000b8dc: 97d03823 ldrbls r3, [r0, r3, lsr #16] <== NOT EXECUTED a000b8e0: 87d03c23 ldrbhi r3, [r0, r3, lsr #24] <== NOT EXECUTED a000b8e4: 92833008 addls r3, r3, #8 <== NOT EXECUTED _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor ); a000b8e8: e1a02083 lsl r2, r3, #1 <== NOT EXECUTED a000b8ec: e19c20b2 ldrh r2, [ip, r2] <== NOT EXECUTED a000b8f0: e35200ff cmp r2, #255 ; 0xff <== NOT EXECUTED a000b8f4: 97d02002 ldrbls r2, [r0, r2] <== NOT EXECUTED a000b8f8: 87d02422 ldrbhi r2, [r0, r2, lsr #8] <== NOT EXECUTED a000b8fc: e59f0038 ldr r0, [pc, #56] ; a000b93c <_Scheduler_priority_Schedule+0x84><== NOT EXECUTED a000b900: 92822008 addls r2, r2, #8 <== NOT EXECUTED return (_Priority_Bits_index( major ) << 4) + a000b904: e0823203 add r3, r2, r3, lsl #4 <== NOT EXECUTED Chain_Control *the_ready_queue ) { Priority_Control index = _Priority_bit_map_Get_highest(); if ( !_Chain_Is_empty( &the_ready_queue[ index ] ) ) a000b908: e3a0200c mov r2, #12 <== NOT EXECUTED a000b90c: e0020293 mul r2, r3, r2 <== NOT EXECUTED #include void _Scheduler_priority_Schedule(void) { _Scheduler_priority_Schedule_body(); } a000b910: e7913002 ldr r3, [r1, r2] <== NOT EXECUTED a000b914: e0812002 add r2, r1, 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 ); a000b918: e2822004 add r2, r2, #4 <== NOT EXECUTED return (Thread_Control *) _Chain_First( &the_ready_queue[ index ] ); a000b91c: e1530002 cmp r3, r2 <== NOT EXECUTED a000b920: 03a03000 moveq r3, #0 <== NOT EXECUTED * * @param[in] the_thread - pointer to thread */ RTEMS_INLINE_ROUTINE void _Scheduler_priority_Schedule_body(void) { _Thread_Heir = _Scheduler_priority_Ready_queue_first( a000b924: e5803008 str r3, [r0, #8] <== NOT EXECUTED a000b928: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000b940 <_Scheduler_priority_Unblock>: ) { Scheduler_priority_Per_thread *sched_info; Chain_Control *ready; sched_info = (Scheduler_priority_Per_thread *) the_thread->scheduler_info; a000b940: e590308c ldr r3, [r0, #140] ; 0x8c #include void _Scheduler_priority_Unblock ( Thread_Control *the_thread ) { a000b944: e92d00f0 push {r4, r5, r6, r7} RTEMS_INLINE_ROUTINE void _Priority_bit_map_Add ( Priority_bit_map_Information *the_priority_map ) { *the_priority_map->minor |= the_priority_map->ready_minor; a000b948: e5934004 ldr r4, [r3, #4] a000b94c: e1d360ba ldrh r6, [r3, #10] ready = sched_info->ready_chain; a000b950: e5932000 ldr r2, [r3] a000b954: e1d470b0 ldrh r7, [r4] * a context switch. * Pseudo-ISR case: * Even if the thread isn't preemptible, if the new heir is * a pseudo-ISR system task, we need to do a context switch. */ if ( the_thread->current_priority < _Thread_Heir->current_priority ) { a000b958: e59f1078 ldr r1, [pc, #120] ; a000b9d8 <_Scheduler_priority_Unblock+0x98> _Priority_Major_bit_map |= the_priority_map->ready_major; a000b95c: e59fc078 ldr ip, [pc, #120] ; a000b9dc <_Scheduler_priority_Unblock+0x9c> RTEMS_INLINE_ROUTINE void _Priority_bit_map_Add ( Priority_bit_map_Information *the_priority_map ) { *the_priority_map->minor |= the_priority_map->ready_minor; a000b960: e1876006 orr r6, r7, r6 a000b964: e1c460b0 strh r6, [r4] _Priority_Major_bit_map |= the_priority_map->ready_major; a000b968: e1d360b8 ldrh r6, [r3, #8] Chain_Control *the_chain, Chain_Node *the_node ) { Chain_Node *tail = _Chain_Tail( the_chain ); Chain_Node *old_last = tail->previous; a000b96c: e5923008 ldr r3, [r2, #8] the_node->next = tail; tail->previous = the_node; a000b970: e5820008 str r0, [r2, #8] a000b974: e5914008 ldr r4, [r1, #8] a000b978: e1dc70b0 ldrh r7, [ip] RTEMS_INLINE_ROUTINE void _Chain_Append_unprotected( Chain_Control *the_chain, Chain_Node *the_node ) { Chain_Node *tail = _Chain_Tail( the_chain ); a000b97c: e2825004 add r5, r2, #4 a000b980: e5944014 ldr r4, [r4, #20] a000b984: e5902014 ldr r2, [r0, #20] a000b988: e1876006 orr r6, r7, r6 a000b98c: e1cc60b0 strh r6, [ip] a000b990: e1520004 cmp r2, r4 Chain_Node *old_last = tail->previous; the_node->next = tail; a000b994: e5805000 str r5, [r0] tail->previous = the_node; old_last->next = the_node; the_node->previous = old_last; a000b998: e5803004 str r3, [r0, #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; a000b99c: e5830000 str r0, [r3] a000b9a0: 2a000006 bcs a000b9c0 <_Scheduler_priority_Unblock+0x80> _Thread_Heir = the_thread; if ( _Thread_Executing->is_preemptible || a000b9a4: e5913004 ldr r3, [r1, #4] * Pseudo-ISR case: * Even if the thread isn't preemptible, if the new heir is * a pseudo-ISR system task, we need to do a context switch. */ if ( the_thread->current_priority < _Thread_Heir->current_priority ) { _Thread_Heir = the_thread; a000b9a8: e5810008 str r0, [r1, #8] if ( _Thread_Executing->is_preemptible || a000b9ac: e5d33074 ldrb r3, [r3, #116] ; 0x74 a000b9b0: e3530000 cmp r3, #0 a000b9b4: 0a000003 beq a000b9c8 <_Scheduler_priority_Unblock+0x88> the_thread->current_priority == 0 ) _Thread_Dispatch_necessary = true; a000b9b8: e3a03001 mov r3, #1 a000b9bc: e5c13010 strb r3, [r1, #16] } } a000b9c0: e8bd00f0 pop {r4, r5, r6, r7} a000b9c4: e12fff1e bx lr * Even if the thread isn't preemptible, if the new heir is * a pseudo-ISR system task, we need to do a context switch. */ if ( the_thread->current_priority < _Thread_Heir->current_priority ) { _Thread_Heir = the_thread; if ( _Thread_Executing->is_preemptible || a000b9c8: e3520000 cmp r2, #0 <== NOT EXECUTED the_thread->current_priority == 0 ) _Thread_Dispatch_necessary = true; a000b9cc: 03a03001 moveq r3, #1 <== NOT EXECUTED a000b9d0: 05c13010 strbeq r3, [r1, #16] <== NOT EXECUTED a000b9d4: eafffff9 b a000b9c0 <_Scheduler_priority_Unblock+0x80> <== NOT EXECUTED =============================================================================== a000ba58 <_Scheduler_priority_Yield>: Scheduler_priority_Per_thread *sched_info; ISR_Level level; Thread_Control *executing; Chain_Control *ready; executing = _Thread_Executing; a000ba58: e59f1094 ldr r1, [pc, #148] ; a000baf4 <_Scheduler_priority_Yield+0x9c><== NOT EXECUTED * ready chain * select heir */ void _Scheduler_priority_Yield(void) { a000ba5c: e92d0070 push {r4, r5, r6} <== NOT EXECUTED Scheduler_priority_Per_thread *sched_info; ISR_Level level; Thread_Control *executing; Chain_Control *ready; executing = _Thread_Executing; a000ba60: e5913004 ldr r3, [r1, #4] <== NOT EXECUTED sched_info = (Scheduler_priority_Per_thread *) executing->scheduler_info; ready = sched_info->ready_chain; a000ba64: e593208c ldr r2, [r3, #140] ; 0x8c <== NOT EXECUTED a000ba68: e5922000 ldr r2, [r2] <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000ba6c: e10f0000 mrs r0, CPSR <== NOT EXECUTED a000ba70: e380c080 orr ip, r0, #128 ; 0x80 <== NOT EXECUTED a000ba74: e129f00c msr CPSR_fc, ip <== NOT EXECUTED _ISR_Disable( level ); if ( !_Chain_Has_only_one_node( ready ) ) { a000ba78: e5924000 ldr r4, [r2] <== NOT EXECUTED a000ba7c: e592c008 ldr ip, [r2, #8] <== NOT EXECUTED a000ba80: e154000c cmp r4, ip <== NOT EXECUTED a000ba84: 0a000016 beq a000bae4 <_Scheduler_priority_Yield+0x8c> <== NOT EXECUTED ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; a000ba88: e5935000 ldr r5, [r3] <== NOT EXECUTED previous = the_node->previous; a000ba8c: e5934004 ldr r4, [r3, #4] <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Chain_Append_unprotected( Chain_Control *the_chain, Chain_Node *the_node ) { Chain_Node *tail = _Chain_Tail( the_chain ); a000ba90: e2826004 add r6, r2, #4 <== NOT EXECUTED Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; next->previous = previous; a000ba94: e5854004 str r4, [r5, #4] <== NOT EXECUTED Chain_Control *the_chain, Chain_Node *the_node ) { Chain_Node *tail = _Chain_Tail( the_chain ); Chain_Node *old_last = tail->previous; a000ba98: e592c008 ldr ip, [r2, #8] <== NOT EXECUTED the_node->next = tail; tail->previous = the_node; a000ba9c: e5823008 str r3, [r2, #8] <== NOT EXECUTED Chain_Node *previous; next = the_node->next; previous = the_node->previous; next->previous = previous; previous->next = next; a000baa0: e5845000 str r5, [r4] <== NOT EXECUTED Chain_Node *old_last = tail->previous; the_node->next = tail; tail->previous = the_node; old_last->next = the_node; the_node->previous = old_last; a000baa4: e8831040 stm r3, {r6, ip} <== NOT EXECUTED Chain_Node *tail = _Chain_Tail( the_chain ); Chain_Node *old_last = tail->previous; the_node->next = tail; tail->previous = the_node; old_last->next = the_node; a000baa8: e58c3000 str r3, [ip] <== NOT EXECUTED static inline void arm_interrupt_flash( uint32_t level ) { uint32_t arm_switch_reg; __asm__ volatile ( a000baac: e10fc000 mrs ip, CPSR <== NOT EXECUTED a000bab0: e129f000 msr CPSR_fc, r0 <== NOT EXECUTED a000bab4: e129f00c msr CPSR_fc, ip <== NOT EXECUTED _Chain_Extract_unprotected( &executing->Object.Node ); _Chain_Append_unprotected( ready, &executing->Object.Node ); _ISR_Flash( level ); if ( _Thread_Is_heir( executing ) ) a000bab8: e591c008 ldr ip, [r1, #8] <== NOT EXECUTED a000babc: e153000c cmp r3, ip <== NOT EXECUTED a000bac0: 0a000004 beq a000bad8 <_Scheduler_priority_Yield+0x80> <== NOT EXECUTED _Thread_Heir = (Thread_Control *) _Chain_First( ready ); _Thread_Dispatch_necessary = true; } else if ( !_Thread_Is_heir( executing ) ) _Thread_Dispatch_necessary = true; a000bac4: e3a03001 mov r3, #1 <== NOT EXECUTED a000bac8: e5c13010 strb r3, [r1, #16] <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000bacc: e129f000 msr CPSR_fc, r0 <== NOT EXECUTED _ISR_Enable( level ); } a000bad0: e8bd0070 pop {r4, r5, r6} <== NOT EXECUTED a000bad4: e12fff1e bx lr <== NOT EXECUTED _Chain_Append_unprotected( ready, &executing->Object.Node ); _ISR_Flash( level ); if ( _Thread_Is_heir( executing ) ) _Thread_Heir = (Thread_Control *) _Chain_First( ready ); a000bad8: e5923000 ldr r3, [r2] <== NOT EXECUTED a000badc: e5813008 str r3, [r1, #8] <== NOT EXECUTED a000bae0: eafffff7 b a000bac4 <_Scheduler_priority_Yield+0x6c> <== NOT EXECUTED _Thread_Dispatch_necessary = true; } else if ( !_Thread_Is_heir( executing ) ) a000bae4: e5912008 ldr r2, [r1, #8] <== NOT EXECUTED a000bae8: e1530002 cmp r3, r2 <== NOT EXECUTED a000baec: 1afffff4 bne a000bac4 <_Scheduler_priority_Yield+0x6c> <== NOT EXECUTED a000baf0: eafffff5 b a000bacc <_Scheduler_priority_Yield+0x74> <== NOT EXECUTED =============================================================================== a000bb88 <_Scheduler_simple_Block>: #include void _Scheduler_simple_Block( Thread_Control *the_thread ) { a000bb88: e92d4030 push {r4, r5, lr} <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool _Thread_Is_heir ( const Thread_Control *the_thread ) { return ( the_thread == _Thread_Heir ); a000bb8c: e59f5030 ldr r5, [pc, #48] ; a000bbc4 <_Scheduler_simple_Block+0x3c><== NOT EXECUTED a000bb90: e1a04000 mov r4, r0 <== NOT EXECUTED _Scheduler_simple_Extract(the_thread); a000bb94: eb00000d bl a000bbd0 <_Scheduler_simple_Extract> <== NOT EXECUTED if ( _Thread_Is_heir( the_thread ) ) a000bb98: e5953008 ldr r3, [r5, #8] <== NOT EXECUTED a000bb9c: e1540003 cmp r4, r3 <== NOT EXECUTED a000bba0: 0a000005 beq a000bbbc <_Scheduler_simple_Block+0x34> <== NOT EXECUTED _Scheduler_simple_Schedule(); if ( _Thread_Is_executing( the_thread ) ) a000bba4: e5953004 ldr r3, [r5, #4] <== NOT EXECUTED a000bba8: e1540003 cmp r4, r3 <== NOT EXECUTED _Thread_Dispatch_necessary = true; a000bbac: 059f3010 ldreq r3, [pc, #16] ; a000bbc4 <_Scheduler_simple_Block+0x3c><== NOT EXECUTED a000bbb0: 03a02001 moveq r2, #1 <== NOT EXECUTED a000bbb4: 05c32010 strbeq r2, [r3, #16] <== NOT EXECUTED a000bbb8: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED ) { _Scheduler_simple_Extract(the_thread); if ( _Thread_Is_heir( the_thread ) ) _Scheduler_simple_Schedule(); a000bbbc: eb000048 bl a000bce4 <_Scheduler_simple_Schedule> <== NOT EXECUTED a000bbc0: eafffff7 b a000bba4 <_Scheduler_simple_Block+0x1c> <== NOT EXECUTED =============================================================================== a000bbcc <_Scheduler_simple_Enqueue>: void _Scheduler_simple_Enqueue( Thread_Control *the_thread ) { _Scheduler_simple_Ready_queue_Enqueue( the_thread ); a000bbcc: ea000026 b a000bc6c <_Scheduler_simple_Ready_queue_Enqueue><== NOT EXECUTED =============================================================================== a000bbc8 <_Scheduler_simple_Enqueue_first>: void _Scheduler_simple_Enqueue_first( Thread_Control *the_thread ) { _Scheduler_simple_Ready_queue_Enqueue_first( the_thread ); a000bbc8: ea000014 b a000bc20 <_Scheduler_simple_Ready_queue_Enqueue_first><== NOT EXECUTED =============================================================================== a000bbd0 <_Scheduler_simple_Extract>: ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; a000bbd0: e890000c ldm r0, {r2, r3} <== NOT EXECUTED previous = the_node->previous; next->previous = previous; a000bbd4: e5823004 str r3, [r2, #4] <== NOT EXECUTED previous->next = next; a000bbd8: e5832000 str r2, [r3] <== NOT EXECUTED void _Scheduler_simple_Extract( Thread_Control *the_thread ) { _Chain_Extract_unprotected( &the_thread->Object.Node ); } a000bbdc: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000bbec <_Scheduler_simple_Free>: */ void _Scheduler_simple_Free( Thread_Control *the_thread ) { } a000bbec: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000bc6c <_Scheduler_simple_Ready_queue_Enqueue>: { Chain_Control *ready; Chain_Node *the_node; Thread_Control *current; ready = (Chain_Control *)_Scheduler.information; a000bc6c: e59f306c ldr r3, [pc, #108] ; a000bce0 <_Scheduler_simple_Ready_queue_Enqueue+0x74> #include void _Scheduler_simple_Ready_queue_Enqueue( Thread_Control *the_thread ) { a000bc70: e52d4004 push {r4} ; (str r4, [sp, #-4]!) Chain_Control *ready; Chain_Node *the_node; Thread_Control *current; ready = (Chain_Control *)_Scheduler.information; a000bc74: e5931000 ldr r1, [r3] } } /* enqueue */ _Chain_Insert_unprotected( (Chain_Node *)current, &the_thread->Object.Node ); } a000bc78: e1a0c001 mov ip, r1 a000bc7c: e49c3004 ldr r3, [ip], #4 ready = (Chain_Control *)_Scheduler.information; the_node = _Chain_First( ready ); current = (Thread_Control *)ready; for ( ; !_Chain_Is_tail( ready, the_node ) ; the_node = the_node->next ) { a000bc80: e153000c cmp r3, ip a000bc84: 0a00000c beq a000bcbc <_Scheduler_simple_Ready_queue_Enqueue+0x50> current = (Thread_Control *) the_node; /* break when AT END OR PAST our priority */ if ( the_thread->current_priority < current->current_priority ) { a000bc88: e5904014 ldr r4, [r0, #20] <== NOT EXECUTED a000bc8c: e5932014 ldr r2, [r3, #20] <== NOT EXECUTED ready = (Chain_Control *)_Scheduler.information; the_node = _Chain_First( ready ); current = (Thread_Control *)ready; for ( ; !_Chain_Is_tail( ready, the_node ) ; the_node = the_node->next ) { current = (Thread_Control *) the_node; a000bc90: e1a01003 mov r1, r3 <== NOT EXECUTED /* break when AT END OR PAST our priority */ if ( the_thread->current_priority < current->current_priority ) { a000bc94: e1540002 cmp r4, r2 <== NOT EXECUTED a000bc98: 2a000004 bcs a000bcb0 <_Scheduler_simple_Ready_queue_Enqueue+0x44><== NOT EXECUTED a000bc9c: ea00000d b a000bcd8 <_Scheduler_simple_Ready_queue_Enqueue+0x6c><== NOT EXECUTED a000bca0: e5932014 ldr r2, [r3, #20] <== NOT EXECUTED ready = (Chain_Control *)_Scheduler.information; the_node = _Chain_First( ready ); current = (Thread_Control *)ready; for ( ; !_Chain_Is_tail( ready, the_node ) ; the_node = the_node->next ) { current = (Thread_Control *) the_node; a000bca4: e1a01003 mov r1, r3 <== NOT EXECUTED /* break when AT END OR PAST our priority */ if ( the_thread->current_priority < current->current_priority ) { a000bca8: e1520004 cmp r2, r4 <== NOT EXECUTED a000bcac: 8a000009 bhi a000bcd8 <_Scheduler_simple_Ready_queue_Enqueue+0x6c><== NOT EXECUTED ready = (Chain_Control *)_Scheduler.information; the_node = _Chain_First( ready ); current = (Thread_Control *)ready; for ( ; !_Chain_Is_tail( ready, the_node ) ; the_node = the_node->next ) { a000bcb0: e5933000 ldr r3, [r3] <== NOT EXECUTED a000bcb4: e153000c cmp r3, ip <== NOT EXECUTED a000bcb8: 1afffff8 bne a000bca0 <_Scheduler_simple_Ready_queue_Enqueue+0x34><== NOT EXECUTED ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; a000bcbc: e5913000 ldr r3, [r1] Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; a000bcc0: e5801004 str r1, [r0, #4] before_node = after_node->next; after_node->next = the_node; a000bcc4: e5810000 str r0, [r1] the_node->next = before_node; before_node->previous = the_node; a000bcc8: e5830004 str r0, [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; a000bccc: e5803000 str r3, [r0] } } /* enqueue */ _Chain_Insert_unprotected( (Chain_Node *)current, &the_thread->Object.Node ); } a000bcd0: e8bd0010 pop {r4} a000bcd4: e12fff1e bx lr for ( ; !_Chain_Is_tail( ready, the_node ) ; the_node = the_node->next ) { current = (Thread_Control *) the_node; /* break when AT END OR PAST our priority */ if ( the_thread->current_priority < current->current_priority ) { current = (Thread_Control *)current->Object.Node.previous; a000bcd8: e5931004 ldr r1, [r3, #4] <== NOT EXECUTED break; a000bcdc: eafffff6 b a000bcbc <_Scheduler_simple_Ready_queue_Enqueue+0x50><== NOT EXECUTED =============================================================================== a000bc20 <_Scheduler_simple_Ready_queue_Enqueue_first>: } } /* enqueue */ _Chain_Insert_unprotected( (Chain_Node *)current, &the_thread->Object.Node ); } a000bc20: e59f3040 ldr r3, [pc, #64] ; a000bc68 <_Scheduler_simple_Ready_queue_Enqueue_first+0x48><== NOT EXECUTED */ 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 ) { a000bc24: e5901014 ldr r1, [r0, #20] <== NOT EXECUTED } } /* enqueue */ _Chain_Insert_unprotected( (Chain_Node *)current, &the_thread->Object.Node ); } a000bc28: e5933000 ldr r3, [r3] <== NOT EXECUTED a000bc2c: e5933000 ldr r3, [r3] <== NOT EXECUTED */ 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 ) { a000bc30: e5932014 ldr r2, [r3, #20] <== NOT EXECUTED a000bc34: e1510002 cmp r1, r2 <== NOT EXECUTED a000bc38: 9a000003 bls a000bc4c <_Scheduler_simple_Ready_queue_Enqueue_first+0x2c><== NOT EXECUTED * 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 ) { a000bc3c: e5933000 ldr r3, [r3] <== NOT EXECUTED current = (Thread_Control *) the_node; /* break when AT HEAD OF (or PAST) our priority */ if ( the_thread->current_priority <= current->current_priority ) { a000bc40: e5932014 ldr r2, [r3, #20] <== NOT EXECUTED a000bc44: e1520001 cmp r2, r1 <== NOT EXECUTED a000bc48: 3afffffb bcc a000bc3c <_Scheduler_simple_Ready_queue_Enqueue_first+0x1c><== NOT EXECUTED current = (Thread_Control *)current->Object.Node.previous; a000bc4c: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; a000bc50: e5932000 ldr r2, [r3] <== NOT EXECUTED Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; a000bc54: e5803004 str r3, [r0, #4] <== NOT EXECUTED before_node = after_node->next; after_node->next = the_node; a000bc58: e5830000 str r0, [r3] <== NOT EXECUTED the_node->next = before_node; before_node->previous = the_node; a000bc5c: e5820004 str r0, [r2, #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; a000bc60: e5802000 str r2, [r0] <== NOT EXECUTED } } /* enqueue */ _Chain_Insert_unprotected( (Chain_Node *)current, &the_thread->Object.Node ); } a000bc64: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000bce4 <_Scheduler_simple_Schedule>: #include void _Scheduler_simple_Schedule(void) { _Thread_Heir = (Thread_Control *) _Chain_First( (Chain_Control *) _Scheduler.information a000bce4: e59f3010 ldr r3, [pc, #16] ; a000bcfc <_Scheduler_simple_Schedule+0x18><== NOT EXECUTED ); } a000bce8: e5933000 ldr r3, [r3] <== NOT EXECUTED #include #include void _Scheduler_simple_Schedule(void) { _Thread_Heir = (Thread_Control *) _Chain_First( a000bcec: e5932000 ldr r2, [r3] <== NOT EXECUTED a000bcf0: e59f3008 ldr r3, [pc, #8] ; a000bd00 <_Scheduler_simple_Schedule+0x1c><== NOT EXECUTED a000bcf4: e5832008 str r2, [r3, #8] <== NOT EXECUTED (Chain_Control *) _Scheduler.information ); } a000bcf8: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000bd04 <_Scheduler_simple_Unblock>: #include void _Scheduler_simple_Unblock( Thread_Control *the_thread ) { a000bd04: e92d4010 push {r4, lr} a000bd08: e1a04000 mov r4, r0 _Scheduler_simple_Ready_queue_Enqueue(the_thread); a000bd0c: ebffffd6 bl a000bc6c <_Scheduler_simple_Ready_queue_Enqueue> * a context switch. * Pseudo-ISR case: * Even if the thread isn't preemptible, if the new heir is * a pseudo-ISR system task, we need to do a context switch. */ if ( the_thread->current_priority < _Thread_Heir->current_priority ) { a000bd10: e59f3040 ldr r3, [pc, #64] ; a000bd58 <_Scheduler_simple_Unblock+0x54> a000bd14: e5942014 ldr r2, [r4, #20] a000bd18: e5931008 ldr r1, [r3, #8] a000bd1c: e5911014 ldr r1, [r1, #20] a000bd20: e1520001 cmp r2, r1 a000bd24: 2a000006 bcs a000bd44 <_Scheduler_simple_Unblock+0x40> _Thread_Heir = the_thread; if ( _Thread_Executing->is_preemptible || a000bd28: e5931004 ldr r1, [r3, #4] <== NOT EXECUTED * Pseudo-ISR case: * Even if the thread isn't preemptible, if the new heir is * a pseudo-ISR system task, we need to do a context switch. */ if ( the_thread->current_priority < _Thread_Heir->current_priority ) { _Thread_Heir = the_thread; a000bd2c: e5834008 str r4, [r3, #8] <== NOT EXECUTED if ( _Thread_Executing->is_preemptible || a000bd30: e5d11074 ldrb r1, [r1, #116] ; 0x74 <== NOT EXECUTED a000bd34: e3510000 cmp r1, #0 <== NOT EXECUTED a000bd38: 0a000002 beq a000bd48 <_Scheduler_simple_Unblock+0x44> <== NOT EXECUTED the_thread->current_priority == 0 ) _Thread_Dispatch_necessary = true; a000bd3c: e3a02001 mov r2, #1 <== NOT EXECUTED a000bd40: e5c32010 strb r2, [r3, #16] <== NOT EXECUTED a000bd44: e8bd8010 pop {r4, pc} * Even if the thread isn't preemptible, if the new heir is * a pseudo-ISR system task, we need to do a context switch. */ if ( the_thread->current_priority < _Thread_Heir->current_priority ) { _Thread_Heir = the_thread; if ( _Thread_Executing->is_preemptible || a000bd48: e3520000 cmp r2, #0 <== NOT EXECUTED the_thread->current_priority == 0 ) _Thread_Dispatch_necessary = true; a000bd4c: 03a02001 moveq r2, #1 <== NOT EXECUTED a000bd50: 05c32010 strbeq r2, [r3, #16] <== NOT EXECUTED a000bd54: eafffffa b a000bd44 <_Scheduler_simple_Unblock+0x40> <== NOT EXECUTED =============================================================================== a000bd5c <_Scheduler_simple_Yield>: #include #include #include void _Scheduler_simple_Yield( void ) { a000bd5c: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED ISR_Level level; Thread_Control *executing; executing = _Thread_Executing; a000bd60: e59f5048 ldr r5, [pc, #72] ; a000bdb0 <_Scheduler_simple_Yield+0x54><== NOT EXECUTED a000bd64: e5954004 ldr r4, [r5, #4] <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000bd68: e10f6000 mrs r6, CPSR <== NOT EXECUTED a000bd6c: e3863080 orr r3, r6, #128 ; 0x80 <== NOT EXECUTED a000bd70: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; a000bd74: e894000c ldm r4, {r2, r3} <== NOT EXECUTED { /* extract */ _Chain_Extract_unprotected( &the_thread->Object.Node ); /* enqueue */ _Scheduler_simple_Ready_queue_Enqueue( the_thread ); a000bd78: e1a00004 mov r0, r4 <== NOT EXECUTED previous = the_node->previous; next->previous = previous; a000bd7c: e5823004 str r3, [r2, #4] <== NOT EXECUTED previous->next = next; a000bd80: e5832000 str r2, [r3] <== NOT EXECUTED a000bd84: ebffffb8 bl a000bc6c <_Scheduler_simple_Ready_queue_Enqueue><== NOT EXECUTED static inline void arm_interrupt_flash( uint32_t level ) { uint32_t arm_switch_reg; __asm__ volatile ( a000bd88: e10f3000 mrs r3, CPSR <== NOT EXECUTED a000bd8c: e129f006 msr CPSR_fc, r6 <== NOT EXECUTED a000bd90: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED _Scheduler_simple_Ready_queue_Requeue(&_Scheduler, executing); _ISR_Flash( level ); _Scheduler_simple_Schedule(); a000bd94: ebffffd2 bl a000bce4 <_Scheduler_simple_Schedule> <== NOT EXECUTED if ( !_Thread_Is_heir( executing ) ) a000bd98: e5953008 ldr r3, [r5, #8] <== NOT EXECUTED a000bd9c: e1540003 cmp r4, r3 <== NOT EXECUTED _Thread_Dispatch_necessary = true; a000bda0: 13a03001 movne r3, #1 <== NOT EXECUTED a000bda4: 15c53010 strbne r3, [r5, #16] <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000bda8: e129f006 msr CPSR_fc, r6 <== NOT EXECUTED _ISR_Enable( level ); } a000bdac: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED =============================================================================== a0009c24 <_Semaphore_Translate_core_semaphore_return_code>: */ #if defined(RTEMS_DEBUG) if ( status > CORE_SEMAPHORE_STATUS_LAST ) return RTEMS_INTERNAL_ERROR; #endif return _Semaphore_Translate_core_semaphore_return_code_[status]; a0009c24: e59f3008 ldr r3, [pc, #8] ; a0009c34 <_Semaphore_Translate_core_semaphore_return_code+0x10><== NOT EXECUTED a0009c28: e0833100 add r3, r3, r0, lsl #2 <== NOT EXECUTED } a0009c2c: e5930018 ldr r0, [r3, #24] <== NOT EXECUTED a0009c30: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000f264 <_TOD_Get_uptime>: */ void _TOD_Get_uptime( Timestamp_Control *uptime ) { a000f264: e92d4030 push {r4, r5, lr} <== NOT EXECUTED a000f268: e1a04000 mov r4, r0 <== NOT EXECUTED a000f26c: e24dd010 sub sp, sp, #16 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000f270: e10f5000 mrs r5, CPSR <== NOT EXECUTED a000f274: e3853080 orr r3, r5, #128 ; 0x80 <== NOT EXECUTED a000f278: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED /* assume time checked for NULL by caller */ /* _TOD_Uptime is in native timestamp format */ _ISR_Disable( level ); up = _TOD_Uptime; a000f27c: e59f3040 ldr r3, [pc, #64] ; a000f2c4 <_TOD_Get_uptime+0x60><== NOT EXECUTED a000f280: e8930006 ldm r3, {r1, r2} <== NOT EXECUTED nanoseconds = (*_Watchdog_Nanoseconds_since_tick_handler)(); a000f284: e59f303c ldr r3, [pc, #60] ; a000f2c8 <_TOD_Get_uptime+0x64><== NOT EXECUTED /* assume time checked for NULL by caller */ /* _TOD_Uptime is in native timestamp format */ _ISR_Disable( level ); up = _TOD_Uptime; a000f288: e88d0006 stm sp, {r1, r2} <== NOT EXECUTED nanoseconds = (*_Watchdog_Nanoseconds_since_tick_handler)(); a000f28c: e5933000 ldr r3, [r3] <== NOT EXECUTED a000f290: e12fff33 blx r3 <== NOT EXECUTED a000f294: e1a03000 mov r3, r0 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000f298: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED _ISR_Enable( level ); _Timestamp_Set( &offset, 0, nanoseconds ); a000f29c: e3a02000 mov r2, #0 <== NOT EXECUTED _Timestamp_Add_to( &up, &offset ); a000f2a0: e1a0000d mov r0, sp <== NOT EXECUTED a000f2a4: e28d1008 add r1, sp, #8 <== NOT EXECUTED _ISR_Disable( level ); up = _TOD_Uptime; nanoseconds = (*_Watchdog_Nanoseconds_since_tick_handler)(); _ISR_Enable( level ); _Timestamp_Set( &offset, 0, nanoseconds ); a000f2a8: e58d2008 str r2, [sp, #8] <== NOT EXECUTED a000f2ac: e58d300c str r3, [sp, #12] <== NOT EXECUTED _Timestamp_Add_to( &up, &offset ); a000f2b0: ebfff5e6 bl a000ca50 <_Timespec_Add_to> <== NOT EXECUTED *uptime = up; a000f2b4: e89d000c ldm sp, {r2, r3} <== NOT EXECUTED a000f2b8: e884000c stm r4, {r2, r3} <== NOT EXECUTED } a000f2bc: e28dd010 add sp, sp, #16 <== NOT EXECUTED a000f2c0: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED =============================================================================== a000ac60 <_TOD_Get_uptime_as_timespec>: */ void _TOD_Get_uptime_as_timespec( struct timespec *uptime ) { a000ac60: e92d4010 push {r4, lr} <== NOT EXECUTED a000ac64: e24dd008 sub sp, sp, #8 <== NOT EXECUTED a000ac68: e1a04000 mov r4, r0 <== NOT EXECUTED Timestamp_Control uptime_ts; /* assume time checked for NULL by caller */ _TOD_Get_uptime( &uptime_ts ); a000ac6c: e1a0000d mov r0, sp <== NOT EXECUTED a000ac70: eb0012a7 bl a000f714 <_TOD_Get_uptime> <== NOT EXECUTED _Timestamp_To_timespec( &uptime_ts, uptime ); a000ac74: e89d000c ldm sp, {r2, r3} <== NOT EXECUTED a000ac78: e884000c stm r4, {r2, r3} <== NOT EXECUTED } a000ac7c: e28dd008 add sp, sp, #8 <== NOT EXECUTED a000ac80: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a000c33c <_TOD_Set>: rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; a000c33c: e59f3068 ldr r3, [pc, #104] ; a000c3ac <_TOD_Set+0x70> <== NOT EXECUTED */ void _TOD_Set( const struct timespec *time ) { a000c340: e92d4030 push {r4, r5, lr} <== NOT EXECUTED a000c344: e5932000 ldr r2, [r3] <== NOT EXECUTED a000c348: e1a05000 mov r5, r0 <== NOT EXECUTED a000c34c: e2822001 add r2, r2, #1 <== NOT EXECUTED a000c350: e5832000 str r2, [r3] <== NOT EXECUTED long seconds; _Thread_Disable_dispatch(); _TOD_Deactivate(); seconds = _TOD_Seconds_since_epoch(); a000c354: e59f4054 ldr r4, [pc, #84] ; a000c3b0 <_TOD_Set+0x74> <== NOT EXECUTED if ( time->tv_sec < seconds ) a000c358: e5902000 ldr r2, [r0] <== NOT EXECUTED long seconds; _Thread_Disable_dispatch(); _TOD_Deactivate(); seconds = _TOD_Seconds_since_epoch(); a000c35c: e5943000 ldr r3, [r4] <== NOT EXECUTED if ( time->tv_sec < seconds ) a000c360: e1530002 cmp r3, r2 <== NOT EXECUTED a000c364: ca00000b bgt a000c398 <_TOD_Set+0x5c> <== NOT EXECUTED Watchdog_Adjust_directions direction, Watchdog_Interval units ) { _Watchdog_Adjust( &_Watchdog_Seconds_chain, direction, units ); a000c368: e59f0044 ldr r0, [pc, #68] ; a000c3b4 <_TOD_Set+0x78> <== NOT EXECUTED a000c36c: e3a01000 mov r1, #0 <== NOT EXECUTED a000c370: e0632002 rsb r2, r3, r2 <== NOT EXECUTED a000c374: eb0009be bl a000ea74 <_Watchdog_Adjust> <== NOT EXECUTED _Watchdog_Adjust_seconds( WATCHDOG_BACKWARD, seconds - time->tv_sec ); else _Watchdog_Adjust_seconds( WATCHDOG_FORWARD, time->tv_sec - seconds ); /* POSIX format TOD (timespec) */ _Timestamp_Set( &_TOD_Now, time->tv_sec, time->tv_nsec ); a000c378: e895000c ldm r5, {r2, r3} <== NOT EXECUTED a000c37c: e5843004 str r3, [r4, #4] <== NOT EXECUTED _TOD_Is_set = true; a000c380: e59f3030 ldr r3, [pc, #48] ; a000c3b8 <_TOD_Set+0x7c> <== NOT EXECUTED _Watchdog_Adjust_seconds( WATCHDOG_BACKWARD, seconds - time->tv_sec ); else _Watchdog_Adjust_seconds( WATCHDOG_FORWARD, time->tv_sec - seconds ); /* POSIX format TOD (timespec) */ _Timestamp_Set( &_TOD_Now, time->tv_sec, time->tv_nsec ); a000c384: e5842000 str r2, [r4] <== NOT EXECUTED _TOD_Is_set = true; a000c388: e3a02001 mov r2, #1 <== NOT EXECUTED a000c38c: e5c32000 strb r2, [r3] <== NOT EXECUTED _TOD_Activate(); _Thread_Enable_dispatch(); } a000c390: e8bd4030 pop {r4, r5, lr} <== NOT EXECUTED _Timestamp_Set( &_TOD_Now, time->tv_sec, time->tv_nsec ); _TOD_Is_set = true; _TOD_Activate(); _Thread_Enable_dispatch(); a000c394: ea000605 b a000dbb0 <_Thread_Enable_dispatch> <== NOT EXECUTED a000c398: e59f0014 ldr r0, [pc, #20] ; a000c3b4 <_TOD_Set+0x78> <== NOT EXECUTED a000c39c: e3a01001 mov r1, #1 <== NOT EXECUTED a000c3a0: e0622003 rsb r2, r2, r3 <== NOT EXECUTED a000c3a4: eb0009b2 bl a000ea74 <_Watchdog_Adjust> <== NOT EXECUTED a000c3a8: eafffff2 b a000c378 <_TOD_Set+0x3c> <== NOT EXECUTED =============================================================================== a000a8c8 <_TOD_Tickle_ticks>: { Timestamp_Control tick; uint32_t seconds; /* Convert the tick quantum to a timestamp */ _Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() ); a000a8c8: e59f2064 ldr r2, [pc, #100] ; a000a934 <_TOD_Tickle_ticks+0x6c><== NOT EXECUTED /* Update the counter of ticks since boot */ _Watchdog_Ticks_since_boot += 1; a000a8cc: e59f3064 ldr r3, [pc, #100] ; a000a938 <_TOD_Tickle_ticks+0x70><== NOT EXECUTED * * Output parameters: NONE */ void _TOD_Tickle_ticks( void ) { a000a8d0: e92d4010 push {r4, lr} <== NOT EXECUTED Timestamp_Control tick; uint32_t seconds; /* Convert the tick quantum to a timestamp */ _Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() ); a000a8d4: e592100c ldr r1, [r2, #12] <== NOT EXECUTED /* Update the counter of ticks since boot */ _Watchdog_Ticks_since_boot += 1; a000a8d8: e5932000 ldr r2, [r3] <== NOT EXECUTED { Timestamp_Control tick; uint32_t seconds; /* Convert the tick quantum to a timestamp */ _Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() ); a000a8dc: e3a0cffa mov ip, #1000 ; 0x3e8 <== NOT EXECUTED a000a8e0: e00c0c91 mul ip, r1, ip <== NOT EXECUTED * * Output parameters: NONE */ void _TOD_Tickle_ticks( void ) { a000a8e4: e24dd008 sub sp, sp, #8 <== NOT EXECUTED /* Convert the tick quantum to a timestamp */ _Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() ); /* Update the counter of ticks since boot */ _Watchdog_Ticks_since_boot += 1; a000a8e8: e2822001 add r2, r2, #1 <== NOT EXECUTED { Timestamp_Control tick; uint32_t seconds; /* Convert the tick quantum to a timestamp */ _Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() ); a000a8ec: e3a0e000 mov lr, #0 <== NOT EXECUTED /* Update the counter of ticks since boot */ _Watchdog_Ticks_since_boot += 1; /* Update the timespec format uptime */ _Timestamp_Add_to( &_TOD_Uptime, &tick ); a000a8f0: e1a0100d mov r1, sp <== NOT EXECUTED /* Convert the tick quantum to a timestamp */ _Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() ); /* Update the counter of ticks since boot */ _Watchdog_Ticks_since_boot += 1; a000a8f4: e5832000 str r2, [r3] <== NOT EXECUTED /* Update the timespec format uptime */ _Timestamp_Add_to( &_TOD_Uptime, &tick ); a000a8f8: e59f003c ldr r0, [pc, #60] ; a000a93c <_TOD_Tickle_ticks+0x74><== NOT EXECUTED { Timestamp_Control tick; uint32_t seconds; /* Convert the tick quantum to a timestamp */ _Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() ); a000a8fc: e58de000 str lr, [sp] <== NOT EXECUTED a000a900: e58dc004 str ip, [sp, #4] <== NOT EXECUTED /* Update the counter of ticks since boot */ _Watchdog_Ticks_since_boot += 1; /* Update the timespec format uptime */ _Timestamp_Add_to( &_TOD_Uptime, &tick ); a000a904: eb000851 bl a000ca50 <_Timespec_Add_to> <== NOT EXECUTED /* we do not care how much the uptime changed */ /* Update the timespec format TOD */ seconds = _Timestamp_Add_to_at_tick( &_TOD_Now, &tick ); a000a908: e59f0030 ldr r0, [pc, #48] ; a000a940 <_TOD_Tickle_ticks+0x78><== NOT EXECUTED a000a90c: e1a0100d mov r1, sp <== NOT EXECUTED a000a910: eb00084e bl a000ca50 <_Timespec_Add_to> <== NOT EXECUTED while ( seconds ) { a000a914: e2504000 subs r4, r0, #0 <== NOT EXECUTED a000a918: 0a000003 beq a000a92c <_TOD_Tickle_ticks+0x64> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Watchdog_Tickle_seconds( void ) { _Watchdog_Tickle( &_Watchdog_Seconds_chain ); a000a91c: e59f0020 ldr r0, [pc, #32] ; a000a944 <_TOD_Tickle_ticks+0x7c><== NOT EXECUTED a000a920: eb0009be bl a000d020 <_Watchdog_Tickle> <== NOT EXECUTED a000a924: e2544001 subs r4, r4, #1 <== NOT EXECUTED a000a928: 1afffffb bne a000a91c <_TOD_Tickle_ticks+0x54> <== NOT EXECUTED _Watchdog_Tickle_seconds(); seconds--; } } a000a92c: e28dd008 add sp, sp, #8 <== NOT EXECUTED a000a930: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a000aa5c <_TOD_To_seconds>: { uint32_t time; uint32_t year_mod_4; time = the_tod->day - 1; year_mod_4 = the_tod->year & 3; a000aa5c: e5902000 ldr r2, [r0] <== NOT EXECUTED */ uint32_t _TOD_To_seconds( const rtems_time_of_day *the_tod ) { a000aa60: e92d01f0 push {r4, r5, r6, r7, r8} <== NOT EXECUTED uint32_t year_mod_4; time = the_tod->day - 1; year_mod_4 = the_tod->year & 3; if ( year_mod_4 == 0 ) a000aa64: e2121003 ands r1, r2, #3 <== NOT EXECUTED time += _TOD_Days_to_date[ 1 ][ the_tod->month ]; a000aa68: 05903004 ldreq r3, [r0, #4] <== NOT EXECUTED else time += _TOD_Days_to_date[ 0 ][ the_tod->month ]; a000aa6c: 15903004 ldrne r3, [r0, #4] <== NOT EXECUTED time = the_tod->day - 1; year_mod_4 = the_tod->year & 3; if ( year_mod_4 == 0 ) time += _TOD_Days_to_date[ 1 ][ the_tod->month ]; a000aa70: 059fc07c ldreq ip, [pc, #124] ; a000aaf4 <_TOD_To_seconds+0x98><== NOT EXECUTED else time += _TOD_Days_to_date[ 0 ][ the_tod->month ]; a000aa74: 159fc078 ldrne ip, [pc, #120] ; a000aaf4 <_TOD_To_seconds+0x98><== NOT EXECUTED a000aa78: 11a03083 lslne r3, r3, #1 <== NOT EXECUTED time = the_tod->day - 1; year_mod_4 = the_tod->year & 3; if ( year_mod_4 == 0 ) time += _TOD_Days_to_date[ 1 ][ the_tod->month ]; a000aa7c: 008c3083 addeq r3, ip, r3, lsl #1 <== NOT EXECUTED ) { uint32_t time; uint32_t year_mod_4; time = the_tod->day - 1; a000aa80: e5904008 ldr r4, [r0, #8] <== NOT EXECUTED year_mod_4 = the_tod->year & 3; if ( year_mod_4 == 0 ) time += _TOD_Days_to_date[ 1 ][ the_tod->month ]; else time += _TOD_Days_to_date[ 0 ][ the_tod->month ]; a000aa84: 119c30b3 ldrhne r3, [ip, r3] <== NOT EXECUTED time = the_tod->day - 1; year_mod_4 = the_tod->year & 3; if ( year_mod_4 == 0 ) time += _TOD_Days_to_date[ 1 ][ the_tod->month ]; a000aa88: 01d331ba ldrheq r3, [r3, #26] <== NOT EXECUTED time += _TOD_Days_since_last_leap_year[ year_mod_4 ]; time *= TOD_SECONDS_PER_DAY; time += ((the_tod->hour * TOD_MINUTES_PER_HOUR) + the_tod->minute) a000aa8c: e5908014 ldr r8, [r0, #20] <== NOT EXECUTED a000aa90: e590700c ldr r7, [r0, #12] <== NOT EXECUTED a000aa94: e5906010 ldr r6, [r0, #16] <== NOT EXECUTED time += _TOD_Days_to_date[ 0 ][ the_tod->month ]; time += ( (the_tod->year - TOD_BASE_YEAR) / 4 ) * ( (TOD_DAYS_PER_YEAR * 4) + 1); time += _TOD_Days_since_last_leap_year[ year_mod_4 ]; a000aa98: e08cc081 add ip, ip, r1, lsl #1 <== NOT EXECUTED ) { uint32_t time; uint32_t year_mod_4; time = the_tod->day - 1; a000aa9c: e2444001 sub r4, r4, #1 <== NOT EXECUTED time += _TOD_Days_to_date[ 0 ][ the_tod->month ]; time += ( (the_tod->year - TOD_BASE_YEAR) / 4 ) * ( (TOD_DAYS_PER_YEAR * 4) + 1); time += _TOD_Days_since_last_leap_year[ year_mod_4 ]; a000aaa0: e1dc53b4 ldrh r5, [ip, #52] ; 0x34 <== NOT EXECUTED time *= TOD_SECONDS_PER_DAY; time += ((the_tod->hour * TOD_MINUTES_PER_HOUR) + the_tod->minute) a000aaa4: e3a0103c mov r1, #60 ; 0x3c <== NOT EXECUTED if ( year_mod_4 == 0 ) time += _TOD_Days_to_date[ 1 ][ the_tod->month ]; else time += _TOD_Days_to_date[ 0 ][ the_tod->month ]; time += ( (the_tod->year - TOD_BASE_YEAR) / 4 ) * a000aaa8: e2420d1f sub r0, r2, #1984 ; 0x7c0 <== NOT EXECUTED time = the_tod->day - 1; year_mod_4 = the_tod->year & 3; if ( year_mod_4 == 0 ) time += _TOD_Days_to_date[ 1 ][ the_tod->month ]; a000aaac: 00834004 addeq r4, r3, r4 <== NOT EXECUTED else time += _TOD_Days_to_date[ 0 ][ the_tod->month ]; a000aab0: 10834004 addne r4, r3, r4 <== NOT EXECUTED time += _TOD_Days_since_last_leap_year[ year_mod_4 ]; time *= TOD_SECONDS_PER_DAY; time += ((the_tod->hour * TOD_MINUTES_PER_HOUR) + the_tod->minute) a000aab4: e2882587 add r2, r8, #566231040 ; 0x21c00000 <== NOT EXECUTED a000aab8: e02c6791 mla ip, r1, r7, r6 <== NOT EXECUTED if ( year_mod_4 == 0 ) time += _TOD_Days_to_date[ 1 ][ the_tod->month ]; else time += _TOD_Days_to_date[ 0 ][ the_tod->month ]; time += ( (the_tod->year - TOD_BASE_YEAR) / 4 ) * a000aabc: e2400004 sub r0, r0, #4 <== NOT EXECUTED a000aac0: e3a03e5b mov r3, #1456 ; 0x5b0 <== NOT EXECUTED a000aac4: e2833005 add r3, r3, #5 <== NOT EXECUTED time += _TOD_Days_since_last_leap_year[ year_mod_4 ]; time *= TOD_SECONDS_PER_DAY; time += ((the_tod->hour * TOD_MINUTES_PER_HOUR) + the_tod->minute) a000aac8: e282296b add r2, r2, #1753088 ; 0x1ac000 <== NOT EXECUTED if ( year_mod_4 == 0 ) time += _TOD_Days_to_date[ 1 ][ the_tod->month ]; else time += _TOD_Days_to_date[ 0 ][ the_tod->month ]; time += ( (the_tod->year - TOD_BASE_YEAR) / 4 ) * a000aacc: e1a00120 lsr r0, r0, #2 <== NOT EXECUTED a000aad0: e0205093 mla r0, r3, r0, r5 <== NOT EXECUTED time += _TOD_Days_since_last_leap_year[ year_mod_4 ]; time *= TOD_SECONDS_PER_DAY; time += ((the_tod->hour * TOD_MINUTES_PER_HOUR) + the_tod->minute) a000aad4: e2823c25 add r3, r2, #9472 ; 0x2500 <== NOT EXECUTED * TOD_SECONDS_PER_MINUTE; time += the_tod->second; a000aad8: e021319c mla r1, ip, r1, r3 <== NOT EXECUTED time += ( (the_tod->year - TOD_BASE_YEAR) / 4 ) * ( (TOD_DAYS_PER_YEAR * 4) + 1); time += _TOD_Days_since_last_leap_year[ year_mod_4 ]; time *= TOD_SECONDS_PER_DAY; a000aadc: e3a03a15 mov r3, #86016 ; 0x15000 <== NOT EXECUTED time += _TOD_Days_to_date[ 0 ][ the_tod->month ]; time += ( (the_tod->year - TOD_BASE_YEAR) / 4 ) * ( (TOD_DAYS_PER_YEAR * 4) + 1); time += _TOD_Days_since_last_leap_year[ year_mod_4 ]; a000aae0: e0800004 add r0, r0, r4 <== NOT EXECUTED time *= TOD_SECONDS_PER_DAY; a000aae4: e2833d06 add r3, r3, #384 ; 0x180 <== NOT EXECUTED time += the_tod->second; time += TOD_SECONDS_1970_THROUGH_1988; return( time ); } a000aae8: e0201093 mla r0, r3, r0, r1 <== NOT EXECUTED a000aaec: e8bd01f0 pop {r4, r5, r6, r7, r8} <== NOT EXECUTED a000aaf0: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000aaf8 <_TOD_Validate>: { uint32_t days_in_month; uint32_t ticks_per_second; ticks_per_second = TOD_MICROSECONDS_PER_SECOND / rtems_configuration_get_microseconds_per_tick(); a000aaf8: e59f30bc ldr r3, [pc, #188] ; a000abbc <_TOD_Validate+0xc4><== NOT EXECUTED */ bool _TOD_Validate( const rtems_time_of_day *the_tod ) { a000aafc: e92d4010 push {r4, lr} <== NOT EXECUTED uint32_t days_in_month; uint32_t ticks_per_second; ticks_per_second = TOD_MICROSECONDS_PER_SECOND / rtems_configuration_get_microseconds_per_tick(); if ((!the_tod) || a000ab00: e2504000 subs r4, r0, #0 <== NOT EXECUTED { uint32_t days_in_month; uint32_t ticks_per_second; ticks_per_second = TOD_MICROSECONDS_PER_SECOND / rtems_configuration_get_microseconds_per_tick(); a000ab04: e593100c ldr r1, [r3, #12] <== NOT EXECUTED if ((!the_tod) || a000ab08: 0a000029 beq a000abb4 <_TOD_Validate+0xbc> <== NOT EXECUTED ) { uint32_t days_in_month; uint32_t ticks_per_second; ticks_per_second = TOD_MICROSECONDS_PER_SECOND / a000ab0c: e3a0093d mov r0, #999424 ; 0xf4000 <== NOT EXECUTED a000ab10: e2800d09 add r0, r0, #576 ; 0x240 <== NOT EXECUTED a000ab14: eb00467d bl a001c510 <__aeabi_uidiv> <== NOT EXECUTED rtems_configuration_get_microseconds_per_tick(); if ((!the_tod) || a000ab18: e5943018 ldr r3, [r4, #24] <== NOT EXECUTED a000ab1c: e1500003 cmp r0, r3 <== NOT EXECUTED a000ab20: 9a00001f bls a000aba4 <_TOD_Validate+0xac> <== NOT EXECUTED (the_tod->ticks >= ticks_per_second) || a000ab24: e5943014 ldr r3, [r4, #20] <== NOT EXECUTED a000ab28: e353003b cmp r3, #59 ; 0x3b <== NOT EXECUTED a000ab2c: 8a00001c bhi a000aba4 <_TOD_Validate+0xac> <== NOT EXECUTED (the_tod->second >= TOD_SECONDS_PER_MINUTE) || a000ab30: e5943010 ldr r3, [r4, #16] <== NOT EXECUTED a000ab34: e353003b cmp r3, #59 ; 0x3b <== NOT EXECUTED a000ab38: 8a000019 bhi a000aba4 <_TOD_Validate+0xac> <== NOT EXECUTED (the_tod->minute >= TOD_MINUTES_PER_HOUR) || a000ab3c: e594300c ldr r3, [r4, #12] <== NOT EXECUTED a000ab40: e3530017 cmp r3, #23 <== NOT EXECUTED a000ab44: 8a000016 bhi a000aba4 <_TOD_Validate+0xac> <== NOT EXECUTED (the_tod->hour >= TOD_HOURS_PER_DAY) || (the_tod->month == 0) || a000ab48: e5940004 ldr r0, [r4, #4] <== NOT EXECUTED rtems_configuration_get_microseconds_per_tick(); if ((!the_tod) || (the_tod->ticks >= ticks_per_second) || (the_tod->second >= TOD_SECONDS_PER_MINUTE) || (the_tod->minute >= TOD_MINUTES_PER_HOUR) || (the_tod->hour >= TOD_HOURS_PER_DAY) || a000ab4c: e3500000 cmp r0, #0 <== NOT EXECUTED a000ab50: 0a000016 beq a000abb0 <_TOD_Validate+0xb8> <== NOT EXECUTED (the_tod->month == 0) || a000ab54: e350000c cmp r0, #12 <== NOT EXECUTED a000ab58: 8a000011 bhi a000aba4 <_TOD_Validate+0xac> <== NOT EXECUTED (the_tod->month > TOD_MONTHS_PER_YEAR) || (the_tod->year < TOD_BASE_YEAR) || a000ab5c: e5942000 ldr r2, [r4] <== NOT EXECUTED (the_tod->ticks >= ticks_per_second) || (the_tod->second >= TOD_SECONDS_PER_MINUTE) || (the_tod->minute >= TOD_MINUTES_PER_HOUR) || (the_tod->hour >= TOD_HOURS_PER_DAY) || (the_tod->month == 0) || (the_tod->month > TOD_MONTHS_PER_YEAR) || a000ab60: e3a03d1f mov r3, #1984 ; 0x7c0 <== NOT EXECUTED a000ab64: e2833003 add r3, r3, #3 <== NOT EXECUTED a000ab68: e1520003 cmp r2, r3 <== NOT EXECUTED a000ab6c: 9a00000c bls a000aba4 <_TOD_Validate+0xac> <== NOT EXECUTED (the_tod->year < TOD_BASE_YEAR) || (the_tod->day == 0) ) a000ab70: e5944008 ldr r4, [r4, #8] <== NOT EXECUTED (the_tod->second >= TOD_SECONDS_PER_MINUTE) || (the_tod->minute >= TOD_MINUTES_PER_HOUR) || (the_tod->hour >= TOD_HOURS_PER_DAY) || (the_tod->month == 0) || (the_tod->month > TOD_MONTHS_PER_YEAR) || (the_tod->year < TOD_BASE_YEAR) || a000ab74: e3540000 cmp r4, #0 <== NOT EXECUTED a000ab78: 0a00000b beq a000abac <_TOD_Validate+0xb4> <== NOT EXECUTED (the_tod->day == 0) ) return false; if ( (the_tod->year % 4) == 0 ) a000ab7c: e3120003 tst r2, #3 <== NOT EXECUTED days_in_month = _TOD_Days_per_month[ 1 ][ the_tod->month ]; a000ab80: 059f3038 ldreq r3, [pc, #56] ; a000abc0 <_TOD_Validate+0xc8><== NOT EXECUTED else days_in_month = _TOD_Days_per_month[ 0 ][ the_tod->month ]; a000ab84: 159f3034 ldrne r3, [pc, #52] ; a000abc0 <_TOD_Validate+0xc8><== NOT EXECUTED (the_tod->year < TOD_BASE_YEAR) || (the_tod->day == 0) ) return false; if ( (the_tod->year % 4) == 0 ) days_in_month = _TOD_Days_per_month[ 1 ][ the_tod->month ]; a000ab88: 0280000d addeq r0, r0, #13 <== NOT EXECUTED a000ab8c: 07930100 ldreq r0, [r3, r0, lsl #2] <== NOT EXECUTED else days_in_month = _TOD_Days_per_month[ 0 ][ the_tod->month ]; a000ab90: 17930100 ldrne r0, [r3, r0, lsl #2] <== NOT EXECUTED * false - if the the_tod is invalid * * NOTE: This routine only works for leap-years through 2099. */ bool _TOD_Validate( a000ab94: e1500004 cmp r0, r4 <== NOT EXECUTED a000ab98: 33a00000 movcc r0, #0 <== NOT EXECUTED a000ab9c: 23a00001 movcs r0, #1 <== NOT EXECUTED a000aba0: e8bd8010 pop {r4, pc} <== NOT EXECUTED (the_tod->hour >= TOD_HOURS_PER_DAY) || (the_tod->month == 0) || (the_tod->month > TOD_MONTHS_PER_YEAR) || (the_tod->year < TOD_BASE_YEAR) || (the_tod->day == 0) ) return false; a000aba4: e3a00000 mov r0, #0 <== NOT EXECUTED a000aba8: e8bd8010 pop {r4, pc} <== NOT EXECUTED a000abac: e1a00004 mov r0, r4 <== NOT EXECUTED if ( the_tod->day > days_in_month ) return false; return true; } a000abb0: e8bd8010 pop {r4, pc} <== NOT EXECUTED (the_tod->hour >= TOD_HOURS_PER_DAY) || (the_tod->month == 0) || (the_tod->month > TOD_MONTHS_PER_YEAR) || (the_tod->year < TOD_BASE_YEAR) || (the_tod->day == 0) ) return false; a000abb4: e1a00004 mov r0, r4 <== NOT EXECUTED a000abb8: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a000bb50 <_Thread_Change_priority>: void _Thread_Change_priority( Thread_Control *the_thread, Priority_Control new_priority, bool prepend_it ) { a000bb50: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED a000bb54: e1a04000 mov r4, r0 <== NOT EXECUTED a000bb58: e1a07001 mov r7, r1 <== NOT EXECUTED a000bb5c: e20260ff and r6, r2, #255 ; 0xff <== NOT EXECUTED States_Control state, original_state; /* * Save original state */ original_state = the_thread->current_state; a000bb60: e5905010 ldr r5, [r0, #16] <== NOT EXECUTED /* * Set a transient state for the thread so it is pulled off the Ready chains. * This will prevent it from being scheduled no matter what happens in an * ISR. */ _Thread_Set_transient( the_thread ); a000bb64: eb000344 bl a000c87c <_Thread_Set_transient> <== NOT EXECUTED /* * Do not bother recomputing all the priority related information if * we are not REALLY changing priority. */ if ( the_thread->current_priority != new_priority ) a000bb68: e5943014 ldr r3, [r4, #20] <== NOT EXECUTED a000bb6c: e1530007 cmp r3, r7 <== NOT EXECUTED a000bb70: 0a000002 beq a000bb80 <_Thread_Change_priority+0x30> <== NOT EXECUTED _Thread_Set_priority( the_thread, new_priority ); a000bb74: e1a00004 mov r0, r4 <== NOT EXECUTED a000bb78: e1a01007 mov r1, r7 <== NOT EXECUTED a000bb7c: eb000325 bl a000c818 <_Thread_Set_priority> <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000bb80: e10f7000 mrs r7, CPSR <== NOT EXECUTED a000bb84: e3873080 orr r3, r7, #128 ; 0x80 <== NOT EXECUTED a000bb88: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED /* * If the thread has more than STATES_TRANSIENT set, then it is blocked, * If it is blocked on a thread queue, then we need to requeue it. */ state = the_thread->current_state; a000bb8c: e5942010 ldr r2, [r4, #16] <== NOT EXECUTED if ( state != STATES_TRANSIENT ) { a000bb90: e3520004 cmp r2, #4 <== NOT EXECUTED a000bb94: 0a000009 beq a000bbc0 <_Thread_Change_priority+0x70> <== NOT EXECUTED /* Only clear the transient state if it wasn't set already */ if ( ! _States_Is_transient( original_state ) ) a000bb98: e3150004 tst r5, #4 <== NOT EXECUTED RTEMS_INLINE_ROUTINE States_Control _States_Clear ( States_Control states_to_clear, States_Control current_state ) { return (current_state & ~states_to_clear); a000bb9c: 03c23004 biceq r3, r2, #4 <== NOT EXECUTED the_thread->current_state = _States_Clear( STATES_TRANSIENT, state ); a000bba0: 05843010 streq r3, [r4, #16] <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000bba4: e129f007 msr CPSR_fc, r7 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _States_Is_waiting_on_thread_queue ( States_Control the_states ) { return (the_states & STATES_WAITING_ON_THREAD_QUEUE); a000bba8: e3a03bef mov r3, #244736 ; 0x3bc00 <== NOT EXECUTED a000bbac: e2833e2e add r3, r3, #736 ; 0x2e0 <== NOT EXECUTED a000bbb0: e0023003 and r3, r2, r3 <== NOT EXECUTED _ISR_Enable( level ); if ( _States_Is_waiting_on_thread_queue( state ) ) { a000bbb4: e3530000 cmp r3, #0 <== NOT EXECUTED a000bbb8: 1a000013 bne a000bc0c <_Thread_Change_priority+0xbc> <== NOT EXECUTED a000bbbc: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED } return; } /* Only clear the transient state if it wasn't set already */ if ( ! _States_Is_transient( original_state ) ) { a000bbc0: e2155004 ands r5, r5, #4 <== NOT EXECUTED a000bbc4: 159f5084 ldrne r5, [pc, #132] ; a000bc50 <_Thread_Change_priority+0x100><== NOT EXECUTED a000bbc8: 0a000013 beq a000bc1c <_Thread_Change_priority+0xcc> <== NOT EXECUTED static inline void arm_interrupt_flash( uint32_t level ) { uint32_t arm_switch_reg; __asm__ volatile ( a000bbcc: e10f3000 mrs r3, CPSR <== NOT EXECUTED a000bbd0: e129f007 msr CPSR_fc, r7 <== NOT EXECUTED a000bbd4: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED * This kernel routine implements the scheduling decision logic for * the scheduler. It does NOT dispatch. */ RTEMS_INLINE_ROUTINE void _Scheduler_Schedule( void ) { _Scheduler.Operations.schedule(); a000bbd8: e5953008 ldr r3, [r5, #8] <== NOT EXECUTED a000bbdc: e12fff33 blx r3 <== NOT EXECUTED * is also the heir thread, and false otherwise. */ RTEMS_INLINE_ROUTINE bool _Thread_Is_executing_also_the_heir( void ) { return ( _Thread_Executing == _Thread_Heir ); a000bbe0: e59f306c ldr r3, [pc, #108] ; a000bc54 <_Thread_Change_priority+0x104><== NOT EXECUTED a000bbe4: e5932004 ldr r2, [r3, #4] <== NOT EXECUTED * We altered the set of thread priorities. So let's figure out * who is the heir and if we need to switch to them. */ _Scheduler_Schedule(); if ( !_Thread_Is_executing_also_the_heir() && a000bbe8: e5931008 ldr r1, [r3, #8] <== NOT EXECUTED a000bbec: e1520001 cmp r2, r1 <== NOT EXECUTED a000bbf0: 0a000003 beq a000bc04 <_Thread_Change_priority+0xb4> <== NOT EXECUTED a000bbf4: e5d22074 ldrb r2, [r2, #116] ; 0x74 <== NOT EXECUTED a000bbf8: e3520000 cmp r2, #0 <== NOT EXECUTED _Thread_Executing->is_preemptible ) _Thread_Dispatch_necessary = true; a000bbfc: 13a02001 movne r2, #1 <== NOT EXECUTED a000bc00: 15c32010 strbne r2, [r3, #16] <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000bc04: e129f007 msr CPSR_fc, r7 <== NOT EXECUTED a000bc08: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED /* Only clear the transient state if it wasn't set already */ if ( ! _States_Is_transient( original_state ) ) the_thread->current_state = _States_Clear( STATES_TRANSIENT, state ); _ISR_Enable( level ); if ( _States_Is_waiting_on_thread_queue( state ) ) { _Thread_queue_Requeue( the_thread->Wait.queue, the_thread ); a000bc0c: e5940044 ldr r0, [r4, #68] ; 0x44 <== NOT EXECUTED a000bc10: e1a01004 mov r1, r4 <== NOT EXECUTED if ( !_Thread_Is_executing_also_the_heir() && _Thread_Executing->is_preemptible ) _Thread_Dispatch_necessary = true; _ISR_Enable( level ); } a000bc14: e8bd40f0 pop {r4, r5, r6, r7, lr} <== NOT EXECUTED /* Only clear the transient state if it wasn't set already */ if ( ! _States_Is_transient( original_state ) ) the_thread->current_state = _States_Clear( STATES_TRANSIENT, state ); _ISR_Enable( level ); if ( _States_Is_waiting_on_thread_queue( state ) ) { _Thread_queue_Requeue( the_thread->Wait.queue, the_thread ); a000bc18: ea0002d2 b a000c768 <_Thread_queue_Requeue> <== NOT EXECUTED * the TRANSIENT state. So we have to place it on the appropriate * Ready Queue with interrupts off. */ the_thread->current_state = _States_Clear( STATES_TRANSIENT, state ); if ( prepend_it ) a000bc1c: e3560000 cmp r6, #0 <== NOT EXECUTED * Interrupts are STILL disabled. * We now know the thread will be in the READY state when we remove * the TRANSIENT state. So we have to place it on the appropriate * Ready Queue with interrupts off. */ the_thread->current_state = _States_Clear( STATES_TRANSIENT, state ); a000bc20: e5845010 str r5, [r4, #16] <== NOT EXECUTED if ( prepend_it ) a000bc24: 0a000004 beq a000bc3c <_Thread_Change_priority+0xec> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Scheduler_Enqueue_first( Thread_Control *the_thread ) { _Scheduler.Operations.enqueue_first( the_thread ); a000bc28: e59f5020 ldr r5, [pc, #32] ; a000bc50 <_Thread_Change_priority+0x100><== NOT EXECUTED a000bc2c: e1a00004 mov r0, r4 <== NOT EXECUTED a000bc30: e5953028 ldr r3, [r5, #40] ; 0x28 <== NOT EXECUTED a000bc34: e12fff33 blx r3 <== NOT EXECUTED a000bc38: eaffffe3 b a000bbcc <_Thread_Change_priority+0x7c> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Scheduler_Enqueue( Thread_Control *the_thread ) { _Scheduler.Operations.enqueue( the_thread ); a000bc3c: e59f500c ldr r5, [pc, #12] ; a000bc50 <_Thread_Change_priority+0x100><== NOT EXECUTED a000bc40: e1a00004 mov r0, r4 <== NOT EXECUTED a000bc44: e5953024 ldr r3, [r5, #36] ; 0x24 <== NOT EXECUTED a000bc48: e12fff33 blx r3 <== NOT EXECUTED a000bc4c: eaffffde b a000bbcc <_Thread_Change_priority+0x7c> <== NOT EXECUTED =============================================================================== a000bc58 <_Thread_Clear_state>: */ void _Thread_Clear_state( Thread_Control *the_thread, States_Control state ) { a000bc58: e92d4010 push {r4, lr} <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000bc5c: e10f4000 mrs r4, CPSR <== NOT EXECUTED a000bc60: e3842080 orr r2, r4, #128 ; 0x80 <== NOT EXECUTED a000bc64: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED ISR_Level level; States_Control current_state; _ISR_Disable( level ); current_state = the_thread->current_state; a000bc68: e5902010 ldr r2, [r0, #16] <== NOT EXECUTED if ( current_state & state ) { a000bc6c: e1110002 tst r1, r2 <== NOT EXECUTED a000bc70: 0a000003 beq a000bc84 <_Thread_Clear_state+0x2c> <== NOT EXECUTED RTEMS_INLINE_ROUTINE States_Control _States_Clear ( States_Control states_to_clear, States_Control current_state ) { return (current_state & ~states_to_clear); a000bc74: e1c22001 bic r2, r2, r1 <== NOT EXECUTED current_state = the_thread->current_state = _States_Clear( state, current_state ); if ( _States_Is_ready( current_state ) ) { a000bc78: e3520000 cmp r2, #0 <== NOT EXECUTED _ISR_Disable( level ); current_state = the_thread->current_state; if ( current_state & state ) { current_state = the_thread->current_state = _States_Clear( state, current_state ); a000bc7c: e5802010 str r2, [r0, #16] <== NOT EXECUTED if ( _States_Is_ready( current_state ) ) { a000bc80: 0a000001 beq a000bc8c <_Thread_Clear_state+0x34> <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000bc84: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED _Scheduler_Unblock( the_thread ); } } _ISR_Enable( level ); } a000bc88: e8bd8010 pop {r4, pc} <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Scheduler_Unblock( Thread_Control *the_thread ) { _Scheduler.Operations.unblock( the_thread ); a000bc8c: e59f300c ldr r3, [pc, #12] ; a000bca0 <_Thread_Clear_state+0x48><== NOT EXECUTED a000bc90: e5933014 ldr r3, [r3, #20] <== NOT EXECUTED a000bc94: e12fff33 blx r3 <== NOT EXECUTED a000bc98: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED a000bc9c: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a000bca4 <_Thread_Close>: RTEMS_INLINE_ROUTINE void _Objects_Invalidate_Id( Objects_Information *information, Objects_Control *the_object ) { _Objects_Set_local_object( a000bca4: e1d120b8 ldrh r2, [r1, #8] <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; a000bca8: e590301c ldr r3, [r0, #28] <== NOT EXECUTED void _Thread_Close( Objects_Information *information, Thread_Control *the_thread ) { a000bcac: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED a000bcb0: e1a04001 mov r4, r1 <== NOT EXECUTED a000bcb4: e3a01000 mov r1, #0 <== NOT EXECUTED a000bcb8: e7831102 str r1, [r3, r2, lsl #2] <== NOT EXECUTED a000bcbc: e1a05000 mov r5, r0 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; a000bcc0: e59f608c ldr r6, [pc, #140] ; a000bd54 <_Thread_Close+0xb0><== NOT EXECUTED * disappear and set a transient state on it. So we temporarily * unnest dispatching. */ _Thread_Unnest_dispatch(); _User_extensions_Thread_delete( the_thread ); a000bcc4: e1a00004 mov r0, r4 <== NOT EXECUTED a000bcc8: e5963000 ldr r3, [r6] <== NOT EXECUTED a000bccc: e2433001 sub r3, r3, #1 <== NOT EXECUTED a000bcd0: e5863000 str r3, [r6] <== NOT EXECUTED a000bcd4: eb000401 bl a000cce0 <_User_extensions_Thread_delete> <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; a000bcd8: e5963000 ldr r3, [r6] <== NOT EXECUTED a000bcdc: e2833001 add r3, r3, #1 <== NOT EXECUTED a000bce0: e5863000 str r3, [r6] <== NOT EXECUTED /* * 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 ); a000bce4: e1a01004 mov r1, r4 <== NOT EXECUTED a000bce8: e1a00005 mov r0, r5 <== NOT EXECUTED a000bcec: ebfffc56 bl a000ae4c <_Objects_Close> <== NOT EXECUTED /* * 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 ); a000bcf0: e1a00004 mov r0, r4 <== NOT EXECUTED a000bcf4: e3a01001 mov r1, #1 <== NOT EXECUTED a000bcf8: eb0002cd bl a000c834 <_Thread_Set_state> <== NOT EXECUTED if ( !_Thread_queue_Extract_with_proxy( the_thread ) ) { a000bcfc: e1a00004 mov r0, r4 <== NOT EXECUTED a000bd00: eb000267 bl a000c6a4 <_Thread_queue_Extract_with_proxy> <== NOT EXECUTED a000bd04: e3500000 cmp r0, #0 <== NOT EXECUTED a000bd08: 1a000002 bne a000bd18 <_Thread_Close+0x74> <== NOT EXECUTED if ( _Watchdog_Is_active( &the_thread->Timer ) ) a000bd0c: e5943050 ldr r3, [r4, #80] ; 0x50 <== NOT EXECUTED a000bd10: e3530002 cmp r3, #2 <== NOT EXECUTED a000bd14: 0a00000b beq a000bd48 <_Thread_Close+0xa4> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Scheduler_Free( Thread_Control *the_thread ) { return _Scheduler.Operations.free( the_thread ); a000bd18: e59f3038 ldr r3, [pc, #56] ; a000bd58 <_Thread_Close+0xb4> <== NOT EXECUTED a000bd1c: e1a00004 mov r0, r4 <== NOT EXECUTED /* * Free the rest of the memory associated with this task * and set the associated pointers to NULL for safety. */ _Thread_Stack_Free( the_thread ); the_thread->Start.stack = NULL; a000bd20: e3a05000 mov r5, #0 <== NOT EXECUTED a000bd24: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a000bd28: e12fff33 blx r3 <== NOT EXECUTED /* * Free the rest of the memory associated with this task * and set the associated pointers to NULL for safety. */ _Thread_Stack_Free( the_thread ); a000bd2c: e1a00004 mov r0, r4 <== NOT EXECUTED a000bd30: eb0002fb bl a000c924 <_Thread_Stack_Free> <== NOT EXECUTED the_thread->Start.stack = NULL; a000bd34: e58450bc str r5, [r4, #188] ; 0xbc <== NOT EXECUTED _Workspace_Free( the_thread->extensions ); a000bd38: e59400fc ldr r0, [r4, #252] ; 0xfc <== NOT EXECUTED a000bd3c: eb0004ff bl a000d140 <_Workspace_Free> <== NOT EXECUTED the_thread->extensions = NULL; a000bd40: e58450fc str r5, [r4, #252] ; 0xfc <== NOT EXECUTED } a000bd44: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED */ _Thread_Set_state( the_thread, STATES_DORMANT ); if ( !_Thread_queue_Extract_with_proxy( the_thread ) ) { if ( _Watchdog_Is_active( &the_thread->Timer ) ) (void) _Watchdog_Remove( &the_thread->Timer ); a000bd48: e2840048 add r0, r4, #72 ; 0x48 <== NOT EXECUTED a000bd4c: eb000488 bl a000cf74 <_Watchdog_Remove> <== NOT EXECUTED a000bd50: eafffff0 b a000bd18 <_Thread_Close+0x74> <== NOT EXECUTED =============================================================================== a000be34 <_Thread_Delay_ended>: void _Thread_Delay_ended( Objects_Id id, void *ignored __attribute__((unused)) ) { a000be34: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED a000be38: e24dd004 sub sp, sp, #4 <== NOT EXECUTED Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); a000be3c: e1a0100d mov r1, sp <== NOT EXECUTED a000be40: eb00006b bl a000bff4 <_Thread_Get> <== NOT EXECUTED switch ( location ) { a000be44: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000be48: e3530000 cmp r3, #0 <== NOT EXECUTED a000be4c: 1a000006 bne a000be6c <_Thread_Delay_ended+0x38> <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) case OBJECTS_REMOTE: /* impossible */ #endif break; case OBJECTS_LOCAL: _Thread_Clear_state( a000be50: e3a01201 mov r1, #268435456 ; 0x10000000 <== NOT EXECUTED a000be54: e2811018 add r1, r1, #24 <== NOT EXECUTED a000be58: ebffff7e bl a000bc58 <_Thread_Clear_state> <== NOT EXECUTED a000be5c: e59f3010 ldr r3, [pc, #16] ; a000be74 <_Thread_Delay_ended+0x40><== NOT EXECUTED a000be60: e5932000 ldr r2, [r3] <== NOT EXECUTED a000be64: e2422001 sub r2, r2, #1 <== NOT EXECUTED a000be68: e5832000 str r2, [r3] <== NOT EXECUTED | STATES_INTERRUPTIBLE_BY_SIGNAL ); _Thread_Unnest_dispatch(); break; } } a000be6c: e28dd004 add sp, sp, #4 <== NOT EXECUTED a000be70: e8bd8000 pop {pc} <== NOT EXECUTED =============================================================================== a000be78 <_Thread_Dispatch>: * dispatch thread * no dispatch thread */ void _Thread_Dispatch( void ) { a000be78: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} Thread_Control *executing; Thread_Control *heir; ISR_Level level; executing = _Thread_Executing; a000be7c: e59f7138 ldr r7, [pc, #312] ; a000bfbc <_Thread_Dispatch+0x144> * dispatch thread * no dispatch thread */ void _Thread_Dispatch( void ) { a000be80: e24dd010 sub sp, sp, #16 Thread_Control *executing; Thread_Control *heir; ISR_Level level; executing = _Thread_Executing; a000be84: e5975004 ldr r5, [r7, #4] static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000be88: e10f2000 mrs r2, CPSR a000be8c: e3823080 orr r3, r2, #128 ; 0x80 a000be90: e129f003 msr CPSR_fc, r3 _ISR_Disable( level ); while ( _Thread_Dispatch_necessary == true ) { a000be94: e5d71010 ldrb r1, [r7, #16] a000be98: e3510000 cmp r1, #0 a000be9c: 0a000043 beq a000bfb0 <_Thread_Dispatch+0x138> heir = _Thread_Heir; a000bea0: e5974008 ldr r4, [r7, #8] <== NOT EXECUTED _Thread_Dispatch_disable_level = 1; a000bea4: e59f9114 ldr r9, [pc, #276] ; a000bfc0 <_Thread_Dispatch+0x148><== NOT EXECUTED a000bea8: e3a00001 mov r0, #1 <== NOT EXECUTED _Thread_Dispatch_necessary = false; a000beac: e3a01000 mov r1, #0 <== NOT EXECUTED /* * When the heir and executing are the same, then we are being * requested to do the post switch dispatching. This is normally * done to dispatch signals. */ if ( heir == executing ) a000beb0: e1550004 cmp r5, r4 <== NOT EXECUTED executing = _Thread_Executing; _ISR_Disable( level ); while ( _Thread_Dispatch_necessary == true ) { heir = _Thread_Heir; _Thread_Dispatch_disable_level = 1; a000beb4: e5890000 str r0, [r9] <== NOT EXECUTED _Thread_Dispatch_necessary = false; _Thread_Executing = heir; a000beb8: e5874004 str r4, [r7, #4] <== NOT EXECUTED executing = _Thread_Executing; _ISR_Disable( level ); while ( _Thread_Dispatch_necessary == true ) { heir = _Thread_Heir; _Thread_Dispatch_disable_level = 1; _Thread_Dispatch_necessary = false; a000bebc: e5c71010 strb r1, [r7, #16] <== NOT EXECUTED Thread_Control *executing; Thread_Control *heir; ISR_Level level; executing = _Thread_Executing; _ISR_Disable( level ); a000bec0: 01a03002 moveq r3, r2 <== NOT EXECUTED /* * When the heir and executing are the same, then we are being * requested to do the post switch dispatching. This is normally * done to dispatch signals. */ if ( heir == executing ) a000bec4: 0a000033 beq a000bf98 <_Thread_Dispatch+0x120> <== NOT EXECUTED a000bec8: e28da008 add sl, sp, #8 <== NOT EXECUTED a000becc: e1a0800d mov r8, sp <== NOT EXECUTED if ( executing->fp_context != NULL ) _Context_Restore_fp( &executing->fp_context ); #endif #endif executing = _Thread_Executing; a000bed0: e1a06007 mov r6, r7 <== NOT EXECUTED a000bed4: ea000007 b a000bef8 <_Thread_Dispatch+0x80> <== NOT EXECUTED ISR_Level level; executing = _Thread_Executing; _ISR_Disable( level ); while ( _Thread_Dispatch_necessary == true ) { heir = _Thread_Heir; a000bed8: e5964008 ldr r4, [r6, #8] <== NOT EXECUTED _Thread_Dispatch_disable_level = 1; a000bedc: e3a01001 mov r1, #1 <== NOT EXECUTED _Thread_Dispatch_necessary = false; a000bee0: e3a0b000 mov fp, #0 <== NOT EXECUTED /* * When the heir and executing are the same, then we are being * requested to do the post switch dispatching. This is normally * done to dispatch signals. */ if ( heir == executing ) a000bee4: e1540005 cmp r4, r5 <== NOT EXECUTED executing = _Thread_Executing; _ISR_Disable( level ); while ( _Thread_Dispatch_necessary == true ) { heir = _Thread_Heir; _Thread_Dispatch_disable_level = 1; a000bee8: e5891000 str r1, [r9] <== NOT EXECUTED _Thread_Dispatch_necessary = false; a000beec: e5c6b010 strb fp, [r6, #16] <== NOT EXECUTED _Thread_Executing = heir; a000bef0: e5864004 str r4, [r6, #4] <== NOT EXECUTED /* * When the heir and executing are the same, then we are being * requested to do the post switch dispatching. This is normally * done to dispatch signals. */ if ( heir == executing ) a000bef4: 0a000027 beq a000bf98 <_Thread_Dispatch+0x120> <== NOT EXECUTED */ #if __RTEMS_ADA__ executing->rtems_ada_self = rtems_ada_self; rtems_ada_self = heir->rtems_ada_self; #endif if ( heir->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE ) a000bef8: e594307c ldr r3, [r4, #124] ; 0x7c <== NOT EXECUTED a000befc: e3530001 cmp r3, #1 <== NOT EXECUTED heir->cpu_time_budget = _Thread_Ticks_per_timeslice; a000bf00: 059fc0bc ldreq ip, [pc, #188] ; a000bfc4 <_Thread_Dispatch+0x14c><== NOT EXECUTED a000bf04: 059c3000 ldreq r3, [ip] <== NOT EXECUTED a000bf08: 05843078 streq r3, [r4, #120] ; 0x78 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000bf0c: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED _ISR_Enable( level ); #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ { Timestamp_Control uptime, ran; _TOD_Get_uptime( &uptime ); a000bf10: e1a0000a mov r0, sl <== NOT EXECUTED a000bf14: eb000cd2 bl a000f264 <_TOD_Get_uptime> <== NOT EXECUTED _Timestamp_Subtract( a000bf18: e1a0200d mov r2, sp <== NOT EXECUTED a000bf1c: e1a0100a mov r1, sl <== NOT EXECUTED a000bf20: e59f00a0 ldr r0, [pc, #160] ; a000bfc8 <_Thread_Dispatch+0x150><== NOT EXECUTED a000bf24: eb0002e0 bl a000caac <_Timespec_Subtract> <== NOT EXECUTED &_Thread_Time_of_last_context_switch, &uptime, &ran ); _Timestamp_Add_to( &executing->cpu_time_used, &ran ); a000bf28: e1a0100d mov r1, sp <== NOT EXECUTED a000bf2c: e2850084 add r0, r5, #132 ; 0x84 <== NOT EXECUTED a000bf30: eb0002c6 bl a000ca50 <_Timespec_Add_to> <== NOT EXECUTED _Thread_Time_of_last_context_switch = uptime; a000bf34: e28dc008 add ip, sp, #8 <== NOT EXECUTED a000bf38: e89c1800 ldm ip, {fp, ip} <== NOT EXECUTED #endif /* * Switch libc's task specific data. */ if ( _Thread_libc_reent ) { a000bf3c: e59f2088 ldr r2, [pc, #136] ; a000bfcc <_Thread_Dispatch+0x154><== NOT EXECUTED executing->libc_reent = *_Thread_libc_reent; *_Thread_libc_reent = heir->libc_reent; } _User_extensions_Thread_switch( executing, heir ); a000bf40: e1a00005 mov r0, r5 <== NOT EXECUTED a000bf44: e1a01004 mov r1, r4 <== NOT EXECUTED #endif /* * Switch libc's task specific data. */ if ( _Thread_libc_reent ) { a000bf48: e5923000 ldr r3, [r2] <== NOT EXECUTED &_Thread_Time_of_last_context_switch, &uptime, &ran ); _Timestamp_Add_to( &executing->cpu_time_used, &ran ); _Thread_Time_of_last_context_switch = uptime; a000bf4c: e59f2074 ldr r2, [pc, #116] ; a000bfc8 <_Thread_Dispatch+0x150><== NOT EXECUTED #endif /* * Switch libc's task specific data. */ if ( _Thread_libc_reent ) { a000bf50: e3530000 cmp r3, #0 <== NOT EXECUTED &_Thread_Time_of_last_context_switch, &uptime, &ran ); _Timestamp_Add_to( &executing->cpu_time_used, &ran ); _Thread_Time_of_last_context_switch = uptime; a000bf54: e8821800 stm r2, {fp, ip} <== NOT EXECUTED /* * Switch libc's task specific data. */ if ( _Thread_libc_reent ) { executing->libc_reent = *_Thread_libc_reent; a000bf58: 15932000 ldrne r2, [r3] <== NOT EXECUTED a000bf5c: 158520f0 strne r2, [r5, #240] ; 0xf0 <== NOT EXECUTED *_Thread_libc_reent = heir->libc_reent; a000bf60: 159420f0 ldrne r2, [r4, #240] ; 0xf0 <== NOT EXECUTED a000bf64: 15832000 strne r2, [r3] <== NOT EXECUTED } _User_extensions_Thread_switch( executing, heir ); a000bf68: eb000382 bl a000cd78 <_User_extensions_Thread_switch> <== NOT EXECUTED if ( executing->fp_context != NULL ) _Context_Save_fp( &executing->fp_context ); #endif #endif _Context_Switch( &executing->Registers, &heir->Registers ); a000bf6c: e28500c0 add r0, r5, #192 ; 0xc0 <== NOT EXECUTED a000bf70: e28410c0 add r1, r4, #192 ; 0xc0 <== NOT EXECUTED a000bf74: eb000551 bl a000d4c0 <_CPU_Context_switch> <== NOT EXECUTED if ( executing->fp_context != NULL ) _Context_Restore_fp( &executing->fp_context ); #endif #endif executing = _Thread_Executing; a000bf78: e5975004 ldr r5, [r7, #4] <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000bf7c: e10f3000 mrs r3, CPSR <== NOT EXECUTED a000bf80: e3832080 orr r2, r3, #128 ; 0x80 <== NOT EXECUTED a000bf84: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED Thread_Control *heir; ISR_Level level; executing = _Thread_Executing; _ISR_Disable( level ); while ( _Thread_Dispatch_necessary == true ) { a000bf88: e5d71010 ldrb r1, [r7, #16] <== NOT EXECUTED a000bf8c: e1a02003 mov r2, r3 <== NOT EXECUTED a000bf90: e3510000 cmp r1, #0 <== NOT EXECUTED a000bf94: 1affffcf bne a000bed8 <_Thread_Dispatch+0x60> <== NOT EXECUTED _ISR_Disable( level ); } post_switch: _Thread_Dispatch_disable_level = 0; a000bf98: e3a01000 mov r1, #0 a000bf9c: e5891000 str r1, [r9] static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000bfa0: e129f003 msr CPSR_fc, r3 _ISR_Enable( level ); _API_extensions_Run_postswitch(); a000bfa4: ebfff8be bl a000a2a4 <_API_extensions_Run_postswitch> } a000bfa8: e28dd010 add sp, sp, #16 a000bfac: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} Thread_Control *executing; Thread_Control *heir; ISR_Level level; executing = _Thread_Executing; _ISR_Disable( level ); a000bfb0: e1a03002 mov r3, r2 a000bfb4: e59f9004 ldr r9, [pc, #4] ; a000bfc0 <_Thread_Dispatch+0x148> a000bfb8: eafffff6 b a000bf98 <_Thread_Dispatch+0x120> =============================================================================== a000bff4 <_Thread_Get>: 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 ) ) { a000bff4: e2503000 subs r3, r0, #0 */ Thread_Control *_Thread_Get ( Objects_Id id, Objects_Locations *location ) { a000bff8: 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 ) ) { a000bffc: 0a000014 beq a000c054 <_Thread_Get+0x60> */ RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API( Objects_Id id ) { return (Objects_APIs) ((id >> OBJECTS_API_START_BIT) & OBJECTS_API_VALID_BITS); a000c000: e1a01c23 lsr r1, r3, #24 a000c004: e2011007 and r1, r1, #7 */ RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid( uint32_t the_api ) { if ( !the_api || the_api > OBJECTS_APIS_LAST ) a000c008: e2410001 sub r0, r1, #1 a000c00c: e3500002 cmp r0, #2 a000c010: 8a00000b bhi a000c044 <_Thread_Get+0x50> */ RTEMS_INLINE_ROUTINE uint32_t _Objects_Get_class( Objects_Id id ) { return (uint32_t) a000c014: e1a0cda3 lsr ip, r3, #27 *location = OBJECTS_ERROR; goto done; } the_class = _Objects_Get_class( id ); if ( the_class != 1 ) { /* threads are always first class :) */ a000c018: e35c0001 cmp ip, #1 a000c01c: 1a000008 bne a000c044 <_Thread_Get+0x50> *location = OBJECTS_ERROR; goto done; } api_information = _Objects_Information_table[ the_api ]; a000c020: e59f0054 ldr r0, [pc, #84] ; a000c07c <_Thread_Get+0x88> a000c024: e7900101 ldr r0, [r0, r1, 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 ) { a000c028: e3500000 cmp r0, #0 a000c02c: 0a000010 beq a000c074 <_Thread_Get+0x80> *location = OBJECTS_ERROR; goto done; } information = api_information[ the_class ]; a000c030: e5900004 ldr r0, [r0, #4] if ( !information ) { a000c034: e3500000 cmp r0, #0 a000c038: 0a00000d beq a000c074 <_Thread_Get+0x80> *location = OBJECTS_ERROR; goto done; } tp = (Thread_Control *) _Objects_Get( information, id, location ); a000c03c: e1a01003 mov r1, r3 a000c040: eafffc8f b a000b284 <_Objects_Get> goto done; } the_class = _Objects_Get_class( id ); if ( the_class != 1 ) { /* threads are always first class :) */ *location = OBJECTS_ERROR; a000c044: e3a03001 mov r3, #1 <== NOT EXECUTED a000c048: e5823000 str r3, [r2] <== NOT EXECUTED { uint32_t the_api; uint32_t the_class; Objects_Information **api_information; Objects_Information *information; Thread_Control *tp = (Thread_Control *) 0; a000c04c: e3a00000 mov r0, #0 <== NOT EXECUTED } the_class = _Objects_Get_class( id ); if ( the_class != 1 ) { /* threads are always first class :) */ *location = OBJECTS_ERROR; goto done; a000c050: e12fff1e bx lr <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; a000c054: e59f1024 ldr r1, [pc, #36] ; a000c080 <_Thread_Get+0x8c> <== NOT EXECUTED a000c058: e5910000 ldr r0, [r1] <== NOT EXECUTED a000c05c: e2800001 add r0, r0, #1 <== NOT EXECUTED a000c060: e5810000 str r0, [r1] <== NOT EXECUTED 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; a000c064: e5823000 str r3, [r2] <== NOT EXECUTED tp = _Thread_Executing; a000c068: e59f3014 ldr r3, [pc, #20] ; a000c084 <_Thread_Get+0x90> <== NOT EXECUTED a000c06c: e5930004 ldr r0, [r3, #4] <== NOT EXECUTED goto done; a000c070: e12fff1e bx lr <== NOT EXECUTED goto done; } information = api_information[ the_class ]; if ( !information ) { *location = OBJECTS_ERROR; a000c074: e582c000 str ip, [r2] <== NOT EXECUTED goto done; a000c078: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a0010f78 <_Thread_Handler>: #if defined(EXECUTE_GLOBAL_CONSTRUCTORS) static char doneConstructors; char doneCons; #endif executing = _Thread_Executing; a0010f78: e59f3078 ldr r3, [pc, #120] ; a0010ff8 <_Thread_Handler+0x80> * * Output parameters: NONE */ void _Thread_Handler( void ) { a0010f7c: e92d4030 push {r4, r5, lr} #if defined(EXECUTE_GLOBAL_CONSTRUCTORS) static char doneConstructors; char doneCons; #endif executing = _Thread_Executing; a0010f80: e5934004 ldr r4, [r3, #4] /* * have to put level into a register for those cpu's that use * inline asm here */ level = executing->Start.isr_level; a0010f84: e59400ac ldr r0, [r4, #172] ; 0xac _ISR_Set_level(level); a0010f88: ebfff15d bl a000d504 <_CPU_ISR_Set_level> #if defined(EXECUTE_GLOBAL_CONSTRUCTORS) doneCons = doneConstructors; a0010f8c: e59f3068 ldr r3, [pc, #104] ; a0010ffc <_Thread_Handler+0x84> doneConstructors = 1; a0010f90: e3a02001 mov r2, #1 /* * Take care that 'begin' extensions get to complete before * 'switch' extensions can run. This means must keep dispatch * disabled until all 'begin' extensions complete. */ _User_extensions_Thread_begin( executing ); a0010f94: e1a00004 mov r0, r4 level = executing->Start.isr_level; _ISR_Set_level(level); #if defined(EXECUTE_GLOBAL_CONSTRUCTORS) doneCons = doneConstructors; a0010f98: e5d35000 ldrb r5, [r3] doneConstructors = 1; a0010f9c: e5c32000 strb r2, [r3] /* * Take care that 'begin' extensions get to complete before * 'switch' extensions can run. This means must keep dispatch * disabled until all 'begin' extensions complete. */ _User_extensions_Thread_begin( executing ); a0010fa0: ebffef02 bl a000cbb0 <_User_extensions_Thread_begin> /* * At this point, the dispatch disable level BETTER be 1. */ _Thread_Enable_dispatch(); a0010fa4: ebffec09 bl a000bfd0 <_Thread_Enable_dispatch> /* * _init could be a weak symbol and we SHOULD test it but it isn't * in any configuration I know of and it generates a warning on every * RTEMS target configuration. --joel (12 May 2007) */ if (!doneCons) /* && (volatile void *)_init) */ { a0010fa8: e3550000 cmp r5, #0 a0010fac: 0a000008 beq a0010fd4 <_Thread_Handler+0x5c> INIT_NAME (); } #endif if ( executing->Start.prototype == THREAD_START_NUMERIC ) { a0010fb0: e5943094 ldr r3, [r4, #148] ; 0x94 <== NOT EXECUTED a0010fb4: e3530000 cmp r3, #0 <== NOT EXECUTED a0010fb8: 0a000009 beq a0010fe4 <_Thread_Handler+0x6c> <== NOT EXECUTED * was placed in return_argument. This assumed that if it returned * anything (which is not supporting in all APIs), then it would be * able to fit in a (void *). */ _User_extensions_Thread_exitted( executing ); a0010fbc: e1a00004 mov r0, r4 a0010fc0: ebffef0a bl a000cbf0 <_User_extensions_Thread_exitted> _Internal_error_Occurred( a0010fc4: e3a00000 mov r0, #0 a0010fc8: e3a01001 mov r1, #1 a0010fcc: e3a02005 mov r2, #5 a0010fd0: ebffe760 bl a000ad58 <_Internal_error_Occurred> * _init could be a weak symbol and we SHOULD test it but it isn't * in any configuration I know of and it generates a warning on every * RTEMS target configuration. --joel (12 May 2007) */ if (!doneCons) /* && (volatile void *)_init) */ { INIT_NAME (); a0010fd4: ebffcd79 bl a00045c0 } #endif if ( executing->Start.prototype == THREAD_START_NUMERIC ) { a0010fd8: e5943094 ldr r3, [r4, #148] ; 0x94 a0010fdc: e3530000 cmp r3, #0 a0010fe0: 1afffff5 bne a0010fbc <_Thread_Handler+0x44> executing->Wait.return_argument = (*(Thread_Entry_numeric) executing->Start.entry_point)( a0010fe4: e5943090 ldr r3, [r4, #144] ; 0x90 a0010fe8: e594009c ldr r0, [r4, #156] ; 0x9c a0010fec: e12fff33 blx r3 INIT_NAME (); } #endif if ( executing->Start.prototype == THREAD_START_NUMERIC ) { executing->Wait.return_argument = a0010ff0: e5840028 str r0, [r4, #40] ; 0x28 a0010ff4: eafffff0 b a0010fbc <_Thread_Handler+0x44> =============================================================================== a000c228 <_Thread_Handler_initialization>: uint32_t maximum_internal_threads; #if defined(RTEMS_MULTIPROCESSING) uint32_t maximum_proxies; #endif ticks_per_timeslice = Configuration.ticks_per_timeslice; a000c228: e59f2088 ldr r2, [pc, #136] ; a000c2b8 <_Thread_Handler_initialization+0x90> * * Output parameters: NONE */ void _Thread_Handler_initialization(void) { a000c22c: e52de004 push {lr} ; (str lr, [sp, #-4]!) #endif /* * BOTH stacks hooks must be set or both must be NULL. * Do not allow mixture. */ if ( !( (!Configuration.stack_allocate_hook) a000c230: e592c020 ldr ip, [r2, #32] == (!Configuration.stack_free_hook) ) ) a000c234: e5921024 ldr r1, [r2, #36] ; 0x24 uint32_t maximum_internal_threads; #if defined(RTEMS_MULTIPROCESSING) uint32_t maximum_proxies; #endif ticks_per_timeslice = Configuration.ticks_per_timeslice; a000c238: e5923010 ldr r3, [r2, #16] #endif /* * BOTH stacks hooks must be set or both must be NULL. * Do not allow mixture. */ if ( !( (!Configuration.stack_allocate_hook) a000c23c: e27cc001 rsbs ip, ip, #1 a000c240: 33a0c000 movcc ip, #0 a000c244: e3510000 cmp r1, #0 a000c248: 022cc001 eoreq ip, ip, #1 a000c24c: e35c0000 cmp ip, #0 * * Output parameters: NONE */ void _Thread_Handler_initialization(void) { a000c250: e24dd00c sub sp, sp, #12 #if defined(RTEMS_MULTIPROCESSING) uint32_t maximum_proxies; #endif ticks_per_timeslice = Configuration.ticks_per_timeslice; maximum_extensions = Configuration.maximum_extensions; a000c254: e5922008 ldr r2, [r2, #8] #endif /* * BOTH stacks hooks must be set or both must be NULL. * Do not allow mixture. */ if ( !( (!Configuration.stack_allocate_hook) a000c258: 1a000012 bne a000c2a8 <_Thread_Handler_initialization+0x80> INTERNAL_ERROR_CORE, true, INTERNAL_ERROR_BAD_STACK_HOOK ); _Thread_Dispatch_necessary = false; a000c25c: e59fe058 ldr lr, [pc, #88] ; a000c2bc <_Thread_Handler_initialization+0x94> _Thread_Heir = NULL; #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) _Thread_Allocated_fp = NULL; #endif _Thread_Maximum_extensions = maximum_extensions; a000c260: e59f0058 ldr r0, [pc, #88] ; a000c2c0 <_Thread_Handler_initialization+0x98> #if defined(RTEMS_MULTIPROCESSING) if ( _System_state_Is_multiprocessing ) maximum_internal_threads += 1; #endif _Objects_Initialize_information( a000c264: e3a01001 mov r1, #1 true, INTERNAL_ERROR_BAD_STACK_HOOK ); _Thread_Dispatch_necessary = false; _Thread_Executing = NULL; a000c268: e58ec004 str ip, [lr, #4] _Thread_Heir = NULL; a000c26c: e58ec008 str ip, [lr, #8] #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) _Thread_Allocated_fp = NULL; #endif _Thread_Maximum_extensions = maximum_extensions; a000c270: e5802000 str r2, [r0] _Thread_Ticks_per_timeslice = ticks_per_timeslice; a000c274: e59f2048 ldr r2, [pc, #72] ; a000c2c4 <_Thread_Handler_initialization+0x9c> #if defined(RTEMS_MULTIPROCESSING) if ( _System_state_Is_multiprocessing ) maximum_internal_threads += 1; #endif _Objects_Initialize_information( a000c278: e59f0048 ldr r0, [pc, #72] ; a000c2c8 <_Thread_Handler_initialization+0xa0> _Thread_Allocated_fp = NULL; #endif _Thread_Maximum_extensions = maximum_extensions; _Thread_Ticks_per_timeslice = ticks_per_timeslice; a000c27c: e5823000 str r3, [r2] #if defined(RTEMS_MULTIPROCESSING) if ( _System_state_Is_multiprocessing ) maximum_internal_threads += 1; #endif _Objects_Initialize_information( a000c280: e3a03f41 mov r3, #260 ; 0x104 a000c284: e88d1008 stm sp, {r3, ip} a000c288: e1a02001 mov r2, r1 INTERNAL_ERROR_CORE, true, INTERNAL_ERROR_BAD_STACK_HOOK ); _Thread_Dispatch_necessary = false; a000c28c: e5cec010 strb ip, [lr, #16] #if defined(RTEMS_MULTIPROCESSING) if ( _System_state_Is_multiprocessing ) maximum_internal_threads += 1; #endif _Objects_Initialize_information( a000c290: e1a03001 mov r3, r1 a000c294: e3a0c008 mov ip, #8 a000c298: e58dc008 str ip, [sp, #8] a000c29c: ebfffc18 bl a000b304 <_Objects_Initialize_information> false, /* true if this is a global object class */ NULL /* Proxy extraction support callout */ #endif ); } a000c2a0: e28dd00c add sp, sp, #12 a000c2a4: e8bd8000 pop {pc} * BOTH stacks hooks must be set or both must be NULL. * Do not allow mixture. */ if ( !( (!Configuration.stack_allocate_hook) == (!Configuration.stack_free_hook) ) ) _Internal_error_Occurred( a000c2a8: e3a00000 mov r0, #0 <== NOT EXECUTED a000c2ac: e3a01001 mov r1, #1 <== NOT EXECUTED a000c2b0: e3a0200e mov r2, #14 <== NOT EXECUTED a000c2b4: ebfffaa7 bl a000ad58 <_Internal_error_Occurred> <== NOT EXECUTED =============================================================================== a000c088 <_Thread_Initialize>: Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, Objects_Name name ) { a000c088: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} /* * Zero out all the allocated memory fields */ for ( i=0 ; i <= THREAD_API_LAST ; i++ ) the_thread->API_Extensions[i] = NULL; a000c08c: e3a05000 mov r5, #0 a000c090: e58150f4 str r5, [r1, #244] ; 0xf4 a000c094: e58150f8 str r5, [r1, #248] ; 0xf8 extensions_area = NULL; the_thread->libc_reent = NULL; a000c098: e58150f0 str r5, [r1, #240] ; 0xf0 Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, Objects_Name name ) { a000c09c: e1a04001 mov r4, r1 a000c0a0: e1a0a000 mov sl, r0 /* * Allocate and Initialize the stack for this thread. */ #if !defined(RTEMS_SCORE_THREAD_ENABLE_USER_PROVIDED_STACK_VIA_API) actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size ); a000c0a4: e1a00001 mov r0, r1 a000c0a8: e1a01003 mov r1, r3 Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, Objects_Name name ) { a000c0ac: e1a06003 mov r6, r3 a000c0b0: e59d7024 ldr r7, [sp, #36] ; 0x24 a000c0b4: e5dd8028 ldrb r8, [sp, #40] ; 0x28 /* * Allocate and Initialize the stack for this thread. */ #if !defined(RTEMS_SCORE_THREAD_ENABLE_USER_PROVIDED_STACK_VIA_API) actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size ); a000c0b8: eb0001fe bl a000c8b8 <_Thread_Stack_Allocate> if ( !actual_stack_size || actual_stack_size < stack_size ) a000c0bc: e1500005 cmp r0, r5 a000c0c0: 13a03000 movne r3, #0 a000c0c4: 03a03001 moveq r3, #1 a000c0c8: e1500006 cmp r0, r6 a000c0cc: 21a06003 movcs r6, r3 a000c0d0: 33836001 orrcc r6, r3, #1 a000c0d4: e1560005 cmp r6, r5 a000c0d8: 1a00003b bne a000c1cc <_Thread_Initialize+0x144> #endif /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { a000c0dc: e59f913c ldr r9, [pc, #316] ; a000c220 <_Thread_Initialize+0x198> Stack_Control *the_stack, void *starting_address, size_t size ) { the_stack->area = starting_address; a000c0e0: e59430bc ldr r3, [r4, #188] ; 0xbc the_stack->size = size; a000c0e4: e58400b4 str r0, [r4, #180] ; 0xb4 a000c0e8: e5995000 ldr r5, [r9] Stack_Control *the_stack, void *starting_address, size_t size ) { the_stack->area = starting_address; a000c0ec: e58430b8 str r3, [r4, #184] ; 0xb8 Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; a000c0f0: e5846050 str r6, [r4, #80] ; 0x50 a000c0f4: e3550000 cmp r5, #0 the_watchdog->routine = routine; a000c0f8: e5846064 str r6, [r4, #100] ; 0x64 the_watchdog->id = id; a000c0fc: e5846068 str r6, [r4, #104] ; 0x68 the_watchdog->user_data = user_data; a000c100: e584606c str r6, [r4, #108] ; 0x6c (_Thread_Maximum_extensions + 1) * sizeof( void * ) ); if ( !extensions_area ) goto failed; } the_thread->extensions = (void **) extensions_area; a000c104: 058450fc streq r5, [r4, #252] ; 0xfc #endif /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { a000c108: 1a000031 bne a000c1d4 <_Thread_Initialize+0x14c> /* * General initialization */ the_thread->Start.is_preemptible = is_preemptible; the_thread->Start.budget_algorithm = budget_algorithm; a000c10c: e59d302c ldr r3, [sp, #44] ; 0x2c } the_thread->Start.isr_level = isr_level; the_thread->current_state = STATES_DORMANT; the_thread->Wait.queue = NULL; a000c110: e3a06000 mov r6, #0 #endif } the_thread->Start.isr_level = isr_level; the_thread->current_state = STATES_DORMANT; a000c114: e3a09001 mov r9, #1 /* * General initialization */ the_thread->Start.is_preemptible = is_preemptible; the_thread->Start.budget_algorithm = budget_algorithm; a000c118: e58430a4 str r3, [r4, #164] ; 0xa4 the_thread->Start.budget_callout = budget_callout; a000c11c: e59d3030 ldr r3, [sp, #48] ; 0x30 /* * General initialization */ the_thread->Start.is_preemptible = is_preemptible; a000c120: e5c480a0 strb r8, [r4, #160] ; 0xa0 #endif } the_thread->Start.isr_level = isr_level; the_thread->current_state = STATES_DORMANT; a000c124: e5849010 str r9, [r4, #16] * General initialization */ the_thread->Start.is_preemptible = is_preemptible; the_thread->Start.budget_algorithm = budget_algorithm; the_thread->Start.budget_callout = budget_callout; a000c128: e58430a8 str r3, [r4, #168] ; 0xa8 case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT: break; #endif } the_thread->Start.isr_level = isr_level; a000c12c: e59d3034 ldr r3, [sp, #52] ; 0x34 the_thread->current_state = STATES_DORMANT; the_thread->Wait.queue = NULL; a000c130: e5846044 str r6, [r4, #68] ; 0x44 the_thread->resource_count = 0; a000c134: e584601c str r6, [r4, #28] case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT: break; #endif } the_thread->Start.isr_level = isr_level; a000c138: e58430ac str r3, [r4, #172] ; 0xac */ RTEMS_INLINE_ROUTINE void* _Scheduler_Allocate( Thread_Control *the_thread ) { return _Scheduler.Operations.allocate( the_thread ); a000c13c: e59f30e0 ldr r3, [pc, #224] ; a000c224 <_Thread_Initialize+0x19c> the_thread->current_state = STATES_DORMANT; the_thread->Wait.queue = NULL; the_thread->resource_count = 0; the_thread->real_priority = priority; a000c140: e5847018 str r7, [r4, #24] the_thread->Start.initial_priority = priority; a000c144: e58470b0 str r7, [r4, #176] ; 0xb0 a000c148: e5933018 ldr r3, [r3, #24] a000c14c: e1a00004 mov r0, r4 a000c150: e12fff33 blx r3 sched =_Scheduler_Allocate( the_thread ); if ( !sched ) a000c154: e2508000 subs r8, r0, #0 a000c158: 0a00000d beq a000c194 <_Thread_Initialize+0x10c> goto failed; _Thread_Set_priority( the_thread, priority ); a000c15c: e1a00004 mov r0, r4 a000c160: e1a01007 mov r1, r7 a000c164: eb0001ab bl a000c818 <_Thread_Set_priority> _Workspace_Free( sched ); _Thread_Stack_Free( the_thread ); return false; } a000c168: e59a301c ldr r3, [sl, #28] Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( a000c16c: e1d420b8 ldrh r2, [r4, #8] /* * Initialize the CPU usage statistics */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timestamp_Set_to_zero( &the_thread->cpu_time_used ); a000c170: e5846084 str r6, [r4, #132] ; 0x84 a000c174: e5846088 str r6, [r4, #136] ; 0x88 #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; a000c178: e7834102 str r4, [r3, r2, lsl #2] information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; a000c17c: e59d3038 ldr r3, [sp, #56] ; 0x38 * enabled when we get here. We want to be able to run the * user extensions with dispatching enabled. The Allocator * Mutex provides sufficient protection to let the user extensions * run safely. */ extension_status = _User_extensions_Thread_create( the_thread ); a000c180: e1a00004 mov r0, r4 a000c184: e584300c str r3, [r4, #12] a000c188: eb0002bc bl a000cc80 <_User_extensions_Thread_create> if ( extension_status ) a000c18c: e1500006 cmp r0, r6 a000c190: 1a00001e bne a000c210 <_Thread_Initialize+0x188> return true; failed: _Workspace_Free( the_thread->libc_reent ); a000c194: e59400f0 ldr r0, [r4, #240] ; 0xf0 <== NOT EXECUTED a000c198: eb0003e8 bl a000d140 <_Workspace_Free> <== NOT EXECUTED for ( i=0 ; i <= THREAD_API_LAST ; i++ ) _Workspace_Free( the_thread->API_Extensions[i] ); a000c19c: e59400f4 ldr r0, [r4, #244] ; 0xf4 <== NOT EXECUTED a000c1a0: eb0003e6 bl a000d140 <_Workspace_Free> <== NOT EXECUTED a000c1a4: e59400f8 ldr r0, [r4, #248] ; 0xf8 <== NOT EXECUTED a000c1a8: eb0003e4 bl a000d140 <_Workspace_Free> <== NOT EXECUTED _Workspace_Free( extensions_area ); a000c1ac: e1a00005 mov r0, r5 <== NOT EXECUTED a000c1b0: eb0003e2 bl a000d140 <_Workspace_Free> <== NOT EXECUTED #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) _Workspace_Free( fp_area ); #endif _Workspace_Free( sched ); a000c1b4: e1a00008 mov r0, r8 <== NOT EXECUTED a000c1b8: eb0003e0 bl a000d140 <_Workspace_Free> <== NOT EXECUTED _Thread_Stack_Free( the_thread ); a000c1bc: e1a00004 mov r0, r4 <== NOT EXECUTED a000c1c0: eb0001d7 bl a000c924 <_Thread_Stack_Free> <== NOT EXECUTED return false; a000c1c4: e3a00000 mov r0, #0 <== NOT EXECUTED a000c1c8: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED * Allocate and Initialize the stack for this thread. */ #if !defined(RTEMS_SCORE_THREAD_ENABLE_USER_PROVIDED_STACK_VIA_API) actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size ); if ( !actual_stack_size || actual_stack_size < stack_size ) return false; /* stack allocation failed */ a000c1cc: e1a00005 mov r0, r5 <== NOT EXECUTED a000c1d0: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { extensions_area = _Workspace_Allocate( a000c1d4: e2855001 add r5, r5, #1 a000c1d8: e1a00105 lsl r0, r5, #2 a000c1dc: eb0003d1 bl a000d128 <_Workspace_Allocate> (_Thread_Maximum_extensions + 1) * sizeof( void * ) ); if ( !extensions_area ) a000c1e0: e2505000 subs r5, r0, #0 a000c1e4: 0a00000b beq a000c218 <_Thread_Initialize+0x190> goto failed; } the_thread->extensions = (void **) extensions_area; a000c1e8: e5991000 ldr r1, [r9] a000c1ec: e58450fc str r5, [r4, #252] ; 0xfc a000c1f0: e1a03006 mov r3, r6 * so they cannot rely on the thread create user extension * call. */ if ( the_thread->extensions ) { for ( i = 0; i <= _Thread_Maximum_extensions ; i++ ) the_thread->extensions[i] = NULL; a000c1f4: e1a02006 mov r2, r6 * create the extension long after tasks have been created * so they cannot rely on the thread create user extension * call. */ if ( the_thread->extensions ) { for ( i = 0; i <= _Thread_Maximum_extensions ; i++ ) a000c1f8: e2833001 add r3, r3, #1 a000c1fc: e1530001 cmp r3, r1 the_thread->extensions[i] = NULL; a000c200: e7852106 str r2, [r5, r6, lsl #2] * create the extension long after tasks have been created * so they cannot rely on the thread create user extension * call. */ if ( the_thread->extensions ) { for ( i = 0; i <= _Thread_Maximum_extensions ; i++ ) a000c204: e1a06003 mov r6, r3 a000c208: 9afffffa bls a000c1f8 <_Thread_Initialize+0x170> a000c20c: eaffffbe b a000c10c <_Thread_Initialize+0x84> * Mutex provides sufficient protection to let the user extensions * run safely. */ extension_status = _User_extensions_Thread_create( the_thread ); if ( extension_status ) return true; a000c210: e1a00009 mov r0, r9 _Workspace_Free( sched ); _Thread_Stack_Free( the_thread ); return false; } a000c214: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} size_t actual_stack_size = 0; void *stack = NULL; #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) void *fp_area; #endif void *sched = NULL; a000c218: e1a08005 mov r8, r5 <== NOT EXECUTED a000c21c: eaffffdc b a000c194 <_Thread_Initialize+0x10c> <== NOT EXECUTED =============================================================================== a0010838 <_Thread_Reset>: void _Thread_Reset( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { a0010838: e92d4030 push {r4, r5, lr} <== NOT EXECUTED the_thread->resource_count = 0; the_thread->is_preemptible = the_thread->Start.is_preemptible; the_thread->budget_algorithm = the_thread->Start.budget_algorithm; a001083c: e590c0a4 ldr ip, [r0, #164] ; 0xa4 <== NOT EXECUTED void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { the_thread->resource_count = 0; the_thread->is_preemptible = the_thread->Start.is_preemptible; a0010840: e5d0e0a0 ldrb lr, [r0, #160] ; 0xa0 <== NOT EXECUTED the_thread->budget_algorithm = the_thread->Start.budget_algorithm; the_thread->budget_callout = the_thread->Start.budget_callout; a0010844: e59030a8 ldr r3, [r0, #168] ; 0xa8 <== NOT EXECUTED Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { the_thread->resource_count = 0; a0010848: e3a05000 mov r5, #0 <== NOT EXECUTED a001084c: e580501c str r5, [r0, #28] <== NOT EXECUTED the_thread->is_preemptible = the_thread->Start.is_preemptible; a0010850: e5c0e074 strb lr, [r0, #116] ; 0x74 <== NOT EXECUTED the_thread->budget_algorithm = the_thread->Start.budget_algorithm; a0010854: e580c07c str ip, [r0, #124] ; 0x7c <== NOT EXECUTED the_thread->budget_callout = the_thread->Start.budget_callout; a0010858: e5803080 str r3, [r0, #128] ; 0x80 <== NOT EXECUTED the_thread->Start.pointer_argument = pointer_argument; a001085c: e5801098 str r1, [r0, #152] ; 0x98 <== NOT EXECUTED the_thread->Start.numeric_argument = numeric_argument; a0010860: e580209c str r2, [r0, #156] ; 0x9c <== NOT EXECUTED void _Thread_Reset( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { a0010864: e1a04000 mov r4, r0 <== NOT EXECUTED the_thread->budget_callout = the_thread->Start.budget_callout; the_thread->Start.pointer_argument = pointer_argument; the_thread->Start.numeric_argument = numeric_argument; if ( !_Thread_queue_Extract_with_proxy( the_thread ) ) { a0010868: ebfff2d3 bl a000d3bc <_Thread_queue_Extract_with_proxy> <== NOT EXECUTED a001086c: e1500005 cmp r0, r5 <== NOT EXECUTED a0010870: 1a000002 bne a0010880 <_Thread_Reset+0x48> <== NOT EXECUTED if ( _Watchdog_Is_active( &the_thread->Timer ) ) a0010874: e5943050 ldr r3, [r4, #80] ; 0x50 <== NOT EXECUTED a0010878: e3530002 cmp r3, #2 <== NOT EXECUTED a001087c: 0a000008 beq a00108a4 <_Thread_Reset+0x6c> <== NOT EXECUTED (void) _Watchdog_Remove( &the_thread->Timer ); } if ( the_thread->current_priority != the_thread->Start.initial_priority ) { a0010880: e59410b0 ldr r1, [r4, #176] ; 0xb0 <== NOT EXECUTED a0010884: e5943014 ldr r3, [r4, #20] <== NOT EXECUTED a0010888: e1530001 cmp r3, r1 <== NOT EXECUTED a001088c: 0a000003 beq a00108a0 <_Thread_Reset+0x68> <== NOT EXECUTED the_thread->real_priority = the_thread->Start.initial_priority; _Thread_Set_priority( the_thread, the_thread->Start.initial_priority ); a0010890: e1a00004 mov r0, r4 <== NOT EXECUTED 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; a0010894: e5841018 str r1, [r4, #24] <== NOT EXECUTED _Thread_Set_priority( the_thread, the_thread->Start.initial_priority ); } } a0010898: e8bd4030 pop {r4, r5, lr} <== NOT EXECUTED (void) _Watchdog_Remove( &the_thread->Timer ); } if ( the_thread->current_priority != the_thread->Start.initial_priority ) { the_thread->real_priority = the_thread->Start.initial_priority; _Thread_Set_priority( the_thread, the_thread->Start.initial_priority ); a001089c: eafff340 b a000d5a4 <_Thread_Set_priority> <== NOT EXECUTED a00108a0: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED the_thread->Start.numeric_argument = numeric_argument; if ( !_Thread_queue_Extract_with_proxy( the_thread ) ) { if ( _Watchdog_Is_active( &the_thread->Timer ) ) (void) _Watchdog_Remove( &the_thread->Timer ); a00108a4: e2840048 add r0, r4, #72 ; 0x48 <== NOT EXECUTED a00108a8: ebfff527 bl a000dd4c <_Watchdog_Remove> <== NOT EXECUTED a00108ac: eafffff3 b a0010880 <_Thread_Reset+0x48> <== NOT EXECUTED =============================================================================== a000d530 <_Thread_Restart>: */ RTEMS_INLINE_ROUTINE bool _States_Is_dormant ( States_Control the_states ) { return (the_states & STATES_DORMANT); a000d530: e5903010 ldr r3, [r0, #16] <== NOT EXECUTED bool _Thread_Restart( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { a000d534: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED if ( !_States_Is_dormant( the_thread->current_state ) ) { a000d538: e3130001 tst r3, #1 <== NOT EXECUTED bool _Thread_Restart( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { a000d53c: e1a04000 mov r4, r0 <== NOT EXECUTED a000d540: e1a06001 mov r6, r1 <== NOT EXECUTED a000d544: e1a05002 mov r5, r2 <== NOT EXECUTED if ( !_States_Is_dormant( the_thread->current_state ) ) { a000d548: 0a000001 beq a000d554 <_Thread_Restart+0x24> <== NOT EXECUTED _Thread_Restart_self(); return true; } return false; a000d54c: e3a00000 mov r0, #0 <== NOT EXECUTED a000d550: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED Thread_Entry_numeric_type numeric_argument ) { if ( !_States_Is_dormant( the_thread->current_state ) ) { _Thread_Set_transient( the_thread ); a000d554: eb00002b bl a000d608 <_Thread_Set_transient> <== NOT EXECUTED _Thread_Reset( the_thread, pointer_argument, numeric_argument ); a000d558: e1a01006 mov r1, r6 <== NOT EXECUTED a000d55c: e1a02005 mov r2, r5 <== NOT EXECUTED a000d560: e1a00004 mov r0, r4 <== NOT EXECUTED a000d564: eb000cb3 bl a0010838 <_Thread_Reset> <== NOT EXECUTED _Thread_Load_environment( the_thread ); a000d568: e1a00004 mov r0, r4 <== NOT EXECUTED a000d56c: eb000bff bl a0010570 <_Thread_Load_environment> <== NOT EXECUTED _Thread_Ready( the_thread ); a000d570: e1a00004 mov r0, r4 <== NOT EXECUTED a000d574: eb000ca3 bl a0010808 <_Thread_Ready> <== NOT EXECUTED _User_extensions_Thread_restart( the_thread ); a000d578: e1a00004 mov r0, r4 <== NOT EXECUTED a000d57c: eb00014d bl a000dab8 <_User_extensions_Thread_restart> <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool _Thread_Is_executing ( const Thread_Control *the_thread ) { return ( the_thread == _Thread_Executing ); a000d580: e59f3018 ldr r3, [pc, #24] ; a000d5a0 <_Thread_Restart+0x70><== NOT EXECUTED if ( _Thread_Is_executing ( the_thread ) ) a000d584: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED a000d588: e1540003 cmp r4, r3 <== NOT EXECUTED a000d58c: 0a000001 beq a000d598 <_Thread_Restart+0x68> <== NOT EXECUTED _Thread_Restart_self(); return true; a000d590: e3a00001 mov r0, #1 <== NOT EXECUTED } return false; } a000d594: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( _Thread_Executing->fp_context != NULL ) _Context_Restore_fp( &_Thread_Executing->fp_context ); #endif _CPU_Context_Restart_self( &_Thread_Executing->Registers ); a000d598: e28400c0 add r0, r4, #192 ; 0xc0 <== NOT EXECUTED a000d59c: eb000342 bl a000e2ac <_CPU_Context_restore> <== NOT EXECUTED =============================================================================== a000c834 <_Thread_Set_state>: */ void _Thread_Set_state( Thread_Control *the_thread, States_Control state ) { a000c834: e92d4010 push {r4, lr} <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000c838: e10f4000 mrs r4, CPSR <== NOT EXECUTED a000c83c: e3842080 orr r2, r4, #128 ; 0x80 <== NOT EXECUTED a000c840: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED ISR_Level level; _ISR_Disable( level ); if ( !_States_Is_ready( the_thread->current_state ) ) { a000c844: e5902010 ldr r2, [r0, #16] <== NOT EXECUTED a000c848: e3520000 cmp r2, #0 <== NOT EXECUTED a000c84c: 0a000003 beq a000c860 <_Thread_Set_state+0x2c> <== NOT EXECUTED RTEMS_INLINE_ROUTINE States_Control _States_Set ( States_Control states_to_set, States_Control current_state ) { return (current_state | states_to_set); a000c850: e1812002 orr r2, r1, r2 <== NOT EXECUTED the_thread->current_state = a000c854: e5802010 str r2, [r0, #16] <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000c858: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED a000c85c: e8bd8010 pop {r4, pc} <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Scheduler_Block( Thread_Control *the_thread ) { _Scheduler.Operations.block( the_thread ); a000c860: e59f3010 ldr r3, [pc, #16] ; a000c878 <_Thread_Set_state+0x44><== NOT EXECUTED _States_Set( state, the_thread->current_state ); _ISR_Enable( level ); return; } the_thread->current_state = state; a000c864: e5801010 str r1, [r0, #16] <== NOT EXECUTED a000c868: e5933010 ldr r3, [r3, #16] <== NOT EXECUTED a000c86c: e12fff33 blx r3 <== NOT EXECUTED a000c870: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED a000c874: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a000c87c <_Thread_Set_transient>: * only case */ void _Thread_Set_transient( Thread_Control *the_thread ) { a000c87c: e92d4010 push {r4, lr} <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000c880: e10f4000 mrs r4, CPSR <== NOT EXECUTED a000c884: e3842080 orr r2, r4, #128 ; 0x80 <== NOT EXECUTED a000c888: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED ISR_Level level; uint32_t old_state; _ISR_Disable( level ); old_state = the_thread->current_state; a000c88c: e5902010 ldr r2, [r0, #16] <== NOT EXECUTED a000c890: e3821004 orr r1, r2, #4 <== NOT EXECUTED the_thread->current_state = _States_Set( STATES_TRANSIENT, old_state ); if ( _States_Is_ready( old_state ) ) { a000c894: e3520000 cmp r2, #0 <== NOT EXECUTED uint32_t old_state; _ISR_Disable( level ); old_state = the_thread->current_state; the_thread->current_state = _States_Set( STATES_TRANSIENT, old_state ); a000c898: e5801010 str r1, [r0, #16] <== NOT EXECUTED if ( _States_Is_ready( old_state ) ) { a000c89c: 1a000002 bne a000c8ac <_Thread_Set_transient+0x30> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Scheduler_Extract( Thread_Control *the_thread ) { _Scheduler.Operations.extract( the_thread ); a000c8a0: e59f300c ldr r3, [pc, #12] ; a000c8b4 <_Thread_Set_transient+0x38><== NOT EXECUTED a000c8a4: e593302c ldr r3, [r3, #44] ; 0x2c <== NOT EXECUTED a000c8a8: e12fff33 blx r3 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000c8ac: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED _Scheduler_Extract( the_thread ); } _ISR_Enable( level ); } a000c8b0: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a000c924 <_Thread_Stack_Free>: * Call ONLY the CPU table stack free hook, or the * the RTEMS workspace free. This is so the free * routine properly matches the allocation of the stack. */ if ( Configuration.stack_free_hook ) a000c924: e59f3024 ldr r3, [pc, #36] ; a000c950 <_Thread_Stack_Free+0x2c><== NOT EXECUTED */ void _Thread_Stack_Free( Thread_Control *the_thread ) { a000c928: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED * Call ONLY the CPU table stack free hook, or the * the RTEMS workspace free. This is so the free * routine properly matches the allocation of the stack. */ if ( Configuration.stack_free_hook ) a000c92c: e5933024 ldr r3, [r3, #36] ; 0x24 <== NOT EXECUTED a000c930: e3530000 cmp r3, #0 <== NOT EXECUTED a000c934: 0a000002 beq a000c944 <_Thread_Stack_Free+0x20> <== NOT EXECUTED (*Configuration.stack_free_hook)( the_thread->Start.Initial_stack.area ); a000c938: e59000b8 ldr r0, [r0, #184] ; 0xb8 <== NOT EXECUTED a000c93c: e12fff33 blx r3 <== NOT EXECUTED else _Workspace_Free( the_thread->Start.Initial_stack.area ); } a000c940: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED */ if ( Configuration.stack_free_hook ) (*Configuration.stack_free_hook)( the_thread->Start.Initial_stack.area ); else _Workspace_Free( the_thread->Start.Initial_stack.area ); a000c944: e59000b8 ldr r0, [r0, #184] ; 0xb8 <== NOT EXECUTED } a000c948: e49de004 pop {lr} ; (ldr lr, [sp], #4) <== NOT EXECUTED */ if ( Configuration.stack_free_hook ) (*Configuration.stack_free_hook)( the_thread->Start.Initial_stack.area ); else _Workspace_Free( the_thread->Start.Initial_stack.area ); a000c94c: ea0001fb b a000d140 <_Workspace_Free> <== NOT EXECUTED =============================================================================== a000c994 <_Thread_Start>: */ RTEMS_INLINE_ROUTINE bool _States_Is_dormant ( States_Control the_states ) { return (the_states & STATES_DORMANT); a000c994: e590c010 ldr ip, [r0, #16] Thread_Start_types the_prototype, void *entry_point, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { a000c998: e92d4010 push {r4, lr} if ( _States_Is_dormant( the_thread->current_state ) ) { a000c99c: e21cc001 ands ip, ip, #1 Thread_Start_types the_prototype, void *entry_point, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { a000c9a0: e1a04000 mov r4, r0 if ( _States_Is_dormant( the_thread->current_state ) ) { a000c9a4: 1a000001 bne a000c9b0 <_Thread_Start+0x1c> _User_extensions_Thread_start( the_thread ); return true; } return false; a000c9a8: e1a0000c mov r0, ip <== NOT EXECUTED } a000c9ac: e8bd8010 pop {r4, pc} <== NOT EXECUTED if ( _States_Is_dormant( the_thread->current_state ) ) { the_thread->Start.entry_point = (Thread_Entry) entry_point; the_thread->Start.prototype = the_prototype; the_thread->Start.pointer_argument = pointer_argument; a000c9b0: e5803098 str r3, [r0, #152] ; 0x98 the_thread->Start.numeric_argument = numeric_argument; a000c9b4: 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; a000c9b8: e5802090 str r2, [r0, #144] ; 0x90 the_thread->Start.prototype = the_prototype; a000c9bc: e5801094 str r1, [r0, #148] ; 0x94 the_thread->Start.pointer_argument = pointer_argument; the_thread->Start.numeric_argument = numeric_argument; a000c9c0: e580309c str r3, [r0, #156] ; 0x9c _Thread_Load_environment( the_thread ); a000c9c4: eb000b4a bl a000f6f4 <_Thread_Load_environment> _Thread_Ready( the_thread ); a000c9c8: e1a00004 mov r0, r4 a000c9cc: eb000bee bl a000f98c <_Thread_Ready> _User_extensions_Thread_start( the_thread ); a000c9d0: e1a00004 mov r0, r4 a000c9d4: eb0000d4 bl a000cd2c <_User_extensions_Thread_start> return true; a000c9d8: e3a00001 mov r0, #1 a000c9dc: e8bd8010 pop {r4, pc} =============================================================================== a000c9e0 <_Thread_Tickle_timeslice>: void _Thread_Tickle_timeslice( void ) { Thread_Control *executing; executing = _Thread_Executing; a000c9e0: e59f305c ldr r3, [pc, #92] ; a000ca44 <_Thread_Tickle_timeslice+0x64><== NOT EXECUTED * * Output parameters: NONE */ void _Thread_Tickle_timeslice( void ) { a000c9e4: e92d4010 push {r4, lr} <== NOT EXECUTED Thread_Control *executing; executing = _Thread_Executing; a000c9e8: e5934004 ldr r4, [r3, #4] <== NOT EXECUTED /* * If the thread is not preemptible or is not ready, then * just return. */ if ( !executing->is_preemptible ) a000c9ec: e5d43074 ldrb r3, [r4, #116] ; 0x74 <== NOT EXECUTED a000c9f0: e3530000 cmp r3, #0 <== NOT EXECUTED a000c9f4: 0a000005 beq a000ca10 <_Thread_Tickle_timeslice+0x30> <== NOT EXECUTED return; if ( !_States_Is_ready( executing->current_state ) ) a000c9f8: e5943010 ldr r3, [r4, #16] <== NOT EXECUTED a000c9fc: e3530000 cmp r3, #0 <== NOT EXECUTED a000ca00: 1a000002 bne a000ca10 <_Thread_Tickle_timeslice+0x30> <== NOT EXECUTED /* * The cpu budget algorithm determines what happens next. */ switch ( executing->budget_algorithm ) { a000ca04: e594307c ldr r3, [r4, #124] ; 0x7c <== NOT EXECUTED a000ca08: e3530001 cmp r3, #1 <== NOT EXECUTED a000ca0c: 0a000000 beq a000ca14 <_Thread_Tickle_timeslice+0x34> <== NOT EXECUTED a000ca10: e8bd8010 pop {r4, pc} <== 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 ) { a000ca14: e5943078 ldr r3, [r4, #120] ; 0x78 <== NOT EXECUTED a000ca18: e2433001 sub r3, r3, #1 <== NOT EXECUTED a000ca1c: e3530000 cmp r3, #0 <== NOT EXECUTED a000ca20: e5843078 str r3, [r4, #120] ; 0x78 <== NOT EXECUTED a000ca24: cafffff9 bgt a000ca10 <_Thread_Tickle_timeslice+0x30> <== NOT EXECUTED * always operates on the scheduler that 'owns' the currently executing * thread. */ RTEMS_INLINE_ROUTINE void _Scheduler_Yield( void ) { _Scheduler.Operations.yield(); a000ca28: e59f3018 ldr r3, [pc, #24] ; a000ca48 <_Thread_Tickle_timeslice+0x68><== NOT EXECUTED a000ca2c: e593300c ldr r3, [r3, #12] <== NOT EXECUTED a000ca30: 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; a000ca34: e59f3010 ldr r3, [pc, #16] ; a000ca4c <_Thread_Tickle_timeslice+0x6c><== NOT EXECUTED a000ca38: e5933000 ldr r3, [r3] <== NOT EXECUTED a000ca3c: e5843078 str r3, [r4, #120] ; 0x78 <== NOT EXECUTED a000ca40: eafffff2 b a000ca10 <_Thread_Tickle_timeslice+0x30> <== NOT EXECUTED =============================================================================== a000baf8 <_Thread_blocking_operation_Cancel>: Thread_blocking_operation_States sync_state __attribute__((unused)), #endif Thread_Control *the_thread, ISR_Level level ) { a000baf8: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== 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 ) ) { a000bafc: e5913050 ldr r3, [r1, #80] ; 0x50 <== NOT EXECUTED Thread_blocking_operation_States sync_state __attribute__((unused)), #endif Thread_Control *the_thread, ISR_Level level ) { a000bb00: e24dd004 sub sp, sp, #4 <== 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 ) ) { a000bb04: e3530002 cmp r3, #2 <== NOT EXECUTED #endif /* * The thread is not waiting on anything after this completes. */ the_thread->Wait.queue = NULL; a000bb08: e3a03000 mov r3, #0 <== NOT EXECUTED a000bb0c: 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 ) ) { a000bb10: 0a000005 beq a000bb2c <_Thread_blocking_operation_Cancel+0x34><== NOT EXECUTED a000bb14: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); a000bb18: e1a00001 mov r0, r1 <== NOT EXECUTED a000bb1c: e59f1028 ldr r1, [pc, #40] ; a000bb4c <_Thread_blocking_operation_Cancel+0x54><== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } a000bb20: e28dd004 add sp, sp, #4 <== NOT EXECUTED a000bb24: e49de004 pop {lr} ; (ldr lr, [sp], #4) <== NOT EXECUTED a000bb28: ea00004a b a000bc58 <_Thread_Clear_state> <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_REMOVE_IT; a000bb2c: e3a03003 mov r3, #3 <== NOT EXECUTED a000bb30: e5813050 str r3, [r1, #80] ; 0x50 <== NOT EXECUTED a000bb34: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED * But better safe than sorry when it comes to critical sections. */ if ( _Watchdog_Is_active( &the_thread->Timer ) ) { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); (void) _Watchdog_Remove( &the_thread->Timer ); a000bb38: e2810048 add r0, r1, #72 ; 0x48 <== NOT EXECUTED a000bb3c: e58d1000 str r1, [sp] <== NOT EXECUTED a000bb40: eb00050b bl a000cf74 <_Watchdog_Remove> <== NOT EXECUTED a000bb44: e59d1000 ldr r1, [sp] <== NOT EXECUTED a000bb48: eafffff2 b a000bb18 <_Thread_blocking_operation_Cancel+0x20><== NOT EXECUTED =============================================================================== a000c2cc <_Thread_queue_Dequeue>: Thread_Control *(*dequeue_p)( Thread_queue_Control * ); Thread_Control *the_thread; ISR_Level level; Thread_blocking_operation_States sync_state; if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) a000c2cc: e5901034 ldr r1, [r0, #52] ; 0x34 dequeue_p = _Thread_queue_Dequeue_priority; a000c2d0: e59f2054 ldr r2, [pc, #84] ; a000c32c <_Thread_queue_Dequeue+0x60> */ Thread_Control *_Thread_queue_Dequeue( Thread_queue_Control *the_thread_queue ) { a000c2d4: e92d4010 push {r4, lr} Thread_Control *the_thread; ISR_Level level; Thread_blocking_operation_States sync_state; if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) dequeue_p = _Thread_queue_Dequeue_priority; a000c2d8: e3510001 cmp r1, #1 a000c2dc: e59f304c ldr r3, [pc, #76] ; a000c330 <_Thread_queue_Dequeue+0x64> a000c2e0: 01a03002 moveq r3, r2 */ Thread_Control *_Thread_queue_Dequeue( Thread_queue_Control *the_thread_queue ) { a000c2e4: e1a04000 mov r4, r0 if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) dequeue_p = _Thread_queue_Dequeue_priority; else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */ dequeue_p = _Thread_queue_Dequeue_fifo; the_thread = (*dequeue_p)( the_thread_queue ); a000c2e8: e12fff33 blx r3 static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000c2ec: e10f3000 mrs r3, CPSR a000c2f0: e3832080 orr r2, r3, #128 ; 0x80 a000c2f4: e129f002 msr CPSR_fc, r2 _ISR_Disable( level ); if ( !the_thread ) { a000c2f8: e3500000 cmp r0, #0 a000c2fc: 0a000001 beq a000c308 <_Thread_queue_Dequeue+0x3c> static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000c300: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED the_thread = _Thread_Executing; } } _ISR_Enable( level ); return the_thread; } a000c304: e8bd8010 pop {r4, pc} <== NOT EXECUTED the_thread = (*dequeue_p)( the_thread_queue ); _ISR_Disable( level ); if ( !the_thread ) { sync_state = the_thread_queue->sync_state; if ( (sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) || a000c308: e5942030 ldr r2, [r4, #48] ; 0x30 a000c30c: e2422001 sub r2, r2, #1 a000c310: e3520001 cmp r2, #1 (sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) ) { the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SATISFIED; a000c314: 93a02003 movls r2, #3 a000c318: 95842030 strls r2, [r4, #48] ; 0x30 the_thread = _Thread_Executing; a000c31c: 959f2010 ldrls r2, [pc, #16] ; a000c334 <_Thread_queue_Dequeue+0x68> a000c320: 95920004 ldrls r0, [r2, #4] a000c324: e129f003 msr CPSR_fc, r3 } } _ISR_Enable( level ); return the_thread; } a000c328: e8bd8010 pop {r4, pc} =============================================================================== a000f744 <_Thread_queue_Dequeue_fifo>: */ Thread_Control *_Thread_queue_Dequeue_fifo( Thread_queue_Control *the_thread_queue ) { a000f744: e92d4030 push {r4, r5, lr} static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000f748: e10f2000 mrs r2, CPSR a000f74c: e3823080 orr r3, r2, #128 ; 0x80 a000f750: e129f003 msr CPSR_fc, r3 return the_thread; } _ISR_Enable( level ); return NULL; } a000f754: e1a03000 mov r3, r0 a000f758: e4934004 ldr r4, [r3], #4 { ISR_Level level; Thread_Control *the_thread; _ISR_Disable( level ); if ( !_Chain_Is_empty( &the_thread_queue->Queues.Fifo ) ) { a000f75c: e1540003 cmp r4, r3 a000f760: 0a000018 beq a000f7c8 <_Thread_queue_Dequeue_fifo+0x84> the_thread = (Thread_Control *) _Chain_Get_first_unprotected( &the_thread_queue->Queues.Fifo ); the_thread->Wait.queue = NULL; if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { a000f764: e5941050 ldr r1, [r4, #80] ; 0x50 <== 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; a000f768: e5943000 ldr r3, [r4] <== NOT EXECUTED Thread_Control *the_thread; _ISR_Disable( level ); if ( !_Chain_Is_empty( &the_thread_queue->Queues.Fifo ) ) { the_thread = (Thread_Control *) a000f76c: e1a05004 mov r5, r4 <== NOT EXECUTED _Chain_Get_first_unprotected( &the_thread_queue->Queues.Fifo ); the_thread->Wait.queue = NULL; if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { a000f770: e3510002 cmp r1, #2 <== NOT EXECUTED head->next = new_first; a000f774: e5803000 str r3, [r0] <== NOT EXECUTED new_first->previous = head; a000f778: e5830004 str r0, [r3, #4] <== NOT EXECUTED if ( !_Chain_Is_empty( &the_thread_queue->Queues.Fifo ) ) { the_thread = (Thread_Control *) _Chain_Get_first_unprotected( &the_thread_queue->Queues.Fifo ); the_thread->Wait.queue = NULL; a000f77c: e3a03000 mov r3, #0 <== NOT EXECUTED a000f780: e5843044 str r3, [r4, #68] ; 0x44 <== NOT EXECUTED if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { a000f784: 0a000005 beq a000f7a0 <_Thread_queue_Dequeue_fifo+0x5c> <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000f788: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); a000f78c: e59f1040 ldr r1, [pc, #64] ; a000f7d4 <_Thread_queue_Dequeue_fifo+0x90><== NOT EXECUTED a000f790: e1a00004 mov r0, r4 <== NOT EXECUTED a000f794: ebfff12f bl a000bc58 <_Thread_Clear_state> <== NOT EXECUTED return the_thread; } _ISR_Enable( level ); return NULL; } a000f798: e1a00005 mov r0, r5 a000f79c: e8bd8030 pop {r4, r5, pc} RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_REMOVE_IT; a000f7a0: e3a03003 mov r3, #3 <== NOT EXECUTED a000f7a4: e5843050 str r3, [r4, #80] ; 0x50 <== NOT EXECUTED a000f7a8: 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 ); a000f7ac: e2840048 add r0, r4, #72 ; 0x48 <== NOT EXECUTED a000f7b0: ebfff5ef bl a000cf74 <_Watchdog_Remove> <== NOT EXECUTED a000f7b4: e1a00004 mov r0, r4 <== NOT EXECUTED a000f7b8: e59f1014 ldr r1, [pc, #20] ; a000f7d4 <_Thread_queue_Dequeue_fifo+0x90><== NOT EXECUTED a000f7bc: ebfff125 bl a000bc58 <_Thread_Clear_state> <== NOT EXECUTED return the_thread; } _ISR_Enable( level ); return NULL; } a000f7c0: e1a00005 mov r0, r5 <== NOT EXECUTED a000f7c4: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED a000f7c8: e129f002 msr CPSR_fc, r2 return the_thread; } _ISR_Enable( level ); return NULL; a000f7cc: e3a05000 mov r5, #0 a000f7d0: eafffff0 b a000f798 <_Thread_queue_Dequeue_fifo+0x54> =============================================================================== a000c338 <_Thread_queue_Dequeue_priority>: */ Thread_Control *_Thread_queue_Dequeue_priority( Thread_queue_Control *the_thread_queue ) { a000c338: e92d4070 push {r4, r5, r6, lr} static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000c33c: e10f6000 mrs r6, CPSR a000c340: e3863080 orr r3, r6, #128 ; 0x80 a000c344: e129f003 msr CPSR_fc, r3 Chain_Node *new_second_node; Chain_Node *last_node; Chain_Node *next_node; Chain_Node *previous_node; _ISR_Disable( level ); a000c348: e3a02000 mov r2, #0 for( index=0 ; a000c34c: e1a03002 mov r3, r2 RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( const Chain_Control *the_chain ) { return _Chain_Immutable_first( the_chain ) == _Chain_Immutable_tail( the_chain ); a000c350: e3a0c00c mov ip, #12 a000c354: e001039c mul r1, ip, r3 #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif return( the_thread ); } a000c358: e7904002 ldr r4, [r0, r2] a000c35c: e2811004 add r1, r1, #4 a000c360: e0801001 add r1, r0, r1 _ISR_Disable( level ); for( index=0 ; index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ; index++ ) { if ( !_Chain_Is_empty( &the_thread_queue->Queues.Priority[ index ] ) ) { a000c364: e1540001 cmp r4, r1 Chain_Node *previous_node; _ISR_Disable( level ); for( index=0 ; index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ; index++ ) { a000c368: e2833001 add r3, r3, #1 if ( !_Chain_Is_empty( &the_thread_queue->Queues.Priority[ index ] ) ) { a000c36c: 1a000006 bne a000c38c <_Thread_queue_Dequeue_priority+0x54> Chain_Node *last_node; Chain_Node *next_node; Chain_Node *previous_node; _ISR_Disable( level ); for( index=0 ; a000c370: e3530004 cmp r3, #4 index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ; index++ ) { a000c374: e282200c add r2, r2, #12 Chain_Node *last_node; Chain_Node *next_node; Chain_Node *previous_node; _ISR_Disable( level ); for( index=0 ; a000c378: 1afffff5 bne a000c354 <_Thread_queue_Dequeue_priority+0x1c> static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000c37c: e129f006 msr CPSR_fc, r6 /* * We did not find a thread to unblock. */ _ISR_Enable( level ); return NULL; a000c380: e3a05000 mov r5, #0 #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif return( the_thread ); } a000c384: e1a00005 mov r0, r5 a000c388: e8bd8070 pop {r4, r5, r6, pc} a000c38c: e5943038 ldr r3, [r4, #56] ; 0x38 <== NOT EXECUTED a000c390: e284203c add r2, r4, #60 ; 0x3c <== NOT EXECUTED _ISR_Disable( level ); for( index=0 ; index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ; index++ ) { if ( !_Chain_Is_empty( &the_thread_queue->Queues.Priority[ index ] ) ) { the_thread = (Thread_Control *) _Chain_First( a000c394: e1a05004 mov r5, r4 <== NOT EXECUTED new_first_node = _Chain_First( &the_thread->Wait.Block2n ); new_first_thread = (Thread_Control *) new_first_node; next_node = the_thread->Object.Node.next; previous_node = the_thread->Object.Node.previous; if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) { a000c398: e1530002 cmp r3, r2 <== NOT EXECUTED */ _ISR_Enable( level ); return NULL; dequeue: the_thread->Wait.queue = NULL; a000c39c: e3a02000 mov r2, #0 <== NOT EXECUTED a000c3a0: e5842044 str r2, [r4, #68] ; 0x44 <== NOT EXECUTED 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; a000c3a4: e5941004 ldr r1, [r4, #4] <== NOT EXECUTED 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; a000c3a8: e5942000 ldr r2, [r4] <== NOT EXECUTED previous_node = the_thread->Object.Node.previous; if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) { a000c3ac: 0a000020 beq a000c434 <_Thread_queue_Dequeue_priority+0xfc><== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif return( the_thread ); } a000c3b0: e5940040 ldr r0, [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; a000c3b4: e593c000 ldr ip, [r3] <== NOT EXECUTED previous_node->next = new_first_node; next_node->previous = new_first_node; a000c3b8: e5823004 str r3, [r2, #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; a000c3bc: e5813000 str r3, [r1] <== NOT EXECUTED next_node->previous = new_first_node; new_first_node->next = next_node; new_first_node->previous = previous_node; a000c3c0: e5831004 str r1, [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; a000c3c4: e5832000 str r2, [r3] <== NOT EXECUTED new_first_node->previous = previous_node; if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) { a000c3c8: e5941038 ldr r1, [r4, #56] ; 0x38 <== NOT EXECUTED a000c3cc: e5942040 ldr r2, [r4, #64] ; 0x40 <== NOT EXECUTED a000c3d0: e1510002 cmp r1, r2 <== NOT EXECUTED a000c3d4: 0a000005 beq a000c3f0 <_Thread_queue_Dequeue_priority+0xb8><== NOT EXECUTED /* > two threads on 2-n */ head = _Chain_Head( &new_first_thread->Wait.Block2n ); a000c3d8: e2831038 add r1, r3, #56 ; 0x38 <== NOT EXECUTED tail = _Chain_Tail( &new_first_thread->Wait.Block2n ); a000c3dc: e283203c add r2, r3, #60 ; 0x3c <== NOT EXECUTED new_second_node->previous = head; a000c3e0: e58c1004 str r1, [ip, #4] <== NOT EXECUTED head->next = new_second_node; a000c3e4: e583c038 str ip, [r3, #56] ; 0x38 <== NOT EXECUTED tail->previous = last_node; a000c3e8: e5830040 str r0, [r3, #64] ; 0x40 <== NOT EXECUTED last_node->next = tail; a000c3ec: e5802000 str r2, [r0] <== NOT EXECUTED } else { previous_node->next = next_node; next_node->previous = previous_node; } if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { a000c3f0: e5943050 ldr r3, [r4, #80] ; 0x50 <== NOT EXECUTED a000c3f4: e3530002 cmp r3, #2 <== NOT EXECUTED a000c3f8: 0a000004 beq a000c410 <_Thread_queue_Dequeue_priority+0xd8><== NOT EXECUTED a000c3fc: e129f006 msr CPSR_fc, r6 <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); a000c400: e59f1038 ldr r1, [pc, #56] ; a000c440 <_Thread_queue_Dequeue_priority+0x108><== NOT EXECUTED a000c404: e1a00004 mov r0, r4 <== NOT EXECUTED a000c408: ebfffe12 bl a000bc58 <_Thread_Clear_state> <== NOT EXECUTED a000c40c: eaffffdc b a000c384 <_Thread_queue_Dequeue_priority+0x4c> <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_REMOVE_IT; a000c410: e3a03003 mov r3, #3 <== NOT EXECUTED a000c414: e5843050 str r3, [r4, #80] ; 0x50 <== NOT EXECUTED a000c418: e129f006 msr CPSR_fc, r6 <== NOT EXECUTED _ISR_Enable( level ); _Thread_Unblock( the_thread ); } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); (void) _Watchdog_Remove( &the_thread->Timer ); a000c41c: e2840048 add r0, r4, #72 ; 0x48 <== NOT EXECUTED a000c420: eb0002d3 bl a000cf74 <_Watchdog_Remove> <== NOT EXECUTED a000c424: e1a00004 mov r0, r4 <== NOT EXECUTED a000c428: e59f1010 ldr r1, [pc, #16] ; a000c440 <_Thread_queue_Dequeue_priority+0x108><== NOT EXECUTED a000c42c: ebfffe09 bl a000bc58 <_Thread_Clear_state> <== NOT EXECUTED a000c430: eaffffd3 b a000c384 <_Thread_queue_Dequeue_priority+0x4c> <== NOT EXECUTED head->next = new_second_node; tail->previous = last_node; last_node->next = tail; } } else { previous_node->next = next_node; a000c434: e5812000 str r2, [r1] <== NOT EXECUTED next_node->previous = previous_node; a000c438: e5821004 str r1, [r2, #4] <== NOT EXECUTED a000c43c: eaffffeb b a000c3f0 <_Thread_queue_Dequeue_priority+0xb8> <== NOT EXECUTED =============================================================================== a000f7d8 <_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 ) { a000f7d8: e52d4004 push {r4} ; (str r4, [sp, #-4]!) <== NOT EXECUTED a000f7dc: e1a03000 mov r3, r0 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000f7e0: e10f4000 mrs r4, CPSR <== NOT EXECUTED a000f7e4: e3840080 orr r0, r4, #128 ; 0x80 <== NOT EXECUTED a000f7e8: e129f000 msr CPSR_fc, r0 <== NOT EXECUTED Thread_blocking_operation_States sync_state; ISR_Level level; _ISR_Disable( level ); sync_state = the_thread_queue->sync_state; a000f7ec: e5930030 ldr r0, [r3, #48] ; 0x30 <== NOT EXECUTED the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; a000f7f0: e3a0c000 mov ip, #0 <== NOT EXECUTED a000f7f4: e583c030 str ip, [r3, #48] ; 0x30 <== NOT EXECUTED if (sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) { a000f7f8: e3500001 cmp r0, #1 <== NOT EXECUTED * For example, the blocking thread could have been given * the mutex by an ISR or timed out. * * WARNING! Returning with interrupts disabled! */ *level_p = level; a000f7fc: 15824000 strne r4, [r2] <== NOT EXECUTED _ISR_Disable( level ); sync_state = the_thread_queue->sync_state; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; if (sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) { a000f800: 0a000001 beq a000f80c <_Thread_queue_Enqueue_fifo+0x34> <== NOT EXECUTED * * WARNING! Returning with interrupts disabled! */ *level_p = level; return sync_state; } a000f804: e8bd0010 pop {r4} <== NOT EXECUTED a000f808: e12fff1e bx lr <== NOT EXECUTED Chain_Control *the_chain, Chain_Node *the_node ) { Chain_Node *tail = _Chain_Tail( the_chain ); Chain_Node *old_last = tail->previous; a000f80c: e5932008 ldr r2, [r3, #8] <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Chain_Append_unprotected( Chain_Control *the_chain, Chain_Node *the_node ) { Chain_Node *tail = _Chain_Tail( the_chain ); a000f810: e283c004 add ip, r3, #4 <== NOT EXECUTED Chain_Node *old_last = tail->previous; the_node->next = tail; tail->previous = the_node; a000f814: e5831008 str r1, [r3, #8] <== NOT EXECUTED ) { Chain_Node *tail = _Chain_Tail( the_chain ); Chain_Node *old_last = tail->previous; the_node->next = tail; a000f818: e581c000 str ip, [r1] <== NOT EXECUTED tail->previous = the_node; old_last->next = the_node; the_node->previous = old_last; a000f81c: e5812004 str r2, [r1, #4] <== NOT EXECUTED Chain_Node *tail = _Chain_Tail( the_chain ); Chain_Node *old_last = tail->previous; the_node->next = tail; tail->previous = the_node; old_last->next = the_node; a000f820: e5821000 str r1, [r2] <== NOT EXECUTED if (sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) { _Chain_Append_unprotected( &the_thread_queue->Queues.Fifo, &the_thread->Object.Node ); the_thread->Wait.queue = the_thread_queue; a000f824: e5813044 str r3, [r1, #68] ; 0x44 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000f828: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; a000f82c: eafffff4 b a000f804 <_Thread_queue_Enqueue_fifo+0x2c> <== NOT EXECUTED =============================================================================== a000c4f0 <_Thread_queue_Enqueue_priority>: Priority_Control priority; States_Control block_state; _Chain_Initialize_empty( &the_thread->Wait.Block2n ); priority = the_thread->current_priority; a000c4f0: e5913014 ldr r3, [r1, #20] <== NOT EXECUTED Thread_blocking_operation_States _Thread_queue_Enqueue_priority ( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread, ISR_Level *level_p ) { a000c4f4: e92d05f0 push {r4, r5, r6, r7, r8, sl} <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); a000c4f8: e281403c add r4, r1, #60 ; 0x3c <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { Chain_Node *head = _Chain_Head( the_chain ); a000c4fc: e281c038 add ip, r1, #56 ; 0x38 <== NOT EXECUTED Chain_Node *tail = _Chain_Tail( the_chain ); head->next = tail; a000c500: e5814038 str r4, [r1, #56] ; 0x38 <== NOT EXECUTED 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 ) ) a000c504: e3130020 tst r3, #32 <== NOT EXECUTED head->previous = NULL; a000c508: e3a04000 mov r4, #0 <== NOT EXECUTED tail->previous = head; a000c50c: e581c040 str ip, [r1, #64] ; 0x40 <== NOT EXECUTED { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); head->next = tail; head->previous = NULL; a000c510: e581403c str r4, [r1, #60] ; 0x3c <== NOT EXECUTED RTEMS_INLINE_ROUTINE uint32_t _Thread_queue_Header_number ( Priority_Control the_priority ) { return (the_priority / TASK_QUEUE_DATA_PRIORITIES_PER_HEADER); a000c514: e1a0c323 lsr ip, r3, #6 <== NOT EXECUTED _Chain_Initialize_empty( &the_thread->Wait.Block2n ); priority = the_thread->current_priority; header_index = _Thread_queue_Header_number( priority ); header = &the_thread_queue->Queues.Priority[ header_index ]; block_state = the_thread_queue->state; a000c518: e5905038 ldr r5, [r0, #56] ; 0x38 <== NOT EXECUTED if ( _Thread_queue_Is_reverse_search( priority ) ) a000c51c: 0a00001e beq a000c59c <_Thread_queue_Enqueue_priority+0xac><== NOT EXECUTED * * WARNING! Returning with interrupts disabled! */ *level_p = level; return the_thread_queue->sync_state; } a000c520: e3a0700c mov r7, #12 <== NOT EXECUTED a000c524: e59fa174 ldr sl, [pc, #372] ; a000c6a0 <_Thread_queue_Enqueue_priority+0x1b0><== NOT EXECUTED a000c528: e027079c mla r7, ip, r7, r0 <== NOT EXECUTED the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; a000c52c: e5da4000 ldrb r4, [sl] <== NOT EXECUTED a000c530: e2844001 add r4, r4, #1 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000c534: e10f8000 mrs r8, CPSR <== NOT EXECUTED a000c538: e388c080 orr ip, r8, #128 ; 0x80 <== NOT EXECUTED a000c53c: e129f00c msr CPSR_fc, ip <== NOT EXECUTED * * WARNING! Returning with interrupts disabled! */ *level_p = level; return the_thread_queue->sync_state; } a000c540: e597c008 ldr ip, [r7, #8] <== 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 ) ) { a000c544: e15c0007 cmp ip, r7 <== NOT EXECUTED a000c548: 1a000009 bne a000c574 <_Thread_queue_Enqueue_priority+0x84><== NOT EXECUTED a000c54c: ea00000b b a000c580 <_Thread_queue_Enqueue_priority+0x90> <== NOT EXECUTED static inline void arm_interrupt_flash( uint32_t level ) { uint32_t arm_switch_reg; __asm__ volatile ( a000c550: e10f6000 mrs r6, CPSR <== NOT EXECUTED a000c554: e129f008 msr CPSR_fc, r8 <== NOT EXECUTED a000c558: e129f006 msr CPSR_fc, r6 <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool _States_Are_set ( States_Control the_states, States_Control mask ) { return ( (the_states & mask) != STATES_READY); a000c55c: e59c6010 ldr r6, [ip, #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) ) { a000c560: e1150006 tst r5, r6 <== NOT EXECUTED a000c564: 0a000033 beq a000c638 <_Thread_queue_Enqueue_priority+0x148><== NOT EXECUTED _ISR_Enable( level ); goto restart_reverse_search; } search_thread = (Thread_Control *) search_thread->Object.Node.previous; a000c568: e59cc004 ldr ip, [ip, #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 ) ) { a000c56c: e15c0007 cmp ip, r7 <== NOT EXECUTED a000c570: 0a000002 beq a000c580 <_Thread_queue_Enqueue_priority+0x90><== NOT EXECUTED search_priority = search_thread->current_priority; a000c574: e59c4014 ldr r4, [ip, #20] <== NOT EXECUTED if ( priority >= search_priority ) a000c578: e1530004 cmp r3, r4 <== NOT EXECUTED a000c57c: 3afffff3 bcc a000c550 <_Thread_queue_Enqueue_priority+0x60><== NOT EXECUTED } search_thread = (Thread_Control *) search_thread->Object.Node.previous; } if ( the_thread_queue->sync_state != a000c580: e5905030 ldr r5, [r0, #48] ; 0x30 <== NOT EXECUTED a000c584: e3550001 cmp r5, #1 <== NOT EXECUTED a000c588: 0a00002e beq a000c648 <_Thread_queue_Enqueue_priority+0x158><== NOT EXECUTED * For example, the blocking thread could have been given * the mutex by an ISR or timed out. * * WARNING! Returning with interrupts disabled! */ *level_p = level; a000c58c: e5828000 str r8, [r2] <== NOT EXECUTED return the_thread_queue->sync_state; } a000c590: e1a00005 mov r0, r5 <== NOT EXECUTED a000c594: e8bd05f0 pop {r4, r5, r6, r7, r8, sl} <== NOT EXECUTED a000c598: e12fff1e bx lr <== NOT EXECUTED a000c59c: e3a0400c mov r4, #12 <== NOT EXECUTED a000c5a0: e00c0c94 mul ip, r4, ip <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool _Chain_Is_tail( Chain_Control *the_chain, const Chain_Node *the_node ) { return (the_node == _Chain_Tail(the_chain)); a000c5a4: e28c7004 add r7, ip, #4 <== NOT EXECUTED a000c5a8: e080a00c add sl, r0, ip <== NOT EXECUTED a000c5ac: e0807007 add r7, r0, r7 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000c5b0: e10f8000 mrs r8, CPSR <== NOT EXECUTED a000c5b4: e388c080 orr ip, r8, #128 ; 0x80 <== NOT EXECUTED a000c5b8: e129f00c msr CPSR_fc, ip <== NOT EXECUTED a000c5bc: e59ac000 ldr ip, [sl] <== NOT EXECUTED restart_forward_search: search_priority = PRIORITY_MINIMUM - 1; _ISR_Disable( level ); search_thread = (Thread_Control *) _Chain_First( header ); while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) { a000c5c0: e15c0007 cmp ip, r7 <== NOT EXECUTED a000c5c4: 1a000009 bne a000c5f0 <_Thread_queue_Enqueue_priority+0x100><== NOT EXECUTED a000c5c8: ea000032 b a000c698 <_Thread_queue_Enqueue_priority+0x1a8> <== NOT EXECUTED static inline void arm_interrupt_flash( uint32_t level ) { uint32_t arm_switch_reg; __asm__ volatile ( a000c5cc: e10f6000 mrs r6, CPSR <== NOT EXECUTED a000c5d0: e129f008 msr CPSR_fc, r8 <== NOT EXECUTED a000c5d4: e129f006 msr CPSR_fc, r6 <== NOT EXECUTED a000c5d8: e59c6010 ldr r6, [ip, #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) ) { a000c5dc: e1150006 tst r5, r6 <== NOT EXECUTED a000c5e0: 0a000016 beq a000c640 <_Thread_queue_Enqueue_priority+0x150><== NOT EXECUTED _ISR_Enable( level ); goto restart_forward_search; } search_thread = (Thread_Control *)search_thread->Object.Node.next; a000c5e4: e59cc000 ldr ip, [ip] <== NOT EXECUTED restart_forward_search: search_priority = PRIORITY_MINIMUM - 1; _ISR_Disable( level ); search_thread = (Thread_Control *) _Chain_First( header ); while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) { a000c5e8: e15c0007 cmp ip, r7 <== NOT EXECUTED a000c5ec: 0a000002 beq a000c5fc <_Thread_queue_Enqueue_priority+0x10c><== NOT EXECUTED search_priority = search_thread->current_priority; a000c5f0: e59c4014 ldr r4, [ip, #20] <== NOT EXECUTED if ( priority <= search_priority ) a000c5f4: e1530004 cmp r3, r4 <== NOT EXECUTED a000c5f8: 8afffff3 bhi a000c5cc <_Thread_queue_Enqueue_priority+0xdc><== NOT EXECUTED } search_thread = (Thread_Control *)search_thread->Object.Node.next; } if ( the_thread_queue->sync_state != a000c5fc: e5905030 ldr r5, [r0, #48] ; 0x30 <== NOT EXECUTED a000c600: e3550001 cmp r5, #1 <== NOT EXECUTED a000c604: 1affffe0 bne a000c58c <_Thread_queue_Enqueue_priority+0x9c><== NOT EXECUTED THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; if ( priority == search_priority ) a000c608: e1530004 cmp r3, r4 <== NOT EXECUTED if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; a000c60c: e3a03000 mov r3, #0 <== NOT EXECUTED a000c610: e5803030 str r3, [r0, #48] ; 0x30 <== NOT EXECUTED if ( priority == search_priority ) a000c614: 0a000016 beq a000c674 <_Thread_queue_Enqueue_priority+0x184><== NOT EXECUTED goto equal_priority; search_node = (Chain_Node *) search_thread; previous_node = search_node->previous; a000c618: e59c3004 ldr r3, [ip, #4] <== NOT EXECUTED the_node = (Chain_Node *) the_thread; the_node->next = search_node; a000c61c: e581c000 str ip, [r1] <== NOT EXECUTED the_node->previous = previous_node; a000c620: e5813004 str r3, [r1, #4] <== NOT EXECUTED previous_node->next = the_node; a000c624: e5831000 str r1, [r3] <== NOT EXECUTED search_node->previous = the_node; a000c628: e58c1004 str r1, [ip, #4] <== NOT EXECUTED the_thread->Wait.queue = the_thread_queue; a000c62c: e5810044 str r0, [r1, #68] ; 0x44 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000c630: e129f008 msr CPSR_fc, r8 <== NOT EXECUTED _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; a000c634: eaffffd5 b a000c590 <_Thread_queue_Enqueue_priority+0xa0> <== NOT EXECUTED a000c638: e129f008 msr CPSR_fc, r8 <== NOT EXECUTED a000c63c: eaffffba b a000c52c <_Thread_queue_Enqueue_priority+0x3c> <== NOT EXECUTED a000c640: e129f008 msr CPSR_fc, r8 <== NOT EXECUTED a000c644: eaffffd9 b a000c5b0 <_Thread_queue_Enqueue_priority+0xc0> <== NOT EXECUTED THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; if ( priority == search_priority ) a000c648: e1530004 cmp r3, r4 <== NOT EXECUTED if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; a000c64c: e3a03000 mov r3, #0 <== NOT EXECUTED a000c650: e5803030 str r3, [r0, #48] ; 0x30 <== NOT EXECUTED if ( priority == search_priority ) a000c654: 0a000006 beq a000c674 <_Thread_queue_Enqueue_priority+0x184><== NOT EXECUTED goto equal_priority; search_node = (Chain_Node *) search_thread; next_node = search_node->next; a000c658: e59c3000 ldr r3, [ip] <== NOT EXECUTED the_node = (Chain_Node *) the_thread; the_node->next = next_node; the_node->previous = search_node; a000c65c: e8811008 stm r1, {r3, ip} <== NOT EXECUTED search_node->next = the_node; next_node->previous = the_node; a000c660: e5831004 str r1, [r3, #4] <== NOT EXECUTED next_node = search_node->next; the_node = (Chain_Node *) the_thread; the_node->next = next_node; the_node->previous = search_node; search_node->next = the_node; a000c664: e58c1000 str r1, [ip] <== NOT EXECUTED next_node->previous = the_node; the_thread->Wait.queue = the_thread_queue; a000c668: e5810044 str r0, [r1, #68] ; 0x44 <== NOT EXECUTED a000c66c: e129f008 msr CPSR_fc, r8 <== NOT EXECUTED _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; a000c670: eaffffc6 b a000c590 <_Thread_queue_Enqueue_priority+0xa0> <== NOT EXECUTED equal_priority: /* add at end of priority group */ search_node = _Chain_Tail( &search_thread->Wait.Block2n ); previous_node = search_node->previous; a000c674: e59c3040 ldr r3, [ip, #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 ); a000c678: e28c203c add r2, ip, #60 ; 0x3c <== NOT EXECUTED previous_node = search_node->previous; the_node = (Chain_Node *) the_thread; the_node->next = search_node; a000c67c: e881000c stm r1, {r2, r3} <== NOT EXECUTED the_node->previous = previous_node; previous_node->next = the_node; a000c680: e5831000 str r1, [r3] <== NOT EXECUTED search_node->previous = the_node; a000c684: e58c1040 str r1, [ip, #64] ; 0x40 <== NOT EXECUTED the_thread->Wait.queue = the_thread_queue; a000c688: e5810044 str r0, [r1, #68] ; 0x44 <== NOT EXECUTED a000c68c: e129f008 msr CPSR_fc, r8 <== NOT EXECUTED _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; a000c690: e3a05001 mov r5, #1 <== NOT EXECUTED a000c694: eaffffbd b a000c590 <_Thread_queue_Enqueue_priority+0xa0> <== NOT EXECUTED if ( _Thread_queue_Is_reverse_search( priority ) ) goto restart_reverse_search; restart_forward_search: search_priority = PRIORITY_MINIMUM - 1; a000c698: e3e04000 mvn r4, #0 <== NOT EXECUTED a000c69c: eaffffd6 b a000c5fc <_Thread_queue_Enqueue_priority+0x10c> <== NOT EXECUTED =============================================================================== a000c444 <_Thread_queue_Enqueue_with_handler>: Thread_queue_Control *, Thread_Control *, ISR_Level * ); the_thread = _Thread_Executing; a000c444: e59f3094 ldr r3, [pc, #148] ; a000c4e0 <_Thread_queue_Enqueue_with_handler+0x9c><== NOT EXECUTED void _Thread_queue_Enqueue_with_handler( Thread_queue_Control *the_thread_queue, Watchdog_Interval timeout, Thread_queue_Timeout_callout handler ) { a000c448: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED Thread_queue_Control *, Thread_Control *, ISR_Level * ); the_thread = _Thread_Executing; a000c44c: e5934004 ldr r4, [r3, #4] <== NOT EXECUTED void _Thread_queue_Enqueue_with_handler( Thread_queue_Control *the_thread_queue, Watchdog_Interval timeout, Thread_queue_Timeout_callout handler ) { a000c450: e1a06001 mov r6, r1 <== NOT EXECUTED a000c454: e24dd004 sub sp, sp, #4 <== NOT EXECUTED else #endif /* * Set the blocking state for this thread queue in the thread. */ _Thread_Set_state( the_thread, the_thread_queue->state ); a000c458: e5901038 ldr r1, [r0, #56] ; 0x38 <== NOT EXECUTED void _Thread_queue_Enqueue_with_handler( Thread_queue_Control *the_thread_queue, Watchdog_Interval timeout, Thread_queue_Timeout_callout handler ) { a000c45c: e1a05000 mov r5, r0 <== NOT EXECUTED else #endif /* * Set the blocking state for this thread queue in the thread. */ _Thread_Set_state( the_thread, the_thread_queue->state ); a000c460: e1a00004 mov r0, r4 <== NOT EXECUTED void _Thread_queue_Enqueue_with_handler( Thread_queue_Control *the_thread_queue, Watchdog_Interval timeout, Thread_queue_Timeout_callout handler ) { a000c464: e1a07002 mov r7, r2 <== NOT EXECUTED else #endif /* * Set the blocking state for this thread queue in the thread. */ _Thread_Set_state( the_thread, the_thread_queue->state ); a000c468: eb0000f1 bl a000c834 <_Thread_Set_state> <== NOT EXECUTED /* * If the thread wants to timeout, then schedule its timer. */ if ( timeout ) { a000c46c: e3560000 cmp r6, #0 <== NOT EXECUTED a000c470: 1a00000f bne a000c4b4 <_Thread_queue_Enqueue_with_handler+0x70><== NOT EXECUTED } /* * Now enqueue the thread per the discipline for this thread queue. */ if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) a000c474: e595c034 ldr ip, [r5, #52] ; 0x34 <== NOT EXECUTED enqueue_p = _Thread_queue_Enqueue_priority; a000c478: e59f2064 ldr r2, [pc, #100] ; a000c4e4 <_Thread_queue_Enqueue_with_handler+0xa0><== NOT EXECUTED a000c47c: e59f3064 ldr r3, [pc, #100] ; a000c4e8 <_Thread_queue_Enqueue_with_handler+0xa4><== NOT EXECUTED a000c480: e35c0001 cmp ip, #1 <== NOT EXECUTED a000c484: 01a03002 moveq r3, r2 <== NOT EXECUTED else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */ enqueue_p = _Thread_queue_Enqueue_fifo; sync_state = (*enqueue_p)( the_thread_queue, the_thread, &level ); a000c488: e1a00005 mov r0, r5 <== NOT EXECUTED a000c48c: e1a01004 mov r1, r4 <== NOT EXECUTED a000c490: e1a0200d mov r2, sp <== NOT EXECUTED a000c494: e12fff33 blx r3 <== NOT EXECUTED if ( sync_state != THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) a000c498: e3500001 cmp r0, #1 <== NOT EXECUTED a000c49c: 0a000002 beq a000c4ac <_Thread_queue_Enqueue_with_handler+0x68><== NOT EXECUTED _Thread_blocking_operation_Cancel( sync_state, the_thread, level ); a000c4a0: e1a01004 mov r1, r4 <== NOT EXECUTED a000c4a4: e59d2000 ldr r2, [sp] <== NOT EXECUTED a000c4a8: ebfffd92 bl a000baf8 <_Thread_blocking_operation_Cancel> <== NOT EXECUTED } a000c4ac: e28dd004 add sp, sp, #4 <== NOT EXECUTED a000c4b0: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED /* * If the thread wants to timeout, then schedule its timer. */ if ( timeout ) { _Watchdog_Initialize( a000c4b4: e5942008 ldr r2, [r4, #8] <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; a000c4b8: e3a03000 mov r3, #0 <== NOT EXECUTED a000c4bc: e5843050 str r3, [r4, #80] ; 0x50 <== NOT EXECUTED the_watchdog->routine = routine; a000c4c0: e5847064 str r7, [r4, #100] ; 0x64 <== NOT EXECUTED the_watchdog->id = id; a000c4c4: e5842068 str r2, [r4, #104] ; 0x68 <== NOT EXECUTED the_watchdog->user_data = user_data; a000c4c8: e584306c str r3, [r4, #108] ; 0x6c <== NOT EXECUTED Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; a000c4cc: e5846054 str r6, [r4, #84] ; 0x54 <== NOT EXECUTED _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); a000c4d0: e59f0014 ldr r0, [pc, #20] ; a000c4ec <_Thread_queue_Enqueue_with_handler+0xa8><== NOT EXECUTED a000c4d4: e2841048 add r1, r4, #72 ; 0x48 <== NOT EXECUTED a000c4d8: eb000236 bl a000cdb8 <_Watchdog_Insert> <== NOT EXECUTED a000c4dc: eaffffe4 b a000c474 <_Thread_queue_Enqueue_with_handler+0x30><== NOT EXECUTED =============================================================================== a000f830 <_Thread_queue_Extract>: { /* * Can not use indirect function pointer here since Extract priority * is a macro and the underlying methods do not have the same signature. */ if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) a000f830: e5903034 ldr r3, [r0, #52] ; 0x34 <== NOT EXECUTED a000f834: e3530001 cmp r3, #1 <== NOT EXECUTED a000f838: 0a000000 beq a000f840 <_Thread_queue_Extract+0x10> <== NOT EXECUTED _Thread_queue_Extract_priority( the_thread_queue, the_thread ); else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */ _Thread_queue_Extract_fifo( the_thread_queue, the_thread ); a000f83c: ea0005ef b a0011000 <_Thread_queue_Extract_fifo> <== NOT EXECUTED /* * Can not use indirect function pointer here since Extract priority * is a macro and the underlying methods do not have the same signature. */ if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) _Thread_queue_Extract_priority( the_thread_queue, the_thread ); a000f840: e3a02000 mov r2, #0 <== NOT EXECUTED a000f844: eaffffff b a000f848 <_Thread_queue_Extract_priority_helper><== NOT EXECUTED =============================================================================== a0011000 <_Thread_queue_Extract_fifo>: void _Thread_queue_Extract_fifo( Thread_queue_Control *the_thread_queue __attribute__((unused)), Thread_Control *the_thread ) { a0011000: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED a0011004: e24dd004 sub sp, sp, #4 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a0011008: e10f0000 mrs r0, CPSR <== NOT EXECUTED a001100c: e3803080 orr r3, r0, #128 ; 0x80 <== NOT EXECUTED a0011010: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED a0011014: e5912010 ldr r2, [r1, #16] <== NOT EXECUTED a0011018: e3a03bef mov r3, #244736 ; 0x3bc00 <== NOT EXECUTED a001101c: e2833e2e add r3, r3, #736 ; 0x2e0 <== NOT EXECUTED a0011020: e0023003 and r3, r2, r3 <== NOT EXECUTED ISR_Level level; _ISR_Disable( level ); if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { a0011024: e3530000 cmp r3, #0 <== NOT EXECUTED a0011028: 0a00000d beq a0011064 <_Thread_queue_Extract_fifo+0x64> <== NOT EXECUTED _Chain_Extract_unprotected( &the_thread->Object.Node ); the_thread->Wait.queue = NULL; if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { a001102c: e591c050 ldr ip, [r1, #80] ; 0x50 <== NOT EXECUTED { Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; a0011030: e891000c ldm r1, {r2, r3} <== NOT EXECUTED a0011034: e35c0002 cmp ip, #2 <== NOT EXECUTED next->previous = previous; a0011038: e5823004 str r3, [r2, #4] <== NOT EXECUTED previous->next = next; a001103c: e5832000 str r2, [r3] <== NOT EXECUTED return; } _Chain_Extract_unprotected( &the_thread->Object.Node ); the_thread->Wait.queue = NULL; a0011040: e3a03000 mov r3, #0 <== NOT EXECUTED a0011044: e5813044 str r3, [r1, #68] ; 0x44 <== NOT EXECUTED if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { a0011048: 0a000008 beq a0011070 <_Thread_queue_Extract_fifo+0x70> <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a001104c: e129f000 msr CPSR_fc, r0 <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); a0011050: e1a00001 mov r0, r1 <== NOT EXECUTED a0011054: e59f1034 ldr r1, [pc, #52] ; a0011090 <_Thread_queue_Extract_fifo+0x90><== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } a0011058: e28dd004 add sp, sp, #4 <== NOT EXECUTED a001105c: e49de004 pop {lr} ; (ldr lr, [sp], #4) <== NOT EXECUTED a0011060: eaffeafc b a000bc58 <_Thread_Clear_state> <== NOT EXECUTED a0011064: e129f000 msr CPSR_fc, r0 <== NOT EXECUTED a0011068: e28dd004 add sp, sp, #4 <== NOT EXECUTED a001106c: e8bd8000 pop {pc} <== NOT EXECUTED a0011070: e3a03003 mov r3, #3 <== NOT EXECUTED a0011074: e5813050 str r3, [r1, #80] ; 0x50 <== NOT EXECUTED a0011078: e129f000 msr CPSR_fc, r0 <== NOT EXECUTED if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { _ISR_Enable( level ); } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); (void) _Watchdog_Remove( &the_thread->Timer ); a001107c: e2810048 add r0, r1, #72 ; 0x48 <== NOT EXECUTED a0011080: e58d1000 str r1, [sp] <== NOT EXECUTED a0011084: ebffefba bl a000cf74 <_Watchdog_Remove> <== NOT EXECUTED a0011088: e59d1000 ldr r1, [sp] <== NOT EXECUTED a001108c: eaffffef b a0011050 <_Thread_queue_Extract_fifo+0x50> <== NOT EXECUTED =============================================================================== a000f848 <_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 ) { a000f848: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED a000f84c: e20220ff and r2, r2, #255 ; 0xff <== NOT EXECUTED a000f850: e24dd004 sub sp, sp, #4 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000f854: e10fc000 mrs ip, CPSR <== NOT EXECUTED a000f858: e38c3080 orr r3, ip, #128 ; 0x80 <== NOT EXECUTED a000f85c: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _States_Is_waiting_on_thread_queue ( States_Control the_states ) { return (the_states & STATES_WAITING_ON_THREAD_QUEUE); a000f860: e5910010 ldr r0, [r1, #16] <== NOT EXECUTED a000f864: e3a03bef mov r3, #244736 ; 0x3bc00 <== NOT EXECUTED a000f868: e2833e2e add r3, r3, #736 ; 0x2e0 <== NOT EXECUTED a000f86c: e0003003 and r3, r0, r3 <== NOT EXECUTED 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 ) ) { a000f870: e3530000 cmp r3, #0 <== NOT EXECUTED a000f874: 0a000024 beq a000f90c <_Thread_queue_Extract_priority_helper+0xc4><== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } a000f878: e5913038 ldr r3, [r1, #56] ; 0x38 <== 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 ); a000f87c: e281403c add r4, r1, #60 ; 0x3c <== NOT EXECUTED /* * The thread was actually waiting on a thread queue so let's remove it. */ next_node = the_node->next; a000f880: e5910000 ldr r0, [r1] <== NOT EXECUTED previous_node = the_node->previous; if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) { a000f884: e1530004 cmp r3, r4 <== NOT EXECUTED /* * The thread was actually waiting on a thread queue so let's remove it. */ next_node = the_node->next; previous_node = the_node->previous; a000f888: e5914004 ldr r4, [r1, #4] <== NOT EXECUTED head->next = new_second_node; tail->previous = last_node; last_node->next = tail; } } else { previous_node->next = next_node; a000f88c: 05840000 streq r0, [r4] <== NOT EXECUTED next_node->previous = previous_node; a000f890: 05804004 streq r4, [r0, #4] <== NOT EXECUTED */ next_node = the_node->next; previous_node = the_node->previous; if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) { a000f894: 0a00000e beq a000f8d4 <_Thread_queue_Extract_priority_helper+0x8c><== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } a000f898: e5915040 ldr r5, [r1, #64] ; 0x40 <== NOT EXECUTED if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) { new_first_node = _Chain_First( &the_thread->Wait.Block2n ); new_first_thread = (Thread_Control *) new_first_node; last_node = _Chain_Last( &the_thread->Wait.Block2n ); new_second_node = new_first_node->next; a000f89c: e5936000 ldr r6, [r3] <== NOT EXECUTED previous_node->next = new_first_node; next_node->previous = new_first_node; a000f8a0: 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; a000f8a4: e5843000 str r3, [r4] <== NOT EXECUTED next_node->previous = new_first_node; new_first_node->next = next_node; new_first_node->previous = previous_node; a000f8a8: e8830011 stm r3, {r0, r4} <== NOT EXECUTED if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) { a000f8ac: e5914038 ldr r4, [r1, #56] ; 0x38 <== NOT EXECUTED a000f8b0: e5910040 ldr r0, [r1, #64] ; 0x40 <== NOT EXECUTED a000f8b4: e1540000 cmp r4, r0 <== NOT EXECUTED a000f8b8: 0a000005 beq a000f8d4 <_Thread_queue_Extract_priority_helper+0x8c><== NOT EXECUTED /* > two threads on 2-n */ head = _Chain_Head( &new_first_thread->Wait.Block2n ); a000f8bc: e2834038 add r4, r3, #56 ; 0x38 <== NOT EXECUTED tail = _Chain_Tail( &new_first_thread->Wait.Block2n ); a000f8c0: e283003c add r0, r3, #60 ; 0x3c <== NOT EXECUTED new_second_node->previous = head; a000f8c4: e5864004 str r4, [r6, #4] <== NOT EXECUTED head->next = new_second_node; a000f8c8: e5836038 str r6, [r3, #56] ; 0x38 <== NOT EXECUTED tail->previous = last_node; a000f8cc: e5835040 str r5, [r3, #64] ; 0x40 <== NOT EXECUTED last_node->next = tail; a000f8d0: e5850000 str r0, [r5] <== NOT EXECUTED /* * If we are not supposed to touch timers or the thread's state, return. */ if ( requeuing ) { a000f8d4: e3520000 cmp r2, #0 <== NOT EXECUTED a000f8d8: 1a000008 bne a000f900 <_Thread_queue_Extract_priority_helper+0xb8><== NOT EXECUTED _ISR_Enable( level ); return; } if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { a000f8dc: e5913050 ldr r3, [r1, #80] ; 0x50 <== NOT EXECUTED a000f8e0: e3530002 cmp r3, #2 <== NOT EXECUTED a000f8e4: 0a00000a beq a000f914 <_Thread_queue_Extract_priority_helper+0xcc><== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000f8e8: e129f00c msr CPSR_fc, ip <== NOT EXECUTED a000f8ec: e1a00001 mov r0, r1 <== NOT EXECUTED a000f8f0: e59f103c ldr r1, [pc, #60] ; a000f934 <_Thread_queue_Extract_priority_helper+0xec><== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } a000f8f4: e28dd004 add sp, sp, #4 <== NOT EXECUTED a000f8f8: e8bd4070 pop {r4, r5, r6, lr} <== NOT EXECUTED a000f8fc: eafff0d5 b a000bc58 <_Thread_Clear_state> <== NOT EXECUTED a000f900: e129f00c msr CPSR_fc, ip <== NOT EXECUTED a000f904: e28dd004 add sp, sp, #4 <== NOT EXECUTED a000f908: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED a000f90c: e129f00c msr CPSR_fc, ip <== NOT EXECUTED a000f910: eafffffb b a000f904 <_Thread_queue_Extract_priority_helper+0xbc><== NOT EXECUTED a000f914: e3a03003 mov r3, #3 <== NOT EXECUTED a000f918: e5813050 str r3, [r1, #80] ; 0x50 <== NOT EXECUTED a000f91c: e129f00c msr CPSR_fc, ip <== NOT EXECUTED if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { _ISR_Enable( level ); } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); (void) _Watchdog_Remove( &the_thread->Timer ); a000f920: e2810048 add r0, r1, #72 ; 0x48 <== NOT EXECUTED a000f924: e58d1000 str r1, [sp] <== NOT EXECUTED a000f928: ebfff591 bl a000cf74 <_Watchdog_Remove> <== NOT EXECUTED a000f92c: e59d1000 ldr r1, [sp] <== NOT EXECUTED a000f930: eaffffed b a000f8ec <_Thread_queue_Extract_priority_helper+0xa4><== NOT EXECUTED =============================================================================== a000c6a4 <_Thread_queue_Extract_with_proxy>: */ RTEMS_INLINE_ROUTINE bool _States_Is_waiting_on_thread_queue ( States_Control the_states ) { return (the_states & STATES_WAITING_ON_THREAD_QUEUE); a000c6a4: e5903010 ldr r3, [r0, #16] <== NOT EXECUTED */ bool _Thread_queue_Extract_with_proxy( Thread_Control *the_thread ) { a000c6a8: e1a01000 mov r1, r0 <== NOT EXECUTED a000c6ac: e3a00bef mov r0, #244736 ; 0x3bc00 <== NOT EXECUTED a000c6b0: e2800e2e add r0, r0, #736 ; 0x2e0 <== NOT EXECUTED a000c6b4: e0030000 and r0, r3, r0 <== NOT EXECUTED States_Control state; state = the_thread->current_state; if ( _States_Is_waiting_on_thread_queue( state ) ) { a000c6b8: e3500000 cmp r0, #0 <== NOT EXECUTED */ bool _Thread_queue_Extract_with_proxy( Thread_Control *the_thread ) { a000c6bc: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED States_Control state; state = the_thread->current_state; if ( _States_Is_waiting_on_thread_queue( state ) ) { a000c6c0: 049df004 popeq {pc} ; (ldreq pc, [sp], #4) <== NOT EXECUTED if ( proxy_extract_callout ) (*proxy_extract_callout)( the_thread ); } #endif _Thread_queue_Extract( the_thread->Wait.queue, the_thread ); a000c6c4: e5910044 ldr r0, [r1, #68] ; 0x44 <== NOT EXECUTED a000c6c8: eb000c58 bl a000f830 <_Thread_queue_Extract> <== NOT EXECUTED return true; a000c6cc: e3a00001 mov r0, #1 <== NOT EXECUTED } return false; } a000c6d0: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED =============================================================================== a00211a4 <_Thread_queue_First>: Thread_queue_Control *the_thread_queue ) { Thread_Control * (*first_p)(Thread_queue_Control *); if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) a00211a4: e5901034 ldr r1, [r0, #52] ; 0x34 <== NOT EXECUTED first_p = _Thread_queue_First_priority; a00211a8: e59f2014 ldr r2, [pc, #20] ; a00211c4 <_Thread_queue_First+0x20><== NOT EXECUTED a00211ac: e59f3014 ldr r3, [pc, #20] ; a00211c8 <_Thread_queue_First+0x24><== NOT EXECUTED a00211b0: e3510001 cmp r1, #1 <== NOT EXECUTED */ Thread_Control *_Thread_queue_First( Thread_queue_Control *the_thread_queue ) { a00211b4: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED Thread_Control * (*first_p)(Thread_queue_Control *); if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) first_p = _Thread_queue_First_priority; a00211b8: 01a03002 moveq r3, r2 <== NOT EXECUTED else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */ first_p = _Thread_queue_First_fifo; return (*first_p)( the_thread_queue ); a00211bc: e12fff33 blx r3 <== NOT EXECUTED } a00211c0: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED =============================================================================== a00226d4 <_Thread_queue_First_fifo>: { if ( !_Chain_Is_empty( &the_thread_queue->Queues.Fifo ) ) return (Thread_Control *) _Chain_First( &the_thread_queue->Queues.Fifo ); return NULL; } a00226d4: e4903004 ldr r3, [r0], #4 <== NOT EXECUTED a00226d8: e1530000 cmp r3, r0 <== NOT EXECUTED a00226dc: 11a00003 movne r0, r3 <== NOT EXECUTED a00226e0: 03a00000 moveq r0, #0 <== NOT EXECUTED a00226e4: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a00211cc <_Thread_queue_First_priority>: */ Thread_Control *_Thread_queue_First_priority ( Thread_queue_Control *the_thread_queue ) { a00211cc: e3a03000 mov r3, #0 <== NOT EXECUTED a00211d0: e52d4004 push {r4} ; (str r4, [sp, #-4]!) <== NOT EXECUTED uint32_t index; for( index=0 ; a00211d4: e1a02003 mov r2, r3 <== NOT EXECUTED a00211d8: e3a0400c mov r4, #12 <== NOT EXECUTED a00211dc: e00c0294 mul ip, r4, r2 <== NOT EXECUTED return (Thread_Control *) _Chain_First( &the_thread_queue->Queues.Priority[ index ] ); } return NULL; } a00211e0: e7901003 ldr r1, [r0, r3] <== NOT EXECUTED a00211e4: e28cc004 add ip, ip, #4 <== NOT EXECUTED a00211e8: e080c00c add ip, r0, ip <== NOT EXECUTED uint32_t index; for( index=0 ; index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ; index++ ) { if ( !_Chain_Is_empty( &the_thread_queue->Queues.Priority[ index ] ) ) a00211ec: e151000c cmp r1, ip <== NOT EXECUTED { uint32_t index; for( index=0 ; index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ; index++ ) { a00211f0: e2822001 add r2, r2, #1 <== NOT EXECUTED if ( !_Chain_Is_empty( &the_thread_queue->Queues.Priority[ index ] ) ) a00211f4: 1a000005 bne a0021210 <_Thread_queue_First_priority+0x44> <== NOT EXECUTED Thread_queue_Control *the_thread_queue ) { uint32_t index; for( index=0 ; a00211f8: e3520004 cmp r2, #4 <== NOT EXECUTED index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ; index++ ) { a00211fc: e283300c add r3, r3, #12 <== NOT EXECUTED Thread_queue_Control *the_thread_queue ) { uint32_t index; for( index=0 ; a0021200: 1afffff5 bne a00211dc <_Thread_queue_First_priority+0x10> <== NOT EXECUTED if ( !_Chain_Is_empty( &the_thread_queue->Queues.Priority[ index ] ) ) return (Thread_Control *) _Chain_First( &the_thread_queue->Queues.Priority[ index ] ); } return NULL; a0021204: e3a00000 mov r0, #0 <== NOT EXECUTED } a0021208: e8bd0010 pop {r4} <== NOT EXECUTED a002120c: e12fff1e bx lr <== NOT EXECUTED for( index=0 ; index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ; index++ ) { if ( !_Chain_Is_empty( &the_thread_queue->Queues.Priority[ index ] ) ) return (Thread_Control *) _Chain_First( a0021210: e1a00001 mov r0, r1 <== NOT EXECUTED a0021214: eafffffb b a0021208 <_Thread_queue_First_priority+0x3c> <== NOT EXECUTED =============================================================================== a000c6d4 <_Thread_queue_Flush>: #else Thread_queue_Flush_callout remote_extract_callout __attribute__((unused)), #endif uint32_t status ) { a000c6d4: e92d4030 push {r4, r5, lr} a000c6d8: e1a04000 mov r4, r0 a000c6dc: e1a05002 mov r5, r2 Thread_Control *the_thread; while ( (the_thread = _Thread_queue_Dequeue( the_thread_queue )) ) { a000c6e0: ea000000 b a000c6e8 <_Thread_queue_Flush+0x14> #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) ( *remote_extract_callout )( the_thread ); else #endif the_thread->Wait.return_code = status; a000c6e4: e5805034 str r5, [r0, #52] ; 0x34 <== NOT EXECUTED uint32_t status ) { Thread_Control *the_thread; while ( (the_thread = _Thread_queue_Dequeue( the_thread_queue )) ) { a000c6e8: e1a00004 mov r0, r4 a000c6ec: ebfffef6 bl a000c2cc <_Thread_queue_Dequeue> a000c6f0: e3500000 cmp r0, #0 a000c6f4: 1afffffa bne a000c6e4 <_Thread_queue_Flush+0x10> ( *remote_extract_callout )( the_thread ); else #endif the_thread->Wait.return_code = status; } } a000c6f8: e8bd8030 pop {r4, r5, pc} =============================================================================== a000f938 <_Thread_queue_Process_timeout>: #include void _Thread_queue_Process_timeout( Thread_Control *the_thread ) { a000f938: e1a03000 mov r3, r0 <== NOT EXECUTED Thread_queue_Control *the_thread_queue = the_thread->Wait.queue; a000f93c: 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 && a000f940: e5902030 ldr r2, [r0, #48] ; 0x30 <== NOT EXECUTED a000f944: e3520000 cmp r2, #0 <== NOT EXECUTED a000f948: 0a000003 beq a000f95c <_Thread_queue_Process_timeout+0x24> <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool _Thread_Is_executing ( const Thread_Control *the_thread ) { return ( the_thread == _Thread_Executing ); a000f94c: e59f1034 ldr r1, [pc, #52] ; a000f988 <_Thread_queue_Process_timeout+0x50><== NOT EXECUTED a000f950: e5911004 ldr r1, [r1, #4] <== NOT EXECUTED a000f954: e1530001 cmp r3, r1 <== NOT EXECUTED a000f958: 0a000003 beq a000f96c <_Thread_queue_Process_timeout+0x34> <== NOT EXECUTED if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_SATISFIED ) { the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT; } } else { the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status; a000f95c: e590203c ldr r2, [r0, #60] ; 0x3c <== NOT EXECUTED _Thread_queue_Extract( the_thread->Wait.queue, the_thread ); a000f960: e1a01003 mov r1, r3 <== NOT EXECUTED if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_SATISFIED ) { the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT; } } else { the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status; a000f964: e5832034 str r2, [r3, #52] ; 0x34 <== NOT EXECUTED _Thread_queue_Extract( the_thread->Wait.queue, the_thread ); a000f968: eaffffb0 b a000f830 <_Thread_queue_Extract> <== NOT EXECUTED * a timeout is not allowed to occur. */ if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_SYNCHRONIZED && _Thread_Is_executing( the_thread ) ) { if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_SATISFIED ) { a000f96c: e3520003 cmp r2, #3 <== NOT EXECUTED a000f970: 012fff1e bxeq lr <== NOT EXECUTED the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status; a000f974: e590203c ldr r2, [r0, #60] ; 0x3c <== NOT EXECUTED a000f978: e5832034 str r2, [r3, #52] ; 0x34 <== NOT EXECUTED the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT; a000f97c: e3a03002 mov r3, #2 <== NOT EXECUTED a000f980: e5803030 str r3, [r0, #48] ; 0x30 <== NOT EXECUTED a000f984: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000c768 <_Thread_queue_Requeue>: void _Thread_queue_Requeue( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) { a000c768: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED /* * Just in case the thread really wasn't blocked on a thread queue * when we get here. */ if ( !the_thread_queue ) a000c76c: e2504000 subs r4, r0, #0 <== NOT EXECUTED void _Thread_queue_Requeue( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) { a000c770: e24dd004 sub sp, sp, #4 <== NOT EXECUTED a000c774: e1a05001 mov r5, r1 <== NOT EXECUTED /* * Just in case the thread really wasn't blocked on a thread queue * when we get here. */ if ( !the_thread_queue ) a000c778: 0a000002 beq a000c788 <_Thread_queue_Requeue+0x20> <== NOT EXECUTED /* * If queueing by FIFO, there is nothing to do. This only applies to * priority blocking discipline. */ if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) { a000c77c: e5943034 ldr r3, [r4, #52] ; 0x34 <== NOT EXECUTED a000c780: e3530001 cmp r3, #1 <== NOT EXECUTED a000c784: 0a000001 beq a000c790 <_Thread_queue_Requeue+0x28> <== NOT EXECUTED _Thread_queue_Extract_priority_helper( tq, the_thread, true ); (void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored ); } _ISR_Enable( level ); } } a000c788: e28dd004 add sp, sp, #4 <== NOT EXECUTED a000c78c: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000c790: e10f6000 mrs r6, CPSR <== NOT EXECUTED a000c794: e3862080 orr r2, r6, #128 ; 0x80 <== NOT EXECUTED a000c798: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED a000c79c: e591c010 ldr ip, [r1, #16] <== NOT EXECUTED a000c7a0: e3a02bef mov r2, #244736 ; 0x3bc00 <== NOT EXECUTED a000c7a4: e2822e2e add r2, r2, #736 ; 0x2e0 <== NOT EXECUTED a000c7a8: e00c2002 and r2, ip, r2 <== NOT EXECUTED Thread_queue_Control *tq = the_thread_queue; ISR_Level level; ISR_Level level_ignored; _ISR_Disable( level ); if ( _States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { a000c7ac: e3520000 cmp r2, #0 <== NOT EXECUTED a000c7b0: 1a000001 bne a000c7bc <_Thread_queue_Requeue+0x54> <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000c7b4: e129f006 msr CPSR_fc, r6 <== NOT EXECUTED a000c7b8: eafffff2 b a000c788 <_Thread_queue_Requeue+0x20> <== NOT EXECUTED _Thread_queue_Enter_critical_section( tq ); _Thread_queue_Extract_priority_helper( tq, the_thread, true ); a000c7bc: e1a02003 mov r2, r3 <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Thread_queue_Enter_critical_section ( Thread_queue_Control *the_thread_queue ) { the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; a000c7c0: e5843030 str r3, [r4, #48] ; 0x30 <== NOT EXECUTED a000c7c4: eb000c1f bl a000f848 <_Thread_queue_Extract_priority_helper><== NOT EXECUTED (void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored ); a000c7c8: e1a00004 mov r0, r4 <== NOT EXECUTED a000c7cc: e1a01005 mov r1, r5 <== NOT EXECUTED a000c7d0: e1a0200d mov r2, sp <== NOT EXECUTED a000c7d4: ebffff45 bl a000c4f0 <_Thread_queue_Enqueue_priority> <== NOT EXECUTED a000c7d8: eafffff5 b a000c7b4 <_Thread_queue_Requeue+0x4c> <== NOT EXECUTED =============================================================================== a000c7dc <_Thread_queue_Timeout>: void _Thread_queue_Timeout( Objects_Id id, void *ignored __attribute__((unused)) ) { a000c7dc: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED a000c7e0: e24dd004 sub sp, sp, #4 <== NOT EXECUTED Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); a000c7e4: e1a0100d mov r1, sp <== NOT EXECUTED a000c7e8: ebfffe01 bl a000bff4 <_Thread_Get> <== NOT EXECUTED switch ( location ) { a000c7ec: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000c7f0: e3530000 cmp r3, #0 <== NOT EXECUTED a000c7f4: 1a000004 bne a000c80c <_Thread_queue_Timeout+0x30> <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) case OBJECTS_REMOTE: /* impossible */ #endif break; case OBJECTS_LOCAL: _Thread_queue_Process_timeout( the_thread ); a000c7f8: eb000c4e bl a000f938 <_Thread_queue_Process_timeout> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; a000c7fc: e59f3010 ldr r3, [pc, #16] ; a000c814 <_Thread_queue_Timeout+0x38><== NOT EXECUTED a000c800: e5932000 ldr r2, [r3] <== NOT EXECUTED a000c804: e2422001 sub r2, r2, #1 <== NOT EXECUTED a000c808: e5832000 str r2, [r3] <== NOT EXECUTED _Thread_Unnest_dispatch(); break; } } a000c80c: e28dd004 add sp, sp, #4 <== NOT EXECUTED a000c810: e8bd8000 pop {pc} <== NOT EXECUTED =============================================================================== a001a384 <_Timer_server_Body>: * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) { a001a384: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED a001a388: e24dd024 sub sp, sp, #36 ; 0x24 <== NOT EXECUTED ) { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); head->next = tail; a001a38c: e28d1018 add r1, sp, #24 <== NOT EXECUTED a001a390: e28d700c add r7, sp, #12 <== NOT EXECUTED a001a394: e281b004 add fp, r1, #4 <== NOT EXECUTED head->previous = NULL; tail->previous = head; a001a398: e58d1020 str r1, [sp, #32] <== NOT EXECUTED a001a39c: e59fa1d4 ldr sl, [pc, #468] ; a001a578 <_Timer_server_Body+0x1f4><== NOT EXECUTED a001a3a0: e2801008 add r1, r0, #8 <== NOT EXECUTED a001a3a4: e59f91d0 ldr r9, [pc, #464] ; a001a57c <_Timer_server_Body+0x1f8><== NOT EXECUTED { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); head->next = tail; head->previous = NULL; a001a3a8: e3a03000 mov r3, #0 <== NOT EXECUTED ) { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); head->next = tail; a001a3ac: e2872004 add r2, r7, #4 <== NOT EXECUTED a001a3b0: e58d1004 str r1, [sp, #4] <== NOT EXECUTED a001a3b4: e2801040 add r1, r0, #64 ; 0x40 <== NOT EXECUTED a001a3b8: e1a04000 mov r4, r0 <== NOT EXECUTED a001a3bc: e58db018 str fp, [sp, #24] <== NOT EXECUTED head->previous = NULL; a001a3c0: e58d301c str r3, [sp, #28] <== NOT EXECUTED ) { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); head->next = tail; a001a3c4: e58d200c str r2, [sp, #12] <== NOT EXECUTED head->previous = NULL; a001a3c8: e58d3010 str r3, [sp, #16] <== NOT EXECUTED tail->previous = head; a001a3cc: e58d7014 str r7, [sp, #20] <== NOT EXECUTED a001a3d0: e2806030 add r6, r0, #48 ; 0x30 <== NOT EXECUTED a001a3d4: e2808068 add r8, r0, #104 ; 0x68 <== NOT EXECUTED a001a3d8: e58d1008 str r1, [sp, #8] <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_tail( const Chain_Control *the_chain ) { return &the_chain->Tail.Node; a001a3dc: e58d2000 str r2, [sp] <== NOT EXECUTED { /* * Afterwards all timer inserts are directed to this chain and the interval * and TOD chains will be no more modified by other parties. */ ts->insert_chain = insert_chain; a001a3e0: e28d2018 add r2, sp, #24 <== NOT EXECUTED a001a3e4: e5842078 str r2, [r4, #120] ; 0x78 <== NOT EXECUTED static void _Timer_server_Process_interval_watchdogs( Timer_server_Watchdogs *watchdogs, Chain_Control *fire_chain ) { Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot; a001a3e8: e59a3000 ldr r3, [sl] <== NOT EXECUTED /* * We assume adequate unsigned arithmetic here. */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; a001a3ec: e594103c ldr r1, [r4, #60] ; 0x3c <== NOT EXECUTED watchdogs->last_snapshot = snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); a001a3f0: e1a02007 mov r2, r7 <== NOT EXECUTED a001a3f4: e1a00006 mov r0, r6 <== NOT EXECUTED /* * We assume adequate unsigned arithmetic here. */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; watchdogs->last_snapshot = snapshot; a001a3f8: e584303c str r3, [r4, #60] ; 0x3c <== NOT EXECUTED _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); a001a3fc: e0611003 rsb r1, r1, r3 <== NOT EXECUTED a001a400: eb001155 bl a001e95c <_Watchdog_Adjust_to_chain> <== NOT EXECUTED static void _Timer_server_Process_tod_watchdogs( Timer_server_Watchdogs *watchdogs, Chain_Control *fire_chain ) { Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); a001a404: e5995000 ldr r5, [r9] <== NOT EXECUTED Watchdog_Interval last_snapshot = watchdogs->last_snapshot; a001a408: e5942074 ldr r2, [r4, #116] ; 0x74 <== NOT EXECUTED /* * Process the seconds chain. Start by checking that the Time * of Day (TOD) has not been set backwards. If it has then * we want to adjust the watchdogs->Chain to indicate this. */ if ( snapshot > last_snapshot ) { a001a40c: e1550002 cmp r5, r2 <== NOT EXECUTED a001a410: 8a000022 bhi a001a4a0 <_Timer_server_Body+0x11c> <== NOT EXECUTED * TOD has been set forward. */ delta = snapshot - last_snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); } else if ( snapshot < last_snapshot ) { a001a414: 3a000018 bcc a001a47c <_Timer_server_Body+0xf8> <== NOT EXECUTED */ delta = last_snapshot - snapshot; _Watchdog_Adjust( &watchdogs->Chain, WATCHDOG_BACKWARD, delta ); } watchdogs->last_snapshot = snapshot; a001a418: e5845074 str r5, [r4, #116] ; 0x74 <== NOT EXECUTED } static void _Timer_server_Process_insertions( Timer_server_Control *ts ) { while ( true ) { Timer_Control *timer = (Timer_Control *) _Chain_Get( ts->insert_chain ); a001a41c: e5940078 ldr r0, [r4, #120] ; 0x78 <== NOT EXECUTED a001a420: eb0002c2 bl a001af30 <_Chain_Get> <== NOT EXECUTED if ( timer == NULL ) { a001a424: e2501000 subs r1, r0, #0 <== NOT EXECUTED a001a428: 0a00000b beq a001a45c <_Timer_server_Body+0xd8> <== NOT EXECUTED static void _Timer_server_Insert_timer( Timer_server_Control *ts, Timer_Control *timer ) { if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) { a001a42c: e5913038 ldr r3, [r1, #56] ; 0x38 <== NOT EXECUTED a001a430: e3530001 cmp r3, #1 <== NOT EXECUTED a001a434: 0a000015 beq a001a490 <_Timer_server_Body+0x10c> <== NOT EXECUTED _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker ); } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) { a001a438: e3530003 cmp r3, #3 <== NOT EXECUTED a001a43c: 1afffff6 bne a001a41c <_Timer_server_Body+0x98> <== NOT EXECUTED _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker ); a001a440: e2811010 add r1, r1, #16 <== NOT EXECUTED a001a444: e1a00008 mov r0, r8 <== NOT EXECUTED a001a448: eb00116e bl a001ea08 <_Watchdog_Insert> <== NOT EXECUTED } static void _Timer_server_Process_insertions( Timer_server_Control *ts ) { while ( true ) { Timer_Control *timer = (Timer_Control *) _Chain_Get( ts->insert_chain ); a001a44c: e5940078 ldr r0, [r4, #120] ; 0x78 <== NOT EXECUTED a001a450: eb0002b6 bl a001af30 <_Chain_Get> <== NOT EXECUTED if ( timer == NULL ) { a001a454: e2501000 subs r1, r0, #0 <== NOT EXECUTED a001a458: 1afffff3 bne a001a42c <_Timer_server_Body+0xa8> <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a001a45c: e10f2000 mrs r2, CPSR <== NOT EXECUTED a001a460: e3823080 orr r3, r2, #128 ; 0x80 <== NOT EXECUTED a001a464: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED * body loop. */ _Timer_server_Process_insertions( ts ); _ISR_Disable( level ); if ( _Chain_Is_empty( insert_chain ) ) { a001a468: e59d3018 ldr r3, [sp, #24] <== NOT EXECUTED a001a46c: e153000b cmp r3, fp <== NOT EXECUTED a001a470: 0a00000f beq a001a4b4 <_Timer_server_Body+0x130> <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a001a474: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED a001a478: eaffffda b a001a3e8 <_Timer_server_Body+0x64> <== NOT EXECUTED /* * The current TOD is before the last TOD which indicates that * TOD has been set backwards. */ delta = last_snapshot - snapshot; _Watchdog_Adjust( &watchdogs->Chain, WATCHDOG_BACKWARD, delta ); a001a47c: e1a00008 mov r0, r8 <== NOT EXECUTED a001a480: e3a01001 mov r1, #1 <== NOT EXECUTED a001a484: e0652002 rsb r2, r5, r2 <== NOT EXECUTED a001a488: eb001102 bl a001e898 <_Watchdog_Adjust> <== NOT EXECUTED a001a48c: eaffffe1 b a001a418 <_Timer_server_Body+0x94> <== NOT EXECUTED Timer_server_Control *ts, Timer_Control *timer ) { if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) { _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker ); a001a490: e1a00006 mov r0, r6 <== NOT EXECUTED a001a494: e2811010 add r1, r1, #16 <== NOT EXECUTED a001a498: eb00115a bl a001ea08 <_Watchdog_Insert> <== NOT EXECUTED a001a49c: eaffffde b a001a41c <_Timer_server_Body+0x98> <== NOT EXECUTED /* * This path is for normal forward movement and cases where the * TOD has been set forward. */ delta = snapshot - last_snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); a001a4a0: e0621005 rsb r1, r2, r5 <== NOT EXECUTED a001a4a4: e1a00008 mov r0, r8 <== NOT EXECUTED a001a4a8: e1a02007 mov r2, r7 <== NOT EXECUTED a001a4ac: eb00112a bl a001e95c <_Watchdog_Adjust_to_chain> <== NOT EXECUTED a001a4b0: eaffffd8 b a001a418 <_Timer_server_Body+0x94> <== NOT EXECUTED */ _Timer_server_Process_insertions( ts ); _ISR_Disable( level ); if ( _Chain_Is_empty( insert_chain ) ) { ts->insert_chain = NULL; a001a4b4: e5841078 str r1, [r4, #120] ; 0x78 <== NOT EXECUTED a001a4b8: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED _Chain_Initialize_empty( &fire_chain ); while ( true ) { _Timer_server_Get_watchdogs_that_fire_now( ts, &insert_chain, &fire_chain ); if ( !_Chain_Is_empty( &fire_chain ) ) { a001a4bc: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED a001a4c0: e59d1000 ldr r1, [sp] <== NOT EXECUTED a001a4c4: e1530001 cmp r3, r1 <== NOT EXECUTED a001a4c8: 0a000015 beq a001a524 <_Timer_server_Body+0x1a0> <== NOT EXECUTED a001a4cc: e1a05004 mov r5, r4 <== NOT EXECUTED a001a4d0: e59d4000 ldr r4, [sp] <== NOT EXECUTED a001a4d4: ea000009 b a001a500 <_Timer_server_Body+0x17c> <== 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; a001a4d8: e5923000 ldr r3, [r2] <== NOT EXECUTED head->next = new_first; new_first->previous = head; a001a4dc: e5837004 str r7, [r3, #4] <== 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; a001a4e0: e58d300c str r3, [sp, #12] <== NOT EXECUTED * service routine may remove a watchdog from the chain. */ _ISR_Disable( level ); watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain ); if ( watchdog != NULL ) { watchdog->state = WATCHDOG_INACTIVE; a001a4e4: e3a03000 mov r3, #0 <== NOT EXECUTED a001a4e8: e5823008 str r3, [r2, #8] <== NOT EXECUTED a001a4ec: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED /* * The timer server may block here and wait for resources or time. * The system watchdogs are inactive and will remain inactive since * the active flag of the timer server is true. */ (*watchdog->routine)( watchdog->id, watchdog->user_data ); a001a4f0: e592301c ldr r3, [r2, #28] <== NOT EXECUTED a001a4f4: e5920020 ldr r0, [r2, #32] <== NOT EXECUTED a001a4f8: e5921024 ldr r1, [r2, #36] ; 0x24 <== NOT EXECUTED a001a4fc: e12fff33 blx r3 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a001a500: e10f1000 mrs r1, CPSR <== NOT EXECUTED a001a504: e3813080 orr r3, r1, #128 ; 0x80 <== NOT EXECUTED a001a508: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED initialized = false; } #endif return status; } a001a50c: e59d200c ldr r2, [sp, #12] <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected( Chain_Control *the_chain ) { if ( !_Chain_Is_empty(the_chain)) a001a510: e1520004 cmp r2, r4 <== NOT EXECUTED a001a514: 1affffef bne a001a4d8 <_Timer_server_Body+0x154> <== NOT EXECUTED a001a518: e1a04005 mov r4, r5 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a001a51c: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED a001a520: eaffffae b a001a3e0 <_Timer_server_Body+0x5c> <== NOT EXECUTED a001a524: e59f2054 ldr r2, [pc, #84] ; a001a580 <_Timer_server_Body+0x1fc><== NOT EXECUTED * the active flag of the timer server is true. */ (*watchdog->routine)( watchdog->id, watchdog->user_data ); } } else { ts->active = false; a001a528: e3a01000 mov r1, #0 <== NOT EXECUTED a001a52c: e5c4107c strb r1, [r4, #124] ; 0x7c <== NOT EXECUTED a001a530: e5923000 ldr r3, [r2] <== NOT EXECUTED a001a534: e2833001 add r3, r3, #1 <== NOT EXECUTED a001a538: e5823000 str r3, [r2] <== NOT EXECUTED /* * Block until there is something to do. */ _Thread_Disable_dispatch(); _Thread_Set_state( ts->thread, STATES_DELAYING ); a001a53c: e3a01008 mov r1, #8 <== NOT EXECUTED a001a540: e5940000 ldr r0, [r4] <== NOT EXECUTED a001a544: eb000f43 bl a001e258 <_Thread_Set_state> <== NOT EXECUTED _Timer_server_Reset_interval_system_watchdog( ts ); a001a548: e1a00004 mov r0, r4 <== NOT EXECUTED a001a54c: ebffff60 bl a001a2d4 <_Timer_server_Reset_interval_system_watchdog><== NOT EXECUTED _Timer_server_Reset_tod_system_watchdog( ts ); a001a550: e1a00004 mov r0, r4 <== NOT EXECUTED a001a554: ebffff74 bl a001a32c <_Timer_server_Reset_tod_system_watchdog><== NOT EXECUTED _Thread_Enable_dispatch(); a001a558: eb000d08 bl a001d980 <_Thread_Enable_dispatch> <== NOT EXECUTED ts->active = true; a001a55c: e3a03001 mov r3, #1 <== NOT EXECUTED a001a560: e5c4307c strb r3, [r4, #124] ; 0x7c <== NOT EXECUTED static void _Timer_server_Stop_interval_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog ); a001a564: e59d0004 ldr r0, [sp, #4] <== NOT EXECUTED a001a568: eb001195 bl a001ebc4 <_Watchdog_Remove> <== NOT EXECUTED static void _Timer_server_Stop_tod_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog ); a001a56c: e59d0008 ldr r0, [sp, #8] <== NOT EXECUTED a001a570: eb001193 bl a001ebc4 <_Watchdog_Remove> <== NOT EXECUTED a001a574: eaffff99 b a001a3e0 <_Timer_server_Body+0x5c> <== NOT EXECUTED =============================================================================== a001a2d4 <_Timer_server_Reset_interval_system_watchdog>: } static void _Timer_server_Reset_interval_system_watchdog( Timer_server_Control *ts ) { a001a2d4: e92d4030 push {r4, r5, lr} <== NOT EXECUTED static void _Timer_server_Stop_interval_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog ); a001a2d8: e2805008 add r5, r0, #8 <== NOT EXECUTED } static void _Timer_server_Reset_interval_system_watchdog( Timer_server_Control *ts ) { a001a2dc: e1a04000 mov r4, r0 <== NOT EXECUTED static void _Timer_server_Stop_interval_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog ); a001a2e0: e1a00005 mov r0, r5 <== NOT EXECUTED a001a2e4: eb001236 bl a001ebc4 <_Watchdog_Remove> <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a001a2e8: e10f1000 mrs r1, CPSR <== NOT EXECUTED a001a2ec: e3813080 orr r3, r1, #128 ; 0x80 <== NOT EXECUTED a001a2f0: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED initialized = false; } #endif return status; } a001a2f4: e5943030 ldr r3, [r4, #48] ; 0x30 <== 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 ); a001a2f8: e2842034 add r2, r4, #52 ; 0x34 <== NOT EXECUTED ISR_Level level; _Timer_server_Stop_interval_system_watchdog( ts ); _ISR_Disable( level ); if ( !_Chain_Is_empty( &ts->Interval_watchdogs.Chain ) ) { a001a2fc: e1530002 cmp r3, r2 <== NOT EXECUTED a001a300: 0a000006 beq a001a320 <_Timer_server_Reset_interval_system_watchdog+0x4c><== NOT EXECUTED Watchdog_Interval delta_interval = a001a304: e5933010 ldr r3, [r3, #16] <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a001a308: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); a001a30c: e59f0014 ldr r0, [pc, #20] ; a001a328 <_Timer_server_Reset_interval_system_watchdog+0x54><== NOT EXECUTED a001a310: e1a01005 mov r1, r5 <== NOT EXECUTED Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; a001a314: e5843014 str r3, [r4, #20] <== NOT EXECUTED delta_interval ); } else { _ISR_Enable( level ); } } a001a318: e8bd4030 pop {r4, r5, lr} <== NOT EXECUTED _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); a001a31c: ea0011b9 b a001ea08 <_Watchdog_Insert> <== NOT EXECUTED a001a320: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED a001a324: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED =============================================================================== a001a32c <_Timer_server_Reset_tod_system_watchdog>: } static void _Timer_server_Reset_tod_system_watchdog( Timer_server_Control *ts ) { a001a32c: e92d4030 push {r4, r5, lr} <== NOT EXECUTED static void _Timer_server_Stop_tod_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog ); a001a330: e2805040 add r5, r0, #64 ; 0x40 <== NOT EXECUTED } static void _Timer_server_Reset_tod_system_watchdog( Timer_server_Control *ts ) { a001a334: e1a04000 mov r4, r0 <== NOT EXECUTED static void _Timer_server_Stop_tod_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog ); a001a338: e1a00005 mov r0, r5 <== NOT EXECUTED a001a33c: eb001220 bl a001ebc4 <_Watchdog_Remove> <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a001a340: e10f1000 mrs r1, CPSR <== NOT EXECUTED a001a344: e3813080 orr r3, r1, #128 ; 0x80 <== NOT EXECUTED a001a348: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED initialized = false; } #endif return status; } a001a34c: e5943068 ldr r3, [r4, #104] ; 0x68 <== NOT EXECUTED a001a350: e284206c add r2, r4, #108 ; 0x6c <== NOT EXECUTED ISR_Level level; _Timer_server_Stop_tod_system_watchdog( ts ); _ISR_Disable( level ); if ( !_Chain_Is_empty( &ts->TOD_watchdogs.Chain ) ) { a001a354: e1530002 cmp r3, r2 <== NOT EXECUTED a001a358: 0a000006 beq a001a378 <_Timer_server_Reset_tod_system_watchdog+0x4c><== NOT EXECUTED Watchdog_Interval delta_interval = a001a35c: e5933010 ldr r3, [r3, #16] <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a001a360: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog ); a001a364: e59f0014 ldr r0, [pc, #20] ; a001a380 <_Timer_server_Reset_tod_system_watchdog+0x54><== NOT EXECUTED a001a368: e1a01005 mov r1, r5 <== NOT EXECUTED Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; a001a36c: e584304c str r3, [r4, #76] ; 0x4c <== NOT EXECUTED delta_interval ); } else { _ISR_Enable( level ); } } a001a370: e8bd4030 pop {r4, r5, lr} <== NOT EXECUTED _Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog ); a001a374: ea0011a3 b a001ea08 <_Watchdog_Insert> <== NOT EXECUTED a001a378: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED a001a37c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED =============================================================================== a001a584 <_Timer_server_Schedule_operation_method>: static void _Timer_server_Schedule_operation_method( Timer_server_Control *ts, Timer_Control *timer ) { if ( ts->insert_chain == NULL ) { a001a584: e5902078 ldr r2, [r0, #120] ; 0x78 <== NOT EXECUTED static void _Timer_server_Schedule_operation_method( Timer_server_Control *ts, Timer_Control *timer ) { a001a588: e92d4030 push {r4, r5, lr} <== NOT EXECUTED if ( ts->insert_chain == NULL ) { a001a58c: e3520000 cmp r2, #0 <== NOT EXECUTED static void _Timer_server_Schedule_operation_method( Timer_server_Control *ts, Timer_Control *timer ) { a001a590: e1a04000 mov r4, r0 <== NOT EXECUTED a001a594: e1a03001 mov r3, r1 <== NOT EXECUTED if ( ts->insert_chain == NULL ) { a001a598: 0a000002 beq a001a5a8 <_Timer_server_Schedule_operation_method+0x24><== 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 ); a001a59c: e5900078 ldr r0, [r0, #120] ; 0x78 <== NOT EXECUTED } } a001a5a0: e8bd4030 pop {r4, r5, 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 ); a001a5a4: ea00024e b a001aee4 <_Chain_Append> <== NOT EXECUTED a001a5a8: e59f1104 ldr r1, [pc, #260] ; a001a6b4 <_Timer_server_Schedule_operation_method+0x130><== NOT EXECUTED a001a5ac: e5910000 ldr r0, [r1] <== NOT EXECUTED a001a5b0: e2800001 add r0, r0, #1 <== NOT EXECUTED a001a5b4: e5810000 str r0, [r1] <== NOT EXECUTED * being inserted. This could result in an integer overflow. */ _Thread_Disable_dispatch(); if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) { a001a5b8: e5931038 ldr r1, [r3, #56] ; 0x38 <== NOT EXECUTED a001a5bc: e3510001 cmp r1, #1 <== NOT EXECUTED a001a5c0: 0a000021 beq a001a64c <_Timer_server_Schedule_operation_method+0xc8><== NOT EXECUTED _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker ); if ( !ts->active ) { _Timer_server_Reset_interval_system_watchdog( ts ); } } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) { a001a5c4: e3510003 cmp r1, #3 <== NOT EXECUTED a001a5c8: 0a000001 beq a001a5d4 <_Timer_server_Schedule_operation_method+0x50><== NOT EXECUTED * critical section. We have to use the protected chain methods because * we may be interrupted by a higher priority interrupt. */ _Chain_Append( ts->insert_chain, &timer->Object.Node ); } } a001a5cc: e8bd4030 pop {r4, r5, lr} <== NOT EXECUTED if ( !ts->active ) { _Timer_server_Reset_tod_system_watchdog( ts ); } } _Thread_Enable_dispatch(); a001a5d0: ea000cea b a001d980 <_Thread_Enable_dispatch> <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a001a5d4: e10fe000 mrs lr, CPSR <== NOT EXECUTED a001a5d8: e38e1080 orr r1, lr, #128 ; 0x80 <== NOT EXECUTED a001a5dc: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED initialized = false; } #endif return status; } a001a5e0: e5941068 ldr r1, [r4, #104] ; 0x68 <== 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 ); a001a5e4: e284006c add r0, r4, #108 ; 0x6c <== NOT EXECUTED * We have to advance the last known seconds value of the server and update * the watchdog chain accordingly. */ _ISR_Disable( level ); snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); last_snapshot = ts->TOD_watchdogs.last_snapshot; a001a5e8: e594c074 ldr ip, [r4, #116] ; 0x74 <== NOT EXECUTED if ( !_Chain_Is_empty( &ts->TOD_watchdogs.Chain ) ) { a001a5ec: e1510000 cmp r1, r0 <== NOT EXECUTED /* * We have to advance the last known seconds value of the server and update * the watchdog chain accordingly. */ _ISR_Disable( level ); snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); a001a5f0: e59f00c0 ldr r0, [pc, #192] ; a001a6b8 <_Timer_server_Schedule_operation_method+0x134><== NOT EXECUTED a001a5f4: e5900000 ldr r0, [r0] <== NOT EXECUTED last_snapshot = ts->TOD_watchdogs.last_snapshot; if ( !_Chain_Is_empty( &ts->TOD_watchdogs.Chain ) ) { a001a5f8: 0a000008 beq a001a620 <_Timer_server_Schedule_operation_method+0x9c><== NOT EXECUTED first_watchdog = _Watchdog_First( &ts->TOD_watchdogs.Chain ); delta_interval = first_watchdog->delta_interval; a001a5fc: e5915010 ldr r5, [r1, #16] <== NOT EXECUTED if ( snapshot > last_snapshot ) { a001a600: e150000c cmp r0, ip <== NOT EXECUTED } } else { /* * Someone put us in the past. */ delta = last_snapshot - snapshot; a001a604: 9085200c addls r2, r5, ip <== NOT EXECUTED delta_interval += delta; a001a608: 90602002 rsbls r2, r0, r2 <== 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 ) { a001a60c: 9a000002 bls a001a61c <_Timer_server_Schedule_operation_method+0x98><== NOT EXECUTED /* * We advanced in time. */ delta = snapshot - last_snapshot; a001a610: e06cc000 rsb ip, ip, r0 <== NOT EXECUTED if (delta_interval > delta) { a001a614: e155000c cmp r5, ip <== NOT EXECUTED delta_interval -= delta; a001a618: 806c2005 rsbhi r2, ip, r5 <== NOT EXECUTED * Someone put us in the past. */ delta = last_snapshot - snapshot; delta_interval += delta; } first_watchdog->delta_interval = delta_interval; a001a61c: e5812010 str r2, [r1, #16] <== NOT EXECUTED } ts->TOD_watchdogs.last_snapshot = snapshot; a001a620: e5840074 str r0, [r4, #116] ; 0x74 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a001a624: e129f00e msr CPSR_fc, lr <== NOT EXECUTED _ISR_Enable( level ); _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker ); a001a628: e2831010 add r1, r3, #16 <== NOT EXECUTED a001a62c: e2840068 add r0, r4, #104 ; 0x68 <== NOT EXECUTED a001a630: eb0010f4 bl a001ea08 <_Watchdog_Insert> <== NOT EXECUTED if ( !ts->active ) { a001a634: e5d4307c ldrb r3, [r4, #124] ; 0x7c <== NOT EXECUTED a001a638: e3530000 cmp r3, #0 <== NOT EXECUTED a001a63c: 1affffe2 bne a001a5cc <_Timer_server_Schedule_operation_method+0x48><== NOT EXECUTED _Timer_server_Reset_tod_system_watchdog( ts ); a001a640: e1a00004 mov r0, r4 <== NOT EXECUTED a001a644: ebffff38 bl a001a32c <_Timer_server_Reset_tod_system_watchdog><== NOT EXECUTED a001a648: eaffffdf b a001a5cc <_Timer_server_Schedule_operation_method+0x48><== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a001a64c: e10f5000 mrs r5, CPSR <== NOT EXECUTED a001a650: e3851080 orr r1, r5, #128 ; 0x80 <== NOT EXECUTED a001a654: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED initialized = false; } #endif return status; } a001a658: e5941030 ldr r1, [r4, #48] ; 0x30 <== NOT EXECUTED a001a65c: e2840034 add r0, r4, #52 ; 0x34 <== NOT EXECUTED * the watchdog chain accordingly. */ _ISR_Disable( level ); snapshot = _Watchdog_Ticks_since_boot; last_snapshot = ts->Interval_watchdogs.last_snapshot; if ( !_Chain_Is_empty( &ts->Interval_watchdogs.Chain ) ) { a001a660: e1510000 cmp r1, r0 <== NOT EXECUTED /* * We have to advance the last known ticks value of the server and update * the watchdog chain accordingly. */ _ISR_Disable( level ); snapshot = _Watchdog_Ticks_since_boot; a001a664: e59f0050 ldr r0, [pc, #80] ; a001a6bc <_Timer_server_Schedule_operation_method+0x138><== NOT EXECUTED a001a668: e5900000 ldr r0, [r0] <== NOT EXECUTED last_snapshot = ts->Interval_watchdogs.last_snapshot; a001a66c: e594c03c ldr ip, [r4, #60] ; 0x3c <== NOT EXECUTED if ( !_Chain_Is_empty( &ts->Interval_watchdogs.Chain ) ) { a001a670: 0a000004 beq a001a688 <_Timer_server_Schedule_operation_method+0x104><== NOT EXECUTED /* * We assume adequate unsigned arithmetic here. */ delta = snapshot - last_snapshot; delta_interval = first_watchdog->delta_interval; a001a674: e591e010 ldr lr, [r1, #16] <== NOT EXECUTED first_watchdog = _Watchdog_First( &ts->Interval_watchdogs.Chain ); /* * We assume adequate unsigned arithmetic here. */ delta = snapshot - last_snapshot; a001a678: e06cc000 rsb ip, ip, r0 <== NOT EXECUTED delta_interval = first_watchdog->delta_interval; if (delta_interval > delta) { a001a67c: e15c000e cmp ip, lr <== NOT EXECUTED delta_interval -= delta; a001a680: 306c200e rsbcc r2, ip, lr <== NOT EXECUTED } else { delta_interval = 0; } first_watchdog->delta_interval = delta_interval; a001a684: e5812010 str r2, [r1, #16] <== NOT EXECUTED } ts->Interval_watchdogs.last_snapshot = snapshot; a001a688: e584003c str r0, [r4, #60] ; 0x3c <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a001a68c: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED _ISR_Enable( level ); _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker ); a001a690: e2831010 add r1, r3, #16 <== NOT EXECUTED a001a694: e2840030 add r0, r4, #48 ; 0x30 <== NOT EXECUTED a001a698: eb0010da bl a001ea08 <_Watchdog_Insert> <== NOT EXECUTED if ( !ts->active ) { a001a69c: e5d4307c ldrb r3, [r4, #124] ; 0x7c <== NOT EXECUTED a001a6a0: e3530000 cmp r3, #0 <== NOT EXECUTED a001a6a4: 1affffc8 bne a001a5cc <_Timer_server_Schedule_operation_method+0x48><== NOT EXECUTED _Timer_server_Reset_interval_system_watchdog( ts ); a001a6a8: e1a00004 mov r0, r4 <== NOT EXECUTED a001a6ac: ebffff08 bl a001a2d4 <_Timer_server_Reset_interval_system_watchdog><== NOT EXECUTED a001a6b0: eaffffc5 b a001a5cc <_Timer_server_Schedule_operation_method+0x48><== NOT EXECUTED =============================================================================== a000ca50 <_Timespec_Add_to>: uint32_t _Timespec_Add_to( struct timespec *time, const struct timespec *add ) { a000ca50: e1a03000 mov r3, r0 uint32_t seconds = add->tv_sec; /* Add the basics */ time->tv_sec += add->tv_sec; time->tv_nsec += add->tv_nsec; a000ca54: e5902004 ldr r2, [r0, #4] uint32_t _Timespec_Add_to( struct timespec *time, const struct timespec *add ) { a000ca58: e52d4004 push {r4} ; (str r4, [sp, #-4]!) uint32_t seconds = add->tv_sec; /* Add the basics */ time->tv_sec += add->tv_sec; time->tv_nsec += add->tv_nsec; a000ca5c: e8910011 ldm r1, {r0, r4} /* Now adjust it so nanoseconds is in range */ while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) { a000ca60: e59fc040 ldr ip, [pc, #64] ; a000caa8 <_Timespec_Add_to+0x58> ) { uint32_t seconds = add->tv_sec; /* Add the basics */ time->tv_sec += add->tv_sec; a000ca64: e5931000 ldr r1, [r3] time->tv_nsec += add->tv_nsec; a000ca68: e0844002 add r4, r4, r2 /* Now adjust it so nanoseconds is in range */ while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) { a000ca6c: e154000c cmp r4, ip ) { uint32_t seconds = add->tv_sec; /* Add the basics */ time->tv_sec += add->tv_sec; a000ca70: e0811000 add r1, r1, r0 time->tv_nsec += add->tv_nsec; /* Now adjust it so nanoseconds is in range */ while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) { a000ca74: e1a02004 mov r2, r4 ) { uint32_t seconds = add->tv_sec; /* Add the basics */ time->tv_sec += add->tv_sec; a000ca78: e8830012 stm r3, {r1, r4} time->tv_nsec += add->tv_nsec; /* Now adjust it so nanoseconds is in range */ while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) { a000ca7c: 9a000007 bls a000caa0 <_Timespec_Add_to+0x50> time->tv_nsec -= TOD_NANOSECONDS_PER_SECOND; a000ca80: e2822331 add r2, r2, #-1006632960 ; 0xc4000000 <== NOT EXECUTED a000ca84: e2822865 add r2, r2, #6619136 ; 0x650000 <== NOT EXECUTED a000ca88: e2822c36 add r2, r2, #13824 ; 0x3600 <== NOT EXECUTED /* Add the basics */ time->tv_sec += add->tv_sec; time->tv_nsec += add->tv_nsec; /* Now adjust it so nanoseconds is in range */ while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) { a000ca8c: e152000c cmp r2, ip <== NOT EXECUTED * * This routines adds two timespecs. The second argument is added * to the first. */ uint32_t _Timespec_Add_to( a000ca90: e2811001 add r1, r1, #1 <== NOT EXECUTED /* Now adjust it so nanoseconds is in range */ while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) { time->tv_nsec -= TOD_NANOSECONDS_PER_SECOND; time->tv_sec++; seconds++; a000ca94: e2800001 add r0, r0, #1 <== NOT EXECUTED /* Add the basics */ time->tv_sec += add->tv_sec; time->tv_nsec += add->tv_nsec; /* Now adjust it so nanoseconds is in range */ while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) { a000ca98: 8afffff8 bhi a000ca80 <_Timespec_Add_to+0x30> <== NOT EXECUTED a000ca9c: e8830006 stm r3, {r1, r2} <== NOT EXECUTED time->tv_sec++; seconds++; } return seconds; } a000caa0: e8bd0010 pop {r4} a000caa4: e12fff1e bx lr =============================================================================== a000e68c <_Timespec_Divide>: const struct timespec *lhs, const struct timespec *rhs, uint32_t *ival_percentage, uint32_t *fval_percentage ) { a000e68c: e92d4bf0 push {r4, r5, r6, r7, r8, r9, fp, lr} <== NOT EXECUTED * in a 64-bit integer. */ left = lhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; left += lhs->tv_nsec; right = rhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; right += rhs->tv_nsec; a000e690: e5916004 ldr r6, [r1, #4] <== NOT EXECUTED * For math simplicity just convert the timespec to nanoseconds * in a 64-bit integer. */ left = lhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; left += lhs->tv_nsec; right = rhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; a000e694: e591c000 ldr ip, [r1] <== NOT EXECUTED a000e698: e59f1084 ldr r1, [pc, #132] ; a000e724 <_Timespec_Divide+0x98><== NOT EXECUTED right += rhs->tv_nsec; a000e69c: e1a07fc6 asr r7, r6, #31 <== NOT EXECUTED const struct timespec *lhs, const struct timespec *rhs, uint32_t *ival_percentage, uint32_t *fval_percentage ) { a000e6a0: e1a05002 mov r5, r2 <== NOT EXECUTED * in a 64-bit integer. */ left = lhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; left += lhs->tv_nsec; right = rhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; right += rhs->tv_nsec; a000e6a4: e0e76c91 smlal r6, r7, r1, ip <== NOT EXECUTED const struct timespec *lhs, const struct timespec *rhs, uint32_t *ival_percentage, uint32_t *fval_percentage ) { a000e6a8: e1a04003 mov r4, r3 <== NOT EXECUTED left = lhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; left += lhs->tv_nsec; right = rhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; right += rhs->tv_nsec; if ( right == 0 ) { a000e6ac: e1962007 orrs r2, r6, r7 <== NOT EXECUTED /* * For math simplicity just convert the timespec to nanoseconds * in a 64-bit integer. */ left = lhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; a000e6b0: e8900808 ldm r0, {r3, fp} <== NOT EXECUTED left += lhs->tv_nsec; right = rhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; right += rhs->tv_nsec; if ( right == 0 ) { a000e6b4: 0a000017 beq a000e718 <_Timespec_Divide+0x8c> <== NOT EXECUTED /* * For math simplicity just convert the timespec to nanoseconds * in a 64-bit integer. */ left = lhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; left += lhs->tv_nsec; a000e6b8: e1a0cfcb asr ip, fp, #31 <== NOT EXECUTED a000e6bc: e0ecb391 smlal fp, ip, r1, r3 <== NOT EXECUTED * Put it back in the timespec result. * * TODO: Rounding on the last digit of the fval. */ answer = (left * 100000) / right; a000e6c0: e3a01b61 mov r1, #99328 ; 0x18400 <== NOT EXECUTED a000e6c4: e2811e2a add r1, r1, #672 ; 0x2a0 <== NOT EXECUTED a000e6c8: e089819b umull r8, r9, fp, r1 <== NOT EXECUTED a000e6cc: e1a02006 mov r2, r6 <== NOT EXECUTED a000e6d0: e0299c91 mla r9, r1, ip, r9 <== NOT EXECUTED a000e6d4: e1a03007 mov r3, r7 <== NOT EXECUTED a000e6d8: e1a00008 mov r0, r8 <== NOT EXECUTED a000e6dc: e1a01009 mov r1, r9 <== NOT EXECUTED a000e6e0: eb003d27 bl a001db84 <__udivdi3> <== NOT EXECUTED *ival_percentage = answer / 1000; a000e6e4: e3a02ffa mov r2, #1000 ; 0x3e8 <== NOT EXECUTED a000e6e8: e3a03000 mov r3, #0 <== NOT EXECUTED * Put it back in the timespec result. * * TODO: Rounding on the last digit of the fval. */ answer = (left * 100000) / right; a000e6ec: e1a06000 mov r6, r0 <== NOT EXECUTED a000e6f0: e1a07001 mov r7, r1 <== NOT EXECUTED *ival_percentage = answer / 1000; a000e6f4: eb003d22 bl a001db84 <__udivdi3> <== NOT EXECUTED *fval_percentage = answer % 1000; a000e6f8: e1a01007 mov r1, r7 <== NOT EXECUTED * TODO: Rounding on the last digit of the fval. */ answer = (left * 100000) / right; *ival_percentage = answer / 1000; a000e6fc: e5850000 str r0, [r5] <== NOT EXECUTED *fval_percentage = answer % 1000; a000e700: e3a02ffa mov r2, #1000 ; 0x3e8 <== NOT EXECUTED a000e704: e3a03000 mov r3, #0 <== NOT EXECUTED a000e708: e1a00006 mov r0, r6 <== NOT EXECUTED a000e70c: eb003e2e bl a001dfcc <__umoddi3> <== NOT EXECUTED a000e710: e5840000 str r0, [r4] <== NOT EXECUTED a000e714: e8bd8bf0 pop {r4, r5, r6, r7, r8, r9, fp, pc} <== NOT EXECUTED left += lhs->tv_nsec; right = rhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; right += rhs->tv_nsec; if ( right == 0 ) { *ival_percentage = 0; a000e718: e5852000 str r2, [r5] <== NOT EXECUTED *fval_percentage = 0; a000e71c: e5842000 str r2, [r4] <== NOT EXECUTED return; a000e720: e8bd8bf0 pop {r4, r5, r6, r7, r8, r9, fp, pc} <== NOT EXECUTED =============================================================================== a000e6dc <_Timespec_Divide_by_integer>: /* * For math simplicity just convert the timespec to nanoseconds * in a 64-bit integer. */ t = time->tv_sec; a000e6dc: e590c000 ldr ip, [r0] <== NOT EXECUTED t *= TOD_NANOSECONDS_PER_SECOND; a000e6e0: e59f3068 ldr r3, [pc, #104] ; a000e750 <_Timespec_Divide_by_integer+0x74><== NOT EXECUTED void _Timespec_Divide_by_integer( const struct timespec *time, uint32_t iterations, struct timespec *result ) { a000e6e4: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED /* * For math simplicity just convert the timespec to nanoseconds * in a 64-bit integer. */ t = time->tv_sec; t *= TOD_NANOSECONDS_PER_SECOND; a000e6e8: e086539c umull r5, r6, ip, r3 <== NOT EXECUTED /* * For math simplicity just convert the timespec to nanoseconds * in a 64-bit integer. */ t = time->tv_sec; a000e6ec: e1a0700c mov r7, ip <== NOT EXECUTED a000e6f0: e1a08fc7 asr r8, r7, #31 <== NOT EXECUTED t *= TOD_NANOSECONDS_PER_SECOND; t += time->tv_nsec; a000e6f4: e5900004 ldr r0, [r0, #4] <== NOT EXECUTED /* * For math simplicity just convert the timespec to nanoseconds * in a 64-bit integer. */ t = time->tv_sec; t *= TOD_NANOSECONDS_PER_SECOND; a000e6f8: e0266893 mla r6, r3, r8, r6 <== NOT EXECUTED /* * Divide to get nanoseconds per iteration */ t /= iterations; a000e6fc: e0957000 adds r7, r5, r0 <== NOT EXECUTED a000e700: e0a68fc0 adc r8, r6, r0, asr #31 <== NOT EXECUTED void _Timespec_Divide_by_integer( const struct timespec *time, uint32_t iterations, struct timespec *result ) { a000e704: e1a04002 mov r4, r2 <== NOT EXECUTED /* * Divide to get nanoseconds per iteration */ t /= iterations; a000e708: e3a03000 mov r3, #0 <== NOT EXECUTED a000e70c: e1a02001 mov r2, r1 <== NOT EXECUTED a000e710: e1a00007 mov r0, r7 <== NOT EXECUTED a000e714: e1a01008 mov r1, r8 <== NOT EXECUTED a000e718: eb003b5f bl a001d49c <__udivdi3> <== NOT EXECUTED /* * Put it back in the timespec result */ result->tv_sec = t / TOD_NANOSECONDS_PER_SECOND; a000e71c: e59f202c ldr r2, [pc, #44] ; a000e750 <_Timespec_Divide_by_integer+0x74><== NOT EXECUTED a000e720: e3a03000 mov r3, #0 <== NOT EXECUTED /* * Divide to get nanoseconds per iteration */ t /= iterations; a000e724: e1a05000 mov r5, r0 <== NOT EXECUTED a000e728: e1a06001 mov r6, r1 <== NOT EXECUTED /* * Put it back in the timespec result */ result->tv_sec = t / TOD_NANOSECONDS_PER_SECOND; a000e72c: eb003b5a bl a001d49c <__udivdi3> <== NOT EXECUTED result->tv_nsec = t % TOD_NANOSECONDS_PER_SECOND; a000e730: e59f2018 ldr r2, [pc, #24] ; a000e750 <_Timespec_Divide_by_integer+0x74><== NOT EXECUTED /* * Put it back in the timespec result */ result->tv_sec = t / TOD_NANOSECONDS_PER_SECOND; a000e734: e5840000 str r0, [r4] <== NOT EXECUTED result->tv_nsec = t % TOD_NANOSECONDS_PER_SECOND; a000e738: e3a03000 mov r3, #0 <== NOT EXECUTED a000e73c: e1a01006 mov r1, r6 <== NOT EXECUTED a000e740: e1a00005 mov r0, r5 <== NOT EXECUTED a000e744: eb003c66 bl a001d8e4 <__umoddi3> <== NOT EXECUTED a000e748: e5840004 str r0, [r4, #4] <== NOT EXECUTED } a000e74c: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED =============================================================================== a0021988 <_Timespec_From_ticks>: struct timespec *time ) { uint32_t usecs; usecs = ticks * rtems_configuration_get_microseconds_per_tick(); a0021988: e59f2034 ldr r2, [pc, #52] ; a00219c4 <_Timespec_From_ticks+0x3c><== NOT EXECUTED time->tv_sec = usecs / TOD_MICROSECONDS_PER_SECOND; time->tv_nsec = (usecs % TOD_MICROSECONDS_PER_SECOND) * a002198c: e3a0393d mov r3, #999424 ; 0xf4000 <== NOT EXECUTED a0021990: e2833d09 add r3, r3, #576 ; 0x240 <== NOT EXECUTED struct timespec *time ) { uint32_t usecs; usecs = ticks * rtems_configuration_get_microseconds_per_tick(); a0021994: e592200c ldr r2, [r2, #12] <== NOT EXECUTED a0021998: e0020290 mul r2, r0, r2 <== NOT EXECUTED time->tv_sec = usecs / TOD_MICROSECONDS_PER_SECOND; a002199c: e59f0024 ldr r0, [pc, #36] ; a00219c8 <_Timespec_From_ticks+0x40><== NOT EXECUTED a00219a0: e080c092 umull ip, r0, r2, r0 <== NOT EXECUTED a00219a4: e1a00920 lsr r0, r0, #18 <== NOT EXECUTED time->tv_nsec = (usecs % TOD_MICROSECONDS_PER_SECOND) * a00219a8: e0030390 mul r3, r0, r3 <== NOT EXECUTED { uint32_t usecs; usecs = ticks * rtems_configuration_get_microseconds_per_tick(); time->tv_sec = usecs / TOD_MICROSECONDS_PER_SECOND; a00219ac: e5810000 str r0, [r1] <== NOT EXECUTED time->tv_nsec = (usecs % TOD_MICROSECONDS_PER_SECOND) * a00219b0: e0632002 rsb r2, r3, r2 <== NOT EXECUTED a00219b4: e3a03ffa mov r3, #1000 ; 0x3e8 <== NOT EXECUTED a00219b8: e0020293 mul r2, r3, r2 <== NOT EXECUTED a00219bc: e5812004 str r2, [r1, #4] <== NOT EXECUTED TOD_NANOSECONDS_PER_MICROSECOND; } a00219c0: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000e754 <_Timespec_Greater_than>: bool _Timespec_Greater_than( const struct timespec *lhs, const struct timespec *rhs ) { if ( lhs->tv_sec > rhs->tv_sec ) a000e754: e5902000 ldr r2, [r0] <== NOT EXECUTED a000e758: e5913000 ldr r3, [r1] <== NOT EXECUTED a000e75c: e1520003 cmp r2, r3 <== NOT EXECUTED return true; a000e760: c3a00001 movgt r0, #1 <== NOT EXECUTED bool _Timespec_Greater_than( const struct timespec *lhs, const struct timespec *rhs ) { if ( lhs->tv_sec > rhs->tv_sec ) a000e764: c12fff1e bxgt lr <== NOT EXECUTED return true; if ( lhs->tv_sec < rhs->tv_sec ) a000e768: ba000005 blt a000e784 <_Timespec_Greater_than+0x30> <== NOT EXECUTED #include #include #include bool _Timespec_Greater_than( a000e76c: e5900004 ldr r0, [r0, #4] <== NOT EXECUTED a000e770: e5913004 ldr r3, [r1, #4] <== NOT EXECUTED a000e774: e1500003 cmp r0, r3 <== NOT EXECUTED a000e778: d3a00000 movle r0, #0 <== NOT EXECUTED a000e77c: c3a00001 movgt r0, #1 <== NOT EXECUTED a000e780: e12fff1e bx lr <== NOT EXECUTED { if ( lhs->tv_sec > rhs->tv_sec ) return true; if ( lhs->tv_sec < rhs->tv_sec ) return false; a000e784: e3a00000 mov r0, #0 <== NOT EXECUTED /* ASSERT: lhs->tv_sec == rhs->tv_sec */ if ( lhs->tv_nsec > rhs->tv_nsec ) return true; return false; } a000e788: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a00219cc <_Timespec_Is_valid>: bool _Timespec_Is_valid( const struct timespec *time ) { if ( !time ) a00219cc: e3500000 cmp r0, #0 <== NOT EXECUTED a00219d0: 012fff1e bxeq lr <== NOT EXECUTED return false; if ( time->tv_sec < 0 ) a00219d4: e5903000 ldr r3, [r0] <== NOT EXECUTED a00219d8: e3530000 cmp r3, #0 <== NOT EXECUTED return false; a00219dc: b3a00000 movlt r0, #0 <== NOT EXECUTED ) { if ( !time ) return false; if ( time->tv_sec < 0 ) a00219e0: b12fff1e bxlt lr <== NOT EXECUTED return false; if ( time->tv_nsec < 0 ) a00219e4: e5903004 ldr r3, [r0, #4] <== NOT EXECUTED a00219e8: e3530000 cmp r3, #0 <== NOT EXECUTED a00219ec: ba000004 blt a0021a04 <_Timespec_Is_valid+0x38> <== NOT EXECUTED #include #include #include bool _Timespec_Is_valid( a00219f0: e59f0014 ldr r0, [pc, #20] ; a0021a0c <_Timespec_Is_valid+0x40><== NOT EXECUTED a00219f4: e1530000 cmp r3, r0 <== NOT EXECUTED a00219f8: 83a00000 movhi r0, #0 <== NOT EXECUTED a00219fc: 93a00001 movls r0, #1 <== NOT EXECUTED a0021a00: e12fff1e bx lr <== NOT EXECUTED if ( time->tv_sec < 0 ) return false; if ( time->tv_nsec < 0 ) return false; a0021a04: e3a00000 mov r0, #0 <== NOT EXECUTED if ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) return false; return true; } a0021a08: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000e78c <_Timespec_Less_than>: bool _Timespec_Less_than( const struct timespec *lhs, const struct timespec *rhs ) { if ( lhs->tv_sec < rhs->tv_sec ) a000e78c: e5902000 ldr r2, [r0] <== NOT EXECUTED a000e790: e5913000 ldr r3, [r1] <== NOT EXECUTED a000e794: e1520003 cmp r2, r3 <== NOT EXECUTED return true; a000e798: b3a00001 movlt r0, #1 <== NOT EXECUTED bool _Timespec_Less_than( const struct timespec *lhs, const struct timespec *rhs ) { if ( lhs->tv_sec < rhs->tv_sec ) a000e79c: b12fff1e bxlt lr <== NOT EXECUTED return true; if ( lhs->tv_sec > rhs->tv_sec ) a000e7a0: ca000005 bgt a000e7bc <_Timespec_Less_than+0x30> <== NOT EXECUTED #include #include #include bool _Timespec_Less_than( a000e7a4: e5900004 ldr r0, [r0, #4] <== NOT EXECUTED a000e7a8: e5913004 ldr r3, [r1, #4] <== NOT EXECUTED a000e7ac: e1500003 cmp r0, r3 <== NOT EXECUTED a000e7b0: a3a00000 movge r0, #0 <== NOT EXECUTED a000e7b4: b3a00001 movlt r0, #1 <== NOT EXECUTED a000e7b8: e12fff1e bx lr <== NOT EXECUTED { if ( lhs->tv_sec < rhs->tv_sec ) return true; if ( lhs->tv_sec > rhs->tv_sec ) return false; a000e7bc: e3a00000 mov r0, #0 <== NOT EXECUTED /* ASSERT: lhs->tv_sec == rhs->tv_sec */ if ( lhs->tv_nsec < rhs->tv_nsec ) return true; return false; } a000e7c0: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000caac <_Timespec_Subtract>: const struct timespec *end, struct timespec *result ) { if (end->tv_nsec < start->tv_nsec) { a000caac: e591c004 ldr ip, [r1, #4] <== NOT EXECUTED a000cab0: e5903004 ldr r3, [r0, #4] <== NOT EXECUTED void _Timespec_Subtract( const struct timespec *start, const struct timespec *end, struct timespec *result ) { a000cab4: e52d4004 push {r4} ; (str r4, [sp, #-4]!) <== NOT EXECUTED if (end->tv_nsec < start->tv_nsec) { a000cab8: e15c0003 cmp ip, r3 <== NOT EXECUTED a000cabc: ba000007 blt a000cae0 <_Timespec_Subtract+0x34> <== 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; a000cac0: e5914000 ldr r4, [r1] <== NOT EXECUTED a000cac4: e5901000 ldr r1, [r0] <== NOT EXECUTED result->tv_nsec = end->tv_nsec - start->tv_nsec; a000cac8: e063300c rsb r3, r3, ip <== NOT EXECUTED a000cacc: e5823004 str r3, [r2, #4] <== 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; } else { result->tv_sec = end->tv_sec - start->tv_sec; a000cad0: e0613004 rsb r3, r1, r4 <== NOT EXECUTED a000cad4: e5823000 str r3, [r2] <== NOT EXECUTED result->tv_nsec = end->tv_nsec - start->tv_nsec; } } a000cad8: e8bd0010 pop {r4} <== NOT EXECUTED a000cadc: e12fff1e bx lr <== NOT EXECUTED struct timespec *result ) { if (end->tv_nsec < start->tv_nsec) { result->tv_sec = end->tv_sec - start->tv_sec - 1; a000cae0: e5911000 ldr r1, [r1] <== NOT EXECUTED a000cae4: e5900000 ldr r0, [r0] <== NOT EXECUTED result->tv_nsec = (TOD_NANOSECONDS_PER_SECOND - start->tv_nsec) + end->tv_nsec; a000cae8: e28cc5ee add ip, ip, #998244352 ; 0x3b800000 <== NOT EXECUTED a000caec: e28cc96b add ip, ip, #1753088 ; 0x1ac000 <== NOT EXECUTED struct timespec *result ) { if (end->tv_nsec < start->tv_nsec) { result->tv_sec = end->tv_sec - start->tv_sec - 1; a000caf0: e2411001 sub r1, r1, #1 <== NOT EXECUTED result->tv_nsec = (TOD_NANOSECONDS_PER_SECOND - start->tv_nsec) + end->tv_nsec; a000caf4: e28ccc0a add ip, ip, #2560 ; 0xa00 <== NOT EXECUTED struct timespec *result ) { if (end->tv_nsec < start->tv_nsec) { result->tv_sec = end->tv_sec - start->tv_sec - 1; a000caf8: e0601001 rsb r1, r0, r1 <== NOT EXECUTED result->tv_nsec = (TOD_NANOSECONDS_PER_SECOND - start->tv_nsec) + end->tv_nsec; a000cafc: e063300c rsb 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; a000cb00: e882000a stm r2, {r1, r3} <== NOT EXECUTED a000cb04: eafffff3 b a000cad8 <_Timespec_Subtract+0x2c> <== NOT EXECUTED =============================================================================== a0021a10 <_Timespec_To_ticks>: */ uint32_t _Timespec_To_ticks( const struct timespec *time ) { a0021a10: e92d4030 push {r4, r5, lr} <== NOT EXECUTED uint32_t ticks; if ( (time->tv_sec == 0) && (time->tv_nsec == 0) ) a0021a14: e5904000 ldr r4, [r0] <== NOT EXECUTED */ uint32_t _Timespec_To_ticks( const struct timespec *time ) { a0021a18: e1a05000 mov r5, r0 <== NOT EXECUTED uint32_t ticks; if ( (time->tv_sec == 0) && (time->tv_nsec == 0) ) a0021a1c: e3540000 cmp r4, #0 <== NOT EXECUTED a0021a20: 1a000002 bne a0021a30 <_Timespec_To_ticks+0x20> <== NOT EXECUTED a0021a24: e5900004 ldr r0, [r0, #4] <== NOT EXECUTED a0021a28: e3500000 cmp r0, #0 <== NOT EXECUTED a0021a2c: 0a000009 beq a0021a58 <_Timespec_To_ticks+0x48> <== NOT EXECUTED return 0; ticks = time->tv_sec * TOD_TICKS_PER_SECOND; a0021a30: eb000086 bl a0021c50 <== NOT EXECUTED ticks += time->tv_nsec / rtems_configuration_get_nanoseconds_per_tick(); a0021a34: e59f3020 ldr r3, [pc, #32] ; a0021a5c <_Timespec_To_ticks+0x4c><== NOT EXECUTED a0021a38: e3a01ffa mov r1, #1000 ; 0x3e8 <== NOT EXECUTED uint32_t ticks; if ( (time->tv_sec == 0) && (time->tv_nsec == 0) ) return 0; ticks = time->tv_sec * TOD_TICKS_PER_SECOND; a0021a3c: e0040490 mul r4, r0, r4 <== NOT EXECUTED ticks += time->tv_nsec / rtems_configuration_get_nanoseconds_per_tick(); a0021a40: e593300c ldr r3, [r3, #12] <== NOT EXECUTED a0021a44: e5950004 ldr r0, [r5, #4] <== NOT EXECUTED a0021a48: e0010193 mul r1, r3, r1 <== NOT EXECUTED a0021a4c: ebfff68a bl a001f47c <__aeabi_uidiv> <== NOT EXECUTED if (ticks) a0021a50: e0940000 adds r0, r4, r0 <== NOT EXECUTED return ticks; return 1; a0021a54: 03a00001 moveq r0, #1 <== NOT EXECUTED } a0021a58: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED =============================================================================== a000e39c <_User_extensions_Remove_set>: #include void _User_extensions_Remove_set ( User_extensions_Control *the_extension ) { a000e39c: e92d4010 push {r4, lr} <== NOT EXECUTED a000e3a0: e1a04000 mov r4, r0 <== NOT EXECUTED _Chain_Extract( &the_extension->Node ); a000e3a4: ebfff608 bl a000bbcc <_Chain_Extract> <== NOT EXECUTED /* * If a switch handler is present, remove it. */ if ( the_extension->Callouts.thread_switch != NULL ) a000e3a8: e5943024 ldr r3, [r4, #36] ; 0x24 <== NOT EXECUTED a000e3ac: e3530000 cmp r3, #0 <== NOT EXECUTED a000e3b0: 0a000002 beq a000e3c0 <_User_extensions_Remove_set+0x24> <== NOT EXECUTED _Chain_Extract( &the_extension->Switch.Node ); a000e3b4: e2840008 add r0, r4, #8 <== NOT EXECUTED } a000e3b8: 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 ); a000e3bc: eafff602 b a000bbcc <_Chain_Extract> <== NOT EXECUTED a000e3c0: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a000cbb0 <_User_extensions_Thread_begin>: #include void _User_extensions_Thread_begin ( Thread_Control *executing ) { a000cbb0: e92d4070 push {r4, r5, r6, lr} the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.fatal != NULL ) (*the_extension->Callouts.fatal)( the_source, is_internal, the_error ); } } a000cbb4: e59f5030 ldr r5, [pc, #48] ; a000cbec <_User_extensions_Thread_begin+0x3c> #include void _User_extensions_Thread_begin ( Thread_Control *executing ) { a000cbb8: e1a06000 mov r6, r0 the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.fatal != NULL ) (*the_extension->Callouts.fatal)( the_source, is_internal, the_error ); } } a000cbbc: e4954004 ldr r4, [r5], #4 ) { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _Chain_First( &_User_extensions_List ); a000cbc0: e1540005 cmp r4, r5 a000cbc4: 0a000007 beq a000cbe8 <_User_extensions_Thread_begin+0x38> !_Chain_Is_tail( &_User_extensions_List, the_node ) ; the_node = the_node->next ) { the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_begin != NULL ) a000cbc8: e5943028 ldr r3, [r4, #40] ; 0x28 (*the_extension->Callouts.thread_begin)( executing ); a000cbcc: e1a00006 mov r0, r6 !_Chain_Is_tail( &_User_extensions_List, the_node ) ; the_node = the_node->next ) { the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_begin != NULL ) a000cbd0: e3530000 cmp r3, #0 a000cbd4: 0a000000 beq a000cbdc <_User_extensions_Thread_begin+0x2c> (*the_extension->Callouts.thread_begin)( executing ); a000cbd8: e12fff33 blx r3 <== NOT EXECUTED Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _Chain_First( &_User_extensions_List ); !_Chain_Is_tail( &_User_extensions_List, the_node ) ; the_node = the_node->next ) { a000cbdc: e5944000 ldr r4, [r4] ) { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _Chain_First( &_User_extensions_List ); a000cbe0: e1540005 cmp r4, r5 a000cbe4: 1afffff7 bne a000cbc8 <_User_extensions_Thread_begin+0x18> a000cbe8: e8bd8070 pop {r4, r5, r6, pc} =============================================================================== a000cc80 <_User_extensions_Thread_create>: #include bool _User_extensions_Thread_create ( Thread_Control *the_thread ) { a000cc80: e92d40f0 push {r4, r5, r6, r7, lr} return false; } } return true; } a000cc84: e59f504c ldr r5, [pc, #76] ; a000ccd8 <_User_extensions_Thread_create+0x58> #include bool _User_extensions_Thread_create ( Thread_Control *the_thread ) { a000cc88: e1a06000 mov r6, r0 return false; } } return true; } a000cc8c: e4954004 ldr r4, [r5], #4 { Chain_Node *the_node; User_extensions_Control *the_extension; bool status; for ( the_node = _Chain_First( &_User_extensions_List ); a000cc90: e1540005 cmp r4, r5 a000cc94: 0a00000d beq a000ccd0 <_User_extensions_Thread_create+0x50> the_node = the_node->next ) { the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_create != NULL ) { status = (*the_extension->Callouts.thread_create)( a000cc98: e59f703c ldr r7, [pc, #60] ; a000ccdc <_User_extensions_Thread_create+0x5c> !_Chain_Is_tail( &_User_extensions_List, the_node ) ; the_node = the_node->next ) { the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_create != NULL ) { a000cc9c: e5943014 ldr r3, [r4, #20] status = (*the_extension->Callouts.thread_create)( a000cca0: e1a01006 mov r1, r6 !_Chain_Is_tail( &_User_extensions_List, the_node ) ; the_node = the_node->next ) { the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_create != NULL ) { a000cca4: e3530000 cmp r3, #0 a000cca8: 0a000003 beq a000ccbc <_User_extensions_Thread_create+0x3c> status = (*the_extension->Callouts.thread_create)( a000ccac: e5970004 ldr r0, [r7, #4] a000ccb0: e12fff33 blx r3 _Thread_Executing, the_thread ); if ( !status ) a000ccb4: e3500000 cmp r0, #0 a000ccb8: 0a000005 beq a000ccd4 <_User_extensions_Thread_create+0x54> User_extensions_Control *the_extension; bool status; for ( the_node = _Chain_First( &_User_extensions_List ); !_Chain_Is_tail( &_User_extensions_List, the_node ) ; the_node = the_node->next ) { a000ccbc: e5944000 ldr r4, [r4] { Chain_Node *the_node; User_extensions_Control *the_extension; bool status; for ( the_node = _Chain_First( &_User_extensions_List ); a000ccc0: e1540005 cmp r4, r5 a000ccc4: 1afffff4 bne a000cc9c <_User_extensions_Thread_create+0x1c> if ( !status ) return false; } } return true; a000ccc8: e3a00001 mov r0, #1 a000cccc: e8bd80f0 pop {r4, r5, r6, r7, pc} a000ccd0: e3a00001 mov r0, #1 <== NOT EXECUTED } a000ccd4: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED =============================================================================== a000cce0 <_User_extensions_Thread_delete>: #include void _User_extensions_Thread_delete ( Thread_Control *the_thread ) { a000cce0: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED (*the_extension->Callouts.thread_delete)( _Thread_Executing, the_thread ); } } a000cce4: e59f5038 ldr r5, [pc, #56] ; a000cd24 <_User_extensions_Thread_delete+0x44><== NOT EXECUTED #include void _User_extensions_Thread_delete ( Thread_Control *the_thread ) { a000cce8: e1a06000 mov r6, r0 <== NOT EXECUTED (*the_extension->Callouts.thread_delete)( _Thread_Executing, the_thread ); } } a000ccec: e5954008 ldr r4, [r5, #8] <== NOT EXECUTED ) { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _Chain_Last( &_User_extensions_List ); a000ccf0: e1540005 cmp r4, r5 <== NOT EXECUTED a000ccf4: 0a000009 beq a000cd20 <_User_extensions_Thread_delete+0x40><== NOT EXECUTED the_node = the_node->previous ) { the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_delete != NULL ) (*the_extension->Callouts.thread_delete)( a000ccf8: e59f7028 ldr r7, [pc, #40] ; a000cd28 <_User_extensions_Thread_delete+0x48><== NOT EXECUTED !_Chain_Is_head( &_User_extensions_List, the_node ) ; the_node = the_node->previous ) { the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_delete != NULL ) a000ccfc: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED (*the_extension->Callouts.thread_delete)( a000cd00: e1a01006 mov r1, r6 <== NOT EXECUTED !_Chain_Is_head( &_User_extensions_List, the_node ) ; the_node = the_node->previous ) { the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_delete != NULL ) a000cd04: e3530000 cmp r3, #0 <== NOT EXECUTED a000cd08: 0a000001 beq a000cd14 <_User_extensions_Thread_delete+0x34><== NOT EXECUTED (*the_extension->Callouts.thread_delete)( a000cd0c: e5970004 ldr r0, [r7, #4] <== NOT EXECUTED a000cd10: e12fff33 blx r3 <== NOT EXECUTED Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _Chain_Last( &_User_extensions_List ); !_Chain_Is_head( &_User_extensions_List, the_node ) ; the_node = the_node->previous ) { a000cd14: e5944004 ldr r4, [r4, #4] <== NOT EXECUTED ) { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _Chain_Last( &_User_extensions_List ); a000cd18: e1540005 cmp r4, r5 <== NOT EXECUTED a000cd1c: 1afffff6 bne a000ccfc <_User_extensions_Thread_delete+0x1c><== NOT EXECUTED a000cd20: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED =============================================================================== a000cbf0 <_User_extensions_Thread_exitted>: } void _User_extensions_Thread_exitted ( Thread_Control *executing ) { a000cbf0: e92d4070 push {r4, r5, r6, lr} the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.fatal != NULL ) (*the_extension->Callouts.fatal)( the_source, is_internal, the_error ); } } a000cbf4: e59f5030 ldr r5, [pc, #48] ; a000cc2c <_User_extensions_Thread_exitted+0x3c> } void _User_extensions_Thread_exitted ( Thread_Control *executing ) { a000cbf8: e1a06000 mov r6, r0 the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.fatal != NULL ) (*the_extension->Callouts.fatal)( the_source, is_internal, the_error ); } } a000cbfc: e5954008 ldr r4, [r5, #8] ) { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _Chain_Last( &_User_extensions_List ); a000cc00: e1540005 cmp r4, r5 a000cc04: 0a000007 beq a000cc28 <_User_extensions_Thread_exitted+0x38> !_Chain_Is_head( &_User_extensions_List, the_node ) ; the_node = the_node->previous ) { the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_exitted != NULL ) a000cc08: e594302c ldr r3, [r4, #44] ; 0x2c (*the_extension->Callouts.thread_exitted)( executing ); a000cc0c: e1a00006 mov r0, r6 !_Chain_Is_head( &_User_extensions_List, the_node ) ; the_node = the_node->previous ) { the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_exitted != NULL ) a000cc10: e3530000 cmp r3, #0 a000cc14: 0a000000 beq a000cc1c <_User_extensions_Thread_exitted+0x2c> (*the_extension->Callouts.thread_exitted)( executing ); a000cc18: e12fff33 blx r3 <== NOT EXECUTED Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _Chain_Last( &_User_extensions_List ); !_Chain_Is_head( &_User_extensions_List, the_node ) ; the_node = the_node->previous ) { a000cc1c: e5944004 ldr r4, [r4, #4] ) { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _Chain_Last( &_User_extensions_List ); a000cc20: e1540005 cmp r4, r5 a000cc24: 1afffff7 bne a000cc08 <_User_extensions_Thread_exitted+0x18> a000cc28: e8bd8070 pop {r4, r5, r6, pc} =============================================================================== a000dab8 <_User_extensions_Thread_restart>: #include void _User_extensions_Thread_restart ( Thread_Control *the_thread ) { a000dab8: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED (*the_extension->Callouts.thread_restart)( _Thread_Executing, the_thread ); } } a000dabc: e59f5038 ldr r5, [pc, #56] ; a000dafc <_User_extensions_Thread_restart+0x44><== NOT EXECUTED #include void _User_extensions_Thread_restart ( Thread_Control *the_thread ) { a000dac0: e1a06000 mov r6, r0 <== NOT EXECUTED (*the_extension->Callouts.thread_restart)( _Thread_Executing, the_thread ); } } a000dac4: e4954004 ldr r4, [r5], #4 <== NOT EXECUTED ) { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _Chain_First( &_User_extensions_List ); a000dac8: e1540005 cmp r4, r5 <== NOT EXECUTED a000dacc: 0a000009 beq a000daf8 <_User_extensions_Thread_restart+0x40><== NOT EXECUTED the_node = the_node->next ) { the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_restart != NULL ) (*the_extension->Callouts.thread_restart)( a000dad0: e59f7028 ldr r7, [pc, #40] ; a000db00 <_User_extensions_Thread_restart+0x48><== NOT EXECUTED !_Chain_Is_tail( &_User_extensions_List, the_node ) ; the_node = the_node->next ) { the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_restart != NULL ) a000dad4: e594301c ldr r3, [r4, #28] <== NOT EXECUTED (*the_extension->Callouts.thread_restart)( a000dad8: e1a01006 mov r1, r6 <== NOT EXECUTED !_Chain_Is_tail( &_User_extensions_List, the_node ) ; the_node = the_node->next ) { the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_restart != NULL ) a000dadc: e3530000 cmp r3, #0 <== NOT EXECUTED a000dae0: 0a000001 beq a000daec <_User_extensions_Thread_restart+0x34><== NOT EXECUTED (*the_extension->Callouts.thread_restart)( a000dae4: e5970004 ldr r0, [r7, #4] <== NOT EXECUTED a000dae8: e12fff33 blx r3 <== NOT EXECUTED Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _Chain_First( &_User_extensions_List ); !_Chain_Is_tail( &_User_extensions_List, the_node ) ; the_node = the_node->next ) { a000daec: e5944000 ldr r4, [r4] <== NOT EXECUTED ) { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _Chain_First( &_User_extensions_List ); a000daf0: e1540005 cmp r4, r5 <== NOT EXECUTED a000daf4: 1afffff6 bne a000dad4 <_User_extensions_Thread_restart+0x1c><== NOT EXECUTED a000daf8: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED =============================================================================== a000cd78 <_User_extensions_Thread_switch>: void _User_extensions_Thread_switch ( Thread_Control *executing, Thread_Control *heir ) { a000cd78: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED the_extension_switch = (User_extensions_Switch_control *) the_node; (*the_extension_switch->thread_switch)( executing, heir ); } } a000cd7c: e59f5030 ldr r5, [pc, #48] ; a000cdb4 <_User_extensions_Thread_switch+0x3c><== NOT EXECUTED void _User_extensions_Thread_switch ( Thread_Control *executing, Thread_Control *heir ) { a000cd80: e1a07000 mov r7, r0 <== NOT EXECUTED a000cd84: e1a06001 mov r6, r1 <== NOT EXECUTED the_extension_switch = (User_extensions_Switch_control *) the_node; (*the_extension_switch->thread_switch)( executing, heir ); } } a000cd88: e4954004 ldr r4, [r5], #4 <== NOT EXECUTED ) { Chain_Node *the_node; User_extensions_Switch_control *the_extension_switch; for ( the_node = _Chain_First( &_User_extensions_Switches_list ); a000cd8c: e1540005 cmp r4, r5 <== NOT EXECUTED a000cd90: 0a000006 beq a000cdb0 <_User_extensions_Thread_switch+0x38><== NOT EXECUTED !_Chain_Is_tail( &_User_extensions_Switches_list, the_node ) ; the_node = the_node->next ) { the_extension_switch = (User_extensions_Switch_control *) the_node; (*the_extension_switch->thread_switch)( executing, heir ); a000cd94: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED a000cd98: e1a00007 mov r0, r7 <== NOT EXECUTED a000cd9c: e1a01006 mov r1, r6 <== NOT EXECUTED a000cda0: e12fff33 blx r3 <== NOT EXECUTED Chain_Node *the_node; User_extensions_Switch_control *the_extension_switch; for ( the_node = _Chain_First( &_User_extensions_Switches_list ); !_Chain_Is_tail( &_User_extensions_Switches_list, the_node ) ; the_node = the_node->next ) { a000cda4: e5944000 ldr r4, [r4] <== NOT EXECUTED ) { Chain_Node *the_node; User_extensions_Switch_control *the_extension_switch; for ( the_node = _Chain_First( &_User_extensions_Switches_list ); a000cda8: e1540005 cmp r4, r5 <== NOT EXECUTED a000cdac: 1afffff8 bne a000cd94 <_User_extensions_Thread_switch+0x1c><== NOT EXECUTED a000cdb0: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED =============================================================================== a000ea74 <_Watchdog_Adjust>: void _Watchdog_Adjust( Chain_Control *header, Watchdog_Adjust_directions direction, Watchdog_Interval units ) { a000ea74: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED a000ea78: e1a04000 mov r4, r0 <== NOT EXECUTED a000ea7c: e1a05002 mov r5, r2 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000ea80: e10f0000 mrs r0, CPSR <== NOT EXECUTED a000ea84: e3803080 orr r3, r0, #128 ; 0x80 <== NOT EXECUTED a000ea88: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED } } _ISR_Enable( level ); } a000ea8c: e1a07004 mov r7, r4 <== NOT EXECUTED a000ea90: e4973004 ldr r3, [r7], #4 <== NOT EXECUTED * hence the compiler must not assume *header to remain * unmodified across that call. * * Till Straumann, 7/2003 */ if ( !_Chain_Is_empty( header ) ) { a000ea94: e1530007 cmp r3, r7 <== NOT EXECUTED a000ea98: 0a00001a beq a000eb08 <_Watchdog_Adjust+0x94> <== NOT EXECUTED switch ( direction ) { a000ea9c: e3510000 cmp r1, #0 <== NOT EXECUTED a000eaa0: 1a00001a bne a000eb10 <_Watchdog_Adjust+0x9c> <== NOT EXECUTED case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; break; case WATCHDOG_FORWARD: while ( units ) { a000eaa4: e3520000 cmp r2, #0 <== NOT EXECUTED a000eaa8: 0a000016 beq a000eb08 <_Watchdog_Adjust+0x94> <== NOT EXECUTED if ( units < _Watchdog_First( header )->delta_interval ) { a000eaac: e5936010 ldr r6, [r3, #16] <== NOT EXECUTED a000eab0: e1520006 cmp r2, r6 <== NOT EXECUTED a000eab4: 21a01000 movcs r1, r0 <== NOT EXECUTED _Watchdog_First( header )->delta_interval -= units; break; } else { units -= _Watchdog_First( header )->delta_interval; _Watchdog_First( header )->delta_interval = 1; a000eab8: 23a08001 movcs r8, #1 <== NOT EXECUTED case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; break; case WATCHDOG_FORWARD: while ( units ) { if ( units < _Watchdog_First( header )->delta_interval ) { a000eabc: 2a000005 bcs a000ead8 <_Watchdog_Adjust+0x64> <== NOT EXECUTED a000eac0: ea000019 b a000eb2c <_Watchdog_Adjust+0xb8> <== NOT EXECUTED switch ( direction ) { case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; break; case WATCHDOG_FORWARD: while ( units ) { a000eac4: e0555006 subs r5, r5, r6 <== NOT EXECUTED a000eac8: 0a00000e beq a000eb08 <_Watchdog_Adjust+0x94> <== NOT EXECUTED if ( units < _Watchdog_First( header )->delta_interval ) { a000eacc: e5936010 ldr r6, [r3, #16] <== NOT EXECUTED a000ead0: e1560005 cmp r6, r5 <== NOT EXECUTED a000ead4: 8a000014 bhi a000eb2c <_Watchdog_Adjust+0xb8> <== NOT EXECUTED _Watchdog_First( header )->delta_interval -= units; break; } else { units -= _Watchdog_First( header )->delta_interval; _Watchdog_First( header )->delta_interval = 1; a000ead8: e5838010 str r8, [r3, #16] <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000eadc: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED _ISR_Enable( level ); _Watchdog_Tickle( header ); a000eae0: e1a00004 mov r0, r4 <== NOT EXECUTED a000eae4: eb0000ad bl a000eda0 <_Watchdog_Tickle> <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000eae8: e10f0000 mrs r0, CPSR <== NOT EXECUTED a000eaec: e3803080 orr r3, r0, #128 ; 0x80 <== NOT EXECUTED a000eaf0: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED } } _ISR_Enable( level ); } a000eaf4: e5942000 ldr r2, [r4] <== NOT EXECUTED a000eaf8: e1a01000 mov r1, r0 <== NOT EXECUTED _Watchdog_Tickle( header ); _ISR_Disable( level ); if ( _Chain_Is_empty( header ) ) a000eafc: e1570002 cmp r7, r2 <== NOT EXECUTED RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_First( Chain_Control *header ) { return ( (Watchdog_Control *) _Chain_First( header ) ); a000eb00: e1a03002 mov r3, r2 <== NOT EXECUTED a000eb04: 1affffee bne a000eac4 <_Watchdog_Adjust+0x50> <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000eb08: e129f000 msr CPSR_fc, r0 <== NOT EXECUTED } } _ISR_Enable( level ); } a000eb0c: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED * unmodified across that call. * * Till Straumann, 7/2003 */ if ( !_Chain_Is_empty( header ) ) { switch ( direction ) { a000eb10: e3510001 cmp r1, #1 <== NOT EXECUTED a000eb14: 1afffffb bne a000eb08 <_Watchdog_Adjust+0x94> <== NOT EXECUTED case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; a000eb18: e5932010 ldr r2, [r3, #16] <== NOT EXECUTED a000eb1c: e0825005 add r5, r2, r5 <== NOT EXECUTED a000eb20: e5835010 str r5, [r3, #16] <== NOT EXECUTED a000eb24: e129f000 msr CPSR_fc, r0 <== NOT EXECUTED } } _ISR_Enable( level ); } a000eb28: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED _Watchdog_First( header )->delta_interval += units; break; case WATCHDOG_FORWARD: while ( units ) { if ( units < _Watchdog_First( header )->delta_interval ) { _Watchdog_First( header )->delta_interval -= units; a000eb2c: e0655006 rsb r5, r5, r6 <== NOT EXECUTED a000eb30: e5835010 str r5, [r3, #16] <== NOT EXECUTED break; a000eb34: eafffff3 b a000eb08 <_Watchdog_Adjust+0x94> <== NOT EXECUTED =============================================================================== a001e95c <_Watchdog_Adjust_to_chain>: { Watchdog_Interval units = units_arg; ISR_Level level; Watchdog_Control *first; if ( units <= 0 ) { a001e95c: e3510000 cmp r1, #0 <== NOT EXECUTED Chain_Control *header, Watchdog_Interval units_arg, Chain_Control *to_fire ) { a001e960: e92d05f0 push {r4, r5, r6, r7, r8, sl} <== NOT EXECUTED Watchdog_Interval units = units_arg; ISR_Level level; Watchdog_Control *first; if ( units <= 0 ) { a001e964: 0a000022 beq a001e9f4 <_Watchdog_Adjust_to_chain+0x98> <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a001e968: e10f7000 mrs r7, CPSR <== NOT EXECUTED a001e96c: e3873080 orr r3, r7, #128 ; 0x80 <== NOT EXECUTED a001e970: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED return; } _ISR_Disable( level ); a001e974: e1a06000 mov r6, r0 <== NOT EXECUTED a001e978: e4963004 ldr r3, [r6], #4 <== NOT EXECUTED /* * The first set happens in less than units, so take all of them * off the chain and adjust units to reflect this. */ units -= first->delta_interval; first->delta_interval = 0; a001e97c: e3a0a000 mov sl, #0 <== NOT EXECUTED a001e980: e2828004 add r8, r2, #4 <== NOT EXECUTED while ( 1 ) { if ( units <= 0 ) { break; } if ( _Chain_Is_empty( header ) ) { a001e984: e1530006 cmp r3, r6 <== NOT EXECUTED a001e988: 0a000018 beq a001e9f0 <_Watchdog_Adjust_to_chain+0x94> <== NOT EXECUTED /* * If it is longer than "units" until the first element on the chain * fires, then bump it and quit. */ if ( units < first->delta_interval ) { a001e98c: e593c010 ldr ip, [r3, #16] <== NOT EXECUTED a001e990: e15c0001 cmp ip, r1 <== NOT EXECUTED a001e994: 8a000018 bhi a001e9fc <_Watchdog_Adjust_to_chain+0xa0> <== NOT EXECUTED /* * The first set happens in less than units, so take all of them * off the chain and adjust units to reflect this. */ units -= first->delta_interval; a001e998: e06c1001 rsb r1, ip, r1 <== NOT EXECUTED first->delta_interval = 0; a001e99c: e583a010 str sl, [r3, #16] <== NOT EXECUTED ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; a001e9a0: e5935000 ldr r5, [r3] <== NOT EXECUTED previous = the_node->previous; a001e9a4: e5934004 ldr r4, [r3, #4] <== NOT EXECUTED next->previous = previous; a001e9a8: e5854004 str r4, [r5, #4] <== NOT EXECUTED Chain_Control *the_chain, Chain_Node *the_node ) { Chain_Node *tail = _Chain_Tail( the_chain ); Chain_Node *old_last = tail->previous; a001e9ac: e592c008 ldr ip, [r2, #8] <== NOT EXECUTED Chain_Node *previous; next = the_node->next; previous = the_node->previous; next->previous = previous; previous->next = next; a001e9b0: e5845000 str r5, [r4] <== NOT EXECUTED ) { Chain_Node *tail = _Chain_Tail( the_chain ); Chain_Node *old_last = tail->previous; the_node->next = tail; a001e9b4: e5838000 str r8, [r3] <== NOT EXECUTED tail->previous = the_node; old_last->next = the_node; a001e9b8: e58c3000 str r3, [ip] <== NOT EXECUTED { Chain_Node *tail = _Chain_Tail( the_chain ); Chain_Node *old_last = tail->previous; the_node->next = tail; tail->previous = the_node; a001e9bc: e5823008 str r3, [r2, #8] <== NOT EXECUTED old_last->next = the_node; the_node->previous = old_last; a001e9c0: e583c004 str ip, [r3, #4] <== NOT EXECUTED static inline void arm_interrupt_flash( uint32_t level ) { uint32_t arm_switch_reg; __asm__ volatile ( a001e9c4: e10f3000 mrs r3, CPSR <== NOT EXECUTED a001e9c8: e129f007 msr CPSR_fc, r7 <== NOT EXECUTED a001e9cc: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED break; } } _ISR_Enable( level ); } a001e9d0: e5903000 ldr r3, [r0] <== NOT EXECUTED _Chain_Extract_unprotected( &first->Node ); _Chain_Append_unprotected( to_fire, &first->Node ); _ISR_Flash( level ); if ( _Chain_Is_empty( header ) ) a001e9d4: e1560003 cmp r6, r3 <== NOT EXECUTED a001e9d8: 0a000002 beq a001e9e8 <_Watchdog_Adjust_to_chain+0x8c> <== NOT EXECUTED break; first = _Watchdog_First( header ); if ( first->delta_interval != 0 ) a001e9dc: e593c010 ldr ip, [r3, #16] <== NOT EXECUTED a001e9e0: e35c0000 cmp ip, #0 <== NOT EXECUTED a001e9e4: 0affffed beq a001e9a0 <_Watchdog_Adjust_to_chain+0x44> <== NOT EXECUTED } _ISR_Disable( level ); while ( 1 ) { if ( units <= 0 ) { a001e9e8: e3510000 cmp r1, #0 <== NOT EXECUTED a001e9ec: 1affffe4 bne a001e984 <_Watchdog_Adjust_to_chain+0x28> <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a001e9f0: e129f007 msr CPSR_fc, r7 <== NOT EXECUTED break; } } _ISR_Enable( level ); } a001e9f4: e8bd05f0 pop {r4, r5, r6, r7, r8, sl} <== NOT EXECUTED a001e9f8: e12fff1e bx lr <== NOT EXECUTED /* * If it is longer than "units" until the first element on the chain * fires, then bump it and quit. */ if ( units < first->delta_interval ) { first->delta_interval -= units; a001e9fc: e061100c rsb r1, r1, ip <== NOT EXECUTED a001ea00: e5831010 str r1, [r3, #16] <== NOT EXECUTED break; a001ea04: eafffff9 b a001e9f0 <_Watchdog_Adjust_to_chain+0x94> <== NOT EXECUTED =============================================================================== a000cdb8 <_Watchdog_Insert>: Watchdog_Control *after; uint32_t insert_isr_nest_level; Watchdog_Interval delta_interval; insert_isr_nest_level = _ISR_Nest_level; a000cdb8: e59f3140 ldr r3, [pc, #320] ; a000cf00 <_Watchdog_Insert+0x148><== NOT EXECUTED void _Watchdog_Insert( Chain_Control *header, Watchdog_Control *the_watchdog ) { a000cdbc: e92d01f0 push {r4, r5, r6, r7, r8} <== NOT EXECUTED Watchdog_Control *after; uint32_t insert_isr_nest_level; Watchdog_Interval delta_interval; insert_isr_nest_level = _ISR_Nest_level; a000cdc0: e5936000 ldr r6, [r3] <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000cdc4: e10f5000 mrs r5, CPSR <== NOT EXECUTED a000cdc8: e3853080 orr r3, r5, #128 ; 0x80 <== NOT EXECUTED a000cdcc: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED /* * Check to see if the watchdog has just been inserted by a * higher priority interrupt. If so, abandon this insert. */ if ( the_watchdog->state != WATCHDOG_INACTIVE ) { a000cdd0: e5913008 ldr r3, [r1, #8] <== NOT EXECUTED a000cdd4: e3530000 cmp r3, #0 <== NOT EXECUTED a000cdd8: 1a000041 bne a000cee4 <_Watchdog_Insert+0x12c> <== NOT EXECUTED _ISR_Enable( level ); return; } the_watchdog->state = WATCHDOG_BEING_INSERTED; _Watchdog_Sync_count++; a000cddc: e59f8120 ldr r8, [pc, #288] ; a000cf04 <_Watchdog_Insert+0x14c><== NOT EXECUTED if ( the_watchdog->state != WATCHDOG_INACTIVE ) { _ISR_Enable( level ); return; } the_watchdog->state = WATCHDOG_BEING_INSERTED; a000cde0: e3a02001 mov r2, #1 <== NOT EXECUTED a000cde4: e59f711c ldr r7, [pc, #284] ; a000cf08 <_Watchdog_Insert+0x150><== NOT EXECUTED _Watchdog_Sync_count++; a000cde8: e5983000 ldr r3, [r8] <== NOT EXECUTED if ( the_watchdog->state != WATCHDOG_INACTIVE ) { _ISR_Enable( level ); return; } the_watchdog->state = WATCHDOG_BEING_INSERTED; a000cdec: e5812008 str r2, [r1, #8] <== NOT EXECUTED _Watchdog_Sync_count++; a000cdf0: e0833002 add r3, r3, r2 <== NOT EXECUTED a000cdf4: e5883000 str r3, [r8] <== NOT EXECUTED restart: delta_interval = the_watchdog->initial; a000cdf8: e591300c ldr r3, [r1, #12] <== NOT EXECUTED RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_First( Chain_Control *header ) { return ( (Watchdog_Control *) _Chain_First( header ) ); a000cdfc: e5902000 ldr r2, [r0] <== NOT EXECUTED for ( after = _Watchdog_First( header ) ; ; after = _Watchdog_Next( after ) ) { if ( delta_interval == 0 || !_Watchdog_Next( after ) ) a000ce00: e3530000 cmp r3, #0 <== NOT EXECUTED a000ce04: 0a000023 beq a000ce98 <_Watchdog_Insert+0xe0> <== NOT EXECUTED a000ce08: e592c000 ldr ip, [r2] <== NOT EXECUTED a000ce0c: e35c0000 cmp ip, #0 <== NOT EXECUTED a000ce10: 0a000020 beq a000ce98 <_Watchdog_Insert+0xe0> <== NOT EXECUTED break; if ( delta_interval < after->delta_interval ) { a000ce14: e592c010 ldr ip, [r2, #16] <== NOT EXECUTED a000ce18: e153000c cmp r3, ip <== NOT EXECUTED a000ce1c: 3a000032 bcc a000ceec <_Watchdog_Insert+0x134> <== NOT EXECUTED static inline void arm_interrupt_flash( uint32_t level ) { uint32_t arm_switch_reg; __asm__ volatile ( a000ce20: e10f4000 mrs r4, CPSR <== NOT EXECUTED a000ce24: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED a000ce28: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED delta_interval -= after->delta_interval; _ISR_Flash( level ); if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) { a000ce2c: e5914008 ldr r4, [r1, #8] <== NOT EXECUTED a000ce30: e3540001 cmp r4, #1 <== NOT EXECUTED a000ce34: 1a000023 bne a000cec8 <_Watchdog_Insert+0x110> <== NOT EXECUTED goto exit_insert; } if ( _Watchdog_Sync_level > insert_isr_nest_level ) { a000ce38: e5974000 ldr r4, [r7] <== NOT EXECUTED a000ce3c: e1560004 cmp r6, r4 <== NOT EXECUTED if ( delta_interval < after->delta_interval ) { after->delta_interval -= delta_interval; break; } delta_interval -= after->delta_interval; a000ce40: 206c3003 rsbcs r3, ip, r3 <== NOT EXECUTED if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) { goto exit_insert; } if ( _Watchdog_Sync_level > insert_isr_nest_level ) { a000ce44: 2a000010 bcs a000ce8c <_Watchdog_Insert+0xd4> <== NOT EXECUTED a000ce48: ea00002a b a000cef8 <_Watchdog_Insert+0x140> <== NOT EXECUTED for ( after = _Watchdog_First( header ) ; ; after = _Watchdog_Next( after ) ) { if ( delta_interval == 0 || !_Watchdog_Next( after ) ) a000ce4c: e592c000 ldr ip, [r2] <== NOT EXECUTED a000ce50: e35c0000 cmp ip, #0 <== NOT EXECUTED a000ce54: 0a00000f beq a000ce98 <_Watchdog_Insert+0xe0> <== NOT EXECUTED break; if ( delta_interval < after->delta_interval ) { a000ce58: e592c010 ldr ip, [r2, #16] <== NOT EXECUTED a000ce5c: e15c0003 cmp ip, r3 <== NOT EXECUTED a000ce60: 8a000021 bhi a000ceec <_Watchdog_Insert+0x134> <== NOT EXECUTED a000ce64: e10f4000 mrs r4, CPSR <== NOT EXECUTED a000ce68: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED a000ce6c: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED delta_interval -= after->delta_interval; _ISR_Flash( level ); if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) { a000ce70: e5914008 ldr r4, [r1, #8] <== NOT EXECUTED if ( delta_interval < after->delta_interval ) { after->delta_interval -= delta_interval; break; } delta_interval -= after->delta_interval; a000ce74: e06c3003 rsb r3, ip, r3 <== NOT EXECUTED _ISR_Flash( level ); if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) { a000ce78: e3540001 cmp r4, #1 <== NOT EXECUTED a000ce7c: 1a000011 bne a000cec8 <_Watchdog_Insert+0x110> <== NOT EXECUTED goto exit_insert; } if ( _Watchdog_Sync_level > insert_isr_nest_level ) { a000ce80: e597c000 ldr ip, [r7] <== NOT EXECUTED a000ce84: e156000c cmp r6, ip <== NOT EXECUTED a000ce88: 3a00001a bcc a000cef8 <_Watchdog_Insert+0x140> <== NOT EXECUTED for ( after = _Watchdog_First( header ) ; ; after = _Watchdog_Next( after ) ) { if ( delta_interval == 0 || !_Watchdog_Next( after ) ) a000ce8c: e3530000 cmp r3, #0 <== NOT EXECUTED exit_insert: _Watchdog_Sync_level = insert_isr_nest_level; _Watchdog_Sync_count--; _ISR_Enable( level ); } a000ce90: e5922000 ldr r2, [r2] <== NOT EXECUTED for ( after = _Watchdog_First( header ) ; ; after = _Watchdog_Next( after ) ) { if ( delta_interval == 0 || !_Watchdog_Next( after ) ) a000ce94: 1affffec bne a000ce4c <_Watchdog_Insert+0x94> <== NOT EXECUTED _Watchdog_Activate( the_watchdog ); the_watchdog->delta_interval = delta_interval; _Chain_Insert_unprotected( after->Node.previous, &the_watchdog->Node ); a000ce98: e5922004 ldr r2, [r2, #4] <== NOT EXECUTED the_watchdog->start_time = _Watchdog_Ticks_since_boot; a000ce9c: e59fc068 ldr ip, [pc, #104] ; a000cf0c <_Watchdog_Insert+0x154><== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Watchdog_Activate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_ACTIVE; a000cea0: e3a04002 mov r4, #2 <== NOT EXECUTED ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; a000cea4: e5920000 ldr r0, [r2] <== NOT EXECUTED a000cea8: e59cc000 ldr ip, [ip] <== NOT EXECUTED a000ceac: e5814008 str r4, [r1, #8] <== NOT EXECUTED } } _Watchdog_Activate( the_watchdog ); the_watchdog->delta_interval = delta_interval; a000ceb0: e5813010 str r3, [r1, #16] <== NOT EXECUTED Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; a000ceb4: e5812004 str r2, [r1, #4] <== NOT EXECUTED before_node = after_node->next; after_node->next = the_node; a000ceb8: e5821000 str r1, [r2] <== NOT EXECUTED the_node->next = before_node; before_node->previous = the_node; a000cebc: e5801004 str r1, [r0, #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; a000cec0: e5810000 str r0, [r1] <== NOT EXECUTED _Chain_Insert_unprotected( after->Node.previous, &the_watchdog->Node ); the_watchdog->start_time = _Watchdog_Ticks_since_boot; a000cec4: e581c014 str ip, [r1, #20] <== NOT EXECUTED exit_insert: _Watchdog_Sync_level = insert_isr_nest_level; a000cec8: e5876000 str r6, [r7] <== NOT EXECUTED _Watchdog_Sync_count--; a000cecc: e5983000 ldr r3, [r8] <== NOT EXECUTED a000ced0: e2433001 sub r3, r3, #1 <== NOT EXECUTED a000ced4: e5883000 str r3, [r8] <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000ced8: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED _ISR_Enable( level ); } a000cedc: e8bd01f0 pop {r4, r5, r6, r7, r8} <== NOT EXECUTED a000cee0: e12fff1e bx lr <== NOT EXECUTED a000cee4: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED a000cee8: eafffffb b a000cedc <_Watchdog_Insert+0x124> <== NOT EXECUTED if ( delta_interval == 0 || !_Watchdog_Next( after ) ) break; if ( delta_interval < after->delta_interval ) { after->delta_interval -= delta_interval; a000ceec: e063c00c rsb ip, r3, ip <== NOT EXECUTED a000cef0: e582c010 str ip, [r2, #16] <== NOT EXECUTED break; a000cef4: eaffffe7 b a000ce98 <_Watchdog_Insert+0xe0> <== NOT EXECUTED if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) { goto exit_insert; } if ( _Watchdog_Sync_level > insert_isr_nest_level ) { _Watchdog_Sync_level = insert_isr_nest_level; a000cef8: e5876000 str r6, [r7] <== NOT EXECUTED goto restart; a000cefc: eaffffbd b a000cdf8 <_Watchdog_Insert+0x40> <== NOT EXECUTED =============================================================================== a000cf74 <_Watchdog_Remove>: */ Watchdog_States _Watchdog_Remove( Watchdog_Control *the_watchdog ) { a000cf74: e52d4004 push {r4} ; (str r4, [sp, #-4]!) <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000cf78: e10f2000 mrs r2, CPSR <== NOT EXECUTED a000cf7c: e3823080 orr r3, r2, #128 ; 0x80 <== NOT EXECUTED a000cf80: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED ISR_Level level; Watchdog_States previous_state; Watchdog_Control *next_watchdog; _ISR_Disable( level ); previous_state = the_watchdog->state; a000cf84: e5903008 ldr r3, [r0, #8] <== NOT EXECUTED switch ( previous_state ) { a000cf88: e3530001 cmp r3, #1 <== NOT EXECUTED /* * It is not actually on the chain so just change the state and * the Insert operation we interrupted will be aborted. */ the_watchdog->state = WATCHDOG_INACTIVE; a000cf8c: 03a01000 moveq r1, #0 <== NOT EXECUTED a000cf90: 05801008 streq r1, [r0, #8] <== NOT EXECUTED Watchdog_States previous_state; Watchdog_Control *next_watchdog; _ISR_Disable( level ); previous_state = the_watchdog->state; switch ( previous_state ) { a000cf94: 0a000000 beq a000cf9c <_Watchdog_Remove+0x28> <== NOT EXECUTED a000cf98: 2a000006 bcs a000cfb8 <_Watchdog_Remove+0x44> <== NOT EXECUTED _Watchdog_Sync_level = _ISR_Nest_level; _Chain_Extract_unprotected( &the_watchdog->Node ); break; } the_watchdog->stop_time = _Watchdog_Ticks_since_boot; a000cf9c: e59f106c ldr r1, [pc, #108] ; a000d010 <_Watchdog_Remove+0x9c><== NOT EXECUTED a000cfa0: e5911000 ldr r1, [r1] <== NOT EXECUTED a000cfa4: e5801018 str r1, [r0, #24] <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000cfa8: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED _ISR_Enable( level ); return( previous_state ); } a000cfac: e1a00003 mov r0, r3 <== NOT EXECUTED a000cfb0: e8bd0010 pop {r4} <== NOT EXECUTED a000cfb4: e12fff1e bx lr <== NOT EXECUTED Watchdog_States previous_state; Watchdog_Control *next_watchdog; _ISR_Disable( level ); previous_state = the_watchdog->state; switch ( previous_state ) { a000cfb8: e3530003 cmp r3, #3 <== NOT EXECUTED a000cfbc: 8afffff6 bhi a000cf9c <_Watchdog_Remove+0x28> <== NOT EXECUTED } the_watchdog->stop_time = _Watchdog_Ticks_since_boot; _ISR_Enable( level ); return( previous_state ); } a000cfc0: e5901000 ldr r1, [r0] <== NOT EXECUTED break; case WATCHDOG_ACTIVE: case WATCHDOG_REMOVE_IT: the_watchdog->state = WATCHDOG_INACTIVE; a000cfc4: e3a0c000 mov ip, #0 <== NOT EXECUTED a000cfc8: e580c008 str ip, [r0, #8] <== NOT EXECUTED next_watchdog = _Watchdog_Next( the_watchdog ); if ( _Watchdog_Next(next_watchdog) ) a000cfcc: e591c000 ldr ip, [r1] <== NOT EXECUTED a000cfd0: e35c0000 cmp ip, #0 <== NOT EXECUTED next_watchdog->delta_interval += the_watchdog->delta_interval; a000cfd4: 15914010 ldrne r4, [r1, #16] <== NOT EXECUTED a000cfd8: 1590c010 ldrne ip, [r0, #16] <== NOT EXECUTED a000cfdc: 1084c00c addne ip, r4, ip <== NOT EXECUTED a000cfe0: 1581c010 strne ip, [r1, #16] <== NOT EXECUTED if ( _Watchdog_Sync_count ) a000cfe4: e59fc028 ldr ip, [pc, #40] ; a000d014 <_Watchdog_Remove+0xa0><== NOT EXECUTED a000cfe8: e59cc000 ldr ip, [ip] <== NOT EXECUTED a000cfec: e35c0000 cmp ip, #0 <== NOT EXECUTED _Watchdog_Sync_level = _ISR_Nest_level; a000cff0: 159fc020 ldrne ip, [pc, #32] ; a000d018 <_Watchdog_Remove+0xa4><== NOT EXECUTED a000cff4: 159c4000 ldrne r4, [ip] <== NOT EXECUTED a000cff8: 159fc01c ldrne ip, [pc, #28] ; a000d01c <_Watchdog_Remove+0xa8><== NOT EXECUTED a000cffc: 158c4000 strne r4, [ip] <== NOT EXECUTED { Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; a000d000: e590c004 ldr ip, [r0, #4] <== NOT EXECUTED next->previous = previous; a000d004: e581c004 str ip, [r1, #4] <== NOT EXECUTED previous->next = next; a000d008: e58c1000 str r1, [ip] <== NOT EXECUTED a000d00c: eaffffe2 b a000cf9c <_Watchdog_Remove+0x28> <== NOT EXECUTED =============================================================================== a000e540 <_Watchdog_Report>: void _Watchdog_Report( const char *name, Watchdog_Control *watch ) { a000e540: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED printk( a000e544: e591e00c ldr lr, [r1, #12] <== NOT EXECUTED void _Watchdog_Report( const char *name, Watchdog_Control *watch ) { a000e548: e24dd014 sub sp, sp, #20 <== NOT EXECUTED printk( a000e54c: e5913010 ldr r3, [r1, #16] <== NOT EXECUTED a000e550: e58de000 str lr, [sp] <== NOT EXECUTED a000e554: e58d1004 str r1, [sp, #4] <== NOT EXECUTED a000e558: e591e01c ldr lr, [r1, #28] <== NOT EXECUTED a000e55c: e250c000 subs ip, r0, #0 <== NOT EXECUTED a000e560: 059fc02c ldreq ip, [pc, #44] ; a000e594 <_Watchdog_Report+0x54><== NOT EXECUTED a000e564: e58de008 str lr, [sp, #8] <== NOT EXECUTED a000e568: e591e020 ldr lr, [r1, #32] <== NOT EXECUTED a000e56c: 01a0200c moveq r2, ip <== NOT EXECUTED a000e570: 159f2020 ldrne r2, [pc, #32] ; a000e598 <_Watchdog_Report+0x58><== NOT EXECUTED a000e574: e58de00c str lr, [sp, #12] <== NOT EXECUTED a000e578: e5911024 ldr r1, [r1, #36] ; 0x24 <== NOT EXECUTED a000e57c: e59f0018 ldr r0, [pc, #24] ; a000e59c <_Watchdog_Report+0x5c><== NOT EXECUTED a000e580: e58d1010 str r1, [sp, #16] <== NOT EXECUTED a000e584: e1a0100c mov r1, ip <== NOT EXECUTED a000e588: ebffe680 bl a0007f90 <== NOT EXECUTED watch, watch->routine, watch->id, watch->user_data ); } a000e58c: e28dd014 add sp, sp, #20 <== NOT EXECUTED a000e590: e8bd8000 pop {pc} <== NOT EXECUTED =============================================================================== a000e4c8 <_Watchdog_Report_chain>: void _Watchdog_Report_chain( const char *name, Chain_Control *header ) { a000e4c8: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED a000e4cc: e1a05000 mov r5, r0 <== NOT EXECUTED a000e4d0: e1a04001 mov r4, r1 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000e4d4: e10f6000 mrs r6, CPSR <== NOT EXECUTED a000e4d8: e3863080 orr r3, r6, #128 ; 0x80 <== NOT EXECUTED a000e4dc: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED ISR_Level level; Chain_Node *node; _ISR_Disable( level ); printk( "Watchdog Chain: %s %p\n", name, header ); a000e4e0: e59f004c ldr r0, [pc, #76] ; a000e534 <_Watchdog_Report_chain+0x6c><== NOT EXECUTED a000e4e4: e1a02004 mov r2, r4 <== NOT EXECUTED a000e4e8: e1a01005 mov r1, r5 <== NOT EXECUTED a000e4ec: ebffe6a7 bl a0007f90 <== NOT EXECUTED printk( "== end of %s \n", name ); } else { printk( "Chain is empty\n" ); } _ISR_Enable( level ); } a000e4f0: e4947004 ldr r7, [r4], #4 <== NOT EXECUTED ISR_Level level; Chain_Node *node; _ISR_Disable( level ); printk( "Watchdog Chain: %s %p\n", name, header ); if ( !_Chain_Is_empty( header ) ) { a000e4f4: e1570004 cmp r7, r4 <== NOT EXECUTED a000e4f8: 0a00000a beq a000e528 <_Watchdog_Report_chain+0x60> <== NOT EXECUTED node != _Chain_Tail(header) ; node = node->next ) { Watchdog_Control *watch = (Watchdog_Control *) node; _Watchdog_Report( NULL, watch ); a000e4fc: e1a01007 mov r1, r7 <== NOT EXECUTED a000e500: e3a00000 mov r0, #0 <== NOT EXECUTED a000e504: eb00000d bl a000e540 <_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 ) a000e508: 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 ) ; a000e50c: e1570004 cmp r7, r4 <== NOT EXECUTED a000e510: 1afffff9 bne a000e4fc <_Watchdog_Report_chain+0x34> <== NOT EXECUTED { Watchdog_Control *watch = (Watchdog_Control *) node; _Watchdog_Report( NULL, watch ); } printk( "== end of %s \n", name ); a000e514: e59f001c ldr r0, [pc, #28] ; a000e538 <_Watchdog_Report_chain+0x70><== NOT EXECUTED a000e518: e1a01005 mov r1, r5 <== NOT EXECUTED a000e51c: ebffe69b bl a0007f90 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000e520: e129f006 msr CPSR_fc, r6 <== NOT EXECUTED } else { printk( "Chain is empty\n" ); } _ISR_Enable( level ); } a000e524: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED _Watchdog_Report( NULL, watch ); } printk( "== end of %s \n", name ); } else { printk( "Chain is empty\n" ); a000e528: e59f000c ldr r0, [pc, #12] ; a000e53c <_Watchdog_Report_chain+0x74><== NOT EXECUTED a000e52c: ebffe697 bl a0007f90 <== NOT EXECUTED a000e530: eafffffa b a000e520 <_Watchdog_Report_chain+0x58> <== NOT EXECUTED =============================================================================== a000d020 <_Watchdog_Tickle>: */ void _Watchdog_Tickle( Chain_Control *header ) { a000d020: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED a000d024: e1a05000 mov r5, r0 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000d028: e10f7000 mrs r7, CPSR <== NOT EXECUTED a000d02c: e3873080 orr r3, r7, #128 ; 0x80 <== NOT EXECUTED a000d030: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED } while ( !_Chain_Is_empty( header ) && (the_watchdog->delta_interval == 0) ); leave: _ISR_Enable(level); } a000d034: e1a04000 mov r4, r0 <== NOT EXECUTED a000d038: e4943004 ldr r3, [r4], #4 <== NOT EXECUTED * volatile data - till, 2003/7 */ _ISR_Disable( level ); if ( _Chain_Is_empty( header ) ) a000d03c: e1530004 cmp r3, r4 <== NOT EXECUTED a000d040: 0a000007 beq a000d064 <_Watchdog_Tickle+0x44> <== NOT EXECUTED * to be inserted has already had its delta_interval adjusted to 0, and * so is added to the head of the chain with a delta_interval of 0. * * Steven Johnson - 12/2005 (gcc-3.2.3 -O3 on powerpc) */ if (the_watchdog->delta_interval != 0) { a000d044: e5931010 ldr r1, [r3, #16] <== NOT EXECUTED RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_First( Chain_Control *header ) { return ( (Watchdog_Control *) _Chain_First( header ) ); a000d048: e1a06003 mov r6, r3 <== NOT EXECUTED a000d04c: e3510000 cmp r1, #0 <== NOT EXECUTED a000d050: 0a000015 beq a000d0ac <_Watchdog_Tickle+0x8c> <== NOT EXECUTED the_watchdog->delta_interval--; a000d054: e2411001 sub r1, r1, #1 <== NOT EXECUTED if ( the_watchdog->delta_interval != 0 ) a000d058: e3510000 cmp r1, #0 <== NOT EXECUTED * so is added to the head of the chain with a delta_interval of 0. * * Steven Johnson - 12/2005 (gcc-3.2.3 -O3 on powerpc) */ if (the_watchdog->delta_interval != 0) { the_watchdog->delta_interval--; a000d05c: e5831010 str r1, [r3, #16] <== NOT EXECUTED if ( the_watchdog->delta_interval != 0 ) a000d060: 0a000011 beq a000d0ac <_Watchdog_Tickle+0x8c> <== NOT EXECUTED * See the comment in watchdoginsert.c and watchdogadjust.c * about why it's safe not to declare header a pointer to * volatile data - till, 2003/7 */ _ISR_Disable( level ); a000d064: e1a02007 mov r2, r7 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000d068: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED } while ( !_Chain_Is_empty( header ) && (the_watchdog->delta_interval == 0) ); leave: _ISR_Enable(level); } a000d06c: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED _ISR_Enable( level ); switch( watchdog_state ) { case WATCHDOG_ACTIVE: (*the_watchdog->routine)( a000d070: e596301c ldr r3, [r6, #28] <== NOT EXECUTED a000d074: e5960020 ldr r0, [r6, #32] <== NOT EXECUTED a000d078: e5961024 ldr r1, [r6, #36] ; 0x24 <== NOT EXECUTED a000d07c: e12fff33 blx r3 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000d080: e10f2000 mrs r2, CPSR <== NOT EXECUTED a000d084: e3823080 orr r3, r2, #128 ; 0x80 <== NOT EXECUTED a000d088: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED } while ( !_Chain_Is_empty( header ) && (the_watchdog->delta_interval == 0) ); leave: _ISR_Enable(level); } a000d08c: e5953000 ldr r3, [r5] <== NOT EXECUTED a000d090: e1a07002 mov r7, r2 <== NOT EXECUTED _ISR_Disable( level ); the_watchdog = _Watchdog_First( header ); } while ( !_Chain_Is_empty( header ) && (the_watchdog->delta_interval == 0) ); a000d094: e1530004 cmp r3, r4 <== NOT EXECUTED a000d098: e1a06003 mov r6, r3 <== NOT EXECUTED a000d09c: 0afffff1 beq a000d068 <_Watchdog_Tickle+0x48> <== NOT EXECUTED } _ISR_Disable( level ); the_watchdog = _Watchdog_First( header ); } while ( !_Chain_Is_empty( header ) && a000d0a0: e5933010 ldr r3, [r3, #16] <== NOT EXECUTED a000d0a4: e3530000 cmp r3, #0 <== NOT EXECUTED a000d0a8: 1affffee bne a000d068 <_Watchdog_Tickle+0x48> <== NOT EXECUTED if ( the_watchdog->delta_interval != 0 ) goto leave; } do { watchdog_state = _Watchdog_Remove( the_watchdog ); a000d0ac: e1a00006 mov r0, r6 <== NOT EXECUTED a000d0b0: ebffffaf bl a000cf74 <_Watchdog_Remove> <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000d0b4: e129f007 msr CPSR_fc, r7 <== NOT EXECUTED _ISR_Enable( level ); switch( watchdog_state ) { a000d0b8: e3500002 cmp r0, #2 <== NOT EXECUTED a000d0bc: 1affffef bne a000d080 <_Watchdog_Tickle+0x60> <== NOT EXECUTED a000d0c0: eaffffea b a000d070 <_Watchdog_Tickle+0x50> <== NOT EXECUTED =============================================================================== a000d150 <_Workspace_Allocate_or_fatal_error>: a000d150: e3a02000 mov r2, #0 * _Workspace_Allocate_or_fatal_error */ void *_Workspace_Allocate_or_fatal_error( size_t size ) { a000d154: e1a01000 mov r1, r0 a000d158: e52de004 push {lr} ; (str lr, [sp, #-4]!) a000d15c: e59f0018 ldr r0, [pc, #24] ; a000d17c <_Workspace_Allocate_or_fatal_error+0x2c> a000d160: e1a03002 mov r3, r2 a000d164: eb000858 bl a000f2cc <_Heap_Allocate_aligned_with_boundary> __builtin_return_address( 1 ), memory ); #endif if ( memory == NULL ) a000d168: e3500000 cmp r0, #0 a000d16c: 149df004 popne {pc} ; (ldrne pc, [sp], #4) _Internal_error_Occurred( a000d170: e3a01001 mov r1, #1 <== NOT EXECUTED a000d174: e3a02003 mov r2, #3 <== NOT EXECUTED a000d178: ebfff6f6 bl a000ad58 <_Internal_error_Occurred> <== NOT EXECUTED =============================================================================== a000d0c4 <_Workspace_Handler_initialization>: * _Workspace_Handler_initialization */ void _Workspace_Handler_initialization(void) { uintptr_t memory_available = 0; void *starting_address = Configuration.work_space_start; a000d0c4: e59f3054 ldr r3, [pc, #84] ; a000d120 <_Workspace_Handler_initialization+0x5c> /* * _Workspace_Handler_initialization */ void _Workspace_Handler_initialization(void) { a000d0c8: e92d4030 push {r4, r5, lr} uintptr_t memory_available = 0; void *starting_address = Configuration.work_space_start; uintptr_t size = Configuration.work_space_size; if ( Configuration.do_zero_of_workspace ) a000d0cc: e5d32028 ldrb r2, [r3, #40] ; 0x28 * _Workspace_Handler_initialization */ void _Workspace_Handler_initialization(void) { uintptr_t memory_available = 0; void *starting_address = Configuration.work_space_start; a000d0d0: e5935000 ldr r5, [r3] uintptr_t size = Configuration.work_space_size; a000d0d4: e5934004 ldr r4, [r3, #4] if ( Configuration.do_zero_of_workspace ) a000d0d8: e3520000 cmp r2, #0 a000d0dc: 1a000007 bne a000d100 <_Workspace_Handler_initialization+0x3c> memset( starting_address, 0, size ); memory_available = _Heap_Initialize( a000d0e0: e59f003c ldr r0, [pc, #60] ; a000d124 <_Workspace_Handler_initialization+0x60> a000d0e4: e1a01005 mov r1, r5 a000d0e8: e1a02004 mov r2, r4 a000d0ec: e3a03008 mov r3, #8 a000d0f0: ebfff67d bl a000aaec <_Heap_Initialize> starting_address, size, CPU_HEAP_ALIGNMENT ); if ( memory_available == 0 ) a000d0f4: e3500000 cmp r0, #0 a000d0f8: 0a000005 beq a000d114 <_Workspace_Handler_initialization+0x50> a000d0fc: e8bd8030 pop {r4, r5, pc} uintptr_t memory_available = 0; void *starting_address = Configuration.work_space_start; uintptr_t size = Configuration.work_space_size; if ( Configuration.do_zero_of_workspace ) memset( starting_address, 0, size ); a000d100: e1a00005 mov r0, r5 a000d104: e3a01000 mov r1, #0 a000d108: e1a02004 mov r2, r4 a000d10c: eb001258 bl a0011a74 a000d110: eafffff2 b a000d0e0 <_Workspace_Handler_initialization+0x1c> size, CPU_HEAP_ALIGNMENT ); if ( memory_available == 0 ) _Internal_error_Occurred( a000d114: e3a01001 mov r1, #1 <== NOT EXECUTED a000d118: e3a02002 mov r2, #2 <== NOT EXECUTED a000d11c: ebfff70d bl a000ad58 <_Internal_error_Occurred> <== NOT EXECUTED =============================================================================== a0011884 : rtems_name name, rtems_attribute attribute_set, uint32_t maximum_waiters, rtems_id *id ) { a0011884: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED Barrier_Control *the_barrier; CORE_barrier_Attributes the_attributes; if ( !rtems_is_name_valid( name ) ) a0011888: e2504000 subs r4, r0, #0 <== NOT EXECUTED rtems_name name, rtems_attribute attribute_set, uint32_t maximum_waiters, rtems_id *id ) { a001188c: e24dd008 sub sp, sp, #8 <== NOT EXECUTED a0011890: e1a05001 mov r5, r1 <== NOT EXECUTED a0011894: e1a07003 mov r7, r3 <== NOT EXECUTED Barrier_Control *the_barrier; CORE_barrier_Attributes the_attributes; if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; a0011898: 03a00003 moveq r0, #3 <== NOT EXECUTED ) { Barrier_Control *the_barrier; CORE_barrier_Attributes the_attributes; if ( !rtems_is_name_valid( name ) ) a001189c: 0a00001e beq a001191c <== NOT EXECUTED return RTEMS_INVALID_NAME; if ( !id ) a00118a0: e3530000 cmp r3, #0 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; a00118a4: 03a00009 moveq r0, #9 <== NOT EXECUTED CORE_barrier_Attributes the_attributes; if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; if ( !id ) a00118a8: 0a00001b beq a001191c <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; /* Initialize core barrier attributes */ if ( _Attributes_Is_barrier_automatic( attribute_set ) ) { a00118ac: e3110010 tst r1, #16 <== NOT EXECUTED a00118b0: 0a00001b beq a0011924 <== NOT EXECUTED the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE; a00118b4: e3a03000 mov r3, #0 <== NOT EXECUTED if ( maximum_waiters == 0 ) a00118b8: e3520000 cmp r2, #0 <== NOT EXECUTED if ( !id ) return RTEMS_INVALID_ADDRESS; /* Initialize core barrier attributes */ if ( _Attributes_Is_barrier_automatic( attribute_set ) ) { the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE; a00118bc: e58d3000 str r3, [sp] <== NOT EXECUTED if ( maximum_waiters == 0 ) a00118c0: 0a00001a beq a0011930 <== NOT EXECUTED a00118c4: e59f3078 ldr r3, [pc, #120] ; a0011944 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; } else the_attributes.discipline = CORE_BARRIER_MANUAL_RELEASE; the_attributes.maximum_count = maximum_waiters; a00118c8: e58d2004 str r2, [sp, #4] <== NOT EXECUTED a00118cc: e5932000 ldr r2, [r3] <== NOT EXECUTED a00118d0: e2822001 add r2, r2, #1 <== NOT EXECUTED a00118d4: e5832000 str r2, [r3] <== NOT EXECUTED * This function allocates a barrier control block from * the inactive chain of free barrier control blocks. */ RTEMS_INLINE_ROUTINE Barrier_Control *_Barrier_Allocate( void ) { return (Barrier_Control *) _Objects_Allocate( &_Barrier_Information ); a00118d8: e59f8068 ldr r8, [pc, #104] ; a0011948 <== NOT EXECUTED a00118dc: e1a00008 mov r0, r8 <== NOT EXECUTED a00118e0: ebffed8d bl a000cf1c <_Objects_Allocate> <== NOT EXECUTED _Thread_Disable_dispatch(); /* prevents deletion */ the_barrier = _Barrier_Allocate(); if ( !the_barrier ) { a00118e4: e2506000 subs r6, r0, #0 <== NOT EXECUTED a00118e8: 0a000012 beq a0011938 <== NOT EXECUTED return RTEMS_TOO_MANY; } the_barrier->attribute_set = attribute_set; _CORE_barrier_Initialize( &the_barrier->Barrier, &the_attributes ); a00118ec: e2860014 add r0, r6, #20 <== NOT EXECUTED a00118f0: e1a0100d mov r1, sp <== NOT EXECUTED if ( !the_barrier ) { _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } the_barrier->attribute_set = attribute_set; a00118f4: e5865010 str r5, [r6, #16] <== NOT EXECUTED _CORE_barrier_Initialize( &the_barrier->Barrier, &the_attributes ); a00118f8: eb00024c bl a0012230 <_CORE_barrier_Initialize> <== NOT EXECUTED Objects_Name name ) { _Objects_Set_local_object( information, _Objects_Get_index( the_object->id ), a00118fc: e5963008 ldr r3, [r6, #8] <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; a0011900: e598201c ldr r2, [r8, #28] <== NOT EXECUTED Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( a0011904: e1a01803 lsl r1, r3, #16 <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; a0011908: e7826721 str r6, [r2, r1, lsr #14] <== NOT EXECUTED information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; a001190c: e586400c str r4, [r6, #12] <== NOT EXECUTED &_Barrier_Information, &the_barrier->Object, (Objects_Name) name ); *id = the_barrier->Object.id; a0011910: e5873000 str r3, [r7] <== NOT EXECUTED _Thread_Enable_dispatch(); a0011914: ebfff1f2 bl a000e0e4 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0011918: e3a00000 mov r0, #0 <== NOT EXECUTED } a001191c: e28dd008 add sp, sp, #8 <== NOT EXECUTED a0011920: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED if ( _Attributes_Is_barrier_automatic( attribute_set ) ) { the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE; if ( maximum_waiters == 0 ) return RTEMS_INVALID_NUMBER; } else the_attributes.discipline = CORE_BARRIER_MANUAL_RELEASE; a0011924: e3a03001 mov r3, #1 <== NOT EXECUTED a0011928: e58d3000 str r3, [sp] <== NOT EXECUTED a001192c: eaffffe4 b a00118c4 <== NOT EXECUTED /* Initialize core barrier attributes */ if ( _Attributes_Is_barrier_automatic( attribute_set ) ) { the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE; if ( maximum_waiters == 0 ) return RTEMS_INVALID_NUMBER; a0011930: e3a0000a mov r0, #10 <== NOT EXECUTED a0011934: eafffff8 b a001191c <== NOT EXECUTED _Thread_Disable_dispatch(); /* prevents deletion */ the_barrier = _Barrier_Allocate(); if ( !the_barrier ) { _Thread_Enable_dispatch(); a0011938: ebfff1e9 bl a000e0e4 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_TOO_MANY; a001193c: e3a00005 mov r0, #5 <== NOT EXECUTED a0011940: eafffff5 b a001191c <== NOT EXECUTED =============================================================================== a001194c : */ rtems_status_code rtems_barrier_delete( rtems_id id ) { a001194c: e92d4030 push {r4, r5, lr} <== NOT EXECUTED a0011950: e24dd004 sub sp, sp, #4 <== NOT EXECUTED a0011954: e1a01000 mov r1, r0 <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Barrier_Control *) _Objects_Get( &_Barrier_Information, id, location ); a0011958: e1a0200d mov r2, sp <== NOT EXECUTED a001195c: e59f004c ldr r0, [pc, #76] ; a00119b0 <== NOT EXECUTED a0011960: ebffeea0 bl a000d3e8 <_Objects_Get> <== NOT EXECUTED Barrier_Control *the_barrier; Objects_Locations location; the_barrier = _Barrier_Get( id, &location ); switch ( location ) { a0011964: e59d4000 ldr r4, [sp] <== NOT EXECUTED a0011968: e1a05000 mov r5, r0 <== NOT EXECUTED a001196c: e3540000 cmp r4, #0 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a0011970: 13a00004 movne r0, #4 <== NOT EXECUTED { Barrier_Control *the_barrier; Objects_Locations location; the_barrier = _Barrier_Get( id, &location ); switch ( location ) { a0011974: 1a00000b bne a00119a8 <== NOT EXECUTED case OBJECTS_LOCAL: _CORE_barrier_Flush( a0011978: e3a02002 mov r2, #2 <== NOT EXECUTED a001197c: e2850014 add r0, r5, #20 <== NOT EXECUTED a0011980: e1a01004 mov r1, r4 <== NOT EXECUTED a0011984: ebfff397 bl a000e7e8 <_Thread_queue_Flush> <== NOT EXECUTED &the_barrier->Barrier, NULL, CORE_BARRIER_WAS_DELETED ); _Objects_Close( &_Barrier_Information, &the_barrier->Object ); a0011988: e1a01005 mov r1, r5 <== NOT EXECUTED a001198c: e59f001c ldr r0, [pc, #28] ; a00119b0 <== NOT EXECUTED a0011990: ebffed86 bl a000cfb0 <_Objects_Close> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Barrier_Free ( Barrier_Control *the_barrier ) { _Objects_Free( &_Barrier_Information, &the_barrier->Object ); a0011994: e59f0014 ldr r0, [pc, #20] ; a00119b0 <== NOT EXECUTED a0011998: e1a01005 mov r1, r5 <== NOT EXECUTED a001199c: ebffee38 bl a000d284 <_Objects_Free> <== NOT EXECUTED _Barrier_Free( the_barrier ); _Thread_Enable_dispatch(); a00119a0: ebfff1cf bl a000e0e4 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a00119a4: e1a00004 mov r0, r4 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a00119a8: e28dd004 add sp, sp, #4 <== NOT EXECUTED a00119ac: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED =============================================================================== a000a9fc : rtems_status_code rtems_barrier_ident( rtems_name name, rtems_id *id ) { a000a9fc: e1a02000 mov r2, r0 <== NOT EXECUTED a000aa00: e1a03001 mov r3, r1 <== NOT EXECUTED a000aa04: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( a000aa08: e1a01002 mov r1, r2 <== NOT EXECUTED a000aa0c: e59f0010 ldr r0, [pc, #16] ; a000aa24 <== NOT EXECUTED a000aa10: e3e02102 mvn r2, #-2147483648 ; 0x80000000 <== NOT EXECUTED a000aa14: eb00086b bl a000cbc8 <_Objects_Name_to_id_u32> <== NOT EXECUTED name, OBJECTS_SEARCH_LOCAL_NODE, id ); return _Status_Object_name_errors_to_status[ status ]; a000aa18: e59f3008 ldr r3, [pc, #8] ; a000aa28 <== NOT EXECUTED } a000aa1c: e7930100 ldr r0, [r3, r0, lsl #2] <== NOT EXECUTED a000aa20: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED =============================================================================== a00119fc : rtems_status_code rtems_barrier_release( rtems_id id, uint32_t *released ) { a00119fc: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED Barrier_Control *the_barrier; Objects_Locations location; if ( !released ) a0011a00: e2516000 subs r6, r1, #0 <== NOT EXECUTED rtems_status_code rtems_barrier_release( rtems_id id, uint32_t *released ) { a0011a04: e1a05000 mov r5, r0 <== NOT EXECUTED a0011a08: e24dd004 sub sp, sp, #4 <== NOT EXECUTED Barrier_Control *the_barrier; Objects_Locations location; if ( !released ) return RTEMS_INVALID_ADDRESS; a0011a0c: 03a00009 moveq r0, #9 <== NOT EXECUTED ) { Barrier_Control *the_barrier; Objects_Locations location; if ( !released ) a0011a10: 0a00000e beq a0011a50 <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Barrier_Control *) _Objects_Get( &_Barrier_Information, id, location ); a0011a14: e59f003c ldr r0, [pc, #60] ; a0011a58 <== NOT EXECUTED a0011a18: e1a01005 mov r1, r5 <== NOT EXECUTED a0011a1c: e1a0200d mov r2, sp <== NOT EXECUTED a0011a20: ebffee70 bl a000d3e8 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_barrier = _Barrier_Get( id, &location ); switch ( location ) { a0011a24: e59d4000 ldr r4, [sp] <== NOT EXECUTED a0011a28: e3540000 cmp r4, #0 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a0011a2c: 13a00004 movne r0, #4 <== NOT EXECUTED if ( !released ) return RTEMS_INVALID_ADDRESS; the_barrier = _Barrier_Get( id, &location ); switch ( location ) { a0011a30: 1a000006 bne a0011a50 <== NOT EXECUTED case OBJECTS_LOCAL: *released = _CORE_barrier_Release( &the_barrier->Barrier, id, NULL ); a0011a34: e1a01005 mov r1, r5 <== NOT EXECUTED a0011a38: e1a02004 mov r2, r4 <== NOT EXECUTED a0011a3c: e2800014 add r0, r0, #20 <== NOT EXECUTED a0011a40: eb000205 bl a001225c <_CORE_barrier_Release> <== NOT EXECUTED a0011a44: e5860000 str r0, [r6] <== NOT EXECUTED _Thread_Enable_dispatch(); a0011a48: ebfff1a5 bl a000e0e4 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0011a4c: e1a00004 mov r0, r4 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a0011a50: e28dd004 add sp, sp, #4 <== NOT EXECUTED a0011a54: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED =============================================================================== a0011a5c : rtems_status_code rtems_barrier_wait( rtems_id id, rtems_interval timeout ) { a0011a5c: e92d4030 push {r4, r5, lr} <== NOT EXECUTED a0011a60: e1a04000 mov r4, r0 <== NOT EXECUTED a0011a64: e24dd008 sub sp, sp, #8 <== NOT EXECUTED a0011a68: e1a05001 mov r5, r1 <== NOT EXECUTED a0011a6c: e59f004c ldr r0, [pc, #76] ; a0011ac0 <== NOT EXECUTED a0011a70: e1a01004 mov r1, r4 <== NOT EXECUTED a0011a74: e28d2004 add r2, sp, #4 <== NOT EXECUTED a0011a78: ebffee5a bl a000d3e8 <_Objects_Get> <== NOT EXECUTED Barrier_Control *the_barrier; Objects_Locations location; the_barrier = _Barrier_Get( id, &location ); switch ( location ) { a0011a7c: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED a0011a80: e3530000 cmp r3, #0 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a0011a84: 13a00004 movne r0, #4 <== NOT EXECUTED { Barrier_Control *the_barrier; Objects_Locations location; the_barrier = _Barrier_Get( id, &location ); switch ( location ) { a0011a88: 1a00000a bne a0011ab8 <== NOT EXECUTED case OBJECTS_LOCAL: _CORE_barrier_Wait( a0011a8c: e2800014 add r0, r0, #20 <== NOT EXECUTED a0011a90: e58d3000 str r3, [sp] <== NOT EXECUTED a0011a94: e3a02001 mov r2, #1 <== NOT EXECUTED a0011a98: e1a03005 mov r3, r5 <== NOT EXECUTED a0011a9c: e1a01004 mov r1, r4 <== NOT EXECUTED a0011aa0: eb0001f9 bl a001228c <_CORE_barrier_Wait> <== NOT EXECUTED id, true, timeout, NULL ); _Thread_Enable_dispatch(); a0011aa4: ebfff18e bl a000e0e4 <_Thread_Enable_dispatch> <== NOT EXECUTED return _Barrier_Translate_core_barrier_return_code( _Thread_Executing->Wait.return_code ); a0011aa8: e59f3014 ldr r3, [pc, #20] ; a0011ac4 <== NOT EXECUTED a0011aac: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED true, timeout, NULL ); _Thread_Enable_dispatch(); return _Barrier_Translate_core_barrier_return_code( a0011ab0: e5930034 ldr r0, [r3, #52] ; 0x34 <== NOT EXECUTED a0011ab4: eb00047e bl a0012cb4 <_Barrier_Translate_core_barrier_return_code><== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a0011ab8: e28dd008 add sp, sp, #8 <== NOT EXECUTED a0011abc: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED =============================================================================== a000b8b0 : uint32_t the_class, uint32_t node, uint32_t index ) { return (( (Objects_Id) the_api ) << OBJECTS_API_START_BIT) | a000b8b0: e1a00c00 lsl r0, r0, #24 <== NOT EXECUTED a000b8b4: e1800d81 orr r0, r0, r1, lsl #27 <== NOT EXECUTED (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) | a000b8b8: e1800003 orr r0, r0, r3 <== NOT EXECUTED uint32_t node, uint32_t index ) { return _Objects_Build_id( api, class, node, index ); } a000b8bc: e1800802 orr r0, r0, r2, lsl #16 <== NOT EXECUTED a000b8c0: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000b8c4 : char C1, char C2, char C3, char C4 ) { a000b8c4: e1a01801 lsl r1, r1, #16 <== NOT EXECUTED a000b8c8: e1a02402 lsl r2, r2, #8 <== NOT EXECUTED return _Objects_Build_name( C1, C2, C3, C4 ); a000b8cc: e20118ff and r1, r1, #16711680 ; 0xff0000 <== NOT EXECUTED a000b8d0: e1811c00 orr r1, r1, r0, lsl #24 <== NOT EXECUTED a000b8d4: e2022cff and r2, r2, #65280 ; 0xff00 <== NOT EXECUTED char C1, char C2, char C3, char C4 ) { a000b8d8: e20330ff and r3, r3, #255 ; 0xff <== NOT EXECUTED return _Objects_Build_name( C1, C2, C3, C4 ); a000b8dc: e1811002 orr r1, r1, r2 <== NOT EXECUTED } a000b8e0: e1810003 orr r0, r1, r3 <== NOT EXECUTED a000b8e4: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000a93c : rtems_chain_control *chain, rtems_chain_node *node, rtems_id task, rtems_event_set events ) { a000a93c: e92d4030 push {r4, r5, lr} <== NOT EXECUTED a000a940: e1a04002 mov r4, r2 <== NOT EXECUTED a000a944: 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 ); a000a948: eb000137 bl a000ae2c <_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 ) { a000a94c: e3500000 cmp r0, #0 <== NOT EXECUTED a000a950: 1a000000 bne a000a958 <== NOT EXECUTED sc = rtems_event_send( task, events ); } return sc; } a000a954: e8bd8030 pop {r4, r5, pc} <== 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 ); a000a958: e1a00004 mov r0, r4 <== NOT EXECUTED a000a95c: e1a01005 mov r1, r5 <== NOT EXECUTED } return sc; } a000a960: 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 ); a000a964: eafffd86 b a0009f84 <== NOT EXECUTED =============================================================================== a000a968 : rtems_chain_control *chain, rtems_id task, rtems_event_set events, rtems_chain_node **node ) { a000a968: e92d4030 push {r4, r5, lr} <== NOT EXECUTED a000a96c: 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 ); a000a970: e1a01003 mov r1, r3 <== NOT EXECUTED a000a974: e1a05002 mov r5, r2 <== NOT EXECUTED a000a978: eb00014e bl a000aeb8 <_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 ) { a000a97c: e3500000 cmp r0, #0 <== NOT EXECUTED a000a980: 1a000000 bne a000a988 <== NOT EXECUTED sc = rtems_event_send( task, events ); } return sc; } a000a984: e8bd8030 pop {r4, r5, pc} <== 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 ); a000a988: e1a00004 mov r0, r4 <== NOT EXECUTED a000a98c: e1a01005 mov r1, r5 <== NOT EXECUTED } return sc; } a000a990: 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 ); a000a994: eafffd7a b a0009f84 <== NOT EXECUTED =============================================================================== a000a998 : rtems_chain_control *chain, rtems_event_set events, rtems_interval timeout, rtems_chain_node **node_ptr ) { a000a998: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED a000a99c: e24dd004 sub sp, sp, #4 <== NOT EXECUTED a000a9a0: e1a07000 mov r7, r0 <== NOT EXECUTED a000a9a4: e1a06001 mov r6, r1 <== NOT EXECUTED a000a9a8: e1a05002 mov r5, r2 <== NOT EXECUTED a000a9ac: e1a0a003 mov sl, r3 <== NOT EXECUTED while ( sc == RTEMS_SUCCESSFUL && (node = rtems_chain_get( chain )) == NULL ) { rtems_event_set out; sc = rtems_event_receive( a000a9b0: e1a0800d mov r8, sp <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get( rtems_chain_control *the_chain ) { return _Chain_Get( the_chain ); a000a9b4: e1a00007 mov r0, r7 <== NOT EXECUTED a000a9b8: eb000153 bl a000af0c <_Chain_Get> <== NOT EXECUTED rtems_status_code sc = RTEMS_SUCCESSFUL; rtems_chain_node *node = NULL; while ( sc == RTEMS_SUCCESSFUL && (node = rtems_chain_get( chain )) == NULL a000a9bc: e2504000 subs r4, r0, #0 <== NOT EXECUTED ) { rtems_event_set out; sc = rtems_event_receive( a000a9c0: e1a02005 mov r2, r5 <== NOT EXECUTED a000a9c4: e1a0300d mov r3, sp <== NOT EXECUTED a000a9c8: e1a01004 mov r1, r4 <== NOT EXECUTED a000a9cc: e1a00006 mov r0, r6 <== NOT EXECUTED rtems_status_code sc = RTEMS_SUCCESSFUL; rtems_chain_node *node = NULL; while ( sc == RTEMS_SUCCESSFUL && (node = rtems_chain_get( chain )) == NULL a000a9d0: 1a000005 bne a000a9ec <== NOT EXECUTED ) { rtems_event_set out; sc = rtems_event_receive( a000a9d4: ebfffd0d bl a0009e10 <== NOT EXECUTED ) { rtems_status_code sc = RTEMS_SUCCESSFUL; rtems_chain_node *node = NULL; while ( a000a9d8: e3500000 cmp r0, #0 <== NOT EXECUTED a000a9dc: 0afffff4 beq a000a9b4 <== NOT EXECUTED timeout, &out ); } *node_ptr = node; a000a9e0: e58a4000 str r4, [sl] <== NOT EXECUTED return sc; } a000a9e4: e28dd004 add sp, sp, #4 <== NOT EXECUTED a000a9e8: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED rtems_status_code sc = RTEMS_SUCCESSFUL; rtems_chain_node *node = NULL; while ( sc == RTEMS_SUCCESSFUL && (node = rtems_chain_get( chain )) == NULL a000a9ec: e3a00000 mov r0, #0 <== NOT EXECUTED a000a9f0: eafffffa b a000a9e0 <== NOT EXECUTED =============================================================================== a000a9f4 : rtems_chain_control *chain, rtems_chain_node *node, rtems_id task, rtems_event_set events ) { a000a9f4: e92d4030 push {r4, r5, lr} <== NOT EXECUTED a000a9f8: e1a04002 mov r4, r2 <== NOT EXECUTED a000a9fc: 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 ); a000aa00: eb000158 bl a000af68 <_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) { a000aa04: e3500000 cmp r0, #0 <== NOT EXECUTED a000aa08: 1a000000 bne a000aa10 <== NOT EXECUTED sc = rtems_event_send( task, events ); } return sc; } a000aa0c: e8bd8030 pop {r4, r5, pc} <== 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 ); a000aa10: e1a00004 mov r0, r4 <== NOT EXECUTED a000aa14: e1a01005 mov r1, r5 <== NOT EXECUTED } return sc; } a000aa18: 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 ); a000aa1c: eafffd58 b a0009f84 <== NOT EXECUTED =============================================================================== a0016dc8 : rtems_status_code rtems_clock_get( rtems_clock_get_options option, void *time_buffer ) { a0016dc8: e92d4010 push {r4, lr} <== NOT EXECUTED if ( !time_buffer ) a0016dcc: e2514000 subs r4, r1, #0 <== NOT EXECUTED a0016dd0: 0a000012 beq a0016e20 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( option == RTEMS_CLOCK_GET_TOD ) a0016dd4: e3500000 cmp r0, #0 <== NOT EXECUTED a0016dd8: 0a00000d beq a0016e14 <== NOT EXECUTED return rtems_clock_get_tod( (rtems_time_of_day *)time_buffer ); if ( option == RTEMS_CLOCK_GET_SECONDS_SINCE_EPOCH ) a0016ddc: e3500001 cmp r0, #1 <== NOT EXECUTED a0016de0: 0a000011 beq a0016e2c <== NOT EXECUTED return rtems_clock_get_seconds_since_epoch((rtems_interval *)time_buffer); if ( option == RTEMS_CLOCK_GET_TICKS_SINCE_BOOT ) { a0016de4: e3500002 cmp r0, #2 <== NOT EXECUTED a0016de8: 0a000012 beq a0016e38 <== NOT EXECUTED *interval = rtems_clock_get_ticks_since_boot(); return RTEMS_SUCCESSFUL; } if ( option == RTEMS_CLOCK_GET_TICKS_PER_SECOND ) { a0016dec: e3500003 cmp r0, #3 <== NOT EXECUTED a0016df0: 0a000014 beq a0016e48 <== NOT EXECUTED *interval = rtems_clock_get_ticks_per_second(); return RTEMS_SUCCESSFUL; } if ( option == RTEMS_CLOCK_GET_TIME_VALUE ) a0016df4: e3500004 cmp r0, #4 <== NOT EXECUTED return rtems_clock_get_tod_timeval( (struct timeval *)time_buffer ); return RTEMS_INVALID_NUMBER; a0016df8: 13a0300a movne r3, #10 <== NOT EXECUTED *interval = rtems_clock_get_ticks_per_second(); return RTEMS_SUCCESSFUL; } if ( option == RTEMS_CLOCK_GET_TIME_VALUE ) a0016dfc: 0a000001 beq a0016e08 <== NOT EXECUTED return rtems_clock_get_tod_timeval( (struct timeval *)time_buffer ); return RTEMS_INVALID_NUMBER; } a0016e00: e1a00003 mov r0, r3 <== NOT EXECUTED a0016e04: e8bd8010 pop {r4, pc} <== 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 ); a0016e08: e1a00004 mov r0, r4 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; } a0016e0c: 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 ); a0016e10: ea000060 b a0016f98 <== NOT EXECUTED { if ( !time_buffer ) return RTEMS_INVALID_ADDRESS; if ( option == RTEMS_CLOCK_GET_TOD ) return rtems_clock_get_tod( (rtems_time_of_day *)time_buffer ); a0016e14: e1a00004 mov r0, r4 <== NOT EXECUTED if ( option == RTEMS_CLOCK_GET_TIME_VALUE ) return rtems_clock_get_tod_timeval( (struct timeval *)time_buffer ); return RTEMS_INVALID_NUMBER; } a0016e18: e8bd4010 pop {r4, lr} <== NOT EXECUTED { if ( !time_buffer ) return RTEMS_INVALID_ADDRESS; if ( option == RTEMS_CLOCK_GET_TOD ) return rtems_clock_get_tod( (rtems_time_of_day *)time_buffer ); a0016e1c: ea000027 b a0016ec0 <== NOT EXECUTED rtems_clock_get_options option, void *time_buffer ) { if ( !time_buffer ) return RTEMS_INVALID_ADDRESS; a0016e20: e3a03009 mov r3, #9 <== NOT EXECUTED if ( option == RTEMS_CLOCK_GET_TIME_VALUE ) return rtems_clock_get_tod_timeval( (struct timeval *)time_buffer ); return RTEMS_INVALID_NUMBER; } a0016e24: e1a00003 mov r0, r3 <== NOT EXECUTED a0016e28: e8bd8010 pop {r4, pc} <== NOT EXECUTED if ( option == RTEMS_CLOCK_GET_TOD ) return rtems_clock_get_tod( (rtems_time_of_day *)time_buffer ); if ( option == RTEMS_CLOCK_GET_SECONDS_SINCE_EPOCH ) return rtems_clock_get_seconds_since_epoch((rtems_interval *)time_buffer); a0016e2c: e1a00004 mov r0, r4 <== NOT EXECUTED if ( option == RTEMS_CLOCK_GET_TIME_VALUE ) return rtems_clock_get_tod_timeval( (struct timeval *)time_buffer ); return RTEMS_INVALID_NUMBER; } a0016e30: e8bd4010 pop {r4, lr} <== NOT EXECUTED if ( option == RTEMS_CLOCK_GET_TOD ) return rtems_clock_get_tod( (rtems_time_of_day *)time_buffer ); if ( option == RTEMS_CLOCK_GET_SECONDS_SINCE_EPOCH ) return rtems_clock_get_seconds_since_epoch((rtems_interval *)time_buffer); a0016e34: ea000007 b a0016e58 <== NOT EXECUTED if ( option == RTEMS_CLOCK_GET_TICKS_SINCE_BOOT ) { rtems_interval *interval = (rtems_interval *)time_buffer; *interval = rtems_clock_get_ticks_since_boot(); a0016e38: eb00001c bl a0016eb0 <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0016e3c: e3a03000 mov r3, #0 <== NOT EXECUTED return rtems_clock_get_seconds_since_epoch((rtems_interval *)time_buffer); if ( option == RTEMS_CLOCK_GET_TICKS_SINCE_BOOT ) { rtems_interval *interval = (rtems_interval *)time_buffer; *interval = rtems_clock_get_ticks_since_boot(); a0016e40: e5840000 str r0, [r4] <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0016e44: eaffffed b a0016e00 <== NOT EXECUTED } if ( option == RTEMS_CLOCK_GET_TICKS_PER_SECOND ) { rtems_interval *interval = (rtems_interval *)time_buffer; *interval = rtems_clock_get_ticks_per_second(); a0016e48: eb000010 bl a0016e90 <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0016e4c: e3a03000 mov r3, #0 <== NOT EXECUTED } if ( option == RTEMS_CLOCK_GET_TICKS_PER_SECOND ) { rtems_interval *interval = (rtems_interval *)time_buffer; *interval = rtems_clock_get_ticks_per_second(); a0016e50: e5840000 str r0, [r4] <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0016e54: eaffffe9 b a0016e00 <== NOT EXECUTED =============================================================================== a000a830 : rtems_status_code rtems_clock_get_seconds_since_epoch( rtems_interval *the_interval ) { if ( !the_interval ) a000a830: e2502000 subs r2, r0, #0 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; a000a834: 03a00009 moveq r0, #9 <== NOT EXECUTED rtems_status_code rtems_clock_get_seconds_since_epoch( rtems_interval *the_interval ) { if ( !the_interval ) a000a838: 012fff1e bxeq lr <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !_TOD_Is_set ) a000a83c: e59f301c ldr r3, [pc, #28] ; a000a860 <== NOT EXECUTED a000a840: e5d33000 ldrb r3, [r3] <== NOT EXECUTED a000a844: e3530000 cmp r3, #0 <== NOT EXECUTED return RTEMS_NOT_DEFINED; *the_interval = _TOD_Seconds_since_epoch(); a000a848: 159f3014 ldrne r3, [pc, #20] ; a000a864 <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000a84c: 13a00000 movne r0, #0 <== NOT EXECUTED { if ( !the_interval ) return RTEMS_INVALID_ADDRESS; if ( !_TOD_Is_set ) return RTEMS_NOT_DEFINED; a000a850: 03a0000b moveq r0, #11 <== NOT EXECUTED *the_interval = _TOD_Seconds_since_epoch(); a000a854: 15933000 ldrne r3, [r3] <== NOT EXECUTED a000a858: 15823000 strne r3, [r2] <== NOT EXECUTED return RTEMS_SUCCESSFUL; } a000a85c: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a00093cc : #include #include rtems_interval rtems_clock_get_ticks_per_second(void) { return TOD_MICROSECONDS_PER_SECOND / a00093cc: e59f3014 ldr r3, [pc, #20] ; a00093e8 <== NOT EXECUTED a00093d0: e3a0093d mov r0, #999424 ; 0xf4000 <== NOT EXECUTED #include #include #include rtems_interval rtems_clock_get_ticks_per_second(void) { a00093d4: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED return TOD_MICROSECONDS_PER_SECOND / a00093d8: e593100c ldr r1, [r3, #12] <== NOT EXECUTED a00093dc: e2800d09 add r0, r0, #576 ; 0x240 <== NOT EXECUTED a00093e0: eb002d01 bl a00147ec <__aeabi_uidiv> <== NOT EXECUTED rtems_configuration_get_microseconds_per_tick(); } a00093e4: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED =============================================================================== a00093ec : #include #include rtems_interval rtems_clock_get_ticks_since_boot(void) { return _Watchdog_Ticks_since_boot; a00093ec: e59f3004 ldr r3, [pc, #4] ; a00093f8 <== NOT EXECUTED a00093f0: e5930000 ldr r0, [r3] <== NOT EXECUTED } a00093f4: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000a898 : #include rtems_status_code rtems_clock_get_tod( rtems_time_of_day *time_buffer ) { a000a898: e92d4030 push {r4, r5, lr} <== NOT EXECUTED rtems_time_of_day *tmbuf = time_buffer; struct tm time; struct timeval now; if ( !time_buffer ) a000a89c: e2504000 subs r4, r0, #0 <== NOT EXECUTED #include rtems_status_code rtems_clock_get_tod( rtems_time_of_day *time_buffer ) { a000a8a0: e24dd034 sub sp, sp, #52 ; 0x34 <== NOT EXECUTED rtems_time_of_day *tmbuf = time_buffer; struct tm time; struct timeval now; if ( !time_buffer ) return RTEMS_INVALID_ADDRESS; a000a8a4: 03a03009 moveq r3, #9 <== NOT EXECUTED { rtems_time_of_day *tmbuf = time_buffer; struct tm time; struct timeval now; if ( !time_buffer ) a000a8a8: 0a00002a beq a000a958 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !_TOD_Is_set ) a000a8ac: e59f30b0 ldr r3, [pc, #176] ; a000a964 <== NOT EXECUTED a000a8b0: e5d33000 ldrb r3, [r3] <== NOT EXECUTED a000a8b4: e3530000 cmp r3, #0 <== NOT EXECUTED return RTEMS_NOT_DEFINED; a000a8b8: 03a0300b moveq r3, #11 <== NOT EXECUTED struct timeval now; if ( !time_buffer ) return RTEMS_INVALID_ADDRESS; if ( !_TOD_Is_set ) a000a8bc: 0a000025 beq a000a958 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000a8c0: e10f5000 mrs r5, CPSR <== NOT EXECUTED a000a8c4: e3853080 orr r3, r5, #128 ; 0x80 <== NOT EXECUTED a000a8c8: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED ISR_Level level; struct timespec now; suseconds_t useconds; _ISR_Disable(level); _TOD_Get( &now ); a000a8cc: e28d0024 add r0, sp, #36 ; 0x24 <== NOT EXECUTED a000a8d0: eb000657 bl a000c234 <_TOD_Get> <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000a8d4: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED _ISR_Enable(level); useconds = (suseconds_t)now.tv_nsec; useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND; a000a8d8: e59f3088 ldr r3, [pc, #136] ; a000a968 <== NOT EXECUTED _ISR_Disable(level); _TOD_Get( &now ); _ISR_Enable(level); useconds = (suseconds_t)now.tv_nsec; a000a8dc: e59d2028 ldr r2, [sp, #40] ; 0x28 <== NOT EXECUTED /* Obtain the current time */ _TOD_Get_timeval( &now ); /* Split it into a closer format */ gmtime_r( &now.tv_sec, &time ); a000a8e0: e1a0100d mov r1, sp <== NOT EXECUTED useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND; a000a8e4: e0c30392 smull r0, r3, r2, r3 <== NOT EXECUTED a000a8e8: e1a02fc2 asr r2, r2, #31 <== NOT EXECUTED a000a8ec: e0623343 rsb r3, r2, r3, asr #6 <== NOT EXECUTED time->tv_sec = now.tv_sec; a000a8f0: e59d2024 ldr r2, [sp, #36] ; 0x24 <== NOT EXECUTED a000a8f4: e28d002c add r0, sp, #44 ; 0x2c <== NOT EXECUTED time->tv_usec = useconds; a000a8f8: e58d3030 str r3, [sp, #48] ; 0x30 <== NOT EXECUTED _ISR_Enable(level); useconds = (suseconds_t)now.tv_nsec; useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND; time->tv_sec = now.tv_sec; a000a8fc: e58d202c str r2, [sp, #44] ; 0x2c <== NOT EXECUTED a000a900: eb002347 bl a0013624 <== NOT EXECUTED /* Now adjust it to the RTEMS format */ tmbuf->year = time.tm_year + 1900; tmbuf->month = time.tm_mon + 1; a000a904: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED /* Split it into a closer format */ gmtime_r( &now.tv_sec, &time ); /* Now adjust it to the RTEMS format */ tmbuf->year = time.tm_year + 1900; a000a908: e59d2014 ldr r2, [sp, #20] <== NOT EXECUTED tmbuf->month = time.tm_mon + 1; tmbuf->day = time.tm_mday; tmbuf->hour = time.tm_hour; tmbuf->minute = time.tm_min; tmbuf->second = time.tm_sec; tmbuf->ticks = now.tv_usec / a000a90c: e59d0030 ldr r0, [sp, #48] ; 0x30 <== NOT EXECUTED /* Split it into a closer format */ gmtime_r( &now.tv_sec, &time ); /* Now adjust it to the RTEMS format */ tmbuf->year = time.tm_year + 1900; tmbuf->month = time.tm_mon + 1; a000a910: e2833001 add r3, r3, #1 <== NOT EXECUTED a000a914: e5843004 str r3, [r4, #4] <== NOT EXECUTED tmbuf->day = time.tm_mday; a000a918: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED /* Split it into a closer format */ gmtime_r( &now.tv_sec, &time ); /* Now adjust it to the RTEMS format */ tmbuf->year = time.tm_year + 1900; a000a91c: e2822e76 add r2, r2, #1888 ; 0x760 <== NOT EXECUTED a000a920: e282200c add r2, r2, #12 <== NOT EXECUTED tmbuf->month = time.tm_mon + 1; tmbuf->day = time.tm_mday; a000a924: e5843008 str r3, [r4, #8] <== NOT EXECUTED tmbuf->hour = time.tm_hour; a000a928: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED /* Split it into a closer format */ gmtime_r( &now.tv_sec, &time ); /* Now adjust it to the RTEMS format */ tmbuf->year = time.tm_year + 1900; a000a92c: e5842000 str r2, [r4] <== NOT EXECUTED tmbuf->month = time.tm_mon + 1; tmbuf->day = time.tm_mday; tmbuf->hour = time.tm_hour; a000a930: e584300c str r3, [r4, #12] <== NOT EXECUTED tmbuf->minute = time.tm_min; a000a934: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED a000a938: e5843010 str r3, [r4, #16] <== NOT EXECUTED tmbuf->second = time.tm_sec; a000a93c: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000a940: e5843014 str r3, [r4, #20] <== NOT EXECUTED tmbuf->ticks = now.tv_usec / a000a944: e59f3020 ldr r3, [pc, #32] ; a000a96c <== NOT EXECUTED a000a948: e593100c ldr r1, [r3, #12] <== NOT EXECUTED a000a94c: eb0046ef bl a001c510 <__aeabi_uidiv> <== NOT EXECUTED rtems_configuration_get_microseconds_per_tick(); return RTEMS_SUCCESSFUL; a000a950: e3a03000 mov r3, #0 <== NOT EXECUTED tmbuf->month = time.tm_mon + 1; tmbuf->day = time.tm_mday; tmbuf->hour = time.tm_hour; tmbuf->minute = time.tm_min; tmbuf->second = time.tm_sec; tmbuf->ticks = now.tv_usec / a000a954: e5840018 str r0, [r4, #24] <== NOT EXECUTED rtems_configuration_get_microseconds_per_tick(); return RTEMS_SUCCESSFUL; } a000a958: e1a00003 mov r0, r3 <== NOT EXECUTED a000a95c: e28dd034 add sp, sp, #52 ; 0x34 <== NOT EXECUTED a000a960: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED =============================================================================== a0016f98 : #include rtems_status_code rtems_clock_get_tod_timeval( struct timeval *time ) { a0016f98: e92d4030 push {r4, r5, lr} <== NOT EXECUTED if ( !time ) a0016f9c: e2504000 subs r4, r0, #0 <== NOT EXECUTED #include rtems_status_code rtems_clock_get_tod_timeval( struct timeval *time ) { a0016fa0: e24dd008 sub sp, sp, #8 <== NOT EXECUTED if ( !time ) return RTEMS_INVALID_ADDRESS; a0016fa4: 03a00009 moveq r0, #9 <== NOT EXECUTED rtems_status_code rtems_clock_get_tod_timeval( struct timeval *time ) { if ( !time ) a0016fa8: 0a000012 beq a0016ff8 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !_TOD_Is_set ) a0016fac: e59f304c ldr r3, [pc, #76] ; a0017000 <== NOT EXECUTED a0016fb0: e5d33000 ldrb r3, [r3] <== NOT EXECUTED a0016fb4: e3530000 cmp r3, #0 <== NOT EXECUTED return RTEMS_NOT_DEFINED; a0016fb8: 03a0000b moveq r0, #11 <== NOT EXECUTED ) { if ( !time ) return RTEMS_INVALID_ADDRESS; if ( !_TOD_Is_set ) a0016fbc: 0a00000d beq a0016ff8 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a0016fc0: e10f5000 mrs r5, CPSR <== NOT EXECUTED a0016fc4: e3853080 orr r3, r5, #128 ; 0x80 <== NOT EXECUTED a0016fc8: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED ISR_Level level; struct timespec now; suseconds_t useconds; _ISR_Disable(level); _TOD_Get( &now ); a0016fcc: e1a0000d mov r0, sp <== NOT EXECUTED a0016fd0: eb0011c8 bl a001b6f8 <_TOD_Get> <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a0016fd4: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED _ISR_Enable(level); useconds = (suseconds_t)now.tv_nsec; useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND; a0016fd8: e59f2024 ldr r2, [pc, #36] ; a0017004 <== NOT EXECUTED _ISR_Disable(level); _TOD_Get( &now ); _ISR_Enable(level); useconds = (suseconds_t)now.tv_nsec; a0016fdc: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED return RTEMS_NOT_DEFINED; _TOD_Get_timeval( time ); return RTEMS_SUCCESSFUL; a0016fe0: e3a00000 mov r0, #0 <== NOT EXECUTED useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND; a0016fe4: e0c21293 smull r1, r2, r3, r2 <== NOT EXECUTED a0016fe8: e1a03fc3 asr r3, r3, #31 <== NOT EXECUTED a0016fec: e0633342 rsb r3, r3, r2, asr #6 <== NOT EXECUTED time->tv_sec = now.tv_sec; a0016ff0: e59d2000 ldr r2, [sp] <== NOT EXECUTED time->tv_usec = useconds; a0016ff4: e884000c stm r4, {r2, r3} <== NOT EXECUTED } a0016ff8: e28dd008 add sp, sp, #8 <== NOT EXECUTED a0016ffc: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED =============================================================================== a0009624 : */ rtems_status_code rtems_clock_get_uptime( struct timespec *uptime ) { if ( !uptime ) a0009624: e3500000 cmp r0, #0 <== NOT EXECUTED * error code - if unsuccessful */ rtems_status_code rtems_clock_get_uptime( struct timespec *uptime ) { a0009628: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED if ( !uptime ) a000962c: 0a000002 beq a000963c <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _TOD_Get_uptime_as_timespec( uptime ); a0009630: eb00058a bl a000ac60 <_TOD_Get_uptime_as_timespec> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0009634: e3a00000 mov r0, #0 <== NOT EXECUTED a0009638: 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; a000963c: e3a00009 mov r0, #9 <== NOT EXECUTED _TOD_Get_uptime_as_timespec( uptime ); return RTEMS_SUCCESSFUL; } a0009640: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED =============================================================================== a000a98c : */ rtems_status_code rtems_clock_set( rtems_time_of_day *time_buffer ) { a000a98c: e92d4010 push {r4, lr} <== NOT EXECUTED struct timespec newtime; if ( !time_buffer ) a000a990: e2504000 subs r4, r0, #0 <== NOT EXECUTED */ rtems_status_code rtems_clock_set( rtems_time_of_day *time_buffer ) { a000a994: e24dd008 sub sp, sp, #8 <== NOT EXECUTED struct timespec newtime; if ( !time_buffer ) return RTEMS_INVALID_ADDRESS; a000a998: 03a00009 moveq r0, #9 <== NOT EXECUTED rtems_time_of_day *time_buffer ) { struct timespec newtime; if ( !time_buffer ) a000a99c: 0a000015 beq a000a9f8 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( _TOD_Validate( time_buffer ) ) { a000a9a0: eb000054 bl a000aaf8 <_TOD_Validate> <== NOT EXECUTED a000a9a4: e3500000 cmp r0, #0 <== NOT EXECUTED _Thread_Disable_dispatch(); _TOD_Set( &newtime ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } return RTEMS_INVALID_CLOCK; a000a9a8: 03a00014 moveq r0, #20 <== NOT EXECUTED struct timespec newtime; if ( !time_buffer ) return RTEMS_INVALID_ADDRESS; if ( _TOD_Validate( time_buffer ) ) { a000a9ac: 0a000011 beq a000a9f8 <== NOT EXECUTED newtime.tv_sec = _TOD_To_seconds( time_buffer ); a000a9b0: e1a00004 mov r0, r4 <== NOT EXECUTED a000a9b4: eb000028 bl a000aa5c <_TOD_To_seconds> <== NOT EXECUTED newtime.tv_nsec = time_buffer->ticks * a000a9b8: e59f2040 ldr r2, [pc, #64] ; a000aa00 <== NOT EXECUTED a000a9bc: e5941018 ldr r1, [r4, #24] <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; a000a9c0: e59f303c ldr r3, [pc, #60] ; a000aa04 <== NOT EXECUTED a000a9c4: e592c00c ldr ip, [r2, #12] <== NOT EXECUTED if ( !time_buffer ) return RTEMS_INVALID_ADDRESS; if ( _TOD_Validate( time_buffer ) ) { newtime.tv_sec = _TOD_To_seconds( time_buffer ); a000a9c8: e58d0000 str r0, [sp] <== NOT EXECUTED a000a9cc: e5932000 ldr r2, [r3] <== NOT EXECUTED newtime.tv_nsec = time_buffer->ticks * a000a9d0: e001019c mul r1, ip, r1 <== NOT EXECUTED a000a9d4: e3a0cffa mov ip, #1000 ; 0x3e8 <== NOT EXECUTED a000a9d8: e001019c mul r1, ip, r1 <== NOT EXECUTED a000a9dc: e2822001 add r2, r2, #1 <== NOT EXECUTED a000a9e0: e58d1004 str r1, [sp, #4] <== NOT EXECUTED a000a9e4: e5832000 str r2, [r3] <== NOT EXECUTED rtems_configuration_get_nanoseconds_per_tick(); _Thread_Disable_dispatch(); _TOD_Set( &newtime ); a000a9e8: e1a0000d mov r0, sp <== NOT EXECUTED a000a9ec: eb000652 bl a000c33c <_TOD_Set> <== NOT EXECUTED _Thread_Enable_dispatch(); a000a9f0: eb000c6e bl a000dbb0 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000a9f4: e3a00000 mov r0, #0 <== NOT EXECUTED } return RTEMS_INVALID_CLOCK; } a000a9f8: e28dd008 add sp, sp, #8 <== NOT EXECUTED a000a9fc: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a00093fc : */ rtems_status_code rtems_clock_set_nanoseconds_extension( rtems_nanoseconds_extension_routine routine ) { if ( !routine ) a00093fc: e2503000 subs r3, r0, #0 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _Watchdog_Nanoseconds_since_tick_handler = routine; a0009400: 159f200c ldrne r2, [pc, #12] ; a0009414 <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0009404: 13a00000 movne r0, #0 <== NOT EXECUTED rtems_status_code rtems_clock_set_nanoseconds_extension( rtems_nanoseconds_extension_routine routine ) { if ( !routine ) return RTEMS_INVALID_ADDRESS; a0009408: 03a00009 moveq r0, #9 <== NOT EXECUTED _Watchdog_Nanoseconds_since_tick_handler = routine; a000940c: 15823000 strne r3, [r2] <== NOT EXECUTED return RTEMS_SUCCESSFUL; } a0009410: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a0009418 : * * NOTE: This routine only works for leap-years through 2099. */ rtems_status_code rtems_clock_tick( void ) { a0009418: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED _TOD_Tickle_ticks(); a000941c: eb000529 bl a000a8c8 <_TOD_Tickle_ticks> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Watchdog_Tickle_ticks( void ) { _Watchdog_Tickle( &_Watchdog_Ticks_chain ); a0009420: e59f0038 ldr r0, [pc, #56] ; a0009460 <== NOT EXECUTED a0009424: eb000efd bl a000d020 <_Watchdog_Tickle> <== NOT EXECUTED _Watchdog_Tickle_ticks(); _Thread_Tickle_timeslice(); a0009428: eb000d6c bl a000c9e0 <_Thread_Tickle_timeslice> <== NOT EXECUTED * otherwise. */ RTEMS_INLINE_ROUTINE bool _Thread_Is_context_switch_necessary( void ) { return ( _Thread_Dispatch_necessary ); a000942c: e59f3030 ldr r3, [pc, #48] ; a0009464 <== NOT EXECUTED a0009430: e5d33010 ldrb r3, [r3, #16] <== NOT EXECUTED if ( _Thread_Is_context_switch_necessary() && a0009434: e3530000 cmp r3, #0 <== NOT EXECUTED a0009438: 0a000003 beq a000944c <== NOT EXECUTED * otherwise. */ RTEMS_INLINE_ROUTINE bool _Thread_Is_dispatching_enabled( void ) { return ( _Thread_Dispatch_disable_level == 0 ); a000943c: e59f3024 ldr r3, [pc, #36] ; a0009468 <== NOT EXECUTED a0009440: e5933000 ldr r3, [r3] <== NOT EXECUTED a0009444: e3530000 cmp r3, #0 <== NOT EXECUTED a0009448: 0a000001 beq a0009454 <== NOT EXECUTED _Thread_Is_dispatching_enabled() ) _Thread_Dispatch(); return RTEMS_SUCCESSFUL; } a000944c: e3a00000 mov r0, #0 <== NOT EXECUTED a0009450: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED _Thread_Tickle_timeslice(); if ( _Thread_Is_context_switch_necessary() && _Thread_Is_dispatching_enabled() ) _Thread_Dispatch(); a0009454: eb000a87 bl a000be78 <_Thread_Dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; } a0009458: e3a00000 mov r0, #0 <== NOT EXECUTED a000945c: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED =============================================================================== a000f02c : */ void rtems_debug_disable ( rtems_debug_control to_be_disabled ) { _Debug_Level &= ~to_be_disabled; a000f02c: e59f300c ldr r3, [pc, #12] ; a000f040 <== NOT EXECUTED a000f030: e5932000 ldr r2, [r3] <== NOT EXECUTED a000f034: e1c22000 bic r2, r2, r0 <== NOT EXECUTED a000f038: e5832000 str r2, [r3] <== NOT EXECUTED } a000f03c: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000f014 : */ void rtems_debug_enable ( rtems_debug_control to_be_enabled ) { _Debug_Level |= to_be_enabled; a000f014: e59f300c ldr r3, [pc, #12] ; a000f028 <== NOT EXECUTED a000f018: e5932000 ldr r2, [r3] <== NOT EXECUTED a000f01c: e1802002 orr r2, r0, r2 <== NOT EXECUTED a000f020: e5832000 str r2, [r3] <== NOT EXECUTED } a000f024: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000f044 : */ bool rtems_debug_is_enabled( rtems_debug_control level ) { return (_Debug_Level & level) ? true : false; a000f044: e59f3010 ldr r3, [pc, #16] ; a000f05c <== NOT EXECUTED a000f048: e5933000 ldr r3, [r3] <== NOT EXECUTED a000f04c: e1100003 tst r0, r3 <== NOT EXECUTED } a000f050: 03a00000 moveq r0, #0 <== NOT EXECUTED a000f054: 13a00001 movne r0, #1 <== NOT EXECUTED a000f058: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000946c : rtems_event_set event_in, rtems_option option_set, rtems_interval ticks, rtems_event_set *event_out ) { a000946c: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED RTEMS_API_Control *api; if ( !event_out ) a0009470: e2536000 subs r6, r3, #0 <== NOT EXECUTED a0009474: 0a000010 beq a00094bc <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ]; a0009478: e59f4044 ldr r4, [pc, #68] ; a00094c4 <== NOT EXECUTED if ( _Event_sets_Is_empty( event_in ) ) { a000947c: e3500000 cmp r0, #0 <== NOT EXECUTED RTEMS_API_Control *api; if ( !event_out ) return RTEMS_INVALID_ADDRESS; api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ]; a0009480: e5945004 ldr r5, [r4, #4] <== NOT EXECUTED a0009484: e59550f4 ldr r5, [r5, #244] ; 0xf4 <== NOT EXECUTED if ( _Event_sets_Is_empty( event_in ) ) { a0009488: 1a000002 bne a0009498 <== NOT EXECUTED *event_out = api->pending_events; a000948c: e5953000 ldr r3, [r5] <== NOT EXECUTED a0009490: e5863000 str r3, [r6] <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0009494: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; a0009498: e59fc028 ldr ip, [pc, #40] ; a00094c8 <== NOT EXECUTED a000949c: e59ce000 ldr lr, [ip] <== NOT EXECUTED a00094a0: e28ee001 add lr, lr, #1 <== NOT EXECUTED a00094a4: e58ce000 str lr, [ip] <== NOT EXECUTED } _Thread_Disable_dispatch(); _Event_Seize( event_in, option_set, ticks, event_out ); a00094a8: eb000007 bl a00094cc <_Event_Seize> <== NOT EXECUTED _Thread_Enable_dispatch(); a00094ac: eb000ac7 bl a000bfd0 <_Thread_Enable_dispatch> <== NOT EXECUTED return( _Thread_Executing->Wait.return_code ); a00094b0: e5943004 ldr r3, [r4, #4] <== NOT EXECUTED a00094b4: e5930034 ldr r0, [r3, #52] ; 0x34 <== NOT EXECUTED a00094b8: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED ) { RTEMS_API_Control *api; if ( !event_out ) return RTEMS_INVALID_ADDRESS; a00094bc: e3a00009 mov r0, #9 <== NOT EXECUTED _Thread_Disable_dispatch(); _Event_Seize( event_in, option_set, ticks, event_out ); _Thread_Enable_dispatch(); return( _Thread_Executing->Wait.return_code ); } a00094c0: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED =============================================================================== a00095e0 : rtems_status_code rtems_event_send( rtems_id id, rtems_event_set event_in ) { a00095e0: e92d4010 push {r4, lr} <== NOT EXECUTED a00095e4: e24dd004 sub sp, sp, #4 <== NOT EXECUTED a00095e8: e1a04001 mov r4, r1 <== NOT EXECUTED register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; the_thread = _Thread_Get( id, &location ); a00095ec: e1a0100d mov r1, sp <== NOT EXECUTED a00095f0: eb000a7f bl a000bff4 <_Thread_Get> <== NOT EXECUTED switch ( location ) { a00095f4: e59d3000 ldr r3, [sp] <== NOT EXECUTED a00095f8: e3530000 cmp r3, #0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a00095fc: 13a00004 movne r0, #4 <== NOT EXECUTED register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; the_thread = _Thread_Get( id, &location ); switch ( location ) { a0009600: 1a00000a bne a0009630 <== NOT EXECUTED case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; a0009604: e59030f4 ldr r3, [r0, #244] ; 0xf4 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a0009608: e10f2000 mrs r2, CPSR <== NOT EXECUTED a000960c: e3821080 orr r1, r2, #128 ; 0x80 <== NOT EXECUTED a0009610: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED ) { ISR_Level level; _ISR_Disable( level ); *the_event_set |= the_new_events; a0009614: e5931000 ldr r1, [r3] <== NOT EXECUTED a0009618: e1814004 orr r4, r1, r4 <== NOT EXECUTED a000961c: e5834000 str r4, [r3] <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a0009620: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED _Event_sets_Post( event_in, &api->pending_events ); _Event_Surrender( the_thread ); a0009624: eb000003 bl a0009638 <_Event_Surrender> <== NOT EXECUTED _Thread_Enable_dispatch(); a0009628: eb000a68 bl a000bfd0 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000962c: e3a00000 mov r0, #0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a0009630: e28dd004 add sp, sp, #4 <== NOT EXECUTED a0009634: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a000ba24 : rtems_status_code rtems_extension_create( rtems_name name, const rtems_extensions_table *extension_table, rtems_id *id ) { a000ba24: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED Extension_Control *the_extension; if ( !id ) a000ba28: e2526000 subs r6, r2, #0 <== NOT EXECUTED rtems_status_code rtems_extension_create( rtems_name name, const rtems_extensions_table *extension_table, rtems_id *id ) { a000ba2c: e1a04000 mov r4, r0 <== NOT EXECUTED a000ba30: e1a08001 mov r8, r1 <== NOT EXECUTED Extension_Control *the_extension; if ( !id ) a000ba34: 0a000020 beq a000babc <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !rtems_is_name_valid( name ) ) a000ba38: e3500000 cmp r0, #0 <== NOT EXECUTED a000ba3c: 1a000001 bne a000ba48 <== NOT EXECUTED return RTEMS_INVALID_NAME; a000ba40: e3a00003 mov r0, #3 <== NOT EXECUTED ); *id = the_extension->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } a000ba44: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; a000ba48: e59f3074 ldr r3, [pc, #116] ; a000bac4 <== NOT EXECUTED a000ba4c: e5932000 ldr r2, [r3] <== NOT EXECUTED a000ba50: e2822001 add r2, r2, #1 <== NOT EXECUTED a000ba54: e5832000 str r2, [r3] <== NOT EXECUTED #ifndef __EXTENSION_MANAGER_inl #define __EXTENSION_MANAGER_inl RTEMS_INLINE_ROUTINE Extension_Control *_Extension_Allocate( void ) { return (Extension_Control *) _Objects_Allocate( &_Extension_Information ); a000ba58: e59f7068 ldr r7, [pc, #104] ; a000bac8 <== NOT EXECUTED a000ba5c: e1a00007 mov r0, r7 <== NOT EXECUTED a000ba60: eb0003ad bl a000c91c <_Objects_Allocate> <== NOT EXECUTED _Thread_Disable_dispatch(); /* to prevent deletion */ the_extension = _Extension_Allocate(); if ( !the_extension ) { a000ba64: e2505000 subs r5, r0, #0 <== NOT EXECUTED a000ba68: 0a000010 beq a000bab0 <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _User_extensions_Add_set_with_table( User_extensions_Control *extension, const User_extensions_Table *extension_table ) { extension->Callouts = *extension_table; a000ba6c: e285c024 add ip, r5, #36 ; 0x24 <== NOT EXECUTED a000ba70: e1a0e008 mov lr, r8 <== NOT EXECUTED a000ba74: e8be000f ldm lr!, {r0, r1, r2, r3} <== NOT EXECUTED a000ba78: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED a000ba7c: e89e000f ldm lr, {r0, r1, r2, r3} <== NOT EXECUTED a000ba80: e88c000f stm ip, {r0, r1, r2, r3} <== NOT EXECUTED _User_extensions_Add_set( extension ); a000ba84: e2850010 add r0, r5, #16 <== NOT EXECUTED a000ba88: eb000b3d bl a000e784 <_User_extensions_Add_set> <== NOT EXECUTED Objects_Name name ) { _Objects_Set_local_object( information, _Objects_Get_index( the_object->id ), a000ba8c: e5953008 ldr r3, [r5, #8] <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; a000ba90: e597201c ldr r2, [r7, #28] <== NOT EXECUTED Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( a000ba94: e1a01803 lsl r1, r3, #16 <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; a000ba98: e7825721 str r5, [r2, r1, lsr #14] <== NOT EXECUTED information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; a000ba9c: e585400c str r4, [r5, #12] <== NOT EXECUTED &_Extension_Information, &the_extension->Object, (Objects_Name) name ); *id = the_extension->Object.id; a000baa0: e5863000 str r3, [r6] <== NOT EXECUTED _Thread_Enable_dispatch(); a000baa4: eb000841 bl a000dbb0 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000baa8: e3a00000 mov r0, #0 <== NOT EXECUTED a000baac: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED _Thread_Disable_dispatch(); /* to prevent deletion */ the_extension = _Extension_Allocate(); if ( !the_extension ) { _Thread_Enable_dispatch(); a000bab0: eb00083e bl a000dbb0 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_TOO_MANY; a000bab4: e3a00005 mov r0, #5 <== NOT EXECUTED a000bab8: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED ) { Extension_Control *the_extension; if ( !id ) return RTEMS_INVALID_ADDRESS; a000babc: e3a00009 mov r0, #9 <== NOT EXECUTED a000bac0: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED =============================================================================== a000b814 : #include rtems_status_code rtems_extension_delete( rtems_id id ) { a000b814: e92d4030 push {r4, r5, lr} <== NOT EXECUTED a000b818: e24dd004 sub sp, sp, #4 <== NOT EXECUTED a000b81c: e1a01000 mov r1, r0 <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Extension_Control *) _Objects_Get( &_Extension_Information, id, location ); a000b820: e1a0200d mov r2, sp <== NOT EXECUTED a000b824: e59f0044 ldr r0, [pc, #68] ; a000b870 <== NOT EXECUTED a000b828: eb0004a2 bl a000cab8 <_Objects_Get> <== NOT EXECUTED Extension_Control *the_extension; Objects_Locations location; the_extension = _Extension_Get( id, &location ); switch ( location ) { a000b82c: e59d4000 ldr r4, [sp] <== NOT EXECUTED a000b830: e1a05000 mov r5, r0 <== NOT EXECUTED a000b834: e3540000 cmp r4, #0 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a000b838: 13a00004 movne r0, #4 <== NOT EXECUTED { Extension_Control *the_extension; Objects_Locations location; the_extension = _Extension_Get( id, &location ); switch ( location ) { a000b83c: 1a000009 bne a000b868 <== NOT EXECUTED case OBJECTS_LOCAL: _User_extensions_Remove_set( &the_extension->Extension ); a000b840: e2850010 add r0, r5, #16 <== NOT EXECUTED a000b844: eb000ad4 bl a000e39c <_User_extensions_Remove_set> <== NOT EXECUTED _Objects_Close( &_Extension_Information, &the_extension->Object ); a000b848: e1a01005 mov r1, r5 <== NOT EXECUTED a000b84c: e59f001c ldr r0, [pc, #28] ; a000b870 <== NOT EXECUTED a000b850: eb00038a bl a000c680 <_Objects_Close> <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Extension_Free ( Extension_Control *the_extension ) { _Objects_Free( &_Extension_Information, &the_extension->Object ); a000b854: e59f0014 ldr r0, [pc, #20] ; a000b870 <== NOT EXECUTED a000b858: e1a01005 mov r1, r5 <== NOT EXECUTED a000b85c: eb00043c bl a000c954 <_Objects_Free> <== NOT EXECUTED _Extension_Free( the_extension ); _Thread_Enable_dispatch(); a000b860: eb0007c5 bl a000d77c <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000b864: e1a00004 mov r0, r4 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a000b868: e28dd004 add sp, sp, #4 <== NOT EXECUTED a000b86c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED =============================================================================== a000c6b4 : rtems_status_code rtems_extension_ident( rtems_name name, rtems_id *id ) { a000c6b4: e1a02000 mov r2, r0 <== NOT EXECUTED a000c6b8: e1a03001 mov r3, r1 <== NOT EXECUTED a000c6bc: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( a000c6c0: e1a01002 mov r1, r2 <== NOT EXECUTED a000c6c4: e59f0010 ldr r0, [pc, #16] ; a000c6dc <== NOT EXECUTED a000c6c8: e3e02102 mvn r2, #-2147483648 ; 0x80000000 <== NOT EXECUTED a000c6cc: eb0004ca bl a000d9fc <_Objects_Name_to_id_u32> <== NOT EXECUTED name, OBJECTS_SEARCH_LOCAL_NODE, id ); return _Status_Object_name_errors_to_status[ status ]; a000c6d0: e59f3008 ldr r3, [pc, #8] ; a000c6e0 <== NOT EXECUTED } a000c6d4: e7930100 ldr r0, [r3, r0, lsl #2] <== NOT EXECUTED a000c6d8: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED =============================================================================== a000c49c : #include const char *rtems_get_version_string(void) { return _RTEMS_version; } a000c49c: e59f0000 ldr r0, [pc, #0] ; a000c4a4 <== NOT EXECUTED a000c4a0: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000a914 : static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000a914: e10f0000 mrs r0, CPSR <== NOT EXECUTED a000a918: e3803080 orr r3, r0, #128 ; 0x80 <== NOT EXECUTED a000a91c: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED rtems_interrupt_level previous_level; _ISR_Disable( previous_level ); return previous_level; } a000a920: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000a924 : static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000a924: e129f000 msr CPSR_fc, r0 <== NOT EXECUTED void rtems_interrupt_enable( rtems_interrupt_level previous_level ) { _ISR_Enable( previous_level ); } a000a928: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000a92c : static inline void arm_interrupt_flash( uint32_t level ) { uint32_t arm_switch_reg; __asm__ volatile ( a000a92c: e10f3000 mrs r3, CPSR <== NOT EXECUTED a000a930: e129f000 msr CPSR_fc, r0 <== NOT EXECUTED a000a934: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED void rtems_interrupt_flash( rtems_interrupt_level previous_level ) { _ISR_Flash( previous_level ); } a000a938: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000a93c : #undef rtems_interrupt_is_in_progress bool rtems_interrupt_is_in_progress( void ) { return _ISR_Is_in_progress(); a000a93c: e59f300c ldr r3, [pc, #12] ; a000a950 <== NOT EXECUTED a000a940: e5930000 ldr r0, [r3] <== NOT EXECUTED } a000a944: e2500000 subs r0, r0, #0 <== NOT EXECUTED a000a948: 13a00001 movne r0, #1 <== NOT EXECUTED a000a94c: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000a2f0 : rtems_attribute rtems_interrupt_level_attribute( uint32_t level ) { return RTEMS_INTERRUPT_LEVEL(level); } a000a2f0: e2000080 and r0, r0, #128 ; 0x80 <== NOT EXECUTED a000a2f4: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a0010dd4 : void *argument ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) a0010dd4: e59fc044 ldr ip, [pc, #68] ; a0010e20 <== NOT EXECUTED rtems_status_code rtems_io_close( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { a0010dd8: e92d4010 push {r4, lr} <== NOT EXECUTED rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) a0010ddc: e59cc000 ldr ip, [ip] <== NOT EXECUTED rtems_status_code rtems_io_close( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { a0010de0: e1a03000 mov r3, r0 <== NOT EXECUTED rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) a0010de4: e15c0000 cmp ip, r0 <== NOT EXECUTED a0010de8: 9a000008 bls a0010e10 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].close_entry; a0010dec: e59fc030 ldr ip, [pc, #48] ; a0010e24 <== NOT EXECUTED a0010df0: e3a04018 mov r4, #24 <== NOT EXECUTED a0010df4: e59cc000 ldr ip, [ip] <== NOT EXECUTED a0010df8: e023c394 mla r3, r4, r3, ip <== NOT EXECUTED a0010dfc: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; a0010e00: e3530000 cmp r3, #0 <== NOT EXECUTED a0010e04: 0a000003 beq a0010e18 <== NOT EXECUTED a0010e08: e12fff33 blx r3 <== NOT EXECUTED a0010e0c: e8bd8010 pop {r4, pc} <== NOT EXECUTED ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) return RTEMS_INVALID_NUMBER; a0010e10: e3a0000a mov r0, #10 <== NOT EXECUTED a0010e14: e8bd8010 pop {r4, pc} <== NOT EXECUTED callout = _IO_Driver_address_table[major].close_entry; return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; a0010e18: e1a00003 mov r0, r3 <== NOT EXECUTED } a0010e1c: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a0010e28 : void *argument ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) a0010e28: e59fc044 ldr ip, [pc, #68] ; a0010e74 <== NOT EXECUTED rtems_status_code rtems_io_control( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { a0010e2c: e92d4010 push {r4, lr} <== NOT EXECUTED rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) a0010e30: e59cc000 ldr ip, [ip] <== NOT EXECUTED rtems_status_code rtems_io_control( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { a0010e34: e1a03000 mov r3, r0 <== NOT EXECUTED rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) a0010e38: e15c0000 cmp ip, r0 <== NOT EXECUTED a0010e3c: 9a000008 bls a0010e64 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].control_entry; a0010e40: e59fc030 ldr ip, [pc, #48] ; a0010e78 <== NOT EXECUTED a0010e44: e3a04018 mov r4, #24 <== NOT EXECUTED a0010e48: e59cc000 ldr ip, [ip] <== NOT EXECUTED a0010e4c: e023c394 mla r3, r4, r3, ip <== NOT EXECUTED a0010e50: e5933014 ldr r3, [r3, #20] <== NOT EXECUTED return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; a0010e54: e3530000 cmp r3, #0 <== NOT EXECUTED a0010e58: 0a000003 beq a0010e6c <== NOT EXECUTED a0010e5c: e12fff33 blx r3 <== NOT EXECUTED a0010e60: e8bd8010 pop {r4, pc} <== NOT EXECUTED ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) return RTEMS_INVALID_NUMBER; a0010e64: e3a0000a mov r0, #10 <== NOT EXECUTED a0010e68: e8bd8010 pop {r4, pc} <== NOT EXECUTED callout = _IO_Driver_address_table[major].control_entry; return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; a0010e6c: e1a00003 mov r0, r3 <== NOT EXECUTED } a0010e70: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a0010e7c : void *argument ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) a0010e7c: e59fc044 ldr ip, [pc, #68] ; a0010ec8 <== NOT EXECUTED rtems_status_code rtems_io_open( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { a0010e80: e92d4010 push {r4, lr} <== NOT EXECUTED rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) a0010e84: e59cc000 ldr ip, [ip] <== NOT EXECUTED rtems_status_code rtems_io_open( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { a0010e88: e1a03000 mov r3, r0 <== NOT EXECUTED rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) a0010e8c: e15c0000 cmp ip, r0 <== NOT EXECUTED a0010e90: 9a000008 bls a0010eb8 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].open_entry; a0010e94: e59fc030 ldr ip, [pc, #48] ; a0010ecc <== NOT EXECUTED a0010e98: e3a04018 mov r4, #24 <== NOT EXECUTED a0010e9c: e59cc000 ldr ip, [ip] <== NOT EXECUTED a0010ea0: e023c394 mla r3, r4, r3, ip <== NOT EXECUTED a0010ea4: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; a0010ea8: e3530000 cmp r3, #0 <== NOT EXECUTED a0010eac: 0a000003 beq a0010ec0 <== NOT EXECUTED a0010eb0: e12fff33 blx r3 <== NOT EXECUTED a0010eb4: e8bd8010 pop {r4, pc} <== NOT EXECUTED ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) return RTEMS_INVALID_NUMBER; a0010eb8: e3a0000a mov r0, #10 <== NOT EXECUTED a0010ebc: e8bd8010 pop {r4, pc} <== NOT EXECUTED callout = _IO_Driver_address_table[major].open_entry; return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; a0010ec0: e1a00003 mov r0, r3 <== NOT EXECUTED } a0010ec4: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a0010ed0 : void *argument ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) a0010ed0: e59fc044 ldr ip, [pc, #68] ; a0010f1c <== NOT EXECUTED rtems_status_code rtems_io_read( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { a0010ed4: e92d4010 push {r4, lr} <== NOT EXECUTED rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) a0010ed8: e59cc000 ldr ip, [ip] <== NOT EXECUTED rtems_status_code rtems_io_read( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { a0010edc: e1a03000 mov r3, r0 <== NOT EXECUTED rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) a0010ee0: e15c0000 cmp ip, r0 <== NOT EXECUTED a0010ee4: 9a000008 bls a0010f0c <== NOT EXECUTED return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].read_entry; a0010ee8: e59fc030 ldr ip, [pc, #48] ; a0010f20 <== NOT EXECUTED a0010eec: e3a04018 mov r4, #24 <== NOT EXECUTED a0010ef0: e59cc000 ldr ip, [ip] <== NOT EXECUTED a0010ef4: e023c394 mla r3, r4, r3, ip <== NOT EXECUTED a0010ef8: e593300c ldr r3, [r3, #12] <== NOT EXECUTED return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; a0010efc: e3530000 cmp r3, #0 <== NOT EXECUTED a0010f00: 0a000003 beq a0010f14 <== NOT EXECUTED a0010f04: e12fff33 blx r3 <== NOT EXECUTED a0010f08: e8bd8010 pop {r4, pc} <== NOT EXECUTED ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) return RTEMS_INVALID_NUMBER; a0010f0c: e3a0000a mov r0, #10 <== NOT EXECUTED a0010f10: e8bd8010 pop {r4, pc} <== NOT EXECUTED callout = _IO_Driver_address_table[major].read_entry; return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; a0010f14: e1a00003 mov r0, r3 <== NOT EXECUTED } a0010f18: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a000b360 : 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 ) { a000b360: e92d4030 push {r4, r5, lr} <== NOT EXECUTED a000b364: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_device_major_number major_limit = _IO_Number_of_drivers; if ( rtems_interrupt_is_in_progress() ) a000b368: e59f014c ldr r0, [pc, #332] ; a000b4bc <== NOT EXECUTED 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; a000b36c: e59f314c ldr r3, [pc, #332] ; a000b4c0 <== NOT EXECUTED if ( rtems_interrupt_is_in_progress() ) a000b370: e5900000 ldr r0, [r0] <== NOT EXECUTED a000b374: e3500000 cmp r0, #0 <== NOT EXECUTED 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; a000b378: e5930000 ldr r0, [r3] <== NOT EXECUTED if ( rtems_interrupt_is_in_progress() ) a000b37c: 1a000033 bne a000b450 <== NOT EXECUTED return RTEMS_CALLED_FROM_ISR; if ( registered_major == NULL ) a000b380: e3520000 cmp r2, #0 <== NOT EXECUTED a000b384: 0a000041 beq a000b490 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; /* Set it to an invalid value */ *registered_major = major_limit; if ( driver_table == NULL ) a000b388: e3510000 cmp r1, #0 <== NOT EXECUTED if ( registered_major == NULL ) return RTEMS_INVALID_ADDRESS; /* Set it to an invalid value */ *registered_major = major_limit; a000b38c: e5820000 str r0, [r2] <== NOT EXECUTED if ( driver_table == NULL ) a000b390: 0a00003e beq a000b490 <== NOT EXECUTED static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; a000b394: e591c000 ldr ip, [r1] <== NOT EXECUTED a000b398: e35c0000 cmp ip, #0 <== NOT EXECUTED a000b39c: 0a000038 beq a000b484 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( rtems_io_is_empty_table( driver_table ) ) return RTEMS_INVALID_ADDRESS; if ( major >= major_limit ) a000b3a0: e1500004 cmp r0, r4 <== NOT EXECUTED a000b3a4: 9a000027 bls a000b448 <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; a000b3a8: e59f0114 ldr r0, [pc, #276] ; a000b4c4 <== NOT EXECUTED a000b3ac: e590c000 ldr ip, [r0] <== NOT EXECUTED a000b3b0: e28cc001 add ip, ip, #1 <== NOT EXECUTED a000b3b4: e580c000 str ip, [r0] <== NOT EXECUTED return RTEMS_INVALID_NUMBER; _Thread_Disable_dispatch(); if ( major == 0 ) { a000b3b8: e3540000 cmp r4, #0 <== NOT EXECUTED a000b3bc: 1a000025 bne a000b458 <== NOT EXECUTED static rtems_status_code rtems_io_obtain_major_number( rtems_device_major_number *major ) { rtems_device_major_number n = _IO_Number_of_drivers; a000b3c0: e593c000 ldr ip, [r3] <== NOT EXECUTED rtems_device_major_number m = 0; /* major is error checked by caller */ for ( m = 0; m < n; ++m ) { a000b3c4: e35c0000 cmp ip, #0 <== NOT EXECUTED a000b3c8: 0a000032 beq a000b498 <== NOT EXECUTED a000b3cc: e59fe0f4 ldr lr, [pc, #244] ; a000b4c8 <== NOT EXECUTED a000b3d0: e59e3000 ldr r3, [lr] <== NOT EXECUTED a000b3d4: ea000003 b a000b3e8 <== NOT EXECUTED a000b3d8: e2844001 add r4, r4, #1 <== NOT EXECUTED a000b3dc: e15c0004 cmp ip, r4 <== NOT EXECUTED a000b3e0: e2833018 add r3, r3, #24 <== NOT EXECUTED a000b3e4: 9a000005 bls a000b400 <== NOT EXECUTED static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; a000b3e8: e5930000 ldr r0, [r3] <== NOT EXECUTED a000b3ec: e3500000 cmp r0, #0 <== NOT EXECUTED a000b3f0: 1afffff8 bne a000b3d8 <== NOT EXECUTED a000b3f4: e5930004 ldr r0, [r3, #4] <== NOT EXECUTED a000b3f8: e3500000 cmp r0, #0 <== NOT EXECUTED a000b3fc: 1afffff5 bne a000b3d8 <== NOT EXECUTED } /* Assigns invalid value in case of failure */ *major = m; if ( m != n ) a000b400: e15c0004 cmp ip, r4 <== NOT EXECUTED if ( rtems_io_is_empty_table( table ) ) break; } /* Assigns invalid value in case of failure */ *major = m; a000b404: e5824000 str r4, [r2] <== NOT EXECUTED if ( m != n ) a000b408: 0a000023 beq a000b49c <== NOT EXECUTED a000b40c: e3a0c018 mov ip, #24 <== NOT EXECUTED a000b410: e00c0c94 mul ip, r4, ip <== NOT EXECUTED } *registered_major = major; } _IO_Driver_address_table [major] = *driver_table; a000b414: e59e5000 ldr r5, [lr] <== NOT EXECUTED a000b418: e1a0e001 mov lr, r1 <== NOT EXECUTED a000b41c: e8be000f ldm lr!, {r0, r1, r2, r3} <== NOT EXECUTED a000b420: e085c00c add ip, r5, ip <== NOT EXECUTED a000b424: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED a000b428: e89e0003 ldm lr, {r0, r1} <== NOT EXECUTED a000b42c: e88c0003 stm ip, {r0, r1} <== NOT EXECUTED _Thread_Enable_dispatch(); a000b430: eb00079e bl a000d2b0 <_Thread_Enable_dispatch> <== NOT EXECUTED return rtems_io_initialize( major, 0, NULL ); a000b434: e3a01000 mov r1, #0 <== NOT EXECUTED a000b438: e1a00004 mov r0, r4 <== NOT EXECUTED a000b43c: e1a02001 mov r2, r1 <== NOT EXECUTED } a000b440: e8bd4030 pop {r4, r5, lr} <== NOT EXECUTED _IO_Driver_address_table [major] = *driver_table; _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL ); a000b444: ea001f09 b a0013070 <== NOT EXECUTED if ( rtems_io_is_empty_table( driver_table ) ) return RTEMS_INVALID_ADDRESS; if ( major >= major_limit ) return RTEMS_INVALID_NUMBER; a000b448: e3a0000a mov r0, #10 <== NOT EXECUTED _IO_Driver_address_table [major] = *driver_table; _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL ); } a000b44c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED ) { rtems_device_major_number major_limit = _IO_Number_of_drivers; if ( rtems_interrupt_is_in_progress() ) return RTEMS_CALLED_FROM_ISR; a000b450: e3a00012 mov r0, #18 <== NOT EXECUTED a000b454: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED _Thread_Enable_dispatch(); return sc; } major = *registered_major; } else { rtems_driver_address_table *const table = _IO_Driver_address_table + major; a000b458: e59fe068 ldr lr, [pc, #104] ; a000b4c8 <== NOT EXECUTED a000b45c: e3a0c018 mov ip, #24 <== NOT EXECUTED a000b460: e00c0c94 mul ip, r4, ip <== NOT EXECUTED a000b464: e59e3000 ldr r3, [lr] <== NOT EXECUTED static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; a000b468: e793000c ldr r0, [r3, ip] <== NOT EXECUTED _Thread_Enable_dispatch(); return sc; } major = *registered_major; } else { rtems_driver_address_table *const table = _IO_Driver_address_table + major; a000b46c: e083300c add r3, r3, ip <== NOT EXECUTED static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; a000b470: e3500000 cmp r0, #0 <== NOT EXECUTED a000b474: 0a00000b beq a000b4a8 <== NOT EXECUTED major = *registered_major; } else { rtems_driver_address_table *const table = _IO_Driver_address_table + major; if ( !rtems_io_is_empty_table( table ) ) { _Thread_Enable_dispatch(); a000b478: eb00078c bl a000d2b0 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_RESOURCE_IN_USE; a000b47c: e3a0000c mov r0, #12 <== NOT EXECUTED a000b480: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; a000b484: e591c004 ldr ip, [r1, #4] <== NOT EXECUTED a000b488: e35c0000 cmp ip, #0 <== NOT EXECUTED a000b48c: 1affffc3 bne a000b3a0 <== NOT EXECUTED if ( driver_table == NULL ) return RTEMS_INVALID_ADDRESS; if ( rtems_io_is_empty_table( driver_table ) ) return RTEMS_INVALID_ADDRESS; a000b490: e3a00009 mov r0, #9 <== NOT EXECUTED a000b494: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED if ( rtems_io_is_empty_table( table ) ) break; } /* Assigns invalid value in case of failure */ *major = m; a000b498: e5824000 str r4, [r2] <== NOT EXECUTED if ( major == 0 ) { rtems_status_code sc = rtems_io_obtain_major_number( registered_major ); if ( sc != RTEMS_SUCCESSFUL ) { _Thread_Enable_dispatch(); a000b49c: eb000783 bl a000d2b0 <_Thread_Enable_dispatch> <== NOT EXECUTED *major = m; if ( m != n ) return RTEMS_SUCCESSFUL; return RTEMS_TOO_MANY; a000b4a0: e3a00005 mov r0, #5 <== NOT EXECUTED if ( major == 0 ) { rtems_status_code sc = rtems_io_obtain_major_number( registered_major ); if ( sc != RTEMS_SUCCESSFUL ) { _Thread_Enable_dispatch(); return sc; a000b4a4: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; a000b4a8: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED a000b4ac: e3530000 cmp r3, #0 <== NOT EXECUTED a000b4b0: 1afffff0 bne a000b478 <== NOT EXECUTED if ( !rtems_io_is_empty_table( table ) ) { _Thread_Enable_dispatch(); return RTEMS_RESOURCE_IN_USE; } *registered_major = major; a000b4b4: e5824000 str r4, [r2] <== NOT EXECUTED a000b4b8: eaffffd5 b a000b414 <== NOT EXECUTED =============================================================================== a000b4cc : rtems_status_code rtems_io_unregister_driver( rtems_device_major_number major ) { if ( rtems_interrupt_is_in_progress() ) a000b4cc: e59f3064 ldr r3, [pc, #100] ; a000b538 <== NOT EXECUTED */ rtems_status_code rtems_io_unregister_driver( rtems_device_major_number major ) { a000b4d0: e92d4010 push {r4, lr} <== NOT EXECUTED if ( rtems_interrupt_is_in_progress() ) a000b4d4: e5934000 ldr r4, [r3] <== NOT EXECUTED a000b4d8: e3540000 cmp r4, #0 <== NOT EXECUTED a000b4dc: 1a000013 bne a000b530 <== NOT EXECUTED return RTEMS_CALLED_FROM_ISR; if ( major < _IO_Number_of_drivers ) { a000b4e0: e59f3054 ldr r3, [pc, #84] ; a000b53c <== NOT EXECUTED a000b4e4: e5933000 ldr r3, [r3] <== NOT EXECUTED a000b4e8: e1530000 cmp r3, r0 <== NOT EXECUTED a000b4ec: 8a000001 bhi a000b4f8 <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } return RTEMS_UNSATISFIED; a000b4f0: e3a0000d mov r0, #13 <== NOT EXECUTED } a000b4f4: e8bd8010 pop {r4, pc} <== NOT EXECUTED a000b4f8: e59f3040 ldr r3, [pc, #64] ; a000b540 <== NOT EXECUTED a000b4fc: e5932000 ldr r2, [r3] <== NOT EXECUTED a000b500: e2822001 add r2, r2, #1 <== NOT EXECUTED a000b504: e5832000 str r2, [r3] <== NOT EXECUTED if ( rtems_interrupt_is_in_progress() ) return RTEMS_CALLED_FROM_ISR; if ( major < _IO_Number_of_drivers ) { _Thread_Disable_dispatch(); memset( a000b508: e59f2034 ldr r2, [pc, #52] ; a000b544 <== NOT EXECUTED &_IO_Driver_address_table[major], a000b50c: e3a03018 mov r3, #24 <== NOT EXECUTED if ( rtems_interrupt_is_in_progress() ) return RTEMS_CALLED_FROM_ISR; if ( major < _IO_Number_of_drivers ) { _Thread_Disable_dispatch(); memset( a000b510: e1a01004 mov r1, r4 <== NOT EXECUTED a000b514: e592c000 ldr ip, [r2] <== NOT EXECUTED a000b518: e1a02003 mov r2, r3 <== NOT EXECUTED a000b51c: e020c093 mla r0, r3, r0, ip <== NOT EXECUTED a000b520: eb00296e bl a0015ae0 <== NOT EXECUTED &_IO_Driver_address_table[major], 0, sizeof( rtems_driver_address_table ) ); _Thread_Enable_dispatch(); a000b524: eb000761 bl a000d2b0 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000b528: e1a00004 mov r0, r4 <== NOT EXECUTED a000b52c: e8bd8010 pop {r4, pc} <== NOT EXECUTED rtems_status_code rtems_io_unregister_driver( rtems_device_major_number major ) { if ( rtems_interrupt_is_in_progress() ) return RTEMS_CALLED_FROM_ISR; a000b530: e3a00012 mov r0, #18 <== NOT EXECUTED a000b534: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a0010f24 : void *argument ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) a0010f24: e59fc044 ldr ip, [pc, #68] ; a0010f70 <== NOT EXECUTED rtems_status_code rtems_io_write( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { a0010f28: e92d4010 push {r4, lr} <== NOT EXECUTED rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) a0010f2c: e59cc000 ldr ip, [ip] <== NOT EXECUTED rtems_status_code rtems_io_write( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { a0010f30: e1a03000 mov r3, r0 <== NOT EXECUTED rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) a0010f34: e15c0000 cmp ip, r0 <== NOT EXECUTED a0010f38: 9a000008 bls a0010f60 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].write_entry; a0010f3c: e59fc030 ldr ip, [pc, #48] ; a0010f74 <== NOT EXECUTED a0010f40: e3a04018 mov r4, #24 <== NOT EXECUTED a0010f44: e59cc000 ldr ip, [ip] <== NOT EXECUTED a0010f48: e023c394 mla r3, r4, r3, ip <== NOT EXECUTED a0010f4c: e5933010 ldr r3, [r3, #16] <== NOT EXECUTED return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; a0010f50: e3530000 cmp r3, #0 <== NOT EXECUTED a0010f54: 0a000003 beq a0010f68 <== NOT EXECUTED a0010f58: e12fff33 blx r3 <== NOT EXECUTED a0010f5c: e8bd8010 pop {r4, pc} <== NOT EXECUTED ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) return RTEMS_INVALID_NUMBER; a0010f60: e3a0000a mov r0, #10 <== NOT EXECUTED a0010f64: e8bd8010 pop {r4, pc} <== NOT EXECUTED callout = _IO_Driver_address_table[major].write_entry; return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; a0010f68: e1a00003 mov r0, r3 <== NOT EXECUTED } a0010f6c: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a000c8ac : #include #include void rtems_iterate_over_all_threads(rtems_per_thread_routine routine) { a000c8ac: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED uint32_t i; uint32_t api_index; Thread_Control *the_thread; Objects_Information *information; if ( !routine ) a000c8b0: e2506000 subs r6, r0, #0 <== NOT EXECUTED a000c8b4: 0a000016 beq a000c914 <== NOT EXECUTED a000c8b8: e59f7058 ldr r7, [pc, #88] ; a000c918 <== NOT EXECUTED #endif #include #include void rtems_iterate_over_all_threads(rtems_per_thread_routine routine) a000c8bc: e287800c add r8, r7, #12 <== NOT EXECUTED if ( !routine ) return; for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) { #if !defined(RTEMS_POSIX_API) || defined(RTEMS_DEBUG) if ( !_Objects_Information_table[ api_index ] ) a000c8c0: e5b73004 ldr r3, [r7, #4]! <== NOT EXECUTED a000c8c4: e3530000 cmp r3, #0 <== NOT EXECUTED a000c8c8: 0a00000f beq a000c90c <== NOT EXECUTED continue; #endif information = _Objects_Information_table[ api_index ][ 1 ]; a000c8cc: e5935004 ldr r5, [r3, #4] <== NOT EXECUTED if ( !information ) a000c8d0: e3550000 cmp r5, #0 <== NOT EXECUTED a000c8d4: 0a00000c beq a000c90c <== NOT EXECUTED continue; for ( i=1 ; i <= information->maximum ; i++ ) { a000c8d8: e1d521b0 ldrh r2, [r5, #16] <== NOT EXECUTED a000c8dc: e3520000 cmp r2, #0 <== NOT EXECUTED a000c8e0: 0a000009 beq a000c90c <== NOT EXECUTED a000c8e4: e3a04001 mov r4, #1 <== NOT EXECUTED the_thread = (Thread_Control *)information->local_table[ i ]; a000c8e8: e595301c ldr r3, [r5, #28] <== NOT EXECUTED a000c8ec: e7930104 ldr r0, [r3, r4, lsl #2] <== NOT EXECUTED if ( !the_thread ) a000c8f0: e3500000 cmp r0, #0 <== NOT EXECUTED a000c8f4: 0a000001 beq a000c900 <== NOT EXECUTED continue; (*routine)(the_thread); a000c8f8: e12fff36 blx r6 <== NOT EXECUTED a000c8fc: e1d521b0 ldrh r2, [r5, #16] <== NOT EXECUTED information = _Objects_Information_table[ api_index ][ 1 ]; if ( !information ) continue; for ( i=1 ; i <= information->maximum ; i++ ) { a000c900: e2844001 add r4, r4, #1 <== NOT EXECUTED a000c904: e1520004 cmp r2, r4 <== NOT EXECUTED a000c908: 2afffff6 bcs a000c8e8 <== NOT EXECUTED Objects_Information *information; if ( !routine ) return; for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) { a000c90c: e1570008 cmp r7, r8 <== NOT EXECUTED a000c910: 1affffea bne a000c8c0 <== NOT EXECUTED a000c914: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED =============================================================================== a0017838 : rtems_id id, const void *buffer, size_t size, uint32_t *count ) { a0017838: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED register Message_queue_Control *the_message_queue; Objects_Locations location; CORE_message_queue_Status core_status; if ( !buffer ) a001783c: e2516000 subs r6, r1, #0 <== NOT EXECUTED rtems_id id, const void *buffer, size_t size, uint32_t *count ) { a0017840: e24dd00c sub sp, sp, #12 <== NOT EXECUTED a0017844: e1a04000 mov r4, r0 <== NOT EXECUTED a0017848: e1a05002 mov r5, r2 <== NOT EXECUTED a001784c: e1a07003 mov r7, r3 <== NOT EXECUTED register Message_queue_Control *the_message_queue; Objects_Locations location; CORE_message_queue_Status core_status; if ( !buffer ) a0017850: 0a000016 beq a00178b0 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !count ) a0017854: e3530000 cmp r3, #0 <== NOT EXECUTED a0017858: 0a000014 beq a00178b0 <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Message_queue_Control *) _Objects_Get( &_Message_queue_Information, id, location ); a001785c: e59f0054 ldr r0, [pc, #84] ; a00178b8 <== NOT EXECUTED a0017860: e1a01004 mov r1, r4 <== NOT EXECUTED a0017864: e28d2008 add r2, sp, #8 <== NOT EXECUTED a0017868: eb0014f1 bl a001cc34 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { a001786c: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED a0017870: e3530000 cmp r3, #0 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a0017874: 13a00004 movne r0, #4 <== NOT EXECUTED if ( !count ) return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { a0017878: 1a00000a bne a00178a8 <== NOT EXECUTED case OBJECTS_LOCAL: core_status = _CORE_message_queue_Broadcast( a001787c: e58d3000 str r3, [sp] <== NOT EXECUTED a0017880: e1a01006 mov r1, r6 <== NOT EXECUTED a0017884: e1a03004 mov r3, r4 <== NOT EXECUTED a0017888: e1a02005 mov r2, r5 <== NOT EXECUTED a001788c: e2800014 add r0, r0, #20 <== NOT EXECUTED a0017890: e58d7004 str r7, [sp, #4] <== NOT EXECUTED a0017894: eb000dcb bl a001afc8 <_CORE_message_queue_Broadcast> <== NOT EXECUTED a0017898: e1a04000 mov r4, r0 <== NOT EXECUTED NULL, #endif count ); _Thread_Enable_dispatch(); a001789c: eb001837 bl a001d980 <_Thread_Enable_dispatch> <== NOT EXECUTED return a00178a0: e1a00004 mov r0, r4 <== NOT EXECUTED a00178a4: eb0000d5 bl a0017c00 <_Message_queue_Translate_core_message_queue_return_code><== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a00178a8: e28dd00c add sp, sp, #12 <== NOT EXECUTED a00178ac: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED if ( !buffer ) return RTEMS_INVALID_ADDRESS; if ( !count ) return RTEMS_INVALID_ADDRESS; a00178b0: e3a00009 mov r0, #9 <== NOT EXECUTED a00178b4: eafffffb b a00178a8 <== NOT EXECUTED =============================================================================== a0011fa8 : uint32_t count, size_t max_message_size, rtems_attribute attribute_set, rtems_id *id ) { a0011fa8: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED CORE_message_queue_Attributes the_msgq_attributes; #if defined(RTEMS_MULTIPROCESSING) bool is_global; #endif if ( !rtems_is_name_valid( name ) ) a0011fac: e2507000 subs r7, r0, #0 <== NOT EXECUTED uint32_t count, size_t max_message_size, rtems_attribute attribute_set, rtems_id *id ) { a0011fb0: e24dd008 sub sp, sp, #8 <== NOT EXECUTED a0011fb4: e1a04001 mov r4, r1 <== NOT EXECUTED a0011fb8: e1a06002 mov r6, r2 <== NOT EXECUTED a0011fbc: e59d5020 ldr r5, [sp, #32] <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) bool is_global; #endif if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; a0011fc0: 03a00003 moveq r0, #3 <== NOT EXECUTED CORE_message_queue_Attributes the_msgq_attributes; #if defined(RTEMS_MULTIPROCESSING) bool is_global; #endif if ( !rtems_is_name_valid( name ) ) a0011fc4: 0a000008 beq a0011fec <== NOT EXECUTED return RTEMS_INVALID_NAME; if ( !id ) a0011fc8: e3550000 cmp r5, #0 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; a0011fcc: 03a00009 moveq r0, #9 <== NOT EXECUTED #endif if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; if ( !id ) a0011fd0: 0a000005 beq a0011fec <== NOT EXECUTED if ( (is_global = _Attributes_Is_global( attribute_set ) ) && !_System_state_Is_multiprocessing ) return RTEMS_MP_NOT_CONFIGURED; #endif if ( count == 0 ) a0011fd4: e3510000 cmp r1, #0 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; a0011fd8: 03a0000a moveq r0, #10 <== NOT EXECUTED if ( (is_global = _Attributes_Is_global( attribute_set ) ) && !_System_state_Is_multiprocessing ) return RTEMS_MP_NOT_CONFIGURED; #endif if ( count == 0 ) a0011fdc: 0a000002 beq a0011fec <== NOT EXECUTED return RTEMS_INVALID_NUMBER; if ( max_message_size == 0 ) a0011fe0: e3520000 cmp r2, #0 <== NOT EXECUTED return RTEMS_INVALID_SIZE; a0011fe4: 03a00008 moveq r0, #8 <== NOT EXECUTED #endif if ( count == 0 ) return RTEMS_INVALID_NUMBER; if ( max_message_size == 0 ) a0011fe8: 1a000001 bne a0011ff4 <== NOT EXECUTED ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } a0011fec: e28dd008 add sp, sp, #8 <== NOT EXECUTED a0011ff0: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; a0011ff4: e59f2098 ldr r2, [pc, #152] ; a0012094 <== NOT EXECUTED a0011ff8: e5921000 ldr r1, [r2] <== NOT EXECUTED a0011ffc: e2811001 add r1, r1, #1 <== NOT EXECUTED a0012000: e5821000 str r1, [r2] <== NOT EXECUTED #endif #endif _Thread_Disable_dispatch(); /* protects object pointer */ the_message_queue = _Message_queue_Allocate(); a0012004: e58d3000 str r3, [sp] <== NOT EXECUTED a0012008: eb001724 bl a0017ca0 <_Message_queue_Allocate> <== NOT EXECUTED if ( !the_message_queue ) { a001200c: e2508000 subs r8, r0, #0 <== NOT EXECUTED a0012010: e59d3000 ldr r3, [sp] <== NOT EXECUTED a0012014: 0a00001b beq a0012088 <== NOT EXECUTED } #endif the_message_queue->attribute_set = attribute_set; if (_Attributes_Is_priority( attribute_set ) ) a0012018: e2132004 ands r2, r3, #4 <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } #endif the_message_queue->attribute_set = attribute_set; a001201c: e5883010 str r3, [r8, #16] <== NOT EXECUTED if (_Attributes_Is_priority( attribute_set ) ) the_msgq_attributes.discipline = CORE_MESSAGE_QUEUE_DISCIPLINES_PRIORITY; a0012020: 13a03001 movne r3, #1 <== NOT EXECUTED a0012024: 158d3004 strne r3, [sp, #4] <== NOT EXECUTED else the_msgq_attributes.discipline = CORE_MESSAGE_QUEUE_DISCIPLINES_FIFO; a0012028: 058d2004 streq r2, [sp, #4] <== NOT EXECUTED if ( ! _CORE_message_queue_Initialize( a001202c: e2880014 add r0, r8, #20 <== NOT EXECUTED a0012030: e28d1004 add r1, sp, #4 <== NOT EXECUTED a0012034: e1a02004 mov r2, r4 <== NOT EXECUTED a0012038: e1a03006 mov r3, r6 <== NOT EXECUTED a001203c: eb000478 bl a0013224 <_CORE_message_queue_Initialize> <== NOT EXECUTED a0012040: e3500000 cmp r0, #0 <== NOT EXECUTED a0012044: 1a000005 bne a0012060 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Message_queue_Free ( Message_queue_Control *the_message_queue ) { _Objects_Free( &_Message_queue_Information, &the_message_queue->Object ); a0012048: e59f0048 ldr r0, [pc, #72] ; a0012098 <== NOT EXECUTED a001204c: e1a01008 mov r1, r8 <== NOT EXECUTED a0012050: eb000836 bl a0014130 <_Objects_Free> <== NOT EXECUTED _Objects_MP_Close( &_Message_queue_Information, the_message_queue->Object.id); #endif _Message_queue_Free( the_message_queue ); _Thread_Enable_dispatch(); a0012054: eb000c09 bl a0015080 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_UNSATISFIED; a0012058: e3a0000d mov r0, #13 <== NOT EXECUTED a001205c: eaffffe2 b a0011fec <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; a0012060: e59f2030 ldr r2, [pc, #48] ; a0012098 <== NOT EXECUTED Objects_Name name ) { _Objects_Set_local_object( information, _Objects_Get_index( the_object->id ), a0012064: e5983008 ldr r3, [r8, #8] <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; a0012068: e592201c ldr r2, [r2, #28] <== NOT EXECUTED Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( a001206c: e1a01803 lsl r1, r3, #16 <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; a0012070: e7828721 str r8, [r2, r1, lsr #14] <== NOT EXECUTED information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; a0012074: e588700c str r7, [r8, #12] <== NOT EXECUTED &_Message_queue_Information, &the_message_queue->Object, (Objects_Name) name ); *id = the_message_queue->Object.id; a0012078: e5853000 str r3, [r5] <== NOT EXECUTED name, 0 ); #endif _Thread_Enable_dispatch(); a001207c: eb000bff bl a0015080 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0012080: e3a00000 mov r0, #0 <== NOT EXECUTED a0012084: eaffffd8 b a0011fec <== NOT EXECUTED _Thread_Disable_dispatch(); /* protects object pointer */ the_message_queue = _Message_queue_Allocate(); if ( !the_message_queue ) { _Thread_Enable_dispatch(); a0012088: eb000bfc bl a0015080 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_TOO_MANY; a001208c: e3a00005 mov r0, #5 <== NOT EXECUTED a0012090: eaffffd5 b a0011fec <== NOT EXECUTED =============================================================================== a000fd80 : */ rtems_status_code rtems_message_queue_delete( rtems_id id ) { a000fd80: e92d4030 push {r4, r5, lr} <== NOT EXECUTED a000fd84: e24dd004 sub sp, sp, #4 <== NOT EXECUTED a000fd88: e1a01000 mov r1, r0 <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Message_queue_Control *) _Objects_Get( &_Message_queue_Information, id, location ); a000fd8c: e1a0200d mov r2, sp <== NOT EXECUTED a000fd90: e59f004c ldr r0, [pc, #76] ; a000fde4 <== NOT EXECUTED a000fd94: ebfff08b bl a000bfc8 <_Objects_Get> <== NOT EXECUTED register Message_queue_Control *the_message_queue; Objects_Locations location; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { a000fd98: e59d4000 ldr r4, [sp] <== NOT EXECUTED a000fd9c: e1a05000 mov r5, r0 <== NOT EXECUTED a000fda0: e3540000 cmp r4, #0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a000fda4: 13a00004 movne r0, #4 <== NOT EXECUTED { register Message_queue_Control *the_message_queue; Objects_Locations location; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { a000fda8: 1a00000b bne a000fddc <== NOT EXECUTED case OBJECTS_LOCAL: _Objects_Close( &_Message_queue_Information, a000fdac: e1a01005 mov r1, r5 <== NOT EXECUTED a000fdb0: e59f002c ldr r0, [pc, #44] ; a000fde4 <== NOT EXECUTED a000fdb4: ebffef75 bl a000bb90 <_Objects_Close> <== NOT EXECUTED &the_message_queue->Object ); _CORE_message_queue_Close( a000fdb8: e3a02005 mov r2, #5 <== NOT EXECUTED a000fdbc: e2850014 add r0, r5, #20 <== NOT EXECUTED a000fdc0: e1a01004 mov r1, r4 <== NOT EXECUTED a000fdc4: eb000198 bl a001042c <_CORE_message_queue_Close> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Message_queue_Free ( Message_queue_Control *the_message_queue ) { _Objects_Free( &_Message_queue_Information, &the_message_queue->Object ); a000fdc8: e59f0014 ldr r0, [pc, #20] ; a000fde4 <== NOT EXECUTED a000fdcc: e1a01005 mov r1, r5 <== NOT EXECUTED a000fdd0: ebfff023 bl a000be64 <_Objects_Free> <== NOT EXECUTED 0, /* Not used */ 0 ); } #endif _Thread_Enable_dispatch(); a000fdd4: ebfff3ac bl a000cc8c <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000fdd8: e1a00004 mov r0, r4 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a000fddc: e28dd004 add sp, sp, #4 <== NOT EXECUTED a000fde0: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED =============================================================================== a0017a18 : rtems_status_code rtems_message_queue_flush( rtems_id id, uint32_t *count ) { a0017a18: e92d4030 push {r4, r5, lr} <== NOT EXECUTED register Message_queue_Control *the_message_queue; Objects_Locations location; if ( !count ) a0017a1c: e2514000 subs r4, r1, #0 <== NOT EXECUTED rtems_status_code rtems_message_queue_flush( rtems_id id, uint32_t *count ) { a0017a20: e24dd004 sub sp, sp, #4 <== NOT EXECUTED a0017a24: e1a01000 mov r1, r0 <== NOT EXECUTED register Message_queue_Control *the_message_queue; Objects_Locations location; if ( !count ) return RTEMS_INVALID_ADDRESS; a0017a28: 03a00009 moveq r0, #9 <== NOT EXECUTED ) { register Message_queue_Control *the_message_queue; Objects_Locations location; if ( !count ) a0017a2c: 0a00000b beq a0017a60 <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Message_queue_Control *) _Objects_Get( &_Message_queue_Information, id, location ); a0017a30: e59f0030 ldr r0, [pc, #48] ; a0017a68 <== NOT EXECUTED a0017a34: e1a0200d mov r2, sp <== NOT EXECUTED a0017a38: eb00147d bl a001cc34 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { a0017a3c: e59d5000 ldr r5, [sp] <== NOT EXECUTED a0017a40: e3550000 cmp r5, #0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a0017a44: 13a00004 movne r0, #4 <== NOT EXECUTED if ( !count ) return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { a0017a48: 1a000004 bne a0017a60 <== NOT EXECUTED case OBJECTS_LOCAL: *count = _CORE_message_queue_Flush( &the_message_queue->message_queue ); a0017a4c: e2800014 add r0, r0, #20 <== NOT EXECUTED a0017a50: eb000d85 bl a001b06c <_CORE_message_queue_Flush> <== NOT EXECUTED a0017a54: e5840000 str r0, [r4] <== NOT EXECUTED _Thread_Enable_dispatch(); a0017a58: eb0017c8 bl a001d980 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0017a5c: e1a00005 mov r0, r5 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a0017a60: e28dd004 add sp, sp, #4 <== NOT EXECUTED a0017a64: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED =============================================================================== a0017a6c : rtems_status_code rtems_message_queue_get_number_pending( rtems_id id, uint32_t *count ) { a0017a6c: e92d4030 push {r4, r5, lr} <== NOT EXECUTED register Message_queue_Control *the_message_queue; Objects_Locations location; if ( !count ) a0017a70: e2514000 subs r4, r1, #0 <== NOT EXECUTED rtems_status_code rtems_message_queue_get_number_pending( rtems_id id, uint32_t *count ) { a0017a74: e24dd004 sub sp, sp, #4 <== NOT EXECUTED a0017a78: e1a01000 mov r1, r0 <== NOT EXECUTED register Message_queue_Control *the_message_queue; Objects_Locations location; if ( !count ) return RTEMS_INVALID_ADDRESS; a0017a7c: 03a00009 moveq r0, #9 <== NOT EXECUTED ) { register Message_queue_Control *the_message_queue; Objects_Locations location; if ( !count ) a0017a80: 0a00000a beq a0017ab0 <== NOT EXECUTED a0017a84: e59f002c ldr r0, [pc, #44] ; a0017ab8 <== NOT EXECUTED a0017a88: e1a0200d mov r2, sp <== NOT EXECUTED a0017a8c: eb001468 bl a001cc34 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { a0017a90: e59d5000 ldr r5, [sp] <== NOT EXECUTED a0017a94: e3550000 cmp r5, #0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a0017a98: 13a00004 movne r0, #4 <== NOT EXECUTED if ( !count ) return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { a0017a9c: 1a000003 bne a0017ab0 <== NOT EXECUTED case OBJECTS_LOCAL: *count = the_message_queue->message_queue.number_of_pending_messages; a0017aa0: e590305c ldr r3, [r0, #92] ; 0x5c <== NOT EXECUTED a0017aa4: e5843000 str r3, [r4] <== NOT EXECUTED _Thread_Enable_dispatch(); a0017aa8: eb0017b4 bl a001d980 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0017aac: e1a00005 mov r0, r5 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a0017ab0: e28dd004 add sp, sp, #4 <== NOT EXECUTED a0017ab4: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED =============================================================================== a001209c : rtems_status_code rtems_message_queue_ident( rtems_name name, uint32_t node, rtems_id *id ) { a001209c: e1a0c001 mov ip, r1 <== NOT EXECUTED a00120a0: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED a00120a4: e1a0e000 mov lr, r0 <== NOT EXECUTED a00120a8: e1a03002 mov r3, r2 <== NOT EXECUTED Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( a00120ac: e1a0100e mov r1, lr <== NOT EXECUTED a00120b0: e1a0200c mov r2, ip <== NOT EXECUTED a00120b4: e59f000c ldr r0, [pc, #12] ; a00120c8 <== NOT EXECUTED a00120b8: eb0008ca bl a00143e8 <_Objects_Name_to_id_u32> <== NOT EXECUTED name, node, id ); return _Status_Object_name_errors_to_status[ status ]; a00120bc: e59f3008 ldr r3, [pc, #8] ; a00120cc <== NOT EXECUTED } a00120c0: e7930100 ldr r0, [r3, r0, lsl #2] <== NOT EXECUTED a00120c4: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED =============================================================================== a00120d0 : void *buffer, size_t *size, rtems_option option_set, rtems_interval timeout ) { a00120d0: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED register Message_queue_Control *the_message_queue; Objects_Locations location; bool wait; if ( !buffer ) a00120d4: e2515000 subs r5, r1, #0 <== NOT EXECUTED void *buffer, size_t *size, rtems_option option_set, rtems_interval timeout ) { a00120d8: e24dd00c sub sp, sp, #12 <== NOT EXECUTED a00120dc: e1a01000 mov r1, r0 <== NOT EXECUTED a00120e0: e1a04002 mov r4, r2 <== NOT EXECUTED a00120e4: e1a06003 mov r6, r3 <== NOT EXECUTED register Message_queue_Control *the_message_queue; Objects_Locations location; bool wait; if ( !buffer ) a00120e8: 0a000019 beq a0012154 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !size ) a00120ec: e3520000 cmp r2, #0 <== NOT EXECUTED a00120f0: 0a000017 beq a0012154 <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Message_queue_Control *) _Objects_Get( &_Message_queue_Information, id, location ); a00120f4: e59f0060 ldr r0, [pc, #96] ; a001215c <== NOT EXECUTED a00120f8: e28d2008 add r2, sp, #8 <== NOT EXECUTED a00120fc: eb000864 bl a0014294 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { a0012100: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED a0012104: e3530000 cmp r3, #0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a0012108: 13a00004 movne r0, #4 <== NOT EXECUTED if ( !size ) return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { a001210c: 1a00000e bne a001214c <== NOT EXECUTED if ( _Options_Is_no_wait( option_set ) ) wait = false; else wait = true; _CORE_message_queue_Seize( a0012110: e59d301c ldr r3, [sp, #28] <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Options_Is_no_wait ( rtems_option option_set ) { return (option_set & RTEMS_NO_WAIT) ? true : false; a0012114: e2066001 and r6, r6, #1 <== NOT EXECUTED a0012118: e5901008 ldr r1, [r0, #8] <== NOT EXECUTED a001211c: e1a02005 mov r2, r5 <== NOT EXECUTED a0012120: e2800014 add r0, r0, #20 <== NOT EXECUTED a0012124: e58d3004 str r3, [sp, #4] <== NOT EXECUTED a0012128: e2266001 eor r6, r6, #1 <== NOT EXECUTED a001212c: e1a03004 mov r3, r4 <== NOT EXECUTED a0012130: e58d6000 str r6, [sp] <== NOT EXECUTED a0012134: eb00046b bl a00132e8 <_CORE_message_queue_Seize> <== NOT EXECUTED buffer, size, wait, timeout ); _Thread_Enable_dispatch(); a0012138: eb000bd0 bl a0015080 <_Thread_Enable_dispatch> <== NOT EXECUTED return _Message_queue_Translate_core_message_queue_return_code( _Thread_Executing->Wait.return_code a001213c: e59f301c ldr r3, [pc, #28] ; a0012160 <== NOT EXECUTED a0012140: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED size, wait, timeout ); _Thread_Enable_dispatch(); return _Message_queue_Translate_core_message_queue_return_code( a0012144: e5930034 ldr r0, [r3, #52] ; 0x34 <== NOT EXECUTED a0012148: eb000024 bl a00121e0 <_Message_queue_Translate_core_message_queue_return_code><== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a001214c: e28dd00c add sp, sp, #12 <== NOT EXECUTED a0012150: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED if ( !buffer ) return RTEMS_INVALID_ADDRESS; if ( !size ) return RTEMS_INVALID_ADDRESS; a0012154: e3a00009 mov r0, #9 <== NOT EXECUTED a0012158: eafffffb b a001214c <== NOT EXECUTED =============================================================================== a0012164 : rtems_status_code rtems_message_queue_send( rtems_id id, const void *buffer, size_t size ) { a0012164: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED register Message_queue_Control *the_message_queue; Objects_Locations location; CORE_message_queue_Status status; if ( !buffer ) a0012168: e2516000 subs r6, r1, #0 <== NOT EXECUTED rtems_status_code rtems_message_queue_send( rtems_id id, const void *buffer, size_t size ) { a001216c: e1a04000 mov r4, r0 <== NOT EXECUTED a0012170: e24dd014 sub sp, sp, #20 <== NOT EXECUTED a0012174: e1a05002 mov r5, r2 <== NOT EXECUTED register Message_queue_Control *the_message_queue; Objects_Locations location; CORE_message_queue_Status status; if ( !buffer ) return RTEMS_INVALID_ADDRESS; a0012178: 03a00009 moveq r0, #9 <== NOT EXECUTED { register Message_queue_Control *the_message_queue; Objects_Locations location; CORE_message_queue_Status status; if ( !buffer ) a001217c: 0a000014 beq a00121d4 <== NOT EXECUTED a0012180: e59f0054 ldr r0, [pc, #84] ; a00121dc <== NOT EXECUTED a0012184: e1a01004 mov r1, r4 <== NOT EXECUTED a0012188: e28d2010 add r2, sp, #16 <== NOT EXECUTED a001218c: eb000840 bl a0014294 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { a0012190: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED a0012194: e3530000 cmp r3, #0 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a0012198: 13a00004 movne r0, #4 <== NOT EXECUTED if ( !buffer ) return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { a001219c: 1a00000c bne a00121d4 <== NOT EXECUTED CORE_message_queue_API_mp_support_callout api_message_queue_mp_support, bool wait, Watchdog_Interval timeout ) { return _CORE_message_queue_Submit( a00121a0: e3e02102 mvn r2, #-2147483648 ; 0x80000000 <== NOT EXECUTED a00121a4: e58d3000 str r3, [sp] <== NOT EXECUTED a00121a8: e98d000c stmib sp, {r2, r3} <== NOT EXECUTED a00121ac: e58d300c str r3, [sp, #12] <== NOT EXECUTED a00121b0: e1a01006 mov r1, r6 <== NOT EXECUTED a00121b4: e1a03004 mov r3, r4 <== NOT EXECUTED a00121b8: e1a02005 mov r2, r5 <== NOT EXECUTED a00121bc: e2800014 add r0, r0, #20 <== NOT EXECUTED a00121c0: eb000480 bl a00133c8 <_CORE_message_queue_Submit> <== NOT EXECUTED a00121c4: e1a04000 mov r4, r0 <== NOT EXECUTED MESSAGE_QUEUE_MP_HANDLER, false, /* sender does not block */ 0 /* no timeout */ ); _Thread_Enable_dispatch(); a00121c8: eb000bac bl a0015080 <_Thread_Enable_dispatch> <== NOT EXECUTED /* * Since this API does not allow for blocking sends, we can directly * return the returned status. */ return _Message_queue_Translate_core_message_queue_return_code(status); a00121cc: e1a00004 mov r0, r4 <== NOT EXECUTED a00121d0: eb000002 bl a00121e0 <_Message_queue_Translate_core_message_queue_return_code><== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a00121d4: e28dd014 add sp, sp, #20 <== NOT EXECUTED a00121d8: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED =============================================================================== a0017c10 : rtems_status_code rtems_message_queue_urgent( rtems_id id, const void *buffer, size_t size ) { a0017c10: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED register Message_queue_Control *the_message_queue; Objects_Locations location; CORE_message_queue_Status status; if ( !buffer ) a0017c14: e2516000 subs r6, r1, #0 <== NOT EXECUTED rtems_status_code rtems_message_queue_urgent( rtems_id id, const void *buffer, size_t size ) { a0017c18: e1a04000 mov r4, r0 <== NOT EXECUTED a0017c1c: e24dd014 sub sp, sp, #20 <== NOT EXECUTED a0017c20: e1a05002 mov r5, r2 <== NOT EXECUTED register Message_queue_Control *the_message_queue; Objects_Locations location; CORE_message_queue_Status status; if ( !buffer ) return RTEMS_INVALID_ADDRESS; a0017c24: 03a00009 moveq r0, #9 <== NOT EXECUTED { register Message_queue_Control *the_message_queue; Objects_Locations location; CORE_message_queue_Status status; if ( !buffer ) a0017c28: 0a000014 beq a0017c80 <== NOT EXECUTED a0017c2c: e59f0054 ldr r0, [pc, #84] ; a0017c88 <== NOT EXECUTED a0017c30: e1a01004 mov r1, r4 <== NOT EXECUTED a0017c34: e28d2010 add r2, sp, #16 <== NOT EXECUTED a0017c38: eb0013fd bl a001cc34 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { a0017c3c: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED a0017c40: e3530000 cmp r3, #0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a0017c44: 13a00004 movne r0, #4 <== NOT EXECUTED if ( !buffer ) return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { a0017c48: 1a00000c bne a0017c80 <== NOT EXECUTED CORE_message_queue_API_mp_support_callout api_message_queue_mp_support, bool wait, Watchdog_Interval timeout ) { return _CORE_message_queue_Submit( a0017c4c: e3a02102 mov r2, #-2147483648 ; 0x80000000 <== NOT EXECUTED a0017c50: e58d3000 str r3, [sp] <== NOT EXECUTED a0017c54: e98d000c stmib sp, {r2, r3} <== NOT EXECUTED a0017c58: e58d300c str r3, [sp, #12] <== NOT EXECUTED a0017c5c: e1a01006 mov r1, r6 <== NOT EXECUTED a0017c60: e1a03004 mov r3, r4 <== NOT EXECUTED a0017c64: e1a02005 mov r2, r5 <== NOT EXECUTED a0017c68: e2800014 add r0, r0, #20 <== NOT EXECUTED a0017c6c: eb000d85 bl a001b288 <_CORE_message_queue_Submit> <== NOT EXECUTED a0017c70: e1a04000 mov r4, r0 <== NOT EXECUTED id, MESSAGE_QUEUE_MP_HANDLER, false, /* sender does not block */ 0 /* no timeout */ ); _Thread_Enable_dispatch(); a0017c74: eb001741 bl a001d980 <_Thread_Enable_dispatch> <== NOT EXECUTED /* * Since this API does not allow for blocking sends, we can directly * return the returned status. */ return _Message_queue_Translate_core_message_queue_return_code(status); a0017c78: e1a00004 mov r0, r4 <== NOT EXECUTED a0017c7c: ebffffdf bl a0017c00 <_Message_queue_Translate_core_message_queue_return_code><== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a0017c80: e28dd014 add sp, sp, #20 <== NOT EXECUTED a0017c84: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED =============================================================================== a000b8e8 : int rtems_object_api_maximum_class( int api ) { return _Objects_API_maximum_class(api); a000b8e8: ea00063a b a000d1d8 <_Objects_API_maximum_class> <== NOT EXECUTED =============================================================================== a000b8ec : */ RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid( uint32_t the_api ) { if ( !the_api || the_api > OBJECTS_APIS_LAST ) a000b8ec: e2400001 sub r0, r0, #1 <== NOT EXECUTED uint32_t api ) { if ( _Objects_Is_api_valid( api ) ) return 1; return -1; a000b8f0: e3500003 cmp r0, #3 <== NOT EXECUTED } a000b8f4: 33a00001 movcc r0, #1 <== NOT EXECUTED a000b8f8: 23e00000 mvncs r0, #0 <== NOT EXECUTED a000b8fc: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000b900 : ) { const rtems_assoc_t *api_assoc; const rtems_assoc_t *class_assoc; if ( the_api == OBJECTS_INTERNAL_API ) a000b900: e3500001 cmp r0, #1 <== NOT EXECUTED const char *rtems_object_get_api_class_name( int the_api, int the_class ) { a000b904: 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 ) a000b908: 0a000004 beq a000b920 <== NOT EXECUTED api_assoc = rtems_object_api_internal_assoc; else if ( the_api == OBJECTS_CLASSIC_API ) a000b90c: e3500002 cmp r0, #2 <== NOT EXECUTED api_assoc = rtems_object_api_classic_assoc; a000b910: 059f0024 ldreq r0, [pc, #36] ; a000b93c <== 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 ) a000b914: 0a000002 beq a000b924 <== 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"; a000b918: e59f0020 ldr r0, [pc, #32] ; a000b940 <== NOT EXECUTED a000b91c: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== 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; a000b920: e59f001c ldr r0, [pc, #28] ; a000b944 <== 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 ); a000b924: eb0013f6 bl a0010904 <== NOT EXECUTED if ( class_assoc ) a000b928: e3500000 cmp r0, #0 <== NOT EXECUTED return class_assoc->name; a000b92c: 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 ) a000b930: 149df004 popne {pc} ; (ldrne pc, [sp], #4) <== NOT EXECUTED return class_assoc->name; return "BAD CLASS"; a000b934: e59f000c ldr r0, [pc, #12] ; a000b948 <== NOT EXECUTED } a000b938: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED =============================================================================== a000b94c : }; const char *rtems_object_get_api_name( int api ) { a000b94c: e1a01000 mov r1, r0 <== NOT EXECUTED a000b950: 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 ); a000b954: e59f0010 ldr r0, [pc, #16] ; a000b96c <== NOT EXECUTED a000b958: eb0013e9 bl a0010904 <== NOT EXECUTED if ( api_assoc ) a000b95c: e3500000 cmp r0, #0 <== NOT EXECUTED return api_assoc->name; a000b960: 15900000 ldrne r0, [r0] <== NOT EXECUTED return "BAD CLASS"; a000b964: 059f0004 ldreq r0, [pc, #4] ; a000b970 <== NOT EXECUTED } a000b968: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED =============================================================================== a000b9ac : rtems_status_code rtems_object_get_class_information( int the_api, int the_class, rtems_object_api_class_information *info ) { a000b9ac: e92d4030 push {r4, r5, lr} <== NOT EXECUTED int i; /* * Validate parameters and look up information structure. */ if ( !info ) a000b9b0: e2524000 subs r4, r2, #0 <== NOT EXECUTED a000b9b4: 0a00001c beq a000ba2c <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; obj_info = _Objects_Get_information( the_api, the_class ); a000b9b8: e1a01801 lsl r1, r1, #16 <== NOT EXECUTED a000b9bc: e1a01821 lsr r1, r1, #16 <== NOT EXECUTED a000b9c0: eb0006e3 bl a000d554 <_Objects_Get_information> <== NOT EXECUTED if ( !obj_info ) a000b9c4: e3500000 cmp r0, #0 <== NOT EXECUTED a000b9c8: 0a000019 beq a000ba34 <== 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; info->maximum = obj_info->maximum; a000b9cc: e1d0c1b0 ldrh ip, [r0, #16] <== NOT EXECUTED return RTEMS_INVALID_NUMBER; /* * Return information about this object class to the user. */ info->minimum_id = obj_info->minimum_id; a000b9d0: e5901008 ldr r1, [r0, #8] <== NOT EXECUTED info->maximum_id = obj_info->maximum_id; a000b9d4: e590200c ldr r2, [r0, #12] <== NOT EXECUTED info->auto_extend = obj_info->auto_extend; a000b9d8: e5d03012 ldrb r3, [r0, #18] <== NOT EXECUTED info->maximum = obj_info->maximum; for ( unallocated=0, i=1 ; i <= info->maximum ; i++ ) a000b9dc: e35c0000 cmp ip, #0 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; /* * Return information about this object class to the user. */ info->minimum_id = obj_info->minimum_id; a000b9e0: e8840006 stm r4, {r1, r2} <== NOT EXECUTED info->maximum_id = obj_info->maximum_id; info->auto_extend = obj_info->auto_extend; a000b9e4: e5c4300c strb r3, [r4, #12] <== NOT EXECUTED info->maximum = obj_info->maximum; a000b9e8: e584c008 str ip, [r4, #8] <== NOT EXECUTED for ( unallocated=0, i=1 ; i <= info->maximum ; i++ ) a000b9ec: 01a0500c moveq r5, ip <== NOT EXECUTED a000b9f0: 0a00000a beq a000ba20 <== NOT EXECUTED a000b9f4: e590001c ldr r0, [r0, #28] <== NOT EXECUTED a000b9f8: e3a02001 mov r2, #1 <== NOT EXECUTED a000b9fc: e1a03002 mov r3, r2 <== NOT EXECUTED a000ba00: e3a05000 mov r5, #0 <== NOT EXECUTED if ( !obj_info->local_table[i] ) a000ba04: e7901102 ldr r1, [r0, r2, 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++ ) a000ba08: e2833001 add r3, r3, #1 <== NOT EXECUTED a000ba0c: e1a02003 mov r2, r3 <== NOT EXECUTED if ( !obj_info->local_table[i] ) a000ba10: e3510000 cmp r1, #0 <== NOT EXECUTED unallocated++; a000ba14: 02855001 addeq r5, r5, #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++ ) a000ba18: e15c0003 cmp ip, r3 <== NOT EXECUTED a000ba1c: 2afffff8 bcs a000ba04 <== NOT EXECUTED if ( !obj_info->local_table[i] ) unallocated++; info->unallocated = unallocated; a000ba20: e5845010 str r5, [r4, #16] <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000ba24: e3a00000 mov r0, #0 <== NOT EXECUTED a000ba28: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED /* * Validate parameters and look up information structure. */ if ( !info ) return RTEMS_INVALID_ADDRESS; a000ba2c: e3a00009 mov r0, #9 <== NOT EXECUTED a000ba30: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED obj_info = _Objects_Get_information( the_api, the_class ); if ( !obj_info ) return RTEMS_INVALID_NUMBER; a000ba34: e3a0000a mov r0, #10 <== NOT EXECUTED unallocated++; info->unallocated = unallocated; return RTEMS_SUCCESSFUL; } a000ba38: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED =============================================================================== a000ad34 : rtems_status_code rtems_object_get_classic_name( rtems_id id, rtems_name *name ) { a000ad34: e92d4010 push {r4, lr} <== NOT EXECUTED Objects_Name_or_id_lookup_errors status; Objects_Name name_u; if ( !name ) a000ad38: e2514000 subs r4, r1, #0 <== NOT EXECUTED rtems_status_code rtems_object_get_classic_name( rtems_id id, rtems_name *name ) { a000ad3c: e24dd004 sub sp, sp, #4 <== NOT EXECUTED Objects_Name_or_id_lookup_errors status; Objects_Name name_u; if ( !name ) return RTEMS_INVALID_ADDRESS; a000ad40: 03a00009 moveq r0, #9 <== NOT EXECUTED ) { Objects_Name_or_id_lookup_errors status; Objects_Name name_u; if ( !name ) a000ad44: 0a000005 beq a000ad60 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; status = _Objects_Id_to_name( id, &name_u ); a000ad48: e1a0100d mov r1, sp <== NOT EXECUTED a000ad4c: eb000710 bl a000c994 <_Objects_Id_to_name> <== NOT EXECUTED *name = name_u.name_u32; a000ad50: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000ad54: e5843000 str r3, [r4] <== NOT EXECUTED return _Status_Object_name_errors_to_status[ status ]; a000ad58: e59f3008 ldr r3, [pc, #8] ; a000ad68 <== NOT EXECUTED a000ad5c: e7930100 ldr r0, [r3, r0, lsl #2] <== NOT EXECUTED } a000ad60: e28dd004 add sp, sp, #4 <== NOT EXECUTED a000ad64: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a000af5c : Objects_Id id, size_t length, char *name ) { return _Objects_Get_name_as_string( id, length, name ); a000af5c: ea0007a1 b a000cde8 <_Objects_Get_name_as_string> <== NOT EXECUTED =============================================================================== a000ba40 : #undef rtems_object_id_api_maximum int rtems_object_id_api_maximum(void) { return OBJECTS_APIS_LAST; } a000ba40: e3a00003 mov r0, #3 <== NOT EXECUTED a000ba44: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000ba48 : #undef rtems_object_id_api_minimum int rtems_object_id_api_minimum(void) { return OBJECTS_INTERNAL_API; } a000ba48: e3a00001 mov r0, #1 <== NOT EXECUTED a000ba4c: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000ba50 : */ RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API( Objects_Id id ) { return (Objects_APIs) ((id >> OBJECTS_API_START_BIT) & OBJECTS_API_VALID_BITS); a000ba50: e1a00c20 lsr r0, r0, #24 <== NOT EXECUTED int rtems_object_id_get_api( rtems_id id ) { return _Objects_Get_API( id ); } a000ba54: e2000007 and r0, r0, #7 <== NOT EXECUTED a000ba58: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000ba5c : int rtems_object_id_get_class( rtems_id id ) { return _Objects_Get_class( id ); } a000ba5c: e1a00da0 lsr r0, r0, #27 <== NOT EXECUTED a000ba60: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000ba64 : #undef rtems_object_id_get_index int rtems_object_id_get_index( rtems_id id ) { return _Objects_Get_index( id ); a000ba64: e1a00800 lsl r0, r0, #16 <== NOT EXECUTED } a000ba68: e1a00820 lsr r0, r0, #16 <== NOT EXECUTED a000ba6c: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000ba70 : * 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; a000ba70: e1a00820 lsr r0, r0, #16 <== NOT EXECUTED int rtems_object_id_get_node( rtems_id id ) { return _Objects_Get_node( id ); } a000ba74: e20000ff and r0, r0, #255 ; 0xff <== NOT EXECUTED a000ba78: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000ba7c : */ rtems_status_code rtems_object_set_name( rtems_id id, const char *name ) { a000ba7c: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED Objects_Information *information; Objects_Locations location; Objects_Control *the_object; Objects_Id tmpId; if ( !name ) a000ba80: e2515000 subs r5, r1, #0 <== NOT EXECUTED */ rtems_status_code rtems_object_set_name( rtems_id id, const char *name ) { a000ba84: e24dd004 sub sp, sp, #4 <== NOT EXECUTED Objects_Locations location; Objects_Control *the_object; Objects_Id tmpId; if ( !name ) 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: 0a000010 beq a000bad4 <== 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: 059f3058 ldreq r3, [pc, #88] ; a000baf4 <== NOT EXECUTED a000ba98: 11a04000 movne r4, r0 <== NOT EXECUTED a000ba9c: 05933004 ldreq r3, [r3, #4] <== NOT EXECUTED a000baa0: 05934008 ldreq r4, [r3, #8] <== NOT EXECUTED information = _Objects_Get_information_id( tmpId ); a000baa4: e1a00004 mov r0, r4 <== NOT EXECUTED a000baa8: eb0006a4 bl a000d540 <_Objects_Get_information_id> <== NOT EXECUTED if ( !information ) a000baac: e2506000 subs r6, r0, #0 <== NOT EXECUTED a000bab0: 0a000006 beq a000bad0 <== 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: eb00071b bl a000d730 <_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: 0a000002 beq a000badc <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a000bad0: e3a00004 mov r0, #4 <== NOT EXECUTED } a000bad4: e28dd004 add sp, sp, #4 <== NOT EXECUTED a000bad8: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED the_object = _Objects_Get( information, tmpId, &location ); switch ( location ) { case OBJECTS_LOCAL: _Objects_Set_name( information, the_object, name ); a000badc: e1a02005 mov r2, r5 <== NOT EXECUTED a000bae0: e1a00006 mov r0, r6 <== NOT EXECUTED a000bae4: eb000789 bl a000d910 <_Objects_Set_name> <== NOT EXECUTED _Thread_Enable_dispatch(); a000bae8: eb000a83 bl a000e4fc <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000baec: e1a00004 mov r0, r4 <== NOT EXECUTED a000baf0: eafffff7 b a000bad4 <== NOT EXECUTED =============================================================================== a0017c8c : uint32_t length, uint32_t buffer_size, rtems_attribute attribute_set, rtems_id *id ) { a0017c8c: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} <== NOT EXECUTED register Partition_Control *the_partition; if ( !rtems_is_name_valid( name ) ) a0017c90: e2506000 subs r6, r0, #0 <== NOT EXECUTED uint32_t length, uint32_t buffer_size, rtems_attribute attribute_set, rtems_id *id ) { a0017c94: e24dd008 sub sp, sp, #8 <== NOT EXECUTED a0017c98: e1a04001 mov r4, r1 <== NOT EXECUTED a0017c9c: e59d502c ldr r5, [sp, #44] ; 0x2c <== NOT EXECUTED register Partition_Control *the_partition; if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; a0017ca0: 03a00003 moveq r0, #3 <== NOT EXECUTED rtems_id *id ) { register Partition_Control *the_partition; if ( !rtems_is_name_valid( name ) ) a0017ca4: 0a000031 beq a0017d70 <== NOT EXECUTED return RTEMS_INVALID_NAME; if ( !starting_address ) a0017ca8: e3510000 cmp r1, #0 <== NOT EXECUTED a0017cac: 0a000033 beq a0017d80 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !id ) a0017cb0: e3550000 cmp r5, #0 <== NOT EXECUTED a0017cb4: 0a000031 beq a0017d80 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( length == 0 || buffer_size == 0 || length < buffer_size || a0017cb8: e3520000 cmp r2, #0 <== NOT EXECUTED a0017cbc: 13530000 cmpne r3, #0 <== NOT EXECUTED a0017cc0: 0a00002c beq a0017d78 <== NOT EXECUTED a0017cc4: e1520003 cmp r2, r3 <== NOT EXECUTED a0017cc8: 3a00002a bcc a0017d78 <== NOT EXECUTED a0017ccc: e3130007 tst r3, #7 <== NOT EXECUTED a0017cd0: 1a000028 bne a0017d78 <== NOT EXECUTED !_Partition_Is_buffer_size_aligned( buffer_size ) ) return RTEMS_INVALID_SIZE; if ( !_Addresses_Is_aligned( starting_address ) ) a0017cd4: e2118007 ands r8, r1, #7 <== NOT EXECUTED a0017cd8: 1a000028 bne a0017d80 <== NOT EXECUTED a0017cdc: e59f10b0 ldr r1, [pc, #176] ; a0017d94 <== NOT EXECUTED a0017ce0: e5910000 ldr r0, [r1] <== NOT EXECUTED a0017ce4: e2800001 add r0, r0, #1 <== NOT EXECUTED a0017ce8: e5810000 str r0, [r1] <== NOT EXECUTED * This function allocates a partition control block from * the inactive chain of free partition control blocks. */ RTEMS_INLINE_ROUTINE Partition_Control *_Partition_Allocate ( void ) { return (Partition_Control *) _Objects_Allocate( &_Partition_Information ); a0017cec: e59fa0a4 ldr sl, [pc, #164] ; a0017d98 <== NOT EXECUTED a0017cf0: e58d2004 str r2, [sp, #4] <== NOT EXECUTED a0017cf4: e58d3000 str r3, [sp] <== NOT EXECUTED a0017cf8: e1a0000a mov r0, sl <== NOT EXECUTED a0017cfc: eb001289 bl a001c728 <_Objects_Allocate> <== NOT EXECUTED _Thread_Disable_dispatch(); /* prevents deletion */ the_partition = _Partition_Allocate(); if ( !the_partition ) { a0017d00: e2507000 subs r7, r0, #0 <== NOT EXECUTED a0017d04: e59d2004 ldr r2, [sp, #4] <== NOT EXECUTED a0017d08: e59d3000 ldr r3, [sp] <== NOT EXECUTED a0017d0c: 0a00001d beq a0017d88 <== 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; a0017d10: e59d1028 ldr r1, [sp, #40] ; 0x28 <== NOT EXECUTED return RTEMS_TOO_MANY; } #endif the_partition->starting_address = starting_address; the_partition->length = length; a0017d14: e5872014 str r2, [r7, #20] <== NOT EXECUTED the_partition->buffer_size = buffer_size; a0017d18: e5873018 str r3, [r7, #24] <== NOT EXECUTED the_partition->attribute_set = attribute_set; a0017d1c: e587101c str r1, [r7, #28] <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } #endif the_partition->starting_address = starting_address; a0017d20: e5874010 str r4, [r7, #16] <== NOT EXECUTED the_partition->length = length; the_partition->buffer_size = buffer_size; the_partition->attribute_set = attribute_set; the_partition->number_of_used_blocks = 0; _Chain_Initialize( &the_partition->Memory, starting_address, a0017d24: e1a01003 mov r1, r3 <== NOT EXECUTED the_partition->starting_address = starting_address; the_partition->length = length; the_partition->buffer_size = buffer_size; the_partition->attribute_set = attribute_set; the_partition->number_of_used_blocks = 0; a0017d28: e5878020 str r8, [r7, #32] <== NOT EXECUTED _Chain_Initialize( &the_partition->Memory, starting_address, a0017d2c: e1a00002 mov r0, r2 <== NOT EXECUTED a0017d30: e58d3000 str r3, [sp] <== NOT EXECUTED a0017d34: eb006074 bl a002ff0c <__aeabi_uidiv> <== NOT EXECUTED a0017d38: e2879024 add r9, r7, #36 ; 0x24 <== NOT EXECUTED a0017d3c: e1a02000 mov r2, r0 <== NOT EXECUTED a0017d40: e1a01004 mov r1, r4 <== NOT EXECUTED a0017d44: e1a00009 mov r0, r9 <== NOT EXECUTED a0017d48: e59d3000 ldr r3, [sp] <== NOT EXECUTED a0017d4c: eb000c84 bl a001af64 <_Chain_Initialize> <== NOT EXECUTED Objects_Name name ) { _Objects_Set_local_object( information, _Objects_Get_index( the_object->id ), a0017d50: e5973008 ldr r3, [r7, #8] <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; a0017d54: e59a201c ldr r2, [sl, #28] <== NOT EXECUTED Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( a0017d58: e1a01803 lsl r1, r3, #16 <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; a0017d5c: e7827721 str r7, [r2, r1, lsr #14] <== NOT EXECUTED information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; a0017d60: e587600c str r6, [r7, #12] <== NOT EXECUTED &_Partition_Information, &the_partition->Object, (Objects_Name) name ); *id = the_partition->Object.id; a0017d64: e5853000 str r3, [r5] <== NOT EXECUTED name, 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); a0017d68: eb001704 bl a001d980 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0017d6c: e1a00008 mov r0, r8 <== NOT EXECUTED } a0017d70: e28dd008 add sp, sp, #8 <== NOT EXECUTED a0017d74: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED if ( !id ) return RTEMS_INVALID_ADDRESS; if ( length == 0 || buffer_size == 0 || length < buffer_size || !_Partition_Is_buffer_size_aligned( buffer_size ) ) return RTEMS_INVALID_SIZE; a0017d78: e3a00008 mov r0, #8 <== NOT EXECUTED a0017d7c: eafffffb b a0017d70 <== NOT EXECUTED if ( !_Addresses_Is_aligned( starting_address ) ) return RTEMS_INVALID_ADDRESS; a0017d80: e3a00009 mov r0, #9 <== NOT EXECUTED a0017d84: eafffff9 b a0017d70 <== NOT EXECUTED _Thread_Disable_dispatch(); /* prevents deletion */ the_partition = _Partition_Allocate(); if ( !the_partition ) { _Thread_Enable_dispatch(); a0017d88: eb0016fc bl a001d980 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_TOO_MANY; a0017d8c: e3a00005 mov r0, #5 <== NOT EXECUTED a0017d90: eafffff6 b a0017d70 <== NOT EXECUTED =============================================================================== a0017d9c : */ rtems_status_code rtems_partition_delete( rtems_id id ) { a0017d9c: e92d4030 push {r4, r5, lr} <== NOT EXECUTED a0017da0: e24dd004 sub sp, sp, #4 <== NOT EXECUTED a0017da4: e1a01000 mov r1, r0 <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Partition_Control *) _Objects_Get( &_Partition_Information, id, location ); a0017da8: e1a0200d mov r2, sp <== NOT EXECUTED a0017dac: e59f0054 ldr r0, [pc, #84] ; a0017e08 <== NOT EXECUTED a0017db0: eb00139f bl a001cc34 <_Objects_Get> <== NOT EXECUTED register Partition_Control *the_partition; Objects_Locations location; the_partition = _Partition_Get( id, &location ); switch ( location ) { a0017db4: e59d3000 ldr r3, [sp] <== NOT EXECUTED a0017db8: e1a04000 mov r4, r0 <== NOT EXECUTED a0017dbc: e3530000 cmp r3, #0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a0017dc0: 13a00004 movne r0, #4 <== NOT EXECUTED { register Partition_Control *the_partition; Objects_Locations location; the_partition = _Partition_Get( id, &location ); switch ( location ) { a0017dc4: 1a000004 bne a0017ddc <== NOT EXECUTED case OBJECTS_LOCAL: if ( the_partition->number_of_used_blocks == 0 ) { a0017dc8: e5945020 ldr r5, [r4, #32] <== NOT EXECUTED a0017dcc: e3550000 cmp r5, #0 <== NOT EXECUTED a0017dd0: 0a000003 beq a0017de4 <== NOT EXECUTED #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); a0017dd4: eb0016e9 bl a001d980 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_RESOURCE_IN_USE; a0017dd8: e3a0000c mov r0, #12 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a0017ddc: e28dd004 add sp, sp, #4 <== NOT EXECUTED a0017de0: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED the_partition = _Partition_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( the_partition->number_of_used_blocks == 0 ) { _Objects_Close( &_Partition_Information, &the_partition->Object ); a0017de4: e1a01004 mov r1, r4 <== NOT EXECUTED a0017de8: e59f0018 ldr r0, [pc, #24] ; a0017e08 <== NOT EXECUTED a0017dec: eb001272 bl a001c7bc <_Objects_Close> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Partition_Free ( Partition_Control *the_partition ) { _Objects_Free( &_Partition_Information, &the_partition->Object ); a0017df0: e59f0010 ldr r0, [pc, #16] ; a0017e08 <== NOT EXECUTED a0017df4: e1a01004 mov r1, r4 <== NOT EXECUTED a0017df8: eb001324 bl a001ca90 <_Objects_Free> <== NOT EXECUTED 0 /* Not used */ ); } #endif _Thread_Enable_dispatch(); a0017dfc: eb0016df bl a001d980 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0017e00: e1a00005 mov r0, r5 <== NOT EXECUTED a0017e04: eafffff4 b a0017ddc <== NOT EXECUTED =============================================================================== a0017e0c : rtems_status_code rtems_partition_get_buffer( rtems_id id, void **buffer ) { a0017e0c: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED register Partition_Control *the_partition; Objects_Locations location; void *the_buffer; if ( !buffer ) a0017e10: e2514000 subs r4, r1, #0 <== NOT EXECUTED rtems_status_code rtems_partition_get_buffer( rtems_id id, void **buffer ) { a0017e14: e24dd004 sub sp, sp, #4 <== NOT EXECUTED a0017e18: e1a01000 mov r1, r0 <== NOT EXECUTED register Partition_Control *the_partition; Objects_Locations location; void *the_buffer; if ( !buffer ) return RTEMS_INVALID_ADDRESS; a0017e1c: 03a00009 moveq r0, #9 <== NOT EXECUTED { register Partition_Control *the_partition; Objects_Locations location; void *the_buffer; if ( !buffer ) a0017e20: 0a000011 beq a0017e6c <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Partition_Control *) _Objects_Get( &_Partition_Information, id, location ); a0017e24: e59f0054 ldr r0, [pc, #84] ; a0017e80 <== NOT EXECUTED a0017e28: e1a0200d mov r2, sp <== NOT EXECUTED a0017e2c: eb001380 bl a001cc34 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_partition = _Partition_Get( id, &location ); switch ( location ) { a0017e30: e59d5000 ldr r5, [sp] <== NOT EXECUTED a0017e34: e1a06000 mov r6, r0 <== NOT EXECUTED a0017e38: e3550000 cmp r5, #0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a0017e3c: 13a00004 movne r0, #4 <== NOT EXECUTED if ( !buffer ) return RTEMS_INVALID_ADDRESS; the_partition = _Partition_Get( id, &location ); switch ( location ) { a0017e40: 1a000009 bne a0017e6c <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void *_Partition_Allocate_buffer ( Partition_Control *the_partition ) { return _Chain_Get( &the_partition->Memory ); a0017e44: e2860024 add r0, r6, #36 ; 0x24 <== NOT EXECUTED a0017e48: eb000c38 bl a001af30 <_Chain_Get> <== NOT EXECUTED case OBJECTS_LOCAL: the_buffer = _Partition_Allocate_buffer( the_partition ); if ( the_buffer ) { a0017e4c: e2507000 subs r7, r0, #0 <== NOT EXECUTED a0017e50: 0a000007 beq a0017e74 <== NOT EXECUTED the_partition->number_of_used_blocks += 1; a0017e54: e5963020 ldr r3, [r6, #32] <== NOT EXECUTED a0017e58: e2833001 add r3, r3, #1 <== NOT EXECUTED a0017e5c: e5863020 str r3, [r6, #32] <== NOT EXECUTED _Thread_Enable_dispatch(); a0017e60: eb0016c6 bl a001d980 <_Thread_Enable_dispatch> <== NOT EXECUTED *buffer = the_buffer; a0017e64: e5847000 str r7, [r4] <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0017e68: e1a00005 mov r0, r5 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a0017e6c: e28dd004 add sp, sp, #4 <== NOT EXECUTED a0017e70: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED the_partition->number_of_used_blocks += 1; _Thread_Enable_dispatch(); *buffer = the_buffer; return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); a0017e74: eb0016c1 bl a001d980 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_UNSATISFIED; a0017e78: e3a0000d mov r0, #13 <== NOT EXECUTED a0017e7c: eafffffa b a0017e6c <== NOT EXECUTED =============================================================================== a0017e84 : rtems_status_code rtems_partition_ident( rtems_name name, uint32_t node, rtems_id *id ) { a0017e84: e1a0c001 mov ip, r1 <== NOT EXECUTED a0017e88: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED a0017e8c: e1a0e000 mov lr, r0 <== NOT EXECUTED a0017e90: e1a03002 mov r3, r2 <== NOT EXECUTED Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( &_Partition_Information, name, node, id ); a0017e94: e1a0100e mov r1, lr <== NOT EXECUTED a0017e98: e1a0200c mov r2, ip <== NOT EXECUTED a0017e9c: e59f000c ldr r0, [pc, #12] ; a0017eb0 <== NOT EXECUTED a0017ea0: eb0013b8 bl a001cd88 <_Objects_Name_to_id_u32> <== NOT EXECUTED return _Status_Object_name_errors_to_status[ status ]; a0017ea4: e59f3008 ldr r3, [pc, #8] ; a0017eb4 <== NOT EXECUTED } a0017ea8: e7930100 ldr r0, [r3, r0, lsl #2] <== NOT EXECUTED a0017eac: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED =============================================================================== a0017eb8 : rtems_status_code rtems_partition_return_buffer( rtems_id id, void *buffer ) { a0017eb8: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED a0017ebc: e1a03000 mov r3, r0 <== NOT EXECUTED a0017ec0: e24dd004 sub sp, sp, #4 <== NOT EXECUTED a0017ec4: e1a04001 mov r4, r1 <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Partition_Control *) _Objects_Get( &_Partition_Information, id, location ); a0017ec8: e59f008c ldr r0, [pc, #140] ; a0017f5c <== NOT EXECUTED a0017ecc: e1a01003 mov r1, r3 <== NOT EXECUTED a0017ed0: e1a0200d mov r2, sp <== NOT EXECUTED a0017ed4: eb001356 bl a001cc34 <_Objects_Get> <== NOT EXECUTED register Partition_Control *the_partition; Objects_Locations location; the_partition = _Partition_Get( id, &location ); switch ( location ) { a0017ed8: e59d3000 ldr r3, [sp] <== NOT EXECUTED a0017edc: e1a05000 mov r5, r0 <== NOT EXECUTED a0017ee0: e3530000 cmp r3, #0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a0017ee4: 13a00004 movne r0, #4 <== NOT EXECUTED { register Partition_Control *the_partition; Objects_Locations location; the_partition = _Partition_Get( id, &location ); switch ( location ) { a0017ee8: 1a000016 bne a0017f48 <== NOT EXECUTED ) { void *starting; void *ending; starting = the_partition->starting_address; a0017eec: e5950010 ldr r0, [r5, #16] <== NOT EXECUTED a0017ef0: e5953014 ldr r3, [r5, #20] <== NOT EXECUTED a0017ef4: e0803003 add r3, r0, r3 <== NOT EXECUTED const void *address, const void *base, const void *limit ) { return (address >= base && address <= limit); a0017ef8: e1540003 cmp r4, r3 <== NOT EXECUTED a0017efc: 83a03000 movhi r3, #0 <== NOT EXECUTED a0017f00: 93a03001 movls r3, #1 <== NOT EXECUTED a0017f04: e1540000 cmp r4, r0 <== NOT EXECUTED a0017f08: 33a03000 movcc r3, #0 <== NOT EXECUTED ending = _Addresses_Add_offset( starting, the_partition->length ); return ( _Addresses_Is_in_range( the_buffer, starting, ending ) && a0017f0c: e3530000 cmp r3, #0 <== NOT EXECUTED a0017f10: 0a00000e beq a0017f50 <== NOT EXECUTED offset = (uint32_t) _Addresses_Subtract( the_buffer, the_partition->starting_address ); return ((offset % the_partition->buffer_size) == 0); a0017f14: e0600004 rsb r0, r0, r4 <== NOT EXECUTED a0017f18: e5951018 ldr r1, [r5, #24] <== NOT EXECUTED a0017f1c: eb006040 bl a0030024 <__umodsi3> <== NOT EXECUTED starting = the_partition->starting_address; ending = _Addresses_Add_offset( starting, the_partition->length ); return ( _Addresses_Is_in_range( the_buffer, starting, ending ) && a0017f20: e2506000 subs r6, r0, #0 <== NOT EXECUTED a0017f24: 1a000009 bne a0017f50 <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Partition_Free_buffer ( Partition_Control *the_partition, Chain_Node *the_buffer ) { _Chain_Append( &the_partition->Memory, the_buffer ); a0017f28: e2850024 add r0, r5, #36 ; 0x24 <== NOT EXECUTED a0017f2c: e1a01004 mov r1, r4 <== NOT EXECUTED a0017f30: eb000beb bl a001aee4 <_Chain_Append> <== NOT EXECUTED case OBJECTS_LOCAL: if ( _Partition_Is_buffer_valid( buffer, the_partition ) ) { _Partition_Free_buffer( the_partition, buffer ); the_partition->number_of_used_blocks -= 1; a0017f34: e5953020 ldr r3, [r5, #32] <== NOT EXECUTED a0017f38: e2433001 sub r3, r3, #1 <== NOT EXECUTED a0017f3c: e5853020 str r3, [r5, #32] <== NOT EXECUTED _Thread_Enable_dispatch(); a0017f40: eb00168e bl a001d980 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0017f44: e1a00006 mov r0, r6 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a0017f48: e28dd004 add sp, sp, #4 <== NOT EXECUTED a0017f4c: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED _Partition_Free_buffer( the_partition, buffer ); the_partition->number_of_used_blocks -= 1; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); a0017f50: eb00168a bl a001d980 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; a0017f54: e3a00009 mov r0, #9 <== NOT EXECUTED a0017f58: eafffffa b a0017f48 <== NOT EXECUTED =============================================================================== a001727c : void *internal_start, void *external_start, uint32_t length, rtems_id *id ) { a001727c: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED register Dual_ported_memory_Control *the_port; if ( !rtems_is_name_valid( name ) ) a0017280: e2504000 subs r4, r0, #0 <== NOT EXECUTED void *internal_start, void *external_start, uint32_t length, rtems_id *id ) { a0017284: e24dd00c sub sp, sp, #12 <== NOT EXECUTED a0017288: e59d5020 ldr r5, [sp, #32] <== NOT EXECUTED register Dual_ported_memory_Control *the_port; if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; a001728c: 03a00003 moveq r0, #3 <== NOT EXECUTED rtems_id *id ) { register Dual_ported_memory_Control *the_port; if ( !rtems_is_name_valid( name ) ) a0017290: 0a000005 beq a00172ac <== NOT EXECUTED return RTEMS_INVALID_NAME; if ( !id ) a0017294: e3550000 cmp r5, #0 <== NOT EXECUTED a0017298: 0a000002 beq a00172a8 <== NOT EXECUTED * id - port id * RTEMS_SUCCESSFUL - if successful * error code - if unsuccessful */ rtems_status_code rtems_port_create( a001729c: e1826001 orr r6, r2, r1 <== NOT EXECUTED return RTEMS_INVALID_NAME; if ( !id ) return RTEMS_INVALID_ADDRESS; if ( !_Addresses_Is_aligned( internal_start ) || a00172a0: e2166007 ands r6, r6, #7 <== NOT EXECUTED a00172a4: 0a000002 beq a00172b4 <== NOT EXECUTED !_Addresses_Is_aligned( external_start ) ) return RTEMS_INVALID_ADDRESS; a00172a8: e3a00009 mov r0, #9 <== NOT EXECUTED ); *id = the_port->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } a00172ac: e28dd00c add sp, sp, #12 <== NOT EXECUTED a00172b0: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; a00172b4: e59f0074 ldr r0, [pc, #116] ; a0017330 <== NOT EXECUTED a00172b8: e590c000 ldr ip, [r0] <== NOT EXECUTED a00172bc: e28cc001 add ip, ip, #1 <== NOT EXECUTED a00172c0: e580c000 str ip, [r0] <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Dual_ported_memory_Control *_Dual_ported_memory_Allocate ( void ) { return (Dual_ported_memory_Control *) _Objects_Allocate( &_Dual_ported_memory_Information ); a00172c4: e59f7068 ldr r7, [pc, #104] ; a0017334 <== NOT EXECUTED a00172c8: e58d1008 str r1, [sp, #8] <== NOT EXECUTED a00172cc: e58d2004 str r2, [sp, #4] <== NOT EXECUTED a00172d0: e1a00007 mov r0, r7 <== NOT EXECUTED a00172d4: e58d3000 str r3, [sp] <== NOT EXECUTED a00172d8: eb001512 bl a001c728 <_Objects_Allocate> <== NOT EXECUTED _Thread_Disable_dispatch(); /* to prevent deletion */ the_port = _Dual_ported_memory_Allocate(); if ( !the_port ) { a00172dc: e3500000 cmp r0, #0 <== NOT EXECUTED a00172e0: e59d1008 ldr r1, [sp, #8] <== NOT EXECUTED a00172e4: e59d2004 ldr r2, [sp, #4] <== NOT EXECUTED a00172e8: e59d3000 ldr r3, [sp] <== NOT EXECUTED a00172ec: 0a00000c beq a0017324 <== NOT EXECUTED Objects_Name name ) { _Objects_Set_local_object( information, _Objects_Get_index( the_object->id ), a00172f0: e590c008 ldr ip, [r0, #8] <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; a00172f4: e597e01c ldr lr, [r7, #28] <== NOT EXECUTED return RTEMS_TOO_MANY; } the_port->internal_base = internal_start; the_port->external_base = external_start; the_port->length = length - 1; a00172f8: e2433001 sub r3, r3, #1 <== NOT EXECUTED Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( a00172fc: e1a0780c lsl r7, ip, #16 <== NOT EXECUTED if ( !the_port ) { _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } the_port->internal_base = internal_start; a0017300: e5801010 str r1, [r0, #16] <== NOT EXECUTED the_port->external_base = external_start; a0017304: e5802014 str r2, [r0, #20] <== NOT EXECUTED the_port->length = length - 1; a0017308: e5803018 str r3, [r0, #24] <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; a001730c: e78e0727 str r0, [lr, r7, lsr #14] <== NOT EXECUTED information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; a0017310: e580400c str r4, [r0, #12] <== NOT EXECUTED &_Dual_ported_memory_Information, &the_port->Object, (Objects_Name) name ); *id = the_port->Object.id; a0017314: e585c000 str ip, [r5] <== NOT EXECUTED _Thread_Enable_dispatch(); a0017318: eb001998 bl a001d980 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a001731c: e1a00006 mov r0, r6 <== NOT EXECUTED a0017320: eaffffe1 b a00172ac <== NOT EXECUTED _Thread_Disable_dispatch(); /* to prevent deletion */ the_port = _Dual_ported_memory_Allocate(); if ( !the_port ) { _Thread_Enable_dispatch(); a0017324: eb001995 bl a001d980 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_TOO_MANY; a0017328: e3a00005 mov r0, #5 <== NOT EXECUTED a001732c: eaffffde b a00172ac <== NOT EXECUTED =============================================================================== a0017338 : */ rtems_status_code rtems_port_delete( rtems_id id ) { a0017338: e92d4030 push {r4, r5, lr} <== NOT EXECUTED a001733c: e24dd004 sub sp, sp, #4 <== NOT EXECUTED a0017340: e1a01000 mov r1, r0 <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Dual_ported_memory_Control *) _Objects_Get( &_Dual_ported_memory_Information, id, location ); a0017344: e1a0200d mov r2, sp <== NOT EXECUTED a0017348: e59f003c ldr r0, [pc, #60] ; a001738c <== NOT EXECUTED a001734c: eb001638 bl a001cc34 <_Objects_Get> <== NOT EXECUTED register Dual_ported_memory_Control *the_port; Objects_Locations location; the_port = _Dual_ported_memory_Get( id, &location ); switch ( location ) { a0017350: e59d4000 ldr r4, [sp] <== NOT EXECUTED a0017354: e1a05000 mov r5, r0 <== NOT EXECUTED a0017358: e3540000 cmp r4, #0 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a001735c: 13a00004 movne r0, #4 <== NOT EXECUTED { register Dual_ported_memory_Control *the_port; Objects_Locations location; the_port = _Dual_ported_memory_Get( id, &location ); switch ( location ) { a0017360: 1a000007 bne a0017384 <== NOT EXECUTED case OBJECTS_LOCAL: _Objects_Close( &_Dual_ported_memory_Information, &the_port->Object ); a0017364: e1a01005 mov r1, r5 <== NOT EXECUTED a0017368: e59f001c ldr r0, [pc, #28] ; a001738c <== NOT EXECUTED a001736c: eb001512 bl a001c7bc <_Objects_Close> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Dual_ported_memory_Free ( Dual_ported_memory_Control *the_port ) { _Objects_Free( &_Dual_ported_memory_Information, &the_port->Object ); a0017370: e59f0014 ldr r0, [pc, #20] ; a001738c <== NOT EXECUTED a0017374: e1a01005 mov r1, r5 <== NOT EXECUTED a0017378: eb0015c4 bl a001ca90 <_Objects_Free> <== NOT EXECUTED _Dual_ported_memory_Free( the_port ); _Thread_Enable_dispatch(); a001737c: eb00197f bl a001d980 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0017380: e1a00004 mov r0, r4 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a0017384: e28dd004 add sp, sp, #4 <== NOT EXECUTED a0017388: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED =============================================================================== a0017390 : rtems_status_code rtems_port_external_to_internal( rtems_id id, void *external, void **internal ) { a0017390: e92d4030 push {r4, r5, lr} <== NOT EXECUTED register Dual_ported_memory_Control *the_port; Objects_Locations location; uint32_t ending; if ( !internal ) a0017394: e2525000 subs r5, r2, #0 <== NOT EXECUTED rtems_status_code rtems_port_external_to_internal( rtems_id id, void *external, void **internal ) { a0017398: e1a03000 mov r3, r0 <== NOT EXECUTED a001739c: e24dd004 sub sp, sp, #4 <== NOT EXECUTED a00173a0: e1a04001 mov r4, r1 <== NOT EXECUTED register Dual_ported_memory_Control *the_port; Objects_Locations location; uint32_t ending; if ( !internal ) return RTEMS_INVALID_ADDRESS; a00173a4: 03a00009 moveq r0, #9 <== NOT EXECUTED { register Dual_ported_memory_Control *the_port; Objects_Locations location; uint32_t ending; if ( !internal ) a00173a8: 0a000011 beq a00173f4 <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Dual_ported_memory_Control *) _Objects_Get( &_Dual_ported_memory_Information, id, location ); a00173ac: e1a01003 mov r1, r3 <== NOT EXECUTED a00173b0: e59f0044 ldr r0, [pc, #68] ; a00173fc <== NOT EXECUTED a00173b4: e1a0200d mov r2, sp <== NOT EXECUTED a00173b8: eb00161d bl a001cc34 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_port = _Dual_ported_memory_Get( id, &location ); switch ( location ) { a00173bc: e59d3000 ldr r3, [sp] <== NOT EXECUTED a00173c0: e3530000 cmp r3, #0 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a00173c4: 13a00004 movne r0, #4 <== NOT EXECUTED if ( !internal ) return RTEMS_INVALID_ADDRESS; the_port = _Dual_ported_memory_Get( id, &location ); switch ( location ) { a00173c8: 1a000009 bne a00173f4 <== NOT EXECUTED RTEMS_INLINE_ROUTINE int32_t _Addresses_Subtract ( const void *left, const void *right ) { return (int32_t) ((const char *) left - (const char *) right); a00173cc: e5903014 ldr r3, [r0, #20] <== NOT EXECUTED case OBJECTS_LOCAL: ending = _Addresses_Subtract( external, the_port->external_base ); if ( ending > the_port->length ) a00173d0: e5902018 ldr r2, [r0, #24] <== NOT EXECUTED a00173d4: e0633004 rsb r3, r3, r4 <== NOT EXECUTED a00173d8: e1530002 cmp r3, r2 <== NOT EXECUTED RTEMS_INLINE_ROUTINE void *_Addresses_Add_offset ( const void *base, uintptr_t offset ) { return (void *)((uintptr_t)base + offset); a00173dc: 95902010 ldrls r2, [r0, #16] <== NOT EXECUTED *internal = external; a00173e0: 85854000 strhi r4, [r5] <== NOT EXECUTED a00173e4: 90823003 addls r3, r2, r3 <== NOT EXECUTED else *internal = _Addresses_Add_offset( the_port->internal_base, a00173e8: 95853000 strls r3, [r5] <== NOT EXECUTED ending ); _Thread_Enable_dispatch(); a00173ec: eb001963 bl a001d980 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a00173f0: e3a00000 mov r0, #0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a00173f4: e28dd004 add sp, sp, #4 <== NOT EXECUTED a00173f8: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED =============================================================================== a0017400 : rtems_status_code rtems_port_ident( rtems_name name, rtems_id *id ) { a0017400: e1a02000 mov r2, r0 <== NOT EXECUTED a0017404: e1a03001 mov r3, r1 <== NOT EXECUTED a0017408: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( a001740c: e1a01002 mov r1, r2 <== NOT EXECUTED a0017410: e59f0010 ldr r0, [pc, #16] ; a0017428 <== NOT EXECUTED a0017414: e3a02000 mov r2, #0 <== NOT EXECUTED a0017418: eb00165a bl a001cd88 <_Objects_Name_to_id_u32> <== NOT EXECUTED name, OBJECTS_SEARCH_ALL_NODES, id ); return _Status_Object_name_errors_to_status[ status ]; a001741c: e59f3008 ldr r3, [pc, #8] ; a001742c <== NOT EXECUTED } a0017420: e7930100 ldr r0, [r3, r0, lsl #2] <== NOT EXECUTED a0017424: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED =============================================================================== a0017430 : rtems_status_code rtems_port_internal_to_external( rtems_id id, void *internal, void **external ) { a0017430: e92d4030 push {r4, r5, lr} <== NOT EXECUTED register Dual_ported_memory_Control *the_port; Objects_Locations location; uint32_t ending; if ( !external ) a0017434: e2525000 subs r5, r2, #0 <== NOT EXECUTED rtems_status_code rtems_port_internal_to_external( rtems_id id, void *internal, void **external ) { a0017438: e1a03000 mov r3, r0 <== NOT EXECUTED a001743c: e24dd004 sub sp, sp, #4 <== NOT EXECUTED a0017440: e1a04001 mov r4, r1 <== NOT EXECUTED register Dual_ported_memory_Control *the_port; Objects_Locations location; uint32_t ending; if ( !external ) return RTEMS_INVALID_ADDRESS; a0017444: 03a00009 moveq r0, #9 <== NOT EXECUTED { register Dual_ported_memory_Control *the_port; Objects_Locations location; uint32_t ending; if ( !external ) a0017448: 0a000011 beq a0017494 <== NOT EXECUTED a001744c: e1a01003 mov r1, r3 <== NOT EXECUTED a0017450: e59f0044 ldr r0, [pc, #68] ; a001749c <== NOT EXECUTED a0017454: e1a0200d mov r2, sp <== NOT EXECUTED a0017458: eb0015f5 bl a001cc34 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_port = _Dual_ported_memory_Get( id, &location ); switch ( location ) { a001745c: e59d3000 ldr r3, [sp] <== NOT EXECUTED a0017460: e3530000 cmp r3, #0 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a0017464: 13a00004 movne r0, #4 <== NOT EXECUTED if ( !external ) return RTEMS_INVALID_ADDRESS; the_port = _Dual_ported_memory_Get( id, &location ); switch ( location ) { a0017468: 1a000009 bne a0017494 <== NOT EXECUTED RTEMS_INLINE_ROUTINE int32_t _Addresses_Subtract ( const void *left, const void *right ) { return (int32_t) ((const char *) left - (const char *) right); a001746c: e5903010 ldr r3, [r0, #16] <== NOT EXECUTED case OBJECTS_LOCAL: ending = _Addresses_Subtract( internal, the_port->internal_base ); if ( ending > the_port->length ) a0017470: e5902018 ldr r2, [r0, #24] <== NOT EXECUTED a0017474: e0633004 rsb r3, r3, r4 <== NOT EXECUTED a0017478: e1530002 cmp r3, r2 <== NOT EXECUTED RTEMS_INLINE_ROUTINE void *_Addresses_Add_offset ( const void *base, uintptr_t offset ) { return (void *)((uintptr_t)base + offset); a001747c: 95902014 ldrls r2, [r0, #20] <== NOT EXECUTED *external = internal; a0017480: 85854000 strhi r4, [r5] <== NOT EXECUTED a0017484: 90823003 addls r3, r2, r3 <== NOT EXECUTED else *external = _Addresses_Add_offset( the_port->external_base, a0017488: 95853000 strls r3, [r5] <== NOT EXECUTED ending ); _Thread_Enable_dispatch(); a001748c: eb00193b bl a001d980 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0017490: e3a00000 mov r0, #0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a0017494: e28dd004 add sp, sp, #4 <== NOT EXECUTED a0017498: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED =============================================================================== a0017f60 : */ rtems_status_code rtems_rate_monotonic_cancel( rtems_id id ) { a0017f60: e92d4030 push {r4, r5, lr} <== NOT EXECUTED a0017f64: e24dd004 sub sp, sp, #4 <== NOT EXECUTED a0017f68: e1a01000 mov r1, r0 <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Rate_monotonic_Control *) _Objects_Get( &_Rate_monotonic_Information, id, location ); a0017f6c: e1a0200d mov r2, sp <== NOT EXECUTED a0017f70: e59f0050 ldr r0, [pc, #80] ; a0017fc8 <== NOT EXECUTED a0017f74: eb00132e bl a001cc34 <_Objects_Get> <== NOT EXECUTED Rate_monotonic_Control *the_period; Objects_Locations location; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { a0017f78: e59d4000 ldr r4, [sp] <== NOT EXECUTED a0017f7c: e1a05000 mov r5, r0 <== NOT EXECUTED a0017f80: e3540000 cmp r4, #0 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a0017f84: 13a00004 movne r0, #4 <== NOT EXECUTED { Rate_monotonic_Control *the_period; Objects_Locations location; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { a0017f88: 1a000006 bne a0017fa8 <== NOT EXECUTED case OBJECTS_LOCAL: if ( !_Thread_Is_executing( the_period->owner ) ) { a0017f8c: e59f3038 ldr r3, [pc, #56] ; a0017fcc <== NOT EXECUTED a0017f90: e5952040 ldr r2, [r5, #64] ; 0x40 <== NOT EXECUTED a0017f94: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED a0017f98: e1520003 cmp r2, r3 <== NOT EXECUTED a0017f9c: 0a000003 beq a0017fb0 <== NOT EXECUTED _Thread_Enable_dispatch(); a0017fa0: eb001676 bl a001d980 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_NOT_OWNER_OF_RESOURCE; a0017fa4: e3a00017 mov r0, #23 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a0017fa8: e28dd004 add sp, sp, #4 <== NOT EXECUTED a0017fac: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED case OBJECTS_LOCAL: if ( !_Thread_Is_executing( the_period->owner ) ) { _Thread_Enable_dispatch(); return RTEMS_NOT_OWNER_OF_RESOURCE; } (void) _Watchdog_Remove( &the_period->Timer ); a0017fb0: e2850010 add r0, r5, #16 <== NOT EXECUTED a0017fb4: eb001b02 bl a001ebc4 <_Watchdog_Remove> <== NOT EXECUTED the_period->state = RATE_MONOTONIC_INACTIVE; a0017fb8: e5854038 str r4, [r5, #56] ; 0x38 <== NOT EXECUTED _Thread_Enable_dispatch(); a0017fbc: eb00166f bl a001d980 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0017fc0: e1a00004 mov r0, r4 <== NOT EXECUTED a0017fc4: eafffff7 b a0017fa8 <== NOT EXECUTED =============================================================================== a000a878 : rtems_status_code rtems_rate_monotonic_create( rtems_name name, rtems_id *id ) { a000a878: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED Rate_monotonic_Control *the_period; if ( !rtems_is_name_valid( name ) ) a000a87c: e2504000 subs r4, r0, #0 <== NOT EXECUTED rtems_status_code rtems_rate_monotonic_create( rtems_name name, rtems_id *id ) { a000a880: e1a05001 mov r5, r1 <== NOT EXECUTED Rate_monotonic_Control *the_period; if ( !rtems_is_name_valid( name ) ) a000a884: 0a00002b beq a000a938 <== NOT EXECUTED return RTEMS_INVALID_NAME; if ( !id ) a000a888: e3510000 cmp r1, #0 <== NOT EXECUTED a000a88c: 0a00002e beq a000a94c <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; a000a890: e59f30bc ldr r3, [pc, #188] ; a000a954 <== NOT EXECUTED a000a894: e5932000 ldr r2, [r3] <== NOT EXECUTED a000a898: e2822001 add r2, r2, #1 <== NOT EXECUTED a000a89c: e5832000 str r2, [r3] <== NOT EXECUTED * the inactive chain of free period control blocks. */ RTEMS_INLINE_ROUTINE Rate_monotonic_Control *_Rate_monotonic_Allocate( void ) { return (Rate_monotonic_Control *) _Objects_Allocate( &_Rate_monotonic_Information ); a000a8a0: e59f60b0 ldr r6, [pc, #176] ; a000a958 <== NOT EXECUTED a000a8a4: e1a00006 mov r0, r6 <== NOT EXECUTED a000a8a8: eb00080d bl a000c8e4 <_Objects_Allocate> <== NOT EXECUTED _Thread_Disable_dispatch(); /* to prevent deletion */ the_period = _Rate_monotonic_Allocate(); if ( !the_period ) { a000a8ac: e3500000 cmp r0, #0 <== NOT EXECUTED a000a8b0: 0a000022 beq a000a940 <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } the_period->owner = _Thread_Executing; a000a8b4: e59f30a0 ldr r3, [pc, #160] ; a000a95c <== NOT EXECUTED Objects_Name name ) { _Objects_Set_local_object( information, _Objects_Get_index( the_object->id ), a000a8b8: e5902008 ldr r2, [r0, #8] <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; a000a8bc: e596101c ldr r1, [r6, #28] <== NOT EXECUTED a000a8c0: e593e004 ldr lr, [r3, #4] <== NOT EXECUTED the_period->state = RATE_MONOTONIC_INACTIVE; a000a8c4: e3a06000 mov r6, #0 <== NOT EXECUTED _Watchdog_Initialize( &the_period->Timer, NULL, 0, NULL ); _Rate_monotonic_Reset_statistics( the_period ); a000a8c8: e3e03102 mvn r3, #-2147483648 ; 0x80000000 <== NOT EXECUTED Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( a000a8cc: e1a0c802 lsl ip, r2, #16 <== NOT EXECUTED if ( !the_period ) { _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } the_period->owner = _Thread_Executing; a000a8d0: e580e040 str lr, [r0, #64] ; 0x40 <== NOT EXECUTED the_period->state = RATE_MONOTONIC_INACTIVE; a000a8d4: e5806038 str r6, [r0, #56] ; 0x38 <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; a000a8d8: e5806018 str r6, [r0, #24] <== NOT EXECUTED the_watchdog->routine = routine; a000a8dc: e580602c str r6, [r0, #44] ; 0x2c <== NOT EXECUTED the_watchdog->id = id; a000a8e0: e5806030 str r6, [r0, #48] ; 0x30 <== NOT EXECUTED the_watchdog->user_data = user_data; a000a8e4: e5806034 str r6, [r0, #52] ; 0x34 <== NOT EXECUTED _Watchdog_Initialize( &the_period->Timer, NULL, 0, NULL ); _Rate_monotonic_Reset_statistics( the_period ); a000a8e8: e5806054 str r6, [r0, #84] ; 0x54 <== NOT EXECUTED a000a8ec: e5806058 str r6, [r0, #88] ; 0x58 <== NOT EXECUTED a000a8f0: e5806064 str r6, [r0, #100] ; 0x64 <== NOT EXECUTED a000a8f4: e5806068 str r6, [r0, #104] ; 0x68 <== NOT EXECUTED a000a8f8: e580606c str r6, [r0, #108] ; 0x6c <== NOT EXECUTED a000a8fc: e5806070 str r6, [r0, #112] ; 0x70 <== NOT EXECUTED a000a900: e580607c str r6, [r0, #124] ; 0x7c <== NOT EXECUTED a000a904: e5806080 str r6, [r0, #128] ; 0x80 <== NOT EXECUTED a000a908: e5806084 str r6, [r0, #132] ; 0x84 <== NOT EXECUTED a000a90c: e5806088 str r6, [r0, #136] ; 0x88 <== NOT EXECUTED a000a910: e580305c str r3, [r0, #92] ; 0x5c <== NOT EXECUTED a000a914: e5803060 str r3, [r0, #96] ; 0x60 <== NOT EXECUTED a000a918: e5803074 str r3, [r0, #116] ; 0x74 <== NOT EXECUTED a000a91c: e5803078 str r3, [r0, #120] ; 0x78 <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; a000a920: e781072c str r0, [r1, ip, lsr #14] <== NOT EXECUTED information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; a000a924: e580400c str r4, [r0, #12] <== NOT EXECUTED &_Rate_monotonic_Information, &the_period->Object, (Objects_Name) name ); *id = the_period->Object.id; a000a928: e5852000 str r2, [r5] <== NOT EXECUTED _Thread_Enable_dispatch(); a000a92c: eb000cb3 bl a000dc00 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000a930: e1a00006 mov r0, r6 <== NOT EXECUTED a000a934: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED ) { Rate_monotonic_Control *the_period; if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; a000a938: e3a00003 mov r0, #3 <== NOT EXECUTED a000a93c: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED _Thread_Disable_dispatch(); /* to prevent deletion */ the_period = _Rate_monotonic_Allocate(); if ( !the_period ) { _Thread_Enable_dispatch(); a000a940: eb000cae bl a000dc00 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_TOO_MANY; a000a944: e3a00005 mov r0, #5 <== NOT EXECUTED a000a948: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; if ( !id ) return RTEMS_INVALID_ADDRESS; a000a94c: e3a00009 mov r0, #9 <== NOT EXECUTED ); *id = the_period->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } a000a950: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED =============================================================================== a00180b8 : */ rtems_status_code rtems_rate_monotonic_delete( rtems_id id ) { a00180b8: e92d4030 push {r4, r5, lr} <== NOT EXECUTED a00180bc: e24dd004 sub sp, sp, #4 <== NOT EXECUTED a00180c0: e1a01000 mov r1, r0 <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Rate_monotonic_Control *) _Objects_Get( &_Rate_monotonic_Information, id, location ); a00180c4: e1a0200d mov r2, sp <== NOT EXECUTED a00180c8: e59f0048 ldr r0, [pc, #72] ; a0018118 <== NOT EXECUTED a00180cc: eb0012d8 bl a001cc34 <_Objects_Get> <== NOT EXECUTED Rate_monotonic_Control *the_period; Objects_Locations location; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { a00180d0: e59d4000 ldr r4, [sp] <== NOT EXECUTED a00180d4: e1a05000 mov r5, r0 <== NOT EXECUTED a00180d8: e3540000 cmp r4, #0 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a00180dc: 13a00004 movne r0, #4 <== NOT EXECUTED { Rate_monotonic_Control *the_period; Objects_Locations location; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { a00180e0: 1a00000a bne a0018110 <== NOT EXECUTED case OBJECTS_LOCAL: _Objects_Close( &_Rate_monotonic_Information, &the_period->Object ); a00180e4: e1a01005 mov r1, r5 <== NOT EXECUTED a00180e8: e59f0028 ldr r0, [pc, #40] ; a0018118 <== NOT EXECUTED a00180ec: eb0011b2 bl a001c7bc <_Objects_Close> <== NOT EXECUTED (void) _Watchdog_Remove( &the_period->Timer ); a00180f0: e2850010 add r0, r5, #16 <== NOT EXECUTED a00180f4: eb001ab2 bl a001ebc4 <_Watchdog_Remove> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Rate_monotonic_Free ( Rate_monotonic_Control *the_period ) { _Objects_Free( &_Rate_monotonic_Information, &the_period->Object ); a00180f8: e59f0018 ldr r0, [pc, #24] ; a0018118 <== NOT EXECUTED a00180fc: e1a01005 mov r1, r5 <== NOT EXECUTED the_period->state = RATE_MONOTONIC_INACTIVE; a0018100: e5854038 str r4, [r5, #56] ; 0x38 <== NOT EXECUTED a0018104: eb001261 bl a001ca90 <_Objects_Free> <== NOT EXECUTED _Rate_monotonic_Free( the_period ); _Thread_Enable_dispatch(); a0018108: eb00161c bl a001d980 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a001810c: e1a00004 mov r0, r4 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a0018110: e28dd004 add sp, sp, #4 <== NOT EXECUTED a0018114: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED =============================================================================== a0010a28 : rtems_status_code rtems_rate_monotonic_get_statistics( rtems_id id, rtems_rate_monotonic_period_statistics *statistics ) { a0010a28: e92d4bf0 push {r4, r5, r6, r7, r8, r9, fp, lr} <== NOT EXECUTED Objects_Locations location; Rate_monotonic_Control *the_period; rtems_rate_monotonic_period_statistics *dst; Rate_monotonic_Statistics *src; if ( !statistics ) a0010a2c: e2514000 subs r4, r1, #0 <== NOT EXECUTED rtems_status_code rtems_rate_monotonic_get_statistics( rtems_id id, rtems_rate_monotonic_period_statistics *statistics ) { a0010a30: e24dd004 sub sp, sp, #4 <== NOT EXECUTED a0010a34: e1a01000 mov r1, r0 <== NOT EXECUTED Rate_monotonic_Control *the_period; rtems_rate_monotonic_period_statistics *dst; Rate_monotonic_Statistics *src; if ( !statistics ) return RTEMS_INVALID_ADDRESS; a0010a38: 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 ) a0010a3c: 0a000024 beq a0010ad4 <== NOT EXECUTED a0010a40: e59f0094 ldr r0, [pc, #148] ; a0010adc <== NOT EXECUTED a0010a44: e1a0200d mov r2, sp <== NOT EXECUTED a0010a48: ebfff119 bl a000ceb4 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { a0010a4c: e59d5000 ldr r5, [sp] <== NOT EXECUTED a0010a50: e3550000 cmp r5, #0 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a0010a54: 13a00004 movne r0, #4 <== NOT EXECUTED if ( !statistics ) return RTEMS_INVALID_ADDRESS; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { a0010a58: 1a00001d bne a0010ad4 <== NOT EXECUTED case OBJECTS_LOCAL: dst = statistics; src = &the_period->Statistics; dst->count = src->count; a0010a5c: e590e054 ldr lr, [r0, #84] ; 0x54 <== NOT EXECUTED dst->missed_count = src->missed_count; a0010a60: e5901058 ldr r1, [r0, #88] ; 0x58 <== NOT EXECUTED #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timestamp_To_timespec( &src->min_cpu_time, &dst->min_cpu_time ); _Timestamp_To_timespec( &src->max_cpu_time, &dst->max_cpu_time ); _Timestamp_To_timespec( &src->total_cpu_time, &dst->total_cpu_time ); _Timestamp_To_timespec( &src->min_wall_time, &dst->min_wall_time ); a0010a64: e2803074 add r3, r0, #116 ; 0x74 <== NOT EXECUTED a0010a68: e893000c ldm r3, {r2, r3} <== NOT EXECUTED dst = statistics; src = &the_period->Statistics; dst->count = src->count; dst->missed_count = src->missed_count; #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timestamp_To_timespec( &src->min_cpu_time, &dst->min_cpu_time ); a0010a6c: e280905c add r9, r0, #92 ; 0x5c <== NOT EXECUTED a0010a70: e8990300 ldm r9, {r8, r9} <== NOT EXECUTED _Timestamp_To_timespec( &src->max_cpu_time, &dst->max_cpu_time ); a0010a74: e2807064 add r7, r0, #100 ; 0x64 <== NOT EXECUTED a0010a78: e89700c0 ldm r7, {r6, r7} <== NOT EXECUTED _Timestamp_To_timespec( &src->total_cpu_time, &dst->total_cpu_time ); a0010a7c: e280c06c add ip, r0, #108 ; 0x6c <== NOT EXECUTED a0010a80: e89c1800 ldm ip, {fp, ip} <== NOT EXECUTED _Timestamp_To_timespec( &src->min_wall_time, &dst->min_wall_time ); a0010a84: e5842020 str r2, [r4, #32] <== NOT EXECUTED a0010a88: e5843024 str r3, [r4, #36] ; 0x24 <== NOT EXECUTED _Timestamp_To_timespec( &src->max_wall_time, &dst->max_wall_time ); a0010a8c: e280307c add r3, r0, #124 ; 0x7c <== NOT EXECUTED a0010a90: e893000c ldm r3, {r2, r3} <== NOT EXECUTED a0010a94: e5842028 str r2, [r4, #40] ; 0x28 <== NOT EXECUTED a0010a98: e584302c str r3, [r4, #44] ; 0x2c <== NOT EXECUTED _Timestamp_To_timespec( &src->total_wall_time, &dst->total_wall_time ); a0010a9c: e2803084 add r3, r0, #132 ; 0x84 <== NOT EXECUTED a0010aa0: e893000c ldm r3, {r2, r3} <== NOT EXECUTED switch ( location ) { case OBJECTS_LOCAL: dst = statistics; src = &the_period->Statistics; dst->count = src->count; a0010aa4: e584e000 str lr, [r4] <== NOT EXECUTED _Timestamp_To_timespec( &src->min_cpu_time, &dst->min_cpu_time ); _Timestamp_To_timespec( &src->max_cpu_time, &dst->max_cpu_time ); _Timestamp_To_timespec( &src->total_cpu_time, &dst->total_cpu_time ); _Timestamp_To_timespec( &src->min_wall_time, &dst->min_wall_time ); _Timestamp_To_timespec( &src->max_wall_time, &dst->max_wall_time ); _Timestamp_To_timespec( &src->total_wall_time, &dst->total_wall_time ); a0010aa8: e5842030 str r2, [r4, #48] ; 0x30 <== NOT EXECUTED a0010aac: e5843034 str r3, [r4, #52] ; 0x34 <== NOT EXECUTED case OBJECTS_LOCAL: dst = statistics; src = &the_period->Statistics; dst->count = src->count; dst->missed_count = src->missed_count; a0010ab0: e5841004 str r1, [r4, #4] <== NOT EXECUTED #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timestamp_To_timespec( &src->min_cpu_time, &dst->min_cpu_time ); a0010ab4: e5848008 str r8, [r4, #8] <== NOT EXECUTED a0010ab8: e584900c str r9, [r4, #12] <== NOT EXECUTED _Timestamp_To_timespec( &src->max_cpu_time, &dst->max_cpu_time ); a0010abc: e5846010 str r6, [r4, #16] <== NOT EXECUTED a0010ac0: e5847014 str r7, [r4, #20] <== NOT EXECUTED _Timestamp_To_timespec( &src->total_cpu_time, &dst->total_cpu_time ); a0010ac4: e584b018 str fp, [r4, #24] <== NOT EXECUTED a0010ac8: e584c01c str ip, [r4, #28] <== 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(); a0010acc: ebfff44b bl a000dc00 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0010ad0: e1a00005 mov r0, r5 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a0010ad4: e28dd004 add sp, sp, #4 <== NOT EXECUTED a0010ad8: e8bd8bf0 pop {r4, r5, r6, r7, r8, r9, fp, pc} <== NOT EXECUTED =============================================================================== a0010ae0 : rtems_status_code rtems_rate_monotonic_get_status( rtems_id id, rtems_rate_monotonic_period_status *status ) { a0010ae0: e92d4010 push {r4, lr} <== NOT EXECUTED Objects_Locations location; Rate_monotonic_Period_time_t since_last_period; Rate_monotonic_Control *the_period; bool valid_status; if ( !status ) a0010ae4: e2514000 subs r4, r1, #0 <== NOT EXECUTED rtems_status_code rtems_rate_monotonic_get_status( rtems_id id, rtems_rate_monotonic_period_status *status ) { a0010ae8: e24dd014 sub sp, sp, #20 <== NOT EXECUTED a0010aec: e1a01000 mov r1, r0 <== NOT EXECUTED Rate_monotonic_Period_time_t since_last_period; Rate_monotonic_Control *the_period; bool valid_status; if ( !status ) return RTEMS_INVALID_ADDRESS; a0010af0: 03a00009 moveq r0, #9 <== NOT EXECUTED Objects_Locations location; Rate_monotonic_Period_time_t since_last_period; Rate_monotonic_Control *the_period; bool valid_status; if ( !status ) a0010af4: 0a000013 beq a0010b48 <== NOT EXECUTED a0010af8: e28d2010 add r2, sp, #16 <== NOT EXECUTED a0010afc: e59f008c ldr r0, [pc, #140] ; a0010b90 <== NOT EXECUTED a0010b00: ebfff0eb bl a000ceb4 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { a0010b04: e59d2010 ldr r2, [sp, #16] <== NOT EXECUTED a0010b08: e1a03000 mov r3, r0 <== NOT EXECUTED a0010b0c: e3520000 cmp r2, #0 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a0010b10: 13a00004 movne r0, #4 <== NOT EXECUTED if ( !status ) return RTEMS_INVALID_ADDRESS; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { a0010b14: 1a00000b bne a0010b48 <== NOT EXECUTED case OBJECTS_LOCAL: status->owner = the_period->owner->Object.id; a0010b18: e5932040 ldr r2, [r3, #64] ; 0x40 <== NOT EXECUTED status->state = the_period->state; a0010b1c: e5933038 ldr r3, [r3, #56] ; 0x38 <== NOT EXECUTED the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: status->owner = the_period->owner->Object.id; a0010b20: e5922008 ldr r2, [r2, #8] <== NOT EXECUTED status->state = the_period->state; /* * If the period is inactive, there is no information. */ if ( status->state == RATE_MONOTONIC_INACTIVE ) { a0010b24: e3530000 cmp r3, #0 <== NOT EXECUTED the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: status->owner = the_period->owner->Object.id; status->state = the_period->state; a0010b28: e884000c stm r4, {r2, r3} <== NOT EXECUTED /* * If the period is inactive, there is no information. */ if ( status->state == RATE_MONOTONIC_INACTIVE ) { a0010b2c: 1a000007 bne a0010b50 <== NOT EXECUTED #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timespec_Set_to_zero( &status->since_last_period ); a0010b30: e5843008 str r3, [r4, #8] <== NOT EXECUTED a0010b34: e584300c str r3, [r4, #12] <== NOT EXECUTED _Timespec_Set_to_zero( &status->executed_since_last_period ); a0010b38: e5843010 str r3, [r4, #16] <== NOT EXECUTED a0010b3c: e5843014 str r3, [r4, #20] <== NOT EXECUTED status->since_last_period = since_last_period; status->executed_since_last_period = executed; #endif } _Thread_Enable_dispatch(); a0010b40: ebfff42e bl a000dc00 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0010b44: e3a00000 mov r0, #0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a0010b48: e28dd014 add sp, sp, #20 <== NOT EXECUTED a0010b4c: e8bd8010 pop {r4, pc} <== NOT EXECUTED } else { /* * Grab the current status. */ valid_status = a0010b50: e1a0100d mov r1, sp <== NOT EXECUTED a0010b54: e28d2008 add r2, sp, #8 <== NOT EXECUTED a0010b58: ebffe78c bl a000a990 <_Rate_monotonic_Get_status> <== NOT EXECUTED _Rate_monotonic_Get_status( the_period, &since_last_period, &executed ); if (!valid_status) { a0010b5c: e3500000 cmp r0, #0 <== NOT EXECUTED a0010b60: 0a000007 beq a0010b84 <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_NOT_DEFINED; } #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timestamp_To_timespec( a0010b64: e89d000c ldm sp, {r2, r3} <== NOT EXECUTED a0010b68: e5842008 str r2, [r4, #8] <== NOT EXECUTED a0010b6c: e584300c str r3, [r4, #12] <== NOT EXECUTED &since_last_period, &status->since_last_period ); _Timestamp_To_timespec( a0010b70: e28d3008 add r3, sp, #8 <== NOT EXECUTED a0010b74: e893000c ldm r3, {r2, r3} <== NOT EXECUTED a0010b78: e5842010 str r2, [r4, #16] <== NOT EXECUTED a0010b7c: e5843014 str r3, [r4, #20] <== NOT EXECUTED a0010b80: eaffffee b a0010b40 <== NOT EXECUTED valid_status = _Rate_monotonic_Get_status( the_period, &since_last_period, &executed ); if (!valid_status) { _Thread_Enable_dispatch(); a0010b84: ebfff41d bl a000dc00 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_NOT_DEFINED; a0010b88: e3a0000b mov r0, #11 <== NOT EXECUTED a0010b8c: eaffffed b a0010b48 <== NOT EXECUTED =============================================================================== a000a960 : rtems_status_code rtems_rate_monotonic_ident( rtems_name name, rtems_id *id ) { a000a960: e1a02000 mov r2, r0 <== NOT EXECUTED a000a964: e1a03001 mov r3, r1 <== NOT EXECUTED a000a968: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( a000a96c: e1a01002 mov r1, r2 <== NOT EXECUTED a000a970: e59f0010 ldr r0, [pc, #16] ; a000a988 <== NOT EXECUTED a000a974: e3e02102 mvn r2, #-2147483648 ; 0x80000000 <== NOT EXECUTED a000a978: eb0009a2 bl a000d008 <_Objects_Name_to_id_u32> <== NOT EXECUTED name, OBJECTS_SEARCH_LOCAL_NODE, id ); return _Status_Object_name_errors_to_status[ status ]; a000a97c: e59f3008 ldr r3, [pc, #8] ; a000a98c <== NOT EXECUTED } a000a980: e7930100 ldr r0, [r3, r0, lsl #2] <== NOT EXECUTED a000a984: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED =============================================================================== a000abbc : rtems_status_code rtems_rate_monotonic_period( rtems_id id, rtems_interval length ) { a000abbc: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED a000abc0: e1a04000 mov r4, r0 <== NOT EXECUTED a000abc4: e24dd008 sub sp, sp, #8 <== NOT EXECUTED a000abc8: e1a05001 mov r5, r1 <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Rate_monotonic_Control *) _Objects_Get( &_Rate_monotonic_Information, id, location ); a000abcc: e59f017c ldr r0, [pc, #380] ; a000ad50 <== NOT EXECUTED a000abd0: e1a01004 mov r1, r4 <== NOT EXECUTED a000abd4: e28d2004 add r2, sp, #4 <== NOT EXECUTED a000abd8: eb0008b5 bl a000ceb4 <_Objects_Get> <== NOT EXECUTED rtems_rate_monotonic_period_states local_state; ISR_Level level; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { a000abdc: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED a000abe0: e1a06000 mov r6, r0 <== NOT EXECUTED a000abe4: e3530000 cmp r3, #0 <== NOT EXECUTED a000abe8: 1a000008 bne a000ac10 <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool _Thread_Is_executing ( const Thread_Control *the_thread ) { return ( the_thread == _Thread_Executing ); a000abec: e59f7160 ldr r7, [pc, #352] ; a000ad54 <== NOT EXECUTED case OBJECTS_LOCAL: if ( !_Thread_Is_executing( the_period->owner ) ) { a000abf0: e5902040 ldr r2, [r0, #64] ; 0x40 <== NOT EXECUTED a000abf4: e5973004 ldr r3, [r7, #4] <== NOT EXECUTED a000abf8: e1520003 cmp r2, r3 <== NOT EXECUTED a000abfc: 0a000005 beq a000ac18 <== NOT EXECUTED _Thread_Enable_dispatch(); a000ac00: eb000bfe bl a000dc00 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_NOT_OWNER_OF_RESOURCE; a000ac04: e3a00017 mov r0, #23 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a000ac08: e28dd008 add sp, sp, #8 <== NOT EXECUTED a000ac0c: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a000ac10: e3a00004 mov r0, #4 <== NOT EXECUTED a000ac14: eafffffb b a000ac08 <== NOT EXECUTED if ( !_Thread_Is_executing( the_period->owner ) ) { _Thread_Enable_dispatch(); return RTEMS_NOT_OWNER_OF_RESOURCE; } if ( length == RTEMS_PERIOD_STATUS ) { a000ac18: e3550000 cmp r5, #0 <== NOT EXECUTED a000ac1c: 1a000008 bne a000ac44 <== NOT EXECUTED switch ( the_period->state ) { a000ac20: e5903038 ldr r3, [r0, #56] ; 0x38 <== NOT EXECUTED a000ac24: e3530004 cmp r3, #4 <== NOT EXECUTED a000ac28: 959f2128 ldrls r2, [pc, #296] ; a000ad58 <== NOT EXECUTED a000ac2c: 81a00005 movhi r0, r5 <== NOT EXECUTED a000ac30: 97920103 ldrls r0, [r2, r3, lsl #2] <== NOT EXECUTED the_period->state = RATE_MONOTONIC_ACTIVE; the_period->next_length = length; _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); a000ac34: e58d0000 str r0, [sp] <== NOT EXECUTED a000ac38: eb000bf0 bl a000dc00 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_TIMEOUT; a000ac3c: e59d0000 ldr r0, [sp] <== NOT EXECUTED a000ac40: eafffff0 b a000ac08 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000ac44: e10f8000 mrs r8, CPSR <== NOT EXECUTED a000ac48: e3883080 orr r3, r8, #128 ; 0x80 <== NOT EXECUTED a000ac4c: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED _Thread_Enable_dispatch(); return( return_value ); } _ISR_Disable( level ); if ( the_period->state == RATE_MONOTONIC_INACTIVE ) { a000ac50: e5903038 ldr r3, [r0, #56] ; 0x38 <== NOT EXECUTED a000ac54: e3530000 cmp r3, #0 <== NOT EXECUTED a000ac58: 0a00000e beq a000ac98 <== NOT EXECUTED _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } if ( the_period->state == RATE_MONOTONIC_ACTIVE ) { a000ac5c: e3530002 cmp r3, #2 <== NOT EXECUTED a000ac60: 0a00001f beq a000ace4 <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } if ( the_period->state == RATE_MONOTONIC_EXPIRED ) { a000ac64: e3530004 cmp r3, #4 <== NOT EXECUTED a000ac68: 1affffe8 bne a000ac10 <== NOT EXECUTED /* * Update statistics from the concluding period */ _Rate_monotonic_Update_statistics( the_period ); a000ac6c: ebffff97 bl a000aad0 <_Rate_monotonic_Update_statistics> <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000ac70: e129f008 msr CPSR_fc, r8 <== NOT EXECUTED _ISR_Enable( level ); the_period->state = RATE_MONOTONIC_ACTIVE; a000ac74: e3a03002 mov r3, #2 <== NOT EXECUTED ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); a000ac78: e59f00dc ldr r0, [pc, #220] ; a000ad5c <== NOT EXECUTED a000ac7c: e2861010 add r1, r6, #16 <== NOT EXECUTED a000ac80: e5863038 str r3, [r6, #56] ; 0x38 <== NOT EXECUTED the_period->next_length = length; a000ac84: e586503c str r5, [r6, #60] ; 0x3c <== NOT EXECUTED Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; a000ac88: e586501c str r5, [r6, #28] <== NOT EXECUTED _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); a000ac8c: eb000f8f bl a000ead0 <_Watchdog_Insert> <== NOT EXECUTED _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); return RTEMS_TIMEOUT; a000ac90: e3a00006 mov r0, #6 <== NOT EXECUTED a000ac94: eaffffe6 b a000ac34 <== NOT EXECUTED a000ac98: e129f008 msr CPSR_fc, r8 <== NOT EXECUTED _ISR_Enable( level ); /* * Baseline statistics information for the beginning of a period. */ _Rate_monotonic_Initiate_statistics( the_period ); a000ac9c: ebffff6b bl a000aa50 <_Rate_monotonic_Initiate_statistics> <== NOT EXECUTED the_period->state = RATE_MONOTONIC_ACTIVE; a000aca0: e3a03002 mov r3, #2 <== NOT EXECUTED a000aca4: e5863038 str r3, [r6, #56] ; 0x38 <== NOT EXECUTED Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; a000aca8: e59f30b0 ldr r3, [pc, #176] ; a000ad60 <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; a000acac: e3a07000 mov r7, #0 <== NOT EXECUTED ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); a000acb0: e59f00a4 ldr r0, [pc, #164] ; a000ad5c <== NOT EXECUTED a000acb4: e2861010 add r1, r6, #16 <== NOT EXECUTED Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; a000acb8: e586302c str r3, [r6, #44] ; 0x2c <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; a000acbc: e5867018 str r7, [r6, #24] <== NOT EXECUTED the_watchdog->routine = routine; the_watchdog->id = id; a000acc0: e5864030 str r4, [r6, #48] ; 0x30 <== NOT EXECUTED the_watchdog->user_data = user_data; a000acc4: e5867034 str r7, [r6, #52] ; 0x34 <== NOT EXECUTED _Rate_monotonic_Timeout, id, NULL ); the_period->next_length = length; a000acc8: e586503c str r5, [r6, #60] ; 0x3c <== NOT EXECUTED Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; a000accc: e586501c str r5, [r6, #28] <== NOT EXECUTED _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); a000acd0: eb000f7e bl a000ead0 <_Watchdog_Insert> <== NOT EXECUTED _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); a000acd4: e58d7000 str r7, [sp] <== NOT EXECUTED a000acd8: eb000bc8 bl a000dc00 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000acdc: e59d0000 ldr r0, [sp] <== NOT EXECUTED a000ace0: eaffffc8 b a000ac08 <== NOT EXECUTED if ( the_period->state == RATE_MONOTONIC_ACTIVE ) { /* * Update statistics from the concluding period. */ _Rate_monotonic_Update_statistics( the_period ); a000ace4: ebffff79 bl a000aad0 <_Rate_monotonic_Update_statistics> <== NOT EXECUTED /* * This tells the _Rate_monotonic_Timeout that this task is * in the process of blocking on the period and that we * may be changing the length of the next period. */ the_period->state = RATE_MONOTONIC_OWNER_IS_BLOCKING; a000ace8: e3a03001 mov r3, #1 <== NOT EXECUTED a000acec: e5863038 str r3, [r6, #56] ; 0x38 <== NOT EXECUTED the_period->next_length = length; a000acf0: e586503c str r5, [r6, #60] ; 0x3c <== NOT EXECUTED a000acf4: e129f008 msr CPSR_fc, r8 <== NOT EXECUTED _ISR_Enable( level ); _Thread_Executing->Wait.id = the_period->Object.id; a000acf8: e5973004 ldr r3, [r7, #4] <== NOT EXECUTED a000acfc: e5962008 ldr r2, [r6, #8] <== NOT EXECUTED _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); a000ad00: e3a01901 mov r1, #16384 ; 0x4000 <== NOT EXECUTED a000ad04: e1a00003 mov r0, r3 <== NOT EXECUTED the_period->state = RATE_MONOTONIC_OWNER_IS_BLOCKING; the_period->next_length = length; _ISR_Enable( level ); _Thread_Executing->Wait.id = the_period->Object.id; a000ad08: e5832020 str r2, [r3, #32] <== NOT EXECUTED _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); a000ad0c: eb000dd4 bl a000e464 <_Thread_Set_state> <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000ad10: e10f2000 mrs r2, CPSR <== NOT EXECUTED a000ad14: e3823080 orr r3, r2, #128 ; 0x80 <== NOT EXECUTED a000ad18: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED * 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; a000ad1c: e3a01002 mov r1, #2 <== NOT EXECUTED /* * Did the watchdog timer expire while we were actually blocking * on it? */ _ISR_Disable( level ); local_state = the_period->state; a000ad20: e5963038 ldr r3, [r6, #56] ; 0x38 <== NOT EXECUTED the_period->state = RATE_MONOTONIC_ACTIVE; a000ad24: e5861038 str r1, [r6, #56] ; 0x38 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000ad28: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED /* * If it did, then we want to unblock ourself and continue as * if nothing happen. The period was reset in the timeout routine. */ if ( local_state == RATE_MONOTONIC_EXPIRED_WHILE_BLOCKING ) a000ad2c: e3530003 cmp r3, #3 <== NOT EXECUTED a000ad30: 0a000002 beq a000ad40 <== NOT EXECUTED _Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); _Thread_Enable_dispatch(); a000ad34: eb000bb1 bl a000dc00 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000ad38: e3a00000 mov r0, #0 <== NOT EXECUTED a000ad3c: eaffffb1 b a000ac08 <== NOT EXECUTED /* * If it did, then we want to unblock ourself and continue as * if nothing happen. The period was reset in the timeout routine. */ if ( local_state == RATE_MONOTONIC_EXPIRED_WHILE_BLOCKING ) _Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); a000ad40: e5970004 ldr r0, [r7, #4] <== NOT EXECUTED a000ad44: e3a01901 mov r1, #16384 ; 0x4000 <== NOT EXECUTED a000ad48: eb000ace bl a000d888 <_Thread_Clear_state> <== NOT EXECUTED a000ad4c: eafffff8 b a000ad34 <== NOT EXECUTED =============================================================================== a000af7c : } } void rtems_rate_monotonic_report_statistics( void ) { rtems_rate_monotonic_report_statistics_with_plugin( NULL, printk_plugin ); a000af7c: e59f1004 ldr r1, [pc, #4] ; a000af88 <== NOT EXECUTED a000af80: e3a00000 mov r0, #0 <== NOT EXECUTED a000af84: eaffff76 b a000ad64 <== NOT EXECUTED =============================================================================== a000ad64 : */ void rtems_rate_monotonic_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) { a000ad64: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, 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 ) a000ad68: e2515000 subs r5, r1, #0 <== NOT EXECUTED */ void rtems_rate_monotonic_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) { a000ad6c: e24dd078 sub sp, sp, #120 ; 0x78 <== NOT EXECUTED a000ad70: e1a08000 mov r8, 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 ) a000ad74: 0a000040 beq a000ae7c <== NOT EXECUTED return; (*print)( context, "Period information by period\n" ); a000ad78: e59f11d0 ldr r1, [pc, #464] ; a000af50 <== NOT EXECUTED a000ad7c: e12fff35 blx r5 <== NOT EXECUTED #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ (*print)( context, "--- CPU times are in seconds ---\n" ); a000ad80: e59f11cc ldr r1, [pc, #460] ; a000af54 <== NOT EXECUTED a000ad84: e1a00008 mov r0, r8 <== NOT EXECUTED a000ad88: e12fff35 blx r5 <== 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 ; a000ad8c: e59f61c4 ldr r6, [pc, #452] ; a000af58 <== 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" ); a000ad90: e59f11c4 ldr r1, [pc, #452] ; a000af5c <== NOT EXECUTED a000ad94: e1a00008 mov r0, r8 <== NOT EXECUTED a000ad98: e12fff35 blx r5 <== NOT EXECUTED Be sure to test the various cases. (*print)( context,"\ 1234567890123456789012345678901234567890123456789012345678901234567890123456789\ \n"); */ (*print)( context, " ID OWNER COUNT MISSED " a000ad9c: e59f11bc ldr r1, [pc, #444] ; a000af60 <== NOT EXECUTED a000ada0: e1a00008 mov r0, r8 <== NOT EXECUTED a000ada4: e12fff35 blx r5 <== NOT EXECUTED #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ " " #endif " WALL TIME\n" ); (*print)( context, " " a000ada8: e1a00008 mov r0, r8 <== NOT EXECUTED a000adac: e59f11b0 ldr r1, [pc, #432] ; a000af64 <== NOT EXECUTED a000adb0: e12fff35 blx r5 <== 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 ; a000adb4: e5964008 ldr r4, [r6, #8] <== NOT EXECUTED a000adb8: e596300c ldr r3, [r6, #12] <== NOT EXECUTED a000adbc: e1540003 cmp r4, r3 <== NOT EXECUTED a000adc0: 8a00002d bhi a000ae7c <== NOT EXECUTED a000adc4: e28d7018 add r7, sp, #24 <== 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; a000adc8: e2870018 add r0, r7, #24 <== NOT EXECUTED { #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ 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; a000adcc: e2871030 add r1, r7, #48 ; 0x30 <== NOT EXECUTED struct timespec *min_cpu = &the_stats.min_cpu_time; struct timespec *max_cpu = &the_stats.max_cpu_time; struct timespec *total_cpu = &the_stats.total_cpu_time; _Timespec_Divide_by_integer( total_cpu, the_stats.count, &cpu_average ); (*print)( context, a000add0: e59fa190 ldr sl, [pc, #400] ; a000af68 <== NOT EXECUTED continue; #else (void) rtems_rate_monotonic_get_status( id, &the_status ); #endif rtems_object_get_name( the_status.owner, sizeof(name), name ); a000add4: e28d9070 add r9, sp, #112 ; 0x70 <== 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; a000add8: e58d0010 str r0, [sp, #16] <== NOT EXECUTED _Timespec_Divide_by_integer( total_cpu, the_stats.count, &cpu_average ); a000addc: e28db068 add fp, sp, #104 ; 0x68 <== NOT EXECUTED { #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ 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; a000ade0: e58d1014 str r1, [sp, #20] <== NOT EXECUTED a000ade4: ea000003 b a000adf8 <== 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 ; a000ade8: e596300c ldr r3, [r6, #12] <== NOT EXECUTED id <= _Rate_monotonic_Information.maximum_id ; id++ ) { a000adec: e2844001 add r4, r4, #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 ; a000adf0: e1530004 cmp r3, r4 <== NOT EXECUTED a000adf4: 3a000020 bcc a000ae7c <== NOT EXECUTED id <= _Rate_monotonic_Information.maximum_id ; id++ ) { status = rtems_rate_monotonic_get_statistics( id, &the_stats ); a000adf8: e1a00004 mov r0, r4 <== NOT EXECUTED a000adfc: e1a01007 mov r1, r7 <== NOT EXECUTED a000ae00: eb001708 bl a0010a28 <== NOT EXECUTED if ( status != RTEMS_SUCCESSFUL ) a000ae04: e3500000 cmp r0, #0 <== NOT EXECUTED a000ae08: 1afffff6 bne a000ade8 <== 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 ); a000ae0c: e28d1050 add r1, sp, #80 ; 0x50 <== NOT EXECUTED a000ae10: e1a00004 mov r0, r4 <== NOT EXECUTED a000ae14: eb001731 bl a0010ae0 <== NOT EXECUTED #endif rtems_object_get_name( the_status.owner, sizeof(name), name ); a000ae18: e1a02009 mov r2, r9 <== NOT EXECUTED a000ae1c: e3a01005 mov r1, #5 <== NOT EXECUTED a000ae20: e59d0050 ldr r0, [sp, #80] ; 0x50 <== NOT EXECUTED a000ae24: eb0000b9 bl a000b110 <== NOT EXECUTED /* * Print part of report line that is not dependent on granularity */ (*print)( context, a000ae28: e59d3018 ldr r3, [sp, #24] <== NOT EXECUTED a000ae2c: e59f1138 ldr r1, [pc, #312] ; a000af6c <== NOT EXECUTED a000ae30: e1a02004 mov r2, r4 <== NOT EXECUTED a000ae34: e58d3000 str r3, [sp] <== NOT EXECUTED a000ae38: e59d301c ldr r3, [sp, #28] <== NOT EXECUTED a000ae3c: e1a00008 mov r0, r8 <== NOT EXECUTED a000ae40: e58d3004 str r3, [sp, #4] <== NOT EXECUTED a000ae44: e1a03009 mov r3, r9 <== NOT EXECUTED a000ae48: e12fff35 blx r5 <== NOT EXECUTED ); /* * If the count is zero, don't print statistics */ if (the_stats.count == 0) { a000ae4c: e59d3018 ldr r3, [sp, #24] <== 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 ); a000ae50: e59d0010 ldr r0, [sp, #16] <== NOT EXECUTED a000ae54: e1a0200b mov r2, fp <== NOT EXECUTED ); /* * If the count is zero, don't print statistics */ if (the_stats.count == 0) { a000ae58: e3530000 cmp r3, #0 <== NOT EXECUTED (*print)( context, "\n" ); a000ae5c: e59f110c ldr r1, [pc, #268] ; a000af70 <== NOT EXECUTED ); /* * If the count is zero, don't print statistics */ if (the_stats.count == 0) { a000ae60: 1a000007 bne a000ae84 <== NOT EXECUTED (*print)( context, "\n" ); a000ae64: e1a00008 mov r0, r8 <== NOT EXECUTED a000ae68: e12fff35 blx r5 <== 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 ; a000ae6c: e596300c ldr r3, [r6, #12] <== NOT EXECUTED id <= _Rate_monotonic_Information.maximum_id ; id++ ) { a000ae70: e2844001 add r4, r4, #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 ; a000ae74: e1530004 cmp r3, r4 <== NOT EXECUTED a000ae78: 2affffde bcs a000adf8 <== NOT EXECUTED the_stats.min_wall_time, the_stats.max_wall_time, ival_wall, fval_wall ); #endif } } } a000ae7c: e28dd078 add sp, sp, #120 ; 0x78 <== NOT EXECUTED a000ae80: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== 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 ); a000ae84: e1a01003 mov r1, r3 <== NOT EXECUTED a000ae88: eb000e13 bl a000e6dc <_Timespec_Divide_by_integer> <== NOT EXECUTED (*print)( context, a000ae8c: e59d2024 ldr r2, [sp, #36] ; 0x24 <== NOT EXECUTED a000ae90: e59d3028 ldr r3, [sp, #40] ; 0x28 <== NOT EXECUTED a000ae94: e59d102c ldr r1, [sp, #44] ; 0x2c <== NOT EXECUTED a000ae98: e58d3000 str r3, [sp] <== NOT EXECUTED a000ae9c: e0c3c29a smull ip, r3, sl, r2 <== NOT EXECUTED a000aea0: e1a02fc2 asr r2, r2, #31 <== NOT EXECUTED a000aea4: e0623343 rsb r3, r2, r3, asr #6 <== NOT EXECUTED a000aea8: e59d2068 ldr r2, [sp, #104] ; 0x68 <== NOT EXECUTED a000aeac: e0c0c19a smull ip, r0, sl, r1 <== NOT EXECUTED a000aeb0: e58d2008 str r2, [sp, #8] <== NOT EXECUTED a000aeb4: e59d206c ldr r2, [sp, #108] ; 0x6c <== NOT EXECUTED a000aeb8: e1a01fc1 asr r1, r1, #31 <== NOT EXECUTED a000aebc: e0611340 rsb r1, r1, r0, asr #6 <== NOT EXECUTED a000aec0: e0c0c29a smull ip, r0, sl, r2 <== NOT EXECUTED a000aec4: e1a02fc2 asr r2, r2, #31 <== NOT EXECUTED a000aec8: e0622340 rsb r2, r2, r0, asr #6 <== NOT EXECUTED a000aecc: e58d1004 str r1, [sp, #4] <== NOT EXECUTED a000aed0: e58d200c str r2, [sp, #12] <== NOT EXECUTED a000aed4: e59f1098 ldr r1, [pc, #152] ; a000af74 <== NOT EXECUTED a000aed8: e59d2020 ldr r2, [sp, #32] <== NOT EXECUTED a000aedc: e1a00008 mov r0, r8 <== NOT EXECUTED a000aee0: e12fff35 blx r5 <== 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); a000aee4: e59d1018 ldr r1, [sp, #24] <== NOT EXECUTED a000aee8: e59d0014 ldr r0, [sp, #20] <== NOT EXECUTED a000aeec: e1a0200b mov r2, fp <== NOT EXECUTED a000aef0: eb000df9 bl a000e6dc <_Timespec_Divide_by_integer> <== NOT EXECUTED (*print)( context, a000aef4: e59d2040 ldr r2, [sp, #64] ; 0x40 <== NOT EXECUTED a000aef8: e59d303c ldr r3, [sp, #60] ; 0x3c <== NOT EXECUTED a000aefc: e58d2000 str r2, [sp] <== NOT EXECUTED a000af00: e59d2044 ldr r2, [sp, #68] ; 0x44 <== NOT EXECUTED a000af04: e0c0139a smull r1, r0, sl, r3 <== NOT EXECUTED a000af08: e0c1c29a smull ip, r1, sl, r2 <== NOT EXECUTED a000af0c: e1a02fc2 asr r2, r2, #31 <== NOT EXECUTED a000af10: e0622341 rsb r2, r2, r1, asr #6 <== NOT EXECUTED a000af14: e58d2004 str r2, [sp, #4] <== NOT EXECUTED a000af18: e59d2068 ldr r2, [sp, #104] ; 0x68 <== NOT EXECUTED a000af1c: e1a03fc3 asr r3, r3, #31 <== NOT EXECUTED a000af20: e0633340 rsb r3, r3, r0, asr #6 <== NOT EXECUTED a000af24: e58d2008 str r2, [sp, #8] <== NOT EXECUTED a000af28: e59d206c ldr r2, [sp, #108] ; 0x6c <== NOT EXECUTED a000af2c: e59f1044 ldr r1, [pc, #68] ; a000af78 <== NOT EXECUTED a000af30: e0c0c29a smull ip, r0, sl, r2 <== NOT EXECUTED a000af34: e1a02fc2 asr r2, r2, #31 <== NOT EXECUTED a000af38: e0622340 rsb r2, r2, r0, asr #6 <== NOT EXECUTED a000af3c: e58d200c str r2, [sp, #12] <== NOT EXECUTED a000af40: e1a00008 mov r0, r8 <== NOT EXECUTED a000af44: e59d2038 ldr r2, [sp, #56] ; 0x38 <== NOT EXECUTED a000af48: e12fff35 blx r5 <== NOT EXECUTED a000af4c: eaffffa5 b a000ade8 <== NOT EXECUTED =============================================================================== a000af8c : rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; a000af8c: e59f3040 ldr r3, [pc, #64] ; a000afd4 <== NOT EXECUTED /* * rtems_rate_monotonic_reset_all_statistics */ void rtems_rate_monotonic_reset_all_statistics( void ) { a000af90: e92d4030 push {r4, r5, lr} <== NOT EXECUTED a000af94: e5932000 ldr r2, [r3] <== NOT EXECUTED a000af98: e2822001 add r2, r2, #1 <== NOT EXECUTED a000af9c: 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 ; a000afa0: e59f5030 ldr r5, [pc, #48] ; a000afd8 <== NOT EXECUTED a000afa4: e5954008 ldr r4, [r5, #8] <== NOT EXECUTED a000afa8: e595300c ldr r3, [r5, #12] <== NOT EXECUTED a000afac: e1540003 cmp r4, r3 <== NOT EXECUTED a000afb0: 8a000005 bhi a000afcc <== NOT EXECUTED id <= _Rate_monotonic_Information.maximum_id ; id++ ) { (void) rtems_rate_monotonic_reset_statistics( id ); a000afb4: e1a00004 mov r0, r4 <== NOT EXECUTED a000afb8: eb000007 bl a000afdc <== 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 ; a000afbc: e595300c ldr r3, [r5, #12] <== NOT EXECUTED id <= _Rate_monotonic_Information.maximum_id ; id++ ) { a000afc0: 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 ; a000afc4: e1530004 cmp r3, r4 <== NOT EXECUTED a000afc8: 2afffff9 bcs a000afb4 <== NOT EXECUTED /* * Done so exit thread dispatching disabled critical section. */ _Thread_Enable_dispatch(); } a000afcc: e8bd4030 pop {r4, r5, lr} <== NOT EXECUTED } /* * Done so exit thread dispatching disabled critical section. */ _Thread_Enable_dispatch(); a000afd0: ea000b0a b a000dc00 <_Thread_Enable_dispatch> <== NOT EXECUTED =============================================================================== a000afdc : */ rtems_status_code rtems_rate_monotonic_reset_statistics( rtems_id id ) { a000afdc: e92d4010 push {r4, lr} <== NOT EXECUTED a000afe0: e24dd004 sub sp, sp, #4 <== NOT EXECUTED a000afe4: e1a01000 mov r1, r0 <== NOT EXECUTED a000afe8: e1a0200d mov r2, sp <== NOT EXECUTED a000afec: e59f005c ldr r0, [pc, #92] ; a000b050 <== NOT EXECUTED a000aff0: eb0007af bl a000ceb4 <_Objects_Get> <== NOT EXECUTED Objects_Locations location; Rate_monotonic_Control *the_period; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { a000aff4: e59d4000 ldr r4, [sp] <== NOT EXECUTED a000aff8: e3540000 cmp r4, #0 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a000affc: 13a00004 movne r0, #4 <== NOT EXECUTED { Objects_Locations location; Rate_monotonic_Control *the_period; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { a000b000: 1a000010 bne a000b048 <== NOT EXECUTED case OBJECTS_LOCAL: _Rate_monotonic_Reset_statistics( the_period ); a000b004: e3e03102 mvn r3, #-2147483648 ; 0x80000000 <== NOT EXECUTED a000b008: e5804054 str r4, [r0, #84] ; 0x54 <== NOT EXECUTED a000b00c: e5804058 str r4, [r0, #88] ; 0x58 <== NOT EXECUTED a000b010: e5804064 str r4, [r0, #100] ; 0x64 <== NOT EXECUTED a000b014: e5804068 str r4, [r0, #104] ; 0x68 <== NOT EXECUTED a000b018: e580406c str r4, [r0, #108] ; 0x6c <== NOT EXECUTED a000b01c: e5804070 str r4, [r0, #112] ; 0x70 <== NOT EXECUTED a000b020: e580407c str r4, [r0, #124] ; 0x7c <== NOT EXECUTED a000b024: e5804080 str r4, [r0, #128] ; 0x80 <== NOT EXECUTED a000b028: e5804084 str r4, [r0, #132] ; 0x84 <== NOT EXECUTED a000b02c: e5804088 str r4, [r0, #136] ; 0x88 <== NOT EXECUTED a000b030: e580305c str r3, [r0, #92] ; 0x5c <== NOT EXECUTED a000b034: e5803060 str r3, [r0, #96] ; 0x60 <== NOT EXECUTED a000b038: e5803074 str r3, [r0, #116] ; 0x74 <== NOT EXECUTED a000b03c: e5803078 str r3, [r0, #120] ; 0x78 <== NOT EXECUTED _Thread_Enable_dispatch(); a000b040: eb000aee bl a000dc00 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000b044: e1a00004 mov r0, r4 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a000b048: e28dd004 add sp, sp, #4 <== NOT EXECUTED a000b04c: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a0018748 : uintptr_t length, uintptr_t page_size, rtems_attribute attribute_set, rtems_id *id ) { a0018748: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED rtems_status_code return_status; Region_Control *the_region; if ( !rtems_is_name_valid( name ) ) a001874c: e2509000 subs r9, r0, #0 <== NOT EXECUTED uintptr_t length, uintptr_t page_size, rtems_attribute attribute_set, rtems_id *id ) { a0018750: e24dd004 sub sp, sp, #4 <== NOT EXECUTED a0018754: e1a05001 mov r5, r1 <== NOT EXECUTED a0018758: e1a07002 mov r7, r2 <== NOT EXECUTED a001875c: e1a06003 mov r6, r3 <== NOT EXECUTED a0018760: e59db02c ldr fp, [sp, #44] ; 0x2c <== NOT EXECUTED rtems_status_code return_status; Region_Control *the_region; if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; a0018764: 03a05003 moveq r5, #3 <== NOT EXECUTED ) { rtems_status_code return_status; Region_Control *the_region; if ( !rtems_is_name_valid( name ) ) a0018768: 0a00001a beq a00187d8 <== NOT EXECUTED return RTEMS_INVALID_NAME; if ( !starting_address ) a001876c: e3550000 cmp r5, #0 <== NOT EXECUTED a0018770: 0a000035 beq a001884c <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !id ) a0018774: e35b0000 cmp fp, #0 <== NOT EXECUTED a0018778: 0a000033 beq a001884c <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); /* to prevent deletion */ a001877c: e59f80d0 ldr r8, [pc, #208] ; a0018854 <== NOT EXECUTED * This function allocates a region control block from * the inactive chain of free region control blocks. */ RTEMS_INLINE_ROUTINE Region_Control *_Region_Allocate( void ) { return (Region_Control *) _Objects_Allocate( &_Region_Information ); a0018780: e59fa0d0 ldr sl, [pc, #208] ; a0018858 <== NOT EXECUTED a0018784: e5980000 ldr r0, [r8] <== NOT EXECUTED a0018788: eb0009ac bl a001ae40 <_API_Mutex_Lock> <== NOT EXECUTED a001878c: e1a0000a mov r0, sl <== NOT EXECUTED a0018790: eb000fe4 bl a001c728 <_Objects_Allocate> <== NOT EXECUTED the_region = _Region_Allocate(); if ( !the_region ) a0018794: e2504000 subs r4, r0, #0 <== NOT EXECUTED return_status = RTEMS_TOO_MANY; a0018798: 03a05005 moveq r5, #5 <== NOT EXECUTED _RTEMS_Lock_allocator(); /* to prevent deletion */ the_region = _Region_Allocate(); if ( !the_region ) a001879c: 0a00000b beq a00187d0 <== NOT EXECUTED return_status = RTEMS_TOO_MANY; else { the_region->maximum_segment_size = _Heap_Initialize( a00187a0: e2840068 add r0, r4, #104 ; 0x68 <== NOT EXECUTED a00187a4: e1a01005 mov r1, r5 <== NOT EXECUTED a00187a8: e1a02007 mov r2, r7 <== NOT EXECUTED a00187ac: e1a03006 mov r3, r6 <== NOT EXECUTED a00187b0: eb000eb7 bl a001c294 <_Heap_Initialize> <== NOT EXECUTED &the_region->Memory, starting_address, length, page_size ); if ( !the_region->maximum_segment_size ) { a00187b4: e3500000 cmp r0, #0 <== NOT EXECUTED if ( !the_region ) return_status = RTEMS_TOO_MANY; else { the_region->maximum_segment_size = _Heap_Initialize( a00187b8: e584005c str r0, [r4, #92] ; 0x5c <== NOT EXECUTED &the_region->Memory, starting_address, length, page_size ); if ( !the_region->maximum_segment_size ) { a00187bc: 1a000008 bne a00187e4 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Region_Free ( Region_Control *the_region ) { _Objects_Free( &_Region_Information, &the_region->Object ); a00187c0: e1a0000a mov r0, sl <== NOT EXECUTED a00187c4: e1a01004 mov r1, r4 <== NOT EXECUTED a00187c8: eb0010b0 bl a001ca90 <_Objects_Free> <== NOT EXECUTED _Region_Free( the_region ); return_status = RTEMS_INVALID_SIZE; a00187cc: e3a05008 mov r5, #8 <== NOT EXECUTED *id = the_region->Object.id; return_status = RTEMS_SUCCESSFUL; } } _RTEMS_Unlock_allocator(); a00187d0: e5980000 ldr r0, [r8] <== NOT EXECUTED a00187d4: eb0009b5 bl a001aeb0 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; } a00187d8: e1a00005 mov r0, r5 <== NOT EXECUTED a00187dc: e28dd004 add sp, sp, #4 <== NOT EXECUTED a00187e0: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED 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( a00187e4: e59d3028 ldr r3, [sp, #40] ; 0x28 <== NOT EXECUTED 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; a00187e8: e3a0c000 mov ip, #0 <== NOT EXECUTED return_status = RTEMS_INVALID_SIZE; } else { the_region->starting_address = starting_address; a00187ec: e5845050 str r5, [r4, #80] ; 0x50 <== NOT EXECUTED 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( a00187f0: e3130004 tst r3, #4 <== NOT EXECUTED else { the_region->starting_address = starting_address; the_region->length = length; the_region->page_size = page_size; the_region->attribute_set = attribute_set; a00187f4: e5843060 str r3, [r4, #96] ; 0x60 <== NOT EXECUTED the_region->number_of_used_blocks = 0; a00187f8: e584c064 str ip, [r4, #100] ; 0x64 <== NOT EXECUTED } else { the_region->starting_address = starting_address; the_region->length = length; a00187fc: e5847054 str r7, [r4, #84] ; 0x54 <== NOT EXECUTED the_region->page_size = page_size; a0018800: e5846058 str r6, [r4, #88] ; 0x58 <== NOT EXECUTED the_region->attribute_set = attribute_set; the_region->number_of_used_blocks = 0; _Thread_queue_Initialize( a0018804: e2840010 add r0, r4, #16 <== NOT EXECUTED a0018808: 03a01000 moveq r1, #0 <== NOT EXECUTED a001880c: 13a01001 movne r1, #1 <== NOT EXECUTED a0018810: e3a02040 mov r2, #64 ; 0x40 <== NOT EXECUTED a0018814: e3a03006 mov r3, #6 <== NOT EXECUTED a0018818: e58dc000 str ip, [sp] <== NOT EXECUTED a001881c: eb001622 bl a001e0ac <_Thread_queue_Initialize> <== NOT EXECUTED Objects_Name name ) { _Objects_Set_local_object( information, _Objects_Get_index( the_object->id ), a0018820: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; a0018824: e59a201c ldr r2, [sl, #28] <== NOT EXECUTED &the_region->Object, (Objects_Name) name ); *id = the_region->Object.id; return_status = RTEMS_SUCCESSFUL; a0018828: e59dc000 ldr ip, [sp] <== NOT EXECUTED Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( a001882c: e1a01803 lsl r1, r3, #16 <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; a0018830: e7824721 str r4, [r2, r1, lsr #14] <== NOT EXECUTED } } _RTEMS_Unlock_allocator(); a0018834: e5980000 ldr r0, [r8] <== NOT EXECUTED information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; a0018838: e584900c str r9, [r4, #12] <== NOT EXECUTED &_Region_Information, &the_region->Object, (Objects_Name) name ); *id = the_region->Object.id; a001883c: e58b3000 str r3, [fp] <== NOT EXECUTED return_status = RTEMS_SUCCESSFUL; a0018840: e1a0500c mov r5, ip <== NOT EXECUTED } } _RTEMS_Unlock_allocator(); a0018844: eb000999 bl a001aeb0 <_API_Mutex_Unlock> <== NOT EXECUTED a0018848: eaffffe2 b a00187d8 <== NOT EXECUTED if ( !starting_address ) return RTEMS_INVALID_ADDRESS; if ( !id ) return RTEMS_INVALID_ADDRESS; a001884c: e3a05009 mov r5, #9 <== NOT EXECUTED a0018850: eaffffe0 b a00187d8 <== NOT EXECUTED =============================================================================== a001885c : */ rtems_status_code rtems_region_delete( rtems_id id ) { a001885c: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED Objects_Locations location; rtems_status_code return_status; Region_Control *the_region; _RTEMS_Lock_allocator(); a0018860: e59f4070 ldr r4, [pc, #112] ; a00188d8 <== NOT EXECUTED */ rtems_status_code rtems_region_delete( rtems_id id ) { a0018864: e24dd004 sub sp, sp, #4 <== NOT EXECUTED a0018868: e1a05000 mov r5, r0 <== NOT EXECUTED Objects_Locations location; rtems_status_code return_status; Region_Control *the_region; _RTEMS_Lock_allocator(); a001886c: e5940000 ldr r0, [r4] <== NOT EXECUTED a0018870: eb000972 bl a001ae40 <_API_Mutex_Lock> <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Region_Control *) _Objects_Get_no_protection( &_Region_Information, id, location ); a0018874: e1a01005 mov r1, r5 <== NOT EXECUTED a0018878: e59f005c ldr r0, [pc, #92] ; a00188dc <== NOT EXECUTED a001887c: e1a0200d mov r2, sp <== NOT EXECUTED a0018880: eb0010db bl a001cbf4 <_Objects_Get_no_protection> <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { a0018884: e59d3000 ldr r3, [sp] <== NOT EXECUTED a0018888: e1a05000 mov r5, r0 <== NOT EXECUTED a001888c: e3530000 cmp r3, #0 <== NOT EXECUTED break; #endif case OBJECTS_ERROR: default: return_status = RTEMS_INVALID_ID; a0018890: 13a06004 movne r6, #4 <== NOT EXECUTED Region_Control *the_region; _RTEMS_Lock_allocator(); the_region = _Region_Get( id, &location ); switch ( location ) { a0018894: 1a000003 bne a00188a8 <== NOT EXECUTED case OBJECTS_LOCAL: _Region_Debug_Walk( the_region, 5 ); if ( the_region->number_of_used_blocks != 0 ) a0018898: e5906064 ldr r6, [r0, #100] ; 0x64 <== NOT EXECUTED a001889c: e3560000 cmp r6, #0 <== NOT EXECUTED return_status = RTEMS_RESOURCE_IN_USE; a00188a0: 13a0600c movne r6, #12 <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: _Region_Debug_Walk( the_region, 5 ); if ( the_region->number_of_used_blocks != 0 ) a00188a4: 0a000004 beq a00188bc <== NOT EXECUTED default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); a00188a8: e5940000 ldr r0, [r4] <== NOT EXECUTED a00188ac: eb00097f bl a001aeb0 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; } a00188b0: e1a00006 mov r0, r6 <== NOT EXECUTED a00188b4: e28dd004 add sp, sp, #4 <== NOT EXECUTED a00188b8: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED case OBJECTS_LOCAL: _Region_Debug_Walk( the_region, 5 ); if ( the_region->number_of_used_blocks != 0 ) return_status = RTEMS_RESOURCE_IN_USE; else { _Objects_Close( &_Region_Information, &the_region->Object ); a00188bc: e1a01000 mov r1, r0 <== NOT EXECUTED a00188c0: e59f0014 ldr r0, [pc, #20] ; a00188dc <== NOT EXECUTED a00188c4: eb000fbc bl a001c7bc <_Objects_Close> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Region_Free ( Region_Control *the_region ) { _Objects_Free( &_Region_Information, &the_region->Object ); a00188c8: e59f000c ldr r0, [pc, #12] ; a00188dc <== NOT EXECUTED a00188cc: e1a01005 mov r1, r5 <== NOT EXECUTED a00188d0: eb00106e bl a001ca90 <_Objects_Free> <== NOT EXECUTED a00188d4: eafffff3 b a00188a8 <== NOT EXECUTED =============================================================================== a00188e0 : rtems_status_code rtems_region_extend( rtems_id id, void *starting_address, uintptr_t length ) { a00188e0: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED bool extend_ok; Objects_Locations location; rtems_status_code return_status; Region_Control *the_region; if ( !starting_address ) a00188e4: e2518000 subs r8, r1, #0 <== NOT EXECUTED rtems_status_code rtems_region_extend( rtems_id id, void *starting_address, uintptr_t length ) { a00188e8: e1a05000 mov r5, r0 <== NOT EXECUTED a00188ec: e24dd008 sub sp, sp, #8 <== NOT EXECUTED a00188f0: e1a07002 mov r7, r2 <== NOT EXECUTED Objects_Locations location; rtems_status_code return_status; Region_Control *the_region; if ( !starting_address ) return RTEMS_INVALID_ADDRESS; a00188f4: 03a05009 moveq r5, #9 <== NOT EXECUTED bool extend_ok; Objects_Locations location; rtems_status_code return_status; Region_Control *the_region; if ( !starting_address ) a00188f8: 0a00000d beq a0018934 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); /* to prevent deletion */ a00188fc: e59f407c ldr r4, [pc, #124] ; a0018980 <== NOT EXECUTED a0018900: e5940000 ldr r0, [r4] <== NOT EXECUTED a0018904: eb00094d bl a001ae40 <_API_Mutex_Lock> <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Region_Control *) _Objects_Get_no_protection( &_Region_Information, id, location ); a0018908: e1a01005 mov r1, r5 <== NOT EXECUTED a001890c: e59f0070 ldr r0, [pc, #112] ; a0018984 <== NOT EXECUTED a0018910: e1a0200d mov r2, sp <== NOT EXECUTED a0018914: eb0010b6 bl a001cbf4 <_Objects_Get_no_protection> <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { a0018918: e59d5000 ldr r5, [sp] <== NOT EXECUTED a001891c: e1a06000 mov r6, r0 <== NOT EXECUTED a0018920: e3550000 cmp r5, #0 <== NOT EXECUTED break; #endif case OBJECTS_ERROR: default: return_status = RTEMS_INVALID_ID; a0018924: 13a05004 movne r5, #4 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); /* to prevent deletion */ the_region = _Region_Get( id, &location ); switch ( location ) { a0018928: 0a000004 beq a0018940 <== NOT EXECUTED default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); a001892c: e5940000 ldr r0, [r4] <== NOT EXECUTED a0018930: eb00095e bl a001aeb0 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; } a0018934: e1a00005 mov r0, r5 <== NOT EXECUTED a0018938: e28dd008 add sp, sp, #8 <== NOT EXECUTED a001893c: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: extend_ok = _Heap_Extend( a0018940: e2800068 add r0, r0, #104 ; 0x68 <== NOT EXECUTED a0018944: e1a01008 mov r1, r8 <== NOT EXECUTED a0018948: e1a02007 mov r2, r7 <== NOT EXECUTED a001894c: e28d3004 add r3, sp, #4 <== NOT EXECUTED a0018950: eb000c8b bl a001bb84 <_Heap_Extend> <== NOT EXECUTED starting_address, length, &amount_extended ); if ( extend_ok ) { a0018954: 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; a0018958: 03a05009 moveq r5, #9 <== NOT EXECUTED starting_address, length, &amount_extended ); if ( extend_ok ) { a001895c: 0afffff2 beq a001892c <== NOT EXECUTED the_region->length += amount_extended; a0018960: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED a0018964: e5962054 ldr r2, [r6, #84] ; 0x54 <== NOT EXECUTED the_region->maximum_segment_size += amount_extended; a0018968: e596105c ldr r1, [r6, #92] ; 0x5c <== NOT EXECUTED length, &amount_extended ); if ( extend_ok ) { the_region->length += amount_extended; a001896c: e0822003 add r2, r2, r3 <== NOT EXECUTED the_region->maximum_segment_size += amount_extended; a0018970: e0813003 add r3, r1, r3 <== NOT EXECUTED length, &amount_extended ); if ( extend_ok ) { the_region->length += amount_extended; a0018974: e5862054 str r2, [r6, #84] ; 0x54 <== NOT EXECUTED the_region->maximum_segment_size += amount_extended; a0018978: e586305c str r3, [r6, #92] ; 0x5c <== NOT EXECUTED a001897c: eaffffea b a001892c <== NOT EXECUTED =============================================================================== a0018988 : rtems_status_code rtems_region_get_free_information( rtems_id id, Heap_Information_block *the_info ) { a0018988: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED Objects_Locations location; rtems_status_code return_status; register Region_Control *the_region; if ( !the_info ) a001898c: e2515000 subs r5, r1, #0 <== NOT EXECUTED rtems_status_code rtems_region_get_free_information( rtems_id id, Heap_Information_block *the_info ) { a0018990: e1a06000 mov r6, r0 <== NOT EXECUTED a0018994: e24dd004 sub sp, sp, #4 <== NOT EXECUTED Objects_Locations location; rtems_status_code return_status; register Region_Control *the_region; if ( !the_info ) return RTEMS_INVALID_ADDRESS; a0018998: 03a06009 moveq r6, #9 <== NOT EXECUTED { Objects_Locations location; rtems_status_code return_status; register Region_Control *the_region; if ( !the_info ) a001899c: 0a00000c beq a00189d4 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); a00189a0: e59f4054 ldr r4, [pc, #84] ; a00189fc <== NOT EXECUTED a00189a4: e5940000 ldr r0, [r4] <== NOT EXECUTED a00189a8: eb000924 bl a001ae40 <_API_Mutex_Lock> <== NOT EXECUTED a00189ac: e1a01006 mov r1, r6 <== NOT EXECUTED a00189b0: e59f0048 ldr r0, [pc, #72] ; a0018a00 <== NOT EXECUTED a00189b4: e1a0200d mov r2, sp <== NOT EXECUTED a00189b8: eb00108d bl a001cbf4 <_Objects_Get_no_protection> <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { a00189bc: e59d6000 ldr r6, [sp] <== NOT EXECUTED a00189c0: e3560000 cmp r6, #0 <== NOT EXECUTED break; #endif case OBJECTS_ERROR: default: return_status = RTEMS_INVALID_ID; a00189c4: 13a06004 movne r6, #4 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); the_region = _Region_Get( id, &location ); switch ( location ) { a00189c8: 0a000004 beq a00189e0 <== NOT EXECUTED default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); a00189cc: e5940000 ldr r0, [r4] <== NOT EXECUTED a00189d0: eb000936 bl a001aeb0 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; } a00189d4: e1a00006 mov r0, r6 <== NOT EXECUTED a00189d8: e28dd004 add sp, sp, #4 <== NOT EXECUTED a00189dc: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: the_info->Used.number = 0; a00189e0: e585600c str r6, [r5, #12] <== NOT EXECUTED the_info->Used.total = 0; a00189e4: e5856014 str r6, [r5, #20] <== NOT EXECUTED the_info->Used.largest = 0; a00189e8: e5856010 str r6, [r5, #16] <== NOT EXECUTED _Heap_Get_free_information( &the_region->Memory, &the_info->Free ); a00189ec: e2800068 add r0, r0, #104 ; 0x68 <== NOT EXECUTED a00189f0: e1a01005 mov r1, r5 <== NOT EXECUTED a00189f4: eb000d82 bl a001c004 <_Heap_Get_free_information> <== NOT EXECUTED return_status = RTEMS_SUCCESSFUL; break; a00189f8: eafffff3 b a00189cc <== NOT EXECUTED =============================================================================== a0018a04 : rtems_status_code rtems_region_get_information( rtems_id id, Heap_Information_block *the_info ) { a0018a04: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED Objects_Locations location; rtems_status_code return_status; register Region_Control *the_region; if ( !the_info ) a0018a08: e2515000 subs r5, r1, #0 <== NOT EXECUTED rtems_status_code rtems_region_get_information( rtems_id id, Heap_Information_block *the_info ) { a0018a0c: e1a06000 mov r6, r0 <== NOT EXECUTED a0018a10: e24dd004 sub sp, sp, #4 <== NOT EXECUTED Objects_Locations location; rtems_status_code return_status; register Region_Control *the_region; if ( !the_info ) return RTEMS_INVALID_ADDRESS; a0018a14: 03a06009 moveq r6, #9 <== NOT EXECUTED { Objects_Locations location; rtems_status_code return_status; register Region_Control *the_region; if ( !the_info ) a0018a18: 0a00000c beq a0018a50 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); a0018a1c: e59f4048 ldr r4, [pc, #72] ; a0018a6c <== NOT EXECUTED a0018a20: e5940000 ldr r0, [r4] <== NOT EXECUTED a0018a24: eb000905 bl a001ae40 <_API_Mutex_Lock> <== NOT EXECUTED a0018a28: e1a01006 mov r1, r6 <== NOT EXECUTED a0018a2c: e59f003c ldr r0, [pc, #60] ; a0018a70 <== NOT EXECUTED a0018a30: e1a0200d mov r2, sp <== NOT EXECUTED a0018a34: eb00106e bl a001cbf4 <_Objects_Get_no_protection> <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { a0018a38: e59d6000 ldr r6, [sp] <== NOT EXECUTED a0018a3c: e3560000 cmp r6, #0 <== NOT EXECUTED break; #endif case OBJECTS_ERROR: default: return_status = RTEMS_INVALID_ID; a0018a40: 13a06004 movne r6, #4 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); the_region = _Region_Get( id, &location ); switch ( location ) { a0018a44: 0a000004 beq a0018a5c <== NOT EXECUTED default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); a0018a48: e5940000 ldr r0, [r4] <== NOT EXECUTED a0018a4c: eb000917 bl a001aeb0 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; } a0018a50: e1a00006 mov r0, r6 <== NOT EXECUTED a0018a54: e28dd004 add sp, sp, #4 <== NOT EXECUTED a0018a58: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: _Heap_Get_information( &the_region->Memory, the_info ); a0018a5c: e2800068 add r0, r0, #104 ; 0x68 <== NOT EXECUTED a0018a60: e1a01005 mov r1, r5 <== NOT EXECUTED a0018a64: eb000d80 bl a001c06c <_Heap_Get_information> <== NOT EXECUTED return_status = RTEMS_SUCCESSFUL; break; a0018a68: eafffff6 b a0018a48 <== NOT EXECUTED =============================================================================== a0018a74 : uintptr_t size, rtems_option option_set, rtems_interval timeout, void **segment ) { a0018a74: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED a0018a78: e24dd008 sub sp, sp, #8 <== NOT EXECUTED a0018a7c: e59d402c ldr r4, [sp, #44] ; 0x2c <== NOT EXECUTED a0018a80: e1a06000 mov r6, r0 <== NOT EXECUTED a0018a84: e1a05001 mov r5, r1 <== NOT EXECUTED Objects_Locations location; rtems_status_code return_status; Region_Control *the_region; void *the_segment; if ( !segment ) a0018a88: e3540000 cmp r4, #0 <== NOT EXECUTED uintptr_t size, rtems_option option_set, rtems_interval timeout, void **segment ) { a0018a8c: e1a0a002 mov sl, r2 <== NOT EXECUTED a0018a90: e1a09003 mov r9, r3 <== NOT EXECUTED rtems_status_code return_status; Region_Control *the_region; void *the_segment; if ( !segment ) return RTEMS_INVALID_ADDRESS; a0018a94: 03a0b009 moveq fp, #9 <== NOT EXECUTED Objects_Locations location; rtems_status_code return_status; Region_Control *the_region; void *the_segment; if ( !segment ) a0018a98: 0a000004 beq a0018ab0 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; *segment = NULL; if ( size == 0 ) a0018a9c: e3510000 cmp r1, #0 <== NOT EXECUTED void *the_segment; if ( !segment ) return RTEMS_INVALID_ADDRESS; *segment = NULL; a0018aa0: e3a03000 mov r3, #0 <== NOT EXECUTED a0018aa4: e5843000 str r3, [r4] <== NOT EXECUTED if ( size == 0 ) return RTEMS_INVALID_SIZE; a0018aa8: 03a0b008 moveq fp, #8 <== NOT EXECUTED if ( !segment ) return RTEMS_INVALID_ADDRESS; *segment = NULL; if ( size == 0 ) a0018aac: 1a000002 bne a0018abc <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); return return_status; } a0018ab0: e1a0000b mov r0, fp <== NOT EXECUTED a0018ab4: e28dd008 add sp, sp, #8 <== NOT EXECUTED a0018ab8: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED *segment = NULL; if ( size == 0 ) return RTEMS_INVALID_SIZE; _RTEMS_Lock_allocator(); a0018abc: e59f80e0 ldr r8, [pc, #224] ; a0018ba4 <== NOT EXECUTED a0018ac0: e5980000 ldr r0, [r8] <== NOT EXECUTED a0018ac4: eb0008dd bl a001ae40 <_API_Mutex_Lock> <== NOT EXECUTED executing = _Thread_Executing; a0018ac8: e59f30d8 ldr r3, [pc, #216] ; a0018ba8 <== NOT EXECUTED a0018acc: e59f00d8 ldr r0, [pc, #216] ; a0018bac <== NOT EXECUTED a0018ad0: e1a01006 mov r1, r6 <== NOT EXECUTED a0018ad4: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED a0018ad8: e28d2004 add r2, sp, #4 <== NOT EXECUTED a0018adc: e58d3000 str r3, [sp] <== NOT EXECUTED a0018ae0: eb001043 bl a001cbf4 <_Objects_Get_no_protection> <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { a0018ae4: e59db004 ldr fp, [sp, #4] <== NOT EXECUTED a0018ae8: e1a07000 mov r7, r0 <== NOT EXECUTED a0018aec: e35b0000 cmp fp, #0 <== NOT EXECUTED break; #endif case OBJECTS_ERROR: default: return_status = RTEMS_INVALID_ID; a0018af0: 13a0b004 movne fp, #4 <== NOT EXECUTED _RTEMS_Lock_allocator(); executing = _Thread_Executing; the_region = _Region_Get( id, &location ); switch ( location ) { a0018af4: 1a000003 bne a0018b08 <== NOT EXECUTED case OBJECTS_LOCAL: if ( size > the_region->maximum_segment_size ) a0018af8: e590305c ldr r3, [r0, #92] ; 0x5c <== NOT EXECUTED a0018afc: e1550003 cmp r5, r3 <== NOT EXECUTED return_status = RTEMS_INVALID_SIZE; a0018b00: 83a0b008 movhi fp, #8 <== NOT EXECUTED executing = _Thread_Executing; the_region = _Region_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( size > the_region->maximum_segment_size ) a0018b04: 9a000002 bls a0018b14 <== NOT EXECUTED default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); a0018b08: e5980000 ldr r0, [r8] <== NOT EXECUTED a0018b0c: eb0008e7 bl a001aeb0 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; a0018b10: eaffffe6 b a0018ab0 <== NOT EXECUTED * @brief See _Heap_Allocate_aligned_with_boundary() with alignment and * boundary equals zero. */ RTEMS_INLINE_ROUTINE void *_Heap_Allocate( Heap_Control *heap, uintptr_t size ) { return _Heap_Allocate_aligned_with_boundary( heap, size, 0, 0 ); a0018b14: e2800068 add r0, r0, #104 ; 0x68 <== NOT EXECUTED a0018b18: e1a01005 mov r1, r5 <== NOT EXECUTED a0018b1c: e1a0200b mov r2, fp <== NOT EXECUTED a0018b20: e1a0300b mov r3, fp <== NOT EXECUTED a0018b24: eb000b7e bl a001b924 <_Heap_Allocate_aligned_with_boundary><== NOT EXECUTED the_segment = _Region_Allocate_segment( the_region, size ); _Region_Debug_Walk( the_region, 2 ); if ( the_segment ) { a0018b28: e3500000 cmp r0, #0 <== NOT EXECUTED a0018b2c: 0a000004 beq a0018b44 <== NOT EXECUTED the_region->number_of_used_blocks += 1; a0018b30: e5973064 ldr r3, [r7, #100] ; 0x64 <== NOT EXECUTED a0018b34: e2833001 add r3, r3, #1 <== NOT EXECUTED a0018b38: e5873064 str r3, [r7, #100] ; 0x64 <== NOT EXECUTED *segment = the_segment; a0018b3c: e5840000 str r0, [r4] <== NOT EXECUTED a0018b40: eafffff0 b a0018b08 <== NOT EXECUTED return_status = RTEMS_SUCCESSFUL; } else if ( _Options_Is_no_wait( option_set ) ) { a0018b44: e31a0001 tst sl, #1 <== NOT EXECUTED return_status = RTEMS_UNSATISFIED; a0018b48: 13a0b00d movne fp, #13 <== NOT EXECUTED if ( the_segment ) { the_region->number_of_used_blocks += 1; *segment = the_segment; return_status = RTEMS_SUCCESSFUL; } else if ( _Options_Is_no_wait( option_set ) ) { a0018b4c: 1affffed bne a0018b08 <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; a0018b50: e59f3058 ldr r3, [pc, #88] ; a0018bb0 <== NOT EXECUTED a0018b54: e5932000 ldr r2, [r3] <== NOT EXECUTED a0018b58: e2822001 add r2, r2, #1 <== NOT EXECUTED a0018b5c: e5832000 str r2, [r3] <== NOT EXECUTED * Switch from using the memory allocation mutex to using a * dispatching disabled critical section. We have to do this * because this thread is going to block. */ _Thread_Disable_dispatch(); _RTEMS_Unlock_allocator(); a0018b60: e5980000 ldr r0, [r8] <== NOT EXECUTED a0018b64: eb0008d1 bl a001aeb0 <_API_Mutex_Unlock> <== NOT EXECUTED executing->Wait.queue = &the_region->Wait_queue; a0018b68: e59d3000 ldr r3, [sp] <== NOT EXECUTED a0018b6c: e2870010 add r0, r7, #16 <== NOT EXECUTED executing->Wait.count = size; executing->Wait.return_argument = segment; _Thread_queue_Enter_critical_section( &the_region->Wait_queue ); _Thread_queue_Enqueue( &the_region->Wait_queue, timeout ); a0018b70: e1a01009 mov r1, r9 <== NOT EXECUTED * because this thread is going to block. */ _Thread_Disable_dispatch(); _RTEMS_Unlock_allocator(); executing->Wait.queue = &the_region->Wait_queue; a0018b74: e5830044 str r0, [r3, #68] ; 0x44 <== NOT EXECUTED executing->Wait.id = id; a0018b78: e5836020 str r6, [r3, #32] <== NOT EXECUTED executing->Wait.count = size; a0018b7c: e5835024 str r5, [r3, #36] ; 0x24 <== NOT EXECUTED executing->Wait.return_argument = segment; a0018b80: e5834028 str r4, [r3, #40] ; 0x28 <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Thread_queue_Enter_critical_section ( Thread_queue_Control *the_thread_queue ) { the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; a0018b84: e3a03001 mov r3, #1 <== NOT EXECUTED a0018b88: e5873040 str r3, [r7, #64] ; 0x40 <== NOT EXECUTED _Thread_queue_Enter_critical_section( &the_region->Wait_queue ); _Thread_queue_Enqueue( &the_region->Wait_queue, timeout ); a0018b8c: e59f2020 ldr r2, [pc, #32] ; a0018bb4 <== NOT EXECUTED a0018b90: eb001497 bl a001ddf4 <_Thread_queue_Enqueue_with_handler> <== NOT EXECUTED _Thread_Enable_dispatch(); a0018b94: eb001379 bl a001d980 <_Thread_Enable_dispatch> <== NOT EXECUTED return (rtems_status_code) executing->Wait.return_code; a0018b98: e59d3000 ldr r3, [sp] <== NOT EXECUTED a0018b9c: e593b034 ldr fp, [r3, #52] ; 0x34 <== NOT EXECUTED a0018ba0: eaffffc2 b a0018ab0 <== NOT EXECUTED =============================================================================== a0018bb8 : rtems_status_code rtems_region_get_segment_size( rtems_id id, void *segment, uintptr_t *size ) { a0018bb8: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED Objects_Locations location; rtems_status_code return_status = RTEMS_SUCCESSFUL; register Region_Control *the_region; if ( !segment ) a0018bbc: e2516000 subs r6, r1, #0 <== NOT EXECUTED rtems_status_code rtems_region_get_segment_size( rtems_id id, void *segment, uintptr_t *size ) { a0018bc0: e24dd004 sub sp, sp, #4 <== NOT EXECUTED a0018bc4: e1a07000 mov r7, r0 <== NOT EXECUTED a0018bc8: e1a05002 mov r5, r2 <== NOT EXECUTED Objects_Locations location; rtems_status_code return_status = RTEMS_SUCCESSFUL; register Region_Control *the_region; if ( !segment ) a0018bcc: 0a00001b beq a0018c40 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !size ) a0018bd0: e3520000 cmp r2, #0 <== NOT EXECUTED a0018bd4: 0a000019 beq a0018c40 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); a0018bd8: e59f4068 ldr r4, [pc, #104] ; a0018c48 <== NOT EXECUTED a0018bdc: e5940000 ldr r0, [r4] <== NOT EXECUTED a0018be0: eb000896 bl a001ae40 <_API_Mutex_Lock> <== NOT EXECUTED a0018be4: e59f0060 ldr r0, [pc, #96] ; a0018c4c <== NOT EXECUTED a0018be8: e1a01007 mov r1, r7 <== NOT EXECUTED a0018bec: e1a0200d mov r2, sp <== NOT EXECUTED a0018bf0: eb000fff bl a001cbf4 <_Objects_Get_no_protection> <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { a0018bf4: e59d3000 ldr r3, [sp] <== NOT EXECUTED a0018bf8: e3530000 cmp r3, #0 <== NOT EXECUTED a0018bfc: 0a000007 beq a0018c20 <== NOT EXECUTED void *segment, uintptr_t *size ) { Objects_Locations location; rtems_status_code return_status = RTEMS_SUCCESSFUL; a0018c00: e3530001 cmp r3, #1 <== NOT EXECUTED a0018c04: 03a05004 moveq r5, #4 <== NOT EXECUTED a0018c08: 13a05000 movne r5, #0 <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); a0018c0c: e5940000 ldr r0, [r4] <== NOT EXECUTED a0018c10: eb0008a6 bl a001aeb0 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; } a0018c14: e1a00005 mov r0, r5 <== NOT EXECUTED a0018c18: e28dd004 add sp, sp, #4 <== NOT EXECUTED a0018c1c: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_Heap_Size_of_alloc_area( &the_region->Memory, segment, size ) ) a0018c20: e1a02005 mov r2, r5 <== NOT EXECUTED a0018c24: e2800068 add r0, r0, #104 ; 0x68 <== NOT EXECUTED a0018c28: e1a01006 mov r1, r6 <== NOT EXECUTED a0018c2c: eb000e83 bl a001c640 <_Heap_Size_of_alloc_area> <== NOT EXECUTED void *segment, uintptr_t *size ) { Objects_Locations location; rtems_status_code return_status = RTEMS_SUCCESSFUL; a0018c30: e3500000 cmp r0, #0 <== NOT EXECUTED a0018c34: 03a05009 moveq r5, #9 <== NOT EXECUTED a0018c38: 13a05000 movne r5, #0 <== NOT EXECUTED a0018c3c: eafffff2 b a0018c0c <== NOT EXECUTED if ( !segment ) return RTEMS_INVALID_ADDRESS; if ( !size ) return RTEMS_INVALID_ADDRESS; a0018c40: e3a05009 mov r5, #9 <== NOT EXECUTED a0018c44: eafffff2 b a0018c14 <== NOT EXECUTED =============================================================================== a0018c50 : rtems_status_code rtems_region_ident( rtems_name name, rtems_id *id ) { a0018c50: e1a02000 mov r2, r0 <== NOT EXECUTED a0018c54: e1a03001 mov r3, r1 <== NOT EXECUTED a0018c58: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( a0018c5c: e1a01002 mov r1, r2 <== NOT EXECUTED a0018c60: e59f0010 ldr r0, [pc, #16] ; a0018c78 <== NOT EXECUTED a0018c64: e3e02102 mvn r2, #-2147483648 ; 0x80000000 <== NOT EXECUTED a0018c68: eb001046 bl a001cd88 <_Objects_Name_to_id_u32> <== NOT EXECUTED name, OBJECTS_SEARCH_LOCAL_NODE, id ); return _Status_Object_name_errors_to_status[ status ]; a0018c6c: e59f3008 ldr r3, [pc, #8] ; a0018c7c <== NOT EXECUTED } a0018c70: e7930100 ldr r0, [r3, r0, lsl #2] <== NOT EXECUTED a0018c74: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED =============================================================================== a0018c80 : rtems_id id, void *segment, uintptr_t size, uintptr_t *old_size ) { a0018c80: e92d41f0 push {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 ) a0018c84: e2535000 subs r5, r3, #0 <== NOT EXECUTED rtems_id id, void *segment, uintptr_t size, uintptr_t *old_size ) { a0018c88: e1a08000 mov r8, r0 <== NOT EXECUTED a0018c8c: e24dd010 sub sp, sp, #16 <== NOT EXECUTED a0018c90: e1a07001 mov r7, r1 <== NOT EXECUTED a0018c94: 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; a0018c98: 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 ) a0018c9c: 0a00000d beq a0018cd8 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); a0018ca0: e59f408c ldr r4, [pc, #140] ; a0018d34 <== NOT EXECUTED a0018ca4: e5940000 ldr r0, [r4] <== NOT EXECUTED a0018ca8: eb000864 bl a001ae40 <_API_Mutex_Lock> <== NOT EXECUTED a0018cac: e1a01008 mov r1, r8 <== NOT EXECUTED a0018cb0: e59f0080 ldr r0, [pc, #128] ; a0018d38 <== NOT EXECUTED a0018cb4: e28d2008 add r2, sp, #8 <== NOT EXECUTED a0018cb8: eb000fcd bl a001cbf4 <_Objects_Get_no_protection> <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { a0018cbc: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED a0018cc0: e1a08000 mov r8, r0 <== NOT EXECUTED a0018cc4: e3530000 cmp r3, #0 <== NOT EXECUTED a0018cc8: 0a000004 beq a0018ce0 <== NOT EXECUTED default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); a0018ccc: e5940000 ldr r0, [r4] <== NOT EXECUTED a0018cd0: eb000876 bl a001aeb0 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; a0018cd4: e3a00004 mov r0, #4 <== NOT EXECUTED } a0018cd8: e28dd010 add sp, sp, #16 <== NOT EXECUTED a0018cdc: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED case OBJECTS_LOCAL: _Region_Debug_Walk( the_region, 7 ); status = _Heap_Resize_block( a0018ce0: e28d300c add r3, sp, #12 <== NOT EXECUTED a0018ce4: e58d3000 str r3, [sp] <== NOT EXECUTED a0018ce8: e1a02006 mov r2, r6 <== NOT EXECUTED a0018cec: e28d3004 add r3, sp, #4 <== NOT EXECUTED a0018cf0: e2800068 add r0, r0, #104 ; 0x68 <== NOT EXECUTED a0018cf4: e1a01007 mov r1, r7 <== NOT EXECUTED a0018cf8: eb000e00 bl a001c500 <_Heap_Resize_block> <== NOT EXECUTED segment, (uint32_t) size, &osize, &avail_size ); *old_size = (uint32_t) osize; a0018cfc: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED _Region_Debug_Walk( the_region, 8 ); if ( status == HEAP_RESIZE_SUCCESSFUL ) a0018d00: e2506000 subs r6, r0, #0 <== NOT EXECUTED segment, (uint32_t) size, &osize, &avail_size ); *old_size = (uint32_t) osize; a0018d04: e5853000 str r3, [r5] <== NOT EXECUTED _Region_Debug_Walk( the_region, 8 ); if ( status == HEAP_RESIZE_SUCCESSFUL ) a0018d08: 1a000003 bne a0018d1c <== NOT EXECUTED _Region_Process_queue( the_region ); /* unlocks allocator */ a0018d0c: e1a00008 mov r0, r8 <== NOT EXECUTED a0018d10: eb001f2c bl a00209c8 <_Region_Process_queue> <== NOT EXECUTED else _RTEMS_Unlock_allocator(); if (status == HEAP_RESIZE_SUCCESSFUL) return RTEMS_SUCCESSFUL; a0018d14: e1a00006 mov r0, r6 <== NOT EXECUTED a0018d18: eaffffee b a0018cd8 <== NOT EXECUTED _Region_Debug_Walk( the_region, 8 ); if ( status == HEAP_RESIZE_SUCCESSFUL ) _Region_Process_queue( the_region ); /* unlocks allocator */ else _RTEMS_Unlock_allocator(); a0018d1c: e5940000 ldr r0, [r4] <== NOT EXECUTED a0018d20: eb000862 bl a001aeb0 <_API_Mutex_Unlock> <== NOT EXECUTED if (status == HEAP_RESIZE_SUCCESSFUL) return RTEMS_SUCCESSFUL; if (status == HEAP_RESIZE_UNSATISFIED) return RTEMS_UNSATISFIED; a0018d24: e3560001 cmp r6, #1 <== NOT EXECUTED a0018d28: 13a00009 movne r0, #9 <== NOT EXECUTED a0018d2c: 03a0000d moveq r0, #13 <== NOT EXECUTED a0018d30: eaffffe8 b a0018cd8 <== NOT EXECUTED =============================================================================== a0018d3c : rtems_status_code rtems_region_return_segment( rtems_id id, void *segment ) { a0018d3c: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED uint32_t size; #endif int status; register Region_Control *the_region; _RTEMS_Lock_allocator(); a0018d40: e59f4078 ldr r4, [pc, #120] ; a0018dc0 <== NOT EXECUTED rtems_status_code rtems_region_return_segment( rtems_id id, void *segment ) { a0018d44: e24dd004 sub sp, sp, #4 <== NOT EXECUTED a0018d48: e1a06000 mov r6, r0 <== NOT EXECUTED uint32_t size; #endif int status; register Region_Control *the_region; _RTEMS_Lock_allocator(); a0018d4c: e5940000 ldr r0, [r4] <== NOT EXECUTED rtems_status_code rtems_region_return_segment( rtems_id id, void *segment ) { a0018d50: e1a05001 mov r5, r1 <== NOT EXECUTED uint32_t size; #endif int status; register Region_Control *the_region; _RTEMS_Lock_allocator(); a0018d54: eb000839 bl a001ae40 <_API_Mutex_Lock> <== NOT EXECUTED a0018d58: e1a01006 mov r1, r6 <== NOT EXECUTED a0018d5c: e59f0060 ldr r0, [pc, #96] ; a0018dc4 <== NOT EXECUTED a0018d60: e1a0200d mov r2, sp <== NOT EXECUTED a0018d64: eb000fa2 bl a001cbf4 <_Objects_Get_no_protection> <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { a0018d68: e59d6000 ldr r6, [sp] <== NOT EXECUTED a0018d6c: e1a07000 mov r7, r0 <== NOT EXECUTED a0018d70: e3560000 cmp r6, #0 <== NOT EXECUTED break; #endif case OBJECTS_ERROR: default: return_status = RTEMS_INVALID_ID; a0018d74: 13a06004 movne r6, #4 <== NOT EXECUTED register Region_Control *the_region; _RTEMS_Lock_allocator(); the_region = _Region_Get( id, &location ); switch ( location ) { a0018d78: 1a000005 bne a0018d94 <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool _Region_Free_segment ( Region_Control *the_region, void *the_segment ) { return _Heap_Free( &the_region->Memory, the_segment ); a0018d7c: e2800068 add r0, r0, #104 ; 0x68 <== NOT EXECUTED a0018d80: e1a01005 mov r1, r5 <== NOT EXECUTED a0018d84: eb000c2b bl a001be38 <_Heap_Free> <== NOT EXECUTED #endif status = _Region_Free_segment( the_region, segment ); _Region_Debug_Walk( the_region, 4 ); if ( !status ) a0018d88: e3500000 cmp r0, #0 <== NOT EXECUTED return_status = RTEMS_INVALID_ADDRESS; a0018d8c: 03a06009 moveq r6, #9 <== NOT EXECUTED #endif status = _Region_Free_segment( the_region, segment ); _Region_Debug_Walk( the_region, 4 ); if ( !status ) a0018d90: 1a000004 bne a0018da8 <== NOT EXECUTED default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); a0018d94: e5940000 ldr r0, [r4] <== NOT EXECUTED a0018d98: eb000844 bl a001aeb0 <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; } a0018d9c: e1a00006 mov r0, r6 <== NOT EXECUTED a0018da0: e28dd004 add sp, sp, #4 <== NOT EXECUTED a0018da4: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED _Region_Debug_Walk( the_region, 4 ); if ( !status ) return_status = RTEMS_INVALID_ADDRESS; else { the_region->number_of_used_blocks -= 1; a0018da8: e5973064 ldr r3, [r7, #100] ; 0x64 <== NOT EXECUTED _Region_Process_queue(the_region); /* unlocks allocator */ a0018dac: e1a00007 mov r0, r7 <== NOT EXECUTED _Region_Debug_Walk( the_region, 4 ); if ( !status ) return_status = RTEMS_INVALID_ADDRESS; else { the_region->number_of_used_blocks -= 1; a0018db0: e2433001 sub r3, r3, #1 <== NOT EXECUTED a0018db4: e5873064 str r3, [r7, #100] ; 0x64 <== NOT EXECUTED _Region_Process_queue(the_region); /* unlocks allocator */ a0018db8: eb001f02 bl a00209c8 <_Region_Process_queue> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0018dbc: eafffff6 b a0018d9c <== NOT EXECUTED =============================================================================== a0009804 : uint32_t count, rtems_attribute attribute_set, rtems_task_priority priority_ceiling, rtems_id *id ) { a0009804: e92d41f0 push {r4, r5, r6, r7, r8, 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 ) ) a0009808: e2505000 subs r5, r0, #0 uint32_t count, rtems_attribute attribute_set, rtems_task_priority priority_ceiling, rtems_id *id ) { a000980c: e24dd020 sub sp, sp, #32 a0009810: e1a04001 mov r4, r1 a0009814: 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; a0009818: 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 ) ) a000981c: 0a000008 beq a0009844 return RTEMS_INVALID_NAME; if ( !id ) a0009820: e3560000 cmp r6, #0 return RTEMS_INVALID_ADDRESS; a0009824: 03a00009 moveq r0, #9 CORE_mutex_Status mutex_status; if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; if ( !id ) a0009828: 0a000005 beq a0009844 return RTEMS_NOT_DEFINED; } else #endif if ( _Attributes_Is_inherit_priority( attribute_set ) || a000982c: e21210c0 ands r1, r2, #192 ; 0xc0 a0009830: 0a000037 beq a0009914 */ RTEMS_INLINE_ROUTINE bool _Attributes_Is_binary_semaphore( rtems_attribute attribute_set ) { return ((attribute_set & RTEMS_SEMAPHORE_CLASS) == RTEMS_BINARY_SEMAPHORE); a0009834: e2028030 and r8, r2, #48 ; 0x30 _Attributes_Is_priority_ceiling( attribute_set ) ) { if ( ! (_Attributes_Is_binary_semaphore( attribute_set ) && a0009838: e3580010 cmp r8, #16 a000983c: 0a000002 beq a000984c } if ( _Attributes_Is_inherit_priority( attribute_set ) && _Attributes_Is_priority_ceiling( attribute_set ) ) return RTEMS_NOT_DEFINED; a0009840: e3a0000b mov r0, #11 <== NOT EXECUTED 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } a0009844: e28dd020 add sp, sp, #32 a0009848: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} #endif if ( _Attributes_Is_inherit_priority( attribute_set ) || _Attributes_Is_priority_ceiling( attribute_set ) ) { if ( ! (_Attributes_Is_binary_semaphore( attribute_set ) && a000984c: e3120004 tst r2, #4 a0009850: 0afffffa beq a0009840 _Attributes_Is_priority( attribute_set ) ) ) return RTEMS_NOT_DEFINED; } if ( _Attributes_Is_inherit_priority( attribute_set ) && a0009854: e35100c0 cmp r1, #192 ; 0xc0 a0009858: 0afffff8 beq a0009840 _Attributes_Is_priority_ceiling( attribute_set ) ) return RTEMS_NOT_DEFINED; if ( !_Attributes_Is_counting_semaphore( attribute_set ) && ( count > 1 ) ) a000985c: e3540001 cmp r4, #1 return RTEMS_INVALID_NUMBER; a0009860: 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 ) ) a0009864: 8afffff6 bhi a0009844 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; a0009868: e59f1150 ldr r1, [pc, #336] ; a00099c0 a000986c: e5910000 ldr r0, [r1] a0009870: e2800001 add r0, r0, #1 a0009874: e5810000 str r0, [r1] * 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 ); a0009878: e59f0144 ldr r0, [pc, #324] ; a00099c4 a000987c: e58d2004 str r2, [sp, #4] a0009880: e58d3000 str r3, [sp] a0009884: eb00054b bl a000adb8 <_Objects_Allocate> _Thread_Disable_dispatch(); /* prevents deletion */ the_semaphore = _Semaphore_Allocate(); if ( !the_semaphore ) { a0009888: e2507000 subs r7, r0, #0 a000988c: e59d2004 ldr r2, [sp, #4] a0009890: e59d3000 ldr r3, [sp] a0009894: 0a00002f beq a0009958 the_semaphore->attribute_set = attribute_set; /* * Initialize it as a counting semaphore. */ if ( _Attributes_Is_counting_semaphore( attribute_set ) ) { a0009898: e3580000 cmp r8, #0 _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } #endif the_semaphore->attribute_set = attribute_set; a000989c: e5872010 str r2, [r7, #16] /* * Initialize it as a counting semaphore. */ if ( _Attributes_Is_counting_semaphore( attribute_set ) ) { a00098a0: 0a00001e beq a0009920 } else { /* * 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 ) ) a00098a4: e2121004 ands r1, r2, #4 the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY; a00098a8: 13a01001 movne r1, #1 a00098ac: 158d1010 strne r1, [sp, #16] else the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_FIFO; a00098b0: 058d1010 streq r1, [sp, #16] if ( _Attributes_Is_binary_semaphore( attribute_set ) ) { a00098b4: e3580010 cmp r8, #16 a00098b8: 0a000029 beq a0009964 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; a00098bc: e3a03001 mov r3, #1 <== NOT EXECUTED a00098c0: e58d3008 str r3, [sp, #8] <== NOT EXECUTED the_mutex_attr.only_owner_release = false; a00098c4: e3a03000 mov r3, #0 <== NOT EXECUTED a00098c8: e5cd300c strb r3, [sp, #12] <== NOT EXECUTED } mutex_status = _CORE_mutex_Initialize( a00098cc: e3540001 cmp r4, #1 a00098d0: 13a02000 movne r2, #0 a00098d4: 03a02001 moveq r2, #1 a00098d8: e2870014 add r0, r7, #20 a00098dc: e28d1008 add r1, sp, #8 a00098e0: eb0002e2 bl a000a470 <_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 ) { a00098e4: e3500005 cmp r0, #5 a00098e8: 0a00002e beq a00099a8 #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; a00098ec: e59f20d0 ldr r2, [pc, #208] ; a00099c4 Objects_Name name ) { _Objects_Set_local_object( information, _Objects_Get_index( the_object->id ), a00098f0: e5973008 ldr r3, [r7, #8] #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; a00098f4: e592201c ldr r2, [r2, #28] Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( a00098f8: e1a01803 lsl r1, r3, #16 #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; a00098fc: e7827721 str r7, [r2, r1, lsr #14] information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; a0009900: e587500c str r5, [r7, #12] &_Semaphore_Information, &the_semaphore->Object, (Objects_Name) name ); *id = the_semaphore->Object.id; a0009904: e5863000 str r3, [r6] the_semaphore->Object.id, name, 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); a0009908: eb0009b0 bl a000bfd0 <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; a000990c: e3a00000 mov r0, #0 a0009910: eaffffcb b a0009844 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 ) ) a0009914: e2128030 ands r8, r2, #48 ; 0x30 a0009918: 1affffcf bne a000985c a000991c: eaffffd1 b a0009868 /* * This effectively disables limit checking. */ the_semaphore_attr.maximum_count = 0xFFFFFFFF; if ( _Attributes_Is_priority( attribute_set ) ) a0009920: e3120004 tst r2, #4 */ if ( _Attributes_Is_counting_semaphore( attribute_set ) ) { /* * This effectively disables limit checking. */ the_semaphore_attr.maximum_count = 0xFFFFFFFF; a0009924: e3e03000 mvn r3, #0 a0009928: e58d3018 str r3, [sp, #24] if ( _Attributes_Is_priority( attribute_set ) ) the_semaphore_attr.discipline = CORE_SEMAPHORE_DISCIPLINES_PRIORITY; a000992c: 13a03001 movne r3, #1 a0009930: 158d301c strne r3, [sp, #28] * 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( a0009934: e2870014 add r0, r7, #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; a0009938: e3a03000 mov r3, #0 the_mutex_attr.priority_ceiling = PRIORITY_MINIMUM; _CORE_semaphore_Initialize( a000993c: e28d1018 add r1, sp, #24 a0009940: e1a02004 mov r2, r4 the_semaphore_attr.maximum_count = 0xFFFFFFFF; if ( _Attributes_Is_priority( attribute_set ) ) the_semaphore_attr.discipline = CORE_SEMAPHORE_DISCIPLINES_PRIORITY; else the_semaphore_attr.discipline = CORE_SEMAPHORE_DISCIPLINES_FIFO; a0009944: 058d801c streq r8, [sp, #28] /* * The following are just to make Purify happy. */ the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; a0009948: e58d3008 str r3, [sp, #8] the_mutex_attr.priority_ceiling = PRIORITY_MINIMUM; a000994c: e58d3014 str r3, [sp, #20] _CORE_semaphore_Initialize( a0009950: eb000395 bl a000a7ac <_CORE_semaphore_Initialize> a0009954: eaffffe4 b a00098ec _Thread_Disable_dispatch(); /* prevents deletion */ the_semaphore = _Semaphore_Allocate(); if ( !the_semaphore ) { _Thread_Enable_dispatch(); a0009958: eb00099c bl a000bfd0 <_Thread_Enable_dispatch> return RTEMS_TOO_MANY; a000995c: e3a00005 mov r0, #5 a0009960: eaffffb7 b a0009844 if ( _Attributes_Is_binary_semaphore( attribute_set ) ) { the_mutex_attr.priority_ceiling = priority_ceiling; the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; the_mutex_attr.only_owner_release = false; if ( the_mutex_attr.discipline == CORE_MUTEX_DISCIPLINES_PRIORITY ) { a0009964: e59d0010 ldr r0, [sp, #16] else the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_FIFO; if ( _Attributes_Is_binary_semaphore( attribute_set ) ) { the_mutex_attr.priority_ceiling = priority_ceiling; the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; a0009968: e3a01000 mov r1, #0 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; a000996c: e58d3014 str r3, [sp, #20] 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 ) { a0009970: e3500001 cmp r0, #1 else the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_FIFO; if ( _Attributes_Is_binary_semaphore( attribute_set ) ) { the_mutex_attr.priority_ceiling = priority_ceiling; the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; a0009974: e58d1008 str r1, [sp, #8] the_mutex_attr.only_owner_release = false; a0009978: e5cd100c strb r1, [sp, #12] if ( the_mutex_attr.discipline == CORE_MUTEX_DISCIPLINES_PRIORITY ) { a000997c: 1affffd2 bne a00098cc if ( _Attributes_Is_inherit_priority( attribute_set ) ) { a0009980: e3120040 tst r2, #64 ; 0x40 the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; a0009984: 13a03002 movne r3, #2 a0009988: 158d3010 strne r3, [sp, #16] the_mutex_attr.only_owner_release = true; a000998c: 15cd000c strbne r0, [sp, #12] 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 ) ) { a0009990: 1affffcd bne a00098cc the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; the_mutex_attr.only_owner_release = true; } else if ( _Attributes_Is_priority_ceiling( attribute_set ) ) { a0009994: e3120080 tst r2, #128 ; 0x80 <== NOT EXECUTED the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING; a0009998: 13a03003 movne r3, #3 <== NOT EXECUTED a000999c: 158d3010 strne r3, [sp, #16] <== NOT EXECUTED the_mutex_attr.only_owner_release = true; a00099a0: 15cd000c strbne r0, [sp, #12] <== NOT EXECUTED a00099a4: eaffffc8 b a00098cc <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Semaphore_Free ( Semaphore_Control *the_semaphore ) { _Objects_Free( &_Semaphore_Information, &the_semaphore->Object ); a00099a8: e59f0014 ldr r0, [pc, #20] ; a00099c4 <== NOT EXECUTED a00099ac: e1a01007 mov r1, r7 <== NOT EXECUTED a00099b0: eb0005da bl a000b120 <_Objects_Free> <== NOT EXECUTED (count == 1) ? CORE_MUTEX_UNLOCKED : CORE_MUTEX_LOCKED ); if ( mutex_status == CORE_MUTEX_STATUS_CEILING_VIOLATED ) { _Semaphore_Free( the_semaphore ); _Thread_Enable_dispatch(); a00099b4: eb000985 bl a000bfd0 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_INVALID_PRIORITY; a00099b8: e3a00013 mov r0, #19 <== NOT EXECUTED a00099bc: eaffffa0 b a0009844 <== NOT EXECUTED =============================================================================== a00099c8 : #endif rtems_status_code rtems_semaphore_delete( rtems_id id ) { a00099c8: e92d4010 push {r4, lr} a00099cc: e24dd004 sub sp, sp, #4 a00099d0: e1a01000 mov r1, r0 Objects_Id id, Objects_Locations *location ) { return (Semaphore_Control *) _Objects_Get( &_Semaphore_Information, id, location ); a00099d4: e1a0200d mov r2, sp a00099d8: e59f0088 ldr r0, [pc, #136] ; a0009a68 a00099dc: eb000628 bl a000b284 <_Objects_Get> register Semaphore_Control *the_semaphore; Objects_Locations location; the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) { a00099e0: e59d3000 ldr r3, [sp] a00099e4: e1a04000 mov r4, r0 a00099e8: e3530000 cmp r3, #0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a00099ec: 13a00004 movne r0, #4 { register Semaphore_Control *the_semaphore; Objects_Locations location; the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) { a00099f0: 1a000009 bne a0009a1c */ RTEMS_INLINE_ROUTINE bool _Attributes_Is_counting_semaphore( rtems_attribute attribute_set ) { return ((attribute_set & RTEMS_SEMAPHORE_CLASS) == RTEMS_COUNTING_SEMAPHORE); a00099f4: e5941010 ldr r1, [r4, #16] case OBJECTS_LOCAL: if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) { a00099f8: e2111030 ands r1, r1, #48 ; 0x30 a00099fc: 0a000015 beq a0009a58 if ( _CORE_mutex_Is_locked( &the_semaphore->Core_control.mutex ) && a0009a00: e5943064 ldr r3, [r4, #100] ; 0x64 a0009a04: e3530000 cmp r3, #0 a0009a08: 1a000005 bne a0009a24 a0009a0c: e3510020 cmp r1, #32 <== NOT EXECUTED a0009a10: 0a000003 beq a0009a24 <== NOT EXECUTED !_Attributes_Is_simple_binary_semaphore( the_semaphore->attribute_set ) ) { _Thread_Enable_dispatch(); a0009a14: eb00096d bl a000bfd0 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_RESOURCE_IN_USE; a0009a18: e3a0000c mov r0, #12 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a0009a1c: e28dd004 add sp, sp, #4 a0009a20: e8bd8010 pop {r4, pc} !_Attributes_Is_simple_binary_semaphore( the_semaphore->attribute_set ) ) { _Thread_Enable_dispatch(); return RTEMS_RESOURCE_IN_USE; } _CORE_mutex_Flush( a0009a24: e2840014 add r0, r4, #20 a0009a28: e3a01000 mov r1, #0 a0009a2c: e3a02003 mov r2, #3 a0009a30: eb00028d bl a000a46c <_CORE_mutex_Flush> SEMAPHORE_MP_OBJECT_WAS_DELETED, CORE_SEMAPHORE_WAS_DELETED ); } _Objects_Close( &_Semaphore_Information, &the_semaphore->Object ); a0009a34: e1a01004 mov r1, r4 a0009a38: e59f0028 ldr r0, [pc, #40] ; a0009a68 a0009a3c: eb000502 bl a000ae4c <_Objects_Close> */ RTEMS_INLINE_ROUTINE void _Semaphore_Free ( Semaphore_Control *the_semaphore ) { _Objects_Free( &_Semaphore_Information, &the_semaphore->Object ); a0009a40: e59f0020 ldr r0, [pc, #32] ; a0009a68 a0009a44: e1a01004 mov r1, r4 a0009a48: eb0005b4 bl a000b120 <_Objects_Free> 0, /* Not used */ 0 /* Not used */ ); } #endif _Thread_Enable_dispatch(); a0009a4c: eb00095f bl a000bfd0 <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; a0009a50: e3a00000 mov r0, #0 a0009a54: eafffff0 b a0009a1c &the_semaphore->Core_control.mutex, SEMAPHORE_MP_OBJECT_WAS_DELETED, CORE_MUTEX_WAS_DELETED ); } else { _CORE_semaphore_Flush( a0009a58: e2840014 add r0, r4, #20 a0009a5c: e3a02002 mov r2, #2 a0009a60: eb000350 bl a000a7a8 <_CORE_semaphore_Flush> a0009a64: eafffff2 b a0009a34 =============================================================================== a0012b30 : #endif rtems_status_code rtems_semaphore_flush( rtems_id id ) { a0012b30: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED a0012b34: e24dd004 sub sp, sp, #4 <== NOT EXECUTED a0012b38: e1a01000 mov r1, r0 <== NOT EXECUTED a0012b3c: e1a0200d mov r2, sp <== NOT EXECUTED a0012b40: e59f004c ldr r0, [pc, #76] ; a0012b94 <== NOT EXECUTED a0012b44: ebffe680 bl a000c54c <_Objects_Get> <== NOT EXECUTED register Semaphore_Control *the_semaphore; Objects_Locations location; the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) { a0012b48: e59d3000 ldr r3, [sp] <== NOT EXECUTED a0012b4c: e3530000 cmp r3, #0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a0012b50: 13a00004 movne r0, #4 <== NOT EXECUTED { register Semaphore_Control *the_semaphore; Objects_Locations location; the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) { a0012b54: 1a000007 bne a0012b78 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Attributes_Is_counting_semaphore( rtems_attribute attribute_set ) { return ((attribute_set & RTEMS_SEMAPHORE_CLASS) == RTEMS_COUNTING_SEMAPHORE); a0012b58: e5901010 ldr r1, [r0, #16] <== NOT EXECUTED case OBJECTS_LOCAL: if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) { a0012b5c: e2111030 ands r1, r1, #48 ; 0x30 <== NOT EXECUTED a0012b60: 1a000006 bne a0012b80 <== NOT EXECUTED &the_semaphore->Core_control.mutex, SEND_OBJECT_WAS_DELETED, CORE_MUTEX_STATUS_UNSATISFIED_NOWAIT ); } else { _CORE_semaphore_Flush( a0012b64: e2800014 add r0, r0, #20 <== NOT EXECUTED a0012b68: e3a02001 mov r2, #1 <== NOT EXECUTED a0012b6c: ebffe3df bl a000baf0 <_CORE_semaphore_Flush> <== NOT EXECUTED &the_semaphore->Core_control.semaphore, SEND_OBJECT_WAS_DELETED, CORE_SEMAPHORE_STATUS_UNSATISFIED_NOWAIT ); } _Thread_Enable_dispatch(); a0012b70: ebffe9ce bl a000d2b0 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0012b74: e3a00000 mov r0, #0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a0012b78: e28dd004 add sp, sp, #4 <== NOT EXECUTED a0012b7c: e8bd8000 pop {pc} <== NOT EXECUTED the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) { _CORE_mutex_Flush( a0012b80: e2800014 add r0, r0, #20 <== NOT EXECUTED a0012b84: e1a01003 mov r1, r3 <== NOT EXECUTED a0012b88: e3a02001 mov r2, #1 <== NOT EXECUTED a0012b8c: ebffe308 bl a000b7b4 <_CORE_mutex_Flush> <== NOT EXECUTED a0012b90: eafffff6 b a0012b70 <== NOT EXECUTED =============================================================================== a0019098 : rtems_status_code rtems_semaphore_ident( rtems_name name, uint32_t node, rtems_id *id ) { a0019098: e1a0c001 mov ip, r1 <== NOT EXECUTED a001909c: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED a00190a0: e1a0e000 mov lr, r0 <== NOT EXECUTED a00190a4: e1a03002 mov r3, r2 <== NOT EXECUTED Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( &_Semaphore_Information, name, node, id ); a00190a8: e1a0100e mov r1, lr <== NOT EXECUTED a00190ac: e1a0200c mov r2, ip <== NOT EXECUTED a00190b0: e59f000c ldr r0, [pc, #12] ; a00190c4 <== NOT EXECUTED a00190b4: eb000f33 bl a001cd88 <_Objects_Name_to_id_u32> <== NOT EXECUTED return _Status_Object_name_errors_to_status[ status ]; a00190b8: e59f3008 ldr r3, [pc, #8] ; a00190c8 <== NOT EXECUTED } a00190bc: e7930100 ldr r0, [r3, r0, lsl #2] <== NOT EXECUTED a00190c0: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED =============================================================================== a0009a6c : rtems_status_code rtems_semaphore_obtain( rtems_id id, rtems_option option_set, rtems_interval timeout ) { a0009a6c: e92d40f0 push {r4, r5, r6, r7, lr} a0009a70: e1a04000 mov r4, r0 a0009a74: e24dd00c sub sp, sp, #12 Objects_Locations *location, ISR_Level *level ) { return (Semaphore_Control *) _Objects_Get_isr_disable( &_Semaphore_Information, id, location, level ); a0009a78: e28d3004 add r3, sp, #4 a0009a7c: e1a05001 mov r5, r1 a0009a80: e1a06002 mov r6, r2 a0009a84: e59f00f4 ldr r0, [pc, #244] ; a0009b80 a0009a88: e1a01004 mov r1, r4 a0009a8c: e28d2008 add r2, sp, #8 a0009a90: eb0005df bl a000b214 <_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 ) { a0009a94: e59d3008 ldr r3, [sp, #8] a0009a98: e3530000 cmp r3, #0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a0009a9c: 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 ) { a0009aa0: 1a00000e bne a0009ae0 a0009aa4: e5903010 ldr r3, [r0, #16] case OBJECTS_LOCAL: if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) { a0009aa8: e2133030 ands r3, r3, #48 ; 0x30 a0009aac: 0a00000d beq a0009ae8 _CORE_mutex_Seize( a0009ab0: e59d3004 ldr r3, [sp, #4] */ RTEMS_INLINE_ROUTINE bool _Options_Is_no_wait ( rtems_option option_set ) { return (option_set & RTEMS_NO_WAIT) ? true : false; a0009ab4: e2052001 and r2, r5, #1 a0009ab8: e2800014 add r0, r0, #20 a0009abc: e58d3000 str r3, [sp] a0009ac0: e2222001 eor r2, r2, #1 a0009ac4: e1a03006 mov r3, r6 a0009ac8: e1a01004 mov r1, r4 a0009acc: eb0002b1 bl a000a598 <_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 ); a0009ad0: e59f30ac ldr r3, [pc, #172] ; a0009b84 a0009ad4: e5933004 ldr r3, [r3, #4] id, ((_Options_Is_no_wait( option_set )) ? false : true), timeout, level ); return _Semaphore_Translate_core_mutex_return_code( a0009ad8: e5930034 ldr r0, [r3, #52] ; 0x34 a0009adc: eb00004c bl a0009c14 <_Semaphore_Translate_core_mutex_return_code> break; } return RTEMS_INVALID_ID; } a0009ae0: e28dd00c add sp, sp, #12 a0009ae4: e8bd80f0 pop {r4, r5, r6, r7, pc} { Thread_Control *executing; /* disabled when you get here */ executing = _Thread_Executing; a0009ae8: e59f7094 ldr r7, [pc, #148] ; a0009b84 <== NOT EXECUTED executing->Wait.return_code = CORE_SEMAPHORE_STATUS_SUCCESSFUL; if ( the_semaphore->count != 0 ) { a0009aec: e590105c ldr r1, [r0, #92] ; 0x5c <== NOT EXECUTED { Thread_Control *executing; /* disabled when you get here */ executing = _Thread_Executing; a0009af0: e5972004 ldr r2, [r7, #4] <== NOT EXECUTED executing->Wait.return_code = CORE_SEMAPHORE_STATUS_SUCCESSFUL; if ( the_semaphore->count != 0 ) { a0009af4: e3510000 cmp r1, #0 <== NOT EXECUTED Thread_Control *executing; /* disabled when you get here */ executing = _Thread_Executing; executing->Wait.return_code = CORE_SEMAPHORE_STATUS_SUCCESSFUL; a0009af8: e5823034 str r3, [r2, #52] ; 0x34 <== NOT EXECUTED if ( the_semaphore->count != 0 ) { a0009afc: 1a000009 bne a0009b28 <== NOT EXECUTED the_semaphore->count -= 1; _ISR_Enable( *level_p ); return; } if ( !wait ) { a0009b00: e3150001 tst r5, #1 <== NOT EXECUTED a0009b04: 0a00000c beq a0009b3c <== NOT EXECUTED a0009b08: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED a0009b0c: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED _ISR_Enable( *level_p ); executing->Wait.return_code = CORE_SEMAPHORE_STATUS_UNSATISFIED_NOWAIT; a0009b10: e3a03001 mov r3, #1 <== NOT EXECUTED a0009b14: e5823034 str r3, [r2, #52] ; 0x34 <== NOT EXECUTED ((_Options_Is_no_wait( option_set )) ? false : true), timeout, &level ); return _Semaphore_Translate_core_semaphore_return_code( _Thread_Executing->Wait.return_code ); a0009b18: e5973004 ldr r3, [r7, #4] <== NOT EXECUTED id, ((_Options_Is_no_wait( option_set )) ? false : true), timeout, &level ); return _Semaphore_Translate_core_semaphore_return_code( a0009b1c: e5930034 ldr r0, [r3, #52] ; 0x34 <== NOT EXECUTED a0009b20: eb00003f bl a0009c24 <_Semaphore_Translate_core_semaphore_return_code><== NOT EXECUTED a0009b24: eaffffed b a0009ae0 <== NOT EXECUTED /* disabled when you get here */ executing = _Thread_Executing; executing->Wait.return_code = CORE_SEMAPHORE_STATUS_SUCCESSFUL; if ( the_semaphore->count != 0 ) { the_semaphore->count -= 1; a0009b28: e2411001 sub r1, r1, #1 <== NOT EXECUTED a0009b2c: e580105c str r1, [r0, #92] ; 0x5c <== NOT EXECUTED a0009b30: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED a0009b34: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED a0009b38: eafffff6 b a0009b18 <== NOT EXECUTED a0009b3c: e59f3044 ldr r3, [pc, #68] ; a0009b88 <== NOT EXECUTED a0009b40: e5931000 ldr r1, [r3] <== NOT EXECUTED a0009b44: e2811001 add r1, r1, #1 <== NOT EXECUTED a0009b48: e5831000 str r1, [r3] <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Thread_queue_Enter_critical_section ( Thread_queue_Control *the_thread_queue ) { the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; a0009b4c: e3a01001 mov r1, #1 <== NOT EXECUTED return; } _Thread_Disable_dispatch(); _Thread_queue_Enter_critical_section( &the_semaphore->Wait_queue ); executing->Wait.queue = &the_semaphore->Wait_queue; a0009b50: e2803014 add r3, r0, #20 <== NOT EXECUTED a0009b54: e5801044 str r1, [r0, #68] ; 0x44 <== NOT EXECUTED a0009b58: e5823044 str r3, [r2, #68] ; 0x44 <== NOT EXECUTED executing->Wait.id = id; a0009b5c: e5824020 str r4, [r2, #32] <== NOT EXECUTED a0009b60: e59d2004 ldr r2, [sp, #4] <== NOT EXECUTED a0009b64: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED _ISR_Enable( *level_p ); _Thread_queue_Enqueue( &the_semaphore->Wait_queue, timeout ); a0009b68: e59f201c ldr r2, [pc, #28] ; a0009b8c <== NOT EXECUTED a0009b6c: e1a00003 mov r0, r3 <== NOT EXECUTED a0009b70: e1a01006 mov r1, r6 <== NOT EXECUTED a0009b74: eb000a32 bl a000c444 <_Thread_queue_Enqueue_with_handler> <== NOT EXECUTED _Thread_Enable_dispatch(); a0009b78: eb000914 bl a000bfd0 <_Thread_Enable_dispatch> <== NOT EXECUTED a0009b7c: eaffffe5 b a0009b18 <== NOT EXECUTED =============================================================================== a0009b90 : #endif rtems_status_code rtems_semaphore_release( rtems_id id ) { a0009b90: e92d4010 push {r4, lr} a0009b94: e24dd004 sub sp, sp, #4 Objects_Id id, Objects_Locations *location ) { return (Semaphore_Control *) _Objects_Get( &_Semaphore_Information, id, location ); a0009b98: e1a01000 mov r1, r0 a0009b9c: e1a04000 mov r4, r0 a0009ba0: e1a0200d mov r2, sp a0009ba4: e59f0064 ldr r0, [pc, #100] ; a0009c10 a0009ba8: eb0005b5 bl a000b284 <_Objects_Get> Objects_Locations location; CORE_mutex_Status mutex_status; CORE_semaphore_Status semaphore_status; the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) { a0009bac: e59d3000 ldr r3, [sp] a0009bb0: e3530000 cmp r3, #0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a0009bb4: 13a00004 movne r0, #4 Objects_Locations location; CORE_mutex_Status mutex_status; CORE_semaphore_Status semaphore_status; the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) { a0009bb8: 1a000009 bne a0009be4 a0009bbc: e5902010 ldr r2, [r0, #16] case OBJECTS_LOCAL: if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) { a0009bc0: e2122030 ands r2, r2, #48 ; 0x30 a0009bc4: 1a000008 bne a0009bec MUTEX_MP_SUPPORT ); _Thread_Enable_dispatch(); return _Semaphore_Translate_core_mutex_return_code( mutex_status ); } else { semaphore_status = _CORE_semaphore_Surrender( a0009bc8: e1a01004 mov r1, r4 <== NOT EXECUTED a0009bcc: e2800014 add r0, r0, #20 <== NOT EXECUTED a0009bd0: eb000302 bl a000a7e0 <_CORE_semaphore_Surrender> <== NOT EXECUTED a0009bd4: e1a04000 mov r4, r0 <== NOT EXECUTED &the_semaphore->Core_control.semaphore, id, MUTEX_MP_SUPPORT ); _Thread_Enable_dispatch(); a0009bd8: eb0008fc bl a000bfd0 <_Thread_Enable_dispatch> <== NOT EXECUTED return a0009bdc: e1a00004 mov r0, r4 <== NOT EXECUTED a0009be0: eb00000f bl a0009c24 <_Semaphore_Translate_core_semaphore_return_code><== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a0009be4: e28dd004 add sp, sp, #4 a0009be8: e8bd8010 pop {r4, pc} the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) { mutex_status = _CORE_mutex_Surrender( a0009bec: e1a01004 mov r1, r4 a0009bf0: e1a02003 mov r2, r3 a0009bf4: e2800014 add r0, r0, #20 a0009bf8: eb000299 bl a000a664 <_CORE_mutex_Surrender> a0009bfc: e1a04000 mov r4, r0 &the_semaphore->Core_control.mutex, id, MUTEX_MP_SUPPORT ); _Thread_Enable_dispatch(); a0009c00: eb0008f2 bl a000bfd0 <_Thread_Enable_dispatch> return _Semaphore_Translate_core_mutex_return_code( mutex_status ); a0009c04: e1a00004 mov r0, r4 a0009c08: eb000001 bl a0009c14 <_Semaphore_Translate_core_mutex_return_code> a0009c0c: eafffff4 b a0009be4 =============================================================================== a00161b4 : void rtems_shutdown_executive( uint32_t result ) { if ( _System_state_Is_up( _System_state_Get() ) ) { a00161b4: e59f302c ldr r3, [pc, #44] ; a00161e8 */ void rtems_shutdown_executive( uint32_t result ) { a00161b8: e52de004 push {lr} ; (str lr, [sp, #-4]!) if ( _System_state_Is_up( _System_state_Get() ) ) { a00161bc: e5932000 ldr r2, [r3] a00161c0: e3520003 cmp r2, #3 a00161c4: 0a000003 beq a00161d8 _System_state_Set( SYSTEM_STATE_SHUTDOWN ); _Thread_Stop_multitasking(); } _Internal_error_Occurred( a00161c8: e3a00000 mov r0, #0 <== NOT EXECUTED a00161cc: e3a01001 mov r1, #1 <== NOT EXECUTED a00161d0: e3a02014 mov r2, #20 <== NOT EXECUTED a00161d4: ebffd2df bl a000ad58 <_Internal_error_Occurred> <== NOT EXECUTED a00161d8: e3a02004 mov r2, #4 * if we were running within the same context, it would work. * * And we will not return to this thread, so there is no point of * saving the context. */ _Context_Restart_self( &_Thread_BSP_context ); a00161dc: e59f0008 ldr r0, [pc, #8] ; a00161ec a00161e0: e5832000 str r2, [r3] a00161e4: ebffdcba bl a000d4d4 <_CPU_Context_restore> =============================================================================== a000ae78 : a000ae78: e59f3048 ldr r3, [pc, #72] ; a000aec8 <== NOT EXECUTED RTEMS_API_Control *api; ASR_Information *asr; /* XXX normalize mode */ executing = _Thread_Executing; api = (RTEMS_API_Control*)executing->API_Extensions[ THREAD_API_RTEMS ]; a000ae7c: e59f2048 ldr r2, [pc, #72] ; a000aecc <== NOT EXECUTED rtems_status_code rtems_signal_catch( rtems_asr_entry asr_handler, rtems_mode mode_set ) { a000ae80: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED a000ae84: e593c000 ldr ip, [r3] <== NOT EXECUTED RTEMS_API_Control *api; ASR_Information *asr; /* XXX normalize mode */ executing = _Thread_Executing; api = (RTEMS_API_Control*)executing->API_Extensions[ THREAD_API_RTEMS ]; a000ae88: e5922004 ldr r2, [r2, #4] <== NOT EXECUTED a000ae8c: e28cc001 add ip, ip, #1 <== NOT EXECUTED a000ae90: e59220f4 ldr r2, [r2, #244] ; 0xf4 <== NOT EXECUTED a000ae94: e583c000 str ip, [r3] <== NOT EXECUTED asr = &api->Signal; _Thread_Disable_dispatch(); /* cannot reschedule while */ /* the thread is inconsistent */ if ( !_ASR_Is_null_handler( asr_handler ) ) { a000ae98: e3500000 cmp r0, #0 <== NOT EXECUTED asr->mode_set = mode_set; asr->handler = asr_handler; a000ae9c: 1582000c strne r0, [r2, #12] <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _ASR_Initialize ( ASR_Information *information ) { information->is_enabled = false; a000aea0: 05c20008 strbeq r0, [r2, #8] <== NOT EXECUTED information->handler = NULL; a000aea4: 0582000c streq r0, [r2, #12] <== NOT EXECUTED information->mode_set = RTEMS_DEFAULT_MODES; a000aea8: 05820010 streq r0, [r2, #16] <== NOT EXECUTED information->signals_posted = 0; a000aeac: 05820014 streq r0, [r2, #20] <== NOT EXECUTED information->signals_pending = 0; a000aeb0: 05820018 streq r0, [r2, #24] <== NOT EXECUTED information->nest_level = 0; a000aeb4: 0582001c streq r0, [r2, #28] <== NOT EXECUTED _Thread_Disable_dispatch(); /* cannot reschedule while */ /* the thread is inconsistent */ if ( !_ASR_Is_null_handler( asr_handler ) ) { asr->mode_set = mode_set; a000aeb8: 15821010 strne r1, [r2, #16] <== NOT EXECUTED asr->handler = asr_handler; } else _ASR_Initialize( asr ); _Thread_Enable_dispatch(); a000aebc: eb0009aa bl a000d56c <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; } a000aec0: e3a00000 mov r0, #0 <== NOT EXECUTED a000aec4: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED =============================================================================== a0019298 : rtems_status_code rtems_signal_send( rtems_id id, rtems_signal_set signal_set ) { a0019298: e92d4010 push {r4, lr} <== NOT EXECUTED register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; ASR_Information *asr; if ( !signal_set ) a001929c: e2514000 subs r4, r1, #0 <== NOT EXECUTED rtems_status_code rtems_signal_send( rtems_id id, rtems_signal_set signal_set ) { a00192a0: e24dd004 sub sp, sp, #4 <== NOT EXECUTED Objects_Locations location; RTEMS_API_Control *api; ASR_Information *asr; if ( !signal_set ) return RTEMS_INVALID_NUMBER; a00192a4: 03a0000a moveq r0, #10 <== NOT EXECUTED register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; ASR_Information *asr; if ( !signal_set ) a00192a8: 1a000001 bne a00192b4 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a00192ac: e28dd004 add sp, sp, #4 <== NOT EXECUTED a00192b0: e8bd8010 pop {r4, pc} <== NOT EXECUTED ASR_Information *asr; if ( !signal_set ) return RTEMS_INVALID_NUMBER; the_thread = _Thread_Get( id, &location ); a00192b4: e1a0100d mov r1, sp <== NOT EXECUTED a00192b8: eb0011b9 bl a001d9a4 <_Thread_Get> <== NOT EXECUTED switch ( location ) { a00192bc: e59d3000 ldr r3, [sp] <== NOT EXECUTED a00192c0: e3530000 cmp r3, #0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a00192c4: 13a00004 movne r0, #4 <== NOT EXECUTED if ( !signal_set ) return RTEMS_INVALID_NUMBER; the_thread = _Thread_Get( id, &location ); switch ( location ) { a00192c8: 1afffff7 bne a00192ac <== NOT EXECUTED case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; a00192cc: e59030f4 ldr r3, [r0, #244] ; 0xf4 <== NOT EXECUTED asr = &api->Signal; if ( ! _ASR_Is_null_handler( asr->handler ) ) { a00192d0: e593200c ldr r2, [r3, #12] <== NOT EXECUTED a00192d4: e3520000 cmp r2, #0 <== NOT EXECUTED a00192d8: 0a00001c beq a0019350 <== NOT EXECUTED if ( asr->is_enabled ) { a00192dc: e5d32008 ldrb r2, [r3, #8] <== NOT EXECUTED a00192e0: e3520000 cmp r2, #0 <== NOT EXECUTED a00192e4: 0a00000f beq a0019328 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a00192e8: e10f2000 mrs r2, CPSR <== NOT EXECUTED a00192ec: e3821080 orr r1, r2, #128 ; 0x80 <== NOT EXECUTED a00192f0: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED ) { ISR_Level _level; _ISR_Disable( _level ); *signal_set |= signals; a00192f4: e5931014 ldr r1, [r3, #20] <== NOT EXECUTED a00192f8: e1814004 orr r4, r1, r4 <== NOT EXECUTED a00192fc: e5834014 str r4, [r3, #20] <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a0019300: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED _ASR_Post_signals( signal_set, &asr->signals_posted ); if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) ) a0019304: e59f3050 ldr r3, [pc, #80] ; a001935c <== NOT EXECUTED a0019308: e5932000 ldr r2, [r3] <== NOT EXECUTED a001930c: e3520000 cmp r2, #0 <== NOT EXECUTED a0019310: 0a00000b beq a0019344 <== NOT EXECUTED a0019314: e5932004 ldr r2, [r3, #4] <== NOT EXECUTED a0019318: e1500002 cmp r0, r2 <== NOT EXECUTED _Thread_Dispatch_necessary = true; a001931c: 03a02001 moveq r2, #1 <== NOT EXECUTED a0019320: 05c32010 strbeq r2, [r3, #16] <== NOT EXECUTED a0019324: ea000006 b a0019344 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a0019328: e10f2000 mrs r2, CPSR <== NOT EXECUTED a001932c: e3821080 orr r1, r2, #128 ; 0x80 <== NOT EXECUTED a0019330: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED a0019334: e5931018 ldr r1, [r3, #24] <== NOT EXECUTED a0019338: e1814004 orr r4, r1, r4 <== NOT EXECUTED a001933c: e5834018 str r4, [r3, #24] <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a0019340: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED } else { _ASR_Post_signals( signal_set, &asr->signals_pending ); } _Thread_Enable_dispatch(); a0019344: eb00118d bl a001d980 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0019348: e3a00000 mov r0, #0 <== NOT EXECUTED a001934c: eaffffd6 b a00192ac <== NOT EXECUTED } _Thread_Enable_dispatch(); a0019350: eb00118a bl a001d980 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_NOT_DEFINED; a0019354: e3a0000b mov r0, #11 <== NOT EXECUTED a0019358: eaffffd3 b a00192ac <== NOT EXECUTED =============================================================================== a0009c38 : size_t stack_size, rtems_mode initial_modes, rtems_attribute attribute_set, rtems_id *id ) { a0009c38: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} a0009c3c: e24dd01c sub sp, sp, #28 a0009c40: e59d9044 ldr r9, [sp, #68] ; 0x44 a0009c44: e1a04000 mov r4, r0 a0009c48: e1a0a001 mov sl, r1 Priority_Control core_priority; RTEMS_API_Control *api; ASR_Information *asr; if ( !id ) a0009c4c: e3590000 cmp r9, #0 size_t stack_size, rtems_mode initial_modes, rtems_attribute attribute_set, rtems_id *id ) { a0009c50: e1a06002 mov r6, r2 a0009c54: e1a05003 mov r5, r3 RTEMS_API_Control *api; ASR_Information *asr; if ( !id ) return RTEMS_INVALID_ADDRESS; a0009c58: 03a00009 moveq r0, #9 Priority_Control core_priority; RTEMS_API_Control *api; ASR_Information *asr; if ( !id ) a0009c5c: 0a000031 beq a0009d28 return RTEMS_INVALID_ADDRESS; if ( !rtems_is_name_valid( name ) ) a0009c60: e3540000 cmp r4, #0 return RTEMS_INVALID_NAME; a0009c64: 03a00003 moveq r0, #3 if ( !id ) return RTEMS_INVALID_ADDRESS; if ( !rtems_is_name_valid( name ) ) a0009c68: 0a00002e beq a0009d28 /* * Validate the RTEMS API priority and convert it to the core priority range. */ if ( !_Attributes_Is_system_task( the_attribute_set ) ) { a0009c6c: e59d3040 ldr r3, [sp, #64] ; 0x40 a0009c70: e3130902 tst r3, #32768 ; 0x8000 a0009c74: 1a000005 bne a0009c90 */ RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid ( rtems_task_priority the_priority ) { return ( ( the_priority >= RTEMS_MINIMUM_PRIORITY ) && a0009c78: e3510000 cmp r1, #0 a0009c7c: 0a00002b beq a0009d30 ( the_priority <= RTEMS_MAXIMUM_PRIORITY ) ); a0009c80: e59f30e0 ldr r3, [pc, #224] ; a0009d68 a0009c84: e5d33000 ldrb r3, [r3] */ RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid ( rtems_task_priority the_priority ) { return ( ( the_priority >= RTEMS_MINIMUM_PRIORITY ) && a0009c88: e1510003 cmp r1, r3 a0009c8c: 8a000027 bhi a0009d30 */ /* * Lock the allocator mutex for protection */ _RTEMS_Lock_allocator(); a0009c90: e59fb0d4 ldr fp, [pc, #212] ; a0009d6c a0009c94: e59b0000 ldr r0, [fp] a0009c98: eb0001aa bl a000a348 <_API_Mutex_Lock> * This function allocates a task control block from * the inactive chain of free task control blocks. */ RTEMS_INLINE_ROUTINE Thread_Control *_RTEMS_tasks_Allocate( void ) { return (Thread_Control *) _Objects_Allocate( &_RTEMS_tasks_Information ); a0009c9c: e59f00cc ldr r0, [pc, #204] ; a0009d70 a0009ca0: eb000444 bl a000adb8 <_Objects_Allocate> * the event of an error. */ the_thread = _RTEMS_tasks_Allocate(); if ( !the_thread ) { a0009ca4: e2507000 subs r7, r0, #0 a0009ca8: 0a00002a beq a0009d58 /* * Initialize the core thread for this task. */ status = _Thread_Initialize( a0009cac: e3150c01 tst r5, #256 ; 0x100 a0009cb0: 13a01000 movne r1, #0 a0009cb4: 03a01001 moveq r1, #1 a0009cb8: e3150c02 tst r5, #512 ; 0x200 */ RTEMS_INLINE_ROUTINE bool _Attributes_Is_floating_point( rtems_attribute attribute_set ) { return ( attribute_set & RTEMS_FLOATING_POINT ) ? true : false; a0009cbc: e3a08000 mov r8, #0 a0009cc0: 03a02000 moveq r2, #0 a0009cc4: 13a02001 movne r2, #1 */ RTEMS_INLINE_ROUTINE ISR_Level _Modes_Get_interrupt_level ( Modes_Control mode_set ) { return ( mode_set & RTEMS_INTERRUPT_MASK ); a0009cc8: e2053080 and r3, r5, #128 ; 0x80 a0009ccc: e58d1008 str r1, [sp, #8] a0009cd0: e58d200c str r2, [sp, #12] a0009cd4: e58d3014 str r3, [sp, #20] a0009cd8: e59f0090 ldr r0, [pc, #144] ; a0009d70 a0009cdc: e1a01007 mov r1, r7 a0009ce0: e1a02008 mov r2, r8 a0009ce4: e1a03006 mov r3, r6 a0009ce8: e88d0500 stm sp, {r8, sl} a0009cec: e58d8010 str r8, [sp, #16] a0009cf0: e58d4018 str r4, [sp, #24] a0009cf4: eb0008e3 bl a000c088 <_Thread_Initialize> NULL, /* no budget algorithm callout */ _Modes_Get_interrupt_level(initial_modes), (Objects_Name) name ); if ( !status ) { a0009cf8: e1500008 cmp r0, r8 a0009cfc: 0a00000d beq a0009d38 _RTEMS_Unlock_allocator(); return RTEMS_UNSATISFIED; } api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; asr = &api->Signal; a0009d00: e59720f4 ldr r2, [r7, #244] ; 0xf4 asr->is_enabled = _Modes_Is_asr_disabled(initial_modes) ? false : true; *id = the_thread->Object.id; a0009d04: e5973008 ldr r3, [r7, #8] * id - thread id * RTEMS_SUCCESSFUL - if successful * error code - if unsuccessful */ rtems_status_code rtems_task_create( a0009d08: e3150b01 tst r5, #1024 ; 0x400 a0009d0c: 13a01000 movne r1, #0 a0009d10: 03a01001 moveq r1, #1 ); } #endif _RTEMS_Unlock_allocator(); a0009d14: e59b0000 ldr r0, [fp] * id - thread id * RTEMS_SUCCESSFUL - if successful * error code - if unsuccessful */ rtems_status_code rtems_task_create( a0009d18: e5c21008 strb r1, [r2, #8] api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; asr = &api->Signal; asr->is_enabled = _Modes_Is_asr_disabled(initial_modes) ? false : true; *id = the_thread->Object.id; a0009d1c: e5893000 str r3, [r9] ); } #endif _RTEMS_Unlock_allocator(); a0009d20: eb0001a4 bl a000a3b8 <_API_Mutex_Unlock> return RTEMS_SUCCESSFUL; a0009d24: e1a00008 mov r0, r8 } a0009d28: e28dd01c add sp, sp, #28 a0009d2c: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} * Validate the RTEMS API priority and convert it to the core priority range. */ if ( !_Attributes_Is_system_task( the_attribute_set ) ) { if ( !_RTEMS_tasks_Priority_is_valid( initial_priority ) ) return RTEMS_INVALID_PRIORITY; a0009d30: e3a00013 mov r0, #19 <== NOT EXECUTED a0009d34: eafffffb b a0009d28 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _RTEMS_tasks_Free ( Thread_Control *the_task ) { _Objects_Free( a0009d38: e5970008 ldr r0, [r7, #8] <== NOT EXECUTED a0009d3c: eb000515 bl a000b198 <_Objects_Get_information_id> <== NOT EXECUTED a0009d40: e1a01007 mov r1, r7 <== NOT EXECUTED a0009d44: eb0004f5 bl a000b120 <_Objects_Free> <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if ( is_global ) _Objects_MP_Free_global_object( the_global_object ); #endif _RTEMS_tasks_Free( the_thread ); _RTEMS_Unlock_allocator(); a0009d48: e59b0000 ldr r0, [fp] <== NOT EXECUTED a0009d4c: eb000199 bl a000a3b8 <_API_Mutex_Unlock> <== NOT EXECUTED return RTEMS_UNSATISFIED; a0009d50: e3a0000d mov r0, #13 <== NOT EXECUTED a0009d54: eafffff3 b a0009d28 <== NOT EXECUTED */ the_thread = _RTEMS_tasks_Allocate(); if ( !the_thread ) { _RTEMS_Unlock_allocator(); a0009d58: e59b0000 ldr r0, [fp] <== NOT EXECUTED a0009d5c: eb000195 bl a000a3b8 <_API_Mutex_Unlock> <== NOT EXECUTED return RTEMS_TOO_MANY; a0009d60: e3a00005 mov r0, #5 <== NOT EXECUTED a0009d64: eaffffef b a0009d28 <== NOT EXECUTED =============================================================================== a0009d74 : */ rtems_status_code rtems_task_delete( rtems_id id ) { a0009d74: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED register Thread_Control *the_thread; Objects_Locations location; Objects_Information *the_information; _RTEMS_Lock_allocator(); a0009d78: e59f4070 ldr r4, [pc, #112] ; a0009df0 <== NOT EXECUTED */ rtems_status_code rtems_task_delete( rtems_id id ) { a0009d7c: e24dd004 sub sp, sp, #4 <== NOT EXECUTED a0009d80: e1a05000 mov r5, r0 <== NOT EXECUTED register Thread_Control *the_thread; Objects_Locations location; Objects_Information *the_information; _RTEMS_Lock_allocator(); a0009d84: e5940000 ldr r0, [r4] <== NOT EXECUTED a0009d88: eb00016e bl a000a348 <_API_Mutex_Lock> <== NOT EXECUTED the_thread = _Thread_Get( id, &location ); a0009d8c: e1a00005 mov r0, r5 <== NOT EXECUTED a0009d90: e1a0100d mov r1, sp <== NOT EXECUTED a0009d94: eb000896 bl a000bff4 <_Thread_Get> <== NOT EXECUTED switch ( location ) { a0009d98: e59d5000 ldr r5, [sp] <== NOT EXECUTED Objects_Locations location; Objects_Information *the_information; _RTEMS_Lock_allocator(); the_thread = _Thread_Get( id, &location ); a0009d9c: e1a06000 mov r6, r0 <== NOT EXECUTED switch ( location ) { a0009da0: e3550000 cmp r5, #0 <== NOT EXECUTED a0009da4: 1a00000d bne a0009de0 <== NOT EXECUTED case OBJECTS_LOCAL: the_information = _Objects_Get_information_id( the_thread->Object.id ); a0009da8: e5900008 ldr r0, [r0, #8] <== NOT EXECUTED a0009dac: eb0004f9 bl a000b198 <_Objects_Get_information_id> <== NOT EXECUTED 0 /* Not used */ ); } #endif _Thread_Close( the_information, the_thread ); a0009db0: e1a01006 mov r1, r6 <== NOT EXECUTED a0009db4: eb0007ba bl a000bca4 <_Thread_Close> <== NOT EXECUTED a0009db8: e5960008 ldr r0, [r6, #8] <== NOT EXECUTED a0009dbc: eb0004f5 bl a000b198 <_Objects_Get_information_id> <== NOT EXECUTED a0009dc0: e1a01006 mov r1, r6 <== NOT EXECUTED a0009dc4: eb0004d5 bl a000b120 <_Objects_Free> <== NOT EXECUTED _RTEMS_tasks_Free( the_thread ); _RTEMS_Unlock_allocator(); a0009dc8: e5940000 ldr r0, [r4] <== NOT EXECUTED a0009dcc: eb000179 bl a000a3b8 <_API_Mutex_Unlock> <== NOT EXECUTED _Thread_Enable_dispatch(); a0009dd0: eb00087e bl a000bfd0 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0009dd4: e1a00005 mov r0, r5 <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); return RTEMS_INVALID_ID; } a0009dd8: e28dd004 add sp, sp, #4 <== NOT EXECUTED a0009ddc: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED case OBJECTS_ERROR: break; } _RTEMS_Unlock_allocator(); a0009de0: e5940000 ldr r0, [r4] <== NOT EXECUTED a0009de4: eb000173 bl a000a3b8 <_API_Mutex_Unlock> <== NOT EXECUTED return RTEMS_INVALID_ID; a0009de8: e3a00004 mov r0, #4 <== NOT EXECUTED a0009dec: eafffff9 b a0009dd8 <== NOT EXECUTED =============================================================================== a000c048 : rtems_status_code rtems_task_get_note( rtems_id id, uint32_t notepad, uint32_t *note ) { a000c048: e92d4030 push {r4, r5, lr} <== NOT EXECUTED a000c04c: e1a04001 mov r4, r1 <== NOT EXECUTED register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; if ( !rtems_configuration_get_notepads_enabled() ) a000c050: e59f10a4 ldr r1, [pc, #164] ; a000c0fc <== NOT EXECUTED rtems_status_code rtems_task_get_note( rtems_id id, uint32_t notepad, uint32_t *note ) { a000c054: e1a03000 mov r3, r0 <== NOT EXECUTED a000c058: e24dd008 sub sp, sp, #8 <== NOT EXECUTED register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; if ( !rtems_configuration_get_notepads_enabled() ) a000c05c: e5d11004 ldrb r1, [r1, #4] <== NOT EXECUTED a000c060: e3510000 cmp r1, #0 <== NOT EXECUTED return RTEMS_NOT_CONFIGURED; a000c064: 03a00016 moveq r0, #22 <== NOT EXECUTED { register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; if ( !rtems_configuration_get_notepads_enabled() ) a000c068: 0a000019 beq a000c0d4 <== NOT EXECUTED return RTEMS_NOT_CONFIGURED; if ( !note ) a000c06c: e3520000 cmp r2, #0 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; a000c070: 03a00009 moveq r0, #9 <== NOT EXECUTED RTEMS_API_Control *api; if ( !rtems_configuration_get_notepads_enabled() ) return RTEMS_NOT_CONFIGURED; if ( !note ) a000c074: 0a000016 beq a000c0d4 <== NOT EXECUTED /* * NOTE: There is no check for < RTEMS_NOTEPAD_FIRST because that would * be checking an unsigned number for being negative. */ if ( notepad > RTEMS_NOTEPAD_LAST ) a000c078: e354000f cmp r4, #15 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; a000c07c: 83a0000a movhi r0, #10 <== NOT EXECUTED /* * NOTE: There is no check for < RTEMS_NOTEPAD_FIRST because that would * be checking an unsigned number for being negative. */ if ( notepad > RTEMS_NOTEPAD_LAST ) a000c080: 8a000013 bhi a000c0d4 <== NOT EXECUTED /* * Optimize the most likely case to avoid the Thread_Dispatch. */ if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) || a000c084: e3530000 cmp r3, #0 <== NOT EXECUTED a000c088: 0a000013 beq a000c0dc <== NOT EXECUTED _Objects_Are_ids_equal( id, _Thread_Executing->Object.id ) ) { a000c08c: e59f106c ldr r1, [pc, #108] ; a000c100 <== NOT EXECUTED a000c090: e5911004 ldr r1, [r1, #4] <== NOT EXECUTED /* * Optimize the most likely case to avoid the Thread_Dispatch. */ if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) || a000c094: e591c008 ldr ip, [r1, #8] <== NOT EXECUTED a000c098: e153000c cmp r3, ip <== NOT EXECUTED a000c09c: 0a000010 beq a000c0e4 <== NOT EXECUTED api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ]; *note = api->Notepads[ notepad ]; return RTEMS_SUCCESSFUL; } the_thread = _Thread_Get( id, &location ); a000c0a0: e28d1004 add r1, sp, #4 <== NOT EXECUTED a000c0a4: e58d2000 str r2, [sp] <== NOT EXECUTED a000c0a8: eb00095a bl a000e618 <_Thread_Get> <== NOT EXECUTED switch ( location ) { a000c0ac: e89d0024 ldm sp, {r2, r5} <== NOT EXECUTED a000c0b0: e3550000 cmp r5, #0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a000c0b4: 13a00004 movne r0, #4 <== NOT EXECUTED *note = api->Notepads[ notepad ]; return RTEMS_SUCCESSFUL; } the_thread = _Thread_Get( id, &location ); switch ( location ) { a000c0b8: 1a000005 bne a000c0d4 <== NOT EXECUTED case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; *note = api->Notepads[ notepad ]; a000c0bc: e59030f4 ldr r3, [r0, #244] ; 0xf4 <== NOT EXECUTED a000c0c0: e2844008 add r4, r4, #8 <== NOT EXECUTED a000c0c4: e7933104 ldr r3, [r3, r4, lsl #2] <== NOT EXECUTED a000c0c8: e5823000 str r3, [r2] <== NOT EXECUTED _Thread_Enable_dispatch(); a000c0cc: eb000948 bl a000e5f4 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000c0d0: e1a00005 mov r0, r5 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a000c0d4: e28dd008 add sp, sp, #8 <== NOT EXECUTED a000c0d8: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED /* * Optimize the most likely case to avoid the Thread_Dispatch. */ if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) || a000c0dc: e59f301c ldr r3, [pc, #28] ; a000c100 <== NOT EXECUTED a000c0e0: e5931004 ldr r1, [r3, #4] <== NOT EXECUTED _Objects_Are_ids_equal( id, _Thread_Executing->Object.id ) ) { api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ]; *note = api->Notepads[ notepad ]; a000c0e4: e59130f4 ldr r3, [r1, #244] ; 0xf4 <== NOT EXECUTED a000c0e8: e2844008 add r4, r4, #8 <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000c0ec: 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 ]; a000c0f0: e7933104 ldr r3, [r3, r4, lsl #2] <== NOT EXECUTED a000c0f4: e5823000 str r3, [r2] <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000c0f8: eafffff5 b a000c0d4 <== NOT EXECUTED =============================================================================== a0009df4 : rtems_id *id ) { Objects_Name_or_id_lookup_errors status; if ( !id ) a0009df4: e2523000 subs r3, r2, #0 <== NOT EXECUTED rtems_status_code rtems_task_ident( rtems_name name, uint32_t node, rtems_id *id ) { a0009df8: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED a0009dfc: e1a0c000 mov ip, r0 <== NOT EXECUTED a0009e00: e1a02001 mov r2, r1 <== NOT EXECUTED Objects_Name_or_id_lookup_errors status; if ( !id ) a0009e04: 0a00000c beq a0009e3c <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( name == OBJECTS_ID_OF_SELF ) { a0009e08: e3500000 cmp r0, #0 <== NOT EXECUTED a0009e0c: 1a000004 bne a0009e24 <== NOT EXECUTED *id = _Thread_Executing->Object.id; a0009e10: e59f202c ldr r2, [pc, #44] ; a0009e44 <== NOT EXECUTED a0009e14: e5922004 ldr r2, [r2, #4] <== NOT EXECUTED a0009e18: e5922008 ldr r2, [r2, #8] <== NOT EXECUTED a0009e1c: e5832000 str r2, [r3] <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0009e20: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED } status = _Objects_Name_to_id_u32( &_RTEMS_tasks_Information, name, node, id ); a0009e24: e59f001c ldr r0, [pc, #28] ; a0009e48 <== NOT EXECUTED a0009e28: e1a0100c mov r1, ip <== NOT EXECUTED a0009e2c: eb000569 bl a000b3d8 <_Objects_Name_to_id_u32> <== NOT EXECUTED return _Status_Object_name_errors_to_status[ status ]; a0009e30: e59f3014 ldr r3, [pc, #20] ; a0009e4c <== NOT EXECUTED a0009e34: e7930100 ldr r0, [r3, r0, lsl #2] <== NOT EXECUTED a0009e38: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED ) { Objects_Name_or_id_lookup_errors status; if ( !id ) return RTEMS_INVALID_ADDRESS; a0009e3c: 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 ]; } a0009e40: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED =============================================================================== a00196c4 : */ rtems_status_code rtems_task_is_suspended( rtems_id id ) { a00196c4: e92d4010 push {r4, lr} <== NOT EXECUTED a00196c8: e24dd004 sub sp, sp, #4 <== NOT EXECUTED register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); a00196cc: e1a0100d mov r1, sp <== NOT EXECUTED a00196d0: eb0010b3 bl a001d9a4 <_Thread_Get> <== NOT EXECUTED switch ( location ) { a00196d4: e59d3000 ldr r3, [sp] <== NOT EXECUTED a00196d8: e3530000 cmp r3, #0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a00196dc: 13a00004 movne r0, #4 <== NOT EXECUTED { register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); switch ( location ) { a00196e0: 1a000004 bne a00196f8 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _States_Is_suspended ( States_Control the_states ) { return (the_states & STATES_SUSPENDED); a00196e4: e5904010 ldr r4, [r0, #16] <== NOT EXECUTED case OBJECTS_LOCAL: if ( !_States_Is_suspended( the_thread->current_state ) ) { a00196e8: e2144002 ands r4, r4, #2 <== NOT EXECUTED a00196ec: 0a000003 beq a0019700 <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); a00196f0: eb0010a2 bl a001d980 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_ALREADY_SUSPENDED; a00196f4: e3a0000f mov r0, #15 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a00196f8: e28dd004 add sp, sp, #4 <== NOT EXECUTED a00196fc: e8bd8010 pop {r4, pc} <== NOT EXECUTED the_thread = _Thread_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_States_Is_suspended( the_thread->current_state ) ) { _Thread_Enable_dispatch(); a0019700: eb00109e bl a001d980 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0019704: e1a00004 mov r0, r4 <== NOT EXECUTED a0019708: eafffffa b a00196f8 <== NOT EXECUTED =============================================================================== a0010c54 : rtems_status_code rtems_task_mode( rtems_mode mode_set, rtems_mode mask, rtems_mode *previous_mode_set ) { a0010c54: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED ASR_Information *asr; bool is_asr_enabled = false; bool needs_asr_dispatching = false; rtems_mode old_mode; if ( !previous_mode_set ) a0010c58: e2525000 subs r5, r2, #0 <== NOT EXECUTED rtems_status_code rtems_task_mode( rtems_mode mode_set, rtems_mode mask, rtems_mode *previous_mode_set ) { a0010c5c: e1a04000 mov r4, r0 <== NOT EXECUTED a0010c60: e1a06001 mov r6, r1 <== NOT EXECUTED ASR_Information *asr; bool is_asr_enabled = false; bool needs_asr_dispatching = false; rtems_mode old_mode; if ( !previous_mode_set ) a0010c64: 0a000053 beq a0010db8 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; executing = _Thread_Executing; a0010c68: e59f9158 ldr r9, [pc, #344] ; a0010dc8 <== NOT EXECUTED a0010c6c: e5997004 ldr r7, [r9, #4] <== NOT EXECUTED api = executing->API_Extensions[ THREAD_API_RTEMS ]; a0010c70: e59780f4 ldr r8, [r7, #244] ; 0xf4 <== NOT EXECUTED asr = &api->Signal; old_mode = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT; a0010c74: e5d7a074 ldrb sl, [r7, #116] ; 0x74 <== NOT EXECUTED if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE ) a0010c78: e597307c ldr r3, [r7, #124] ; 0x7c <== NOT EXECUTED old_mode |= RTEMS_NO_TIMESLICE; else old_mode |= RTEMS_TIMESLICE; old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR; a0010c7c: e5d8b008 ldrb fp, [r8, #8] <== NOT EXECUTED executing = _Thread_Executing; api = executing->API_Extensions[ THREAD_API_RTEMS ]; asr = &api->Signal; old_mode = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT; a0010c80: e35a0000 cmp sl, #0 <== NOT EXECUTED a0010c84: 03a0ac01 moveq sl, #256 ; 0x100 <== NOT EXECUTED a0010c88: 13a0a000 movne sl, #0 <== NOT EXECUTED if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE ) a0010c8c: e3530000 cmp r3, #0 <== NOT EXECUTED old_mode |= RTEMS_NO_TIMESLICE; else old_mode |= RTEMS_TIMESLICE; a0010c90: 138aac02 orrne sl, sl, #512 ; 0x200 <== NOT EXECUTED old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR; a0010c94: e35b0000 cmp fp, #0 <== NOT EXECUTED a0010c98: 03a0bb01 moveq fp, #1024 ; 0x400 <== NOT EXECUTED a0010c9c: 13a0b000 movne fp, #0 <== NOT EXECUTED old_mode |= _ISR_Get_level(); a0010ca0: ebfff21c bl a000d518 <_CPU_ISR_Get_level> <== NOT EXECUTED if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE ) old_mode |= RTEMS_NO_TIMESLICE; else old_mode |= RTEMS_TIMESLICE; old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR; a0010ca4: e18bb000 orr fp, fp, r0 <== NOT EXECUTED old_mode |= _ISR_Get_level(); a0010ca8: e18ba00a orr sl, fp, sl <== NOT EXECUTED *previous_mode_set = old_mode; /* * These are generic thread scheduling characteristics. */ if ( mask & RTEMS_PREEMPT_MASK ) a0010cac: e3160c01 tst r6, #256 ; 0x100 <== NOT EXECUTED old_mode |= RTEMS_TIMESLICE; old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR; old_mode |= _ISR_Get_level(); *previous_mode_set = old_mode; a0010cb0: e585a000 str sl, [r5] <== NOT EXECUTED /* * These are generic thread scheduling characteristics. */ if ( mask & RTEMS_PREEMPT_MASK ) a0010cb4: 0a000003 beq a0010cc8 <== NOT EXECUTED executing->is_preemptible = _Modes_Is_preempt(mode_set) ? true : false; a0010cb8: e3140c01 tst r4, #256 ; 0x100 <== NOT EXECUTED a0010cbc: 13a03000 movne r3, #0 <== NOT EXECUTED a0010cc0: 03a03001 moveq r3, #1 <== NOT EXECUTED a0010cc4: e5c73074 strb r3, [r7, #116] ; 0x74 <== NOT EXECUTED if ( mask & RTEMS_TIMESLICE_MASK ) { a0010cc8: e3160c02 tst r6, #512 ; 0x200 <== NOT EXECUTED a0010ccc: 1a00001c bne a0010d44 <== NOT EXECUTED } /* * Set the new interrupt level */ if ( mask & RTEMS_INTERRUPT_MASK ) a0010cd0: e3160080 tst r6, #128 ; 0x80 <== NOT EXECUTED a0010cd4: 1a000023 bne a0010d68 <== NOT EXECUTED * This is specific to the RTEMS API */ is_asr_enabled = false; needs_asr_dispatching = false; if ( mask & RTEMS_ASR_MASK ) { a0010cd8: e2166b01 ands r6, r6, #1024 ; 0x400 <== NOT EXECUTED a0010cdc: 0a000012 beq a0010d2c <== NOT EXECUTED is_asr_enabled = _Modes_Is_asr_disabled( mode_set ) ? false : true; if ( is_asr_enabled != asr->is_enabled ) { a0010ce0: e5d82008 ldrb r2, [r8, #8] <== NOT EXECUTED * Output: * *previous_mode_set - previous mode set * always return RTEMS_SUCCESSFUL; */ rtems_status_code rtems_task_mode( a0010ce4: e3140b01 tst r4, #1024 ; 0x400 <== NOT EXECUTED a0010ce8: 13a03000 movne r3, #0 <== NOT EXECUTED a0010cec: 03a03001 moveq r3, #1 <== NOT EXECUTED 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 ) { a0010cf0: e1520003 cmp r2, r3 <== NOT EXECUTED /* * This is specific to the RTEMS API */ is_asr_enabled = false; needs_asr_dispatching = false; a0010cf4: 03a06000 moveq r6, #0 <== NOT EXECUTED if ( mask & RTEMS_ASR_MASK ) { is_asr_enabled = _Modes_Is_asr_disabled( mode_set ) ? false : true; if ( is_asr_enabled != asr->is_enabled ) { a0010cf8: 0a00000b beq a0010d2c <== NOT EXECUTED asr->is_enabled = is_asr_enabled; a0010cfc: e5c83008 strb r3, [r8, #8] <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a0010d00: e10f3000 mrs r3, CPSR <== NOT EXECUTED a0010d04: e3832080 orr r2, r3, #128 ; 0x80 <== NOT EXECUTED a0010d08: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED { rtems_signal_set _signals; ISR_Level _level; _ISR_Disable( _level ); _signals = information->signals_pending; a0010d0c: e5981018 ldr r1, [r8, #24] <== NOT EXECUTED information->signals_pending = information->signals_posted; a0010d10: e5982014 ldr r2, [r8, #20] <== NOT EXECUTED information->signals_posted = _signals; a0010d14: e5881014 str r1, [r8, #20] <== NOT EXECUTED rtems_signal_set _signals; ISR_Level _level; _ISR_Disable( _level ); _signals = information->signals_pending; information->signals_pending = information->signals_posted; a0010d18: e5882018 str r2, [r8, #24] <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a0010d1c: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED _ASR_Swap_signals( asr ); if ( _ASR_Are_signals_pending( asr ) ) { a0010d20: e5986014 ldr r6, [r8, #20] <== NOT EXECUTED a0010d24: e3560000 cmp r6, #0 <== NOT EXECUTED /* * This is specific to the RTEMS API */ is_asr_enabled = false; needs_asr_dispatching = false; a0010d28: 13a06001 movne r6, #1 <== NOT EXECUTED needs_asr_dispatching = true; } } } if ( _System_state_Is_up( _System_state_Get() ) ) { a0010d2c: e59f3098 ldr r3, [pc, #152] ; a0010dcc <== NOT EXECUTED a0010d30: e5933000 ldr r3, [r3] <== NOT EXECUTED a0010d34: e3530003 cmp r3, #3 <== NOT EXECUTED a0010d38: 0a00000d beq a0010d74 <== NOT EXECUTED if (_Thread_Evaluate_is_dispatch_needed( needs_asr_dispatching ) ) _Thread_Dispatch(); } return RTEMS_SUCCESSFUL; a0010d3c: e3a00000 mov r0, #0 <== NOT EXECUTED a0010d40: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED */ if ( mask & RTEMS_PREEMPT_MASK ) executing->is_preemptible = _Modes_Is_preempt(mode_set) ? true : false; if ( mask & RTEMS_TIMESLICE_MASK ) { if ( _Modes_Is_timeslice(mode_set) ) { a0010d44: e2143c02 ands r3, r4, #512 ; 0x200 <== NOT EXECUTED executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE; a0010d48: 13a03001 movne r3, #1 <== NOT EXECUTED a0010d4c: 1587307c strne r3, [r7, #124] ; 0x7c <== NOT EXECUTED executing->cpu_time_budget = _Thread_Ticks_per_timeslice; a0010d50: 159f3078 ldrne r3, [pc, #120] ; a0010dd0 <== NOT EXECUTED } else executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE; a0010d54: 0587307c streq r3, [r7, #124] ; 0x7c <== NOT EXECUTED 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; a0010d58: 15933000 ldrne r3, [r3] <== NOT EXECUTED a0010d5c: 15873078 strne r3, [r7, #120] ; 0x78 <== NOT EXECUTED } /* * Set the new interrupt level */ if ( mask & RTEMS_INTERRUPT_MASK ) a0010d60: e3160080 tst r6, #128 ; 0x80 <== NOT EXECUTED a0010d64: 0affffdb beq a0010cd8 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Modes_Set_interrupt_level ( Modes_Control mode_set ) { _ISR_Set_level( _Modes_Get_interrupt_level( mode_set ) ); a0010d68: e2040080 and r0, r4, #128 ; 0x80 <== NOT EXECUTED a0010d6c: ebfff1e4 bl a000d504 <_CPU_ISR_Set_level> <== NOT EXECUTED a0010d70: eaffffd8 b a0010cd8 <== NOT EXECUTED { Thread_Control *executing; executing = _Thread_Executing; if ( are_signals_pending || a0010d74: e3560000 cmp r6, #0 <== NOT EXECUTED bool are_signals_pending ) { Thread_Control *executing; executing = _Thread_Executing; a0010d78: e5993004 ldr r3, [r9, #4] <== NOT EXECUTED if ( are_signals_pending || a0010d7c: 1a000008 bne a0010da4 <== NOT EXECUTED a0010d80: e59f2040 ldr r2, [pc, #64] ; a0010dc8 <== NOT EXECUTED a0010d84: e5922008 ldr r2, [r2, #8] <== NOT EXECUTED a0010d88: e1530002 cmp r3, r2 <== NOT EXECUTED a0010d8c: 0a00000b beq a0010dc0 <== NOT EXECUTED (!_Thread_Is_heir( executing ) && executing->is_preemptible) ) { a0010d90: e5d33074 ldrb r3, [r3, #116] ; 0x74 <== NOT EXECUTED a0010d94: e3530000 cmp r3, #0 <== NOT EXECUTED a0010d98: 1a000001 bne a0010da4 <== NOT EXECUTED if ( _System_state_Is_up( _System_state_Get() ) ) { if (_Thread_Evaluate_is_dispatch_needed( needs_asr_dispatching ) ) _Thread_Dispatch(); } return RTEMS_SUCCESSFUL; a0010d9c: e1a00006 mov r0, r6 <== NOT EXECUTED } a0010da0: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED _Thread_Dispatch_necessary = true; a0010da4: e3a03001 mov r3, #1 <== NOT EXECUTED a0010da8: e5c93010 strb r3, [r9, #16] <== NOT EXECUTED } } if ( _System_state_Is_up( _System_state_Get() ) ) { if (_Thread_Evaluate_is_dispatch_needed( needs_asr_dispatching ) ) _Thread_Dispatch(); a0010dac: ebffec31 bl a000be78 <_Thread_Dispatch> <== NOT EXECUTED } return RTEMS_SUCCESSFUL; a0010db0: e3a00000 mov r0, #0 <== NOT EXECUTED a0010db4: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED bool is_asr_enabled = false; bool needs_asr_dispatching = false; rtems_mode old_mode; if ( !previous_mode_set ) return RTEMS_INVALID_ADDRESS; a0010db8: e3a00009 mov r0, #9 <== NOT EXECUTED a0010dbc: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED if ( _System_state_Is_up( _System_state_Get() ) ) { if (_Thread_Evaluate_is_dispatch_needed( needs_asr_dispatching ) ) _Thread_Dispatch(); } return RTEMS_SUCCESSFUL; a0010dc0: e1a00006 mov r0, r6 <== NOT EXECUTED a0010dc4: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED =============================================================================== a000ab58 : rtems_status_code rtems_task_restart( rtems_id id, uint32_t argument ) { a000ab58: e92d4030 push {r4, r5, lr} <== NOT EXECUTED a000ab5c: e24dd004 sub sp, sp, #4 <== NOT EXECUTED a000ab60: e1a05001 mov r5, r1 <== NOT EXECUTED register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); a000ab64: e1a0100d mov r1, sp <== NOT EXECUTED a000ab68: eb000867 bl a000cd0c <_Thread_Get> <== NOT EXECUTED switch ( location ) { a000ab6c: e59d4000 ldr r4, [sp] <== NOT EXECUTED a000ab70: e3540000 cmp r4, #0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a000ab74: 13a00004 movne r0, #4 <== NOT EXECUTED { register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); switch ( location ) { a000ab78: 1a000006 bne a000ab98 <== NOT EXECUTED case OBJECTS_LOCAL: if ( _Thread_Restart( the_thread, NULL, argument ) ) { a000ab7c: e1a01004 mov r1, r4 <== NOT EXECUTED a000ab80: e1a02005 mov r2, r5 <== NOT EXECUTED a000ab84: eb000a69 bl a000d530 <_Thread_Restart> <== NOT EXECUTED a000ab88: e3500000 cmp r0, #0 <== NOT EXECUTED a000ab8c: 1a000003 bne a000aba0 <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); a000ab90: eb000854 bl a000cce8 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_INCORRECT_STATE; a000ab94: e3a0000e mov r0, #14 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a000ab98: e28dd004 add sp, sp, #4 <== NOT EXECUTED a000ab9c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED the_thread = _Thread_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( _Thread_Restart( the_thread, NULL, argument ) ) { _Thread_Enable_dispatch(); a000aba0: eb000850 bl a000cce8 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000aba4: e1a00004 mov r0, r4 <== NOT EXECUTED a000aba8: eafffffa b a000ab98 <== NOT EXECUTED =============================================================================== a000d26c : */ rtems_status_code rtems_task_resume( rtems_id id ) { a000d26c: e92d4010 push {r4, lr} <== NOT EXECUTED a000d270: e24dd004 sub sp, sp, #4 <== NOT EXECUTED register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); a000d274: e1a0100d mov r1, sp <== NOT EXECUTED a000d278: eb00085f bl a000f3fc <_Thread_Get> <== NOT EXECUTED switch ( location ) { a000d27c: e59d4000 ldr r4, [sp] <== NOT EXECUTED ) { register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); a000d280: e1a03000 mov r3, r0 <== NOT EXECUTED switch ( location ) { a000d284: e3540000 cmp r4, #0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a000d288: 13a00004 movne r0, #4 <== NOT EXECUTED { register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); switch ( location ) { a000d28c: 1a000004 bne a000d2a4 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _States_Is_suspended ( States_Control the_states ) { return (the_states & STATES_SUSPENDED); a000d290: e5933010 ldr r3, [r3, #16] <== NOT EXECUTED case OBJECTS_LOCAL: if ( _States_Is_suspended( the_thread->current_state ) ) { a000d294: e3130002 tst r3, #2 <== NOT EXECUTED a000d298: 1a000003 bne a000d2ac <== NOT EXECUTED _Thread_Resume( the_thread ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); a000d29c: eb00084d bl a000f3d8 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_INCORRECT_STATE; a000d2a0: e3a0000e mov r0, #14 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a000d2a4: e28dd004 add sp, sp, #4 <== NOT EXECUTED a000d2a8: e8bd8010 pop {r4, pc} <== NOT EXECUTED the_thread = _Thread_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( _States_Is_suspended( the_thread->current_state ) ) { _Thread_Resume( the_thread ); a000d2ac: e3a01002 mov r1, #2 <== NOT EXECUTED a000d2b0: eb00076a bl a000f060 <_Thread_Clear_state> <== NOT EXECUTED _Thread_Enable_dispatch(); a000d2b4: eb000847 bl a000f3d8 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000d2b8: e1a00004 mov r0, r4 <== NOT EXECUTED a000d2bc: eafffff8 b a000d2a4 <== NOT EXECUTED =============================================================================== a0012d64 : #include #include rtems_id rtems_task_self(void) { return _Thread_Executing->Object.id; a0012d64: e59f3008 ldr r3, [pc, #8] ; a0012d74 <== NOT EXECUTED a0012d68: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED } a0012d6c: e5930008 ldr r0, [r3, #8] <== NOT EXECUTED a0012d70: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000c1fc : rtems_status_code rtems_task_set_note( rtems_id id, uint32_t notepad, uint32_t note ) { a000c1fc: e92d4030 push {r4, r5, lr} <== NOT EXECUTED a000c200: e1a04001 mov r4, r1 <== NOT EXECUTED register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; if ( !rtems_configuration_get_notepads_enabled() ) a000c204: e59f1090 ldr r1, [pc, #144] ; a000c29c <== NOT EXECUTED rtems_status_code rtems_task_set_note( rtems_id id, uint32_t notepad, uint32_t note ) { a000c208: e1a03000 mov r3, r0 <== NOT EXECUTED a000c20c: e24dd008 sub sp, sp, #8 <== NOT EXECUTED register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; if ( !rtems_configuration_get_notepads_enabled() ) a000c210: e5d11004 ldrb r1, [r1, #4] <== NOT EXECUTED a000c214: e3510000 cmp r1, #0 <== NOT EXECUTED return RTEMS_NOT_CONFIGURED; a000c218: 03a00016 moveq r0, #22 <== NOT EXECUTED { register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; if ( !rtems_configuration_get_notepads_enabled() ) a000c21c: 0a000015 beq a000c278 <== NOT EXECUTED /* * NOTE: There is no check for < RTEMS_NOTEPAD_FIRST because that would * be checking an unsigned number for being negative. */ if ( notepad > RTEMS_NOTEPAD_LAST ) a000c220: e354000f cmp r4, #15 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; a000c224: 83a0000a movhi r0, #10 <== NOT EXECUTED /* * NOTE: There is no check for < RTEMS_NOTEPAD_FIRST because that would * be checking an unsigned number for being negative. */ if ( notepad > RTEMS_NOTEPAD_LAST ) a000c228: 8a000012 bhi a000c278 <== NOT EXECUTED /* * Optimize the most likely case to avoid the Thread_Dispatch. */ if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) || a000c22c: e3530000 cmp r3, #0 <== NOT EXECUTED a000c230: 0a000012 beq a000c280 <== NOT EXECUTED _Objects_Are_ids_equal( id, _Thread_Executing->Object.id ) ) { a000c234: e59f1064 ldr r1, [pc, #100] ; a000c2a0 <== NOT EXECUTED a000c238: e5911004 ldr r1, [r1, #4] <== NOT EXECUTED /* * Optimize the most likely case to avoid the Thread_Dispatch. */ if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) || a000c23c: e591c008 ldr ip, [r1, #8] <== NOT EXECUTED a000c240: e153000c cmp r3, ip <== NOT EXECUTED a000c244: 0a00000f beq a000c288 <== NOT EXECUTED api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ]; api->Notepads[ notepad ] = note; return RTEMS_SUCCESSFUL; } the_thread = _Thread_Get( id, &location ); a000c248: e28d1004 add r1, sp, #4 <== NOT EXECUTED a000c24c: e58d2000 str r2, [sp] <== NOT EXECUTED a000c250: eb0008f0 bl a000e618 <_Thread_Get> <== NOT EXECUTED switch ( location ) { a000c254: e89d0024 ldm sp, {r2, r5} <== NOT EXECUTED a000c258: e3550000 cmp r5, #0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a000c25c: 13a00004 movne r0, #4 <== NOT EXECUTED api->Notepads[ notepad ] = note; return RTEMS_SUCCESSFUL; } the_thread = _Thread_Get( id, &location ); switch ( location ) { a000c260: 1a000004 bne a000c278 <== NOT EXECUTED case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; api->Notepads[ notepad ] = note; a000c264: e59030f4 ldr r3, [r0, #244] ; 0xf4 <== NOT EXECUTED a000c268: e2844008 add r4, r4, #8 <== NOT EXECUTED a000c26c: e7832104 str r2, [r3, r4, lsl #2] <== NOT EXECUTED _Thread_Enable_dispatch(); a000c270: eb0008df bl a000e5f4 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000c274: e1a00005 mov r0, r5 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a000c278: e28dd008 add sp, sp, #8 <== NOT EXECUTED a000c27c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED /* * Optimize the most likely case to avoid the Thread_Dispatch. */ if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) || a000c280: e59f3018 ldr r3, [pc, #24] ; a000c2a0 <== NOT EXECUTED a000c284: e5931004 ldr r1, [r3, #4] <== NOT EXECUTED _Objects_Are_ids_equal( id, _Thread_Executing->Object.id ) ) { api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ]; api->Notepads[ notepad ] = note; a000c288: e59130f4 ldr r3, [r1, #244] ; 0xf4 <== NOT EXECUTED a000c28c: e2844008 add r4, r4, #8 <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000c290: 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; a000c294: e7832104 str r2, [r3, r4, lsl #2] <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000c298: eafffff6 b a000c278 <== NOT EXECUTED =============================================================================== a000e430 : rtems_status_code rtems_task_set_priority( rtems_id id, rtems_task_priority new_priority, rtems_task_priority *old_priority ) { a000e430: e92d4030 push {r4, r5, lr} <== NOT EXECUTED register Thread_Control *the_thread; Objects_Locations location; if ( new_priority != RTEMS_CURRENT_PRIORITY && a000e434: e2514000 subs r4, r1, #0 <== NOT EXECUTED rtems_status_code rtems_task_set_priority( rtems_id id, rtems_task_priority new_priority, rtems_task_priority *old_priority ) { a000e438: e24dd004 sub sp, sp, #4 <== NOT EXECUTED a000e43c: e1a05002 mov r5, r2 <== NOT EXECUTED register Thread_Control *the_thread; Objects_Locations location; if ( new_priority != RTEMS_CURRENT_PRIORITY && a000e440: 0a000004 beq a000e458 <== NOT EXECUTED 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 ) ); a000e444: e59f3078 ldr r3, [pc, #120] ; a000e4c4 <== NOT EXECUTED a000e448: e5d33000 ldrb r3, [r3] <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid ( rtems_task_priority the_priority ) { return ( ( the_priority >= RTEMS_MINIMUM_PRIORITY ) && a000e44c: e1540003 cmp r4, r3 <== NOT EXECUTED !_RTEMS_tasks_Priority_is_valid( new_priority ) ) return RTEMS_INVALID_PRIORITY; a000e450: 83a00013 movhi r0, #19 <== NOT EXECUTED a000e454: 8a000018 bhi a000e4bc <== NOT EXECUTED if ( !old_priority ) a000e458: e3550000 cmp r5, #0 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; a000e45c: 03a00009 moveq r0, #9 <== NOT EXECUTED if ( new_priority != RTEMS_CURRENT_PRIORITY && !_RTEMS_tasks_Priority_is_valid( new_priority ) ) return RTEMS_INVALID_PRIORITY; if ( !old_priority ) a000e460: 0a000015 beq a000e4bc <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get( id, &location ); a000e464: e1a0100d mov r1, sp <== NOT EXECUTED a000e468: eb0008db bl a00107dc <_Thread_Get> <== NOT EXECUTED switch ( location ) { a000e46c: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000e470: e3530000 cmp r3, #0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a000e474: 13a00004 movne r0, #4 <== NOT EXECUTED if ( !old_priority ) return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get( id, &location ); switch ( location ) { a000e478: 1a00000f bne a000e4bc <== NOT EXECUTED case OBJECTS_LOCAL: /* XXX need helper to "convert" from core priority */ *old_priority = the_thread->current_priority; a000e47c: e5903014 ldr r3, [r0, #20] <== NOT EXECUTED if ( new_priority != RTEMS_CURRENT_PRIORITY ) { a000e480: e3540000 cmp r4, #0 <== NOT EXECUTED 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; a000e484: e5853000 str r3, [r5] <== NOT EXECUTED if ( new_priority != RTEMS_CURRENT_PRIORITY ) { a000e488: 0a000009 beq a000e4b4 <== NOT EXECUTED the_thread->real_priority = new_priority; if ( the_thread->resource_count == 0 || a000e48c: e590301c ldr r3, [r0, #28] <== NOT EXECUTED 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; a000e490: e5804018 str r4, [r0, #24] <== NOT EXECUTED if ( the_thread->resource_count == 0 || a000e494: e3530000 cmp r3, #0 <== NOT EXECUTED a000e498: 0a000002 beq a000e4a8 <== NOT EXECUTED a000e49c: e5903014 ldr r3, [r0, #20] <== NOT EXECUTED a000e4a0: e1540003 cmp r4, r3 <== NOT EXECUTED a000e4a4: 2a000002 bcs a000e4b4 <== NOT EXECUTED the_thread->current_priority > new_priority ) _Thread_Change_priority( the_thread, new_priority, false ); a000e4a8: e1a01004 mov r1, r4 <== NOT EXECUTED a000e4ac: e3a02000 mov r2, #0 <== NOT EXECUTED a000e4b0: eb0007a0 bl a0010338 <_Thread_Change_priority> <== NOT EXECUTED } _Thread_Enable_dispatch(); a000e4b4: eb0008bf bl a00107b8 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000e4b8: e3a00000 mov r0, #0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a000e4bc: e28dd004 add sp, sp, #4 <== NOT EXECUTED a000e4c0: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED =============================================================================== a0009ee0 : rtems_status_code rtems_task_start( rtems_id id, rtems_task_entry entry_point, rtems_task_argument argument ) { a0009ee0: e92d4070 push {r4, r5, r6, lr} register Thread_Control *the_thread; Objects_Locations location; if ( entry_point == NULL ) a0009ee4: e2515000 subs r5, r1, #0 rtems_status_code rtems_task_start( rtems_id id, rtems_task_entry entry_point, rtems_task_argument argument ) { a0009ee8: e24dd008 sub sp, sp, #8 a0009eec: e1a06002 mov r6, r2 register Thread_Control *the_thread; Objects_Locations location; if ( entry_point == NULL ) return RTEMS_INVALID_ADDRESS; a0009ef0: 03a00009 moveq r0, #9 ) { register Thread_Control *the_thread; Objects_Locations location; if ( entry_point == NULL ) a0009ef4: 0a00000e beq a0009f34 return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get( id, &location ); a0009ef8: e28d1004 add r1, sp, #4 a0009efc: eb00083c bl a000bff4 <_Thread_Get> switch ( location ) { a0009f00: e59d4004 ldr r4, [sp, #4] a0009f04: e3540000 cmp r4, #0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a0009f08: 13a00004 movne r0, #4 if ( entry_point == NULL ) return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get( id, &location ); switch ( location ) { a0009f0c: 1a000008 bne a0009f34 case OBJECTS_LOCAL: if ( _Thread_Start( a0009f10: e1a01004 mov r1, r4 a0009f14: e1a02005 mov r2, r5 a0009f18: e1a03004 mov r3, r4 a0009f1c: e58d6000 str r6, [sp] a0009f20: eb000a9b bl a000c994 <_Thread_Start> a0009f24: e3500000 cmp r0, #0 a0009f28: 1a000003 bne a0009f3c the_thread, THREAD_START_NUMERIC, entry_point, NULL, argument ) ) { _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); a0009f2c: eb000827 bl a000bfd0 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_INCORRECT_STATE; a0009f30: e3a0000e mov r0, #14 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a0009f34: e28dd008 add sp, sp, #8 a0009f38: e8bd8070 pop {r4, r5, r6, pc} switch ( location ) { case OBJECTS_LOCAL: if ( _Thread_Start( the_thread, THREAD_START_NUMERIC, entry_point, NULL, argument ) ) { _Thread_Enable_dispatch(); a0009f3c: eb000823 bl a000bfd0 <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; a0009f40: e1a00004 mov r0, r4 a0009f44: eafffffa b a0009f34 =============================================================================== a000d520 : */ rtems_status_code rtems_task_suspend( rtems_id id ) { a000d520: e92d4010 push {r4, lr} <== NOT EXECUTED a000d524: e24dd004 sub sp, sp, #4 <== NOT EXECUTED register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); a000d528: e1a0100d mov r1, sp <== NOT EXECUTED a000d52c: eb00082b bl a000f5e0 <_Thread_Get> <== NOT EXECUTED switch ( location ) { a000d530: e59d3000 ldr r3, [sp] <== NOT EXECUTED ) { register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); a000d534: e1a02000 mov r2, r0 <== NOT EXECUTED switch ( location ) { a000d538: e3530000 cmp r3, #0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a000d53c: 13a00004 movne r0, #4 <== NOT EXECUTED { register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); switch ( location ) { a000d540: 1a000004 bne a000d558 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _States_Is_suspended ( States_Control the_states ) { return (the_states & STATES_SUSPENDED); a000d544: e5924010 ldr r4, [r2, #16] <== NOT EXECUTED case OBJECTS_LOCAL: if ( !_States_Is_suspended( the_thread->current_state ) ) { a000d548: e2144002 ands r4, r4, #2 <== NOT EXECUTED a000d54c: 0a000003 beq a000d560 <== NOT EXECUTED _Thread_Suspend( the_thread ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); a000d550: eb000819 bl a000f5bc <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_ALREADY_SUSPENDED; a000d554: e3a0000f mov r0, #15 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a000d558: e28dd004 add sp, sp, #4 <== NOT EXECUTED a000d55c: e8bd8010 pop {r4, pc} <== NOT EXECUTED the_thread = _Thread_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_States_Is_suspended( the_thread->current_state ) ) { _Thread_Suspend( the_thread ); a000d560: e3a01002 mov r1, #2 <== NOT EXECUTED a000d564: eb000a2d bl a000fe20 <_Thread_Set_state> <== NOT EXECUTED _Thread_Enable_dispatch(); a000d568: eb000813 bl a000f5bc <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000d56c: e1a00004 mov r0, r4 <== NOT EXECUTED a000d570: eafffff8 b a000d558 <== NOT EXECUTED =============================================================================== a000ad10 : rtems_status_code rtems_task_variable_add( rtems_id tid, void **ptr, void (*dtor)(void *) ) { a000ad10: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp, *new; if ( !ptr ) a000ad14: e2514000 subs r4, r1, #0 <== NOT EXECUTED rtems_status_code rtems_task_variable_add( rtems_id tid, void **ptr, void (*dtor)(void *) ) { a000ad18: e24dd004 sub sp, sp, #4 <== NOT EXECUTED a000ad1c: e1a05002 mov r5, r2 <== NOT EXECUTED Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp, *new; if ( !ptr ) return RTEMS_INVALID_ADDRESS; a000ad20: 03a00009 moveq r0, #9 <== NOT EXECUTED { Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp, *new; if ( !ptr ) a000ad24: 0a000016 beq a000ad84 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get (tid, &location); a000ad28: e1a0100d mov r1, sp <== NOT EXECUTED a000ad2c: eb000887 bl a000cf50 <_Thread_Get> <== NOT EXECUTED switch (location) { a000ad30: e59d3000 ldr r3, [sp] <== NOT EXECUTED rtems_task_variable_t *tvp, *new; if ( !ptr ) return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get (tid, &location); a000ad34: e1a06000 mov r6, r0 <== NOT EXECUTED switch (location) { a000ad38: e3530000 cmp r3, #0 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a000ad3c: 13a00004 movne r0, #4 <== NOT EXECUTED if ( !ptr ) return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get (tid, &location); switch (location) { a000ad40: 1a00000f bne a000ad84 <== NOT EXECUTED case OBJECTS_LOCAL: /* * Figure out if the variable is already in this task's list. */ tvp = the_thread->task_variables; a000ad44: e5963100 ldr r3, [r6, #256] ; 0x100 <== NOT EXECUTED while (tvp) { a000ad48: e3530000 cmp r3, #0 <== NOT EXECUTED a000ad4c: 1a000011 bne a000ad98 <== NOT EXECUTED /* * Now allocate memory for this task variable. */ new = (rtems_task_variable_t *) _Workspace_Allocate(sizeof(rtems_task_variable_t)); a000ad50: e3a00014 mov r0, #20 <== NOT EXECUTED a000ad54: eb000cca bl a000e084 <_Workspace_Allocate> <== NOT EXECUTED if (new == NULL) { a000ad58: e3500000 cmp r0, #0 <== NOT EXECUTED a000ad5c: 0a000014 beq a000adb4 <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_NO_MEMORY; } new->gval = *ptr; a000ad60: e5942000 ldr r2, [r4] <== NOT EXECUTED new->ptr = ptr; new->dtor = dtor; new->next = (struct rtems_task_variable_tt *)the_thread->task_variables; a000ad64: e5963100 ldr r3, [r6, #256] ; 0x100 <== NOT EXECUTED if (new == NULL) { _Thread_Enable_dispatch(); return RTEMS_NO_MEMORY; } new->gval = *ptr; new->ptr = ptr; a000ad68: e5804004 str r4, [r0, #4] <== NOT EXECUTED _Workspace_Allocate(sizeof(rtems_task_variable_t)); if (new == NULL) { _Thread_Enable_dispatch(); return RTEMS_NO_MEMORY; } new->gval = *ptr; a000ad6c: e5802008 str r2, [r0, #8] <== NOT EXECUTED new->ptr = ptr; new->dtor = dtor; a000ad70: e5805010 str r5, [r0, #16] <== NOT EXECUTED new->next = (struct rtems_task_variable_tt *)the_thread->task_variables; a000ad74: e5803000 str r3, [r0] <== NOT EXECUTED the_thread->task_variables = new; a000ad78: e5860100 str r0, [r6, #256] ; 0x100 <== NOT EXECUTED _Thread_Enable_dispatch(); a000ad7c: eb00086a bl a000cf2c <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000ad80: e3a00000 mov r0, #0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a000ad84: e28dd004 add sp, sp, #4 <== NOT EXECUTED a000ad88: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED if (tvp->ptr == ptr) { tvp->dtor = dtor; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } tvp = (rtems_task_variable_t *)tvp->next; a000ad8c: e5933000 ldr r3, [r3] <== NOT EXECUTED case OBJECTS_LOCAL: /* * Figure out if the variable is already in this task's list. */ tvp = the_thread->task_variables; while (tvp) { a000ad90: e3530000 cmp r3, #0 <== NOT EXECUTED a000ad94: 0affffed beq a000ad50 <== NOT EXECUTED if (tvp->ptr == ptr) { a000ad98: e5932004 ldr r2, [r3, #4] <== NOT EXECUTED a000ad9c: e1520004 cmp r2, r4 <== NOT EXECUTED a000ada0: 1afffff9 bne a000ad8c <== NOT EXECUTED tvp->dtor = dtor; a000ada4: e5835010 str r5, [r3, #16] <== NOT EXECUTED _Thread_Enable_dispatch(); a000ada8: eb00085f bl a000cf2c <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000adac: e3a00000 mov r0, #0 <== NOT EXECUTED a000adb0: eafffff3 b a000ad84 <== NOT EXECUTED * Now allocate memory for this task variable. */ new = (rtems_task_variable_t *) _Workspace_Allocate(sizeof(rtems_task_variable_t)); if (new == NULL) { _Thread_Enable_dispatch(); a000adb4: eb00085c bl a000cf2c <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_NO_MEMORY; a000adb8: e3a0001a mov r0, #26 <== NOT EXECUTED a000adbc: eafffff0 b a000ad84 <== NOT EXECUTED =============================================================================== a000adc0 : rtems_status_code rtems_task_variable_delete( rtems_id tid, void **ptr ) { a000adc0: e92d4010 push {r4, lr} <== NOT EXECUTED Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp, *prev; if ( !ptr ) a000adc4: e2514000 subs r4, r1, #0 <== NOT EXECUTED rtems_status_code rtems_task_variable_delete( rtems_id tid, void **ptr ) { a000adc8: e24dd004 sub sp, sp, #4 <== NOT EXECUTED Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp, *prev; if ( !ptr ) return RTEMS_INVALID_ADDRESS; a000adcc: 03a00009 moveq r0, #9 <== NOT EXECUTED { Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp, *prev; if ( !ptr ) a000add0: 0a000015 beq a000ae2c <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; prev = NULL; the_thread = _Thread_Get (tid, &location); a000add4: e1a0100d mov r1, sp <== NOT EXECUTED a000add8: eb00085c bl a000cf50 <_Thread_Get> <== NOT EXECUTED switch (location) { a000addc: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000ade0: e3530000 cmp r3, #0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a000ade4: 13a00004 movne r0, #4 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; prev = NULL; the_thread = _Thread_Get (tid, &location); switch (location) { a000ade8: 1a00000f bne a000ae2c <== NOT EXECUTED case OBJECTS_LOCAL: tvp = the_thread->task_variables; a000adec: e5903100 ldr r3, [r0, #256] ; 0x100 <== NOT EXECUTED while (tvp) { a000adf0: e3530000 cmp r3, #0 <== NOT EXECUTED a000adf4: 0a00000a beq a000ae24 <== NOT EXECUTED if (tvp->ptr == ptr) { a000adf8: e5932004 ldr r2, [r3, #4] <== NOT EXECUTED a000adfc: e1520004 cmp r2, r4 <== NOT EXECUTED a000ae00: 1a000004 bne a000ae18 <== NOT EXECUTED a000ae04: ea000010 b a000ae4c <== NOT EXECUTED a000ae08: e5912004 ldr r2, [r1, #4] <== NOT EXECUTED a000ae0c: e1520004 cmp r2, r4 <== NOT EXECUTED a000ae10: 0a000007 beq a000ae34 <== NOT EXECUTED a000ae14: e1a03001 mov r3, r1 <== NOT EXECUTED _RTEMS_Tasks_Invoke_task_variable_dtor( the_thread, tvp ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } prev = tvp; tvp = (rtems_task_variable_t *)tvp->next; a000ae18: e5931000 ldr r1, [r3] <== NOT EXECUTED the_thread = _Thread_Get (tid, &location); switch (location) { case OBJECTS_LOCAL: tvp = the_thread->task_variables; while (tvp) { a000ae1c: e3510000 cmp r1, #0 <== NOT EXECUTED a000ae20: 1afffff8 bne a000ae08 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } prev = tvp; tvp = (rtems_task_variable_t *)tvp->next; } _Thread_Enable_dispatch(); a000ae24: eb000840 bl a000cf2c <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; a000ae28: e3a00009 mov r0, #9 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a000ae2c: e28dd004 add sp, sp, #4 <== NOT EXECUTED a000ae30: e8bd8010 pop {r4, pc} <== NOT EXECUTED case OBJECTS_LOCAL: tvp = the_thread->task_variables; while (tvp) { if (tvp->ptr == ptr) { if (prev) prev->next = tvp->next; a000ae34: e5912000 ldr r2, [r1] <== NOT EXECUTED a000ae38: e5832000 str r2, [r3] <== NOT EXECUTED else the_thread->task_variables = (rtems_task_variable_t *)tvp->next; _RTEMS_Tasks_Invoke_task_variable_dtor( the_thread, tvp ); a000ae3c: eb000028 bl a000aee4 <_RTEMS_Tasks_Invoke_task_variable_dtor><== NOT EXECUTED _Thread_Enable_dispatch(); a000ae40: eb000839 bl a000cf2c <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000ae44: e3a00000 mov r0, #0 <== NOT EXECUTED a000ae48: eafffff7 b a000ae2c <== NOT EXECUTED while (tvp) { if (tvp->ptr == ptr) { if (prev) prev->next = tvp->next; else the_thread->task_variables = (rtems_task_variable_t *)tvp->next; a000ae4c: e5932000 ldr r2, [r3] <== NOT EXECUTED a000ae50: e1a01003 mov r1, r3 <== NOT EXECUTED a000ae54: e5802100 str r2, [r0, #256] ; 0x100 <== NOT EXECUTED a000ae58: eafffff7 b a000ae3c <== NOT EXECUTED =============================================================================== a000ae5c : rtems_status_code rtems_task_variable_get( rtems_id tid, void **ptr, void **result ) { a000ae5c: e92d4030 push {r4, r5, lr} <== NOT EXECUTED Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp; if ( !ptr ) a000ae60: e2514000 subs r4, r1, #0 <== NOT EXECUTED rtems_status_code rtems_task_variable_get( rtems_id tid, void **ptr, void **result ) { a000ae64: e24dd004 sub sp, sp, #4 <== NOT EXECUTED a000ae68: e1a05002 mov r5, r2 <== NOT EXECUTED Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp; if ( !ptr ) a000ae6c: 0a000017 beq a000aed0 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !result ) a000ae70: e3520000 cmp r2, #0 <== NOT EXECUTED a000ae74: 0a000015 beq a000aed0 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get (tid, &location); a000ae78: e1a0100d mov r1, sp <== NOT EXECUTED a000ae7c: eb000833 bl a000cf50 <_Thread_Get> <== NOT EXECUTED switch (location) { a000ae80: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000ae84: e3530000 cmp r3, #0 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a000ae88: 13a00004 movne r0, #4 <== NOT EXECUTED if ( !result ) return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get (tid, &location); switch (location) { a000ae8c: 1a00000d bne a000aec8 <== NOT EXECUTED case OBJECTS_LOCAL: /* * Figure out if the variable is in this task's list. */ tvp = the_thread->task_variables; a000ae90: e5903100 ldr r3, [r0, #256] ; 0x100 <== NOT EXECUTED while (tvp) { a000ae94: e3530000 cmp r3, #0 <== NOT EXECUTED a000ae98: 1a000003 bne a000aeac <== NOT EXECUTED a000ae9c: ea00000d b a000aed8 <== NOT EXECUTED */ *result = tvp->tval; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } tvp = (rtems_task_variable_t *)tvp->next; a000aea0: 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) { a000aea4: e3530000 cmp r3, #0 <== NOT EXECUTED a000aea8: 0a00000a beq a000aed8 <== NOT EXECUTED if (tvp->ptr == ptr) { a000aeac: e5932004 ldr r2, [r3, #4] <== NOT EXECUTED a000aeb0: e1520004 cmp r2, r4 <== NOT EXECUTED a000aeb4: 1afffff9 bne a000aea0 <== NOT EXECUTED /* * Should this return the current (i.e not the * saved) value if `tid' is the current task? */ *result = tvp->tval; a000aeb8: e593300c ldr r3, [r3, #12] <== NOT EXECUTED a000aebc: e5853000 str r3, [r5] <== NOT EXECUTED _Thread_Enable_dispatch(); a000aec0: eb000819 bl a000cf2c <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000aec4: e3a00000 mov r0, #0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a000aec8: e28dd004 add sp, sp, #4 <== NOT EXECUTED a000aecc: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED if ( !ptr ) return RTEMS_INVALID_ADDRESS; if ( !result ) return RTEMS_INVALID_ADDRESS; a000aed0: e3a00009 mov r0, #9 <== NOT EXECUTED a000aed4: eafffffb b a000aec8 <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } tvp = (rtems_task_variable_t *)tvp->next; } _Thread_Enable_dispatch(); a000aed8: eb000813 bl a000cf2c <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; a000aedc: e3a00009 mov r0, #9 <== NOT EXECUTED a000aee0: eafffff8 b a000aec8 <== NOT EXECUTED =============================================================================== a0009f48 : a0009f48: e59f307c ldr r3, [pc, #124] ; a0009fcc <== NOT EXECUTED */ rtems_status_code rtems_task_wake_after( rtems_interval ticks ) { a0009f4c: e92d4030 push {r4, r5, lr} <== NOT EXECUTED a0009f50: e5932000 ldr r2, [r3] <== NOT EXECUTED a0009f54: e1a04000 mov r4, r0 <== NOT EXECUTED a0009f58: e2822001 add r2, r2, #1 <== NOT EXECUTED a0009f5c: e5832000 str r2, [r3] <== NOT EXECUTED _Thread_Disable_dispatch(); if ( ticks == 0 ) { a0009f60: e3500000 cmp r0, #0 <== NOT EXECUTED a0009f64: 0a000012 beq a0009fb4 <== NOT EXECUTED _Scheduler_Yield(); } else { _Thread_Set_state( _Thread_Executing, STATES_DELAYING ); a0009f68: e59f5060 ldr r5, [pc, #96] ; a0009fd0 <== NOT EXECUTED a0009f6c: e3a01008 mov r1, #8 <== NOT EXECUTED a0009f70: e5950004 ldr r0, [r5, #4] <== NOT EXECUTED a0009f74: eb000a2e bl a000c834 <_Thread_Set_state> <== NOT EXECUTED _Watchdog_Initialize( &_Thread_Executing->Timer, a0009f78: e5951004 ldr r1, [r5, #4] <== NOT EXECUTED Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; a0009f7c: e59f0050 ldr r0, [pc, #80] ; a0009fd4 <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; a0009f80: e3a03000 mov r3, #0 <== NOT EXECUTED _Thread_Disable_dispatch(); if ( ticks == 0 ) { _Scheduler_Yield(); } else { _Thread_Set_state( _Thread_Executing, STATES_DELAYING ); _Watchdog_Initialize( a0009f84: e5912008 ldr r2, [r1, #8] <== NOT EXECUTED a0009f88: e5813050 str r3, [r1, #80] ; 0x50 <== NOT EXECUTED the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data; a0009f8c: e581306c str r3, [r1, #108] ; 0x6c <== NOT EXECUTED void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; the_watchdog->id = id; a0009f90: e5812068 str r2, [r1, #104] ; 0x68 <== NOT EXECUTED Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; a0009f94: e5810064 str r0, [r1, #100] ; 0x64 <== NOT EXECUTED Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; a0009f98: e5814054 str r4, [r1, #84] ; 0x54 <== NOT EXECUTED _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); a0009f9c: e59f0034 ldr r0, [pc, #52] ; a0009fd8 <== NOT EXECUTED a0009fa0: e2811048 add r1, r1, #72 ; 0x48 <== NOT EXECUTED a0009fa4: eb000b83 bl a000cdb8 <_Watchdog_Insert> <== NOT EXECUTED _Thread_Executing->Object.id, NULL ); _Watchdog_Insert_ticks( &_Thread_Executing->Timer, ticks ); } _Thread_Enable_dispatch(); a0009fa8: eb000808 bl a000bfd0 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; } a0009fac: e3a00000 mov r0, #0 <== NOT EXECUTED a0009fb0: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED * always operates on the scheduler that 'owns' the currently executing * thread. */ RTEMS_INLINE_ROUTINE void _Scheduler_Yield( void ) { _Scheduler.Operations.yield(); a0009fb4: e59f3020 ldr r3, [pc, #32] ; a0009fdc <== NOT EXECUTED a0009fb8: e593300c ldr r3, [r3, #12] <== NOT EXECUTED a0009fbc: e12fff33 blx r3 <== NOT EXECUTED _Thread_Executing->Object.id, NULL ); _Watchdog_Insert_ticks( &_Thread_Executing->Timer, ticks ); } _Thread_Enable_dispatch(); a0009fc0: eb000802 bl a000bfd0 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; } a0009fc4: e3a00000 mov r0, #0 <== NOT EXECUTED a0009fc8: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED =============================================================================== a000b040 : rtems_time_of_day *time_buffer ) { Watchdog_Interval seconds; if ( !_TOD_Is_set ) a000b040: e59f30c8 ldr r3, [pc, #200] ; a000b110 <== NOT EXECUTED */ rtems_status_code rtems_task_wake_when( rtems_time_of_day *time_buffer ) { a000b044: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED Watchdog_Interval seconds; if ( !_TOD_Is_set ) a000b048: e5d33000 ldrb r3, [r3] <== NOT EXECUTED */ rtems_status_code rtems_task_wake_when( rtems_time_of_day *time_buffer ) { a000b04c: e1a05000 mov r5, r0 <== NOT EXECUTED Watchdog_Interval seconds; if ( !_TOD_Is_set ) a000b050: e3530000 cmp r3, #0 <== NOT EXECUTED a000b054: 0a000011 beq a000b0a0 <== NOT EXECUTED return RTEMS_NOT_DEFINED; if ( !time_buffer ) a000b058: e3500000 cmp r0, #0 <== NOT EXECUTED a000b05c: 0a000029 beq a000b108 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; time_buffer->ticks = 0; a000b060: e3a04000 mov r4, #0 <== NOT EXECUTED a000b064: e5804018 str r4, [r0, #24] <== NOT EXECUTED if ( !_TOD_Validate( time_buffer ) ) a000b068: ebfffcfb bl a000a45c <_TOD_Validate> <== NOT EXECUTED a000b06c: e1500004 cmp r0, r4 <== NOT EXECUTED a000b070: 1a000001 bne a000b07c <== NOT EXECUTED return RTEMS_INVALID_CLOCK; a000b074: e3a00014 mov r0, #20 <== NOT EXECUTED a000b078: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED seconds = _TOD_To_seconds( time_buffer ); a000b07c: e1a00005 mov r0, r5 <== NOT EXECUTED a000b080: ebfffcce bl a000a3c0 <_TOD_To_seconds> <== NOT EXECUTED if ( seconds <= _TOD_Seconds_since_epoch() ) a000b084: e59f6088 ldr r6, [pc, #136] ; a000b114 <== NOT EXECUTED time_buffer->ticks = 0; if ( !_TOD_Validate( time_buffer ) ) return RTEMS_INVALID_CLOCK; seconds = _TOD_To_seconds( time_buffer ); a000b088: e1a05000 mov r5, r0 <== NOT EXECUTED if ( seconds <= _TOD_Seconds_since_epoch() ) a000b08c: e5963000 ldr r3, [r6] <== NOT EXECUTED a000b090: e1500003 cmp r0, r3 <== NOT EXECUTED a000b094: 8a000003 bhi a000b0a8 <== NOT EXECUTED return RTEMS_INVALID_CLOCK; a000b098: e3a00014 mov r0, #20 <== NOT EXECUTED &_Thread_Executing->Timer, seconds - _TOD_Seconds_since_epoch() ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } a000b09c: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED ) { Watchdog_Interval seconds; if ( !_TOD_Is_set ) return RTEMS_NOT_DEFINED; a000b0a0: e3a0000b mov r0, #11 <== NOT EXECUTED a000b0a4: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED a000b0a8: e59f3068 ldr r3, [pc, #104] ; a000b118 <== NOT EXECUTED a000b0ac: e5932000 ldr r2, [r3] <== NOT EXECUTED a000b0b0: e2822001 add r2, r2, #1 <== NOT EXECUTED a000b0b4: e5832000 str r2, [r3] <== NOT EXECUTED if ( seconds <= _TOD_Seconds_since_epoch() ) return RTEMS_INVALID_CLOCK; _Thread_Disable_dispatch(); _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_TIME ); a000b0b8: e59f705c ldr r7, [pc, #92] ; a000b11c <== NOT EXECUTED a000b0bc: e3a01010 mov r1, #16 <== NOT EXECUTED a000b0c0: e5970004 ldr r0, [r7, #4] <== NOT EXECUTED a000b0c4: eb000a39 bl a000d9b0 <_Thread_Set_state> <== NOT EXECUTED _Watchdog_Initialize( &_Thread_Executing->Timer, a000b0c8: e5971004 ldr r1, [r7, #4] <== NOT EXECUTED _Thread_Delay_ended, _Thread_Executing->Object.id, NULL ); _Watchdog_Insert_seconds( a000b0cc: e5962000 ldr r2, [r6] <== NOT EXECUTED ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog ); a000b0d0: e59f0048 ldr r0, [pc, #72] ; a000b120 <== NOT EXECUTED if ( seconds <= _TOD_Seconds_since_epoch() ) return RTEMS_INVALID_CLOCK; _Thread_Disable_dispatch(); _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_TIME ); _Watchdog_Initialize( a000b0d4: e5913008 ldr r3, [r1, #8] <== NOT EXECUTED &_Thread_Executing->Timer, _Thread_Delay_ended, _Thread_Executing->Object.id, NULL ); _Watchdog_Insert_seconds( a000b0d8: e0625005 rsb r5, r2, r5 <== NOT EXECUTED Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; a000b0dc: e59f2040 ldr r2, [pc, #64] ; a000b124 <== NOT EXECUTED the_watchdog->id = id; a000b0e0: e5813068 str r3, [r1, #104] ; 0x68 <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; a000b0e4: e5814050 str r4, [r1, #80] ; 0x50 <== NOT EXECUTED the_watchdog->routine = routine; a000b0e8: e5812064 str r2, [r1, #100] ; 0x64 <== NOT EXECUTED the_watchdog->id = id; the_watchdog->user_data = user_data; a000b0ec: e581406c str r4, [r1, #108] ; 0x6c <== NOT EXECUTED Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; a000b0f0: e5815054 str r5, [r1, #84] ; 0x54 <== NOT EXECUTED _Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog ); a000b0f4: e2811048 add r1, r1, #72 ; 0x48 <== NOT EXECUTED a000b0f8: eb000bbe bl a000dff8 <_Watchdog_Insert> <== NOT EXECUTED &_Thread_Executing->Timer, seconds - _TOD_Seconds_since_epoch() ); _Thread_Enable_dispatch(); a000b0fc: eb000812 bl a000d14c <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000b100: e1a00004 mov r0, r4 <== NOT EXECUTED a000b104: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED if ( !_TOD_Is_set ) return RTEMS_NOT_DEFINED; if ( !time_buffer ) return RTEMS_INVALID_ADDRESS; a000b108: e3a00009 mov r0, #9 <== NOT EXECUTED a000b10c: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED =============================================================================== a0019cb0 : */ rtems_status_code rtems_timer_cancel( rtems_id id ) { a0019cb0: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED a0019cb4: e24dd004 sub sp, sp, #4 <== NOT EXECUTED a0019cb8: e1a01000 mov r1, r0 <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Timer_Control *) _Objects_Get( &_Timer_Information, id, location ); a0019cbc: e1a0200d mov r2, sp <== NOT EXECUTED a0019cc0: e59f0034 ldr r0, [pc, #52] ; a0019cfc <== NOT EXECUTED a0019cc4: eb000bda bl a001cc34 <_Objects_Get> <== NOT EXECUTED Timer_Control *the_timer; Objects_Locations location; the_timer = _Timer_Get( id, &location ); switch ( location ) { a0019cc8: e59d3000 ldr r3, [sp] <== NOT EXECUTED a0019ccc: e3530000 cmp r3, #0 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a0019cd0: 13a00004 movne r0, #4 <== NOT EXECUTED { Timer_Control *the_timer; Objects_Locations location; the_timer = _Timer_Get( id, &location ); switch ( location ) { a0019cd4: 1a000006 bne a0019cf4 <== NOT EXECUTED case OBJECTS_LOCAL: if ( !_Timer_Is_dormant_class( the_timer->the_class ) ) a0019cd8: e5903038 ldr r3, [r0, #56] ; 0x38 <== NOT EXECUTED a0019cdc: e3530004 cmp r3, #4 <== NOT EXECUTED a0019ce0: 0a000001 beq a0019cec <== NOT EXECUTED (void) _Watchdog_Remove( &the_timer->Ticker ); a0019ce4: e2800010 add r0, r0, #16 <== NOT EXECUTED a0019ce8: eb0013b5 bl a001ebc4 <_Watchdog_Remove> <== NOT EXECUTED _Thread_Enable_dispatch(); a0019cec: eb000f23 bl a001d980 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0019cf0: e3a00000 mov r0, #0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a0019cf4: e28dd004 add sp, sp, #4 <== NOT EXECUTED a0019cf8: e8bd8000 pop {pc} <== NOT EXECUTED =============================================================================== a000a444 : rtems_status_code rtems_timer_create( rtems_name name, rtems_id *id ) { a000a444: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED Timer_Control *the_timer; if ( !rtems_is_name_valid( name ) ) a000a448: e2504000 subs r4, r0, #0 <== NOT EXECUTED rtems_status_code rtems_timer_create( rtems_name name, rtems_id *id ) { a000a44c: e1a05001 mov r5, r1 <== NOT EXECUTED Timer_Control *the_timer; if ( !rtems_is_name_valid( name ) ) a000a450: 0a00001a beq a000a4c0 <== NOT EXECUTED return RTEMS_INVALID_NAME; if ( !id ) a000a454: e3510000 cmp r1, #0 <== NOT EXECUTED a000a458: 0a00001d beq a000a4d4 <== NOT EXECUTED a000a45c: e59f3078 ldr r3, [pc, #120] ; a000a4dc <== NOT EXECUTED a000a460: e5932000 ldr r2, [r3] <== NOT EXECUTED a000a464: e2822001 add r2, r2, #1 <== NOT EXECUTED a000a468: e5832000 str r2, [r3] <== NOT EXECUTED * 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 ); a000a46c: e59f606c ldr r6, [pc, #108] ; a000a4e0 <== NOT EXECUTED a000a470: e1a00006 mov r0, r6 <== NOT EXECUTED a000a474: eb0003d0 bl a000b3bc <_Objects_Allocate> <== NOT EXECUTED _Thread_Disable_dispatch(); /* to prevent deletion */ the_timer = _Timer_Allocate(); if ( !the_timer ) { a000a478: e3500000 cmp r0, #0 <== NOT EXECUTED a000a47c: 0a000011 beq a000a4c8 <== NOT EXECUTED Objects_Name name ) { _Objects_Set_local_object( information, _Objects_Get_index( the_object->id ), a000a480: e5903008 ldr r3, [r0, #8] <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; a000a484: e596201c ldr r2, [r6, #28] <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } the_timer->the_class = TIMER_DORMANT; a000a488: e3a0c004 mov ip, #4 <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; a000a48c: e3a06000 mov r6, #0 <== NOT EXECUTED Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( a000a490: e1a01803 lsl r1, r3, #16 <== NOT EXECUTED a000a494: e580c038 str ip, [r0, #56] ; 0x38 <== NOT EXECUTED a000a498: e5806018 str r6, [r0, #24] <== NOT EXECUTED the_watchdog->routine = routine; a000a49c: e580602c str r6, [r0, #44] ; 0x2c <== NOT EXECUTED the_watchdog->id = id; a000a4a0: e5806030 str r6, [r0, #48] ; 0x30 <== NOT EXECUTED the_watchdog->user_data = user_data; a000a4a4: e5806034 str r6, [r0, #52] ; 0x34 <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; a000a4a8: e7820721 str r0, [r2, r1, lsr #14] <== NOT EXECUTED information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; a000a4ac: e580400c str r4, [r0, #12] <== NOT EXECUTED &_Timer_Information, &the_timer->Object, (Objects_Name) name ); *id = the_timer->Object.id; a000a4b0: e5853000 str r3, [r5] <== NOT EXECUTED _Thread_Enable_dispatch(); a000a4b4: eb000824 bl a000c54c <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000a4b8: e1a00006 mov r0, r6 <== NOT EXECUTED a000a4bc: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED ) { Timer_Control *the_timer; if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; a000a4c0: e3a00003 mov r0, #3 <== NOT EXECUTED a000a4c4: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED _Thread_Disable_dispatch(); /* to prevent deletion */ the_timer = _Timer_Allocate(); if ( !the_timer ) { _Thread_Enable_dispatch(); a000a4c8: eb00081f bl a000c54c <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_TOO_MANY; a000a4cc: e3a00005 mov r0, #5 <== NOT EXECUTED a000a4d0: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; if ( !id ) return RTEMS_INVALID_ADDRESS; a000a4d4: e3a00009 mov r0, #9 <== NOT EXECUTED ); *id = the_timer->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } a000a4d8: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED =============================================================================== a0019da0 : */ rtems_status_code rtems_timer_delete( rtems_id id ) { a0019da0: e92d4030 push {r4, r5, lr} <== NOT EXECUTED a0019da4: e24dd004 sub sp, sp, #4 <== NOT EXECUTED a0019da8: e1a01000 mov r1, r0 <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Timer_Control *) _Objects_Get( &_Timer_Information, id, location ); a0019dac: e1a0200d mov r2, sp <== NOT EXECUTED a0019db0: e59f0044 ldr r0, [pc, #68] ; a0019dfc <== NOT EXECUTED a0019db4: eb000b9e bl a001cc34 <_Objects_Get> <== NOT EXECUTED Timer_Control *the_timer; Objects_Locations location; the_timer = _Timer_Get( id, &location ); switch ( location ) { a0019db8: e59d4000 ldr r4, [sp] <== NOT EXECUTED a0019dbc: e1a05000 mov r5, r0 <== NOT EXECUTED a0019dc0: e3540000 cmp r4, #0 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a0019dc4: 13a00004 movne r0, #4 <== NOT EXECUTED { Timer_Control *the_timer; Objects_Locations location; the_timer = _Timer_Get( id, &location ); switch ( location ) { a0019dc8: 1a000009 bne a0019df4 <== NOT EXECUTED case OBJECTS_LOCAL: _Objects_Close( &_Timer_Information, &the_timer->Object ); a0019dcc: e1a01005 mov r1, r5 <== NOT EXECUTED a0019dd0: e59f0024 ldr r0, [pc, #36] ; a0019dfc <== NOT EXECUTED a0019dd4: eb000a78 bl a001c7bc <_Objects_Close> <== NOT EXECUTED (void) _Watchdog_Remove( &the_timer->Ticker ); a0019dd8: e2850010 add r0, r5, #16 <== NOT EXECUTED a0019ddc: eb001378 bl a001ebc4 <_Watchdog_Remove> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Timer_Free ( Timer_Control *the_timer ) { _Objects_Free( &_Timer_Information, &the_timer->Object ); a0019de0: e59f0014 ldr r0, [pc, #20] ; a0019dfc <== NOT EXECUTED a0019de4: e1a01005 mov r1, r5 <== NOT EXECUTED a0019de8: eb000b28 bl a001ca90 <_Objects_Free> <== NOT EXECUTED _Timer_Free( the_timer ); _Thread_Enable_dispatch(); a0019dec: eb000ee3 bl a001d980 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0019df0: e1a00004 mov r0, r4 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a0019df4: e28dd004 add sp, sp, #4 <== NOT EXECUTED a0019df8: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED =============================================================================== a000a4e4 : rtems_id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { a000a4e4: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED Timer_Control *the_timer; Objects_Locations location; ISR_Level level; if ( ticks == 0 ) a000a4e8: e2516000 subs r6, r1, #0 <== NOT EXECUTED rtems_id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { a000a4ec: e1a05000 mov r5, r0 <== NOT EXECUTED a000a4f0: e24dd004 sub sp, sp, #4 <== NOT EXECUTED a000a4f4: e1a04002 mov r4, r2 <== NOT EXECUTED a000a4f8: e1a07003 mov r7, r3 <== NOT EXECUTED Timer_Control *the_timer; Objects_Locations location; ISR_Level level; if ( ticks == 0 ) return RTEMS_INVALID_NUMBER; a000a4fc: 03a0000a moveq r0, #10 <== NOT EXECUTED { Timer_Control *the_timer; Objects_Locations location; ISR_Level level; if ( ticks == 0 ) a000a500: 0a000020 beq a000a588 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; if ( !routine ) a000a504: e3520000 cmp r2, #0 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; a000a508: 03a00009 moveq r0, #9 <== NOT EXECUTED ISR_Level level; if ( ticks == 0 ) return RTEMS_INVALID_NUMBER; if ( !routine ) a000a50c: 0a00001d beq a000a588 <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Timer_Control *) _Objects_Get( &_Timer_Information, id, location ); a000a510: e59f0088 ldr r0, [pc, #136] ; a000a5a0 <== NOT EXECUTED a000a514: e1a01005 mov r1, r5 <== NOT EXECUTED a000a518: e1a0200d mov r2, sp <== NOT EXECUTED a000a51c: eb0004d9 bl a000b888 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_timer = _Timer_Get( id, &location ); switch ( location ) { a000a520: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000a524: e1a08000 mov r8, r0 <== NOT EXECUTED a000a528: e3530000 cmp r3, #0 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a000a52c: 13a00004 movne r0, #4 <== NOT EXECUTED if ( !routine ) return RTEMS_INVALID_ADDRESS; the_timer = _Timer_Get( id, &location ); switch ( location ) { a000a530: 1a000014 bne a000a588 <== NOT EXECUTED case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); a000a534: e288a010 add sl, r8, #16 <== NOT EXECUTED a000a538: e1a0000a mov r0, sl <== NOT EXECUTED a000a53c: eb000beb bl a000d4f0 <_Watchdog_Remove> <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000a540: e10f2000 mrs r2, CPSR <== NOT EXECUTED a000a544: e3823080 orr r3, r2, #128 ; 0x80 <== NOT EXECUTED a000a548: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED /* * Check to see if the watchdog has just been inserted by a * higher priority interrupt. If so, abandon this insert. */ if ( the_timer->Ticker.state != WATCHDOG_INACTIVE ) { a000a54c: e5983018 ldr r3, [r8, #24] <== NOT EXECUTED a000a550: e3530000 cmp r3, #0 <== NOT EXECUTED a000a554: 1a00000d bne a000a590 <== 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; a000a558: e5883038 str r3, [r8, #56] ; 0x38 <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; a000a55c: e5883018 str r3, [r8, #24] <== NOT EXECUTED the_watchdog->routine = routine; a000a560: e588402c str r4, [r8, #44] ; 0x2c <== NOT EXECUTED the_watchdog->id = id; a000a564: e5885030 str r5, [r8, #48] ; 0x30 <== NOT EXECUTED the_watchdog->user_data = user_data; a000a568: e5887034 str r7, [r8, #52] ; 0x34 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000a56c: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); a000a570: e59f002c ldr r0, [pc, #44] ; a000a5a4 <== NOT EXECUTED a000a574: e1a0100a mov r1, sl <== NOT EXECUTED Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; a000a578: e588601c str r6, [r8, #28] <== NOT EXECUTED _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); a000a57c: eb000b6c bl a000d334 <_Watchdog_Insert> <== NOT EXECUTED _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); _ISR_Enable( level ); _Watchdog_Insert_ticks( &the_timer->Ticker, ticks ); _Thread_Enable_dispatch(); a000a580: eb0007f1 bl a000c54c <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000a584: e3a00000 mov r0, #0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a000a588: e28dd004 add sp, sp, #4 <== NOT EXECUTED a000a58c: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED a000a590: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED * higher priority interrupt. If so, abandon this insert. */ if ( the_timer->Ticker.state != WATCHDOG_INACTIVE ) { _ISR_Enable( level ); _Thread_Enable_dispatch(); a000a594: eb0007ec bl a000c54c <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000a598: e3a00000 mov r0, #0 <== NOT EXECUTED a000a59c: eafffff9 b a000a588 <== NOT EXECUTED =============================================================================== a0019ec4 : rtems_id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) { a0019ec4: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED a0019ec8: e1a06001 mov r6, r1 <== NOT EXECUTED Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; if ( !_TOD_Is_set ) a0019ecc: e59f10d0 ldr r1, [pc, #208] ; a0019fa4 <== NOT EXECUTED rtems_id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) { a0019ed0: e1a05000 mov r5, r0 <== NOT EXECUTED a0019ed4: e24dd004 sub sp, sp, #4 <== NOT EXECUTED Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; if ( !_TOD_Is_set ) a0019ed8: e5d11000 ldrb r1, [r1] <== NOT EXECUTED rtems_id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) { a0019edc: e1a04002 mov r4, r2 <== NOT EXECUTED a0019ee0: e1a07003 mov r7, r3 <== NOT EXECUTED Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; if ( !_TOD_Is_set ) a0019ee4: e3510000 cmp r1, #0 <== NOT EXECUTED return RTEMS_NOT_DEFINED; a0019ee8: 03a0000b moveq r0, #11 <== NOT EXECUTED { Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; if ( !_TOD_Is_set ) a0019eec: 1a000001 bne a0019ef8 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a0019ef0: e28dd004 add sp, sp, #4 <== NOT EXECUTED a0019ef4: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED rtems_interval seconds; if ( !_TOD_Is_set ) return RTEMS_NOT_DEFINED; if ( !_TOD_Validate( wall_time ) ) a0019ef8: e1a00006 mov r0, r6 <== NOT EXECUTED a0019efc: ebfff4ab bl a00171b0 <_TOD_Validate> <== NOT EXECUTED a0019f00: e3500000 cmp r0, #0 <== NOT EXECUTED a0019f04: 0a000009 beq a0019f30 <== NOT EXECUTED return RTEMS_INVALID_CLOCK; if ( !routine ) a0019f08: e3540000 cmp r4, #0 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; a0019f0c: 03a00009 moveq r0, #9 <== NOT EXECUTED return RTEMS_NOT_DEFINED; if ( !_TOD_Validate( wall_time ) ) return RTEMS_INVALID_CLOCK; if ( !routine ) a0019f10: 0afffff6 beq a0019ef0 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; seconds = _TOD_To_seconds( wall_time ); a0019f14: e1a00006 mov r0, r6 <== NOT EXECUTED a0019f18: ebfff47d bl a0017114 <_TOD_To_seconds> <== NOT EXECUTED if ( seconds <= _TOD_Seconds_since_epoch() ) a0019f1c: e59f8084 ldr r8, [pc, #132] ; a0019fa8 <== NOT EXECUTED return RTEMS_INVALID_CLOCK; if ( !routine ) return RTEMS_INVALID_ADDRESS; seconds = _TOD_To_seconds( wall_time ); a0019f20: e1a06000 mov r6, r0 <== NOT EXECUTED if ( seconds <= _TOD_Seconds_since_epoch() ) a0019f24: e5983000 ldr r3, [r8] <== NOT EXECUTED a0019f28: e1500003 cmp r0, r3 <== NOT EXECUTED a0019f2c: 8a000001 bhi a0019f38 <== NOT EXECUTED return RTEMS_INVALID_CLOCK; a0019f30: e3a00014 mov r0, #20 <== NOT EXECUTED a0019f34: eaffffed b a0019ef0 <== NOT EXECUTED a0019f38: e59f006c ldr r0, [pc, #108] ; a0019fac <== NOT EXECUTED a0019f3c: e1a01005 mov r1, r5 <== NOT EXECUTED a0019f40: e1a0200d mov r2, sp <== NOT EXECUTED a0019f44: eb000b3a bl a001cc34 <_Objects_Get> <== NOT EXECUTED the_timer = _Timer_Get( id, &location ); switch ( location ) { a0019f48: e59da000 ldr sl, [sp] <== NOT EXECUTED a0019f4c: e1a09000 mov r9, r0 <== NOT EXECUTED a0019f50: e35a0000 cmp sl, #0 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a0019f54: 13a00004 movne r0, #4 <== NOT EXECUTED seconds = _TOD_To_seconds( wall_time ); if ( seconds <= _TOD_Seconds_since_epoch() ) return RTEMS_INVALID_CLOCK; the_timer = _Timer_Get( id, &location ); switch ( location ) { a0019f58: 1affffe4 bne a0019ef0 <== NOT EXECUTED case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); a0019f5c: e289b010 add fp, r9, #16 <== NOT EXECUTED a0019f60: e1a0000b mov r0, fp <== NOT EXECUTED a0019f64: eb001316 bl a001ebc4 <_Watchdog_Remove> <== NOT EXECUTED the_timer->the_class = TIMER_TIME_OF_DAY; _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); _Watchdog_Insert_seconds( a0019f68: e5983000 ldr r3, [r8] <== NOT EXECUTED the_timer = _Timer_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); the_timer->the_class = TIMER_TIME_OF_DAY; a0019f6c: e3a02002 mov r2, #2 <== NOT EXECUTED ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog ); a0019f70: e59f0038 ldr r0, [pc, #56] ; a0019fb0 <== NOT EXECUTED _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); _Watchdog_Insert_seconds( a0019f74: e0636006 rsb r6, r3, r6 <== NOT EXECUTED the_timer = _Timer_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); the_timer->the_class = TIMER_TIME_OF_DAY; a0019f78: e5892038 str r2, [r9, #56] ; 0x38 <== NOT EXECUTED a0019f7c: e1a0100b mov r1, fp <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; a0019f80: e589a018 str sl, [r9, #24] <== NOT EXECUTED the_watchdog->routine = routine; a0019f84: e589402c str r4, [r9, #44] ; 0x2c <== NOT EXECUTED the_watchdog->id = id; a0019f88: e5895030 str r5, [r9, #48] ; 0x30 <== NOT EXECUTED the_watchdog->user_data = user_data; a0019f8c: e5897034 str r7, [r9, #52] ; 0x34 <== NOT EXECUTED Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; a0019f90: e589601c str r6, [r9, #28] <== NOT EXECUTED _Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog ); a0019f94: eb00129b bl a001ea08 <_Watchdog_Insert> <== NOT EXECUTED _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); _Watchdog_Insert_seconds( &the_timer->Ticker, seconds - _TOD_Seconds_since_epoch() ); _Thread_Enable_dispatch(); a0019f98: eb000e78 bl a001d980 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0019f9c: e1a0000a mov r0, sl <== NOT EXECUTED a0019fa0: eaffffd2 b a0019ef0 <== NOT EXECUTED =============================================================================== a0019fb4 : rtems_status_code rtems_timer_get_information( rtems_id id, rtems_timer_information *the_info ) { a0019fb4: e92d4030 push {r4, r5, lr} <== NOT EXECUTED Timer_Control *the_timer; Objects_Locations location; if ( !the_info ) a0019fb8: e2514000 subs r4, r1, #0 <== NOT EXECUTED rtems_status_code rtems_timer_get_information( rtems_id id, rtems_timer_information *the_info ) { a0019fbc: e24dd004 sub sp, sp, #4 <== NOT EXECUTED a0019fc0: e1a01000 mov r1, r0 <== NOT EXECUTED Timer_Control *the_timer; Objects_Locations location; if ( !the_info ) return RTEMS_INVALID_ADDRESS; a0019fc4: 03a00009 moveq r0, #9 <== NOT EXECUTED ) { Timer_Control *the_timer; Objects_Locations location; if ( !the_info ) a0019fc8: 0a00000e beq a001a008 <== NOT EXECUTED a0019fcc: e59f003c ldr r0, [pc, #60] ; a001a010 <== NOT EXECUTED a0019fd0: e1a0200d mov r2, sp <== NOT EXECUTED a0019fd4: eb000b16 bl a001cc34 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_timer = _Timer_Get( id, &location ); switch ( location ) { a0019fd8: e59d5000 ldr r5, [sp] <== NOT EXECUTED a0019fdc: e3550000 cmp r5, #0 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a0019fe0: 13a00004 movne r0, #4 <== NOT EXECUTED if ( !the_info ) return RTEMS_INVALID_ADDRESS; the_timer = _Timer_Get( id, &location ); switch ( location ) { a0019fe4: 1a000007 bne a001a008 <== NOT EXECUTED case OBJECTS_LOCAL: the_info->the_class = the_timer->the_class; a0019fe8: e590c038 ldr ip, [r0, #56] ; 0x38 <== NOT EXECUTED the_info->initial = the_timer->Ticker.initial; a0019fec: e590101c ldr r1, [r0, #28] <== NOT EXECUTED the_info->start_time = the_timer->Ticker.start_time; a0019ff0: e5902024 ldr r2, [r0, #36] ; 0x24 <== NOT EXECUTED the_info->stop_time = the_timer->Ticker.stop_time; a0019ff4: e5903028 ldr r3, [r0, #40] ; 0x28 <== NOT EXECUTED the_timer = _Timer_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: the_info->the_class = the_timer->the_class; a0019ff8: e584c000 str ip, [r4] <== NOT EXECUTED the_info->initial = the_timer->Ticker.initial; a0019ffc: e984000e stmib r4, {r1, r2, r3} <== NOT EXECUTED the_info->start_time = the_timer->Ticker.start_time; the_info->stop_time = the_timer->Ticker.stop_time; _Thread_Enable_dispatch(); a001a000: eb000e5e bl a001d980 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a001a004: e1a00005 mov r0, r5 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a001a008: e28dd004 add sp, sp, #4 <== NOT EXECUTED a001a00c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED =============================================================================== a001a014 : rtems_status_code rtems_timer_ident( rtems_name name, rtems_id *id ) { a001a014: e1a02000 mov r2, r0 <== NOT EXECUTED a001a018: e1a03001 mov r3, r1 <== NOT EXECUTED a001a01c: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( a001a020: e1a01002 mov r1, r2 <== NOT EXECUTED a001a024: e59f0010 ldr r0, [pc, #16] ; a001a03c <== NOT EXECUTED a001a028: e3e02102 mvn r2, #-2147483648 ; 0x80000000 <== NOT EXECUTED a001a02c: eb000b55 bl a001cd88 <_Objects_Name_to_id_u32> <== NOT EXECUTED name, OBJECTS_SEARCH_LOCAL_NODE, id ); return _Status_Object_name_errors_to_status[ status ]; a001a030: e59f3008 ldr r3, [pc, #8] ; a001a040 <== NOT EXECUTED } a001a034: e7930100 ldr r0, [r3, r0, lsl #2] <== NOT EXECUTED a001a038: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED =============================================================================== a001a6c0 : rtems_status_code rtems_timer_initiate_server( uint32_t priority, uint32_t stack_size, rtems_attribute attribute_set ) { a001a6c0: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED a001a6c4: e3500000 cmp r0, #0 <== NOT EXECUTED a001a6c8: e24dd00c sub sp, sp, #12 <== NOT EXECUTED a001a6cc: e1a06001 mov r6, r1 <== NOT EXECUTED a001a6d0: e1a08002 mov r8, r2 <== NOT EXECUTED a001a6d4: 0a00004a beq a001a804 <== NOT EXECUTED ( the_priority <= RTEMS_MAXIMUM_PRIORITY ) ); a001a6d8: e59f313c ldr r3, [pc, #316] ; a001a81c <== NOT EXECUTED a001a6dc: e5d33000 ldrb r3, [r3] <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid ( rtems_task_priority the_priority ) { return ( ( the_priority >= RTEMS_MINIMUM_PRIORITY ) && a001a6e0: e1500003 cmp r0, r3 <== NOT EXECUTED a001a6e4: 9a00004a bls a001a814 <== NOT EXECUTED * structured so we check it is invalid before looking for * a specific invalid value as the default. */ _priority = priority; if ( !_RTEMS_tasks_Priority_is_valid( priority ) ) { if ( priority != RTEMS_TIMER_SERVER_DEFAULT_PRIORITY ) a001a6e8: e3700001 cmn r0, #1 <== NOT EXECUTED return RTEMS_INVALID_PRIORITY; _priority = 0; a001a6ec: 03a07000 moveq r7, #0 <== NOT EXECUTED * structured so we check it is invalid before looking for * a specific invalid value as the default. */ _priority = priority; if ( !_RTEMS_tasks_Priority_is_valid( priority ) ) { if ( priority != RTEMS_TIMER_SERVER_DEFAULT_PRIORITY ) a001a6f0: 1a000043 bne a001a804 <== NOT EXECUTED a001a6f4: e59f3124 ldr r3, [pc, #292] ; a001a820 <== NOT EXECUTED a001a6f8: e5932000 ldr r2, [r3] <== NOT EXECUTED a001a6fc: e2822001 add r2, r2, #1 <== NOT EXECUTED a001a700: e5832000 str r2, [r3] <== NOT EXECUTED /* * Just to make sure this is only called once. */ _Thread_Disable_dispatch(); tmpInitialized = initialized; a001a704: e59f4118 ldr r4, [pc, #280] ; a001a824 <== NOT EXECUTED initialized = true; a001a708: e3a03001 mov r3, #1 <== NOT EXECUTED /* * Just to make sure this is only called once. */ _Thread_Disable_dispatch(); tmpInitialized = initialized; a001a70c: e5d45000 ldrb r5, [r4] <== NOT EXECUTED initialized = true; a001a710: e5c43000 strb r3, [r4] <== NOT EXECUTED _Thread_Enable_dispatch(); a001a714: eb000c99 bl a001d980 <_Thread_Enable_dispatch> <== NOT EXECUTED if ( tmpInitialized ) a001a718: e3550000 cmp r5, #0 <== NOT EXECUTED return RTEMS_INCORRECT_STATE; a001a71c: 13a0300e movne r3, #14 <== NOT EXECUTED _Thread_Disable_dispatch(); tmpInitialized = initialized; initialized = true; _Thread_Enable_dispatch(); if ( tmpInitialized ) a001a720: 1a000038 bne a001a808 <== NOT EXECUTED * other library rules. For example, if using a TSR written in Ada the * Server should run at the same priority as the priority Ada task. * Otherwise, the priority ceiling for the mutex used to protect the * GNAT run-time is violated. */ status = rtems_task_create( a001a724: e388c902 orr ip, r8, #32768 ; 0x8000 <== NOT EXECUTED a001a728: e3a03c01 mov r3, #256 ; 0x100 <== NOT EXECUTED a001a72c: e58dc000 str ip, [sp] <== NOT EXECUTED a001a730: e59f00f0 ldr r0, [pc, #240] ; a001a828 <== NOT EXECUTED a001a734: e28dc008 add ip, sp, #8 <== NOT EXECUTED a001a738: e1a01007 mov r1, r7 <== NOT EXECUTED a001a73c: e1a02006 mov r2, r6 <== NOT EXECUTED a001a740: e58dc004 str ip, [sp, #4] <== NOT EXECUTED a001a744: ebfffb05 bl a0019360 <== NOT EXECUTED /* user may want floating point but we need */ /* system task specified for 0 priority */ attribute_set | RTEMS_SYSTEM_TASK, &id /* get the id back */ ); if (status) { a001a748: e2503000 subs r3, r0, #0 <== NOT EXECUTED initialized = false; a001a74c: 15c45000 strbne r5, [r4] <== NOT EXECUTED /* user may want floating point but we need */ /* system task specified for 0 priority */ attribute_set | RTEMS_SYSTEM_TASK, &id /* get the id back */ ); if (status) { a001a750: 1a00002c bne a001a808 <== NOT EXECUTED */ #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return NULL; #endif return information->local_table[ index ]; a001a754: e59f20d0 ldr r2, [pc, #208] ; a001a82c <== NOT EXECUTED * We work with the TCB pointer, not the ID, so we need to convert * to a TCB pointer from here out. */ ts->thread = (Thread_Control *)_Objects_Get_local_object( &_RTEMS_tasks_Information, _Objects_Get_index(id) a001a758: e59de008 ldr lr, [sp, #8] <== NOT EXECUTED /* * We work with the TCB pointer, not the ID, so we need to convert * to a TCB pointer from here out. */ ts->thread = (Thread_Control *)_Objects_Get_local_object( a001a75c: e1a0c004 mov ip, r4 <== NOT EXECUTED a001a760: e592201c ldr r2, [r2, #28] <== NOT EXECUTED a001a764: e1a0180e lsl r1, lr, #16 <== NOT EXECUTED Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; a001a768: e59f50c0 ldr r5, [pc, #192] ; a001a830 <== NOT EXECUTED a001a76c: e7922721 ldr r2, [r2, r1, lsr #14] <== NOT EXECUTED * Initialize the pointer to the timer schedule method so applications that * do not use the Timer Server do not have to pull it in. */ ts->schedule_operation = _Timer_server_Schedule_operation_method; ts->Interval_watchdogs.last_snapshot = _Watchdog_Ticks_since_boot; a001a770: e59f10bc ldr r1, [pc, #188] ; a001a834 <== NOT EXECUTED { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); head->next = tail; head->previous = NULL; a001a774: e5843038 str r3, [r4, #56] ; 0x38 <== NOT EXECUTED a001a778: e5843070 str r3, [r4, #112] ; 0x70 <== NOT EXECUTED a001a77c: e5918000 ldr r8, [r1] <== NOT EXECUTED ts->TOD_watchdogs.last_snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); a001a780: e59f10b0 ldr r1, [pc, #176] ; a001a838 <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; a001a784: e5843014 str r3, [r4, #20] <== NOT EXECUTED * Initialize the pointer to the timer schedule method so applications that * do not use the Timer Server do not have to pull it in. */ ts->schedule_operation = _Timer_server_Schedule_operation_method; ts->Interval_watchdogs.last_snapshot = _Watchdog_Ticks_since_boot; a001a788: e5848040 str r8, [r4, #64] ; 0x40 <== NOT EXECUTED ts->TOD_watchdogs.last_snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); a001a78c: e591a000 ldr sl, [r1] <== NOT EXECUTED the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data; a001a790: e5843030 str r3, [r4, #48] ; 0x30 <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; a001a794: e584304c str r3, [r4, #76] ; 0x4c <== NOT EXECUTED a001a798: e584a078 str sl, [r4, #120] ; 0x78 <== NOT EXECUTED the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data; a001a79c: e5843068 str r3, [r4, #104] ; 0x68 <== NOT EXECUTED ts->insert_chain = NULL; a001a7a0: e584307c str r3, [r4, #124] ; 0x7c <== NOT EXECUTED ts->active = false; a001a7a4: e5c43080 strb r3, [r4, #128] ; 0x80 <== NOT EXECUTED /* * Initialize the pointer to the timer schedule method so applications that * do not use the Timer Server do not have to pull it in. */ ts->schedule_operation = _Timer_server_Schedule_operation_method; a001a7a8: e59f308c ldr r3, [pc, #140] ; a001a83c <== NOT EXECUTED /* * We work with the TCB pointer, not the ID, so we need to convert * to a TCB pointer from here out. */ ts->thread = (Thread_Control *)_Objects_Get_local_object( a001a7ac: e5ac2004 str r2, [ip, #4]! <== NOT EXECUTED ) { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); head->next = tail; a001a7b0: e2847038 add r7, r4, #56 ; 0x38 <== NOT EXECUTED /* * Initialize the pointer to the timer schedule method so applications that * do not use the Timer Server do not have to pull it in. */ ts->schedule_operation = _Timer_server_Schedule_operation_method; a001a7b4: e5843008 str r3, [r4, #8] <== NOT EXECUTED ts->active = false; /* * The default timer server is now available. */ _Timer_server = ts; a001a7b8: e59f3080 ldr r3, [pc, #128] ; a001a840 <== NOT EXECUTED head->previous = NULL; tail->previous = head; a001a7bc: e2849034 add r9, r4, #52 ; 0x34 <== NOT EXECUTED ) { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); head->next = tail; a001a7c0: e284b070 add fp, r4, #112 ; 0x70 <== NOT EXECUTED a001a7c4: e583c000 str ip, [r3] <== NOT EXECUTED head->previous = NULL; tail->previous = head; a001a7c8: e284606c add r6, r4, #108 ; 0x6c <== NOT EXECUTED /* * Start the timer server */ status = rtems_task_start( a001a7cc: e1a0000e mov r0, lr <== NOT EXECUTED a001a7d0: e59f106c ldr r1, [pc, #108] ; a001a844 <== NOT EXECUTED a001a7d4: e1a0200c mov r2, ip <== NOT EXECUTED ) { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); head->next = tail; a001a7d8: e5847034 str r7, [r4, #52] ; 0x34 <== NOT EXECUTED head->previous = NULL; tail->previous = head; a001a7dc: e584903c str r9, [r4, #60] ; 0x3c <== NOT EXECUTED ) { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); head->next = tail; a001a7e0: e584b06c str fp, [r4, #108] ; 0x6c <== NOT EXECUTED head->previous = NULL; tail->previous = head; a001a7e4: e5846074 str r6, [r4, #116] ; 0x74 <== NOT EXECUTED Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; a001a7e8: e5845028 str r5, [r4, #40] ; 0x28 <== NOT EXECUTED the_watchdog->id = id; a001a7ec: e584e02c str lr, [r4, #44] ; 0x2c <== NOT EXECUTED Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; a001a7f0: e5845060 str r5, [r4, #96] ; 0x60 <== NOT EXECUTED the_watchdog->id = id; a001a7f4: e584e064 str lr, [r4, #100] ; 0x64 <== NOT EXECUTED a001a7f8: ebfffc9d bl a0019a74 <== NOT EXECUTED a001a7fc: e1a03000 mov r3, r0 <== NOT EXECUTED if (status) { initialized = false; } #endif return status; a001a800: ea000000 b a001a808 <== NOT EXECUTED * a specific invalid value as the default. */ _priority = priority; if ( !_RTEMS_tasks_Priority_is_valid( priority ) ) { if ( priority != RTEMS_TIMER_SERVER_DEFAULT_PRIORITY ) return RTEMS_INVALID_PRIORITY; a001a804: e3a03013 mov r3, #19 <== NOT EXECUTED initialized = false; } #endif return status; } a001a808: e1a00003 mov r0, r3 <== NOT EXECUTED a001a80c: e28dd00c add sp, sp, #12 <== NOT EXECUTED a001a810: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED a001a814: e1a07000 mov r7, r0 <== NOT EXECUTED a001a818: eaffffb5 b a001a6f4 <== NOT EXECUTED =============================================================================== a001a044 : */ rtems_status_code rtems_timer_reset( rtems_id id ) { a001a044: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED a001a048: e24dd004 sub sp, sp, #4 <== NOT EXECUTED a001a04c: e1a01000 mov r1, r0 <== NOT EXECUTED a001a050: e1a0200d mov r2, sp <== NOT EXECUTED a001a054: e59f0088 ldr r0, [pc, #136] ; a001a0e4 <== NOT EXECUTED a001a058: eb000af5 bl a001cc34 <_Objects_Get> <== NOT EXECUTED Timer_Control *the_timer; Objects_Locations location; rtems_status_code status = RTEMS_SUCCESSFUL; the_timer = _Timer_Get( id, &location ); switch ( location ) { a001a05c: e59d4000 ldr r4, [sp] <== NOT EXECUTED a001a060: e1a06000 mov r6, r0 <== NOT EXECUTED a001a064: e3540000 cmp r4, #0 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a001a068: 13a05004 movne r5, #4 <== NOT EXECUTED Timer_Control *the_timer; Objects_Locations location; rtems_status_code status = RTEMS_SUCCESSFUL; the_timer = _Timer_Get( id, &location ); switch ( location ) { a001a06c: 1a000006 bne a001a08c <== NOT EXECUTED case OBJECTS_LOCAL: if ( the_timer->the_class == TIMER_INTERVAL ) { a001a070: e5905038 ldr r5, [r0, #56] ; 0x38 <== NOT EXECUTED a001a074: e3550000 cmp r5, #0 <== NOT EXECUTED a001a078: 0a000006 beq a001a098 <== NOT EXECUTED _Watchdog_Remove( &the_timer->Ticker ); _Watchdog_Insert( &_Watchdog_Ticks_chain, &the_timer->Ticker ); } else if ( the_timer->the_class == TIMER_INTERVAL_ON_TASK ) { a001a07c: e3550001 cmp r5, #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; a001a080: 13a0500b movne r5, #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 ) { a001a084: 0a00000b beq a001a0b8 <== 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(); a001a088: eb000e3c bl a001d980 <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a001a08c: e1a00005 mov r0, r5 <== NOT EXECUTED a001a090: e28dd004 add sp, sp, #4 <== NOT EXECUTED a001a094: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED the_timer = _Timer_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( the_timer->the_class == TIMER_INTERVAL ) { _Watchdog_Remove( &the_timer->Ticker ); a001a098: e2806010 add r6, r0, #16 <== NOT EXECUTED a001a09c: e1a00006 mov r0, r6 <== NOT EXECUTED a001a0a0: eb0012c7 bl a001ebc4 <_Watchdog_Remove> <== NOT EXECUTED _Watchdog_Insert( &_Watchdog_Ticks_chain, &the_timer->Ticker ); a001a0a4: e59f003c ldr r0, [pc, #60] ; a001a0e8 <== NOT EXECUTED a001a0a8: e1a01006 mov r1, r6 <== NOT EXECUTED a001a0ac: eb001255 bl a001ea08 <_Watchdog_Insert> <== 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(); a001a0b0: eb000e32 bl a001d980 <_Thread_Enable_dispatch> <== NOT EXECUTED a001a0b4: eafffff4 b a001a08c <== 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; a001a0b8: e59f302c ldr r3, [pc, #44] ; a001a0ec <== NOT EXECUTED if ( !timer_server ) { _Thread_Enable_dispatch(); return RTEMS_INCORRECT_STATE; } #endif _Watchdog_Remove( &the_timer->Ticker ); a001a0bc: 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; a001a0c0: e5935000 ldr r5, [r3] <== NOT EXECUTED if ( !timer_server ) { _Thread_Enable_dispatch(); return RTEMS_INCORRECT_STATE; } #endif _Watchdog_Remove( &the_timer->Ticker ); a001a0c4: eb0012be bl a001ebc4 <_Watchdog_Remove> <== NOT EXECUTED (*timer_server->schedule_operation)( timer_server, the_timer ); a001a0c8: e5953004 ldr r3, [r5, #4] <== NOT EXECUTED a001a0cc: e1a00005 mov r0, r5 <== NOT EXECUTED a001a0d0: e1a01006 mov r1, r6 <== NOT EXECUTED a001a0d4: e12fff33 blx r3 <== NOT EXECUTED rtems_id id ) { Timer_Control *the_timer; Objects_Locations location; rtems_status_code status = RTEMS_SUCCESSFUL; a001a0d8: e1a05004 mov r5, r4 <== 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(); a001a0dc: eb000e27 bl a001d980 <_Thread_Enable_dispatch> <== NOT EXECUTED a001a0e0: eaffffe9 b a001a08c <== NOT EXECUTED =============================================================================== a001a0f0 : rtems_id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { a001a0f0: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED a001a0f4: e1a06001 mov r6, r1 <== NOT EXECUTED Timer_Control *the_timer; Objects_Locations location; ISR_Level level; Timer_server_Control *timer_server = _Timer_server; a001a0f8: e59f10cc ldr r1, [pc, #204] ; a001a1cc <== NOT EXECUTED rtems_id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { a001a0fc: e1a07000 mov r7, r0 <== NOT EXECUTED a001a100: e24dd004 sub sp, sp, #4 <== NOT EXECUTED Timer_Control *the_timer; Objects_Locations location; ISR_Level level; Timer_server_Control *timer_server = _Timer_server; a001a104: e5914000 ldr r4, [r1] <== NOT EXECUTED rtems_id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { a001a108: e1a05002 mov r5, r2 <== NOT EXECUTED a001a10c: e1a08003 mov r8, r3 <== NOT EXECUTED Timer_Control *the_timer; Objects_Locations location; ISR_Level level; Timer_server_Control *timer_server = _Timer_server; if ( !timer_server ) a001a110: e3540000 cmp r4, #0 <== NOT EXECUTED return RTEMS_INCORRECT_STATE; a001a114: 03a0000e moveq r0, #14 <== NOT EXECUTED Timer_Control *the_timer; Objects_Locations location; ISR_Level level; Timer_server_Control *timer_server = _Timer_server; if ( !timer_server ) a001a118: 0a000005 beq a001a134 <== NOT EXECUTED return RTEMS_INCORRECT_STATE; if ( !routine ) a001a11c: e3520000 cmp r2, #0 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; a001a120: 03a00009 moveq r0, #9 <== NOT EXECUTED Timer_server_Control *timer_server = _Timer_server; if ( !timer_server ) return RTEMS_INCORRECT_STATE; if ( !routine ) a001a124: 0a000002 beq a001a134 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( ticks == 0 ) a001a128: e3560000 cmp r6, #0 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; a001a12c: 03a0000a moveq r0, #10 <== NOT EXECUTED return RTEMS_INCORRECT_STATE; if ( !routine ) return RTEMS_INVALID_ADDRESS; if ( ticks == 0 ) a001a130: 1a000001 bne a001a13c <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a001a134: e28dd004 add sp, sp, #4 <== NOT EXECUTED a001a138: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED a001a13c: e59f008c ldr r0, [pc, #140] ; a001a1d0 <== NOT EXECUTED a001a140: e1a01007 mov r1, r7 <== NOT EXECUTED a001a144: e1a0200d mov r2, sp <== NOT EXECUTED a001a148: eb000ab9 bl a001cc34 <_Objects_Get> <== NOT EXECUTED if ( ticks == 0 ) return RTEMS_INVALID_NUMBER; the_timer = _Timer_Get( id, &location ); switch ( location ) { a001a14c: e59d3000 ldr r3, [sp] <== NOT EXECUTED a001a150: e1a0a000 mov sl, r0 <== NOT EXECUTED a001a154: e3530000 cmp r3, #0 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a001a158: 13a00004 movne r0, #4 <== NOT EXECUTED if ( ticks == 0 ) return RTEMS_INVALID_NUMBER; the_timer = _Timer_Get( id, &location ); switch ( location ) { a001a15c: 1afffff4 bne a001a134 <== NOT EXECUTED case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); a001a160: e28a0010 add r0, sl, #16 <== NOT EXECUTED a001a164: eb001296 bl a001ebc4 <_Watchdog_Remove> <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a001a168: e10f2000 mrs r2, CPSR <== NOT EXECUTED a001a16c: e3823080 orr r3, r2, #128 ; 0x80 <== NOT EXECUTED a001a170: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED /* * Check to see if the watchdog has just been inserted by a * higher priority interrupt. If so, abandon this insert. */ if ( the_timer->Ticker.state != WATCHDOG_INACTIVE ) { a001a174: e59a3018 ldr r3, [sl, #24] <== NOT EXECUTED a001a178: e3530000 cmp r3, #0 <== NOT EXECUTED a001a17c: 1a00000e bne a001a1bc <== 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; a001a180: e3a01001 mov r1, #1 <== NOT EXECUTED a001a184: e58a1038 str r1, [sl, #56] ; 0x38 <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; a001a188: e58a3018 str r3, [sl, #24] <== NOT EXECUTED the_watchdog->routine = routine; a001a18c: e58a502c str r5, [sl, #44] ; 0x2c <== NOT EXECUTED the_watchdog->id = id; a001a190: e58a7030 str r7, [sl, #48] ; 0x30 <== NOT EXECUTED the_watchdog->user_data = user_data; a001a194: e58a8034 str r8, [sl, #52] ; 0x34 <== NOT EXECUTED _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); the_timer->Ticker.initial = ticks; a001a198: e58a601c str r6, [sl, #28] <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a001a19c: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED _ISR_Enable( level ); (*timer_server->schedule_operation)( timer_server, the_timer ); a001a1a0: e1a00004 mov r0, r4 <== NOT EXECUTED a001a1a4: e5943004 ldr r3, [r4, #4] <== NOT EXECUTED a001a1a8: e1a0100a mov r1, sl <== NOT EXECUTED a001a1ac: e12fff33 blx r3 <== NOT EXECUTED _Thread_Enable_dispatch(); a001a1b0: eb000df2 bl a001d980 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a001a1b4: e3a00000 mov r0, #0 <== NOT EXECUTED a001a1b8: eaffffdd b a001a134 <== NOT EXECUTED a001a1bc: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED * higher priority interrupt. If so, abandon this insert. */ if ( the_timer->Ticker.state != WATCHDOG_INACTIVE ) { _ISR_Enable( level ); _Thread_Enable_dispatch(); a001a1c0: eb000dee bl a001d980 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a001a1c4: e3a00000 mov r0, #0 <== NOT EXECUTED a001a1c8: eaffffd9 b a001a134 <== NOT EXECUTED =============================================================================== a001a1d4 : rtems_id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) { a001a1d4: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED a001a1d8: e1a07001 mov r7, r1 <== NOT EXECUTED Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; Timer_server_Control *timer_server = _Timer_server; a001a1dc: e59f10e0 ldr r1, [pc, #224] ; a001a2c4 <== NOT EXECUTED rtems_id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) { a001a1e0: e1a06000 mov r6, r0 <== NOT EXECUTED a001a1e4: e24dd004 sub sp, sp, #4 <== NOT EXECUTED Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; Timer_server_Control *timer_server = _Timer_server; a001a1e8: e5914000 ldr r4, [r1] <== NOT EXECUTED rtems_id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) { a001a1ec: e1a05002 mov r5, r2 <== NOT EXECUTED a001a1f0: e1a08003 mov r8, r3 <== NOT EXECUTED Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; Timer_server_Control *timer_server = _Timer_server; if ( !timer_server ) a001a1f4: e3540000 cmp r4, #0 <== NOT EXECUTED return RTEMS_INCORRECT_STATE; a001a1f8: 03a0000e moveq r0, #14 <== NOT EXECUTED Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; Timer_server_Control *timer_server = _Timer_server; if ( !timer_server ) a001a1fc: 0a00000c beq a001a234 <== NOT EXECUTED return RTEMS_INCORRECT_STATE; if ( !_TOD_Is_set ) a001a200: e59f30c0 ldr r3, [pc, #192] ; a001a2c8 <== NOT EXECUTED a001a204: e5d33000 ldrb r3, [r3] <== NOT EXECUTED a001a208: e3530000 cmp r3, #0 <== NOT EXECUTED return RTEMS_NOT_DEFINED; a001a20c: 03a0000b moveq r0, #11 <== NOT EXECUTED Timer_server_Control *timer_server = _Timer_server; if ( !timer_server ) return RTEMS_INCORRECT_STATE; if ( !_TOD_Is_set ) a001a210: 0a000007 beq a001a234 <== NOT EXECUTED return RTEMS_NOT_DEFINED; if ( !routine ) a001a214: e3520000 cmp r2, #0 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; a001a218: 03a00009 moveq r0, #9 <== NOT EXECUTED return RTEMS_INCORRECT_STATE; if ( !_TOD_Is_set ) return RTEMS_NOT_DEFINED; if ( !routine ) a001a21c: 0a000004 beq a001a234 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !_TOD_Validate( wall_time ) ) a001a220: e1a00007 mov r0, r7 <== NOT EXECUTED a001a224: ebfff3e1 bl a00171b0 <_TOD_Validate> <== NOT EXECUTED a001a228: e3500000 cmp r0, #0 <== NOT EXECUTED a001a22c: 1a000002 bne a001a23c <== NOT EXECUTED return RTEMS_INVALID_CLOCK; seconds = _TOD_To_seconds( wall_time ); if ( seconds <= _TOD_Seconds_since_epoch() ) return RTEMS_INVALID_CLOCK; a001a230: e3a00014 mov r0, #20 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a001a234: e28dd004 add sp, sp, #4 <== NOT EXECUTED a001a238: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !_TOD_Validate( wall_time ) ) return RTEMS_INVALID_CLOCK; seconds = _TOD_To_seconds( wall_time ); a001a23c: e1a00007 mov r0, r7 <== NOT EXECUTED a001a240: ebfff3b3 bl a0017114 <_TOD_To_seconds> <== NOT EXECUTED if ( seconds <= _TOD_Seconds_since_epoch() ) a001a244: e59fa080 ldr sl, [pc, #128] ; a001a2cc <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !_TOD_Validate( wall_time ) ) return RTEMS_INVALID_CLOCK; seconds = _TOD_To_seconds( wall_time ); a001a248: e1a07000 mov r7, r0 <== NOT EXECUTED if ( seconds <= _TOD_Seconds_since_epoch() ) a001a24c: e59a3000 ldr r3, [sl] <== NOT EXECUTED a001a250: e1500003 cmp r0, r3 <== NOT EXECUTED a001a254: 9afffff5 bls a001a230 <== NOT EXECUTED a001a258: e59f0070 ldr r0, [pc, #112] ; a001a2d0 <== NOT EXECUTED a001a25c: e1a01006 mov r1, r6 <== NOT EXECUTED a001a260: e1a0200d mov r2, sp <== NOT EXECUTED a001a264: eb000a72 bl a001cc34 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_CLOCK; the_timer = _Timer_Get( id, &location ); switch ( location ) { a001a268: e59d9000 ldr r9, [sp] <== NOT EXECUTED a001a26c: e1a0b000 mov fp, r0 <== NOT EXECUTED a001a270: e3590000 cmp r9, #0 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a001a274: 13a00004 movne r0, #4 <== NOT EXECUTED seconds = _TOD_To_seconds( wall_time ); if ( seconds <= _TOD_Seconds_since_epoch() ) return RTEMS_INVALID_CLOCK; the_timer = _Timer_Get( id, &location ); switch ( location ) { a001a278: 1affffed bne a001a234 <== NOT EXECUTED case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); a001a27c: e28b0010 add r0, fp, #16 <== NOT EXECUTED a001a280: eb00124f bl a001ebc4 <_Watchdog_Remove> <== NOT EXECUTED the_timer->the_class = TIMER_TIME_OF_DAY_ON_TASK; _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); the_timer->Ticker.initial = seconds - _TOD_Seconds_since_epoch(); a001a284: e59a3000 ldr r3, [sl] <== NOT EXECUTED the_timer = _Timer_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); the_timer->the_class = TIMER_TIME_OF_DAY_ON_TASK; a001a288: e3a02003 mov r2, #3 <== NOT EXECUTED _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); the_timer->Ticker.initial = seconds - _TOD_Seconds_since_epoch(); (*timer_server->schedule_operation)( timer_server, the_timer ); a001a28c: e1a00004 mov r0, r4 <== NOT EXECUTED case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); the_timer->the_class = TIMER_TIME_OF_DAY_ON_TASK; _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); the_timer->Ticker.initial = seconds - _TOD_Seconds_since_epoch(); a001a290: e0637007 rsb r7, r3, r7 <== NOT EXECUTED the_timer = _Timer_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); the_timer->the_class = TIMER_TIME_OF_DAY_ON_TASK; a001a294: e58b2038 str r2, [fp, #56] ; 0x38 <== NOT EXECUTED _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); the_timer->Ticker.initial = seconds - _TOD_Seconds_since_epoch(); (*timer_server->schedule_operation)( timer_server, the_timer ); a001a298: e5943004 ldr r3, [r4, #4] <== NOT EXECUTED a001a29c: e1a0100b mov r1, fp <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; a001a2a0: e58b9018 str r9, [fp, #24] <== NOT EXECUTED the_watchdog->routine = routine; a001a2a4: e58b502c str r5, [fp, #44] ; 0x2c <== NOT EXECUTED the_watchdog->id = id; a001a2a8: e58b6030 str r6, [fp, #48] ; 0x30 <== NOT EXECUTED the_watchdog->user_data = user_data; a001a2ac: e58b8034 str r8, [fp, #52] ; 0x34 <== NOT EXECUTED case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); the_timer->the_class = TIMER_TIME_OF_DAY_ON_TASK; _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); the_timer->Ticker.initial = seconds - _TOD_Seconds_since_epoch(); a001a2b0: e58b701c str r7, [fp, #28] <== NOT EXECUTED (*timer_server->schedule_operation)( timer_server, the_timer ); a001a2b4: e12fff33 blx r3 <== NOT EXECUTED _Thread_Enable_dispatch(); a001a2b8: eb000db0 bl a001d980 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a001a2bc: e1a00009 mov r0, r9 <== NOT EXECUTED a001a2c0: eaffffdb b a001a234 <== NOT EXECUTED =============================================================================== a000a5e0 : */ bool rtems_workspace_allocate( uintptr_t bytes, void **pointer ) { a000a5e0: e92d4010 push {r4, lr} <== NOT EXECUTED void *ptr; /* * check the arguments */ if ( !pointer ) a000a5e4: e2514000 subs r4, r1, #0 <== NOT EXECUTED */ bool rtems_workspace_allocate( uintptr_t bytes, void **pointer ) { a000a5e8: e1a01000 mov r1, r0 <== NOT EXECUTED void *ptr; /* * check the arguments */ if ( !pointer ) a000a5ec: 0a00000c beq a000a624 <== NOT EXECUTED return false; if ( !bytes ) a000a5f0: e3500000 cmp r0, #0 <== NOT EXECUTED return false; a000a5f4: 01a00000 moveq r0, r0 <== NOT EXECUTED * check the arguments */ if ( !pointer ) return false; if ( !bytes ) a000a5f8: 1a000000 bne a000a600 <== NOT EXECUTED if (!ptr) return false; *pointer = ptr; return true; } a000a5fc: e8bd8010 pop {r4, pc} <== NOT EXECUTED RTEMS_INLINE_ROUTINE void *_Protected_heap_Allocate( Heap_Control *heap, uintptr_t size ) { return _Protected_heap_Allocate_aligned_with_boundary( heap, size, 0, 0 ); a000a600: e3a02000 mov r2, #0 <== NOT EXECUTED a000a604: e59f0020 ldr r0, [pc, #32] ; a000a62c <== NOT EXECUTED a000a608: e1a03002 mov r3, r2 <== NOT EXECUTED a000a60c: eb000593 bl a000bc60 <_Protected_heap_Allocate_aligned_with_boundary><== NOT EXECUTED /* * Allocate the memory */ ptr = _Protected_heap_Allocate( &_Workspace_Area, (intptr_t) bytes ); if (!ptr) a000a610: e3500000 cmp r0, #0 <== NOT EXECUTED a000a614: 0afffff8 beq a000a5fc <== NOT EXECUTED return false; *pointer = ptr; a000a618: e5840000 str r0, [r4] <== NOT EXECUTED return true; a000a61c: e3a00001 mov r0, #1 <== NOT EXECUTED a000a620: e8bd8010 pop {r4, pc} <== NOT EXECUTED /* * check the arguments */ if ( !pointer ) return false; a000a624: e1a00004 mov r0, r4 <== NOT EXECUTED a000a628: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a000a630 : * _Workspace_Allocate */ bool rtems_workspace_free( void *pointer ) { a000a630: e1a01000 mov r1, r0 <== NOT EXECUTED return _Protected_heap_Free( &_Workspace_Area, pointer ); a000a634: e59f0000 ldr r0, [pc, #0] ; a000a63c <== NOT EXECUTED a000a638: ea00059b b a000bcac <_Protected_heap_Free> <== NOT EXECUTED =============================================================================== a000a5cc : bool rtems_workspace_get_information( Heap_Information_block *the_info ) { if ( !the_info ) a000a5cc: e2501000 subs r1, r0, #0 <== NOT EXECUTED a000a5d0: 012fff1e bxeq lr <== NOT EXECUTED return false; return _Protected_heap_Get_information( &_Workspace_Area, the_info ); a000a5d4: e59f0000 ldr r0, [pc, #0] ; a000a5dc <== NOT EXECUTED a000a5d8: ea0005c2 b a000bce8 <_Protected_heap_Get_information> <== NOT EXECUTED