=============================================================================== a000f268 : uint32_t TOD_MICROSECONDS_TO_TICKS( uint32_t microseconds ) { return (microseconds / rtems_configuration_get_microseconds_per_tick()); a000f268: e59f300c ldr r3, [pc, #12] ; a000f27c <== NOT EXECUTED #include uint32_t TOD_MICROSECONDS_TO_TICKS( uint32_t microseconds ) { a000f26c: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED return (microseconds / rtems_configuration_get_microseconds_per_tick()); a000f270: e593100c ldr r1, [r3, #12] <== NOT EXECUTED a000f274: eb004c7f bl a0022478 <__aeabi_uidiv> <== NOT EXECUTED } a000f278: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED =============================================================================== a000ae50 : uint32_t TOD_MILLISECONDS_TO_TICKS( uint32_t milliseconds ) { return (milliseconds / rtems_configuration_get_milliseconds_per_tick()); a000ae50: e59f3020 ldr r3, [pc, #32] ; a000ae78 <== NOT EXECUTED #include uint32_t TOD_MILLISECONDS_TO_TICKS( uint32_t milliseconds ) { a000ae54: e92d4010 push {r4, lr} <== NOT EXECUTED return (milliseconds / rtems_configuration_get_milliseconds_per_tick()); a000ae58: e3a01ffa mov r1, #1000 ; 0x3e8 <== NOT EXECUTED #include uint32_t TOD_MILLISECONDS_TO_TICKS( uint32_t milliseconds ) { a000ae5c: e1a04000 mov r4, r0 <== NOT EXECUTED return (milliseconds / rtems_configuration_get_milliseconds_per_tick()); a000ae60: e593000c ldr r0, [r3, #12] <== NOT EXECUTED a000ae64: eb003ea2 bl a001a8f4 <__aeabi_uidiv> <== NOT EXECUTED a000ae68: e1a01000 mov r1, r0 <== NOT EXECUTED a000ae6c: e1a00004 mov r0, r4 <== NOT EXECUTED a000ae70: eb003e9f bl a001a8f4 <__aeabi_uidiv> <== NOT EXECUTED } a000ae74: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a0020c9c : #include #include uint32_t TOD_TICKS_PER_SECOND_method(void) { return (TOD_MICROSECONDS_PER_SECOND / a0020c9c: e59f3010 ldr r3, [pc, #16] ; a0020cb4 <== NOT EXECUTED #include #include #include uint32_t TOD_TICKS_PER_SECOND_method(void) { a0020ca0: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED return (TOD_MICROSECONDS_PER_SECOND / a0020ca4: e593100c ldr r1, [r3, #12] <== NOT EXECUTED a0020ca8: e59f0008 ldr r0, [pc, #8] ; a0020cb8 <== NOT EXECUTED a0020cac: ebfff5e6 bl a001e44c <__aeabi_uidiv> <== NOT EXECUTED rtems_configuration_get_microseconds_per_tick()); } a0020cb0: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED =============================================================================== a0011b34 <_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]; } a0011b34: e59f3004 ldr r3, [pc, #4] ; a0011b40 <_Barrier_Translate_core_barrier_return_code+0xc><== NOT EXECUTED a0011b38: e7930100 ldr r0, [r3, r0, lsl #2] <== NOT EXECUTED a0011b3c: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a0011184 <_CORE_barrier_Initialize>: CORE_barrier_Control *the_barrier, CORE_barrier_Attributes *the_barrier_attributes ) { the_barrier->Attributes = *the_barrier_attributes; a0011184: e8910006 ldm r1, {r1, r2} <== NOT EXECUTED the_barrier->number_of_waiting_threads = 0; _Thread_queue_Initialize( a0011188: e3a03003 mov r3, #3 <== NOT EXECUTED CORE_barrier_Control *the_barrier, CORE_barrier_Attributes *the_barrier_attributes ) { the_barrier->Attributes = *the_barrier_attributes; a001118c: e5801040 str r1, [r0, #64] ; 0x40 <== NOT EXECUTED a0011190: e5802044 str r2, [r0, #68] ; 0x44 <== NOT EXECUTED the_barrier->number_of_waiting_threads = 0; a0011194: e3a01000 mov r1, #0 <== NOT EXECUTED _Thread_queue_Initialize( a0011198: e3a02801 mov r2, #65536 ; 0x10000 <== NOT EXECUTED CORE_barrier_Attributes *the_barrier_attributes ) { the_barrier->Attributes = *the_barrier_attributes; the_barrier->number_of_waiting_threads = 0; a001119c: e5801048 str r1, [r0, #72] ; 0x48 <== NOT EXECUTED _Thread_queue_Initialize( a00111a0: eafff2a7 b a000dc44 <_Thread_queue_Initialize> <== NOT EXECUTED =============================================================================== a00111a4 <_CORE_barrier_Release>: #else Objects_Id id __attribute__((unused)), CORE_barrier_API_mp_support_callout api_barrier_mp_support __attribute__((unused)) #endif ) { a00111a4: e92d4030 push {r4, r5, lr} <== NOT EXECUTED a00111a8: e1a05000 mov r5, r0 <== NOT EXECUTED Thread_Control *the_thread; uint32_t count; count = 0; a00111ac: e3a04000 mov r4, #0 <== NOT EXECUTED while ( (the_thread = _Thread_queue_Dequeue(&the_barrier->Wait_queue)) ) { a00111b0: ea000000 b a00111b8 <_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++; a00111b4: 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)) ) { a00111b8: e1a00005 mov r0, r5 <== NOT EXECUTED a00111bc: ebfff1a2 bl a000d84c <_Thread_queue_Dequeue> <== NOT EXECUTED a00111c0: e3500000 cmp r0, #0 <== NOT EXECUTED a00111c4: 1afffffa bne a00111b4 <_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; a00111c8: e5850048 str r0, [r5, #72] ; 0x48 <== NOT EXECUTED return count; } a00111cc: e1a00004 mov r0, r4 <== NOT EXECUTED a00111d0: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED =============================================================================== a00111d4 <_CORE_barrier_Wait>: ) { Thread_Control *executing; ISR_Level level; executing = _Thread_Executing; a00111d4: e59fc078 ldr ip, [pc, #120] ; a0011254 <_CORE_barrier_Wait+0x80><== NOT EXECUTED Objects_Id id, bool wait, Watchdog_Interval timeout, CORE_barrier_API_mp_support_callout api_barrier_mp_support ) { a00111d8: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED Thread_Control *executing; ISR_Level level; executing = _Thread_Executing; a00111dc: e59cc004 ldr ip, [ip, #4] <== NOT EXECUTED executing->Wait.return_code = CORE_BARRIER_STATUS_SUCCESSFUL; a00111e0: e3a04000 mov r4, #0 <== NOT EXECUTED Objects_Id id, bool wait, Watchdog_Interval timeout, CORE_barrier_API_mp_support_callout api_barrier_mp_support ) { a00111e4: e59d2010 ldr r2, [sp, #16] <== NOT EXECUTED Thread_Control *executing; ISR_Level level; executing = _Thread_Executing; executing->Wait.return_code = CORE_BARRIER_STATUS_SUCCESSFUL; a00111e8: 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 ( a00111ec: e10f4000 mrs r4, CPSR <== NOT EXECUTED a00111f0: e3845080 orr r5, r4, #128 ; 0x80 <== NOT EXECUTED a00111f4: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED _ISR_Disable( level ); the_barrier->number_of_waiting_threads++; a00111f8: e5905048 ldr r5, [r0, #72] ; 0x48 <== NOT EXECUTED if ( _CORE_barrier_Is_automatic( &the_barrier->Attributes ) ) { a00111fc: e5906040 ldr r6, [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++; a0011200: e2855001 add r5, r5, #1 <== NOT EXECUTED if ( _CORE_barrier_Is_automatic( &the_barrier->Attributes ) ) { a0011204: e3560000 cmp r6, #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++; a0011208: e5805048 str r5, [r0, #72] ; 0x48 <== NOT EXECUTED if ( _CORE_barrier_Is_automatic( &the_barrier->Attributes ) ) { a001120c: 1a000007 bne a0011230 <_CORE_barrier_Wait+0x5c> <== NOT EXECUTED if ( the_barrier->number_of_waiting_threads == a0011210: e5906044 ldr r6, [r0, #68] ; 0x44 <== NOT EXECUTED a0011214: e1550006 cmp r5, r6 <== NOT EXECUTED a0011218: 1a000004 bne a0011230 <_CORE_barrier_Wait+0x5c> <== NOT EXECUTED the_barrier->Attributes.maximum_count) { executing->Wait.return_code = CORE_BARRIER_STATUS_AUTOMATICALLY_RELEASED; a001121c: e3a03001 mov r3, #1 <== NOT EXECUTED a0011220: e58c3034 str r3, [ip, #52] ; 0x34 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a0011224: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED executing->Wait.queue = &the_barrier->Wait_queue; executing->Wait.id = id; _ISR_Enable( level ); _Thread_queue_Enqueue( &the_barrier->Wait_queue, timeout ); } a0011228: e8bd4070 pop {r4, r5, r6, lr} <== 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 ); a001122c: eaffffdc b a00111a4 <_CORE_barrier_Release> <== NOT EXECUTED a0011230: e3a02001 mov r2, #1 <== NOT EXECUTED a0011234: 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; a0011238: e58c0044 str r0, [ip, #68] ; 0x44 <== NOT EXECUTED executing->Wait.id = id; a001123c: e58c1020 str r1, [ip, #32] <== NOT EXECUTED a0011240: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED _ISR_Enable( level ); _Thread_queue_Enqueue( &the_barrier->Wait_queue, timeout ); a0011244: e59f200c ldr r2, [pc, #12] ; a0011258 <_CORE_barrier_Wait+0x84><== NOT EXECUTED a0011248: e1a01003 mov r1, r3 <== NOT EXECUTED } a001124c: e8bd4070 pop {r4, r5, r6, lr} <== 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 ); a0011250: eafff1d7 b a000d9b4 <_Thread_queue_Enqueue_with_handler> <== NOT EXECUTED =============================================================================== a0019150 <_CORE_message_queue_Broadcast>: { Thread_Control *the_thread; uint32_t number_broadcasted; Thread_Wait_information *waitp; if ( size > the_message_queue->maximum_message_size ) { a0019150: 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 ) { a0019154: 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 ) { a0019158: e1520003 cmp r2, r3 <== 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 ) { a001915c: e1a06000 mov r6, r0 <== NOT EXECUTED a0019160: e1a0a001 mov sl, r1 <== NOT EXECUTED a0019164: e1a07002 mov r7, r2 <== NOT EXECUTED a0019168: e59d8020 ldr r8, [sp, #32] <== NOT EXECUTED Thread_Control *the_thread; uint32_t number_broadcasted; Thread_Wait_information *waitp; if ( size > the_message_queue->maximum_message_size ) { a001916c: 8a000013 bhi a00191c0 <_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 ) { a0019170: e5905048 ldr r5, [r0, #72] ; 0x48 <== NOT EXECUTED a0019174: e3550000 cmp r5, #0 <== NOT EXECUTED a0019178: 0a000009 beq a00191a4 <_CORE_message_queue_Broadcast+0x54> <== NOT EXECUTED *count = 0; a001917c: e3a00000 mov r0, #0 <== NOT EXECUTED a0019180: e5880000 str r0, [r8] <== NOT EXECUTED return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; a0019184: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED const void *source, void *destination, size_t size ) { memcpy(destination, source, size); a0019188: e594002c ldr r0, [r4, #44] ; 0x2c <== NOT EXECUTED a001918c: e1a0100a mov r1, sl <== NOT EXECUTED a0019190: e1a02007 mov r2, r7 <== NOT EXECUTED a0019194: eb001e1f bl a0020a18 <== NOT EXECUTED buffer, waitp->return_argument_second.mutable_object, size ); *(size_t *) the_thread->Wait.return_argument = size; a0019198: 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; a001919c: e2855001 add r5, r5, #1 <== NOT EXECUTED buffer, waitp->return_argument_second.mutable_object, size ); *(size_t *) the_thread->Wait.return_argument = size; a00191a0: e5837000 str r7, [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 = a00191a4: e1a00006 mov r0, r6 <== NOT EXECUTED a00191a8: eb000a9c bl a001bc20 <_Thread_queue_Dequeue> <== NOT EXECUTED a00191ac: e2504000 subs r4, r0, #0 <== NOT EXECUTED a00191b0: 1afffff4 bne a0019188 <_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; a00191b4: e5885000 str r5, [r8] <== NOT EXECUTED return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; a00191b8: e1a00004 mov r0, r4 <== NOT EXECUTED a00191bc: 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; a00191c0: e3a00001 mov r0, #1 <== NOT EXECUTED #endif } *count = number_broadcasted; return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; } a00191c4: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED =============================================================================== a000f5c0 <_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 ) { a000f5c0: e92d4010 push {r4, lr} <== NOT EXECUTED a000f5c4: e1a04000 mov r4, r0 <== NOT EXECUTED /* * This will flush blocked threads whether they were blocked on * a send or receive. */ _Thread_queue_Flush( a000f5c8: ebfff4b0 bl a000c890 <_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 ) a000f5cc: e5943048 ldr r3, [r4, #72] ; 0x48 <== NOT EXECUTED a000f5d0: e3530000 cmp r3, #0 <== NOT EXECUTED a000f5d4: 0a000001 beq a000f5e0 <_CORE_message_queue_Close+0x20> <== NOT EXECUTED (void) _CORE_message_queue_Flush_support( the_message_queue ); a000f5d8: e1a00004 mov r0, r4 <== NOT EXECUTED a000f5dc: eb000002 bl a000f5ec <_CORE_message_queue_Flush_support> <== NOT EXECUTED (void) _Workspace_Free( the_message_queue->message_buffers ); a000f5e0: e594005c ldr r0, [r4, #92] ; 0x5c <== NOT EXECUTED } a000f5e4: 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 ); a000f5e8: eafff707 b a000d20c <_Workspace_Free> <== NOT EXECUTED =============================================================================== a00191f4 <_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 ) a00191f4: e5903048 ldr r3, [r0, #72] ; 0x48 <== NOT EXECUTED a00191f8: e3530000 cmp r3, #0 <== NOT EXECUTED a00191fc: 0a000000 beq a0019204 <_CORE_message_queue_Flush+0x10> <== NOT EXECUTED return _CORE_message_queue_Flush_support( the_message_queue ); a0019200: ea000001 b a001920c <_CORE_message_queue_Flush_support> <== NOT EXECUTED else return 0; } a0019204: e1a00003 mov r0, r3 <== NOT EXECUTED a0019208: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000f5ec <_CORE_message_queue_Flush_support>: */ uint32_t _CORE_message_queue_Flush_support( CORE_message_queue_Control *the_message_queue ) { a000f5ec: e92d4010 push {r4, lr} <== NOT EXECUTED a000f5f0: e1a03000 mov r3, r0 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000f5f4: e10f4000 mrs r4, CPSR <== NOT EXECUTED a000f5f8: e3842080 orr r2, r4, #128 ; 0x80 <== NOT EXECUTED a000f5fc: 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; } a000f600: e5931050 ldr r1, [r3, #80] ; 0x50 <== 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;; a000f604: e5900060 ldr r0, [r0, #96] ; 0x60 <== NOT EXECUTED count = the_message_queue->number_of_pending_messages; the_message_queue->number_of_pending_messages = 0; _ISR_Enable( level ); return count; } a000f608: e593c058 ldr ip, [r3, #88] ; 0x58 <== NOT EXECUTED inactive_head = _Chain_Head( &the_message_queue->Inactive_messages ); 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; a000f60c: e1a02003 mov r2, r3 <== NOT EXECUTED a000f610: e5a21060 str r1, [r2, #96]! ; 0x60 <== NOT EXECUTED message_queue_last->next = inactive_first; inactive_first->previous = message_queue_last; a000f614: e580c004 str ip, [r0, #4] <== NOT EXECUTED message_queue_first->previous = inactive_head; a000f618: e5812004 str r2, [r1, #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 ); a000f61c: e2832054 add r2, r3, #84 ; 0x54 <== 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; a000f620: e58c0000 str r0, [ip] <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { Chain_Node *head = _Chain_Head( the_chain ); a000f624: e2831050 add r1, r3, #80 ; 0x50 <== NOT EXECUTED Chain_Node *tail = _Chain_Tail( the_chain ); head->next = tail; a000f628: e5832050 str r2, [r3, #80] ; 0x50 <== NOT EXECUTED head->previous = NULL; a000f62c: e3a02000 mov r2, #0 <== NOT EXECUTED inactive_first->previous = message_queue_last; message_queue_first->previous = inactive_head; _Chain_Initialize_empty( &the_message_queue->Pending_messages ); count = the_message_queue->number_of_pending_messages; a000f630: e5930048 ldr r0, [r3, #72] ; 0x48 <== NOT EXECUTED a000f634: e5832054 str r2, [r3, #84] ; 0x54 <== NOT EXECUTED tail->previous = head; a000f638: e5831058 str r1, [r3, #88] ; 0x58 <== NOT EXECUTED the_message_queue->number_of_pending_messages = 0; a000f63c: e5832048 str r2, [r3, #72] ; 0x48 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000f640: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED _ISR_Enable( level ); return count; } a000f644: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a0012160 <_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 ) { a0012160: e92d40f0 push {r4, r5, r6, r7, 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)) { a0012164: 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 ) { a0012168: 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; a001216c: 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 ) { a0012170: e1a06002 mov r6, r2 <== NOT EXECUTED size_t message_buffering_required; size_t allocated_message_size; the_message_queue->maximum_pending_messages = maximum_pending_messages; a0012174: e5842044 str r2, [r4, #68] ; 0x44 <== 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 ) { a0012178: e1a05001 mov r5, r1 <== 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; a001217c: e5840048 str r0, [r4, #72] ; 0x48 <== NOT EXECUTED the_message_queue->maximum_message_size = maximum_message_size; a0012180: 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)) { a0012184: 01a02003 moveq r2, r3 <== NOT EXECUTED a0012188: 0a000003 beq a001219c <_CORE_message_queue_Initialize+0x3c><== NOT EXECUTED allocated_message_size += sizeof(uint32_t); a001218c: e2832004 add r2, r3, #4 <== NOT EXECUTED allocated_message_size &= ~(sizeof(uint32_t) - 1); a0012190: e3c22003 bic r2, r2, #3 <== NOT EXECUTED } if (allocated_message_size < maximum_message_size) a0012194: e1520003 cmp r2, r3 <== NOT EXECUTED a0012198: 3a00001e bcc a0012218 <_CORE_message_queue_Initialize+0xb8><== 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)); a001219c: e2827010 add r7, r2, #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 * a00121a0: e0000796 mul r0, r6, r7 <== NOT EXECUTED (allocated_message_size + sizeof(CORE_message_queue_Buffer_control)); if (message_buffering_required < allocated_message_size) a00121a4: e1500002 cmp r0, r2 <== NOT EXECUTED a00121a8: 3a000018 bcc a0012210 <_CORE_message_queue_Initialize+0xb0><== NOT EXECUTED /* * Attempt to allocate the message memory */ the_message_queue->message_buffers = (CORE_message_queue_Buffer *) _Workspace_Allocate( message_buffering_required ); a00121ac: eb000b2a bl a0014e5c <_Workspace_Allocate> <== NOT EXECUTED if (the_message_queue->message_buffers == 0) a00121b0: 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 ); a00121b4: e1a01000 mov r1, r0 <== NOT EXECUTED return false; /* * Attempt to allocate the message memory */ the_message_queue->message_buffers = (CORE_message_queue_Buffer *) a00121b8: e584005c str r0, [r4, #92] ; 0x5c <== NOT EXECUTED _Workspace_Allocate( message_buffering_required ); if (the_message_queue->message_buffers == 0) a00121bc: 0a000015 beq a0012218 <_CORE_message_queue_Initialize+0xb8><== NOT EXECUTED /* * Initialize the pool of inactive messages, pending messages, * and set of waiting threads. */ _Chain_Initialize ( a00121c0: e2840060 add r0, r4, #96 ; 0x60 <== NOT EXECUTED a00121c4: e1a02006 mov r2, r6 <== NOT EXECUTED a00121c8: e1a03007 mov r3, r7 <== NOT EXECUTED a00121cc: eb001267 bl a0016b70 <_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 ); a00121d0: e2843054 add r3, r4, #84 ; 0x54 <== NOT EXECUTED head->next = tail; a00121d4: e5843050 str r3, [r4, #80] ; 0x50 <== NOT EXECUTED head->previous = NULL; a00121d8: e3a03000 mov r3, #0 <== NOT EXECUTED a00121dc: e5843054 str r3, [r4, #84] ; 0x54 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { Chain_Node *head = _Chain_Head( the_chain ); a00121e0: e2843050 add r3, r4, #80 ; 0x50 <== NOT EXECUTED Chain_Node *tail = _Chain_Tail( the_chain ); head->next = tail; head->previous = NULL; tail->previous = head; a00121e4: 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( a00121e8: e5951000 ldr r1, [r5] <== NOT EXECUTED a00121ec: e1a00004 mov r0, r4 <== NOT EXECUTED a00121f0: e3a02080 mov r2, #128 ; 0x80 <== NOT EXECUTED a00121f4: e3510001 cmp r1, #1 <== NOT EXECUTED a00121f8: 13a01000 movne r1, #0 <== NOT EXECUTED a00121fc: 03a01001 moveq r1, #1 <== NOT EXECUTED a0012200: e3a03006 mov r3, #6 <== NOT EXECUTED a0012204: eb0008c5 bl a0014520 <_Thread_queue_Initialize> <== NOT EXECUTED THREAD_QUEUE_DISCIPLINE_PRIORITY : THREAD_QUEUE_DISCIPLINE_FIFO, STATES_WAITING_FOR_MESSAGE, CORE_MESSAGE_QUEUE_STATUS_TIMEOUT ); return true; a0012208: e3a00001 mov r0, #1 <== NOT EXECUTED a001220c: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED */ message_buffering_required = (size_t) maximum_pending_messages * (allocated_message_size + sizeof(CORE_message_queue_Buffer_control)); if (message_buffering_required < allocated_message_size) return false; a0012210: e3a00000 mov r0, #0 <== NOT EXECUTED a0012214: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED STATES_WAITING_FOR_MESSAGE, CORE_MESSAGE_QUEUE_STATUS_TIMEOUT ); return true; } a0012218: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED =============================================================================== a0016bb0 <_CORE_message_queue_Insert_message>: static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a0016bb0: e10fc000 mrs ip, CPSR <== NOT EXECUTED a0016bb4: e38c3080 orr r3, ip, #128 ; 0x80 <== NOT EXECUTED a0016bb8: 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++; a0016bbc: e5903048 ldr r3, [r0, #72] ; 0x48 <== NOT EXECUTED if ( submit_type == CORE_MESSAGE_QUEUE_SEND_REQUEST ) a0016bc0: 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++; a0016bc4: e2833001 add r3, r3, #1 <== NOT EXECUTED a0016bc8: e5803048 str r3, [r0, #72] ; 0x48 <== NOT EXECUTED if ( submit_type == CORE_MESSAGE_QUEUE_SEND_REQUEST ) a0016bcc: 1a000006 bne a0016bec <_CORE_message_queue_Insert_message+0x3c><== NOT EXECUTED Chain_Control *the_chain, Chain_Node *the_node ) { Chain_Node *tail = _Chain_Tail( the_chain ); Chain_Node *old_last = tail->previous; a0016bd0: 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 ); a0016bd4: e2802054 add r2, r0, #84 ; 0x54 <== NOT EXECUTED Chain_Node *old_last = tail->previous; the_node->next = tail; a0016bd8: e5812000 str r2, [r1] <== NOT EXECUTED tail->previous = the_node; a0016bdc: e5801058 str r1, [r0, #88] ; 0x58 <== NOT EXECUTED old_last->next = the_node; a0016be0: e5831000 str r1, [r3] <== NOT EXECUTED the_node->previous = old_last; a0016be4: e5813004 str r3, [r1, #4] <== NOT EXECUTED a0016be8: ea000005 b a0016c04 <_CORE_message_queue_Insert_message+0x54><== 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); a0016bec: e2803050 add r3, r0, #80 ; 0x50 <== NOT EXECUTED Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; a0016bf0: e5813004 str r3, [r1, #4] <== NOT EXECUTED before_node = after_node->next; a0016bf4: e5903050 ldr r3, [r0, #80] ; 0x50 <== NOT EXECUTED after_node->next = the_node; a0016bf8: e5801050 str r1, [r0, #80] ; 0x50 <== NOT EXECUTED the_node->next = before_node; before_node->previous = the_node; a0016bfc: 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; a0016c00: e5813000 str r3, [r1] <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a0016c04: 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 } a0016c08: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a001221c <_CORE_message_queue_Seize>: void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) { a001221c: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED a0012220: e1a04000 mov r4, r0 <== NOT EXECUTED ISR_Level level; CORE_message_queue_Buffer_control *the_message; Thread_Control *executing; executing = _Thread_Executing; a0012224: e59f00d4 ldr r0, [pc, #212] ; a0012300 <_CORE_message_queue_Seize+0xe4><== NOT EXECUTED executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; a0012228: e3a05000 mov r5, #0 <== NOT EXECUTED void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) { a001222c: e59dc020 ldr ip, [sp, #32] <== NOT EXECUTED ISR_Level level; CORE_message_queue_Buffer_control *the_message; Thread_Control *executing; executing = _Thread_Executing; a0012230: e5900004 ldr r0, [r0, #4] <== NOT EXECUTED void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) { a0012234: e5dda01c ldrb sl, [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; a0012238: e5805034 str r5, [r0, #52] ; 0x34 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a001223c: e10f6000 mrs r6, CPSR <== NOT EXECUTED a0012240: e3865080 orr r5, r6, #128 ; 0x80 <== NOT EXECUTED a0012244: e129f005 msr CPSR_fc, r5 <== 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 ); } a0012248: e5945050 ldr r5, [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 ); a001224c: e2847054 add r7, r4, #84 ; 0x54 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected( Chain_Control *the_chain ) { if ( !_Chain_Is_empty(the_chain)) a0012250: e1550007 cmp r5, r7 <== NOT EXECUTED a0012254: 0a000017 beq a00122b8 <_CORE_message_queue_Seize+0x9c> <== 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; a0012258: e5958000 ldr r8, [r5] <== NOT EXECUTED head->next = new_first; a001225c: e1a07004 mov r7, r4 <== 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 ) { a0012260: e3550000 cmp r5, #0 <== NOT EXECUTED a0012264: e5a78050 str r8, [r7, #80]! ; 0x50 <== NOT EXECUTED new_first->previous = head; a0012268: e5887004 str r7, [r8, #4] <== NOT EXECUTED a001226c: 0a000011 beq a00122b8 <_CORE_message_queue_Seize+0x9c> <== NOT EXECUTED the_message_queue->number_of_pending_messages -= 1; a0012270: e5941048 ldr r1, [r4, #72] ; 0x48 <== NOT EXECUTED a0012274: e2411001 sub r1, r1, #1 <== NOT EXECUTED a0012278: e5841048 str r1, [r4, #72] ; 0x48 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a001227c: e129f006 msr CPSR_fc, r6 <== NOT EXECUTED _ISR_Enable( level ); *size_p = the_message->Contents.size; a0012280: e5951008 ldr r1, [r5, #8] <== NOT EXECUTED _Thread_Executing->Wait.count = a0012284: e3a00000 mov r0, #0 <== 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; a0012288: e5831000 str r1, [r3] <== NOT EXECUTED _Thread_Executing->Wait.count = a001228c: e59f106c ldr r1, [pc, #108] ; a0012300 <_CORE_message_queue_Seize+0xe4><== NOT EXECUTED a0012290: e5911004 ldr r1, [r1, #4] <== NOT EXECUTED a0012294: e5810024 str r0, [r1, #36] ; 0x24 <== NOT EXECUTED const void *source, void *destination, size_t size ) { memcpy(destination, source, size); a0012298: e285100c add r1, r5, #12 <== NOT EXECUTED a001229c: e1a00002 mov r0, r2 <== NOT EXECUTED a00122a0: e5932000 ldr r2, [r3] <== NOT EXECUTED a00122a4: eb001bd1 bl a00191f0 <== 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 ); a00122a8: e2840060 add r0, r4, #96 ; 0x60 <== NOT EXECUTED a00122ac: e1a01005 mov r1, r5 <== 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 ); } a00122b0: e8bd45f0 pop {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED a00122b4: eaffff7f b a00120b8 <_Chain_Append> <== NOT EXECUTED return; } #endif } if ( !wait ) { a00122b8: e35a0000 cmp sl, #0 <== NOT EXECUTED a00122bc: 1a000003 bne a00122d0 <_CORE_message_queue_Seize+0xb4> <== NOT EXECUTED a00122c0: e129f006 msr CPSR_fc, r6 <== NOT EXECUTED _ISR_Enable( level ); executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT; a00122c4: e3a03004 mov r3, #4 <== NOT EXECUTED a00122c8: e5803034 str r3, [r0, #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 ); } a00122cc: 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; a00122d0: e3a05001 mov r5, #1 <== NOT EXECUTED a00122d4: 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; a00122d8: e5804044 str r4, [r0, #68] ; 0x44 <== NOT EXECUTED executing->Wait.id = id; a00122dc: e5801020 str r1, [r0, #32] <== NOT EXECUTED executing->Wait.return_argument_second.mutable_object = buffer; a00122e0: e580202c str r2, [r0, #44] ; 0x2c <== NOT EXECUTED executing->Wait.return_argument = size_p; a00122e4: e5803028 str r3, [r0, #40] ; 0x28 <== NOT EXECUTED a00122e8: e129f006 msr CPSR_fc, r6 <== NOT EXECUTED /* Wait.count will be filled in with the message priority */ _ISR_Enable( level ); _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); a00122ec: e59f2010 ldr r2, [pc, #16] ; a0012304 <_CORE_message_queue_Seize+0xe8><== NOT EXECUTED a00122f0: e1a00004 mov r0, r4 <== NOT EXECUTED a00122f4: e1a0100c mov r1, ip <== NOT EXECUTED } a00122f8: 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 ); a00122fc: ea0007e3 b a0014290 <_Thread_queue_Enqueue_with_handler> <== NOT EXECUTED =============================================================================== a0012308 <_CORE_message_queue_Submit>: ) { CORE_message_queue_Buffer_control *the_message; Thread_Control *the_thread; if ( size > the_message_queue->maximum_message_size ) { a0012308: e590304c ldr r3, [r0, #76] ; 0x4c <== NOT EXECUTED #endif CORE_message_queue_Submit_types submit_type, bool wait, Watchdog_Interval timeout ) { a001230c: 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 ) { a0012310: e1520003 cmp r2, r3 <== NOT EXECUTED #endif CORE_message_queue_Submit_types submit_type, bool wait, Watchdog_Interval timeout ) { a0012314: e1a04000 mov r4, r0 <== NOT EXECUTED a0012318: e1a0a001 mov sl, r1 <== NOT EXECUTED a001231c: e1a05002 mov r5, r2 <== NOT EXECUTED a0012320: 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 ) { a0012324: 8a000020 bhi a00123ac <_CORE_message_queue_Submit+0xa4> <== NOT EXECUTED } /* * Is there a thread currently waiting on this message queue? */ if ( the_message_queue->number_of_pending_messages == 0 ) { a0012328: e5908048 ldr r8, [r0, #72] ; 0x48 <== NOT EXECUTED a001232c: e3580000 cmp r8, #0 <== NOT EXECUTED a0012330: 1a00000b bne a0012364 <_CORE_message_queue_Submit+0x5c> <== NOT EXECUTED the_thread = _Thread_queue_Dequeue( &the_message_queue->Wait_queue ); a0012334: eb00077b bl a0014128 <_Thread_queue_Dequeue> <== NOT EXECUTED if ( the_thread ) { a0012338: e2506000 subs r6, r0, #0 <== NOT EXECUTED a001233c: 0a000008 beq a0012364 <_CORE_message_queue_Submit+0x5c> <== NOT EXECUTED const void *source, void *destination, size_t size ) { memcpy(destination, source, size); a0012340: e596002c ldr r0, [r6, #44] ; 0x2c <== NOT EXECUTED a0012344: e1a0100a mov r1, sl <== NOT EXECUTED a0012348: e1a02005 mov r2, r5 <== NOT EXECUTED a001234c: eb001ba7 bl a00191f0 <== 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; a0012350: e5963028 ldr r3, [r6, #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; a0012354: e1a00008 mov r0, r8 <== 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; a0012358: e5835000 str r5, [r3] <== NOT EXECUTED the_thread->Wait.count = (uint32_t) submit_type; a001235c: e5867024 str r7, [r6, #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; a0012360: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== 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 < a0012364: e5942048 ldr r2, [r4, #72] ; 0x48 <== NOT EXECUTED a0012368: e5943044 ldr r3, [r4, #68] ; 0x44 <== NOT EXECUTED a001236c: e1520003 cmp r2, r3 <== NOT EXECUTED a0012370: 2a00000f bcs a00123b4 <_CORE_message_queue_Submit+0xac> <== 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 ); a0012374: e2840060 add r0, r4, #96 ; 0x60 <== NOT EXECUTED a0012378: ebffff61 bl a0012104 <_Chain_Get> <== NOT EXECUTED const void *source, void *destination, size_t size ) { memcpy(destination, source, size); a001237c: 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 ); a0012380: e1a06000 mov r6, r0 <== NOT EXECUTED const void *source, void *destination, size_t size ) { memcpy(destination, source, size); a0012384: e1a02005 mov r2, r5 <== NOT EXECUTED a0012388: e280000c add r0, r0, #12 <== NOT EXECUTED a001238c: eb001b97 bl a00191f0 <== NOT EXECUTED size ); the_message->Contents.size = size; _CORE_message_queue_Set_message_priority( the_message, submit_type ); _CORE_message_queue_Insert_message( a0012390: e1a00004 mov r0, r4 <== NOT EXECUTED _CORE_message_queue_Copy_buffer( buffer, the_message->Contents.buffer, size ); the_message->Contents.size = size; a0012394: e5865008 str r5, [r6, #8] <== NOT EXECUTED _CORE_message_queue_Set_message_priority( the_message, submit_type ); _CORE_message_queue_Insert_message( a0012398: e1a01006 mov r1, r6 <== NOT EXECUTED a001239c: e1a02007 mov r2, r7 <== NOT EXECUTED a00123a0: eb001202 bl a0016bb0 <_CORE_message_queue_Insert_message> <== NOT EXECUTED the_message_queue, the_message, submit_type ); return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; a00123a4: e3a00000 mov r0, #0 <== NOT EXECUTED a00123a8: 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; a00123ac: e3a00001 mov r0, #1 <== NOT EXECUTED a00123b0: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED ); return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; } #if !defined(RTEMS_SCORE_COREMSG_ENABLE_BLOCKING_SEND) return CORE_MESSAGE_QUEUE_STATUS_TOO_MANY; a00123b4: e3a00002 mov r0, #2 <== NOT EXECUTED _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); } return CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT; #endif } a00123b8: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED =============================================================================== a0009d50 <_CORE_mutex_Initialize>: CORE_mutex_Status _CORE_mutex_Initialize( CORE_mutex_Control *the_mutex, CORE_mutex_Attributes *the_mutex_attributes, uint32_t initial_lock ) { a0009d50: e92d4070 push {r4, r5, r6, lr} /* 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; a0009d54: e2805040 add r5, r0, #64 ; 0x40 CORE_mutex_Status _CORE_mutex_Initialize( CORE_mutex_Control *the_mutex, CORE_mutex_Attributes *the_mutex_attributes, uint32_t initial_lock ) { a0009d58: e1a0c000 mov ip, r0 a0009d5c: e1a06002 mov r6, r2 a0009d60: 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; a0009d64: e891000f ldm r1, {r0, r1, r2, r3} a0009d68: e885000f stm r5, {r0, r1, r2, r3} the_mutex->lock = initial_lock; the_mutex->blocked_count = 0; a0009d6c: e3a03000 mov r3, #0 if ( initial_lock == CORE_MUTEX_LOCKED ) { a0009d70: e1560003 cmp r6, r3 rtems_assert( initial_lock == CORE_MUTEX_LOCKED || initial_lock == CORE_MUTEX_UNLOCKED ); */ the_mutex->Attributes = *the_mutex_attributes; the_mutex->lock = initial_lock; a0009d74: e58c6050 str r6, [ip, #80] ; 0x50 the_mutex->blocked_count = 0; a0009d78: e58c3058 str r3, [ip, #88] ; 0x58 #endif _Thread_Executing->resource_count++; } } else { the_mutex->nest_count = 0; a0009d7c: 158c3054 strne r3, [ip, #84] ; 0x54 the_mutex->holder = NULL; a0009d80: 158c305c strne r3, [ip, #92] ; 0x5c the_mutex->holder_id = 0; a0009d84: 158c3060 strne r3, [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 ) { a0009d88: 1a000012 bne a0009dd8 <_CORE_mutex_Initialize+0x88> the_mutex->nest_count = 1; a0009d8c: e2833001 add r3, r3, #1 <== NOT EXECUTED a0009d90: e58c3054 str r3, [ip, #84] ; 0x54 <== NOT EXECUTED the_mutex->holder = _Thread_Executing; a0009d94: e59f3068 ldr r3, [pc, #104] ; a0009e04 <_CORE_mutex_Initialize+0xb4><== NOT EXECUTED a0009d98: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED the_mutex->holder_id = _Thread_Executing->Object.id; a0009d9c: e5932008 ldr r2, [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; a0009da0: e58c305c str r3, [ip, #92] ; 0x5c <== NOT EXECUTED the_mutex->holder_id = _Thread_Executing->Object.id; a0009da4: e58c2060 str r2, [ip, #96] ; 0x60 <== NOT EXECUTED STATES_WAITING_FOR_MUTEX, CORE_MUTEX_TIMEOUT ); return CORE_MUTEX_STATUS_SUCCESSFUL; } a0009da8: e59c2048 ldr r2, [ip, #72] ; 0x48 <== NOT EXECUTED if ( initial_lock == CORE_MUTEX_LOCKED ) { the_mutex->nest_count = 1; the_mutex->holder = _Thread_Executing; the_mutex->holder_id = _Thread_Executing->Object.id; if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || a0009dac: e3520002 cmp r2, #2 <== NOT EXECUTED a0009db0: 0a000001 beq a0009dbc <_CORE_mutex_Initialize+0x6c> <== NOT EXECUTED a0009db4: e3520003 cmp r2, #3 <== NOT EXECUTED a0009db8: 1a000006 bne a0009dd8 <_CORE_mutex_Initialize+0x88> <== NOT EXECUTED _CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { if ( _Thread_Executing->current_priority < a0009dbc: e59c204c ldr r2, [ip, #76] ; 0x4c <== NOT EXECUTED a0009dc0: e5931014 ldr r1, [r3, #20] <== NOT EXECUTED a0009dc4: e1510002 cmp r1, r2 <== 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++; a0009dc8: 2593201c ldrcs r2, [r3, #28] <== NOT EXECUTED a0009dcc: 22822001 addcs r2, r2, #1 <== NOT EXECUTED a0009dd0: 2583201c strcs r2, [r3, #28] <== NOT EXECUTED 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 < a0009dd4: 3a000008 bcc a0009dfc <_CORE_mutex_Initialize+0xac> <== NOT EXECUTED the_mutex->nest_count = 0; the_mutex->holder = NULL; the_mutex->holder_id = 0; } _Thread_queue_Initialize( a0009dd8: e5941008 ldr r1, [r4, #8] a0009ddc: e1a0000c mov r0, ip a0009de0: e3a02b01 mov r2, #1024 ; 0x400 a0009de4: e2511000 subs r1, r1, #0 a0009de8: 13a01001 movne r1, #1 a0009dec: e3a03004 mov r3, #4 a0009df0: eb000808 bl a000be18 <_Thread_queue_Initialize> THREAD_QUEUE_DISCIPLINE_FIFO : THREAD_QUEUE_DISCIPLINE_PRIORITY, STATES_WAITING_FOR_MUTEX, CORE_MUTEX_TIMEOUT ); return CORE_MUTEX_STATUS_SUCCESSFUL; a0009df4: e3a00000 mov r0, #0 a0009df8: e8bd8070 pop {r4, r5, r6, pc} 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; a0009dfc: e3a00005 mov r0, #5 <== NOT EXECUTED STATES_WAITING_FOR_MUTEX, CORE_MUTEX_TIMEOUT ); return CORE_MUTEX_STATUS_SUCCESSFUL; } a0009e00: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED =============================================================================== a0009e70 <_CORE_mutex_Seize>: Objects_Id _id, bool _wait, Watchdog_Interval _timeout, ISR_Level _level ) { a0009e70: e92d40f0 push {r4, r5, r6, r7, lr} a0009e74: e1a07003 mov r7, r3 _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level ); a0009e78: e59f30b0 ldr r3, [pc, #176] ; a0009f30 <_CORE_mutex_Seize+0xc0> Objects_Id _id, bool _wait, Watchdog_Interval _timeout, ISR_Level _level ) { a0009e7c: e1a04000 mov r4, r0 a0009e80: e1a05001 mov r5, r1 _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level ); a0009e84: e5933000 ldr r3, [r3] Objects_Id _id, bool _wait, Watchdog_Interval _timeout, ISR_Level _level ) { a0009e88: e20260ff and r6, r2, #255 ; 0xff _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level ); a0009e8c: e3530000 cmp r3, #0 a0009e90: 0a000009 beq a0009ebc <_CORE_mutex_Seize+0x4c> a0009e94: e3560000 cmp r6, #0 a0009e98: 0a000007 beq a0009ebc <_CORE_mutex_Seize+0x4c> a0009e9c: e59f3090 ldr r3, [pc, #144] ; a0009f34 <_CORE_mutex_Seize+0xc4> a0009ea0: e5933000 ldr r3, [r3] a0009ea4: e3530001 cmp r3, #1 a0009ea8: 9a000003 bls a0009ebc <_CORE_mutex_Seize+0x4c> a0009eac: e3a00000 mov r0, #0 <== NOT EXECUTED a0009eb0: e1a01000 mov r1, r0 <== NOT EXECUTED a0009eb4: e3a02012 mov r2, #18 <== NOT EXECUTED a0009eb8: eb0001c4 bl a000a5d0 <_Internal_error_Occurred> <== NOT EXECUTED a0009ebc: e1a00004 mov r0, r4 a0009ec0: e28d1014 add r1, sp, #20 a0009ec4: eb001174 bl a000e49c <_CORE_mutex_Seize_interrupt_trylock> a0009ec8: e3500000 cmp r0, #0 a0009ecc: 0a000016 beq a0009f2c <_CORE_mutex_Seize+0xbc> a0009ed0: e3560000 cmp r6, #0 <== NOT EXECUTED a0009ed4: e59f305c ldr r3, [pc, #92] ; a0009f38 <_CORE_mutex_Seize+0xc8><== NOT EXECUTED a0009ed8: 1a000005 bne a0009ef4 <_CORE_mutex_Seize+0x84> <== NOT EXECUTED a0009edc: e59d2014 ldr r2, [sp, #20] <== NOT EXECUTED a0009ee0: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED a0009ee4: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED a0009ee8: e3a02001 mov r2, #1 <== NOT EXECUTED a0009eec: e5832034 str r2, [r3, #52] ; 0x34 <== NOT EXECUTED a0009ef0: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED a0009ef4: e5933004 ldr r3, [r3, #4] <== 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; a0009ef8: e3a02001 mov r2, #1 <== NOT EXECUTED a0009efc: e5842030 str r2, [r4, #48] ; 0x30 <== NOT EXECUTED a0009f00: e5834044 str r4, [r3, #68] ; 0x44 <== NOT EXECUTED a0009f04: e5835020 str r5, [r3, #32] <== NOT EXECUTED a0009f08: e59f3020 ldr r3, [pc, #32] ; a0009f30 <_CORE_mutex_Seize+0xc0><== NOT EXECUTED a0009f0c: e5932000 ldr r2, [r3] <== NOT EXECUTED a0009f10: e2822001 add r2, r2, #1 <== NOT EXECUTED a0009f14: e5832000 str r2, [r3] <== NOT EXECUTED a0009f18: e59d3014 ldr r3, [sp, #20] <== NOT EXECUTED a0009f1c: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED a0009f20: e1a00004 mov r0, r4 <== NOT EXECUTED a0009f24: e1a01007 mov r1, r7 <== NOT EXECUTED a0009f28: ebffffb6 bl a0009e08 <_CORE_mutex_Seize_interrupt_blocking><== NOT EXECUTED a0009f2c: e8bd80f0 pop {r4, r5, r6, r7, pc} =============================================================================== a0009e08 <_CORE_mutex_Seize_interrupt_blocking>: ) { Thread_Control *executing; executing = _Thread_Executing; if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ) { a0009e08: e5902048 ldr r2, [r0, #72] ; 0x48 <== NOT EXECUTED Watchdog_Interval timeout ) { Thread_Control *executing; executing = _Thread_Executing; a0009e0c: e59f3054 ldr r3, [pc, #84] ; a0009e68 <_CORE_mutex_Seize_interrupt_blocking+0x60><== NOT EXECUTED void _CORE_mutex_Seize_interrupt_blocking( CORE_mutex_Control *the_mutex, Watchdog_Interval timeout ) { a0009e10: e92d4030 push {r4, r5, lr} <== NOT EXECUTED Thread_Control *executing; executing = _Thread_Executing; if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ) { a0009e14: e3520002 cmp r2, #2 <== NOT EXECUTED void _CORE_mutex_Seize_interrupt_blocking( CORE_mutex_Control *the_mutex, Watchdog_Interval timeout ) { a0009e18: e1a04000 mov r4, r0 <== NOT EXECUTED a0009e1c: e1a05001 mov r5, r1 <== NOT EXECUTED Thread_Control *executing; executing = _Thread_Executing; a0009e20: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ) { a0009e24: 1a000006 bne a0009e44 <_CORE_mutex_Seize_interrupt_blocking+0x3c><== NOT EXECUTED if ( the_mutex->holder->current_priority > executing->current_priority ) { a0009e28: e590005c ldr r0, [r0, #92] ; 0x5c <== NOT EXECUTED a0009e2c: e5931014 ldr r1, [r3, #20] <== NOT EXECUTED a0009e30: e5903014 ldr r3, [r0, #20] <== NOT EXECUTED a0009e34: e1530001 cmp r3, r1 <== NOT EXECUTED a0009e38: 9a000001 bls a0009e44 <_CORE_mutex_Seize_interrupt_blocking+0x3c><== NOT EXECUTED _Thread_Change_priority( a0009e3c: e3a02000 mov r2, #0 <== NOT EXECUTED a0009e40: eb000533 bl a000b314 <_Thread_Change_priority> <== NOT EXECUTED false ); } } the_mutex->blocked_count++; a0009e44: e5943058 ldr r3, [r4, #88] ; 0x58 <== NOT EXECUTED _Thread_queue_Enqueue( &the_mutex->Wait_queue, timeout ); a0009e48: e1a00004 mov r0, r4 <== NOT EXECUTED a0009e4c: e1a01005 mov r1, r5 <== NOT EXECUTED false ); } } the_mutex->blocked_count++; a0009e50: e2833001 add r3, r3, #1 <== NOT EXECUTED a0009e54: e5843058 str r3, [r4, #88] ; 0x58 <== NOT EXECUTED _Thread_queue_Enqueue( &the_mutex->Wait_queue, timeout ); a0009e58: e59f200c ldr r2, [pc, #12] ; a0009e6c <_CORE_mutex_Seize_interrupt_blocking+0x64><== NOT EXECUTED a0009e5c: eb000749 bl a000bb88 <_Thread_queue_Enqueue_with_handler> <== NOT EXECUTED _Thread_Enable_dispatch(); } a0009e60: e8bd4030 pop {r4, r5, lr} <== NOT EXECUTED } the_mutex->blocked_count++; _Thread_queue_Enqueue( &the_mutex->Wait_queue, timeout ); _Thread_Enable_dispatch(); a0009e64: ea00062d b a000b720 <_Thread_Enable_dispatch> <== NOT EXECUTED =============================================================================== a000e49c <_CORE_mutex_Seize_interrupt_trylock>: { Thread_Control *executing; /* disabled when you get here */ executing = _Thread_Executing; a000e49c: e59f2114 ldr r2, [pc, #276] ; a000e5b8 <_CORE_mutex_Seize_interrupt_trylock+0x11c> #if defined(__RTEMS_DO_NOT_INLINE_CORE_MUTEX_SEIZE__) int _CORE_mutex_Seize_interrupt_trylock( CORE_mutex_Control *the_mutex, ISR_Level *level_p ) { a000e4a0: e1a03000 mov r3, r0 executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; if ( !_CORE_mutex_Is_locked( the_mutex ) ) { a000e4a4: e593c050 ldr ip, [r3, #80] ; 0x50 { Thread_Control *executing; /* disabled when you get here */ executing = _Thread_Executing; a000e4a8: e5922004 ldr r2, [r2, #4] executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; a000e4ac: e3a00000 mov r0, #0 if ( !_CORE_mutex_Is_locked( the_mutex ) ) { a000e4b0: e15c0000 cmp ip, r0 a000e4b4: e92d4010 push {r4, lr} Thread_Control *executing; /* disabled when you get here */ executing = _Thread_Executing; executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; a000e4b8: e5820034 str r0, [r2, #52] ; 0x34 if ( !_CORE_mutex_Is_locked( the_mutex ) ) { a000e4bc: 0a00002c beq a000e574 <_CORE_mutex_Seize_interrupt_trylock+0xd8> the_mutex->lock = CORE_MUTEX_LOCKED; a000e4c0: e5830050 str r0, [r3, #80] ; 0x50 the_mutex->holder = executing; the_mutex->holder_id = executing->Object.id; a000e4c4: e5920008 ldr r0, [r2, #8] executing = _Thread_Executing; executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; if ( !_CORE_mutex_Is_locked( the_mutex ) ) { the_mutex->lock = CORE_MUTEX_LOCKED; the_mutex->holder = executing; a000e4c8: e583205c str r2, [r3, #92] ; 0x5c the_mutex->holder_id = executing->Object.id; a000e4cc: e5830060 str r0, [r3, #96] ; 0x60 the_mutex->nest_count = 1; a000e4d0: e3a00001 mov r0, #1 a000e4d4: e5830054 str r0, [r3, #84] ; 0x54 return _CORE_mutex_Seize_interrupt_trylock_body( the_mutex, level_p ); } a000e4d8: e5930048 ldr r0, [r3, #72] ; 0x48 if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || a000e4dc: e3500002 cmp r0, #2 a000e4e0: 0a000001 beq a000e4ec <_CORE_mutex_Seize_interrupt_trylock+0x50> a000e4e4: e3500003 cmp r0, #3 <== NOT EXECUTED a000e4e8: 1a000004 bne a000e500 <_CORE_mutex_Seize_interrupt_trylock+0x64><== 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++; a000e4ec: e592c01c ldr ip, [r2, #28] } if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { a000e4f0: e3500003 cmp r0, #3 _Chain_Prepend_unprotected( &executing->lock_mutex, &the_mutex->queue.lock_queue ); the_mutex->queue.priority_before = executing->current_priority; #endif executing->resource_count++; a000e4f4: e28c4001 add r4, ip, #1 a000e4f8: e582401c str r4, [r2, #28] } if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { a000e4fc: 0a000000 beq a000e504 <_CORE_mutex_Seize_interrupt_trylock+0x68> _ISR_Enable( *level_p ); a000e500: ea000024 b a000e598 <_CORE_mutex_Seize_interrupt_trylock+0xfc> */ { Priority_Control ceiling; Priority_Control current; ceiling = the_mutex->Attributes.priority_ceiling; a000e504: e593004c ldr r0, [r3, #76] ; 0x4c <== NOT EXECUTED current = executing->current_priority; a000e508: e5924014 ldr r4, [r2, #20] <== NOT EXECUTED if ( current == ceiling ) { a000e50c: e1540000 cmp r4, r0 <== NOT EXECUTED a000e510: 1a000000 bne a000e518 <_CORE_mutex_Seize_interrupt_trylock+0x7c><== NOT EXECUTED _ISR_Enable( *level_p ); a000e514: ea00001f b a000e598 <_CORE_mutex_Seize_interrupt_trylock+0xfc><== NOT EXECUTED return 0; } if ( current > ceiling ) { a000e518: 9a00000b bls a000e54c <_CORE_mutex_Seize_interrupt_trylock+0xb0><== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; a000e51c: e59f2098 ldr r2, [pc, #152] ; a000e5bc <_CORE_mutex_Seize_interrupt_trylock+0x120><== NOT EXECUTED a000e520: e5920000 ldr r0, [r2] <== NOT EXECUTED a000e524: e2800001 add r0, r0, #1 <== NOT EXECUTED a000e528: e5820000 str r0, [r2] <== NOT EXECUTED a000e52c: e5912000 ldr r2, [r1] <== NOT EXECUTED a000e530: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED _Thread_Disable_dispatch(); _ISR_Enable( *level_p ); _Thread_Change_priority( a000e534: e3a02000 mov r2, #0 <== NOT EXECUTED a000e538: e593005c ldr r0, [r3, #92] ; 0x5c <== NOT EXECUTED a000e53c: e593104c ldr r1, [r3, #76] ; 0x4c <== NOT EXECUTED a000e540: ebfff373 bl a000b314 <_Thread_Change_priority> <== NOT EXECUTED the_mutex->holder, the_mutex->Attributes.priority_ceiling, false ); _Thread_Enable_dispatch(); a000e544: ebfff475 bl a000b720 <_Thread_Enable_dispatch> <== NOT EXECUTED a000e548: ea000014 b a000e5a0 <_CORE_mutex_Seize_interrupt_trylock+0x104><== NOT EXECUTED return 0; } /* if ( current < ceiling ) */ { executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED; a000e54c: e3a00005 mov r0, #5 <== NOT EXECUTED a000e550: e5820034 str r0, [r2, #52] ; 0x34 <== NOT EXECUTED the_mutex->lock = CORE_MUTEX_UNLOCKED; a000e554: e3a00001 mov r0, #1 <== NOT EXECUTED a000e558: e5830050 str r0, [r3, #80] ; 0x50 <== NOT EXECUTED the_mutex->nest_count = 0; /* undo locking above */ a000e55c: e3a00000 mov r0, #0 <== NOT EXECUTED a000e560: e5830054 str r0, [r3, #84] ; 0x54 <== NOT EXECUTED executing->resource_count--; /* undo locking above */ a000e564: e582c01c str ip, [r2, #28] <== NOT EXECUTED a000e568: e5913000 ldr r3, [r1] <== NOT EXECUTED a000e56c: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED a000e570: e8bd8010 pop {r4, 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 ) ) { a000e574: e593005c ldr r0, [r3, #92] ; 0x5c <== NOT EXECUTED a000e578: e1500002 cmp r0, r2 <== NOT EXECUTED a000e57c: 1a000009 bne a000e5a8 <_CORE_mutex_Seize_interrupt_trylock+0x10c><== NOT EXECUTED switch ( the_mutex->Attributes.lock_nesting_behavior ) { a000e580: e5932040 ldr r2, [r3, #64] ; 0x40 <== NOT EXECUTED a000e584: e3520000 cmp r2, #0 <== NOT EXECUTED a000e588: 1a000008 bne a000e5b0 <_CORE_mutex_Seize_interrupt_trylock+0x114><== NOT EXECUTED case CORE_MUTEX_NESTING_ACQUIRES: the_mutex->nest_count++; a000e58c: e5932054 ldr r2, [r3, #84] ; 0x54 <== NOT EXECUTED a000e590: e2822001 add r2, r2, #1 <== NOT EXECUTED a000e594: e5832054 str r2, [r3, #84] ; 0x54 <== NOT EXECUTED a000e598: e5913000 ldr r3, [r1] a000e59c: e129f003 msr CPSR_fc, r3 _ISR_Enable( *level_p ); return 0; a000e5a0: e3a00000 mov r0, #0 a000e5a4: e8bd8010 pop {r4, pc} /* * The mutex is not available and the caller must deal with the possibility * of blocking. */ return 1; a000e5a8: e3a00001 mov r0, #1 <== NOT EXECUTED a000e5ac: e8bd8010 pop {r4, pc} <== NOT EXECUTED a000e5b0: e3a00001 mov r0, #1 <== NOT EXECUTED a000e5b4: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a0009f3c <_CORE_mutex_Surrender>: #else Objects_Id id __attribute__((unused)), CORE_mutex_API_mp_support_callout api_mutex_mp_support __attribute__((unused)) #endif ) { a0009f3c: e92d4030 push {r4, r5, lr} a0009f40: e1a04000 mov r4, r0 * allowed when the mutex in quetion is FIFO or simple Priority * discipline. But Priority Ceiling or Priority Inheritance mutexes * must be released by the thread which acquired them. */ if ( the_mutex->Attributes.only_owner_release ) { a0009f44: e5d43044 ldrb r3, [r4, #68] ; 0x44 ) { Thread_Control *the_thread; Thread_Control *holder; holder = the_mutex->holder; a0009f48: e590005c ldr r0, [r0, #92] ; 0x5c * allowed when the mutex in quetion is FIFO or simple Priority * discipline. But Priority Ceiling or Priority Inheritance mutexes * must be released by the thread which acquired them. */ if ( the_mutex->Attributes.only_owner_release ) { a0009f4c: e3530000 cmp r3, #0 a0009f50: 0a000004 beq a0009f68 <_CORE_mutex_Surrender+0x2c> RTEMS_INLINE_ROUTINE bool _Thread_Is_executing ( const Thread_Control *the_thread ) { return ( the_thread == _Thread_Executing ); a0009f54: e59f30f4 ldr r3, [pc, #244] ; a000a050 <_CORE_mutex_Surrender+0x114> if ( !_Thread_Is_executing( holder ) ) a0009f58: e5933004 ldr r3, [r3, #4] a0009f5c: e1500003 cmp r0, r3 return CORE_MUTEX_STATUS_NOT_OWNER_OF_RESOURCE; a0009f60: 13a05002 movne r5, #2 * discipline. But Priority Ceiling or Priority Inheritance mutexes * must be released by the thread which acquired them. */ if ( the_mutex->Attributes.only_owner_release ) { if ( !_Thread_Is_executing( holder ) ) a0009f64: 1a000037 bne a000a048 <_CORE_mutex_Surrender+0x10c> return CORE_MUTEX_STATUS_NOT_OWNER_OF_RESOURCE; } /* XXX already unlocked -- not right status */ if ( !the_mutex->nest_count ) a0009f68: e5945054 ldr r5, [r4, #84] ; 0x54 a0009f6c: e3550000 cmp r5, #0 a0009f70: 0a000034 beq a000a048 <_CORE_mutex_Surrender+0x10c> return CORE_MUTEX_STATUS_SUCCESSFUL; the_mutex->nest_count--; a0009f74: e2455001 sub r5, r5, #1 if ( the_mutex->nest_count != 0 ) { a0009f78: e3550000 cmp r5, #0 /* XXX already unlocked -- not right status */ if ( !the_mutex->nest_count ) return CORE_MUTEX_STATUS_SUCCESSFUL; the_mutex->nest_count--; a0009f7c: e5845054 str r5, [r4, #84] ; 0x54 /* Currently no API exercises this behavior. */ break; } #else /* must be CORE_MUTEX_NESTING_ACQUIRES or we wouldn't be here */ return CORE_MUTEX_STATUS_SUCCESSFUL; a0009f80: 13a05000 movne r5, #0 if ( !the_mutex->nest_count ) return CORE_MUTEX_STATUS_SUCCESSFUL; the_mutex->nest_count--; if ( the_mutex->nest_count != 0 ) { a0009f84: 1a00002f bne a000a048 <_CORE_mutex_Surrender+0x10c> } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; return CORE_MUTEX_STATUS_SUCCESSFUL; } a0009f88: 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 ) || a0009f8c: e3530002 cmp r3, #2 a0009f90: 0a000001 beq a0009f9c <_CORE_mutex_Surrender+0x60> a0009f94: e3530003 cmp r3, #3 <== NOT EXECUTED a0009f98: 1a00000a bne a0009fc8 <_CORE_mutex_Surrender+0x8c> <== NOT EXECUTED _CORE_mutex_Pop_priority( the_mutex, holder ); if ( pop_status != CORE_MUTEX_STATUS_SUCCESSFUL ) return pop_status; holder->resource_count--; a0009f9c: e590301c ldr r3, [r0, #28] a0009fa0: 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 && a0009fa4: e3530000 cmp r3, #0 _CORE_mutex_Pop_priority( the_mutex, holder ); if ( pop_status != CORE_MUTEX_STATUS_SUCCESSFUL ) return pop_status; holder->resource_count--; a0009fa8: e580301c str r3, [r0, #28] /* * Whether or not someone is waiting for the mutex, an * inherited priority must be lowered if this is the last * mutex (i.e. resource) this task has. */ if ( holder->resource_count == 0 && a0009fac: 1a000005 bne a0009fc8 <_CORE_mutex_Surrender+0x8c> holder->real_priority != holder->current_priority ) { a0009fb0: e5901018 ldr r1, [r0, #24] /* * Whether or not someone is waiting for the mutex, an * inherited priority must be lowered if this is the last * mutex (i.e. resource) this task has. */ if ( holder->resource_count == 0 && a0009fb4: e5903014 ldr r3, [r0, #20] a0009fb8: e1510003 cmp r1, r3 a0009fbc: 0a000001 beq a0009fc8 <_CORE_mutex_Surrender+0x8c> holder->real_priority != holder->current_priority ) { _Thread_Change_priority( holder, holder->real_priority, true ); a0009fc0: e3a02001 mov r2, #1 <== NOT EXECUTED a0009fc4: eb0004d2 bl a000b314 <_Thread_Change_priority> <== NOT EXECUTED } } the_mutex->holder = NULL; a0009fc8: e3a05000 mov r5, #0 a0009fcc: e584505c str r5, [r4, #92] ; 0x5c the_mutex->holder_id = 0; a0009fd0: 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 ) ) ) { a0009fd4: e1a00004 mov r0, r4 a0009fd8: eb000690 bl a000ba20 <_Thread_queue_Dequeue> a0009fdc: e2503000 subs r3, r0, #0 } break; } } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; a0009fe0: 03a02001 moveq r2, #1 a0009fe4: 05842050 streq r2, [r4, #80] ; 0x50 return CORE_MUTEX_STATUS_SUCCESSFUL; a0009fe8: 01a05003 moveq r5, r3 /* * Now we check if another thread was waiting for this mutex. If so, * transfer the mutex to that thread. */ if ( ( the_thread = _Thread_queue_Dequeue( &the_mutex->Wait_queue ) ) ) { a0009fec: 0a000015 beq a000a048 <_CORE_mutex_Surrender+0x10c> } else #endif { the_mutex->holder = the_thread; the_mutex->holder_id = the_thread->Object.id; a0009ff0: e5932008 ldr r2, [r3, #8] <== NOT EXECUTED } else #endif { the_mutex->holder = the_thread; a0009ff4: e584305c str r3, [r4, #92] ; 0x5c <== NOT EXECUTED the_mutex->holder_id = the_thread->Object.id; a0009ff8: e5842060 str r2, [r4, #96] ; 0x60 <== NOT EXECUTED the_mutex->nest_count = 1; a0009ffc: e3a02001 mov r2, #1 <== NOT EXECUTED a000a000: e5842054 str r2, [r4, #84] ; 0x54 <== NOT EXECUTED switch ( the_mutex->Attributes.discipline ) { a000a004: e5942048 ldr r2, [r4, #72] ; 0x48 <== NOT EXECUTED a000a008: e3520002 cmp r2, #2 <== 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++; a000a00c: 0593201c ldreq r2, [r3, #28] <== NOT EXECUTED a000a010: 02822001 addeq r2, r2, #1 <== NOT EXECUTED a000a014: 0583201c streq r2, [r3, #28] <== NOT EXECUTED the_mutex->holder = the_thread; the_mutex->holder_id = the_thread->Object.id; the_mutex->nest_count = 1; switch ( the_mutex->Attributes.discipline ) { a000a018: 0a00000a beq a000a048 <_CORE_mutex_Surrender+0x10c> <== NOT EXECUTED a000a01c: e3520003 cmp r2, #3 <== NOT EXECUTED a000a020: 1a000008 bne a000a048 <_CORE_mutex_Surrender+0x10c> <== 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++; a000a024: e593201c ldr r2, [r3, #28] <== NOT EXECUTED if (the_mutex->Attributes.priority_ceiling < a000a028: e594104c ldr r1, [r4, #76] ; 0x4c <== NOT EXECUTED _CORE_mutex_Push_priority( the_mutex, the_thread ); the_thread->resource_count++; break; case CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING: _CORE_mutex_Push_priority( the_mutex, the_thread ); the_thread->resource_count++; a000a02c: e2822001 add r2, r2, #1 <== NOT EXECUTED a000a030: e583201c str r2, [r3, #28] <== NOT EXECUTED if (the_mutex->Attributes.priority_ceiling < a000a034: e5933014 ldr r3, [r3, #20] <== NOT EXECUTED a000a038: e1510003 cmp r1, r3 <== NOT EXECUTED a000a03c: 2a000001 bcs a000a048 <_CORE_mutex_Surrender+0x10c> <== NOT EXECUTED the_thread->current_priority){ _Thread_Change_priority( a000a040: e1a02005 mov r2, r5 <== NOT EXECUTED a000a044: eb0004b2 bl a000b314 <_Thread_Change_priority> <== NOT EXECUTED } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; return CORE_MUTEX_STATUS_SUCCESSFUL; } a000a048: e1a00005 mov r0, r5 a000a04c: e8bd8030 pop {r4, r5, pc} =============================================================================== a000a08c <_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 ) { a000a08c: e92d4010 push {r4, lr} <== NOT EXECUTED a000a090: 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)) ) { a000a094: eb000661 bl a000ba20 <_Thread_queue_Dequeue> <== NOT EXECUTED a000a098: e3500000 cmp r0, #0 <== NOT EXECUTED a000a09c: 1a00000a bne a000a0cc <_CORE_semaphore_Surrender+0x40> <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000a0a0: e10f2000 mrs r2, CPSR <== NOT EXECUTED a000a0a4: e3823080 orr r3, r2, #128 ; 0x80 <== NOT EXECUTED a000a0a8: 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 ) a000a0ac: e5943048 ldr r3, [r4, #72] ; 0x48 <== NOT EXECUTED a000a0b0: e5941040 ldr r1, [r4, #64] ; 0x40 <== NOT EXECUTED a000a0b4: e1530001 cmp r3, r1 <== NOT EXECUTED the_semaphore->count += 1; a000a0b8: 32833001 addcc r3, r3, #1 <== NOT EXECUTED a000a0bc: 35843048 strcc r3, [r4, #72] ; 0x48 <== NOT EXECUTED else status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED; a000a0c0: 23a00004 movcs r0, #4 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000a0c4: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED a000a0c8: e8bd8010 pop {r4, pc} <== NOT EXECUTED { Thread_Control *the_thread; ISR_Level level; CORE_semaphore_Status status; status = CORE_SEMAPHORE_STATUS_SUCCESSFUL; a000a0cc: e3a00000 mov r0, #0 <== NOT EXECUTED status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED; _ISR_Enable( level ); } return status; } a000a0d0: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a000a650 <_Chain_Append_with_empty_check>: bool _Chain_Append_with_empty_check( Chain_Control *chain, Chain_Node *node ) { a000a650: e92d4010 push {r4, lr} <== NOT EXECUTED a000a654: e1a03000 mov r3, r0 <== NOT EXECUTED a000a658: e10f4000 mrs r4, CPSR <== NOT EXECUTED a000a65c: e3842080 orr r2, r4, #128 ; 0x80 <== NOT EXECUTED a000a660: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED Chain_Control *the_chain, Chain_Node *the_node ) { Chain_Node *tail = _Chain_Tail( the_chain ); Chain_Node *old_last = tail->previous; a000a664: e5932008 ldr r2, [r3, #8] <== 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 ); a000a668: e280c004 add ip, r0, #4 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( const Chain_Control *the_chain ) { return _Chain_Immutable_first( the_chain ) a000a66c: e5900000 ldr r0, [r0] <== NOT EXECUTED { Chain_Node *tail = _Chain_Tail( the_chain ); Chain_Node *old_last = tail->previous; the_node->next = tail; tail->previous = the_node; a000a670: e5831008 str r1, [r3, #8] <== NOT EXECUTED ) { Chain_Node *tail = _Chain_Tail( the_chain ); Chain_Node *old_last = tail->previous; the_node->next = tail; a000a674: e581c000 str ip, [r1] <== NOT EXECUTED tail->previous = the_node; old_last->next = the_node; the_node->previous = old_last; a000a678: 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; a000a67c: e5821000 str r1, [r2] <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( const Chain_Control *the_chain ) { return _Chain_Immutable_first( the_chain ) a000a680: e150000c cmp r0, ip <== NOT EXECUTED a000a684: 13a00000 movne r0, #0 <== NOT EXECUTED a000a688: 03a00001 moveq r0, #1 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000a68c: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED _ISR_Disable( level ); was_empty = _Chain_Append_with_empty_check_unprotected( chain, node ); _ISR_Enable( level ); return was_empty; } a000a690: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a0009cf8 <_Chain_Extract>: static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a0009cf8: e10f1000 mrs r1, CPSR <== NOT EXECUTED a0009cfc: e3813080 orr r3, r1, #128 ; 0x80 <== NOT EXECUTED a0009d00: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; a0009d04: e890000c ldm r0, {r2, r3} <== NOT EXECUTED previous = the_node->previous; next->previous = previous; a0009d08: e5823004 str r3, [r2, #4] <== NOT EXECUTED previous->next = next; a0009d0c: e5832000 str r2, [r3] <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a0009d10: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED ISR_Level level; _ISR_Disable( level ); _Chain_Extract_unprotected( node ); _ISR_Enable( level ); } a0009d14: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000a6e0 <_Chain_Get_with_empty_check>: bool _Chain_Get_with_empty_check( Chain_Control *chain, Chain_Node **node ) { a000a6e0: e92d4010 push {r4, lr} <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000a6e4: e10f4000 mrs r4, CPSR <== NOT EXECUTED a000a6e8: e3843080 orr r3, r4, #128 ; 0x80 <== NOT EXECUTED a000a6ec: 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; a000a6f0: e5902000 ldr r2, [r0] <== NOT EXECUTED Chain_Node **the_node ) { bool is_empty_now = true; Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); a000a6f4: e280c004 add ip, r0, #4 <== NOT EXECUTED Chain_Node *old_first = head->next; if ( old_first != tail ) { a000a6f8: e152000c cmp r2, ip <== NOT EXECUTED *the_node = old_first; is_empty_now = new_first == tail; } else *the_node = NULL; a000a6fc: 03a03000 moveq r3, #0 <== NOT EXECUTED a000a700: 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; a000a704: 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 ) { a000a708: 0a000006 beq a000a728 <_Chain_Get_with_empty_check+0x48> <== NOT EXECUTED Chain_Node *new_first = old_first->next; a000a70c: e5923000 ldr r3, [r2] <== NOT EXECUTED head->next = new_first; a000a710: e5803000 str r3, [r0] <== NOT EXECUTED new_first->previous = head; a000a714: e5830004 str r0, [r3, #4] <== NOT EXECUTED *the_node = old_first; a000a718: e5812000 str r2, [r1] <== NOT EXECUTED is_empty_now = new_first == tail; a000a71c: e153000c cmp r3, ip <== NOT EXECUTED a000a720: 13a00000 movne r0, #0 <== NOT EXECUTED a000a724: 03a00001 moveq r0, #1 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000a728: 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; } a000a72c: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a0012038 <_Chain_Insert>: static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a0012038: e10f2000 mrs r2, CPSR <== NOT EXECUTED a001203c: e3823080 orr r3, r2, #128 ; 0x80 <== NOT EXECUTED a0012040: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; a0012044: e5903000 ldr r3, [r0] <== NOT EXECUTED Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; a0012048: e5810004 str r0, [r1, #4] <== NOT EXECUTED before_node = after_node->next; after_node->next = the_node; a001204c: e5801000 str r1, [r0] <== NOT EXECUTED the_node->next = before_node; before_node->previous = the_node; a0012050: 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; a0012054: e5813000 str r3, [r1] <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a0012058: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED ISR_Level level; _ISR_Disable( level ); _Chain_Insert_unprotected( after_node, node ); _ISR_Enable( level ); } a001205c: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000a78c <_Chain_Prepend_with_empty_check>: static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000a78c: e10f2000 mrs r2, CPSR <== NOT EXECUTED a000a790: e3823080 orr r3, r2, #128 ; 0x80 <== NOT EXECUTED a000a794: 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; } a000a798: e5903000 ldr r3, [r0] <== NOT EXECUTED Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; a000a79c: e5810004 str r0, [r1, #4] <== NOT EXECUTED before_node = after_node->next; after_node->next = the_node; a000a7a0: e4801004 str r1, [r0], #4 <== NOT EXECUTED the_node->next = before_node; before_node->previous = the_node; a000a7a4: 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; a000a7a8: e5813000 str r3, [r1] <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000a7ac: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED a000a7b0: e1530000 cmp r3, r0 <== NOT EXECUTED a000a7b4: 13a00000 movne r0, #0 <== NOT EXECUTED a000a7b8: 03a00001 moveq r0, #1 <== NOT EXECUTED a000a7bc: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a0008e58 <_Event_Seize>: rtems_event_set pending_events; ISR_Level level; RTEMS_API_Control *api; Thread_blocking_operation_States sync_state; executing = _Thread_Executing; a0008e58: e59fc0f8 ldr ip, [pc, #248] ; a0008f58 <_Event_Seize+0x100><== NOT EXECUTED rtems_event_set event_in, rtems_option option_set, rtems_interval ticks, rtems_event_set *event_out ) { a0008e5c: 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; a0008e60: e59c4004 ldr r4, [ip, #4] <== NOT EXECUTED executing->Wait.return_code = RTEMS_SUCCESSFUL; a0008e64: e3a0c000 mov ip, #0 <== NOT EXECUTED a0008e68: e584c034 str ip, [r4, #52] ; 0x34 <== NOT EXECUTED api = executing->API_Extensions[ THREAD_API_RTEMS ]; a0008e6c: e59470f4 ldr r7, [r4, #244] ; 0xf4 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a0008e70: e10f5000 mrs r5, CPSR <== NOT EXECUTED a0008e74: e385c080 orr ip, r5, #128 ; 0x80 <== NOT EXECUTED a0008e78: e129f00c msr CPSR_fc, ip <== NOT EXECUTED _ISR_Disable( level ); pending_events = api->pending_events; a0008e7c: e5976000 ldr r6, [r7] <== NOT EXECUTED seized_events = _Event_sets_Get( pending_events, event_in ); if ( !_Event_sets_Is_empty( seized_events ) && a0008e80: e010c006 ands ip, r0, r6 <== NOT EXECUTED a0008e84: 0a000007 beq a0008ea8 <_Event_Seize+0x50> <== NOT EXECUTED a0008e88: e15c0000 cmp ip, r0 <== NOT EXECUTED a0008e8c: 0a000001 beq a0008e98 <_Event_Seize+0x40> <== NOT EXECUTED (seized_events == event_in || _Options_Is_any( option_set )) ) { a0008e90: e3110002 tst r1, #2 <== NOT EXECUTED a0008e94: 0a000003 beq a0008ea8 <_Event_Seize+0x50> <== 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) ); a0008e98: e1c6600c bic r6, r6, ip <== NOT EXECUTED api->pending_events = a0008e9c: e5876000 str r6, [r7] <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a0008ea0: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED a0008ea4: ea000004 b a0008ebc <_Event_Seize+0x64> <== NOT EXECUTED _ISR_Enable( level ); *event_out = seized_events; return; } if ( _Options_Is_no_wait( option_set ) ) { a0008ea8: e3110001 tst r1, #1 <== NOT EXECUTED a0008eac: 0a000004 beq a0008ec4 <_Event_Seize+0x6c> <== NOT EXECUTED a0008eb0: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED _ISR_Enable( level ); executing->Wait.return_code = RTEMS_UNSATISFIED; a0008eb4: e3a0200d mov r2, #13 <== NOT EXECUTED a0008eb8: e5842034 str r2, [r4, #52] ; 0x34 <== NOT EXECUTED *event_out = seized_events; a0008ebc: e583c000 str ip, [r3] <== NOT EXECUTED return; a0008ec0: e8bd80f0 pop {r4, r5, r6, r7, pc} <== 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; a0008ec4: e5843028 str r3, [r4, #40] ; 0x28 <== NOT EXECUTED _Event_Sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; a0008ec8: e59f308c ldr r3, [pc, #140] ; a0008f5c <_Event_Seize+0x104><== 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; a0008ecc: e5841030 str r1, [r4, #48] ; 0x30 <== NOT EXECUTED executing->Wait.count = (uint32_t) event_in; executing->Wait.return_argument = event_out; _Event_Sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; a0008ed0: e3a01001 mov r1, #1 <== 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; a0008ed4: e5840024 str r0, [r4, #36] ; 0x24 <== NOT EXECUTED executing->Wait.return_argument = event_out; _Event_Sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; a0008ed8: e5831000 str r1, [r3] <== NOT EXECUTED a0008edc: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED _ISR_Enable( level ); if ( ticks ) { a0008ee0: e3520000 cmp r2, #0 <== NOT EXECUTED a0008ee4: 0a00000a beq a0008f14 <_Event_Seize+0xbc> <== NOT EXECUTED _Watchdog_Initialize( a0008ee8: e5941008 ldr r1, [r4, #8] <== NOT EXECUTED Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; a0008eec: e59f006c ldr r0, [pc, #108] ; a0008f60 <_Event_Seize+0x108><== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; a0008ef0: e3a03000 mov r3, #0 <== NOT EXECUTED the_watchdog->routine = routine; the_watchdog->id = id; a0008ef4: e5841068 str r1, [r4, #104] ; 0x68 <== NOT EXECUTED Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; a0008ef8: e5840064 str r0, [r4, #100] ; 0x64 <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; a0008efc: e5843050 str r3, [r4, #80] ; 0x50 <== NOT EXECUTED the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data; a0008f00: e584306c str r3, [r4, #108] ; 0x6c <== NOT EXECUTED Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; a0008f04: e5842054 str r2, [r4, #84] ; 0x54 <== NOT EXECUTED _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); a0008f08: e59f0054 ldr r0, [pc, #84] ; a0008f64 <_Event_Seize+0x10c> <== NOT EXECUTED a0008f0c: e2841048 add r1, r4, #72 ; 0x48 <== NOT EXECUTED a0008f10: eb000d51 bl a000c45c <_Watchdog_Insert> <== NOT EXECUTED NULL ); _Watchdog_Insert_ticks( &executing->Timer, ticks ); } _Thread_Set_state( executing, STATES_WAITING_FOR_EVENT ); a0008f14: e1a00004 mov r0, r4 <== NOT EXECUTED a0008f18: e3a01c01 mov r1, #256 ; 0x100 <== NOT EXECUTED a0008f1c: eb000c03 bl a000bf30 <_Thread_Set_state> <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a0008f20: e10f2000 mrs r2, CPSR <== NOT EXECUTED a0008f24: e3823080 orr r3, r2, #128 ; 0x80 <== NOT EXECUTED a0008f28: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED _ISR_Disable( level ); sync_state = _Event_Sync_state; a0008f2c: e59f3028 ldr r3, [pc, #40] ; a0008f5c <_Event_Seize+0x104> <== NOT EXECUTED _Event_Sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; a0008f30: e3a01000 mov r1, #0 <== NOT EXECUTED _Thread_Set_state( executing, STATES_WAITING_FOR_EVENT ); _ISR_Disable( level ); sync_state = _Event_Sync_state; a0008f34: e5930000 ldr r0, [r3] <== NOT EXECUTED _Event_Sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; a0008f38: e5831000 str r1, [r3] <== NOT EXECUTED if ( sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) { a0008f3c: e3500001 cmp r0, #1 <== NOT EXECUTED a0008f40: 1a000001 bne a0008f4c <_Event_Seize+0xf4> <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a0008f44: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED a0008f48: e8bd80f0 pop {r4, r5, r6, r7, pc} <== 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 ); a0008f4c: e1a01004 mov r1, r4 <== NOT EXECUTED } a0008f50: 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 ); a0008f54: ea0008db b a000b2c8 <_Thread_blocking_operation_Cancel> <== NOT EXECUTED =============================================================================== a0008fb8 <_Event_Surrender>: */ void _Event_Surrender( Thread_Control *the_thread ) { a0008fb8: 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 ]; a0008fbc: e590c0f4 ldr ip, [r0, #244] ; 0xf4 <== NOT EXECUTED option_set = (rtems_option) the_thread->Wait.option; a0008fc0: e5905030 ldr r5, [r0, #48] ; 0x30 <== NOT EXECUTED */ void _Event_Surrender( Thread_Control *the_thread ) { a0008fc4: e1a04000 mov r4, r0 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a0008fc8: e10f3000 mrs r3, CPSR <== NOT EXECUTED a0008fcc: e3832080 orr r2, r3, #128 ; 0x80 <== NOT EXECUTED a0008fd0: e129f002 msr CPSR_fc, r2 <== 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; a0008fd4: e59c1000 ldr r1, [ip] <== NOT EXECUTED event_condition = (rtems_event_set) the_thread->Wait.count; a0008fd8: e5900024 ldr r0, [r0, #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 ) ) { a0008fdc: e0102001 ands r2, r0, r1 <== NOT EXECUTED a0008fe0: 1a000000 bne a0008fe8 <_Event_Surrender+0x30> <== NOT EXECUTED _ISR_Enable( level ); a0008fe4: ea000039 b a00090d0 <_Event_Surrender+0x118> <== 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() && a0008fe8: e59f60e8 ldr r6, [pc, #232] ; a00090d8 <_Event_Surrender+0x120><== NOT EXECUTED a0008fec: e5967000 ldr r7, [r6] <== NOT EXECUTED a0008ff0: e3570000 cmp r7, #0 <== NOT EXECUTED a0008ff4: 0a000017 beq a0009058 <_Event_Surrender+0xa0> <== NOT EXECUTED a0008ff8: e5966004 ldr r6, [r6, #4] <== NOT EXECUTED a0008ffc: e1540006 cmp r4, r6 <== NOT EXECUTED a0009000: 1a000014 bne a0009058 <_Event_Surrender+0xa0> <== NOT EXECUTED _Thread_Is_executing( the_thread ) && ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) || a0009004: e59f60d0 ldr r6, [pc, #208] ; a00090dc <_Event_Surrender+0x124><== NOT EXECUTED a0009008: e5967000 ldr r7, [r6] <== 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 ) && a000900c: e3570002 cmp r7, #2 <== NOT EXECUTED a0009010: 0a000002 beq a0009020 <_Event_Surrender+0x68> <== NOT EXECUTED ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) || (_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) { a0009014: e5966000 ldr r6, [r6] <== 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) || a0009018: e3560001 cmp r6, #1 <== NOT EXECUTED a000901c: 1a00000d bne a0009058 <_Event_Surrender+0xa0> <== NOT EXECUTED (_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) { if ( seized_events == event_condition || _Options_Is_any(option_set) ) { a0009020: e1520000 cmp r2, r0 <== NOT EXECUTED a0009024: 0a000001 beq a0009030 <_Event_Surrender+0x78> <== NOT EXECUTED a0009028: e3150002 tst r5, #2 <== NOT EXECUTED a000902c: 0a000008 beq a0009054 <_Event_Surrender+0x9c> <== 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) ); a0009030: e1c11002 bic r1, r1, r2 <== NOT EXECUTED api->pending_events = _Event_sets_Clear( pending_events,seized_events ); a0009034: e58c1000 str r1, [ip] <== NOT EXECUTED the_thread->Wait.count = 0; a0009038: e3a01000 mov r1, #0 <== NOT EXECUTED a000903c: e5841024 str r1, [r4, #36] ; 0x24 <== NOT EXECUTED *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; a0009040: e5941028 ldr r1, [r4, #40] ; 0x28 <== NOT EXECUTED a0009044: e5812000 str r2, [r1] <== NOT EXECUTED _Event_Sync_state = THREAD_BLOCKING_OPERATION_SATISFIED; a0009048: e59f208c ldr r2, [pc, #140] ; a00090dc <_Event_Surrender+0x124><== NOT EXECUTED a000904c: e3a01003 mov r1, #3 <== NOT EXECUTED a0009050: e5821000 str r1, [r2] <== NOT EXECUTED } _ISR_Enable( level ); a0009054: ea00001d b a00090d0 <_Event_Surrender+0x118> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_event ( States_Control the_states ) { return (the_states & STATES_WAITING_FOR_EVENT); a0009058: e5946010 ldr r6, [r4, #16] <== NOT EXECUTED } /* * Otherwise, this is a normal send to another thread */ if ( _States_Is_waiting_for_event( the_thread->current_state ) ) { a000905c: e3160c01 tst r6, #256 ; 0x100 <== NOT EXECUTED a0009060: 0a00001a beq a00090d0 <_Event_Surrender+0x118> <== NOT EXECUTED if ( seized_events == event_condition || _Options_Is_any( option_set ) ) { a0009064: e1520000 cmp r2, r0 <== NOT EXECUTED a0009068: 0a000001 beq a0009074 <_Event_Surrender+0xbc> <== NOT EXECUTED a000906c: e3150002 tst r5, #2 <== NOT EXECUTED a0009070: 0a000016 beq a00090d0 <_Event_Surrender+0x118> <== NOT EXECUTED a0009074: e1c11002 bic r1, r1, r2 <== NOT EXECUTED api->pending_events = _Event_sets_Clear( pending_events, seized_events ); a0009078: e58c1000 str r1, [ip] <== NOT EXECUTED the_thread->Wait.count = 0; a000907c: e3a01000 mov r1, #0 <== NOT EXECUTED a0009080: e5841024 str r1, [r4, #36] ; 0x24 <== NOT EXECUTED *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; a0009084: e5941028 ldr r1, [r4, #40] ; 0x28 <== NOT EXECUTED a0009088: e5812000 str r2, [r1] <== NOT EXECUTED static inline void arm_interrupt_flash( uint32_t level ) { uint32_t arm_switch_reg; __asm__ volatile ( a000908c: e10f2000 mrs r2, CPSR <== NOT EXECUTED a0009090: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED a0009094: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED _ISR_Flash( level ); if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { a0009098: e5942050 ldr r2, [r4, #80] ; 0x50 <== NOT EXECUTED a000909c: e3520002 cmp r2, #2 <== NOT EXECUTED a00090a0: 0a000001 beq a00090ac <_Event_Surrender+0xf4> <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a00090a4: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED a00090a8: ea000004 b a00090c0 <_Event_Surrender+0x108> <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_REMOVE_IT; a00090ac: e3a02003 mov r2, #3 <== NOT EXECUTED a00090b0: e5842050 str r2, [r4, #80] ; 0x50 <== NOT EXECUTED a00090b4: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED _ISR_Enable( level ); _Thread_Unblock( the_thread ); } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); (void) _Watchdog_Remove( &the_thread->Timer ); a00090b8: e2840048 add r0, r4, #72 ; 0x48 <== NOT EXECUTED a00090bc: eb000d3e bl a000c5bc <_Watchdog_Remove> <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); a00090c0: e59f1018 ldr r1, [pc, #24] ; a00090e0 <_Event_Surrender+0x128><== NOT EXECUTED a00090c4: e1a00004 mov r0, r4 <== NOT EXECUTED } return; } } _ISR_Enable( level ); } a00090c8: e8bd40f0 pop {r4, r5, r6, r7, lr} <== NOT EXECUTED a00090cc: ea0008cc b a000b404 <_Thread_Clear_state> <== NOT EXECUTED a00090d0: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED a00090d4: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED =============================================================================== a00090e4 <_Event_Timeout>: void _Event_Timeout( Objects_Id id, void *ignored ) { a00090e4: e92d4001 push {r0, lr} <== NOT EXECUTED Thread_Control *the_thread; Objects_Locations location; ISR_Level level; the_thread = _Thread_Get( id, &location ); a00090e8: e1a0100d mov r1, sp <== NOT EXECUTED a00090ec: eb000994 bl a000b744 <_Thread_Get> <== NOT EXECUTED switch ( location ) { a00090f0: e59d3000 ldr r3, [sp] <== NOT EXECUTED a00090f4: e3530000 cmp r3, #0 <== NOT EXECUTED a00090f8: 1a000015 bne a0009154 <_Event_Timeout+0x70> <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a00090fc: e10f2000 mrs r2, CPSR <== NOT EXECUTED a0009100: e3821080 orr r1, r2, #128 ; 0x80 <== NOT EXECUTED a0009104: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED _ISR_Enable( level ); return; } #endif the_thread->Wait.count = 0; a0009108: e5803024 str r3, [r0, #36] ; 0x24 <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool _Thread_Is_executing ( const Thread_Control *the_thread ) { return ( the_thread == _Thread_Executing ); a000910c: e59f3044 ldr r3, [pc, #68] ; a0009158 <_Event_Timeout+0x74><== NOT EXECUTED if ( _Thread_Is_executing( the_thread ) ) { a0009110: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED a0009114: e1500003 cmp r0, r3 <== NOT EXECUTED a0009118: 1a000004 bne a0009130 <_Event_Timeout+0x4c> <== NOT EXECUTED if ( _Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) a000911c: e59f3038 ldr r3, [pc, #56] ; a000915c <_Event_Timeout+0x78><== NOT EXECUTED a0009120: e5931000 ldr r1, [r3] <== NOT EXECUTED a0009124: e3510001 cmp r1, #1 <== NOT EXECUTED _Event_Sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT; a0009128: 02811001 addeq r1, r1, #1 <== NOT EXECUTED a000912c: 05831000 streq r1, [r3] <== NOT EXECUTED } the_thread->Wait.return_code = RTEMS_TIMEOUT; a0009130: e3a03006 mov r3, #6 <== NOT EXECUTED a0009134: e5803034 str r3, [r0, #52] ; 0x34 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a0009138: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); a000913c: e59f101c ldr r1, [pc, #28] ; a0009160 <_Event_Timeout+0x7c><== NOT EXECUTED a0009140: eb0008af bl a000b404 <_Thread_Clear_state> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; a0009144: e59f3018 ldr r3, [pc, #24] ; a0009164 <_Event_Timeout+0x80><== NOT EXECUTED a0009148: e5932000 ldr r2, [r3] <== NOT EXECUTED a000914c: e2422001 sub r2, r2, #1 <== NOT EXECUTED a0009150: e5832000 str r2, [r3] <== NOT EXECUTED case OBJECTS_REMOTE: /* impossible */ #endif case OBJECTS_ERROR: break; } } a0009154: e8bd8008 pop {r3, pc} <== NOT EXECUTED =============================================================================== a000e61c <_Heap_Allocate_aligned_with_boundary>: Heap_Control *heap, uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) { a000e61c: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} a000e620: 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; a000e624: e5902010 ldr r2, [r0, #16] Heap_Control *heap, uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) { a000e628: e24dd01c sub sp, sp, #28 a000e62c: e1a0b003 mov fp, r3 Heap_Block *block = NULL; uintptr_t alloc_begin = 0; uint32_t search_count = 0; bool search_again = false; if ( block_size_floor < alloc_size ) { a000e630: e2913004 adds r3, r1, #4 Heap_Control *heap, uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) { a000e634: e1a05000 mov r5, r0 a000e638: e1a06001 mov r6, r1 Heap_Statistics *const stats = &heap->stats; uintptr_t const block_size_floor = alloc_size + HEAP_BLOCK_HEADER_SIZE - HEAP_ALLOC_BONUS; uintptr_t const page_size = heap->page_size; a000e63c: e58d2000 str r2, [sp] Heap_Block *block = NULL; uintptr_t alloc_begin = 0; uint32_t search_count = 0; bool search_again = false; if ( block_size_floor < alloc_size ) { a000e640: e58d300c str r3, [sp, #12] a000e644: 2a00006a bcs a000e7f4 <_Heap_Allocate_aligned_with_boundary+0x1d8> /* Integer overflow occured */ return NULL; } if ( boundary != 0 ) { a000e648: e35b0000 cmp fp, #0 a000e64c: 0a000003 beq a000e660 <_Heap_Allocate_aligned_with_boundary+0x44> if ( boundary < alloc_size ) { a000e650: e15b0001 cmp fp, r1 <== NOT EXECUTED a000e654: 3a000066 bcc a000e7f4 <_Heap_Allocate_aligned_with_boundary+0x1d8><== NOT EXECUTED return NULL; } if ( alignment == 0 ) { alignment = page_size; a000e658: e3580000 cmp r8, #0 <== NOT EXECUTED a000e65c: 01a08002 moveq r8, r2 <== NOT EXECUTED uintptr_t const block_begin = (uintptr_t) block; uintptr_t const block_size = _Heap_Block_size( block ); uintptr_t const block_end = block_begin + block_size; uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block ); uintptr_t const alloc_begin_ceiling = block_end - min_block_size a000e660: e59d2000 ldr r2, [sp] + HEAP_BLOCK_HEADER_SIZE + page_size - 1; uintptr_t alloc_end = block_end + HEAP_ALLOC_BONUS; a000e664: e2663004 rsb r3, r6, #4 if ( stats->max_search < search_count ) { stats->max_search = search_count; } return (void *) alloc_begin; } a000e668: e595a008 ldr sl, [r5, #8] uintptr_t const block_begin = (uintptr_t) block; uintptr_t const block_size = _Heap_Block_size( block ); uintptr_t const block_end = block_begin + block_size; uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block ); uintptr_t const alloc_begin_ceiling = block_end - min_block_size a000e66c: e2822007 add r2, r2, #7 do { Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap ); block = _Heap_Free_list_first( heap ); while ( block != free_list_tail ) { a000e670: e3a07000 mov r7, #0 uintptr_t const block_begin = (uintptr_t) block; uintptr_t const block_size = _Heap_Block_size( block ); uintptr_t const block_end = block_begin + block_size; uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block ); uintptr_t const alloc_begin_ceiling = block_end - min_block_size a000e674: e58d2014 str r2, [sp, #20] + HEAP_BLOCK_HEADER_SIZE + page_size - 1; uintptr_t alloc_end = block_end + HEAP_ALLOC_BONUS; a000e678: e58d3018 str r3, [sp, #24] do { Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap ); block = _Heap_Free_list_first( heap ); while ( block != free_list_tail ) { a000e67c: ea000048 b a000e7a4 <_Heap_Allocate_aligned_with_boundary+0x188> /* * The HEAP_PREV_BLOCK_USED flag is always set in the block size_and_flag * field. Thus the value is about one unit larger than the real block * size. The greater than operator takes this into account. */ if ( block->size_and_flag > block_size_floor ) { a000e680: e59a4004 ldr r4, [sl, #4] a000e684: e59d200c ldr r2, [sp, #12] a000e688: e1540002 cmp r4, r2 a000e68c: 9a00003f bls a000e790 <_Heap_Allocate_aligned_with_boundary+0x174> a000e690: e28a3008 add r3, sl, #8 if ( alignment == 0 ) { a000e694: e3580000 cmp r8, #0 a000e698: e58d3008 str r3, [sp, #8] RTEMS_INLINE_ROUTINE uintptr_t _Heap_Alloc_area_of_block( const Heap_Block *block ) { return (uintptr_t) block + HEAP_BLOCK_HEADER_SIZE; a000e69c: 01a04003 moveq r4, r3 a000e6a0: 0a00003b beq a000e794 <_Heap_Allocate_aligned_with_boundary+0x178> uintptr_t alignment, uintptr_t boundary ) { uintptr_t const page_size = heap->page_size; uintptr_t const min_block_size = heap->min_block_size; a000e6a4: e5952014 ldr r2, [r5, #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; a000e6a8: e59d3014 ldr r3, [sp, #20] <== NOT EXECUTED - HEAP_BLOCK_HEADER_SIZE); } RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block ) { return block->size_and_flag & ~HEAP_PREV_BLOCK_USED; a000e6ac: e3c44001 bic r4, r4, #1 <== NOT EXECUTED uintptr_t alignment, uintptr_t boundary ) { uintptr_t const page_size = heap->page_size; uintptr_t const min_block_size = heap->min_block_size; a000e6b0: e58d2004 str r2, [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; a000e6b4: e0629003 rsb r9, r2, r3 <== NOT EXECUTED uintptr_t alloc_end = block_end + HEAP_ALLOC_BONUS; uintptr_t alloc_begin = alloc_end - alloc_size; a000e6b8: e59d2018 ldr r2, [sp, #24] <== 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; a000e6bc: e08a4004 add r4, sl, r4 <== 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 a000e6c0: e0899004 add r9, r9, r4 <== NOT EXECUTED + HEAP_BLOCK_HEADER_SIZE + page_size - 1; uintptr_t alloc_end = block_end + HEAP_ALLOC_BONUS; uintptr_t alloc_begin = alloc_end - alloc_size; a000e6c4: e0824004 add r4, r2, r4 <== NOT EXECUTED RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment); a000e6c8: e1a00004 mov r0, r4 <== NOT EXECUTED a000e6cc: e1a01008 mov r1, r8 <== NOT EXECUTED a000e6d0: eb001519 bl a0013b3c <__umodsi3> <== NOT EXECUTED a000e6d4: e0604004 rsb r4, r0, r4 <== NOT EXECUTED 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 ) { a000e6d8: e1540009 cmp r4, r9 <== NOT EXECUTED a000e6dc: 9a000003 bls a000e6f0 <_Heap_Allocate_aligned_with_boundary+0xd4><== NOT EXECUTED a000e6e0: e1a00009 mov r0, r9 <== NOT EXECUTED a000e6e4: e1a01008 mov r1, r8 <== NOT EXECUTED a000e6e8: eb001513 bl a0013b3c <__umodsi3> <== NOT EXECUTED a000e6ec: e0604009 rsb r4, r0, r9 <== NOT EXECUTED } alloc_end = alloc_begin + alloc_size; /* Ensure boundary constaint */ if ( boundary != 0 ) { a000e6f0: e35b0000 cmp fp, #0 <== NOT EXECUTED a000e6f4: 0a000014 beq a000e74c <_Heap_Allocate_aligned_with_boundary+0x130><== NOT EXECUTED uintptr_t const boundary_floor = alloc_begin_floor + alloc_size; a000e6f8: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED /* Ensure that the we have a valid new block at the end */ if ( alloc_begin > alloc_begin_ceiling ) { alloc_begin = _Heap_Align_down( alloc_begin_ceiling, alignment ); } alloc_end = alloc_begin + alloc_size; a000e6fc: e0849006 add r9, r4, r6 <== NOT EXECUTED /* Ensure boundary constaint */ if ( boundary != 0 ) { uintptr_t const boundary_floor = alloc_begin_floor + alloc_size; a000e700: e0833006 add r3, r3, r6 <== NOT EXECUTED a000e704: e58d3010 str r3, [sp, #16] <== NOT EXECUTED a000e708: ea000008 b a000e730 <_Heap_Allocate_aligned_with_boundary+0x114><== NOT EXECUTED uintptr_t boundary_line = _Heap_Align_down( alloc_end, boundary ); while ( alloc_begin < boundary_line && boundary_line < alloc_end ) { if ( boundary_line < boundary_floor ) { a000e70c: e59d2010 ldr r2, [sp, #16] <== NOT EXECUTED a000e710: e1500002 cmp r0, r2 <== NOT EXECUTED a000e714: 3a00001d bcc a000e790 <_Heap_Allocate_aligned_with_boundary+0x174><== NOT EXECUTED return 0; } alloc_begin = boundary_line - alloc_size; a000e718: e0664000 rsb r4, r6, r0 <== NOT EXECUTED a000e71c: e1a00004 mov r0, r4 <== NOT EXECUTED a000e720: e1a01008 mov r1, r8 <== NOT EXECUTED a000e724: eb001504 bl a0013b3c <__umodsi3> <== NOT EXECUTED a000e728: e0604004 rsb r4, r0, r4 <== NOT EXECUTED alloc_begin = _Heap_Align_down( alloc_begin, alignment ); alloc_end = alloc_begin + alloc_size; a000e72c: e0849006 add r9, r4, r6 <== NOT EXECUTED a000e730: e1a00009 mov r0, r9 <== NOT EXECUTED a000e734: e1a0100b mov r1, fp <== NOT EXECUTED a000e738: eb0014ff bl a0013b3c <__umodsi3> <== NOT EXECUTED a000e73c: e0600009 rsb r0, r0, r9 <== NOT EXECUTED /* Ensure boundary constaint */ if ( boundary != 0 ) { uintptr_t const boundary_floor = alloc_begin_floor + alloc_size; uintptr_t boundary_line = _Heap_Align_down( alloc_end, boundary ); while ( alloc_begin < boundary_line && boundary_line < alloc_end ) { a000e740: e1500009 cmp r0, r9 <== NOT EXECUTED a000e744: 31540000 cmpcc r4, r0 <== NOT EXECUTED a000e748: 3affffef bcc a000e70c <_Heap_Allocate_aligned_with_boundary+0xf0><== NOT EXECUTED boundary_line = _Heap_Align_down( alloc_end, boundary ); } } /* Ensure that the we have a valid new block at the beginning */ if ( alloc_begin >= alloc_begin_floor ) { a000e74c: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED a000e750: e1540003 cmp r4, r3 <== NOT EXECUTED a000e754: 3a00000d bcc a000e790 <_Heap_Allocate_aligned_with_boundary+0x174><== NOT EXECUTED a000e758: e1a00004 mov r0, r4 <== NOT EXECUTED a000e75c: e59d1000 ldr r1, [sp] <== NOT EXECUTED a000e760: eb0014f5 bl a0013b3c <__umodsi3> <== NOT EXECUTED a000e764: e3e09007 mvn r9, #7 <== NOT EXECUTED a000e768: e06a9009 rsb r9, sl, r9 <== NOT EXECUTED if ( free_size >= min_block_size || free_size == 0 ) { return alloc_begin; } } return 0; a000e76c: e59d2004 ldr r2, [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); a000e770: e0899004 add r9, r9, r4 <== NOT EXECUTED if ( alloc_begin >= alloc_begin_floor ) { uintptr_t const alloc_block_begin = (uintptr_t) _Heap_Block_of_alloc_area( alloc_begin, page_size ); uintptr_t const free_size = alloc_block_begin - block_begin; if ( free_size >= min_block_size || free_size == 0 ) { a000e774: e0603009 rsb r3, r0, r9 <== NOT EXECUTED return alloc_begin; } } return 0; a000e778: e1590000 cmp r9, r0 <== NOT EXECUTED a000e77c: 11530002 cmpne r3, r2 <== NOT EXECUTED a000e780: 33a09000 movcc r9, #0 <== NOT EXECUTED a000e784: 23a09001 movcs r9, #1 <== NOT EXECUTED a000e788: 31a04009 movcc r4, r9 <== NOT EXECUTED a000e78c: ea000000 b a000e794 <_Heap_Allocate_aligned_with_boundary+0x178><== NOT EXECUTED a000e790: e3a04000 mov r4, #0 <== NOT EXECUTED } /* Statistics */ ++search_count; if ( alloc_begin != 0 ) { a000e794: e3540000 cmp r4, #0 ); } } /* Statistics */ ++search_count; a000e798: e2877001 add r7, r7, #1 if ( alloc_begin != 0 ) { a000e79c: 1a000004 bne a000e7b4 <_Heap_Allocate_aligned_with_boundary+0x198> break; } block = block->next; a000e7a0: e59aa008 ldr sl, [sl, #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 ) { a000e7a4: e15a0005 cmp sl, r5 a000e7a8: 1affffb4 bne a000e680 <_Heap_Allocate_aligned_with_boundary+0x64> a000e7ac: e3a04000 mov r4, #0 <== NOT EXECUTED a000e7b0: ea00000a b a000e7e0 <_Heap_Allocate_aligned_with_boundary+0x1c4><== NOT EXECUTED search_again = _Heap_Protection_free_delayed_blocks( heap, alloc_begin ); } while ( search_again ); if ( alloc_begin != 0 ) { /* Statistics */ ++stats->allocs; a000e7b4: e5953048 ldr r3, [r5, #72] ; 0x48 stats->searches += search_count; block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size ); a000e7b8: e1a00005 mov r0, r5 a000e7bc: e1a0100a mov r1, sl search_again = _Heap_Protection_free_delayed_blocks( heap, alloc_begin ); } while ( search_again ); if ( alloc_begin != 0 ) { /* Statistics */ ++stats->allocs; a000e7c0: e2833001 add r3, r3, #1 a000e7c4: e5853048 str r3, [r5, #72] ; 0x48 stats->searches += search_count; a000e7c8: e595304c ldr r3, [r5, #76] ; 0x4c block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size ); a000e7cc: e1a02004 mov r2, r4 } while ( search_again ); if ( alloc_begin != 0 ) { /* Statistics */ ++stats->allocs; stats->searches += search_count; a000e7d0: e0833007 add r3, r3, r7 a000e7d4: e585304c str r3, [r5, #76] ; 0x4c block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size ); a000e7d8: e1a03006 mov r3, r6 a000e7dc: ebffef30 bl a000a4a4 <_Heap_Block_allocate> boundary ); } /* Statistics */ if ( stats->max_search < search_count ) { a000e7e0: e5953044 ldr r3, [r5, #68] ; 0x44 stats->max_search = search_count; } return (void *) alloc_begin; a000e7e4: e1a00004 mov r0, r4 boundary ); } /* Statistics */ if ( stats->max_search < search_count ) { a000e7e8: e1530007 cmp r3, r7 stats->max_search = search_count; a000e7ec: 35857044 strcc r7, [r5, #68] ; 0x44 } return (void *) alloc_begin; a000e7f0: ea000000 b a000e7f8 <_Heap_Allocate_aligned_with_boundary+0x1dc> return NULL; } if ( boundary != 0 ) { if ( boundary < alloc_size ) { return NULL; a000e7f4: e3a00000 mov r0, #0 <== NOT EXECUTED if ( stats->max_search < search_count ) { stats->max_search = search_count; } return (void *) alloc_begin; } a000e7f8: e28dd01c add sp, sp, #28 a000e7fc: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} =============================================================================== a000a4a4 <_Heap_Block_allocate>: Heap_Control *heap, Heap_Block *block, uintptr_t alloc_begin, uintptr_t alloc_size ) { a000a4a4: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} } _Heap_Protection_block_initialize( heap, block ); return block; } a000a4a8: e591a004 ldr sl, [r1, #4] RTEMS_INLINE_ROUTINE uintptr_t _Heap_Alloc_area_of_block( const Heap_Block *block ) { return (uintptr_t) block + HEAP_BLOCK_HEADER_SIZE; a000a4ac: e2426008 sub r6, r2, #8 Heap_Control *heap, Heap_Block *block, uintptr_t alloc_begin, uintptr_t alloc_size ) { a000a4b0: e1a04001 mov r4, r1 a000a4b4: e1a07003 mov r7, r3 Heap_Statistics *const stats = &heap->stats; uintptr_t const alloc_area_begin = _Heap_Alloc_area_of_block( block ); uintptr_t const alloc_area_offset = alloc_begin - alloc_area_begin; a000a4b8: e0613006 rsb r3, r1, r6 - HEAP_BLOCK_HEADER_SIZE); } RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block ) { return block->size_and_flag & ~HEAP_PREV_BLOCK_USED; a000a4bc: e3ca1001 bic r1, sl, #1 RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); a000a4c0: e0849001 add r9, r4, r1 Heap_Control *heap, Heap_Block *block, uintptr_t alloc_begin, uintptr_t alloc_size ) { a000a4c4: e1a05000 mov r5, r0 block->size_and_flag = size | flag; } RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used( const Heap_Block *block ) { return block->size_and_flag & HEAP_PREV_BLOCK_USED; a000a4c8: e5990004 ldr r0, [r9, #4] Heap_Block *free_list_anchor = NULL; _HAssert( alloc_area_begin <= alloc_begin ); if ( _Heap_Is_free( block ) ) { a000a4cc: e3100001 tst r0, #1 /* Statistics */ --stats->free_blocks; ++stats->used_blocks; stats->free_size -= _Heap_Block_size( block ); } else { free_list_anchor = _Heap_Free_list_head( heap ); a000a4d0: 11a08005 movne r8, r5 Heap_Block *free_list_anchor = NULL; _HAssert( alloc_area_begin <= alloc_begin ); if ( _Heap_Is_free( block ) ) { a000a4d4: 1a00000c bne a000a50c <_Heap_Block_allocate+0x68> return _Heap_Free_list_tail(heap)->prev; } RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block ) { Heap_Block *next = block->next; a000a4d8: e5940008 ldr r0, [r4, #8] free_list_anchor = block->prev; a000a4dc: e594800c ldr r8, [r4, #12] Heap_Block *prev = block->prev; prev->next = next; a000a4e0: e5880008 str r0, [r8, #8] next->prev = prev; a000a4e4: e580800c str r8, [r0, #12] _Heap_Free_list_remove( block ); /* Statistics */ --stats->free_blocks; a000a4e8: e5950038 ldr r0, [r5, #56] ; 0x38 a000a4ec: e2400001 sub r0, r0, #1 a000a4f0: e5850038 str r0, [r5, #56] ; 0x38 ++stats->used_blocks; a000a4f4: e5950040 ldr r0, [r5, #64] ; 0x40 a000a4f8: e2800001 add r0, r0, #1 a000a4fc: e5850040 str r0, [r5, #64] ; 0x40 stats->free_size -= _Heap_Block_size( block ); a000a500: e5950030 ldr r0, [r5, #48] ; 0x30 a000a504: e0611000 rsb r1, r1, r0 a000a508: e5851030 str r1, [r5, #48] ; 0x30 } else { free_list_anchor = _Heap_Free_list_head( heap ); } if ( alloc_area_offset < heap->page_size ) { a000a50c: e5951010 ldr r1, [r5, #16] a000a510: e1530001 cmp r3, r1 a000a514: 2a000005 bcs a000a530 <_Heap_Block_allocate+0x8c> Heap_Block *block, Heap_Block *free_list_anchor, uintptr_t alloc_size ) { _Heap_Block_split( heap, block, free_list_anchor, alloc_size ); a000a518: e1a00005 mov r0, r5 a000a51c: e1a01004 mov r1, r4 a000a520: e1a02008 mov r2, r8 a000a524: e0833007 add r3, r3, r7 a000a528: ebffff2e bl a000a1e8 <_Heap_Block_split> a000a52c: ea000021 b a000a5b8 <_Heap_Block_allocate+0x114> RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment); a000a530: e1a00002 mov r0, r2 <== NOT EXECUTED a000a534: eb002580 bl a0013b3c <__umodsi3> <== NOT EXECUTED _HAssert( block_size >= heap->min_block_size ); _HAssert( new_block_size >= heap->min_block_size ); /* Statistics */ stats->free_size += block_size; a000a538: e5952030 ldr r2, [r5, #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); a000a53c: 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; a000a540: e0643006 rsb r3, r4, r6 <== NOT EXECUTED _HAssert( block_size >= heap->min_block_size ); _HAssert( new_block_size >= heap->min_block_size ); /* Statistics */ stats->free_size += block_size; a000a544: e0822003 add r2, r2, r3 <== NOT EXECUTED if ( _Heap_Is_prev_used( block ) ) { a000a548: e31a0001 tst sl, #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; a000a54c: e0669009 rsb r9, r6, r9 <== NOT EXECUTED _HAssert( block_size >= heap->min_block_size ); _HAssert( new_block_size >= heap->min_block_size ); /* Statistics */ stats->free_size += block_size; a000a550: e5852030 str r2, [r5, #48] ; 0x30 <== NOT EXECUTED if ( _Heap_Is_prev_used( block ) ) { a000a554: 0a000009 beq a000a580 <_Heap_Block_allocate+0xdc> <== 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; a000a558: e5982008 ldr r2, [r8, #8] <== NOT EXECUTED new_block->next = next; new_block->prev = block_before; a000a55c: e584800c str r8, [r4, #12] <== NOT EXECUTED Heap_Block *new_block ) { Heap_Block *next = block_before->next; new_block->next = next; a000a560: e5842008 str r2, [r4, #8] <== NOT EXECUTED new_block->prev = block_before; block_before->next = new_block; next->prev = new_block; a000a564: e582400c str r4, [r2, #12] <== NOT EXECUTED _Heap_Free_list_insert_after( free_list_anchor, block ); free_list_anchor = block; /* Statistics */ ++stats->free_blocks; a000a568: e5952038 ldr r2, [r5, #56] ; 0x38 <== NOT EXECUTED { Heap_Block *next = block_before->next; new_block->next = next; new_block->prev = block_before; block_before->next = new_block; a000a56c: e5884008 str r4, [r8, #8] <== NOT EXECUTED a000a570: e2822001 add r2, r2, #1 <== NOT EXECUTED a000a574: e5852038 str r2, [r5, #56] ; 0x38 <== NOT EXECUTED a000a578: e1a02004 mov r2, r4 <== NOT EXECUTED a000a57c: ea000005 b a000a598 <_Heap_Block_allocate+0xf4> <== NOT EXECUTED RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Prev_block( const Heap_Block *block ) { return (Heap_Block *) ((uintptr_t) block - block->prev_size); a000a580: e5942000 ldr r2, [r4] <== NOT EXECUTED a000a584: e0624004 rsb r4, r2, r4 <== NOT EXECUTED - HEAP_BLOCK_HEADER_SIZE); } RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block ) { return block->size_and_flag & ~HEAP_PREV_BLOCK_USED; a000a588: e5942004 ldr r2, [r4, #4] <== NOT EXECUTED a000a58c: e3c22001 bic r2, r2, #1 <== NOT EXECUTED } else { Heap_Block *const prev_block = _Heap_Prev_block( block ); uintptr_t const prev_block_size = _Heap_Block_size( prev_block ); block = prev_block; block_size += prev_block_size; a000a590: e0833002 add r3, r3, r2 <== NOT EXECUTED a000a594: e1a02008 mov r2, r8 <== NOT EXECUTED } block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED; a000a598: e3831001 orr r1, r3, #1 <== NOT EXECUTED a000a59c: e5841004 str r1, [r4, #4] <== NOT EXECUTED new_block->prev_size = block_size; a000a5a0: e8860208 stm r6, {r3, r9} <== NOT EXECUTED new_block->size_and_flag = new_block_size; _Heap_Block_split( heap, new_block, free_list_anchor, alloc_size ); a000a5a4: e1a00005 mov r0, r5 <== NOT EXECUTED a000a5a8: e1a01006 mov r1, r6 <== NOT EXECUTED a000a5ac: e1a03007 mov r3, r7 <== NOT EXECUTED a000a5b0: ebffff0c bl a000a1e8 <_Heap_Block_split> <== NOT EXECUTED a000a5b4: e1a04006 mov r4, r6 <== NOT EXECUTED alloc_size ); } /* Statistics */ if ( stats->min_free_size > stats->free_size ) { a000a5b8: e5953030 ldr r3, [r5, #48] ; 0x30 a000a5bc: e5952034 ldr r2, [r5, #52] ; 0x34 } _Heap_Protection_block_initialize( heap, block ); return block; } a000a5c0: e1a00004 mov r0, r4 alloc_size ); } /* Statistics */ if ( stats->min_free_size > stats->free_size ) { a000a5c4: e1520003 cmp r2, r3 stats->min_free_size = stats->free_size; a000a5c8: 85853034 strhi r3, [r5, #52] ; 0x34 } _Heap_Protection_block_initialize( heap, block ); return block; } a000a5cc: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} =============================================================================== a000a1e8 <_Heap_Block_split>: Heap_Control *heap, Heap_Block *block, Heap_Block *free_list_anchor, uintptr_t alloc_size ) { a000a1e8: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} Heap_Statistics *const stats = &heap->stats; uintptr_t const page_size = heap->page_size; uintptr_t const min_block_size = heap->min_block_size; a000a1ec: e5908014 ldr r8, [r0, #20] uintptr_t alloc_size ) { Heap_Statistics *const stats = &heap->stats; uintptr_t const page_size = heap->page_size; a000a1f0: e590a010 ldr sl, [r0, #16] Heap_Control *heap, Heap_Block *block, Heap_Block *free_list_anchor, uintptr_t alloc_size ) { a000a1f4: 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; a000a1f8: e248b008 sub fp, r8, #8 return heap->stats.size; } RTEMS_INLINE_ROUTINE uintptr_t _Heap_Max( uintptr_t a, uintptr_t b ) { return a > b ? a : b; a000a1fc: e153000b cmp r3, fp a000a200: 21a0b003 movcs fp, r3 uintptr_t const block_size = _Heap_Block_size( block ); uintptr_t const used_size = a000a204: e28bb008 add fp, fp, #8 } _Heap_Protection_block_initialize( heap, block ); return block; } a000a208: e5919004 ldr r9, [r1, #4] Heap_Control *heap, Heap_Block *block, Heap_Block *free_list_anchor, uintptr_t alloc_size ) { a000a20c: e1a04000 mov r4, r0 RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_up( uintptr_t value, uintptr_t alignment ) { uintptr_t remainder = value % alignment; a000a210: e1a0100a mov r1, sl a000a214: e1a0000b mov r0, fp a000a218: e1a06002 mov r6, r2 a000a21c: eb002646 bl a0013b3c <__umodsi3> - 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; a000a220: e3c97001 bic r7, r9, #1 uintptr_t alignment ) { uintptr_t remainder = value % alignment; if ( remainder != 0 ) { a000a224: e3500000 cmp r0, #0 uintptr_t const used_size = _Heap_Max( alloc_size, min_alloc_size ) + HEAP_BLOCK_HEADER_SIZE; uintptr_t const used_block_size = _Heap_Align_up( used_size, page_size ); uintptr_t const free_size = block_size + HEAP_ALLOC_BONUS - used_size; a000a228: e2872004 add r2, r7, #4 return value - remainder + alignment; a000a22c: 108ba00a addne sl, fp, sl } else { return value; a000a230: 01a0a00b moveq sl, fp uintptr_t const free_size_limit = min_block_size + HEAP_ALLOC_BONUS; a000a234: e2888004 add r8, r8, #4 uintptr_t const used_size = _Heap_Max( alloc_size, min_alloc_size ) + HEAP_BLOCK_HEADER_SIZE; uintptr_t const used_block_size = _Heap_Align_up( used_size, page_size ); uintptr_t const free_size = block_size + HEAP_ALLOC_BONUS - used_size; a000a238: e06bb002 rsb fp, fp, r2 ) { uintptr_t remainder = value % alignment; if ( remainder != 0 ) { return value - remainder + alignment; a000a23c: 1060a00a rsbne sl, r0, sl RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); a000a240: e0853007 add r3, r5, r7 Heap_Block *next_block = _Heap_Block_at( block, block_size ); _HAssert( used_size <= block_size + HEAP_ALLOC_BONUS ); _HAssert( used_size + free_size == block_size + HEAP_ALLOC_BONUS ); if ( free_size >= free_size_limit ) { a000a244: e15b0008 cmp fp, r8 next_block->prev_size = free_block_size; next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; _Heap_Protection_block_initialize( heap, free_block ); } else { next_block->size_and_flag |= HEAP_PREV_BLOCK_USED; a000a248: 35932004 ldrcc r2, [r3, #4] a000a24c: 33822001 orrcc r2, r2, #1 Heap_Block *next_block = _Heap_Block_at( block, block_size ); _HAssert( used_size <= block_size + HEAP_ALLOC_BONUS ); _HAssert( used_size + free_size == block_size + HEAP_ALLOC_BONUS ); if ( free_size >= free_size_limit ) { a000a250: 3a000023 bcc a000a2e4 <_Heap_Block_split+0xfc> _HAssert( used_block_size + free_block_size == block_size ); _Heap_Block_set_size( block, used_block_size ); /* Statistics */ stats->free_size += free_block_size; a000a254: e5941030 ldr r1, [r4, #48] ; 0x30 RTEMS_INLINE_ROUTINE void _Heap_Block_set_size( Heap_Block *block, uintptr_t size ) { uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED; a000a258: e2099001 and r9, r9, #1 _HAssert( used_size <= block_size + HEAP_ALLOC_BONUS ); _HAssert( used_size + free_size == block_size + HEAP_ALLOC_BONUS ); if ( free_size >= free_size_limit ) { Heap_Block *const free_block = _Heap_Block_at( block, used_block_size ); uintptr_t free_block_size = block_size - used_block_size; a000a25c: e06a7007 rsb r7, sl, r7 RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); a000a260: e08a2005 add r2, sl, r5 uintptr_t size ) { uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED; block->size_and_flag = size | flag; a000a264: e18aa009 orr sl, sl, r9 a000a268: e585a004 str sl, [r5, #4] _HAssert( used_block_size + free_block_size == block_size ); _Heap_Block_set_size( block, used_block_size ); /* Statistics */ stats->free_size += free_block_size; a000a26c: e0811007 add r1, r1, r7 a000a270: e5841030 str r1, [r4, #48] ; 0x30 - HEAP_BLOCK_HEADER_SIZE); } RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block ) { return block->size_and_flag & ~HEAP_PREV_BLOCK_USED; a000a274: e5931004 ldr r1, [r3, #4] a000a278: e3c11001 bic r1, r1, #1 } _Heap_Protection_block_initialize( heap, block ); return block; } a000a27c: e0830001 add r0, 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; a000a280: e5900004 ldr r0, [r0, #4] _Heap_Block_set_size( block, used_block_size ); /* Statistics */ stats->free_size += free_block_size; if ( _Heap_Is_used( next_block ) ) { a000a284: e3100001 tst r0, #1 a000a288: 0a000008 beq a000a2b0 <_Heap_Block_split+0xc8> RTEMS_INLINE_ROUTINE void _Heap_Free_list_insert_after( Heap_Block *block_before, Heap_Block *new_block ) { Heap_Block *next = block_before->next; a000a28c: e5961008 ldr r1, [r6, #8] new_block->next = next; new_block->prev = block_before; a000a290: e582600c str r6, [r2, #12] Heap_Block *new_block ) { Heap_Block *next = block_before->next; new_block->next = next; a000a294: e5821008 str r1, [r2, #8] new_block->prev = block_before; block_before->next = new_block; next->prev = new_block; a000a298: e581200c str r2, [r1, #12] _Heap_Free_list_insert_after( free_list_anchor, free_block ); /* Statistics */ ++stats->free_blocks; a000a29c: e5941038 ldr r1, [r4, #56] ; 0x38 { Heap_Block *next = block_before->next; new_block->next = next; new_block->prev = block_before; block_before->next = new_block; a000a2a0: e5862008 str r2, [r6, #8] a000a2a4: e2811001 add r1, r1, #1 a000a2a8: e5841038 str r1, [r4, #56] ; 0x38 a000a2ac: ea000007 b a000a2d0 <_Heap_Block_split+0xe8> RTEMS_INLINE_ROUTINE void _Heap_Free_list_replace( Heap_Block *old_block, Heap_Block *new_block ) { Heap_Block *next = old_block->next; a000a2b0: e5930008 ldr r0, [r3, #8] <== NOT EXECUTED Heap_Block *prev = old_block->prev; a000a2b4: 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; a000a2b8: e0877001 add r7, r7, r1 <== NOT EXECUTED new_block->next = next; a000a2bc: e5820008 str r0, [r2, #8] <== NOT EXECUTED new_block->prev = prev; a000a2c0: e582300c str r3, [r2, #12] <== NOT EXECUTED next->prev = new_block; prev->next = new_block; a000a2c4: e5832008 str r2, [r3, #8] <== NOT EXECUTED Heap_Block *prev = old_block->prev; new_block->next = next; new_block->prev = prev; next->prev = new_block; a000a2c8: e580200c str r2, [r0, #12] <== NOT EXECUTED RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); a000a2cc: e0873002 add r3, r7, r2 <== NOT EXECUTED next_block = _Heap_Block_at( free_block, free_block_size ); } free_block->size_and_flag = free_block_size | HEAP_PREV_BLOCK_USED; a000a2d0: e3871001 orr r1, r7, #1 a000a2d4: e5821004 str r1, [r2, #4] next_block->prev_size = free_block_size; next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; a000a2d8: e5932004 ldr r2, [r3, #4] next_block = _Heap_Block_at( free_block, free_block_size ); } free_block->size_and_flag = free_block_size | HEAP_PREV_BLOCK_USED; next_block->prev_size = free_block_size; a000a2dc: e5837000 str r7, [r3] next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; a000a2e0: e3c22001 bic r2, r2, #1 _Heap_Protection_block_initialize( heap, free_block ); } else { next_block->size_and_flag |= HEAP_PREV_BLOCK_USED; a000a2e4: e5832004 str r2, [r3, #4] a000a2e8: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} =============================================================================== a000eb38 <_Heap_Extend>: Heap_Control *heap, void *extend_area_begin_ptr, uintptr_t extend_area_size, uintptr_t *extended_size_ptr ) { a000eb38: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED a000eb3c: e1a05001 mov r5, r1 <== NOT EXECUTED Heap_Statistics *const stats = &heap->stats; Heap_Block *const first_block = heap->first_block; a000eb40: e5901020 ldr r1, [r0, #32] <== NOT EXECUTED Heap_Control *heap, void *extend_area_begin_ptr, uintptr_t extend_area_size, uintptr_t *extended_size_ptr ) { a000eb44: e24dd028 sub sp, sp, #40 ; 0x28 <== NOT EXECUTED a000eb48: e58d3018 str r3, [sp, #24] <== NOT EXECUTED Heap_Statistics *const stats = &heap->stats; Heap_Block *const first_block = heap->first_block; a000eb4c: e58d1010 str r1, [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; a000eb50: e5903010 ldr r3, [r0, #16] <== NOT EXECUTED 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; a000eb54: e5901030 ldr r1, [r0, #48] ; 0x30 <== 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; a000eb58: e3a08000 mov r8, #0 <== 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 ) { a000eb5c: e0956002 adds r6, r5, r2 <== NOT EXECUTED Heap_Control *heap, void *extend_area_begin_ptr, uintptr_t extend_area_size, uintptr_t *extended_size_ptr ) { a000eb60: e1a04000 mov r4, r0 <== 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; a000eb64: e58d3014 str r3, [sp, #20] <== 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; a000eb68: e58d8024 str r8, [sp, #36] ; 0x24 <== 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; a000eb6c: e5903014 ldr r3, [r0, #20] <== NOT EXECUTED Heap_Block *merge_below_block = NULL; Heap_Block *merge_above_block = NULL; Heap_Block *link_below_block = NULL; Heap_Block *link_above_block = NULL; Heap_Block *extend_first_block = NULL; Heap_Block *extend_last_block = NULL; a000eb70: e58d8020 str r8, [sp, #32] <== NOT EXECUTED 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; a000eb74: e58d101c str r1, [sp, #28] <== 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; a000eb78: 21a00008 movcs r0, r8 <== 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 ) { a000eb7c: 2a00009e bcs a000edfc <_Heap_Extend+0x2c4> <== NOT EXECUTED return false; } extend_area_ok = _Heap_Get_first_and_last_block( a000eb80: e28d1024 add r1, sp, #36 ; 0x24 <== NOT EXECUTED a000eb84: e58d1000 str r1, [sp] <== NOT EXECUTED a000eb88: e28d1020 add r1, sp, #32 <== NOT EXECUTED a000eb8c: e58d1004 str r1, [sp, #4] <== NOT EXECUTED a000eb90: e1a00005 mov r0, r5 <== NOT EXECUTED a000eb94: e1a01002 mov r1, r2 <== NOT EXECUTED a000eb98: e59d2014 ldr r2, [sp, #20] <== NOT EXECUTED a000eb9c: ebffeeaa bl a000a64c <_Heap_Get_first_and_last_block> <== NOT EXECUTED page_size, min_block_size, &extend_first_block, &extend_last_block ); if (!extend_area_ok ) { a000eba0: e3500000 cmp r0, #0 <== NOT EXECUTED a000eba4: 0a000094 beq a000edfc <_Heap_Extend+0x2c4> <== NOT EXECUTED a000eba8: e59da010 ldr sl, [sp, #16] <== NOT EXECUTED a000ebac: e1a07008 mov r7, r8 <== NOT EXECUTED a000ebb0: e1a09008 mov r9, r8 <== NOT EXECUTED return false; } do { uintptr_t const sub_area_begin = (start_block != first_block) ? (uintptr_t) start_block : heap->area_begin; a000ebb4: e5941018 ldr r1, [r4, #24] <== NOT EXECUTED a000ebb8: e1a03008 mov r3, r8 <== NOT EXECUTED a000ebbc: e1a0c004 mov ip, r4 <== NOT EXECUTED a000ebc0: ea000000 b a000ebc8 <_Heap_Extend+0x90> <== NOT EXECUTED a000ebc4: e1a0100a mov r1, sl <== NOT EXECUTED uintptr_t const sub_area_end = start_block->prev_size; a000ebc8: e59a4000 ldr r4, [sl] <== NOT EXECUTED Heap_Block *const end_block = _Heap_Block_of_alloc_area( sub_area_end, page_size ); if ( a000ebcc: e1560001 cmp r6, r1 <== NOT EXECUTED a000ebd0: 93a00000 movls r0, #0 <== NOT EXECUTED a000ebd4: 83a00001 movhi r0, #1 <== NOT EXECUTED a000ebd8: e1550004 cmp r5, r4 <== NOT EXECUTED a000ebdc: 23a00000 movcs r0, #0 <== NOT EXECUTED a000ebe0: e3500000 cmp r0, #0 <== NOT EXECUTED a000ebe4: 1a000083 bne a000edf8 <_Heap_Extend+0x2c0> <== NOT EXECUTED sub_area_end > extend_area_begin && extend_area_end > sub_area_begin ) { return false; } if ( extend_area_end == sub_area_begin ) { a000ebe8: e1560001 cmp r6, r1 <== NOT EXECUTED a000ebec: 01a0300a moveq r3, sl <== NOT EXECUTED a000ebf0: 0a000001 beq a000ebfc <_Heap_Extend+0xc4> <== NOT EXECUTED merge_below_block = start_block; } else if ( extend_area_end < sub_area_end ) { a000ebf4: e1560004 cmp r6, r4 <== NOT EXECUTED a000ebf8: 31a0900a movcc r9, sl <== NOT EXECUTED RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment); a000ebfc: e1a00004 mov r0, r4 <== NOT EXECUTED a000ec00: e59d1014 ldr r1, [sp, #20] <== NOT EXECUTED a000ec04: e58d300c str r3, [sp, #12] <== NOT EXECUTED a000ec08: e58dc008 str ip, [sp, #8] <== NOT EXECUTED a000ec0c: eb001520 bl a0014094 <__umodsi3> <== NOT EXECUTED a000ec10: e244b008 sub fp, r4, #8 <== NOT EXECUTED link_below_block = start_block; } if ( sub_area_end == extend_area_begin ) { a000ec14: e1540005 cmp r4, r5 <== NOT EXECUTED uintptr_t alloc_begin, uintptr_t page_size ) { return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size ) - HEAP_BLOCK_HEADER_SIZE); a000ec18: e060000b rsb r0, r0, fp <== NOT EXECUTED a000ec1c: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED a000ec20: e59dc008 ldr ip, [sp, #8] <== 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 ) a000ec24: 01a07000 moveq r7, r0 <== NOT EXECUTED start_block->prev_size = extend_area_end; a000ec28: 058a6000 streq r6, [sl] <== 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 ) { a000ec2c: 0a000000 beq a000ec34 <_Heap_Extend+0xfc> <== NOT EXECUTED a000ec30: 31a08000 movcc r8, r0 <== 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; a000ec34: e590a004 ldr sl, [r0, #4] <== 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 ); a000ec38: e59d2010 ldr r2, [sp, #16] <== NOT EXECUTED a000ec3c: e3caa001 bic sl, sl, #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); a000ec40: e080a00a add sl, r0, sl <== NOT EXECUTED a000ec44: e15a0002 cmp sl, r2 <== NOT EXECUTED a000ec48: 1affffdd bne a000ebc4 <_Heap_Extend+0x8c> <== NOT EXECUTED a000ec4c: e1a02009 mov r2, r9 <== NOT EXECUTED a000ec50: e1a09003 mov r9, r3 <== NOT EXECUTED if ( extend_area_begin < heap->area_begin ) { a000ec54: e59c3018 ldr r3, [ip, #24] <== NOT EXECUTED a000ec58: e1a0400c mov r4, ip <== NOT EXECUTED a000ec5c: e1550003 cmp r5, r3 <== NOT EXECUTED heap->area_begin = extend_area_begin; a000ec60: 358c5018 strcc r5, [ip, #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 ) { a000ec64: 3a000002 bcc a000ec74 <_Heap_Extend+0x13c> <== NOT EXECUTED heap->area_begin = extend_area_begin; } else if ( heap->area_end < extend_area_end ) { a000ec68: e59c301c ldr r3, [ip, #28] <== NOT EXECUTED a000ec6c: e1530006 cmp r3, r6 <== NOT EXECUTED heap->area_end = extend_area_end; a000ec70: 358c601c strcc r6, [ip, #28] <== NOT EXECUTED } extend_first_block_size = (uintptr_t) extend_last_block - (uintptr_t) extend_first_block; a000ec74: e59d1024 ldr r1, [sp, #36] ; 0x24 <== NOT EXECUTED a000ec78: e59d3020 ldr r3, [sp, #32] <== NOT EXECUTED extend_first_block->prev_size = extend_area_end; a000ec7c: e5816000 str r6, [r1] <== 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 = a000ec80: e0610003 rsb r0, r1, r3 <== 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; a000ec84: e380c001 orr ip, r0, #1 <== NOT EXECUTED _Heap_Protection_block_initialize( heap, extend_first_block ); extend_last_block->prev_size = extend_first_block_size; a000ec88: e5830000 str r0, [r3] <== NOT EXECUTED extend_last_block->size_and_flag = 0; a000ec8c: e3a00000 mov r0, #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 = a000ec90: e581c004 str ip, [r1, #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; a000ec94: e5830004 str r0, [r3, #4] <== NOT EXECUTED _Heap_Protection_block_initialize( heap, extend_last_block ); if ( (uintptr_t) extend_first_block < (uintptr_t) heap->first_block ) { a000ec98: e5940020 ldr r0, [r4, #32] <== NOT EXECUTED a000ec9c: e1500001 cmp r0, r1 <== NOT EXECUTED heap->first_block = extend_first_block; a000eca0: 85841020 strhi r1, [r4, #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 ) { a000eca4: 8a000002 bhi a000ecb4 <_Heap_Extend+0x17c> <== NOT EXECUTED heap->first_block = extend_first_block; } else if ( (uintptr_t) extend_last_block > (uintptr_t) heap->last_block ) { a000eca8: e5941024 ldr r1, [r4, #36] ; 0x24 <== NOT EXECUTED a000ecac: e1510003 cmp r1, r3 <== NOT EXECUTED heap->last_block = extend_last_block; a000ecb0: 35843024 strcc r3, [r4, #36] ; 0x24 <== NOT EXECUTED } if ( merge_below_block != NULL ) { a000ecb4: e3590000 cmp r9, #0 <== NOT EXECUTED a000ecb8: 0a000010 beq a000ed00 <_Heap_Extend+0x1c8> <== NOT EXECUTED Heap_Control *heap, uintptr_t extend_area_begin, Heap_Block *first_block ) { uintptr_t const page_size = heap->page_size; a000ecbc: e594a010 ldr sl, [r4, #16] <== NOT EXECUTED uintptr_t const new_first_block_alloc_begin = _Heap_Align_up( extend_area_begin + HEAP_BLOCK_HEADER_SIZE, page_size ); a000ecc0: e2855008 add r5, r5, #8 <== NOT EXECUTED RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_up( uintptr_t value, uintptr_t alignment ) { uintptr_t remainder = value % alignment; a000ecc4: e1a00005 mov r0, r5 <== NOT EXECUTED a000ecc8: e1a0100a mov r1, sl <== NOT EXECUTED a000eccc: eb0014f0 bl a0014094 <__umodsi3> <== NOT EXECUTED if ( remainder != 0 ) { a000ecd0: e3500000 cmp r0, #0 <== NOT EXECUTED return value - remainder + alignment; a000ecd4: 1085500a addne r5, r5, sl <== NOT EXECUTED uintptr_t const first_block_begin = (uintptr_t) first_block; uintptr_t const new_first_block_size = first_block_begin - new_first_block_begin; Heap_Block *const new_first_block = (Heap_Block *) new_first_block_begin; new_first_block->prev_size = first_block->prev_size; a000ecd8: e5993000 ldr r3, [r9] <== NOT EXECUTED a000ecdc: 10605005 rsbne r5, r0, r5 <== NOT EXECUTED ) { uintptr_t const page_size = heap->page_size; uintptr_t const new_first_block_alloc_begin = _Heap_Align_up( extend_area_begin + HEAP_BLOCK_HEADER_SIZE, page_size ); uintptr_t const new_first_block_begin = a000ece0: e2451008 sub r1, r5, #8 <== NOT EXECUTED uintptr_t const first_block_begin = (uintptr_t) first_block; uintptr_t const new_first_block_size = first_block_begin - new_first_block_begin; Heap_Block *const new_first_block = (Heap_Block *) new_first_block_begin; new_first_block->prev_size = first_block->prev_size; a000ece4: e5053008 str r3, [r5, #-8] <== NOT EXECUTED uintptr_t const new_first_block_alloc_begin = _Heap_Align_up( extend_area_begin + HEAP_BLOCK_HEADER_SIZE, page_size ); uintptr_t const new_first_block_begin = new_first_block_alloc_begin - HEAP_BLOCK_HEADER_SIZE; uintptr_t const first_block_begin = (uintptr_t) first_block; uintptr_t const new_first_block_size = a000ece8: e0613009 rsb r3, r1, r9 <== NOT EXECUTED first_block_begin - new_first_block_begin; Heap_Block *const new_first_block = (Heap_Block *) new_first_block_begin; new_first_block->prev_size = first_block->prev_size; new_first_block->size_and_flag = new_first_block_size | HEAP_PREV_BLOCK_USED; a000ecec: e3833001 orr r3, r3, #1 <== NOT EXECUTED a000ecf0: e5053004 str r3, [r5, #-4] <== NOT EXECUTED _Heap_Free_block( heap, new_first_block ); a000ecf4: e1a00004 mov r0, r4 <== NOT EXECUTED a000ecf8: ebffff86 bl a000eb18 <_Heap_Free_block> <== NOT EXECUTED a000ecfc: ea000004 b a000ed14 <_Heap_Extend+0x1dc> <== 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 ) { a000ed00: e3520000 cmp r2, #0 <== NOT EXECUTED _Heap_Link_below( a000ed04: 159d3020 ldrne r3, [sp, #32] <== 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; a000ed08: 10632002 rsbne r2, r3, r2 <== NOT EXECUTED a000ed0c: 13822001 orrne r2, r2, #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 = a000ed10: 15832004 strne r2, [r3, #4] <== NOT EXECUTED link_below_block, extend_last_block ); } if ( merge_above_block != NULL ) { a000ed14: e3570000 cmp r7, #0 <== NOT EXECUTED a000ed18: 0a000012 beq a000ed68 <_Heap_Extend+0x230> <== 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, a000ed1c: 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( a000ed20: e0676006 rsb r6, r7, r6 <== NOT EXECUTED RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment); a000ed24: e5941010 ldr r1, [r4, #16] <== NOT EXECUTED a000ed28: e1a00006 mov r0, r6 <== NOT EXECUTED a000ed2c: eb0014d8 bl a0014094 <__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) a000ed30: e5972004 ldr r2, [r7, #4] <== NOT EXECUTED a000ed34: e0606006 rsb r6, r0, r6 <== NOT EXECUTED page_size ); Heap_Block *const new_last_block = _Heap_Block_at( last_block, last_block_new_size ); new_last_block->size_and_flag = a000ed38: e0863007 add r3, r6, r7 <== NOT EXECUTED (last_block->size_and_flag - last_block_new_size) a000ed3c: e0662002 rsb r2, r6, r2 <== NOT EXECUTED | HEAP_PREV_BLOCK_USED; a000ed40: e3822001 orr r2, r2, #1 <== NOT EXECUTED page_size ); Heap_Block *const new_last_block = _Heap_Block_at( last_block, last_block_new_size ); new_last_block->size_and_flag = a000ed44: e5832004 str r2, [r3, #4] <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Heap_Block_set_size( Heap_Block *block, uintptr_t size ) { uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED; a000ed48: e5973004 ldr r3, [r7, #4] <== NOT EXECUTED (last_block->size_and_flag - last_block_new_size) | HEAP_PREV_BLOCK_USED; _Heap_Block_set_size( last_block, last_block_new_size ); _Heap_Free_block( heap, last_block ); a000ed4c: e1a00004 mov r0, r4 <== NOT EXECUTED a000ed50: e1a01007 mov r1, r7 <== NOT EXECUTED a000ed54: e2033001 and r3, r3, #1 <== NOT EXECUTED block->size_and_flag = size | flag; a000ed58: e1866003 orr r6, r6, r3 <== NOT EXECUTED a000ed5c: e5876004 str r6, [r7, #4] <== NOT EXECUTED a000ed60: ebffff6c bl a000eb18 <_Heap_Free_block> <== NOT EXECUTED a000ed64: ea00000b b a000ed98 <_Heap_Extend+0x260> <== NOT EXECUTED ); } if ( merge_above_block != NULL ) { _Heap_Merge_above( heap, merge_above_block, extend_area_end ); } else if ( link_above_block != NULL ) { a000ed68: e3580000 cmp r8, #0 <== NOT EXECUTED a000ed6c: 0a000009 beq a000ed98 <_Heap_Extend+0x260> <== 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; a000ed70: e5982004 ldr r2, [r8, #4] <== NOT EXECUTED ) { uintptr_t const link_begin = (uintptr_t) link; uintptr_t const first_block_begin = (uintptr_t) first_block; _Heap_Block_set_size( link, first_block_begin - link_begin ); a000ed74: e59d1024 ldr r1, [sp, #36] ; 0x24 <== 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( a000ed78: e59d3020 ldr r3, [sp, #32] <== NOT EXECUTED a000ed7c: e2022001 and r2, r2, #1 <== NOT EXECUTED ) { uintptr_t const link_begin = (uintptr_t) link; uintptr_t const first_block_begin = (uintptr_t) first_block; _Heap_Block_set_size( link, first_block_begin - link_begin ); a000ed80: e0681001 rsb r1, r8, r1 <== NOT EXECUTED block->size_and_flag = size | flag; a000ed84: e1812002 orr r2, r1, r2 <== NOT EXECUTED a000ed88: e5882004 str r2, [r8, #4] <== NOT EXECUTED last_block->size_and_flag |= HEAP_PREV_BLOCK_USED; a000ed8c: e5932004 ldr r2, [r3, #4] <== NOT EXECUTED a000ed90: e3822001 orr r2, r2, #1 <== NOT EXECUTED a000ed94: e5832004 str r2, [r3, #4] <== NOT EXECUTED extend_first_block, extend_last_block ); } if ( merge_below_block == NULL && merge_above_block == NULL ) { a000ed98: e3570000 cmp r7, #0 <== NOT EXECUTED a000ed9c: 03590000 cmpeq r9, #0 <== NOT EXECUTED a000eda0: 1a000002 bne a000edb0 <_Heap_Extend+0x278> <== NOT EXECUTED _Heap_Free_block( heap, extend_first_block ); a000eda4: e1a00004 mov r0, r4 <== NOT EXECUTED a000eda8: e59d1024 ldr r1, [sp, #36] ; 0x24 <== NOT EXECUTED a000edac: ebffff59 bl a000eb18 <_Heap_Free_block> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Heap_Set_last_block_size( Heap_Control *heap ) { _Heap_Block_set_size( heap->last_block, (uintptr_t) heap->first_block - (uintptr_t) heap->last_block a000edb0: e5943024 ldr r3, [r4, #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( a000edb4: e5941020 ldr r1, [r4, #32] <== NOT EXECUTED stats->size += extended_size; if ( extended_size_ptr != NULL ) *extended_size_ptr = extended_size; return true; a000edb8: e3a00001 mov r0, #1 <== 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; a000edbc: e5932004 ldr r2, [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( a000edc0: e0631001 rsb r1, r3, r1 <== 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; a000edc4: e2022001 and r2, r2, #1 <== NOT EXECUTED block->size_and_flag = size | flag; a000edc8: e1812002 orr r2, r1, r2 <== NOT EXECUTED a000edcc: e5832004 str r2, [r3, #4] <== NOT EXECUTED _Heap_Free_block( heap, extend_first_block ); } _Heap_Set_last_block_size( heap ); extended_size = stats->free_size - free_size; a000edd0: e59d101c ldr r1, [sp, #28] <== NOT EXECUTED a000edd4: e5943030 ldr r3, [r4, #48] ; 0x30 <== NOT EXECUTED /* Statistics */ stats->size += extended_size; a000edd8: e594202c ldr r2, [r4, #44] ; 0x2c <== NOT EXECUTED _Heap_Free_block( heap, extend_first_block ); } _Heap_Set_last_block_size( heap ); extended_size = stats->free_size - free_size; a000eddc: e0613003 rsb r3, r1, r3 <== NOT EXECUTED /* Statistics */ stats->size += extended_size; a000ede0: e0822003 add r2, r2, r3 <== NOT EXECUTED a000ede4: e584202c str r2, [r4, #44] ; 0x2c <== NOT EXECUTED if ( extended_size_ptr != NULL ) a000ede8: e59d2018 ldr r2, [sp, #24] <== NOT EXECUTED a000edec: e3520000 cmp r2, #0 <== NOT EXECUTED *extended_size_ptr = extended_size; a000edf0: 15823000 strne r3, [r2] <== NOT EXECUTED a000edf4: ea000000 b a000edfc <_Heap_Extend+0x2c4> <== 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; a000edf8: e3a00000 mov r0, #0 <== NOT EXECUTED if ( extended_size_ptr != NULL ) *extended_size_ptr = extended_size; return true; } a000edfc: e28dd028 add sp, sp, #40 ; 0x28 <== NOT EXECUTED a000ee00: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED =============================================================================== a000e800 <_Heap_Free>: return do_free; } #endif bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr ) { a000e800: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} a000e804: 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 ) { a000e808: e2510000 subs r0, r1, #0 a000e80c: 0a000075 beq a000e9e8 <_Heap_Free+0x1e8> RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment); a000e810: e5941010 ldr r1, [r4, #16] <== NOT EXECUTED a000e814: e2405008 sub r5, r0, #8 <== NOT EXECUTED a000e818: eb0014c7 bl a0013b3c <__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 a000e81c: e5947020 ldr r7, [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); a000e820: 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; a000e824: e1550007 cmp r5, r7 <== NOT EXECUTED a000e828: 33a00000 movcc r0, #0 <== NOT EXECUTED a000e82c: 3a000003 bcc a000e840 <_Heap_Free+0x40> <== NOT EXECUTED a000e830: e5940024 ldr r0, [r4, #36] ; 0x24 <== NOT EXECUTED a000e834: e1500005 cmp r0, r5 <== NOT EXECUTED a000e838: 33a00000 movcc r0, #0 <== NOT EXECUTED a000e83c: 23a00001 movcs r0, #1 <== NOT EXECUTED } alloc_begin = (uintptr_t) alloc_begin_ptr; block = _Heap_Block_of_alloc_area( alloc_begin, heap->page_size ); if ( !_Heap_Is_block_in_heap( heap, block ) ) { a000e840: e21000ff ands r0, r0, #255 ; 0xff <== NOT EXECUTED a000e844: 0a000068 beq a000e9ec <_Heap_Free+0x1ec> <== NOT EXECUTED --stats->used_blocks; ++stats->frees; stats->free_size += block_size; return( true ); } a000e848: e5956004 ldr r6, [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; a000e84c: e3c62001 bic r2, r6, #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); a000e850: e0853002 add r3, r5, r2 <== 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; a000e854: e1530007 cmp r3, r7 <== NOT EXECUTED a000e858: 33a00000 movcc r0, #0 <== NOT EXECUTED a000e85c: 3a000003 bcc a000e870 <_Heap_Free+0x70> <== NOT EXECUTED a000e860: e5940024 ldr r0, [r4, #36] ; 0x24 <== NOT EXECUTED a000e864: e1500003 cmp r0, r3 <== NOT EXECUTED a000e868: 33a00000 movcc r0, #0 <== NOT EXECUTED a000e86c: 23a00001 movcs r0, #1 <== NOT EXECUTED _Heap_Protection_block_check( heap, block ); block_size = _Heap_Block_size( block ); next_block = _Heap_Block_at( block, block_size ); if ( !_Heap_Is_block_in_heap( heap, next_block ) ) { a000e870: e21000ff ands r0, r0, #255 ; 0xff <== NOT EXECUTED a000e874: 0a00005c beq a000e9ec <_Heap_Free+0x1ec> <== NOT EXECUTED --stats->used_blocks; ++stats->frees; stats->free_size += block_size; return( true ); } a000e878: e593c004 ldr ip, [r3, #4] <== NOT EXECUTED return false; } _Heap_Protection_block_check( heap, next_block ); if ( !_Heap_Is_prev_used( next_block ) ) { a000e87c: e21c0001 ands r0, ip, #1 <== NOT EXECUTED a000e880: 0a000059 beq a000e9ec <_Heap_Free+0x1ec> <== NOT EXECUTED if ( !_Heap_Protection_determine_block_free( heap, block ) ) { return true; } next_block_size = _Heap_Block_size( next_block ); next_is_free = next_block != heap->last_block a000e884: e594a024 ldr sl, [r4, #36] ; 0x24 <== 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; a000e888: e3ccc001 bic ip, ip, #1 <== NOT EXECUTED && !_Heap_Is_prev_used( _Heap_Block_at( next_block, next_block_size )); a000e88c: e153000a cmp r3, sl <== NOT EXECUTED a000e890: 03a08000 moveq r8, #0 <== NOT EXECUTED a000e894: 0a000004 beq a000e8ac <_Heap_Free+0xac> <== NOT EXECUTED --stats->used_blocks; ++stats->frees; stats->free_size += block_size; return( true ); } a000e898: e083100c add r1, r3, 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; a000e89c: e5911004 ldr r1, [r1, #4] <== NOT EXECUTED return do_free; } #endif bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr ) a000e8a0: e3110001 tst r1, #1 <== NOT EXECUTED a000e8a4: 13a08000 movne r8, #0 <== NOT EXECUTED a000e8a8: 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 ) ) { a000e8ac: e2160001 ands r0, r6, #1 <== NOT EXECUTED if ( !_Heap_Protection_determine_block_free( heap, block ) ) { return true; } next_block_size = _Heap_Block_size( next_block ); next_is_free = next_block != heap->last_block a000e8b0: e20880ff and r8, r8, #255 ; 0xff <== NOT EXECUTED && !_Heap_Is_prev_used( _Heap_Block_at( next_block, next_block_size )); if ( !_Heap_Is_prev_used( block ) ) { a000e8b4: 1a000022 bne a000e944 <_Heap_Free+0x144> <== NOT EXECUTED uintptr_t const prev_size = block->prev_size; a000e8b8: e5956000 ldr r6, [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); a000e8bc: e0661005 rsb r1, r6, 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; a000e8c0: e1510007 cmp r1, r7 <== NOT EXECUTED a000e8c4: 3a000002 bcc a000e8d4 <_Heap_Free+0xd4> <== NOT EXECUTED a000e8c8: e15a0001 cmp sl, r1 <== NOT EXECUTED a000e8cc: 33a00000 movcc r0, #0 <== NOT EXECUTED a000e8d0: 23a00001 movcs r0, #1 <== NOT EXECUTED Heap_Block * const prev_block = _Heap_Block_at( block, -prev_size ); if ( !_Heap_Is_block_in_heap( heap, prev_block ) ) { a000e8d4: e21000ff ands r0, r0, #255 ; 0xff <== NOT EXECUTED a000e8d8: 0a000043 beq a000e9ec <_Heap_Free+0x1ec> <== 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; a000e8dc: e5910004 ldr r0, [r1, #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) ) { a000e8e0: e2100001 ands r0, r0, #1 <== NOT EXECUTED a000e8e4: 0a000040 beq a000e9ec <_Heap_Free+0x1ec> <== NOT EXECUTED _HAssert( false ); return( false ); } if ( next_is_free ) { /* coalesce both */ a000e8e8: e3580000 cmp r8, #0 <== NOT EXECUTED a000e8ec: 0a00000c beq a000e924 <_Heap_Free+0x124> <== NOT EXECUTED return _Heap_Free_list_tail(heap)->prev; } RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block ) { Heap_Block *next = block->next; a000e8f0: e5930008 ldr r0, [r3, #8] <== NOT EXECUTED Heap_Block *prev = block->prev; a000e8f4: e593300c ldr r3, [r3, #12] <== NOT EXECUTED uintptr_t const size = block_size + prev_size + next_block_size; a000e8f8: e082c00c add ip, r2, ip <== NOT EXECUTED a000e8fc: e08c6006 add r6, ip, r6 <== NOT EXECUTED prev->next = next; a000e900: e5830008 str r0, [r3, #8] <== NOT EXECUTED next->prev = prev; a000e904: e580300c str r3, [r0, #12] <== NOT EXECUTED _Heap_Free_list_remove( next_block ); stats->free_blocks -= 1; a000e908: e5943038 ldr r3, [r4, #56] ; 0x38 <== NOT EXECUTED a000e90c: e2433001 sub r3, r3, #1 <== NOT EXECUTED a000e910: e5843038 str r3, [r4, #56] ; 0x38 <== NOT EXECUTED prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED; a000e914: e3863001 orr r3, r6, #1 <== NOT EXECUTED a000e918: e5813004 str r3, [r1, #4] <== NOT EXECUTED next_block = _Heap_Block_at( prev_block, size ); _HAssert(!_Heap_Is_prev_used( next_block)); next_block->prev_size = size; a000e91c: e7816006 str r6, [r1, r6] <== NOT EXECUTED a000e920: ea000025 b a000e9bc <_Heap_Free+0x1bc> <== NOT EXECUTED } else { /* coalesce prev */ uintptr_t const size = block_size + prev_size; a000e924: e0826006 add r6, r2, r6 <== NOT EXECUTED prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED; a000e928: e3860001 orr r0, r6, #1 <== NOT EXECUTED a000e92c: e5810004 str r0, [r1, #4] <== NOT EXECUTED next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; a000e930: e5931004 ldr r1, [r3, #4] <== NOT EXECUTED next_block->prev_size = size; a000e934: e7856002 str r6, [r5, r2] <== 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; a000e938: e3c11001 bic r1, r1, #1 <== NOT EXECUTED a000e93c: e5831004 str r1, [r3, #4] <== NOT EXECUTED a000e940: ea00001d b a000e9bc <_Heap_Free+0x1bc> <== NOT EXECUTED next_block->prev_size = size; } } else if ( next_is_free ) { /* coalesce next */ a000e944: e3580000 cmp r8, #0 <== NOT EXECUTED a000e948: 0a00000a beq a000e978 <_Heap_Free+0x178> <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Heap_Free_list_replace( Heap_Block *old_block, Heap_Block *new_block ) { Heap_Block *next = old_block->next; a000e94c: e5930008 ldr r0, [r3, #8] <== NOT EXECUTED Heap_Block *prev = old_block->prev; a000e950: e593300c ldr r3, [r3, #12] <== NOT EXECUTED uintptr_t const size = block_size + next_block_size; a000e954: e08c1002 add r1, ip, r2 <== NOT EXECUTED new_block->next = next; a000e958: e5850008 str r0, [r5, #8] <== NOT EXECUTED new_block->prev = prev; a000e95c: e585300c str r3, [r5, #12] <== NOT EXECUTED next->prev = new_block; prev->next = new_block; a000e960: e5835008 str r5, [r3, #8] <== NOT EXECUTED _Heap_Free_list_replace( next_block, block ); block->size_and_flag = size | HEAP_PREV_BLOCK_USED; a000e964: e3813001 orr r3, r1, #1 <== NOT EXECUTED Heap_Block *prev = old_block->prev; new_block->next = next; new_block->prev = prev; next->prev = new_block; a000e968: e580500c str r5, [r0, #12] <== NOT EXECUTED a000e96c: e5853004 str r3, [r5, #4] <== NOT EXECUTED next_block = _Heap_Block_at( block, size ); next_block->prev_size = size; a000e970: e7851001 str r1, [r5, r1] <== NOT EXECUTED a000e974: ea000010 b a000e9bc <_Heap_Free+0x1bc> <== 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; a000e978: e5941008 ldr r1, [r4, #8] <== NOT EXECUTED new_block->next = next; new_block->prev = block_before; a000e97c: e585400c str r4, [r5, #12] <== NOT EXECUTED /* 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; next_block->prev_size = block_size; a000e980: e7852002 str r2, [r5, r2] <== NOT EXECUTED Heap_Block *new_block ) { Heap_Block *next = block_before->next; new_block->next = next; a000e984: e5851008 str r1, [r5, #8] <== NOT EXECUTED new_block->prev = block_before; block_before->next = new_block; next->prev = new_block; a000e988: e581500c str r5, [r1, #12] <== NOT EXECUTED 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; a000e98c: e3821001 orr r1, r2, #1 <== NOT EXECUTED a000e990: e5851004 str r1, [r5, #4] <== NOT EXECUTED next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; a000e994: e5931004 ldr r1, [r3, #4] <== NOT EXECUTED { Heap_Block *next = block_before->next; new_block->next = next; new_block->prev = block_before; block_before->next = new_block; a000e998: e5845008 str r5, [r4, #8] <== NOT EXECUTED a000e99c: e3c11001 bic r1, r1, #1 <== NOT EXECUTED a000e9a0: e5831004 str r1, [r3, #4] <== NOT EXECUTED next_block->prev_size = block_size; /* Statistics */ ++stats->free_blocks; a000e9a4: e5943038 ldr r3, [r4, #56] ; 0x38 <== NOT EXECUTED if ( stats->max_free_blocks < stats->free_blocks ) { a000e9a8: e594103c ldr r1, [r4, #60] ; 0x3c <== NOT EXECUTED block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED; next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; next_block->prev_size = block_size; /* Statistics */ ++stats->free_blocks; a000e9ac: e2833001 add r3, r3, #1 <== NOT EXECUTED if ( stats->max_free_blocks < stats->free_blocks ) { a000e9b0: e1510003 cmp r1, r3 <== NOT EXECUTED block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED; next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; next_block->prev_size = block_size; /* Statistics */ ++stats->free_blocks; a000e9b4: e5843038 str r3, [r4, #56] ; 0x38 <== NOT EXECUTED if ( stats->max_free_blocks < stats->free_blocks ) { stats->max_free_blocks = stats->free_blocks; a000e9b8: 3584303c strcc r3, [r4, #60] ; 0x3c <== NOT EXECUTED } } /* Statistics */ --stats->used_blocks; a000e9bc: e5943040 ldr r3, [r4, #64] ; 0x40 <== NOT EXECUTED ++stats->frees; stats->free_size += block_size; return( true ); a000e9c0: e3a00001 mov r0, #1 <== NOT EXECUTED stats->max_free_blocks = stats->free_blocks; } } /* Statistics */ --stats->used_blocks; a000e9c4: e2433001 sub r3, r3, #1 <== NOT EXECUTED a000e9c8: e5843040 str r3, [r4, #64] ; 0x40 <== NOT EXECUTED ++stats->frees; a000e9cc: e5943050 ldr r3, [r4, #80] ; 0x50 <== NOT EXECUTED a000e9d0: e2833001 add r3, r3, #1 <== NOT EXECUTED a000e9d4: e5843050 str r3, [r4, #80] ; 0x50 <== NOT EXECUTED stats->free_size += block_size; a000e9d8: e5943030 ldr r3, [r4, #48] ; 0x30 <== NOT EXECUTED a000e9dc: e0832002 add r2, r3, r2 <== NOT EXECUTED a000e9e0: e5842030 str r2, [r4, #48] ; 0x30 <== NOT EXECUTED return( true ); a000e9e4: 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; a000e9e8: e3a00001 mov r0, #1 --stats->used_blocks; ++stats->frees; stats->free_size += block_size; return( true ); } a000e9ec: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} =============================================================================== a000eb18 <_Heap_Free_block>: static void _Heap_Free_block( Heap_Control *heap, Heap_Block *block ) { Heap_Statistics *const stats = &heap->stats; /* Statistics */ ++stats->used_blocks; a000eb18: e5902040 ldr r2, [r0, #64] ; 0x40 <== NOT EXECUTED --stats->frees; _Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( block )); a000eb1c: 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; a000eb20: e2822001 add r2, r2, #1 <== NOT EXECUTED a000eb24: e5802040 str r2, [r0, #64] ; 0x40 <== NOT EXECUTED --stats->frees; a000eb28: e5902050 ldr r2, [r0, #80] ; 0x50 <== NOT EXECUTED a000eb2c: e2422001 sub r2, r2, #1 <== NOT EXECUTED a000eb30: e5802050 str r2, [r0, #80] ; 0x50 <== NOT EXECUTED _Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( block )); a000eb34: ea0000b2 b a000ee04 <_Heap_Free> <== NOT EXECUTED =============================================================================== a000a2ec <_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 ) { a000a2ec: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, 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 ); a000a2f0: e2807008 add r7, r0, #8 uintptr_t page_size, uintptr_t min_block_size, Heap_Block **first_block_ptr, Heap_Block **last_block_ptr ) { a000a2f4: e1a04000 mov r4, r0 uintptr_t const heap_area_end = heap_area_begin + heap_area_size; a000a2f8: e081a000 add sl, r1, r0 uintptr_t page_size, uintptr_t min_block_size, Heap_Block **first_block_ptr, Heap_Block **last_block_ptr ) { a000a2fc: e1a05001 mov r5, r1 RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_up( uintptr_t value, uintptr_t alignment ) { uintptr_t remainder = value % alignment; a000a300: e1a00007 mov r0, r7 a000a304: e1a01002 mov r1, r2 a000a308: e1a06002 mov r6, r2 a000a30c: e1a09003 mov r9, r3 a000a310: eb002609 bl a0013b3c <__umodsi3> if ( remainder != 0 ) { a000a314: e3500000 cmp r0, #0 return value - remainder + alignment; a000a318: 10867007 addne r7, r6, r7 a000a31c: 10607007 rsbne r7, r0, r7 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); a000a320: e2478008 sub r8, r7, #8 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 = a000a324: e0647007 rsb r7, r4, r7 _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 ( a000a328: e15a0004 cmp sl, r4 a000a32c: 21550007 cmpcs r5, r7 a000a330: 83a04000 movhi r4, #0 a000a334: 93a04001 movls r4, #1 a000a338: 9a00000d bls a000a374 <_Heap_Get_first_and_last_block+0x88> 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 ); a000a33c: e0675005 rsb r5, r7, r5 RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment); a000a340: e1a00005 mov r0, r5 a000a344: e1a01006 mov r1, r6 a000a348: eb0025fb bl a0013b3c <__umodsi3> a000a34c: 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 a000a350: e1550009 cmp r5, r9 a000a354: 3a000008 bcc a000a37c <_Heap_Get_first_and_last_block+0x90> ) { /* Invalid area or area too small */ return false; } *first_block_ptr = first_block; a000a358: e59d3020 ldr r3, [sp, #32] RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); a000a35c: e0855008 add r5, r5, r8 *last_block_ptr = last_block; return true; a000a360: e3a00001 mov r0, #1 ) { /* Invalid area or area too small */ return false; } *first_block_ptr = first_block; a000a364: e5838000 str r8, [r3] *last_block_ptr = last_block; a000a368: e59d3024 ldr r3, [sp, #36] ; 0x24 a000a36c: e5835000 str r5, [r3] return true; a000a370: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, 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; a000a374: e3a00000 mov r0, #0 <== NOT EXECUTED a000a378: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED a000a37c: e1a00004 mov r0, r4 <== NOT EXECUTED *first_block_ptr = first_block; *last_block_ptr = last_block; return true; } a000a380: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED =============================================================================== a0013bd8 <_Heap_Get_free_information>: ) { Heap_Block *the_block; Heap_Block *const tail = _Heap_Free_list_tail(the_heap); info->number = 0; a0013bd8: e3a03000 mov r3, #0 <== NOT EXECUTED a0013bdc: e5813000 str r3, [r1] <== NOT EXECUTED info->largest = 0; a0013be0: e5813004 str r3, [r1, #4] <== NOT EXECUTED info->total = 0; a0013be4: e5813008 str r3, [r1, #8] <== NOT EXECUTED info->number++; info->total += the_size; if ( info->largest < the_size ) info->largest = the_size; } } a0013be8: e5903008 ldr r3, [r0, #8] <== NOT EXECUTED info->number = 0; info->largest = 0; info->total = 0; for(the_block = _Heap_Free_list_first(the_heap); a0013bec: ea00000a b a0013c1c <_Heap_Get_free_information+0x44> <== NOT EXECUTED uint32_t const the_size = _Heap_Block_size(the_block); /* As we always coalesce free blocks, prev block must have been used. */ _HAssert(_Heap_Is_prev_used(the_block)); info->number++; a0013bf0: e591c000 ldr ip, [r1] <== 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; a0013bf4: e993000c ldmib r3, {r2, r3} <== NOT EXECUTED a0013bf8: e28cc001 add ip, ip, #1 <== NOT EXECUTED a0013bfc: e581c000 str ip, [r1] <== NOT EXECUTED info->total += the_size; a0013c00: e591c008 ldr ip, [r1, #8] <== NOT EXECUTED a0013c04: e3c22001 bic r2, r2, #1 <== NOT EXECUTED a0013c08: e08cc002 add ip, ip, r2 <== NOT EXECUTED a0013c0c: e581c008 str ip, [r1, #8] <== NOT EXECUTED if ( info->largest < the_size ) a0013c10: e591c004 ldr ip, [r1, #4] <== NOT EXECUTED a0013c14: e15c0002 cmp ip, r2 <== NOT EXECUTED info->largest = the_size; a0013c18: 35812004 strcc r2, [r1, #4] <== NOT EXECUTED info->number = 0; info->largest = 0; info->total = 0; for(the_block = _Heap_Free_list_first(the_heap); a0013c1c: e1530000 cmp r3, r0 <== NOT EXECUTED a0013c20: 1afffff2 bne a0013bf0 <_Heap_Get_free_information+0x18> <== NOT EXECUTED info->number++; info->total += the_size; if ( info->largest < the_size ) info->largest = the_size; } } a0013c24: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000f3c8 <_Heap_Get_information>: void _Heap_Get_information( Heap_Control *the_heap, Heap_Information_block *the_info ) { a000f3c8: e92d4070 push {r4, r5, r6, lr} <== 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)); a000f3cc: e3a02018 mov r2, #24 <== NOT EXECUTED void _Heap_Get_information( Heap_Control *the_heap, Heap_Information_block *the_info ) { a000f3d0: e1a05001 mov r5, r1 <== NOT EXECUTED Heap_Block *the_block = the_heap->first_block; a000f3d4: e5904020 ldr r4, [r0, #32] <== NOT EXECUTED Heap_Block *const end = the_heap->last_block; a000f3d8: e5906024 ldr r6, [r0, #36] ; 0x24 <== NOT EXECUTED memset(the_info, 0, sizeof(*the_info)); a000f3dc: e1a00001 mov r0, r1 <== NOT EXECUTED a000f3e0: e3a01000 mov r1, #0 <== NOT EXECUTED a000f3e4: eb0007db bl a0011358 <== NOT EXECUTED while ( the_block != end ) { a000f3e8: ea00000f b a000f42c <_Heap_Get_information+0x64> <== 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; a000f3ec: e5942004 ldr r2, [r4, #4] <== NOT EXECUTED a000f3f0: 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); a000f3f4: e0844002 add r4, r4, 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; a000f3f8: e5943004 ldr r3, [r4, #4] <== NOT EXECUTED 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) ) a000f3fc: e3130001 tst r3, #1 <== NOT EXECUTED info = &the_info->Used; a000f400: 1285300c addne r3, r5, #12 <== NOT EXECUTED else info = &the_info->Free; a000f404: 01a03005 moveq r3, r5 <== NOT EXECUTED info->number++; a000f408: e5931000 ldr r1, [r3] <== NOT EXECUTED a000f40c: e2811001 add r1, r1, #1 <== NOT EXECUTED a000f410: e5831000 str r1, [r3] <== NOT EXECUTED info->total += the_size; a000f414: e5931008 ldr r1, [r3, #8] <== NOT EXECUTED a000f418: e0811002 add r1, r1, r2 <== NOT EXECUTED a000f41c: e5831008 str r1, [r3, #8] <== NOT EXECUTED if ( info->largest < the_size ) a000f420: e5931004 ldr r1, [r3, #4] <== NOT EXECUTED a000f424: e1510002 cmp r1, r2 <== NOT EXECUTED info->largest = the_size; a000f428: 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 ) { a000f42c: e1540006 cmp r4, r6 <== NOT EXECUTED a000f430: 1affffed bne a000f3ec <_Heap_Get_information+0x24> <== NOT EXECUTED if ( info->largest < the_size ) info->largest = the_size; the_block = next_block; } } a000f434: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED =============================================================================== a000a384 <_Heap_Initialize>: Heap_Control *heap, void *heap_area_begin_ptr, uintptr_t heap_area_size, uintptr_t page_size ) { a000a384: e92d41ff push {r0, r1, r2, r3, r4, r5, r6, r7, r8, lr} a000a388: e1a08002 mov r8, r2 uintptr_t min_block_size = 0; bool area_ok = false; Heap_Block *first_block = NULL; Heap_Block *last_block = NULL; if ( page_size == 0 ) { a000a38c: e2535000 subs r5, r3, #0 uintptr_t first_block_begin = 0; uintptr_t first_block_size = 0; uintptr_t last_block_begin = 0; uintptr_t min_block_size = 0; bool area_ok = false; Heap_Block *first_block = NULL; a000a390: e3a02000 mov r2, #0 Heap_Control *heap, void *heap_area_begin_ptr, uintptr_t heap_area_size, uintptr_t page_size ) { a000a394: e1a04000 mov r4, r0 a000a398: e1a06001 mov r6, r1 uintptr_t first_block_begin = 0; uintptr_t first_block_size = 0; uintptr_t last_block_begin = 0; uintptr_t min_block_size = 0; bool area_ok = false; Heap_Block *first_block = NULL; a000a39c: e58d200c str r2, [sp, #12] Heap_Block *last_block = NULL; a000a3a0: e58d2008 str r2, [sp, #8] if ( page_size == 0 ) { page_size = CPU_ALIGNMENT; a000a3a4: 03a05008 moveq r5, #8 uintptr_t min_block_size = 0; bool area_ok = false; Heap_Block *first_block = NULL; Heap_Block *last_block = NULL; if ( page_size == 0 ) { a000a3a8: 0a000004 beq a000a3c0 <_Heap_Initialize+0x3c> uintptr_t alignment ) { uintptr_t remainder = value % alignment; if ( remainder != 0 ) { a000a3ac: e2153007 ands r3, r5, #7 return value - remainder + alignment; a000a3b0: 12855008 addne r5, r5, #8 a000a3b4: 10635005 rsbne r5, r3, r5 page_size = CPU_ALIGNMENT; } else { page_size = _Heap_Align_up( page_size, CPU_ALIGNMENT ); if ( page_size < CPU_ALIGNMENT ) { a000a3b8: e3550007 cmp r5, #7 a000a3bc: 9a000034 bls a000a494 <_Heap_Initialize+0x110> RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_up( uintptr_t value, uintptr_t alignment ) { uintptr_t remainder = value % alignment; a000a3c0: e1a01005 mov r1, r5 a000a3c4: e3a00010 mov r0, #16 a000a3c8: eb0025db bl a0013b3c <__umodsi3> if ( remainder != 0 ) { a000a3cc: e3500000 cmp r0, #0 return value - remainder + alignment; a000a3d0: 12857010 addne r7, r5, #16 return 0; } } min_block_size = _Heap_Align_up( sizeof( Heap_Block ), page_size ); area_ok = _Heap_Get_first_and_last_block( a000a3d4: e28d300c add r3, sp, #12 a000a3d8: 10607007 rsbne r7, r0, r7 } else { return value; a000a3dc: 03a07010 moveq r7, #16 a000a3e0: e58d3000 str r3, [sp] a000a3e4: e28d3008 add r3, sp, #8 a000a3e8: e58d3004 str r3, [sp, #4] a000a3ec: e1a00006 mov r0, r6 a000a3f0: e1a01008 mov r1, r8 a000a3f4: e1a02005 mov r2, r5 a000a3f8: e1a03007 mov r3, r7 a000a3fc: ebffffba bl a000a2ec <_Heap_Get_first_and_last_block> page_size, min_block_size, &first_block, &last_block ); if ( !area_ok ) { a000a400: e3500000 cmp r0, #0 a000a404: 0a000023 beq a000a498 <_Heap_Initialize+0x114> return 0; } memset(heap, 0, sizeof(*heap)); a000a408: e3a01000 mov r1, #0 a000a40c: e3a02058 mov r2, #88 ; 0x58 a000a410: e1a00004 mov r0, r4 a000a414: eb0019d2 bl a0010b64 heap->Protection.block_initialize = _Heap_Protection_block_initialize_default; heap->Protection.block_check = _Heap_Protection_block_check_default; heap->Protection.block_error = _Heap_Protection_block_error_default; #endif first_block_begin = (uintptr_t) first_block; a000a418: e59d300c ldr r3, [sp, #12] last_block_begin = (uintptr_t) last_block; a000a41c: e59d2008 ldr r2, [sp, #8] uintptr_t page_size ) { Heap_Statistics *const stats = &heap->stats; uintptr_t const heap_area_begin = (uintptr_t) heap_area_begin_ptr; uintptr_t const heap_area_end = heap_area_begin + heap_area_size; a000a420: e0888006 add r8, r8, r6 first_block_begin = (uintptr_t) first_block; last_block_begin = (uintptr_t) last_block; first_block_size = last_block_begin - first_block_begin; /* First block */ first_block->prev_size = heap_area_end; a000a424: e5838000 str r8, [r3] heap->Protection.block_error = _Heap_Protection_block_error_default; #endif first_block_begin = (uintptr_t) first_block; last_block_begin = (uintptr_t) last_block; first_block_size = last_block_begin - first_block_begin; a000a428: e0630002 rsb r0, r3, r2 /* First block */ first_block->prev_size = heap_area_end; first_block->size_and_flag = first_block_size | HEAP_PREV_BLOCK_USED; a000a42c: e3801001 orr r1, r0, #1 a000a430: e9830012 stmib r3, {r1, r4} first_block->next = _Heap_Free_list_tail( heap ); first_block->prev = _Heap_Free_list_head( heap ); a000a434: e583400c str r4, [r3, #12] heap->min_block_size = min_block_size; heap->area_begin = heap_area_begin; heap->area_end = heap_area_end; heap->first_block = first_block; heap->last_block = last_block; _Heap_Free_list_head( heap )->next = first_block; a000a438: e5843008 str r3, [r4, #8] /* Heap control */ heap->page_size = page_size; heap->min_block_size = min_block_size; heap->area_begin = heap_area_begin; heap->area_end = heap_area_end; heap->first_block = first_block; a000a43c: e5843020 str r3, [r4, #32] heap->last_block = last_block; _Heap_Free_list_head( heap )->next = first_block; _Heap_Free_list_tail( heap )->prev = first_block; a000a440: e584300c str r3, [r4, #12] * 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( a000a444: e0623003 rsb r3, r2, r3 heap->page_size = page_size; heap->min_block_size = min_block_size; heap->area_begin = heap_area_begin; heap->area_end = heap_area_end; heap->first_block = first_block; heap->last_block = last_block; a000a448: e5842024 str r2, [r4, #36] ; 0x24 first_block->next = _Heap_Free_list_tail( heap ); first_block->prev = _Heap_Free_list_head( heap ); _Heap_Protection_block_initialize( heap, first_block ); /* Heap control */ heap->page_size = page_size; a000a44c: e5845010 str r5, [r4, #16] heap->min_block_size = min_block_size; a000a450: e5847014 str r7, [r4, #20] heap->area_begin = heap_area_begin; a000a454: e5846018 str r6, [r4, #24] heap->area_end = heap_area_end; a000a458: e584801c str r8, [r4, #28] uintptr_t size ) { uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED; block->size_and_flag = size | flag; a000a45c: e5823004 str r3, [r2, #4] /* Statistics */ stats->size = first_block_size; stats->free_size = first_block_size; stats->min_free_size = first_block_size; stats->free_blocks = 1; a000a460: e3a03001 mov r3, #1 heap->last_block = last_block; _Heap_Free_list_head( heap )->next = first_block; _Heap_Free_list_tail( heap )->prev = first_block; /* Last block */ last_block->prev_size = first_block_size; a000a464: e5820000 str r0, [r2] /* Statistics */ stats->size = first_block_size; stats->free_size = first_block_size; stats->min_free_size = first_block_size; stats->free_blocks = 1; a000a468: e5843038 str r3, [r4, #56] ; 0x38 stats->max_free_blocks = 1; a000a46c: e584303c str r3, [r4, #60] ; 0x3c stats->instance = instance++; a000a470: e59f3028 ldr r3, [pc, #40] ; a000a4a0 <_Heap_Initialize+0x11c> last_block->size_and_flag = 0; _Heap_Set_last_block_size( heap ); _Heap_Protection_block_initialize( heap, last_block ); /* Statistics */ stats->size = first_block_size; a000a474: e584002c str r0, [r4, #44] ; 0x2c stats->free_size = first_block_size; a000a478: e5840030 str r0, [r4, #48] ; 0x30 stats->min_free_size = first_block_size; stats->free_blocks = 1; stats->max_free_blocks = 1; stats->instance = instance++; a000a47c: e5932000 ldr r2, [r3] _Heap_Protection_block_initialize( heap, last_block ); /* Statistics */ stats->size = first_block_size; stats->free_size = first_block_size; stats->min_free_size = first_block_size; a000a480: e5840034 str r0, [r4, #52] ; 0x34 stats->free_blocks = 1; stats->max_free_blocks = 1; stats->instance = instance++; a000a484: e5842028 str r2, [r4, #40] ; 0x28 a000a488: e2822001 add r2, r2, #1 a000a48c: e5832000 str r2, [r3] ); _HAssert( _Heap_Is_aligned( _Heap_Alloc_area_of_block( last_block ), page_size ) ); return first_block_size; a000a490: ea000000 b a000a498 <_Heap_Initialize+0x114> } else { page_size = _Heap_Align_up( page_size, CPU_ALIGNMENT ); if ( page_size < CPU_ALIGNMENT ) { /* Integer overflow */ return 0; a000a494: e3a00000 mov r0, #0 <== NOT EXECUTED _HAssert( _Heap_Is_aligned( _Heap_Alloc_area_of_block( last_block ), page_size ) ); return first_block_size; } a000a498: e28dd010 add sp, sp, #16 a000a49c: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} =============================================================================== a00155f4 <_Heap_Resize_block>: void *alloc_begin_ptr, uintptr_t new_alloc_size, uintptr_t *old_size, uintptr_t *new_size ) { a00155f4: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED a00155f8: e1a04000 mov r4, r0 <== NOT EXECUTED RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment); a00155fc: e241a008 sub sl, r1, #8 <== NOT EXECUTED a0015600: e1a00001 mov r0, r1 <== NOT EXECUTED a0015604: e1a05001 mov r5, r1 <== NOT EXECUTED a0015608: e5941010 ldr r1, [r4, #16] <== NOT EXECUTED a001560c: e1a08003 mov r8, r3 <== NOT EXECUTED a0015610: e1a07002 mov r7, r2 <== NOT EXECUTED a0015614: ebfff948 bl a0013b3c <__umodsi3> <== NOT EXECUTED a0015618: e59d601c ldr r6, [sp, #28] <== 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; a001561c: e3a03000 mov r3, #0 <== NOT EXECUTED a0015620: e5883000 str r3, [r8] <== NOT EXECUTED *new_size = 0; a0015624: e5863000 str r3, [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; a0015628: e5943020 ldr r3, [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); a001562c: e060100a rsb r1, r0, sl <== 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; a0015630: e1530001 cmp r3, r1 <== NOT EXECUTED a0015634: 8a000039 bhi a0015720 <_Heap_Resize_block+0x12c> <== NOT EXECUTED a0015638: e5943024 ldr r3, [r4, #36] ; 0x24 <== NOT EXECUTED a001563c: e1530001 cmp r3, r1 <== NOT EXECUTED a0015640: 3a000038 bcc a0015728 <_Heap_Resize_block+0x134> <== 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; a0015644: e5913004 ldr r3, [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; a0015648: e265c004 rsb ip, r5, #4 <== NOT EXECUTED a001564c: e3c33001 bic r3, r3, #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; a0015650: e0812003 add r2, r1, r3 <== NOT EXECUTED a0015654: e5920004 ldr r0, [r2, #4] <== NOT EXECUTED uintptr_t alloc_size = block_end - alloc_begin + HEAP_ALLOC_BONUS; a0015658: e08cc002 add ip, ip, r2 <== NOT EXECUTED a001565c: e3c00001 bic r0, r0, #1 <== NOT EXECUTED old_size, new_size ); } return HEAP_RESIZE_FATAL_ERROR; } a0015660: e082a000 add sl, r2, r0 <== 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; a0015664: e59aa004 ldr sl, [sl, #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; a0015668: e588c000 str ip, [r8] <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool _Heap_Is_free( const Heap_Block *block ) { return !_Heap_Is_used( block ); a001566c: e31a0001 tst sl, #1 <== NOT EXECUTED a0015670: 13a0a000 movne sl, #0 <== NOT EXECUTED a0015674: 03a0a001 moveq sl, #1 <== NOT EXECUTED if ( next_block_is_free ) { a0015678: e35a0000 cmp sl, #0 <== NOT EXECUTED block_size += next_block_size; alloc_size += next_block_size; a001567c: 108cc000 addne ip, ip, r0 <== NOT EXECUTED _HAssert( _Heap_Is_prev_used( next_block ) ); *old_size = alloc_size; if ( next_block_is_free ) { block_size += next_block_size; a0015680: 10833000 addne r3, r3, r0 <== NOT EXECUTED alloc_size += next_block_size; } if ( new_alloc_size > alloc_size ) { a0015684: e157000c cmp r7, ip <== NOT EXECUTED a0015688: 8a000022 bhi a0015718 <_Heap_Resize_block+0x124> <== NOT EXECUTED return HEAP_RESIZE_UNSATISFIED; } if ( next_block_is_free ) { a001568c: e35a0000 cmp sl, #0 <== NOT EXECUTED a0015690: 0a000011 beq a00156dc <_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; a0015694: e591c004 ldr ip, [r1, #4] <== NOT EXECUTED a0015698: e20cc001 and ip, ip, #1 <== NOT EXECUTED block->size_and_flag = size | flag; a001569c: e183c00c orr ip, r3, ip <== NOT EXECUTED a00156a0: e581c004 str ip, [r1, #4] <== NOT EXECUTED return _Heap_Free_list_tail(heap)->prev; } RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block ) { Heap_Block *next = block->next; a00156a4: e592c008 ldr ip, [r2, #8] <== NOT EXECUTED Heap_Block *prev = block->prev; a00156a8: e592200c ldr r2, [r2, #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); a00156ac: e0833001 add r3, r3, r1 <== 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; a00156b0: e582c008 str ip, [r2, #8] <== NOT EXECUTED next->prev = prev; a00156b4: e58c200c str r2, [ip, #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; a00156b8: e5932004 ldr r2, [r3, #4] <== NOT EXECUTED a00156bc: e3822001 orr r2, r2, #1 <== NOT EXECUTED a00156c0: e5832004 str r2, [r3, #4] <== NOT EXECUTED /* Statistics */ --stats->free_blocks; a00156c4: e5943038 ldr r3, [r4, #56] ; 0x38 <== NOT EXECUTED a00156c8: e2433001 sub r3, r3, #1 <== NOT EXECUTED a00156cc: e5843038 str r3, [r4, #56] ; 0x38 <== NOT EXECUTED stats->free_size -= next_block_size; a00156d0: e5943030 ldr r3, [r4, #48] ; 0x30 <== NOT EXECUTED a00156d4: e0600003 rsb r0, r0, r3 <== NOT EXECUTED a00156d8: e5840030 str r0, [r4, #48] ; 0x30 <== NOT EXECUTED } block = _Heap_Block_allocate( heap, block, alloc_begin, new_alloc_size ); a00156dc: e1a02005 mov r2, r5 <== NOT EXECUTED a00156e0: e1a03007 mov r3, r7 <== NOT EXECUTED a00156e4: e1a00004 mov r0, r4 <== NOT EXECUTED a00156e8: ebffd36d bl a000a4a4 <_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; a00156ec: e5903004 ldr r3, [r0, #4] <== NOT EXECUTED a00156f0: 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); a00156f4: e2833004 add r3, r3, #4 <== NOT EXECUTED block_size = _Heap_Block_size( block ); next_block = _Heap_Block_at( block, block_size ); *new_size = (uintptr_t) next_block - alloc_begin + HEAP_ALLOC_BONUS; a00156f8: e0655003 rsb r5, r5, r3 <== NOT EXECUTED a00156fc: e0800005 add r0, r0, r5 <== NOT EXECUTED a0015700: e5860000 str r0, [r6] <== NOT EXECUTED /* Statistics */ ++stats->resizes; a0015704: e5943054 ldr r3, [r4, #84] ; 0x54 <== NOT EXECUTED return HEAP_RESIZE_SUCCESSFUL; a0015708: e3a00000 mov r0, #0 <== NOT EXECUTED block_size = _Heap_Block_size( block ); next_block = _Heap_Block_at( block, block_size ); *new_size = (uintptr_t) next_block - alloc_begin + HEAP_ALLOC_BONUS; /* Statistics */ ++stats->resizes; a001570c: e2833001 add r3, r3, #1 <== NOT EXECUTED a0015710: e5843054 str r3, [r4, #84] ; 0x54 <== NOT EXECUTED a0015714: 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; a0015718: 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( a001571c: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED new_alloc_size, old_size, new_size ); } return HEAP_RESIZE_FATAL_ERROR; a0015720: e3a00002 mov r0, #2 <== NOT EXECUTED a0015724: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED a0015728: e3a00002 mov r0, #2 <== NOT EXECUTED } a001572c: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED =============================================================================== a000b1ec <_Heap_Walk>: bool _Heap_Walk( Heap_Control *heap, int source, bool dump ) { a000b1ec: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED uintptr_t const page_size = heap->page_size; uintptr_t const min_block_size = heap->min_block_size; a000b1f0: e5903014 ldr r3, [r0, #20] <== NOT EXECUTED bool _Heap_Walk( Heap_Control *heap, int source, bool dump ) { a000b1f4: e24dd030 sub sp, sp, #48 ; 0x30 <== 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; a000b1f8: e59f44c8 ldr r4, [pc, #1224] ; a000b6c8 <_Heap_Walk+0x4dc> <== NOT EXECUTED int source, bool dump ) { uintptr_t const page_size = heap->page_size; uintptr_t const min_block_size = heap->min_block_size; a000b1fc: e58d3024 str r3, [sp, #36] ; 0x24 <== NOT EXECUTED Heap_Block *const first_block = heap->first_block; Heap_Block *const last_block = heap->last_block; a000b200: e5903024 ldr r3, [r0, #36] ; 0x24 <== NOT EXECUTED Heap_Block *block = first_block; Heap_Walk_printer printer = dump ? _Heap_Walk_print : _Heap_Walk_print_nothing; a000b204: e31200ff tst r2, #255 ; 0xff <== NOT EXECUTED bool dump ) { uintptr_t const page_size = heap->page_size; uintptr_t const min_block_size = heap->min_block_size; Heap_Block *const first_block = heap->first_block; a000b208: e590c020 ldr ip, [r0, #32] <== NOT EXECUTED Heap_Block *const last_block = heap->last_block; a000b20c: e58d3028 str r3, [sp, #40] ; 0x28 <== NOT EXECUTED Heap_Block *block = first_block; Heap_Walk_printer printer = dump ? _Heap_Walk_print : _Heap_Walk_print_nothing; a000b210: e59f34b4 ldr r3, [pc, #1204] ; a000b6cc <_Heap_Walk+0x4e0> <== NOT EXECUTED bool _Heap_Walk( Heap_Control *heap, int source, bool dump ) { a000b214: e1a06000 mov r6, r0 <== NOT EXECUTED a000b218: e1a05001 mov r5, r1 <== 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; a000b21c: 11a04003 movne r4, r3 <== NOT EXECUTED if ( !_System_state_Is_up( _System_state_Get() ) ) { a000b220: e59f34a8 ldr r3, [pc, #1192] ; a000b6d0 <_Heap_Walk+0x4e4> <== NOT EXECUTED Heap_Control *heap, int source, bool dump ) { uintptr_t const page_size = heap->page_size; a000b224: e5909010 ldr r9, [r0, #16] <== NOT EXECUTED uintptr_t const min_block_size = heap->min_block_size; Heap_Block *const first_block = heap->first_block; a000b228: e58dc020 str ip, [sp, #32] <== NOT EXECUTED 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() ) ) { a000b22c: e5933000 ldr r3, [r3] <== NOT EXECUTED a000b230: e3530003 cmp r3, #3 <== NOT EXECUTED a000b234: 1a000118 bne a000b69c <_Heap_Walk+0x4b0> <== 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)( a000b238: e59dc024 ldr ip, [sp, #36] ; 0x24 <== NOT EXECUTED a000b23c: e59d2020 ldr r2, [sp, #32] <== NOT EXECUTED a000b240: e58dc000 str ip, [sp] <== NOT EXECUTED a000b244: e5903018 ldr r3, [r0, #24] <== NOT EXECUTED a000b248: e58d3004 str r3, [sp, #4] <== NOT EXECUTED a000b24c: e590301c ldr r3, [r0, #28] <== NOT EXECUTED a000b250: e58d200c str r2, [sp, #12] <== NOT EXECUTED a000b254: e59f2478 ldr r2, [pc, #1144] ; a000b6d4 <_Heap_Walk+0x4e8> <== NOT EXECUTED a000b258: e58d3008 str r3, [sp, #8] <== NOT EXECUTED a000b25c: e59d3028 ldr r3, [sp, #40] ; 0x28 <== NOT EXECUTED a000b260: e58d3010 str r3, [sp, #16] <== NOT EXECUTED a000b264: e5903008 ldr r3, [r0, #8] <== NOT EXECUTED a000b268: e58d3014 str r3, [sp, #20] <== NOT EXECUTED a000b26c: e590300c ldr r3, [r0, #12] <== NOT EXECUTED a000b270: e1a00001 mov r0, r1 <== NOT EXECUTED a000b274: e3a01000 mov r1, #0 <== NOT EXECUTED a000b278: e58d3018 str r3, [sp, #24] <== NOT EXECUTED a000b27c: e1a03009 mov r3, r9 <== NOT EXECUTED a000b280: e12fff34 blx r4 <== NOT EXECUTED heap->area_begin, heap->area_end, first_block, last_block, first_free_block, last_free_block ); if ( page_size == 0 ) { a000b284: e3590000 cmp r9, #0 <== NOT EXECUTED a000b288: 1a000005 bne a000b2a4 <_Heap_Walk+0xb8> <== NOT EXECUTED (*printer)( source, true, "page size is zero\n" ); a000b28c: e1a00005 mov r0, r5 <== NOT EXECUTED a000b290: e3a01001 mov r1, #1 <== NOT EXECUTED a000b294: e59f243c ldr r2, [pc, #1084] ; a000b6d8 <_Heap_Walk+0x4ec> <== NOT EXECUTED a000b298: e12fff34 blx r4 <== NOT EXECUTED if ( !_System_state_Is_up( _System_state_Get() ) ) { return true; } if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; a000b29c: e1a08009 mov r8, r9 <== NOT EXECUTED a000b2a0: ea0000fe b a000b6a0 <_Heap_Walk+0x4b4> <== NOT EXECUTED (*printer)( source, true, "page size is zero\n" ); return false; } if ( !_Addresses_Is_aligned( (void *) page_size ) ) { a000b2a4: e2198007 ands r8, r9, #7 <== NOT EXECUTED (*printer)( a000b2a8: 11a00005 movne r0, r5 <== NOT EXECUTED a000b2ac: 13a01001 movne r1, #1 <== NOT EXECUTED a000b2b0: 159f2424 ldrne r2, [pc, #1060] ; a000b6dc <_Heap_Walk+0x4f0><== NOT EXECUTED a000b2b4: 11a03009 movne r3, r9 <== NOT EXECUTED a000b2b8: 1a0000ff bne a000b6bc <_Heap_Walk+0x4d0> <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned( uintptr_t value, uintptr_t alignment ) { return (value % alignment) == 0; a000b2bc: e59d0024 ldr r0, [sp, #36] ; 0x24 <== NOT EXECUTED a000b2c0: e1a01009 mov r1, r9 <== NOT EXECUTED a000b2c4: ebffe75d bl a0005040 <__umodsi3> <== NOT EXECUTED ); return false; } if ( !_Heap_Is_aligned( min_block_size, page_size ) ) { a000b2c8: e250b000 subs fp, r0, #0 <== NOT EXECUTED a000b2cc: 0a000005 beq a000b2e8 <_Heap_Walk+0xfc> <== NOT EXECUTED (*printer)( a000b2d0: e1a00005 mov r0, r5 <== NOT EXECUTED a000b2d4: e3a01001 mov r1, #1 <== NOT EXECUTED a000b2d8: e59f2400 ldr r2, [pc, #1024] ; a000b6e0 <_Heap_Walk+0x4f4> <== NOT EXECUTED a000b2dc: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED a000b2e0: e12fff34 blx r4 <== NOT EXECUTED a000b2e4: ea0000ed b a000b6a0 <_Heap_Walk+0x4b4> <== NOT EXECUTED a000b2e8: e59dc020 ldr ip, [sp, #32] <== NOT EXECUTED a000b2ec: e1a01009 mov r1, r9 <== NOT EXECUTED a000b2f0: e28c0008 add r0, ip, #8 <== NOT EXECUTED a000b2f4: ebffe751 bl a0005040 <__umodsi3> <== NOT EXECUTED ); return false; } if ( a000b2f8: e250a000 subs sl, r0, #0 <== NOT EXECUTED !_Heap_Is_aligned( _Heap_Alloc_area_of_block( first_block ), page_size ) ) { (*printer)( a000b2fc: 11a00005 movne r0, r5 <== NOT EXECUTED a000b300: 13a01001 movne r1, #1 <== NOT EXECUTED a000b304: 159f23d8 ldrne r2, [pc, #984] ; a000b6e4 <_Heap_Walk+0x4f8><== NOT EXECUTED a000b308: 159d3020 ldrne r3, [sp, #32] <== NOT EXECUTED a000b30c: 1a0000c3 bne a000b620 <_Heap_Walk+0x434> <== 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; a000b310: e59d2020 ldr r2, [sp, #32] <== NOT EXECUTED a000b314: e5928004 ldr r8, [r2, #4] <== NOT EXECUTED ); return false; } if ( !_Heap_Is_prev_used( first_block ) ) { a000b318: e2188001 ands r8, r8, #1 <== NOT EXECUTED (*printer)( a000b31c: 01a00005 moveq r0, r5 <== NOT EXECUTED a000b320: 03a01001 moveq r1, #1 <== NOT EXECUTED a000b324: 059f23bc ldreq r2, [pc, #956] ; a000b6e8 <_Heap_Walk+0x4fc><== NOT EXECUTED a000b328: 0a000009 beq a000b354 <_Heap_Walk+0x168> <== 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; a000b32c: e59d3028 ldr r3, [sp, #40] ; 0x28 <== NOT EXECUTED a000b330: e5937004 ldr r7, [r3, #4] <== NOT EXECUTED a000b334: e3c77001 bic r7, r7, #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); a000b338: e0837007 add r7, 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; a000b33c: e5978004 ldr r8, [r7, #4] <== NOT EXECUTED ); return false; } if ( _Heap_Is_free( last_block ) ) { a000b340: e2188001 ands r8, r8, #1 <== NOT EXECUTED a000b344: 1a000004 bne a000b35c <_Heap_Walk+0x170> <== NOT EXECUTED (*printer)( a000b348: e59f239c ldr r2, [pc, #924] ; a000b6ec <_Heap_Walk+0x500> <== NOT EXECUTED a000b34c: e1a00005 mov r0, r5 <== NOT EXECUTED a000b350: e3a01001 mov r1, #1 <== NOT EXECUTED a000b354: e12fff34 blx r4 <== NOT EXECUTED a000b358: ea0000d0 b a000b6a0 <_Heap_Walk+0x4b4> <== NOT EXECUTED ); return false; } if ( a000b35c: e59dc020 ldr ip, [sp, #32] <== NOT EXECUTED a000b360: e157000c cmp r7, ip <== NOT EXECUTED a000b364: 0a000005 beq a000b380 <_Heap_Walk+0x194> <== NOT EXECUTED _Heap_Block_at( last_block, _Heap_Block_size( last_block ) ) != first_block ) { (*printer)( a000b368: e1a00005 mov r0, r5 <== NOT EXECUTED a000b36c: e3a01001 mov r1, #1 <== NOT EXECUTED a000b370: e59f2378 ldr r2, [pc, #888] ; a000b6f0 <_Heap_Walk+0x504> <== NOT EXECUTED a000b374: e12fff34 blx r4 <== NOT EXECUTED if ( !_System_state_Is_up( _System_state_Get() ) ) { return true; } if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; a000b378: e1a0800a mov r8, sl <== NOT EXECUTED a000b37c: ea0000c7 b a000b6a0 <_Heap_Walk+0x4b4> <== NOT EXECUTED int source, Heap_Walk_printer printer, Heap_Control *heap ) { uintptr_t const page_size = heap->page_size; a000b380: e596b010 ldr fp, [r6, #16] <== NOT EXECUTED block = next_block; } while ( block != first_block ); return true; } a000b384: e5968008 ldr r8, [r6, #8] <== NOT EXECUTED Heap_Walk_printer printer, Heap_Control *heap ) { uintptr_t const page_size = heap->page_size; const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap ); a000b388: e1a0a006 mov sl, r6 <== NOT EXECUTED a000b38c: ea000032 b a000b45c <_Heap_Walk+0x270> <== 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; a000b390: e5963020 ldr r3, [r6, #32] <== NOT EXECUTED a000b394: e1530008 cmp r3, r8 <== NOT EXECUTED a000b398: 83a0c000 movhi ip, #0 <== NOT EXECUTED a000b39c: 8a000003 bhi a000b3b0 <_Heap_Walk+0x1c4> <== NOT EXECUTED a000b3a0: e596c024 ldr ip, [r6, #36] ; 0x24 <== NOT EXECUTED a000b3a4: e15c0008 cmp ip, r8 <== NOT EXECUTED a000b3a8: 33a0c000 movcc ip, #0 <== NOT EXECUTED a000b3ac: 23a0c001 movcs ip, #1 <== NOT EXECUTED const Heap_Block *const first_free_block = _Heap_Free_list_first( heap ); const Heap_Block *prev_block = free_list_tail; const Heap_Block *free_block = first_free_block; while ( free_block != free_list_tail ) { if ( !_Heap_Is_block_in_heap( heap, free_block ) ) { a000b3b0: e21cc0ff ands ip, ip, #255 ; 0xff <== NOT EXECUTED (*printer)( a000b3b4: 01a00005 moveq r0, r5 <== NOT EXECUTED a000b3b8: 03a01001 moveq r1, #1 <== NOT EXECUTED a000b3bc: 059f2330 ldreq r2, [pc, #816] ; a000b6f4 <_Heap_Walk+0x508><== NOT EXECUTED a000b3c0: 0a000012 beq a000b410 <_Heap_Walk+0x224> <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned( uintptr_t value, uintptr_t alignment ) { return (value % alignment) == 0; a000b3c4: e2880008 add r0, r8, #8 <== NOT EXECUTED a000b3c8: e1a0100b mov r1, fp <== NOT EXECUTED a000b3cc: ebffe71b bl a0005040 <__umodsi3> <== NOT EXECUTED ); return false; } if ( a000b3d0: e250c000 subs ip, r0, #0 <== NOT EXECUTED !_Heap_Is_aligned( _Heap_Alloc_area_of_block( free_block ), page_size ) ) { (*printer)( a000b3d4: 11a00005 movne r0, r5 <== NOT EXECUTED a000b3d8: 13a01001 movne r1, #1 <== NOT EXECUTED a000b3dc: 159f2314 ldrne r2, [pc, #788] ; a000b6f8 <_Heap_Walk+0x50c><== NOT EXECUTED a000b3e0: 11a03008 movne r3, r8 <== NOT EXECUTED a000b3e4: 1a0000b4 bne a000b6bc <_Heap_Walk+0x4d0> <== 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; a000b3e8: e5983004 ldr r3, [r8, #4] <== NOT EXECUTED a000b3ec: e3c33001 bic r3, r3, #1 <== NOT EXECUTED block = next_block; } while ( block != first_block ); return true; } a000b3f0: e0883003 add r3, r8, 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; a000b3f4: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED ); return false; } if ( _Heap_Is_used( free_block ) ) { a000b3f8: e2133001 ands r3, r3, #1 <== NOT EXECUTED a000b3fc: e58d302c str r3, [sp, #44] ; 0x2c <== NOT EXECUTED a000b400: 0a000008 beq a000b428 <_Heap_Walk+0x23c> <== NOT EXECUTED (*printer)( a000b404: e59f22f0 ldr r2, [pc, #752] ; a000b6fc <_Heap_Walk+0x510> <== NOT EXECUTED a000b408: e1a00005 mov r0, r5 <== NOT EXECUTED a000b40c: e3a01001 mov r1, #1 <== NOT EXECUTED a000b410: e1a03008 mov r3, r8 <== NOT EXECUTED a000b414: e58dc01c str ip, [sp, #28] <== NOT EXECUTED a000b418: e12fff34 blx r4 <== NOT EXECUTED if ( !_System_state_Is_up( _System_state_Get() ) ) { return true; } if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; a000b41c: e59dc01c ldr ip, [sp, #28] <== NOT EXECUTED a000b420: e1a0800c mov r8, ip <== NOT EXECUTED a000b424: ea00009d b a000b6a0 <_Heap_Walk+0x4b4> <== NOT EXECUTED ); return false; } if ( free_block->prev != prev_block ) { a000b428: e598300c ldr r3, [r8, #12] <== NOT EXECUTED a000b42c: e153000a cmp r3, sl <== NOT EXECUTED a000b430: 0a000007 beq a000b454 <_Heap_Walk+0x268> <== NOT EXECUTED (*printer)( a000b434: e58d3000 str r3, [sp] <== NOT EXECUTED a000b438: e1a00005 mov r0, r5 <== NOT EXECUTED a000b43c: e1a03008 mov r3, r8 <== NOT EXECUTED a000b440: e3a01001 mov r1, #1 <== NOT EXECUTED a000b444: e59f22b4 ldr r2, [pc, #692] ; a000b700 <_Heap_Walk+0x514> <== NOT EXECUTED a000b448: e12fff34 blx r4 <== NOT EXECUTED if ( !_System_state_Is_up( _System_state_Get() ) ) { return true; } if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; a000b44c: e59d802c ldr r8, [sp, #44] ; 0x2c <== NOT EXECUTED a000b450: ea000092 b a000b6a0 <_Heap_Walk+0x4b4> <== NOT EXECUTED return false; } prev_block = free_block; free_block = free_block->next; a000b454: e1a0a008 mov sl, r8 <== NOT EXECUTED a000b458: e5988008 ldr r8, [r8, #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 ) { a000b45c: e1580006 cmp r8, r6 <== NOT EXECUTED a000b460: 1affffca bne a000b390 <_Heap_Walk+0x1a4> <== NOT EXECUTED a000b464: ea000000 b a000b46c <_Heap_Walk+0x280> <== NOT EXECUTED block->prev_size ); } block = next_block; } while ( block != first_block ); a000b468: e1a07008 mov r7, r8 <== NOT EXECUTED return true; } a000b46c: e5973004 ldr r3, [r7, #4] <== 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; a000b470: e5962020 ldr r2, [r6, #32] <== 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; a000b474: e3c3a001 bic sl, 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); a000b478: e087800a add r8, r7, sl <== 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; a000b47c: e1520008 cmp r2, r8 <== NOT EXECUTED a000b480: 83a0b000 movhi fp, #0 <== NOT EXECUTED a000b484: 8a000003 bhi a000b498 <_Heap_Walk+0x2ac> <== NOT EXECUTED a000b488: e596b024 ldr fp, [r6, #36] ; 0x24 <== NOT EXECUTED a000b48c: e15b0008 cmp fp, r8 <== NOT EXECUTED a000b490: 33a0b000 movcc fp, #0 <== NOT EXECUTED a000b494: 23a0b001 movcs fp, #1 <== NOT EXECUTED bool const prev_used = _Heap_Is_prev_used( block ); Heap_Block *const next_block = _Heap_Block_at( block, block_size ); uintptr_t const next_block_begin = (uintptr_t) next_block; bool const is_not_last_block = block != last_block; if ( !_Heap_Is_block_in_heap( heap, next_block ) ) { a000b498: e21bb0ff ands fp, fp, #255 ; 0xff <== NOT EXECUTED a000b49c: 1a000006 bne a000b4bc <_Heap_Walk+0x2d0> <== NOT EXECUTED (*printer)( a000b4a0: e58d8000 str r8, [sp] <== NOT EXECUTED a000b4a4: e1a00005 mov r0, r5 <== NOT EXECUTED a000b4a8: e3a01001 mov r1, #1 <== NOT EXECUTED a000b4ac: e59f2250 ldr r2, [pc, #592] ; a000b704 <_Heap_Walk+0x518> <== NOT EXECUTED a000b4b0: e1a03007 mov r3, r7 <== NOT EXECUTED a000b4b4: e12fff34 blx r4 <== NOT EXECUTED a000b4b8: ea000059 b a000b624 <_Heap_Walk+0x438> <== 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; a000b4bc: e59d2028 ldr r2, [sp, #40] ; 0x28 <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned( uintptr_t value, uintptr_t alignment ) { return (value % alignment) == 0; a000b4c0: e1a0000a mov r0, sl <== NOT EXECUTED a000b4c4: e1a01009 mov r1, r9 <== NOT EXECUTED a000b4c8: e057b002 subs fp, r7, r2 <== NOT EXECUTED a000b4cc: 13a0b001 movne fp, #1 <== NOT EXECUTED a000b4d0: e58d301c str r3, [sp, #28] <== NOT EXECUTED a000b4d4: ebffe6d9 bl a0005040 <__umodsi3> <== NOT EXECUTED ); return false; } if ( !_Heap_Is_aligned( block_size, page_size ) && is_not_last_block ) { a000b4d8: e3500000 cmp r0, #0 <== NOT EXECUTED a000b4dc: e59d301c ldr r3, [sp, #28] <== NOT EXECUTED a000b4e0: 0a000005 beq a000b4fc <_Heap_Walk+0x310> <== NOT EXECUTED a000b4e4: e35b0000 cmp fp, #0 <== NOT EXECUTED (*printer)( a000b4e8: 158da000 strne sl, [sp] <== NOT EXECUTED a000b4ec: 11a00005 movne r0, r5 <== NOT EXECUTED a000b4f0: 13a01001 movne r1, #1 <== NOT EXECUTED a000b4f4: 159f220c ldrne r2, [pc, #524] ; a000b708 <_Heap_Walk+0x51c><== NOT EXECUTED a000b4f8: 1a000013 bne a000b54c <_Heap_Walk+0x360> <== NOT EXECUTED ); return false; } if ( block_size < min_block_size && is_not_last_block ) { a000b4fc: e59dc024 ldr ip, [sp, #36] ; 0x24 <== NOT EXECUTED a000b500: e15a000c cmp sl, ip <== NOT EXECUTED a000b504: 2a000008 bcs a000b52c <_Heap_Walk+0x340> <== NOT EXECUTED a000b508: e35b0000 cmp fp, #0 <== NOT EXECUTED a000b50c: 0a000006 beq a000b52c <_Heap_Walk+0x340> <== NOT EXECUTED (*printer)( a000b510: e88d1400 stm sp, {sl, ip} <== NOT EXECUTED a000b514: e1a00005 mov r0, r5 <== NOT EXECUTED a000b518: e3a01001 mov r1, #1 <== NOT EXECUTED a000b51c: e59f21e8 ldr r2, [pc, #488] ; a000b70c <_Heap_Walk+0x520> <== NOT EXECUTED a000b520: e1a03007 mov r3, r7 <== NOT EXECUTED a000b524: e12fff34 blx r4 <== NOT EXECUTED a000b528: ea000064 b a000b6c0 <_Heap_Walk+0x4d4> <== NOT EXECUTED ); return false; } if ( next_block_begin <= block_begin && is_not_last_block ) { a000b52c: e1580007 cmp r8, r7 <== NOT EXECUTED a000b530: 8a000008 bhi a000b558 <_Heap_Walk+0x36c> <== NOT EXECUTED a000b534: e35b0000 cmp fp, #0 <== NOT EXECUTED a000b538: 0a000006 beq a000b558 <_Heap_Walk+0x36c> <== NOT EXECUTED (*printer)( a000b53c: e59f21cc ldr r2, [pc, #460] ; a000b710 <_Heap_Walk+0x524> <== NOT EXECUTED a000b540: e58d8000 str r8, [sp] <== NOT EXECUTED a000b544: e1a00005 mov r0, r5 <== NOT EXECUTED a000b548: e3a01001 mov r1, #1 <== NOT EXECUTED a000b54c: e1a03007 mov r3, r7 <== NOT EXECUTED a000b550: e12fff34 blx r4 <== NOT EXECUTED a000b554: ea000059 b a000b6c0 <_Heap_Walk+0x4d4> <== 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; a000b558: e203b001 and fp, r3, #1 <== NOT EXECUTED a000b55c: e5983004 ldr r3, [r8, #4] <== NOT EXECUTED ); return false; } if ( !_Heap_Is_prev_used( next_block ) ) { a000b560: e3130001 tst r3, #1 <== NOT EXECUTED a000b564: 1a000038 bne a000b64c <_Heap_Walk+0x460> <== 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 ? a000b568: e597200c ldr r2, [r7, #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)( a000b56c: e5963008 ldr r3, [r6, #8] <== NOT EXECUTED block = next_block; } while ( block != first_block ); return true; } a000b570: e596100c ldr r1, [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)( a000b574: e1520003 cmp r2, r3 <== NOT EXECUTED a000b578: 059f0194 ldreq r0, [pc, #404] ; a000b714 <_Heap_Walk+0x528><== NOT EXECUTED a000b57c: 0a000003 beq a000b590 <_Heap_Walk+0x3a4> <== NOT EXECUTED block, block_size, block->prev, block->prev == first_free_block ? " (= first free)" : (block->prev == free_list_head ? " (= head)" : ""), a000b580: e59f3190 ldr r3, [pc, #400] ; a000b718 <_Heap_Walk+0x52c> <== NOT EXECUTED a000b584: e1520006 cmp r2, r6 <== NOT EXECUTED a000b588: e59f018c ldr r0, [pc, #396] ; a000b71c <_Heap_Walk+0x530> <== NOT EXECUTED a000b58c: 01a00003 moveq r0, r3 <== NOT EXECUTED block->next, block->next == last_free_block ? a000b590: e5973008 ldr r3, [r7, #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)( a000b594: e1530001 cmp r3, r1 <== NOT EXECUTED a000b598: 059f1180 ldreq r1, [pc, #384] ; a000b720 <_Heap_Walk+0x534><== NOT EXECUTED a000b59c: 0a000003 beq a000b5b0 <_Heap_Walk+0x3c4> <== 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)" : "") a000b5a0: e59fc17c ldr ip, [pc, #380] ; a000b724 <_Heap_Walk+0x538> <== NOT EXECUTED a000b5a4: e1530006 cmp r3, r6 <== NOT EXECUTED a000b5a8: e59f116c ldr r1, [pc, #364] ; a000b71c <_Heap_Walk+0x530> <== NOT EXECUTED a000b5ac: 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)( a000b5b0: e58d2004 str r2, [sp, #4] <== NOT EXECUTED a000b5b4: e58d0008 str r0, [sp, #8] <== NOT EXECUTED a000b5b8: e58d300c str r3, [sp, #12] <== NOT EXECUTED a000b5bc: e58d1010 str r1, [sp, #16] <== NOT EXECUTED a000b5c0: e1a03007 mov r3, r7 <== NOT EXECUTED a000b5c4: e58da000 str sl, [sp] <== NOT EXECUTED a000b5c8: e1a00005 mov r0, r5 <== NOT EXECUTED a000b5cc: e3a01000 mov r1, #0 <== NOT EXECUTED a000b5d0: e59f2150 ldr r2, [pc, #336] ; a000b728 <_Heap_Walk+0x53c> <== NOT EXECUTED a000b5d4: e12fff34 blx r4 <== NOT EXECUTED block->next == last_free_block ? " (= last free)" : (block->next == free_list_tail ? " (= tail)" : "") ); if ( block_size != next_block->prev_size ) { a000b5d8: e5983000 ldr r3, [r8] <== NOT EXECUTED a000b5dc: e15a0003 cmp sl, r3 <== NOT EXECUTED a000b5e0: 0a000008 beq a000b608 <_Heap_Walk+0x41c> <== NOT EXECUTED (*printer)( a000b5e4: e58d3004 str r3, [sp, #4] <== NOT EXECUTED a000b5e8: e58da000 str sl, [sp] <== NOT EXECUTED a000b5ec: e58d8008 str r8, [sp, #8] <== NOT EXECUTED a000b5f0: e1a00005 mov r0, r5 <== NOT EXECUTED a000b5f4: e3a01001 mov r1, #1 <== NOT EXECUTED a000b5f8: e59f212c ldr r2, [pc, #300] ; a000b72c <_Heap_Walk+0x540> <== NOT EXECUTED a000b5fc: e1a03007 mov r3, r7 <== NOT EXECUTED a000b600: e12fff34 blx r4 <== NOT EXECUTED a000b604: ea00002d b a000b6c0 <_Heap_Walk+0x4d4> <== NOT EXECUTED ); return false; } if ( !prev_used ) { a000b608: e35b0000 cmp fp, #0 <== NOT EXECUTED a000b60c: 1a000006 bne a000b62c <_Heap_Walk+0x440> <== NOT EXECUTED (*printer)( a000b610: e59f2118 ldr r2, [pc, #280] ; a000b730 <_Heap_Walk+0x544> <== NOT EXECUTED a000b614: e1a00005 mov r0, r5 <== NOT EXECUTED a000b618: e3a01001 mov r1, #1 <== NOT EXECUTED a000b61c: e1a03007 mov r3, r7 <== NOT EXECUTED a000b620: e12fff34 blx r4 <== NOT EXECUTED return false; } if ( !_Heap_Is_prev_used( next_block ) ) { if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) { return false; a000b624: e1a0800b mov r8, fp <== NOT EXECUTED a000b628: ea00001c b a000b6a0 <_Heap_Walk+0x4b4> <== NOT EXECUTED block = next_block; } while ( block != first_block ); return true; } a000b62c: e5963008 ldr r3, [r6, #8] <== NOT EXECUTED a000b630: ea000002 b a000b640 <_Heap_Walk+0x454> <== 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 ) { if ( free_block == block ) { a000b634: e1530007 cmp r3, r7 <== NOT EXECUTED a000b638: 0a000014 beq a000b690 <_Heap_Walk+0x4a4> <== NOT EXECUTED return true; } free_block = free_block->next; a000b63c: 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 ) { a000b640: e1530006 cmp r3, r6 <== NOT EXECUTED a000b644: 1afffffa bne a000b634 <_Heap_Walk+0x448> <== NOT EXECUTED a000b648: ea000017 b a000b6ac <_Heap_Walk+0x4c0> <== NOT EXECUTED if ( !_Heap_Is_prev_used( next_block ) ) { if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) { return false; } } else if (prev_used) { a000b64c: e35b0000 cmp fp, #0 <== NOT EXECUTED a000b650: 0a000006 beq a000b670 <_Heap_Walk+0x484> <== NOT EXECUTED (*printer)( a000b654: e58da000 str sl, [sp] <== NOT EXECUTED a000b658: e1a00005 mov r0, r5 <== NOT EXECUTED a000b65c: e3a01000 mov r1, #0 <== NOT EXECUTED a000b660: e59f20cc ldr r2, [pc, #204] ; a000b734 <_Heap_Walk+0x548> <== NOT EXECUTED a000b664: e1a03007 mov r3, r7 <== NOT EXECUTED a000b668: e12fff34 blx r4 <== NOT EXECUTED a000b66c: ea000007 b a000b690 <_Heap_Walk+0x4a4> <== NOT EXECUTED "block 0x%08x: size %u\n", block, block_size ); } else { (*printer)( a000b670: e58da000 str sl, [sp] <== NOT EXECUTED a000b674: e5973000 ldr r3, [r7] <== NOT EXECUTED a000b678: e1a00005 mov r0, r5 <== NOT EXECUTED a000b67c: e1a0100b mov r1, fp <== NOT EXECUTED a000b680: e58d3004 str r3, [sp, #4] <== NOT EXECUTED a000b684: e59f20ac ldr r2, [pc, #172] ; a000b738 <_Heap_Walk+0x54c> <== NOT EXECUTED a000b688: e1a03007 mov r3, r7 <== NOT EXECUTED a000b68c: e12fff34 blx r4 <== NOT EXECUTED block->prev_size ); } block = next_block; } while ( block != first_block ); a000b690: e59d2020 ldr r2, [sp, #32] <== NOT EXECUTED a000b694: e1580002 cmp r8, r2 <== NOT EXECUTED a000b698: 1affff72 bne a000b468 <_Heap_Walk+0x27c> <== 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() ) ) { return true; a000b69c: e3a08001 mov r8, #1 <== NOT EXECUTED block = next_block; } while ( block != first_block ); return true; } a000b6a0: e1a00008 mov r0, r8 <== NOT EXECUTED a000b6a4: e28dd030 add sp, sp, #48 ; 0x30 <== NOT EXECUTED a000b6a8: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED return false; } if ( !_Heap_Walk_is_in_free_list( heap, block ) ) { (*printer)( a000b6ac: e59f2088 ldr r2, [pc, #136] ; a000b73c <_Heap_Walk+0x550> <== NOT EXECUTED a000b6b0: e1a00005 mov r0, r5 <== NOT EXECUTED a000b6b4: e3a01001 mov r1, #1 <== NOT EXECUTED a000b6b8: e1a03007 mov r3, r7 <== NOT EXECUTED a000b6bc: e12fff34 blx r4 <== NOT EXECUTED return false; } if ( !_Heap_Is_prev_used( next_block ) ) { if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) { return false; a000b6c0: e3a08000 mov r8, #0 <== NOT EXECUTED a000b6c4: eafffff5 b a000b6a0 <_Heap_Walk+0x4b4> <== NOT EXECUTED =============================================================================== a000b1a8 <_Heap_Walk_print>: static void _Heap_Walk_print( int source, bool error, const char *fmt, ... ) { a000b1a8: e92d000c push {r2, r3} <== NOT EXECUTED a000b1ac: e92d4001 push {r0, lr} <== NOT EXECUTED a000b1b0: e1a03000 mov r3, r0 <== NOT EXECUTED va_list ap; if ( error ) { a000b1b4: e31100ff tst r1, #255 ; 0xff <== NOT EXECUTED printk( "FAIL[%d]: ", source ); a000b1b8: 159f0024 ldrne r0, [pc, #36] ; a000b1e4 <_Heap_Walk_print+0x3c><== NOT EXECUTED } else { printk( "PASS[%d]: ", source ); a000b1bc: 059f0024 ldreq r0, [pc, #36] ; a000b1e8 <_Heap_Walk_print+0x40><== NOT EXECUTED a000b1c0: e1a01003 mov r1, r3 <== NOT EXECUTED a000b1c4: ebfff175 bl a00077a0 <== NOT EXECUTED } va_start( ap, fmt ); a000b1c8: e28d100c add r1, sp, #12 <== NOT EXECUTED vprintk( fmt, ap ); a000b1cc: e59d0008 ldr r0, [sp, #8] <== NOT EXECUTED printk( "FAIL[%d]: ", source ); } else { printk( "PASS[%d]: ", source ); } va_start( ap, fmt ); a000b1d0: e58d1000 str r1, [sp] <== NOT EXECUTED vprintk( fmt, ap ); a000b1d4: ebfff83e bl a00092d4 <== NOT EXECUTED va_end( ap ); } a000b1d8: e8bd4008 pop {r3, lr} <== NOT EXECUTED a000b1dc: e28dd008 add sp, sp, #8 <== NOT EXECUTED a000b1e0: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000b19c <_Heap_Walk_print_nothing>: int source, bool error, const char *fmt, ... ) { a000b19c: e92d000c push {r2, r3} <== NOT EXECUTED /* Do nothing */ } a000b1a0: e28dd008 add sp, sp, #8 <== NOT EXECUTED a000b1a4: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a00166f4 <_Message_queue_Allocate>: */ Message_queue_Control *_Message_queue_Allocate(void) { return (Message_queue_Control *) _Objects_Allocate(&_Message_queue_Information); a00166f4: e59f0000 ldr r0, [pc, #0] ; a00166fc <_Message_queue_Allocate+0x8><== NOT EXECUTED a00166f8: eafff167 b a0012c9c <_Objects_Allocate> <== NOT EXECUTED =============================================================================== a00111bc <_Message_queue_Translate_core_message_queue_return_code>: if ( status > CORE_MESSAGE_QUEUE_STATUS_TIMEOUT ) return RTEMS_INTERNAL_ERROR; #endif return _Message_queue_Translate_core_return_code_[status]; } a00111bc: e59f3004 ldr r3, [pc, #4] ; a00111c8 <_Message_queue_Translate_core_message_queue_return_code+0xc><== NOT EXECUTED a00111c0: e7930100 ldr r0, [r3, r0, lsl #2] <== NOT EXECUTED a00111c4: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000e9f0 <_Objects_API_maximum_class>: #include unsigned int _Objects_API_maximum_class( uint32_t api ) { a000e9f0: e2400001 sub r0, r0, #1 <== NOT EXECUTED a000e9f4: e3500002 cmp r0, #2 <== NOT EXECUTED a000e9f8: 959f3008 ldrls r3, [pc, #8] ; a000ea08 <_Objects_API_maximum_class+0x18><== NOT EXECUTED a000e9fc: 83a00000 movhi r0, #0 <== NOT EXECUTED a000ea00: 97930100 ldrls r0, [r3, r0, lsl #2] <== NOT EXECUTED case OBJECTS_NO_API: default: break; } return 0; } a000ea04: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000a62c <_Objects_Allocate>: */ Objects_Control *_Objects_Allocate( Objects_Information *information ) { a000a62c: 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 ) a000a630: e5905018 ldr r5, [r0, #24] */ Objects_Control *_Objects_Allocate( Objects_Information *information ) { a000a634: 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 ) a000a638: e3550000 cmp r5, #0 a000a63c: 0a00001a beq a000a6ac <_Objects_Allocate+0x80> /* * 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 ); a000a640: e2806020 add r6, r0, #32 a000a644: e1a00006 mov r0, r6 a000a648: ebfffdb2 bl a0009d18 <_Chain_Get> if ( information->auto_extend ) { a000a64c: 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 ); a000a650: e1a05000 mov r5, r0 if ( information->auto_extend ) { a000a654: e3530000 cmp r3, #0 a000a658: 0a000013 beq a000a6ac <_Objects_Allocate+0x80> /* * If the list is empty then we are out of objects and need to * extend information base. */ if ( !the_object ) { a000a65c: e3500000 cmp r0, #0 a000a660: 1a000005 bne a000a67c <_Objects_Allocate+0x50> _Objects_Extend_information( information ); a000a664: e1a00004 mov r0, r4 <== NOT EXECUTED a000a668: eb000016 bl a000a6c8 <_Objects_Extend_information> <== NOT EXECUTED the_object = (Objects_Control *) _Chain_Get( &information->Inactive ); a000a66c: e1a00006 mov r0, r6 <== NOT EXECUTED a000a670: ebfffda8 bl a0009d18 <_Chain_Get> <== NOT EXECUTED } if ( the_object ) { a000a674: e2505000 subs r5, r0, #0 <== NOT EXECUTED a000a678: 0a00000b beq a000a6ac <_Objects_Allocate+0x80> <== NOT EXECUTED uint32_t block; block = (uint32_t) _Objects_Get_index( the_object->id ) - a000a67c: e1d430b8 ldrh r3, [r4, #8] a000a680: e1d500b8 ldrh r0, [r5, #8] _Objects_Get_index( information->minimum_id ); block /= information->allocation_size; a000a684: e1d411b4 ldrh r1, [r4, #20] a000a688: e0630000 rsb r0, r3, r0 a000a68c: eb002492 bl a00138dc <__aeabi_uidiv> information->inactive_per_block[ block ]--; a000a690: e5943030 ldr r3, [r4, #48] ; 0x30 a000a694: e7932100 ldr r2, [r3, r0, lsl #2] a000a698: e2422001 sub r2, r2, #1 a000a69c: e7832100 str r2, [r3, r0, lsl #2] information->inactive--; a000a6a0: e1d432bc ldrh r3, [r4, #44] ; 0x2c a000a6a4: e2433001 sub r3, r3, #1 a000a6a8: e1c432bc strh r3, [r4, #44] ; 0x2c ); } #endif return the_object; } a000a6ac: e1a00005 mov r0, r5 a000a6b0: e8bd8070 pop {r4, r5, r6, pc} =============================================================================== a000a6c8 <_Objects_Extend_information>: */ void _Objects_Extend_information( Objects_Information *information ) { a000a6c8: 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 ) a000a6cc: e5906034 ldr r6, [r0, #52] ; 0x34 /* * 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 ); a000a6d0: e1d080b8 ldrh r8, [r0, #8] */ void _Objects_Extend_information( Objects_Information *information ) { a000a6d4: e24dd018 sub sp, sp, #24 minimum_index = _Objects_Get_index( information->minimum_id ); index_base = minimum_index; block = 0; /* if ( information->maximum < minimum_index ) */ if ( information->object_blocks == NULL ) a000a6d8: e3560000 cmp r6, #0 */ void _Objects_Extend_information( Objects_Information *information ) { a000a6dc: e1a04000 mov r4, r0 /* * 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 ); a000a6e0: 01a05008 moveq r5, r8 /* * 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; a000a6e4: 03a0a001 moveq sl, #1 index_base = minimum_index; block = 0; /* if ( information->maximum < minimum_index ) */ if ( information->object_blocks == NULL ) block_count = 0; a000a6e8: 01a07006 moveq r7, r6 minimum_index = _Objects_Get_index( information->minimum_id ); index_base = minimum_index; block = 0; /* if ( information->maximum < minimum_index ) */ if ( information->object_blocks == NULL ) a000a6ec: 0a000013 beq a000a740 <_Objects_Extend_information+0x78> block_count = 0; else { block_count = information->maximum / information->allocation_size; a000a6f0: e1d0a1b4 ldrh sl, [r0, #20] <== NOT EXECUTED a000a6f4: e1d001b0 ldrh r0, [r0, #16] <== 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 ); a000a6f8: e1a05008 mov r5, r8 <== NOT EXECUTED /* if ( information->maximum < minimum_index ) */ if ( information->object_blocks == NULL ) block_count = 0; else { block_count = information->maximum / information->allocation_size; a000a6fc: e1a0100a mov r1, sl <== NOT EXECUTED a000a700: eb002475 bl a00138dc <__aeabi_uidiv> <== NOT EXECUTED a000a704: e1a00800 lsl r0, r0, #16 <== NOT EXECUTED a000a708: e1a02006 mov r2, r6 <== NOT EXECUTED a000a70c: e1a07820 lsr r7, r0, #16 <== NOT EXECUTED * extend the block table, then we will change do_extend. */ do_extend = true; minimum_index = _Objects_Get_index( information->minimum_id ); index_base = minimum_index; block = 0; a000a710: e3a06000 mov r6, #0 <== NOT EXECUTED if ( information->object_blocks == NULL ) block_count = 0; else { block_count = information->maximum / information->allocation_size; for ( ; block < block_count; block++ ) { a000a714: ea000004 b a000a72c <_Objects_Extend_information+0x64> <== NOT EXECUTED if ( information->object_blocks[ block ] == NULL ) { a000a718: e4923004 ldr r3, [r2], #4 <== NOT EXECUTED a000a71c: e3530000 cmp r3, #0 <== NOT EXECUTED a000a720: 0a000005 beq a000a73c <_Objects_Extend_information+0x74> <== NOT EXECUTED a000a724: e085500a add r5, r5, sl <== NOT EXECUTED if ( information->object_blocks == NULL ) block_count = 0; else { block_count = information->maximum / information->allocation_size; for ( ; block < block_count; block++ ) { a000a728: e2866001 add r6, r6, #1 <== NOT EXECUTED a000a72c: e1560007 cmp r6, r7 <== NOT EXECUTED a000a730: 3afffff8 bcc a000a718 <_Objects_Extend_information+0x50> <== 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; a000a734: e3a0a001 mov sl, #1 <== NOT EXECUTED a000a738: ea000000 b a000a740 <_Objects_Extend_information+0x78> <== NOT EXECUTED else { block_count = information->maximum / information->allocation_size; for ( ; block < block_count; block++ ) { if ( information->object_blocks[ block ] == NULL ) { do_extend = false; a000a73c: e1a0a003 mov sl, r3 <== NOT EXECUTED } else index_base += information->allocation_size; } } maximum = (uint32_t) information->maximum + information->allocation_size; a000a740: e1d431b4 ldrh r3, [r4, #20] a000a744: e1d421b0 ldrh r2, [r4, #16] a000a748: e0832002 add r2, r3, r2 /* * 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 ) { a000a74c: e3520801 cmp r2, #65536 ; 0x10000 } else index_base += information->allocation_size; } } maximum = (uint32_t) information->maximum + information->allocation_size; a000a750: e58d2008 str r2, [sp, #8] /* * 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 ) { a000a754: 2a000079 bcs a000a940 <_Objects_Extend_information+0x278> /* * 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; a000a758: e5940018 ldr r0, [r4, #24] a000a75c: e0000093 mul r0, r3, r0 if ( information->auto_extend ) { a000a760: e5d43012 ldrb r3, [r4, #18] a000a764: e3530000 cmp r3, #0 a000a768: 0a000004 beq a000a780 <_Objects_Extend_information+0xb8> new_object_block = _Workspace_Allocate( block_size ); a000a76c: eb0007f8 bl a000c754 <_Workspace_Allocate> if ( !new_object_block ) a000a770: e3500000 cmp r0, #0 a000a774: e58d0004 str r0, [sp, #4] a000a778: 1a000002 bne a000a788 <_Objects_Extend_information+0xc0> a000a77c: ea00006f b a000a940 <_Objects_Extend_information+0x278> <== NOT EXECUTED return; } else { new_object_block = _Workspace_Allocate_or_fatal_error( block_size ); a000a780: eb0007fd bl a000c77c <_Workspace_Allocate_or_fatal_error> a000a784: e58d0004 str r0, [sp, #4] } /* * Do we need to grow the tables? */ if ( do_extend ) { a000a788: e35a0000 cmp sl, #0 a000a78c: 0a00004b beq a000a8c0 <_Objects_Extend_information+0x1f8> /* * Allocate the tables and break it up. */ block_size = block_count * (sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) + ((maximum + minimum_index) * sizeof(Objects_Control *)); a000a790: e59d1008 ldr r1, [sp, #8] */ /* * Up the block count and maximum */ block_count++; a000a794: e287b001 add fp, r7, #1 /* * Allocate the tables and break it up. */ block_size = block_count * (sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) + a000a798: e08b308b add r3, fp, fp, lsl #1 ((maximum + minimum_index) * sizeof(Objects_Control *)); a000a79c: e0810008 add r0, r1, r8 /* * Allocate the tables and break it up. */ block_size = block_count * (sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) + a000a7a0: e0800003 add r0, r0, r3 ((maximum + minimum_index) * sizeof(Objects_Control *)); object_blocks = (void**) _Workspace_Allocate( block_size ); a000a7a4: e1a00100 lsl r0, r0, #2 a000a7a8: eb0007e9 bl a000c754 <_Workspace_Allocate> if ( !object_blocks ) { a000a7ac: e2509000 subs r9, r0, #0 a000a7b0: 1a000002 bne a000a7c0 <_Objects_Extend_information+0xf8> _Workspace_Free( new_object_block ); a000a7b4: e59d0004 ldr r0, [sp, #4] <== NOT EXECUTED a000a7b8: eb0007eb bl a000c76c <_Workspace_Free> <== NOT EXECUTED return; a000a7bc: ea00005f b a000a940 <_Objects_Extend_information+0x278> <== NOT EXECUTED * Take the block count down. Saves all the (block_count - 1) * in the copies. */ block_count--; if ( information->maximum > minimum_index ) { a000a7c0: e1d421b0 ldrh r2, [r4, #16] RTEMS_INLINE_ROUTINE void *_Addresses_Add_offset ( const void *base, uintptr_t offset ) { return (void *)((uintptr_t)base + offset); a000a7c4: e089310b add r3, r9, fp, lsl #2 a000a7c8: e089b18b add fp, r9, fp, lsl #3 a000a7cc: e1520008 cmp r2, r8 a000a7d0: 93a02000 movls r2, #0 a000a7d4: 91a0100b movls r1, fp /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { local_table[ index ] = NULL; a000a7d8: 91a00002 movls r0, r2 * Take the block count down. Saves all the (block_count - 1) * in the copies. */ block_count--; if ( information->maximum > minimum_index ) { a000a7dc: 9a000013 bls a000a830 <_Objects_Extend_information+0x168> /* * 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, a000a7e0: e1a0a107 lsl sl, r7, #2 <== NOT EXECUTED a000a7e4: e5941034 ldr r1, [r4, #52] ; 0x34 <== NOT EXECUTED a000a7e8: e1a0200a mov r2, sl <== NOT EXECUTED a000a7ec: e58d3000 str r3, [sp] <== NOT EXECUTED a000a7f0: eb0018a4 bl a0010a88 <== NOT EXECUTED information->object_blocks, block_count * sizeof(void*) ); memcpy( inactive_per_block, a000a7f4: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000a7f8: e5941030 ldr r1, [r4, #48] ; 0x30 <== NOT EXECUTED a000a7fc: e1a0200a mov r2, sl <== NOT EXECUTED a000a800: e1a00003 mov r0, r3 <== NOT EXECUTED a000a804: eb00189f bl a0010a88 <== NOT EXECUTED information->inactive_per_block, block_count * sizeof(uint32_t) ); memcpy( local_table, information->local_table, (information->maximum + minimum_index) * sizeof(Objects_Control *) ); a000a808: e1d421b0 ldrh r2, [r4, #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, a000a80c: e1a0000b mov r0, fp <== NOT EXECUTED a000a810: e594101c ldr r1, [r4, #28] <== NOT EXECUTED information->local_table, (information->maximum + minimum_index) * sizeof(Objects_Control *) ); a000a814: e0888002 add r8, r8, 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, a000a818: e1a02108 lsl r2, r8, #2 <== NOT EXECUTED a000a81c: eb001899 bl a0010a88 <== NOT EXECUTED a000a820: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000a824: ea000003 b a000a838 <_Objects_Extend_information+0x170> <== NOT EXECUTED /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { local_table[ index ] = NULL; a000a828: e4810004 str r0, [r1], #4 } else { /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { a000a82c: e2822001 add r2, r2, #1 a000a830: e1520008 cmp r2, r8 a000a834: 3afffffb bcc a000a828 <_Objects_Extend_information+0x160> */ object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; for ( index=index_base ; index < ( information->allocation_size + index_base ); a000a838: e1d4c1b4 ldrh ip, [r4, #20] * information - object information table * * Output parameters: NONE */ void _Objects_Extend_information( a000a83c: e1a00105 lsl r0, r5, #2 } /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; a000a840: e3a02000 mov r2, #0 * information - object information table * * Output parameters: NONE */ void _Objects_Extend_information( a000a844: e2400004 sub r0, r0, #4 } /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; a000a848: e7892107 str r2, [r9, r7, lsl #2] inactive_per_block[block_count] = 0; for ( index=index_base ; index < ( information->allocation_size + index_base ); a000a84c: e085c00c add ip, r5, ip /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; a000a850: e7832107 str r2, [r3, r7, lsl #2] for ( index=index_base ; index < ( information->allocation_size + index_base ); a000a854: e080000b add r0, r0, fp * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; for ( index=index_base ; a000a858: e1a01005 mov r1, r5 a000a85c: ea000001 b a000a868 <_Objects_Extend_information+0x1a0> index < ( information->allocation_size + index_base ); index++ ) { local_table[ index ] = NULL; a000a860: e5a02004 str r2, [r0, #4]! object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; for ( index=index_base ; index < ( information->allocation_size + index_base ); index++ ) { a000a864: e2811001 add r1, r1, #1 * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; for ( index=index_base ; a000a868: e151000c cmp r1, ip a000a86c: 3afffffb bcc a000a860 <_Objects_Extend_information+0x198> a000a870: e10f2000 mrs r2, CPSR a000a874: e3821080 orr r1, r2, #128 ; 0x80 a000a878: e129f001 msr CPSR_fc, r1 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; a000a87c: e59d1008 ldr r1, [sp, #8] _ISR_Disable( level ); old_tables = information->object_blocks; information->object_blocks = object_blocks; information->inactive_per_block = inactive_per_block; a000a880: e5843030 str r3, [r4, #48] ; 0x30 information->local_table = local_table; information->maximum = (Objects_Maximum) maximum; information->maximum_id = _Objects_Build_id( a000a884: e1d4c0b4 ldrh ip, [r4, #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; a000a888: e1a03801 lsl r3, r1, #16 uint32_t the_class, uint32_t node, uint32_t index ) { return (( (Objects_Id) the_api ) << OBJECTS_API_START_BIT) | a000a88c: e5941000 ldr r1, [r4] a000a890: e1a03823 lsr r3, r3, #16 a000a894: e1c431b0 strh r3, [r4, #16] a000a898: e1a01c01 lsl r1, r1, #24 a000a89c: e3811801 orr r1, r1, #65536 ; 0x10000 (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) | a000a8a0: e1811d8c orr r1, r1, ip, lsl #27 uint32_t the_class, uint32_t node, uint32_t index ) { return (( (Objects_Id) the_api ) << OBJECTS_API_START_BIT) | a000a8a4: e1813003 orr r3, r1, r3 local_table[ index ] = NULL; } _ISR_Disable( level ); old_tables = information->object_blocks; a000a8a8: e5940034 ldr r0, [r4, #52] ; 0x34 information->object_blocks = object_blocks; information->inactive_per_block = inactive_per_block; information->local_table = local_table; a000a8ac: e584b01c str fp, [r4, #28] _ISR_Disable( level ); old_tables = information->object_blocks; information->object_blocks = object_blocks; a000a8b0: e5849034 str r9, [r4, #52] ; 0x34 information->inactive_per_block = inactive_per_block; information->local_table = local_table; information->maximum = (Objects_Maximum) maximum; information->maximum_id = _Objects_Build_id( a000a8b4: e584300c str r3, [r4, #12] static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000a8b8: e129f002 msr CPSR_fc, r2 information->maximum ); _ISR_Enable( level ); _Workspace_Free( old_tables ); a000a8bc: eb0007aa bl a000c76c <_Workspace_Free> } /* * Assign the new object block to the object block table. */ information->object_blocks[ block ] = new_object_block; a000a8c0: e59d2004 ldr r2, [sp, #4] a000a8c4: e5943034 ldr r3, [r4, #52] ; 0x34 a000a8c8: e1a07106 lsl r7, r6, #2 /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( a000a8cc: e1a01002 mov r1, r2 } /* * Assign the new object block to the object block table. */ information->object_blocks[ block ] = new_object_block; a000a8d0: e7832106 str r2, [r3, r6, lsl #2] /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( a000a8d4: e28d600c add r6, sp, #12 a000a8d8: e1a00006 mov r0, r6 a000a8dc: e1d421b4 ldrh r2, [r4, #20] a000a8e0: e5943018 ldr r3, [r4, #24] a000a8e4: eb000edc bl a000e45c <_Chain_Initialize> information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); a000a8e8: e2848020 add r8, r4, #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 ) { a000a8ec: ea000009 b a000a918 <_Objects_Extend_information+0x250> a000a8f0: e5943000 ldr r3, [r4] the_object->id = _Objects_Build_id( a000a8f4: e1d420b4 ldrh r2, [r4, #4] information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); a000a8f8: e1a00008 mov r0, r8 a000a8fc: e1a03c03 lsl r3, r3, #24 a000a900: e3833801 orr r3, r3, #65536 ; 0x10000 (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) | a000a904: 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) | a000a908: e1833005 orr r3, r3, r5 */ index = index_base; while ((the_object = (Objects_Control *) _Chain_Get( &Inactive )) != NULL ) { the_object->id = _Objects_Build_id( a000a90c: e5813008 str r3, [r1, #8] information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); a000a910: ebfffced bl a0009ccc <_Chain_Append> index++; a000a914: e2855001 add r5, r5, #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 ) { a000a918: e1a00006 mov r0, r6 a000a91c: ebfffcfd bl a0009d18 <_Chain_Get> a000a920: e2501000 subs r1, r0, #0 a000a924: 1afffff1 bne a000a8f0 <_Objects_Extend_information+0x228> _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; a000a928: e1d431b4 ldrh r3, [r4, #20] a000a92c: e5942030 ldr r2, [r4, #48] ; 0x30 a000a930: e7823007 str r3, [r2, r7] information->inactive = (Objects_Maximum)(information->inactive + information->allocation_size); a000a934: e1d422bc ldrh r2, [r4, #44] ; 0x2c a000a938: e0833002 add r3, r3, r2 index++; } information->inactive_per_block[ block ] = information->allocation_size; information->inactive = a000a93c: e1c432bc strh r3, [r4, #44] ; 0x2c (Objects_Maximum)(information->inactive + information->allocation_size); } a000a940: e28dd018 add sp, sp, #24 a000a944: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} =============================================================================== a000a948 <_Objects_Free>: void _Objects_Free( Objects_Information *information, Objects_Control *the_object ) { a000a948: e92d4070 push {r4, r5, r6, lr} a000a94c: e1a04000 mov r4, r0 uint32_t allocation_size = information->allocation_size; a000a950: e1d051b4 ldrh r5, [r0, #20] _Chain_Append( &information->Inactive, &the_object->Node ); a000a954: e2800020 add r0, r0, #32 void _Objects_Free( Objects_Information *information, Objects_Control *the_object ) { a000a958: e1a06001 mov r6, r1 uint32_t allocation_size = information->allocation_size; _Chain_Append( &information->Inactive, &the_object->Node ); a000a95c: ebfffcda bl a0009ccc <_Chain_Append> if ( information->auto_extend ) { a000a960: e5d43012 ldrb r3, [r4, #18] a000a964: e3530000 cmp r3, #0 a000a968: 0a000013 beq a000a9bc <_Objects_Free+0x74> uint32_t block; block = (uint32_t) (_Objects_Get_index( the_object->id ) - a000a96c: e1d430b8 ldrh r3, [r4, #8] <== NOT EXECUTED a000a970: e1d600b8 ldrh r0, [r6, #8] <== NOT EXECUTED _Objects_Get_index( information->minimum_id )); block /= information->allocation_size; a000a974: 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 ) ) ) { a000a978: 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; a000a97c: e0630000 rsb r0, r3, r0 <== NOT EXECUTED a000a980: eb0023d5 bl a00138dc <__aeabi_uidiv> <== NOT EXECUTED information->inactive_per_block[ block ]++; a000a984: e5943030 ldr r3, [r4, #48] ; 0x30 <== NOT EXECUTED a000a988: e7932100 ldr r2, [r3, r0, lsl #2] <== NOT EXECUTED a000a98c: e2822001 add r2, r2, #1 <== NOT EXECUTED a000a990: e7832100 str r2, [r3, r0, lsl #2] <== NOT EXECUTED information->inactive++; a000a994: e1d432bc ldrh r3, [r4, #44] ; 0x2c <== NOT EXECUTED a000a998: e2833001 add r3, r3, #1 <== NOT EXECUTED a000a99c: e1a03803 lsl r3, r3, #16 <== NOT EXECUTED a000a9a0: e1a03823 lsr r3, r3, #16 <== 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 ) ) ) { a000a9a4: 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 ]++; information->inactive++; a000a9a8: 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 ) ) ) { a000a9ac: 9a000002 bls a000a9bc <_Objects_Free+0x74> <== NOT EXECUTED _Objects_Shrink_information( information ); a000a9b0: e1a00004 mov r0, r4 <== NOT EXECUTED } } } a000a9b4: 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 ); a000a9b8: ea0000ad b a000ac74 <_Objects_Shrink_information> <== NOT EXECUTED a000a9bc: e8bd8070 pop {r4, r5, r6, pc} =============================================================================== a000aaa8 <_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; a000aaa8: e5903008 ldr r3, [r0, #8] Objects_Control *_Objects_Get( Objects_Information *information, Objects_Id id, Objects_Locations *location ) { a000aaac: e92d4030 push {r4, r5, lr} a000aab0: e1a04002 mov r4, 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 ) { a000aab4: e1d021b0 ldrh r2, [r0, #16] * 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; a000aab8: e2633001 rsb r3, r3, #1 a000aabc: e0833001 add r3, r3, 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 ) { a000aac0: e1530002 cmp r3, r2 /* * 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; a000aac4: 83a03001 movhi r3, #1 a000aac8: 85843000 strhi r3, [r4] #if defined(RTEMS_MULTIPROCESSING) _Objects_MP_Is_remote( information, id, location, &the_object ); return the_object; #else return NULL; a000aacc: 83a05000 movhi r5, #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 ) { a000aad0: 8a00000b bhi a000ab04 <_Objects_Get+0x5c> rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; a000aad4: e59f2030 ldr r2, [pc, #48] ; a000ab0c <_Objects_Get+0x64> a000aad8: e5921000 ldr r1, [r2] a000aadc: e2811001 add r1, r1, #1 a000aae0: e5821000 str r1, [r2] _Thread_Disable_dispatch(); if ( (the_object = information->local_table[ index ]) != NULL ) { a000aae4: e590201c ldr r2, [r0, #28] a000aae8: e7925103 ldr r5, [r2, r3, lsl #2] a000aaec: e3550000 cmp r5, #0 *location = OBJECTS_LOCAL; a000aaf0: 13a03000 movne r3, #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 ) { _Thread_Disable_dispatch(); if ( (the_object = information->local_table[ index ]) != NULL ) { a000aaf4: 1a000001 bne a000ab00 <_Objects_Get+0x58> /* * Valid Id for this API, Class and Node but the object has not * been allocated yet. */ _Thread_Enable_dispatch(); a000aaf8: eb000308 bl a000b720 <_Thread_Enable_dispatch> <== NOT EXECUTED *location = OBJECTS_ERROR; a000aafc: e3a03001 mov r3, #1 <== NOT EXECUTED a000ab00: e5843000 str r3, [r4] _Objects_MP_Is_remote( information, id, location, &the_object ); return the_object; #else return NULL; #endif } a000ab04: e1a00005 mov r0, r5 a000ab08: e8bd8030 pop {r4, r5, pc} =============================================================================== a000a9d4 <_Objects_Get_information>: Objects_Information *_Objects_Get_information( Objects_APIs the_api, uint16_t the_class ) { a000a9d4: e1a01801 lsl r1, r1, #16 <== NOT EXECUTED a000a9d8: e92d4030 push {r4, r5, lr} <== NOT EXECUTED Objects_Information *info; int the_class_api_maximum; if ( !the_class ) a000a9dc: e1b05821 lsrs r5, r1, #16 <== NOT EXECUTED Objects_Information *_Objects_Get_information( Objects_APIs the_api, uint16_t the_class ) { a000a9e0: e1a04000 mov r4, r0 <== NOT EXECUTED Objects_Information *info; int the_class_api_maximum; if ( !the_class ) a000a9e4: 0a000010 beq a000aa2c <_Objects_Get_information+0x58> <== 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 ); a000a9e8: eb001000 bl a000e9f0 <_Objects_API_maximum_class> <== NOT EXECUTED if ( the_class_api_maximum == 0 ) a000a9ec: e3500000 cmp r0, #0 <== NOT EXECUTED a000a9f0: 0a00000f beq a000aa34 <_Objects_Get_information+0x60> <== NOT EXECUTED return NULL; if ( the_class > (uint32_t) the_class_api_maximum ) a000a9f4: e1550000 cmp r5, r0 <== NOT EXECUTED return NULL; a000a9f8: 83a00000 movhi 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 ) a000a9fc: 8a00000c bhi a000aa34 <_Objects_Get_information+0x60> <== NOT EXECUTED return NULL; if ( !_Objects_Information_table[ the_api ] ) a000aa00: e59f3030 ldr r3, [pc, #48] ; a000aa38 <_Objects_Get_information+0x64><== NOT EXECUTED a000aa04: e7930104 ldr r0, [r3, r4, lsl #2] <== NOT EXECUTED a000aa08: e3500000 cmp r0, #0 <== NOT EXECUTED a000aa0c: 0a000008 beq a000aa34 <_Objects_Get_information+0x60> <== NOT EXECUTED return NULL; info = _Objects_Information_table[ the_api ][ the_class ]; a000aa10: e7900105 ldr r0, [r0, r5, lsl #2] <== NOT EXECUTED if ( !info ) a000aa14: e3500000 cmp r0, #0 <== NOT EXECUTED a000aa18: 0a000005 beq a000aa34 <_Objects_Get_information+0x60> <== 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 ) a000aa1c: e1d031b0 ldrh r3, [r0, #16] <== NOT EXECUTED return NULL; a000aa20: e3530000 cmp r3, #0 <== NOT EXECUTED a000aa24: 03a00000 moveq r0, #0 <== NOT EXECUTED a000aa28: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED { Objects_Information *info; int the_class_api_maximum; if ( !the_class ) return NULL; a000aa2c: e1a00005 mov r0, r5 <== NOT EXECUTED a000aa30: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED if ( info->maximum == 0 ) return NULL; #endif return info; } a000aa34: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED =============================================================================== a000a9c0 <_Objects_Get_information_id>: #include Objects_Information *_Objects_Get_information_id( Objects_Id id ) { a000a9c0: 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); a000a9c4: e1a00c20 lsr r0, r0, #24 <== NOT EXECUTED return _Objects_Get_information( a000a9c8: e2000007 and r0, r0, #7 <== NOT EXECUTED a000a9cc: e1a01da1 lsr r1, r1, #27 <== NOT EXECUTED a000a9d0: eaffffff b a000a9d4 <_Objects_Get_information> <== NOT EXECUTED =============================================================================== a000aa3c <_Objects_Get_isr_disable>: { Objects_Control *the_object; uint32_t index; ISR_Level level; index = id - information->minimum_id + 1; a000aa3c: e590c008 ldr ip, [r0, #8] Objects_Information *information, Objects_Id id, Objects_Locations *location, ISR_Level *level_p ) { a000aa40: e92d4010 push {r4, lr} Objects_Control *the_object; uint32_t index; ISR_Level level; index = id - information->minimum_id + 1; a000aa44: e26cc001 rsb ip, ip, #1 a000aa48: e08c1001 add r1, ip, r1 static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000aa4c: e10f4000 mrs r4, CPSR a000aa50: e384c080 orr ip, r4, #128 ; 0x80 a000aa54: e129f00c msr CPSR_fc, ip _ISR_Disable( level ); if ( information->maximum >= index ) { a000aa58: e1d0c1b0 ldrh ip, [r0, #16] a000aa5c: e15c0001 cmp ip, r1 a000aa60: 3a00000b bcc a000aa94 <_Objects_Get_isr_disable+0x58> if ( (the_object = information->local_table[ index ]) != NULL ) { a000aa64: e590001c ldr r0, [r0, #28] a000aa68: e7900101 ldr r0, [r0, r1, lsl #2] a000aa6c: e3500000 cmp r0, #0 a000aa70: 0a000003 beq a000aa84 <_Objects_Get_isr_disable+0x48> *location = OBJECTS_LOCAL; a000aa74: e3a01000 mov r1, #0 a000aa78: e5821000 str r1, [r2] *level_p = level; a000aa7c: e5834000 str r4, [r3] return the_object; a000aa80: e8bd8010 pop {r4, pc} static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000aa84: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED } _ISR_Enable( level ); *location = OBJECTS_ERROR; a000aa88: e3a03001 mov r3, #1 <== NOT EXECUTED a000aa8c: e5823000 str r3, [r2] <== NOT EXECUTED return NULL; a000aa90: e8bd8010 pop {r4, pc} <== NOT EXECUTED a000aa94: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED } _ISR_Enable( level ); *location = OBJECTS_ERROR; a000aa98: e3a03001 mov r3, #1 <== NOT EXECUTED a000aa9c: 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; a000aaa0: e3a00000 mov r0, #0 <== NOT EXECUTED #endif } a000aaa4: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a000c508 <_Objects_Get_name_as_string>: char *_Objects_Get_name_as_string( Objects_Id id, size_t length, char *name ) { a000c508: e92d4077 push {r0, r1, r2, r4, r5, r6, lr} <== NOT EXECUTED char lname[5]; Objects_Control *the_object; Objects_Locations location; Objects_Id tmpId; if ( length == 0 ) a000c50c: e2515000 subs r5, r1, #0 <== NOT EXECUTED char *_Objects_Get_name_as_string( Objects_Id id, size_t length, char *name ) { a000c510: e1a04002 mov r4, r2 <== NOT EXECUTED Objects_Control *the_object; Objects_Locations location; Objects_Id tmpId; if ( length == 0 ) return NULL; a000c514: 01a04005 moveq r4, r5 <== NOT EXECUTED char lname[5]; Objects_Control *the_object; Objects_Locations location; Objects_Id tmpId; if ( length == 0 ) a000c518: 0a00002e beq a000c5d8 <_Objects_Get_name_as_string+0xd0> <== NOT EXECUTED return NULL; if ( name == NULL ) a000c51c: e3540000 cmp r4, #0 <== NOT EXECUTED a000c520: 0a00002c beq a000c5d8 <_Objects_Get_name_as_string+0xd0> <== NOT EXECUTED return NULL; tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; a000c524: e3500000 cmp r0, #0 <== NOT EXECUTED a000c528: 059f30b0 ldreq r3, [pc, #176] ; a000c5e0 <_Objects_Get_name_as_string+0xd8><== NOT EXECUTED a000c52c: 11a06000 movne r6, r0 <== NOT EXECUTED a000c530: 05933004 ldreq r3, [r3, #4] <== NOT EXECUTED a000c534: 05936008 ldreq r6, [r3, #8] <== NOT EXECUTED information = _Objects_Get_information_id( tmpId ); a000c538: e1a00006 mov r0, r6 <== NOT EXECUTED a000c53c: ebffffb7 bl a000c420 <_Objects_Get_information_id> <== NOT EXECUTED if ( !information ) a000c540: e2503000 subs r3, r0, #0 <== NOT EXECUTED return NULL; a000c544: 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 ) a000c548: 0a000022 beq a000c5d8 <_Objects_Get_name_as_string+0xd0> <== NOT EXECUTED return NULL; the_object = _Objects_Get( information, tmpId, &location ); a000c54c: e1a01006 mov r1, r6 <== NOT EXECUTED a000c550: e28d2008 add r2, sp, #8 <== NOT EXECUTED a000c554: eb000023 bl a000c5e8 <_Objects_Get> <== NOT EXECUTED switch ( location ) { a000c558: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED a000c55c: e3530000 cmp r3, #0 <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) case OBJECTS_REMOTE: /* not supported */ #endif case OBJECTS_ERROR: return NULL; a000c560: 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 ) { a000c564: 1a00001b bne a000c5d8 <_Objects_Get_name_as_string+0xd0> <== 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; a000c568: e590200c ldr r2, [r0, #12] <== 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'; a000c56c: e5cd3004 strb r3, [sp, #4] <== NOT EXECUTED s = lname; } d = name; if ( s ) { for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) { a000c570: e2455001 sub r5, r5, #1 <== NOT EXECUTED } else #endif { uint32_t u32_name = (uint32_t) the_object->name.name_u32; lname[ 0 ] = (u32_name >> 24) & 0xff; a000c574: e1a01c22 lsr r1, r2, #24 <== NOT EXECUTED a000c578: e5cd1000 strb r1, [sp] <== NOT EXECUTED lname[ 1 ] = (u32_name >> 16) & 0xff; a000c57c: e1a01822 lsr r1, r2, #16 <== NOT EXECUTED a000c580: e5cd1001 strb r1, [sp, #1] <== NOT EXECUTED lname[ 2 ] = (u32_name >> 8) & 0xff; a000c584: e1a01422 lsr r1, r2, #8 <== NOT EXECUTED lname[ 3 ] = (u32_name >> 0) & 0xff; a000c588: e5cd2003 strb r2, [sp, #3] <== NOT EXECUTED { uint32_t u32_name = (uint32_t) the_object->name.name_u32; lname[ 0 ] = (u32_name >> 24) & 0xff; lname[ 1 ] = (u32_name >> 16) & 0xff; lname[ 2 ] = (u32_name >> 8) & 0xff; a000c58c: e5cd1002 strb r1, [sp, #2] <== NOT EXECUTED s = lname; } d = name; if ( s ) { for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) { a000c590: e1a02004 mov r2, r4 <== NOT EXECUTED *d = (isprint((unsigned char)*s)) ? *s : '*'; a000c594: e59f0048 ldr r0, [pc, #72] ; a000c5e4 <_Objects_Get_name_as_string+0xdc><== NOT EXECUTED s = lname; } d = name; if ( s ) { for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) { a000c598: ea000006 b a000c5b8 <_Objects_Get_name_as_string+0xb0> <== NOT EXECUTED *d = (isprint((unsigned char)*s)) ? *s : '*'; a000c59c: e590c000 ldr ip, [r0] <== NOT EXECUTED s = lname; } d = name; if ( s ) { for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) { a000c5a0: e2833001 add r3, r3, #1 <== NOT EXECUTED *d = (isprint((unsigned char)*s)) ? *s : '*'; a000c5a4: e08cc001 add ip, ip, r1 <== NOT EXECUTED a000c5a8: e5dcc001 ldrb ip, [ip, #1] <== NOT EXECUTED a000c5ac: e31c0097 tst ip, #151 ; 0x97 <== NOT EXECUTED a000c5b0: 03a0102a moveq r1, #42 ; 0x2a <== NOT EXECUTED a000c5b4: e4c21001 strb r1, [r2], #1 <== NOT EXECUTED s = lname; } d = name; if ( s ) { for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) { a000c5b8: e1530005 cmp r3, r5 <== NOT EXECUTED a000c5bc: 2a000002 bcs a000c5cc <_Objects_Get_name_as_string+0xc4> <== NOT EXECUTED a000c5c0: e7dd1003 ldrb r1, [sp, r3] <== NOT EXECUTED a000c5c4: e3510000 cmp r1, #0 <== NOT EXECUTED a000c5c8: 1afffff3 bne a000c59c <_Objects_Get_name_as_string+0x94> <== NOT EXECUTED *d = (isprint((unsigned char)*s)) ? *s : '*'; } } *d = '\0'; a000c5cc: e3a03000 mov r3, #0 <== NOT EXECUTED a000c5d0: e5c23000 strb r3, [r2] <== NOT EXECUTED _Thread_Enable_dispatch(); a000c5d4: eb0002fd bl a000d1d0 <_Thread_Enable_dispatch> <== NOT EXECUTED return name; } return NULL; /* unreachable path */ } a000c5d8: e1a00004 mov r0, r4 <== NOT EXECUTED a000c5dc: e8bd807e pop {r1, r2, r3, r4, r5, r6, pc} <== NOT EXECUTED =============================================================================== a000ac5c <_Objects_Get_next>: Objects_Information *information, Objects_Id id, Objects_Locations *location_p, Objects_Id *next_id_p ) { a000ac5c: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED Objects_Control *object; Objects_Id next_id; if ( !information ) a000ac60: e2507000 subs r7, r0, #0 <== NOT EXECUTED Objects_Information *information, Objects_Id id, Objects_Locations *location_p, Objects_Id *next_id_p ) { a000ac64: e1a04002 mov r4, r2 <== NOT EXECUTED a000ac68: e1a06003 mov r6, r3 <== NOT EXECUTED Objects_Control *object; Objects_Id next_id; if ( !information ) a000ac6c: 0a00001a beq a000acdc <_Objects_Get_next+0x80> <== NOT EXECUTED return NULL; if ( !location_p ) a000ac70: e3520000 cmp r2, #0 <== NOT EXECUTED a000ac74: 0a00001a beq a000ace4 <_Objects_Get_next+0x88> <== NOT EXECUTED return NULL; if ( !next_id_p ) a000ac78: e3530000 cmp r3, #0 <== NOT EXECUTED a000ac7c: 0a00001a beq a000acec <_Objects_Get_next+0x90> <== NOT EXECUTED return NULL; if (_Objects_Get_index(id) == OBJECTS_ID_INITIAL_INDEX) a000ac80: e1b03801 lsls r3, r1, #16 <== NOT EXECUTED next_id = information->minimum_id; a000ac84: 05975008 ldreq r5, [r7, #8] <== NOT EXECUTED else next_id = id; a000ac88: 11a05001 movne r5, r1 <== NOT EXECUTED do { /* walked off end of list? */ if (_Objects_Get_index(next_id) > information->maximum) a000ac8c: e1d731b0 ldrh r3, [r7, #16] <== NOT EXECUTED a000ac90: e1a02805 lsl r2, r5, #16 <== NOT EXECUTED a000ac94: e1530822 cmp r3, r2, lsr #16 <== NOT EXECUTED a000ac98: 2a000005 bcs a000acb4 <_Objects_Get_next+0x58> <== NOT EXECUTED { *location_p = OBJECTS_ERROR; a000ac9c: e3a03001 mov r3, #1 <== NOT EXECUTED a000aca0: e5843000 str r3, [r4] <== NOT EXECUTED *next_id_p = next_id; return object; final: *next_id_p = OBJECTS_ID_FINAL; a000aca4: e3e03000 mvn r3, #0 <== NOT EXECUTED a000aca8: e5863000 str r3, [r6] <== NOT EXECUTED return 0; a000acac: e3a00000 mov r0, #0 <== NOT EXECUTED a000acb0: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED *location_p = OBJECTS_ERROR; goto final; } /* try to grab one */ object = _Objects_Get(information, next_id, location_p); a000acb4: e1a01005 mov r1, r5 <== NOT EXECUTED a000acb8: e1a00007 mov r0, r7 <== NOT EXECUTED a000acbc: e1a02004 mov r2, r4 <== NOT EXECUTED a000acc0: eb00000b bl a000acf4 <_Objects_Get> <== NOT EXECUTED next_id++; } while (*location_p != OBJECTS_LOCAL); a000acc4: e5943000 ldr r3, [r4] <== NOT EXECUTED } /* try to grab one */ object = _Objects_Get(information, next_id, location_p); next_id++; a000acc8: e2855001 add r5, r5, #1 <== NOT EXECUTED } while (*location_p != OBJECTS_LOCAL); a000accc: e3530000 cmp r3, #0 <== NOT EXECUTED a000acd0: 1affffed bne a000ac8c <_Objects_Get_next+0x30> <== NOT EXECUTED *next_id_p = next_id; a000acd4: e5865000 str r5, [r6] <== NOT EXECUTED return object; a000acd8: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED { Objects_Control *object; Objects_Id next_id; if ( !information ) return NULL; a000acdc: e1a00007 mov r0, r7 <== NOT EXECUTED a000ace0: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED if ( !location_p ) return NULL; a000ace4: e1a00002 mov r0, r2 <== NOT EXECUTED a000ace8: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED if ( !next_id_p ) return NULL; a000acec: e1a00003 mov r0, r3 <== NOT EXECUTED return object; final: *next_id_p = OBJECTS_ID_FINAL; return 0; } a000acf0: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED =============================================================================== a001ac68 <_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; a001ac68: e5903008 ldr r3, [r0, #8] <== NOT EXECUTED a001ac6c: e2633001 rsb r3, r3, #1 <== NOT EXECUTED a001ac70: e0833001 add r3, r3, r1 <== NOT EXECUTED if ( information->maximum >= index ) { a001ac74: e1d011b0 ldrh r1, [r0, #16] <== NOT EXECUTED a001ac78: e1510003 cmp r1, r3 <== NOT EXECUTED a001ac7c: 3a000005 bcc a001ac98 <_Objects_Get_no_protection+0x30> <== NOT EXECUTED if ( (the_object = information->local_table[ index ]) != NULL ) { a001ac80: e590101c ldr r1, [r0, #28] <== NOT EXECUTED a001ac84: e7910103 ldr r0, [r1, r3, lsl #2] <== NOT EXECUTED a001ac88: e3500000 cmp r0, #0 <== NOT EXECUTED *location = OBJECTS_LOCAL; a001ac8c: 13a03000 movne r3, #0 <== NOT EXECUTED a001ac90: 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 ) { a001ac94: 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; a001ac98: e3a03001 mov r3, #1 <== NOT EXECUTED a001ac9c: e5823000 str r3, [r2] <== NOT EXECUTED return NULL; a001aca0: e3a00000 mov r0, #0 <== NOT EXECUTED } a001aca4: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000c010 <_Objects_Id_to_name>: */ Objects_Name_or_id_lookup_errors _Objects_Id_to_name ( Objects_Id id, Objects_Name *name ) { a000c010: e92d4011 push {r0, r4, lr} <== NOT EXECUTED a000c014: e1a04001 mov r4, r1 <== NOT EXECUTED /* * Caller is trusted for name != NULL. */ tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; a000c018: e2501000 subs r1, r0, #0 <== NOT EXECUTED a000c01c: 059f306c ldreq r3, [pc, #108] ; a000c090 <_Objects_Id_to_name+0x80><== NOT EXECUTED a000c020: 05933004 ldreq r3, [r3, #4] <== NOT EXECUTED a000c024: 05931008 ldreq r1, [r3, #8] <== NOT EXECUTED a000c028: e1a03c21 lsr r3, r1, #24 <== NOT EXECUTED a000c02c: 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 ) a000c030: e2432001 sub r2, r3, #1 <== NOT EXECUTED a000c034: e3520002 cmp r2, #2 <== NOT EXECUTED a000c038: 8a00000d bhi a000c074 <_Objects_Id_to_name+0x64> <== NOT EXECUTED a000c03c: ea00000e b a000c07c <_Objects_Id_to_name+0x6c> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE uint32_t _Objects_Get_class( Objects_Id id ) { return (uint32_t) a000c040: e1a02da1 lsr r2, r1, #27 <== NOT EXECUTED if ( !_Objects_Information_table[ the_api ] ) return OBJECTS_INVALID_ID; the_class = _Objects_Get_class( tmpId ); information = _Objects_Information_table[ the_api ][ the_class ]; a000c044: e7930102 ldr r0, [r3, r2, lsl #2] <== NOT EXECUTED if ( !information ) a000c048: e3500000 cmp r0, #0 <== NOT EXECUTED a000c04c: 0a000008 beq a000c074 <_Objects_Id_to_name+0x64> <== 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 ); a000c050: e1a0200d mov r2, sp <== NOT EXECUTED a000c054: ebffffd3 bl a000bfa8 <_Objects_Get> <== NOT EXECUTED if ( !the_object ) a000c058: e3500000 cmp r0, #0 <== NOT EXECUTED a000c05c: 0a000004 beq a000c074 <_Objects_Id_to_name+0x64> <== NOT EXECUTED return OBJECTS_INVALID_ID; *name = the_object->name; a000c060: e590300c ldr r3, [r0, #12] <== NOT EXECUTED a000c064: e5843000 str r3, [r4] <== NOT EXECUTED _Thread_Enable_dispatch(); a000c068: eb00030e bl a000cca8 <_Thread_Enable_dispatch> <== NOT EXECUTED return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL; a000c06c: e3a00000 mov r0, #0 <== NOT EXECUTED a000c070: ea000000 b a000c078 <_Objects_Id_to_name+0x68> <== 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; a000c074: e3a00003 mov r0, #3 <== NOT EXECUTED return OBJECTS_INVALID_ID; *name = the_object->name; _Thread_Enable_dispatch(); return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL; } a000c078: e8bd8018 pop {r3, r4, pc} <== 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 ] ) a000c07c: e59f2010 ldr r2, [pc, #16] ; a000c094 <_Objects_Id_to_name+0x84><== NOT EXECUTED a000c080: e7923103 ldr r3, [r2, r3, lsl #2] <== NOT EXECUTED a000c084: e3530000 cmp r3, #0 <== NOT EXECUTED a000c088: 1affffec bne a000c040 <_Objects_Id_to_name+0x30> <== NOT EXECUTED a000c08c: eafffff8 b a000c074 <_Objects_Id_to_name+0x64> <== NOT EXECUTED =============================================================================== a000abe4 <_Objects_Name_to_id_u32>: Objects_Name name_for_mp; #endif /* ASSERT: information->is_string == false */ if ( !id ) a000abe4: e3530000 cmp r3, #0 <== NOT EXECUTED Objects_Information *information, uint32_t name, uint32_t node, Objects_Id *id ) { a000abe8: e92d4030 push {r4, r5, lr} <== NOT EXECUTED Objects_Name name_for_mp; #endif /* ASSERT: information->is_string == false */ if ( !id ) a000abec: 0a00001a beq a000ac5c <_Objects_Name_to_id_u32+0x78> <== NOT EXECUTED return OBJECTS_INVALID_ADDRESS; if ( name == 0 ) a000abf0: e3510000 cmp r1, #0 <== NOT EXECUTED a000abf4: 0a00001a beq a000ac64 <_Objects_Name_to_id_u32+0x80> <== NOT EXECUTED return OBJECTS_INVALID_NAME; search_local_node = false; if ( information->maximum != 0 && a000abf8: e1d041b0 ldrh r4, [r0, #16] <== NOT EXECUTED a000abfc: e3540000 cmp r4, #0 <== NOT EXECUTED a000ac00: 0a000019 beq a000ac6c <_Objects_Name_to_id_u32+0x88> <== NOT EXECUTED a000ac04: e3720106 cmn r2, #-2147483647 ; 0x80000001 <== NOT EXECUTED a000ac08: 13520000 cmpne r2, #0 <== NOT EXECUTED a000ac0c: 03a02001 moveq r2, #1 <== NOT EXECUTED a000ac10: 0a00000e beq a000ac50 <_Objects_Name_to_id_u32+0x6c> <== NOT EXECUTED (node == OBJECTS_SEARCH_ALL_NODES || node == OBJECTS_SEARCH_LOCAL_NODE || a000ac14: e3520001 cmp r2, #1 <== NOT EXECUTED a000ac18: 1a000011 bne a000ac64 <_Objects_Name_to_id_u32+0x80> <== NOT EXECUTED a000ac1c: ea00000b b a000ac50 <_Objects_Name_to_id_u32+0x6c> <== NOT EXECUTED )) search_local_node = true; if ( search_local_node ) { for ( index = 1; index <= information->maximum; index++ ) { the_object = information->local_table[ index ]; a000ac20: e590c01c ldr ip, [r0, #28] <== NOT EXECUTED a000ac24: e79cc102 ldr ip, [ip, r2, lsl #2] <== NOT EXECUTED if ( !the_object ) a000ac28: e35c0000 cmp ip, #0 <== NOT EXECUTED a000ac2c: 0a000006 beq a000ac4c <_Objects_Name_to_id_u32+0x68> <== NOT EXECUTED continue; if ( name == the_object->name.name_u32 ) { a000ac30: e59c500c ldr r5, [ip, #12] <== NOT EXECUTED a000ac34: e1510005 cmp r1, r5 <== NOT EXECUTED a000ac38: 1a000003 bne a000ac4c <_Objects_Name_to_id_u32+0x68> <== NOT EXECUTED *id = the_object->id; a000ac3c: e59c2008 ldr r2, [ip, #8] <== NOT EXECUTED return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL; a000ac40: 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; a000ac44: e5832000 str r2, [r3] <== NOT EXECUTED return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL; a000ac48: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED _Objects_Is_local_node( node ) )) search_local_node = true; if ( search_local_node ) { for ( index = 1; index <= information->maximum; index++ ) { a000ac4c: e2822001 add r2, r2, #1 <== NOT EXECUTED a000ac50: e1520004 cmp r2, r4 <== NOT EXECUTED a000ac54: 9afffff1 bls a000ac20 <_Objects_Name_to_id_u32+0x3c> <== NOT EXECUTED a000ac58: ea000001 b a000ac64 <_Objects_Name_to_id_u32+0x80> <== NOT EXECUTED #endif /* ASSERT: information->is_string == false */ if ( !id ) return OBJECTS_INVALID_ADDRESS; a000ac5c: e3a00002 mov r0, #2 <== NOT EXECUTED a000ac60: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED if ( name == 0 ) return OBJECTS_INVALID_NAME; a000ac64: e3a00001 mov r0, #1 <== NOT EXECUTED a000ac68: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED return OBJECTS_INVALID_NAME; name_for_mp.name_u32 = name; return _Objects_MP_Global_name_search( information, name_for_mp, node, id ); #else return OBJECTS_INVALID_NAME; a000ac6c: e3a00001 mov r0, #1 <== NOT EXECUTED #endif } a000ac70: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED =============================================================================== a000cfd8 <_Objects_Set_name>: bool _Objects_Set_name( Objects_Information *information, Objects_Control *the_object, const char *name ) { a000cfd8: e92d4030 push {r4, r5, lr} <== NOT EXECUTED a000cfdc: e1a04001 mov r4, r1 <== NOT EXECUTED size_t length; const char *s; s = name; length = strnlen( name, information->name_length ); a000cfe0: e1d013b8 ldrh r1, [r0, #56] ; 0x38 <== NOT EXECUTED a000cfe4: e1a00002 mov r0, r2 <== NOT EXECUTED bool _Objects_Set_name( Objects_Information *information, Objects_Control *the_object, const char *name ) { a000cfe8: e1a05002 mov r5, r2 <== NOT EXECUTED size_t length; const char *s; s = name; length = strnlen( name, information->name_length ); a000cfec: eb001ba1 bl a0013e78 <== NOT EXECUTED d[length] = '\0'; the_object->name.name_p = d; } else #endif { the_object->name.name_u32 = _Objects_Build_name( a000cff0: e3500001 cmp r0, #1 <== NOT EXECUTED a000cff4: 85d53001 ldrbhi r3, [r5, #1] <== NOT EXECUTED a000cff8: e5d52000 ldrb r2, [r5] <== NOT EXECUTED a000cffc: 93a03602 movls r3, #2097152 ; 0x200000 <== NOT EXECUTED a000d000: 81a03803 lslhi r3, r3, #16 <== NOT EXECUTED a000d004: e1a02c02 lsl r2, r2, #24 <== NOT EXECUTED a000d008: e3500002 cmp r0, #2 <== NOT EXECUTED a000d00c: e1832002 orr r2, r3, r2 <== NOT EXECUTED a000d010: 85d53002 ldrbhi r3, [r5, #2] <== NOT EXECUTED a000d014: 93a03a02 movls r3, #8192 ; 0x2000 <== NOT EXECUTED a000d018: 81a03403 lslhi r3, r3, #8 <== NOT EXECUTED a000d01c: e3500003 cmp r0, #3 <== NOT EXECUTED a000d020: e1822003 orr r2, r2, r3 <== NOT EXECUTED a000d024: 85d53003 ldrbhi r3, [r5, #3] <== NOT EXECUTED a000d028: 93a03020 movls r3, #32 <== NOT EXECUTED ); } return true; } a000d02c: 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( a000d030: e1823003 orr r3, r2, r3 <== NOT EXECUTED a000d034: e584300c str r3, [r4, #12] <== NOT EXECUTED ); } return true; } a000d038: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED =============================================================================== a000ac74 <_Objects_Shrink_information>: */ void _Objects_Shrink_information( Objects_Information *information ) { a000ac74: 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 ); a000ac78: e1d050b8 ldrh r5, [r0, #8] <== NOT EXECUTED block_count = (information->maximum - index_base) / a000ac7c: e1d061b4 ldrh r6, [r0, #20] <== NOT EXECUTED */ void _Objects_Shrink_information( Objects_Information *information ) { a000ac80: e1a04000 mov r4, 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) / a000ac84: e1d001b0 ldrh r0, [r0, #16] <== NOT EXECUTED a000ac88: e1a01006 mov r1, r6 <== NOT EXECUTED a000ac8c: e0650000 rsb r0, r5, r0 <== NOT EXECUTED a000ac90: eb002311 bl a00138dc <__aeabi_uidiv> <== NOT EXECUTED information->allocation_size; for ( block = 0; block < block_count; block++ ) { a000ac94: e3a03000 mov r3, #0 <== NOT EXECUTED a000ac98: ea000020 b a000ad20 <_Objects_Shrink_information+0xac> <== NOT EXECUTED if ( information->inactive_per_block[ block ] == a000ac9c: e5942030 ldr r2, [r4, #48] ; 0x30 <== 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++ ) { a000aca0: e1a07103 lsl r7, r3, #2 <== NOT EXECUTED if ( information->inactive_per_block[ block ] == a000aca4: e7922103 ldr r2, [r2, r3, lsl #2] <== NOT EXECUTED a000aca8: e1520006 cmp r2, r6 <== NOT EXECUTED a000acac: 1a000019 bne a000ad18 <_Objects_Shrink_information+0xa4> <== NOT EXECUTED information->allocation_size ) { /* * Assume the Inactive chain is never empty at this point */ the_object = (Objects_Control *) _Chain_First( &information->Inactive ); a000acb0: e5940020 ldr r0, [r4, #32] <== NOT EXECUTED a000acb4: ea000000 b a000acbc <_Objects_Shrink_information+0x48> <== 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; a000acb8: e1a00006 mov r0, r6 <== 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 ); a000acbc: 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; a000acc0: e5906000 ldr r6, [r0] <== NOT EXECUTED if ((index >= index_base) && a000acc4: e1530005 cmp r3, r5 <== NOT EXECUTED a000acc8: 3a000004 bcc a000ace0 <_Objects_Shrink_information+0x6c> <== NOT EXECUTED (index < (index_base + information->allocation_size))) { a000accc: e1d421b4 ldrh r2, [r4, #20] <== NOT EXECUTED a000acd0: e0852002 add r2, r5, 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) && a000acd4: e1530002 cmp r3, r2 <== NOT EXECUTED a000acd8: 2a000000 bcs a000ace0 <_Objects_Shrink_information+0x6c> <== NOT EXECUTED (index < (index_base + information->allocation_size))) { _Chain_Extract( &extract_me->Node ); a000acdc: ebfffc05 bl a0009cf8 <_Chain_Extract> <== NOT EXECUTED } } while ( the_object ); a000ace0: e3560000 cmp r6, #0 <== NOT EXECUTED a000ace4: 1afffff3 bne a000acb8 <_Objects_Shrink_information+0x44> <== NOT EXECUTED /* * Free the memory and reset the structures in the object' information */ _Workspace_Free( information->object_blocks[ block ] ); a000ace8: e5943034 ldr r3, [r4, #52] ; 0x34 <== NOT EXECUTED a000acec: e7930007 ldr r0, [r3, r7] <== NOT EXECUTED a000acf0: eb00069d bl a000c76c <_Workspace_Free> <== NOT EXECUTED information->object_blocks[ block ] = NULL; a000acf4: e5943034 ldr r3, [r4, #52] ; 0x34 <== NOT EXECUTED information->inactive_per_block[ block ] = 0; information->inactive -= information->allocation_size; a000acf8: e1d422bc ldrh r2, [r4, #44] ; 0x2c <== NOT EXECUTED /* * Free the memory and reset the structures in the object' information */ _Workspace_Free( information->object_blocks[ block ] ); information->object_blocks[ block ] = NULL; a000acfc: e7836007 str r6, [r3, r7] <== NOT EXECUTED information->inactive_per_block[ block ] = 0; a000ad00: e5943030 ldr r3, [r4, #48] ; 0x30 <== NOT EXECUTED a000ad04: e7836007 str r6, [r3, r7] <== NOT EXECUTED information->inactive -= information->allocation_size; a000ad08: e1d431b4 ldrh r3, [r4, #20] <== NOT EXECUTED a000ad0c: e0633002 rsb r3, r3, r2 <== NOT EXECUTED a000ad10: e1c432bc strh r3, [r4, #44] ; 0x2c <== NOT EXECUTED return; a000ad14: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED } index_base += information->allocation_size; a000ad18: e0855006 add r5, r5, r6 <== 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++ ) { a000ad1c: e2833001 add r3, r3, #1 <== NOT EXECUTED a000ad20: e1530000 cmp r3, r0 <== NOT EXECUTED a000ad24: 3affffdc bcc a000ac9c <_Objects_Shrink_information+0x28> <== NOT EXECUTED a000ad28: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED =============================================================================== a000b048 <_Protected_heap_Extend>: bool _Protected_heap_Extend( Heap_Control *the_heap, void *starting_address, uintptr_t size ) { a000b048: e92d40f1 push {r0, r4, r5, r6, r7, lr} <== NOT EXECUTED bool extend_ok; uintptr_t amount_extended; _RTEMS_Lock_allocator(); a000b04c: e59f4038 ldr r4, [pc, #56] ; a000b08c <_Protected_heap_Extend+0x44><== NOT EXECUTED bool _Protected_heap_Extend( Heap_Control *the_heap, void *starting_address, uintptr_t size ) { a000b050: e1a05000 mov r5, r0 <== NOT EXECUTED a000b054: e1a07001 mov r7, r1 <== NOT EXECUTED a000b058: e1a06002 mov r6, r2 <== NOT EXECUTED bool extend_ok; uintptr_t amount_extended; _RTEMS_Lock_allocator(); a000b05c: e5940000 ldr r0, [r4] <== NOT EXECUTED a000b060: ebfffbcb bl a0009f94 <_API_Mutex_Lock> <== NOT EXECUTED extend_ok = _Heap_Extend(the_heap, starting_address, size, &amount_extended); a000b064: e1a01007 mov r1, r7 <== NOT EXECUTED a000b068: e1a02006 mov r2, r6 <== NOT EXECUTED a000b06c: e1a0300d mov r3, sp <== NOT EXECUTED a000b070: e1a00005 mov r0, r5 <== NOT EXECUTED a000b074: eb000eaf bl a000eb38 <_Heap_Extend> <== NOT EXECUTED a000b078: e1a05000 mov r5, r0 <== NOT EXECUTED _RTEMS_Unlock_allocator(); a000b07c: e5940000 ldr r0, [r4] <== NOT EXECUTED a000b080: ebfffbdc bl a0009ff8 <_API_Mutex_Unlock> <== NOT EXECUTED return extend_ok; } a000b084: e1a00005 mov r0, r5 <== NOT EXECUTED a000b088: e8bd80f8 pop {r3, r4, r5, r6, r7, pc} <== NOT EXECUTED =============================================================================== a000ad78 <_Protected_heap_Free>: bool _Protected_heap_Free( Heap_Control *the_heap, void *start_address ) { a000ad78: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED bool status; _RTEMS_Lock_allocator(); a000ad7c: e59f402c ldr r4, [pc, #44] ; a000adb0 <_Protected_heap_Free+0x38><== NOT EXECUTED bool _Protected_heap_Free( Heap_Control *the_heap, void *start_address ) { a000ad80: e1a05000 mov r5, r0 <== NOT EXECUTED a000ad84: e1a06001 mov r6, r1 <== NOT EXECUTED bool status; _RTEMS_Lock_allocator(); a000ad88: e5940000 ldr r0, [r4] <== NOT EXECUTED a000ad8c: ebfffba8 bl a0009c34 <_API_Mutex_Lock> <== NOT EXECUTED status = _Heap_Free( the_heap, start_address ); a000ad90: e1a01006 mov r1, r6 <== NOT EXECUTED a000ad94: e1a00005 mov r0, r5 <== NOT EXECUTED a000ad98: eb000e98 bl a000e800 <_Heap_Free> <== NOT EXECUTED a000ad9c: e1a05000 mov r5, r0 <== NOT EXECUTED _RTEMS_Unlock_allocator(); a000ada0: e5940000 ldr r0, [r4] <== NOT EXECUTED a000ada4: ebfffbbb bl a0009c98 <_API_Mutex_Unlock> <== NOT EXECUTED return status; } a000ada8: e1a00005 mov r0, r5 <== NOT EXECUTED a000adac: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED =============================================================================== a000fe18 <_Protected_heap_Get_free_information>: bool _Protected_heap_Get_free_information( Heap_Control *the_heap, Heap_Information *info ) { a000fe18: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED /* * TBD: _Heap_Get_free_information does not error check or return status. */ _RTEMS_Lock_allocator(); a000fe1c: e59f4028 ldr r4, [pc, #40] ; a000fe4c <_Protected_heap_Get_free_information+0x34><== NOT EXECUTED bool _Protected_heap_Get_free_information( Heap_Control *the_heap, Heap_Information *info ) { a000fe20: e1a05000 mov r5, r0 <== NOT EXECUTED a000fe24: e1a06001 mov r6, r1 <== NOT EXECUTED /* * TBD: _Heap_Get_free_information does not error check or return status. */ _RTEMS_Lock_allocator(); a000fe28: e5940000 ldr r0, [r4] <== NOT EXECUTED a000fe2c: ebfff8aa bl a000e0dc <_API_Mutex_Lock> <== NOT EXECUTED _Heap_Get_free_information( the_heap, info ); a000fe30: e1a00005 mov r0, r5 <== NOT EXECUTED a000fe34: e1a01006 mov r1, r6 <== NOT EXECUTED a000fe38: eb000f66 bl a0013bd8 <_Heap_Get_free_information> <== NOT EXECUTED _RTEMS_Unlock_allocator(); a000fe3c: e5940000 ldr r0, [r4] <== NOT EXECUTED a000fe40: ebfff8be bl a000e140 <_API_Mutex_Unlock> <== NOT EXECUTED return true; } a000fe44: e3a00001 mov r0, #1 <== NOT EXECUTED a000fe48: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED =============================================================================== a000b44c <_Protected_heap_Get_information>: bool _Protected_heap_Get_information( Heap_Control *the_heap, Heap_Information_block *the_info ) { a000b44c: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED if ( !the_heap ) a000b450: e2506000 subs r6, r0, #0 <== NOT EXECUTED bool _Protected_heap_Get_information( Heap_Control *the_heap, Heap_Information_block *the_info ) { a000b454: e1a05001 mov r5, r1 <== NOT EXECUTED if ( !the_heap ) a000b458: 0a00000b beq a000b48c <_Protected_heap_Get_information+0x40><== NOT EXECUTED return false; if ( !the_info ) a000b45c: e3510000 cmp r1, #0 <== NOT EXECUTED a000b460: 0a00000b beq a000b494 <_Protected_heap_Get_information+0x48><== NOT EXECUTED return false; _RTEMS_Lock_allocator(); a000b464: e59f4030 ldr r4, [pc, #48] ; a000b49c <_Protected_heap_Get_information+0x50><== NOT EXECUTED a000b468: e5940000 ldr r0, [r4] <== NOT EXECUTED a000b46c: ebfffbba bl a000a35c <_API_Mutex_Lock> <== NOT EXECUTED _Heap_Get_information( the_heap, the_info ); a000b470: e1a00006 mov r0, r6 <== NOT EXECUTED a000b474: e1a01005 mov r1, r5 <== NOT EXECUTED a000b478: eb000fd2 bl a000f3c8 <_Heap_Get_information> <== NOT EXECUTED _RTEMS_Unlock_allocator(); a000b47c: e5940000 ldr r0, [r4] <== NOT EXECUTED a000b480: ebfffbce bl a000a3c0 <_API_Mutex_Unlock> <== NOT EXECUTED return true; a000b484: e3a00001 mov r0, #1 <== NOT EXECUTED a000b488: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED Heap_Control *the_heap, Heap_Information_block *the_info ) { if ( !the_heap ) return false; a000b48c: e1a00006 mov r0, r6 <== NOT EXECUTED a000b490: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED if ( !the_info ) return false; a000b494: e1a00001 mov r0, r1 <== NOT EXECUTED _RTEMS_Lock_allocator(); _Heap_Get_information( the_heap, the_info ); _RTEMS_Unlock_allocator(); return true; } a000b498: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED =============================================================================== a00155a0 <_Protected_heap_Resize_block>: bool _Protected_heap_Resize_block( Heap_Control *the_heap, void *starting_address, uintptr_t size ) { a00155a0: e92d40f7 push {r0, r1, r2, r4, r5, r6, r7, lr} <== NOT EXECUTED Heap_Resize_status status; uintptr_t old_mem_size; uintptr_t avail_mem_size; _RTEMS_Lock_allocator(); a00155a4: e59f4044 ldr r4, [pc, #68] ; a00155f0 <_Protected_heap_Resize_block+0x50><== NOT EXECUTED bool _Protected_heap_Resize_block( Heap_Control *the_heap, void *starting_address, uintptr_t size ) { a00155a8: e1a05000 mov r5, r0 <== NOT EXECUTED a00155ac: e1a07001 mov r7, r1 <== NOT EXECUTED Heap_Resize_status status; uintptr_t old_mem_size; uintptr_t avail_mem_size; _RTEMS_Lock_allocator(); a00155b0: e5940000 ldr r0, [r4] <== NOT EXECUTED bool _Protected_heap_Resize_block( Heap_Control *the_heap, void *starting_address, uintptr_t size ) { a00155b4: e1a06002 mov r6, r2 <== NOT EXECUTED Heap_Resize_status status; uintptr_t old_mem_size; uintptr_t avail_mem_size; _RTEMS_Lock_allocator(); a00155b8: ebffd19d bl a0009c34 <_API_Mutex_Lock> <== NOT EXECUTED status = _Heap_Resize_block( a00155bc: e28d3004 add r3, sp, #4 <== NOT EXECUTED a00155c0: e58d3000 str r3, [sp] <== NOT EXECUTED a00155c4: e1a01007 mov r1, r7 <== NOT EXECUTED a00155c8: e1a02006 mov r2, r6 <== NOT EXECUTED a00155cc: e28d3008 add r3, sp, #8 <== NOT EXECUTED a00155d0: e1a00005 mov r0, r5 <== NOT EXECUTED a00155d4: eb000006 bl a00155f4 <_Heap_Resize_block> <== NOT EXECUTED a00155d8: e1a05000 mov r5, r0 <== NOT EXECUTED the_heap, starting_address, size, &old_mem_size, &avail_mem_size ); _RTEMS_Unlock_allocator(); a00155dc: e5940000 ldr r0, [r4] <== NOT EXECUTED a00155e0: ebffd1ac bl a0009c98 <_API_Mutex_Unlock> <== NOT EXECUTED return (status == HEAP_RESIZE_SUCCESSFUL); } a00155e4: e2750001 rsbs r0, r5, #1 <== NOT EXECUTED a00155e8: 33a00000 movcc r0, #0 <== NOT EXECUTED a00155ec: e8bd80fe pop {r1, r2, r3, r4, r5, r6, r7, pc} <== NOT EXECUTED =============================================================================== a000ff00 <_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 ) { a000ff00: e59f3054 ldr r3, [pc, #84] ; a000ff5c <_Protected_heap_Walk+0x5c><== NOT EXECUTED bool _Protected_heap_Walk( Heap_Control *the_heap, int source, bool do_dump ) { a000ff04: 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 ) { a000ff08: e5933000 ldr r3, [r3] <== NOT EXECUTED bool _Protected_heap_Walk( Heap_Control *the_heap, int source, bool do_dump ) { a000ff0c: e1a06000 mov r6, r0 <== NOT EXECUTED a000ff10: e1a05001 mov r5, 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 ) { a000ff14: e3530000 cmp r3, #0 <== NOT EXECUTED bool _Protected_heap_Walk( Heap_Control *the_heap, int source, bool do_dump ) { a000ff18: e20270ff and r7, 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 ) { a000ff1c: 1a00000b bne a000ff50 <_Protected_heap_Walk+0x50> <== NOT EXECUTED _RTEMS_Lock_allocator(); a000ff20: e59f4038 ldr r4, [pc, #56] ; a000ff60 <_Protected_heap_Walk+0x60><== NOT EXECUTED a000ff24: e5940000 ldr r0, [r4] <== NOT EXECUTED a000ff28: ebfff86b bl a000e0dc <_API_Mutex_Lock> <== NOT EXECUTED status = _Heap_Walk( the_heap, source, do_dump ); a000ff2c: e1a01005 mov r1, r5 <== NOT EXECUTED a000ff30: e1a02007 mov r2, r7 <== NOT EXECUTED a000ff34: e1a00006 mov r0, r6 <== NOT EXECUTED a000ff38: ebfffc45 bl a000f054 <_Heap_Walk> <== NOT EXECUTED a000ff3c: e1a05000 mov r5, r0 <== NOT EXECUTED _RTEMS_Unlock_allocator(); a000ff40: e5940000 ldr r0, [r4] <== NOT EXECUTED a000ff44: ebfff87d bl a000e140 <_API_Mutex_Unlock> <== NOT EXECUTED } else { status = _Heap_Walk( the_heap, source, do_dump ); } return status; } a000ff48: e1a00005 mov r0, r5 <== NOT EXECUTED a000ff4c: e8bd80f0 pop {r4, r5, r6, r7, pc} <== 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 ); a000ff50: e1a02007 mov r2, r7 <== NOT EXECUTED } return status; } a000ff54: 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 ); a000ff58: eafffc3d b a000f054 <_Heap_Walk> <== NOT EXECUTED =============================================================================== a000e36c <_RTEMS_Tasks_Invoke_task_variable_dtor>: RTEMS_INLINE_ROUTINE bool _Thread_Is_executing ( const Thread_Control *the_thread ) { return ( the_thread == _Thread_Executing ); a000e36c: e59f203c ldr r2, [pc, #60] ; a000e3b0 <_RTEMS_Tasks_Invoke_task_variable_dtor+0x44><== NOT EXECUTED ) { void (*dtor)(void *); void *value; dtor = tvp->dtor; a000e370: e5913010 ldr r3, [r1, #16] <== NOT EXECUTED void _RTEMS_Tasks_Invoke_task_variable_dtor( Thread_Control *the_thread, rtems_task_variable_t *tvp ) { a000e374: e92d4010 push {r4, lr} <== NOT EXECUTED void (*dtor)(void *); void *value; dtor = tvp->dtor; if (_Thread_Is_executing(the_thread)) { a000e378: e5922004 ldr r2, [r2, #4] <== NOT EXECUTED void _RTEMS_Tasks_Invoke_task_variable_dtor( Thread_Control *the_thread, rtems_task_variable_t *tvp ) { a000e37c: e1a04001 mov r4, r1 <== NOT EXECUTED void (*dtor)(void *); void *value; dtor = tvp->dtor; if (_Thread_Is_executing(the_thread)) { a000e380: e1520000 cmp r2, r0 <== NOT EXECUTED value = *tvp->ptr; a000e384: 05912004 ldreq r2, [r1, #4] <== NOT EXECUTED *tvp->ptr = tvp->gval; a000e388: 05911008 ldreq r1, [r1, #8] <== NOT EXECUTED } else { value = tvp->tval; a000e38c: 1594000c ldrne r0, [r4, #12] <== NOT EXECUTED void (*dtor)(void *); void *value; dtor = tvp->dtor; if (_Thread_Is_executing(the_thread)) { value = *tvp->ptr; a000e390: 05920000 ldreq r0, [r2] <== NOT EXECUTED *tvp->ptr = tvp->gval; a000e394: 05821000 streq r1, [r2] <== NOT EXECUTED } else { value = tvp->tval; } if ( dtor ) a000e398: e3530000 cmp r3, #0 <== NOT EXECUTED a000e39c: 0a000000 beq a000e3a4 <_RTEMS_Tasks_Invoke_task_variable_dtor+0x38><== NOT EXECUTED (*dtor)(value); a000e3a0: e12fff33 blx r3 <== NOT EXECUTED _Workspace_Free(tvp); a000e3a4: e1a00004 mov r0, r4 <== NOT EXECUTED } a000e3a8: e8bd4010 pop {r4, lr} <== NOT EXECUTED } if ( dtor ) (*dtor)(value); _Workspace_Free(tvp); a000e3ac: eafff8ee b a000c76c <_Workspace_Free> <== NOT EXECUTED =============================================================================== a000e244 <_RTEMS_tasks_Delete_extension>: /* * Free per task variable memory */ tvp = deleted->task_variables; deleted->task_variables = NULL; a000e244: e3a03000 mov r3, #0 <== NOT EXECUTED void _RTEMS_tasks_Delete_extension( Thread_Control *executing, Thread_Control *deleted ) { a000e248: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED /* * Free per task variable memory */ tvp = deleted->task_variables; a000e24c: e5916100 ldr r6, [r1, #256] ; 0x100 <== NOT EXECUTED void _RTEMS_tasks_Delete_extension( Thread_Control *executing, Thread_Control *deleted ) { a000e250: e1a04001 mov r4, r1 <== NOT EXECUTED /* * Free per task variable memory */ tvp = deleted->task_variables; deleted->task_variables = NULL; a000e254: e5813100 str r3, [r1, #256] ; 0x100 <== NOT EXECUTED while (tvp) { a000e258: ea000004 b a000e270 <_RTEMS_tasks_Delete_extension+0x2c> <== NOT EXECUTED next = (rtems_task_variable_t *)tvp->next; _RTEMS_Tasks_Invoke_task_variable_dtor( deleted, tvp ); a000e25c: e1a01006 mov r1, r6 <== NOT EXECUTED a000e260: e1a00004 mov r0, r4 <== NOT EXECUTED */ tvp = deleted->task_variables; deleted->task_variables = NULL; while (tvp) { next = (rtems_task_variable_t *)tvp->next; a000e264: e5965000 ldr r5, [r6] <== NOT EXECUTED _RTEMS_Tasks_Invoke_task_variable_dtor( deleted, tvp ); a000e268: eb00003f bl a000e36c <_RTEMS_Tasks_Invoke_task_variable_dtor><== NOT EXECUTED tvp = next; a000e26c: e1a06005 mov r6, r5 <== NOT EXECUTED * Free per task variable memory */ tvp = deleted->task_variables; deleted->task_variables = NULL; while (tvp) { a000e270: e3560000 cmp r6, #0 <== NOT EXECUTED a000e274: 1afffff8 bne a000e25c <_RTEMS_tasks_Delete_extension+0x18> <== NOT EXECUTED /* * Free API specific memory */ (void) _Workspace_Free( deleted->API_Extensions[ THREAD_API_RTEMS ] ); a000e278: e59400f4 ldr r0, [r4, #244] ; 0xf4 <== NOT EXECUTED a000e27c: ebfff93a bl a000c76c <_Workspace_Free> <== NOT EXECUTED deleted->API_Extensions[ THREAD_API_RTEMS ] = NULL; a000e280: e58460f4 str r6, [r4, #244] ; 0xf4 <== NOT EXECUTED } a000e284: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED =============================================================================== a0009784 <_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; a0009784: e59f3074 ldr r3, [pc, #116] ; a0009800 <_RTEMS_tasks_Initialize_user_tasks_body+0x7c> * * Output parameters: NONE */ void _RTEMS_tasks_Initialize_user_tasks_body( void ) { a0009788: e92d40f7 push {r0, r1, r2, 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; a000978c: e593402c ldr r4, [r3, #44] ; 0x2c maximum = Configuration_RTEMS_API.number_of_initialization_tasks; a0009790: e5937028 ldr r7, [r3, #40] ; 0x28 /* * Verify that we have a set of user tasks to iterate */ if ( !user_tasks ) a0009794: e3540000 cmp r4, #0 a0009798: 13a05000 movne r5, #0 /* * Now iterate over the initialization tasks and create/start them. */ for ( index=0 ; index < maximum ; index++ ) { return_value = rtems_task_create( a000979c: 128d6008 addne r6, sp, #8 maximum = Configuration_RTEMS_API.number_of_initialization_tasks; /* * Verify that we have a set of user tasks to iterate */ if ( !user_tasks ) a00097a0: 1a000013 bne a00097f4 <_RTEMS_tasks_Initialize_user_tasks_body+0x70> a00097a4: ea000014 b a00097fc <_RTEMS_tasks_Initialize_user_tasks_body+0x78><== NOT EXECUTED /* * Now iterate over the initialization tasks and create/start them. */ for ( index=0 ; index < maximum ; index++ ) { return_value = rtems_task_create( a00097a8: e594300c ldr r3, [r4, #12] a00097ac: e88d0048 stm sp, {r3, r6} a00097b0: e8940005 ldm r4, {r0, r2} a00097b4: e5941008 ldr r1, [r4, #8] a00097b8: e5943014 ldr r3, [r4, #20] a00097bc: ebffff68 bl a0009564 user_tasks[ index ].stack_size, user_tasks[ index ].mode_set, user_tasks[ index ].attribute_set, &id ); if ( !rtems_is_status_successful( return_value ) ) a00097c0: e2502000 subs r2, r0, #0 a00097c4: 1a000006 bne a00097e4 <_RTEMS_tasks_Initialize_user_tasks_body+0x60> _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, true, return_value ); return_value = rtems_task_start( a00097c8: e5942018 ldr r2, [r4, #24] a00097cc: e5941010 ldr r1, [r4, #16] a00097d0: e59d0008 ldr r0, [sp, #8] a00097d4: eb00000a bl a0009804 id, user_tasks[ index ].entry_point, user_tasks[ index ].argument ); if ( !rtems_is_status_successful( return_value ) ) a00097d8: e2502000 subs r2, r0, #0 &id ); if ( !rtems_is_status_successful( return_value ) ) _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, true, return_value ); return_value = rtems_task_start( a00097dc: e284401c add r4, r4, #28 id, user_tasks[ index ].entry_point, user_tasks[ index ].argument ); if ( !rtems_is_status_successful( return_value ) ) a00097e0: 0a000002 beq a00097f0 <_RTEMS_tasks_Initialize_user_tasks_body+0x6c> _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, true, return_value ); a00097e4: e3a00001 mov r0, #1 <== NOT EXECUTED a00097e8: e1a01000 mov r1, r0 <== NOT EXECUTED a00097ec: eb000377 bl a000a5d0 <_Internal_error_Occurred> <== NOT EXECUTED return; /* * Now iterate over the initialization tasks and create/start them. */ for ( index=0 ; index < maximum ; index++ ) { a00097f0: e2855001 add r5, r5, #1 a00097f4: e1550007 cmp r5, r7 a00097f8: 3affffea bcc a00097a8 <_RTEMS_tasks_Initialize_user_tasks_body+0x24> user_tasks[ index ].argument ); if ( !rtems_is_status_successful( return_value ) ) _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, true, return_value ); } } a00097fc: e8bd80fe pop {r1, r2, r3, r4, r5, r6, r7, pc} =============================================================================== a000e1c0 <_RTEMS_tasks_Post_switch_extension>: */ void _RTEMS_tasks_Post_switch_extension( Thread_Control *executing ) { a000e1c0: e92d4071 push {r0, 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 ]; a000e1c4: e59040f4 ldr r4, [r0, #244] ; 0xf4 if ( !api ) a000e1c8: e3540000 cmp r4, #0 a000e1cc: 0a00001a beq a000e23c <_RTEMS_tasks_Post_switch_extension+0x7c> static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000e1d0: e10f3000 mrs r3, CPSR a000e1d4: e3832080 orr r2, r3, #128 ; 0x80 a000e1d8: e129f002 msr CPSR_fc, r2 asr = &api->Signal; _ISR_Disable( level ); signal_set = asr->signals_posted; asr->signals_posted = 0; a000e1dc: e3a02000 mov r2, #0 */ asr = &api->Signal; _ISR_Disable( level ); signal_set = asr->signals_posted; a000e1e0: e5946014 ldr r6, [r4, #20] asr->signals_posted = 0; a000e1e4: e5842014 str r2, [r4, #20] static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000e1e8: e129f003 msr CPSR_fc, r3 _ISR_Enable( level ); if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */ a000e1ec: e3560000 cmp r6, #0 a000e1f0: 0a000011 beq a000e23c <_RTEMS_tasks_Post_switch_extension+0x7c> return; asr->nest_level += 1; a000e1f4: e594301c ldr r3, [r4, #28] <== NOT EXECUTED rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); a000e1f8: e59f1040 ldr r1, [pc, #64] ; a000e240 <_RTEMS_tasks_Post_switch_extension+0x80><== NOT EXECUTED a000e1fc: e1a0200d mov r2, sp <== NOT EXECUTED if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */ return; asr->nest_level += 1; a000e200: e2833001 add r3, r3, #1 <== NOT EXECUTED a000e204: e584301c str r3, [r4, #28] <== NOT EXECUTED rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); a000e208: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED a000e20c: eb0006db bl a000fd80 <== NOT EXECUTED (*asr->handler)( signal_set ); a000e210: e594300c ldr r3, [r4, #12] <== NOT EXECUTED a000e214: e1a00006 mov r0, r6 <== NOT EXECUTED a000e218: e12fff33 blx r3 <== NOT EXECUTED asr->nest_level -= 1; a000e21c: e594301c ldr r3, [r4, #28] <== NOT EXECUTED rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode ); a000e220: e59d0000 ldr r0, [sp] <== NOT EXECUTED a000e224: e59f1014 ldr r1, [pc, #20] ; a000e240 <_RTEMS_tasks_Post_switch_extension+0x80><== 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; a000e228: e2433001 sub r3, r3, #1 <== NOT EXECUTED a000e22c: e584301c str r3, [r4, #28] <== NOT EXECUTED rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode ); a000e230: 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 ); a000e234: e1a0500d mov r5, sp <== NOT EXECUTED (*asr->handler)( signal_set ); asr->nest_level -= 1; rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode ); a000e238: eb0006d0 bl a000fd80 <== NOT EXECUTED } a000e23c: e8bd8078 pop {r3, r4, r5, r6, pc} =============================================================================== a000e14c <_RTEMS_tasks_Switch_extension>: /* * Per Task Variables */ tvp = executing->task_variables; a000e14c: e5903100 ldr r3, [r0, #256] ; 0x100 <== NOT EXECUTED while (tvp) { a000e150: ea000005 b a000e16c <_RTEMS_tasks_Switch_extension+0x20> <== NOT EXECUTED tvp->tval = *tvp->ptr; a000e154: e5932004 ldr r2, [r3, #4] <== NOT EXECUTED a000e158: e5920000 ldr r0, [r2] <== NOT EXECUTED a000e15c: e583000c str r0, [r3, #12] <== NOT EXECUTED *tvp->ptr = tvp->gval; a000e160: e5930008 ldr r0, [r3, #8] <== NOT EXECUTED tvp = (rtems_task_variable_t *)tvp->next; a000e164: e5933000 ldr r3, [r3] <== NOT EXECUTED */ tvp = executing->task_variables; while (tvp) { tvp->tval = *tvp->ptr; *tvp->ptr = tvp->gval; a000e168: e5820000 str r0, [r2] <== NOT EXECUTED /* * Per Task Variables */ tvp = executing->task_variables; while (tvp) { a000e16c: e3530000 cmp r3, #0 <== NOT EXECUTED a000e170: 1afffff7 bne a000e154 <_RTEMS_tasks_Switch_extension+0x8> <== NOT EXECUTED tvp->tval = *tvp->ptr; *tvp->ptr = tvp->gval; tvp = (rtems_task_variable_t *)tvp->next; } tvp = heir->task_variables; a000e174: e5913100 ldr r3, [r1, #256] ; 0x100 <== NOT EXECUTED while (tvp) { a000e178: ea000005 b a000e194 <_RTEMS_tasks_Switch_extension+0x48> <== NOT EXECUTED tvp->gval = *tvp->ptr; a000e17c: e5932004 ldr r2, [r3, #4] <== NOT EXECUTED a000e180: e5921000 ldr r1, [r2] <== NOT EXECUTED a000e184: e5831008 str r1, [r3, #8] <== NOT EXECUTED *tvp->ptr = tvp->tval; a000e188: e593100c ldr r1, [r3, #12] <== NOT EXECUTED tvp = (rtems_task_variable_t *)tvp->next; a000e18c: e5933000 ldr r3, [r3] <== NOT EXECUTED } tvp = heir->task_variables; while (tvp) { tvp->gval = *tvp->ptr; *tvp->ptr = tvp->tval; a000e190: e5821000 str r1, [r2] <== NOT EXECUTED *tvp->ptr = tvp->gval; tvp = (rtems_task_variable_t *)tvp->next; } tvp = heir->task_variables; while (tvp) { a000e194: e3530000 cmp r3, #0 <== NOT EXECUTED a000e198: 1afffff7 bne a000e17c <_RTEMS_tasks_Switch_extension+0x30> <== NOT EXECUTED tvp->gval = *tvp->ptr; *tvp->ptr = tvp->tval; tvp = (rtems_task_variable_t *)tvp->next; } } a000e19c: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000a250 <_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 ) { a000a250: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED a000a254: e24dd018 sub sp, sp, #24 <== NOT EXECUTED #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ Timestamp_Control uptime; #endif Thread_Control *owning_thread = the_period->owner; a000a258: e5906040 ldr r6, [r0, #64] ; 0x40 <== NOT EXECUTED /* * Determine elapsed wall time since period initiated. */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _TOD_Get_uptime( &uptime ); a000a25c: 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 ) { a000a260: e1a08001 mov r8, r1 <== NOT EXECUTED a000a264: e1a04000 mov r4, r0 <== NOT EXECUTED /* * Determine elapsed wall time since period initiated. */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _TOD_Get_uptime( &uptime ); a000a268: 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 ) { a000a26c: e1a07002 mov r7, r2 <== NOT EXECUTED /* * Determine elapsed wall time since period initiated. */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _TOD_Get_uptime( &uptime ); a000a270: eb000607 bl a000ba94 <_TOD_Get_uptime> <== NOT EXECUTED _Timestamp_Subtract( a000a274: e1a02008 mov r2, r8 <== NOT EXECUTED a000a278: e284004c add r0, r4, #76 ; 0x4c <== NOT EXECUTED a000a27c: e1a01005 mov r1, r5 <== NOT EXECUTED a000a280: eb000ea4 bl a000dd18 <_Timespec_Subtract> <== NOT EXECUTED #endif /* * Determine cpu usage since period initiated. */ used = owning_thread->cpu_time_used; a000a284: e2863084 add r3, r6, #132 ; 0x84 <== NOT EXECUTED a000a288: e893000c ldm r3, {r2, r3} <== NOT EXECUTED a000a28c: e58d2008 str r2, [sp, #8] <== NOT EXECUTED a000a290: e58d300c str r3, [sp, #12] <== NOT EXECUTED #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ if (owning_thread == _Thread_Executing) { a000a294: e59f3064 ldr r3, [pc, #100] ; a000a300 <_Rate_monotonic_Get_status+0xb0><== NOT EXECUTED a000a298: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED a000a29c: e1560003 cmp r6, r3 <== NOT EXECUTED a000a2a0: 1a000013 bne a000a2f4 <_Rate_monotonic_Get_status+0xa4> <== NOT EXECUTED Thread_CPU_usage_t ran; /* How much time time since last context switch */ _Timestamp_Subtract( a000a2a4: e1a01005 mov r1, r5 <== NOT EXECUTED a000a2a8: e1a0200d mov r2, sp <== NOT EXECUTED a000a2ac: e59f0050 ldr r0, [pc, #80] ; a000a304 <_Rate_monotonic_Get_status+0xb4><== NOT EXECUTED &_Thread_Time_of_last_context_switch, &uptime, &ran ); /* cpu usage += ran */ _Timestamp_Add_to( &used, &ran ); a000a2b0: 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( a000a2b4: eb000e97 bl a000dd18 <_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)) a000a2b8: 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 ); a000a2bc: e1a0100d mov r1, sp <== NOT EXECUTED a000a2c0: e1a00005 mov r0, r5 <== NOT EXECUTED a000a2c4: eb000e40 bl a000dbcc <_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)) a000a2c8: e1a00005 mov r0, r5 <== NOT EXECUTED a000a2cc: e1a01004 mov r1, r4 <== NOT EXECUTED a000a2d0: eb000e82 bl a000dce0 <_Timespec_Less_than> <== NOT EXECUTED a000a2d4: 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( a000a2d8: 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; a000a2dc: 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)) a000a2e0: 1a000004 bne a000a2f8 <_Rate_monotonic_Get_status+0xa8> <== NOT EXECUTED return false; /* used = current cpu usage - cpu usage at start of period */ _Timestamp_Subtract( a000a2e4: e1a00004 mov r0, r4 <== NOT EXECUTED a000a2e8: e1a01005 mov r1, r5 <== NOT EXECUTED a000a2ec: e1a02007 mov r2, r7 <== NOT EXECUTED a000a2f0: eb000e88 bl a000dd18 <_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; a000a2f4: e3a00001 mov r0, #1 <== NOT EXECUTED } a000a2f8: e28dd018 add sp, sp, #24 <== NOT EXECUTED a000a2fc: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED =============================================================================== a000a308 <_Rate_monotonic_Initiate_statistics>: void _Rate_monotonic_Initiate_statistics( Rate_monotonic_Control *the_period ) { a000a308: e92d407f push {r0, r1, r2, r3, r4, r5, r6, lr} <== NOT EXECUTED Thread_Control *owning_thread = the_period->owner; a000a30c: e5905040 ldr r5, [r0, #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 ); a000a310: e28d6008 add r6, sp, #8 <== NOT EXECUTED } void _Rate_monotonic_Initiate_statistics( Rate_monotonic_Control *the_period ) { a000a314: 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 ); a000a318: e1a00006 mov r0, r6 <== NOT EXECUTED a000a31c: eb0005dc bl a000ba94 <_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; a000a320: e28d3008 add r3, sp, #8 <== NOT EXECUTED a000a324: e893000c ldm r3, {r2, r3} <== NOT EXECUTED a000a328: e584204c str r2, [r4, #76] ; 0x4c <== NOT EXECUTED a000a32c: e5843050 str r3, [r4, #80] ; 0x50 <== NOT EXECUTED #else the_period->time_period_initiated = _Watchdog_Ticks_since_boot; #endif the_period->cpu_usage_period_initiated = owning_thread->cpu_time_used; a000a330: e2853084 add r3, r5, #132 ; 0x84 <== NOT EXECUTED a000a334: e893000c ldm r3, {r2, r3} <== NOT EXECUTED a000a338: e5842044 str r2, [r4, #68] ; 0x44 <== NOT EXECUTED a000a33c: e5843048 str r3, [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) { a000a340: e59f302c ldr r3, [pc, #44] ; a000a374 <_Rate_monotonic_Initiate_statistics+0x6c><== NOT EXECUTED a000a344: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED a000a348: e1550003 cmp r5, r3 <== NOT EXECUTED a000a34c: 1a000007 bne a000a370 <_Rate_monotonic_Initiate_statistics+0x68><== NOT EXECUTED /* * Adjust the CPU time used to account for the time since last * context switch. */ _Timespec_Subtract( a000a350: e59f0020 ldr r0, [pc, #32] ; a000a378 <_Rate_monotonic_Initiate_statistics+0x70><== NOT EXECUTED a000a354: e1a01006 mov r1, r6 <== NOT EXECUTED a000a358: e1a0200d mov r2, sp <== NOT EXECUTED a000a35c: eb000e6d bl a000dd18 <_Timespec_Subtract> <== NOT EXECUTED &_Thread_Time_of_last_context_switch, &uptime, &ran ); _Timespec_Add_to( &the_period->cpu_usage_period_initiated, &ran ); a000a360: e2840044 add r0, r4, #68 ; 0x44 <== NOT EXECUTED a000a364: 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 a000a368: e1a0500d mov r5, sp <== NOT EXECUTED ); _Timespec_Add_to( &the_period->cpu_usage_period_initiated, &ran ); a000a36c: eb000e16 bl a000dbcc <_Timespec_Add_to> <== NOT EXECUTED } #endif } a000a370: e8bd807f pop {r0, r1, r2, r3, r4, r5, r6, pc} <== NOT EXECUTED =============================================================================== a000a888 <_Rate_monotonic_Timeout>: void _Rate_monotonic_Timeout( Objects_Id id, void *ignored ) { a000a888: e92d4011 push {r0, r4, lr} <== NOT EXECUTED a000a88c: e1a01000 mov r1, r0 <== NOT EXECUTED a000a890: e1a0200d mov r2, sp <== NOT EXECUTED a000a894: e59f0088 ldr r0, [pc, #136] ; a000a924 <_Rate_monotonic_Timeout+0x9c><== NOT EXECUTED a000a898: eb00072a bl a000c548 <_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 ) { a000a89c: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000a8a0: e1a04000 mov r4, r0 <== NOT EXECUTED a000a8a4: e3530000 cmp r3, #0 <== NOT EXECUTED a000a8a8: 1a00001c bne a000a920 <_Rate_monotonic_Timeout+0x98> <== NOT EXECUTED case OBJECTS_LOCAL: the_thread = the_period->owner; a000a8ac: 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); a000a8b0: e5903010 ldr r3, [r0, #16] <== NOT EXECUTED if ( _States_Is_waiting_for_period( the_thread->current_state ) && a000a8b4: e3130901 tst r3, #16384 ; 0x4000 <== NOT EXECUTED a000a8b8: 0a000006 beq a000a8d8 <_Rate_monotonic_Timeout+0x50> <== NOT EXECUTED a000a8bc: e5902020 ldr r2, [r0, #32] <== NOT EXECUTED a000a8c0: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED a000a8c4: e1520003 cmp r2, r3 <== NOT EXECUTED a000a8c8: 1a000002 bne a000a8d8 <_Rate_monotonic_Timeout+0x50> <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); a000a8cc: e59f1054 ldr r1, [pc, #84] ; a000a928 <_Rate_monotonic_Timeout+0xa0><== NOT EXECUTED a000a8d0: eb000973 bl a000cea4 <_Thread_Clear_state> <== NOT EXECUTED a000a8d4: ea000006 b a000a8f4 <_Rate_monotonic_Timeout+0x6c> <== NOT EXECUTED _Thread_Unblock( the_thread ); _Rate_monotonic_Initiate_statistics( the_period ); _Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length ); } else if ( the_period->state == RATE_MONOTONIC_OWNER_IS_BLOCKING ) { a000a8d8: e5943038 ldr r3, [r4, #56] ; 0x38 <== NOT EXECUTED a000a8dc: 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; a000a8e0: 13a03004 movne r3, #4 <== NOT EXECUTED a000a8e4: 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 ) { a000a8e8: 1a000008 bne a000a910 <_Rate_monotonic_Timeout+0x88> <== NOT EXECUTED the_period->state = RATE_MONOTONIC_EXPIRED_WHILE_BLOCKING; a000a8ec: e2833002 add r3, r3, #2 <== NOT EXECUTED a000a8f0: e5843038 str r3, [r4, #56] ; 0x38 <== NOT EXECUTED _Rate_monotonic_Initiate_statistics( the_period ); a000a8f4: e1a00004 mov r0, r4 <== NOT EXECUTED a000a8f8: ebfffe82 bl a000a308 <_Rate_monotonic_Initiate_statistics> <== NOT EXECUTED Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; a000a8fc: e594303c ldr r3, [r4, #60] ; 0x3c <== NOT EXECUTED _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); a000a900: e59f0024 ldr r0, [pc, #36] ; a000a92c <_Rate_monotonic_Timeout+0xa4><== NOT EXECUTED a000a904: e2841010 add r1, r4, #16 <== NOT EXECUTED Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; a000a908: e584301c str r3, [r4, #28] <== NOT EXECUTED _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); a000a90c: eb000db5 bl a000dfe8 <_Watchdog_Insert> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; a000a910: e59f3018 ldr r3, [pc, #24] ; a000a930 <_Rate_monotonic_Timeout+0xa8><== NOT EXECUTED a000a914: e5932000 ldr r2, [r3] <== NOT EXECUTED a000a918: e2422001 sub r2, r2, #1 <== NOT EXECUTED a000a91c: e5832000 str r2, [r3] <== NOT EXECUTED case OBJECTS_REMOTE: /* impossible */ #endif case OBJECTS_ERROR: break; } } a000a920: e8bd8018 pop {r3, r4, pc} <== NOT EXECUTED =============================================================================== a000a37c <_Rate_monotonic_Update_statistics>: void _Rate_monotonic_Update_statistics( Rate_monotonic_Control *the_period ) { a000a37c: e92d403f push {r0, r1, r2, r3, r4, r5, lr} <== NOT EXECUTED /* * Update the counts. */ stats = &the_period->Statistics; stats->count++; a000a380: e5903054 ldr r3, [r0, #84] ; 0x54 <== NOT EXECUTED /* * Grab status for time statistics. */ valid_status = _Rate_monotonic_Get_status( the_period, &since_last_period, &executed ); a000a384: e28d5008 add r5, sp, #8 <== NOT EXECUTED stats->missed_count++; /* * Grab status for time statistics. */ valid_status = a000a388: e1a0100d mov r1, sp <== NOT EXECUTED /* * Update the counts. */ stats = &the_period->Statistics; stats->count++; a000a38c: e2833001 add r3, r3, #1 <== NOT EXECUTED a000a390: e5803054 str r3, [r0, #84] ; 0x54 <== NOT EXECUTED if ( the_period->state == RATE_MONOTONIC_EXPIRED ) a000a394: e5903038 ldr r3, [r0, #56] ; 0x38 <== NOT EXECUTED stats->missed_count++; /* * Grab status for time statistics. */ valid_status = a000a398: e1a02005 mov r2, r5 <== NOT EXECUTED } void _Rate_monotonic_Update_statistics( Rate_monotonic_Control *the_period ) { a000a39c: e1a04000 mov r4, r0 <== NOT EXECUTED * Update the counts. */ stats = &the_period->Statistics; stats->count++; if ( the_period->state == RATE_MONOTONIC_EXPIRED ) a000a3a0: e3530004 cmp r3, #4 <== NOT EXECUTED stats->missed_count++; a000a3a4: 05903058 ldreq r3, [r0, #88] ; 0x58 <== NOT EXECUTED a000a3a8: 02833001 addeq r3, r3, #1 <== NOT EXECUTED a000a3ac: 05803058 streq r3, [r0, #88] ; 0x58 <== NOT EXECUTED /* * Grab status for time statistics. */ valid_status = a000a3b0: ebffffa6 bl a000a250 <_Rate_monotonic_Get_status> <== NOT EXECUTED _Rate_monotonic_Get_status( the_period, &since_last_period, &executed ); if (!valid_status) a000a3b4: e3500000 cmp r0, #0 <== NOT EXECUTED a000a3b8: 0a000024 beq a000a450 <_Rate_monotonic_Update_statistics+0xd4><== NOT EXECUTED /* * Update CPU time */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timestamp_Add_to( &stats->total_cpu_time, &executed ); a000a3bc: e1a01005 mov r1, r5 <== NOT EXECUTED a000a3c0: e284006c add r0, r4, #108 ; 0x6c <== NOT EXECUTED a000a3c4: eb000e00 bl a000dbcc <_Timespec_Add_to> <== NOT EXECUTED if ( _Timestamp_Less_than( &executed, &stats->min_cpu_time ) ) a000a3c8: e1a00005 mov r0, r5 <== NOT EXECUTED a000a3cc: e284105c add r1, r4, #92 ; 0x5c <== NOT EXECUTED a000a3d0: eb000e42 bl a000dce0 <_Timespec_Less_than> <== NOT EXECUTED a000a3d4: e3500000 cmp r0, #0 <== NOT EXECUTED stats->min_cpu_time = executed; a000a3d8: 128d3008 addne r3, sp, #8 <== NOT EXECUTED a000a3dc: 1893000c ldmne r3, {r2, r3} <== NOT EXECUTED a000a3e0: 1584205c strne r2, [r4, #92] ; 0x5c <== NOT EXECUTED a000a3e4: 15843060 strne r3, [r4, #96] ; 0x60 <== NOT EXECUTED if ( _Timestamp_Greater_than( &executed, &stats->max_cpu_time ) ) a000a3e8: e28d0008 add r0, sp, #8 <== NOT EXECUTED a000a3ec: e2841064 add r1, r4, #100 ; 0x64 <== NOT EXECUTED a000a3f0: eb000e2c bl a000dca8 <_Timespec_Greater_than> <== NOT EXECUTED a000a3f4: e3500000 cmp r0, #0 <== NOT EXECUTED stats->max_cpu_time = executed; a000a3f8: 128d3008 addne r3, sp, #8 <== NOT EXECUTED a000a3fc: 1893000c ldmne r3, {r2, r3} <== NOT EXECUTED a000a400: 15842064 strne r2, [r4, #100] ; 0x64 <== NOT EXECUTED a000a404: 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 ); a000a408: e1a0100d mov r1, sp <== NOT EXECUTED a000a40c: e2840084 add r0, r4, #132 ; 0x84 <== NOT EXECUTED a000a410: eb000ded bl a000dbcc <_Timespec_Add_to> <== NOT EXECUTED if ( _Timestamp_Less_than( &since_last_period, &stats->min_wall_time ) ) a000a414: e1a0000d mov r0, sp <== NOT EXECUTED a000a418: e2841074 add r1, r4, #116 ; 0x74 <== NOT EXECUTED a000a41c: eb000e2f bl a000dce0 <_Timespec_Less_than> <== NOT EXECUTED a000a420: e3500000 cmp r0, #0 <== NOT EXECUTED /* * Update Wall time */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timestamp_Add_to( &stats->total_wall_time, &since_last_period ); a000a424: e1a0500d mov r5, sp <== NOT EXECUTED if ( _Timestamp_Less_than( &since_last_period, &stats->min_wall_time ) ) stats->min_wall_time = since_last_period; a000a428: 189d000c ldmne sp, {r2, r3} <== NOT EXECUTED a000a42c: 15842074 strne r2, [r4, #116] ; 0x74 <== NOT EXECUTED a000a430: 15843078 strne r3, [r4, #120] ; 0x78 <== NOT EXECUTED if ( _Timestamp_Greater_than( &since_last_period, &stats->max_wall_time ) ) a000a434: e1a0000d mov r0, sp <== NOT EXECUTED a000a438: e284107c add r1, r4, #124 ; 0x7c <== NOT EXECUTED a000a43c: eb000e19 bl a000dca8 <_Timespec_Greater_than> <== NOT EXECUTED a000a440: e3500000 cmp r0, #0 <== NOT EXECUTED stats->max_wall_time = since_last_period; a000a444: 189d000c ldmne sp, {r2, r3} <== NOT EXECUTED a000a448: 1584207c strne r2, [r4, #124] ; 0x7c <== NOT EXECUTED a000a44c: 15843080 strne r3, [r4, #128] ; 0x80 <== 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 } a000a450: e8bd803f pop {r0, r1, r2, r3, r4, r5, pc} <== NOT EXECUTED =============================================================================== a001e5b8 <_Region_Process_queue>: rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; a001e5b8: e59f3084 ldr r3, [pc, #132] ; a001e644 <_Region_Process_queue+0x8c><== NOT EXECUTED */ void _Region_Process_queue( Region_Control *the_region ) { a001e5bc: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED a001e5c0: e5932000 ldr r2, [r3] <== NOT EXECUTED a001e5c4: e1a04000 mov r4, r0 <== NOT EXECUTED a001e5c8: e2822001 add r2, r2, #1 <== NOT EXECUTED a001e5cc: 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(); a001e5d0: e59f3070 ldr r3, [pc, #112] ; a001e648 <_Region_Process_queue+0x90><== 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 ); a001e5d4: e2846010 add r6, r4, #16 <== NOT EXECUTED RTEMS_INLINE_ROUTINE void *_Region_Allocate_segment ( Region_Control *the_region, uintptr_t size ) { return _Heap_Allocate( &the_region->Memory, size ); a001e5d8: e2847068 add r7, r4, #104 ; 0x68 <== 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(); a001e5dc: e5930000 ldr r0, [r3] <== NOT EXECUTED a001e5e0: ebffea9d bl a001905c <_API_Mutex_Unlock> <== NOT EXECUTED a001e5e4: e3a08000 mov r8, #0 <== 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 ); a001e5e8: e1a00006 mov r0, r6 <== NOT EXECUTED a001e5ec: eb0001c4 bl a001ed04 <_Thread_queue_First> <== NOT EXECUTED if ( the_thread == NULL ) a001e5f0: e2505000 subs r5, r0, #0 <== NOT EXECUTED a001e5f4: 0a000010 beq a001e63c <_Region_Process_queue+0x84> <== NOT EXECUTED a001e5f8: e3a02000 mov r2, #0 <== NOT EXECUTED a001e5fc: e1a00007 mov r0, r7 <== NOT EXECUTED a001e600: e5951024 ldr r1, [r5, #36] ; 0x24 <== NOT EXECUTED a001e604: e1a03002 mov r3, r2 <== NOT EXECUTED a001e608: ebffed11 bl a0019a54 <_Heap_Allocate_aligned_with_boundary><== NOT EXECUTED the_segment = (void **) _Region_Allocate_segment( the_region, the_thread->Wait.count ); if ( the_segment == NULL ) a001e60c: e3500000 cmp r0, #0 <== NOT EXECUTED a001e610: 0a000009 beq a001e63c <_Region_Process_queue+0x84> <== NOT EXECUTED break; *(void **)the_thread->Wait.return_argument = the_segment; a001e614: e5953028 ldr r3, [r5, #40] ; 0x28 <== NOT EXECUTED the_region->number_of_used_blocks += 1; _Thread_queue_Extract( &the_region->Wait_queue, the_thread ); a001e618: e1a01005 mov r1, r5 <== NOT EXECUTED ); if ( the_segment == NULL ) break; *(void **)the_thread->Wait.return_argument = the_segment; a001e61c: e5830000 str r0, [r3] <== NOT EXECUTED the_region->number_of_used_blocks += 1; a001e620: e5943064 ldr r3, [r4, #100] ; 0x64 <== NOT EXECUTED _Thread_queue_Extract( &the_region->Wait_queue, the_thread ); a001e624: 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; a001e628: e2833001 add r3, r3, #1 <== NOT EXECUTED a001e62c: e5843064 str r3, [r4, #100] ; 0x64 <== NOT EXECUTED _Thread_queue_Extract( &the_region->Wait_queue, the_thread ); a001e630: eb000177 bl a001ec14 <_Thread_queue_Extract> <== NOT EXECUTED the_thread->Wait.return_code = RTEMS_SUCCESSFUL; a001e634: e5858034 str r8, [r5, #52] ; 0x34 <== NOT EXECUTED } a001e638: eaffffea b a001e5e8 <_Region_Process_queue+0x30> <== NOT EXECUTED _Thread_Enable_dispatch(); } a001e63c: 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(); a001e640: eafff4b6 b a001b920 <_Thread_Enable_dispatch> <== NOT EXECUTED =============================================================================== a000adec <_Scheduler_priority_Block>: ) { Scheduler_priority_Per_thread *sched_info; Chain_Control *ready; sched_info = (Scheduler_priority_Per_thread *) the_thread->scheduler_info; a000adec: e590208c ldr r2, [r0, #140] ; 0x8c <== NOT EXECUTED ready = sched_info->ready_chain; a000adf0: e5923000 ldr r3, [r2] <== NOT EXECUTED if ( _Chain_Has_only_one_node( ready ) ) { a000adf4: e593c000 ldr ip, [r3] <== NOT EXECUTED a000adf8: e5931008 ldr r1, [r3, #8] <== NOT EXECUTED a000adfc: e15c0001 cmp ip, r1 <== NOT EXECUTED a000ae00: 1a000010 bne a000ae48 <_Scheduler_priority_Block+0x5c> <== 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 ); a000ae04: e2831004 add r1, r3, #4 <== NOT EXECUTED head->next = tail; a000ae08: e5831000 str r1, [r3] <== NOT EXECUTED head->previous = NULL; a000ae0c: e3a01000 mov r1, #0 <== NOT EXECUTED a000ae10: e5831004 str r1, [r3, #4] <== 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; a000ae14: e5921004 ldr r1, [r2, #4] <== NOT EXECUTED tail->previous = head; a000ae18: e5833008 str r3, [r3, #8] <== NOT EXECUTED a000ae1c: e1d230be ldrh r3, [r2, #14] <== NOT EXECUTED a000ae20: e1d1c0b0 ldrh ip, [r1] <== NOT EXECUTED a000ae24: e00c3003 and r3, ip, r3 <== NOT EXECUTED if ( *the_priority_map->minor == 0 ) a000ae28: 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; a000ae2c: e1c130b0 strh r3, [r1] <== NOT EXECUTED if ( *the_priority_map->minor == 0 ) _Priority_Major_bit_map &= the_priority_map->block_major; a000ae30: 059f30b4 ldreq r3, [pc, #180] ; a000aeec <_Scheduler_priority_Block+0x100><== NOT EXECUTED a000ae34: 01d220bc ldrheq r2, [r2, #12] <== NOT EXECUTED a000ae38: 01d310b0 ldrheq r1, [r3] <== NOT EXECUTED a000ae3c: 00012002 andeq r2, r1, r2 <== NOT EXECUTED a000ae40: 01c320b0 strheq r2, [r3] <== NOT EXECUTED a000ae44: ea000002 b a000ae54 <_Scheduler_priority_Block+0x68> <== NOT EXECUTED ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; a000ae48: e890000c ldm r0, {r2, r3} <== NOT EXECUTED previous = the_node->previous; next->previous = previous; a000ae4c: e5823004 str r3, [r2, #4] <== NOT EXECUTED previous->next = next; a000ae50: e5832000 str r2, [r3] <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool _Thread_Is_heir ( const Thread_Control *the_thread ) { return ( the_thread == _Thread_Heir ); a000ae54: e59f3094 ldr r3, [pc, #148] ; a000aef0 <_Scheduler_priority_Block+0x104><== NOT EXECUTED { _Scheduler_priority_Ready_queue_extract( the_thread ); /* TODO: flash critical section? */ if ( _Thread_Is_heir( the_thread ) ) a000ae58: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED a000ae5c: e1500003 cmp r0, r3 <== NOT EXECUTED a000ae60: 1a00001b bne a000aed4 <_Scheduler_priority_Block+0xe8> <== 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( (Chain_Control *) _Scheduler.information a000ae64: e59f3088 ldr r3, [pc, #136] ; a000aef4 <_Scheduler_priority_Block+0x108><== NOT EXECUTED { Priority_bit_map_Control minor; Priority_bit_map_Control major; _Bitfield_Find_first_bit( _Priority_Major_bit_map, major ); _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor ); a000ae68: e59f1088 ldr r1, [pc, #136] ; a000aef8 <_Scheduler_priority_Block+0x10c><== 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( a000ae6c: e593c000 ldr ip, [r3] <== 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 ); a000ae70: e59f3074 ldr r3, [pc, #116] ; a000aeec <_Scheduler_priority_Block+0x100><== NOT EXECUTED a000ae74: e1d320b0 ldrh r2, [r3] <== NOT EXECUTED a000ae78: e59f307c ldr r3, [pc, #124] ; a000aefc <_Scheduler_priority_Block+0x110><== NOT EXECUTED a000ae7c: e1a02802 lsl r2, r2, #16 <== NOT EXECUTED a000ae80: e35208ff cmp r2, #16711680 ; 0xff0000 <== NOT EXECUTED a000ae84: 97d32822 ldrbls r2, [r3, r2, lsr #16] <== NOT EXECUTED a000ae88: 87d32c22 ldrbhi r2, [r3, r2, lsr #24] <== NOT EXECUTED a000ae8c: 92822008 addls r2, r2, #8 <== NOT EXECUTED _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor ); a000ae90: e1a03082 lsl r3, r2, #1 <== NOT EXECUTED a000ae94: e19110b3 ldrh r1, [r1, r3] <== NOT EXECUTED a000ae98: e59f305c ldr r3, [pc, #92] ; a000aefc <_Scheduler_priority_Block+0x110><== NOT EXECUTED a000ae9c: e35100ff cmp r1, #255 ; 0xff <== NOT EXECUTED a000aea0: 97d33001 ldrbls r3, [r3, r1] <== NOT EXECUTED a000aea4: 87d33421 ldrbhi r3, [r3, r1, lsr #8] <== NOT EXECUTED a000aea8: 92833008 addls r3, r3, #8 <== NOT EXECUTED return (_Priority_Bits_index( major ) << 4) + a000aeac: e0832202 add r2, r3, 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 ] ) ) a000aeb0: e3a0300c mov r3, #12 <== NOT EXECUTED a000aeb4: e0020293 mul r2, r3, r2 <== NOT EXECUTED _Scheduler_priority_Schedule_body(); if ( _Thread_Is_executing( the_thread ) ) _Thread_Dispatch_necessary = true; } a000aeb8: e79c3002 ldr r3, [ip, r2] <== NOT EXECUTED a000aebc: e08c1002 add r1, ip, 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 ); a000aec0: e2812004 add r2, r1, #4 <== NOT EXECUTED return (Thread_Control *) _Chain_First( &the_ready_queue[ index ] ); a000aec4: e1530002 cmp r3, r2 <== 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( a000aec8: e59f2020 ldr r2, [pc, #32] ; a000aef0 <_Scheduler_priority_Block+0x104><== NOT EXECUTED ) { Priority_Control index = _Priority_bit_map_Get_highest(); if ( !_Chain_Is_empty( &the_ready_queue[ index ] ) ) return (Thread_Control *) _Chain_First( &the_ready_queue[ index ] ); a000aecc: 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( a000aed0: e5823008 str r3, [r2, #8] <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool _Thread_Is_executing ( const Thread_Control *the_thread ) { return ( the_thread == _Thread_Executing ); a000aed4: e59f3014 ldr r3, [pc, #20] ; a000aef0 <_Scheduler_priority_Block+0x104><== NOT EXECUTED /* TODO: flash critical section? */ if ( _Thread_Is_heir( the_thread ) ) _Scheduler_priority_Schedule_body(); if ( _Thread_Is_executing( the_thread ) ) a000aed8: e5932004 ldr r2, [r3, #4] <== NOT EXECUTED a000aedc: e1500002 cmp r0, r2 <== NOT EXECUTED _Thread_Dispatch_necessary = true; a000aee0: 03a02001 moveq r2, #1 <== NOT EXECUTED a000aee4: 05c32010 strbeq r2, [r3, #16] <== NOT EXECUTED a000aee8: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000af4c <_Scheduler_priority_Enqueue>: ) { Scheduler_priority_Per_thread *sched_info; Chain_Control *ready; sched_info = (Scheduler_priority_Per_thread *) the_thread->scheduler_info; a000af4c: e590308c ldr r3, [r0, #140] ; 0x8c <== NOT EXECUTED #include void _Scheduler_priority_Enqueue( Thread_Control *the_thread ) { a000af50: e92d4010 push {r4, lr} <== 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; a000af54: e5931004 ldr r1, [r3, #4] <== NOT EXECUTED a000af58: e1d3c0ba ldrh ip, [r3, #10] <== NOT EXECUTED ready = sched_info->ready_chain; a000af5c: e5932000 ldr r2, [r3] <== NOT EXECUTED a000af60: e1d140b0 ldrh r4, [r1] <== NOT EXECUTED a000af64: e184c00c orr ip, r4, ip <== NOT EXECUTED a000af68: e1c1c0b0 strh ip, [r1] <== NOT EXECUTED _Priority_Major_bit_map |= the_priority_map->ready_major; a000af6c: e59f1028 ldr r1, [pc, #40] ; a000af9c <_Scheduler_priority_Enqueue+0x50><== NOT EXECUTED a000af70: e1d330b8 ldrh r3, [r3, #8] <== NOT EXECUTED a000af74: e1d1c0b0 ldrh ip, [r1] <== NOT EXECUTED a000af78: e18c3003 orr r3, ip, r3 <== NOT EXECUTED a000af7c: e1c130b0 strh r3, [r1] <== NOT EXECUTED Chain_Control *the_chain, Chain_Node *the_node ) { Chain_Node *tail = _Chain_Tail( the_chain ); Chain_Node *old_last = tail->previous; a000af80: 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 ); a000af84: e2821004 add r1, r2, #4 <== NOT EXECUTED Chain_Node *old_last = tail->previous; the_node->next = tail; a000af88: e5801000 str r1, [r0] <== NOT EXECUTED tail->previous = the_node; a000af8c: e5820008 str r0, [r2, #8] <== NOT EXECUTED old_last->next = the_node; a000af90: e5830000 str r0, [r3] <== NOT EXECUTED the_node->previous = old_last; a000af94: e5803004 str r3, [r0, #4] <== NOT EXECUTED _Scheduler_priority_Ready_queue_enqueue( the_thread ); } a000af98: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a000af00 <_Scheduler_priority_Enqueue_first>: ) { Scheduler_priority_Per_thread *sched_info; Chain_Control *ready; sched_info = (Scheduler_priority_Per_thread *) the_thread->scheduler_info; a000af00: e590308c ldr r3, [r0, #140] ; 0x8c <== 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; a000af04: e5932004 ldr r2, [r3, #4] <== NOT EXECUTED a000af08: e1d310ba ldrh r1, [r3, #10] <== NOT EXECUTED a000af0c: e1d2c0b0 ldrh ip, [r2] <== NOT EXECUTED a000af10: e18c1001 orr r1, ip, r1 <== NOT EXECUTED a000af14: e1c210b0 strh r1, [r2] <== NOT EXECUTED _Priority_Major_bit_map |= the_priority_map->ready_major; a000af18: e59f2028 ldr r2, [pc, #40] ; a000af48 <_Scheduler_priority_Enqueue_first+0x48><== NOT EXECUTED a000af1c: e1d310b8 ldrh r1, [r3, #8] <== NOT EXECUTED ready = sched_info->ready_chain; _Priority_bit_map_Add( &sched_info->Priority_map ); _Chain_Prepend_unprotected( a000af20: e5933000 ldr r3, [r3] <== NOT EXECUTED a000af24: e1d2c0b0 ldrh ip, [r2] <== NOT EXECUTED Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; a000af28: e5803004 str r3, [r0, #4] <== NOT EXECUTED a000af2c: e18c1001 orr r1, ip, r1 <== NOT EXECUTED a000af30: e1c210b0 strh r1, [r2] <== NOT EXECUTED before_node = after_node->next; a000af34: e5932000 ldr r2, [r3] <== NOT EXECUTED after_node->next = the_node; a000af38: e5830000 str r0, [r3] <== NOT EXECUTED the_node->next = before_node; before_node->previous = the_node; a000af3c: 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; a000af40: e5802000 str r2, [r0] <== NOT EXECUTED void _Scheduler_priority_Enqueue_first( Thread_Control *the_thread ) { _Scheduler_priority_Ready_queue_enqueue_first( the_thread ); } a000af44: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000afa0 <_Scheduler_priority_Extract>: ) { Scheduler_priority_Per_thread *sched_info; Chain_Control *ready; sched_info = (Scheduler_priority_Per_thread *) the_thread->scheduler_info; a000afa0: e590208c ldr r2, [r0, #140] ; 0x8c <== NOT EXECUTED ready = sched_info->ready_chain; a000afa4: e5923000 ldr r3, [r2] <== NOT EXECUTED if ( _Chain_Has_only_one_node( ready ) ) { a000afa8: e593c000 ldr ip, [r3] <== NOT EXECUTED a000afac: e5931008 ldr r1, [r3, #8] <== NOT EXECUTED a000afb0: e15c0001 cmp ip, r1 <== NOT EXECUTED a000afb4: 1a000010 bne a000affc <_Scheduler_priority_Extract+0x5c> <== 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 ); a000afb8: e2831004 add r1, r3, #4 <== NOT EXECUTED head->next = tail; a000afbc: e5831000 str r1, [r3] <== NOT EXECUTED head->previous = NULL; a000afc0: e3a01000 mov r1, #0 <== NOT EXECUTED a000afc4: e5831004 str r1, [r3, #4] <== 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; a000afc8: e5921004 ldr r1, [r2, #4] <== NOT EXECUTED tail->previous = head; a000afcc: e5833008 str r3, [r3, #8] <== NOT EXECUTED a000afd0: e1d230be ldrh r3, [r2, #14] <== NOT EXECUTED a000afd4: e1d100b0 ldrh r0, [r1] <== NOT EXECUTED a000afd8: e0003003 and r3, r0, r3 <== NOT EXECUTED if ( *the_priority_map->minor == 0 ) a000afdc: 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; a000afe0: e1c130b0 strh r3, [r1] <== NOT EXECUTED if ( *the_priority_map->minor == 0 ) _Priority_Major_bit_map &= the_priority_map->block_major; a000afe4: 059f3020 ldreq r3, [pc, #32] ; a000b00c <_Scheduler_priority_Extract+0x6c><== NOT EXECUTED a000afe8: 01d220bc ldrheq r2, [r2, #12] <== NOT EXECUTED a000afec: 01d310b0 ldrheq r1, [r3] <== NOT EXECUTED a000aff0: 00012002 andeq r2, r1, r2 <== NOT EXECUTED a000aff4: 01c320b0 strheq r2, [r3] <== NOT EXECUTED a000aff8: e12fff1e bx lr <== NOT EXECUTED ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; a000affc: e890000c ldm r0, {r2, r3} <== NOT EXECUTED previous = the_node->previous; next->previous = previous; a000b000: e5823004 str r3, [r2, #4] <== NOT EXECUTED previous->next = next; a000b004: e5832000 str r2, [r3] <== NOT EXECUTED a000b008: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000b010 <_Scheduler_priority_Free>: void _Scheduler_priority_Free ( Thread_Control *the_thread ) { _Workspace_Free( the_thread->scheduler_info ); a000b010: e590008c ldr r0, [r0, #140] ; 0x8c <== NOT EXECUTED a000b014: ea0005d4 b a000c76c <_Workspace_Free> <== NOT EXECUTED =============================================================================== a000b0a0 <_Scheduler_priority_Schedule>: * @param[in] the_thread - pointer to thread */ RTEMS_INLINE_ROUTINE void _Scheduler_priority_Schedule_body(void) { _Thread_Heir = _Scheduler_priority_Ready_queue_first( (Chain_Control *) _Scheduler.information a000b0a0: e59f306c ldr r3, [pc, #108] ; a000b114 <_Scheduler_priority_Schedule+0x74><== NOT EXECUTED { Priority_bit_map_Control minor; Priority_bit_map_Control major; _Bitfield_Find_first_bit( _Priority_Major_bit_map, major ); _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor ); a000b0a4: e59f106c ldr r1, [pc, #108] ; a000b118 <_Scheduler_priority_Schedule+0x78><== 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( a000b0a8: e5930000 ldr r0, [r3] <== 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 ); a000b0ac: e59f3068 ldr r3, [pc, #104] ; a000b11c <_Scheduler_priority_Schedule+0x7c><== NOT EXECUTED a000b0b0: e1d320b0 ldrh r2, [r3] <== NOT EXECUTED a000b0b4: e59f3064 ldr r3, [pc, #100] ; a000b120 <_Scheduler_priority_Schedule+0x80><== NOT EXECUTED a000b0b8: e1a02802 lsl r2, r2, #16 <== NOT EXECUTED a000b0bc: e35208ff cmp r2, #16711680 ; 0xff0000 <== NOT EXECUTED a000b0c0: 97d32822 ldrbls r2, [r3, r2, lsr #16] <== NOT EXECUTED a000b0c4: 87d32c22 ldrbhi r2, [r3, r2, lsr #24] <== NOT EXECUTED a000b0c8: 92822008 addls r2, r2, #8 <== NOT EXECUTED _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor ); a000b0cc: e1a03082 lsl r3, r2, #1 <== NOT EXECUTED a000b0d0: e19110b3 ldrh r1, [r1, r3] <== NOT EXECUTED a000b0d4: e59f3044 ldr r3, [pc, #68] ; a000b120 <_Scheduler_priority_Schedule+0x80><== NOT EXECUTED a000b0d8: e35100ff cmp r1, #255 ; 0xff <== NOT EXECUTED a000b0dc: 97d33001 ldrbls r3, [r3, r1] <== NOT EXECUTED a000b0e0: 87d33421 ldrbhi r3, [r3, r1, lsr #8] <== NOT EXECUTED a000b0e4: 92833008 addls r3, r3, #8 <== NOT EXECUTED return (_Priority_Bits_index( major ) << 4) + a000b0e8: e0832202 add r2, r3, 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 ] ) ) a000b0ec: e3a0300c mov r3, #12 <== NOT EXECUTED a000b0f0: e0020293 mul r2, r3, r2 <== NOT EXECUTED #include void _Scheduler_priority_Schedule(void) { _Scheduler_priority_Schedule_body(); } a000b0f4: e7903002 ldr r3, [r0, r2] <== NOT EXECUTED a000b0f8: e0801002 add r1, r0, r2 <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( const Chain_Control *the_chain ) { return _Chain_Immutable_first( the_chain ) == _Chain_Immutable_tail( the_chain ); a000b0fc: e2812004 add r2, r1, #4 <== NOT EXECUTED return (Thread_Control *) _Chain_First( &the_ready_queue[ index ] ); a000b100: e1530002 cmp r3, r2 <== 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( a000b104: e59f2018 ldr r2, [pc, #24] ; a000b124 <_Scheduler_priority_Schedule+0x84><== NOT EXECUTED ) { Priority_Control index = _Priority_bit_map_Get_highest(); if ( !_Chain_Is_empty( &the_ready_queue[ index ] ) ) return (Thread_Control *) _Chain_First( &the_ready_queue[ index ] ); a000b108: 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( a000b10c: e5823008 str r3, [r2, #8] <== NOT EXECUTED a000b110: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000b128 <_Scheduler_priority_Unblock>: ) { Scheduler_priority_Per_thread *sched_info; Chain_Control *ready; sched_info = (Scheduler_priority_Per_thread *) the_thread->scheduler_info; a000b128: e590308c ldr r3, [r0, #140] ; 0x8c #include void _Scheduler_priority_Unblock ( Thread_Control *the_thread ) { a000b12c: e92d4010 push {r4, lr} RTEMS_INLINE_ROUTINE void _Priority_bit_map_Add ( Priority_bit_map_Information *the_priority_map ) { *the_priority_map->minor |= the_priority_map->ready_minor; a000b130: e5931004 ldr r1, [r3, #4] a000b134: e1d3c0ba ldrh ip, [r3, #10] ready = sched_info->ready_chain; a000b138: e5932000 ldr r2, [r3] a000b13c: e1d140b0 ldrh r4, [r1] a000b140: e184c00c orr ip, r4, ip a000b144: e1c1c0b0 strh ip, [r1] _Priority_Major_bit_map |= the_priority_map->ready_major; a000b148: e59f1064 ldr r1, [pc, #100] ; a000b1b4 <_Scheduler_priority_Unblock+0x8c> a000b14c: e1d330b8 ldrh r3, [r3, #8] a000b150: e1d1c0b0 ldrh ip, [r1] a000b154: e18c3003 orr r3, ip, r3 a000b158: e1c130b0 strh r3, [r1] Chain_Control *the_chain, Chain_Node *the_node ) { Chain_Node *tail = _Chain_Tail( the_chain ); Chain_Node *old_last = tail->previous; a000b15c: e5923008 ldr r3, [r2, #8] RTEMS_INLINE_ROUTINE void _Chain_Append_unprotected( Chain_Control *the_chain, Chain_Node *the_node ) { Chain_Node *tail = _Chain_Tail( the_chain ); a000b160: e2821004 add r1, r2, #4 Chain_Node *old_last = tail->previous; the_node->next = tail; tail->previous = the_node; a000b164: e5820008 str r0, [r2, #8] ) { Chain_Node *tail = _Chain_Tail( the_chain ); Chain_Node *old_last = tail->previous; the_node->next = tail; a000b168: e880000a stm r0, {r1, r3} tail->previous = the_node; old_last->next = the_node; a000b16c: e5830000 str r0, [r3] * 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 ) { a000b170: e59f3040 ldr r3, [pc, #64] ; a000b1b8 <_Scheduler_priority_Unblock+0x90> a000b174: e5902014 ldr r2, [r0, #20] a000b178: e5931008 ldr r1, [r3, #8] a000b17c: e5911014 ldr r1, [r1, #20] a000b180: e1520001 cmp r2, r1 a000b184: 2a000009 bcs a000b1b0 <_Scheduler_priority_Unblock+0x88> _Thread_Heir = the_thread; a000b188: e5830008 str r0, [r3, #8] if ( _Thread_Executing->is_preemptible || a000b18c: e5933004 ldr r3, [r3, #4] a000b190: e5d33074 ldrb r3, [r3, #116] ; 0x74 a000b194: e3530000 cmp r3, #0 a000b198: 1a000001 bne a000b1a4 <_Scheduler_priority_Unblock+0x7c> a000b19c: e3520000 cmp r2, #0 <== NOT EXECUTED a000b1a0: 1a000002 bne a000b1b0 <_Scheduler_priority_Unblock+0x88> <== NOT EXECUTED the_thread->current_priority == 0 ) _Thread_Dispatch_necessary = true; a000b1a4: e59f300c ldr r3, [pc, #12] ; a000b1b8 <_Scheduler_priority_Unblock+0x90> a000b1a8: e3a02001 mov r2, #1 a000b1ac: e5c32010 strb r2, [r3, #16] a000b1b0: e8bd8010 pop {r4, pc} =============================================================================== a000b230 <_Scheduler_priority_Yield>: Scheduler_priority_Per_thread *sched_info; ISR_Level level; Thread_Control *executing; Chain_Control *ready; executing = _Thread_Executing; a000b230: e59f108c ldr r1, [pc, #140] ; a000b2c4 <_Scheduler_priority_Yield+0x94><== NOT EXECUTED * ready chain * select heir */ void _Scheduler_priority_Yield(void) { a000b234: e92d4010 push {r4, lr} <== NOT EXECUTED Scheduler_priority_Per_thread *sched_info; ISR_Level level; Thread_Control *executing; Chain_Control *ready; executing = _Thread_Executing; a000b238: e5913004 ldr r3, [r1, #4] <== NOT EXECUTED sched_info = (Scheduler_priority_Per_thread *) executing->scheduler_info; ready = sched_info->ready_chain; a000b23c: e593208c ldr r2, [r3, #140] ; 0x8c <== NOT EXECUTED a000b240: e5922000 ldr r2, [r2] <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000b244: e10f0000 mrs r0, CPSR <== NOT EXECUTED a000b248: e380c080 orr ip, r0, #128 ; 0x80 <== NOT EXECUTED a000b24c: e129f00c msr CPSR_fc, ip <== NOT EXECUTED _ISR_Disable( level ); if ( !_Chain_Has_only_one_node( ready ) ) { a000b250: e5924000 ldr r4, [r2] <== NOT EXECUTED a000b254: e592c008 ldr ip, [r2, #8] <== NOT EXECUTED a000b258: e154000c cmp r4, ip <== NOT EXECUTED a000b25c: 0a000012 beq a000b2ac <_Scheduler_priority_Yield+0x7c> <== NOT EXECUTED ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; a000b260: e8931010 ldm r3, {r4, ip} <== NOT EXECUTED previous = the_node->previous; next->previous = previous; a000b264: e584c004 str ip, [r4, #4] <== NOT EXECUTED previous->next = next; a000b268: e58c4000 str r4, [ip] <== NOT EXECUTED Chain_Control *the_chain, Chain_Node *the_node ) { Chain_Node *tail = _Chain_Tail( the_chain ); Chain_Node *old_last = tail->previous; a000b26c: e592c008 ldr ip, [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 ); a000b270: e2824004 add r4, r2, #4 <== NOT EXECUTED Chain_Node *old_last = tail->previous; the_node->next = tail; tail->previous = the_node; a000b274: e5823008 str r3, [r2, #8] <== NOT EXECUTED ) { Chain_Node *tail = _Chain_Tail( the_chain ); Chain_Node *old_last = tail->previous; the_node->next = tail; a000b278: e8831010 stm r3, {r4, ip} <== NOT EXECUTED tail->previous = the_node; old_last->next = the_node; a000b27c: e58c3000 str r3, [ip] <== NOT EXECUTED static inline void arm_interrupt_flash( uint32_t level ) { uint32_t arm_switch_reg; __asm__ volatile ( a000b280: e10fc000 mrs ip, CPSR <== NOT EXECUTED a000b284: e129f000 msr CPSR_fc, r0 <== NOT EXECUTED a000b288: 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 ) ) a000b28c: e591c008 ldr ip, [r1, #8] <== NOT EXECUTED a000b290: e153000c cmp r3, ip <== NOT EXECUTED _Thread_Heir = (Thread_Control *) _Chain_First( ready ); a000b294: 05923000 ldreq r3, [r2] <== NOT EXECUTED _Thread_Dispatch_necessary = true; a000b298: e3a02001 mov r2, #1 <== NOT EXECUTED _Chain_Append_unprotected( ready, &executing->Object.Node ); _ISR_Flash( level ); if ( _Thread_Is_heir( executing ) ) _Thread_Heir = (Thread_Control *) _Chain_First( ready ); a000b29c: 05813008 streq r3, [r1, #8] <== NOT EXECUTED _Thread_Dispatch_necessary = true; a000b2a0: e59f301c ldr r3, [pc, #28] ; a000b2c4 <_Scheduler_priority_Yield+0x94><== NOT EXECUTED a000b2a4: e5c32010 strb r2, [r3, #16] <== NOT EXECUTED a000b2a8: ea000003 b a000b2bc <_Scheduler_priority_Yield+0x8c> <== NOT EXECUTED } else if ( !_Thread_Is_heir( executing ) ) a000b2ac: e5912008 ldr r2, [r1, #8] <== NOT EXECUTED a000b2b0: e1530002 cmp r3, r2 <== NOT EXECUTED _Thread_Dispatch_necessary = true; a000b2b4: 13a03001 movne r3, #1 <== NOT EXECUTED a000b2b8: 15c13010 strbne r3, [r1, #16] <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000b2bc: e129f000 msr CPSR_fc, r0 <== NOT EXECUTED _ISR_Enable( level ); } a000b2c0: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a000b34c <_Scheduler_simple_Block>: #include void _Scheduler_simple_Block( Thread_Control *the_thread ) { a000b34c: e92d4010 push {r4, lr} <== NOT EXECUTED a000b350: e1a04000 mov r4, r0 <== NOT EXECUTED _Scheduler_simple_Extract(the_thread); a000b354: eb00000d bl a000b390 <_Scheduler_simple_Extract> <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool _Thread_Is_heir ( const Thread_Control *the_thread ) { return ( the_thread == _Thread_Heir ); a000b358: e59f3024 ldr r3, [pc, #36] ; a000b384 <_Scheduler_simple_Block+0x38><== NOT EXECUTED if ( _Thread_Is_heir( the_thread ) ) a000b35c: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED a000b360: e1540003 cmp r4, r3 <== NOT EXECUTED a000b364: 1a000000 bne a000b36c <_Scheduler_simple_Block+0x20> <== NOT EXECUTED _Scheduler_simple_Schedule(); a000b368: eb000043 bl a000b47c <_Scheduler_simple_Schedule> <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool _Thread_Is_executing ( const Thread_Control *the_thread ) { return ( the_thread == _Thread_Executing ); a000b36c: e59f3010 ldr r3, [pc, #16] ; a000b384 <_Scheduler_simple_Block+0x38><== NOT EXECUTED if ( _Thread_Is_executing( the_thread ) ) a000b370: e5932004 ldr r2, [r3, #4] <== NOT EXECUTED a000b374: e1540002 cmp r4, r2 <== NOT EXECUTED _Thread_Dispatch_necessary = true; a000b378: 03a02001 moveq r2, #1 <== NOT EXECUTED a000b37c: 05c32010 strbeq r2, [r3, #16] <== NOT EXECUTED a000b380: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a000b38c <_Scheduler_simple_Enqueue>: void _Scheduler_simple_Enqueue( Thread_Control *the_thread ) { _Scheduler_simple_Ready_queue_Enqueue( the_thread ); a000b38c: ea000024 b a000b424 <_Scheduler_simple_Ready_queue_Enqueue><== NOT EXECUTED =============================================================================== a000b388 <_Scheduler_simple_Enqueue_first>: void _Scheduler_simple_Enqueue_first( Thread_Control *the_thread ) { _Scheduler_simple_Ready_queue_Enqueue_first( the_thread ); a000b388: ea000014 b a000b3e0 <_Scheduler_simple_Ready_queue_Enqueue_first><== NOT EXECUTED =============================================================================== a000b390 <_Scheduler_simple_Extract>: ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; a000b390: e890000c ldm r0, {r2, r3} <== NOT EXECUTED previous = the_node->previous; next->previous = previous; a000b394: e5823004 str r3, [r2, #4] <== NOT EXECUTED previous->next = next; a000b398: e5832000 str r2, [r3] <== NOT EXECUTED void _Scheduler_simple_Extract( Thread_Control *the_thread ) { _Chain_Extract_unprotected( &the_thread->Object.Node ); } a000b39c: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000b3ac <_Scheduler_simple_Free>: */ void _Scheduler_simple_Free( Thread_Control *the_thread ) { } a000b3ac: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000b424 <_Scheduler_simple_Ready_queue_Enqueue>: { Chain_Control *ready; Chain_Node *the_node; Thread_Control *current; ready = (Chain_Control *)_Scheduler.information; a000b424: e59f304c ldr r3, [pc, #76] ; a000b478 <_Scheduler_simple_Ready_queue_Enqueue+0x54> #include void _Scheduler_simple_Ready_queue_Enqueue( Thread_Control *the_thread ) { a000b428: e92d4010 push {r4, lr} Chain_Control *ready; Chain_Node *the_node; Thread_Control *current; ready = (Chain_Control *)_Scheduler.information; a000b42c: e5933000 ldr r3, [r3] } } /* enqueue */ _Chain_Insert_unprotected( (Chain_Node *)current, &the_thread->Object.Node ); } a000b430: e5932000 ldr r2, [r3] RTEMS_INLINE_ROUTINE bool _Chain_Is_tail( Chain_Control *the_chain, const Chain_Node *the_node ) { return (the_node == _Chain_Tail(the_chain)); a000b434: e2831004 add r1, r3, #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 ) { a000b438: ea000006 b a000b458 <_Scheduler_simple_Ready_queue_Enqueue+0x34> current = (Thread_Control *) the_node; /* break when AT END OR PAST our priority */ if ( the_thread->current_priority < current->current_priority ) { a000b43c: e5904014 ldr r4, [r0, #20] <== NOT EXECUTED a000b440: e592c014 ldr ip, [r2, #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; a000b444: e1a03002 mov r3, r2 <== NOT EXECUTED /* break when AT END OR PAST our priority */ if ( the_thread->current_priority < current->current_priority ) { a000b448: e154000c cmp r4, ip <== NOT EXECUTED current = (Thread_Control *)current->Object.Node.previous; a000b44c: 35923004 ldrcc r3, [r2, #4] <== NOT EXECUTED break; a000b450: 3a000002 bcc a000b460 <_Scheduler_simple_Ready_queue_Enqueue+0x3c><== 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 ) { a000b454: e5922000 ldr r2, [r2] <== NOT EXECUTED a000b458: e1520001 cmp r2, r1 a000b45c: 1afffff6 bne a000b43c <_Scheduler_simple_Ready_queue_Enqueue+0x18> ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; a000b460: e5932000 ldr r2, [r3] Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; a000b464: e5803004 str r3, [r0, #4] before_node = after_node->next; after_node->next = the_node; a000b468: e5830000 str r0, [r3] the_node->next = before_node; before_node->previous = the_node; a000b46c: e5820004 str r0, [r2, #4] Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; after_node->next = the_node; the_node->next = before_node; a000b470: e5802000 str r2, [r0] } } /* enqueue */ _Chain_Insert_unprotected( (Chain_Node *)current, &the_thread->Object.Node ); } a000b474: e8bd8010 pop {r4, pc} =============================================================================== a000b3e0 <_Scheduler_simple_Ready_queue_Enqueue_first>: { Chain_Control *ready; Chain_Node *the_node; Thread_Control *current; ready = (Chain_Control *)_Scheduler.information; a000b3e0: e59f3038 ldr r3, [pc, #56] ; a000b420 <_Scheduler_simple_Ready_queue_Enqueue_first+0x40><== 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 ) { a000b3e4: e5902014 ldr r2, [r0, #20] <== NOT EXECUTED } } /* enqueue */ _Chain_Insert_unprotected( (Chain_Node *)current, &the_thread->Object.Node ); } a000b3e8: e5933000 ldr r3, [r3] <== NOT EXECUTED a000b3ec: 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 ) { a000b3f0: e5931014 ldr r1, [r3, #20] <== NOT EXECUTED a000b3f4: e1520001 cmp r2, r1 <== NOT EXECUTED a000b3f8: 8a000006 bhi a000b418 <_Scheduler_simple_Ready_queue_Enqueue_first+0x38><== NOT EXECUTED current = (Thread_Control *)current->Object.Node.previous; a000b3fc: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; a000b400: e5932000 ldr r2, [r3] <== NOT EXECUTED Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; a000b404: e5803004 str r3, [r0, #4] <== NOT EXECUTED before_node = after_node->next; after_node->next = the_node; a000b408: e5830000 str r0, [r3] <== NOT EXECUTED the_node->next = before_node; before_node->previous = the_node; a000b40c: 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; a000b410: e5802000 str r2, [r0] <== NOT EXECUTED } } /* enqueue */ _Chain_Insert_unprotected( (Chain_Node *)current, &the_thread->Object.Node ); } a000b414: e12fff1e bx lr <== 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 ) { a000b418: e5933000 ldr r3, [r3] <== NOT EXECUTED /* break when AT HEAD OF (or PAST) our priority */ if ( the_thread->current_priority <= current->current_priority ) { current = (Thread_Control *)current->Object.Node.previous; break; } } a000b41c: eafffff3 b a000b3f0 <_Scheduler_simple_Ready_queue_Enqueue_first+0x10><== NOT EXECUTED =============================================================================== a000b47c <_Scheduler_simple_Schedule>: #include void _Scheduler_simple_Schedule(void) { _Thread_Heir = (Thread_Control *) _Chain_First( (Chain_Control *) _Scheduler.information a000b47c: e59f3010 ldr r3, [pc, #16] ; a000b494 <_Scheduler_simple_Schedule+0x18><== NOT EXECUTED ); } a000b480: e5933000 ldr r3, [r3] <== NOT EXECUTED #include #include void _Scheduler_simple_Schedule(void) { _Thread_Heir = (Thread_Control *) _Chain_First( a000b484: e5932000 ldr r2, [r3] <== NOT EXECUTED a000b488: e59f3008 ldr r3, [pc, #8] ; a000b498 <_Scheduler_simple_Schedule+0x1c><== NOT EXECUTED a000b48c: e5832008 str r2, [r3, #8] <== NOT EXECUTED (Chain_Control *) _Scheduler.information ); } a000b490: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000b49c <_Scheduler_simple_Unblock>: #include void _Scheduler_simple_Unblock( Thread_Control *the_thread ) { a000b49c: e92d4010 push {r4, lr} a000b4a0: e1a04000 mov r4, r0 _Scheduler_simple_Ready_queue_Enqueue(the_thread); a000b4a4: ebffffde bl a000b424 <_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 ) { a000b4a8: e59f303c ldr r3, [pc, #60] ; a000b4ec <_Scheduler_simple_Unblock+0x50> a000b4ac: e5942014 ldr r2, [r4, #20] a000b4b0: e5931008 ldr r1, [r3, #8] a000b4b4: e5911014 ldr r1, [r1, #20] a000b4b8: e1520001 cmp r2, r1 a000b4bc: 2a000009 bcs a000b4e8 <_Scheduler_simple_Unblock+0x4c> _Thread_Heir = the_thread; a000b4c0: e5834008 str r4, [r3, #8] <== NOT EXECUTED if ( _Thread_Executing->is_preemptible || a000b4c4: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED a000b4c8: e5d33074 ldrb r3, [r3, #116] ; 0x74 <== NOT EXECUTED a000b4cc: e3530000 cmp r3, #0 <== NOT EXECUTED a000b4d0: 1a000001 bne a000b4dc <_Scheduler_simple_Unblock+0x40> <== NOT EXECUTED a000b4d4: e3520000 cmp r2, #0 <== NOT EXECUTED a000b4d8: 1a000002 bne a000b4e8 <_Scheduler_simple_Unblock+0x4c> <== NOT EXECUTED the_thread->current_priority == 0 ) _Thread_Dispatch_necessary = true; a000b4dc: e59f3008 ldr r3, [pc, #8] ; a000b4ec <_Scheduler_simple_Unblock+0x50><== NOT EXECUTED a000b4e0: e3a02001 mov r2, #1 <== NOT EXECUTED a000b4e4: e5c32010 strb r2, [r3, #16] <== NOT EXECUTED a000b4e8: e8bd8010 pop {r4, pc} =============================================================================== a000b4f0 <_Scheduler_simple_Yield>: #include #include #include void _Scheduler_simple_Yield( void ) { a000b4f0: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED ISR_Level level; Thread_Control *executing; executing = _Thread_Executing; a000b4f4: e59f5048 ldr r5, [pc, #72] ; a000b544 <_Scheduler_simple_Yield+0x54><== NOT EXECUTED a000b4f8: 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 ( a000b4fc: e10f6000 mrs r6, CPSR <== NOT EXECUTED a000b500: e3863080 orr r3, r6, #128 ; 0x80 <== NOT EXECUTED a000b504: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; a000b508: e894000c ldm r4, {r2, r3} <== NOT EXECUTED { /* extract */ _Chain_Extract_unprotected( &the_thread->Object.Node ); /* enqueue */ _Scheduler_simple_Ready_queue_Enqueue( the_thread ); a000b50c: e1a00004 mov r0, r4 <== NOT EXECUTED previous = the_node->previous; next->previous = previous; a000b510: e5823004 str r3, [r2, #4] <== NOT EXECUTED previous->next = next; a000b514: e5832000 str r2, [r3] <== NOT EXECUTED a000b518: ebffffc1 bl a000b424 <_Scheduler_simple_Ready_queue_Enqueue><== NOT EXECUTED static inline void arm_interrupt_flash( uint32_t level ) { uint32_t arm_switch_reg; __asm__ volatile ( a000b51c: e10f3000 mrs r3, CPSR <== NOT EXECUTED a000b520: e129f006 msr CPSR_fc, r6 <== NOT EXECUTED a000b524: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED _Scheduler_simple_Ready_queue_Requeue(&_Scheduler, executing); _ISR_Flash( level ); _Scheduler_simple_Schedule(); a000b528: ebffffd3 bl a000b47c <_Scheduler_simple_Schedule> <== NOT EXECUTED if ( !_Thread_Is_heir( executing ) ) a000b52c: e5953008 ldr r3, [r5, #8] <== NOT EXECUTED a000b530: e1540003 cmp r4, r3 <== NOT EXECUTED _Thread_Dispatch_necessary = true; a000b534: 13a03001 movne r3, #1 <== NOT EXECUTED a000b538: 15c53010 strbne r3, [r5, #16] <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000b53c: e129f006 msr CPSR_fc, r6 <== NOT EXECUTED _ISR_Enable( level ); } a000b540: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED =============================================================================== a0009550 <_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]; a0009550: e59f3008 ldr r3, [pc, #8] ; a0009560 <_Semaphore_Translate_core_semaphore_return_code+0x10><== NOT EXECUTED a0009554: e0833100 add r3, r3, r0, lsl #2 <== NOT EXECUTED } a0009558: e5930018 ldr r0, [r3, #24] <== NOT EXECUTED a000955c: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000e5c0 <_TOD_Get_uptime>: */ void _TOD_Get_uptime( Timestamp_Control *uptime ) { a000e5c0: e92d403f push {r0, r1, r2, r3, r4, r5, lr} <== NOT EXECUTED a000e5c4: e1a04000 mov r4, r0 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000e5c8: e10f5000 mrs r5, CPSR <== NOT EXECUTED a000e5cc: e3853080 orr r3, r5, #128 ; 0x80 <== NOT EXECUTED a000e5d0: 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; a000e5d4: e59f3038 ldr r3, [pc, #56] ; a000e614 <_TOD_Get_uptime+0x54><== NOT EXECUTED a000e5d8: e893000c ldm r3, {r2, r3} <== NOT EXECUTED a000e5dc: e88d000c stm sp, {r2, r3} <== NOT EXECUTED nanoseconds = (*_Watchdog_Nanoseconds_since_tick_handler)(); a000e5e0: e59f3030 ldr r3, [pc, #48] ; a000e618 <_TOD_Get_uptime+0x58><== NOT EXECUTED a000e5e4: e5933000 ldr r3, [r3] <== NOT EXECUTED a000e5e8: e12fff33 blx r3 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000e5ec: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED _ISR_Enable( level ); _Timestamp_Set( &offset, 0, nanoseconds ); a000e5f0: e3a03000 mov r3, #0 <== NOT EXECUTED a000e5f4: e58d000c str r0, [sp, #12] <== NOT EXECUTED _Timestamp_Add_to( &up, &offset ); a000e5f8: e28d1008 add r1, sp, #8 <== NOT EXECUTED a000e5fc: e1a0000d mov r0, sp <== NOT EXECUTED _ISR_Disable( level ); up = _TOD_Uptime; nanoseconds = (*_Watchdog_Nanoseconds_since_tick_handler)(); _ISR_Enable( level ); _Timestamp_Set( &offset, 0, nanoseconds ); a000e600: e58d3008 str r3, [sp, #8] <== NOT EXECUTED _Timestamp_Add_to( &up, &offset ); a000e604: ebfff6c8 bl a000c12c <_Timespec_Add_to> <== NOT EXECUTED *uptime = up; a000e608: e89d000c ldm sp, {r2, r3} <== NOT EXECUTED a000e60c: e884000c stm r4, {r2, r3} <== NOT EXECUTED } a000e610: e8bd803f pop {r0, r1, r2, r3, r4, r5, pc} <== NOT EXECUTED =============================================================================== a000a4f0 <_TOD_Get_uptime_as_timespec>: */ void _TOD_Get_uptime_as_timespec( struct timespec *uptime ) { a000a4f0: e92d4013 push {r0, r1, r4, lr} <== NOT EXECUTED a000a4f4: e1a04000 mov r4, r0 <== NOT EXECUTED Timestamp_Control uptime_ts; /* assume time checked for NULL by caller */ _TOD_Get_uptime( &uptime_ts ); a000a4f8: e1a0000d mov r0, sp <== NOT EXECUTED a000a4fc: eb001149 bl a000ea28 <_TOD_Get_uptime> <== NOT EXECUTED _Timestamp_To_timespec( &uptime_ts, uptime ); a000a500: e89d000c ldm sp, {r2, r3} <== NOT EXECUTED a000a504: e884000c stm r4, {r2, r3} <== NOT EXECUTED } a000a508: e8bd801c pop {r2, r3, r4, pc} <== NOT EXECUTED =============================================================================== a000bae8 <_TOD_Set>: rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; a000bae8: e59f3064 ldr r3, [pc, #100] ; a000bb54 <_TOD_Set+0x6c> <== NOT EXECUTED */ void _TOD_Set( const struct timespec *time ) { a000baec: e92d4010 push {r4, lr} <== NOT EXECUTED a000baf0: e5932000 ldr r2, [r3] <== NOT EXECUTED a000baf4: e1a04000 mov r4, r0 <== NOT EXECUTED a000baf8: e2822001 add r2, r2, #1 <== NOT EXECUTED a000bafc: e5832000 str r2, [r3] <== NOT EXECUTED long seconds; _Thread_Disable_dispatch(); _TOD_Deactivate(); seconds = _TOD_Seconds_since_epoch(); a000bb00: e59f3050 ldr r3, [pc, #80] ; a000bb58 <_TOD_Set+0x70> <== NOT EXECUTED if ( time->tv_sec < seconds ) a000bb04: e5902000 ldr r2, [r0] <== NOT EXECUTED long seconds; _Thread_Disable_dispatch(); _TOD_Deactivate(); seconds = _TOD_Seconds_since_epoch(); a000bb08: e5933000 ldr r3, [r3] <== NOT EXECUTED if ( time->tv_sec < seconds ) a000bb0c: e1520003 cmp r2, r3 <== NOT EXECUTED Watchdog_Adjust_directions direction, Watchdog_Interval units ) { _Watchdog_Adjust( &_Watchdog_Seconds_chain, direction, units ); a000bb10: b0622003 rsblt r2, r2, r3 <== NOT EXECUTED a000bb14: a0632002 rsbge r2, r3, r2 <== NOT EXECUTED a000bb18: b59f003c ldrlt r0, [pc, #60] ; a000bb5c <_TOD_Set+0x74> <== NOT EXECUTED a000bb1c: b3a01001 movlt r1, #1 <== NOT EXECUTED a000bb20: a59f0034 ldrge r0, [pc, #52] ; a000bb5c <_TOD_Set+0x74> <== NOT EXECUTED a000bb24: a3a01000 movge r1, #0 <== NOT EXECUTED a000bb28: eb00092b bl a000dfdc <_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 ); a000bb2c: e5942000 ldr r2, [r4] <== NOT EXECUTED a000bb30: e59f3020 ldr r3, [pc, #32] ; a000bb58 <_TOD_Set+0x70> <== NOT EXECUTED a000bb34: e5832000 str r2, [r3] <== NOT EXECUTED a000bb38: e5942004 ldr r2, [r4, #4] <== NOT EXECUTED a000bb3c: e5832004 str r2, [r3, #4] <== NOT EXECUTED _TOD_Is_set = true; a000bb40: e59f3018 ldr r3, [pc, #24] ; a000bb60 <_TOD_Set+0x78> <== NOT EXECUTED a000bb44: e3a02001 mov r2, #1 <== NOT EXECUTED a000bb48: e5c32000 strb r2, [r3] <== NOT EXECUTED _TOD_Activate(); _Thread_Enable_dispatch(); } a000bb4c: e8bd4010 pop {r4, lr} <== NOT EXECUTED _Timestamp_Set( &_TOD_Now, time->tv_sec, time->tv_nsec ); _TOD_Is_set = true; _TOD_Activate(); _Thread_Enable_dispatch(); a000bb50: ea00059e b a000d1d0 <_Thread_Enable_dispatch> <== NOT EXECUTED =============================================================================== a000a16c <_TOD_Tickle_ticks>: * * Output parameters: NONE */ void _TOD_Tickle_ticks( void ) { a000a16c: e92d4013 push {r0, r1, 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() ); a000a170: e3a03000 mov r3, #0 <== NOT EXECUTED a000a174: e58d3000 str r3, [sp] <== NOT EXECUTED a000a178: e59f3054 ldr r3, [pc, #84] ; a000a1d4 <_TOD_Tickle_ticks+0x68><== NOT EXECUTED a000a17c: e3a02ffa mov r2, #1000 ; 0x3e8 <== 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 ); a000a180: e1a0100d mov r1, sp <== 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() ); a000a184: e593300c ldr r3, [r3, #12] <== 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 ); a000a188: e59f0048 ldr r0, [pc, #72] ; a000a1d8 <_TOD_Tickle_ticks+0x6c><== 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() ); a000a18c: e0030392 mul r3, r2, r3 <== NOT EXECUTED a000a190: e58d3004 str r3, [sp, #4] <== NOT EXECUTED /* Update the counter of ticks since boot */ _Watchdog_Ticks_since_boot += 1; a000a194: e59f3040 ldr r3, [pc, #64] ; a000a1dc <_TOD_Tickle_ticks+0x70><== NOT EXECUTED a000a198: e5932000 ldr r2, [r3] <== NOT EXECUTED a000a19c: e2822001 add r2, r2, #1 <== NOT EXECUTED a000a1a0: e5832000 str r2, [r3] <== NOT EXECUTED /* Update the timespec format uptime */ _Timestamp_Add_to( &_TOD_Uptime, &tick ); a000a1a4: eb0007e0 bl a000c12c <_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 ); a000a1a8: e59f0030 ldr r0, [pc, #48] ; a000a1e0 <_TOD_Tickle_ticks+0x74><== NOT EXECUTED a000a1ac: e1a0100d mov r1, sp <== NOT EXECUTED a000a1b0: eb0007dd bl a000c12c <_Timespec_Add_to> <== NOT EXECUTED a000a1b4: e1a04000 mov r4, r0 <== NOT EXECUTED while ( seconds ) { a000a1b8: ea000002 b a000a1c8 <_TOD_Tickle_ticks+0x5c> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Watchdog_Tickle_seconds( void ) { _Watchdog_Tickle( &_Watchdog_Seconds_chain ); a000a1bc: e59f0020 ldr r0, [pc, #32] ; a000a1e4 <_TOD_Tickle_ticks+0x78><== NOT EXECUTED a000a1c0: eb000926 bl a000c660 <_Watchdog_Tickle> <== NOT EXECUTED _Watchdog_Tickle_seconds(); seconds--; a000a1c4: e2444001 sub r4, r4, #1 <== NOT EXECUTED _Timestamp_Add_to( &_TOD_Uptime, &tick ); /* we do not care how much the uptime changed */ /* Update the timespec format TOD */ seconds = _Timestamp_Add_to_at_tick( &_TOD_Now, &tick ); while ( seconds ) { a000a1c8: e3540000 cmp r4, #0 <== NOT EXECUTED a000a1cc: 1afffffa bne a000a1bc <_TOD_Tickle_ticks+0x50> <== NOT EXECUTED _Watchdog_Tickle_seconds(); seconds--; } } a000a1d0: e8bd801c pop {r2, r3, r4, pc} <== NOT EXECUTED =============================================================================== a000a334 <_TOD_To_seconds>: { uint32_t time; uint32_t year_mod_4; time = the_tod->day - 1; year_mod_4 = the_tod->year & 3; a000a334: e8901008 ldm r0, {r3, ip} <== NOT EXECUTED a000a338: e59f1070 ldr r1, [pc, #112] ; a000a3b0 <_TOD_To_seconds+0x7c><== NOT EXECUTED */ uint32_t _TOD_To_seconds( const rtems_time_of_day *the_tod ) { a000a33c: e92d4010 push {r4, lr} <== NOT EXECUTED uint32_t year_mod_4; time = the_tod->day - 1; year_mod_4 = the_tod->year & 3; if ( year_mod_4 == 0 ) a000a340: e2134003 ands r4, r3, #3 <== NOT EXECUTED time += _TOD_Days_to_date[ 1 ][ the_tod->month ]; a000a344: 0081108c addeq r1, r1, ip, lsl #1 <== NOT EXECUTED ) { uint32_t time; uint32_t year_mod_4; time = the_tod->day - 1; a000a348: e5902008 ldr r2, [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 ]; a000a34c: 11a0c08c lslne ip, ip, #1 <== NOT EXECUTED a000a350: 119110bc ldrhne r1, [r1, ip] <== 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 ]; a000a354: 01d111ba ldrheq r1, [r1, #26] <== NOT EXECUTED ) { uint32_t time; uint32_t year_mod_4; time = the_tod->day - 1; a000a358: e2422001 sub r2, r2, #1 <== 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 ) * a000a35c: e2433d1f sub r3, r3, #1984 ; 0x7c0 <== 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 ]; a000a360: e0812002 add r2, r1, r2 <== 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 ]; a000a364: e59f1044 ldr r1, [pc, #68] ; a000a3b0 <_TOD_To_seconds+0x7c><== 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 ) * a000a368: e2433004 sub r3, r3, #4 <== NOT EXECUTED a000a36c: e1a03123 lsr r3, r3, #2 <== NOT EXECUTED ( (TOD_DAYS_PER_YEAR * 4) + 1); time += _TOD_Days_since_last_leap_year[ year_mod_4 ]; a000a370: e0811084 add r1, r1, r4, lsl #1 <== NOT EXECUTED a000a374: e1d1c3b4 ldrh ip, [r1, #52] ; 0x34 <== 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 ) * a000a378: e59f1034 ldr r1, [pc, #52] ; a000a3b4 <_TOD_To_seconds+0x80><== NOT EXECUTED a000a37c: e021c193 mla r1, r3, r1, ip <== 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) a000a380: e59f3030 ldr r3, [pc, #48] ; a000a3b8 <_TOD_To_seconds+0x84><== 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 ]; a000a384: e0811002 add r1, r1, r2 <== NOT EXECUTED time *= TOD_SECONDS_PER_DAY; time += ((the_tod->hour * TOD_MINUTES_PER_HOUR) + the_tod->minute) a000a388: e5902014 ldr r2, [r0, #20] <== NOT EXECUTED a000a38c: e590c00c ldr ip, [r0, #12] <== NOT EXECUTED a000a390: e5900010 ldr r0, [r0, #16] <== NOT EXECUTED a000a394: e0823003 add r3, r2, r3 <== NOT EXECUTED a000a398: e3a0203c mov r2, #60 ; 0x3c <== NOT EXECUTED a000a39c: e0200c92 mla r0, r2, ip, r0 <== NOT EXECUTED * TOD_SECONDS_PER_MINUTE; time += the_tod->second; a000a3a0: e0233092 mla r3, r2, r0, r3 <== NOT EXECUTED time += TOD_SECONDS_1970_THROUGH_1988; return( time ); } a000a3a4: e59f0010 ldr r0, [pc, #16] ; a000a3bc <_TOD_To_seconds+0x88><== NOT EXECUTED a000a3a8: e0203091 mla r0, r1, r0, r3 <== NOT EXECUTED a000a3ac: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a000a3c0 <_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(); a000a3c0: e59f30b4 ldr r3, [pc, #180] ; a000a47c <_TOD_Validate+0xbc><== NOT EXECUTED */ bool _TOD_Validate( const rtems_time_of_day *the_tod ) { a000a3c4: 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) || a000a3c8: 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(); a000a3cc: e593100c ldr r1, [r3, #12] <== NOT EXECUTED if ((!the_tod) || a000a3d0: 0a000021 beq a000a45c <_TOD_Validate+0x9c> <== NOT EXECUTED ) { uint32_t days_in_month; uint32_t ticks_per_second; ticks_per_second = TOD_MICROSECONDS_PER_SECOND / a000a3d4: e59f00a4 ldr r0, [pc, #164] ; a000a480 <_TOD_Validate+0xc0><== NOT EXECUTED a000a3d8: eb004431 bl a001b4a4 <__aeabi_uidiv> <== NOT EXECUTED rtems_configuration_get_microseconds_per_tick(); if ((!the_tod) || a000a3dc: e5943018 ldr r3, [r4, #24] <== NOT EXECUTED a000a3e0: e1530000 cmp r3, r0 <== NOT EXECUTED a000a3e4: 2a000020 bcs a000a46c <_TOD_Validate+0xac> <== NOT EXECUTED (the_tod->ticks >= ticks_per_second) || a000a3e8: e5943014 ldr r3, [r4, #20] <== NOT EXECUTED a000a3ec: e353003b cmp r3, #59 ; 0x3b <== NOT EXECUTED a000a3f0: 8a00001d bhi a000a46c <_TOD_Validate+0xac> <== NOT EXECUTED (the_tod->second >= TOD_SECONDS_PER_MINUTE) || a000a3f4: e5943010 ldr r3, [r4, #16] <== NOT EXECUTED a000a3f8: e353003b cmp r3, #59 ; 0x3b <== NOT EXECUTED a000a3fc: 8a00001a bhi a000a46c <_TOD_Validate+0xac> <== NOT EXECUTED (the_tod->minute >= TOD_MINUTES_PER_HOUR) || a000a400: e594300c ldr r3, [r4, #12] <== NOT EXECUTED a000a404: e3530017 cmp r3, #23 <== NOT EXECUTED a000a408: 8a000017 bhi a000a46c <_TOD_Validate+0xac> <== NOT EXECUTED (the_tod->hour >= TOD_HOURS_PER_DAY) || (the_tod->month == 0) || a000a40c: e5943004 ldr r3, [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) || a000a410: e3530000 cmp r3, #0 <== NOT EXECUTED a000a414: 0a000012 beq a000a464 <_TOD_Validate+0xa4> <== NOT EXECUTED (the_tod->month == 0) || a000a418: e353000c cmp r3, #12 <== NOT EXECUTED a000a41c: 8a000012 bhi a000a46c <_TOD_Validate+0xac> <== NOT EXECUTED (the_tod->month > TOD_MONTHS_PER_YEAR) || (the_tod->year < TOD_BASE_YEAR) || a000a420: 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) || a000a424: e59f1058 ldr r1, [pc, #88] ; a000a484 <_TOD_Validate+0xc4> <== NOT EXECUTED a000a428: e1520001 cmp r2, r1 <== NOT EXECUTED a000a42c: 9a000010 bls a000a474 <_TOD_Validate+0xb4> <== NOT EXECUTED (the_tod->year < TOD_BASE_YEAR) || (the_tod->day == 0) ) a000a430: e5940008 ldr r0, [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) || a000a434: e3500000 cmp r0, #0 <== NOT EXECUTED a000a438: 0a00000e beq a000a478 <_TOD_Validate+0xb8> <== NOT EXECUTED (the_tod->day == 0) ) return false; if ( (the_tod->year % 4) == 0 ) a000a43c: e3120003 tst r2, #3 <== NOT EXECUTED a000a440: e59f2040 ldr r2, [pc, #64] ; a000a488 <_TOD_Validate+0xc8> <== NOT EXECUTED days_in_month = _TOD_Days_per_month[ 1 ][ the_tod->month ]; a000a444: 0283300d addeq r3, r3, #13 <== NOT EXECUTED else days_in_month = _TOD_Days_per_month[ 0 ][ the_tod->month ]; a000a448: e7924103 ldr r4, [r2, r3, lsl #2] <== NOT EXECUTED * false - if the the_tod is invalid * * NOTE: This routine only works for leap-years through 2099. */ bool _TOD_Validate( a000a44c: e1500004 cmp r0, r4 <== NOT EXECUTED a000a450: 83a00000 movhi r0, #0 <== NOT EXECUTED a000a454: 93a00001 movls r0, #1 <== NOT EXECUTED a000a458: 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; a000a45c: e1a00004 mov r0, r4 <== NOT EXECUTED a000a460: e8bd8010 pop {r4, pc} <== NOT EXECUTED a000a464: e1a00003 mov r0, r3 <== NOT EXECUTED a000a468: e8bd8010 pop {r4, pc} <== NOT EXECUTED a000a46c: e3a00000 mov r0, #0 <== NOT EXECUTED a000a470: e8bd8010 pop {r4, pc} <== NOT EXECUTED a000a474: e3a00000 mov r0, #0 <== NOT EXECUTED if ( the_tod->day > days_in_month ) return false; return true; } a000a478: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a000b314 <_Thread_Change_priority>: void _Thread_Change_priority( Thread_Control *the_thread, Priority_Control new_priority, bool prepend_it ) { a000b314: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED a000b318: e1a04000 mov r4, r0 <== NOT EXECUTED a000b31c: e1a05001 mov r5, r1 <== NOT EXECUTED a000b320: e20260ff and r6, r2, #255 ; 0xff <== NOT EXECUTED States_Control state, original_state; /* * Save original state */ original_state = the_thread->current_state; a000b324: e5907010 ldr r7, [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 ); a000b328: eb000311 bl a000bf74 <_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 ) a000b32c: e5943014 ldr r3, [r4, #20] <== NOT EXECUTED a000b330: e1530005 cmp r3, r5 <== NOT EXECUTED a000b334: 0a000002 beq a000b344 <_Thread_Change_priority+0x30> <== NOT EXECUTED _Thread_Set_priority( the_thread, new_priority ); a000b338: e1a00004 mov r0, r4 <== NOT EXECUTED a000b33c: e1a01005 mov r1, r5 <== NOT EXECUTED a000b340: eb0002f3 bl a000bf14 <_Thread_Set_priority> <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000b344: e10f5000 mrs r5, CPSR <== NOT EXECUTED a000b348: e3853080 orr r3, r5, #128 ; 0x80 <== NOT EXECUTED a000b34c: 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; a000b350: e5942010 ldr r2, [r4, #16] <== NOT EXECUTED a000b354: e2077004 and r7, r7, #4 <== NOT EXECUTED if ( state != STATES_TRANSIENT ) { a000b358: e3520004 cmp r2, #4 <== NOT EXECUTED a000b35c: 0a00000b beq a000b390 <_Thread_Change_priority+0x7c> <== NOT EXECUTED /* Only clear the transient state if it wasn't set already */ if ( ! _States_Is_transient( original_state ) ) a000b360: e3570000 cmp r7, #0 <== NOT EXECUTED RTEMS_INLINE_ROUTINE States_Control _States_Clear ( States_Control states_to_clear, States_Control current_state ) { return (current_state & ~states_to_clear); a000b364: 03c23004 biceq r3, r2, #4 <== NOT EXECUTED the_thread->current_state = _States_Clear( STATES_TRANSIENT, state ); a000b368: 05843010 streq r3, [r4, #16] <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000b36c: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _States_Is_waiting_on_thread_queue ( States_Control the_states ) { return (the_states & STATES_WAITING_ON_THREAD_QUEUE); a000b370: e59f3080 ldr r3, [pc, #128] ; a000b3f8 <_Thread_Change_priority+0xe4><== NOT EXECUTED a000b374: e0023003 and r3, r2, r3 <== NOT EXECUTED _ISR_Enable( level ); if ( _States_Is_waiting_on_thread_queue( state ) ) { a000b378: e3530000 cmp r3, #0 <== NOT EXECUTED a000b37c: 0a00001c beq a000b3f4 <_Thread_Change_priority+0xe0> <== NOT EXECUTED _Thread_queue_Requeue( the_thread->Wait.queue, the_thread ); a000b380: e5940044 ldr r0, [r4, #68] ; 0x44 <== NOT EXECUTED a000b384: e1a01004 mov r1, r4 <== NOT EXECUTED if ( !_Thread_Is_executing_also_the_heir() && _Thread_Executing->is_preemptible ) _Thread_Dispatch_necessary = true; _ISR_Enable( level ); } a000b388: 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 ); a000b38c: ea0002bb b a000be80 <_Thread_queue_Requeue> <== NOT EXECUTED } return; } /* Only clear the transient state if it wasn't set already */ if ( ! _States_Is_transient( original_state ) ) { a000b390: e3570000 cmp r7, #0 <== NOT EXECUTED a000b394: 1a000006 bne a000b3b4 <_Thread_Change_priority+0xa0> <== NOT EXECUTED a000b398: e59f305c ldr r3, [pc, #92] ; a000b3fc <_Thread_Change_priority+0xe8><== 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 ) a000b39c: 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 ); a000b3a0: e5847010 str r7, [r4, #16] <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Scheduler_Enqueue_first( Thread_Control *the_thread ) { _Scheduler.Operations.enqueue_first( the_thread ); a000b3a4: 15933028 ldrne r3, [r3, #40] ; 0x28 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Scheduler_Enqueue( Thread_Control *the_thread ) { _Scheduler.Operations.enqueue( the_thread ); a000b3a8: 05933024 ldreq r3, [r3, #36] ; 0x24 <== NOT EXECUTED a000b3ac: e1a00004 mov r0, r4 <== NOT EXECUTED a000b3b0: e12fff33 blx r3 <== NOT EXECUTED static inline void arm_interrupt_flash( uint32_t level ) { uint32_t arm_switch_reg; __asm__ volatile ( a000b3b4: e10f3000 mrs r3, CPSR <== NOT EXECUTED a000b3b8: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED a000b3bc: 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(); a000b3c0: e59f3034 ldr r3, [pc, #52] ; a000b3fc <_Thread_Change_priority+0xe8><== NOT EXECUTED a000b3c4: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED a000b3c8: 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 ); a000b3cc: e59f302c ldr r3, [pc, #44] ; a000b400 <_Thread_Change_priority+0xec><== NOT EXECUTED a000b3d0: 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() && a000b3d4: e5931008 ldr r1, [r3, #8] <== NOT EXECUTED a000b3d8: e1520001 cmp r2, r1 <== NOT EXECUTED a000b3dc: 0a000003 beq a000b3f0 <_Thread_Change_priority+0xdc> <== NOT EXECUTED a000b3e0: e5d22074 ldrb r2, [r2, #116] ; 0x74 <== NOT EXECUTED a000b3e4: e3520000 cmp r2, #0 <== NOT EXECUTED _Thread_Executing->is_preemptible ) _Thread_Dispatch_necessary = true; a000b3e8: 13a02001 movne r2, #1 <== NOT EXECUTED a000b3ec: 15c32010 strbne r2, [r3, #16] <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000b3f0: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED a000b3f4: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED =============================================================================== a000b404 <_Thread_Clear_state>: */ void _Thread_Clear_state( Thread_Control *the_thread, States_Control state ) { a000b404: e92d4010 push {r4, lr} <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000b408: e10f4000 mrs r4, CPSR <== NOT EXECUTED a000b40c: e3842080 orr r2, r4, #128 ; 0x80 <== NOT EXECUTED a000b410: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED ISR_Level level; States_Control current_state; _ISR_Disable( level ); current_state = the_thread->current_state; a000b414: e5902010 ldr r2, [r0, #16] <== NOT EXECUTED if ( current_state & state ) { a000b418: e1110002 tst r1, r2 <== NOT EXECUTED a000b41c: 0a000006 beq a000b43c <_Thread_Clear_state+0x38> <== NOT EXECUTED RTEMS_INLINE_ROUTINE States_Control _States_Clear ( States_Control states_to_clear, States_Control current_state ) { return (current_state & ~states_to_clear); a000b420: e1c21001 bic r1, r2, r1 <== NOT EXECUTED current_state = the_thread->current_state = _States_Clear( state, current_state ); if ( _States_Is_ready( current_state ) ) { a000b424: e3510000 cmp r1, #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 ); a000b428: e5801010 str r1, [r0, #16] <== NOT EXECUTED if ( _States_Is_ready( current_state ) ) { a000b42c: 1a000002 bne a000b43c <_Thread_Clear_state+0x38> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Scheduler_Unblock( Thread_Control *the_thread ) { _Scheduler.Operations.unblock( the_thread ); a000b430: e59f300c ldr r3, [pc, #12] ; a000b444 <_Thread_Clear_state+0x40><== NOT EXECUTED a000b434: e5933014 ldr r3, [r3, #20] <== NOT EXECUTED a000b438: e12fff33 blx r3 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000b43c: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED _Scheduler_Unblock( the_thread ); } } _ISR_Enable( level ); } a000b440: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a000b448 <_Thread_Close>: RTEMS_INLINE_ROUTINE void _Objects_Invalidate_Id( Objects_Information *information, Objects_Control *the_object ) { _Objects_Set_local_object( a000b448: e1d120b8 ldrh r2, [r1, #8] <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; a000b44c: e590301c ldr r3, [r0, #28] <== NOT EXECUTED void _Thread_Close( Objects_Information *information, Thread_Control *the_thread ) { a000b450: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED a000b454: e1a04001 mov r4, r1 <== NOT EXECUTED a000b458: e3a01000 mov r1, #0 <== NOT EXECUTED a000b45c: e7831102 str r1, [r3, r2, lsl #2] <== NOT EXECUTED a000b460: e1a05000 mov r5, r0 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; a000b464: e59f6088 ldr r6, [pc, #136] ; a000b4f4 <_Thread_Close+0xac><== NOT EXECUTED * disappear and set a transient state on it. So we temporarily * unnest dispatching. */ _Thread_Unnest_dispatch(); _User_extensions_Thread_delete( the_thread ); a000b468: e1a00004 mov r0, r4 <== NOT EXECUTED a000b46c: e5963000 ldr r3, [r6] <== NOT EXECUTED a000b470: e2433001 sub r3, r3, #1 <== NOT EXECUTED a000b474: e5863000 str r3, [r6] <== NOT EXECUTED a000b478: eb0003c4 bl a000c390 <_User_extensions_Thread_delete> <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; a000b47c: e5963000 ldr r3, [r6] <== NOT EXECUTED a000b480: e2833001 add r3, r3, #1 <== NOT EXECUTED a000b484: 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 ); a000b488: e1a00005 mov r0, r5 <== NOT EXECUTED a000b48c: e1a01004 mov r1, r4 <== NOT EXECUTED a000b490: ebfffc87 bl a000a6b4 <_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 ); a000b494: e1a00004 mov r0, r4 <== NOT EXECUTED a000b498: e3a01001 mov r1, #1 <== NOT EXECUTED a000b49c: eb0002a3 bl a000bf30 <_Thread_Set_state> <== NOT EXECUTED if ( !_Thread_queue_Extract_with_proxy( the_thread ) ) { a000b4a0: e1a00004 mov r0, r4 <== NOT EXECUTED a000b4a4: eb000245 bl a000bdc0 <_Thread_queue_Extract_with_proxy> <== NOT EXECUTED a000b4a8: e3500000 cmp r0, #0 <== NOT EXECUTED a000b4ac: 1a000004 bne a000b4c4 <_Thread_Close+0x7c> <== NOT EXECUTED if ( _Watchdog_Is_active( &the_thread->Timer ) ) a000b4b0: e5943050 ldr r3, [r4, #80] ; 0x50 <== NOT EXECUTED a000b4b4: e3530002 cmp r3, #2 <== NOT EXECUTED a000b4b8: 1a000001 bne a000b4c4 <_Thread_Close+0x7c> <== NOT EXECUTED (void) _Watchdog_Remove( &the_thread->Timer ); a000b4bc: e2840048 add r0, r4, #72 ; 0x48 <== NOT EXECUTED a000b4c0: eb00043d bl a000c5bc <_Watchdog_Remove> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Scheduler_Free( Thread_Control *the_thread ) { return _Scheduler.Operations.free( the_thread ); a000b4c4: e59f302c ldr r3, [pc, #44] ; a000b4f8 <_Thread_Close+0xb0> <== NOT EXECUTED a000b4c8: 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; a000b4cc: e3a05000 mov r5, #0 <== NOT EXECUTED a000b4d0: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a000b4d4: 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 ); a000b4d8: e1a00004 mov r0, r4 <== NOT EXECUTED a000b4dc: eb0002ca bl a000c00c <_Thread_Stack_Free> <== NOT EXECUTED the_thread->Start.stack = NULL; a000b4e0: e58450bc str r5, [r4, #188] ; 0xbc <== NOT EXECUTED _Workspace_Free( the_thread->extensions ); a000b4e4: e59400fc ldr r0, [r4, #252] ; 0xfc <== NOT EXECUTED a000b4e8: eb00049f bl a000c76c <_Workspace_Free> <== NOT EXECUTED the_thread->extensions = NULL; a000b4ec: e58450fc str r5, [r4, #252] ; 0xfc <== NOT EXECUTED } a000b4f0: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED =============================================================================== a000b5d4 <_Thread_Delay_ended>: void _Thread_Delay_ended( Objects_Id id, void *ignored __attribute__((unused)) ) { a000b5d4: e92d4001 push {r0, lr} <== NOT EXECUTED Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); a000b5d8: e1a0100d mov r1, sp <== NOT EXECUTED a000b5dc: eb000058 bl a000b744 <_Thread_Get> <== NOT EXECUTED switch ( location ) { a000b5e0: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000b5e4: e3530000 cmp r3, #0 <== NOT EXECUTED a000b5e8: 1a000005 bne a000b604 <_Thread_Delay_ended+0x30> <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) case OBJECTS_REMOTE: /* impossible */ #endif break; case OBJECTS_LOCAL: _Thread_Clear_state( a000b5ec: e59f1014 ldr r1, [pc, #20] ; a000b608 <_Thread_Delay_ended+0x34><== NOT EXECUTED a000b5f0: ebffff83 bl a000b404 <_Thread_Clear_state> <== NOT EXECUTED a000b5f4: e59f3010 ldr r3, [pc, #16] ; a000b60c <_Thread_Delay_ended+0x38><== NOT EXECUTED a000b5f8: e5932000 ldr r2, [r3] <== NOT EXECUTED a000b5fc: e2422001 sub r2, r2, #1 <== NOT EXECUTED a000b600: e5832000 str r2, [r3] <== NOT EXECUTED | STATES_INTERRUPTIBLE_BY_SIGNAL ); _Thread_Unnest_dispatch(); break; } } a000b604: e8bd8008 pop {r3, pc} <== NOT EXECUTED =============================================================================== a00047f8 <_Thread_Disable_dispatch>: rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; a00047f8: e59f300c ldr r3, [pc, #12] ; a000480c <_Thread_Disable_dispatch+0x14><== NOT EXECUTED a00047fc: e5932000 ldr r2, [r3] <== NOT EXECUTED a0004800: e2822001 add r2, r2, #1 <== NOT EXECUTED a0004804: e5832000 str r2, [r3] <== NOT EXECUTED #if defined(RTEMS_HEAVY_MALLOC_DEBUG) if ( _Thread_Dispatch_disable_level == 1 ) { _Heap_Walk( RTEMS_Malloc_Heap,99, false ); } #endif } a0004808: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000b610 <_Thread_Dispatch>: * dispatch thread * no dispatch thread */ void _Thread_Dispatch( void ) { a000b610: e92d4fff push {r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, sl, fp, lr} Thread_Control *executing; Thread_Control *heir; ISR_Level level; executing = _Thread_Executing; a000b614: e59f60f0 ldr r6, [pc, #240] ; a000b70c <_Thread_Dispatch+0xfc> a000b618: e5965004 ldr r5, [r6, #4] static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000b61c: e10f3000 mrs r3, CPSR a000b620: e3832080 orr r2, r3, #128 ; 0x80 a000b624: e129f002 msr CPSR_fc, r2 _ISR_Disable( level ); while ( _Thread_Dispatch_necessary == true ) { heir = _Thread_Heir; _Thread_Dispatch_disable_level = 1; a000b628: e59f90e0 ldr r9, [pc, #224] ; a000b710 <_Thread_Dispatch+0x100> a000b62c: e3a0b001 mov fp, #1 #if __RTEMS_ADA__ executing->rtems_ada_self = rtems_ada_self; rtems_ada_self = heir->rtems_ada_self; #endif if ( heir->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE ) heir->cpu_time_budget = _Thread_Ticks_per_timeslice; a000b630: e59fa0dc ldr sl, [pc, #220] ; a000b714 <_Thread_Dispatch+0x104> _ISR_Enable( level ); #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ { Timestamp_Control uptime, ran; _TOD_Get_uptime( &uptime ); a000b634: e28d8008 add r8, sp, #8 _Timestamp_Subtract( a000b638: e1a0700d mov r7, sp Thread_Control *heir; ISR_Level level; executing = _Thread_Executing; _ISR_Disable( level ); while ( _Thread_Dispatch_necessary == true ) { a000b63c: ea000029 b a000b6e8 <_Thread_Dispatch+0xd8> heir = _Thread_Heir; a000b640: e5964008 ldr r4, [r6, #8] <== NOT EXECUTED _Thread_Dispatch_disable_level = 1; _Thread_Dispatch_necessary = false; a000b644: e3a01000 mov r1, #0 <== NOT EXECUTED executing = _Thread_Executing; _ISR_Disable( level ); while ( _Thread_Dispatch_necessary == true ) { heir = _Thread_Heir; _Thread_Dispatch_disable_level = 1; a000b648: e589b000 str fp, [r9] <== 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 ) a000b64c: 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; _Thread_Dispatch_necessary = false; a000b650: e5c61010 strb r1, [r6, #16] <== NOT EXECUTED _Thread_Executing = heir; a000b654: 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 ) a000b658: 0a000025 beq a000b6f4 <_Thread_Dispatch+0xe4> <== 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 ) a000b65c: e594207c ldr r2, [r4, #124] ; 0x7c <== NOT EXECUTED a000b660: e3520001 cmp r2, #1 <== NOT EXECUTED heir->cpu_time_budget = _Thread_Ticks_per_timeslice; a000b664: 059a2000 ldreq r2, [sl] <== NOT EXECUTED a000b668: 05842078 streq r2, [r4, #120] ; 0x78 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000b66c: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED _ISR_Enable( level ); #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ { Timestamp_Control uptime, ran; _TOD_Get_uptime( &uptime ); a000b670: e1a00008 mov r0, r8 <== NOT EXECUTED a000b674: eb000bd1 bl a000e5c0 <_TOD_Get_uptime> <== NOT EXECUTED _Timestamp_Subtract( a000b678: e1a0200d mov r2, sp <== NOT EXECUTED a000b67c: e1a01008 mov r1, r8 <== NOT EXECUTED a000b680: e59f0090 ldr r0, [pc, #144] ; a000b718 <_Thread_Dispatch+0x108><== NOT EXECUTED a000b684: eb0002c0 bl a000c18c <_Timespec_Subtract> <== NOT EXECUTED &_Thread_Time_of_last_context_switch, &uptime, &ran ); _Timestamp_Add_to( &executing->cpu_time_used, &ran ); a000b688: e1a0100d mov r1, sp <== NOT EXECUTED a000b68c: e2850084 add r0, r5, #132 ; 0x84 <== NOT EXECUTED a000b690: eb0002a5 bl a000c12c <_Timespec_Add_to> <== NOT EXECUTED _Thread_Time_of_last_context_switch = uptime; a000b694: e28d3008 add r3, sp, #8 <== NOT EXECUTED a000b698: e893000c ldm r3, {r2, r3} <== NOT EXECUTED a000b69c: e59f1074 ldr r1, [pc, #116] ; a000b718 <_Thread_Dispatch+0x108><== NOT EXECUTED if ( _Thread_libc_reent ) { executing->libc_reent = *_Thread_libc_reent; *_Thread_libc_reent = heir->libc_reent; } _User_extensions_Thread_switch( executing, heir ); a000b6a0: e1a00005 mov r0, r5 <== 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; a000b6a4: e881000c stm r1, {r2, r3} <== NOT EXECUTED #endif /* * Switch libc's task specific data. */ if ( _Thread_libc_reent ) { a000b6a8: e59f206c ldr r2, [pc, #108] ; a000b71c <_Thread_Dispatch+0x10c><== NOT EXECUTED executing->libc_reent = *_Thread_libc_reent; *_Thread_libc_reent = heir->libc_reent; } _User_extensions_Thread_switch( executing, heir ); a000b6ac: e1a01004 mov r1, r4 <== NOT EXECUTED #endif /* * Switch libc's task specific data. */ if ( _Thread_libc_reent ) { a000b6b0: e5923000 ldr r3, [r2] <== NOT EXECUTED a000b6b4: e3530000 cmp r3, #0 <== NOT EXECUTED executing->libc_reent = *_Thread_libc_reent; a000b6b8: 15932000 ldrne r2, [r3] <== NOT EXECUTED a000b6bc: 158520f0 strne r2, [r5, #240] ; 0xf0 <== NOT EXECUTED *_Thread_libc_reent = heir->libc_reent; a000b6c0: 159420f0 ldrne r2, [r4, #240] ; 0xf0 <== NOT EXECUTED a000b6c4: 15832000 strne r2, [r3] <== NOT EXECUTED } _User_extensions_Thread_switch( executing, heir ); a000b6c8: eb000354 bl a000c420 <_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 ); a000b6cc: e28500c0 add r0, r5, #192 ; 0xc0 <== NOT EXECUTED a000b6d0: e28410c0 add r1, r4, #192 ; 0xc0 <== NOT EXECUTED a000b6d4: eb000504 bl a000caec <_CPU_Context_switch> <== NOT EXECUTED if ( executing->fp_context != NULL ) _Context_Restore_fp( &executing->fp_context ); #endif #endif executing = _Thread_Executing; a000b6d8: e5965004 ldr r5, [r6, #4] <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000b6dc: e10f3000 mrs r3, CPSR <== NOT EXECUTED a000b6e0: e3832080 orr r2, r3, #128 ; 0x80 <== NOT EXECUTED a000b6e4: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED Thread_Control *heir; ISR_Level level; executing = _Thread_Executing; _ISR_Disable( level ); while ( _Thread_Dispatch_necessary == true ) { a000b6e8: e5d62010 ldrb r2, [r6, #16] a000b6ec: e3520000 cmp r2, #0 a000b6f0: 1affffd2 bne a000b640 <_Thread_Dispatch+0x30> _ISR_Disable( level ); } post_switch: _Thread_Dispatch_disable_level = 0; a000b6f4: e59f2014 ldr r2, [pc, #20] ; a000b710 <_Thread_Dispatch+0x100> a000b6f8: e3a01000 mov r1, #0 a000b6fc: e5821000 str r1, [r2] static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000b700: e129f003 msr CPSR_fc, r3 _ISR_Enable( level ); _API_extensions_Run_postswitch(); a000b704: ebfff924 bl a0009b9c <_API_extensions_Run_postswitch> } a000b708: e8bd8fff pop {r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, sl, fp, pc} =============================================================================== a000b744 <_Thread_Get>: */ Thread_Control *_Thread_Get ( Objects_Id id, Objects_Locations *location ) { a000b744: 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 ) ) { a000b748: e2501000 subs r1, r0, #0 a000b74c: 1a000007 bne a000b770 <_Thread_Get+0x2c> rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; a000b750: e59f3074 ldr r3, [pc, #116] ; a000b7cc <_Thread_Get+0x88> <== NOT EXECUTED a000b754: e5930000 ldr r0, [r3] <== NOT EXECUTED a000b758: e2800001 add r0, r0, #1 <== NOT EXECUTED a000b75c: e5830000 str r0, [r3] <== NOT EXECUTED _Thread_Disable_dispatch(); *location = OBJECTS_LOCAL; tp = _Thread_Executing; a000b760: e59f3068 ldr r3, [pc, #104] ; a000b7d0 <_Thread_Get+0x8c> <== 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; a000b764: e5821000 str r1, [r2] <== NOT EXECUTED tp = _Thread_Executing; a000b768: e5930004 ldr r0, [r3, #4] <== NOT EXECUTED goto done; a000b76c: e12fff1e bx lr <== 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); a000b770: e1a00c21 lsr r0, r1, #24 a000b774: e2000007 and r0, r0, #7 */ RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid( uint32_t the_api ) { if ( !the_api || the_api > OBJECTS_APIS_LAST ) a000b778: e2403001 sub r3, r0, #1 a000b77c: e3530002 cmp r3, #2 a000b780: 9a00000d bls a000b7bc <_Thread_Get+0x78> goto done; } the_class = _Objects_Get_class( id ); if ( the_class != 1 ) { /* threads are always first class :) */ *location = OBJECTS_ERROR; a000b784: e3a03001 mov r3, #1 <== NOT EXECUTED a000b788: 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; a000b78c: 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; a000b790: e12fff1e bx lr <== NOT EXECUTED } api_information = _Objects_Information_table[ the_api ]; a000b794: e59fc038 ldr ip, [pc, #56] ; a000b7d4 <_Thread_Get+0x90> a000b798: e79c0100 ldr r0, [ip, r0, lsl #2] * There is no way for this to happen if POSIX is enabled. But there * is actually a test case in sp43 for this which trips it whether or * not POSIX is enabled. So in the interest of safety, this is left * on in all configurations. */ if ( !api_information ) { a000b79c: e3500000 cmp r0, #0 a000b7a0: 0a000002 beq a000b7b0 <_Thread_Get+0x6c> *location = OBJECTS_ERROR; goto done; } information = api_information[ the_class ]; a000b7a4: e5900004 ldr r0, [r0, #4] if ( !information ) { a000b7a8: e3500000 cmp r0, #0 a000b7ac: 1a000001 bne a000b7b8 <_Thread_Get+0x74> *location = OBJECTS_ERROR; a000b7b0: e5823000 str r3, [r2] <== NOT EXECUTED goto done; a000b7b4: e12fff1e bx lr <== NOT EXECUTED } tp = (Thread_Control *) _Objects_Get( information, id, location ); a000b7b8: eafffcba b a000aaa8 <_Objects_Get> */ RTEMS_INLINE_ROUTINE uint32_t _Objects_Get_class( Objects_Id id ) { return (uint32_t) a000b7bc: e1a03da1 lsr r3, r1, #27 *location = OBJECTS_ERROR; goto done; } the_class = _Objects_Get_class( id ); if ( the_class != 1 ) { /* threads are always first class :) */ a000b7c0: e3530001 cmp r3, #1 a000b7c4: 0afffff2 beq a000b794 <_Thread_Get+0x50> a000b7c8: eaffffed b a000b784 <_Thread_Get+0x40> <== NOT EXECUTED =============================================================================== a000b980 <_Thread_Handler_initialization>: * * Output parameters: NONE */ void _Thread_Handler_initialization(void) { a000b980: e92d4007 push {r0, r1, r2, lr} uint32_t maximum_internal_threads; #if defined(RTEMS_MULTIPROCESSING) uint32_t maximum_proxies; #endif ticks_per_timeslice = Configuration.ticks_per_timeslice; a000b984: e59f2080 ldr r2, [pc, #128] ; a000ba0c <_Thread_Handler_initialization+0x8c> #endif /* * BOTH stacks hooks must be set or both must be NULL. * Do not allow mixture. */ if ( !( (!Configuration.stack_allocate_hook) a000b988: e5923020 ldr r3, [r2, #32] == (!Configuration.stack_free_hook) ) ) a000b98c: e592c024 ldr ip, [r2, #36] ; 0x24 uint32_t maximum_internal_threads; #if defined(RTEMS_MULTIPROCESSING) uint32_t maximum_proxies; #endif ticks_per_timeslice = Configuration.ticks_per_timeslice; a000b990: e5921010 ldr r1, [r2, #16] #endif /* * BOTH stacks hooks must be set or both must be NULL. * Do not allow mixture. */ if ( !( (!Configuration.stack_allocate_hook) a000b994: e2733001 rsbs r3, r3, #1 a000b998: 33a03000 movcc r3, #0 a000b99c: e35c0000 cmp ip, #0 a000b9a0: 02233001 eoreq r3, r3, #1 a000b9a4: e3530000 cmp r3, #0 #if defined(RTEMS_MULTIPROCESSING) uint32_t maximum_proxies; #endif ticks_per_timeslice = Configuration.ticks_per_timeslice; maximum_extensions = Configuration.maximum_extensions; a000b9a8: e5920008 ldr r0, [r2, #8] #endif /* * BOTH stacks hooks must be set or both must be NULL. * Do not allow mixture. */ if ( !( (!Configuration.stack_allocate_hook) a000b9ac: 0a000003 beq a000b9c0 <_Thread_Handler_initialization+0x40> == (!Configuration.stack_free_hook) ) ) _Internal_error_Occurred( a000b9b0: e3a00000 mov r0, #0 <== NOT EXECUTED a000b9b4: e3a01001 mov r1, #1 <== NOT EXECUTED a000b9b8: e3a0200e mov r2, #14 <== NOT EXECUTED a000b9bc: ebfffb03 bl a000a5d0 <_Internal_error_Occurred> <== NOT EXECUTED INTERNAL_ERROR_CORE, true, INTERNAL_ERROR_BAD_STACK_HOOK ); _Thread_Dispatch_necessary = false; a000b9c0: e59f2048 ldr r2, [pc, #72] ; a000ba10 <_Thread_Handler_initialization+0x90> a000b9c4: e5c23010 strb r3, [r2, #16] _Thread_Executing = NULL; a000b9c8: e5823004 str r3, [r2, #4] _Thread_Heir = NULL; a000b9cc: e5823008 str r3, [r2, #8] #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) _Thread_Allocated_fp = NULL; #endif _Thread_Maximum_extensions = maximum_extensions; a000b9d0: e59f203c ldr r2, [pc, #60] ; a000ba14 <_Thread_Handler_initialization+0x94> a000b9d4: e5820000 str r0, [r2] _Thread_Ticks_per_timeslice = ticks_per_timeslice; a000b9d8: e59f2038 ldr r2, [pc, #56] ; a000ba18 <_Thread_Handler_initialization+0x98> #if defined(RTEMS_MULTIPROCESSING) if ( _System_state_Is_multiprocessing ) maximum_internal_threads += 1; #endif _Objects_Initialize_information( a000b9dc: e59f0038 ldr r0, [pc, #56] ; a000ba1c <_Thread_Handler_initialization+0x9c> _Thread_Allocated_fp = NULL; #endif _Thread_Maximum_extensions = maximum_extensions; _Thread_Ticks_per_timeslice = ticks_per_timeslice; a000b9e0: e5821000 str r1, [r2] #if defined(RTEMS_MULTIPROCESSING) if ( _System_state_Is_multiprocessing ) maximum_internal_threads += 1; #endif _Objects_Initialize_information( a000b9e4: e3a01001 mov r1, #1 a000b9e8: e3a02f41 mov r2, #260 ; 0x104 a000b9ec: e58d3004 str r3, [sp, #4] a000b9f0: e3a03008 mov r3, #8 a000b9f4: e58d2000 str r2, [sp] a000b9f8: e58d3008 str r3, [sp, #8] a000b9fc: e1a02001 mov r2, r1 a000ba00: e1a03001 mov r3, r1 a000ba04: ebfffc41 bl a000ab10 <_Objects_Initialize_information> false, /* true if this is a global object class */ NULL /* Proxy extraction support callout */ #endif ); } a000ba08: e8bd800e pop {r1, r2, r3, pc} =============================================================================== a000b7d8 <_Thread_Initialize>: Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, Objects_Name name ) { a000b7d8: 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; a000b7dc: e3a06000 mov r6, #0 a000b7e0: e58160f4 str r6, [r1, #244] ; 0xf4 a000b7e4: e58160f8 str r6, [r1, #248] ; 0xf8 extensions_area = NULL; the_thread->libc_reent = NULL; a000b7e8: e58160f0 str r6, [r1, #240] ; 0xf0 Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, Objects_Name name ) { a000b7ec: e1a05000 mov r5, r0 a000b7f0: e1a04001 mov r4, r1 /* * 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 ); a000b7f4: e1a00001 mov r0, r1 a000b7f8: e1a01003 mov r1, r3 Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, Objects_Name name ) { a000b7fc: e1a07003 mov r7, r3 a000b800: e59d8024 ldr r8, [sp, #36] ; 0x24 a000b804: e5dda028 ldrb sl, [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 ); a000b808: eb0001e8 bl a000bfb0 <_Thread_Stack_Allocate> if ( !actual_stack_size || actual_stack_size < stack_size ) a000b80c: e1500006 cmp r0, r6 a000b810: 13a03000 movne r3, #0 a000b814: 03a03001 moveq r3, #1 a000b818: e1500007 cmp r0, r7 a000b81c: 21a07003 movcs r7, r3 a000b820: 33837001 orrcc r7, r3, #1 a000b824: e1570006 cmp r7, r6 a000b828: 1a00004e bne a000b968 <_Thread_Initialize+0x190> Stack_Control *the_stack, void *starting_address, size_t size ) { the_stack->area = starting_address; a000b82c: e59430bc ldr r3, [r4, #188] ; 0xbc the_stack->size = size; a000b830: e58400b4 str r0, [r4, #180] ; 0xb4 Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; a000b834: e5847050 str r7, [r4, #80] ; 0x50 Stack_Control *the_stack, void *starting_address, size_t size ) { the_stack->area = starting_address; a000b838: e58430b8 str r3, [r4, #184] ; 0xb8 #endif /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { a000b83c: e59f3134 ldr r3, [pc, #308] ; a000b978 <_Thread_Initialize+0x1a0> the_watchdog->routine = routine; a000b840: e5847064 str r7, [r4, #100] ; 0x64 the_watchdog->id = id; a000b844: e5847068 str r7, [r4, #104] ; 0x68 a000b848: e5936000 ldr r6, [r3] the_watchdog->user_data = user_data; a000b84c: e584706c str r7, [r4, #108] ; 0x6c a000b850: e3560000 cmp r6, #0 a000b854: 0a000004 beq a000b86c <_Thread_Initialize+0x94> extensions_area = _Workspace_Allocate( a000b858: e2866001 add r6, r6, #1 a000b85c: e1a00106 lsl r0, r6, #2 a000b860: eb0003bb bl a000c754 <_Workspace_Allocate> (_Thread_Maximum_extensions + 1) * sizeof( void * ) ); if ( !extensions_area ) a000b864: e2506000 subs r6, r0, #0 a000b868: 0a00002f beq a000b92c <_Thread_Initialize+0x154> * if they are linked to the thread. An extension user may * create the extension long after tasks have been created * so they cannot rely on the thread create user extension * call. */ if ( the_thread->extensions ) { a000b86c: e3560000 cmp r6, #0 (_Thread_Maximum_extensions + 1) * sizeof( void * ) ); if ( !extensions_area ) goto failed; } the_thread->extensions = (void **) extensions_area; a000b870: e58460fc str r6, [r4, #252] ; 0xfc * if they are linked to the thread. An extension user may * create the extension long after tasks have been created * so they cannot rely on the thread create user extension * call. */ if ( the_thread->extensions ) { a000b874: 0a000009 beq a000b8a0 <_Thread_Initialize+0xc8> for ( i = 0; i <= _Thread_Maximum_extensions ; i++ ) a000b878: e59f30f8 ldr r3, [pc, #248] ; a000b978 <_Thread_Initialize+0x1a0> a000b87c: e1a02006 mov r2, r6 a000b880: e5930000 ldr r0, [r3] a000b884: e3a03000 mov r3, #0 the_thread->extensions[i] = NULL; a000b888: e1a01003 mov r1, r3 a000b88c: ea000001 b a000b898 <_Thread_Initialize+0xc0> a000b890: e4821004 str r1, [r2], #4 * create the extension long after tasks have been created * so they cannot rely on the thread create user extension * call. */ if ( the_thread->extensions ) { for ( i = 0; i <= _Thread_Maximum_extensions ; i++ ) a000b894: e2833001 add r3, r3, #1 a000b898: e1530000 cmp r3, r0 a000b89c: 9afffffb bls a000b890 <_Thread_Initialize+0xb8> /* * General initialization */ the_thread->Start.is_preemptible = is_preemptible; the_thread->Start.budget_algorithm = budget_algorithm; a000b8a0: e59d302c ldr r3, [sp, #44] ; 0x2c /* * General initialization */ the_thread->Start.is_preemptible = is_preemptible; a000b8a4: e5c4a0a0 strb sl, [r4, #160] ; 0xa0 } the_thread->Start.isr_level = isr_level; the_thread->current_state = STATES_DORMANT; the_thread->Wait.queue = NULL; a000b8a8: e3a07000 mov r7, #0 /* * General initialization */ the_thread->Start.is_preemptible = is_preemptible; the_thread->Start.budget_algorithm = budget_algorithm; a000b8ac: e58430a4 str r3, [r4, #164] ; 0xa4 the_thread->Start.budget_callout = budget_callout; a000b8b0: e59d3030 ldr r3, [sp, #48] ; 0x30 #endif } the_thread->Start.isr_level = isr_level; the_thread->current_state = STATES_DORMANT; a000b8b4: e3a0a001 mov sl, #1 a000b8b8: e584a010 str sl, [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; a000b8bc: e58430a8 str r3, [r4, #168] ; 0xa8 case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT: break; #endif } the_thread->Start.isr_level = isr_level; a000b8c0: e59d3034 ldr r3, [sp, #52] ; 0x34 the_thread->current_state = STATES_DORMANT; the_thread->Wait.queue = NULL; a000b8c4: e5847044 str r7, [r4, #68] ; 0x44 the_thread->resource_count = 0; a000b8c8: e584701c str r7, [r4, #28] case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT: break; #endif } the_thread->Start.isr_level = isr_level; a000b8cc: e58430ac str r3, [r4, #172] ; 0xac */ RTEMS_INLINE_ROUTINE void* _Scheduler_Allocate( Thread_Control *the_thread ) { return _Scheduler.Operations.allocate( the_thread ); a000b8d0: e59f30a4 ldr r3, [pc, #164] ; a000b97c <_Thread_Initialize+0x1a4> the_thread->current_state = STATES_DORMANT; the_thread->Wait.queue = NULL; the_thread->resource_count = 0; the_thread->real_priority = priority; a000b8d4: e5848018 str r8, [r4, #24] the_thread->Start.initial_priority = priority; a000b8d8: e58480b0 str r8, [r4, #176] ; 0xb0 a000b8dc: e5933018 ldr r3, [r3, #24] a000b8e0: e1a00004 mov r0, r4 a000b8e4: e12fff33 blx r3 sched =_Scheduler_Allocate( the_thread ); if ( !sched ) a000b8e8: e2509000 subs r9, r0, #0 a000b8ec: 0a00000f beq a000b930 <_Thread_Initialize+0x158> goto failed; _Thread_Set_priority( the_thread, priority ); a000b8f0: e1a00004 mov r0, r4 a000b8f4: e1a01008 mov r1, r8 a000b8f8: eb000185 bl a000bf14 <_Thread_Set_priority> _Workspace_Free( sched ); _Thread_Stack_Free( the_thread ); return false; } a000b8fc: e595301c ldr r3, [r5, #28] Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( a000b900: 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 ); a000b904: e5847084 str r7, [r4, #132] ; 0x84 a000b908: e5847088 str r7, [r4, #136] ; 0x88 #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; a000b90c: e7834102 str r4, [r3, r2, lsl #2] information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; a000b910: 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 ); a000b914: e1a00004 mov r0, r4 a000b918: e584300c str r3, [r4, #12] a000b91c: eb000286 bl a000c33c <_User_extensions_Thread_create> if ( extension_status ) a000b920: e1500007 cmp r0, r7 a000b924: 0a000001 beq a000b930 <_Thread_Initialize+0x158> a000b928: ea000010 b a000b970 <_Thread_Initialize+0x198> 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; a000b92c: e1a09006 mov r9, r6 <== NOT EXECUTED extension_status = _User_extensions_Thread_create( the_thread ); if ( extension_status ) return true; failed: _Workspace_Free( the_thread->libc_reent ); a000b930: e59400f0 ldr r0, [r4, #240] ; 0xf0 <== NOT EXECUTED a000b934: eb00038c bl a000c76c <_Workspace_Free> <== NOT EXECUTED for ( i=0 ; i <= THREAD_API_LAST ; i++ ) _Workspace_Free( the_thread->API_Extensions[i] ); a000b938: e59400f4 ldr r0, [r4, #244] ; 0xf4 <== NOT EXECUTED a000b93c: eb00038a bl a000c76c <_Workspace_Free> <== NOT EXECUTED a000b940: e59400f8 ldr r0, [r4, #248] ; 0xf8 <== NOT EXECUTED a000b944: eb000388 bl a000c76c <_Workspace_Free> <== NOT EXECUTED _Workspace_Free( extensions_area ); a000b948: e1a00006 mov r0, r6 <== NOT EXECUTED a000b94c: eb000386 bl a000c76c <_Workspace_Free> <== NOT EXECUTED #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) _Workspace_Free( fp_area ); #endif _Workspace_Free( sched ); a000b950: e1a00009 mov r0, r9 <== NOT EXECUTED a000b954: eb000384 bl a000c76c <_Workspace_Free> <== NOT EXECUTED _Thread_Stack_Free( the_thread ); a000b958: e1a00004 mov r0, r4 <== NOT EXECUTED a000b95c: eb0001aa bl a000c00c <_Thread_Stack_Free> <== NOT EXECUTED return false; a000b960: e3a00000 mov r0, #0 <== NOT EXECUTED a000b964: 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 */ a000b968: e1a00006 mov r0, r6 <== NOT EXECUTED a000b96c: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED * Mutex provides sufficient protection to let the user extensions * run safely. */ extension_status = _User_extensions_Thread_create( the_thread ); if ( extension_status ) return true; a000b970: e1a0000a mov r0, sl _Workspace_Free( sched ); _Thread_Stack_Free( the_thread ); return false; } a000b974: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} =============================================================================== a000fa90 <_Thread_Reset>: Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { the_thread->resource_count = 0; a000fa90: e3a03000 mov r3, #0 <== NOT EXECUTED void _Thread_Reset( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { a000fa94: e92d4010 push {r4, lr} <== NOT EXECUTED the_thread->resource_count = 0; a000fa98: e580301c str r3, [r0, #28] <== NOT EXECUTED the_thread->is_preemptible = the_thread->Start.is_preemptible; a000fa9c: e5d030a0 ldrb r3, [r0, #160] ; 0xa0 <== NOT EXECUTED the_thread->budget_algorithm = the_thread->Start.budget_algorithm; the_thread->budget_callout = the_thread->Start.budget_callout; the_thread->Start.pointer_argument = pointer_argument; a000faa0: e5801098 str r1, [r0, #152] ; 0x98 <== NOT EXECUTED the_thread->Start.numeric_argument = numeric_argument; a000faa4: e580209c str r2, [r0, #156] ; 0x9c <== 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; a000faa8: e5c03074 strb r3, [r0, #116] ; 0x74 <== NOT EXECUTED the_thread->budget_algorithm = the_thread->Start.budget_algorithm; a000faac: e59030a4 ldr r3, [r0, #164] ; 0xa4 <== NOT EXECUTED void _Thread_Reset( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { a000fab0: e1a04000 mov r4, r0 <== 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; a000fab4: e580307c str r3, [r0, #124] ; 0x7c <== NOT EXECUTED the_thread->budget_callout = the_thread->Start.budget_callout; a000fab8: e59030a8 ldr r3, [r0, #168] ; 0xa8 <== NOT EXECUTED a000fabc: e5803080 str r3, [r0, #128] ; 0x80 <== NOT EXECUTED the_thread->Start.pointer_argument = pointer_argument; the_thread->Start.numeric_argument = numeric_argument; if ( !_Thread_queue_Extract_with_proxy( the_thread ) ) { a000fac0: ebfff3ea bl a000ca70 <_Thread_queue_Extract_with_proxy> <== NOT EXECUTED a000fac4: e3500000 cmp r0, #0 <== NOT EXECUTED a000fac8: 1a000004 bne a000fae0 <_Thread_Reset+0x50> <== NOT EXECUTED if ( _Watchdog_Is_active( &the_thread->Timer ) ) a000facc: e5943050 ldr r3, [r4, #80] ; 0x50 <== NOT EXECUTED a000fad0: e3530002 cmp r3, #2 <== NOT EXECUTED a000fad4: 1a000001 bne a000fae0 <_Thread_Reset+0x50> <== NOT EXECUTED (void) _Watchdog_Remove( &the_thread->Timer ); a000fad8: e2840048 add r0, r4, #72 ; 0x48 <== NOT EXECUTED a000fadc: ebfff611 bl a000d328 <_Watchdog_Remove> <== NOT EXECUTED } if ( the_thread->current_priority != the_thread->Start.initial_priority ) { a000fae0: e59410b0 ldr r1, [r4, #176] ; 0xb0 <== NOT EXECUTED a000fae4: e5943014 ldr r3, [r4, #20] <== NOT EXECUTED a000fae8: e1530001 cmp r3, r1 <== NOT EXECUTED a000faec: 0a000003 beq a000fb00 <_Thread_Reset+0x70> <== NOT EXECUTED the_thread->real_priority = the_thread->Start.initial_priority; _Thread_Set_priority( the_thread, the_thread->Start.initial_priority ); a000faf0: 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; a000faf4: e5841018 str r1, [r4, #24] <== NOT EXECUTED _Thread_Set_priority( the_thread, the_thread->Start.initial_priority ); } } a000faf8: e8bd4010 pop {r4, 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 ); a000fafc: eafff44d b a000cc38 <_Thread_Set_priority> <== NOT EXECUTED a000fb00: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a000cbc4 <_Thread_Restart>: */ RTEMS_INLINE_ROUTINE bool _States_Is_dormant ( States_Control the_states ) { return (the_states & STATES_DORMANT); a000cbc4: e5903010 ldr r3, [r0, #16] <== NOT EXECUTED bool _Thread_Restart( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { a000cbc8: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED if ( !_States_Is_dormant( the_thread->current_state ) ) { a000cbcc: e3130001 tst r3, #1 <== NOT EXECUTED bool _Thread_Restart( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { a000cbd0: e1a04000 mov r4, r0 <== NOT EXECUTED a000cbd4: e1a06001 mov r6, r1 <== NOT EXECUTED a000cbd8: e1a05002 mov r5, r2 <== NOT EXECUTED if ( !_States_Is_dormant( the_thread->current_state ) ) { a000cbdc: 1a000010 bne a000cc24 <_Thread_Restart+0x60> <== NOT EXECUTED _Thread_Set_transient( the_thread ); a000cbe0: eb00002c bl a000cc98 <_Thread_Set_transient> <== NOT EXECUTED _Thread_Reset( the_thread, pointer_argument, numeric_argument ); a000cbe4: e1a01006 mov r1, r6 <== NOT EXECUTED a000cbe8: e1a02005 mov r2, r5 <== NOT EXECUTED a000cbec: e1a00004 mov r0, r4 <== NOT EXECUTED a000cbf0: eb000ba6 bl a000fa90 <_Thread_Reset> <== NOT EXECUTED _Thread_Load_environment( the_thread ); a000cbf4: e1a00004 mov r0, r4 <== NOT EXECUTED a000cbf8: eb000b00 bl a000f800 <_Thread_Load_environment> <== NOT EXECUTED _Thread_Ready( the_thread ); a000cbfc: e1a00004 mov r0, r4 <== NOT EXECUTED a000cc00: eb000b96 bl a000fa60 <_Thread_Ready> <== NOT EXECUTED _User_extensions_Thread_restart( the_thread ); a000cc04: e1a00004 mov r0, r4 <== NOT EXECUTED a000cc08: eb00013b bl a000d0fc <_User_extensions_Thread_restart> <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool _Thread_Is_executing ( const Thread_Control *the_thread ) { return ( the_thread == _Thread_Executing ); a000cc0c: e59f3020 ldr r3, [pc, #32] ; a000cc34 <_Thread_Restart+0x70><== NOT EXECUTED if ( _Thread_Is_executing ( the_thread ) ) a000cc10: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED a000cc14: e1540003 cmp r4, r3 <== NOT EXECUTED a000cc18: 1a000003 bne a000cc2c <_Thread_Restart+0x68> <== 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 ); a000cc1c: e28400c0 add r0, r4, #192 ; 0xc0 <== NOT EXECUTED a000cc20: eb000311 bl a000d86c <_CPU_Context_restore> <== NOT EXECUTED _Thread_Restart_self(); return true; } return false; a000cc24: e3a00000 mov r0, #0 <== NOT EXECUTED a000cc28: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED _User_extensions_Thread_restart( the_thread ); if ( _Thread_Is_executing ( the_thread ) ) _Thread_Restart_self(); return true; a000cc2c: e3a00001 mov r0, #1 <== NOT EXECUTED } return false; } a000cc30: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED =============================================================================== a000bf30 <_Thread_Set_state>: */ void _Thread_Set_state( Thread_Control *the_thread, States_Control state ) { a000bf30: e92d4010 push {r4, lr} <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000bf34: e10f4000 mrs r4, CPSR <== NOT EXECUTED a000bf38: e3842080 orr r2, r4, #128 ; 0x80 <== NOT EXECUTED a000bf3c: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED ISR_Level level; _ISR_Disable( level ); if ( !_States_Is_ready( the_thread->current_state ) ) { a000bf40: e5902010 ldr r2, [r0, #16] <== NOT EXECUTED a000bf44: e3520000 cmp r2, #0 <== NOT EXECUTED a000bf48: 0a000002 beq a000bf58 <_Thread_Set_state+0x28> <== NOT EXECUTED RTEMS_INLINE_ROUTINE States_Control _States_Set ( States_Control states_to_set, States_Control current_state ) { return (current_state | states_to_set); a000bf4c: e1811002 orr r1, r1, r2 <== NOT EXECUTED the_thread->current_state = a000bf50: e5801010 str r1, [r0, #16] <== NOT EXECUTED _States_Set( state, the_thread->current_state ); _ISR_Enable( level ); a000bf54: ea000003 b a000bf68 <_Thread_Set_state+0x38> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Scheduler_Block( Thread_Control *the_thread ) { _Scheduler.Operations.block( the_thread ); a000bf58: e59f3010 ldr r3, [pc, #16] ; a000bf70 <_Thread_Set_state+0x40><== NOT EXECUTED return; } the_thread->current_state = state; a000bf5c: e5801010 str r1, [r0, #16] <== NOT EXECUTED a000bf60: e5933010 ldr r3, [r3, #16] <== NOT EXECUTED a000bf64: e12fff33 blx r3 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000bf68: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED a000bf6c: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a000bf74 <_Thread_Set_transient>: * only case */ void _Thread_Set_transient( Thread_Control *the_thread ) { a000bf74: e92d4010 push {r4, lr} <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000bf78: e10f4000 mrs r4, CPSR <== NOT EXECUTED a000bf7c: e3843080 orr r3, r4, #128 ; 0x80 <== NOT EXECUTED a000bf80: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED ISR_Level level; uint32_t old_state; _ISR_Disable( level ); old_state = the_thread->current_state; a000bf84: e5903010 ldr r3, [r0, #16] <== NOT EXECUTED a000bf88: e3831004 orr r1, r3, #4 <== NOT EXECUTED the_thread->current_state = _States_Set( STATES_TRANSIENT, old_state ); if ( _States_Is_ready( old_state ) ) { a000bf8c: e3530000 cmp r3, #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 ); a000bf90: e5801010 str r1, [r0, #16] <== NOT EXECUTED if ( _States_Is_ready( old_state ) ) { a000bf94: 1a000002 bne a000bfa4 <_Thread_Set_transient+0x30> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Scheduler_Extract( Thread_Control *the_thread ) { _Scheduler.Operations.extract( the_thread ); a000bf98: e59f300c ldr r3, [pc, #12] ; a000bfac <_Thread_Set_transient+0x38><== NOT EXECUTED a000bf9c: e593302c ldr r3, [r3, #44] ; 0x2c <== NOT EXECUTED a000bfa0: e12fff33 blx r3 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000bfa4: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED _Scheduler_Extract( the_thread ); } _ISR_Enable( level ); } a000bfa8: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a000c00c <_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 ) a000c00c: e59f3024 ldr r3, [pc, #36] ; a000c038 <_Thread_Stack_Free+0x2c><== NOT EXECUTED */ void _Thread_Stack_Free( Thread_Control *the_thread ) { a000c010: 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 ) a000c014: e5933024 ldr r3, [r3, #36] ; 0x24 <== NOT EXECUTED a000c018: e3530000 cmp r3, #0 <== NOT EXECUTED a000c01c: 0a000002 beq a000c02c <_Thread_Stack_Free+0x20> <== NOT EXECUTED (*Configuration.stack_free_hook)( the_thread->Start.Initial_stack.area ); a000c020: e59000b8 ldr r0, [r0, #184] ; 0xb8 <== NOT EXECUTED a000c024: e12fff33 blx r3 <== NOT EXECUTED else _Workspace_Free( the_thread->Start.Initial_stack.area ); } a000c028: 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 ); a000c02c: e59000b8 ldr r0, [r0, #184] ; 0xb8 <== NOT EXECUTED } a000c030: 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 ); a000c034: ea0001cc b a000c76c <_Workspace_Free> <== NOT EXECUTED =============================================================================== a000c074 <_Thread_Start>: */ RTEMS_INLINE_ROUTINE bool _States_Is_dormant ( States_Control the_states ) { return (the_states & STATES_DORMANT); a000c074: e590c010 ldr ip, [r0, #16] Thread_Start_types the_prototype, void *entry_point, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { a000c078: e92d4010 push {r4, lr} if ( _States_Is_dormant( the_thread->current_state ) ) { a000c07c: e21cc001 ands ip, ip, #1 Thread_Start_types the_prototype, void *entry_point, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { a000c080: e1a04000 mov r4, r0 if ( _States_Is_dormant( the_thread->current_state ) ) { a000c084: 0a00000b beq a000c0b8 <_Thread_Start+0x44> the_thread->Start.entry_point = (Thread_Entry) entry_point; the_thread->Start.prototype = the_prototype; the_thread->Start.pointer_argument = pointer_argument; a000c088: e5803098 str r3, [r0, #152] ; 0x98 the_thread->Start.numeric_argument = numeric_argument; a000c08c: 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; a000c090: e5802090 str r2, [r0, #144] ; 0x90 the_thread->Start.prototype = the_prototype; a000c094: e5801094 str r1, [r0, #148] ; 0x94 the_thread->Start.pointer_argument = pointer_argument; the_thread->Start.numeric_argument = numeric_argument; a000c098: e580309c str r3, [r0, #156] ; 0x9c _Thread_Load_environment( the_thread ); a000c09c: eb000a5a bl a000ea0c <_Thread_Load_environment> _Thread_Ready( the_thread ); a000c0a0: e1a00004 mov r0, r4 a000c0a4: eb000af0 bl a000ec6c <_Thread_Ready> _User_extensions_Thread_start( the_thread ); a000c0a8: e1a00004 mov r0, r4 a000c0ac: eb0000c9 bl a000c3d8 <_User_extensions_Thread_start> return true; a000c0b0: e3a00001 mov r0, #1 a000c0b4: e8bd8010 pop {r4, pc} } return false; a000c0b8: e1a0000c mov r0, ip <== NOT EXECUTED } a000c0bc: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a000c0c0 <_Thread_Tickle_timeslice>: void _Thread_Tickle_timeslice( void ) { Thread_Control *executing; executing = _Thread_Executing; a000c0c0: e59f3058 ldr r3, [pc, #88] ; a000c120 <_Thread_Tickle_timeslice+0x60><== NOT EXECUTED * * Output parameters: NONE */ void _Thread_Tickle_timeslice( void ) { a000c0c4: e92d4010 push {r4, lr} <== NOT EXECUTED Thread_Control *executing; executing = _Thread_Executing; a000c0c8: e5934004 ldr r4, [r3, #4] <== NOT EXECUTED /* * If the thread is not preemptible or is not ready, then * just return. */ if ( !executing->is_preemptible ) a000c0cc: e5d43074 ldrb r3, [r4, #116] ; 0x74 <== NOT EXECUTED a000c0d0: e3530000 cmp r3, #0 <== NOT EXECUTED a000c0d4: 0a000010 beq a000c11c <_Thread_Tickle_timeslice+0x5c> <== NOT EXECUTED return; if ( !_States_Is_ready( executing->current_state ) ) a000c0d8: e5943010 ldr r3, [r4, #16] <== NOT EXECUTED a000c0dc: e3530000 cmp r3, #0 <== NOT EXECUTED a000c0e0: 1a00000d bne a000c11c <_Thread_Tickle_timeslice+0x5c> <== NOT EXECUTED /* * The cpu budget algorithm determines what happens next. */ switch ( executing->budget_algorithm ) { a000c0e4: e594307c ldr r3, [r4, #124] ; 0x7c <== NOT EXECUTED a000c0e8: e3530001 cmp r3, #1 <== NOT EXECUTED a000c0ec: 1a00000a bne a000c11c <_Thread_Tickle_timeslice+0x5c> <== 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 ) { a000c0f0: e5943078 ldr r3, [r4, #120] ; 0x78 <== NOT EXECUTED a000c0f4: e2433001 sub r3, r3, #1 <== NOT EXECUTED a000c0f8: e3530000 cmp r3, #0 <== NOT EXECUTED a000c0fc: e5843078 str r3, [r4, #120] ; 0x78 <== NOT EXECUTED a000c100: ca000005 bgt a000c11c <_Thread_Tickle_timeslice+0x5c> <== NOT EXECUTED * always operates on the scheduler that 'owns' the currently executing * thread. */ RTEMS_INLINE_ROUTINE void _Scheduler_Yield( void ) { _Scheduler.Operations.yield(); a000c104: e59f3018 ldr r3, [pc, #24] ; a000c124 <_Thread_Tickle_timeslice+0x64><== NOT EXECUTED a000c108: e593300c ldr r3, [r3, #12] <== NOT EXECUTED a000c10c: 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; a000c110: e59f3010 ldr r3, [pc, #16] ; a000c128 <_Thread_Tickle_timeslice+0x68><== NOT EXECUTED a000c114: e5933000 ldr r3, [r3] <== NOT EXECUTED a000c118: e5843078 str r3, [r4, #120] ; 0x78 <== NOT EXECUTED a000c11c: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a000b2c8 <_Thread_blocking_operation_Cancel>: #endif /* * The thread is not waiting on anything after this completes. */ the_thread->Wait.queue = NULL; a000b2c8: e3a03000 mov r3, #0 <== NOT EXECUTED Thread_blocking_operation_States sync_state __attribute__((unused)), #endif Thread_Control *the_thread, ISR_Level level ) { a000b2cc: e92d4010 push {r4, lr} <== NOT EXECUTED #endif /* * The thread is not waiting on anything after this completes. */ the_thread->Wait.queue = NULL; a000b2d0: 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 ) ) { a000b2d4: e5913050 ldr r3, [r1, #80] ; 0x50 <== NOT EXECUTED Thread_blocking_operation_States sync_state __attribute__((unused)), #endif Thread_Control *the_thread, ISR_Level level ) { a000b2d8: e1a04001 mov r4, r1 <== NOT EXECUTED /* * If the sync state is timed out, this is very likely not needed. * But better safe than sorry when it comes to critical sections. */ if ( _Watchdog_Is_active( &the_thread->Timer ) ) { a000b2dc: e3530002 cmp r3, #2 <== NOT EXECUTED a000b2e0: 1a000005 bne a000b2fc <_Thread_blocking_operation_Cancel+0x34><== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_REMOVE_IT; a000b2e4: e2833001 add r3, r3, #1 <== NOT EXECUTED a000b2e8: e5813050 str r3, [r1, #80] ; 0x50 <== NOT EXECUTED a000b2ec: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); (void) _Watchdog_Remove( &the_thread->Timer ); a000b2f0: e2810048 add r0, r1, #72 ; 0x48 <== NOT EXECUTED a000b2f4: eb0004b0 bl a000c5bc <_Watchdog_Remove> <== NOT EXECUTED a000b2f8: ea000000 b a000b300 <_Thread_blocking_operation_Cancel+0x38><== NOT EXECUTED a000b2fc: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); a000b300: e59f1008 ldr r1, [pc, #8] ; a000b310 <_Thread_blocking_operation_Cancel+0x48><== NOT EXECUTED a000b304: e1a00004 mov r0, r4 <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } a000b308: e8bd4010 pop {r4, lr} <== NOT EXECUTED a000b30c: ea00003c b a000b404 <_Thread_Clear_state> <== NOT EXECUTED =============================================================================== a000ea58 <_Thread_queue_Dequeue_fifo>: */ Thread_Control *_Thread_queue_Dequeue_fifo( Thread_queue_Control *the_thread_queue ) { a000ea58: e92d4030 push {r4, r5, lr} static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000ea5c: e10f3000 mrs r3, CPSR a000ea60: e3832080 orr r2, r3, #128 ; 0x80 a000ea64: e129f002 msr CPSR_fc, r2 return the_thread; } _ISR_Enable( level ); return NULL; } a000ea68: e1a02000 mov r2, r0 a000ea6c: e4925004 ldr r5, [r2], #4 { ISR_Level level; Thread_Control *the_thread; _ISR_Disable( level ); if ( !_Chain_Is_empty( &the_thread_queue->Queues.Fifo ) ) { a000ea70: e1550002 cmp r5, r2 a000ea74: 0a000013 beq a000eac8 <_Thread_queue_Dequeue_fifo+0x70> Chain_Control *the_chain ) { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *old_first = head->next; Chain_Node *new_first = old_first->next; a000ea78: e5952000 ldr r2, [r5] <== NOT EXECUTED the_thread = (Thread_Control *) a000ea7c: e1a04005 mov r4, r5 <== NOT EXECUTED head->next = new_first; a000ea80: e5802000 str r2, [r0] <== NOT EXECUTED new_first->previous = head; a000ea84: e5820004 str r0, [r2, #4] <== NOT EXECUTED _Chain_Get_first_unprotected( &the_thread_queue->Queues.Fifo ); the_thread->Wait.queue = NULL; a000ea88: e3a02000 mov r2, #0 <== NOT EXECUTED a000ea8c: e5852044 str r2, [r5, #68] ; 0x44 <== NOT EXECUTED if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { a000ea90: e5952050 ldr r2, [r5, #80] ; 0x50 <== NOT EXECUTED a000ea94: e3520002 cmp r2, #2 <== NOT EXECUTED a000ea98: 0a000001 beq a000eaa4 <_Thread_queue_Dequeue_fifo+0x4c> <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000ea9c: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED a000eaa0: ea000004 b a000eab8 <_Thread_queue_Dequeue_fifo+0x60> <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_REMOVE_IT; a000eaa4: e3a02003 mov r2, #3 <== NOT EXECUTED a000eaa8: e5852050 str r2, [r5, #80] ; 0x50 <== NOT EXECUTED a000eaac: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED _ISR_Enable( level ); _Thread_Unblock( the_thread ); } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); (void) _Watchdog_Remove( &the_thread->Timer ); a000eab0: e2850048 add r0, r5, #72 ; 0x48 <== NOT EXECUTED a000eab4: ebfff6c0 bl a000c5bc <_Watchdog_Remove> <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); a000eab8: e1a00005 mov r0, r5 <== NOT EXECUTED a000eabc: e59f1014 ldr r1, [pc, #20] ; a000ead8 <_Thread_queue_Dequeue_fifo+0x80><== NOT EXECUTED a000eac0: ebfff24f bl a000b404 <_Thread_Clear_state> <== NOT EXECUTED a000eac4: ea000001 b a000ead0 <_Thread_queue_Dequeue_fifo+0x78> <== NOT EXECUTED a000eac8: e129f003 msr CPSR_fc, r3 return the_thread; } _ISR_Enable( level ); return NULL; a000eacc: e3a04000 mov r4, #0 } a000ead0: e1a00004 mov r0, r4 a000ead4: e8bd8030 pop {r4, r5, pc} =============================================================================== a000ba84 <_Thread_queue_Dequeue_priority>: */ Thread_Control *_Thread_queue_Dequeue_priority( Thread_queue_Control *the_thread_queue ) { a000ba84: e92d4030 push {r4, r5, lr} static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000ba88: e10f1000 mrs r1, CPSR a000ba8c: e3813080 orr r3, r1, #128 ; 0x80 a000ba90: 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 ); a000ba94: e3a02000 mov r2, #0 for( index=0 ; a000ba98: 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 ); a000ba9c: e3a0c00c mov ip, #12 a000baa0: e004039c mul r4, 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 ); } a000baa4: e7905002 ldr r5, [r0, r2] a000baa8: e2844004 add r4, r4, #4 a000baac: e0804004 add r4, r0, r4 _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 ] ) ) { a000bab0: e1550004 cmp r5, r4 a000bab4: 0a000009 beq a000bae0 <_Thread_queue_Dequeue_priority+0x5c> */ _ISR_Enable( level ); return NULL; dequeue: the_thread->Wait.queue = NULL; a000bab8: e3a03000 mov r3, #0 <== NOT EXECUTED a000babc: e5853044 str r3, [r5, #68] ; 0x44 <== 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 ); } a000bac0: e5953038 ldr r3, [r5, #56] ; 0x38 <== NOT EXECUTED a000bac4: e285c03c add ip, r5, #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( a000bac8: e1a04005 mov r4, r5 <== 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 ) ) { a000bacc: e153000c cmp r3, ip <== 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; a000bad0: e5952000 ldr r2, [r5] <== NOT EXECUTED previous_node = the_thread->Object.Node.previous; a000bad4: e5950004 ldr r0, [r5, #4] <== NOT EXECUTED if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) { a000bad8: 1a000007 bne a000bafc <_Thread_queue_Dequeue_priority+0x78><== NOT EXECUTED a000badc: ea000017 b a000bb40 <_Thread_queue_Dequeue_priority+0xbc> <== NOT EXECUTED Chain_Node *previous_node; _ISR_Disable( level ); for( index=0 ; index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ; index++ ) { a000bae0: e2833001 add r3, r3, #1 Chain_Node *last_node; Chain_Node *next_node; Chain_Node *previous_node; _ISR_Disable( level ); for( index=0 ; a000bae4: e3530004 cmp r3, #4 index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ; index++ ) { a000bae8: e282200c add r2, r2, #12 Chain_Node *last_node; Chain_Node *next_node; Chain_Node *previous_node; _ISR_Disable( level ); for( index=0 ; a000baec: 1affffeb bne a000baa0 <_Thread_queue_Dequeue_priority+0x1c> static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000baf0: e129f001 msr CPSR_fc, r1 /* * We did not find a thread to unblock. */ _ISR_Enable( level ); return NULL; a000baf4: e3a04000 mov r4, #0 a000baf8: ea00001f b a000bb7c <_Thread_queue_Dequeue_priority+0xf8> #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif return( the_thread ); } a000bafc: e595c040 ldr ip, [r5, #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; a000bb00: e593e000 ldr lr, [r3] <== NOT EXECUTED previous_node->next = new_first_node; next_node->previous = new_first_node; a000bb04: 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; a000bb08: e5803000 str r3, [r0] <== NOT EXECUTED next_node->previous = new_first_node; new_first_node->next = next_node; new_first_node->previous = previous_node; a000bb0c: e5830004 str r0, [r3, #4] <== NOT EXECUTED last_node = _Chain_Last( &the_thread->Wait.Block2n ); new_second_node = new_first_node->next; previous_node->next = new_first_node; next_node->previous = new_first_node; new_first_node->next = next_node; a000bb10: e5832000 str r2, [r3] <== NOT EXECUTED new_first_node->previous = previous_node; if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) { a000bb14: e5950038 ldr r0, [r5, #56] ; 0x38 <== NOT EXECUTED a000bb18: e5952040 ldr r2, [r5, #64] ; 0x40 <== NOT EXECUTED a000bb1c: e1500002 cmp r0, r2 <== NOT EXECUTED a000bb20: 0a000008 beq a000bb48 <_Thread_queue_Dequeue_priority+0xc4><== NOT EXECUTED /* > two threads on 2-n */ head = _Chain_Head( &new_first_thread->Wait.Block2n ); a000bb24: e2832038 add r2, r3, #56 ; 0x38 <== NOT EXECUTED tail = _Chain_Tail( &new_first_thread->Wait.Block2n ); new_second_node->previous = head; head->next = new_second_node; a000bb28: e583e038 str lr, [r3, #56] ; 0x38 <== NOT EXECUTED if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) { /* > two threads on 2-n */ head = _Chain_Head( &new_first_thread->Wait.Block2n ); tail = _Chain_Tail( &new_first_thread->Wait.Block2n ); new_second_node->previous = head; a000bb2c: e58e2004 str r2, [lr, #4] <== NOT EXECUTED head->next = new_second_node; tail->previous = last_node; a000bb30: e583c040 str ip, [r3, #64] ; 0x40 <== NOT EXECUTED new_first_node->previous = previous_node; if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) { /* > two threads on 2-n */ head = _Chain_Head( &new_first_thread->Wait.Block2n ); tail = _Chain_Tail( &new_first_thread->Wait.Block2n ); a000bb34: e283303c add r3, r3, #60 ; 0x3c <== NOT EXECUTED new_second_node->previous = head; head->next = new_second_node; tail->previous = last_node; last_node->next = tail; a000bb38: e58c3000 str r3, [ip] <== NOT EXECUTED a000bb3c: ea000001 b a000bb48 <_Thread_queue_Dequeue_priority+0xc4> <== NOT EXECUTED } } else { previous_node->next = next_node; a000bb40: e5802000 str r2, [r0] <== NOT EXECUTED next_node->previous = previous_node; a000bb44: e5820004 str r0, [r2, #4] <== NOT EXECUTED } if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { a000bb48: e5953050 ldr r3, [r5, #80] ; 0x50 <== NOT EXECUTED a000bb4c: e3530002 cmp r3, #2 <== NOT EXECUTED a000bb50: 0a000001 beq a000bb5c <_Thread_queue_Dequeue_priority+0xd8><== NOT EXECUTED a000bb54: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED a000bb58: ea000004 b a000bb70 <_Thread_queue_Dequeue_priority+0xec> <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_REMOVE_IT; a000bb5c: e3a03003 mov r3, #3 <== NOT EXECUTED a000bb60: e5853050 str r3, [r5, #80] ; 0x50 <== NOT EXECUTED a000bb64: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED _ISR_Enable( level ); _Thread_Unblock( the_thread ); } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); (void) _Watchdog_Remove( &the_thread->Timer ); a000bb68: e2850048 add r0, r5, #72 ; 0x48 <== NOT EXECUTED a000bb6c: eb000292 bl a000c5bc <_Watchdog_Remove> <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); a000bb70: e1a00005 mov r0, r5 <== NOT EXECUTED a000bb74: e59f1008 ldr r1, [pc, #8] ; a000bb84 <_Thread_queue_Dequeue_priority+0x100><== NOT EXECUTED a000bb78: ebfffe21 bl a000b404 <_Thread_Clear_state> <== 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 ); } a000bb7c: e1a00004 mov r0, r4 a000bb80: e8bd8030 pop {r4, r5, pc} =============================================================================== a000eadc <_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 ) { a000eadc: e92d4010 push {r4, lr} <== NOT EXECUTED a000eae0: e1a03000 mov r3, r0 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000eae4: e10fc000 mrs ip, CPSR <== NOT EXECUTED a000eae8: e38c0080 orr r0, ip, #128 ; 0x80 <== NOT EXECUTED a000eaec: 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; a000eaf0: e5930030 ldr r0, [r3, #48] ; 0x30 <== NOT EXECUTED the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; a000eaf4: e3a04000 mov r4, #0 <== NOT EXECUTED a000eaf8: e5834030 str r4, [r3, #48] ; 0x30 <== NOT EXECUTED if (sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) { a000eafc: e3500001 cmp r0, #1 <== NOT EXECUTED a000eb00: 1a000008 bne a000eb28 <_Thread_queue_Enqueue_fifo+0x4c> <== NOT EXECUTED Chain_Control *the_chain, Chain_Node *the_node ) { Chain_Node *tail = _Chain_Tail( the_chain ); Chain_Node *old_last = tail->previous; a000eb04: 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 ); a000eb08: e2834004 add r4, r3, #4 <== NOT EXECUTED Chain_Node *old_last = tail->previous; the_node->next = tail; tail->previous = the_node; a000eb0c: e5831008 str r1, [r3, #8] <== NOT EXECUTED ) { Chain_Node *tail = _Chain_Tail( the_chain ); Chain_Node *old_last = tail->previous; the_node->next = tail; a000eb10: e5814000 str r4, [r1] <== NOT EXECUTED tail->previous = the_node; old_last->next = the_node; the_node->previous = old_last; a000eb14: 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; a000eb18: e5821000 str r1, [r2] <== NOT EXECUTED _Chain_Append_unprotected( &the_thread_queue->Queues.Fifo, &the_thread->Object.Node ); the_thread->Wait.queue = the_thread_queue; a000eb1c: e5813044 str r3, [r1, #68] ; 0x44 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000eb20: e129f00c msr CPSR_fc, ip <== NOT EXECUTED the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; a000eb24: e8bd8010 pop {r4, pc} <== 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; a000eb28: e582c000 str ip, [r2] <== NOT EXECUTED return sync_state; } a000eb2c: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a000bc28 <_Thread_queue_Enqueue_priority>: Priority_Control priority; States_Control block_state; _Chain_Initialize_empty( &the_thread->Wait.Block2n ); priority = the_thread->current_priority; a000bc28: e591c014 ldr ip, [r1, #20] <== 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 ); a000bc2c: e281303c add r3, r1, #60 ; 0x3c <== NOT EXECUTED head->next = tail; a000bc30: e5813038 str r3, [r1, #56] ; 0x38 <== NOT EXECUTED head->previous = NULL; a000bc34: e3a03000 mov r3, #0 <== NOT EXECUTED a000bc38: e581303c str r3, [r1, #60] ; 0x3c <== NOT EXECUTED 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 ) ) a000bc3c: e31c0020 tst ip, #32 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { Chain_Node *head = _Chain_Head( the_chain ); a000bc40: e2813038 add r3, r1, #56 ; 0x38 <== NOT EXECUTED Thread_blocking_operation_States _Thread_queue_Enqueue_priority ( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread, ISR_Level *level_p ) { a000bc44: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED Chain_Node *tail = _Chain_Tail( the_chain ); head->next = tail; head->previous = NULL; tail->previous = head; a000bc48: e5813040 str r3, [r1, #64] ; 0x40 <== 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; a000bc4c: e5907038 ldr r7, [r0, #56] ; 0x38 <== NOT EXECUTED RTEMS_INLINE_ROUTINE uint32_t _Thread_queue_Header_number ( Priority_Control the_priority ) { return (the_priority / TASK_QUEUE_DATA_PRIORITIES_PER_HEADER); a000bc50: e1a0332c lsr r3, ip, #6 <== NOT EXECUTED if ( _Thread_queue_Is_reverse_search( priority ) ) a000bc54: 1a000026 bne a000bcf4 <_Thread_queue_Enqueue_priority+0xcc><== NOT EXECUTED * * WARNING! Returning with interrupts disabled! */ *level_p = level; return the_thread_queue->sync_state; } a000bc58: e3a0600c mov r6, #12 <== NOT EXECUTED a000bc5c: e0030396 mul r3, r6, r3 <== NOT EXECUTED a000bc60: e0808003 add r8, r0, r3 <== 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)); a000bc64: e2833004 add r3, r3, #4 <== NOT EXECUTED a000bc68: e0806003 add r6, r0, r3 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000bc6c: e10f4000 mrs r4, CPSR <== NOT EXECUTED a000bc70: e3843080 orr r3, r4, #128 ; 0x80 <== NOT EXECUTED a000bc74: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED if ( _Thread_queue_Is_reverse_search( priority ) ) goto restart_reverse_search; restart_forward_search: search_priority = PRIORITY_MINIMUM - 1; a000bc78: e3e05000 mvn r5, #0 <== NOT EXECUTED _ISR_Disable( level ); search_thread = (Thread_Control *) _Chain_First( header ); a000bc7c: e5983000 ldr r3, [r8] <== NOT EXECUTED while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) { a000bc80: ea00000b b a000bcb4 <_Thread_queue_Enqueue_priority+0x8c> <== NOT EXECUTED search_priority = search_thread->current_priority; a000bc84: e5935014 ldr r5, [r3, #20] <== NOT EXECUTED if ( priority <= search_priority ) a000bc88: e15c0005 cmp ip, r5 <== NOT EXECUTED a000bc8c: 9a00000a bls a000bcbc <_Thread_queue_Enqueue_priority+0x94><== NOT EXECUTED static inline void arm_interrupt_flash( uint32_t level ) { uint32_t arm_switch_reg; __asm__ volatile ( a000bc90: e10fa000 mrs sl, CPSR <== NOT EXECUTED a000bc94: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED a000bc98: e129f00a msr CPSR_fc, sl <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool _States_Are_set ( States_Control the_states, States_Control mask ) { return ( (the_states & mask) != STATES_READY); a000bc9c: e593a010 ldr sl, [r3, #16] <== NOT EXECUTED search_priority = search_thread->current_priority; if ( priority <= search_priority ) break; #endif _ISR_Flash( level ); if ( !_States_Are_set( search_thread->current_state, block_state) ) { a000bca0: e117000a tst r7, sl <== NOT EXECUTED a000bca4: 1a000001 bne a000bcb0 <_Thread_queue_Enqueue_priority+0x88><== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000bca8: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED a000bcac: eaffffee b a000bc6c <_Thread_queue_Enqueue_priority+0x44> <== NOT EXECUTED _ISR_Enable( level ); goto restart_forward_search; } search_thread = (Thread_Control *)search_thread->Object.Node.next; a000bcb0: e5933000 ldr r3, [r3] <== 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 ) ) { a000bcb4: e1530006 cmp r3, r6 <== NOT EXECUTED a000bcb8: 1afffff1 bne a000bc84 <_Thread_queue_Enqueue_priority+0x5c><== NOT EXECUTED } search_thread = (Thread_Control *)search_thread->Object.Node.next; } if ( the_thread_queue->sync_state != a000bcbc: e5906030 ldr r6, [r0, #48] ; 0x30 <== NOT EXECUTED a000bcc0: e3560001 cmp r6, #1 <== NOT EXECUTED a000bcc4: 1a000039 bne a000bdb0 <_Thread_queue_Enqueue_priority+0x188><== NOT EXECUTED THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; a000bcc8: e3a02000 mov r2, #0 <== NOT EXECUTED if ( priority == search_priority ) a000bccc: e15c0005 cmp ip, r5 <== NOT EXECUTED if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; a000bcd0: e5802030 str r2, [r0, #48] ; 0x30 <== NOT EXECUTED if ( priority == search_priority ) a000bcd4: 0a00002b beq a000bd88 <_Thread_queue_Enqueue_priority+0x160><== NOT EXECUTED goto equal_priority; search_node = (Chain_Node *) search_thread; previous_node = search_node->previous; a000bcd8: e5932004 ldr r2, [r3, #4] <== NOT EXECUTED the_node = (Chain_Node *) the_thread; the_node->next = search_node; a000bcdc: e5813000 str r3, [r1] <== NOT EXECUTED the_node->previous = previous_node; a000bce0: e5812004 str r2, [r1, #4] <== NOT EXECUTED previous_node->next = the_node; a000bce4: e5821000 str r1, [r2] <== NOT EXECUTED search_node->previous = the_node; a000bce8: e5831004 str r1, [r3, #4] <== NOT EXECUTED the_thread->Wait.queue = the_thread_queue; a000bcec: e5810044 str r0, [r1, #68] ; 0x44 <== NOT EXECUTED _ISR_Enable( level ); a000bcf0: ea00002b b a000bda4 <_Thread_queue_Enqueue_priority+0x17c> <== NOT EXECUTED * * WARNING! Returning with interrupts disabled! */ *level_p = level; return the_thread_queue->sync_state; } a000bcf4: e3a0600c mov r6, #12 <== 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; a000bcf8: e59f80bc ldr r8, [pc, #188] ; a000bdbc <_Thread_queue_Enqueue_priority+0x194><== NOT EXECUTED * * WARNING! Returning with interrupts disabled! */ *level_p = level; return the_thread_queue->sync_state; } a000bcfc: e0260693 mla r6, r3, r6, 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; a000bd00: e5d85000 ldrb r5, [r8] <== NOT EXECUTED a000bd04: e2855001 add r5, r5, #1 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000bd08: e10f4000 mrs r4, CPSR <== NOT EXECUTED a000bd0c: e3843080 orr r3, r4, #128 ; 0x80 <== NOT EXECUTED a000bd10: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED _ISR_Disable( level ); search_thread = (Thread_Control *) _Chain_Last( header ); a000bd14: e5963008 ldr r3, [r6, #8] <== NOT EXECUTED while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) { a000bd18: ea00000b b a000bd4c <_Thread_queue_Enqueue_priority+0x124> <== NOT EXECUTED search_priority = search_thread->current_priority; a000bd1c: e5935014 ldr r5, [r3, #20] <== NOT EXECUTED if ( priority >= search_priority ) a000bd20: e15c0005 cmp ip, r5 <== NOT EXECUTED a000bd24: 2a00000a bcs a000bd54 <_Thread_queue_Enqueue_priority+0x12c><== NOT EXECUTED static inline void arm_interrupt_flash( uint32_t level ) { uint32_t arm_switch_reg; __asm__ volatile ( a000bd28: e10fa000 mrs sl, CPSR <== NOT EXECUTED a000bd2c: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED a000bd30: e129f00a msr CPSR_fc, sl <== NOT EXECUTED a000bd34: e593a010 ldr sl, [r3, #16] <== NOT EXECUTED search_priority = search_thread->current_priority; if ( priority >= search_priority ) break; #endif _ISR_Flash( level ); if ( !_States_Are_set( search_thread->current_state, block_state) ) { a000bd38: e117000a tst r7, sl <== NOT EXECUTED a000bd3c: 1a000001 bne a000bd48 <_Thread_queue_Enqueue_priority+0x120><== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000bd40: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED a000bd44: eaffffed b a000bd00 <_Thread_queue_Enqueue_priority+0xd8> <== NOT EXECUTED _ISR_Enable( level ); goto restart_reverse_search; } search_thread = (Thread_Control *) search_thread->Object.Node.previous; a000bd48: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; _ISR_Disable( level ); search_thread = (Thread_Control *) _Chain_Last( header ); while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) { a000bd4c: e1530006 cmp r3, r6 <== NOT EXECUTED a000bd50: 1afffff1 bne a000bd1c <_Thread_queue_Enqueue_priority+0xf4><== NOT EXECUTED } search_thread = (Thread_Control *) search_thread->Object.Node.previous; } if ( the_thread_queue->sync_state != a000bd54: e5906030 ldr r6, [r0, #48] ; 0x30 <== NOT EXECUTED a000bd58: e3560001 cmp r6, #1 <== NOT EXECUTED a000bd5c: 1a000013 bne a000bdb0 <_Thread_queue_Enqueue_priority+0x188><== NOT EXECUTED THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; a000bd60: e3a02000 mov r2, #0 <== NOT EXECUTED if ( priority == search_priority ) a000bd64: e15c0005 cmp ip, r5 <== NOT EXECUTED if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; a000bd68: e5802030 str r2, [r0, #48] ; 0x30 <== NOT EXECUTED if ( priority == search_priority ) a000bd6c: 0a000005 beq a000bd88 <_Thread_queue_Enqueue_priority+0x160><== NOT EXECUTED goto equal_priority; search_node = (Chain_Node *) search_thread; next_node = search_node->next; a000bd70: e5932000 ldr r2, [r3] <== NOT EXECUTED the_node = (Chain_Node *) the_thread; the_node->next = next_node; the_node->previous = search_node; a000bd74: e881000c stm r1, {r2, r3} <== NOT EXECUTED search_node->next = the_node; next_node->previous = the_node; a000bd78: e5821004 str r1, [r2, #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; a000bd7c: e5831000 str r1, [r3] <== NOT EXECUTED next_node->previous = the_node; the_thread->Wait.queue = the_thread_queue; a000bd80: e5810044 str r0, [r1, #68] ; 0x44 <== NOT EXECUTED _ISR_Enable( level ); a000bd84: ea000006 b a000bda4 <_Thread_queue_Enqueue_priority+0x17c> <== NOT EXECUTED return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; equal_priority: /* add at end of priority group */ search_node = _Chain_Tail( &search_thread->Wait.Block2n ); previous_node = search_node->previous; a000bd88: e5932040 ldr r2, [r3, #64] ; 0x40 <== NOT EXECUTED the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; equal_priority: /* add at end of priority group */ search_node = _Chain_Tail( &search_thread->Wait.Block2n ); a000bd8c: e283c03c add ip, r3, #60 ; 0x3c <== NOT EXECUTED previous_node = search_node->previous; the_node = (Chain_Node *) the_thread; the_node->next = search_node; a000bd90: e581c000 str ip, [r1] <== NOT EXECUTED the_node->previous = previous_node; a000bd94: e5812004 str r2, [r1, #4] <== NOT EXECUTED previous_node->next = the_node; a000bd98: e5821000 str r1, [r2] <== NOT EXECUTED search_node->previous = the_node; a000bd9c: e5831040 str r1, [r3, #64] ; 0x40 <== NOT EXECUTED the_thread->Wait.queue = the_thread_queue; a000bda0: e5810044 str r0, [r1, #68] ; 0x44 <== NOT EXECUTED a000bda4: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; a000bda8: e3a00001 mov r0, #1 <== NOT EXECUTED a000bdac: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== 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; a000bdb0: e5824000 str r4, [r2] <== NOT EXECUTED return the_thread_queue->sync_state; a000bdb4: e5900030 ldr r0, [r0, #48] ; 0x30 <== NOT EXECUTED } a000bdb8: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED =============================================================================== a000bb88 <_Thread_queue_Enqueue_with_handler>: Thread_queue_Control *, Thread_Control *, ISR_Level * ); the_thread = _Thread_Executing; a000bb88: e59f3088 ldr r3, [pc, #136] ; a000bc18 <_Thread_queue_Enqueue_with_handler+0x90><== NOT EXECUTED void _Thread_queue_Enqueue_with_handler( Thread_queue_Control *the_thread_queue, Watchdog_Interval timeout, Thread_queue_Timeout_callout handler ) { a000bb8c: e92d40f1 push {r0, r4, r5, r6, r7, lr} <== NOT EXECUTED Thread_queue_Control *, Thread_Control *, ISR_Level * ); the_thread = _Thread_Executing; a000bb90: 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 ) { a000bb94: e1a05000 mov r5, r0 <== NOT EXECUTED a000bb98: e1a06001 mov r6, r1 <== NOT EXECUTED else #endif /* * Set the blocking state for this thread queue in the thread. */ _Thread_Set_state( the_thread, the_thread_queue->state ); a000bb9c: e1a00004 mov r0, r4 <== NOT EXECUTED a000bba0: e5951038 ldr r1, [r5, #56] ; 0x38 <== NOT EXECUTED void _Thread_queue_Enqueue_with_handler( Thread_queue_Control *the_thread_queue, Watchdog_Interval timeout, Thread_queue_Timeout_callout handler ) { a000bba4: 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 ); a000bba8: eb0000e0 bl a000bf30 <_Thread_Set_state> <== NOT EXECUTED /* * If the thread wants to timeout, then schedule its timer. */ if ( timeout ) { a000bbac: e3560000 cmp r6, #0 <== NOT EXECUTED a000bbb0: 0a000009 beq a000bbdc <_Thread_queue_Enqueue_with_handler+0x54><== NOT EXECUTED _Watchdog_Initialize( a000bbb4: e5942008 ldr r2, [r4, #8] <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; a000bbb8: e3a03000 mov r3, #0 <== NOT EXECUTED a000bbbc: e5843050 str r3, [r4, #80] ; 0x50 <== NOT EXECUTED the_watchdog->routine = routine; a000bbc0: e5847064 str r7, [r4, #100] ; 0x64 <== NOT EXECUTED the_watchdog->id = id; a000bbc4: e5842068 str r2, [r4, #104] ; 0x68 <== NOT EXECUTED the_watchdog->user_data = user_data; a000bbc8: e584306c str r3, [r4, #108] ; 0x6c <== NOT EXECUTED Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; a000bbcc: e5846054 str r6, [r4, #84] ; 0x54 <== NOT EXECUTED _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); a000bbd0: e59f0044 ldr r0, [pc, #68] ; a000bc1c <_Thread_queue_Enqueue_with_handler+0x94><== NOT EXECUTED a000bbd4: e2841048 add r1, r4, #72 ; 0x48 <== NOT EXECUTED a000bbd8: eb00021f bl a000c45c <_Watchdog_Insert> <== NOT EXECUTED } /* * Now enqueue the thread per the discipline for this thread queue. */ if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) a000bbdc: e5951034 ldr r1, [r5, #52] ; 0x34 <== NOT EXECUTED enqueue_p = _Thread_queue_Enqueue_priority; a000bbe0: e59f2038 ldr r2, [pc, #56] ; a000bc20 <_Thread_queue_Enqueue_with_handler+0x98><== NOT EXECUTED a000bbe4: e59f3038 ldr r3, [pc, #56] ; a000bc24 <_Thread_queue_Enqueue_with_handler+0x9c><== NOT EXECUTED a000bbe8: e3510001 cmp r1, #1 <== NOT EXECUTED a000bbec: 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 ); a000bbf0: e1a00005 mov r0, r5 <== NOT EXECUTED a000bbf4: e1a01004 mov r1, r4 <== NOT EXECUTED a000bbf8: e1a0200d mov r2, sp <== NOT EXECUTED a000bbfc: e12fff33 blx r3 <== NOT EXECUTED if ( sync_state != THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) a000bc00: e3500001 cmp r0, #1 <== NOT EXECUTED a000bc04: 0a000002 beq a000bc14 <_Thread_queue_Enqueue_with_handler+0x8c><== NOT EXECUTED _Thread_blocking_operation_Cancel( sync_state, the_thread, level ); a000bc08: e1a01004 mov r1, r4 <== NOT EXECUTED a000bc0c: e59d2000 ldr r2, [sp] <== NOT EXECUTED a000bc10: ebfffdac bl a000b2c8 <_Thread_blocking_operation_Cancel> <== NOT EXECUTED } a000bc14: e8bd80f8 pop {r3, r4, r5, r6, r7, pc} <== NOT EXECUTED =============================================================================== a000eb30 <_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 ) a000eb30: e5903034 ldr r3, [r0, #52] ; 0x34 <== NOT EXECUTED a000eb34: e3530001 cmp r3, #1 <== NOT EXECUTED a000eb38: 1a000001 bne a000eb44 <_Thread_queue_Extract+0x14> <== NOT EXECUTED _Thread_queue_Extract_priority( the_thread_queue, the_thread ); a000eb3c: e3a02000 mov r2, #0 <== NOT EXECUTED a000eb40: ea000000 b a000eb48 <_Thread_queue_Extract_priority_helper><== NOT EXECUTED else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */ _Thread_queue_Extract_fifo( the_thread_queue, the_thread ); a000eb44: ea00056f b a0010108 <_Thread_queue_Extract_fifo> <== NOT EXECUTED =============================================================================== a0010108 <_Thread_queue_Extract_fifo>: void _Thread_queue_Extract_fifo( Thread_queue_Control *the_thread_queue __attribute__((unused)), Thread_Control *the_thread ) { a0010108: e92d4010 push {r4, lr} <== NOT EXECUTED a001010c: e1a04001 mov r4, r1 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a0010110: e10f3000 mrs r3, CPSR <== NOT EXECUTED a0010114: e3832080 orr r2, r3, #128 ; 0x80 <== NOT EXECUTED a0010118: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED a001011c: e59f2060 ldr r2, [pc, #96] ; a0010184 <_Thread_queue_Extract_fifo+0x7c><== NOT EXECUTED a0010120: e5911010 ldr r1, [r1, #16] <== NOT EXECUTED a0010124: e0012002 and r2, r1, r2 <== NOT EXECUTED ISR_Level level; _ISR_Disable( level ); if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { a0010128: e3520000 cmp r2, #0 <== NOT EXECUTED a001012c: 1a000001 bne a0010138 <_Thread_queue_Extract_fifo+0x30> <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a0010130: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } a0010134: e8bd8010 pop {r4, pc} <== NOT EXECUTED { Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; a0010138: e8940006 ldm r4, {r1, r2} <== NOT EXECUTED next->previous = previous; a001013c: e5812004 str r2, [r1, #4] <== NOT EXECUTED previous->next = next; a0010140: e5821000 str r1, [r2] <== NOT EXECUTED return; } _Chain_Extract_unprotected( &the_thread->Object.Node ); the_thread->Wait.queue = NULL; a0010144: e3a02000 mov r2, #0 <== NOT EXECUTED a0010148: e5842044 str r2, [r4, #68] ; 0x44 <== NOT EXECUTED if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { a001014c: e5942050 ldr r2, [r4, #80] ; 0x50 <== NOT EXECUTED a0010150: e3520002 cmp r2, #2 <== NOT EXECUTED a0010154: 0a000001 beq a0010160 <_Thread_queue_Extract_fifo+0x58> <== NOT EXECUTED a0010158: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED a001015c: ea000004 b a0010174 <_Thread_queue_Extract_fifo+0x6c> <== NOT EXECUTED a0010160: e3a02003 mov r2, #3 <== NOT EXECUTED a0010164: e5842050 str r2, [r4, #80] ; 0x50 <== NOT EXECUTED a0010168: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED _ISR_Enable( level ); } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); (void) _Watchdog_Remove( &the_thread->Timer ); a001016c: e2840048 add r0, r4, #72 ; 0x48 <== NOT EXECUTED a0010170: ebfff111 bl a000c5bc <_Watchdog_Remove> <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); a0010174: e59f100c ldr r1, [pc, #12] ; a0010188 <_Thread_queue_Extract_fifo+0x80><== NOT EXECUTED a0010178: e1a00004 mov r0, r4 <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } a001017c: e8bd4010 pop {r4, lr} <== NOT EXECUTED a0010180: eaffec9f b a000b404 <_Thread_Clear_state> <== NOT EXECUTED =============================================================================== a000eb48 <_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 ) { a000eb48: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED a000eb4c: e20220ff and r2, r2, #255 ; 0xff <== NOT EXECUTED a000eb50: e1a04001 mov r4, r1 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000eb54: e10f1000 mrs r1, CPSR <== NOT EXECUTED a000eb58: e3813080 orr r3, r1, #128 ; 0x80 <== NOT EXECUTED a000eb5c: 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); a000eb60: e59f30b0 ldr r3, [pc, #176] ; a000ec18 <_Thread_queue_Extract_priority_helper+0xd0><== NOT EXECUTED a000eb64: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED a000eb68: 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 ) ) { a000eb6c: e3530000 cmp r3, #0 <== NOT EXECUTED a000eb70: 1a000000 bne a000eb78 <_Thread_queue_Extract_priority_helper+0x30><== NOT EXECUTED _ISR_Enable( level ); a000eb74: ea000017 b a000ebd8 <_Thread_queue_Extract_priority_helper+0x90><== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } a000eb78: e5943038 ldr r3, [r4, #56] ; 0x38 <== NOT EXECUTED /* * The thread was actually waiting on a thread queue so let's remove it. */ next_node = the_node->next; a000eb7c: e8941001 ldm r4, {r0, ip} <== 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 ); a000eb80: e284503c add r5, r4, #60 ; 0x3c <== NOT EXECUTED previous_node = the_node->previous; if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) { a000eb84: e1530005 cmp r3, r5 <== NOT EXECUTED head->next = new_second_node; tail->previous = last_node; last_node->next = tail; } } else { previous_node->next = next_node; a000eb88: 058c0000 streq r0, [ip] <== NOT EXECUTED next_node->previous = previous_node; a000eb8c: 0580c004 streq ip, [r0, #4] <== NOT EXECUTED */ next_node = the_node->next; previous_node = the_node->previous; if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) { a000eb90: 0a00000e beq a000ebd0 <_Thread_queue_Extract_priority_helper+0x88><== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } a000eb94: e5945040 ldr r5, [r4, #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; a000eb98: e5936000 ldr r6, [r3] <== NOT EXECUTED previous_node->next = new_first_node; next_node->previous = new_first_node; a000eb9c: 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; a000eba0: e58c3000 str r3, [ip] <== NOT EXECUTED next_node->previous = new_first_node; new_first_node->next = next_node; new_first_node->previous = previous_node; a000eba4: e8831001 stm r3, {r0, ip} <== NOT EXECUTED if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) { a000eba8: e594c038 ldr ip, [r4, #56] ; 0x38 <== NOT EXECUTED a000ebac: e5940040 ldr r0, [r4, #64] ; 0x40 <== NOT EXECUTED a000ebb0: e15c0000 cmp ip, r0 <== NOT EXECUTED a000ebb4: 0a000005 beq a000ebd0 <_Thread_queue_Extract_priority_helper+0x88><== NOT EXECUTED /* > two threads on 2-n */ head = _Chain_Head( &new_first_thread->Wait.Block2n ); a000ebb8: e2830038 add r0, r3, #56 ; 0x38 <== NOT EXECUTED tail = _Chain_Tail( &new_first_thread->Wait.Block2n ); new_second_node->previous = head; head->next = new_second_node; a000ebbc: e5836038 str r6, [r3, #56] ; 0x38 <== NOT EXECUTED if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) { /* > two threads on 2-n */ head = _Chain_Head( &new_first_thread->Wait.Block2n ); tail = _Chain_Tail( &new_first_thread->Wait.Block2n ); new_second_node->previous = head; a000ebc0: e5860004 str r0, [r6, #4] <== NOT EXECUTED head->next = new_second_node; tail->previous = last_node; a000ebc4: e5835040 str r5, [r3, #64] ; 0x40 <== NOT EXECUTED new_first_node->previous = previous_node; if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) { /* > two threads on 2-n */ head = _Chain_Head( &new_first_thread->Wait.Block2n ); tail = _Chain_Tail( &new_first_thread->Wait.Block2n ); a000ebc8: e283303c add r3, r3, #60 ; 0x3c <== NOT EXECUTED new_second_node->previous = head; head->next = new_second_node; tail->previous = last_node; last_node->next = tail; a000ebcc: e5853000 str r3, [r5] <== NOT EXECUTED /* * If we are not supposed to touch timers or the thread's state, return. */ if ( requeuing ) { a000ebd0: e3520000 cmp r2, #0 <== NOT EXECUTED a000ebd4: 0a000001 beq a000ebe0 <_Thread_queue_Extract_priority_helper+0x98><== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000ebd8: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED a000ebdc: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED _ISR_Enable( level ); return; } if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { a000ebe0: e5943050 ldr r3, [r4, #80] ; 0x50 <== NOT EXECUTED a000ebe4: e3530002 cmp r3, #2 <== NOT EXECUTED a000ebe8: 0a000001 beq a000ebf4 <_Thread_queue_Extract_priority_helper+0xac><== NOT EXECUTED a000ebec: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED a000ebf0: ea000004 b a000ec08 <_Thread_queue_Extract_priority_helper+0xc0><== NOT EXECUTED a000ebf4: e3a03003 mov r3, #3 <== NOT EXECUTED a000ebf8: e5843050 str r3, [r4, #80] ; 0x50 <== NOT EXECUTED a000ebfc: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED _ISR_Enable( level ); } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); (void) _Watchdog_Remove( &the_thread->Timer ); a000ec00: e2840048 add r0, r4, #72 ; 0x48 <== NOT EXECUTED a000ec04: ebfff66c bl a000c5bc <_Watchdog_Remove> <== NOT EXECUTED a000ec08: e59f100c ldr r1, [pc, #12] ; a000ec1c <_Thread_queue_Extract_priority_helper+0xd4><== NOT EXECUTED a000ec0c: e1a00004 mov r0, r4 <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } a000ec10: e8bd4070 pop {r4, r5, r6, lr} <== NOT EXECUTED a000ec14: eafff1fa b a000b404 <_Thread_Clear_state> <== NOT EXECUTED =============================================================================== a000bdc0 <_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); a000bdc0: e5903010 ldr r3, [r0, #16] <== NOT EXECUTED */ bool _Thread_queue_Extract_with_proxy( Thread_Control *the_thread ) { a000bdc4: e1a01000 mov r1, r0 <== NOT EXECUTED a000bdc8: e59f001c ldr r0, [pc, #28] ; a000bdec <_Thread_queue_Extract_with_proxy+0x2c><== NOT EXECUTED a000bdcc: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED a000bdd0: e0030000 and r0, r3, r0 <== NOT EXECUTED States_Control state; state = the_thread->current_state; if ( _States_Is_waiting_on_thread_queue( state ) ) { a000bdd4: e3500000 cmp r0, #0 <== NOT EXECUTED a000bdd8: 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 ); a000bddc: e5910044 ldr r0, [r1, #68] ; 0x44 <== NOT EXECUTED a000bde0: eb000b52 bl a000eb30 <_Thread_queue_Extract> <== NOT EXECUTED return true; a000bde4: e3a00001 mov r0, #1 <== NOT EXECUTED } return false; } a000bde8: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED =============================================================================== a001ed04 <_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 ) a001ed04: e5901034 ldr r1, [r0, #52] ; 0x34 <== NOT EXECUTED first_p = _Thread_queue_First_priority; a001ed08: e59f2014 ldr r2, [pc, #20] ; a001ed24 <_Thread_queue_First+0x20><== NOT EXECUTED a001ed0c: e59f3014 ldr r3, [pc, #20] ; a001ed28 <_Thread_queue_First+0x24><== NOT EXECUTED a001ed10: e3510001 cmp r1, #1 <== NOT EXECUTED */ Thread_Control *_Thread_queue_First( Thread_queue_Control *the_thread_queue ) { a001ed14: 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; a001ed18: 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 ); a001ed1c: e12fff33 blx r3 <== NOT EXECUTED } a001ed20: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED =============================================================================== a0020050 <_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; } a0020050: e4903004 ldr r3, [r0], #4 <== NOT EXECUTED a0020054: e1530000 cmp r3, r0 <== NOT EXECUTED a0020058: 11a00003 movne r0, r3 <== NOT EXECUTED a002005c: 03a00000 moveq r0, #0 <== NOT EXECUTED a0020060: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a001ed2c <_Thread_queue_First_priority>: */ Thread_Control *_Thread_queue_First_priority ( Thread_queue_Control *the_thread_queue ) { a001ed2c: e92d4010 push {r4, lr} <== NOT EXECUTED a001ed30: e3a02000 mov r2, #0 <== NOT EXECUTED uint32_t index; for( index=0 ; a001ed34: e1a03002 mov r3, r2 <== NOT EXECUTED a001ed38: e3a0c00c mov ip, #12 <== NOT EXECUTED a001ed3c: e004039c mul r4, ip, r3 <== NOT EXECUTED return (Thread_Control *) _Chain_First( &the_thread_queue->Queues.Priority[ index ] ); } return NULL; } a001ed40: e7901002 ldr r1, [r0, r2] <== NOT EXECUTED a001ed44: e2844004 add r4, r4, #4 <== NOT EXECUTED a001ed48: e0804004 add r4, r0, r4 <== 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 ] ) ) a001ed4c: e1510004 cmp r1, r4 <== NOT EXECUTED a001ed50: 0a000001 beq a001ed5c <_Thread_queue_First_priority+0x30> <== NOT EXECUTED return (Thread_Control *) _Chain_First( a001ed54: e1a00001 mov r0, r1 <== NOT EXECUTED a001ed58: e8bd8010 pop {r4, pc} <== NOT EXECUTED { uint32_t index; for( index=0 ; index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ; index++ ) { a001ed5c: e2833001 add r3, r3, #1 <== NOT EXECUTED Thread_queue_Control *the_thread_queue ) { uint32_t index; for( index=0 ; a001ed60: e3530004 cmp r3, #4 <== NOT EXECUTED index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ; index++ ) { a001ed64: e282200c add r2, r2, #12 <== NOT EXECUTED Thread_queue_Control *the_thread_queue ) { uint32_t index; for( index=0 ; a001ed68: 1afffff3 bne a001ed3c <_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; a001ed6c: e3a00000 mov r0, #0 <== NOT EXECUTED } a001ed70: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a000bdf0 <_Thread_queue_Flush>: #else Thread_queue_Flush_callout remote_extract_callout __attribute__((unused)), #endif uint32_t status ) { a000bdf0: e92d4030 push {r4, r5, lr} a000bdf4: e1a04000 mov r4, r0 a000bdf8: e1a05002 mov r5, r2 Thread_Control *the_thread; while ( (the_thread = _Thread_queue_Dequeue( the_thread_queue )) ) { a000bdfc: ea000000 b a000be04 <_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; a000be00: e5805034 str r5, [r0, #52] ; 0x34 <== NOT EXECUTED uint32_t status ) { Thread_Control *the_thread; while ( (the_thread = _Thread_queue_Dequeue( the_thread_queue )) ) { a000be04: e1a00004 mov r0, r4 a000be08: ebffff04 bl a000ba20 <_Thread_queue_Dequeue> a000be0c: e3500000 cmp r0, #0 a000be10: 1afffffa bne a000be00 <_Thread_queue_Flush+0x10> ( *remote_extract_callout )( the_thread ); else #endif the_thread->Wait.return_code = status; } } a000be14: e8bd8030 pop {r4, r5, pc} =============================================================================== a000ec20 <_Thread_queue_Process_timeout>: #include void _Thread_queue_Process_timeout( Thread_Control *the_thread ) { a000ec20: e1a01000 mov r1, r0 <== NOT EXECUTED Thread_queue_Control *the_thread_queue = the_thread->Wait.queue; a000ec24: 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 && a000ec28: e5903030 ldr r3, [r0, #48] ; 0x30 <== NOT EXECUTED a000ec2c: e3530000 cmp r3, #0 <== NOT EXECUTED a000ec30: 0a000009 beq a000ec5c <_Thread_queue_Process_timeout+0x3c> <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool _Thread_Is_executing ( const Thread_Control *the_thread ) { return ( the_thread == _Thread_Executing ); a000ec34: e59f202c ldr r2, [pc, #44] ; a000ec68 <_Thread_queue_Process_timeout+0x48><== NOT EXECUTED a000ec38: e5922004 ldr r2, [r2, #4] <== NOT EXECUTED a000ec3c: e1510002 cmp r1, r2 <== NOT EXECUTED a000ec40: 1a000005 bne a000ec5c <_Thread_queue_Process_timeout+0x3c> <== NOT EXECUTED _Thread_Is_executing( the_thread ) ) { if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_SATISFIED ) { a000ec44: e3530003 cmp r3, #3 <== NOT EXECUTED the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status; a000ec48: 1590303c ldrne r3, [r0, #60] ; 0x3c <== NOT EXECUTED a000ec4c: 15813034 strne r3, [r1, #52] ; 0x34 <== NOT EXECUTED the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT; a000ec50: 13a03002 movne r3, #2 <== NOT EXECUTED a000ec54: 15803030 strne r3, [r0, #48] ; 0x30 <== NOT EXECUTED a000ec58: e12fff1e bx lr <== NOT EXECUTED } } else { the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status; a000ec5c: e590303c ldr r3, [r0, #60] ; 0x3c <== NOT EXECUTED a000ec60: e5813034 str r3, [r1, #52] ; 0x34 <== NOT EXECUTED _Thread_queue_Extract( the_thread->Wait.queue, the_thread ); a000ec64: eaffffb1 b a000eb30 <_Thread_queue_Extract> <== NOT EXECUTED =============================================================================== a000be80 <_Thread_queue_Requeue>: void _Thread_queue_Requeue( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) { a000be80: e92d4071 push {r0, 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 ) a000be84: e2504000 subs r4, r0, #0 <== NOT EXECUTED void _Thread_queue_Requeue( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) { a000be88: 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 ) a000be8c: 0a000011 beq a000bed8 <_Thread_queue_Requeue+0x58> <== 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 ) { a000be90: e5942034 ldr r2, [r4, #52] ; 0x34 <== NOT EXECUTED a000be94: e3520001 cmp r2, #1 <== NOT EXECUTED a000be98: 1a00000e bne a000bed8 <_Thread_queue_Requeue+0x58> <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000be9c: e10f6000 mrs r6, CPSR <== NOT EXECUTED a000bea0: e3863080 orr r3, r6, #128 ; 0x80 <== NOT EXECUTED a000bea4: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED a000bea8: e59f302c ldr r3, [pc, #44] ; a000bedc <_Thread_queue_Requeue+0x5c><== NOT EXECUTED a000beac: e591c010 ldr ip, [r1, #16] <== NOT EXECUTED a000beb0: e00c3003 and r3, ip, r3 <== 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 ) ) { a000beb4: e3530000 cmp r3, #0 <== NOT EXECUTED a000beb8: 0a000005 beq a000bed4 <_Thread_queue_Requeue+0x54> <== 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; a000bebc: e5842030 str r2, [r4, #48] ; 0x30 <== NOT EXECUTED _Thread_queue_Enter_critical_section( tq ); _Thread_queue_Extract_priority_helper( tq, the_thread, true ); a000bec0: eb000b20 bl a000eb48 <_Thread_queue_Extract_priority_helper><== NOT EXECUTED (void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored ); a000bec4: e1a00004 mov r0, r4 <== NOT EXECUTED a000bec8: e1a01005 mov r1, r5 <== NOT EXECUTED a000becc: e1a0200d mov r2, sp <== NOT EXECUTED a000bed0: ebffff54 bl a000bc28 <_Thread_queue_Enqueue_priority> <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000bed4: e129f006 msr CPSR_fc, r6 <== NOT EXECUTED } _ISR_Enable( level ); } } a000bed8: e8bd8078 pop {r3, r4, r5, r6, pc} <== NOT EXECUTED =============================================================================== a000bee0 <_Thread_queue_Timeout>: void _Thread_queue_Timeout( Objects_Id id, void *ignored __attribute__((unused)) ) { a000bee0: e92d4001 push {r0, lr} <== NOT EXECUTED Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); a000bee4: e1a0100d mov r1, sp <== NOT EXECUTED a000bee8: ebfffe15 bl a000b744 <_Thread_Get> <== NOT EXECUTED switch ( location ) { a000beec: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000bef0: e3530000 cmp r3, #0 <== NOT EXECUTED a000bef4: 1a000004 bne a000bf0c <_Thread_queue_Timeout+0x2c> <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) case OBJECTS_REMOTE: /* impossible */ #endif break; case OBJECTS_LOCAL: _Thread_queue_Process_timeout( the_thread ); a000bef8: eb000b48 bl a000ec20 <_Thread_queue_Process_timeout> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; a000befc: e59f300c ldr r3, [pc, #12] ; a000bf10 <_Thread_queue_Timeout+0x30><== NOT EXECUTED a000bf00: e5932000 ldr r2, [r3] <== NOT EXECUTED a000bf04: e2422001 sub r2, r2, #1 <== NOT EXECUTED a000bf08: e5832000 str r2, [r3] <== NOT EXECUTED _Thread_Unnest_dispatch(); break; } } a000bf0c: e8bd8008 pop {r3, pc} <== NOT EXECUTED =============================================================================== a00185fc <_Timer_server_Body>: * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) { a00185fc: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED a0018600: e24dd01c sub sp, sp, #28 <== NOT EXECUTED ) { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); head->next = tail; a0018604: e28d9010 add r9, sp, #16 <== NOT EXECUTED a0018608: e28d6004 add r6, sp, #4 <== NOT EXECUTED static void _Timer_server_Process_interval_watchdogs( Timer_server_Watchdogs *watchdogs, Chain_Control *fire_chain ) { Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot; a001860c: e59fb190 ldr fp, [pc, #400] ; a00187a4 <_Timer_server_Body+0x1a8><== NOT EXECUTED a0018610: e2893004 add r3, r9, #4 <== NOT EXECUTED head->previous = NULL; a0018614: e3a02000 mov r2, #0 <== NOT EXECUTED ) { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); head->next = tail; a0018618: e2868004 add r8, r6, #4 <== NOT EXECUTED * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) { a001861c: e1a04000 mov r4, r0 <== NOT EXECUTED a0018620: e58d3010 str r3, [sp, #16] <== NOT EXECUTED head->previous = NULL; a0018624: e58d2014 str r2, [sp, #20] <== NOT EXECUTED tail->previous = head; a0018628: e58d9018 str r9, [sp, #24] <== NOT EXECUTED ) { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); head->next = tail; a001862c: e58d8004 str r8, [sp, #4] <== NOT EXECUTED head->previous = NULL; a0018630: e58d2008 str r2, [sp, #8] <== NOT EXECUTED tail->previous = head; a0018634: e58d600c str r6, [sp, #12] <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_tail( const Chain_Control *the_chain ) { return &the_chain->Tail.Node; a0018638: e58d3000 str r3, [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; a001863c: e5849078 str r9, [r4, #120] ; 0x78 <== NOT EXECUTED */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; watchdogs->last_snapshot = snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); a0018640: e284a030 add sl, r4, #48 ; 0x30 <== 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 ); a0018644: e2847068 add r7, r4, #104 ; 0x68 <== NOT EXECUTED static void _Timer_server_Process_interval_watchdogs( Timer_server_Watchdogs *watchdogs, Chain_Control *fire_chain ) { Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot; a0018648: e59b3000 ldr r3, [fp] <== NOT EXECUTED /* * We assume adequate unsigned arithmetic here. */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; a001864c: e594103c ldr r1, [r4, #60] ; 0x3c <== NOT EXECUTED watchdogs->last_snapshot = snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); a0018650: e1a02006 mov r2, r6 <== NOT EXECUTED /* * We assume adequate unsigned arithmetic here. */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; watchdogs->last_snapshot = snapshot; a0018654: e584303c str r3, [r4, #60] ; 0x3c <== NOT EXECUTED _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); a0018658: e1a0000a mov r0, sl <== NOT EXECUTED a001865c: e0611003 rsb r1, r1, r3 <== NOT EXECUTED a0018660: eb001070 bl a001c828 <_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(); a0018664: e59f213c ldr r2, [pc, #316] ; a00187a8 <_Timer_server_Body+0x1ac><== NOT EXECUTED a0018668: e5925000 ldr r5, [r2] <== NOT EXECUTED Watchdog_Interval last_snapshot = watchdogs->last_snapshot; a001866c: 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 ) { a0018670: e1550002 cmp r5, r2 <== NOT EXECUTED a0018674: 9a000004 bls a001868c <_Timer_server_Body+0x90> <== 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 ); a0018678: e0621005 rsb r1, r2, r5 <== NOT EXECUTED a001867c: e1a00007 mov r0, r7 <== NOT EXECUTED a0018680: e1a02006 mov r2, r6 <== NOT EXECUTED a0018684: eb001067 bl a001c828 <_Watchdog_Adjust_to_chain> <== NOT EXECUTED a0018688: ea000004 b a00186a0 <_Timer_server_Body+0xa4> <== NOT EXECUTED } else if ( snapshot < last_snapshot ) { a001868c: 2a000003 bcs a00186a0 <_Timer_server_Body+0xa4> <== 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 ); a0018690: e1a00007 mov r0, r7 <== NOT EXECUTED a0018694: e3a01001 mov r1, #1 <== NOT EXECUTED a0018698: e0652002 rsb r2, r5, r2 <== NOT EXECUTED a001869c: eb001039 bl a001c788 <_Watchdog_Adjust> <== NOT EXECUTED } watchdogs->last_snapshot = snapshot; a00186a0: 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 ); a00186a4: e5940078 ldr r0, [r4, #120] ; 0x78 <== NOT EXECUTED a00186a8: eb00028b bl a00190dc <_Chain_Get> <== NOT EXECUTED if ( timer == NULL ) { a00186ac: e2505000 subs r5, r0, #0 <== NOT EXECUTED a00186b0: 0a000009 beq a00186dc <_Timer_server_Body+0xe0> <== NOT EXECUTED static void _Timer_server_Insert_timer( Timer_server_Control *ts, Timer_Control *timer ) { if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) { a00186b4: e5953038 ldr r3, [r5, #56] ; 0x38 <== NOT EXECUTED a00186b8: e3530001 cmp r3, #1 <== NOT EXECUTED _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker ); a00186bc: 01a0000a moveq r0, sl <== NOT EXECUTED static void _Timer_server_Insert_timer( Timer_server_Control *ts, Timer_Control *timer ) { if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) { a00186c0: 0a000002 beq a00186d0 <_Timer_server_Body+0xd4> <== NOT EXECUTED _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker ); } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) { a00186c4: e3530003 cmp r3, #3 <== NOT EXECUTED a00186c8: 1afffff5 bne a00186a4 <_Timer_server_Body+0xa8> <== NOT EXECUTED _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker ); a00186cc: e1a00007 mov r0, r7 <== NOT EXECUTED a00186d0: e2851010 add r1, r5, #16 <== NOT EXECUTED a00186d4: eb00107e bl a001c8d4 <_Watchdog_Insert> <== NOT EXECUTED a00186d8: eafffff1 b a00186a4 <_Timer_server_Body+0xa8> <== NOT EXECUTED * of zero it will be processed in the next iteration of the timer server * body loop. */ _Timer_server_Process_insertions( ts ); _ISR_Disable( level ); a00186dc: ebffff94 bl a0018534 <== NOT EXECUTED if ( _Chain_Is_empty( insert_chain ) ) { a00186e0: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED a00186e4: e59d2000 ldr r2, [sp] <== NOT EXECUTED a00186e8: e1530002 cmp r3, r2 <== NOT EXECUTED a00186ec: 1a000006 bne a001870c <_Timer_server_Body+0x110> <== NOT EXECUTED ts->insert_chain = NULL; a00186f0: e5845078 str r5, [r4, #120] ; 0x78 <== NOT EXECUTED a00186f4: e129f000 msr CPSR_fc, r0 <== 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 ) ) { a00186f8: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED a00186fc: e1530008 cmp r3, r8 <== NOT EXECUTED ) { if ( !_Chain_Is_empty(the_chain)) return _Chain_Get_first_unprotected(the_chain); else return NULL; a0018700: 13a05000 movne r5, #0 <== NOT EXECUTED a0018704: 1a000002 bne a0018714 <_Timer_server_Body+0x118> <== NOT EXECUTED a0018708: ea000013 b a001875c <_Timer_server_Body+0x160> <== NOT EXECUTED a001870c: e129f000 msr CPSR_fc, r0 <== NOT EXECUTED a0018710: eaffffcc b a0018648 <_Timer_server_Body+0x4c> <== NOT EXECUTED /* * It is essential that interrupts are disable here since an interrupt * service routine may remove a watchdog from the chain. */ _ISR_Disable( level ); a0018714: ebffff86 bl a0018534 <== NOT EXECUTED initialized = false; } #endif return status; } a0018718: e59d2004 ldr r2, [sp, #4] <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected( Chain_Control *the_chain ) { if ( !_Chain_Is_empty(the_chain)) a001871c: e1520008 cmp r2, r8 <== NOT EXECUTED a0018720: 0a00000b beq a0018754 <_Timer_server_Body+0x158> <== 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; a0018724: e5923000 ldr r3, [r2] <== NOT EXECUTED * It is essential that interrupts are disable here since an interrupt * service routine may remove a watchdog from the chain. */ _ISR_Disable( level ); watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain ); if ( watchdog != NULL ) { a0018728: e3520000 cmp r2, #0 <== NOT EXECUTED head->next = new_first; a001872c: e58d3004 str r3, [sp, #4] <== NOT EXECUTED new_first->previous = head; a0018730: e5836004 str r6, [r3, #4] <== NOT EXECUTED a0018734: 0a000006 beq a0018754 <_Timer_server_Body+0x158> <== NOT EXECUTED watchdog->state = WATCHDOG_INACTIVE; a0018738: e5825008 str r5, [r2, #8] <== NOT EXECUTED a001873c: e129f000 msr CPSR_fc, r0 <== 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 ); a0018740: e592301c ldr r3, [r2, #28] <== NOT EXECUTED a0018744: e5920020 ldr r0, [r2, #32] <== NOT EXECUTED a0018748: e5921024 ldr r1, [r2, #36] ; 0x24 <== NOT EXECUTED a001874c: e12fff33 blx r3 <== NOT EXECUTED } a0018750: eaffffef b a0018714 <_Timer_server_Body+0x118> <== NOT EXECUTED a0018754: e129f000 msr CPSR_fc, r0 <== NOT EXECUTED a0018758: eaffffb7 b a001863c <_Timer_server_Body+0x40> <== NOT EXECUTED } else { ts->active = false; a001875c: e3a03000 mov r3, #0 <== NOT EXECUTED a0018760: e5c4307c strb r3, [r4, #124] ; 0x7c <== NOT EXECUTED /* * Block until there is something to do. */ _Thread_Disable_dispatch(); a0018764: ebffff76 bl a0018544 <_Thread_Disable_dispatch> <== NOT EXECUTED _Thread_Set_state( ts->thread, STATES_DELAYING ); a0018768: e3a01008 mov r1, #8 <== NOT EXECUTED a001876c: e5940000 ldr r0, [r4] <== NOT EXECUTED a0018770: eb000e8b bl a001c1a4 <_Thread_Set_state> <== NOT EXECUTED _Timer_server_Reset_interval_system_watchdog( ts ); a0018774: e1a00004 mov r0, r4 <== NOT EXECUTED a0018778: ebffff77 bl a001855c <_Timer_server_Reset_interval_system_watchdog><== NOT EXECUTED _Timer_server_Reset_tod_system_watchdog( ts ); a001877c: e1a00004 mov r0, r4 <== NOT EXECUTED a0018780: ebffff89 bl a00185ac <_Timer_server_Reset_tod_system_watchdog><== NOT EXECUTED _Thread_Enable_dispatch(); a0018784: eb000c65 bl a001b920 <_Thread_Enable_dispatch> <== NOT EXECUTED ts->active = true; a0018788: e3a03001 mov r3, #1 <== NOT EXECUTED a001878c: 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 ); a0018790: e2840008 add r0, r4, #8 <== NOT EXECUTED a0018794: eb0010a6 bl a001ca34 <_Watchdog_Remove> <== NOT EXECUTED static void _Timer_server_Stop_tod_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog ); a0018798: e2840040 add r0, r4, #64 ; 0x40 <== NOT EXECUTED a001879c: eb0010a4 bl a001ca34 <_Watchdog_Remove> <== NOT EXECUTED a00187a0: eaffffa5 b a001863c <_Timer_server_Body+0x40> <== NOT EXECUTED =============================================================================== a001855c <_Timer_server_Reset_interval_system_watchdog>: } static void _Timer_server_Reset_interval_system_watchdog( Timer_server_Control *ts ) { a001855c: 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 ); a0018560: e2805008 add r5, r0, #8 <== NOT EXECUTED } static void _Timer_server_Reset_interval_system_watchdog( Timer_server_Control *ts ) { a0018564: 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 ); a0018568: e1a00005 mov r0, r5 <== NOT EXECUTED a001856c: eb001130 bl a001ca34 <_Watchdog_Remove> <== NOT EXECUTED { ISR_Level level; _Timer_server_Stop_interval_system_watchdog( ts ); _ISR_Disable( level ); a0018570: ebffffef bl a0018534 <== NOT EXECUTED initialized = false; } #endif return status; } a0018574: 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 ); a0018578: 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 ) ) { a001857c: e1530002 cmp r3, r2 <== NOT EXECUTED a0018580: 0a000006 beq a00185a0 <_Timer_server_Reset_interval_system_watchdog+0x44><== NOT EXECUTED Watchdog_Interval delta_interval = a0018584: e5933010 ldr r3, [r3, #16] <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a0018588: e129f000 msr CPSR_fc, r0 <== NOT EXECUTED ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); a001858c: e59f0014 ldr r0, [pc, #20] ; a00185a8 <_Timer_server_Reset_interval_system_watchdog+0x4c><== NOT EXECUTED a0018590: e1a01005 mov r1, r5 <== NOT EXECUTED Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; a0018594: e5843014 str r3, [r4, #20] <== NOT EXECUTED delta_interval ); } else { _ISR_Enable( level ); } } a0018598: e8bd4030 pop {r4, r5, lr} <== NOT EXECUTED _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); a001859c: ea0010cc b a001c8d4 <_Watchdog_Insert> <== NOT EXECUTED a00185a0: e129f000 msr CPSR_fc, r0 <== NOT EXECUTED a00185a4: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED =============================================================================== a00185ac <_Timer_server_Reset_tod_system_watchdog>: } static void _Timer_server_Reset_tod_system_watchdog( Timer_server_Control *ts ) { a00185ac: 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 ); a00185b0: e2805040 add r5, r0, #64 ; 0x40 <== NOT EXECUTED } static void _Timer_server_Reset_tod_system_watchdog( Timer_server_Control *ts ) { a00185b4: 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 ); a00185b8: e1a00005 mov r0, r5 <== NOT EXECUTED a00185bc: eb00111c bl a001ca34 <_Watchdog_Remove> <== NOT EXECUTED { ISR_Level level; _Timer_server_Stop_tod_system_watchdog( ts ); _ISR_Disable( level ); a00185c0: ebffffdb bl a0018534 <== NOT EXECUTED initialized = false; } #endif return status; } a00185c4: e5943068 ldr r3, [r4, #104] ; 0x68 <== NOT EXECUTED a00185c8: 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 ) ) { a00185cc: e1530002 cmp r3, r2 <== NOT EXECUTED a00185d0: 0a000006 beq a00185f0 <_Timer_server_Reset_tod_system_watchdog+0x44><== NOT EXECUTED Watchdog_Interval delta_interval = a00185d4: e5933010 ldr r3, [r3, #16] <== NOT EXECUTED a00185d8: e129f000 msr CPSR_fc, r0 <== NOT EXECUTED ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog ); a00185dc: e59f0014 ldr r0, [pc, #20] ; a00185f8 <_Timer_server_Reset_tod_system_watchdog+0x4c><== NOT EXECUTED a00185e0: e1a01005 mov r1, r5 <== NOT EXECUTED Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; a00185e4: e584304c str r3, [r4, #76] ; 0x4c <== NOT EXECUTED delta_interval ); } else { _ISR_Enable( level ); } } a00185e8: e8bd4030 pop {r4, r5, lr} <== NOT EXECUTED _Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog ); a00185ec: ea0010b8 b a001c8d4 <_Watchdog_Insert> <== NOT EXECUTED a00185f0: e129f000 msr CPSR_fc, r0 <== NOT EXECUTED a00185f4: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED =============================================================================== a00187ac <_Timer_server_Schedule_operation_method>: static void _Timer_server_Schedule_operation_method( Timer_server_Control *ts, Timer_Control *timer ) { a00187ac: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED if ( ts->insert_chain == NULL ) { a00187b0: e5906078 ldr r6, [r0, #120] ; 0x78 <== NOT EXECUTED static void _Timer_server_Schedule_operation_method( Timer_server_Control *ts, Timer_Control *timer ) { a00187b4: e1a04000 mov r4, r0 <== NOT EXECUTED a00187b8: e1a05001 mov r5, r1 <== NOT EXECUTED if ( ts->insert_chain == NULL ) { a00187bc: e3560000 cmp r6, #0 <== NOT EXECUTED a00187c0: 1a00003a bne a00188b0 <_Timer_server_Schedule_operation_method+0x104><== NOT EXECUTED * is the reference point for the delta chain. Thus if we do not update the * reference point we have to add DT to the initial delta of the watchdog * being inserted. This could result in an integer overflow. */ _Thread_Disable_dispatch(); a00187c4: ebffff5e bl a0018544 <_Thread_Disable_dispatch> <== NOT EXECUTED if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) { a00187c8: e5953038 ldr r3, [r5, #56] ; 0x38 <== NOT EXECUTED a00187cc: e3530001 cmp r3, #1 <== NOT EXECUTED a00187d0: 1a000017 bne a0018834 <_Timer_server_Schedule_operation_method+0x88><== NOT EXECUTED /* * We have to advance the last known ticks value of the server and update * the watchdog chain accordingly. */ _ISR_Disable( level ); a00187d4: ebffff56 bl a0018534 <== NOT EXECUTED snapshot = _Watchdog_Ticks_since_boot; a00187d8: e59f30dc ldr r3, [pc, #220] ; a00188bc <_Timer_server_Schedule_operation_method+0x110><== 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 ); a00187dc: e284c034 add ip, r4, #52 ; 0x34 <== NOT EXECUTED a00187e0: e5932000 ldr r2, [r3] <== NOT EXECUTED initialized = false; } #endif return status; } a00187e4: e5943030 ldr r3, [r4, #48] ; 0x30 <== 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; last_snapshot = ts->Interval_watchdogs.last_snapshot; a00187e8: e594103c ldr r1, [r4, #60] ; 0x3c <== NOT EXECUTED if ( !_Chain_Is_empty( &ts->Interval_watchdogs.Chain ) ) { a00187ec: e153000c cmp r3, ip <== NOT EXECUTED a00187f0: 0a000004 beq a0018808 <_Timer_server_Schedule_operation_method+0x5c><== NOT EXECUTED /* * We assume adequate unsigned arithmetic here. */ delta = snapshot - last_snapshot; delta_interval = first_watchdog->delta_interval; a00187f4: e593c010 ldr ip, [r3, #16] <== NOT EXECUTED first_watchdog = _Watchdog_First( &ts->Interval_watchdogs.Chain ); /* * We assume adequate unsigned arithmetic here. */ delta = snapshot - last_snapshot; a00187f8: e0611002 rsb r1, r1, r2 <== NOT EXECUTED delta_interval = first_watchdog->delta_interval; if (delta_interval > delta) { a00187fc: e15c0001 cmp ip, r1 <== NOT EXECUTED delta_interval -= delta; a0018800: 8061600c rsbhi r6, r1, ip <== NOT EXECUTED } else { delta_interval = 0; } first_watchdog->delta_interval = delta_interval; a0018804: e5836010 str r6, [r3, #16] <== NOT EXECUTED } ts->Interval_watchdogs.last_snapshot = snapshot; a0018808: e584203c str r2, [r4, #60] ; 0x3c <== NOT EXECUTED a001880c: e129f000 msr CPSR_fc, r0 <== NOT EXECUTED _ISR_Enable( level ); _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker ); a0018810: e2840030 add r0, r4, #48 ; 0x30 <== NOT EXECUTED a0018814: e2851010 add r1, r5, #16 <== NOT EXECUTED a0018818: eb00102d bl a001c8d4 <_Watchdog_Insert> <== NOT EXECUTED if ( !ts->active ) { a001881c: e5d4307c ldrb r3, [r4, #124] ; 0x7c <== NOT EXECUTED a0018820: e3530000 cmp r3, #0 <== NOT EXECUTED a0018824: 1a00001f bne a00188a8 <_Timer_server_Schedule_operation_method+0xfc><== NOT EXECUTED _Timer_server_Reset_interval_system_watchdog( ts ); a0018828: e1a00004 mov r0, r4 <== NOT EXECUTED a001882c: ebffff4a bl a001855c <_Timer_server_Reset_interval_system_watchdog><== NOT EXECUTED a0018830: ea00001c b a00188a8 <_Timer_server_Schedule_operation_method+0xfc><== NOT EXECUTED } } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) { a0018834: e3530003 cmp r3, #3 <== NOT EXECUTED a0018838: 1a00001a bne a00188a8 <_Timer_server_Schedule_operation_method+0xfc><== NOT EXECUTED /* * We have to advance the last known seconds value of the server and update * the watchdog chain accordingly. */ _ISR_Disable( level ); a001883c: ebffff3c bl a0018534 <== NOT EXECUTED initialized = false; } #endif return status; } a0018840: e5942068 ldr r2, [r4, #104] ; 0x68 <== 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(); a0018844: e59f3074 ldr r3, [pc, #116] ; a00188c0 <_Timer_server_Schedule_operation_method+0x114><== NOT EXECUTED a0018848: e284c06c add ip, r4, #108 ; 0x6c <== NOT EXECUTED last_snapshot = ts->TOD_watchdogs.last_snapshot; if ( !_Chain_Is_empty( &ts->TOD_watchdogs.Chain ) ) { a001884c: e152000c cmp r2, ip <== 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(); a0018850: e5933000 ldr r3, [r3] <== NOT EXECUTED last_snapshot = ts->TOD_watchdogs.last_snapshot; a0018854: e5941074 ldr r1, [r4, #116] ; 0x74 <== NOT EXECUTED if ( !_Chain_Is_empty( &ts->TOD_watchdogs.Chain ) ) { a0018858: 0a000008 beq a0018880 <_Timer_server_Schedule_operation_method+0xd4><== NOT EXECUTED first_watchdog = _Watchdog_First( &ts->TOD_watchdogs.Chain ); delta_interval = first_watchdog->delta_interval; a001885c: e592c010 ldr ip, [r2, #16] <== NOT EXECUTED if ( snapshot > last_snapshot ) { a0018860: e1530001 cmp r3, r1 <== NOT EXECUTED } } else { /* * Someone put us in the past. */ delta = last_snapshot - snapshot; a0018864: 908c6001 addls r6, ip, r1 <== NOT EXECUTED delta_interval += delta; a0018868: 90636006 rsbls r6, r3, r6 <== NOT EXECUTED snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); last_snapshot = ts->TOD_watchdogs.last_snapshot; if ( !_Chain_Is_empty( &ts->TOD_watchdogs.Chain ) ) { first_watchdog = _Watchdog_First( &ts->TOD_watchdogs.Chain ); delta_interval = first_watchdog->delta_interval; if ( snapshot > last_snapshot ) { a001886c: 9a000002 bls a001887c <_Timer_server_Schedule_operation_method+0xd0><== NOT EXECUTED /* * We advanced in time. */ delta = snapshot - last_snapshot; a0018870: e0611003 rsb r1, r1, r3 <== NOT EXECUTED if (delta_interval > delta) { a0018874: e15c0001 cmp ip, r1 <== NOT EXECUTED delta_interval -= delta; a0018878: 8061600c rsbhi r6, r1, ip <== NOT EXECUTED * Someone put us in the past. */ delta = last_snapshot - snapshot; delta_interval += delta; } first_watchdog->delta_interval = delta_interval; a001887c: e5826010 str r6, [r2, #16] <== NOT EXECUTED } ts->TOD_watchdogs.last_snapshot = snapshot; a0018880: e5843074 str r3, [r4, #116] ; 0x74 <== NOT EXECUTED a0018884: e129f000 msr CPSR_fc, r0 <== NOT EXECUTED _ISR_Enable( level ); _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker ); a0018888: e2840068 add r0, r4, #104 ; 0x68 <== NOT EXECUTED a001888c: e2851010 add r1, r5, #16 <== NOT EXECUTED a0018890: eb00100f bl a001c8d4 <_Watchdog_Insert> <== NOT EXECUTED if ( !ts->active ) { a0018894: e5d4307c ldrb r3, [r4, #124] ; 0x7c <== NOT EXECUTED a0018898: e3530000 cmp r3, #0 <== NOT EXECUTED a001889c: 1a000001 bne a00188a8 <_Timer_server_Schedule_operation_method+0xfc><== NOT EXECUTED _Timer_server_Reset_tod_system_watchdog( ts ); a00188a0: e1a00004 mov r0, r4 <== NOT EXECUTED a00188a4: ebffff40 bl a00185ac <_Timer_server_Reset_tod_system_watchdog><== 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 ); } } a00188a8: e8bd4070 pop {r4, r5, r6, lr} <== NOT EXECUTED if ( !ts->active ) { _Timer_server_Reset_tod_system_watchdog( ts ); } } _Thread_Enable_dispatch(); a00188ac: ea000c1b b a001b920 <_Thread_Enable_dispatch> <== 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 ); a00188b0: e5900078 ldr r0, [r0, #120] ; 0x78 <== NOT EXECUTED } } a00188b4: e8bd4070 pop {r4, r5, r6, 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 ); a00188b8: ea0001f4 b a0019090 <_Chain_Append> <== NOT EXECUTED =============================================================================== a000c12c <_Timespec_Add_to>: uint32_t _Timespec_Add_to( struct timespec *time, const struct timespec *add ) { a000c12c: e1a03000 mov r3, r0 uint32_t seconds = add->tv_sec; /* Add the basics */ time->tv_sec += add->tv_sec; a000c130: e5932000 ldr r2, [r3] uint32_t _Timespec_Add_to( struct timespec *time, const struct timespec *add ) { uint32_t seconds = add->tv_sec; a000c134: e5910000 ldr r0, [r1] /* Add the basics */ time->tv_sec += add->tv_sec; time->tv_nsec += add->tv_nsec; a000c138: e593c004 ldr ip, [r3, #4] ) { uint32_t seconds = add->tv_sec; /* Add the basics */ time->tv_sec += add->tv_sec; a000c13c: e0822000 add r2, r2, r0 a000c140: e5832000 str r2, [r3] time->tv_nsec += add->tv_nsec; a000c144: e5912004 ldr r2, [r1, #4] a000c148: e08c2002 add r2, ip, r2 a000c14c: e5832004 str r2, [r3, #4] /* Now adjust it so nanoseconds is in range */ while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) { a000c150: e59fc02c ldr ip, [pc, #44] ; a000c184 <_Timespec_Add_to+0x58> a000c154: ea000006 b a000c174 <_Timespec_Add_to+0x48> time->tv_nsec -= TOD_NANOSECONDS_PER_SECOND; a000c158: e59f2028 ldr r2, [pc, #40] ; a000c188 <_Timespec_Add_to+0x5c><== NOT EXECUTED time->tv_sec++; seconds++; a000c15c: e2800001 add r0, r0, #1 <== NOT EXECUTED time->tv_sec += add->tv_sec; time->tv_nsec += add->tv_nsec; /* Now adjust it so nanoseconds is in range */ while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) { time->tv_nsec -= TOD_NANOSECONDS_PER_SECOND; a000c160: e0812002 add r2, r1, r2 <== NOT EXECUTED a000c164: e5832004 str r2, [r3, #4] <== NOT EXECUTED time->tv_sec++; a000c168: e5932000 ldr r2, [r3] <== NOT EXECUTED a000c16c: e2822001 add r2, r2, #1 <== NOT EXECUTED a000c170: e5832000 str r2, [r3] <== 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 ) { a000c174: e5931004 ldr r1, [r3, #4] a000c178: e151000c cmp r1, ip a000c17c: 8afffff5 bhi a000c158 <_Timespec_Add_to+0x2c> time->tv_sec++; seconds++; } return seconds; } a000c180: e12fff1e bx lr =============================================================================== a000dc3c <_Timespec_Divide>: const struct timespec *lhs, const struct timespec *rhs, uint32_t *ival_percentage, uint32_t *fval_percentage ) { a000dc3c: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED a000dc40: 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; a000dc44: e5912004 ldr r2, [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; a000dc48: e5917000 ldr r7, [r1] <== 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; a000dc4c: e590c000 ldr ip, [r0] <== NOT EXECUTED left += lhs->tv_nsec; a000dc50: e5906004 ldr r6, [r0, #4] <== NOT EXECUTED right = rhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; a000dc54: e59f0068 ldr r0, [pc, #104] ; a000dcc4 <_Timespec_Divide+0x88><== NOT EXECUTED const struct timespec *lhs, const struct timespec *rhs, uint32_t *ival_percentage, uint32_t *fval_percentage ) { a000dc58: e1a04003 mov r4, r3 <== 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; a000dc5c: e1a03fc2 asr r3, r2, #31 <== NOT EXECUTED a000dc60: e0e32790 smlal r2, r3, r0, r7 <== NOT EXECUTED if ( right == 0 ) { a000dc64: e1921003 orrs r1, r2, r3 <== NOT EXECUTED a000dc68: 1a000002 bne a000dc78 <_Timespec_Divide+0x3c> <== NOT EXECUTED *ival_percentage = 0; a000dc6c: e5851000 str r1, [r5] <== NOT EXECUTED *fval_percentage = 0; a000dc70: e5841000 str r1, [r4] <== NOT EXECUTED return; a000dc74: e8bd80f0 pop {r4, r5, r6, r7, pc} <== 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; a000dc78: e1a07fc6 asr r7, r6, #31 <== NOT EXECUTED a000dc7c: e0e76c90 smlal r6, r7, r0, ip <== NOT EXECUTED * Put it back in the timespec result. * * TODO: Rounding on the last digit of the fval. */ answer = (left * 100000) / right; a000dc80: e59fc040 ldr ip, [pc, #64] ; a000dcc8 <_Timespec_Divide+0x8c><== NOT EXECUTED a000dc84: e0810c96 umull r0, r1, r6, ip <== NOT EXECUTED a000dc88: e021179c mla r1, ip, r7, r1 <== NOT EXECUTED a000dc8c: eb003bf3 bl a001cc60 <__udivdi3> <== NOT EXECUTED *ival_percentage = answer / 1000; a000dc90: e3a02ffa mov r2, #1000 ; 0x3e8 <== NOT EXECUTED a000dc94: 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; a000dc98: e1a07000 mov r7, r0 <== NOT EXECUTED a000dc9c: e1a06001 mov r6, r1 <== NOT EXECUTED *ival_percentage = answer / 1000; a000dca0: eb003bee bl a001cc60 <__udivdi3> <== NOT EXECUTED *fval_percentage = answer % 1000; a000dca4: e1a01006 mov r1, r6 <== NOT EXECUTED * TODO: Rounding on the last digit of the fval. */ answer = (left * 100000) / right; *ival_percentage = answer / 1000; a000dca8: e5850000 str r0, [r5] <== NOT EXECUTED *fval_percentage = answer % 1000; a000dcac: e3a02ffa mov r2, #1000 ; 0x3e8 <== NOT EXECUTED a000dcb0: e1a00007 mov r0, r7 <== NOT EXECUTED a000dcb4: e3a03000 mov r3, #0 <== NOT EXECUTED a000dcb8: eb003cfa bl a001d0a8 <__umoddi3> <== NOT EXECUTED a000dcbc: e5840000 str r0, [r4] <== NOT EXECUTED a000dcc0: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED =============================================================================== a000dc2c <_Timespec_Divide_by_integer>: void _Timespec_Divide_by_integer( const struct timespec *time, uint32_t iterations, struct timespec *result ) { a000dc2c: e92d4070 push {r4, r5, r6, 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; a000dc30: e59fc06c ldr ip, [pc, #108] ; a000dca4 <_Timespec_Divide_by_integer+0x78><== NOT EXECUTED /* * For math simplicity just convert the timespec to nanoseconds * in a 64-bit integer. */ t = time->tv_sec; a000dc34: e590e000 ldr lr, [r0] <== NOT EXECUTED void _Timespec_Divide_by_integer( const struct timespec *time, uint32_t iterations, struct timespec *result ) { a000dc38: e1a03001 mov r3, r1 <== NOT EXECUTED a000dc3c: e1a04002 mov r4, r2 <== 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; a000dc40: e0821c9e umull r1, r2, lr, ip <== NOT EXECUTED /* * For math simplicity just convert the timespec to nanoseconds * in a 64-bit integer. */ t = time->tv_sec; a000dc44: e1a0500e mov r5, lr <== NOT EXECUTED a000dc48: e1a06fc5 asr r6, r5, #31 <== NOT EXECUTED t *= TOD_NANOSECONDS_PER_SECOND; t += time->tv_nsec; a000dc4c: 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; a000dc50: e022269c mla r2, ip, r6, r2 <== NOT EXECUTED /* * Divide to get nanoseconds per iteration */ t /= iterations; a000dc54: e0915000 adds r5, r1, r0 <== NOT EXECUTED a000dc58: e0a26fc0 adc r6, r2, r0, asr #31 <== NOT EXECUTED a000dc5c: e1a01006 mov r1, r6 <== NOT EXECUTED a000dc60: e1a02003 mov r2, r3 <== NOT EXECUTED a000dc64: e1a00005 mov r0, r5 <== NOT EXECUTED a000dc68: e3a03000 mov r3, #0 <== NOT EXECUTED a000dc6c: eb003a32 bl a001c53c <__udivdi3> <== NOT EXECUTED /* * Put it back in the timespec result */ result->tv_sec = t / TOD_NANOSECONDS_PER_SECOND; a000dc70: e59f202c ldr r2, [pc, #44] ; a000dca4 <_Timespec_Divide_by_integer+0x78><== NOT EXECUTED a000dc74: e3a03000 mov r3, #0 <== NOT EXECUTED /* * Divide to get nanoseconds per iteration */ t /= iterations; a000dc78: e1a06000 mov r6, r0 <== NOT EXECUTED a000dc7c: e1a05001 mov r5, r1 <== NOT EXECUTED /* * Put it back in the timespec result */ result->tv_sec = t / TOD_NANOSECONDS_PER_SECOND; a000dc80: eb003a2d bl a001c53c <__udivdi3> <== NOT EXECUTED result->tv_nsec = t % TOD_NANOSECONDS_PER_SECOND; a000dc84: e1a01005 mov r1, r5 <== NOT EXECUTED /* * Put it back in the timespec result */ result->tv_sec = t / TOD_NANOSECONDS_PER_SECOND; a000dc88: e5840000 str r0, [r4] <== NOT EXECUTED result->tv_nsec = t % TOD_NANOSECONDS_PER_SECOND; a000dc8c: e59f2010 ldr r2, [pc, #16] ; a000dca4 <_Timespec_Divide_by_integer+0x78><== NOT EXECUTED a000dc90: e1a00006 mov r0, r6 <== NOT EXECUTED a000dc94: e3a03000 mov r3, #0 <== NOT EXECUTED a000dc98: eb003b39 bl a001c984 <__umoddi3> <== NOT EXECUTED a000dc9c: e5840004 str r0, [r4, #4] <== NOT EXECUTED } a000dca0: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED =============================================================================== a00209ec <_Timespec_From_ticks>: struct timespec *time ) { uint32_t usecs; usecs = ticks * rtems_configuration_get_microseconds_per_tick(); a00209ec: e59f3038 ldr r3, [pc, #56] ; a0020a2c <_Timespec_From_ticks+0x40><== NOT EXECUTED void _Timespec_From_ticks( uint32_t ticks, struct timespec *time ) { a00209f0: e92d4030 push {r4, r5, lr} <== NOT EXECUTED uint32_t usecs; usecs = ticks * rtems_configuration_get_microseconds_per_tick(); a00209f4: e593500c ldr r5, [r3, #12] <== NOT EXECUTED void _Timespec_From_ticks( uint32_t ticks, struct timespec *time ) { a00209f8: e1a04001 mov r4, r1 <== NOT EXECUTED uint32_t usecs; usecs = ticks * rtems_configuration_get_microseconds_per_tick(); time->tv_sec = usecs / TOD_MICROSECONDS_PER_SECOND; a00209fc: e59f102c ldr r1, [pc, #44] ; a0020a30 <_Timespec_From_ticks+0x44><== NOT EXECUTED struct timespec *time ) { uint32_t usecs; usecs = ticks * rtems_configuration_get_microseconds_per_tick(); a0020a00: e0050590 mul r5, r0, r5 <== NOT EXECUTED time->tv_sec = usecs / TOD_MICROSECONDS_PER_SECOND; a0020a04: e1a00005 mov r0, r5 <== NOT EXECUTED a0020a08: ebfff68f bl a001e44c <__aeabi_uidiv> <== NOT EXECUTED time->tv_nsec = (usecs % TOD_MICROSECONDS_PER_SECOND) * a0020a0c: e59f101c ldr r1, [pc, #28] ; a0020a30 <_Timespec_From_ticks+0x44><== NOT EXECUTED { uint32_t usecs; usecs = ticks * rtems_configuration_get_microseconds_per_tick(); time->tv_sec = usecs / TOD_MICROSECONDS_PER_SECOND; a0020a10: e5840000 str r0, [r4] <== NOT EXECUTED time->tv_nsec = (usecs % TOD_MICROSECONDS_PER_SECOND) * a0020a14: e1a00005 mov r0, r5 <== NOT EXECUTED a0020a18: ebfff723 bl a001e6ac <__umodsi3> <== NOT EXECUTED a0020a1c: e3a03ffa mov r3, #1000 ; 0x3e8 <== NOT EXECUTED a0020a20: e0030390 mul r3, r0, r3 <== NOT EXECUTED a0020a24: e5843004 str r3, [r4, #4] <== NOT EXECUTED TOD_NANOSECONDS_PER_MICROSECOND; } a0020a28: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED =============================================================================== a000dca8 <_Timespec_Greater_than>: bool _Timespec_Greater_than( const struct timespec *lhs, const struct timespec *rhs ) { if ( lhs->tv_sec > rhs->tv_sec ) a000dca8: e5902000 ldr r2, [r0] <== NOT EXECUTED a000dcac: e5913000 ldr r3, [r1] <== NOT EXECUTED a000dcb0: e1520003 cmp r2, r3 <== NOT EXECUTED return true; a000dcb4: 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 ) a000dcb8: c12fff1e bxgt lr <== NOT EXECUTED return true; if ( lhs->tv_sec < rhs->tv_sec ) a000dcbc: ba000005 blt a000dcd8 <_Timespec_Greater_than+0x30> <== NOT EXECUTED #include #include #include bool _Timespec_Greater_than( a000dcc0: e5900004 ldr r0, [r0, #4] <== NOT EXECUTED a000dcc4: e5913004 ldr r3, [r1, #4] <== NOT EXECUTED a000dcc8: e1500003 cmp r0, r3 <== NOT EXECUTED a000dccc: d3a00000 movle r0, #0 <== NOT EXECUTED a000dcd0: c3a00001 movgt r0, #1 <== NOT EXECUTED a000dcd4: e12fff1e bx lr <== NOT EXECUTED { if ( lhs->tv_sec > rhs->tv_sec ) return true; if ( lhs->tv_sec < rhs->tv_sec ) return false; a000dcd8: e3a00000 mov r0, #0 <== NOT EXECUTED /* ASSERT: lhs->tv_sec == rhs->tv_sec */ if ( lhs->tv_nsec > rhs->tv_nsec ) return true; return false; } a000dcdc: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a0020a34 <_Timespec_Is_valid>: bool _Timespec_Is_valid( const struct timespec *time ) { if ( !time ) a0020a34: e3500000 cmp r0, #0 <== NOT EXECUTED a0020a38: 012fff1e bxeq lr <== NOT EXECUTED return false; if ( time->tv_sec < 0 ) a0020a3c: e5903000 ldr r3, [r0] <== NOT EXECUTED a0020a40: e3530000 cmp r3, #0 <== NOT EXECUTED return false; a0020a44: b3a00000 movlt r0, #0 <== NOT EXECUTED ) { if ( !time ) return false; if ( time->tv_sec < 0 ) a0020a48: b12fff1e bxlt lr <== NOT EXECUTED return false; if ( time->tv_nsec < 0 ) a0020a4c: e5903004 ldr r3, [r0, #4] <== NOT EXECUTED a0020a50: e3530000 cmp r3, #0 <== NOT EXECUTED a0020a54: ba000004 blt a0020a6c <_Timespec_Is_valid+0x38> <== NOT EXECUTED #include #include #include bool _Timespec_Is_valid( a0020a58: e59f0014 ldr r0, [pc, #20] ; a0020a74 <_Timespec_Is_valid+0x40><== NOT EXECUTED a0020a5c: e1530000 cmp r3, r0 <== NOT EXECUTED a0020a60: 83a00000 movhi r0, #0 <== NOT EXECUTED a0020a64: 93a00001 movls r0, #1 <== NOT EXECUTED a0020a68: e12fff1e bx lr <== NOT EXECUTED if ( time->tv_sec < 0 ) return false; if ( time->tv_nsec < 0 ) return false; a0020a6c: e3a00000 mov r0, #0 <== NOT EXECUTED if ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) return false; return true; } a0020a70: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000dce0 <_Timespec_Less_than>: bool _Timespec_Less_than( const struct timespec *lhs, const struct timespec *rhs ) { if ( lhs->tv_sec < rhs->tv_sec ) a000dce0: e5902000 ldr r2, [r0] <== NOT EXECUTED a000dce4: e5913000 ldr r3, [r1] <== NOT EXECUTED a000dce8: e1520003 cmp r2, r3 <== NOT EXECUTED return true; a000dcec: 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 ) a000dcf0: b12fff1e bxlt lr <== NOT EXECUTED return true; if ( lhs->tv_sec > rhs->tv_sec ) a000dcf4: ca000005 bgt a000dd10 <_Timespec_Less_than+0x30> <== NOT EXECUTED #include #include #include bool _Timespec_Less_than( a000dcf8: e5900004 ldr r0, [r0, #4] <== NOT EXECUTED a000dcfc: e5913004 ldr r3, [r1, #4] <== NOT EXECUTED a000dd00: e1500003 cmp r0, r3 <== NOT EXECUTED a000dd04: a3a00000 movge r0, #0 <== NOT EXECUTED a000dd08: b3a00001 movlt r0, #1 <== NOT EXECUTED a000dd0c: e12fff1e bx lr <== NOT EXECUTED { if ( lhs->tv_sec < rhs->tv_sec ) return true; if ( lhs->tv_sec > rhs->tv_sec ) return false; a000dd10: e3a00000 mov r0, #0 <== NOT EXECUTED /* ASSERT: lhs->tv_sec == rhs->tv_sec */ if ( lhs->tv_nsec < rhs->tv_nsec ) return true; return false; } a000dd14: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000c18c <_Timespec_Subtract>: const struct timespec *end, struct timespec *result ) { if (end->tv_nsec < start->tv_nsec) { a000c18c: e591c004 ldr ip, [r1, #4] <== NOT EXECUTED a000c190: e5903004 ldr r3, [r0, #4] <== NOT EXECUTED void _Timespec_Subtract( const struct timespec *start, const struct timespec *end, struct timespec *result ) { a000c194: e92d4010 push {r4, lr} <== NOT EXECUTED a000c198: e5914000 ldr r4, [r1] <== NOT EXECUTED a000c19c: e5901000 ldr r1, [r0] <== NOT EXECUTED if (end->tv_nsec < start->tv_nsec) { a000c1a0: e15c0003 cmp ip, r3 <== NOT EXECUTED result->tv_sec = end->tv_sec - start->tv_sec - 1; a000c1a4: b2444001 sublt r4, r4, #1 <== NOT EXECUTED a000c1a8: b0611004 rsblt r1, r1, r4 <== NOT EXECUTED a000c1ac: b5821000 strlt r1, [r2] <== NOT EXECUTED result->tv_nsec = (TOD_NANOSECONDS_PER_SECOND - start->tv_nsec) + end->tv_nsec; a000c1b0: b59f1018 ldrlt r1, [pc, #24] ; a000c1d0 <_Timespec_Subtract+0x44><== NOT EXECUTED } else { result->tv_sec = end->tv_sec - start->tv_sec; a000c1b4: a0611004 rsbge r1, r1, r4 <== NOT EXECUTED result->tv_nsec = end->tv_nsec - start->tv_nsec; a000c1b8: a063300c rsbge r3, r3, ip <== 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; a000c1bc: b08c1001 addlt r1, ip, r1 <== NOT EXECUTED a000c1c0: b0633001 rsblt r3, r3, r1 <== NOT EXECUTED } else { result->tv_sec = end->tv_sec - start->tv_sec; a000c1c4: a5821000 strge r1, [r2] <== NOT EXECUTED result->tv_nsec = end->tv_nsec - start->tv_nsec; a000c1c8: e5823004 str r3, [r2, #4] <== NOT EXECUTED a000c1cc: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a0020a78 <_Timespec_To_ticks>: */ uint32_t _Timespec_To_ticks( const struct timespec *time ) { a0020a78: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED uint32_t ticks; if ( (time->tv_sec == 0) && (time->tv_nsec == 0) ) a0020a7c: e5906000 ldr r6, [r0] <== NOT EXECUTED */ uint32_t _Timespec_To_ticks( const struct timespec *time ) { a0020a80: e1a05000 mov r5, r0 <== NOT EXECUTED uint32_t ticks; if ( (time->tv_sec == 0) && (time->tv_nsec == 0) ) a0020a84: e3560000 cmp r6, #0 <== NOT EXECUTED a0020a88: 1a000002 bne a0020a98 <_Timespec_To_ticks+0x20> <== NOT EXECUTED a0020a8c: e5900004 ldr r0, [r0, #4] <== NOT EXECUTED a0020a90: e3500000 cmp r0, #0 <== NOT EXECUTED a0020a94: 0a000009 beq a0020ac0 <_Timespec_To_ticks+0x48> <== NOT EXECUTED return 0; ticks = time->tv_sec * TOD_TICKS_PER_SECOND; a0020a98: eb00007f bl a0020c9c <== NOT EXECUTED ticks += time->tv_nsec / rtems_configuration_get_nanoseconds_per_tick(); a0020a9c: e59f3020 ldr r3, [pc, #32] ; a0020ac4 <_Timespec_To_ticks+0x4c><== NOT EXECUTED a0020aa0: 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; a0020aa4: e0040096 mul r4, r6, r0 <== NOT EXECUTED ticks += time->tv_nsec / rtems_configuration_get_nanoseconds_per_tick(); a0020aa8: e593300c ldr r3, [r3, #12] <== NOT EXECUTED a0020aac: e5950004 ldr r0, [r5, #4] <== NOT EXECUTED a0020ab0: e0010193 mul r1, r3, r1 <== NOT EXECUTED a0020ab4: ebfff664 bl a001e44c <__aeabi_uidiv> <== NOT EXECUTED if (ticks) a0020ab8: e0940000 adds r0, r4, r0 <== NOT EXECUTED return ticks; return 1; a0020abc: 03a00001 moveq r0, #1 <== NOT EXECUTED } a0020ac0: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED =============================================================================== a000d98c <_User_extensions_Remove_set>: #include void _User_extensions_Remove_set ( User_extensions_Control *the_extension ) { a000d98c: e92d4010 push {r4, lr} <== NOT EXECUTED a000d990: e1a04000 mov r4, r0 <== NOT EXECUTED _Chain_Extract( &the_extension->Node ); a000d994: ebfff691 bl a000b3e0 <_Chain_Extract> <== NOT EXECUTED /* * If a switch handler is present, remove it. */ if ( the_extension->Callouts.thread_switch != NULL ) a000d998: e5943024 ldr r3, [r4, #36] ; 0x24 <== NOT EXECUTED a000d99c: e3530000 cmp r3, #0 <== NOT EXECUTED a000d9a0: 0a000002 beq a000d9b0 <_User_extensions_Remove_set+0x24> <== NOT EXECUTED _Chain_Extract( &the_extension->Switch.Node ); a000d9a4: e2840008 add r0, r4, #8 <== NOT EXECUTED } a000d9a8: 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 ); a000d9ac: eafff68b b a000b3e0 <_Chain_Extract> <== NOT EXECUTED a000d9b0: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a000c278 <_User_extensions_Thread_begin>: #include void _User_extensions_Thread_begin ( Thread_Control *executing ) { a000c278: 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 ); } } a000c27c: e59f502c ldr r5, [pc, #44] ; a000c2b0 <_User_extensions_Thread_begin+0x38> #include void _User_extensions_Thread_begin ( Thread_Control *executing ) { a000c280: 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 ); } } a000c284: e4954004 ldr r4, [r5], #4 ) { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _Chain_First( &_User_extensions_List ); a000c288: ea000005 b a000c2a4 <_User_extensions_Thread_begin+0x2c> !_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 ) a000c28c: e5943028 ldr r3, [r4, #40] ; 0x28 a000c290: e3530000 cmp r3, #0 a000c294: 0a000001 beq a000c2a0 <_User_extensions_Thread_begin+0x28> (*the_extension->Callouts.thread_begin)( executing ); a000c298: e1a00006 mov r0, r6 <== NOT EXECUTED a000c29c: 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 ) { a000c2a0: e5944000 ldr r4, [r4] ) { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _Chain_First( &_User_extensions_List ); a000c2a4: e1540005 cmp r4, r5 a000c2a8: 1afffff7 bne a000c28c <_User_extensions_Thread_begin+0x14> the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_begin != NULL ) (*the_extension->Callouts.thread_begin)( executing ); } } a000c2ac: e8bd8070 pop {r4, r5, r6, pc} =============================================================================== a000c390 <_User_extensions_Thread_delete>: #include void _User_extensions_Thread_delete ( Thread_Control *the_thread ) { a000c390: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED (*the_extension->Callouts.thread_delete)( _Thread_Executing, the_thread ); } } a000c394: e59f6034 ldr r6, [pc, #52] ; a000c3d0 <_User_extensions_Thread_delete+0x40><== NOT EXECUTED #include void _User_extensions_Thread_delete ( Thread_Control *the_thread ) { a000c398: e1a07000 mov r7, r0 <== 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)( a000c39c: e59f5030 ldr r5, [pc, #48] ; a000c3d4 <_User_extensions_Thread_delete+0x44><== NOT EXECUTED _Thread_Executing, the_thread ); } } a000c3a0: e5964008 ldr r4, [r6, #8] <== NOT EXECUTED ) { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _Chain_Last( &_User_extensions_List ); a000c3a4: ea000006 b a000c3c4 <_User_extensions_Thread_delete+0x34> <== 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 ) a000c3a8: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED a000c3ac: e3530000 cmp r3, #0 <== NOT EXECUTED a000c3b0: 0a000002 beq a000c3c0 <_User_extensions_Thread_delete+0x30><== NOT EXECUTED (*the_extension->Callouts.thread_delete)( a000c3b4: e5950004 ldr r0, [r5, #4] <== NOT EXECUTED a000c3b8: e1a01007 mov r1, r7 <== NOT EXECUTED a000c3bc: 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 ) { a000c3c0: e5944004 ldr r4, [r4, #4] <== NOT EXECUTED ) { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _Chain_Last( &_User_extensions_List ); a000c3c4: e1540006 cmp r4, r6 <== NOT EXECUTED a000c3c8: 1afffff6 bne a000c3a8 <_User_extensions_Thread_delete+0x18><== NOT EXECUTED (*the_extension->Callouts.thread_delete)( _Thread_Executing, the_thread ); } } a000c3cc: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED =============================================================================== a000c2b4 <_User_extensions_Thread_exitted>: void _User_extensions_Thread_exitted ( Thread_Control *executing ) { a000c2b4: 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 ); } } a000c2b8: e59f502c ldr r5, [pc, #44] ; a000c2ec <_User_extensions_Thread_exitted+0x38> } void _User_extensions_Thread_exitted ( Thread_Control *executing ) { a000c2bc: 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 ); } } a000c2c0: e5954008 ldr r4, [r5, #8] ) { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _Chain_Last( &_User_extensions_List ); a000c2c4: ea000005 b a000c2e0 <_User_extensions_Thread_exitted+0x2c> !_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 ) a000c2c8: e594302c ldr r3, [r4, #44] ; 0x2c a000c2cc: e3530000 cmp r3, #0 a000c2d0: 0a000001 beq a000c2dc <_User_extensions_Thread_exitted+0x28> (*the_extension->Callouts.thread_exitted)( executing ); a000c2d4: e1a00006 mov r0, r6 <== NOT EXECUTED a000c2d8: 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 ) { a000c2dc: e5944004 ldr r4, [r4, #4] ) { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _Chain_Last( &_User_extensions_List ); a000c2e0: e1540005 cmp r4, r5 a000c2e4: 1afffff7 bne a000c2c8 <_User_extensions_Thread_exitted+0x14> the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_exitted != NULL ) (*the_extension->Callouts.thread_exitted)( executing ); } } a000c2e8: e8bd8070 pop {r4, r5, r6, pc} =============================================================================== a000d0fc <_User_extensions_Thread_restart>: #include void _User_extensions_Thread_restart ( Thread_Control *the_thread ) { a000d0fc: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED (*the_extension->Callouts.thread_restart)( _Thread_Executing, the_thread ); } } a000d100: e59f5034 ldr r5, [pc, #52] ; a000d13c <_User_extensions_Thread_restart+0x40><== NOT EXECUTED #include void _User_extensions_Thread_restart ( Thread_Control *the_thread ) { a000d104: e1a07000 mov r7, r0 <== 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)( a000d108: e59f6030 ldr r6, [pc, #48] ; a000d140 <_User_extensions_Thread_restart+0x44><== NOT EXECUTED _Thread_Executing, the_thread ); } } a000d10c: e4954004 ldr r4, [r5], #4 <== NOT EXECUTED ) { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _Chain_First( &_User_extensions_List ); a000d110: ea000006 b a000d130 <_User_extensions_Thread_restart+0x34> <== 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 ) a000d114: e594301c ldr r3, [r4, #28] <== NOT EXECUTED a000d118: e3530000 cmp r3, #0 <== NOT EXECUTED a000d11c: 0a000002 beq a000d12c <_User_extensions_Thread_restart+0x30><== NOT EXECUTED (*the_extension->Callouts.thread_restart)( a000d120: e5960004 ldr r0, [r6, #4] <== NOT EXECUTED a000d124: e1a01007 mov r1, r7 <== NOT EXECUTED a000d128: 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 ) { a000d12c: e5944000 ldr r4, [r4] <== NOT EXECUTED ) { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _Chain_First( &_User_extensions_List ); a000d130: e1540005 cmp r4, r5 <== NOT EXECUTED a000d134: 1afffff6 bne a000d114 <_User_extensions_Thread_restart+0x18><== NOT EXECUTED (*the_extension->Callouts.thread_restart)( _Thread_Executing, the_thread ); } } a000d138: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED =============================================================================== a000c420 <_User_extensions_Thread_switch>: void _User_extensions_Thread_switch ( Thread_Control *executing, Thread_Control *heir ) { a000c420: 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 ); } } a000c424: e59f502c ldr r5, [pc, #44] ; a000c458 <_User_extensions_Thread_switch+0x38><== NOT EXECUTED void _User_extensions_Thread_switch ( Thread_Control *executing, Thread_Control *heir ) { a000c428: e1a07000 mov r7, r0 <== NOT EXECUTED a000c42c: e1a06001 mov r6, r1 <== NOT EXECUTED the_extension_switch = (User_extensions_Switch_control *) the_node; (*the_extension_switch->thread_switch)( executing, heir ); } } a000c430: 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 ); a000c434: ea000004 b a000c44c <_User_extensions_Thread_switch+0x2c> <== 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 ); a000c438: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED a000c43c: e1a00007 mov r0, r7 <== NOT EXECUTED a000c440: e1a01006 mov r1, r6 <== NOT EXECUTED a000c444: 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 ) { a000c448: 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 ); a000c44c: e1540005 cmp r4, r5 <== NOT EXECUTED a000c450: 1afffff8 bne a000c438 <_User_extensions_Thread_switch+0x18><== NOT EXECUTED the_extension_switch = (User_extensions_Switch_control *) the_node; (*the_extension_switch->thread_switch)( executing, heir ); } } a000c454: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED =============================================================================== a000dfdc <_Watchdog_Adjust>: void _Watchdog_Adjust( Chain_Control *header, Watchdog_Adjust_directions direction, Watchdog_Interval units ) { a000dfdc: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED a000dfe0: e1a04000 mov r4, r0 <== NOT EXECUTED a000dfe4: e1a05002 mov r5, r2 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000dfe8: e10f3000 mrs r3, CPSR <== NOT EXECUTED a000dfec: e3832080 orr r2, r3, #128 ; 0x80 <== NOT EXECUTED a000dff0: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED } } _ISR_Enable( level ); } a000dff4: e1a06000 mov r6, r0 <== NOT EXECUTED a000dff8: e4962004 ldr r2, [r6], #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 ) ) { a000dffc: e1520006 cmp r2, r6 <== NOT EXECUTED a000e000: 0a00001b beq a000e074 <_Watchdog_Adjust+0x98> <== NOT EXECUTED switch ( direction ) { a000e004: e3510000 cmp r1, #0 <== NOT EXECUTED if ( units < _Watchdog_First( header )->delta_interval ) { _Watchdog_First( header )->delta_interval -= units; break; } else { units -= _Watchdog_First( header )->delta_interval; _Watchdog_First( header )->delta_interval = 1; a000e008: 03a08001 moveq r8, #1 <== NOT EXECUTED * unmodified across that call. * * Till Straumann, 7/2003 */ if ( !_Chain_Is_empty( header ) ) { switch ( direction ) { a000e00c: 0a000016 beq a000e06c <_Watchdog_Adjust+0x90> <== NOT EXECUTED a000e010: e3510001 cmp r1, #1 <== NOT EXECUTED a000e014: 1a000016 bne a000e074 <_Watchdog_Adjust+0x98> <== NOT EXECUTED case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; a000e018: e5921010 ldr r1, [r2, #16] <== NOT EXECUTED a000e01c: e0815005 add r5, r1, r5 <== NOT EXECUTED a000e020: ea000004 b a000e038 <_Watchdog_Adjust+0x5c> <== NOT EXECUTED RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_First( Chain_Control *header ) { return ( (Watchdog_Control *) _Chain_First( header ) ); a000e024: e5942000 ldr r2, [r4] <== NOT EXECUTED break; case WATCHDOG_FORWARD: while ( units ) { if ( units < _Watchdog_First( header )->delta_interval ) { a000e028: e5927010 ldr r7, [r2, #16] <== NOT EXECUTED a000e02c: e1550007 cmp r5, r7 <== NOT EXECUTED a000e030: 2a000002 bcs a000e040 <_Watchdog_Adjust+0x64> <== NOT EXECUTED _Watchdog_First( header )->delta_interval -= units; a000e034: e0655007 rsb r5, r5, r7 <== NOT EXECUTED a000e038: e5825010 str r5, [r2, #16] <== NOT EXECUTED break; a000e03c: ea00000c b a000e074 <_Watchdog_Adjust+0x98> <== NOT EXECUTED } else { units -= _Watchdog_First( header )->delta_interval; _Watchdog_First( header )->delta_interval = 1; a000e040: e5828010 str r8, [r2, #16] <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000e044: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED _ISR_Enable( level ); _Watchdog_Tickle( header ); a000e048: e1a00004 mov r0, r4 <== NOT EXECUTED a000e04c: eb00008b bl a000e280 <_Watchdog_Tickle> <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000e050: e10f3000 mrs r3, CPSR <== NOT EXECUTED a000e054: e3832080 orr r2, r3, #128 ; 0x80 <== NOT EXECUTED a000e058: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED _ISR_Disable( level ); if ( _Chain_Is_empty( header ) ) a000e05c: e5942000 ldr r2, [r4] <== NOT EXECUTED a000e060: e1520006 cmp r2, r6 <== NOT EXECUTED a000e064: 0a000002 beq a000e074 <_Watchdog_Adjust+0x98> <== NOT EXECUTED while ( units ) { if ( units < _Watchdog_First( header )->delta_interval ) { _Watchdog_First( header )->delta_interval -= units; break; } else { units -= _Watchdog_First( header )->delta_interval; a000e068: e0675005 rsb r5, r7, r5 <== NOT EXECUTED switch ( direction ) { case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; break; case WATCHDOG_FORWARD: while ( units ) { a000e06c: e3550000 cmp r5, #0 <== NOT EXECUTED a000e070: 1affffeb bne a000e024 <_Watchdog_Adjust+0x48> <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000e074: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED } } _ISR_Enable( level ); } a000e078: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED =============================================================================== a001c828 <_Watchdog_Adjust_to_chain>: { Watchdog_Interval units = units_arg; ISR_Level level; Watchdog_Control *first; if ( units <= 0 ) { a001c828: e3510000 cmp r1, #0 <== NOT EXECUTED Chain_Control *header, Watchdog_Interval units_arg, Chain_Control *to_fire ) { a001c82c: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED Watchdog_Interval units = units_arg; ISR_Level level; Watchdog_Control *first; if ( units <= 0 ) { a001c830: 0a000026 beq a001c8d0 <_Watchdog_Adjust_to_chain+0xa8> <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a001c834: e10f5000 mrs r5, CPSR <== NOT EXECUTED a001c838: e3853080 orr r3, r5, #128 ; 0x80 <== NOT EXECUTED a001c83c: e129f003 msr CPSR_fc, r3 <== 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; a001c840: e3a08000 mov r8, #0 <== 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 ); a001c844: e2806004 add r6, r0, #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 ); a001c848: e2827004 add r7, r2, #4 <== NOT EXECUTED a001c84c: ea000001 b a001c858 <_Watchdog_Adjust_to_chain+0x30> <== NOT EXECUTED } _ISR_Disable( level ); while ( 1 ) { if ( units <= 0 ) { a001c850: e3510000 cmp r1, #0 <== NOT EXECUTED a001c854: 0a00001c beq a001c8cc <_Watchdog_Adjust_to_chain+0xa4> <== NOT EXECUTED break; } } _ISR_Enable( level ); } a001c858: e590c000 ldr ip, [r0] <== NOT EXECUTED while ( 1 ) { if ( units <= 0 ) { break; } if ( _Chain_Is_empty( header ) ) { a001c85c: e15c0006 cmp ip, r6 <== NOT EXECUTED a001c860: 0a000019 beq a001c8cc <_Watchdog_Adjust_to_chain+0xa4> <== 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 ) { a001c864: e59c4010 ldr r4, [ip, #16] <== NOT EXECUTED a001c868: e1a0300c mov r3, ip <== NOT EXECUTED a001c86c: e1510004 cmp r1, r4 <== NOT EXECUTED first->delta_interval -= units; a001c870: 30611004 rsbcc r1, r1, r4 <== NOT EXECUTED a001c874: 358c1010 strcc r1, [ip, #16] <== NOT EXECUTED break; a001c878: 3a000013 bcc a001c8cc <_Watchdog_Adjust_to_chain+0xa4> <== 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; a001c87c: e0641001 rsb r1, r4, r1 <== NOT EXECUTED first->delta_interval = 0; a001c880: e58c8010 str r8, [ip, #16] <== NOT EXECUTED { Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; a001c884: e8931010 ldm r3, {r4, ip} <== NOT EXECUTED next->previous = previous; a001c888: e584c004 str ip, [r4, #4] <== NOT EXECUTED previous->next = next; a001c88c: e58c4000 str r4, [ip] <== NOT EXECUTED Chain_Control *the_chain, Chain_Node *the_node ) { Chain_Node *tail = _Chain_Tail( the_chain ); Chain_Node *old_last = tail->previous; a001c890: e592c008 ldr ip, [r2, #8] <== NOT EXECUTED the_node->next = tail; a001c894: e5837000 str r7, [r3] <== NOT EXECUTED tail->previous = the_node; a001c898: e5823008 str r3, [r2, #8] <== NOT EXECUTED old_last->next = the_node; a001c89c: e58c3000 str r3, [ip] <== NOT EXECUTED the_node->previous = old_last; a001c8a0: e583c004 str ip, [r3, #4] <== NOT EXECUTED static inline void arm_interrupt_flash( uint32_t level ) { uint32_t arm_switch_reg; __asm__ volatile ( a001c8a4: e10f3000 mrs r3, CPSR <== NOT EXECUTED a001c8a8: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED a001c8ac: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED break; } } _ISR_Enable( level ); } a001c8b0: 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 ) ) a001c8b4: e1530006 cmp r3, r6 <== NOT EXECUTED a001c8b8: 0affffe4 beq a001c850 <_Watchdog_Adjust_to_chain+0x28> <== NOT EXECUTED break; first = _Watchdog_First( header ); if ( first->delta_interval != 0 ) a001c8bc: e593c010 ldr ip, [r3, #16] <== NOT EXECUTED a001c8c0: e35c0000 cmp ip, #0 <== NOT EXECUTED a001c8c4: 0affffee beq a001c884 <_Watchdog_Adjust_to_chain+0x5c> <== NOT EXECUTED a001c8c8: eaffffe0 b a001c850 <_Watchdog_Adjust_to_chain+0x28> <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a001c8cc: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED a001c8d0: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED =============================================================================== a000c45c <_Watchdog_Insert>: Watchdog_Control *after; uint32_t insert_isr_nest_level; Watchdog_Interval delta_interval; insert_isr_nest_level = _ISR_Nest_level; a000c45c: e59f30f4 ldr r3, [pc, #244] ; a000c558 <_Watchdog_Insert+0xfc><== NOT EXECUTED void _Watchdog_Insert( Chain_Control *header, Watchdog_Control *the_watchdog ) { a000c460: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED Watchdog_Control *after; uint32_t insert_isr_nest_level; Watchdog_Interval delta_interval; insert_isr_nest_level = _ISR_Nest_level; a000c464: e5934000 ldr r4, [r3] <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000c468: e10fc000 mrs ip, CPSR <== NOT EXECUTED a000c46c: e38c3080 orr r3, ip, #128 ; 0x80 <== NOT EXECUTED a000c470: 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 ) { a000c474: e5913008 ldr r3, [r1, #8] <== NOT EXECUTED a000c478: e3530000 cmp r3, #0 <== NOT EXECUTED a000c47c: 0a000000 beq a000c484 <_Watchdog_Insert+0x28> <== NOT EXECUTED _ISR_Enable( level ); a000c480: ea000032 b a000c550 <_Watchdog_Insert+0xf4> <== NOT EXECUTED return; } the_watchdog->state = WATCHDOG_BEING_INSERTED; a000c484: e3a03001 mov r3, #1 <== NOT EXECUTED a000c488: e5813008 str r3, [r1, #8] <== NOT EXECUTED _Watchdog_Sync_count++; a000c48c: e59f30c8 ldr r3, [pc, #200] ; a000c55c <_Watchdog_Insert+0x100><== NOT EXECUTED if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) { goto exit_insert; } if ( _Watchdog_Sync_level > insert_isr_nest_level ) { a000c490: e59f60c8 ldr r6, [pc, #200] ; a000c560 <_Watchdog_Insert+0x104><== NOT EXECUTED _ISR_Enable( level ); return; } the_watchdog->state = WATCHDOG_BEING_INSERTED; _Watchdog_Sync_count++; a000c494: e5932000 ldr r2, [r3] <== NOT EXECUTED if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) { goto exit_insert; } if ( _Watchdog_Sync_level > insert_isr_nest_level ) { a000c498: e1a07006 mov r7, r6 <== NOT EXECUTED _ISR_Enable( level ); return; } the_watchdog->state = WATCHDOG_BEING_INSERTED; _Watchdog_Sync_count++; a000c49c: e2822001 add r2, r2, #1 <== NOT EXECUTED a000c4a0: e5832000 str r2, [r3] <== NOT EXECUTED restart: delta_interval = the_watchdog->initial; a000c4a4: e591200c ldr r2, [r1, #12] <== NOT EXECUTED RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_First( Chain_Control *header ) { return ( (Watchdog_Control *) _Chain_First( header ) ); a000c4a8: e5903000 ldr r3, [r0] <== NOT EXECUTED for ( after = _Watchdog_First( header ) ; ; after = _Watchdog_Next( after ) ) { if ( delta_interval == 0 || !_Watchdog_Next( after ) ) a000c4ac: e3520000 cmp r2, #0 <== NOT EXECUTED a000c4b0: 0a000014 beq a000c508 <_Watchdog_Insert+0xac> <== NOT EXECUTED a000c4b4: e5935000 ldr r5, [r3] <== NOT EXECUTED a000c4b8: e3550000 cmp r5, #0 <== NOT EXECUTED a000c4bc: 0a000011 beq a000c508 <_Watchdog_Insert+0xac> <== NOT EXECUTED break; if ( delta_interval < after->delta_interval ) { a000c4c0: e5935010 ldr r5, [r3, #16] <== NOT EXECUTED a000c4c4: e1520005 cmp r2, r5 <== NOT EXECUTED after->delta_interval -= delta_interval; a000c4c8: 30625005 rsbcc r5, r2, r5 <== NOT EXECUTED a000c4cc: 35835010 strcc r5, [r3, #16] <== NOT EXECUTED break; a000c4d0: 3a00000c bcc a000c508 <_Watchdog_Insert+0xac> <== NOT EXECUTED static inline void arm_interrupt_flash( uint32_t level ) { uint32_t arm_switch_reg; __asm__ volatile ( a000c4d4: e10f8000 mrs r8, CPSR <== NOT EXECUTED a000c4d8: e129f00c msr CPSR_fc, ip <== NOT EXECUTED a000c4dc: e129f008 msr CPSR_fc, r8 <== NOT EXECUTED delta_interval -= after->delta_interval; _ISR_Flash( level ); if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) { a000c4e0: e5918008 ldr r8, [r1, #8] <== NOT EXECUTED a000c4e4: e3580001 cmp r8, #1 <== NOT EXECUTED a000c4e8: 1a000012 bne a000c538 <_Watchdog_Insert+0xdc> <== NOT EXECUTED goto exit_insert; } if ( _Watchdog_Sync_level > insert_isr_nest_level ) { a000c4ec: e5968000 ldr r8, [r6] <== NOT EXECUTED a000c4f0: e1580004 cmp r8, r4 <== NOT EXECUTED _Watchdog_Sync_level = insert_isr_nest_level; a000c4f4: 85874000 strhi r4, [r7] <== NOT EXECUTED goto restart; a000c4f8: 8affffe9 bhi a000c4a4 <_Watchdog_Insert+0x48> <== NOT EXECUTED if ( delta_interval < after->delta_interval ) { after->delta_interval -= delta_interval; break; } delta_interval -= after->delta_interval; a000c4fc: e0652002 rsb r2, r5, r2 <== NOT EXECUTED exit_insert: _Watchdog_Sync_level = insert_isr_nest_level; _Watchdog_Sync_count--; _ISR_Enable( level ); } a000c500: e5933000 ldr r3, [r3] <== NOT EXECUTED if ( _Watchdog_Sync_level > insert_isr_nest_level ) { _Watchdog_Sync_level = insert_isr_nest_level; goto restart; } } a000c504: eaffffe8 b a000c4ac <_Watchdog_Insert+0x50> <== NOT EXECUTED _Watchdog_Activate( the_watchdog ); the_watchdog->delta_interval = delta_interval; _Chain_Insert_unprotected( after->Node.previous, &the_watchdog->Node ); a000c508: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Watchdog_Activate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_ACTIVE; a000c50c: e3a00002 mov r0, #2 <== NOT EXECUTED } } _Watchdog_Activate( the_watchdog ); the_watchdog->delta_interval = delta_interval; a000c510: e5812010 str r2, [r1, #16] <== NOT EXECUTED a000c514: e5810008 str r0, [r1, #8] <== NOT EXECUTED ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; a000c518: e5932000 ldr r2, [r3] <== NOT EXECUTED Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; a000c51c: e5813004 str r3, [r1, #4] <== NOT EXECUTED before_node = after_node->next; after_node->next = the_node; a000c520: e5831000 str r1, [r3] <== NOT EXECUTED _Chain_Insert_unprotected( after->Node.previous, &the_watchdog->Node ); the_watchdog->start_time = _Watchdog_Ticks_since_boot; a000c524: e59f3038 ldr r3, [pc, #56] ; a000c564 <_Watchdog_Insert+0x108><== NOT EXECUTED the_node->next = before_node; before_node->previous = the_node; a000c528: 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; a000c52c: e5812000 str r2, [r1] <== NOT EXECUTED a000c530: e5933000 ldr r3, [r3] <== NOT EXECUTED a000c534: e5813014 str r3, [r1, #20] <== NOT EXECUTED exit_insert: _Watchdog_Sync_level = insert_isr_nest_level; a000c538: e59f3020 ldr r3, [pc, #32] ; a000c560 <_Watchdog_Insert+0x104><== NOT EXECUTED a000c53c: e5834000 str r4, [r3] <== NOT EXECUTED _Watchdog_Sync_count--; a000c540: e59f3014 ldr r3, [pc, #20] ; a000c55c <_Watchdog_Insert+0x100><== NOT EXECUTED a000c544: e5932000 ldr r2, [r3] <== NOT EXECUTED a000c548: e2422001 sub r2, r2, #1 <== NOT EXECUTED a000c54c: e5832000 str r2, [r3] <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000c550: e129f00c msr CPSR_fc, ip <== NOT EXECUTED a000c554: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED =============================================================================== a000c5bc <_Watchdog_Remove>: */ Watchdog_States _Watchdog_Remove( Watchdog_Control *the_watchdog ) { a000c5bc: e92d4010 push {r4, lr} <== NOT EXECUTED a000c5c0: e1a03000 mov r3, r0 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000c5c4: e10fc000 mrs ip, CPSR <== NOT EXECUTED a000c5c8: e38c2080 orr r2, ip, #128 ; 0x80 <== NOT EXECUTED a000c5cc: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED ISR_Level level; Watchdog_States previous_state; Watchdog_Control *next_watchdog; _ISR_Disable( level ); previous_state = the_watchdog->state; a000c5d0: e5900008 ldr r0, [r0, #8] <== NOT EXECUTED switch ( previous_state ) { a000c5d4: e3500001 cmp r0, #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; a000c5d8: 03a02000 moveq r2, #0 <== NOT EXECUTED a000c5dc: 05832008 streq r2, [r3, #8] <== NOT EXECUTED Watchdog_States previous_state; Watchdog_Control *next_watchdog; _ISR_Disable( level ); previous_state = the_watchdog->state; switch ( previous_state ) { a000c5e0: 0a000015 beq a000c63c <_Watchdog_Remove+0x80> <== NOT EXECUTED a000c5e4: 3a000014 bcc a000c63c <_Watchdog_Remove+0x80> <== NOT EXECUTED a000c5e8: e3500003 cmp r0, #3 <== NOT EXECUTED a000c5ec: 8a000012 bhi a000c63c <_Watchdog_Remove+0x80> <== NOT EXECUTED break; case WATCHDOG_ACTIVE: case WATCHDOG_REMOVE_IT: the_watchdog->state = WATCHDOG_INACTIVE; a000c5f0: e3a02000 mov r2, #0 <== NOT EXECUTED a000c5f4: e5832008 str r2, [r3, #8] <== NOT EXECUTED } the_watchdog->stop_time = _Watchdog_Ticks_since_boot; _ISR_Enable( level ); return( previous_state ); } a000c5f8: e5932000 ldr r2, [r3] <== NOT EXECUTED case WATCHDOG_REMOVE_IT: the_watchdog->state = WATCHDOG_INACTIVE; next_watchdog = _Watchdog_Next( the_watchdog ); if ( _Watchdog_Next(next_watchdog) ) a000c5fc: e5921000 ldr r1, [r2] <== NOT EXECUTED a000c600: e3510000 cmp r1, #0 <== NOT EXECUTED next_watchdog->delta_interval += the_watchdog->delta_interval; a000c604: 15924010 ldrne r4, [r2, #16] <== NOT EXECUTED a000c608: 15931010 ldrne r1, [r3, #16] <== NOT EXECUTED a000c60c: 10841001 addne r1, r4, r1 <== NOT EXECUTED a000c610: 15821010 strne r1, [r2, #16] <== NOT EXECUTED if ( _Watchdog_Sync_count ) a000c614: e59f1034 ldr r1, [pc, #52] ; a000c650 <_Watchdog_Remove+0x94><== NOT EXECUTED a000c618: e5911000 ldr r1, [r1] <== NOT EXECUTED a000c61c: e3510000 cmp r1, #0 <== NOT EXECUTED _Watchdog_Sync_level = _ISR_Nest_level; a000c620: 159f102c ldrne r1, [pc, #44] ; a000c654 <_Watchdog_Remove+0x98><== NOT EXECUTED a000c624: 15914000 ldrne r4, [r1] <== NOT EXECUTED a000c628: 159f1028 ldrne r1, [pc, #40] ; a000c658 <_Watchdog_Remove+0x9c><== NOT EXECUTED a000c62c: 15814000 strne r4, [r1] <== NOT EXECUTED { Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; a000c630: e5931004 ldr r1, [r3, #4] <== NOT EXECUTED next->previous = previous; a000c634: e5821004 str r1, [r2, #4] <== NOT EXECUTED previous->next = next; a000c638: e5812000 str r2, [r1] <== NOT EXECUTED _Chain_Extract_unprotected( &the_watchdog->Node ); break; } the_watchdog->stop_time = _Watchdog_Ticks_since_boot; a000c63c: e59f2018 ldr r2, [pc, #24] ; a000c65c <_Watchdog_Remove+0xa0><== NOT EXECUTED a000c640: e5922000 ldr r2, [r2] <== NOT EXECUTED a000c644: e5832018 str r2, [r3, #24] <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000c648: e129f00c msr CPSR_fc, ip <== NOT EXECUTED _ISR_Enable( level ); return( previous_state ); } a000c64c: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a000dacc <_Watchdog_Report>: void _Watchdog_Report( const char *name, Watchdog_Control *watch ) { a000dacc: e92d401f push {r0, r1, r2, r3, r4, lr} <== NOT EXECUTED a000dad0: e1a03001 mov r3, r1 <== NOT EXECUTED printk( a000dad4: e2501000 subs r1, r0, #0 <== NOT EXECUTED a000dad8: e593000c ldr r0, [r3, #12] <== NOT EXECUTED a000dadc: e58d3004 str r3, [sp, #4] <== NOT EXECUTED a000dae0: 059f1034 ldreq r1, [pc, #52] ; a000db1c <_Watchdog_Report+0x50><== NOT EXECUTED a000dae4: e58d0000 str r0, [sp] <== NOT EXECUTED a000dae8: e593001c ldr r0, [r3, #28] <== NOT EXECUTED a000daec: 01a02001 moveq r2, r1 <== NOT EXECUTED a000daf0: 159f2028 ldrne r2, [pc, #40] ; a000db20 <_Watchdog_Report+0x54><== NOT EXECUTED a000daf4: e58d0008 str r0, [sp, #8] <== NOT EXECUTED a000daf8: e5930020 ldr r0, [r3, #32] <== NOT EXECUTED a000dafc: e58d000c str r0, [sp, #12] <== NOT EXECUTED a000db00: e5930024 ldr r0, [r3, #36] ; 0x24 <== NOT EXECUTED a000db04: e58d0010 str r0, [sp, #16] <== NOT EXECUTED a000db08: e5933010 ldr r3, [r3, #16] <== NOT EXECUTED a000db0c: e59f0010 ldr r0, [pc, #16] ; a000db24 <_Watchdog_Report+0x58><== NOT EXECUTED a000db10: ebffe863 bl a0007ca4 <== NOT EXECUTED watch, watch->routine, watch->id, watch->user_data ); } a000db14: e28dd014 add sp, sp, #20 <== NOT EXECUTED a000db18: e8bd8000 pop {pc} <== NOT EXECUTED =============================================================================== a000da54 <_Watchdog_Report_chain>: void _Watchdog_Report_chain( const char *name, Chain_Control *header ) { a000da54: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED a000da58: e1a04000 mov r4, r0 <== NOT EXECUTED a000da5c: e1a05001 mov r5, r1 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000da60: e10f6000 mrs r6, CPSR <== NOT EXECUTED a000da64: e3863080 orr r3, r6, #128 ; 0x80 <== NOT EXECUTED a000da68: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED ISR_Level level; Chain_Node *node; _ISR_Disable( level ); printk( "Watchdog Chain: %s %p\n", name, header ); a000da6c: e59f004c ldr r0, [pc, #76] ; a000dac0 <_Watchdog_Report_chain+0x6c><== NOT EXECUTED a000da70: e1a02005 mov r2, r5 <== NOT EXECUTED a000da74: e1a01004 mov r1, r4 <== NOT EXECUTED a000da78: ebffe889 bl a0007ca4 <== NOT EXECUTED printk( "== end of %s \n", name ); } else { printk( "Chain is empty\n" ); } _ISR_Enable( level ); } a000da7c: e4957004 ldr r7, [r5], #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 ) ) { a000da80: e1570005 cmp r7, r5 <== NOT EXECUTED a000da84: 0a000009 beq a000dab0 <_Watchdog_Report_chain+0x5c> <== NOT EXECUTED node != _Chain_Tail(header) ; node = node->next ) { Watchdog_Control *watch = (Watchdog_Control *) node; _Watchdog_Report( NULL, watch ); a000da88: e1a01007 mov r1, r7 <== NOT EXECUTED a000da8c: e3a00000 mov r0, #0 <== NOT EXECUTED a000da90: eb00000d bl a000dacc <_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 ) a000da94: 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 ) ; a000da98: e1570005 cmp r7, r5 <== NOT EXECUTED a000da9c: 1afffff9 bne a000da88 <_Watchdog_Report_chain+0x34> <== NOT EXECUTED { Watchdog_Control *watch = (Watchdog_Control *) node; _Watchdog_Report( NULL, watch ); } printk( "== end of %s \n", name ); a000daa0: e59f001c ldr r0, [pc, #28] ; a000dac4 <_Watchdog_Report_chain+0x70><== NOT EXECUTED a000daa4: e1a01004 mov r1, r4 <== NOT EXECUTED a000daa8: ebffe87d bl a0007ca4 <== NOT EXECUTED a000daac: ea000001 b a000dab8 <_Watchdog_Report_chain+0x64> <== NOT EXECUTED } else { printk( "Chain is empty\n" ); a000dab0: e59f0010 ldr r0, [pc, #16] ; a000dac8 <_Watchdog_Report_chain+0x74><== NOT EXECUTED a000dab4: ebffe87a bl a0007ca4 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000dab8: e129f006 msr CPSR_fc, r6 <== NOT EXECUTED } _ISR_Enable( level ); } a000dabc: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED =============================================================================== a000c660 <_Watchdog_Tickle>: */ void _Watchdog_Tickle( Chain_Control *header ) { a000c660: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED a000c664: e1a05000 mov r5, r0 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000c668: e10f7000 mrs r7, CPSR <== NOT EXECUTED a000c66c: e3873080 orr r3, r7, #128 ; 0x80 <== NOT EXECUTED a000c670: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED } while ( !_Chain_Is_empty( header ) && (the_watchdog->delta_interval == 0) ); leave: _ISR_Enable(level); } a000c674: e1a04000 mov r4, r0 <== NOT EXECUTED a000c678: e4943004 ldr r3, [r4], #4 <== NOT EXECUTED * volatile data - till, 2003/7 */ _ISR_Disable( level ); if ( _Chain_Is_empty( header ) ) a000c67c: e1530004 cmp r3, r4 <== NOT EXECUTED a000c680: 0a000019 beq a000c6ec <_Watchdog_Tickle+0x8c> <== 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) { a000c684: e5932010 ldr r2, [r3, #16] <== NOT EXECUTED RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_First( Chain_Control *header ) { return ( (Watchdog_Control *) _Chain_First( header ) ); a000c688: e1a06003 mov r6, r3 <== NOT EXECUTED a000c68c: e3520000 cmp r2, #0 <== NOT EXECUTED a000c690: 0a000003 beq a000c6a4 <_Watchdog_Tickle+0x44> <== NOT EXECUTED the_watchdog->delta_interval--; a000c694: e2422001 sub r2, r2, #1 <== NOT EXECUTED a000c698: e5832010 str r2, [r3, #16] <== NOT EXECUTED if ( the_watchdog->delta_interval != 0 ) a000c69c: e3520000 cmp r2, #0 <== NOT EXECUTED a000c6a0: 1a000011 bne a000c6ec <_Watchdog_Tickle+0x8c> <== NOT EXECUTED goto leave; } do { watchdog_state = _Watchdog_Remove( the_watchdog ); a000c6a4: e1a00006 mov r0, r6 <== NOT EXECUTED a000c6a8: ebffffc3 bl a000c5bc <_Watchdog_Remove> <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000c6ac: e129f007 msr CPSR_fc, r7 <== NOT EXECUTED _ISR_Enable( level ); switch( watchdog_state ) { a000c6b0: e3500002 cmp r0, #2 <== NOT EXECUTED a000c6b4: 1a000003 bne a000c6c8 <_Watchdog_Tickle+0x68> <== NOT EXECUTED case WATCHDOG_ACTIVE: (*the_watchdog->routine)( a000c6b8: e596301c ldr r3, [r6, #28] <== NOT EXECUTED a000c6bc: e5960020 ldr r0, [r6, #32] <== NOT EXECUTED a000c6c0: e5961024 ldr r1, [r6, #36] ; 0x24 <== NOT EXECUTED a000c6c4: e12fff33 blx r3 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000c6c8: e10f7000 mrs r7, CPSR <== NOT EXECUTED a000c6cc: e3873080 orr r3, r7, #128 ; 0x80 <== NOT EXECUTED a000c6d0: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED } while ( !_Chain_Is_empty( header ) && (the_watchdog->delta_interval == 0) ); leave: _ISR_Enable(level); } a000c6d4: e5956000 ldr r6, [r5] <== NOT EXECUTED _ISR_Disable( level ); the_watchdog = _Watchdog_First( header ); } while ( !_Chain_Is_empty( header ) && (the_watchdog->delta_interval == 0) ); a000c6d8: e1560004 cmp r6, r4 <== NOT EXECUTED a000c6dc: 0a000002 beq a000c6ec <_Watchdog_Tickle+0x8c> <== NOT EXECUTED } _ISR_Disable( level ); the_watchdog = _Watchdog_First( header ); } while ( !_Chain_Is_empty( header ) && a000c6e0: e5963010 ldr r3, [r6, #16] <== NOT EXECUTED a000c6e4: e3530000 cmp r3, #0 <== NOT EXECUTED a000c6e8: eaffffec b a000c6a0 <_Watchdog_Tickle+0x40> <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000c6ec: e129f007 msr CPSR_fc, r7 <== NOT EXECUTED (the_watchdog->delta_interval == 0) ); leave: _ISR_Enable(level); } a000c6f0: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED =============================================================================== a000c77c <_Workspace_Allocate_or_fatal_error>: a000c77c: e3a02000 mov r2, #0 * _Workspace_Allocate_or_fatal_error */ void *_Workspace_Allocate_or_fatal_error( size_t size ) { a000c780: e1a01000 mov r1, r0 a000c784: e52de004 push {lr} ; (str lr, [sp, #-4]!) a000c788: e59f0018 ldr r0, [pc, #24] ; a000c7a8 <_Workspace_Allocate_or_fatal_error+0x2c> a000c78c: e1a03002 mov r3, r2 a000c790: eb0007a1 bl a000e61c <_Heap_Allocate_aligned_with_boundary> __builtin_return_address( 1 ), memory ); #endif if ( memory == NULL ) a000c794: e3500000 cmp r0, #0 a000c798: 149df004 popne {pc} ; (ldrne pc, [sp], #4) _Internal_error_Occurred( a000c79c: e3a01001 mov r1, #1 <== NOT EXECUTED a000c7a0: e3a02003 mov r2, #3 <== NOT EXECUTED a000c7a4: ebfff789 bl a000a5d0 <_Internal_error_Occurred> <== NOT EXECUTED =============================================================================== a000c6f4 <_Workspace_Handler_initialization>: * _Workspace_Handler_initialization */ void _Workspace_Handler_initialization(void) { uintptr_t memory_available = 0; void *starting_address = Configuration.work_space_start; a000c6f4: e59f3050 ldr r3, [pc, #80] ; a000c74c <_Workspace_Handler_initialization+0x58> /* * _Workspace_Handler_initialization */ void _Workspace_Handler_initialization(void) { a000c6f8: e92d4030 push {r4, r5, lr} uintptr_t memory_available = 0; void *starting_address = Configuration.work_space_start; a000c6fc: e5935000 ldr r5, [r3] uintptr_t size = Configuration.work_space_size; a000c700: e5934004 ldr r4, [r3, #4] if ( Configuration.do_zero_of_workspace ) a000c704: e5d33028 ldrb r3, [r3, #40] ; 0x28 a000c708: e3530000 cmp r3, #0 a000c70c: 0a000003 beq a000c720 <_Workspace_Handler_initialization+0x2c> memset( starting_address, 0, size ); a000c710: e1a00005 mov r0, r5 a000c714: e3a01000 mov r1, #0 a000c718: e1a02004 mov r2, r4 a000c71c: eb001110 bl a0010b64 memory_available = _Heap_Initialize( a000c720: e59f0028 ldr r0, [pc, #40] ; a000c750 <_Workspace_Handler_initialization+0x5c> a000c724: e1a01005 mov r1, r5 a000c728: e1a02004 mov r2, r4 a000c72c: e3a03008 mov r3, #8 a000c730: ebfff713 bl a000a384 <_Heap_Initialize> starting_address, size, CPU_HEAP_ALIGNMENT ); if ( memory_available == 0 ) a000c734: e3500000 cmp r0, #0 a000c738: 1a000002 bne a000c748 <_Workspace_Handler_initialization+0x54> _Internal_error_Occurred( a000c73c: e3a01001 mov r1, #1 <== NOT EXECUTED a000c740: e3a02002 mov r2, #2 <== NOT EXECUTED a000c744: ebfff7a1 bl a000a5d0 <_Internal_error_Occurred> <== NOT EXECUTED a000c748: e8bd8030 pop {r4, r5, pc} =============================================================================== a0004d88 : ARM_SWITCH_BACK : [arm_switch_reg] "=&r" (arm_switch_reg), [level] "=&r" (level) ); return level; } a0004d88: e10f0000 mrs r0, CPSR <== NOT EXECUTED a0004d8c: e3803080 orr r3, r0, #128 ; 0x80 <== NOT EXECUTED a0004d90: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED a0004d94: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a0010884 : rtems_name name, rtems_attribute attribute_set, uint32_t maximum_waiters, rtems_id *id ) { a0010884: e92d41f3 push {r0, r1, r4, r5, r6, r7, r8, lr} <== NOT EXECUTED Barrier_Control *the_barrier; CORE_barrier_Attributes the_attributes; if ( !rtems_is_name_valid( name ) ) a0010888: e2508000 subs r8, r0, #0 <== NOT EXECUTED rtems_name name, rtems_attribute attribute_set, uint32_t maximum_waiters, rtems_id *id ) { a001088c: e1a04001 mov r4, r1 <== NOT EXECUTED a0010890: e1a06003 mov r6, r3 <== NOT EXECUTED Barrier_Control *the_barrier; CORE_barrier_Attributes the_attributes; if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; a0010894: 03a00003 moveq r0, #3 <== NOT EXECUTED ) { Barrier_Control *the_barrier; CORE_barrier_Attributes the_attributes; if ( !rtems_is_name_valid( name ) ) a0010898: 0a000026 beq a0010938 <== NOT EXECUTED return RTEMS_INVALID_NAME; if ( !id ) a001089c: e3530000 cmp r3, #0 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; a00108a0: 03a00009 moveq r0, #9 <== NOT EXECUTED CORE_barrier_Attributes the_attributes; if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; if ( !id ) a00108a4: 0a000023 beq a0010938 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; /* Initialize core barrier attributes */ if ( _Attributes_Is_barrier_automatic( attribute_set ) ) { a00108a8: e3110010 tst r1, #16 <== NOT EXECUTED a00108ac: 0a000004 beq a00108c4 <== NOT EXECUTED the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE; a00108b0: e3a03000 mov r3, #0 <== NOT EXECUTED if ( maximum_waiters == 0 ) a00108b4: e1520003 cmp r2, r3 <== 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; a00108b8: e58d3000 str r3, [sp] <== NOT EXECUTED if ( maximum_waiters == 0 ) a00108bc: 1a000002 bne a00108cc <== NOT EXECUTED a00108c0: ea00001b b a0010934 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; } else the_attributes.discipline = CORE_BARRIER_MANUAL_RELEASE; a00108c4: e3a03001 mov r3, #1 <== NOT EXECUTED a00108c8: e58d3000 str r3, [sp] <== NOT EXECUTED a00108cc: e59f3068 ldr r3, [pc, #104] ; a001093c <== NOT EXECUTED the_attributes.maximum_count = maximum_waiters; a00108d0: e58d2004 str r2, [sp, #4] <== NOT EXECUTED a00108d4: e5932000 ldr r2, [r3] <== NOT EXECUTED a00108d8: e2822001 add r2, r2, #1 <== NOT EXECUTED a00108dc: 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 ); a00108e0: e59f7058 ldr r7, [pc, #88] ; a0010940 <== NOT EXECUTED a00108e4: e1a00007 mov r0, r7 <== NOT EXECUTED a00108e8: ebffeef0 bl a000c4b0 <_Objects_Allocate> <== NOT EXECUTED _Thread_Disable_dispatch(); /* prevents deletion */ the_barrier = _Barrier_Allocate(); if ( !the_barrier ) { a00108ec: e2505000 subs r5, r0, #0 <== NOT EXECUTED a00108f0: 1a000002 bne a0010900 <== NOT EXECUTED _Thread_Enable_dispatch(); a00108f4: ebfff314 bl a000d54c <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_TOO_MANY; a00108f8: e3a00005 mov r0, #5 <== NOT EXECUTED a00108fc: ea00000d b a0010938 <== NOT EXECUTED } the_barrier->attribute_set = attribute_set; _CORE_barrier_Initialize( &the_barrier->Barrier, &the_attributes ); a0010900: e2850014 add r0, r5, #20 <== NOT EXECUTED a0010904: e1a0100d mov r1, sp <== NOT EXECUTED if ( !the_barrier ) { _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } the_barrier->attribute_set = attribute_set; a0010908: e5854010 str r4, [r5, #16] <== NOT EXECUTED _CORE_barrier_Initialize( &the_barrier->Barrier, &the_attributes ); a001090c: eb00021c bl a0011184 <_CORE_barrier_Initialize> <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; a0010910: e597201c ldr r2, [r7, #28] <== NOT EXECUTED Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( a0010914: e5953008 ldr r3, [r5, #8] <== NOT EXECUTED a0010918: e1d510b8 ldrh r1, [r5, #8] <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; a001091c: e7825101 str r5, [r2, r1, lsl #2] <== NOT EXECUTED information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; a0010920: e585800c str r8, [r5, #12] <== NOT EXECUTED &_Barrier_Information, &the_barrier->Object, (Objects_Name) name ); *id = the_barrier->Object.id; a0010924: e5863000 str r3, [r6] <== NOT EXECUTED _Thread_Enable_dispatch(); a0010928: ebfff307 bl a000d54c <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a001092c: e3a00000 mov r0, #0 <== NOT EXECUTED a0010930: ea000000 b a0010938 <== 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; a0010934: e3a0000a mov r0, #10 <== NOT EXECUTED *id = the_barrier->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } a0010938: e8bd81fc pop {r2, r3, r4, r5, r6, r7, r8, pc} <== NOT EXECUTED =============================================================================== a0010944 : */ rtems_status_code rtems_barrier_delete( rtems_id id ) { a0010944: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED a0010948: e1a01000 mov r1, r0 <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Barrier_Control *) _Objects_Get( &_Barrier_Information, id, location ); a001094c: e1a0200d mov r2, sp <== NOT EXECUTED a0010950: e59f0048 ldr r0, [pc, #72] ; a00109a0 <== NOT EXECUTED a0010954: ebffeff4 bl a000c92c <_Objects_Get> <== NOT EXECUTED Barrier_Control *the_barrier; Objects_Locations location; the_barrier = _Barrier_Get( id, &location ); switch ( location ) { a0010958: e59d4000 ldr r4, [sp] <== NOT EXECUTED a001095c: e1a05000 mov r5, r0 <== NOT EXECUTED a0010960: e3540000 cmp r4, #0 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a0010964: 13a00004 movne r0, #4 <== NOT EXECUTED { Barrier_Control *the_barrier; Objects_Locations location; the_barrier = _Barrier_Get( id, &location ); switch ( location ) { a0010968: 1a00000b bne a001099c <== NOT EXECUTED case OBJECTS_LOCAL: _CORE_barrier_Flush( a001096c: e3a02002 mov r2, #2 <== NOT EXECUTED a0010970: e2850014 add r0, r5, #20 <== NOT EXECUTED a0010974: e1a01004 mov r1, r4 <== NOT EXECUTED a0010978: ebfff4a7 bl a000dc1c <_Thread_queue_Flush> <== NOT EXECUTED &the_barrier->Barrier, NULL, CORE_BARRIER_WAS_DELETED ); _Objects_Close( &_Barrier_Information, &the_barrier->Object ); a001097c: e59f001c ldr r0, [pc, #28] ; a00109a0 <== NOT EXECUTED a0010980: e1a01005 mov r1, r5 <== NOT EXECUTED a0010984: ebffeeeb bl a000c538 <_Objects_Close> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Barrier_Free ( Barrier_Control *the_barrier ) { _Objects_Free( &_Barrier_Information, &the_barrier->Object ); a0010988: e59f0010 ldr r0, [pc, #16] ; a00109a0 <== NOT EXECUTED a001098c: e1a01005 mov r1, r5 <== NOT EXECUTED a0010990: ebffef8d bl a000c7cc <_Objects_Free> <== NOT EXECUTED _Barrier_Free( the_barrier ); _Thread_Enable_dispatch(); a0010994: ebfff2ec bl a000d54c <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0010998: e1a00004 mov r0, r4 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a001099c: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED =============================================================================== a000a140 : rtems_status_code rtems_barrier_ident( rtems_name name, rtems_id *id ) { a000a140: e1a02000 mov r2, r0 <== NOT EXECUTED a000a144: e1a03001 mov r3, r1 <== NOT EXECUTED a000a148: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( a000a14c: e1a01002 mov r1, r2 <== NOT EXECUTED a000a150: e59f0010 ldr r0, [pc, #16] ; a000a168 <== NOT EXECUTED a000a154: e3e02102 mvn r2, #-2147483648 ; 0x80000000 <== NOT EXECUTED a000a158: eb000801 bl a000c164 <_Objects_Name_to_id_u32> <== NOT EXECUTED OBJECTS_SEARCH_LOCAL_NODE, id ); return _Status_Object_name_errors_to_status[ status ]; } a000a15c: e59f3008 ldr r3, [pc, #8] ; a000a16c <== NOT EXECUTED a000a160: e7930100 ldr r0, [r3, r0, lsl #2] <== NOT EXECUTED a000a164: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED =============================================================================== a00109e4 : rtems_status_code rtems_barrier_release( rtems_id id, uint32_t *released ) { a00109e4: e92d4071 push {r0, r4, r5, r6, lr} <== NOT EXECUTED Barrier_Control *the_barrier; Objects_Locations location; if ( !released ) a00109e8: e2516000 subs r6, r1, #0 <== NOT EXECUTED rtems_status_code rtems_barrier_release( rtems_id id, uint32_t *released ) { a00109ec: e1a05000 mov r5, r0 <== NOT EXECUTED Barrier_Control *the_barrier; Objects_Locations location; if ( !released ) return RTEMS_INVALID_ADDRESS; a00109f0: 03a00009 moveq r0, #9 <== NOT EXECUTED ) { Barrier_Control *the_barrier; Objects_Locations location; if ( !released ) a00109f4: 0a00000e beq a0010a34 <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Barrier_Control *) _Objects_Get( &_Barrier_Information, id, location ); a00109f8: e59f0038 ldr r0, [pc, #56] ; a0010a38 <== NOT EXECUTED a00109fc: e1a01005 mov r1, r5 <== NOT EXECUTED a0010a00: e1a0200d mov r2, sp <== NOT EXECUTED a0010a04: ebffefc8 bl a000c92c <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_barrier = _Barrier_Get( id, &location ); switch ( location ) { a0010a08: e59d4000 ldr r4, [sp] <== NOT EXECUTED a0010a0c: e3540000 cmp r4, #0 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a0010a10: 13a00004 movne r0, #4 <== NOT EXECUTED if ( !released ) return RTEMS_INVALID_ADDRESS; the_barrier = _Barrier_Get( id, &location ); switch ( location ) { a0010a14: 1a000006 bne a0010a34 <== NOT EXECUTED case OBJECTS_LOCAL: *released = _CORE_barrier_Release( &the_barrier->Barrier, id, NULL ); a0010a18: e1a01005 mov r1, r5 <== NOT EXECUTED a0010a1c: e1a02004 mov r2, r4 <== NOT EXECUTED a0010a20: e2800014 add r0, r0, #20 <== NOT EXECUTED a0010a24: eb0001de bl a00111a4 <_CORE_barrier_Release> <== NOT EXECUTED a0010a28: e5860000 str r0, [r6] <== NOT EXECUTED _Thread_Enable_dispatch(); a0010a2c: ebfff2c6 bl a000d54c <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0010a30: e1a00004 mov r0, r4 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a0010a34: e8bd8078 pop {r3, r4, r5, r6, pc} <== NOT EXECUTED =============================================================================== a0010a3c : rtems_status_code rtems_barrier_wait( rtems_id id, rtems_interval timeout ) { a0010a3c: e92d4033 push {r0, r1, r4, r5, lr} <== NOT EXECUTED a0010a40: e1a04000 mov r4, r0 <== NOT EXECUTED a0010a44: e1a05001 mov r5, r1 <== NOT EXECUTED a0010a48: e59f0048 ldr r0, [pc, #72] ; a0010a98 <== NOT EXECUTED a0010a4c: e1a01004 mov r1, r4 <== NOT EXECUTED a0010a50: e28d2004 add r2, sp, #4 <== NOT EXECUTED a0010a54: ebffefb4 bl a000c92c <_Objects_Get> <== NOT EXECUTED Barrier_Control *the_barrier; Objects_Locations location; the_barrier = _Barrier_Get( id, &location ); switch ( location ) { a0010a58: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED a0010a5c: e3530000 cmp r3, #0 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a0010a60: 13a00004 movne r0, #4 <== NOT EXECUTED { Barrier_Control *the_barrier; Objects_Locations location; the_barrier = _Barrier_Get( id, &location ); switch ( location ) { a0010a64: 1a00000a bne a0010a94 <== NOT EXECUTED case OBJECTS_LOCAL: _CORE_barrier_Wait( a0010a68: e2800014 add r0, r0, #20 <== NOT EXECUTED a0010a6c: e58d3000 str r3, [sp] <== NOT EXECUTED a0010a70: e1a01004 mov r1, r4 <== NOT EXECUTED a0010a74: e1a03005 mov r3, r5 <== NOT EXECUTED a0010a78: e3a02001 mov r2, #1 <== NOT EXECUTED a0010a7c: eb0001d4 bl a00111d4 <_CORE_barrier_Wait> <== NOT EXECUTED id, true, timeout, NULL ); _Thread_Enable_dispatch(); a0010a80: ebfff2b1 bl a000d54c <_Thread_Enable_dispatch> <== NOT EXECUTED return _Barrier_Translate_core_barrier_return_code( _Thread_Executing->Wait.return_code ); a0010a84: e59f3010 ldr r3, [pc, #16] ; a0010a9c <== NOT EXECUTED a0010a88: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED true, timeout, NULL ); _Thread_Enable_dispatch(); return _Barrier_Translate_core_barrier_return_code( a0010a8c: e5930034 ldr r0, [r3, #52] ; 0x34 <== NOT EXECUTED a0010a90: eb000427 bl a0011b34 <_Barrier_Translate_core_barrier_return_code><== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a0010a94: e8bd803c pop {r2, r3, r4, r5, pc} <== NOT EXECUTED =============================================================================== a000b118 : uint32_t the_class, uint32_t node, uint32_t index ) { return (( (Objects_Id) the_api ) << OBJECTS_API_START_BIT) | a000b118: e1a00c00 lsl r0, r0, #24 <== NOT EXECUTED a000b11c: e1800d81 orr r0, r0, r1, lsl #27 <== NOT EXECUTED (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) | a000b120: e1800003 orr r0, r0, r3 <== NOT EXECUTED uint32_t node, uint32_t index ) { return _Objects_Build_id( api, class, node, index ); } a000b124: e1800802 orr r0, r0, r2, lsl #16 <== NOT EXECUTED a000b128: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000b12c : char C1, char C2, char C3, char C4 ) { a000b12c: e1a01801 lsl r1, r1, #16 <== NOT EXECUTED return _Objects_Build_name( C1, C2, C3, C4 ); a000b130: e20118ff and r1, r1, #16711680 ; 0xff0000 <== NOT EXECUTED char C1, char C2, char C3, char C4 ) { a000b134: e1a02402 lsl r2, r2, #8 <== NOT EXECUTED return _Objects_Build_name( C1, C2, C3, C4 ); a000b138: e1810c00 orr r0, r1, r0, lsl #24 <== NOT EXECUTED a000b13c: e2022cff and r2, r2, #65280 ; 0xff00 <== NOT EXECUTED char C1, char C2, char C3, char C4 ) { a000b140: e20330ff and r3, r3, #255 ; 0xff <== NOT EXECUTED return _Objects_Build_name( C1, C2, C3, C4 ); a000b144: e1800002 orr r0, r0, r2 <== NOT EXECUTED } a000b148: e1800003 orr r0, r0, r3 <== NOT EXECUTED a000b14c: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000a19c : rtems_chain_control *chain, rtems_chain_node *node, rtems_id task, rtems_event_set events ) { a000a19c: e92d4030 push {r4, r5, lr} <== NOT EXECUTED a000a1a0: e1a04002 mov r4, r2 <== NOT EXECUTED a000a1a4: 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 ); a000a1a8: eb000128 bl a000a650 <_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 ) { a000a1ac: e3500000 cmp r0, #0 <== NOT EXECUTED a000a1b0: 0a000003 beq a000a1c4 <== NOT EXECUTED sc = rtems_event_send( task, events ); a000a1b4: e1a00004 mov r0, r4 <== NOT EXECUTED a000a1b8: e1a01005 mov r1, r5 <== NOT EXECUTED } return sc; } a000a1bc: 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 ); a000a1c0: eafffda5 b a000985c <== NOT EXECUTED } return sc; } a000a1c4: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED =============================================================================== a000a1c8 : rtems_chain_control *chain, rtems_id task, rtems_event_set events, rtems_chain_node **node ) { a000a1c8: e92d4030 push {r4, r5, lr} <== NOT EXECUTED a000a1cc: 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 ); a000a1d0: e1a01003 mov r1, r3 <== NOT EXECUTED a000a1d4: e1a05002 mov r5, r2 <== NOT EXECUTED a000a1d8: eb000140 bl a000a6e0 <_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 ) { a000a1dc: e3500000 cmp r0, #0 <== NOT EXECUTED a000a1e0: 0a000003 beq a000a1f4 <== NOT EXECUTED sc = rtems_event_send( task, events ); a000a1e4: e1a00004 mov r0, r4 <== NOT EXECUTED a000a1e8: e1a01005 mov r1, r5 <== NOT EXECUTED } return sc; } a000a1ec: 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 ); a000a1f0: eafffd99 b a000985c <== NOT EXECUTED } return sc; } a000a1f4: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED =============================================================================== a000a1f8 : rtems_chain_control *chain, rtems_event_set events, rtems_interval timeout, rtems_chain_node **node_ptr ) { a000a1f8: e92d45f1 push {r0, r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED a000a1fc: e1a07000 mov r7, r0 <== NOT EXECUTED a000a200: e1a06001 mov r6, r1 <== NOT EXECUTED a000a204: e1a05002 mov r5, r2 <== NOT EXECUTED a000a208: e1a0a003 mov sl, r3 <== NOT EXECUTED while ( sc == RTEMS_SUCCESSFUL && (node = rtems_chain_get( chain )) == NULL ) { rtems_event_set out; sc = rtems_event_receive( a000a20c: e1a0800d mov r8, sp <== NOT EXECUTED a000a210: ea000006 b a000a230 <== NOT EXECUTED a000a214: e1a00006 mov r0, r6 <== NOT EXECUTED a000a218: e1a01004 mov r1, r4 <== NOT EXECUTED a000a21c: e1a02005 mov r2, r5 <== NOT EXECUTED a000a220: e1a0300d mov r3, sp <== NOT EXECUTED a000a224: ebfffd30 bl a00096ec <== NOT EXECUTED ) { rtems_status_code sc = RTEMS_SUCCESSFUL; rtems_chain_node *node = NULL; while ( a000a228: e3500000 cmp r0, #0 <== NOT EXECUTED a000a22c: 1a000004 bne a000a244 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get( rtems_chain_control *the_chain ) { return _Chain_Get( the_chain ); a000a230: e1a00007 mov r0, r7 <== NOT EXECUTED a000a234: eb00013d bl a000a730 <_Chain_Get> <== NOT EXECUTED sc == RTEMS_SUCCESSFUL && (node = rtems_chain_get( chain )) == NULL a000a238: e2504000 subs r4, r0, #0 <== NOT EXECUTED a000a23c: 0afffff4 beq a000a214 <== NOT EXECUTED a000a240: e3a00000 mov r0, #0 <== NOT EXECUTED timeout, &out ); } *node_ptr = node; a000a244: e58a4000 str r4, [sl] <== NOT EXECUTED return sc; } a000a248: e8bd85f8 pop {r3, r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED =============================================================================== a000a24c : rtems_chain_control *chain, rtems_chain_node *node, rtems_id task, rtems_event_set events ) { a000a24c: e92d4030 push {r4, r5, lr} <== NOT EXECUTED a000a250: e1a04002 mov r4, r2 <== NOT EXECUTED a000a254: 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 ); a000a258: eb00014b bl a000a78c <_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) { a000a25c: e3500000 cmp r0, #0 <== NOT EXECUTED a000a260: 0a000003 beq a000a274 <== NOT EXECUTED sc = rtems_event_send( task, events ); a000a264: e1a00004 mov r0, r4 <== NOT EXECUTED a000a268: e1a01005 mov r1, r5 <== NOT EXECUTED } return sc; } a000a26c: 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 ); a000a270: eafffd79 b a000985c <== NOT EXECUTED } return sc; } a000a274: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED =============================================================================== a00152e0 : rtems_status_code rtems_clock_get( rtems_clock_get_options option, void *time_buffer ) { a00152e0: e92d4010 push {r4, lr} <== NOT EXECUTED if ( !time_buffer ) a00152e4: e2514000 subs r4, r1, #0 <== NOT EXECUTED a00152e8: 0a000018 beq a0015350 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( option == RTEMS_CLOCK_GET_TOD ) a00152ec: e3500000 cmp r0, #0 <== NOT EXECUTED a00152f0: 1a000002 bne a0015300 <== NOT EXECUTED return rtems_clock_get_tod( (rtems_time_of_day *)time_buffer ); a00152f4: 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; } a00152f8: 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 ); a00152fc: ea000031 b a00153c8 <== NOT EXECUTED if ( option == RTEMS_CLOCK_GET_SECONDS_SINCE_EPOCH ) a0015300: e3500001 cmp r0, #1 <== NOT EXECUTED a0015304: 1a000002 bne a0015314 <== NOT EXECUTED return rtems_clock_get_seconds_since_epoch((rtems_interval *)time_buffer); a0015308: 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; } a001530c: 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); a0015310: ea000012 b a0015360 <== NOT EXECUTED if ( option == RTEMS_CLOCK_GET_TICKS_SINCE_BOOT ) { a0015314: e3500002 cmp r0, #2 <== NOT EXECUTED a0015318: 1a000001 bne a0015324 <== NOT EXECUTED rtems_interval *interval = (rtems_interval *)time_buffer; *interval = rtems_clock_get_ticks_since_boot(); a001531c: eb000025 bl a00153b8 <== NOT EXECUTED a0015320: ea000002 b a0015330 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } if ( option == RTEMS_CLOCK_GET_TICKS_PER_SECOND ) { a0015324: e3500003 cmp r0, #3 <== NOT EXECUTED a0015328: 1a000003 bne a001533c <== NOT EXECUTED rtems_interval *interval = (rtems_interval *)time_buffer; *interval = rtems_clock_get_ticks_per_second(); a001532c: eb000019 bl a0015398 <== NOT EXECUTED a0015330: e5840000 str r0, [r4] <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0015334: e3a00000 mov r0, #0 <== NOT EXECUTED a0015338: e8bd8010 pop {r4, pc} <== NOT EXECUTED } if ( option == RTEMS_CLOCK_GET_TIME_VALUE ) a001533c: e3500004 cmp r0, #4 <== NOT EXECUTED a0015340: 1a000004 bne a0015358 <== NOT EXECUTED return rtems_clock_get_tod_timeval( (struct timeval *)time_buffer ); a0015344: e1a00004 mov r0, r4 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; } a0015348: 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 ); a001534c: ea00004f b a0015490 <== NOT EXECUTED rtems_clock_get_options option, void *time_buffer ) { if ( !time_buffer ) return RTEMS_INVALID_ADDRESS; a0015350: e3a00009 mov r0, #9 <== NOT EXECUTED a0015354: e8bd8010 pop {r4, pc} <== NOT EXECUTED } if ( option == RTEMS_CLOCK_GET_TIME_VALUE ) return rtems_clock_get_tod_timeval( (struct timeval *)time_buffer ); return RTEMS_INVALID_NUMBER; a0015358: e3a0000a mov r0, #10 <== NOT EXECUTED } a001535c: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a000a128 : rtems_status_code rtems_clock_get_seconds_since_epoch( rtems_interval *the_interval ) { if ( !the_interval ) a000a128: e3500000 cmp r0, #0 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; a000a12c: 03a00009 moveq r0, #9 <== NOT EXECUTED rtems_status_code rtems_clock_get_seconds_since_epoch( rtems_interval *the_interval ) { if ( !the_interval ) a000a130: 012fff1e bxeq lr <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !_TOD_Is_set ) a000a134: e59f301c ldr r3, [pc, #28] ; a000a158 <== NOT EXECUTED a000a138: e5d33000 ldrb r3, [r3] <== NOT EXECUTED a000a13c: e3530000 cmp r3, #0 <== NOT EXECUTED return RTEMS_NOT_DEFINED; *the_interval = _TOD_Seconds_since_epoch(); a000a140: 159f3014 ldrne r3, [pc, #20] ; a000a15c <== NOT EXECUTED { if ( !the_interval ) return RTEMS_INVALID_ADDRESS; if ( !_TOD_Is_set ) return RTEMS_NOT_DEFINED; a000a144: 03a0000b moveq r0, #11 <== NOT EXECUTED *the_interval = _TOD_Seconds_since_epoch(); a000a148: 15933000 ldrne r3, [r3] <== NOT EXECUTED a000a14c: 15803000 strne r3, [r0] <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000a150: 13a00000 movne r0, #0 <== NOT EXECUTED } a000a154: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a0008d60 : #include #include rtems_interval rtems_clock_get_ticks_per_second(void) { return TOD_MICROSECONDS_PER_SECOND / a0008d60: e59f3010 ldr r3, [pc, #16] ; a0008d78 <== NOT EXECUTED #include #include #include rtems_interval rtems_clock_get_ticks_per_second(void) { a0008d64: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED return TOD_MICROSECONDS_PER_SECOND / a0008d68: e593100c ldr r1, [r3, #12] <== NOT EXECUTED a0008d6c: e59f0008 ldr r0, [pc, #8] ; a0008d7c <== NOT EXECUTED a0008d70: eb002ad9 bl a00138dc <__aeabi_uidiv> <== NOT EXECUTED rtems_configuration_get_microseconds_per_tick(); } a0008d74: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED =============================================================================== a0008d80 : #include #include rtems_interval rtems_clock_get_ticks_since_boot(void) { return _Watchdog_Ticks_since_boot; a0008d80: e59f3004 ldr r3, [pc, #4] ; a0008d8c <== NOT EXECUTED a0008d84: e5930000 ldr r0, [r3] <== NOT EXECUTED } a0008d88: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000a190 : #include rtems_status_code rtems_clock_get_tod( rtems_time_of_day *time_buffer ) { a000a190: e92d4030 push {r4, r5, lr} <== NOT EXECUTED rtems_time_of_day *tmbuf = time_buffer; struct tm time; struct timeval now; if ( !time_buffer ) a000a194: e2504000 subs r4, r0, #0 <== NOT EXECUTED #include rtems_status_code rtems_clock_get_tod( rtems_time_of_day *time_buffer ) { a000a198: 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; a000a19c: 03a00009 moveq r0, #9 <== NOT EXECUTED { rtems_time_of_day *tmbuf = time_buffer; struct tm time; struct timeval now; if ( !time_buffer ) a000a1a0: 0a000028 beq a000a248 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !_TOD_Is_set ) a000a1a4: e59f30a4 ldr r3, [pc, #164] ; a000a250 <== NOT EXECUTED a000a1a8: e5d33000 ldrb r3, [r3] <== NOT EXECUTED a000a1ac: e3530000 cmp r3, #0 <== NOT EXECUTED return RTEMS_NOT_DEFINED; a000a1b0: 03a0000b moveq r0, #11 <== NOT EXECUTED struct timeval now; if ( !time_buffer ) return RTEMS_INVALID_ADDRESS; if ( !_TOD_Is_set ) a000a1b4: 0a000023 beq a000a248 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000a1b8: e10f5000 mrs r5, CPSR <== NOT EXECUTED a000a1bc: e3853080 orr r3, r5, #128 ; 0x80 <== NOT EXECUTED a000a1c0: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED ISR_Level level; struct timespec now; suseconds_t useconds; _ISR_Disable(level); _TOD_Get( &now ); a000a1c4: e28d0024 add r0, sp, #36 ; 0x24 <== NOT EXECUTED a000a1c8: eb000609 bl a000b9f4 <_TOD_Get> <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000a1cc: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED _ISR_Enable(level); useconds = (suseconds_t)now.tv_nsec; useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND; time->tv_sec = now.tv_sec; a000a1d0: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED _ISR_Disable(level); _TOD_Get( &now ); _ISR_Enable(level); useconds = (suseconds_t)now.tv_nsec; useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND; a000a1d4: e59d0028 ldr r0, [sp, #40] ; 0x28 <== NOT EXECUTED a000a1d8: e3a01ffa mov r1, #1000 ; 0x3e8 <== NOT EXECUTED time->tv_sec = now.tv_sec; a000a1dc: e58d302c str r3, [sp, #44] ; 0x2c <== NOT EXECUTED _ISR_Disable(level); _TOD_Get( &now ); _ISR_Enable(level); useconds = (suseconds_t)now.tv_nsec; useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND; a000a1e0: eb0044f5 bl a001b5bc <__aeabi_idiv> <== NOT EXECUTED /* Obtain the current time */ _TOD_Get_timeval( &now ); /* Split it into a closer format */ gmtime_r( &now.tv_sec, &time ); a000a1e4: e1a0100d mov r1, sp <== NOT EXECUTED time->tv_sec = now.tv_sec; time->tv_usec = useconds; a000a1e8: e58d0030 str r0, [sp, #48] ; 0x30 <== NOT EXECUTED a000a1ec: e28d002c add r0, sp, #44 ; 0x2c <== NOT EXECUTED a000a1f0: eb0020f0 bl a00125b8 <== NOT EXECUTED /* Now adjust it to the RTEMS format */ tmbuf->year = time.tm_year + 1900; a000a1f4: e59d3014 ldr r3, [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 / a000a1f8: 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; a000a1fc: e2833e76 add r3, r3, #1888 ; 0x760 <== NOT EXECUTED a000a200: e283300c add r3, r3, #12 <== NOT EXECUTED a000a204: e5843000 str r3, [r4] <== NOT EXECUTED tmbuf->month = time.tm_mon + 1; a000a208: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED a000a20c: e2833001 add r3, r3, #1 <== NOT EXECUTED a000a210: e5843004 str r3, [r4, #4] <== NOT EXECUTED tmbuf->day = time.tm_mday; a000a214: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED a000a218: e5843008 str r3, [r4, #8] <== NOT EXECUTED tmbuf->hour = time.tm_hour; a000a21c: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED a000a220: e584300c str r3, [r4, #12] <== NOT EXECUTED tmbuf->minute = time.tm_min; a000a224: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED a000a228: e5843010 str r3, [r4, #16] <== NOT EXECUTED tmbuf->second = time.tm_sec; a000a22c: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000a230: e5843014 str r3, [r4, #20] <== NOT EXECUTED tmbuf->ticks = now.tv_usec / a000a234: e59f3018 ldr r3, [pc, #24] ; a000a254 <== NOT EXECUTED a000a238: e593100c ldr r1, [r3, #12] <== NOT EXECUTED a000a23c: eb004498 bl a001b4a4 <__aeabi_uidiv> <== NOT EXECUTED a000a240: e5840018 str r0, [r4, #24] <== NOT EXECUTED rtems_configuration_get_microseconds_per_tick(); return RTEMS_SUCCESSFUL; a000a244: e3a00000 mov r0, #0 <== NOT EXECUTED } a000a248: e28dd034 add sp, sp, #52 ; 0x34 <== NOT EXECUTED a000a24c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED =============================================================================== a0015490 : #include rtems_status_code rtems_clock_get_tod_timeval( struct timeval *time ) { a0015490: e92d4033 push {r0, r1, r4, r5, lr} <== NOT EXECUTED if ( !time ) a0015494: e2504000 subs r4, r0, #0 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; a0015498: 03a00009 moveq r0, #9 <== NOT EXECUTED rtems_status_code rtems_clock_get_tod_timeval( struct timeval *time ) { if ( !time ) a001549c: 0a000011 beq a00154e8 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !_TOD_Is_set ) a00154a0: e59f3044 ldr r3, [pc, #68] ; a00154ec <== NOT EXECUTED a00154a4: e5d33000 ldrb r3, [r3] <== NOT EXECUTED a00154a8: e3530000 cmp r3, #0 <== NOT EXECUTED return RTEMS_NOT_DEFINED; a00154ac: 03a0000b moveq r0, #11 <== NOT EXECUTED ) { if ( !time ) return RTEMS_INVALID_ADDRESS; if ( !_TOD_Is_set ) a00154b0: 0a00000c beq a00154e8 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a00154b4: e10f5000 mrs r5, CPSR <== NOT EXECUTED a00154b8: e3853080 orr r3, r5, #128 ; 0x80 <== NOT EXECUTED a00154bc: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED ISR_Level level; struct timespec now; suseconds_t useconds; _ISR_Disable(level); _TOD_Get( &now ); a00154c0: e1a0000d mov r0, sp <== NOT EXECUTED a00154c4: eb0010e0 bl a001984c <_TOD_Get> <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a00154c8: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED _ISR_Enable(level); useconds = (suseconds_t)now.tv_nsec; useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND; time->tv_sec = now.tv_sec; a00154cc: e59d3000 ldr r3, [sp] <== NOT EXECUTED _ISR_Disable(level); _TOD_Get( &now ); _ISR_Enable(level); useconds = (suseconds_t)now.tv_nsec; useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND; a00154d0: e59d0004 ldr r0, [sp, #4] <== NOT EXECUTED a00154d4: e3a01ffa mov r1, #1000 ; 0x3e8 <== NOT EXECUTED time->tv_sec = now.tv_sec; a00154d8: e5843000 str r3, [r4] <== NOT EXECUTED _ISR_Disable(level); _TOD_Get( &now ); _ISR_Enable(level); useconds = (suseconds_t)now.tv_nsec; useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND; a00154dc: eb00612d bl a002d998 <__aeabi_idiv> <== NOT EXECUTED time->tv_sec = now.tv_sec; time->tv_usec = useconds; a00154e0: e5840004 str r0, [r4, #4] <== NOT EXECUTED return RTEMS_NOT_DEFINED; _TOD_Get_timeval( time ); return RTEMS_SUCCESSFUL; a00154e4: e3a00000 mov r0, #0 <== NOT EXECUTED } a00154e8: e8bd803c pop {r2, r3, r4, r5, pc} <== NOT EXECUTED =============================================================================== a0008fc4 : */ rtems_status_code rtems_clock_get_uptime( struct timespec *uptime ) { if ( !uptime ) a0008fc4: e3500000 cmp r0, #0 <== NOT EXECUTED * error code - if unsuccessful */ rtems_status_code rtems_clock_get_uptime( struct timespec *uptime ) { a0008fc8: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED if ( !uptime ) a0008fcc: 0a000002 beq a0008fdc <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _TOD_Get_uptime_as_timespec( uptime ); a0008fd0: eb000546 bl a000a4f0 <_TOD_Get_uptime_as_timespec> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0008fd4: e3a00000 mov r0, #0 <== NOT EXECUTED a0008fd8: 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; a0008fdc: e3a00009 mov r0, #9 <== NOT EXECUTED _TOD_Get_uptime_as_timespec( uptime ); return RTEMS_SUCCESSFUL; } a0008fe0: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED =============================================================================== a000a274 : */ rtems_status_code rtems_clock_set( rtems_time_of_day *time_buffer ) { a000a274: e92d4013 push {r0, r1, r4, lr} <== NOT EXECUTED struct timespec newtime; if ( !time_buffer ) a000a278: e2504000 subs r4, r0, #0 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; a000a27c: 03a00009 moveq r0, #9 <== NOT EXECUTED rtems_time_of_day *time_buffer ) { struct timespec newtime; if ( !time_buffer ) a000a280: 0a000015 beq a000a2dc <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( _TOD_Validate( time_buffer ) ) { a000a284: eb00004d bl a000a3c0 <_TOD_Validate> <== NOT EXECUTED a000a288: e3500000 cmp r0, #0 <== NOT EXECUTED _Thread_Disable_dispatch(); _TOD_Set( &newtime ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } return RTEMS_INVALID_CLOCK; a000a28c: 03a00014 moveq r0, #20 <== NOT EXECUTED struct timespec newtime; if ( !time_buffer ) return RTEMS_INVALID_ADDRESS; if ( _TOD_Validate( time_buffer ) ) { a000a290: 0a000011 beq a000a2dc <== NOT EXECUTED newtime.tv_sec = _TOD_To_seconds( time_buffer ); a000a294: e1a00004 mov r0, r4 <== NOT EXECUTED a000a298: eb000025 bl a000a334 <_TOD_To_seconds> <== NOT EXECUTED newtime.tv_nsec = time_buffer->ticks * a000a29c: e59f203c ldr r2, [pc, #60] ; a000a2e0 <== NOT EXECUTED a000a2a0: e5943018 ldr r3, [r4, #24] <== NOT EXECUTED if ( !time_buffer ) return RTEMS_INVALID_ADDRESS; if ( _TOD_Validate( time_buffer ) ) { newtime.tv_sec = _TOD_To_seconds( time_buffer ); a000a2a4: e58d0000 str r0, [sp] <== NOT EXECUTED newtime.tv_nsec = time_buffer->ticks * a000a2a8: e592200c ldr r2, [r2, #12] <== NOT EXECUTED a000a2ac: e0030392 mul r3, r2, r3 <== NOT EXECUTED a000a2b0: e3a02ffa mov r2, #1000 ; 0x3e8 <== NOT EXECUTED a000a2b4: e0030392 mul r3, r2, r3 <== NOT EXECUTED a000a2b8: e58d3004 str r3, [sp, #4] <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; a000a2bc: e59f3020 ldr r3, [pc, #32] ; a000a2e4 <== NOT EXECUTED a000a2c0: e5932000 ldr r2, [r3] <== NOT EXECUTED a000a2c4: e2822001 add r2, r2, #1 <== NOT EXECUTED a000a2c8: e5832000 str r2, [r3] <== NOT EXECUTED rtems_configuration_get_nanoseconds_per_tick(); _Thread_Disable_dispatch(); _TOD_Set( &newtime ); a000a2cc: e1a0000d mov r0, sp <== NOT EXECUTED a000a2d0: eb000604 bl a000bae8 <_TOD_Set> <== NOT EXECUTED _Thread_Enable_dispatch(); a000a2d4: eb000bbd bl a000d1d0 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000a2d8: e3a00000 mov r0, #0 <== NOT EXECUTED } return RTEMS_INVALID_CLOCK; } a000a2dc: e8bd801c pop {r2, r3, r4, pc} <== NOT EXECUTED =============================================================================== a0008d90 : */ rtems_status_code rtems_clock_set_nanoseconds_extension( rtems_nanoseconds_extension_routine routine ) { if ( !routine ) a0008d90: e3500000 cmp r0, #0 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _Watchdog_Nanoseconds_since_tick_handler = routine; a0008d94: 159f300c ldrne r3, [pc, #12] ; a0008da8 <== NOT EXECUTED rtems_status_code rtems_clock_set_nanoseconds_extension( rtems_nanoseconds_extension_routine routine ) { if ( !routine ) return RTEMS_INVALID_ADDRESS; a0008d98: 03a00009 moveq r0, #9 <== NOT EXECUTED _Watchdog_Nanoseconds_since_tick_handler = routine; a0008d9c: 15830000 strne r0, [r3] <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0008da0: 13a00000 movne r0, #0 <== NOT EXECUTED } a0008da4: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a0008dac : * * NOTE: This routine only works for leap-years through 2099. */ rtems_status_code rtems_clock_tick( void ) { a0008dac: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED _TOD_Tickle_ticks(); a0008db0: eb0004ed bl a000a16c <_TOD_Tickle_ticks> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Watchdog_Tickle_ticks( void ) { _Watchdog_Tickle( &_Watchdog_Ticks_chain ); a0008db4: e59f0030 ldr r0, [pc, #48] ; a0008dec <== NOT EXECUTED a0008db8: eb000e28 bl a000c660 <_Watchdog_Tickle> <== NOT EXECUTED _Watchdog_Tickle_ticks(); _Thread_Tickle_timeslice(); a0008dbc: eb000cbf bl a000c0c0 <_Thread_Tickle_timeslice> <== NOT EXECUTED * otherwise. */ RTEMS_INLINE_ROUTINE bool _Thread_Is_context_switch_necessary( void ) { return ( _Thread_Dispatch_necessary ); a0008dc0: e59f3028 ldr r3, [pc, #40] ; a0008df0 <== NOT EXECUTED a0008dc4: e5d33010 ldrb r3, [r3, #16] <== NOT EXECUTED if ( _Thread_Is_context_switch_necessary() && a0008dc8: e3530000 cmp r3, #0 <== NOT EXECUTED a0008dcc: 0a000004 beq a0008de4 <== NOT EXECUTED * otherwise. */ RTEMS_INLINE_ROUTINE bool _Thread_Is_dispatching_enabled( void ) { return ( _Thread_Dispatch_disable_level == 0 ); a0008dd0: e59f301c ldr r3, [pc, #28] ; a0008df4 <== NOT EXECUTED a0008dd4: e5933000 ldr r3, [r3] <== NOT EXECUTED a0008dd8: e3530000 cmp r3, #0 <== NOT EXECUTED a0008ddc: 1a000000 bne a0008de4 <== NOT EXECUTED _Thread_Is_dispatching_enabled() ) _Thread_Dispatch(); a0008de0: eb000a0a bl a000b610 <_Thread_Dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; } a0008de4: e3a00000 mov r0, #0 <== NOT EXECUTED a0008de8: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED =============================================================================== a000e3b4 : */ void rtems_debug_enable ( rtems_debug_control to_be_enabled ) { _Debug_Level |= to_be_enabled; a000e3b4: e59f300c ldr r3, [pc, #12] ; a000e3c8 <== NOT EXECUTED a000e3b8: e5932000 ldr r2, [r3] <== NOT EXECUTED a000e3bc: e1802002 orr r2, r0, r2 <== NOT EXECUTED a000e3c0: e5832000 str r2, [r3] <== NOT EXECUTED } a000e3c4: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000e3ec : */ bool rtems_debug_is_enabled( rtems_debug_control level ) { return (_Debug_Level & level) ? true : false; a000e3ec: e59f3010 ldr r3, [pc, #16] ; a000e404 <== NOT EXECUTED a000e3f0: e5933000 ldr r3, [r3] <== NOT EXECUTED a000e3f4: e1100003 tst r0, r3 <== NOT EXECUTED } a000e3f8: 03a00000 moveq r0, #0 <== NOT EXECUTED a000e3fc: 13a00001 movne r0, #1 <== NOT EXECUTED a000e400: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a0008df8 : rtems_event_set event_in, rtems_option option_set, rtems_interval ticks, rtems_event_set *event_out ) { a0008df8: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED RTEMS_API_Control *api; if ( !event_out ) a0008dfc: e2535000 subs r5, r3, #0 <== NOT EXECUTED a0008e00: 0a000010 beq a0008e48 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ]; a0008e04: e59f4044 ldr r4, [pc, #68] ; a0008e50 <== NOT EXECUTED if ( _Event_sets_Is_empty( event_in ) ) { a0008e08: 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 ]; a0008e0c: e5946004 ldr r6, [r4, #4] <== NOT EXECUTED a0008e10: e59660f4 ldr r6, [r6, #244] ; 0xf4 <== NOT EXECUTED if ( _Event_sets_Is_empty( event_in ) ) { a0008e14: 1a000002 bne a0008e24 <== NOT EXECUTED *event_out = api->pending_events; a0008e18: e5963000 ldr r3, [r6] <== NOT EXECUTED a0008e1c: e5853000 str r3, [r5] <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0008e20: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; a0008e24: e59fc028 ldr ip, [pc, #40] ; a0008e54 <== NOT EXECUTED a0008e28: e59ce000 ldr lr, [ip] <== NOT EXECUTED a0008e2c: e28ee001 add lr, lr, #1 <== NOT EXECUTED a0008e30: e58ce000 str lr, [ip] <== NOT EXECUTED } _Thread_Disable_dispatch(); _Event_Seize( event_in, option_set, ticks, event_out ); a0008e34: eb000007 bl a0008e58 <_Event_Seize> <== NOT EXECUTED _Thread_Enable_dispatch(); a0008e38: eb000a38 bl a000b720 <_Thread_Enable_dispatch> <== NOT EXECUTED return( _Thread_Executing->Wait.return_code ); a0008e3c: e5943004 ldr r3, [r4, #4] <== NOT EXECUTED a0008e40: e5930034 ldr r0, [r3, #52] ; 0x34 <== NOT EXECUTED a0008e44: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED ) { RTEMS_API_Control *api; if ( !event_out ) return RTEMS_INVALID_ADDRESS; a0008e48: 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 ); } a0008e4c: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED =============================================================================== a0008f68 : rtems_status_code rtems_event_send( rtems_id id, rtems_event_set event_in ) { a0008f68: e92d4011 push {r0, r4, lr} <== NOT EXECUTED a0008f6c: e1a04001 mov r4, r1 <== NOT EXECUTED register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; the_thread = _Thread_Get( id, &location ); a0008f70: e1a0100d mov r1, sp <== NOT EXECUTED a0008f74: eb0009f2 bl a000b744 <_Thread_Get> <== NOT EXECUTED switch ( location ) { a0008f78: e59d3000 ldr r3, [sp] <== NOT EXECUTED a0008f7c: e3530000 cmp r3, #0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a0008f80: 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 ) { a0008f84: 1a00000a bne a0008fb4 <== NOT EXECUTED case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; a0008f88: 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 ( a0008f8c: e10f2000 mrs r2, CPSR <== NOT EXECUTED a0008f90: e3821080 orr r1, r2, #128 ; 0x80 <== NOT EXECUTED a0008f94: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED ) { ISR_Level level; _ISR_Disable( level ); *the_event_set |= the_new_events; a0008f98: e5931000 ldr r1, [r3] <== NOT EXECUTED a0008f9c: e1814004 orr r4, r1, r4 <== NOT EXECUTED a0008fa0: e5834000 str r4, [r3] <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a0008fa4: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED _Event_sets_Post( event_in, &api->pending_events ); _Event_Surrender( the_thread ); a0008fa8: eb000002 bl a0008fb8 <_Event_Surrender> <== NOT EXECUTED _Thread_Enable_dispatch(); a0008fac: eb0009db bl a000b720 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0008fb0: e3a00000 mov r0, #0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a0008fb4: e8bd8018 pop {r3, r4, pc} <== NOT EXECUTED =============================================================================== a000b250 : rtems_status_code rtems_extension_create( rtems_name name, const rtems_extensions_table *extension_table, rtems_id *id ) { a000b250: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED Extension_Control *the_extension; if ( !id ) a000b254: e2527000 subs r7, r2, #0 <== NOT EXECUTED rtems_status_code rtems_extension_create( rtems_name name, const rtems_extensions_table *extension_table, rtems_id *id ) { a000b258: e1a05000 mov r5, r0 <== NOT EXECUTED a000b25c: e1a08001 mov r8, r1 <== NOT EXECUTED Extension_Control *the_extension; if ( !id ) a000b260: 0a00001e beq a000b2e0 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !rtems_is_name_valid( name ) ) a000b264: e3500000 cmp r0, #0 <== NOT EXECUTED a000b268: 0a00001e beq a000b2e8 <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; a000b26c: e59f307c ldr r3, [pc, #124] ; a000b2f0 <== NOT EXECUTED a000b270: e5932000 ldr r2, [r3] <== NOT EXECUTED a000b274: e2822001 add r2, r2, #1 <== NOT EXECUTED a000b278: 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 ); a000b27c: e59f6070 ldr r6, [pc, #112] ; a000b2f4 <== NOT EXECUTED a000b280: e1a00006 mov r0, r6 <== NOT EXECUTED a000b284: eb000380 bl a000c08c <_Objects_Allocate> <== NOT EXECUTED _Thread_Disable_dispatch(); /* to prevent deletion */ the_extension = _Extension_Allocate(); if ( !the_extension ) { a000b288: e2504000 subs r4, r0, #0 <== NOT EXECUTED a000b28c: 1a000002 bne a000b29c <== NOT EXECUTED _Thread_Enable_dispatch(); a000b290: eb0007ce bl a000d1d0 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_TOO_MANY; a000b294: e3a00005 mov r0, #5 <== NOT EXECUTED a000b298: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== 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; a000b29c: e284c024 add ip, r4, #36 ; 0x24 <== NOT EXECUTED a000b2a0: e1a0e008 mov lr, r8 <== NOT EXECUTED a000b2a4: e8be000f ldm lr!, {r0, r1, r2, r3} <== NOT EXECUTED a000b2a8: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED a000b2ac: e89e000f ldm lr, {r0, r1, r2, r3} <== NOT EXECUTED a000b2b0: e88c000f stm ip, {r0, r1, r2, r3} <== NOT EXECUTED _User_extensions_Add_set( extension ); a000b2b4: e2840010 add r0, r4, #16 <== NOT EXECUTED a000b2b8: eb000a95 bl a000dd14 <_User_extensions_Add_set> <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; a000b2bc: e596201c ldr r2, [r6, #28] <== NOT EXECUTED Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( a000b2c0: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED a000b2c4: e1d410b8 ldrh r1, [r4, #8] <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; a000b2c8: e7824101 str r4, [r2, r1, lsl #2] <== NOT EXECUTED information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; a000b2cc: e584500c str r5, [r4, #12] <== NOT EXECUTED &_Extension_Information, &the_extension->Object, (Objects_Name) name ); *id = the_extension->Object.id; a000b2d0: e5873000 str r3, [r7] <== NOT EXECUTED _Thread_Enable_dispatch(); a000b2d4: eb0007bd bl a000d1d0 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000b2d8: e3a00000 mov r0, #0 <== NOT EXECUTED a000b2dc: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED ) { Extension_Control *the_extension; if ( !id ) return RTEMS_INVALID_ADDRESS; a000b2e0: e3a00009 mov r0, #9 <== NOT EXECUTED a000b2e4: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; a000b2e8: e3a00003 mov r0, #3 <== NOT EXECUTED ); *id = the_extension->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } a000b2ec: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED =============================================================================== a000b068 : #include rtems_status_code rtems_extension_delete( rtems_id id ) { a000b068: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED a000b06c: e1a01000 mov r1, r0 <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Extension_Control *) _Objects_Get( &_Extension_Information, id, location ); a000b070: e1a0200d mov r2, sp <== NOT EXECUTED a000b074: e59f0040 ldr r0, [pc, #64] ; a000b0bc <== NOT EXECUTED a000b078: eb000463 bl a000c20c <_Objects_Get> <== NOT EXECUTED Extension_Control *the_extension; Objects_Locations location; the_extension = _Extension_Get( id, &location ); switch ( location ) { a000b07c: e59d5000 ldr r5, [sp] <== NOT EXECUTED a000b080: e1a04000 mov r4, r0 <== NOT EXECUTED a000b084: e3550000 cmp r5, #0 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a000b088: 13a00004 movne r0, #4 <== NOT EXECUTED { Extension_Control *the_extension; Objects_Locations location; the_extension = _Extension_Get( id, &location ); switch ( location ) { a000b08c: 1a000009 bne a000b0b8 <== NOT EXECUTED case OBJECTS_LOCAL: _User_extensions_Remove_set( &the_extension->Extension ); a000b090: e2840010 add r0, r4, #16 <== NOT EXECUTED a000b094: eb000a3c bl a000d98c <_User_extensions_Remove_set> <== NOT EXECUTED _Objects_Close( &_Extension_Information, &the_extension->Object ); a000b098: e59f001c ldr r0, [pc, #28] ; a000b0bc <== NOT EXECUTED a000b09c: e1a01004 mov r1, r4 <== NOT EXECUTED a000b0a0: eb00035c bl a000be18 <_Objects_Close> <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Extension_Free ( Extension_Control *the_extension ) { _Objects_Free( &_Extension_Information, &the_extension->Object ); a000b0a4: e59f0010 ldr r0, [pc, #16] ; a000b0bc <== NOT EXECUTED a000b0a8: e1a01004 mov r1, r4 <== NOT EXECUTED a000b0ac: eb0003fe bl a000c0ac <_Objects_Free> <== NOT EXECUTED _Extension_Free( the_extension ); _Thread_Enable_dispatch(); a000b0b0: eb00074f bl a000cdf4 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000b0b4: e1a00005 mov r0, r5 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a000b0b8: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED =============================================================================== a000bcb8 : rtems_status_code rtems_extension_ident( rtems_name name, rtems_id *id ) { a000bcb8: e1a02000 mov r2, r0 <== NOT EXECUTED a000bcbc: e1a03001 mov r3, r1 <== NOT EXECUTED a000bcc0: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( a000bcc4: e1a01002 mov r1, r2 <== NOT EXECUTED a000bcc8: e59f0010 ldr r0, [pc, #16] ; a000bce0 <== NOT EXECUTED a000bccc: e3e02102 mvn r2, #-2147483648 ; 0x80000000 <== NOT EXECUTED a000bcd0: eb000487 bl a000cef4 <_Objects_Name_to_id_u32> <== NOT EXECUTED OBJECTS_SEARCH_LOCAL_NODE, id ); return _Status_Object_name_errors_to_status[ status ]; } a000bcd4: e59f3008 ldr r3, [pc, #8] ; a000bce4 <== NOT EXECUTED a000bcd8: e7930100 ldr r0, [r3, r0, lsl #2] <== NOT EXECUTED a000bcdc: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED =============================================================================== a000bc90 : #include const char *rtems_get_version_string(void) { return _RTEMS_version; } a000bc90: e59f0000 ldr r0, [pc, #0] ; a000bc98 <== NOT EXECUTED a000bc94: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000a214 : static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000a214: e10f0000 mrs r0, CPSR <== NOT EXECUTED a000a218: e3803080 orr r3, r0, #128 ; 0x80 <== NOT EXECUTED a000a21c: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED rtems_interrupt_level previous_level; _ISR_Disable( previous_level ); return previous_level; } a000a220: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000a224 : static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000a224: e129f000 msr CPSR_fc, r0 <== NOT EXECUTED void rtems_interrupt_enable( rtems_interrupt_level previous_level ) { _ISR_Enable( previous_level ); } a000a228: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000a22c : static inline void arm_interrupt_flash( uint32_t level ) { uint32_t arm_switch_reg; __asm__ volatile ( a000a22c: e10f3000 mrs r3, CPSR <== NOT EXECUTED a000a230: e129f000 msr CPSR_fc, r0 <== NOT EXECUTED a000a234: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED void rtems_interrupt_flash( rtems_interrupt_level previous_level ) { _ISR_Flash( previous_level ); } a000a238: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000a23c : #undef rtems_interrupt_is_in_progress bool rtems_interrupt_is_in_progress( void ) { return _ISR_Is_in_progress(); a000a23c: e59f300c ldr r3, [pc, #12] ; a000a250 <== NOT EXECUTED a000a240: e5930000 ldr r0, [r3] <== NOT EXECUTED } a000a244: e2500000 subs r0, r0, #0 <== NOT EXECUTED a000a248: 13a00001 movne r0, #1 <== NOT EXECUTED a000a24c: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a0009c38 : rtems_attribute rtems_interrupt_level_attribute( uint32_t level ) { return RTEMS_INTERRUPT_LEVEL(level); } a0009c38: e2000080 and r0, r0, #128 ; 0x80 <== NOT EXECUTED a0009c3c: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000feec : void *argument ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) a000feec: e59fc044 ldr ip, [pc, #68] ; a000ff38 <== NOT EXECUTED rtems_status_code rtems_io_close( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { a000fef0: e92d4010 push {r4, lr} <== NOT EXECUTED rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) a000fef4: e59cc000 ldr ip, [ip] <== NOT EXECUTED rtems_status_code rtems_io_close( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { a000fef8: e1a03000 mov r3, r0 <== NOT EXECUTED rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) a000fefc: e150000c cmp r0, ip <== NOT EXECUTED a000ff00: 2a000008 bcs a000ff28 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].close_entry; a000ff04: e59fc030 ldr ip, [pc, #48] ; a000ff3c <== NOT EXECUTED a000ff08: e3a04018 mov r4, #24 <== NOT EXECUTED a000ff0c: e59cc000 ldr ip, [ip] <== NOT EXECUTED a000ff10: e023c394 mla r3, r4, r3, ip <== NOT EXECUTED a000ff14: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; a000ff18: e3530000 cmp r3, #0 <== NOT EXECUTED a000ff1c: 0a000003 beq a000ff30 <== NOT EXECUTED a000ff20: e12fff33 blx r3 <== NOT EXECUTED a000ff24: e8bd8010 pop {r4, pc} <== NOT EXECUTED ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) return RTEMS_INVALID_NUMBER; a000ff28: e3a0000a mov r0, #10 <== NOT EXECUTED a000ff2c: e8bd8010 pop {r4, pc} <== NOT EXECUTED callout = _IO_Driver_address_table[major].close_entry; return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; a000ff30: e1a00003 mov r0, r3 <== NOT EXECUTED } a000ff34: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a000ff40 : void *argument ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) a000ff40: e59fc044 ldr ip, [pc, #68] ; a000ff8c <== NOT EXECUTED rtems_status_code rtems_io_control( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { a000ff44: e92d4010 push {r4, lr} <== NOT EXECUTED rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) a000ff48: e59cc000 ldr ip, [ip] <== NOT EXECUTED rtems_status_code rtems_io_control( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { a000ff4c: e1a03000 mov r3, r0 <== NOT EXECUTED rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) a000ff50: e150000c cmp r0, ip <== NOT EXECUTED a000ff54: 2a000008 bcs a000ff7c <== NOT EXECUTED return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].control_entry; a000ff58: e59fc030 ldr ip, [pc, #48] ; a000ff90 <== NOT EXECUTED a000ff5c: e3a04018 mov r4, #24 <== NOT EXECUTED a000ff60: e59cc000 ldr ip, [ip] <== NOT EXECUTED a000ff64: e023c394 mla r3, r4, r3, ip <== NOT EXECUTED a000ff68: e5933014 ldr r3, [r3, #20] <== NOT EXECUTED return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; a000ff6c: e3530000 cmp r3, #0 <== NOT EXECUTED a000ff70: 0a000003 beq a000ff84 <== NOT EXECUTED a000ff74: e12fff33 blx r3 <== NOT EXECUTED a000ff78: e8bd8010 pop {r4, pc} <== NOT EXECUTED ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) return RTEMS_INVALID_NUMBER; a000ff7c: e3a0000a mov r0, #10 <== NOT EXECUTED a000ff80: e8bd8010 pop {r4, pc} <== NOT EXECUTED callout = _IO_Driver_address_table[major].control_entry; return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; a000ff84: e1a00003 mov r0, r3 <== NOT EXECUTED } a000ff88: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a000e408 : void *argument ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) a000e408: e59fc044 ldr ip, [pc, #68] ; a000e454 rtems_status_code rtems_io_initialize( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { a000e40c: e92d4010 push {r4, lr} rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) a000e410: e59cc000 ldr ip, [ip] rtems_status_code rtems_io_initialize( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { a000e414: e1a03000 mov r3, r0 rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) a000e418: e150000c cmp r0, ip a000e41c: 2a000008 bcs a000e444 return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].initialization_entry; a000e420: e59fc030 ldr ip, [pc, #48] ; a000e458 a000e424: e3a04018 mov r4, #24 a000e428: e0030394 mul r3, r4, r3 a000e42c: e59cc000 ldr ip, [ip] a000e430: e79c3003 ldr r3, [ip, r3] return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; a000e434: e3530000 cmp r3, #0 a000e438: 0a000003 beq a000e44c a000e43c: e12fff33 blx r3 a000e440: e8bd8010 pop {r4, pc} ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) return RTEMS_INVALID_NUMBER; a000e444: e3a0000a mov r0, #10 <== NOT EXECUTED a000e448: e8bd8010 pop {r4, pc} <== NOT EXECUTED callout = _IO_Driver_address_table[major].initialization_entry; return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; a000e44c: e1a00003 mov r0, r3 } a000e450: e8bd8010 pop {r4, pc} =============================================================================== a000ff94 : void *argument ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) a000ff94: e59fc044 ldr ip, [pc, #68] ; a000ffe0 <== NOT EXECUTED rtems_status_code rtems_io_open( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { a000ff98: e92d4010 push {r4, lr} <== NOT EXECUTED rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) a000ff9c: e59cc000 ldr ip, [ip] <== NOT EXECUTED rtems_status_code rtems_io_open( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { a000ffa0: e1a03000 mov r3, r0 <== NOT EXECUTED rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) a000ffa4: e150000c cmp r0, ip <== NOT EXECUTED a000ffa8: 2a000008 bcs a000ffd0 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].open_entry; a000ffac: e59fc030 ldr ip, [pc, #48] ; a000ffe4 <== NOT EXECUTED a000ffb0: e3a04018 mov r4, #24 <== NOT EXECUTED a000ffb4: e59cc000 ldr ip, [ip] <== NOT EXECUTED a000ffb8: e023c394 mla r3, r4, r3, ip <== NOT EXECUTED a000ffbc: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; a000ffc0: e3530000 cmp r3, #0 <== NOT EXECUTED a000ffc4: 0a000003 beq a000ffd8 <== NOT EXECUTED a000ffc8: e12fff33 blx r3 <== NOT EXECUTED a000ffcc: e8bd8010 pop {r4, pc} <== NOT EXECUTED ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) return RTEMS_INVALID_NUMBER; a000ffd0: e3a0000a mov r0, #10 <== NOT EXECUTED a000ffd4: e8bd8010 pop {r4, pc} <== NOT EXECUTED callout = _IO_Driver_address_table[major].open_entry; return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; a000ffd8: e1a00003 mov r0, r3 <== NOT EXECUTED } a000ffdc: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a000ffe8 : void *argument ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) a000ffe8: e59fc044 ldr ip, [pc, #68] ; a0010034 <== NOT EXECUTED rtems_status_code rtems_io_read( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { a000ffec: e92d4010 push {r4, lr} <== NOT EXECUTED rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) a000fff0: e59cc000 ldr ip, [ip] <== NOT EXECUTED rtems_status_code rtems_io_read( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { a000fff4: e1a03000 mov r3, r0 <== NOT EXECUTED rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) a000fff8: e150000c cmp r0, ip <== NOT EXECUTED a000fffc: 2a000008 bcs a0010024 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].read_entry; a0010000: e59fc030 ldr ip, [pc, #48] ; a0010038 <== NOT EXECUTED a0010004: e3a04018 mov r4, #24 <== NOT EXECUTED a0010008: e59cc000 ldr ip, [ip] <== NOT EXECUTED a001000c: e023c394 mla r3, r4, r3, ip <== NOT EXECUTED a0010010: e593300c ldr r3, [r3, #12] <== NOT EXECUTED return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; a0010014: e3530000 cmp r3, #0 <== NOT EXECUTED a0010018: 0a000003 beq a001002c <== NOT EXECUTED a001001c: e12fff33 blx r3 <== NOT EXECUTED a0010020: e8bd8010 pop {r4, pc} <== NOT EXECUTED ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) return RTEMS_INVALID_NUMBER; a0010024: e3a0000a mov r0, #10 <== NOT EXECUTED a0010028: e8bd8010 pop {r4, pc} <== NOT EXECUTED callout = _IO_Driver_address_table[major].read_entry; return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; a001002c: e1a00003 mov r0, r3 <== NOT EXECUTED } a0010030: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a000ab3c : 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 ) { a000ab3c: e92d4010 push {r4, lr} <== NOT EXECUTED a000ab40: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_device_major_number major_limit = _IO_Number_of_drivers; if ( rtems_interrupt_is_in_progress() ) a000ab44: e59f015c ldr r0, [pc, #348] ; a000aca8 <== 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; a000ab48: e59f315c ldr r3, [pc, #348] ; a000acac <== NOT EXECUTED if ( rtems_interrupt_is_in_progress() ) a000ab4c: e5900000 ldr r0, [r0] <== 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; a000ab50: e5933000 ldr r3, [r3] <== NOT EXECUTED if ( rtems_interrupt_is_in_progress() ) a000ab54: e3500000 cmp r0, #0 <== NOT EXECUTED a000ab58: 1a000043 bne a000ac6c <== NOT EXECUTED return RTEMS_CALLED_FROM_ISR; if ( registered_major == NULL ) a000ab5c: e3520000 cmp r2, #0 <== NOT EXECUTED a000ab60: 0a000043 beq a000ac74 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; /* Set it to an invalid value */ *registered_major = major_limit; if ( driver_table == NULL ) a000ab64: e3510000 cmp r1, #0 <== NOT EXECUTED if ( registered_major == NULL ) return RTEMS_INVALID_ADDRESS; /* Set it to an invalid value */ *registered_major = major_limit; a000ab68: e5823000 str r3, [r2] <== NOT EXECUTED if ( driver_table == NULL ) a000ab6c: 0a000040 beq a000ac74 <== 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; a000ab70: e5910000 ldr r0, [r1] <== NOT EXECUTED a000ab74: e3500000 cmp r0, #0 <== NOT EXECUTED a000ab78: 1a000041 bne a000ac84 <== NOT EXECUTED a000ab7c: e5910004 ldr r0, [r1, #4] <== NOT EXECUTED a000ab80: e3500000 cmp r0, #0 <== NOT EXECUTED a000ab84: 1a00003e bne a000ac84 <== NOT EXECUTED a000ab88: ea000039 b a000ac74 <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; a000ab8c: e59f311c ldr r3, [pc, #284] ; a000acb0 <== NOT EXECUTED a000ab90: e5930000 ldr r0, [r3] <== NOT EXECUTED a000ab94: e2800001 add r0, r0, #1 <== NOT EXECUTED a000ab98: e5830000 str r0, [r3] <== NOT EXECUTED if ( major >= major_limit ) return RTEMS_INVALID_NUMBER; _Thread_Disable_dispatch(); if ( major == 0 ) { a000ab9c: e3540000 cmp r4, #0 <== NOT EXECUTED a000aba0: e59f010c ldr r0, [pc, #268] ; a000acb4 <== NOT EXECUTED a000aba4: 1a000010 bne a000abec <== 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; a000aba8: e59f30fc ldr r3, [pc, #252] ; a000acac <== NOT EXECUTED a000abac: e593c000 ldr ip, [r3] <== NOT EXECUTED a000abb0: e5903000 ldr r3, [r0] <== NOT EXECUTED a000abb4: ea000006 b a000abd4 <== 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; a000abb8: e5930000 ldr r0, [r3] <== NOT EXECUTED a000abbc: e3500000 cmp r0, #0 <== NOT EXECUTED a000abc0: 1a000032 bne a000ac90 <== NOT EXECUTED a000abc4: e5930004 ldr r0, [r3, #4] <== NOT EXECUTED a000abc8: e3500000 cmp r0, #0 <== NOT EXECUTED a000abcc: 1a00002f bne a000ac90 <== NOT EXECUTED a000abd0: ea000001 b a000abdc <== NOT EXECUTED rtems_device_major_number n = _IO_Number_of_drivers; rtems_device_major_number m = 0; /* major is error checked by caller */ for ( m = 0; m < n; ++m ) { a000abd4: e154000c cmp r4, ip <== NOT EXECUTED a000abd8: 3afffff6 bcc a000abb8 <== NOT EXECUTED } /* Assigns invalid value in case of failure */ *major = m; if ( m != n ) a000abdc: e154000c cmp r4, ip <== NOT EXECUTED if ( rtems_io_is_empty_table( table ) ) break; } /* Assigns invalid value in case of failure */ *major = m; a000abe0: e5824000 str r4, [r2] <== NOT EXECUTED if ( m != n ) a000abe4: 1a000011 bne a000ac30 <== NOT EXECUTED a000abe8: ea00002b b a000ac9c <== NOT EXECUTED _Thread_Enable_dispatch(); return sc; } major = *registered_major; } else { rtems_driver_address_table *const table = _IO_Driver_address_table + major; a000abec: e3a03018 mov r3, #24 <== NOT EXECUTED a000abf0: e0030394 mul r3, r4, r3 <== NOT EXECUTED a000abf4: e5900000 ldr r0, [r0] <== NOT EXECUTED a000abf8: e080c003 add ip, r0, r3 <== 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; a000abfc: e7903003 ldr r3, [r0, r3] <== NOT EXECUTED a000ac00: e3530000 cmp r3, #0 <== NOT EXECUTED a000ac04: 13a03000 movne r3, #0 <== NOT EXECUTED a000ac08: 1a000002 bne a000ac18 <== NOT EXECUTED return RTEMS_SUCCESSFUL; return RTEMS_TOO_MANY; } rtems_status_code rtems_io_register_driver( a000ac0c: e59c3004 ldr r3, [ip, #4] <== NOT EXECUTED a000ac10: e2733001 rsbs r3, r3, #1 <== NOT EXECUTED a000ac14: 33a03000 movcc r3, #0 <== NOT EXECUTED } major = *registered_major; } else { rtems_driver_address_table *const table = _IO_Driver_address_table + major; if ( !rtems_io_is_empty_table( table ) ) { a000ac18: e3530000 cmp r3, #0 <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_RESOURCE_IN_USE; } *registered_major = major; a000ac1c: 15824000 strne r4, [r2] <== NOT EXECUTED } major = *registered_major; } else { rtems_driver_address_table *const table = _IO_Driver_address_table + major; if ( !rtems_io_is_empty_table( table ) ) { a000ac20: 1a000002 bne a000ac30 <== NOT EXECUTED _Thread_Enable_dispatch(); a000ac24: eb00072d bl a000c8e0 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_RESOURCE_IN_USE; a000ac28: e3a0000c mov r0, #12 <== NOT EXECUTED a000ac2c: e8bd8010 pop {r4, pc} <== NOT EXECUTED } *registered_major = major; } _IO_Driver_address_table [major] = *driver_table; a000ac30: e59f307c ldr r3, [pc, #124] ; a000acb4 <== NOT EXECUTED a000ac34: e3a0c018 mov ip, #24 <== NOT EXECUTED a000ac38: e1a0e001 mov lr, r1 <== NOT EXECUTED a000ac3c: e5933000 ldr r3, [r3] <== NOT EXECUTED a000ac40: e02c3c94 mla ip, r4, ip, r3 <== NOT EXECUTED a000ac44: e8be000f ldm lr!, {r0, r1, r2, r3} <== NOT EXECUTED a000ac48: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED a000ac4c: e89e0003 ldm lr, {r0, r1} <== NOT EXECUTED a000ac50: e88c0003 stm ip, {r0, r1} <== NOT EXECUTED _Thread_Enable_dispatch(); a000ac54: eb000721 bl a000c8e0 <_Thread_Enable_dispatch> <== NOT EXECUTED return rtems_io_initialize( major, 0, NULL ); a000ac58: e3a01000 mov r1, #0 <== NOT EXECUTED a000ac5c: e1a00004 mov r0, r4 <== NOT EXECUTED a000ac60: e1a02001 mov r2, r1 <== NOT EXECUTED } a000ac64: e8bd4010 pop {r4, lr} <== NOT EXECUTED _IO_Driver_address_table [major] = *driver_table; _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL ); a000ac68: ea001cdd b a0011fe4 <== NOT EXECUTED ) { rtems_device_major_number major_limit = _IO_Number_of_drivers; if ( rtems_interrupt_is_in_progress() ) return RTEMS_CALLED_FROM_ISR; a000ac6c: e3a00012 mov r0, #18 <== NOT EXECUTED a000ac70: e8bd8010 pop {r4, pc} <== NOT EXECUTED if ( driver_table == NULL ) return RTEMS_INVALID_ADDRESS; if ( rtems_io_is_empty_table( driver_table ) ) return RTEMS_INVALID_ADDRESS; a000ac74: e3a00009 mov r0, #9 <== NOT EXECUTED a000ac78: e8bd8010 pop {r4, pc} <== NOT EXECUTED if ( major >= major_limit ) return RTEMS_INVALID_NUMBER; a000ac7c: e3a0000a mov r0, #10 <== NOT EXECUTED _IO_Driver_address_table [major] = *driver_table; _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL ); } a000ac80: e8bd8010 pop {r4, pc} <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( rtems_io_is_empty_table( driver_table ) ) return RTEMS_INVALID_ADDRESS; if ( major >= major_limit ) a000ac84: e1540003 cmp r4, r3 <== NOT EXECUTED a000ac88: 3affffbf bcc a000ab8c <== NOT EXECUTED a000ac8c: eafffffa b a000ac7c <== NOT EXECUTED rtems_device_major_number n = _IO_Number_of_drivers; rtems_device_major_number m = 0; /* major is error checked by caller */ for ( m = 0; m < n; ++m ) { a000ac90: e2844001 add r4, r4, #1 <== NOT EXECUTED a000ac94: e2833018 add r3, r3, #24 <== NOT EXECUTED a000ac98: eaffffcd b a000abd4 <== NOT EXECUTED if ( major == 0 ) { rtems_status_code sc = rtems_io_obtain_major_number( registered_major ); if ( sc != RTEMS_SUCCESSFUL ) { _Thread_Enable_dispatch(); a000ac9c: eb00070f bl a000c8e0 <_Thread_Enable_dispatch> <== NOT EXECUTED *major = m; if ( m != n ) return RTEMS_SUCCESSFUL; return RTEMS_TOO_MANY; a000aca0: 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; a000aca4: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a000acb8 : rtems_status_code rtems_io_unregister_driver( rtems_device_major_number major ) { if ( rtems_interrupt_is_in_progress() ) a000acb8: e59f3060 ldr r3, [pc, #96] ; a000ad20 <== NOT EXECUTED */ rtems_status_code rtems_io_unregister_driver( rtems_device_major_number major ) { a000acbc: e92d4010 push {r4, lr} <== NOT EXECUTED if ( rtems_interrupt_is_in_progress() ) a000acc0: e5934000 ldr r4, [r3] <== NOT EXECUTED a000acc4: e3540000 cmp r4, #0 <== NOT EXECUTED a000acc8: 1a000010 bne a000ad10 <== NOT EXECUTED return RTEMS_CALLED_FROM_ISR; if ( major < _IO_Number_of_drivers ) { a000accc: e59f3050 ldr r3, [pc, #80] ; a000ad24 <== NOT EXECUTED a000acd0: e5933000 ldr r3, [r3] <== NOT EXECUTED a000acd4: e1500003 cmp r0, r3 <== NOT EXECUTED a000acd8: 2a00000e bcs a000ad18 <== NOT EXECUTED a000acdc: e59f3044 ldr r3, [pc, #68] ; a000ad28 <== NOT EXECUTED a000ace0: e5932000 ldr r2, [r3] <== NOT EXECUTED a000ace4: e2822001 add r2, r2, #1 <== NOT EXECUTED a000ace8: e5832000 str r2, [r3] <== NOT EXECUTED _Thread_Disable_dispatch(); memset( a000acec: e59f3038 ldr r3, [pc, #56] ; a000ad2c <== NOT EXECUTED &_IO_Driver_address_table[major], a000acf0: e3a02018 mov r2, #24 <== NOT EXECUTED if ( rtems_interrupt_is_in_progress() ) return RTEMS_CALLED_FROM_ISR; if ( major < _IO_Number_of_drivers ) { _Thread_Disable_dispatch(); memset( a000acf4: e1a01004 mov r1, r4 <== NOT EXECUTED a000acf8: e5933000 ldr r3, [r3] <== NOT EXECUTED a000acfc: e0203092 mla r0, r2, r0, r3 <== NOT EXECUTED a000ad00: eb0026ad bl a00147bc <== NOT EXECUTED &_IO_Driver_address_table[major], 0, sizeof( rtems_driver_address_table ) ); _Thread_Enable_dispatch(); a000ad04: eb0006f5 bl a000c8e0 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000ad08: e1a00004 mov r0, r4 <== NOT EXECUTED a000ad0c: 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; a000ad10: e3a00012 mov r0, #18 <== NOT EXECUTED a000ad14: e8bd8010 pop {r4, pc} <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } return RTEMS_UNSATISFIED; a000ad18: e3a0000d mov r0, #13 <== NOT EXECUTED } a000ad1c: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a001003c : void *argument ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) a001003c: e59fc044 ldr ip, [pc, #68] ; a0010088 <== NOT EXECUTED rtems_status_code rtems_io_write( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { a0010040: e92d4010 push {r4, lr} <== NOT EXECUTED rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) a0010044: e59cc000 ldr ip, [ip] <== NOT EXECUTED rtems_status_code rtems_io_write( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { a0010048: e1a03000 mov r3, r0 <== NOT EXECUTED rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) a001004c: e150000c cmp r0, ip <== NOT EXECUTED a0010050: 2a000008 bcs a0010078 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].write_entry; a0010054: e59fc030 ldr ip, [pc, #48] ; a001008c <== NOT EXECUTED a0010058: e3a04018 mov r4, #24 <== NOT EXECUTED a001005c: e59cc000 ldr ip, [ip] <== NOT EXECUTED a0010060: e023c394 mla r3, r4, r3, ip <== NOT EXECUTED a0010064: e5933010 ldr r3, [r3, #16] <== NOT EXECUTED return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; a0010068: e3530000 cmp r3, #0 <== NOT EXECUTED a001006c: 0a000003 beq a0010080 <== NOT EXECUTED a0010070: e12fff33 blx r3 <== NOT EXECUTED a0010074: e8bd8010 pop {r4, pc} <== NOT EXECUTED ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) return RTEMS_INVALID_NUMBER; a0010078: e3a0000a mov r0, #10 <== NOT EXECUTED a001007c: e8bd8010 pop {r4, pc} <== NOT EXECUTED callout = _IO_Driver_address_table[major].write_entry; return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; a0010080: e1a00003 mov r0, r3 <== NOT EXECUTED } a0010084: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a000c024 : #include #include void rtems_iterate_over_all_threads(rtems_per_thread_routine routine) { a000c024: 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 ) a000c028: e2508000 subs r8, r0, #0 <== NOT EXECUTED a000c02c: 0a000014 beq a000c084 <== NOT EXECUTED a000c030: e59f4050 ldr r4, [pc, #80] ; a000c088 <== NOT EXECUTED #endif #include #include void rtems_iterate_over_all_threads(rtems_per_thread_routine routine) a000c034: e284700c add r7, r4, #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 ] ) a000c038: e5b43004 ldr r3, [r4, #4]! <== NOT EXECUTED a000c03c: e3530000 cmp r3, #0 <== NOT EXECUTED a000c040: 0a00000d beq a000c07c <== NOT EXECUTED continue; #endif information = _Objects_Information_table[ api_index ][ 1 ]; a000c044: e5936004 ldr r6, [r3, #4] <== NOT EXECUTED if ( !information ) a000c048: e3560000 cmp r6, #0 <== NOT EXECUTED a000c04c: 13a05001 movne r5, #1 <== NOT EXECUTED a000c050: 1a000006 bne a000c070 <== NOT EXECUTED a000c054: ea000008 b a000c07c <== NOT EXECUTED continue; for ( i=1 ; i <= information->maximum ; i++ ) { the_thread = (Thread_Control *)information->local_table[ i ]; a000c058: e596301c ldr r3, [r6, #28] <== NOT EXECUTED a000c05c: e7930105 ldr r0, [r3, r5, lsl #2] <== NOT EXECUTED if ( !the_thread ) a000c060: e3500000 cmp r0, #0 <== NOT EXECUTED a000c064: 0a000000 beq a000c06c <== NOT EXECUTED continue; (*routine)(the_thread); a000c068: e12fff38 blx r8 <== NOT EXECUTED information = _Objects_Information_table[ api_index ][ 1 ]; if ( !information ) continue; for ( i=1 ; i <= information->maximum ; i++ ) { a000c06c: e2855001 add r5, r5, #1 <== NOT EXECUTED a000c070: e1d631b0 ldrh r3, [r6, #16] <== NOT EXECUTED a000c074: e1550003 cmp r5, r3 <== NOT EXECUTED a000c078: 9afffff6 bls a000c058 <== NOT EXECUTED Objects_Information *information; if ( !routine ) return; for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) { a000c07c: e1540007 cmp r4, r7 <== NOT EXECUTED a000c080: 1affffec bne a000c038 <== NOT EXECUTED a000c084: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED =============================================================================== a0015cb8 : rtems_id id, const void *buffer, size_t size, uint32_t *count ) { a0015cb8: e92d40f7 push {r0, r1, r2, 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 ) a0015cbc: e2517000 subs r7, r1, #0 <== NOT EXECUTED rtems_id id, const void *buffer, size_t size, uint32_t *count ) { a0015cc0: e1a04000 mov r4, r0 <== NOT EXECUTED a0015cc4: e1a05002 mov r5, r2 <== NOT EXECUTED a0015cc8: e1a06003 mov r6, r3 <== NOT EXECUTED register Message_queue_Control *the_message_queue; Objects_Locations location; CORE_message_queue_Status core_status; if ( !buffer ) a0015ccc: 0a000015 beq a0015d28 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !count ) a0015cd0: e3530000 cmp r3, #0 <== NOT EXECUTED a0015cd4: 0a000013 beq a0015d28 <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Message_queue_Control *) _Objects_Get( &_Message_queue_Information, id, location ); a0015cd8: e59f0050 ldr r0, [pc, #80] ; a0015d30 <== NOT EXECUTED a0015cdc: e1a01004 mov r1, r4 <== NOT EXECUTED a0015ce0: e28d2008 add r2, sp, #8 <== NOT EXECUTED a0015ce4: eb0013ef bl a001aca8 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { a0015ce8: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED a0015cec: e3530000 cmp r3, #0 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a0015cf0: 13a00004 movne r0, #4 <== NOT EXECUTED if ( !count ) return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { a0015cf4: 1a00000c bne a0015d2c <== NOT EXECUTED case OBJECTS_LOCAL: core_status = _CORE_message_queue_Broadcast( a0015cf8: e58d3000 str r3, [sp] <== NOT EXECUTED a0015cfc: e1a01007 mov r1, r7 <== NOT EXECUTED a0015d00: e1a03004 mov r3, r4 <== NOT EXECUTED a0015d04: e1a02005 mov r2, r5 <== NOT EXECUTED a0015d08: e2800014 add r0, r0, #20 <== NOT EXECUTED a0015d0c: e58d6004 str r6, [sp, #4] <== NOT EXECUTED a0015d10: eb000d0e bl a0019150 <_CORE_message_queue_Broadcast> <== NOT EXECUTED a0015d14: e1a04000 mov r4, r0 <== NOT EXECUTED NULL, #endif count ); _Thread_Enable_dispatch(); a0015d18: eb001700 bl a001b920 <_Thread_Enable_dispatch> <== NOT EXECUTED return a0015d1c: e1a00004 mov r0, r4 <== NOT EXECUTED a0015d20: eb0000cc bl a0016058 <_Message_queue_Translate_core_message_queue_return_code><== NOT EXECUTED a0015d24: ea000000 b a0015d2c <== NOT EXECUTED if ( !buffer ) return RTEMS_INVALID_ADDRESS; if ( !count ) return RTEMS_INVALID_ADDRESS; a0015d28: e3a00009 mov r0, #9 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a0015d2c: e8bd80fe pop {r1, r2, r3, r4, r5, r6, r7, pc} <== NOT EXECUTED =============================================================================== a0010f94 : uint32_t count, size_t max_message_size, rtems_attribute attribute_set, rtems_id *id ) { a0010f94: e92d45f1 push {r0, r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED CORE_message_queue_Attributes the_msgq_attributes; #if defined(RTEMS_MULTIPROCESSING) bool is_global; #endif if ( !rtems_is_name_valid( name ) ) a0010f98: e2507000 subs r7, r0, #0 <== NOT EXECUTED uint32_t count, size_t max_message_size, rtems_attribute attribute_set, rtems_id *id ) { a0010f9c: e1a06001 mov r6, r1 <== NOT EXECUTED a0010fa0: e1a05002 mov r5, r2 <== NOT EXECUTED a0010fa4: e1a0a003 mov sl, r3 <== NOT EXECUTED a0010fa8: e59d8020 ldr r8, [sp, #32] <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) bool is_global; #endif if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; a0010fac: 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 ) ) a0010fb0: 0a00002d beq a001106c <== NOT EXECUTED return RTEMS_INVALID_NAME; if ( !id ) a0010fb4: e3580000 cmp r8, #0 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; a0010fb8: 03a00009 moveq r0, #9 <== NOT EXECUTED #endif if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; if ( !id ) a0010fbc: 0a00002a beq a001106c <== NOT EXECUTED if ( (is_global = _Attributes_Is_global( attribute_set ) ) && !_System_state_Is_multiprocessing ) return RTEMS_MP_NOT_CONFIGURED; #endif if ( count == 0 ) a0010fc0: e3510000 cmp r1, #0 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; a0010fc4: 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 ) a0010fc8: 0a000027 beq a001106c <== NOT EXECUTED return RTEMS_INVALID_NUMBER; if ( max_message_size == 0 ) a0010fcc: e3520000 cmp r2, #0 <== NOT EXECUTED return RTEMS_INVALID_SIZE; a0010fd0: 03a00008 moveq r0, #8 <== NOT EXECUTED #endif if ( count == 0 ) return RTEMS_INVALID_NUMBER; if ( max_message_size == 0 ) a0010fd4: 0a000024 beq a001106c <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; a0010fd8: e59f3090 ldr r3, [pc, #144] ; a0011070 <== NOT EXECUTED a0010fdc: e5932000 ldr r2, [r3] <== NOT EXECUTED a0010fe0: e2822001 add r2, r2, #1 <== NOT EXECUTED a0010fe4: e5832000 str r2, [r3] <== NOT EXECUTED #endif #endif _Thread_Disable_dispatch(); /* protects object pointer */ the_message_queue = _Message_queue_Allocate(); a0010fe8: eb0015c1 bl a00166f4 <_Message_queue_Allocate> <== NOT EXECUTED if ( !the_message_queue ) { a0010fec: e2504000 subs r4, r0, #0 <== NOT EXECUTED a0010ff0: 1a000002 bne a0011000 <== NOT EXECUTED _Thread_Enable_dispatch(); a0010ff4: eb000b8b bl a0013e28 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_TOO_MANY; a0010ff8: e3a00005 mov r0, #5 <== NOT EXECUTED a0010ffc: ea00001a b a001106c <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } #endif the_message_queue->attribute_set = attribute_set; a0011000: e584a010 str sl, [r4, #16] <== NOT EXECUTED if (_Attributes_Is_priority( attribute_set ) ) a0011004: e21aa004 ands sl, sl, #4 <== NOT EXECUTED the_msgq_attributes.discipline = CORE_MESSAGE_QUEUE_DISCIPLINES_PRIORITY; a0011008: 13a03001 movne r3, #1 <== NOT EXECUTED a001100c: 158d3000 strne r3, [sp] <== NOT EXECUTED else the_msgq_attributes.discipline = CORE_MESSAGE_QUEUE_DISCIPLINES_FIFO; if ( ! _CORE_message_queue_Initialize( a0011010: e2840014 add r0, r4, #20 <== NOT EXECUTED a0011014: e1a0100d mov r1, sp <== NOT EXECUTED a0011018: e1a02006 mov r2, r6 <== NOT EXECUTED a001101c: e1a03005 mov r3, r5 <== NOT EXECUTED the_message_queue->attribute_set = attribute_set; if (_Attributes_Is_priority( attribute_set ) ) the_msgq_attributes.discipline = CORE_MESSAGE_QUEUE_DISCIPLINES_PRIORITY; else the_msgq_attributes.discipline = CORE_MESSAGE_QUEUE_DISCIPLINES_FIFO; a0011020: 058da000 streq sl, [sp] <== NOT EXECUTED if ( ! _CORE_message_queue_Initialize( a0011024: eb00044d bl a0012160 <_CORE_message_queue_Initialize> <== NOT EXECUTED a0011028: e3500000 cmp r0, #0 <== NOT EXECUTED a001102c: 1a000005 bne a0011048 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Message_queue_Free ( Message_queue_Control *the_message_queue ) { _Objects_Free( &_Message_queue_Information, &the_message_queue->Object ); a0011030: e59f003c ldr r0, [pc, #60] ; a0011074 <== NOT EXECUTED a0011034: e1a01004 mov r1, r4 <== NOT EXECUTED a0011038: eb0007de bl a0012fb8 <_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(); a001103c: eb000b79 bl a0013e28 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_UNSATISFIED; a0011040: e3a0000d mov r0, #13 <== NOT EXECUTED a0011044: ea000008 b a001106c <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; a0011048: e59f2024 ldr r2, [pc, #36] ; a0011074 <== NOT EXECUTED Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( a001104c: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED a0011050: e1d410b8 ldrh r1, [r4, #8] <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; a0011054: e592201c ldr r2, [r2, #28] <== NOT EXECUTED a0011058: e7824101 str r4, [r2, r1, lsl #2] <== NOT EXECUTED information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; a001105c: e584700c str r7, [r4, #12] <== NOT EXECUTED &_Message_queue_Information, &the_message_queue->Object, (Objects_Name) name ); *id = the_message_queue->Object.id; a0011060: e5883000 str r3, [r8] <== NOT EXECUTED name, 0 ); #endif _Thread_Enable_dispatch(); a0011064: eb000b6f bl a0013e28 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0011068: e3a00000 mov r0, #0 <== NOT EXECUTED } a001106c: e8bd85f8 pop {r3, r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED =============================================================================== a000ef90 : */ rtems_status_code rtems_message_queue_delete( rtems_id id ) { a000ef90: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED a000ef94: e1a01000 mov r1, r0 <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Message_queue_Control *) _Objects_Get( &_Message_queue_Information, id, location ); a000ef98: e1a0200d mov r2, sp <== NOT EXECUTED a000ef9c: e59f0048 ldr r0, [pc, #72] ; a000efec <== NOT EXECUTED a000efa0: ebfff18c bl a000b5d8 <_Objects_Get> <== NOT EXECUTED register Message_queue_Control *the_message_queue; Objects_Locations location; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { a000efa4: e59d4000 ldr r4, [sp] <== NOT EXECUTED a000efa8: e1a05000 mov r5, r0 <== NOT EXECUTED a000efac: e3540000 cmp r4, #0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a000efb0: 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 ) { a000efb4: 1a00000b bne a000efe8 <== NOT EXECUTED case OBJECTS_LOCAL: _Objects_Close( &_Message_queue_Information, a000efb8: e59f002c ldr r0, [pc, #44] ; a000efec <== NOT EXECUTED a000efbc: e1a01005 mov r1, r5 <== NOT EXECUTED a000efc0: ebfff087 bl a000b1e4 <_Objects_Close> <== NOT EXECUTED &the_message_queue->Object ); _CORE_message_queue_Close( a000efc4: e3a02005 mov r2, #5 <== NOT EXECUTED a000efc8: e2850014 add r0, r5, #20 <== NOT EXECUTED a000efcc: e1a01004 mov r1, r4 <== NOT EXECUTED a000efd0: eb00017a bl a000f5c0 <_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 ); a000efd4: e59f0010 ldr r0, [pc, #16] ; a000efec <== NOT EXECUTED a000efd8: e1a01005 mov r1, r5 <== NOT EXECUTED a000efdc: ebfff125 bl a000b478 <_Objects_Free> <== NOT EXECUTED 0, /* Not used */ 0 ); } #endif _Thread_Enable_dispatch(); a000efe0: ebfff476 bl a000c1c0 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000efe4: e1a00004 mov r0, r4 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a000efe8: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED =============================================================================== a0015e78 : rtems_status_code rtems_message_queue_flush( rtems_id id, uint32_t *count ) { a0015e78: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED register Message_queue_Control *the_message_queue; Objects_Locations location; if ( !count ) a0015e7c: e2514000 subs r4, r1, #0 <== NOT EXECUTED rtems_status_code rtems_message_queue_flush( rtems_id id, uint32_t *count ) { a0015e80: e1a03000 mov r3, r0 <== NOT EXECUTED register Message_queue_Control *the_message_queue; Objects_Locations location; if ( !count ) return RTEMS_INVALID_ADDRESS; a0015e84: 03a00009 moveq r0, #9 <== NOT EXECUTED ) { register Message_queue_Control *the_message_queue; Objects_Locations location; if ( !count ) a0015e88: 0a00000c beq a0015ec0 <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Message_queue_Control *) _Objects_Get( &_Message_queue_Information, id, location ); a0015e8c: e59f0030 ldr r0, [pc, #48] ; a0015ec4 <== NOT EXECUTED a0015e90: e1a01003 mov r1, r3 <== NOT EXECUTED a0015e94: e1a0200d mov r2, sp <== NOT EXECUTED a0015e98: eb001382 bl a001aca8 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { a0015e9c: e59d5000 ldr r5, [sp] <== NOT EXECUTED a0015ea0: e3550000 cmp r5, #0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a0015ea4: 13a00004 movne r0, #4 <== NOT EXECUTED if ( !count ) return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { a0015ea8: 1a000004 bne a0015ec0 <== NOT EXECUTED case OBJECTS_LOCAL: *count = _CORE_message_queue_Flush( &the_message_queue->message_queue ); a0015eac: e2800014 add r0, r0, #20 <== NOT EXECUTED a0015eb0: eb000ccf bl a00191f4 <_CORE_message_queue_Flush> <== NOT EXECUTED a0015eb4: e5840000 str r0, [r4] <== NOT EXECUTED _Thread_Enable_dispatch(); a0015eb8: eb001698 bl a001b920 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0015ebc: e1a00005 mov r0, r5 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a0015ec0: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED =============================================================================== a0015ec8 : rtems_status_code rtems_message_queue_get_number_pending( rtems_id id, uint32_t *count ) { a0015ec8: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED register Message_queue_Control *the_message_queue; Objects_Locations location; if ( !count ) a0015ecc: e2514000 subs r4, r1, #0 <== NOT EXECUTED rtems_status_code rtems_message_queue_get_number_pending( rtems_id id, uint32_t *count ) { a0015ed0: e1a03000 mov r3, r0 <== NOT EXECUTED register Message_queue_Control *the_message_queue; Objects_Locations location; if ( !count ) return RTEMS_INVALID_ADDRESS; a0015ed4: 03a00009 moveq r0, #9 <== NOT EXECUTED ) { register Message_queue_Control *the_message_queue; Objects_Locations location; if ( !count ) a0015ed8: 0a00000b beq a0015f0c <== NOT EXECUTED a0015edc: e59f002c ldr r0, [pc, #44] ; a0015f10 <== NOT EXECUTED a0015ee0: e1a01003 mov r1, r3 <== NOT EXECUTED a0015ee4: e1a0200d mov r2, sp <== NOT EXECUTED a0015ee8: eb00136e bl a001aca8 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { a0015eec: e59d5000 ldr r5, [sp] <== NOT EXECUTED a0015ef0: e3550000 cmp r5, #0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a0015ef4: 13a00004 movne r0, #4 <== NOT EXECUTED if ( !count ) return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { a0015ef8: 1a000003 bne a0015f0c <== NOT EXECUTED case OBJECTS_LOCAL: *count = the_message_queue->message_queue.number_of_pending_messages; a0015efc: e590305c ldr r3, [r0, #92] ; 0x5c <== NOT EXECUTED a0015f00: e5843000 str r3, [r4] <== NOT EXECUTED _Thread_Enable_dispatch(); a0015f04: eb001685 bl a001b920 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0015f08: e1a00005 mov r0, r5 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a0015f0c: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED =============================================================================== a0011078 : rtems_status_code rtems_message_queue_ident( rtems_name name, uint32_t node, rtems_id *id ) { a0011078: e1a0c001 mov ip, r1 <== NOT EXECUTED a001107c: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED a0011080: e1a0e000 mov lr, r0 <== NOT EXECUTED a0011084: e1a03002 mov r3, r2 <== NOT EXECUTED Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( a0011088: e1a0100e mov r1, lr <== NOT EXECUTED a001108c: e1a0200c mov r2, ip <== NOT EXECUTED a0011090: e59f000c ldr r0, [pc, #12] ; a00110a4 <== NOT EXECUTED a0011094: eb00086e bl a0013254 <_Objects_Name_to_id_u32> <== NOT EXECUTED node, id ); return _Status_Object_name_errors_to_status[ status ]; } a0011098: e59f3008 ldr r3, [pc, #8] ; a00110a8 <== NOT EXECUTED a001109c: e7930100 ldr r0, [r3, r0, lsl #2] <== NOT EXECUTED a00110a0: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED =============================================================================== a00110ac : void *buffer, size_t *size, rtems_option option_set, rtems_interval timeout ) { a00110ac: e92d4077 push {r0, r1, r2, r4, r5, r6, lr} <== NOT EXECUTED register Message_queue_Control *the_message_queue; Objects_Locations location; bool wait; if ( !buffer ) a00110b0: e2515000 subs r5, r1, #0 <== NOT EXECUTED void *buffer, size_t *size, rtems_option option_set, rtems_interval timeout ) { a00110b4: e1a0c000 mov ip, r0 <== NOT EXECUTED a00110b8: e1a04002 mov r4, r2 <== NOT EXECUTED a00110bc: e1a06003 mov r6, r3 <== NOT EXECUTED register Message_queue_Control *the_message_queue; Objects_Locations location; bool wait; if ( !buffer ) a00110c0: 0a00001a beq a0011130 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !size ) a00110c4: e3520000 cmp r2, #0 <== NOT EXECUTED a00110c8: 0a000018 beq a0011130 <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Message_queue_Control *) _Objects_Get( &_Message_queue_Information, id, location ); a00110cc: e28d2008 add r2, sp, #8 <== NOT EXECUTED a00110d0: e59f0060 ldr r0, [pc, #96] ; a0011138 <== NOT EXECUTED a00110d4: e1a0100c mov r1, ip <== NOT EXECUTED a00110d8: eb00080e bl a0013118 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { a00110dc: e59d2008 ldr r2, [sp, #8] <== NOT EXECUTED a00110e0: e1a03000 mov r3, r0 <== NOT EXECUTED a00110e4: e3520000 cmp r2, #0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a00110e8: 13a00004 movne r0, #4 <== NOT EXECUTED if ( !size ) return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { a00110ec: 1a000010 bne a0011134 <== NOT EXECUTED if ( _Options_Is_no_wait( option_set ) ) wait = false; else wait = true; _CORE_message_queue_Seize( a00110f0: e59d201c ldr r2, [sp, #28] <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Options_Is_no_wait ( rtems_option option_set ) { return (option_set & RTEMS_NO_WAIT) ? true : false; a00110f4: e2066001 and r6, r6, #1 <== NOT EXECUTED a00110f8: e2266001 eor r6, r6, #1 <== NOT EXECUTED a00110fc: e58d2004 str r2, [sp, #4] <== NOT EXECUTED a0011100: e58d6000 str r6, [sp] <== NOT EXECUTED a0011104: e2830014 add r0, r3, #20 <== NOT EXECUTED a0011108: e5931008 ldr r1, [r3, #8] <== NOT EXECUTED a001110c: e1a02005 mov r2, r5 <== NOT EXECUTED a0011110: e1a03004 mov r3, r4 <== NOT EXECUTED a0011114: eb000440 bl a001221c <_CORE_message_queue_Seize> <== NOT EXECUTED buffer, size, wait, timeout ); _Thread_Enable_dispatch(); a0011118: eb000b42 bl a0013e28 <_Thread_Enable_dispatch> <== NOT EXECUTED return _Message_queue_Translate_core_message_queue_return_code( _Thread_Executing->Wait.return_code a001111c: e59f3018 ldr r3, [pc, #24] ; a001113c <== NOT EXECUTED a0011120: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED size, wait, timeout ); _Thread_Enable_dispatch(); return _Message_queue_Translate_core_message_queue_return_code( a0011124: e5930034 ldr r0, [r3, #52] ; 0x34 <== NOT EXECUTED a0011128: eb000023 bl a00111bc <_Message_queue_Translate_core_message_queue_return_code><== NOT EXECUTED a001112c: ea000000 b a0011134 <== NOT EXECUTED if ( !buffer ) return RTEMS_INVALID_ADDRESS; if ( !size ) return RTEMS_INVALID_ADDRESS; a0011130: e3a00009 mov r0, #9 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a0011134: e8bd807e pop {r1, r2, r3, r4, r5, r6, pc} <== NOT EXECUTED =============================================================================== a0011140 : rtems_status_code rtems_message_queue_send( rtems_id id, const void *buffer, size_t size ) { a0011140: 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 ) a0011144: e2516000 subs r6, r1, #0 <== NOT EXECUTED rtems_status_code rtems_message_queue_send( rtems_id id, const void *buffer, size_t size ) { a0011148: e1a04000 mov r4, r0 <== NOT EXECUTED a001114c: e24dd014 sub sp, sp, #20 <== NOT EXECUTED a0011150: 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; a0011154: 03a00009 moveq r0, #9 <== NOT EXECUTED { register Message_queue_Control *the_message_queue; Objects_Locations location; CORE_message_queue_Status status; if ( !buffer ) a0011158: 0a000014 beq a00111b0 <== NOT EXECUTED a001115c: e59f0054 ldr r0, [pc, #84] ; a00111b8 <== NOT EXECUTED a0011160: e1a01004 mov r1, r4 <== NOT EXECUTED a0011164: e28d2010 add r2, sp, #16 <== NOT EXECUTED a0011168: eb0007ea bl a0013118 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { a001116c: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED a0011170: e3530000 cmp r3, #0 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a0011174: 13a00004 movne r0, #4 <== NOT EXECUTED if ( !buffer ) return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { a0011178: 1a00000c bne a00111b0 <== NOT EXECUTED CORE_message_queue_API_mp_support_callout api_message_queue_mp_support, bool wait, Watchdog_Interval timeout ) { return _CORE_message_queue_Submit( a001117c: e3e02102 mvn r2, #-2147483648 ; 0x80000000 <== NOT EXECUTED a0011180: e58d3000 str r3, [sp] <== NOT EXECUTED a0011184: e98d000c stmib sp, {r2, r3} <== NOT EXECUTED a0011188: e58d300c str r3, [sp, #12] <== NOT EXECUTED a001118c: e1a01006 mov r1, r6 <== NOT EXECUTED a0011190: e1a03004 mov r3, r4 <== NOT EXECUTED a0011194: e1a02005 mov r2, r5 <== NOT EXECUTED a0011198: e2800014 add r0, r0, #20 <== NOT EXECUTED a001119c: eb000459 bl a0012308 <_CORE_message_queue_Submit> <== NOT EXECUTED a00111a0: e1a04000 mov r4, r0 <== NOT EXECUTED MESSAGE_QUEUE_MP_HANDLER, false, /* sender does not block */ 0 /* no timeout */ ); _Thread_Enable_dispatch(); a00111a4: eb000b1f bl a0013e28 <_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); a00111a8: e1a00004 mov r0, r4 <== NOT EXECUTED a00111ac: eb000002 bl a00111bc <_Message_queue_Translate_core_message_queue_return_code><== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a00111b0: e28dd014 add sp, sp, #20 <== NOT EXECUTED a00111b4: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED =============================================================================== a0016068 : rtems_status_code rtems_message_queue_urgent( rtems_id id, const void *buffer, size_t size ) { a0016068: 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 ) a001606c: e2516000 subs r6, r1, #0 <== NOT EXECUTED rtems_status_code rtems_message_queue_urgent( rtems_id id, const void *buffer, size_t size ) { a0016070: e1a04000 mov r4, r0 <== NOT EXECUTED a0016074: e24dd014 sub sp, sp, #20 <== NOT EXECUTED a0016078: 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; a001607c: 03a00009 moveq r0, #9 <== NOT EXECUTED { register Message_queue_Control *the_message_queue; Objects_Locations location; CORE_message_queue_Status status; if ( !buffer ) a0016080: 0a000014 beq a00160d8 <== NOT EXECUTED a0016084: e59f0054 ldr r0, [pc, #84] ; a00160e0 <== NOT EXECUTED a0016088: e1a01004 mov r1, r4 <== NOT EXECUTED a001608c: e28d2010 add r2, sp, #16 <== NOT EXECUTED a0016090: eb001304 bl a001aca8 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { a0016094: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED a0016098: e3530000 cmp r3, #0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a001609c: 13a00004 movne r0, #4 <== NOT EXECUTED if ( !buffer ) return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { a00160a0: 1a00000c bne a00160d8 <== NOT EXECUTED CORE_message_queue_API_mp_support_callout api_message_queue_mp_support, bool wait, Watchdog_Interval timeout ) { return _CORE_message_queue_Submit( a00160a4: e3a02102 mov r2, #-2147483648 ; 0x80000000 <== NOT EXECUTED a00160a8: e58d3000 str r3, [sp] <== NOT EXECUTED a00160ac: e98d000c stmib sp, {r2, r3} <== NOT EXECUTED a00160b0: e58d300c str r3, [sp, #12] <== NOT EXECUTED a00160b4: e1a01006 mov r1, r6 <== NOT EXECUTED a00160b8: e1a03004 mov r3, r4 <== NOT EXECUTED a00160bc: e1a02005 mov r2, r5 <== NOT EXECUTED a00160c0: e2800014 add r0, r0, #20 <== NOT EXECUTED a00160c4: eb000cd1 bl a0019410 <_CORE_message_queue_Submit> <== NOT EXECUTED a00160c8: e1a04000 mov r4, r0 <== NOT EXECUTED id, MESSAGE_QUEUE_MP_HANDLER, false, /* sender does not block */ 0 /* no timeout */ ); _Thread_Enable_dispatch(); a00160cc: eb001613 bl a001b920 <_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); a00160d0: e1a00004 mov r0, r4 <== NOT EXECUTED a00160d4: ebffffdf bl a0016058 <_Message_queue_Translate_core_message_queue_return_code><== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a00160d8: e28dd014 add sp, sp, #20 <== NOT EXECUTED a00160dc: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED =============================================================================== a000b150 : int rtems_object_api_maximum_class( int api ) { return _Objects_API_maximum_class(api); a000b150: ea0005f3 b a000c924 <_Objects_API_maximum_class> <== NOT EXECUTED =============================================================================== a000b154 : */ RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid( uint32_t the_api ) { if ( !the_api || the_api > OBJECTS_APIS_LAST ) a000b154: e2400001 sub r0, r0, #1 <== NOT EXECUTED uint32_t api ) { if ( _Objects_Is_api_valid( api ) ) return 1; return -1; a000b158: e3500003 cmp r0, #3 <== NOT EXECUTED } a000b15c: 33a00001 movcc r0, #1 <== NOT EXECUTED a000b160: 23e00000 mvncs r0, #0 <== NOT EXECUTED a000b164: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000b168 : ) { const rtems_assoc_t *api_assoc; const rtems_assoc_t *class_assoc; if ( the_api == OBJECTS_INTERNAL_API ) a000b168: e3500001 cmp r0, #1 <== NOT EXECUTED const char *rtems_object_get_api_class_name( int the_api, int the_class ) { a000b16c: 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 ) a000b170: 0a000003 beq a000b184 <== NOT EXECUTED api_assoc = rtems_object_api_internal_assoc; else if ( the_api == OBJECTS_CLASSIC_API ) a000b174: e3500002 cmp r0, #2 <== NOT EXECUTED api_assoc = rtems_object_api_classic_assoc; a000b178: 059f002c ldreq r0, [pc, #44] ; a000b1ac <== 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 ) a000b17c: 1a000006 bne a000b19c <== NOT EXECUTED a000b180: ea000000 b a000b188 <== 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; a000b184: e59f0024 ldr r0, [pc, #36] ; a000b1b0 <== 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 ); a000b188: eb0012d0 bl a000fcd0 <== NOT EXECUTED if ( class_assoc ) a000b18c: e3500000 cmp r0, #0 <== NOT EXECUTED return class_assoc->name; a000b190: 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 ) a000b194: 149df004 popne {pc} ; (ldrne pc, [sp], #4) <== NOT EXECUTED a000b198: ea000001 b a000b1a4 <== 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"; a000b19c: e59f0010 ldr r0, [pc, #16] ; a000b1b4 <== NOT EXECUTED a000b1a0: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED class_assoc = rtems_assoc_ptr_by_local( api_assoc, the_class ); if ( class_assoc ) return class_assoc->name; return "BAD CLASS"; a000b1a4: e59f000c ldr r0, [pc, #12] ; a000b1b8 <== NOT EXECUTED } a000b1a8: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED =============================================================================== a000b1bc : }; const char *rtems_object_get_api_name( int api ) { a000b1bc: e1a01000 mov r1, r0 <== NOT EXECUTED a000b1c0: 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 ); a000b1c4: e59f0010 ldr r0, [pc, #16] ; a000b1dc <== NOT EXECUTED a000b1c8: eb0012c0 bl a000fcd0 <== NOT EXECUTED if ( api_assoc ) a000b1cc: e3500000 cmp r0, #0 <== NOT EXECUTED return api_assoc->name; a000b1d0: 15900000 ldrne r0, [r0] <== NOT EXECUTED return "BAD CLASS"; a000b1d4: 059f0004 ldreq r0, [pc, #4] ; a000b1e0 <== NOT EXECUTED } a000b1d8: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED =============================================================================== a000b214 : rtems_status_code rtems_object_get_class_information( int the_api, int the_class, rtems_object_api_class_information *info ) { a000b214: e92d4010 push {r4, lr} <== NOT EXECUTED int i; /* * Validate parameters and look up information structure. */ if ( !info ) a000b218: e2524000 subs r4, r2, #0 <== NOT EXECUTED a000b21c: 0a000019 beq a000b288 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; obj_info = _Objects_Get_information( the_api, the_class ); a000b220: e1a01801 lsl r1, r1, #16 <== NOT EXECUTED a000b224: e1a01821 lsr r1, r1, #16 <== NOT EXECUTED a000b228: eb00068c bl a000cc60 <_Objects_Get_information> <== NOT EXECUTED if ( !obj_info ) a000b22c: e3500000 cmp r0, #0 <== NOT EXECUTED a000b230: 0a000016 beq a000b290 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; /* * Return information about this object class to the user. */ info->minimum_id = obj_info->minimum_id; a000b234: e5903008 ldr r3, [r0, #8] <== NOT EXECUTED info->maximum_id = obj_info->maximum_id; info->auto_extend = obj_info->auto_extend; info->maximum = obj_info->maximum; a000b238: e1d011b0 ldrh r1, [r0, #16] <== NOT EXECUTED for ( unallocated=0, i=1 ; i <= info->maximum ; i++ ) a000b23c: e3a02000 mov r2, #0 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; /* * Return information about this object class to the user. */ info->minimum_id = obj_info->minimum_id; a000b240: e5843000 str r3, [r4] <== NOT EXECUTED info->maximum_id = obj_info->maximum_id; a000b244: e590300c ldr r3, [r0, #12] <== NOT EXECUTED a000b248: e5843004 str r3, [r4, #4] <== NOT EXECUTED info->auto_extend = obj_info->auto_extend; a000b24c: e5d03012 ldrb r3, [r0, #18] <== NOT EXECUTED info->maximum = obj_info->maximum; a000b250: e5841008 str r1, [r4, #8] <== NOT EXECUTED /* * Return information about this object class to the user. */ info->minimum_id = obj_info->minimum_id; info->maximum_id = obj_info->maximum_id; info->auto_extend = obj_info->auto_extend; a000b254: e5c4300c strb r3, [r4, #12] <== NOT EXECUTED info->maximum = obj_info->maximum; for ( unallocated=0, i=1 ; i <= info->maximum ; i++ ) a000b258: e3a03001 mov r3, #1 <== NOT EXECUTED a000b25c: ea000004 b a000b274 <== NOT EXECUTED if ( !obj_info->local_table[i] ) a000b260: e590c01c ldr ip, [r0, #28] <== NOT EXECUTED a000b264: e79cc103 ldr ip, [ip, r3, lsl #2] <== NOT EXECUTED info->minimum_id = obj_info->minimum_id; info->maximum_id = obj_info->maximum_id; info->auto_extend = obj_info->auto_extend; info->maximum = obj_info->maximum; for ( unallocated=0, i=1 ; i <= info->maximum ; i++ ) a000b268: e2833001 add r3, r3, #1 <== NOT EXECUTED if ( !obj_info->local_table[i] ) a000b26c: e35c0000 cmp ip, #0 <== NOT EXECUTED unallocated++; a000b270: 02822001 addeq r2, r2, #1 <== NOT EXECUTED info->minimum_id = obj_info->minimum_id; info->maximum_id = obj_info->maximum_id; info->auto_extend = obj_info->auto_extend; info->maximum = obj_info->maximum; for ( unallocated=0, i=1 ; i <= info->maximum ; i++ ) a000b274: e1530001 cmp r3, r1 <== NOT EXECUTED a000b278: 9afffff8 bls a000b260 <== NOT EXECUTED if ( !obj_info->local_table[i] ) unallocated++; info->unallocated = unallocated; a000b27c: e5842010 str r2, [r4, #16] <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000b280: e3a00000 mov r0, #0 <== NOT EXECUTED a000b284: e8bd8010 pop {r4, pc} <== NOT EXECUTED /* * Validate parameters and look up information structure. */ if ( !info ) return RTEMS_INVALID_ADDRESS; a000b288: e3a00009 mov r0, #9 <== NOT EXECUTED a000b28c: e8bd8010 pop {r4, pc} <== NOT EXECUTED obj_info = _Objects_Get_information( the_api, the_class ); if ( !obj_info ) return RTEMS_INVALID_NUMBER; a000b290: e3a0000a mov r0, #10 <== NOT EXECUTED unallocated++; info->unallocated = unallocated; return RTEMS_SUCCESSFUL; } a000b294: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a000a520 : rtems_status_code rtems_object_get_classic_name( rtems_id id, rtems_name *name ) { a000a520: e92d4011 push {r0, r4, lr} <== NOT EXECUTED Objects_Name_or_id_lookup_errors status; Objects_Name name_u; if ( !name ) a000a524: e2514000 subs r4, r1, #0 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; a000a528: 03a00009 moveq r0, #9 <== NOT EXECUTED ) { Objects_Name_or_id_lookup_errors status; Objects_Name name_u; if ( !name ) a000a52c: 0a000005 beq a000a548 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; status = _Objects_Id_to_name( id, &name_u ); a000a530: e1a0100d mov r1, sp <== NOT EXECUTED a000a534: eb0006b5 bl a000c010 <_Objects_Id_to_name> <== NOT EXECUTED *name = name_u.name_u32; a000a538: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000a53c: e5843000 str r3, [r4] <== NOT EXECUTED return _Status_Object_name_errors_to_status[ status ]; a000a540: e59f3004 ldr r3, [pc, #4] ; a000a54c <== NOT EXECUTED a000a544: e7930100 ldr r0, [r3, r0, lsl #2] <== NOT EXECUTED } a000a548: e8bd8018 pop {r3, r4, pc} <== NOT EXECUTED =============================================================================== a000a7fc : Objects_Id id, size_t length, char *name ) { return _Objects_Get_name_as_string( id, length, name ); a000a7fc: ea000741 b a000c508 <_Objects_Get_name_as_string> <== NOT EXECUTED =============================================================================== a000b29c : #undef rtems_object_id_api_maximum int rtems_object_id_api_maximum(void) { return OBJECTS_APIS_LAST; } a000b29c: e3a00003 mov r0, #3 <== NOT EXECUTED a000b2a0: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000b2a4 : #undef rtems_object_id_api_minimum int rtems_object_id_api_minimum(void) { return OBJECTS_INTERNAL_API; } a000b2a4: e3a00001 mov r0, #1 <== NOT EXECUTED a000b2a8: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000b2ac : */ RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API( Objects_Id id ) { return (Objects_APIs) ((id >> OBJECTS_API_START_BIT) & OBJECTS_API_VALID_BITS); a000b2ac: e1a00c20 lsr r0, r0, #24 <== NOT EXECUTED int rtems_object_id_get_api( rtems_id id ) { return _Objects_Get_API( id ); } a000b2b0: e2000007 and r0, r0, #7 <== NOT EXECUTED a000b2b4: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000b2b8 : int rtems_object_id_get_class( rtems_id id ) { return _Objects_Get_class( id ); } a000b2b8: e1a00da0 lsr r0, r0, #27 <== NOT EXECUTED a000b2bc: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000b2c0 : #undef rtems_object_id_get_index int rtems_object_id_get_index( rtems_id id ) { return _Objects_Get_index( id ); a000b2c0: e1a00800 lsl r0, r0, #16 <== NOT EXECUTED } a000b2c4: e1a00820 lsr r0, r0, #16 <== NOT EXECUTED a000b2c8: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000b2cc : * 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; a000b2cc: e1a00820 lsr r0, r0, #16 <== NOT EXECUTED int rtems_object_id_get_node( rtems_id id ) { return _Objects_Get_node( id ); } a000b2d0: e20000ff and r0, r0, #255 ; 0xff <== NOT EXECUTED a000b2d4: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000b2d8 : */ rtems_status_code rtems_object_set_name( rtems_id id, const char *name ) { a000b2d8: e92d4071 push {r0, r4, r5, r6, lr} <== NOT EXECUTED Objects_Information *information; Objects_Locations location; Objects_Control *the_object; Objects_Id tmpId; if ( !name ) a000b2dc: e2515000 subs r5, r1, #0 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; a000b2e0: 03a00009 moveq r0, #9 <== NOT EXECUTED Objects_Information *information; Objects_Locations location; Objects_Control *the_object; Objects_Id tmpId; if ( !name ) a000b2e4: 0a000016 beq a000b344 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; a000b2e8: e3500000 cmp r0, #0 <== NOT EXECUTED a000b2ec: 059f3054 ldreq r3, [pc, #84] ; a000b348 <== NOT EXECUTED a000b2f0: 11a04000 movne r4, r0 <== NOT EXECUTED a000b2f4: 05933004 ldreq r3, [r3, #4] <== NOT EXECUTED a000b2f8: 05934008 ldreq r4, [r3, #8] <== NOT EXECUTED information = _Objects_Get_information_id( tmpId ); a000b2fc: e1a00004 mov r0, r4 <== NOT EXECUTED a000b300: eb000651 bl a000cc4c <_Objects_Get_information_id> <== NOT EXECUTED if ( !information ) a000b304: e2506000 subs r6, r0, #0 <== NOT EXECUTED a000b308: 0a00000c beq a000b340 <== NOT EXECUTED return RTEMS_INVALID_ID; the_object = _Objects_Get( information, tmpId, &location ); a000b30c: e1a01004 mov r1, r4 <== NOT EXECUTED a000b310: e1a0200d mov r2, sp <== NOT EXECUTED a000b314: eb0006be bl a000ce14 <_Objects_Get> <== NOT EXECUTED switch ( location ) { a000b318: 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 ); a000b31c: e1a01000 mov r1, r0 <== NOT EXECUTED switch ( location ) { a000b320: e3540000 cmp r4, #0 <== NOT EXECUTED a000b324: 1a000005 bne a000b340 <== NOT EXECUTED case OBJECTS_LOCAL: _Objects_Set_name( information, the_object, name ); a000b328: e1a02005 mov r2, r5 <== NOT EXECUTED a000b32c: e1a00006 mov r0, r6 <== NOT EXECUTED a000b330: eb000728 bl a000cfd8 <_Objects_Set_name> <== NOT EXECUTED _Thread_Enable_dispatch(); a000b334: eb0009eb bl a000dae8 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000b338: e1a00004 mov r0, r4 <== NOT EXECUTED a000b33c: ea000000 b a000b344 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a000b340: e3a00004 mov r0, #4 <== NOT EXECUTED } a000b344: e8bd8078 pop {r3, r4, r5, r6, pc} <== NOT EXECUTED =============================================================================== a00160e4 : uint32_t length, uint32_t buffer_size, rtems_attribute attribute_set, rtems_id *id ) { a00160e4: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED register Partition_Control *the_partition; if ( !rtems_is_name_valid( name ) ) a00160e8: e2508000 subs r8, r0, #0 <== NOT EXECUTED uint32_t length, uint32_t buffer_size, rtems_attribute attribute_set, rtems_id *id ) { a00160ec: e1a05001 mov r5, r1 <== NOT EXECUTED a00160f0: e1a09002 mov r9, r2 <== NOT EXECUTED a00160f4: e1a0a003 mov sl, r3 <== NOT EXECUTED register Partition_Control *the_partition; if ( !rtems_is_name_valid( name ) ) a00160f8: 0a000032 beq a00161c8 <== NOT EXECUTED return RTEMS_INVALID_NAME; if ( !starting_address ) a00160fc: e3510000 cmp r1, #0 <== NOT EXECUTED a0016100: 0a000032 beq a00161d0 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !id ) a0016104: e59d2028 ldr r2, [sp, #40] ; 0x28 <== NOT EXECUTED a0016108: e3520000 cmp r2, #0 <== NOT EXECUTED a001610c: 0a00002f beq a00161d0 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( length == 0 || buffer_size == 0 || length < buffer_size || a0016110: e3590000 cmp r9, #0 <== NOT EXECUTED a0016114: 13530000 cmpne r3, #0 <== NOT EXECUTED a0016118: 0a00002e beq a00161d8 <== NOT EXECUTED a001611c: e1590003 cmp r9, r3 <== NOT EXECUTED a0016120: 3a00002c bcc a00161d8 <== NOT EXECUTED a0016124: e3130007 tst r3, #7 <== NOT EXECUTED a0016128: 1a00002a bne a00161d8 <== NOT EXECUTED !_Partition_Is_buffer_size_aligned( buffer_size ) ) return RTEMS_INVALID_SIZE; if ( !_Addresses_Is_aligned( starting_address ) ) a001612c: e2116007 ands r6, r1, #7 <== NOT EXECUTED a0016130: 1a00002a bne a00161e0 <== NOT EXECUTED a0016134: e59f30ac ldr r3, [pc, #172] ; a00161e8 <== NOT EXECUTED a0016138: e5932000 ldr r2, [r3] <== NOT EXECUTED a001613c: e2822001 add r2, r2, #1 <== NOT EXECUTED a0016140: e5832000 str r2, [r3] <== 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 ); a0016144: e59f70a0 ldr r7, [pc, #160] ; a00161ec <== NOT EXECUTED a0016148: e1a00007 mov r0, r7 <== NOT EXECUTED a001614c: eb0011a6 bl a001a7ec <_Objects_Allocate> <== NOT EXECUTED _Thread_Disable_dispatch(); /* prevents deletion */ the_partition = _Partition_Allocate(); if ( !the_partition ) { a0016150: e2504000 subs r4, r0, #0 <== NOT EXECUTED a0016154: 1a000002 bne a0016164 <== NOT EXECUTED _Thread_Enable_dispatch(); a0016158: eb0015f0 bl a001b920 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_TOO_MANY; a001615c: e3a00005 mov r0, #5 <== NOT EXECUTED a0016160: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED #endif the_partition->starting_address = starting_address; the_partition->length = length; the_partition->buffer_size = buffer_size; the_partition->attribute_set = attribute_set; a0016164: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED the_partition->number_of_used_blocks = 0; _Chain_Initialize( &the_partition->Memory, starting_address, a0016168: e1a0100a mov r1, sl <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } #endif the_partition->starting_address = starting_address; a001616c: e5845010 str r5, [r4, #16] <== NOT EXECUTED the_partition->length = length; the_partition->buffer_size = buffer_size; the_partition->attribute_set = attribute_set; a0016170: e584301c str r3, [r4, #28] <== NOT EXECUTED return RTEMS_TOO_MANY; } #endif the_partition->starting_address = starting_address; the_partition->length = length; a0016174: e5849014 str r9, [r4, #20] <== NOT EXECUTED the_partition->buffer_size = buffer_size; a0016178: e584a018 str sl, [r4, #24] <== NOT EXECUTED the_partition->attribute_set = attribute_set; the_partition->number_of_used_blocks = 0; a001617c: e5846020 str r6, [r4, #32] <== NOT EXECUTED _Chain_Initialize( &the_partition->Memory, starting_address, a0016180: e1a00009 mov r0, r9 <== NOT EXECUTED a0016184: eb005dbd bl a002d880 <__aeabi_uidiv> <== NOT EXECUTED a0016188: e284b024 add fp, r4, #36 ; 0x24 <== NOT EXECUTED a001618c: e1a02000 mov r2, r0 <== NOT EXECUTED a0016190: e1a01005 mov r1, r5 <== NOT EXECUTED a0016194: e1a0000b mov r0, fp <== NOT EXECUTED a0016198: e1a0300a mov r3, sl <== NOT EXECUTED a001619c: eb000bdb bl a0019110 <_Chain_Initialize> <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; a00161a0: e597201c ldr r2, [r7, #28] <== NOT EXECUTED Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( a00161a4: e1d410b8 ldrh r1, [r4, #8] <== NOT EXECUTED a00161a8: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; a00161ac: e7824101 str r4, [r2, r1, lsl #2] <== NOT EXECUTED &_Partition_Information, &the_partition->Object, (Objects_Name) name ); *id = the_partition->Object.id; a00161b0: e59d2028 ldr r2, [sp, #40] ; 0x28 <== NOT EXECUTED information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; a00161b4: e584800c str r8, [r4, #12] <== NOT EXECUTED a00161b8: e5823000 str r3, [r2] <== NOT EXECUTED name, 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); a00161bc: eb0015d7 bl a001b920 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a00161c0: e1a00006 mov r0, r6 <== NOT EXECUTED a00161c4: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED ) { register Partition_Control *the_partition; if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; a00161c8: e3a00003 mov r0, #3 <== NOT EXECUTED a00161cc: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED if ( !starting_address ) return RTEMS_INVALID_ADDRESS; if ( !id ) return RTEMS_INVALID_ADDRESS; a00161d0: e3a00009 mov r0, #9 <== NOT EXECUTED a00161d4: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED if ( length == 0 || buffer_size == 0 || length < buffer_size || !_Partition_Is_buffer_size_aligned( buffer_size ) ) return RTEMS_INVALID_SIZE; a00161d8: e3a00008 mov r0, #8 <== NOT EXECUTED a00161dc: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED if ( !_Addresses_Is_aligned( starting_address ) ) return RTEMS_INVALID_ADDRESS; a00161e0: e3a00009 mov r0, #9 <== NOT EXECUTED ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } a00161e4: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED =============================================================================== a00161f0 : */ rtems_status_code rtems_partition_delete( rtems_id id ) { a00161f0: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED a00161f4: e1a01000 mov r1, r0 <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Partition_Control *) _Objects_Get( &_Partition_Information, id, location ); a00161f8: e1a0200d mov r2, sp <== NOT EXECUTED a00161fc: e59f0050 ldr r0, [pc, #80] ; a0016254 <== NOT EXECUTED a0016200: eb0012a8 bl a001aca8 <_Objects_Get> <== NOT EXECUTED register Partition_Control *the_partition; Objects_Locations location; the_partition = _Partition_Get( id, &location ); switch ( location ) { a0016204: e59d3000 ldr r3, [sp] <== NOT EXECUTED a0016208: e1a04000 mov r4, r0 <== NOT EXECUTED a001620c: e3530000 cmp r3, #0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a0016210: 13a00004 movne r0, #4 <== NOT EXECUTED { register Partition_Control *the_partition; Objects_Locations location; the_partition = _Partition_Get( id, &location ); switch ( location ) { a0016214: 1a00000d bne a0016250 <== NOT EXECUTED case OBJECTS_LOCAL: if ( the_partition->number_of_used_blocks == 0 ) { a0016218: e5945020 ldr r5, [r4, #32] <== NOT EXECUTED a001621c: e3550000 cmp r5, #0 <== NOT EXECUTED a0016220: 1a000008 bne a0016248 <== NOT EXECUTED _Objects_Close( &_Partition_Information, &the_partition->Object ); a0016224: e59f0028 ldr r0, [pc, #40] ; a0016254 <== NOT EXECUTED a0016228: e1a01004 mov r1, r4 <== NOT EXECUTED a001622c: eb001190 bl a001a874 <_Objects_Close> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Partition_Free ( Partition_Control *the_partition ) { _Objects_Free( &_Partition_Information, &the_partition->Object ); a0016230: e59f001c ldr r0, [pc, #28] ; a0016254 <== NOT EXECUTED a0016234: e1a01004 mov r1, r4 <== NOT EXECUTED a0016238: eb001232 bl a001ab08 <_Objects_Free> <== NOT EXECUTED 0 /* Not used */ ); } #endif _Thread_Enable_dispatch(); a001623c: eb0015b7 bl a001b920 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0016240: e1a00005 mov r0, r5 <== NOT EXECUTED a0016244: ea000001 b a0016250 <== NOT EXECUTED } _Thread_Enable_dispatch(); a0016248: eb0015b4 bl a001b920 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_RESOURCE_IN_USE; a001624c: e3a0000c mov r0, #12 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a0016250: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED =============================================================================== a0016258 : rtems_status_code rtems_partition_get_buffer( rtems_id id, void **buffer ) { a0016258: e92d40f1 push {r0, r4, r5, r6, r7, lr} <== NOT EXECUTED register Partition_Control *the_partition; Objects_Locations location; void *the_buffer; if ( !buffer ) a001625c: e2514000 subs r4, r1, #0 <== NOT EXECUTED rtems_status_code rtems_partition_get_buffer( rtems_id id, void **buffer ) { a0016260: e1a03000 mov r3, r0 <== NOT EXECUTED register Partition_Control *the_partition; Objects_Locations location; void *the_buffer; if ( !buffer ) return RTEMS_INVALID_ADDRESS; a0016264: 03a00009 moveq r0, #9 <== NOT EXECUTED { register Partition_Control *the_partition; Objects_Locations location; void *the_buffer; if ( !buffer ) a0016268: 0a000015 beq a00162c4 <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Partition_Control *) _Objects_Get( &_Partition_Information, id, location ); a001626c: e59f0054 ldr r0, [pc, #84] ; a00162c8 <== NOT EXECUTED a0016270: e1a01003 mov r1, r3 <== NOT EXECUTED a0016274: e1a0200d mov r2, sp <== NOT EXECUTED a0016278: eb00128a bl a001aca8 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_partition = _Partition_Get( id, &location ); switch ( location ) { a001627c: e59d6000 ldr r6, [sp] <== NOT EXECUTED a0016280: e1a05000 mov r5, r0 <== NOT EXECUTED a0016284: e3560000 cmp r6, #0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a0016288: 13a00004 movne r0, #4 <== NOT EXECUTED if ( !buffer ) return RTEMS_INVALID_ADDRESS; the_partition = _Partition_Get( id, &location ); switch ( location ) { a001628c: 1a00000c bne a00162c4 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void *_Partition_Allocate_buffer ( Partition_Control *the_partition ) { return _Chain_Get( &the_partition->Memory ); a0016290: e2850024 add r0, r5, #36 ; 0x24 <== NOT EXECUTED a0016294: eb000b90 bl a00190dc <_Chain_Get> <== NOT EXECUTED case OBJECTS_LOCAL: the_buffer = _Partition_Allocate_buffer( the_partition ); if ( the_buffer ) { a0016298: e2507000 subs r7, r0, #0 <== NOT EXECUTED a001629c: 0a000006 beq a00162bc <== NOT EXECUTED the_partition->number_of_used_blocks += 1; a00162a0: e5953020 ldr r3, [r5, #32] <== NOT EXECUTED a00162a4: e2833001 add r3, r3, #1 <== NOT EXECUTED a00162a8: e5853020 str r3, [r5, #32] <== NOT EXECUTED _Thread_Enable_dispatch(); a00162ac: eb00159b bl a001b920 <_Thread_Enable_dispatch> <== NOT EXECUTED *buffer = the_buffer; a00162b0: e5847000 str r7, [r4] <== NOT EXECUTED return RTEMS_SUCCESSFUL; a00162b4: e1a00006 mov r0, r6 <== NOT EXECUTED a00162b8: ea000001 b a00162c4 <== NOT EXECUTED } _Thread_Enable_dispatch(); a00162bc: eb001597 bl a001b920 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_UNSATISFIED; a00162c0: e3a0000d mov r0, #13 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a00162c4: e8bd80f8 pop {r3, r4, r5, r6, r7, pc} <== NOT EXECUTED =============================================================================== a00162cc : rtems_status_code rtems_partition_ident( rtems_name name, uint32_t node, rtems_id *id ) { a00162cc: e1a0c001 mov ip, r1 <== NOT EXECUTED a00162d0: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED a00162d4: e1a0e000 mov lr, r0 <== NOT EXECUTED a00162d8: e1a03002 mov r3, r2 <== NOT EXECUTED Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( &_Partition_Information, name, node, id ); a00162dc: e1a0100e mov r1, lr <== NOT EXECUTED a00162e0: e1a0200c mov r2, ip <== NOT EXECUTED a00162e4: e59f000c ldr r0, [pc, #12] ; a00162f8 <== NOT EXECUTED a00162e8: eb0012bd bl a001ade4 <_Objects_Name_to_id_u32> <== NOT EXECUTED return _Status_Object_name_errors_to_status[ status ]; } a00162ec: e59f3008 ldr r3, [pc, #8] ; a00162fc <== NOT EXECUTED a00162f0: e7930100 ldr r0, [r3, r0, lsl #2] <== NOT EXECUTED a00162f4: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED =============================================================================== a0016300 : rtems_status_code rtems_partition_return_buffer( rtems_id id, void *buffer ) { a0016300: e92d4071 push {r0, r4, r5, r6, lr} <== NOT EXECUTED a0016304: e1a03000 mov r3, r0 <== NOT EXECUTED a0016308: e1a04001 mov r4, r1 <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Partition_Control *) _Objects_Get( &_Partition_Information, id, location ); a001630c: e59f0088 ldr r0, [pc, #136] ; a001639c <== NOT EXECUTED a0016310: e1a01003 mov r1, r3 <== NOT EXECUTED a0016314: e1a0200d mov r2, sp <== NOT EXECUTED a0016318: eb001262 bl a001aca8 <_Objects_Get> <== NOT EXECUTED register Partition_Control *the_partition; Objects_Locations location; the_partition = _Partition_Get( id, &location ); switch ( location ) { a001631c: e59d3000 ldr r3, [sp] <== NOT EXECUTED a0016320: e1a05000 mov r5, r0 <== NOT EXECUTED a0016324: e3530000 cmp r3, #0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a0016328: 13a00004 movne r0, #4 <== NOT EXECUTED { register Partition_Control *the_partition; Objects_Locations location; the_partition = _Partition_Get( id, &location ); switch ( location ) { a001632c: 1a000016 bne a001638c <== NOT EXECUTED ) { void *starting; void *ending; starting = the_partition->starting_address; a0016330: e5950010 ldr r0, [r5, #16] <== NOT EXECUTED a0016334: e5953014 ldr r3, [r5, #20] <== NOT EXECUTED a0016338: e0803003 add r3, r0, r3 <== NOT EXECUTED const void *address, const void *base, const void *limit ) { return (address >= base && address <= limit); a001633c: e1540003 cmp r4, r3 <== NOT EXECUTED a0016340: 83a03000 movhi r3, #0 <== NOT EXECUTED a0016344: 93a03001 movls r3, #1 <== NOT EXECUTED a0016348: e1540000 cmp r4, r0 <== NOT EXECUTED a001634c: 33a03000 movcc r3, #0 <== NOT EXECUTED ending = _Addresses_Add_offset( starting, the_partition->length ); return ( _Addresses_Is_in_range( the_buffer, starting, ending ) && a0016350: e3530000 cmp r3, #0 <== NOT EXECUTED a0016354: 0a00000d beq a0016390 <== NOT EXECUTED offset = (uint32_t) _Addresses_Subtract( the_buffer, the_partition->starting_address ); return ((offset % the_partition->buffer_size) == 0); a0016358: e0600004 rsb r0, r0, r4 <== NOT EXECUTED a001635c: e5951018 ldr r1, [r5, #24] <== NOT EXECUTED a0016360: eb005dde bl a002dae0 <__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 ) && a0016364: e2506000 subs r6, r0, #0 <== NOT EXECUTED a0016368: 1a000008 bne a0016390 <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Partition_Free_buffer ( Partition_Control *the_partition, Chain_Node *the_buffer ) { _Chain_Append( &the_partition->Memory, the_buffer ); a001636c: e2850024 add r0, r5, #36 ; 0x24 <== NOT EXECUTED a0016370: e1a01004 mov r1, r4 <== NOT EXECUTED a0016374: eb000b45 bl a0019090 <_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; a0016378: e5953020 ldr r3, [r5, #32] <== NOT EXECUTED a001637c: e2433001 sub r3, r3, #1 <== NOT EXECUTED a0016380: e5853020 str r3, [r5, #32] <== NOT EXECUTED _Thread_Enable_dispatch(); a0016384: eb001565 bl a001b920 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0016388: e1a00006 mov r0, r6 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a001638c: e8bd8078 pop {r3, 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(); a0016390: eb001562 bl a001b920 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; a0016394: e3a00009 mov r0, #9 <== NOT EXECUTED a0016398: eafffffb b a001638c <== NOT EXECUTED =============================================================================== a0015744 : void *internal_start, void *external_start, uint32_t length, rtems_id *id ) { a0015744: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} <== NOT EXECUTED register Dual_ported_memory_Control *the_port; if ( !rtems_is_name_valid( name ) ) a0015748: e250a000 subs sl, r0, #0 <== NOT EXECUTED void *internal_start, void *external_start, uint32_t length, rtems_id *id ) { a001574c: e1a04001 mov r4, r1 <== NOT EXECUTED a0015750: e1a05002 mov r5, r2 <== NOT EXECUTED a0015754: e1a09003 mov r9, r3 <== NOT EXECUTED a0015758: e59d6020 ldr r6, [sp, #32] <== NOT EXECUTED register Dual_ported_memory_Control *the_port; if ( !rtems_is_name_valid( name ) ) a001575c: 0a00001d beq a00157d8 <== NOT EXECUTED return RTEMS_INVALID_NAME; if ( !id ) a0015760: e3560000 cmp r6, #0 <== NOT EXECUTED a0015764: 0a00001d beq a00157e0 <== NOT EXECUTED * id - port id * RTEMS_SUCCESSFUL - if successful * error code - if unsuccessful */ rtems_status_code rtems_port_create( a0015768: e1828001 orr r8, r2, r1 <== NOT EXECUTED return RTEMS_INVALID_NAME; if ( !id ) return RTEMS_INVALID_ADDRESS; if ( !_Addresses_Is_aligned( internal_start ) || a001576c: e2188007 ands r8, r8, #7 <== NOT EXECUTED a0015770: 1a00001c bne a00157e8 <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; a0015774: e59f3074 ldr r3, [pc, #116] ; a00157f0 <== NOT EXECUTED a0015778: e5932000 ldr r2, [r3] <== NOT EXECUTED a001577c: e2822001 add r2, r2, #1 <== NOT EXECUTED a0015780: e5832000 str r2, [r3] <== 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 ); a0015784: e59f7068 ldr r7, [pc, #104] ; a00157f4 <== NOT EXECUTED a0015788: e1a00007 mov r0, r7 <== NOT EXECUTED a001578c: eb001416 bl a001a7ec <_Objects_Allocate> <== NOT EXECUTED _Thread_Disable_dispatch(); /* to prevent deletion */ the_port = _Dual_ported_memory_Allocate(); if ( !the_port ) { a0015790: e3500000 cmp r0, #0 <== NOT EXECUTED a0015794: 1a000002 bne a00157a4 <== NOT EXECUTED _Thread_Enable_dispatch(); a0015798: eb001860 bl a001b920 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_TOO_MANY; a001579c: e3a00005 mov r0, #5 <== NOT EXECUTED a00157a0: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( a00157a4: e5903008 ldr r3, [r0, #8] <== NOT EXECUTED a00157a8: e1d010b8 ldrh r1, [r0, #8] <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; a00157ac: e597201c ldr r2, [r7, #28] <== NOT EXECUTED } the_port->internal_base = internal_start; the_port->external_base = external_start; the_port->length = length - 1; a00157b0: e2499001 sub r9, r9, #1 <== NOT EXECUTED if ( !the_port ) { _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } the_port->internal_base = internal_start; a00157b4: e5804010 str r4, [r0, #16] <== NOT EXECUTED the_port->external_base = external_start; a00157b8: e5805014 str r5, [r0, #20] <== NOT EXECUTED the_port->length = length - 1; a00157bc: e5809018 str r9, [r0, #24] <== NOT EXECUTED a00157c0: e7820101 str r0, [r2, r1, lsl #2] <== NOT EXECUTED information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; a00157c4: e580a00c str sl, [r0, #12] <== NOT EXECUTED &_Dual_ported_memory_Information, &the_port->Object, (Objects_Name) name ); *id = the_port->Object.id; a00157c8: e5863000 str r3, [r6] <== NOT EXECUTED _Thread_Enable_dispatch(); a00157cc: eb001853 bl a001b920 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a00157d0: e1a00008 mov r0, r8 <== NOT EXECUTED a00157d4: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED ) { register Dual_ported_memory_Control *the_port; if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; a00157d8: e3a00003 mov r0, #3 <== NOT EXECUTED a00157dc: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED if ( !id ) return RTEMS_INVALID_ADDRESS; a00157e0: e3a00009 mov r0, #9 <== NOT EXECUTED a00157e4: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED if ( !_Addresses_Is_aligned( internal_start ) || !_Addresses_Is_aligned( external_start ) ) return RTEMS_INVALID_ADDRESS; a00157e8: e3a00009 mov r0, #9 <== NOT EXECUTED ); *id = the_port->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } a00157ec: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED =============================================================================== a00157f8 : */ rtems_status_code rtems_port_delete( rtems_id id ) { a00157f8: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED a00157fc: 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 ); a0015800: e1a0200d mov r2, sp <== NOT EXECUTED a0015804: e59f0038 ldr r0, [pc, #56] ; a0015844 <== NOT EXECUTED a0015808: eb001526 bl a001aca8 <_Objects_Get> <== NOT EXECUTED register Dual_ported_memory_Control *the_port; Objects_Locations location; the_port = _Dual_ported_memory_Get( id, &location ); switch ( location ) { a001580c: e59d4000 ldr r4, [sp] <== NOT EXECUTED a0015810: e1a05000 mov r5, r0 <== NOT EXECUTED a0015814: e3540000 cmp r4, #0 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a0015818: 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 ) { a001581c: 1a000007 bne a0015840 <== NOT EXECUTED case OBJECTS_LOCAL: _Objects_Close( &_Dual_ported_memory_Information, &the_port->Object ); a0015820: e59f001c ldr r0, [pc, #28] ; a0015844 <== NOT EXECUTED a0015824: e1a01005 mov r1, r5 <== NOT EXECUTED a0015828: eb001411 bl a001a874 <_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 ); a001582c: e59f0010 ldr r0, [pc, #16] ; a0015844 <== NOT EXECUTED a0015830: e1a01005 mov r1, r5 <== NOT EXECUTED a0015834: eb0014b3 bl a001ab08 <_Objects_Free> <== NOT EXECUTED _Dual_ported_memory_Free( the_port ); _Thread_Enable_dispatch(); a0015838: eb001838 bl a001b920 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a001583c: e1a00004 mov r0, r4 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a0015840: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED =============================================================================== a0015848 : rtems_status_code rtems_port_external_to_internal( rtems_id id, void *external, void **internal ) { a0015848: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED register Dual_ported_memory_Control *the_port; Objects_Locations location; uint32_t ending; if ( !internal ) a001584c: e2524000 subs r4, r2, #0 <== NOT EXECUTED rtems_status_code rtems_port_external_to_internal( rtems_id id, void *external, void **internal ) { a0015850: e1a03000 mov r3, r0 <== NOT EXECUTED a0015854: e1a05001 mov r5, r1 <== NOT EXECUTED register Dual_ported_memory_Control *the_port; Objects_Locations location; uint32_t ending; if ( !internal ) return RTEMS_INVALID_ADDRESS; a0015858: 03a00009 moveq r0, #9 <== NOT EXECUTED { register Dual_ported_memory_Control *the_port; Objects_Locations location; uint32_t ending; if ( !internal ) a001585c: 0a000011 beq a00158a8 <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Dual_ported_memory_Control *) _Objects_Get( &_Dual_ported_memory_Information, id, location ); a0015860: e1a01003 mov r1, r3 <== NOT EXECUTED a0015864: e59f0040 ldr r0, [pc, #64] ; a00158ac <== NOT EXECUTED a0015868: e1a0200d mov r2, sp <== NOT EXECUTED a001586c: eb00150d bl a001aca8 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_port = _Dual_ported_memory_Get( id, &location ); switch ( location ) { a0015870: e59d3000 ldr r3, [sp] <== NOT EXECUTED a0015874: e3530000 cmp r3, #0 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a0015878: 13a00004 movne r0, #4 <== NOT EXECUTED if ( !internal ) return RTEMS_INVALID_ADDRESS; the_port = _Dual_ported_memory_Get( id, &location ); switch ( location ) { a001587c: 1a000009 bne a00158a8 <== NOT EXECUTED RTEMS_INLINE_ROUTINE int32_t _Addresses_Subtract ( const void *left, const void *right ) { return (int32_t) ((const char *) left - (const char *) right); a0015880: e5903014 ldr r3, [r0, #20] <== NOT EXECUTED case OBJECTS_LOCAL: ending = _Addresses_Subtract( external, the_port->external_base ); if ( ending > the_port->length ) a0015884: e5902018 ldr r2, [r0, #24] <== NOT EXECUTED a0015888: e0633005 rsb r3, r3, r5 <== NOT EXECUTED a001588c: 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); a0015890: 95902010 ldrls r2, [r0, #16] <== NOT EXECUTED *internal = external; a0015894: 85845000 strhi r5, [r4] <== NOT EXECUTED a0015898: 90823003 addls r3, r2, r3 <== NOT EXECUTED else *internal = _Addresses_Add_offset( the_port->internal_base, a001589c: 95843000 strls r3, [r4] <== NOT EXECUTED ending ); _Thread_Enable_dispatch(); a00158a0: eb00181e bl a001b920 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a00158a4: e3a00000 mov r0, #0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a00158a8: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED =============================================================================== a00158b0 : rtems_status_code rtems_port_ident( rtems_name name, rtems_id *id ) { a00158b0: e1a02000 mov r2, r0 <== NOT EXECUTED a00158b4: e1a03001 mov r3, r1 <== NOT EXECUTED a00158b8: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( a00158bc: e1a01002 mov r1, r2 <== NOT EXECUTED a00158c0: e59f0010 ldr r0, [pc, #16] ; a00158d8 <== NOT EXECUTED a00158c4: e3a02000 mov r2, #0 <== NOT EXECUTED a00158c8: eb001545 bl a001ade4 <_Objects_Name_to_id_u32> <== NOT EXECUTED OBJECTS_SEARCH_ALL_NODES, id ); return _Status_Object_name_errors_to_status[ status ]; } a00158cc: e59f3008 ldr r3, [pc, #8] ; a00158dc <== NOT EXECUTED a00158d0: e7930100 ldr r0, [r3, r0, lsl #2] <== NOT EXECUTED a00158d4: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED =============================================================================== a00158e0 : rtems_status_code rtems_port_internal_to_external( rtems_id id, void *internal, void **external ) { a00158e0: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED register Dual_ported_memory_Control *the_port; Objects_Locations location; uint32_t ending; if ( !external ) a00158e4: e2524000 subs r4, r2, #0 <== NOT EXECUTED rtems_status_code rtems_port_internal_to_external( rtems_id id, void *internal, void **external ) { a00158e8: e1a03000 mov r3, r0 <== NOT EXECUTED a00158ec: e1a05001 mov r5, r1 <== NOT EXECUTED register Dual_ported_memory_Control *the_port; Objects_Locations location; uint32_t ending; if ( !external ) return RTEMS_INVALID_ADDRESS; a00158f0: 03a00009 moveq r0, #9 <== NOT EXECUTED { register Dual_ported_memory_Control *the_port; Objects_Locations location; uint32_t ending; if ( !external ) a00158f4: 0a000011 beq a0015940 <== NOT EXECUTED a00158f8: e1a01003 mov r1, r3 <== NOT EXECUTED a00158fc: e59f0040 ldr r0, [pc, #64] ; a0015944 <== NOT EXECUTED a0015900: e1a0200d mov r2, sp <== NOT EXECUTED a0015904: eb0014e7 bl a001aca8 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_port = _Dual_ported_memory_Get( id, &location ); switch ( location ) { a0015908: e59d3000 ldr r3, [sp] <== NOT EXECUTED a001590c: e3530000 cmp r3, #0 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a0015910: 13a00004 movne r0, #4 <== NOT EXECUTED if ( !external ) return RTEMS_INVALID_ADDRESS; the_port = _Dual_ported_memory_Get( id, &location ); switch ( location ) { a0015914: 1a000009 bne a0015940 <== NOT EXECUTED RTEMS_INLINE_ROUTINE int32_t _Addresses_Subtract ( const void *left, const void *right ) { return (int32_t) ((const char *) left - (const char *) right); a0015918: e5903010 ldr r3, [r0, #16] <== NOT EXECUTED case OBJECTS_LOCAL: ending = _Addresses_Subtract( internal, the_port->internal_base ); if ( ending > the_port->length ) a001591c: e5902018 ldr r2, [r0, #24] <== NOT EXECUTED a0015920: e0633005 rsb r3, r3, r5 <== NOT EXECUTED a0015924: 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); a0015928: 95902014 ldrls r2, [r0, #20] <== NOT EXECUTED *external = internal; a001592c: 85845000 strhi r5, [r4] <== NOT EXECUTED a0015930: 90823003 addls r3, r2, r3 <== NOT EXECUTED else *external = _Addresses_Add_offset( the_port->external_base, a0015934: 95843000 strls r3, [r4] <== NOT EXECUTED ending ); _Thread_Enable_dispatch(); a0015938: eb0017f8 bl a001b920 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a001593c: e3a00000 mov r0, #0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a0015940: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED =============================================================================== a00163a0 : */ rtems_status_code rtems_rate_monotonic_cancel( rtems_id id ) { a00163a0: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED a00163a4: e1a01000 mov r1, r0 <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Rate_monotonic_Control *) _Objects_Get( &_Rate_monotonic_Information, id, location ); a00163a8: e1a0200d mov r2, sp <== NOT EXECUTED a00163ac: e59f004c ldr r0, [pc, #76] ; a0016400 <== NOT EXECUTED a00163b0: eb00123c bl a001aca8 <_Objects_Get> <== NOT EXECUTED Rate_monotonic_Control *the_period; Objects_Locations location; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { a00163b4: e59d4000 ldr r4, [sp] <== NOT EXECUTED a00163b8: e1a05000 mov r5, r0 <== NOT EXECUTED a00163bc: e3540000 cmp r4, #0 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a00163c0: 13a00004 movne r0, #4 <== NOT EXECUTED { Rate_monotonic_Control *the_period; Objects_Locations location; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { a00163c4: 1a00000c bne a00163fc <== NOT EXECUTED case OBJECTS_LOCAL: if ( !_Thread_Is_executing( the_period->owner ) ) { a00163c8: e59f3034 ldr r3, [pc, #52] ; a0016404 <== NOT EXECUTED a00163cc: e5952040 ldr r2, [r5, #64] ; 0x40 <== NOT EXECUTED a00163d0: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED a00163d4: e1520003 cmp r2, r3 <== NOT EXECUTED a00163d8: 0a000002 beq a00163e8 <== NOT EXECUTED _Thread_Enable_dispatch(); a00163dc: eb00154f bl a001b920 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_NOT_OWNER_OF_RESOURCE; a00163e0: e3a00017 mov r0, #23 <== NOT EXECUTED a00163e4: ea000004 b a00163fc <== NOT EXECUTED } (void) _Watchdog_Remove( &the_period->Timer ); a00163e8: e2850010 add r0, r5, #16 <== NOT EXECUTED a00163ec: eb001990 bl a001ca34 <_Watchdog_Remove> <== NOT EXECUTED the_period->state = RATE_MONOTONIC_INACTIVE; a00163f0: e5854038 str r4, [r5, #56] ; 0x38 <== NOT EXECUTED _Thread_Enable_dispatch(); a00163f4: eb001549 bl a001b920 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a00163f8: e1a00004 mov r0, r4 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a00163fc: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED =============================================================================== a000a150 : rtems_status_code rtems_rate_monotonic_create( rtems_name name, rtems_id *id ) { a000a150: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED Rate_monotonic_Control *the_period; if ( !rtems_is_name_valid( name ) ) a000a154: e2508000 subs r8, r0, #0 <== NOT EXECUTED rtems_status_code rtems_rate_monotonic_create( rtems_name name, rtems_id *id ) { a000a158: e1a06001 mov r6, r1 <== NOT EXECUTED Rate_monotonic_Control *the_period; if ( !rtems_is_name_valid( name ) ) a000a15c: 0a000028 beq a000a204 <== NOT EXECUTED return RTEMS_INVALID_NAME; if ( !id ) a000a160: e3510000 cmp r1, #0 <== NOT EXECUTED a000a164: 0a000028 beq a000a20c <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; a000a168: e59f30a4 ldr r3, [pc, #164] ; a000a214 <== NOT EXECUTED a000a16c: e5932000 ldr r2, [r3] <== NOT EXECUTED a000a170: e2822001 add r2, r2, #1 <== NOT EXECUTED a000a174: 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 ); a000a178: e59f7098 ldr r7, [pc, #152] ; a000a218 <== NOT EXECUTED a000a17c: e1a00007 mov r0, r7 <== NOT EXECUTED a000a180: eb000799 bl a000bfec <_Objects_Allocate> <== NOT EXECUTED _Thread_Disable_dispatch(); /* to prevent deletion */ the_period = _Rate_monotonic_Allocate(); if ( !the_period ) { a000a184: e2504000 subs r4, r0, #0 <== NOT EXECUTED a000a188: 1a000002 bne a000a198 <== NOT EXECUTED _Thread_Enable_dispatch(); a000a18c: eb000c0b bl a000d1c0 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_TOO_MANY; a000a190: e3a00005 mov r0, #5 <== NOT EXECUTED a000a194: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED } the_period->owner = _Thread_Executing; a000a198: e59f307c ldr r3, [pc, #124] ; a000a21c <== NOT EXECUTED the_period->state = RATE_MONOTONIC_INACTIVE; a000a19c: e3a05000 mov r5, #0 <== NOT EXECUTED _Watchdog_Initialize( &the_period->Timer, NULL, 0, NULL ); _Rate_monotonic_Reset_statistics( the_period ); a000a1a0: e1a01005 mov r1, r5 <== NOT EXECUTED if ( !the_period ) { _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } the_period->owner = _Thread_Executing; a000a1a4: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED the_period->state = RATE_MONOTONIC_INACTIVE; _Watchdog_Initialize( &the_period->Timer, NULL, 0, NULL ); _Rate_monotonic_Reset_statistics( the_period ); a000a1a8: e3a02038 mov r2, #56 ; 0x38 <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } the_period->owner = _Thread_Executing; the_period->state = RATE_MONOTONIC_INACTIVE; a000a1ac: e5845038 str r5, [r4, #56] ; 0x38 <== NOT EXECUTED if ( !the_period ) { _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } the_period->owner = _Thread_Executing; a000a1b0: e5843040 str r3, [r4, #64] ; 0x40 <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; a000a1b4: e5845018 str r5, [r4, #24] <== NOT EXECUTED the_watchdog->routine = routine; a000a1b8: e584502c str r5, [r4, #44] ; 0x2c <== NOT EXECUTED the_watchdog->id = id; a000a1bc: e5845030 str r5, [r4, #48] ; 0x30 <== NOT EXECUTED the_watchdog->user_data = user_data; a000a1c0: e5845034 str r5, [r4, #52] ; 0x34 <== NOT EXECUTED the_period->state = RATE_MONOTONIC_INACTIVE; _Watchdog_Initialize( &the_period->Timer, NULL, 0, NULL ); _Rate_monotonic_Reset_statistics( the_period ); a000a1c4: e2840054 add r0, r4, #84 ; 0x54 <== NOT EXECUTED a000a1c8: eb002180 bl a00127d0 <== NOT EXECUTED a000a1cc: e3e03102 mvn r3, #-2147483648 ; 0x80000000 <== NOT EXECUTED a000a1d0: e584305c str r3, [r4, #92] ; 0x5c <== NOT EXECUTED a000a1d4: e5843060 str r3, [r4, #96] ; 0x60 <== NOT EXECUTED a000a1d8: e5843074 str r3, [r4, #116] ; 0x74 <== NOT EXECUTED a000a1dc: e5843078 str r3, [r4, #120] ; 0x78 <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; a000a1e0: e597201c ldr r2, [r7, #28] <== NOT EXECUTED Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( a000a1e4: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED a000a1e8: e1d410b8 ldrh r1, [r4, #8] <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; a000a1ec: e7824101 str r4, [r2, r1, lsl #2] <== NOT EXECUTED information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; a000a1f0: e584800c str r8, [r4, #12] <== NOT EXECUTED &_Rate_monotonic_Information, &the_period->Object, (Objects_Name) name ); *id = the_period->Object.id; a000a1f4: e5863000 str r3, [r6] <== NOT EXECUTED _Thread_Enable_dispatch(); a000a1f8: eb000bf0 bl a000d1c0 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000a1fc: e1a00005 mov r0, r5 <== NOT EXECUTED a000a200: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED ) { Rate_monotonic_Control *the_period; if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; a000a204: e3a00003 mov r0, #3 <== NOT EXECUTED a000a208: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED if ( !id ) return RTEMS_INVALID_ADDRESS; a000a20c: e3a00009 mov r0, #9 <== NOT EXECUTED ); *id = the_period->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } a000a210: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED =============================================================================== a00164d8 : */ rtems_status_code rtems_rate_monotonic_delete( rtems_id id ) { a00164d8: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED a00164dc: e1a01000 mov r1, r0 <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Rate_monotonic_Control *) _Objects_Get( &_Rate_monotonic_Information, id, location ); a00164e0: e1a0200d mov r2, sp <== NOT EXECUTED a00164e4: e59f0044 ldr r0, [pc, #68] ; a0016530 <== NOT EXECUTED a00164e8: eb0011ee bl a001aca8 <_Objects_Get> <== NOT EXECUTED Rate_monotonic_Control *the_period; Objects_Locations location; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { a00164ec: e59d5000 ldr r5, [sp] <== NOT EXECUTED a00164f0: e1a04000 mov r4, r0 <== NOT EXECUTED a00164f4: e3550000 cmp r5, #0 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a00164f8: 13a00004 movne r0, #4 <== NOT EXECUTED { Rate_monotonic_Control *the_period; Objects_Locations location; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { a00164fc: 1a00000a bne a001652c <== NOT EXECUTED case OBJECTS_LOCAL: _Objects_Close( &_Rate_monotonic_Information, &the_period->Object ); a0016500: e1a01004 mov r1, r4 <== NOT EXECUTED a0016504: e59f0024 ldr r0, [pc, #36] ; a0016530 <== NOT EXECUTED a0016508: eb0010d9 bl a001a874 <_Objects_Close> <== NOT EXECUTED (void) _Watchdog_Remove( &the_period->Timer ); a001650c: e2840010 add r0, r4, #16 <== NOT EXECUTED a0016510: eb001947 bl a001ca34 <_Watchdog_Remove> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Rate_monotonic_Free ( Rate_monotonic_Control *the_period ) { _Objects_Free( &_Rate_monotonic_Information, &the_period->Object ); a0016514: e59f0014 ldr r0, [pc, #20] ; a0016530 <== NOT EXECUTED a0016518: e1a01004 mov r1, r4 <== NOT EXECUTED the_period->state = RATE_MONOTONIC_INACTIVE; a001651c: e5845038 str r5, [r4, #56] ; 0x38 <== NOT EXECUTED a0016520: eb001178 bl a001ab08 <_Objects_Free> <== NOT EXECUTED _Rate_monotonic_Free( the_period ); _Thread_Enable_dispatch(); a0016524: eb0014fd bl a001b920 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0016528: e1a00005 mov r0, r5 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a001652c: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED =============================================================================== a000fc68 : rtems_status_code rtems_rate_monotonic_get_statistics( rtems_id id, rtems_rate_monotonic_period_statistics *statistics ) { a000fc68: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED Objects_Locations location; Rate_monotonic_Control *the_period; rtems_rate_monotonic_period_statistics *dst; Rate_monotonic_Statistics *src; if ( !statistics ) a000fc6c: e2514000 subs r4, r1, #0 <== NOT EXECUTED rtems_status_code rtems_rate_monotonic_get_statistics( rtems_id id, rtems_rate_monotonic_period_statistics *statistics ) { a000fc70: e1a03000 mov r3, r0 <== NOT EXECUTED Rate_monotonic_Control *the_period; rtems_rate_monotonic_period_statistics *dst; Rate_monotonic_Statistics *src; if ( !statistics ) return RTEMS_INVALID_ADDRESS; a000fc74: 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 ) a000fc78: 0a000025 beq a000fd14 <== NOT EXECUTED a000fc7c: e59f0094 ldr r0, [pc, #148] ; a000fd18 <== NOT EXECUTED a000fc80: e1a01003 mov r1, r3 <== NOT EXECUTED a000fc84: e1a0200d mov r2, sp <== NOT EXECUTED a000fc88: ebfff22e bl a000c548 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { a000fc8c: e59d5000 ldr r5, [sp] <== NOT EXECUTED a000fc90: e3550000 cmp r5, #0 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a000fc94: 13a00004 movne r0, #4 <== NOT EXECUTED if ( !statistics ) return RTEMS_INVALID_ADDRESS; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { a000fc98: 1a00001d bne a000fd14 <== NOT EXECUTED case OBJECTS_LOCAL: dst = statistics; src = &the_period->Statistics; dst->count = src->count; a000fc9c: e5903054 ldr r3, [r0, #84] ; 0x54 <== NOT EXECUTED a000fca0: e5843000 str r3, [r4] <== NOT EXECUTED dst->missed_count = src->missed_count; a000fca4: e5903058 ldr r3, [r0, #88] ; 0x58 <== NOT EXECUTED a000fca8: e5843004 str r3, [r4, #4] <== NOT EXECUTED #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timestamp_To_timespec( &src->min_cpu_time, &dst->min_cpu_time ); a000fcac: e280305c add r3, r0, #92 ; 0x5c <== NOT EXECUTED a000fcb0: e893000c ldm r3, {r2, r3} <== NOT EXECUTED a000fcb4: e5842008 str r2, [r4, #8] <== NOT EXECUTED a000fcb8: e584300c str r3, [r4, #12] <== NOT EXECUTED _Timestamp_To_timespec( &src->max_cpu_time, &dst->max_cpu_time ); a000fcbc: e2803064 add r3, r0, #100 ; 0x64 <== NOT EXECUTED a000fcc0: e893000c ldm r3, {r2, r3} <== NOT EXECUTED a000fcc4: e5842010 str r2, [r4, #16] <== NOT EXECUTED a000fcc8: e5843014 str r3, [r4, #20] <== NOT EXECUTED _Timestamp_To_timespec( &src->total_cpu_time, &dst->total_cpu_time ); a000fccc: e280306c add r3, r0, #108 ; 0x6c <== NOT EXECUTED a000fcd0: e893000c ldm r3, {r2, r3} <== NOT EXECUTED a000fcd4: e5842018 str r2, [r4, #24] <== NOT EXECUTED a000fcd8: e584301c str r3, [r4, #28] <== NOT EXECUTED _Timestamp_To_timespec( &src->min_wall_time, &dst->min_wall_time ); a000fcdc: e2803074 add r3, r0, #116 ; 0x74 <== NOT EXECUTED a000fce0: e893000c ldm r3, {r2, r3} <== NOT EXECUTED a000fce4: e5842020 str r2, [r4, #32] <== NOT EXECUTED a000fce8: e5843024 str r3, [r4, #36] ; 0x24 <== NOT EXECUTED _Timestamp_To_timespec( &src->max_wall_time, &dst->max_wall_time ); a000fcec: e280307c add r3, r0, #124 ; 0x7c <== NOT EXECUTED a000fcf0: e893000c ldm r3, {r2, r3} <== NOT EXECUTED a000fcf4: e5842028 str r2, [r4, #40] ; 0x28 <== NOT EXECUTED a000fcf8: e584302c str r3, [r4, #44] ; 0x2c <== NOT EXECUTED _Timestamp_To_timespec( &src->total_wall_time, &dst->total_wall_time ); a000fcfc: e2803084 add r3, r0, #132 ; 0x84 <== NOT EXECUTED a000fd00: e893000c ldm r3, {r2, r3} <== NOT EXECUTED a000fd04: e5842030 str r2, [r4, #48] ; 0x30 <== NOT EXECUTED a000fd08: e5843034 str r3, [r4, #52] ; 0x34 <== NOT EXECUTED dst->min_wall_time = src->min_wall_time; dst->max_wall_time = src->max_wall_time; dst->total_wall_time = src->total_wall_time; #endif _Thread_Enable_dispatch(); a000fd0c: ebfff52b bl a000d1c0 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000fd10: e1a00005 mov r0, r5 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a000fd14: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED =============================================================================== a000fd1c : rtems_status_code rtems_rate_monotonic_get_status( rtems_id id, rtems_rate_monotonic_period_status *status ) { a000fd1c: 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 ) a000fd20: e2514000 subs r4, r1, #0 <== NOT EXECUTED rtems_status_code rtems_rate_monotonic_get_status( rtems_id id, rtems_rate_monotonic_period_status *status ) { a000fd24: e1a03000 mov r3, r0 <== NOT EXECUTED a000fd28: e24dd014 sub sp, sp, #20 <== NOT EXECUTED Rate_monotonic_Period_time_t since_last_period; Rate_monotonic_Control *the_period; bool valid_status; if ( !status ) return RTEMS_INVALID_ADDRESS; a000fd2c: 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 ) a000fd30: 0a000023 beq a000fdc4 <== NOT EXECUTED a000fd34: e1a01003 mov r1, r3 <== NOT EXECUTED a000fd38: e28d2010 add r2, sp, #16 <== NOT EXECUTED a000fd3c: e59f0088 ldr r0, [pc, #136] ; a000fdcc <== NOT EXECUTED a000fd40: ebfff200 bl a000c548 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { a000fd44: e59d2010 ldr r2, [sp, #16] <== NOT EXECUTED a000fd48: e1a03000 mov r3, r0 <== NOT EXECUTED a000fd4c: e3520000 cmp r2, #0 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a000fd50: 13a00004 movne r0, #4 <== NOT EXECUTED if ( !status ) return RTEMS_INVALID_ADDRESS; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { a000fd54: 1a00001a bne a000fdc4 <== NOT EXECUTED case OBJECTS_LOCAL: status->owner = the_period->owner->Object.id; a000fd58: e5932040 ldr r2, [r3, #64] ; 0x40 <== NOT EXECUTED status->state = the_period->state; a000fd5c: 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; a000fd60: 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 ) { a000fd64: 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; a000fd68: e884000c stm r4, {r2, r3} <== NOT EXECUTED /* * If the period is inactive, there is no information. */ if ( status->state == RATE_MONOTONIC_INACTIVE ) { #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timespec_Set_to_zero( &status->since_last_period ); a000fd6c: 05843008 streq r3, [r4, #8] <== NOT EXECUTED a000fd70: 0584300c streq r3, [r4, #12] <== NOT EXECUTED _Timespec_Set_to_zero( &status->executed_since_last_period ); a000fd74: 05843010 streq r3, [r4, #16] <== NOT EXECUTED a000fd78: 05843014 streq r3, [r4, #20] <== NOT EXECUTED a000fd7c: 0a00000e beq a000fdbc <== NOT EXECUTED } else { /* * Grab the current status. */ valid_status = a000fd80: e1a0100d mov r1, sp <== NOT EXECUTED a000fd84: e28d2008 add r2, sp, #8 <== NOT EXECUTED a000fd88: ebffe930 bl a000a250 <_Rate_monotonic_Get_status> <== NOT EXECUTED _Rate_monotonic_Get_status( the_period, &since_last_period, &executed ); if (!valid_status) { a000fd8c: e3500000 cmp r0, #0 <== NOT EXECUTED a000fd90: 1a000002 bne a000fda0 <== NOT EXECUTED _Thread_Enable_dispatch(); a000fd94: ebfff509 bl a000d1c0 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_NOT_DEFINED; a000fd98: e3a0000b mov r0, #11 <== NOT EXECUTED a000fd9c: ea000008 b a000fdc4 <== NOT EXECUTED } #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timestamp_To_timespec( a000fda0: e89d000c ldm sp, {r2, r3} <== NOT EXECUTED a000fda4: e5842008 str r2, [r4, #8] <== NOT EXECUTED a000fda8: e584300c str r3, [r4, #12] <== NOT EXECUTED &since_last_period, &status->since_last_period ); _Timestamp_To_timespec( a000fdac: e28d3008 add r3, sp, #8 <== NOT EXECUTED a000fdb0: e893000c ldm r3, {r2, r3} <== NOT EXECUTED a000fdb4: e5842010 str r2, [r4, #16] <== NOT EXECUTED a000fdb8: e5843014 str r3, [r4, #20] <== NOT EXECUTED status->since_last_period = since_last_period; status->executed_since_last_period = executed; #endif } _Thread_Enable_dispatch(); a000fdbc: ebfff4ff bl a000d1c0 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000fdc0: e3a00000 mov r0, #0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a000fdc4: e28dd014 add sp, sp, #20 <== NOT EXECUTED a000fdc8: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a000a220 : rtems_status_code rtems_rate_monotonic_ident( rtems_name name, rtems_id *id ) { a000a220: e1a02000 mov r2, r0 <== NOT EXECUTED a000a224: e1a03001 mov r3, r1 <== NOT EXECUTED a000a228: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( a000a22c: e1a01002 mov r1, r2 <== NOT EXECUTED a000a230: e59f0010 ldr r0, [pc, #16] ; a000a248 <== NOT EXECUTED a000a234: e3e02102 mvn r2, #-2147483648 ; 0x80000000 <== NOT EXECUTED a000a238: eb000911 bl a000c684 <_Objects_Name_to_id_u32> <== NOT EXECUTED OBJECTS_SEARCH_LOCAL_NODE, id ); return _Status_Object_name_errors_to_status[ status ]; } a000a23c: e59f3008 ldr r3, [pc, #8] ; a000a24c <== NOT EXECUTED a000a240: e7930100 ldr r0, [r3, r0, lsl #2] <== NOT EXECUTED a000a244: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED =============================================================================== a000a454 : rtems_status_code rtems_rate_monotonic_period( rtems_id id, rtems_interval length ) { a000a454: e92d40f1 push {r0, r4, r5, r6, r7, lr} <== NOT EXECUTED a000a458: e1a05000 mov r5, r0 <== NOT EXECUTED a000a45c: e1a04001 mov r4, r1 <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Rate_monotonic_Control *) _Objects_Get( &_Rate_monotonic_Information, id, location ); a000a460: e59f0170 ldr r0, [pc, #368] ; a000a5d8 <== NOT EXECUTED a000a464: e1a01005 mov r1, r5 <== NOT EXECUTED a000a468: e1a0200d mov r2, sp <== NOT EXECUTED a000a46c: eb000835 bl a000c548 <_Objects_Get> <== NOT EXECUTED rtems_rate_monotonic_period_states local_state; ISR_Level level; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { a000a470: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000a474: e1a06000 mov r6, r0 <== NOT EXECUTED a000a478: e3530000 cmp r3, #0 <== NOT EXECUTED a000a47c: 1a000052 bne a000a5cc <== NOT EXECUTED case OBJECTS_LOCAL: if ( !_Thread_Is_executing( the_period->owner ) ) { a000a480: e59f3154 ldr r3, [pc, #340] ; a000a5dc <== NOT EXECUTED a000a484: e5902040 ldr r2, [r0, #64] ; 0x40 <== NOT EXECUTED a000a488: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED a000a48c: e1520003 cmp r2, r3 <== NOT EXECUTED a000a490: 0a000002 beq a000a4a0 <== NOT EXECUTED _Thread_Enable_dispatch(); a000a494: eb000b49 bl a000d1c0 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_NOT_OWNER_OF_RESOURCE; a000a498: e3a04017 mov r4, #23 <== NOT EXECUTED a000a49c: ea00004b b a000a5d0 <== NOT EXECUTED } if ( length == RTEMS_PERIOD_STATUS ) { a000a4a0: e3540000 cmp r4, #0 <== NOT EXECUTED a000a4a4: 1a000005 bne a000a4c0 <== NOT EXECUTED switch ( the_period->state ) { a000a4a8: e5903038 ldr r3, [r0, #56] ; 0x38 <== NOT EXECUTED a000a4ac: e3530004 cmp r3, #4 <== NOT EXECUTED a000a4b0: 959f2128 ldrls r2, [pc, #296] ; a000a5e0 <== NOT EXECUTED a000a4b4: 97924103 ldrls r4, [r2, r3, lsl #2] <== NOT EXECUTED case RATE_MONOTONIC_ACTIVE: default: /* unreached -- only to remove warnings */ return_value = RTEMS_SUCCESSFUL; break; } _Thread_Enable_dispatch(); a000a4b8: eb000b40 bl a000d1c0 <_Thread_Enable_dispatch> <== NOT EXECUTED return( return_value ); a000a4bc: ea000043 b a000a5d0 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000a4c0: e10f7000 mrs r7, CPSR <== NOT EXECUTED a000a4c4: e3873080 orr r3, r7, #128 ; 0x80 <== NOT EXECUTED a000a4c8: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED } _ISR_Disable( level ); if ( the_period->state == RATE_MONOTONIC_INACTIVE ) { a000a4cc: e5903038 ldr r3, [r0, #56] ; 0x38 <== NOT EXECUTED a000a4d0: e3530000 cmp r3, #0 <== NOT EXECUTED a000a4d4: 1a000011 bne a000a520 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000a4d8: e129f007 msr CPSR_fc, r7 <== NOT EXECUTED _ISR_Enable( level ); /* * Baseline statistics information for the beginning of a period. */ _Rate_monotonic_Initiate_statistics( the_period ); a000a4dc: ebffff89 bl a000a308 <_Rate_monotonic_Initiate_statistics> <== NOT EXECUTED the_period->state = RATE_MONOTONIC_ACTIVE; a000a4e0: e3a03002 mov r3, #2 <== NOT EXECUTED a000a4e4: e5863038 str r3, [r6, #56] ; 0x38 <== NOT EXECUTED Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; a000a4e8: e59f30f4 ldr r3, [pc, #244] ; a000a5e4 <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; a000a4ec: e3a07000 mov r7, #0 <== NOT EXECUTED _Rate_monotonic_Timeout, id, NULL ); the_period->next_length = length; a000a4f0: e586403c str r4, [r6, #60] ; 0x3c <== NOT EXECUTED the_watchdog->routine = routine; a000a4f4: e586302c str r3, [r6, #44] ; 0x2c <== NOT EXECUTED Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; a000a4f8: e586401c str r4, [r6, #28] <== NOT EXECUTED _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); a000a4fc: e59f00e4 ldr r0, [pc, #228] ; a000a5e8 <== NOT EXECUTED a000a500: e2861010 add r1, r6, #16 <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; a000a504: e5867018 str r7, [r6, #24] <== NOT EXECUTED the_watchdog->routine = routine; the_watchdog->id = id; a000a508: e5865030 str r5, [r6, #48] ; 0x30 <== NOT EXECUTED the_watchdog->user_data = user_data; a000a50c: e5867034 str r7, [r6, #52] ; 0x34 <== NOT EXECUTED ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); a000a510: eb000eb4 bl a000dfe8 <_Watchdog_Insert> <== NOT EXECUTED _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; a000a514: e1a04007 mov r4, r7 <== NOT EXECUTED ); the_period->next_length = length; _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); a000a518: eb000b28 bl a000d1c0 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000a51c: ea00002b b a000a5d0 <== NOT EXECUTED } if ( the_period->state == RATE_MONOTONIC_ACTIVE ) { a000a520: e3530002 cmp r3, #2 <== NOT EXECUTED a000a524: 1a00001a bne a000a594 <== NOT EXECUTED /* * Update statistics from the concluding period. */ _Rate_monotonic_Update_statistics( the_period ); a000a528: ebffff93 bl a000a37c <_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; a000a52c: e3a03001 mov r3, #1 <== NOT EXECUTED a000a530: e5863038 str r3, [r6, #56] ; 0x38 <== NOT EXECUTED the_period->next_length = length; a000a534: e586403c str r4, [r6, #60] ; 0x3c <== NOT EXECUTED a000a538: e129f007 msr CPSR_fc, r7 <== NOT EXECUTED _ISR_Enable( level ); _Thread_Executing->Wait.id = the_period->Object.id; a000a53c: e59f3098 ldr r3, [pc, #152] ; a000a5dc <== NOT EXECUTED _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); a000a540: e3a01901 mov r1, #16384 ; 0x4000 <== 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; a000a544: e5930004 ldr r0, [r3, #4] <== NOT EXECUTED a000a548: e5963008 ldr r3, [r6, #8] <== NOT EXECUTED a000a54c: e5803020 str r3, [r0, #32] <== NOT EXECUTED _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); a000a550: eb000d1e bl a000d9d0 <_Thread_Set_state> <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000a554: e10f2000 mrs r2, CPSR <== NOT EXECUTED a000a558: e3823080 orr r3, r2, #128 ; 0x80 <== NOT EXECUTED a000a55c: 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; a000a560: 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; a000a564: e5963038 ldr r3, [r6, #56] ; 0x38 <== NOT EXECUTED the_period->state = RATE_MONOTONIC_ACTIVE; a000a568: e5861038 str r1, [r6, #56] ; 0x38 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000a56c: 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 ) a000a570: e3530003 cmp r3, #3 <== NOT EXECUTED a000a574: 1a000003 bne a000a588 <== NOT EXECUTED _Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); a000a578: e59f305c ldr r3, [pc, #92] ; a000a5dc <== NOT EXECUTED a000a57c: e3a01901 mov r1, #16384 ; 0x4000 <== NOT EXECUTED a000a580: e5930004 ldr r0, [r3, #4] <== NOT EXECUTED a000a584: eb000a46 bl a000cea4 <_Thread_Clear_state> <== NOT EXECUTED _Thread_Enable_dispatch(); a000a588: eb000b0c bl a000d1c0 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000a58c: e3a04000 mov r4, #0 <== NOT EXECUTED a000a590: ea00000e b a000a5d0 <== NOT EXECUTED } if ( the_period->state == RATE_MONOTONIC_EXPIRED ) { a000a594: e3530004 cmp r3, #4 <== NOT EXECUTED a000a598: 1a00000b bne a000a5cc <== NOT EXECUTED /* * Update statistics from the concluding period */ _Rate_monotonic_Update_statistics( the_period ); a000a59c: ebffff76 bl a000a37c <_Rate_monotonic_Update_statistics> <== NOT EXECUTED a000a5a0: e129f007 msr CPSR_fc, r7 <== NOT EXECUTED _ISR_Enable( level ); the_period->state = RATE_MONOTONIC_ACTIVE; a000a5a4: e3a03002 mov r3, #2 <== NOT EXECUTED a000a5a8: e5863038 str r3, [r6, #56] ; 0x38 <== NOT EXECUTED the_period->next_length = length; a000a5ac: e586403c str r4, [r6, #60] ; 0x3c <== NOT EXECUTED Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; a000a5b0: e586401c str r4, [r6, #28] <== NOT EXECUTED _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); a000a5b4: e59f002c ldr r0, [pc, #44] ; a000a5e8 <== NOT EXECUTED a000a5b8: e2861010 add r1, r6, #16 <== NOT EXECUTED a000a5bc: eb000e89 bl a000dfe8 <_Watchdog_Insert> <== NOT EXECUTED _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); return RTEMS_TIMEOUT; a000a5c0: e3a04006 mov r4, #6 <== NOT EXECUTED the_period->state = RATE_MONOTONIC_ACTIVE; the_period->next_length = length; _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); a000a5c4: eb000afd bl a000d1c0 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_TIMEOUT; a000a5c8: ea000000 b a000a5d0 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a000a5cc: e3a04004 mov r4, #4 <== NOT EXECUTED } a000a5d0: e1a00004 mov r0, r4 <== NOT EXECUTED a000a5d4: e8bd80f8 pop {r3, r4, r5, r6, r7, pc} <== NOT EXECUTED =============================================================================== a000a7d4 : void rtems_rate_monotonic_report_statistics( void ) { rtems_rate_monotonic_report_statistics_with_plugin( NULL, printk_plugin ); a000a7d4: e59f1004 ldr r1, [pc, #4] ; a000a7e0 <== NOT EXECUTED a000a7d8: e3a00000 mov r0, #0 <== NOT EXECUTED a000a7dc: eaffff82 b a000a5ec <== NOT EXECUTED =============================================================================== a000a5ec : */ void rtems_rate_monotonic_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) { a000a5ec: 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 ) a000a5f0: e2514000 subs r4, r1, #0 <== NOT EXECUTED */ void rtems_rate_monotonic_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) { a000a5f4: e24dd078 sub sp, sp, #120 ; 0x78 <== NOT EXECUTED a000a5f8: e1a05000 mov r5, r0 <== NOT EXECUTED rtems_id id; rtems_rate_monotonic_period_statistics the_stats; rtems_rate_monotonic_period_status the_status; char name[5]; if ( !print ) a000a5fc: 0a000068 beq a000a7a4 <== NOT EXECUTED return; (*print)( context, "Period information by period\n" ); a000a600: e59f11a4 ldr r1, [pc, #420] ; a000a7ac <== NOT EXECUTED a000a604: e12fff34 blx r4 <== NOT EXECUTED #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ (*print)( context, "--- CPU times are in seconds ---\n" ); a000a608: e59f11a0 ldr r1, [pc, #416] ; a000a7b0 <== NOT EXECUTED a000a60c: e1a00005 mov r0, r5 <== NOT EXECUTED a000a610: e12fff34 blx r4 <== NOT EXECUTED (*print)( context, "--- Wall times are in seconds ---\n" ); a000a614: e59f1198 ldr r1, [pc, #408] ; a000a7b4 <== NOT EXECUTED a000a618: e1a00005 mov r0, r5 <== NOT EXECUTED a000a61c: e12fff34 blx r4 <== NOT EXECUTED Be sure to test the various cases. (*print)( context,"\ 1234567890123456789012345678901234567890123456789012345678901234567890123456789\ \n"); */ (*print)( context, " ID OWNER COUNT MISSED " a000a620: e59f1190 ldr r1, [pc, #400] ; a000a7b8 <== NOT EXECUTED a000a624: e1a00005 mov r0, r5 <== NOT EXECUTED a000a628: e12fff34 blx r4 <== NOT EXECUTED * is a period that is inactive, we just get an error back. No big deal. */ for ( id=_Rate_monotonic_Information.minimum_id ; id <= _Rate_monotonic_Information.maximum_id ; id++ ) { status = rtems_rate_monotonic_get_statistics( id, &the_stats ); a000a62c: e28d7018 add r7, sp, #24 <== NOT EXECUTED #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ " " #endif " WALL TIME\n" ); (*print)( context, " " a000a630: e1a00005 mov r0, r5 <== NOT EXECUTED a000a634: e59f1180 ldr r1, [pc, #384] ; a000a7bc <== 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 ; a000a638: e59f8180 ldr r8, [pc, #384] ; a000a7c0 <== NOT EXECUTED #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ " " #endif " WALL TIME\n" ); (*print)( context, " " a000a63c: e12fff34 blx r4 <== NOT EXECUTED { #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ struct timespec cpu_average; struct timespec *min_cpu = &the_stats.min_cpu_time; struct timespec *max_cpu = &the_stats.max_cpu_time; struct timespec *total_cpu = &the_stats.total_cpu_time; a000a640: e2873018 add r3, r7, #24 <== NOT EXECUTED a000a644: e58d3010 str r3, [sp, #16] <== 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; a000a648: e2873030 add r3, r7, #48 ; 0x30 <== 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 ; a000a64c: e5986008 ldr r6, [r8, #8] <== NOT EXECUTED continue; #else (void) rtems_rate_monotonic_get_status( id, &the_status ); #endif rtems_object_get_name( the_status.owner, sizeof(name), name ); a000a650: e28da070 add sl, sp, #112 ; 0x70 <== 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 ); a000a654: e28d9068 add r9, 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; a000a658: e58d3014 str r3, [sp, #20] <== 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 ; a000a65c: ea00004d b a000a798 <== NOT EXECUTED id <= _Rate_monotonic_Information.maximum_id ; id++ ) { status = rtems_rate_monotonic_get_statistics( id, &the_stats ); a000a660: e1a00006 mov r0, r6 <== NOT EXECUTED a000a664: e1a01007 mov r1, r7 <== NOT EXECUTED a000a668: eb00157e bl a000fc68 <== NOT EXECUTED if ( status != RTEMS_SUCCESSFUL ) a000a66c: e3500000 cmp r0, #0 <== NOT EXECUTED a000a670: 1a000047 bne a000a794 <== 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 ); a000a674: e28d1050 add r1, sp, #80 ; 0x50 <== NOT EXECUTED a000a678: e1a00006 mov r0, r6 <== NOT EXECUTED a000a67c: eb0015a6 bl a000fd1c <== NOT EXECUTED #endif rtems_object_get_name( the_status.owner, sizeof(name), name ); a000a680: e3a01005 mov r1, #5 <== NOT EXECUTED a000a684: e1a0200a mov r2, sl <== NOT EXECUTED a000a688: e59d0050 ldr r0, [sp, #80] ; 0x50 <== NOT EXECUTED a000a68c: eb0000a8 bl a000a934 <== NOT EXECUTED /* * Print part of report line that is not dependent on granularity */ (*print)( context, a000a690: e59d3018 ldr r3, [sp, #24] <== NOT EXECUTED a000a694: e59f1128 ldr r1, [pc, #296] ; a000a7c4 <== NOT EXECUTED a000a698: e1a00005 mov r0, r5 <== NOT EXECUTED a000a69c: e58d3000 str r3, [sp] <== NOT EXECUTED a000a6a0: e59d301c ldr r3, [sp, #28] <== NOT EXECUTED a000a6a4: e1a02006 mov r2, r6 <== NOT EXECUTED a000a6a8: e58d3004 str r3, [sp, #4] <== NOT EXECUTED a000a6ac: e1a0300a mov r3, sl <== NOT EXECUTED a000a6b0: e12fff34 blx r4 <== NOT EXECUTED ); /* * If the count is zero, don't print statistics */ if (the_stats.count == 0) { a000a6b4: e59d1018 ldr r1, [sp, #24] <== NOT EXECUTED a000a6b8: e3510000 cmp r1, #0 <== NOT EXECUTED a000a6bc: 1a000003 bne a000a6d0 <== NOT EXECUTED (*print)( context, "\n" ); a000a6c0: e1a00005 mov r0, r5 <== NOT EXECUTED a000a6c4: e59f10fc ldr r1, [pc, #252] ; a000a7c8 <== NOT EXECUTED a000a6c8: e12fff34 blx r4 <== NOT EXECUTED continue; a000a6cc: ea000030 b a000a794 <== 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 ); a000a6d0: e1a02009 mov r2, r9 <== NOT EXECUTED a000a6d4: e59d0010 ldr r0, [sp, #16] <== NOT EXECUTED a000a6d8: eb000d53 bl a000dc2c <_Timespec_Divide_by_integer> <== NOT EXECUTED (*print)( context, a000a6dc: e59d0024 ldr r0, [sp, #36] ; 0x24 <== NOT EXECUTED a000a6e0: e3a01ffa mov r1, #1000 ; 0x3e8 <== NOT EXECUTED a000a6e4: eb004224 bl a001af7c <__aeabi_idiv> <== NOT EXECUTED a000a6e8: e59d3028 ldr r3, [sp, #40] ; 0x28 <== NOT EXECUTED a000a6ec: e1a0b000 mov fp, r0 <== NOT EXECUTED a000a6f0: e3a01ffa mov r1, #1000 ; 0x3e8 <== NOT EXECUTED a000a6f4: e59d002c ldr r0, [sp, #44] ; 0x2c <== NOT EXECUTED a000a6f8: e58d3000 str r3, [sp] <== NOT EXECUTED a000a6fc: eb00421e bl a001af7c <__aeabi_idiv> <== NOT EXECUTED a000a700: e59d3068 ldr r3, [sp, #104] ; 0x68 <== NOT EXECUTED a000a704: e58d0004 str r0, [sp, #4] <== NOT EXECUTED a000a708: e3a01ffa mov r1, #1000 ; 0x3e8 <== NOT EXECUTED a000a70c: e59d006c ldr r0, [sp, #108] ; 0x6c <== NOT EXECUTED a000a710: e58d3008 str r3, [sp, #8] <== NOT EXECUTED a000a714: eb004218 bl a001af7c <__aeabi_idiv> <== NOT EXECUTED a000a718: e1a0300b mov r3, fp <== NOT EXECUTED a000a71c: e58d000c str r0, [sp, #12] <== NOT EXECUTED a000a720: e59f10a4 ldr r1, [pc, #164] ; a000a7cc <== NOT EXECUTED a000a724: e59d2020 ldr r2, [sp, #32] <== NOT EXECUTED a000a728: e1a00005 mov r0, r5 <== NOT EXECUTED a000a72c: e12fff34 blx r4 <== NOT EXECUTED struct timespec wall_average; struct timespec *min_wall = &the_stats.min_wall_time; struct timespec *max_wall = &the_stats.max_wall_time; struct timespec *total_wall = &the_stats.total_wall_time; _Timespec_Divide_by_integer(total_wall, the_stats.count, &wall_average); a000a730: e1a02009 mov r2, r9 <== NOT EXECUTED a000a734: e59d0014 ldr r0, [sp, #20] <== NOT EXECUTED a000a738: e59d1018 ldr r1, [sp, #24] <== NOT EXECUTED a000a73c: eb000d3a bl a000dc2c <_Timespec_Divide_by_integer> <== NOT EXECUTED (*print)( context, a000a740: e3a01ffa mov r1, #1000 ; 0x3e8 <== NOT EXECUTED a000a744: e59d003c ldr r0, [sp, #60] ; 0x3c <== NOT EXECUTED a000a748: eb00420b bl a001af7c <__aeabi_idiv> <== NOT EXECUTED a000a74c: e59d3040 ldr r3, [sp, #64] ; 0x40 <== NOT EXECUTED a000a750: e1a0b000 mov fp, r0 <== NOT EXECUTED a000a754: e3a01ffa mov r1, #1000 ; 0x3e8 <== NOT EXECUTED a000a758: e59d0044 ldr r0, [sp, #68] ; 0x44 <== NOT EXECUTED a000a75c: e58d3000 str r3, [sp] <== NOT EXECUTED a000a760: eb004205 bl a001af7c <__aeabi_idiv> <== NOT EXECUTED a000a764: e59d3068 ldr r3, [sp, #104] ; 0x68 <== NOT EXECUTED a000a768: e58d0004 str r0, [sp, #4] <== NOT EXECUTED a000a76c: e3a01ffa mov r1, #1000 ; 0x3e8 <== NOT EXECUTED a000a770: e59d006c ldr r0, [sp, #108] ; 0x6c <== NOT EXECUTED a000a774: e58d3008 str r3, [sp, #8] <== NOT EXECUTED a000a778: eb0041ff bl a001af7c <__aeabi_idiv> <== NOT EXECUTED a000a77c: e59f104c ldr r1, [pc, #76] ; a000a7d0 <== NOT EXECUTED a000a780: e58d000c str r0, [sp, #12] <== NOT EXECUTED a000a784: e59d2038 ldr r2, [sp, #56] ; 0x38 <== NOT EXECUTED a000a788: e1a00005 mov r0, r5 <== NOT EXECUTED a000a78c: e1a0300b mov r3, fp <== NOT EXECUTED a000a790: e12fff34 blx r4 <== NOT EXECUTED * Cycle through all possible ids and try to report on each one. If it * is a period that is inactive, we just get an error back. No big deal. */ for ( id=_Rate_monotonic_Information.minimum_id ; id <= _Rate_monotonic_Information.maximum_id ; id++ ) { a000a794: e2866001 add r6, r6, #1 <== NOT EXECUTED /* * Cycle through all possible ids and try to report on each one. If it * is a period that is inactive, we just get an error back. No big deal. */ for ( id=_Rate_monotonic_Information.minimum_id ; a000a798: e598300c ldr r3, [r8, #12] <== NOT EXECUTED a000a79c: e1560003 cmp r6, r3 <== NOT EXECUTED a000a7a0: 9affffae bls a000a660 <== NOT EXECUTED the_stats.min_wall_time, the_stats.max_wall_time, ival_wall, fval_wall ); #endif } } } a000a7a4: e28dd078 add sp, sp, #120 ; 0x78 <== NOT EXECUTED a000a7a8: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED =============================================================================== a000a7e4 : a000a7e4: e59f3038 ldr r3, [pc, #56] ; a000a824 <== NOT EXECUTED /* * rtems_rate_monotonic_reset_all_statistics */ void rtems_rate_monotonic_reset_all_statistics( void ) { a000a7e8: e92d4030 push {r4, r5, lr} <== NOT EXECUTED a000a7ec: e5932000 ldr r2, [r3] <== NOT EXECUTED a000a7f0: e2822001 add r2, r2, #1 <== NOT EXECUTED a000a7f4: 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 ; a000a7f8: e59f5028 ldr r5, [pc, #40] ; a000a828 <== NOT EXECUTED a000a7fc: e5954008 ldr r4, [r5, #8] <== NOT EXECUTED a000a800: ea000002 b a000a810 <== NOT EXECUTED id <= _Rate_monotonic_Information.maximum_id ; id++ ) { (void) rtems_rate_monotonic_reset_statistics( id ); a000a804: e1a00004 mov r0, r4 <== NOT EXECUTED a000a808: eb000007 bl a000a82c <== NOT EXECUTED * Cycle through all possible ids and try to reset each one. If it * is a period that is inactive, we just get an error back. No big deal. */ for ( id=_Rate_monotonic_Information.minimum_id ; id <= _Rate_monotonic_Information.maximum_id ; id++ ) { a000a80c: 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 ; a000a810: e595300c ldr r3, [r5, #12] <== NOT EXECUTED a000a814: e1540003 cmp r4, r3 <== NOT EXECUTED a000a818: 9afffff9 bls a000a804 <== NOT EXECUTED /* * Done so exit thread dispatching disabled critical section. */ _Thread_Enable_dispatch(); } a000a81c: e8bd4030 pop {r4, r5, lr} <== NOT EXECUTED } /* * Done so exit thread dispatching disabled critical section. */ _Thread_Enable_dispatch(); a000a820: ea000a66 b a000d1c0 <_Thread_Enable_dispatch> <== NOT EXECUTED =============================================================================== a000a82c : */ rtems_status_code rtems_rate_monotonic_reset_statistics( rtems_id id ) { a000a82c: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED a000a830: e1a01000 mov r1, r0 <== NOT EXECUTED a000a834: e1a0200d mov r2, sp <== NOT EXECUTED a000a838: e59f0044 ldr r0, [pc, #68] ; a000a884 <== NOT EXECUTED a000a83c: eb000741 bl a000c548 <_Objects_Get> <== NOT EXECUTED Objects_Locations location; Rate_monotonic_Control *the_period; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { a000a840: e59d5000 ldr r5, [sp] <== NOT EXECUTED a000a844: e1a04000 mov r4, r0 <== NOT EXECUTED a000a848: e3550000 cmp r5, #0 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a000a84c: 13a00004 movne r0, #4 <== NOT EXECUTED { Objects_Locations location; Rate_monotonic_Control *the_period; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { a000a850: 1a00000a bne a000a880 <== NOT EXECUTED case OBJECTS_LOCAL: _Rate_monotonic_Reset_statistics( the_period ); a000a854: e1a01005 mov r1, r5 <== NOT EXECUTED a000a858: e3a02038 mov r2, #56 ; 0x38 <== NOT EXECUTED a000a85c: e2840054 add r0, r4, #84 ; 0x54 <== NOT EXECUTED a000a860: eb001fda bl a00127d0 <== NOT EXECUTED a000a864: e3e03102 mvn r3, #-2147483648 ; 0x80000000 <== NOT EXECUTED a000a868: e584305c str r3, [r4, #92] ; 0x5c <== NOT EXECUTED a000a86c: e5843060 str r3, [r4, #96] ; 0x60 <== NOT EXECUTED a000a870: e5843074 str r3, [r4, #116] ; 0x74 <== NOT EXECUTED a000a874: e5843078 str r3, [r4, #120] ; 0x78 <== NOT EXECUTED _Thread_Enable_dispatch(); a000a878: eb000a50 bl a000d1c0 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000a87c: e1a00005 mov r0, r5 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a000a880: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED =============================================================================== a0016b14 : uintptr_t length, uintptr_t page_size, rtems_attribute attribute_set, rtems_id *id ) { a0016b14: 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 ) ) a0016b18: e2509000 subs r9, r0, #0 <== NOT EXECUTED uintptr_t length, uintptr_t page_size, rtems_attribute attribute_set, rtems_id *id ) { a0016b1c: e1a06001 mov r6, r1 <== NOT EXECUTED a0016b20: e1a07002 mov r7, r2 <== NOT EXECUTED a0016b24: e1a08003 mov r8, r3 <== NOT EXECUTED a0016b28: e59da024 ldr sl, [sp, #36] ; 0x24 <== NOT EXECUTED a0016b2c: e59db028 ldr fp, [sp, #40] ; 0x28 <== NOT EXECUTED rtems_status_code return_status; Region_Control *the_region; if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; a0016b30: 03a06003 moveq r6, #3 <== NOT EXECUTED ) { rtems_status_code return_status; Region_Control *the_region; if ( !rtems_is_name_valid( name ) ) a0016b34: 0a000031 beq a0016c00 <== NOT EXECUTED return RTEMS_INVALID_NAME; if ( !starting_address ) a0016b38: e3560000 cmp r6, #0 <== NOT EXECUTED a0016b3c: 0a00002e beq a0016bfc <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !id ) a0016b40: e35b0000 cmp fp, #0 <== NOT EXECUTED a0016b44: 0a00002c beq a0016bfc <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); /* to prevent deletion */ a0016b48: e59f30b8 ldr r3, [pc, #184] ; a0016c08 <== 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 ); a0016b4c: e59f50b8 ldr r5, [pc, #184] ; a0016c0c <== NOT EXECUTED a0016b50: e5930000 ldr r0, [r3] <== NOT EXECUTED a0016b54: eb000927 bl a0018ff8 <_API_Mutex_Lock> <== NOT EXECUTED a0016b58: e1a00005 mov r0, r5 <== NOT EXECUTED a0016b5c: eb000f22 bl a001a7ec <_Objects_Allocate> <== NOT EXECUTED the_region = _Region_Allocate(); if ( !the_region ) a0016b60: e2504000 subs r4, r0, #0 <== NOT EXECUTED return_status = RTEMS_TOO_MANY; a0016b64: 03a06005 moveq r6, #5 <== NOT EXECUTED _RTEMS_Lock_allocator(); /* to prevent deletion */ the_region = _Region_Allocate(); if ( !the_region ) a0016b68: 0a00001f beq a0016bec <== NOT EXECUTED return_status = RTEMS_TOO_MANY; else { the_region->maximum_segment_size = _Heap_Initialize( a0016b6c: e2840068 add r0, r4, #104 ; 0x68 <== NOT EXECUTED a0016b70: e1a01006 mov r1, r6 <== NOT EXECUTED a0016b74: e1a02007 mov r2, r7 <== NOT EXECUTED a0016b78: e1a03008 mov r3, r8 <== NOT EXECUTED a0016b7c: eb000dfb bl a001a370 <_Heap_Initialize> <== NOT EXECUTED &the_region->Memory, starting_address, length, page_size ); if ( !the_region->maximum_segment_size ) { a0016b80: e3500000 cmp r0, #0 <== NOT EXECUTED if ( !the_region ) return_status = RTEMS_TOO_MANY; else { the_region->maximum_segment_size = _Heap_Initialize( a0016b84: e584005c str r0, [r4, #92] ; 0x5c <== NOT EXECUTED &the_region->Memory, starting_address, length, page_size ); if ( !the_region->maximum_segment_size ) { a0016b88: 1a000004 bne a0016ba0 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Region_Free ( Region_Control *the_region ) { _Objects_Free( &_Region_Information, &the_region->Object ); a0016b8c: e1a00005 mov r0, r5 <== NOT EXECUTED a0016b90: e1a01004 mov r1, r4 <== NOT EXECUTED a0016b94: eb000fdb bl a001ab08 <_Objects_Free> <== NOT EXECUTED _Region_Free( the_region ); return_status = RTEMS_INVALID_SIZE; a0016b98: e3a06008 mov r6, #8 <== NOT EXECUTED a0016b9c: ea000012 b a0016bec <== NOT EXECUTED } else { the_region->starting_address = starting_address; a0016ba0: e5846050 str r6, [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( a0016ba4: e31a0004 tst sl, #4 <== 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; a0016ba8: e3a06000 mov r6, #0 <== NOT EXECUTED _Thread_queue_Initialize( a0016bac: 03a01000 moveq r1, #0 <== NOT EXECUTED a0016bb0: 13a01001 movne r1, #1 <== NOT EXECUTED a0016bb4: e3a02040 mov r2, #64 ; 0x40 <== NOT EXECUTED a0016bb8: e3a03006 mov r3, #6 <== NOT EXECUTED } else { the_region->starting_address = starting_address; the_region->length = length; a0016bbc: e5847054 str r7, [r4, #84] ; 0x54 <== NOT EXECUTED the_region->page_size = page_size; a0016bc0: e5848058 str r8, [r4, #88] ; 0x58 <== NOT EXECUTED the_region->attribute_set = attribute_set; a0016bc4: e584a060 str sl, [r4, #96] ; 0x60 <== NOT EXECUTED the_region->number_of_used_blocks = 0; a0016bc8: e5846064 str r6, [r4, #100] ; 0x64 <== NOT EXECUTED _Thread_queue_Initialize( a0016bcc: e2840010 add r0, r4, #16 <== NOT EXECUTED a0016bd0: eb001510 bl a001c018 <_Thread_queue_Initialize> <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; a0016bd4: e595201c ldr r2, [r5, #28] <== NOT EXECUTED Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( a0016bd8: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED a0016bdc: e1d410b8 ldrh r1, [r4, #8] <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; a0016be0: e7824101 str r4, [r2, r1, lsl #2] <== NOT EXECUTED information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; a0016be4: e584900c str r9, [r4, #12] <== NOT EXECUTED &_Region_Information, &the_region->Object, (Objects_Name) name ); *id = the_region->Object.id; a0016be8: e58b3000 str r3, [fp] <== NOT EXECUTED return_status = RTEMS_SUCCESSFUL; } } _RTEMS_Unlock_allocator(); a0016bec: e59f3014 ldr r3, [pc, #20] ; a0016c08 <== NOT EXECUTED a0016bf0: e5930000 ldr r0, [r3] <== NOT EXECUTED a0016bf4: eb000918 bl a001905c <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; a0016bf8: ea000000 b a0016c00 <== NOT EXECUTED if ( !starting_address ) return RTEMS_INVALID_ADDRESS; if ( !id ) return RTEMS_INVALID_ADDRESS; a0016bfc: e3a06009 mov r6, #9 <== NOT EXECUTED } } _RTEMS_Unlock_allocator(); return return_status; } a0016c00: e1a00006 mov r0, r6 <== NOT EXECUTED a0016c04: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED =============================================================================== a0016c10 : */ rtems_status_code rtems_region_delete( rtems_id id ) { a0016c10: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED Objects_Locations location; rtems_status_code return_status; Region_Control *the_region; _RTEMS_Lock_allocator(); a0016c14: e59f3068 ldr r3, [pc, #104] ; a0016c84 <== NOT EXECUTED */ rtems_status_code rtems_region_delete( rtems_id id ) { a0016c18: e1a04000 mov r4, r0 <== NOT EXECUTED Objects_Locations location; rtems_status_code return_status; Region_Control *the_region; _RTEMS_Lock_allocator(); a0016c1c: e5930000 ldr r0, [r3] <== NOT EXECUTED a0016c20: eb0008f4 bl a0018ff8 <_API_Mutex_Lock> <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Region_Control *) _Objects_Get_no_protection( &_Region_Information, id, location ); a0016c24: e1a01004 mov r1, r4 <== NOT EXECUTED a0016c28: e59f0058 ldr r0, [pc, #88] ; a0016c88 <== NOT EXECUTED a0016c2c: e1a0200d mov r2, sp <== NOT EXECUTED a0016c30: eb00100c bl a001ac68 <_Objects_Get_no_protection> <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { a0016c34: e59d3000 ldr r3, [sp] <== NOT EXECUTED a0016c38: e1a04000 mov r4, r0 <== NOT EXECUTED a0016c3c: e3530000 cmp r3, #0 <== NOT EXECUTED break; #endif case OBJECTS_ERROR: default: return_status = RTEMS_INVALID_ID; a0016c40: 13a05004 movne r5, #4 <== NOT EXECUTED Region_Control *the_region; _RTEMS_Lock_allocator(); the_region = _Region_Get( id, &location ); switch ( location ) { a0016c44: 1a000009 bne a0016c70 <== NOT EXECUTED case OBJECTS_LOCAL: _Region_Debug_Walk( the_region, 5 ); if ( the_region->number_of_used_blocks != 0 ) a0016c48: e5905064 ldr r5, [r0, #100] ; 0x64 <== NOT EXECUTED a0016c4c: e3550000 cmp r5, #0 <== NOT EXECUTED return_status = RTEMS_RESOURCE_IN_USE; a0016c50: 13a0500c movne r5, #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 ) a0016c54: 1a000005 bne a0016c70 <== NOT EXECUTED return_status = RTEMS_RESOURCE_IN_USE; else { _Objects_Close( &_Region_Information, &the_region->Object ); a0016c58: e59f0028 ldr r0, [pc, #40] ; a0016c88 <== NOT EXECUTED a0016c5c: e1a01004 mov r1, r4 <== NOT EXECUTED a0016c60: eb000f03 bl a001a874 <_Objects_Close> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Region_Free ( Region_Control *the_region ) { _Objects_Free( &_Region_Information, &the_region->Object ); a0016c64: e59f001c ldr r0, [pc, #28] ; a0016c88 <== NOT EXECUTED a0016c68: e1a01004 mov r1, r4 <== NOT EXECUTED a0016c6c: eb000fa5 bl a001ab08 <_Objects_Free> <== NOT EXECUTED default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); a0016c70: e59f300c ldr r3, [pc, #12] ; a0016c84 <== NOT EXECUTED a0016c74: e5930000 ldr r0, [r3] <== NOT EXECUTED a0016c78: eb0008f7 bl a001905c <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; } a0016c7c: e1a00005 mov r0, r5 <== NOT EXECUTED a0016c80: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED =============================================================================== a0016c8c : rtems_status_code rtems_region_extend( rtems_id id, void *starting_address, uintptr_t length ) { a0016c8c: e92d40f3 push {r0, r1, r4, r5, r6, r7, lr} <== NOT EXECUTED bool extend_ok; Objects_Locations location; rtems_status_code return_status; Region_Control *the_region; if ( !starting_address ) a0016c90: e2517000 subs r7, r1, #0 <== NOT EXECUTED rtems_status_code rtems_region_extend( rtems_id id, void *starting_address, uintptr_t length ) { a0016c94: e1a04000 mov r4, r0 <== NOT EXECUTED a0016c98: e1a06002 mov r6, r2 <== NOT EXECUTED Objects_Locations location; rtems_status_code return_status; Region_Control *the_region; if ( !starting_address ) return RTEMS_INVALID_ADDRESS; a0016c9c: 03a05009 moveq r5, #9 <== NOT EXECUTED bool extend_ok; Objects_Locations location; rtems_status_code return_status; Region_Control *the_region; if ( !starting_address ) a0016ca0: 0a00001d beq a0016d1c <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); /* to prevent deletion */ a0016ca4: e59f3078 ldr r3, [pc, #120] ; a0016d24 <== NOT EXECUTED a0016ca8: e5930000 ldr r0, [r3] <== NOT EXECUTED a0016cac: eb0008d1 bl a0018ff8 <_API_Mutex_Lock> <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Region_Control *) _Objects_Get_no_protection( &_Region_Information, id, location ); a0016cb0: e1a01004 mov r1, r4 <== NOT EXECUTED a0016cb4: e59f006c ldr r0, [pc, #108] ; a0016d28 <== NOT EXECUTED a0016cb8: e1a0200d mov r2, sp <== NOT EXECUTED a0016cbc: eb000fe9 bl a001ac68 <_Objects_Get_no_protection> <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { a0016cc0: e59d5000 ldr r5, [sp] <== NOT EXECUTED a0016cc4: e1a04000 mov r4, r0 <== NOT EXECUTED a0016cc8: e3550000 cmp r5, #0 <== NOT EXECUTED break; #endif case OBJECTS_ERROR: default: return_status = RTEMS_INVALID_ID; a0016ccc: 13a05004 movne r5, #4 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); /* to prevent deletion */ the_region = _Region_Get( id, &location ); switch ( location ) { a0016cd0: 1a00000e bne a0016d10 <== NOT EXECUTED case OBJECTS_LOCAL: extend_ok = _Heap_Extend( a0016cd4: e2800068 add r0, r0, #104 ; 0x68 <== NOT EXECUTED a0016cd8: e1a01007 mov r1, r7 <== NOT EXECUTED a0016cdc: e1a02006 mov r2, r6 <== NOT EXECUTED a0016ce0: e28d3004 add r3, sp, #4 <== NOT EXECUTED a0016ce4: eb000bdb bl a0019c58 <_Heap_Extend> <== NOT EXECUTED starting_address, length, &amount_extended ); if ( extend_ok ) { a0016ce8: 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; a0016cec: 03a05009 moveq r5, #9 <== NOT EXECUTED starting_address, length, &amount_extended ); if ( extend_ok ) { a0016cf0: 0a000006 beq a0016d10 <== NOT EXECUTED the_region->length += amount_extended; a0016cf4: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED a0016cf8: e5942054 ldr r2, [r4, #84] ; 0x54 <== NOT EXECUTED a0016cfc: e0822003 add r2, r2, r3 <== NOT EXECUTED a0016d00: e5842054 str r2, [r4, #84] ; 0x54 <== NOT EXECUTED the_region->maximum_segment_size += amount_extended; a0016d04: e594205c ldr r2, [r4, #92] ; 0x5c <== NOT EXECUTED a0016d08: e0823003 add r3, r2, r3 <== NOT EXECUTED a0016d0c: e584305c str r3, [r4, #92] ; 0x5c <== NOT EXECUTED default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); a0016d10: e59f300c ldr r3, [pc, #12] ; a0016d24 <== NOT EXECUTED a0016d14: e5930000 ldr r0, [r3] <== NOT EXECUTED a0016d18: eb0008cf bl a001905c <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; } a0016d1c: e1a00005 mov r0, r5 <== NOT EXECUTED a0016d20: e8bd80fc pop {r2, r3, r4, r5, r6, r7, pc} <== NOT EXECUTED =============================================================================== a0016d2c : rtems_status_code rtems_region_get_free_information( rtems_id id, Heap_Information_block *the_info ) { a0016d2c: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED Objects_Locations location; rtems_status_code return_status; register Region_Control *the_region; if ( !the_info ) a0016d30: e2514000 subs r4, r1, #0 <== NOT EXECUTED rtems_status_code rtems_region_get_free_information( rtems_id id, Heap_Information_block *the_info ) { a0016d34: e1a05000 mov r5, r0 <== NOT EXECUTED Objects_Locations location; rtems_status_code return_status; register Region_Control *the_region; if ( !the_info ) return RTEMS_INVALID_ADDRESS; a0016d38: 03a05009 moveq r5, #9 <== NOT EXECUTED { Objects_Locations location; rtems_status_code return_status; register Region_Control *the_region; if ( !the_info ) a0016d3c: 0a000013 beq a0016d90 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); a0016d40: e59f3050 ldr r3, [pc, #80] ; a0016d98 <== NOT EXECUTED a0016d44: e5930000 ldr r0, [r3] <== NOT EXECUTED a0016d48: eb0008aa bl a0018ff8 <_API_Mutex_Lock> <== NOT EXECUTED a0016d4c: e1a01005 mov r1, r5 <== NOT EXECUTED a0016d50: e59f0044 ldr r0, [pc, #68] ; a0016d9c <== NOT EXECUTED a0016d54: e1a0200d mov r2, sp <== NOT EXECUTED a0016d58: eb000fc2 bl a001ac68 <_Objects_Get_no_protection> <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { a0016d5c: e59d5000 ldr r5, [sp] <== NOT EXECUTED a0016d60: e3550000 cmp r5, #0 <== NOT EXECUTED break; #endif case OBJECTS_ERROR: default: return_status = RTEMS_INVALID_ID; a0016d64: 13a05004 movne r5, #4 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); the_region = _Region_Get( id, &location ); switch ( location ) { a0016d68: 1a000005 bne a0016d84 <== NOT EXECUTED case OBJECTS_LOCAL: the_info->Used.number = 0; a0016d6c: e584500c str r5, [r4, #12] <== NOT EXECUTED the_info->Used.total = 0; a0016d70: e5845014 str r5, [r4, #20] <== NOT EXECUTED the_info->Used.largest = 0; a0016d74: e5845010 str r5, [r4, #16] <== NOT EXECUTED _Heap_Get_free_information( &the_region->Memory, &the_info->Free ); a0016d78: e2800068 add r0, r0, #104 ; 0x68 <== NOT EXECUTED a0016d7c: e1a01004 mov r1, r4 <== NOT EXECUTED a0016d80: eb000ce3 bl a001a114 <_Heap_Get_free_information> <== NOT EXECUTED default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); a0016d84: e59f300c ldr r3, [pc, #12] ; a0016d98 <== NOT EXECUTED a0016d88: e5930000 ldr r0, [r3] <== NOT EXECUTED a0016d8c: eb0008b2 bl a001905c <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; } a0016d90: e1a00005 mov r0, r5 <== NOT EXECUTED a0016d94: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED =============================================================================== a0016da0 : rtems_status_code rtems_region_get_information( rtems_id id, Heap_Information_block *the_info ) { a0016da0: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED Objects_Locations location; rtems_status_code return_status; register Region_Control *the_region; if ( !the_info ) a0016da4: e2514000 subs r4, r1, #0 <== NOT EXECUTED rtems_status_code rtems_region_get_information( rtems_id id, Heap_Information_block *the_info ) { a0016da8: e1a05000 mov r5, r0 <== NOT EXECUTED Objects_Locations location; rtems_status_code return_status; register Region_Control *the_region; if ( !the_info ) return RTEMS_INVALID_ADDRESS; a0016dac: 03a05009 moveq r5, #9 <== NOT EXECUTED { Objects_Locations location; rtems_status_code return_status; register Region_Control *the_region; if ( !the_info ) a0016db0: 0a000010 beq a0016df8 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); a0016db4: e59f3044 ldr r3, [pc, #68] ; a0016e00 <== NOT EXECUTED a0016db8: e5930000 ldr r0, [r3] <== NOT EXECUTED a0016dbc: eb00088d bl a0018ff8 <_API_Mutex_Lock> <== NOT EXECUTED a0016dc0: e1a01005 mov r1, r5 <== NOT EXECUTED a0016dc4: e59f0038 ldr r0, [pc, #56] ; a0016e04 <== NOT EXECUTED a0016dc8: e1a0200d mov r2, sp <== NOT EXECUTED a0016dcc: eb000fa5 bl a001ac68 <_Objects_Get_no_protection> <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { a0016dd0: e59d5000 ldr r5, [sp] <== NOT EXECUTED a0016dd4: e3550000 cmp r5, #0 <== NOT EXECUTED break; #endif case OBJECTS_ERROR: default: return_status = RTEMS_INVALID_ID; a0016dd8: 13a05004 movne r5, #4 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); the_region = _Region_Get( id, &location ); switch ( location ) { a0016ddc: 1a000002 bne a0016dec <== NOT EXECUTED case OBJECTS_LOCAL: _Heap_Get_information( &the_region->Memory, the_info ); a0016de0: e2800068 add r0, r0, #104 ; 0x68 <== NOT EXECUTED a0016de4: e1a01004 mov r1, r4 <== NOT EXECUTED a0016de8: eb000cdd bl a001a164 <_Heap_Get_information> <== NOT EXECUTED default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); a0016dec: e59f300c ldr r3, [pc, #12] ; a0016e00 <== NOT EXECUTED a0016df0: e5930000 ldr r0, [r3] <== NOT EXECUTED a0016df4: eb000898 bl a001905c <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; } a0016df8: e1a00005 mov r0, r5 <== NOT EXECUTED a0016dfc: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED =============================================================================== a0016e08 : uintptr_t size, rtems_option option_set, rtems_interval timeout, void **segment ) { a0016e08: e92d4ff3 push {r0, r1, r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED a0016e0c: e59d802c ldr r8, [sp, #44] ; 0x2c <== NOT EXECUTED a0016e10: e1a09000 mov r9, r0 <== NOT EXECUTED a0016e14: e1a06001 mov r6, r1 <== NOT EXECUTED Objects_Locations location; rtems_status_code return_status; Region_Control *the_region; void *the_segment; if ( !segment ) a0016e18: e3580000 cmp r8, #0 <== NOT EXECUTED uintptr_t size, rtems_option option_set, rtems_interval timeout, void **segment ) { a0016e1c: e1a0b002 mov fp, r2 <== NOT EXECUTED a0016e20: e58d3000 str r3, [sp] <== NOT EXECUTED rtems_status_code return_status; Region_Control *the_region; void *the_segment; if ( !segment ) return RTEMS_INVALID_ADDRESS; a0016e24: 03a07009 moveq r7, #9 <== NOT EXECUTED Objects_Locations location; rtems_status_code return_status; Region_Control *the_region; void *the_segment; if ( !segment ) a0016e28: 0a00003a beq a0016f18 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; *segment = NULL; a0016e2c: e3a03000 mov r3, #0 <== NOT EXECUTED if ( size == 0 ) a0016e30: e1510003 cmp r1, r3 <== NOT EXECUTED void *the_segment; if ( !segment ) return RTEMS_INVALID_ADDRESS; *segment = NULL; a0016e34: e5883000 str r3, [r8] <== NOT EXECUTED if ( size == 0 ) return RTEMS_INVALID_SIZE; a0016e38: 03a07008 moveq r7, #8 <== NOT EXECUTED if ( !segment ) return RTEMS_INVALID_ADDRESS; *segment = NULL; if ( size == 0 ) a0016e3c: 0a000035 beq a0016f18 <== NOT EXECUTED return RTEMS_INVALID_SIZE; _RTEMS_Lock_allocator(); a0016e40: e59fa0d8 ldr sl, [pc, #216] ; a0016f20 <== NOT EXECUTED a0016e44: e59a0000 ldr r0, [sl] <== NOT EXECUTED a0016e48: eb00086a bl a0018ff8 <_API_Mutex_Lock> <== NOT EXECUTED executing = _Thread_Executing; a0016e4c: e59f30d0 ldr r3, [pc, #208] ; a0016f24 <== NOT EXECUTED a0016e50: e59f00d0 ldr r0, [pc, #208] ; a0016f28 <== NOT EXECUTED a0016e54: e1a01009 mov r1, r9 <== NOT EXECUTED a0016e58: e28d2004 add r2, sp, #4 <== NOT EXECUTED a0016e5c: e5935004 ldr r5, [r3, #4] <== NOT EXECUTED a0016e60: eb000f80 bl a001ac68 <_Objects_Get_no_protection> <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { a0016e64: e59d7004 ldr r7, [sp, #4] <== NOT EXECUTED a0016e68: e1a04000 mov r4, r0 <== NOT EXECUTED a0016e6c: e3570000 cmp r7, #0 <== NOT EXECUTED break; #endif case OBJECTS_ERROR: default: return_status = RTEMS_INVALID_ID; a0016e70: 13a07004 movne r7, #4 <== NOT EXECUTED _RTEMS_Lock_allocator(); executing = _Thread_Executing; the_region = _Region_Get( id, &location ); switch ( location ) { a0016e74: 1a000024 bne a0016f0c <== NOT EXECUTED case OBJECTS_LOCAL: if ( size > the_region->maximum_segment_size ) a0016e78: e590305c ldr r3, [r0, #92] ; 0x5c <== NOT EXECUTED a0016e7c: e1560003 cmp r6, r3 <== NOT EXECUTED return_status = RTEMS_INVALID_SIZE; a0016e80: 83a07008 movhi r7, #8 <== NOT EXECUTED executing = _Thread_Executing; the_region = _Region_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( size > the_region->maximum_segment_size ) a0016e84: 8a000020 bhi a0016f0c <== 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 ); a0016e88: e2800068 add r0, r0, #104 ; 0x68 <== NOT EXECUTED a0016e8c: e1a01006 mov r1, r6 <== NOT EXECUTED a0016e90: e1a02007 mov r2, r7 <== NOT EXECUTED a0016e94: e1a03007 mov r3, r7 <== NOT EXECUTED a0016e98: eb000aed bl a0019a54 <_Heap_Allocate_aligned_with_boundary><== NOT EXECUTED the_segment = _Region_Allocate_segment( the_region, size ); _Region_Debug_Walk( the_region, 2 ); if ( the_segment ) { a0016e9c: e3500000 cmp r0, #0 <== NOT EXECUTED the_region->number_of_used_blocks += 1; a0016ea0: 15943064 ldrne r3, [r4, #100] ; 0x64 <== NOT EXECUTED a0016ea4: 12833001 addne r3, r3, #1 <== NOT EXECUTED a0016ea8: 15843064 strne r3, [r4, #100] ; 0x64 <== NOT EXECUTED *segment = the_segment; a0016eac: 15880000 strne r0, [r8] <== NOT EXECUTED a0016eb0: 1a000015 bne a0016f0c <== NOT EXECUTED return_status = RTEMS_SUCCESSFUL; } else if ( _Options_Is_no_wait( option_set ) ) { a0016eb4: e31b0001 tst fp, #1 <== NOT EXECUTED return_status = RTEMS_UNSATISFIED; a0016eb8: 13a0700d movne r7, #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 ) ) { a0016ebc: 1a000012 bne a0016f0c <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; a0016ec0: e59f3064 ldr r3, [pc, #100] ; a0016f2c <== NOT EXECUTED a0016ec4: e5932000 ldr r2, [r3] <== NOT EXECUTED a0016ec8: e2822001 add r2, r2, #1 <== NOT EXECUTED a0016ecc: 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(); a0016ed0: e59a0000 ldr r0, [sl] <== NOT EXECUTED a0016ed4: eb000860 bl a001905c <_API_Mutex_Unlock> <== NOT EXECUTED executing->Wait.queue = &the_region->Wait_queue; a0016ed8: e2840010 add r0, r4, #16 <== 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; a0016edc: e3a03001 mov r3, #1 <== NOT EXECUTED a0016ee0: e5850044 str r0, [r5, #68] ; 0x44 <== NOT EXECUTED executing->Wait.id = id; a0016ee4: e5859020 str r9, [r5, #32] <== NOT EXECUTED executing->Wait.count = size; a0016ee8: e5856024 str r6, [r5, #36] ; 0x24 <== NOT EXECUTED executing->Wait.return_argument = segment; a0016eec: e5858028 str r8, [r5, #40] ; 0x28 <== NOT EXECUTED _Thread_queue_Enter_critical_section( &the_region->Wait_queue ); _Thread_queue_Enqueue( &the_region->Wait_queue, timeout ); a0016ef0: e59d1000 ldr r1, [sp] <== NOT EXECUTED a0016ef4: e5843040 str r3, [r4, #64] ; 0x40 <== NOT EXECUTED a0016ef8: e59f2030 ldr r2, [pc, #48] ; a0016f30 <== NOT EXECUTED a0016efc: eb0013a1 bl a001bd88 <_Thread_queue_Enqueue_with_handler> <== NOT EXECUTED _Thread_Enable_dispatch(); a0016f00: eb001286 bl a001b920 <_Thread_Enable_dispatch> <== NOT EXECUTED return (rtems_status_code) executing->Wait.return_code; a0016f04: e5957034 ldr r7, [r5, #52] ; 0x34 <== NOT EXECUTED a0016f08: ea000002 b a0016f18 <== NOT EXECUTED default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); a0016f0c: e59f300c ldr r3, [pc, #12] ; a0016f20 <== NOT EXECUTED a0016f10: e5930000 ldr r0, [r3] <== NOT EXECUTED a0016f14: eb000850 bl a001905c <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; } a0016f18: e1a00007 mov r0, r7 <== NOT EXECUTED a0016f1c: e8bd8ffc pop {r2, r3, r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED =============================================================================== a0016f34 : rtems_status_code rtems_region_get_segment_size( rtems_id id, void *segment, uintptr_t *size ) { a0016f34: e92d4071 push {r0, r4, r5, r6, lr} <== NOT EXECUTED Objects_Locations location; rtems_status_code return_status = RTEMS_SUCCESSFUL; register Region_Control *the_region; if ( !segment ) a0016f38: e2515000 subs r5, r1, #0 <== NOT EXECUTED rtems_status_code rtems_region_get_segment_size( rtems_id id, void *segment, uintptr_t *size ) { a0016f3c: e1a06000 mov r6, r0 <== NOT EXECUTED a0016f40: e1a04002 mov r4, r2 <== NOT EXECUTED Objects_Locations location; rtems_status_code return_status = RTEMS_SUCCESSFUL; register Region_Control *the_region; if ( !segment ) a0016f44: 0a000019 beq a0016fb0 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !size ) a0016f48: e3520000 cmp r2, #0 <== NOT EXECUTED a0016f4c: 0a000017 beq a0016fb0 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); a0016f50: e59f3064 ldr r3, [pc, #100] ; a0016fbc <== NOT EXECUTED a0016f54: e5930000 ldr r0, [r3] <== NOT EXECUTED a0016f58: eb000826 bl a0018ff8 <_API_Mutex_Lock> <== NOT EXECUTED a0016f5c: e59f005c ldr r0, [pc, #92] ; a0016fc0 <== NOT EXECUTED a0016f60: e1a01006 mov r1, r6 <== NOT EXECUTED a0016f64: e1a0200d mov r2, sp <== NOT EXECUTED a0016f68: eb000f3e bl a001ac68 <_Objects_Get_no_protection> <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { a0016f6c: e59d3000 ldr r3, [sp] <== NOT EXECUTED a0016f70: e3530000 cmp r3, #0 <== NOT EXECUTED a0016f74: 0a000002 beq a0016f84 <== NOT EXECUTED void *segment, uintptr_t *size ) { Objects_Locations location; rtems_status_code return_status = RTEMS_SUCCESSFUL; a0016f78: e3530001 cmp r3, #1 <== NOT EXECUTED a0016f7c: 03a04004 moveq r4, #4 <== NOT EXECUTED a0016f80: ea000005 b a0016f9c <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_Heap_Size_of_alloc_area( &the_region->Memory, segment, size ) ) a0016f84: e1a02004 mov r2, r4 <== NOT EXECUTED a0016f88: e2800068 add r0, r0, #104 ; 0x68 <== NOT EXECUTED a0016f8c: e1a01005 mov r1, r5 <== NOT EXECUTED a0016f90: eb000dd8 bl a001a6f8 <_Heap_Size_of_alloc_area> <== NOT EXECUTED void *segment, uintptr_t *size ) { Objects_Locations location; rtems_status_code return_status = RTEMS_SUCCESSFUL; a0016f94: e3500000 cmp r0, #0 <== NOT EXECUTED a0016f98: 03a04009 moveq r4, #9 <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); a0016f9c: e59f3018 ldr r3, [pc, #24] ; a0016fbc <== NOT EXECUTED void *segment, uintptr_t *size ) { Objects_Locations location; rtems_status_code return_status = RTEMS_SUCCESSFUL; a0016fa0: 13a04000 movne r4, #0 <== NOT EXECUTED case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); a0016fa4: e5930000 ldr r0, [r3] <== NOT EXECUTED a0016fa8: eb00082b bl a001905c <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; a0016fac: ea000000 b a0016fb4 <== NOT EXECUTED if ( !segment ) return RTEMS_INVALID_ADDRESS; if ( !size ) return RTEMS_INVALID_ADDRESS; a0016fb0: e3a04009 mov r4, #9 <== NOT EXECUTED break; } _RTEMS_Unlock_allocator(); return return_status; } a0016fb4: e1a00004 mov r0, r4 <== NOT EXECUTED a0016fb8: e8bd8078 pop {r3, r4, r5, r6, pc} <== NOT EXECUTED =============================================================================== a0016fc4 : rtems_status_code rtems_region_ident( rtems_name name, rtems_id *id ) { a0016fc4: e1a02000 mov r2, r0 <== NOT EXECUTED a0016fc8: e1a03001 mov r3, r1 <== NOT EXECUTED a0016fcc: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( a0016fd0: e1a01002 mov r1, r2 <== NOT EXECUTED a0016fd4: e59f0010 ldr r0, [pc, #16] ; a0016fec <== NOT EXECUTED a0016fd8: e3e02102 mvn r2, #-2147483648 ; 0x80000000 <== NOT EXECUTED a0016fdc: eb000f80 bl a001ade4 <_Objects_Name_to_id_u32> <== NOT EXECUTED OBJECTS_SEARCH_LOCAL_NODE, id ); return _Status_Object_name_errors_to_status[ status ]; } a0016fe0: e59f3008 ldr r3, [pc, #8] ; a0016ff0 <== NOT EXECUTED a0016fe4: e7930100 ldr r0, [r3, r0, lsl #2] <== NOT EXECUTED a0016fe8: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED =============================================================================== a0016ff4 : rtems_id id, void *segment, uintptr_t size, uintptr_t *old_size ) { a0016ff4: e92d41ff push {r0, r1, r2, r3, r4, r5, r6, r7, r8, lr} <== NOT EXECUTED uintptr_t osize; rtems_status_code return_status; Heap_Resize_status status; register Region_Control *the_region; if ( !old_size ) a0016ff8: e2538000 subs r8, r3, #0 <== NOT EXECUTED rtems_id id, void *segment, uintptr_t size, uintptr_t *old_size ) { a0016ffc: e1a05000 mov r5, r0 <== NOT EXECUTED a0017000: e1a07001 mov r7, r1 <== NOT EXECUTED a0017004: 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; a0017008: 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 ) a001700c: 0a000022 beq a001709c <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); a0017010: e59f408c ldr r4, [pc, #140] ; a00170a4 <== NOT EXECUTED a0017014: e5940000 ldr r0, [r4] <== NOT EXECUTED a0017018: eb0007f6 bl a0018ff8 <_API_Mutex_Lock> <== NOT EXECUTED a001701c: e1a01005 mov r1, r5 <== NOT EXECUTED a0017020: e59f0080 ldr r0, [pc, #128] ; a00170a8 <== NOT EXECUTED a0017024: e28d2008 add r2, sp, #8 <== NOT EXECUTED a0017028: eb000f0e bl a001ac68 <_Objects_Get_no_protection> <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { a001702c: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED a0017030: e1a05000 mov r5, r0 <== NOT EXECUTED a0017034: e3530000 cmp r3, #0 <== NOT EXECUTED a0017038: 1a000014 bne a0017090 <== NOT EXECUTED case OBJECTS_LOCAL: _Region_Debug_Walk( the_region, 7 ); status = _Heap_Resize_block( a001703c: e28d300c add r3, sp, #12 <== NOT EXECUTED a0017040: e58d3000 str r3, [sp] <== NOT EXECUTED a0017044: e1a02006 mov r2, r6 <== NOT EXECUTED a0017048: e28d3004 add r3, sp, #4 <== NOT EXECUTED a001704c: e2800068 add r0, r0, #104 ; 0x68 <== NOT EXECUTED a0017050: e1a01007 mov r1, r7 <== NOT EXECUTED a0017054: eb000d58 bl a001a5bc <_Heap_Resize_block> <== NOT EXECUTED segment, (uint32_t) size, &osize, &avail_size ); *old_size = (uint32_t) osize; a0017058: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED _Region_Debug_Walk( the_region, 8 ); if ( status == HEAP_RESIZE_SUCCESSFUL ) a001705c: e2506000 subs r6, r0, #0 <== NOT EXECUTED segment, (uint32_t) size, &osize, &avail_size ); *old_size = (uint32_t) osize; a0017060: e5883000 str r3, [r8] <== NOT EXECUTED _Region_Debug_Walk( the_region, 8 ); if ( status == HEAP_RESIZE_SUCCESSFUL ) a0017064: 1a000003 bne a0017078 <== NOT EXECUTED _Region_Process_queue( the_region ); /* unlocks allocator */ a0017068: e1a00005 mov r0, r5 <== NOT EXECUTED a001706c: eb001d51 bl a001e5b8 <_Region_Process_queue> <== NOT EXECUTED else _RTEMS_Unlock_allocator(); if (status == HEAP_RESIZE_SUCCESSFUL) return RTEMS_SUCCESSFUL; a0017070: e1a00006 mov r0, r6 <== NOT EXECUTED a0017074: ea000008 b a001709c <== NOT EXECUTED _Region_Debug_Walk( the_region, 8 ); if ( status == HEAP_RESIZE_SUCCESSFUL ) _Region_Process_queue( the_region ); /* unlocks allocator */ else _RTEMS_Unlock_allocator(); a0017078: e5940000 ldr r0, [r4] <== NOT EXECUTED a001707c: eb0007f6 bl a001905c <_API_Mutex_Unlock> <== NOT EXECUTED if (status == HEAP_RESIZE_SUCCESSFUL) return RTEMS_SUCCESSFUL; if (status == HEAP_RESIZE_UNSATISFIED) return RTEMS_UNSATISFIED; a0017080: e3560001 cmp r6, #1 <== NOT EXECUTED a0017084: 13a00009 movne r0, #9 <== NOT EXECUTED a0017088: 03a0000d moveq r0, #13 <== NOT EXECUTED a001708c: ea000002 b a001709c <== NOT EXECUTED default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); a0017090: e5940000 ldr r0, [r4] <== NOT EXECUTED a0017094: eb0007f0 bl a001905c <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; a0017098: e3a00004 mov r0, #4 <== NOT EXECUTED } a001709c: e28dd010 add sp, sp, #16 <== NOT EXECUTED a00170a0: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED =============================================================================== a00170ac : rtems_status_code rtems_region_return_segment( rtems_id id, void *segment ) { a00170ac: e92d4071 push {r0, r4, r5, r6, lr} <== NOT EXECUTED uint32_t size; #endif int status; register Region_Control *the_region; _RTEMS_Lock_allocator(); a00170b0: e59f3074 ldr r3, [pc, #116] ; a001712c <== NOT EXECUTED rtems_status_code rtems_region_return_segment( rtems_id id, void *segment ) { a00170b4: e1a05000 mov r5, r0 <== NOT EXECUTED a00170b8: e1a04001 mov r4, r1 <== NOT EXECUTED uint32_t size; #endif int status; register Region_Control *the_region; _RTEMS_Lock_allocator(); a00170bc: e5930000 ldr r0, [r3] <== NOT EXECUTED a00170c0: eb0007cc bl a0018ff8 <_API_Mutex_Lock> <== NOT EXECUTED a00170c4: e1a01005 mov r1, r5 <== NOT EXECUTED a00170c8: e59f0060 ldr r0, [pc, #96] ; a0017130 <== NOT EXECUTED a00170cc: e1a0200d mov r2, sp <== NOT EXECUTED a00170d0: eb000ee4 bl a001ac68 <_Objects_Get_no_protection> <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { a00170d4: e59d6000 ldr r6, [sp] <== NOT EXECUTED a00170d8: e1a05000 mov r5, r0 <== NOT EXECUTED a00170dc: e3560000 cmp r6, #0 <== NOT EXECUTED break; #endif case OBJECTS_ERROR: default: return_status = RTEMS_INVALID_ID; a00170e0: 13a06004 movne r6, #4 <== NOT EXECUTED register Region_Control *the_region; _RTEMS_Lock_allocator(); the_region = _Region_Get( id, &location ); switch ( location ) { a00170e4: 1a00000b bne a0017118 <== NOT EXECUTED RTEMS_INLINE_ROUTINE bool _Region_Free_segment ( Region_Control *the_region, void *the_segment ) { return _Heap_Free( &the_region->Memory, the_segment ); a00170e8: e2800068 add r0, r0, #104 ; 0x68 <== NOT EXECUTED a00170ec: e1a01004 mov r1, r4 <== NOT EXECUTED a00170f0: eb000b8b bl a0019f24 <_Heap_Free> <== NOT EXECUTED #endif status = _Region_Free_segment( the_region, segment ); _Region_Debug_Walk( the_region, 4 ); if ( !status ) a00170f4: e3500000 cmp r0, #0 <== NOT EXECUTED return_status = RTEMS_INVALID_ADDRESS; a00170f8: 03a06009 moveq r6, #9 <== NOT EXECUTED #endif status = _Region_Free_segment( the_region, segment ); _Region_Debug_Walk( the_region, 4 ); if ( !status ) a00170fc: 0a000005 beq a0017118 <== NOT EXECUTED return_status = RTEMS_INVALID_ADDRESS; else { the_region->number_of_used_blocks -= 1; a0017100: e5953064 ldr r3, [r5, #100] ; 0x64 <== NOT EXECUTED _Region_Process_queue(the_region); /* unlocks allocator */ a0017104: e1a00005 mov r0, r5 <== NOT EXECUTED _Region_Debug_Walk( the_region, 4 ); if ( !status ) return_status = RTEMS_INVALID_ADDRESS; else { the_region->number_of_used_blocks -= 1; a0017108: e2433001 sub r3, r3, #1 <== NOT EXECUTED a001710c: e5853064 str r3, [r5, #100] ; 0x64 <== NOT EXECUTED _Region_Process_queue(the_region); /* unlocks allocator */ a0017110: eb001d28 bl a001e5b8 <_Region_Process_queue> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0017114: ea000002 b a0017124 <== NOT EXECUTED default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); a0017118: e59f300c ldr r3, [pc, #12] ; a001712c <== NOT EXECUTED a001711c: e5930000 ldr r0, [r3] <== NOT EXECUTED a0017120: eb0007cd bl a001905c <_API_Mutex_Unlock> <== NOT EXECUTED return return_status; } a0017124: e1a00006 mov r0, r6 <== NOT EXECUTED a0017128: e8bd8078 pop {r3, r4, r5, r6, pc} <== NOT EXECUTED =============================================================================== a0009168 : uint32_t count, rtems_attribute attribute_set, rtems_task_priority priority_ceiling, rtems_id *id ) { a0009168: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} register Semaphore_Control *the_semaphore; CORE_mutex_Attributes the_mutex_attr; CORE_semaphore_Attributes the_semaphore_attr; CORE_mutex_Status mutex_status; if ( !rtems_is_name_valid( name ) ) a000916c: e2507000 subs r7, r0, #0 uint32_t count, rtems_attribute attribute_set, rtems_task_priority priority_ceiling, rtems_id *id ) { a0009170: e24dd018 sub sp, sp, #24 a0009174: e1a04001 mov r4, r1 a0009178: e1a08002 mov r8, r2 a000917c: e1a09003 mov r9, r3 a0009180: 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; a0009184: 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 ) ) a0009188: 0a00005d beq a0009304 return RTEMS_INVALID_NAME; if ( !id ) a000918c: e3560000 cmp r6, #0 return RTEMS_INVALID_ADDRESS; a0009190: 03a00009 moveq r0, #9 CORE_mutex_Status mutex_status; if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; if ( !id ) a0009194: 0a00005a beq a0009304 return RTEMS_NOT_DEFINED; } else #endif if ( _Attributes_Is_inherit_priority( attribute_set ) || a0009198: e21230c0 ands r3, r2, #192 ; 0xc0 a000919c: 0a000006 beq a00091bc */ RTEMS_INLINE_ROUTINE bool _Attributes_Is_binary_semaphore( rtems_attribute attribute_set ) { return ((attribute_set & RTEMS_SEMAPHORE_CLASS) == RTEMS_BINARY_SEMAPHORE); a00091a0: e2022030 and r2, r2, #48 ; 0x30 _Attributes_Is_priority_ceiling( attribute_set ) ) { if ( ! (_Attributes_Is_binary_semaphore( attribute_set ) && a00091a4: e3520010 cmp r2, #16 a00091a8: 1a000054 bne a0009300 a00091ac: e3180004 tst r8, #4 a00091b0: 0a000052 beq a0009300 _Attributes_Is_priority( attribute_set ) ) ) return RTEMS_NOT_DEFINED; } if ( _Attributes_Is_inherit_priority( attribute_set ) && a00091b4: e35300c0 cmp r3, #192 ; 0xc0 a00091b8: 0a000050 beq a0009300 _Attributes_Is_priority_ceiling( attribute_set ) ) return RTEMS_NOT_DEFINED; if ( !_Attributes_Is_counting_semaphore( attribute_set ) && ( count > 1 ) ) a00091bc: e218a030 ands sl, r8, #48 ; 0x30 a00091c0: 0a000002 beq a00091d0 a00091c4: e3540001 cmp r4, #1 return RTEMS_INVALID_NUMBER; a00091c8: 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 ) ) a00091cc: 8a00004c bhi a0009304 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; a00091d0: e59f3134 ldr r3, [pc, #308] ; a000930c a00091d4: e5932000 ldr r2, [r3] a00091d8: e2822001 add r2, r2, #1 a00091dc: e5832000 str r2, [r3] * This function allocates a semaphore control block from * the inactive chain of free semaphore control blocks. */ RTEMS_INLINE_ROUTINE Semaphore_Control *_Semaphore_Allocate( void ) { return (Semaphore_Control *) _Objects_Allocate( &_Semaphore_Information ); a00091e0: e59f0128 ldr r0, [pc, #296] ; a0009310 a00091e4: eb000510 bl a000a62c <_Objects_Allocate> _Thread_Disable_dispatch(); /* prevents deletion */ the_semaphore = _Semaphore_Allocate(); if ( !the_semaphore ) { a00091e8: e2505000 subs r5, r0, #0 a00091ec: 1a000002 bne a00091fc _Thread_Enable_dispatch(); a00091f0: eb00094a bl a000b720 <_Thread_Enable_dispatch> return RTEMS_TOO_MANY; a00091f4: e3a00005 mov r0, #5 a00091f8: ea000041 b a0009304 the_semaphore->attribute_set = attribute_set; /* * Initialize it as a counting semaphore. */ if ( _Attributes_Is_counting_semaphore( attribute_set ) ) { a00091fc: e35a0000 cmp sl, #0 _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } #endif the_semaphore->attribute_set = attribute_set; a0009200: e5858010 str r8, [r5, #16] a0009204: e2083004 and r3, r8, #4 /* * Initialize it as a counting semaphore. */ if ( _Attributes_Is_counting_semaphore( attribute_set ) ) { a0009208: 1a00000d bne a0009244 /* * This effectively disables limit checking. */ the_semaphore_attr.maximum_count = 0xFFFFFFFF; if ( _Attributes_Is_priority( attribute_set ) ) a000920c: e3530000 cmp r3, #0 the_semaphore_attr.discipline = CORE_SEMAPHORE_DISCIPLINES_PRIORITY; a0009210: 13a03001 movne r3, #1 */ if ( _Attributes_Is_counting_semaphore( attribute_set ) ) { /* * This effectively disables limit checking. */ the_semaphore_attr.maximum_count = 0xFFFFFFFF; a0009214: e3e02000 mvn r2, #0 a0009218: e58d2010 str r2, [sp, #16] if ( _Attributes_Is_priority( attribute_set ) ) the_semaphore_attr.discipline = CORE_SEMAPHORE_DISCIPLINES_PRIORITY; a000921c: 158d3014 strne r3, [sp, #20] * 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( a0009220: e2850014 add r0, r5, #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; a0009224: e3a03000 mov r3, #0 the_mutex_attr.priority_ceiling = PRIORITY_MINIMUM; _CORE_semaphore_Initialize( a0009228: e28d1010 add r1, sp, #16 a000922c: 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; a0009230: 058da014 streq sl, [sp, #20] /* * The following are just to make Purify happy. */ the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; a0009234: e58d3000 str r3, [sp] the_mutex_attr.priority_ceiling = PRIORITY_MINIMUM; a0009238: e58d300c str r3, [sp, #12] _CORE_semaphore_Initialize( a000923c: eb000385 bl a000a058 <_CORE_semaphore_Initialize> a0009240: ea000024 b a00092d8 } 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 ) ) a0009244: e3530000 cmp r3, #0 the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY; a0009248: 13a03001 movne r3, #1 else the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_FIFO; if ( _Attributes_Is_binary_semaphore( attribute_set ) ) { a000924c: e35a0010 cmp sl, #16 * style binary semaphore. This is the mutex style. */ if ( _Attributes_Is_priority( attribute_set ) ) the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY; else the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_FIFO; a0009250: e58d3008 str r3, [sp, #8] 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; a0009254: 13a03001 movne r3, #1 a0009258: 158d3000 strne r3, [sp] the_mutex_attr.only_owner_release = false; a000925c: 13a03000 movne r3, #0 if ( _Attributes_Is_priority( attribute_set ) ) the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY; else the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_FIFO; if ( _Attributes_Is_binary_semaphore( attribute_set ) ) { a0009260: 1a00000d bne a000929c the_mutex_attr.priority_ceiling = priority_ceiling; the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; a0009264: e3a03000 mov r3, #0 a0009268: e58d3000 str r3, [sp] the_mutex_attr.only_owner_release = false; a000926c: e5cd3004 strb r3, [sp, #4] if ( the_mutex_attr.discipline == CORE_MUTEX_DISCIPLINES_PRIORITY ) { a0009270: e59d3008 ldr r3, [sp, #8] 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; a0009274: e58d900c str r9, [sp, #12] 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 ) { a0009278: e3530001 cmp r3, #1 a000927c: 1a000007 bne a00092a0 if ( _Attributes_Is_inherit_priority( attribute_set ) ) { a0009280: e3180040 tst r8, #64 ; 0x40 the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; a0009284: 13a02002 movne r2, #2 the_mutex_attr.priority_ceiling = priority_ceiling; the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; the_mutex_attr.only_owner_release = false; if ( the_mutex_attr.discipline == CORE_MUTEX_DISCIPLINES_PRIORITY ) { if ( _Attributes_Is_inherit_priority( attribute_set ) ) { a0009288: 1a000002 bne a0009298 the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; the_mutex_attr.only_owner_release = true; } else if ( _Attributes_Is_priority_ceiling( attribute_set ) ) { a000928c: e3180080 tst r8, #128 ; 0x80 <== NOT EXECUTED a0009290: 0a000002 beq a00092a0 <== NOT EXECUTED the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING; a0009294: e3a02003 mov r2, #3 <== NOT EXECUTED a0009298: e58d2008 str r2, [sp, #8] the_mutex_attr.only_owner_release = true; } } } else /* must be simple binary semaphore */ { the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_BLOCKS; the_mutex_attr.only_owner_release = false; a000929c: e5cd3004 strb r3, [sp, #4] } mutex_status = _CORE_mutex_Initialize( a00092a0: e3540001 cmp r4, #1 a00092a4: 13a02000 movne r2, #0 a00092a8: 03a02001 moveq r2, #1 a00092ac: e2850014 add r0, r5, #20 a00092b0: e1a0100d mov r1, sp a00092b4: eb0002a5 bl a0009d50 <_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 ) { a00092b8: e3500005 cmp r0, #5 a00092bc: 1a000005 bne a00092d8 */ RTEMS_INLINE_ROUTINE void _Semaphore_Free ( Semaphore_Control *the_semaphore ) { _Objects_Free( &_Semaphore_Information, &the_semaphore->Object ); a00092c0: e59f0048 ldr r0, [pc, #72] ; a0009310 <== NOT EXECUTED a00092c4: e1a01005 mov r1, r5 <== NOT EXECUTED a00092c8: eb00059e bl a000a948 <_Objects_Free> <== NOT EXECUTED _Semaphore_Free( the_semaphore ); _Thread_Enable_dispatch(); a00092cc: eb000913 bl a000b720 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_INVALID_PRIORITY; a00092d0: e3a00013 mov r0, #19 <== NOT EXECUTED a00092d4: ea00000a b a0009304 <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; a00092d8: e59f2030 ldr r2, [pc, #48] ; a0009310 Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( a00092dc: e5953008 ldr r3, [r5, #8] a00092e0: e1d510b8 ldrh r1, [r5, #8] #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; a00092e4: e592201c ldr r2, [r2, #28] a00092e8: e7825101 str r5, [r2, r1, lsl #2] information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; a00092ec: e585700c str r7, [r5, #12] &_Semaphore_Information, &the_semaphore->Object, (Objects_Name) name ); *id = the_semaphore->Object.id; a00092f0: e5863000 str r3, [r6] the_semaphore->Object.id, name, 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); a00092f4: eb000909 bl a000b720 <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; a00092f8: e3a00000 mov r0, #0 a00092fc: ea000000 b a0009304 } if ( _Attributes_Is_inherit_priority( attribute_set ) && _Attributes_Is_priority_ceiling( attribute_set ) ) return RTEMS_NOT_DEFINED; a0009300: e3a0000b mov r0, #11 <== NOT EXECUTED 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } a0009304: e28dd018 add sp, sp, #24 a0009308: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} =============================================================================== a0009314 : #endif rtems_status_code rtems_semaphore_delete( rtems_id id ) { a0009314: e92d4011 push {r0, r4, lr} a0009318: e1a01000 mov r1, r0 Objects_Id id, Objects_Locations *location ) { return (Semaphore_Control *) _Objects_Get( &_Semaphore_Information, id, location ); a000931c: e1a0200d mov r2, sp a0009320: e59f0084 ldr r0, [pc, #132] ; a00093ac a0009324: eb0005df bl a000aaa8 <_Objects_Get> register Semaphore_Control *the_semaphore; Objects_Locations location; the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) { a0009328: e59d3000 ldr r3, [sp] a000932c: e1a04000 mov r4, r0 a0009330: e3530000 cmp r3, #0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a0009334: 13a00004 movne r0, #4 { register Semaphore_Control *the_semaphore; Objects_Locations location; the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) { a0009338: 1a00001a bne a00093a8 */ RTEMS_INLINE_ROUTINE bool _Attributes_Is_counting_semaphore( rtems_attribute attribute_set ) { return ((attribute_set & RTEMS_SEMAPHORE_CLASS) == RTEMS_COUNTING_SEMAPHORE); a000933c: e5941010 ldr r1, [r4, #16] case OBJECTS_LOCAL: if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) { a0009340: e2111030 ands r1, r1, #48 ; 0x30 a0009344: 0a00000c beq a000937c if ( _CORE_mutex_Is_locked( &the_semaphore->Core_control.mutex ) && a0009348: e5943064 ldr r3, [r4, #100] ; 0x64 a000934c: e3530000 cmp r3, #0 a0009350: 1a000004 bne a0009368 a0009354: e3510020 cmp r1, #32 <== NOT EXECUTED a0009358: 0a000002 beq a0009368 <== NOT EXECUTED !_Attributes_Is_simple_binary_semaphore( the_semaphore->attribute_set ) ) { _Thread_Enable_dispatch(); a000935c: eb0008ef bl a000b720 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_RESOURCE_IN_USE; a0009360: e3a0000c mov r0, #12 <== NOT EXECUTED a0009364: ea00000f b a00093a8 <== NOT EXECUTED } _CORE_mutex_Flush( a0009368: e2840014 add r0, r4, #20 a000936c: e3a01000 mov r1, #0 a0009370: e3a02003 mov r2, #3 a0009374: eb000274 bl a0009d4c <_CORE_mutex_Flush> a0009378: ea000002 b a0009388 &the_semaphore->Core_control.mutex, SEMAPHORE_MP_OBJECT_WAS_DELETED, CORE_MUTEX_WAS_DELETED ); } else { _CORE_semaphore_Flush( a000937c: e2840014 add r0, r4, #20 a0009380: e3a02002 mov r2, #2 a0009384: eb000332 bl a000a054 <_CORE_semaphore_Flush> SEMAPHORE_MP_OBJECT_WAS_DELETED, CORE_SEMAPHORE_WAS_DELETED ); } _Objects_Close( &_Semaphore_Information, &the_semaphore->Object ); a0009388: e59f001c ldr r0, [pc, #28] ; a00093ac a000938c: e1a01004 mov r1, r4 a0009390: eb0004c7 bl a000a6b4 <_Objects_Close> */ RTEMS_INLINE_ROUTINE void _Semaphore_Free ( Semaphore_Control *the_semaphore ) { _Objects_Free( &_Semaphore_Information, &the_semaphore->Object ); a0009394: e59f0010 ldr r0, [pc, #16] ; a00093ac a0009398: e1a01004 mov r1, r4 a000939c: eb000569 bl a000a948 <_Objects_Free> 0, /* Not used */ 0 /* Not used */ ); } #endif _Thread_Enable_dispatch(); a00093a0: eb0008de bl a000b720 <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; a00093a4: e3a00000 mov r0, #0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a00093a8: e8bd8018 pop {r3, r4, pc} =============================================================================== a0011af8 : #endif rtems_status_code rtems_semaphore_flush( rtems_id id ) { a0011af8: e92d4001 push {r0, lr} <== NOT EXECUTED a0011afc: e1a01000 mov r1, r0 <== NOT EXECUTED a0011b00: e1a0200d mov r2, sp <== NOT EXECUTED a0011b04: e59f0044 ldr r0, [pc, #68] ; a0011b50 <== NOT EXECUTED a0011b08: ebffe854 bl a000bc60 <_Objects_Get> <== NOT EXECUTED register Semaphore_Control *the_semaphore; Objects_Locations location; the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) { a0011b0c: e59d3000 ldr r3, [sp] <== NOT EXECUTED a0011b10: e3530000 cmp r3, #0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a0011b14: 13a00004 movne r0, #4 <== NOT EXECUTED { register Semaphore_Control *the_semaphore; Objects_Locations location; the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) { a0011b18: 1a00000b bne a0011b4c <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _Attributes_Is_counting_semaphore( rtems_attribute attribute_set ) { return ((attribute_set & RTEMS_SEMAPHORE_CLASS) == RTEMS_COUNTING_SEMAPHORE); a0011b1c: e5901010 ldr r1, [r0, #16] <== NOT EXECUTED a0011b20: e2800014 add r0, r0, #20 <== NOT EXECUTED case OBJECTS_LOCAL: if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) { a0011b24: e2111030 ands r1, r1, #48 ; 0x30 <== NOT EXECUTED a0011b28: 0a000003 beq a0011b3c <== NOT EXECUTED _CORE_mutex_Flush( a0011b2c: e1a01003 mov r1, r3 <== NOT EXECUTED a0011b30: e3a02001 mov r2, #1 <== NOT EXECUTED a0011b34: ebffe511 bl a000af80 <_CORE_mutex_Flush> <== NOT EXECUTED a0011b38: ea000001 b a0011b44 <== NOT EXECUTED &the_semaphore->Core_control.mutex, SEND_OBJECT_WAS_DELETED, CORE_MUTEX_STATUS_UNSATISFIED_NOWAIT ); } else { _CORE_semaphore_Flush( a0011b3c: e3a02001 mov r2, #1 <== NOT EXECUTED a0011b40: ebffe5d0 bl a000b288 <_CORE_semaphore_Flush> <== NOT EXECUTED &the_semaphore->Core_control.semaphore, SEND_OBJECT_WAS_DELETED, CORE_SEMAPHORE_STATUS_UNSATISFIED_NOWAIT ); } _Thread_Enable_dispatch(); a0011b44: ebffeb65 bl a000c8e0 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0011b48: e3a00000 mov r0, #0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a0011b4c: e8bd8008 pop {r3, pc} <== NOT EXECUTED =============================================================================== a00173d8 : rtems_status_code rtems_semaphore_ident( rtems_name name, uint32_t node, rtems_id *id ) { a00173d8: e1a0c001 mov ip, r1 <== NOT EXECUTED a00173dc: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED a00173e0: e1a0e000 mov lr, r0 <== NOT EXECUTED a00173e4: e1a03002 mov r3, r2 <== NOT EXECUTED Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( &_Semaphore_Information, name, node, id ); a00173e8: e1a0100e mov r1, lr <== NOT EXECUTED a00173ec: e1a0200c mov r2, ip <== NOT EXECUTED a00173f0: e59f000c ldr r0, [pc, #12] ; a0017404 <== NOT EXECUTED a00173f4: eb000e7a bl a001ade4 <_Objects_Name_to_id_u32> <== NOT EXECUTED return _Status_Object_name_errors_to_status[ status ]; } a00173f8: e59f3008 ldr r3, [pc, #8] ; a0017408 <== NOT EXECUTED a00173fc: e7930100 ldr r0, [r3, r0, lsl #2] <== NOT EXECUTED a0017400: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED =============================================================================== a00093b0 : rtems_status_code rtems_semaphore_obtain( rtems_id id, rtems_option option_set, rtems_interval timeout ) { a00093b0: e92d40f7 push {r0, r1, r2, r4, r5, r6, r7, lr} a00093b4: e1a04000 mov r4, r0 Objects_Locations *location, ISR_Level *level ) { return (Semaphore_Control *) _Objects_Get_isr_disable( &_Semaphore_Information, id, location, level ); a00093b8: e28d3004 add r3, sp, #4 a00093bc: e1a06001 mov r6, r1 a00093c0: e1a05002 mov r5, r2 a00093c4: e59f00ec ldr r0, [pc, #236] ; a00094b8 a00093c8: e1a01004 mov r1, r4 a00093cc: e28d2008 add r2, sp, #8 a00093d0: eb000599 bl a000aa3c <_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 ) { a00093d4: e59d3008 ldr r3, [sp, #8] a00093d8: e3530000 cmp r3, #0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a00093dc: 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 ) { a00093e0: 1a000033 bne a00094b4 a00093e4: e5903010 ldr r3, [r0, #16] a00093e8: e59f70cc ldr r7, [pc, #204] ; a00094bc case OBJECTS_LOCAL: if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) { a00093ec: e2132030 ands r2, r3, #48 ; 0x30 a00093f0: 0a00000b beq a0009424 _CORE_mutex_Seize( a00093f4: 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; a00093f8: e2062001 and r2, r6, #1 a00093fc: e2800014 add r0, r0, #20 a0009400: e58d3000 str r3, [sp] a0009404: e1a01004 mov r1, r4 a0009408: e1a03005 mov r3, r5 a000940c: e2222001 eor r2, r2, #1 a0009410: eb000296 bl a0009e70 <_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 ); a0009414: e5973004 ldr r3, [r7, #4] id, ((_Options_Is_no_wait( option_set )) ? false : true), timeout, level ); return _Semaphore_Translate_core_mutex_return_code( a0009418: e5930034 ldr r0, [r3, #52] ; 0x34 a000941c: eb000047 bl a0009540 <_Semaphore_Translate_core_mutex_return_code> a0009420: ea000023 b a00094b4 { Thread_Control *executing; /* disabled when you get here */ executing = _Thread_Executing; a0009424: e5973004 ldr r3, [r7, #4] <== NOT EXECUTED executing->Wait.return_code = CORE_SEMAPHORE_STATUS_SUCCESSFUL; a0009428: e5832034 str r2, [r3, #52] ; 0x34 <== NOT EXECUTED if ( the_semaphore->count != 0 ) { a000942c: e590205c ldr r2, [r0, #92] ; 0x5c <== NOT EXECUTED a0009430: e3520000 cmp r2, #0 <== NOT EXECUTED a0009434: 0a000004 beq a000944c <== NOT EXECUTED the_semaphore->count -= 1; a0009438: e2422001 sub r2, r2, #1 <== NOT EXECUTED a000943c: e580205c str r2, [r0, #92] ; 0x5c <== NOT EXECUTED a0009440: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED a0009444: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED a0009448: ea000015 b a00094a4 <== NOT EXECUTED _ISR_Enable( *level_p ); return; } if ( !wait ) { a000944c: e3160001 tst r6, #1 <== NOT EXECUTED a0009450: 0a000004 beq a0009468 <== NOT EXECUTED a0009454: e59d2004 ldr r2, [sp, #4] <== NOT EXECUTED a0009458: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED _ISR_Enable( *level_p ); executing->Wait.return_code = CORE_SEMAPHORE_STATUS_UNSATISFIED_NOWAIT; a000945c: e3a02001 mov r2, #1 <== NOT EXECUTED a0009460: e5832034 str r2, [r3, #52] ; 0x34 <== NOT EXECUTED a0009464: ea00000e b a00094a4 <== NOT EXECUTED a0009468: e59f2050 ldr r2, [pc, #80] ; a00094c0 <== NOT EXECUTED a000946c: e5921000 ldr r1, [r2] <== NOT EXECUTED a0009470: e2811001 add r1, r1, #1 <== NOT EXECUTED a0009474: e5821000 str r1, [r2] <== 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; a0009478: e3a02001 mov r2, #1 <== NOT EXECUTED a000947c: e5802044 str r2, [r0, #68] ; 0x44 <== NOT EXECUTED return; } _Thread_Disable_dispatch(); _Thread_queue_Enter_critical_section( &the_semaphore->Wait_queue ); executing->Wait.queue = &the_semaphore->Wait_queue; a0009480: e2800014 add r0, r0, #20 <== NOT EXECUTED a0009484: e5830044 str r0, [r3, #68] ; 0x44 <== NOT EXECUTED executing->Wait.id = id; a0009488: e5834020 str r4, [r3, #32] <== NOT EXECUTED a000948c: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED a0009490: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED _ISR_Enable( *level_p ); _Thread_queue_Enqueue( &the_semaphore->Wait_queue, timeout ); a0009494: e59f2028 ldr r2, [pc, #40] ; a00094c4 <== NOT EXECUTED a0009498: e1a01005 mov r1, r5 <== NOT EXECUTED a000949c: eb0009b9 bl a000bb88 <_Thread_queue_Enqueue_with_handler> <== NOT EXECUTED _Thread_Enable_dispatch(); a00094a0: eb00089e bl a000b720 <_Thread_Enable_dispatch> <== NOT EXECUTED ((_Options_Is_no_wait( option_set )) ? false : true), timeout, &level ); return _Semaphore_Translate_core_semaphore_return_code( _Thread_Executing->Wait.return_code ); a00094a4: e59f3010 ldr r3, [pc, #16] ; a00094bc <== NOT EXECUTED a00094a8: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED id, ((_Options_Is_no_wait( option_set )) ? false : true), timeout, &level ); return _Semaphore_Translate_core_semaphore_return_code( a00094ac: e5930034 ldr r0, [r3, #52] ; 0x34 <== NOT EXECUTED a00094b0: eb000026 bl a0009550 <_Semaphore_Translate_core_semaphore_return_code><== NOT EXECUTED break; } return RTEMS_INVALID_ID; } a00094b4: e8bd80fe pop {r1, r2, r3, r4, r5, r6, r7, pc} =============================================================================== a00094c8 : #endif rtems_status_code rtems_semaphore_release( rtems_id id ) { a00094c8: e92d4011 push {r0, r4, lr} a00094cc: e1a04000 mov r4, r0 Objects_Id id, Objects_Locations *location ) { return (Semaphore_Control *) _Objects_Get( &_Semaphore_Information, id, location ); a00094d0: e1a01004 mov r1, r4 a00094d4: e59f0060 ldr r0, [pc, #96] ; a000953c a00094d8: e1a0200d mov r2, sp a00094dc: eb000571 bl a000aaa8 <_Objects_Get> Objects_Locations location; CORE_mutex_Status mutex_status; CORE_semaphore_Status semaphore_status; the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) { a00094e0: e59d3000 ldr r3, [sp] a00094e4: e3530000 cmp r3, #0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a00094e8: 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 ) { a00094ec: 1a000011 bne a0009538 a00094f0: e5902010 ldr r2, [r0, #16] a00094f4: e2800014 add r0, r0, #20 case OBJECTS_LOCAL: if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) { a00094f8: e2122030 ands r2, r2, #48 ; 0x30 a00094fc: 0a000007 beq a0009520 mutex_status = _CORE_mutex_Surrender( a0009500: e1a01004 mov r1, r4 a0009504: e1a02003 mov r2, r3 a0009508: eb00028b bl a0009f3c <_CORE_mutex_Surrender> a000950c: e1a04000 mov r4, r0 &the_semaphore->Core_control.mutex, id, MUTEX_MP_SUPPORT ); _Thread_Enable_dispatch(); a0009510: eb000882 bl a000b720 <_Thread_Enable_dispatch> return _Semaphore_Translate_core_mutex_return_code( mutex_status ); a0009514: e1a00004 mov r0, r4 a0009518: eb000008 bl a0009540 <_Semaphore_Translate_core_mutex_return_code> a000951c: ea000005 b a0009538 } else { semaphore_status = _CORE_semaphore_Surrender( a0009520: e1a01004 mov r1, r4 <== NOT EXECUTED a0009524: eb0002d8 bl a000a08c <_CORE_semaphore_Surrender> <== NOT EXECUTED a0009528: e1a04000 mov r4, r0 <== NOT EXECUTED &the_semaphore->Core_control.semaphore, id, MUTEX_MP_SUPPORT ); _Thread_Enable_dispatch(); a000952c: eb00087b bl a000b720 <_Thread_Enable_dispatch> <== NOT EXECUTED return a0009530: e1a00004 mov r0, r4 <== NOT EXECUTED a0009534: eb000005 bl a0009550 <_Semaphore_Translate_core_semaphore_return_code><== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a0009538: e8bd8018 pop {r3, r4, pc} =============================================================================== a001534c : void rtems_shutdown_executive( uint32_t result ) { if ( _System_state_Is_up( _System_state_Get() ) ) { a001534c: e59f302c ldr r3, [pc, #44] ; a0015380 */ void rtems_shutdown_executive( uint32_t result ) { a0015350: e52de004 push {lr} ; (str lr, [sp, #-4]!) if ( _System_state_Is_up( _System_state_Get() ) ) { a0015354: e5932000 ldr r2, [r3] a0015358: e3520003 cmp r2, #3 a001535c: 1a000003 bne a0015370 a0015360: e2822001 add r2, r2, #1 a0015364: e5832000 str r2, [r3] * 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 ); a0015368: e59f0014 ldr r0, [pc, #20] ; a0015384 a001536c: ebffdde3 bl a000cb00 <_CPU_Context_restore> _System_state_Set( SYSTEM_STATE_SHUTDOWN ); _Thread_Stop_multitasking(); } _Internal_error_Occurred( a0015370: e3a00000 mov r0, #0 <== NOT EXECUTED a0015374: e3a01001 mov r1, #1 <== NOT EXECUTED a0015378: e3a02014 mov r2, #20 <== NOT EXECUTED a001537c: ebffd493 bl a000a5d0 <_Internal_error_Occurred> <== NOT EXECUTED =============================================================================== a000a734 : a000a734: e59f2048 ldr r2, [pc, #72] ; a000a784 <== NOT EXECUTED Thread_Control *executing; RTEMS_API_Control *api; ASR_Information *asr; /* XXX normalize mode */ executing = _Thread_Executing; a000a738: e59f3048 ldr r3, [pc, #72] ; a000a788 <== NOT EXECUTED rtems_status_code rtems_signal_catch( rtems_asr_entry asr_handler, rtems_mode mode_set ) { a000a73c: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED a000a740: e592c000 ldr ip, [r2] <== 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 ]; a000a744: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED a000a748: e28cc001 add ip, ip, #1 <== NOT EXECUTED a000a74c: e59330f4 ldr r3, [r3, #244] ; 0xf4 <== NOT EXECUTED a000a750: e582c000 str ip, [r2] <== NOT EXECUTED asr = &api->Signal; _Thread_Disable_dispatch(); /* cannot reschedule while */ /* the thread is inconsistent */ if ( !_ASR_Is_null_handler( asr_handler ) ) { a000a754: e3500000 cmp r0, #0 <== NOT EXECUTED asr->mode_set = mode_set; asr->handler = asr_handler; a000a758: 1583000c strne r0, [r3, #12] <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _ASR_Initialize ( ASR_Information *information ) { information->is_enabled = false; a000a75c: 05c30008 strbeq r0, [r3, #8] <== NOT EXECUTED information->handler = NULL; a000a760: 0583000c streq r0, [r3, #12] <== NOT EXECUTED information->mode_set = RTEMS_DEFAULT_MODES; a000a764: 05830010 streq r0, [r3, #16] <== NOT EXECUTED information->signals_posted = 0; a000a768: 05830014 streq r0, [r3, #20] <== NOT EXECUTED information->signals_pending = 0; a000a76c: 05830018 streq r0, [r3, #24] <== NOT EXECUTED information->nest_level = 0; a000a770: 0583001c streq r0, [r3, #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; a000a774: 15831010 strne r1, [r3, #16] <== NOT EXECUTED asr->handler = asr_handler; } else _ASR_Initialize( asr ); _Thread_Enable_dispatch(); a000a778: eb000924 bl a000cc10 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; } a000a77c: e3a00000 mov r0, #0 <== NOT EXECUTED a000a780: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED =============================================================================== a00175c0 : rtems_status_code rtems_signal_send( rtems_id id, rtems_signal_set signal_set ) { a00175c0: e92d4011 push {r0, r4, lr} <== NOT EXECUTED register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; ASR_Information *asr; if ( !signal_set ) a00175c4: e2514000 subs r4, r1, #0 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; a00175c8: 03a0000a moveq r0, #10 <== NOT EXECUTED register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; ASR_Information *asr; if ( !signal_set ) a00175cc: 0a000028 beq a0017674 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; the_thread = _Thread_Get( id, &location ); a00175d0: e1a0100d mov r1, sp <== NOT EXECUTED a00175d4: eb0010da bl a001b944 <_Thread_Get> <== NOT EXECUTED switch ( location ) { a00175d8: e59d3000 ldr r3, [sp] <== NOT EXECUTED a00175dc: e3530000 cmp r3, #0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a00175e0: 13a00004 movne r0, #4 <== NOT EXECUTED if ( !signal_set ) return RTEMS_INVALID_NUMBER; the_thread = _Thread_Get( id, &location ); switch ( location ) { a00175e4: 1a000022 bne a0017674 <== NOT EXECUTED case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; a00175e8: e59030f4 ldr r3, [r0, #244] ; 0xf4 <== NOT EXECUTED asr = &api->Signal; if ( ! _ASR_Is_null_handler( asr->handler ) ) { a00175ec: e593200c ldr r2, [r3, #12] <== NOT EXECUTED a00175f0: e3520000 cmp r2, #0 <== NOT EXECUTED a00175f4: 0a00001c beq a001766c <== NOT EXECUTED if ( asr->is_enabled ) { a00175f8: e5d32008 ldrb r2, [r3, #8] <== NOT EXECUTED a00175fc: e3520000 cmp r2, #0 <== NOT EXECUTED a0017600: 0a00000f beq a0017644 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a0017604: e10f2000 mrs r2, CPSR <== NOT EXECUTED a0017608: e3821080 orr r1, r2, #128 ; 0x80 <== NOT EXECUTED a001760c: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED ) { ISR_Level _level; _ISR_Disable( _level ); *signal_set |= signals; a0017610: e5931014 ldr r1, [r3, #20] <== NOT EXECUTED a0017614: e1814004 orr r4, r1, r4 <== NOT EXECUTED a0017618: e5834014 str r4, [r3, #20] <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a001761c: 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 ) ) a0017620: e59f3050 ldr r3, [pc, #80] ; a0017678 <== NOT EXECUTED a0017624: e5932000 ldr r2, [r3] <== NOT EXECUTED a0017628: e3520000 cmp r2, #0 <== NOT EXECUTED a001762c: 0a00000b beq a0017660 <== NOT EXECUTED a0017630: e5932004 ldr r2, [r3, #4] <== NOT EXECUTED a0017634: e1500002 cmp r0, r2 <== NOT EXECUTED _Thread_Dispatch_necessary = true; a0017638: 03a02001 moveq r2, #1 <== NOT EXECUTED a001763c: 05c32010 strbeq r2, [r3, #16] <== NOT EXECUTED a0017640: ea000006 b a0017660 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a0017644: e10f2000 mrs r2, CPSR <== NOT EXECUTED a0017648: e3821080 orr r1, r2, #128 ; 0x80 <== NOT EXECUTED a001764c: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED a0017650: e5931018 ldr r1, [r3, #24] <== NOT EXECUTED a0017654: e1814004 orr r4, r1, r4 <== NOT EXECUTED a0017658: e5834018 str r4, [r3, #24] <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a001765c: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED } else { _ASR_Post_signals( signal_set, &asr->signals_pending ); } _Thread_Enable_dispatch(); a0017660: eb0010ae bl a001b920 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0017664: e3a00000 mov r0, #0 <== NOT EXECUTED a0017668: ea000001 b a0017674 <== NOT EXECUTED } _Thread_Enable_dispatch(); a001766c: eb0010ab bl a001b920 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_NOT_DEFINED; a0017670: e3a0000b mov r0, #11 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a0017674: e8bd8018 pop {r3, r4, pc} <== NOT EXECUTED =============================================================================== a0009564 : size_t stack_size, rtems_mode initial_modes, rtems_attribute attribute_set, rtems_id *id ) { a0009564: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} a0009568: e24dd01c sub sp, sp, #28 a000956c: e59db044 ldr fp, [sp, #68] ; 0x44 a0009570: e1a08000 mov r8, r0 a0009574: e1a0a001 mov sl, r1 Priority_Control core_priority; RTEMS_API_Control *api; ASR_Information *asr; if ( !id ) a0009578: e35b0000 cmp fp, #0 size_t stack_size, rtems_mode initial_modes, rtems_attribute attribute_set, rtems_id *id ) { a000957c: e1a09002 mov r9, r2 a0009580: e1a07003 mov r7, r3 RTEMS_API_Control *api; ASR_Information *asr; if ( !id ) return RTEMS_INVALID_ADDRESS; a0009584: 03a00009 moveq r0, #9 Priority_Control core_priority; RTEMS_API_Control *api; ASR_Information *asr; if ( !id ) a0009588: 0a000042 beq a0009698 return RTEMS_INVALID_ADDRESS; if ( !rtems_is_name_valid( name ) ) a000958c: e3580000 cmp r8, #0 return RTEMS_INVALID_NAME; a0009590: 03a00003 moveq r0, #3 if ( !id ) return RTEMS_INVALID_ADDRESS; if ( !rtems_is_name_valid( name ) ) a0009594: 0a00003f beq a0009698 /* * Validate the RTEMS API priority and convert it to the core priority range. */ if ( !_Attributes_Is_system_task( the_attribute_set ) ) { a0009598: e59d3040 ldr r3, [sp, #64] ; 0x40 a000959c: e3130902 tst r3, #32768 ; 0x8000 a00095a0: 1a00000a bne a00095d0 */ RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid ( rtems_task_priority the_priority ) { return ( ( the_priority >= RTEMS_MINIMUM_PRIORITY ) && a00095a4: e3510000 cmp r1, #0 a00095a8: 01a03001 moveq r3, r1 a00095ac: 0a000004 beq a00095c4 ( the_priority <= RTEMS_MAXIMUM_PRIORITY ) ); a00095b0: e59f30e8 ldr r3, [pc, #232] ; a00096a0 a00095b4: e5d33000 ldrb r3, [r3] */ RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid ( rtems_task_priority the_priority ) { return ( ( the_priority >= RTEMS_MINIMUM_PRIORITY ) && a00095b8: e1510003 cmp r1, r3 a00095bc: 83a03000 movhi r3, #0 a00095c0: 93a03001 movls r3, #1 if ( !_RTEMS_tasks_Priority_is_valid( initial_priority ) ) a00095c4: e31300ff tst r3, #255 ; 0xff return RTEMS_INVALID_PRIORITY; a00095c8: 03a00013 moveq r0, #19 /* * 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 ) ) a00095cc: 0a000031 beq a0009698 */ /* * Lock the allocator mutex for protection */ _RTEMS_Lock_allocator(); a00095d0: e59f60cc ldr r6, [pc, #204] ; a00096a4 a00095d4: e5960000 ldr r0, [r6] a00095d8: eb000195 bl a0009c34 <_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 ); a00095dc: e59f00c4 ldr r0, [pc, #196] ; a00096a8 a00095e0: eb000411 bl a000a62c <_Objects_Allocate> * the event of an error. */ the_thread = _RTEMS_tasks_Allocate(); if ( !the_thread ) { a00095e4: e2504000 subs r4, r0, #0 a00095e8: 1a000003 bne a00095fc _RTEMS_Unlock_allocator(); a00095ec: e5960000 ldr r0, [r6] <== NOT EXECUTED a00095f0: eb0001a8 bl a0009c98 <_API_Mutex_Unlock> <== NOT EXECUTED return RTEMS_TOO_MANY; a00095f4: e3a00005 mov r0, #5 <== NOT EXECUTED a00095f8: ea000026 b a0009698 <== NOT EXECUTED /* * Initialize the core thread for this task. */ status = _Thread_Initialize( a00095fc: e3170c01 tst r7, #256 ; 0x100 a0009600: 13a03000 movne r3, #0 a0009604: 03a03001 moveq r3, #1 a0009608: e3170c02 tst r7, #512 ; 0x200 a000960c: e58d3008 str r3, [sp, #8] a0009610: 03a03000 moveq r3, #0 a0009614: 13a03001 movne r3, #1 */ RTEMS_INLINE_ROUTINE bool _Attributes_Is_floating_point( rtems_attribute attribute_set ) { return ( attribute_set & RTEMS_FLOATING_POINT ) ? true : false; a0009618: e3a05000 mov r5, #0 a000961c: e58d300c str r3, [sp, #12] */ RTEMS_INLINE_ROUTINE ISR_Level _Modes_Get_interrupt_level ( Modes_Control mode_set ) { return ( mode_set & RTEMS_INTERRUPT_MASK ); a0009620: e2073080 and r3, r7, #128 ; 0x80 a0009624: e58d3014 str r3, [sp, #20] a0009628: e59f0078 ldr r0, [pc, #120] ; a00096a8 a000962c: e1a01004 mov r1, r4 a0009630: e1a02005 mov r2, r5 a0009634: e1a03009 mov r3, r9 a0009638: e88d0420 stm sp, {r5, sl} a000963c: e58d5010 str r5, [sp, #16] a0009640: e58d8018 str r8, [sp, #24] a0009644: eb000863 bl a000b7d8 <_Thread_Initialize> NULL, /* no budget algorithm callout */ _Modes_Get_interrupt_level(initial_modes), (Objects_Name) name ); if ( !status ) { a0009648: e1500005 cmp r0, r5 a000964c: 1a000007 bne a0009670 */ RTEMS_INLINE_ROUTINE void _RTEMS_tasks_Free ( Thread_Control *the_task ) { _Objects_Free( a0009650: e5940008 ldr r0, [r4, #8] <== NOT EXECUTED a0009654: eb0004d9 bl a000a9c0 <_Objects_Get_information_id> <== NOT EXECUTED a0009658: e1a01004 mov r1, r4 <== NOT EXECUTED a000965c: eb0004b9 bl a000a948 <_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(); a0009660: e5960000 ldr r0, [r6] <== NOT EXECUTED a0009664: eb00018b bl a0009c98 <_API_Mutex_Unlock> <== NOT EXECUTED return RTEMS_UNSATISFIED; a0009668: e3a0000d mov r0, #13 <== NOT EXECUTED a000966c: ea000009 b a0009698 <== NOT EXECUTED } api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; asr = &api->Signal; a0009670: e59430f4 ldr r3, [r4, #244] ; 0xf4 * id - thread id * RTEMS_SUCCESSFUL - if successful * error code - if unsuccessful */ rtems_status_code rtems_task_create( a0009674: e3170b01 tst r7, #1024 ; 0x400 a0009678: 13a02000 movne r2, #0 a000967c: 03a02001 moveq r2, #1 a0009680: e5c32008 strb r2, [r3, #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; a0009684: e5943008 ldr r3, [r4, #8] ); } #endif _RTEMS_Unlock_allocator(); a0009688: e5960000 ldr r0, [r6] 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; a000968c: e58b3000 str r3, [fp] ); } #endif _RTEMS_Unlock_allocator(); a0009690: eb000180 bl a0009c98 <_API_Mutex_Unlock> return RTEMS_SUCCESSFUL; a0009694: e1a00005 mov r0, r5 } a0009698: e28dd01c add sp, sp, #28 a000969c: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} =============================================================================== a00096ac : */ rtems_status_code rtems_task_delete( rtems_id id ) { a00096ac: e92d4071 push {r0, r4, r5, r6, lr} <== NOT EXECUTED register Thread_Control *the_thread; Objects_Locations location; Objects_Information *the_information; _RTEMS_Lock_allocator(); a00096b0: e59f5068 ldr r5, [pc, #104] ; a0009720 <== NOT EXECUTED */ rtems_status_code rtems_task_delete( rtems_id id ) { a00096b4: e1a04000 mov r4, r0 <== NOT EXECUTED register Thread_Control *the_thread; Objects_Locations location; Objects_Information *the_information; _RTEMS_Lock_allocator(); a00096b8: e5950000 ldr r0, [r5] <== NOT EXECUTED a00096bc: eb00015c bl a0009c34 <_API_Mutex_Lock> <== NOT EXECUTED the_thread = _Thread_Get( id, &location ); a00096c0: e1a00004 mov r0, r4 <== NOT EXECUTED a00096c4: e1a0100d mov r1, sp <== NOT EXECUTED a00096c8: eb00081d bl a000b744 <_Thread_Get> <== NOT EXECUTED switch ( location ) { a00096cc: e59d6000 ldr r6, [sp] <== NOT EXECUTED Objects_Locations location; Objects_Information *the_information; _RTEMS_Lock_allocator(); the_thread = _Thread_Get( id, &location ); a00096d0: e1a04000 mov r4, r0 <== NOT EXECUTED switch ( location ) { a00096d4: e3560000 cmp r6, #0 <== NOT EXECUTED a00096d8: 1a00000c bne a0009710 <== NOT EXECUTED case OBJECTS_LOCAL: the_information = _Objects_Get_information_id( the_thread->Object.id ); a00096dc: e5900008 ldr r0, [r0, #8] <== NOT EXECUTED a00096e0: eb0004b6 bl a000a9c0 <_Objects_Get_information_id> <== NOT EXECUTED 0 /* Not used */ ); } #endif _Thread_Close( the_information, the_thread ); a00096e4: e1a01004 mov r1, r4 <== NOT EXECUTED a00096e8: eb000756 bl a000b448 <_Thread_Close> <== NOT EXECUTED a00096ec: e5940008 ldr r0, [r4, #8] <== NOT EXECUTED a00096f0: eb0004b2 bl a000a9c0 <_Objects_Get_information_id> <== NOT EXECUTED a00096f4: e1a01004 mov r1, r4 <== NOT EXECUTED a00096f8: eb000492 bl a000a948 <_Objects_Free> <== NOT EXECUTED _RTEMS_tasks_Free( the_thread ); _RTEMS_Unlock_allocator(); a00096fc: e5950000 ldr r0, [r5] <== NOT EXECUTED a0009700: eb000164 bl a0009c98 <_API_Mutex_Unlock> <== NOT EXECUTED _Thread_Enable_dispatch(); a0009704: eb000805 bl a000b720 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0009708: e1a00006 mov r0, r6 <== NOT EXECUTED a000970c: ea000002 b a000971c <== NOT EXECUTED case OBJECTS_ERROR: break; } _RTEMS_Unlock_allocator(); a0009710: e5950000 ldr r0, [r5] <== NOT EXECUTED a0009714: eb00015f bl a0009c98 <_API_Mutex_Unlock> <== NOT EXECUTED return RTEMS_INVALID_ID; a0009718: e3a00004 mov r0, #4 <== NOT EXECUTED } a000971c: e8bd8078 pop {r3, r4, r5, r6, pc} <== NOT EXECUTED =============================================================================== a000b698 : rtems_status_code rtems_task_get_note( rtems_id id, uint32_t notepad, uint32_t *note ) { a000b698: e92d4071 push {r0, r4, r5, r6, lr} <== NOT EXECUTED a000b69c: e1a05002 mov r5, r2 <== NOT EXECUTED register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; if ( !rtems_configuration_get_notepads_enabled() ) a000b6a0: e59f209c ldr r2, [pc, #156] ; a000b744 <== NOT EXECUTED rtems_status_code rtems_task_get_note( rtems_id id, uint32_t notepad, uint32_t *note ) { a000b6a4: e1a03000 mov r3, r0 <== NOT EXECUTED a000b6a8: e1a04001 mov r4, r1 <== NOT EXECUTED register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; if ( !rtems_configuration_get_notepads_enabled() ) a000b6ac: e5d22004 ldrb r2, [r2, #4] <== NOT EXECUTED a000b6b0: e3520000 cmp r2, #0 <== NOT EXECUTED return RTEMS_NOT_CONFIGURED; a000b6b4: 03a00016 moveq r0, #22 <== NOT EXECUTED { register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; if ( !rtems_configuration_get_notepads_enabled() ) a000b6b8: 0a000020 beq a000b740 <== NOT EXECUTED return RTEMS_NOT_CONFIGURED; if ( !note ) a000b6bc: e3550000 cmp r5, #0 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; a000b6c0: 03a00009 moveq r0, #9 <== NOT EXECUTED RTEMS_API_Control *api; if ( !rtems_configuration_get_notepads_enabled() ) return RTEMS_NOT_CONFIGURED; if ( !note ) a000b6c4: 0a00001d beq a000b740 <== 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 ) a000b6c8: e351000f cmp r1, #15 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; a000b6cc: 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 ) a000b6d0: 8a00001a bhi a000b740 <== NOT EXECUTED /* * Optimize the most likely case to avoid the Thread_Dispatch. */ if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) || a000b6d4: e3530000 cmp r3, #0 <== NOT EXECUTED a000b6d8: 0a000004 beq a000b6f0 <== NOT EXECUTED _Objects_Are_ids_equal( id, _Thread_Executing->Object.id ) ) { a000b6dc: e59f2064 ldr r2, [pc, #100] ; a000b748 <== NOT EXECUTED a000b6e0: e5922004 ldr r2, [r2, #4] <== NOT EXECUTED /* * Optimize the most likely case to avoid the Thread_Dispatch. */ if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) || a000b6e4: e5922008 ldr r2, [r2, #8] <== NOT EXECUTED a000b6e8: e1530002 cmp r3, r2 <== NOT EXECUTED a000b6ec: 1a000007 bne a000b710 <== NOT EXECUTED _Objects_Are_ids_equal( id, _Thread_Executing->Object.id ) ) { api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ]; a000b6f0: e59f3050 ldr r3, [pc, #80] ; a000b748 <== NOT EXECUTED *note = api->Notepads[ notepad ]; a000b6f4: e2844008 add r4, r4, #8 <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000b6f8: e3a00000 mov r0, #0 <== NOT EXECUTED * Optimize the most likely case to avoid the Thread_Dispatch. */ 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 ]; a000b6fc: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED *note = api->Notepads[ notepad ]; a000b700: e59330f4 ldr r3, [r3, #244] ; 0xf4 <== NOT EXECUTED a000b704: e7933104 ldr r3, [r3, r4, lsl #2] <== NOT EXECUTED a000b708: e5853000 str r3, [r5] <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000b70c: ea00000b b a000b740 <== NOT EXECUTED } the_thread = _Thread_Get( id, &location ); a000b710: e1a0100d mov r1, sp <== NOT EXECUTED a000b714: eb0008ce bl a000da54 <_Thread_Get> <== NOT EXECUTED switch ( location ) { a000b718: e59d6000 ldr r6, [sp] <== NOT EXECUTED a000b71c: e3560000 cmp r6, #0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a000b720: 13a00004 movne r0, #4 <== NOT EXECUTED *note = api->Notepads[ notepad ]; return RTEMS_SUCCESSFUL; } the_thread = _Thread_Get( id, &location ); switch ( location ) { a000b724: 1a000005 bne a000b740 <== NOT EXECUTED case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; *note = api->Notepads[ notepad ]; a000b728: e59030f4 ldr r3, [r0, #244] ; 0xf4 <== NOT EXECUTED a000b72c: e2844008 add r4, r4, #8 <== NOT EXECUTED a000b730: e7933104 ldr r3, [r3, r4, lsl #2] <== NOT EXECUTED a000b734: e5853000 str r3, [r5] <== NOT EXECUTED _Thread_Enable_dispatch(); a000b738: eb0008bc bl a000da30 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000b73c: e1a00006 mov r0, r6 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a000b740: e8bd8078 pop {r3, r4, r5, r6, pc} <== NOT EXECUTED =============================================================================== a0009724 : rtems_id *id ) { Objects_Name_or_id_lookup_errors status; if ( !id ) a0009724: e2523000 subs r3, r2, #0 <== NOT EXECUTED rtems_status_code rtems_task_ident( rtems_name name, uint32_t node, rtems_id *id ) { a0009728: e92d4010 push {r4, lr} <== NOT EXECUTED a000972c: e1a0c000 mov ip, r0 <== NOT EXECUTED a0009730: e1a04001 mov r4, r1 <== NOT EXECUTED Objects_Name_or_id_lookup_errors status; if ( !id ) a0009734: 0a00000d beq a0009770 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( name == OBJECTS_ID_OF_SELF ) { a0009738: e3500000 cmp r0, #0 <== NOT EXECUTED a000973c: 1a000004 bne a0009754 <== NOT EXECUTED *id = _Thread_Executing->Object.id; a0009740: e59f2030 ldr r2, [pc, #48] ; a0009778 <== NOT EXECUTED a0009744: e5922004 ldr r2, [r2, #4] <== NOT EXECUTED a0009748: e5922008 ldr r2, [r2, #8] <== NOT EXECUTED a000974c: e5832000 str r2, [r3] <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0009750: e8bd8010 pop {r4, pc} <== NOT EXECUTED } status = _Objects_Name_to_id_u32( &_RTEMS_tasks_Information, name, node, id ); a0009754: e59f0020 ldr r0, [pc, #32] ; a000977c <== NOT EXECUTED a0009758: e1a0100c mov r1, ip <== NOT EXECUTED a000975c: e1a02004 mov r2, r4 <== NOT EXECUTED a0009760: eb00051f bl a000abe4 <_Objects_Name_to_id_u32> <== NOT EXECUTED return _Status_Object_name_errors_to_status[ status ]; a0009764: e59f3014 ldr r3, [pc, #20] ; a0009780 <== NOT EXECUTED a0009768: e7930100 ldr r0, [r3, r0, lsl #2] <== NOT EXECUTED a000976c: e8bd8010 pop {r4, pc} <== NOT EXECUTED ) { Objects_Name_or_id_lookup_errors status; if ( !id ) return RTEMS_INVALID_ADDRESS; a0009770: 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 ]; } a0009774: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a00179d0 : */ rtems_status_code rtems_task_is_suspended( rtems_id id ) { a00179d0: e92d4011 push {r0, r4, lr} <== NOT EXECUTED register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); a00179d4: e1a0100d mov r1, sp <== NOT EXECUTED a00179d8: eb000fd9 bl a001b944 <_Thread_Get> <== NOT EXECUTED switch ( location ) { a00179dc: e59d3000 ldr r3, [sp] <== NOT EXECUTED a00179e0: e3530000 cmp r3, #0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a00179e4: 13a00004 movne r0, #4 <== NOT EXECUTED { register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); switch ( location ) { a00179e8: 1a000007 bne a0017a0c <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _States_Is_suspended ( States_Control the_states ) { return (the_states & STATES_SUSPENDED); a00179ec: e5904010 ldr r4, [r0, #16] <== NOT EXECUTED case OBJECTS_LOCAL: if ( !_States_Is_suspended( the_thread->current_state ) ) { a00179f0: e2144002 ands r4, r4, #2 <== NOT EXECUTED a00179f4: 1a000002 bne a0017a04 <== NOT EXECUTED _Thread_Enable_dispatch(); a00179f8: eb000fc8 bl a001b920 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a00179fc: e1a00004 mov r0, r4 <== NOT EXECUTED a0017a00: ea000001 b a0017a0c <== NOT EXECUTED } _Thread_Enable_dispatch(); a0017a04: eb000fc5 bl a001b920 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_ALREADY_SUSPENDED; a0017a08: e3a0000f mov r0, #15 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a0017a0c: e8bd8018 pop {r3, r4, pc} <== NOT EXECUTED =============================================================================== a000fd80 : rtems_status_code rtems_task_mode( rtems_mode mode_set, rtems_mode mask, rtems_mode *previous_mode_set ) { a000fd80: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} <== NOT EXECUTED ASR_Information *asr; bool is_asr_enabled = false; bool needs_asr_dispatching = false; rtems_mode old_mode; if ( !previous_mode_set ) a000fd84: e252a000 subs sl, r2, #0 <== NOT EXECUTED rtems_status_code rtems_task_mode( rtems_mode mode_set, rtems_mode mask, rtems_mode *previous_mode_set ) { a000fd88: e1a04000 mov r4, r0 <== NOT EXECUTED a000fd8c: e1a05001 mov r5, r1 <== NOT EXECUTED ASR_Information *asr; bool is_asr_enabled = false; bool needs_asr_dispatching = false; rtems_mode old_mode; if ( !previous_mode_set ) a000fd90: 0a00004f beq a000fed4 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; executing = _Thread_Executing; a000fd94: e59f3144 ldr r3, [pc, #324] ; a000fee0 <== NOT EXECUTED a000fd98: e5937004 ldr r7, [r3, #4] <== NOT EXECUTED api = executing->API_Extensions[ THREAD_API_RTEMS ]; a000fd9c: e59760f4 ldr r6, [r7, #244] ; 0xf4 <== NOT EXECUTED asr = &api->Signal; old_mode = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT; a000fda0: e5d78074 ldrb r8, [r7, #116] ; 0x74 <== NOT EXECUTED if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE ) a000fda4: 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; a000fda8: e5d69008 ldrb r9, [r6, #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; a000fdac: e3580000 cmp r8, #0 <== NOT EXECUTED a000fdb0: 03a08c01 moveq r8, #256 ; 0x100 <== NOT EXECUTED a000fdb4: 13a08000 movne r8, #0 <== NOT EXECUTED if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE ) a000fdb8: e3530000 cmp r3, #0 <== NOT EXECUTED old_mode |= RTEMS_NO_TIMESLICE; else old_mode |= RTEMS_TIMESLICE; a000fdbc: 13888c02 orrne r8, r8, #512 ; 0x200 <== NOT EXECUTED old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR; a000fdc0: e3590000 cmp r9, #0 <== NOT EXECUTED a000fdc4: 03a09b01 moveq r9, #1024 ; 0x400 <== NOT EXECUTED a000fdc8: 13a09000 movne r9, #0 <== NOT EXECUTED old_mode |= _ISR_Get_level(); a000fdcc: ebfff35c bl a000cb44 <_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; a000fdd0: e1899000 orr r9, r9, r0 <== NOT EXECUTED old_mode |= _ISR_Get_level(); a000fdd4: e1898008 orr r8, r9, r8 <== NOT EXECUTED *previous_mode_set = old_mode; /* * These are generic thread scheduling characteristics. */ if ( mask & RTEMS_PREEMPT_MASK ) a000fdd8: e3150c01 tst r5, #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; a000fddc: e58a8000 str r8, [sl] <== NOT EXECUTED /* * These are generic thread scheduling characteristics. */ if ( mask & RTEMS_PREEMPT_MASK ) a000fde0: 0a000003 beq a000fdf4 <== NOT EXECUTED executing->is_preemptible = _Modes_Is_preempt(mode_set) ? true : false; a000fde4: e3140c01 tst r4, #256 ; 0x100 <== NOT EXECUTED a000fde8: 13a03000 movne r3, #0 <== NOT EXECUTED a000fdec: 03a03001 moveq r3, #1 <== NOT EXECUTED a000fdf0: e5c73074 strb r3, [r7, #116] ; 0x74 <== NOT EXECUTED if ( mask & RTEMS_TIMESLICE_MASK ) { a000fdf4: e3150c02 tst r5, #512 ; 0x200 <== NOT EXECUTED a000fdf8: 0a000006 beq a000fe18 <== NOT EXECUTED if ( _Modes_Is_timeslice(mode_set) ) { a000fdfc: e2143c02 ands r3, r4, #512 ; 0x200 <== NOT EXECUTED executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE; a000fe00: 13a03001 movne r3, #1 <== NOT EXECUTED a000fe04: 1587307c strne r3, [r7, #124] ; 0x7c <== NOT EXECUTED executing->cpu_time_budget = _Thread_Ticks_per_timeslice; a000fe08: 159f30d4 ldrne r3, [pc, #212] ; a000fee4 <== NOT EXECUTED } else executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE; a000fe0c: 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; a000fe10: 15933000 ldrne r3, [r3] <== NOT EXECUTED a000fe14: 15873078 strne r3, [r7, #120] ; 0x78 <== NOT EXECUTED } /* * Set the new interrupt level */ if ( mask & RTEMS_INTERRUPT_MASK ) a000fe18: e3150080 tst r5, #128 ; 0x80 <== NOT EXECUTED a000fe1c: 0a000001 beq a000fe28 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Modes_Set_interrupt_level ( Modes_Control mode_set ) { _ISR_Set_level( _Modes_Get_interrupt_level( mode_set ) ); a000fe20: e2040080 and r0, r4, #128 ; 0x80 <== NOT EXECUTED a000fe24: ebfff341 bl a000cb30 <_CPU_ISR_Set_level> <== NOT EXECUTED * This is specific to the RTEMS API */ is_asr_enabled = false; needs_asr_dispatching = false; if ( mask & RTEMS_ASR_MASK ) { a000fe28: e2150b01 ands r0, r5, #1024 ; 0x400 <== NOT EXECUTED a000fe2c: 0a000013 beq a000fe80 <== NOT EXECUTED is_asr_enabled = _Modes_Is_asr_disabled( mode_set ) ? false : true; if ( is_asr_enabled != asr->is_enabled ) { a000fe30: e5d62008 ldrb r2, [r6, #8] <== NOT EXECUTED * Output: * *previous_mode_set - previous mode set * always return RTEMS_SUCCESSFUL; */ rtems_status_code rtems_task_mode( a000fe34: e3140b01 tst r4, #1024 ; 0x400 <== NOT EXECUTED a000fe38: 13a03000 movne r3, #0 <== NOT EXECUTED a000fe3c: 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 ) { a000fe40: e1520003 cmp r2, r3 <== NOT EXECUTED /* * This is specific to the RTEMS API */ is_asr_enabled = false; needs_asr_dispatching = false; a000fe44: 03a00000 moveq r0, #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 ) { a000fe48: 0a00000c beq a000fe80 <== NOT EXECUTED asr->is_enabled = is_asr_enabled; a000fe4c: e5c63008 strb r3, [r6, #8] <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a000fe50: e10f3000 mrs r3, CPSR <== NOT EXECUTED a000fe54: e3832080 orr r2, r3, #128 ; 0x80 <== NOT EXECUTED a000fe58: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED { rtems_signal_set _signals; ISR_Level _level; _ISR_Disable( _level ); _signals = information->signals_pending; a000fe5c: e5962018 ldr r2, [r6, #24] <== NOT EXECUTED information->signals_pending = information->signals_posted; a000fe60: e5961014 ldr r1, [r6, #20] <== NOT EXECUTED information->signals_posted = _signals; a000fe64: e5862014 str r2, [r6, #20] <== NOT EXECUTED rtems_signal_set _signals; ISR_Level _level; _ISR_Disable( _level ); _signals = information->signals_pending; information->signals_pending = information->signals_posted; a000fe68: e5861018 str r1, [r6, #24] <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a000fe6c: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED _ASR_Swap_signals( asr ); if ( _ASR_Are_signals_pending( asr ) ) { a000fe70: e5960014 ldr r0, [r6, #20] <== NOT EXECUTED /* * This is specific to the RTEMS API */ is_asr_enabled = false; needs_asr_dispatching = false; a000fe74: e3500000 cmp r0, #0 <== NOT EXECUTED a000fe78: 13a00001 movne r0, #1 <== NOT EXECUTED a000fe7c: 03a00000 moveq r0, #0 <== NOT EXECUTED needs_asr_dispatching = true; } } } if ( _System_state_Is_up( _System_state_Get() ) ) { a000fe80: e59f3060 ldr r3, [pc, #96] ; a000fee8 <== NOT EXECUTED a000fe84: e5933000 ldr r3, [r3] <== NOT EXECUTED a000fe88: e3530003 cmp r3, #3 <== NOT EXECUTED if (_Thread_Evaluate_is_dispatch_needed( needs_asr_dispatching ) ) _Thread_Dispatch(); } return RTEMS_SUCCESSFUL; a000fe8c: 13a00000 movne r0, #0 <== NOT EXECUTED needs_asr_dispatching = true; } } } if ( _System_state_Is_up( _System_state_Get() ) ) { a000fe90: 1a000011 bne a000fedc <== NOT EXECUTED bool are_signals_pending ) { Thread_Control *executing; executing = _Thread_Executing; a000fe94: e59f2044 ldr r2, [pc, #68] ; a000fee0 <== NOT EXECUTED if ( are_signals_pending || a000fe98: e3500000 cmp r0, #0 <== NOT EXECUTED bool are_signals_pending ) { Thread_Control *executing; executing = _Thread_Executing; a000fe9c: e5923004 ldr r3, [r2, #4] <== NOT EXECUTED if ( are_signals_pending || a000fea0: 1a000005 bne a000febc <== NOT EXECUTED a000fea4: e5922008 ldr r2, [r2, #8] <== NOT EXECUTED a000fea8: e1530002 cmp r3, r2 <== NOT EXECUTED a000feac: 0a00000a beq a000fedc <== NOT EXECUTED (!_Thread_Is_heir( executing ) && executing->is_preemptible) ) { a000feb0: e5d33074 ldrb r3, [r3, #116] ; 0x74 <== NOT EXECUTED a000feb4: e3530000 cmp r3, #0 <== NOT EXECUTED a000feb8: 0a000007 beq a000fedc <== NOT EXECUTED _Thread_Dispatch_necessary = true; a000febc: e59f301c ldr r3, [pc, #28] ; a000fee0 <== NOT EXECUTED a000fec0: e3a02001 mov r2, #1 <== NOT EXECUTED a000fec4: e5c32010 strb r2, [r3, #16] <== NOT EXECUTED if (_Thread_Evaluate_is_dispatch_needed( needs_asr_dispatching ) ) _Thread_Dispatch(); a000fec8: ebffedd0 bl a000b610 <_Thread_Dispatch> <== NOT EXECUTED } return RTEMS_SUCCESSFUL; a000fecc: e3a00000 mov r0, #0 <== NOT EXECUTED a000fed0: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, 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; a000fed4: e3a00009 mov r0, #9 <== NOT EXECUTED a000fed8: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED if (_Thread_Evaluate_is_dispatch_needed( needs_asr_dispatching ) ) _Thread_Dispatch(); } return RTEMS_SUCCESSFUL; } a000fedc: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED =============================================================================== a000a42c : rtems_status_code rtems_task_restart( rtems_id id, uint32_t argument ) { a000a42c: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED a000a430: e1a05001 mov r5, r1 <== NOT EXECUTED register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); a000a434: e1a0100d mov r1, sp <== NOT EXECUTED a000a438: eb0007ed bl a000c3f4 <_Thread_Get> <== NOT EXECUTED switch ( location ) { a000a43c: e59d4000 ldr r4, [sp] <== NOT EXECUTED a000a440: e3540000 cmp r4, #0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a000a444: 13a00004 movne r0, #4 <== NOT EXECUTED { register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); switch ( location ) { a000a448: 1a000009 bne a000a474 <== NOT EXECUTED case OBJECTS_LOCAL: if ( _Thread_Restart( the_thread, NULL, argument ) ) { a000a44c: e1a01004 mov r1, r4 <== NOT EXECUTED a000a450: e1a02005 mov r2, r5 <== NOT EXECUTED a000a454: eb0009da bl a000cbc4 <_Thread_Restart> <== NOT EXECUTED a000a458: e3500000 cmp r0, #0 <== NOT EXECUTED a000a45c: 0a000002 beq a000a46c <== NOT EXECUTED _Thread_Enable_dispatch(); a000a460: eb0007da bl a000c3d0 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000a464: e1a00004 mov r0, r4 <== NOT EXECUTED a000a468: ea000001 b a000a474 <== NOT EXECUTED } _Thread_Enable_dispatch(); a000a46c: eb0007d7 bl a000c3d0 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_INCORRECT_STATE; a000a470: e3a0000e mov r0, #14 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a000a474: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED =============================================================================== a000c8e4 : */ rtems_status_code rtems_task_resume( rtems_id id ) { a000c8e4: e92d4011 push {r0, r4, lr} <== NOT EXECUTED register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); a000c8e8: e1a0100d mov r1, sp <== NOT EXECUTED a000c8ec: eb0007e4 bl a000e884 <_Thread_Get> <== NOT EXECUTED switch ( location ) { a000c8f0: e59d4000 ldr r4, [sp] <== NOT EXECUTED ) { register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); a000c8f4: e1a03000 mov r3, r0 <== NOT EXECUTED switch ( location ) { a000c8f8: e3540000 cmp r4, #0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a000c8fc: 13a00004 movne r0, #4 <== NOT EXECUTED { register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); switch ( location ) { a000c900: 1a000009 bne a000c92c <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _States_Is_suspended ( States_Control the_states ) { return (the_states & STATES_SUSPENDED); a000c904: e5933010 ldr r3, [r3, #16] <== NOT EXECUTED case OBJECTS_LOCAL: if ( _States_Is_suspended( the_thread->current_state ) ) { a000c908: e3130002 tst r3, #2 <== NOT EXECUTED a000c90c: 0a000004 beq a000c924 <== NOT EXECUTED _Thread_Resume( the_thread ); a000c910: e3a01002 mov r1, #2 <== NOT EXECUTED a000c914: eb00070a bl a000e544 <_Thread_Clear_state> <== NOT EXECUTED _Thread_Enable_dispatch(); a000c918: eb0007d0 bl a000e860 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000c91c: e1a00004 mov r0, r4 <== NOT EXECUTED a000c920: ea000001 b a000c92c <== NOT EXECUTED } _Thread_Enable_dispatch(); a000c924: eb0007cd bl a000e860 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_INCORRECT_STATE; a000c928: e3a0000e mov r0, #14 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a000c92c: e8bd8018 pop {r3, r4, pc} <== NOT EXECUTED =============================================================================== a0011d04 : #include #include rtems_id rtems_task_self(void) { return _Thread_Executing->Object.id; a0011d04: e59f3008 ldr r3, [pc, #8] ; a0011d14 <== NOT EXECUTED a0011d08: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED } a0011d0c: e5930008 ldr r0, [r3, #8] <== NOT EXECUTED a0011d10: e12fff1e bx lr <== NOT EXECUTED =============================================================================== a000b82c : rtems_status_code rtems_task_set_note( rtems_id id, uint32_t notepad, uint32_t note ) { a000b82c: e92d4071 push {r0, r4, r5, r6, lr} <== NOT EXECUTED a000b830: e1a05002 mov r5, r2 <== NOT EXECUTED register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; if ( !rtems_configuration_get_notepads_enabled() ) a000b834: e59f2088 ldr r2, [pc, #136] ; a000b8c4 <== NOT EXECUTED rtems_status_code rtems_task_set_note( rtems_id id, uint32_t notepad, uint32_t note ) { a000b838: e1a03000 mov r3, r0 <== NOT EXECUTED a000b83c: e1a04001 mov r4, r1 <== NOT EXECUTED register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; if ( !rtems_configuration_get_notepads_enabled() ) a000b840: e5d22004 ldrb r2, [r2, #4] <== NOT EXECUTED a000b844: e3520000 cmp r2, #0 <== NOT EXECUTED return RTEMS_NOT_CONFIGURED; a000b848: 03a00016 moveq r0, #22 <== NOT EXECUTED { register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; if ( !rtems_configuration_get_notepads_enabled() ) a000b84c: 0a00001b beq a000b8c0 <== 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 ) a000b850: e351000f cmp r1, #15 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; a000b854: 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 ) a000b858: 8a000018 bhi a000b8c0 <== NOT EXECUTED /* * Optimize the most likely case to avoid the Thread_Dispatch. */ if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) || a000b85c: e3530000 cmp r3, #0 <== NOT EXECUTED a000b860: 0a000004 beq a000b878 <== NOT EXECUTED _Objects_Are_ids_equal( id, _Thread_Executing->Object.id ) ) { a000b864: e59f205c ldr r2, [pc, #92] ; a000b8c8 <== NOT EXECUTED a000b868: e5922004 ldr r2, [r2, #4] <== NOT EXECUTED /* * Optimize the most likely case to avoid the Thread_Dispatch. */ if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) || a000b86c: e5922008 ldr r2, [r2, #8] <== NOT EXECUTED a000b870: e1530002 cmp r3, r2 <== NOT EXECUTED a000b874: 1a000006 bne a000b894 <== NOT EXECUTED _Objects_Are_ids_equal( id, _Thread_Executing->Object.id ) ) { api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ]; a000b878: e59f3048 ldr r3, [pc, #72] ; a000b8c8 <== NOT EXECUTED api->Notepads[ notepad ] = note; a000b87c: e2844008 add r4, r4, #8 <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000b880: e3a00000 mov r0, #0 <== NOT EXECUTED * Optimize the most likely case to avoid the Thread_Dispatch. */ 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 ]; a000b884: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED api->Notepads[ notepad ] = note; a000b888: e59330f4 ldr r3, [r3, #244] ; 0xf4 <== NOT EXECUTED a000b88c: e7835104 str r5, [r3, r4, lsl #2] <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000b890: ea00000a b a000b8c0 <== NOT EXECUTED } the_thread = _Thread_Get( id, &location ); a000b894: e1a0100d mov r1, sp <== NOT EXECUTED a000b898: eb00086d bl a000da54 <_Thread_Get> <== NOT EXECUTED switch ( location ) { a000b89c: e59d6000 ldr r6, [sp] <== NOT EXECUTED a000b8a0: e3560000 cmp r6, #0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a000b8a4: 13a00004 movne r0, #4 <== NOT EXECUTED api->Notepads[ notepad ] = note; return RTEMS_SUCCESSFUL; } the_thread = _Thread_Get( id, &location ); switch ( location ) { a000b8a8: 1a000004 bne a000b8c0 <== NOT EXECUTED case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; api->Notepads[ notepad ] = note; a000b8ac: e59030f4 ldr r3, [r0, #244] ; 0xf4 <== NOT EXECUTED a000b8b0: e2844008 add r4, r4, #8 <== NOT EXECUTED a000b8b4: e7835104 str r5, [r3, r4, lsl #2] <== NOT EXECUTED _Thread_Enable_dispatch(); a000b8b8: eb00085c bl a000da30 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000b8bc: e1a00006 mov r0, r6 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a000b8c0: e8bd8078 pop {r3, r4, r5, r6, pc} <== NOT EXECUTED =============================================================================== a000d994 : rtems_status_code rtems_task_set_priority( rtems_id id, rtems_task_priority new_priority, rtems_task_priority *old_priority ) { a000d994: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED register Thread_Control *the_thread; Objects_Locations location; if ( new_priority != RTEMS_CURRENT_PRIORITY && a000d998: 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 ) { a000d99c: e1a05002 mov r5, r2 <== NOT EXECUTED register Thread_Control *the_thread; Objects_Locations location; if ( new_priority != RTEMS_CURRENT_PRIORITY && a000d9a0: 0a000004 beq a000d9b8 <== 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 ) ); a000d9a4: e59f3074 ldr r3, [pc, #116] ; a000da20 <== NOT EXECUTED a000d9a8: e5d33000 ldrb r3, [r3] <== NOT EXECUTED a000d9ac: e1540003 cmp r4, r3 <== NOT EXECUTED !_RTEMS_tasks_Priority_is_valid( new_priority ) ) return RTEMS_INVALID_PRIORITY; a000d9b0: 83a00013 movhi r0, #19 <== NOT EXECUTED ) { register Thread_Control *the_thread; Objects_Locations location; if ( new_priority != RTEMS_CURRENT_PRIORITY && a000d9b4: 8a000018 bhi a000da1c <== NOT EXECUTED !_RTEMS_tasks_Priority_is_valid( new_priority ) ) return RTEMS_INVALID_PRIORITY; if ( !old_priority ) a000d9b8: e3550000 cmp r5, #0 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; a000d9bc: 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 ) a000d9c0: 0a000015 beq a000da1c <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get( id, &location ); a000d9c4: e1a0100d mov r1, sp <== NOT EXECUTED a000d9c8: eb000863 bl a000fb5c <_Thread_Get> <== NOT EXECUTED switch ( location ) { a000d9cc: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000d9d0: e3530000 cmp r3, #0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a000d9d4: 13a00004 movne r0, #4 <== NOT EXECUTED if ( !old_priority ) return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get( id, &location ); switch ( location ) { a000d9d8: 1a00000f bne a000da1c <== NOT EXECUTED case OBJECTS_LOCAL: /* XXX need helper to "convert" from core priority */ *old_priority = the_thread->current_priority; a000d9dc: e5903014 ldr r3, [r0, #20] <== NOT EXECUTED if ( new_priority != RTEMS_CURRENT_PRIORITY ) { a000d9e0: 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; a000d9e4: e5853000 str r3, [r5] <== NOT EXECUTED if ( new_priority != RTEMS_CURRENT_PRIORITY ) { a000d9e8: 0a000009 beq a000da14 <== NOT EXECUTED the_thread->real_priority = new_priority; if ( the_thread->resource_count == 0 || a000d9ec: 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; a000d9f0: e5804018 str r4, [r0, #24] <== NOT EXECUTED if ( the_thread->resource_count == 0 || a000d9f4: e3530000 cmp r3, #0 <== NOT EXECUTED a000d9f8: 0a000002 beq a000da08 <== NOT EXECUTED a000d9fc: e5903014 ldr r3, [r0, #20] <== NOT EXECUTED a000da00: e1530004 cmp r3, r4 <== NOT EXECUTED a000da04: 9a000002 bls a000da14 <== NOT EXECUTED the_thread->current_priority > new_priority ) _Thread_Change_priority( the_thread, new_priority, false ); a000da08: e1a01004 mov r1, r4 <== NOT EXECUTED a000da0c: e3a02000 mov r2, #0 <== NOT EXECUTED a000da10: eb000745 bl a000f72c <_Thread_Change_priority> <== NOT EXECUTED } _Thread_Enable_dispatch(); a000da14: eb000847 bl a000fb38 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000da18: e3a00000 mov r0, #0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a000da1c: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED =============================================================================== a0009804 : rtems_status_code rtems_task_start( rtems_id id, rtems_task_entry entry_point, rtems_task_argument argument ) { a0009804: e92d4073 push {r0, r1, r4, r5, r6, lr} register Thread_Control *the_thread; Objects_Locations location; if ( entry_point == NULL ) a0009808: e2515000 subs r5, r1, #0 rtems_status_code rtems_task_start( rtems_id id, rtems_task_entry entry_point, rtems_task_argument argument ) { a000980c: e1a06002 mov r6, r2 register Thread_Control *the_thread; Objects_Locations location; if ( entry_point == NULL ) return RTEMS_INVALID_ADDRESS; a0009810: 03a00009 moveq r0, #9 ) { register Thread_Control *the_thread; Objects_Locations location; if ( entry_point == NULL ) a0009814: 0a000011 beq a0009860 return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get( id, &location ); a0009818: e28d1004 add r1, sp, #4 a000981c: eb0007c8 bl a000b744 <_Thread_Get> switch ( location ) { a0009820: e59d4004 ldr r4, [sp, #4] a0009824: e3540000 cmp r4, #0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a0009828: 13a00004 movne r0, #4 if ( entry_point == NULL ) return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get( id, &location ); switch ( location ) { a000982c: 1a00000b bne a0009860 case OBJECTS_LOCAL: if ( _Thread_Start( a0009830: e1a01004 mov r1, r4 a0009834: e1a02005 mov r2, r5 a0009838: e1a03004 mov r3, r4 a000983c: e58d6000 str r6, [sp] a0009840: eb000a0b bl a000c074 <_Thread_Start> a0009844: e3500000 cmp r0, #0 a0009848: 0a000002 beq a0009858 the_thread, THREAD_START_NUMERIC, entry_point, NULL, argument ) ) { _Thread_Enable_dispatch(); a000984c: eb0007b3 bl a000b720 <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; a0009850: e1a00004 mov r0, r4 a0009854: ea000001 b a0009860 } _Thread_Enable_dispatch(); a0009858: eb0007b0 bl a000b720 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_INCORRECT_STATE; a000985c: e3a0000e mov r0, #14 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a0009860: e8bd807c pop {r2, r3, r4, r5, r6, pc} =============================================================================== a000cb48 : */ rtems_status_code rtems_task_suspend( rtems_id id ) { a000cb48: e92d4011 push {r0, r4, lr} <== NOT EXECUTED register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); a000cb4c: e1a0100d mov r1, sp <== NOT EXECUTED a000cb50: eb0007b4 bl a000ea28 <_Thread_Get> <== NOT EXECUTED switch ( location ) { a000cb54: e59d2000 ldr r2, [sp] <== NOT EXECUTED ) { register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); a000cb58: e1a03000 mov r3, r0 <== NOT EXECUTED switch ( location ) { a000cb5c: e3520000 cmp r2, #0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a000cb60: 13a00004 movne r0, #4 <== NOT EXECUTED { register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); switch ( location ) { a000cb64: 1a000009 bne a000cb90 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _States_Is_suspended ( States_Control the_states ) { return (the_states & STATES_SUSPENDED); a000cb68: e5934010 ldr r4, [r3, #16] <== NOT EXECUTED case OBJECTS_LOCAL: if ( !_States_Is_suspended( the_thread->current_state ) ) { a000cb6c: e2144002 ands r4, r4, #2 <== NOT EXECUTED a000cb70: 1a000004 bne a000cb88 <== NOT EXECUTED _Thread_Suspend( the_thread ); a000cb74: e3a01002 mov r1, #2 <== NOT EXECUTED a000cb78: eb0009a5 bl a000f214 <_Thread_Set_state> <== NOT EXECUTED _Thread_Enable_dispatch(); a000cb7c: eb0007a0 bl a000ea04 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000cb80: e1a00004 mov r0, r4 <== NOT EXECUTED a000cb84: ea000001 b a000cb90 <== NOT EXECUTED } _Thread_Enable_dispatch(); a000cb88: eb00079d bl a000ea04 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_ALREADY_SUSPENDED; a000cb8c: e3a0000f mov r0, #15 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a000cb90: e8bd8018 pop {r3, r4, pc} <== NOT EXECUTED =============================================================================== a000a520 : rtems_status_code rtems_task_variable_add( rtems_id tid, void **ptr, void (*dtor)(void *) ) { a000a520: e92d40f1 push {r0, r4, r5, r6, r7, lr} <== NOT EXECUTED Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp, *new; if ( !ptr ) a000a524: e2514000 subs r4, r1, #0 <== NOT EXECUTED rtems_status_code rtems_task_variable_add( rtems_id tid, void **ptr, void (*dtor)(void *) ) { a000a528: 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; a000a52c: 03a00009 moveq r0, #9 <== NOT EXECUTED { Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp, *new; if ( !ptr ) a000a530: 0a000023 beq a000a5c4 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get (tid, &location); a000a534: e1a0100d mov r1, sp <== NOT EXECUTED a000a538: eb000803 bl a000c54c <_Thread_Get> <== NOT EXECUTED switch (location) { a000a53c: e59d3000 ldr r3, [sp] <== NOT EXECUTED rtems_task_variable_t *tvp, *new; if ( !ptr ) return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get (tid, &location); a000a540: e1a07000 mov r7, r0 <== NOT EXECUTED switch (location) { a000a544: e3530000 cmp r3, #0 <== NOT EXECUTED case OBJECTS_LOCAL: /* * Figure out if the variable is already in this task's list. */ tvp = the_thread->task_variables; a000a548: 05906100 ldreq r6, [r0, #256] ; 0x100 <== NOT EXECUTED if ( !ptr ) return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get (tid, &location); switch (location) { a000a54c: 0a000008 beq a000a574 <== NOT EXECUTED a000a550: ea00001a b a000a5c0 <== NOT EXECUTED /* * Figure out if the variable is already in this task's list. */ tvp = the_thread->task_variables; while (tvp) { if (tvp->ptr == ptr) { a000a554: e5963004 ldr r3, [r6, #4] <== NOT EXECUTED a000a558: e1530004 cmp r3, r4 <== NOT EXECUTED a000a55c: 1a000003 bne a000a570 <== NOT EXECUTED tvp->dtor = dtor; a000a560: e5865010 str r5, [r6, #16] <== NOT EXECUTED _Thread_Enable_dispatch(); a000a564: eb0007ef bl a000c528 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000a568: e3a00000 mov r0, #0 <== NOT EXECUTED a000a56c: ea000014 b a000a5c4 <== NOT EXECUTED } tvp = (rtems_task_variable_t *)tvp->next; a000a570: e5966000 ldr r6, [r6] <== NOT EXECUTED case OBJECTS_LOCAL: /* * Figure out if the variable is already in this task's list. */ tvp = the_thread->task_variables; while (tvp) { a000a574: e3560000 cmp r6, #0 <== NOT EXECUTED a000a578: 1afffff5 bne a000a554 <== NOT EXECUTED /* * Now allocate memory for this task variable. */ new = (rtems_task_variable_t *) _Workspace_Allocate(sizeof(rtems_task_variable_t)); a000a57c: e3a00014 mov r0, #20 <== NOT EXECUTED a000a580: eb000bf5 bl a000d55c <_Workspace_Allocate> <== NOT EXECUTED if (new == NULL) { a000a584: e3500000 cmp r0, #0 <== NOT EXECUTED a000a588: 1a000002 bne a000a598 <== NOT EXECUTED _Thread_Enable_dispatch(); a000a58c: eb0007e5 bl a000c528 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_NO_MEMORY; a000a590: e3a0001a mov r0, #26 <== NOT EXECUTED a000a594: ea00000a b a000a5c4 <== NOT EXECUTED } new->gval = *ptr; a000a598: e5943000 ldr r3, [r4] <== NOT EXECUTED new->ptr = ptr; a000a59c: e5804004 str r4, [r0, #4] <== NOT EXECUTED new->dtor = dtor; a000a5a0: e5805010 str r5, [r0, #16] <== NOT EXECUTED _Workspace_Allocate(sizeof(rtems_task_variable_t)); if (new == NULL) { _Thread_Enable_dispatch(); return RTEMS_NO_MEMORY; } new->gval = *ptr; a000a5a4: e5803008 str r3, [r0, #8] <== NOT EXECUTED new->ptr = ptr; new->dtor = dtor; new->next = (struct rtems_task_variable_tt *)the_thread->task_variables; a000a5a8: e5973100 ldr r3, [r7, #256] ; 0x100 <== NOT EXECUTED a000a5ac: e5803000 str r3, [r0] <== NOT EXECUTED the_thread->task_variables = new; a000a5b0: e5870100 str r0, [r7, #256] ; 0x100 <== NOT EXECUTED _Thread_Enable_dispatch(); a000a5b4: eb0007db bl a000c528 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000a5b8: e1a00006 mov r0, r6 <== NOT EXECUTED a000a5bc: ea000000 b a000a5c4 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a000a5c0: e3a00004 mov r0, #4 <== NOT EXECUTED } a000a5c4: e8bd80f8 pop {r3, r4, r5, r6, r7, pc} <== NOT EXECUTED =============================================================================== a000a5c8 : rtems_status_code rtems_task_variable_delete( rtems_id tid, void **ptr ) { a000a5c8: e92d4011 push {r0, r4, lr} <== NOT EXECUTED Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp, *prev; if ( !ptr ) a000a5cc: e2514000 subs r4, r1, #0 <== NOT EXECUTED a000a5d0: 0a000016 beq a000a630 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; prev = NULL; the_thread = _Thread_Get (tid, &location); a000a5d4: e1a0100d mov r1, sp <== NOT EXECUTED a000a5d8: eb0007db bl a000c54c <_Thread_Get> <== NOT EXECUTED switch (location) { a000a5dc: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000a5e0: e3530000 cmp r3, #0 <== NOT EXECUTED case OBJECTS_LOCAL: tvp = the_thread->task_variables; a000a5e4: 05901100 ldreq r1, [r0, #256] ; 0x100 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; prev = NULL; the_thread = _Thread_Get (tid, &location); switch (location) { a000a5e8: 0a00000d beq a000a624 <== NOT EXECUTED a000a5ec: ea000011 b a000a638 <== NOT EXECUTED case OBJECTS_LOCAL: tvp = the_thread->task_variables; while (tvp) { if (tvp->ptr == ptr) { a000a5f0: e5912004 ldr r2, [r1, #4] <== NOT EXECUTED a000a5f4: e1520004 cmp r2, r4 <== NOT EXECUTED a000a5f8: 1a000007 bne a000a61c <== NOT EXECUTED a000a5fc: e5912000 ldr r2, [r1] <== NOT EXECUTED if (prev) a000a600: e3530000 cmp r3, #0 <== NOT EXECUTED prev->next = tvp->next; else the_thread->task_variables = (rtems_task_variable_t *)tvp->next; a000a604: 05802100 streq r2, [r0, #256] ; 0x100 <== NOT EXECUTED case OBJECTS_LOCAL: tvp = the_thread->task_variables; while (tvp) { if (tvp->ptr == ptr) { if (prev) prev->next = tvp->next; a000a608: 15832000 strne r2, [r3] <== NOT EXECUTED else the_thread->task_variables = (rtems_task_variable_t *)tvp->next; _RTEMS_Tasks_Invoke_task_variable_dtor( the_thread, tvp ); a000a60c: eb000028 bl a000a6b4 <_RTEMS_Tasks_Invoke_task_variable_dtor><== NOT EXECUTED _Thread_Enable_dispatch(); a000a610: eb0007c4 bl a000c528 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000a614: e3a00000 mov r0, #0 <== NOT EXECUTED a000a618: ea000007 b a000a63c <== NOT EXECUTED } prev = tvp; tvp = (rtems_task_variable_t *)tvp->next; a000a61c: e1a03001 mov r3, r1 <== NOT EXECUTED a000a620: e5911000 ldr r1, [r1] <== NOT EXECUTED the_thread = _Thread_Get (tid, &location); switch (location) { case OBJECTS_LOCAL: tvp = the_thread->task_variables; while (tvp) { a000a624: e3510000 cmp r1, #0 <== NOT EXECUTED a000a628: 1afffff0 bne a000a5f0 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } prev = tvp; tvp = (rtems_task_variable_t *)tvp->next; } _Thread_Enable_dispatch(); a000a62c: eb0007bd bl a000c528 <_Thread_Enable_dispatch> <== NOT EXECUTED Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp, *prev; if ( !ptr ) return RTEMS_INVALID_ADDRESS; a000a630: e3a00009 mov r0, #9 <== NOT EXECUTED a000a634: ea000000 b a000a63c <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a000a638: e3a00004 mov r0, #4 <== NOT EXECUTED } a000a63c: e8bd8018 pop {r3, r4, pc} <== NOT EXECUTED =============================================================================== a000a640 : rtems_status_code rtems_task_variable_get( rtems_id tid, void **ptr, void **result ) { a000a640: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp; if ( !ptr ) a000a644: e2515000 subs r5, r1, #0 <== NOT EXECUTED rtems_status_code rtems_task_variable_get( rtems_id tid, void **ptr, void **result ) { a000a648: e1a04002 mov r4, r2 <== NOT EXECUTED Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp; if ( !ptr ) a000a64c: 0a000014 beq a000a6a4 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !result ) a000a650: e3520000 cmp r2, #0 <== NOT EXECUTED a000a654: 0a000012 beq a000a6a4 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get (tid, &location); a000a658: e1a0100d mov r1, sp <== NOT EXECUTED a000a65c: eb0007ba bl a000c54c <_Thread_Get> <== NOT EXECUTED switch (location) { a000a660: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000a664: e3530000 cmp r3, #0 <== NOT EXECUTED case OBJECTS_LOCAL: /* * Figure out if the variable is in this task's list. */ tvp = the_thread->task_variables; a000a668: 05903100 ldreq r3, [r0, #256] ; 0x100 <== NOT EXECUTED if ( !result ) return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get (tid, &location); switch (location) { a000a66c: 0a000009 beq a000a698 <== NOT EXECUTED a000a670: ea00000d b a000a6ac <== NOT EXECUTED /* * Figure out if the variable is in this task's list. */ tvp = the_thread->task_variables; while (tvp) { if (tvp->ptr == ptr) { a000a674: e5932004 ldr r2, [r3, #4] <== NOT EXECUTED a000a678: e1520005 cmp r2, r5 <== NOT EXECUTED a000a67c: 1a000004 bne a000a694 <== NOT EXECUTED /* * Should this return the current (i.e not the * saved) value if `tid' is the current task? */ *result = tvp->tval; a000a680: e593300c ldr r3, [r3, #12] <== NOT EXECUTED a000a684: e5843000 str r3, [r4] <== NOT EXECUTED _Thread_Enable_dispatch(); a000a688: eb0007a6 bl a000c528 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000a68c: e3a00000 mov r0, #0 <== NOT EXECUTED a000a690: ea000006 b a000a6b0 <== NOT EXECUTED } tvp = (rtems_task_variable_t *)tvp->next; a000a694: 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) { a000a698: e3530000 cmp r3, #0 <== NOT EXECUTED a000a69c: 1afffff4 bne a000a674 <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } tvp = (rtems_task_variable_t *)tvp->next; } _Thread_Enable_dispatch(); a000a6a0: eb0007a0 bl a000c528 <_Thread_Enable_dispatch> <== NOT EXECUTED if ( !ptr ) return RTEMS_INVALID_ADDRESS; if ( !result ) return RTEMS_INVALID_ADDRESS; a000a6a4: e3a00009 mov r0, #9 <== NOT EXECUTED a000a6a8: ea000000 b a000a6b0 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a000a6ac: e3a00004 mov r0, #4 <== NOT EXECUTED } a000a6b0: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED =============================================================================== a0009864 : a0009864: e59f3074 ldr r3, [pc, #116] ; a00098e0 <== NOT EXECUTED */ rtems_status_code rtems_task_wake_after( rtems_interval ticks ) { a0009868: e92d4030 push {r4, r5, lr} <== NOT EXECUTED a000986c: e5932000 ldr r2, [r3] <== NOT EXECUTED a0009870: e1a04000 mov r4, r0 <== NOT EXECUTED a0009874: e2822001 add r2, r2, #1 <== NOT EXECUTED a0009878: e5832000 str r2, [r3] <== NOT EXECUTED _Thread_Disable_dispatch(); if ( ticks == 0 ) { a000987c: e3500000 cmp r0, #0 <== NOT EXECUTED a0009880: 1a000003 bne a0009894 <== NOT EXECUTED * always operates on the scheduler that 'owns' the currently executing * thread. */ RTEMS_INLINE_ROUTINE void _Scheduler_Yield( void ) { _Scheduler.Operations.yield(); a0009884: e59f3058 ldr r3, [pc, #88] ; a00098e4 <== NOT EXECUTED a0009888: e593300c ldr r3, [r3, #12] <== NOT EXECUTED a000988c: e12fff33 blx r3 <== NOT EXECUTED a0009890: ea00000f b a00098d4 <== NOT EXECUTED _Scheduler_Yield(); } else { _Thread_Set_state( _Thread_Executing, STATES_DELAYING ); a0009894: e59f504c ldr r5, [pc, #76] ; a00098e8 <== NOT EXECUTED a0009898: e3a01008 mov r1, #8 <== NOT EXECUTED a000989c: e5950004 ldr r0, [r5, #4] <== NOT EXECUTED a00098a0: eb0009a2 bl a000bf30 <_Thread_Set_state> <== NOT EXECUTED _Watchdog_Initialize( &_Thread_Executing->Timer, a00098a4: e5951004 ldr r1, [r5, #4] <== NOT EXECUTED Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; a00098a8: e59f003c ldr r0, [pc, #60] ; a00098ec <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; a00098ac: e3a03000 mov r3, #0 <== NOT EXECUTED _Thread_Disable_dispatch(); if ( ticks == 0 ) { _Scheduler_Yield(); } else { _Thread_Set_state( _Thread_Executing, STATES_DELAYING ); _Watchdog_Initialize( a00098b0: e5912008 ldr r2, [r1, #8] <== NOT EXECUTED the_watchdog->routine = routine; a00098b4: e5810064 str r0, [r1, #100] ; 0x64 <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; a00098b8: e5813050 str r3, [r1, #80] ; 0x50 <== NOT EXECUTED the_watchdog->routine = routine; the_watchdog->id = id; a00098bc: e5812068 str r2, [r1, #104] ; 0x68 <== NOT EXECUTED the_watchdog->user_data = user_data; a00098c0: e581306c str r3, [r1, #108] ; 0x6c <== NOT EXECUTED Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; a00098c4: e5814054 str r4, [r1, #84] ; 0x54 <== NOT EXECUTED _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); a00098c8: e59f0020 ldr r0, [pc, #32] ; a00098f0 <== NOT EXECUTED a00098cc: e2811048 add r1, r1, #72 ; 0x48 <== NOT EXECUTED a00098d0: eb000ae1 bl a000c45c <_Watchdog_Insert> <== NOT EXECUTED _Thread_Executing->Object.id, NULL ); _Watchdog_Insert_ticks( &_Thread_Executing->Timer, ticks ); } _Thread_Enable_dispatch(); a00098d4: eb000791 bl a000b720 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; } a00098d8: e3a00000 mov r0, #0 <== NOT EXECUTED a00098dc: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED =============================================================================== a000aaa4 : rtems_time_of_day *time_buffer ) { Watchdog_Interval seconds; if ( !_TOD_Is_set ) a000aaa4: e59f30c8 ldr r3, [pc, #200] ; a000ab74 <== NOT EXECUTED */ rtems_status_code rtems_task_wake_when( rtems_time_of_day *time_buffer ) { a000aaa8: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED Watchdog_Interval seconds; if ( !_TOD_Is_set ) a000aaac: e5d33000 ldrb r3, [r3] <== NOT EXECUTED */ rtems_status_code rtems_task_wake_when( rtems_time_of_day *time_buffer ) { a000aab0: e1a05000 mov r5, r0 <== NOT EXECUTED Watchdog_Interval seconds; if ( !_TOD_Is_set ) a000aab4: e3530000 cmp r3, #0 <== NOT EXECUTED a000aab8: 0a000025 beq a000ab54 <== NOT EXECUTED return RTEMS_NOT_DEFINED; if ( !time_buffer ) a000aabc: e3500000 cmp r0, #0 <== NOT EXECUTED a000aac0: 0a000025 beq a000ab5c <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; time_buffer->ticks = 0; a000aac4: e3a04000 mov r4, #0 <== NOT EXECUTED a000aac8: e5804018 str r4, [r0, #24] <== NOT EXECUTED if ( !_TOD_Validate( time_buffer ) ) a000aacc: ebfffd1a bl a0009f3c <_TOD_Validate> <== NOT EXECUTED a000aad0: e1500004 cmp r0, r4 <== NOT EXECUTED a000aad4: 0a000022 beq a000ab64 <== NOT EXECUTED return RTEMS_INVALID_CLOCK; seconds = _TOD_To_seconds( time_buffer ); a000aad8: e1a00005 mov r0, r5 <== NOT EXECUTED a000aadc: ebfffcf3 bl a0009eb0 <_TOD_To_seconds> <== NOT EXECUTED if ( seconds <= _TOD_Seconds_since_epoch() ) a000aae0: e59f6090 ldr r6, [pc, #144] ; a000ab78 <== NOT EXECUTED time_buffer->ticks = 0; if ( !_TOD_Validate( time_buffer ) ) return RTEMS_INVALID_CLOCK; seconds = _TOD_To_seconds( time_buffer ); a000aae4: e1a05000 mov r5, r0 <== NOT EXECUTED if ( seconds <= _TOD_Seconds_since_epoch() ) a000aae8: e5963000 ldr r3, [r6] <== NOT EXECUTED a000aaec: e1500003 cmp r0, r3 <== NOT EXECUTED a000aaf0: 9a00001d bls a000ab6c <== NOT EXECUTED a000aaf4: e59f3080 ldr r3, [pc, #128] ; a000ab7c <== NOT EXECUTED a000aaf8: e5932000 ldr r2, [r3] <== NOT EXECUTED a000aafc: e2822001 add r2, r2, #1 <== NOT EXECUTED a000ab00: e5832000 str r2, [r3] <== NOT EXECUTED return RTEMS_INVALID_CLOCK; _Thread_Disable_dispatch(); _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_TIME ); a000ab04: e59f7074 ldr r7, [pc, #116] ; a000ab80 <== NOT EXECUTED a000ab08: e3a01010 mov r1, #16 <== NOT EXECUTED a000ab0c: e5970004 ldr r0, [r7, #4] <== NOT EXECUTED a000ab10: eb0009b6 bl a000d1f0 <_Thread_Set_state> <== NOT EXECUTED _Watchdog_Initialize( &_Thread_Executing->Timer, a000ab14: e5971004 ldr r1, [r7, #4] <== NOT EXECUTED Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; a000ab18: e59f2064 ldr r2, [pc, #100] ; a000ab84 <== NOT EXECUTED ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog ); a000ab1c: e59f0064 ldr r0, [pc, #100] ; a000ab88 <== 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( a000ab20: e5913008 ldr r3, [r1, #8] <== NOT EXECUTED Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; a000ab24: e5812064 str r2, [r1, #100] ; 0x64 <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; a000ab28: e5814050 str r4, [r1, #80] ; 0x50 <== NOT EXECUTED the_watchdog->routine = routine; the_watchdog->id = id; a000ab2c: e5813068 str r3, [r1, #104] ; 0x68 <== NOT EXECUTED &_Thread_Executing->Timer, _Thread_Delay_ended, _Thread_Executing->Object.id, NULL ); _Watchdog_Insert_seconds( a000ab30: e5963000 ldr r3, [r6] <== NOT EXECUTED the_watchdog->user_data = user_data; a000ab34: e581406c str r4, [r1, #108] ; 0x6c <== NOT EXECUTED a000ab38: e0635005 rsb r5, r3, r5 <== NOT EXECUTED Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; a000ab3c: e5815054 str r5, [r1, #84] ; 0x54 <== NOT EXECUTED _Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog ); a000ab40: e2811048 add r1, r1, #72 ; 0x48 <== NOT EXECUTED a000ab44: eb000b1c bl a000d7bc <_Watchdog_Insert> <== NOT EXECUTED &_Thread_Executing->Timer, seconds - _TOD_Seconds_since_epoch() ); _Thread_Enable_dispatch(); a000ab48: eb0007a4 bl a000c9e0 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a000ab4c: e1a00004 mov r0, r4 <== NOT EXECUTED a000ab50: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED ) { Watchdog_Interval seconds; if ( !_TOD_Is_set ) return RTEMS_NOT_DEFINED; a000ab54: e3a0000b mov r0, #11 <== NOT EXECUTED a000ab58: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED if ( !time_buffer ) return RTEMS_INVALID_ADDRESS; a000ab5c: e3a00009 mov r0, #9 <== NOT EXECUTED a000ab60: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED time_buffer->ticks = 0; if ( !_TOD_Validate( time_buffer ) ) return RTEMS_INVALID_CLOCK; a000ab64: e3a00014 mov r0, #20 <== NOT EXECUTED a000ab68: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED seconds = _TOD_To_seconds( time_buffer ); if ( seconds <= _TOD_Seconds_since_epoch() ) return RTEMS_INVALID_CLOCK; a000ab6c: e3a00014 mov r0, #20 <== NOT EXECUTED &_Thread_Executing->Timer, seconds - _TOD_Seconds_since_epoch() ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } a000ab70: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED =============================================================================== a0017f68 : */ rtems_status_code rtems_timer_cancel( rtems_id id ) { a0017f68: e92d4001 push {r0, lr} <== NOT EXECUTED a0017f6c: e1a01000 mov r1, r0 <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Timer_Control *) _Objects_Get( &_Timer_Information, id, location ); a0017f70: e1a0200d mov r2, sp <== NOT EXECUTED a0017f74: e59f0030 ldr r0, [pc, #48] ; a0017fac <== NOT EXECUTED a0017f78: eb000b4a bl a001aca8 <_Objects_Get> <== NOT EXECUTED Timer_Control *the_timer; Objects_Locations location; the_timer = _Timer_Get( id, &location ); switch ( location ) { a0017f7c: e59d3000 ldr r3, [sp] <== NOT EXECUTED a0017f80: e3530000 cmp r3, #0 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a0017f84: 13a00004 movne r0, #4 <== NOT EXECUTED { Timer_Control *the_timer; Objects_Locations location; the_timer = _Timer_Get( id, &location ); switch ( location ) { a0017f88: 1a000006 bne a0017fa8 <== NOT EXECUTED case OBJECTS_LOCAL: if ( !_Timer_Is_dormant_class( the_timer->the_class ) ) a0017f8c: e5903038 ldr r3, [r0, #56] ; 0x38 <== NOT EXECUTED a0017f90: e3530004 cmp r3, #4 <== NOT EXECUTED a0017f94: 0a000001 beq a0017fa0 <== NOT EXECUTED (void) _Watchdog_Remove( &the_timer->Ticker ); a0017f98: e2800010 add r0, r0, #16 <== NOT EXECUTED a0017f9c: eb0012a4 bl a001ca34 <_Watchdog_Remove> <== NOT EXECUTED _Thread_Enable_dispatch(); a0017fa0: eb000e5e bl a001b920 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0017fa4: e3a00000 mov r0, #0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a0017fa8: e8bd8008 pop {r3, pc} <== NOT EXECUTED =============================================================================== a0009d48 : rtems_status_code rtems_timer_create( rtems_name name, rtems_id *id ) { a0009d48: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED Timer_Control *the_timer; if ( !rtems_is_name_valid( name ) ) a0009d4c: e2506000 subs r6, r0, #0 <== NOT EXECUTED rtems_status_code rtems_timer_create( rtems_name name, rtems_id *id ) { a0009d50: e1a04001 mov r4, r1 <== NOT EXECUTED Timer_Control *the_timer; if ( !rtems_is_name_valid( name ) ) a0009d54: 0a00001d beq a0009dd0 <== NOT EXECUTED return RTEMS_INVALID_NAME; if ( !id ) a0009d58: e3510000 cmp r1, #0 <== NOT EXECUTED a0009d5c: 0a00001d beq a0009dd8 <== NOT EXECUTED a0009d60: e59f3078 ldr r3, [pc, #120] ; a0009de0 <== NOT EXECUTED a0009d64: e5932000 ldr r2, [r3] <== NOT EXECUTED a0009d68: e2822001 add r2, r2, #1 <== NOT EXECUTED a0009d6c: 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 ); a0009d70: e59f506c ldr r5, [pc, #108] ; a0009de4 <== NOT EXECUTED a0009d74: e1a00005 mov r0, r5 <== NOT EXECUTED a0009d78: eb0003a4 bl a000ac10 <_Objects_Allocate> <== NOT EXECUTED _Thread_Disable_dispatch(); /* to prevent deletion */ the_timer = _Timer_Allocate(); if ( !the_timer ) { a0009d7c: e3500000 cmp r0, #0 <== NOT EXECUTED a0009d80: 1a000002 bne a0009d90 <== NOT EXECUTED _Thread_Enable_dispatch(); a0009d84: eb0007ba bl a000bc74 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_TOO_MANY; a0009d88: e3a00005 mov r0, #5 <== NOT EXECUTED a0009d8c: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED } the_timer->the_class = TIMER_DORMANT; a0009d90: e3a03004 mov r3, #4 <== NOT EXECUTED a0009d94: e5803038 str r3, [r0, #56] ; 0x38 <== NOT EXECUTED Objects_Information *information, Objects_Control *the_object, Objects_Name name ) { _Objects_Set_local_object( a0009d98: e1d010b8 ldrh r1, [r0, #8] <== NOT EXECUTED a0009d9c: e5903008 ldr r3, [r0, #8] <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; a0009da0: e595201c ldr r2, [r5, #28] <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; a0009da4: e3a07000 mov r7, #0 <== NOT EXECUTED a0009da8: e5807018 str r7, [r0, #24] <== NOT EXECUTED the_watchdog->routine = routine; a0009dac: e580702c str r7, [r0, #44] ; 0x2c <== NOT EXECUTED the_watchdog->id = id; a0009db0: e5807030 str r7, [r0, #48] ; 0x30 <== NOT EXECUTED the_watchdog->user_data = user_data; a0009db4: e5807034 str r7, [r0, #52] ; 0x34 <== NOT EXECUTED a0009db8: e7820101 str r0, [r2, r1, lsl #2] <== NOT EXECUTED information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; a0009dbc: e580600c str r6, [r0, #12] <== NOT EXECUTED &_Timer_Information, &the_timer->Object, (Objects_Name) name ); *id = the_timer->Object.id; a0009dc0: e5843000 str r3, [r4] <== NOT EXECUTED _Thread_Enable_dispatch(); a0009dc4: eb0007aa bl a000bc74 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0009dc8: e1a00007 mov r0, r7 <== NOT EXECUTED a0009dcc: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED ) { Timer_Control *the_timer; if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; a0009dd0: e3a00003 mov r0, #3 <== NOT EXECUTED a0009dd4: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED if ( !id ) return RTEMS_INVALID_ADDRESS; a0009dd8: e3a00009 mov r0, #9 <== NOT EXECUTED ); *id = the_timer->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } a0009ddc: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED =============================================================================== a0018050 : */ rtems_status_code rtems_timer_delete( rtems_id id ) { a0018050: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED a0018054: e1a01000 mov r1, r0 <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Timer_Control *) _Objects_Get( &_Timer_Information, id, location ); a0018058: e1a0200d mov r2, sp <== NOT EXECUTED a001805c: e59f0040 ldr r0, [pc, #64] ; a00180a4 <== NOT EXECUTED a0018060: eb000b10 bl a001aca8 <_Objects_Get> <== NOT EXECUTED Timer_Control *the_timer; Objects_Locations location; the_timer = _Timer_Get( id, &location ); switch ( location ) { a0018064: e59d5000 ldr r5, [sp] <== NOT EXECUTED a0018068: e1a04000 mov r4, r0 <== NOT EXECUTED a001806c: e3550000 cmp r5, #0 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a0018070: 13a00004 movne r0, #4 <== NOT EXECUTED { Timer_Control *the_timer; Objects_Locations location; the_timer = _Timer_Get( id, &location ); switch ( location ) { a0018074: 1a000009 bne a00180a0 <== NOT EXECUTED case OBJECTS_LOCAL: _Objects_Close( &_Timer_Information, &the_timer->Object ); a0018078: e1a01004 mov r1, r4 <== NOT EXECUTED a001807c: e59f0020 ldr r0, [pc, #32] ; a00180a4 <== NOT EXECUTED a0018080: eb0009fb bl a001a874 <_Objects_Close> <== NOT EXECUTED (void) _Watchdog_Remove( &the_timer->Ticker ); a0018084: e2840010 add r0, r4, #16 <== NOT EXECUTED a0018088: eb001269 bl a001ca34 <_Watchdog_Remove> <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Timer_Free ( Timer_Control *the_timer ) { _Objects_Free( &_Timer_Information, &the_timer->Object ); a001808c: e59f0010 ldr r0, [pc, #16] ; a00180a4 <== NOT EXECUTED a0018090: e1a01004 mov r1, r4 <== NOT EXECUTED a0018094: eb000a9b bl a001ab08 <_Objects_Free> <== NOT EXECUTED _Timer_Free( the_timer ); _Thread_Enable_dispatch(); a0018098: eb000e20 bl a001b920 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a001809c: e1a00005 mov r0, r5 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a00180a0: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED =============================================================================== a0009de8 : rtems_id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { a0009de8: e92d45f1 push {r0, r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED Timer_Control *the_timer; Objects_Locations location; ISR_Level level; if ( ticks == 0 ) a0009dec: e2516000 subs r6, r1, #0 <== NOT EXECUTED rtems_id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { a0009df0: e1a04000 mov r4, r0 <== NOT EXECUTED a0009df4: e1a05002 mov r5, r2 <== NOT EXECUTED a0009df8: e1a07003 mov r7, r3 <== NOT EXECUTED Timer_Control *the_timer; Objects_Locations location; ISR_Level level; if ( ticks == 0 ) return RTEMS_INVALID_NUMBER; a0009dfc: 03a0000a moveq r0, #10 <== NOT EXECUTED { Timer_Control *the_timer; Objects_Locations location; ISR_Level level; if ( ticks == 0 ) a0009e00: 0a000022 beq a0009e90 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; if ( !routine ) a0009e04: e3520000 cmp r2, #0 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; a0009e08: 03a00009 moveq r0, #9 <== NOT EXECUTED ISR_Level level; if ( ticks == 0 ) return RTEMS_INVALID_NUMBER; if ( !routine ) a0009e0c: 0a00001f beq a0009e90 <== NOT EXECUTED Objects_Id id, Objects_Locations *location ) { return (Timer_Control *) _Objects_Get( &_Timer_Information, id, location ); a0009e10: e59f007c ldr r0, [pc, #124] ; a0009e94 <== NOT EXECUTED a0009e14: e1a01004 mov r1, r4 <== NOT EXECUTED a0009e18: e1a0200d mov r2, sp <== NOT EXECUTED a0009e1c: eb00049a bl a000b08c <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_timer = _Timer_Get( id, &location ); switch ( location ) { a0009e20: e59d3000 ldr r3, [sp] <== NOT EXECUTED a0009e24: e1a08000 mov r8, r0 <== NOT EXECUTED a0009e28: e3530000 cmp r3, #0 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a0009e2c: 13a00004 movne r0, #4 <== NOT EXECUTED if ( !routine ) return RTEMS_INVALID_ADDRESS; the_timer = _Timer_Get( id, &location ); switch ( location ) { a0009e30: 1a000016 bne a0009e90 <== NOT EXECUTED case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); a0009e34: e288a010 add sl, r8, #16 <== NOT EXECUTED a0009e38: e1a0000a mov r0, sl <== NOT EXECUTED a0009e3c: eb000b33 bl a000cb10 <_Watchdog_Remove> <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a0009e40: e10f2000 mrs r2, CPSR <== NOT EXECUTED a0009e44: e3823080 orr r3, r2, #128 ; 0x80 <== NOT EXECUTED a0009e48: 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 ) { a0009e4c: e5983018 ldr r3, [r8, #24] <== NOT EXECUTED a0009e50: e3530000 cmp r3, #0 <== NOT EXECUTED a0009e54: 0a000001 beq a0009e60 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a0009e58: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED a0009e5c: ea000009 b a0009e88 <== 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; a0009e60: e5883038 str r3, [r8, #56] ; 0x38 <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; a0009e64: e5883018 str r3, [r8, #24] <== NOT EXECUTED the_watchdog->routine = routine; a0009e68: e588502c str r5, [r8, #44] ; 0x2c <== NOT EXECUTED the_watchdog->id = id; a0009e6c: e5884030 str r4, [r8, #48] ; 0x30 <== NOT EXECUTED the_watchdog->user_data = user_data; a0009e70: e5887034 str r7, [r8, #52] ; 0x34 <== NOT EXECUTED a0009e74: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); a0009e78: e59f0018 ldr r0, [pc, #24] ; a0009e98 <== NOT EXECUTED Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; a0009e7c: e588601c str r6, [r8, #28] <== NOT EXECUTED _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); a0009e80: e1a0100a mov r1, sl <== NOT EXECUTED a0009e84: eb000ac9 bl a000c9b0 <_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(); a0009e88: eb000779 bl a000bc74 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0009e8c: e3a00000 mov r0, #0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a0009e90: e8bd85f8 pop {r3, r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED =============================================================================== a001815c : rtems_id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) { a001815c: e92d4ff1 push {r0, r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED a0018160: e1a08003 mov r8, r3 <== NOT EXECUTED Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; if ( !_TOD_Is_set ) a0018164: e59f30c4 ldr r3, [pc, #196] ; a0018230 <== NOT EXECUTED rtems_id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) { a0018168: e1a04000 mov r4, r0 <== NOT EXECUTED a001816c: e1a06001 mov r6, r1 <== NOT EXECUTED Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; if ( !_TOD_Is_set ) a0018170: e5d33000 ldrb r3, [r3] <== NOT EXECUTED rtems_id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) { a0018174: e1a05002 mov r5, r2 <== NOT EXECUTED Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; if ( !_TOD_Is_set ) a0018178: e3530000 cmp r3, #0 <== NOT EXECUTED return RTEMS_NOT_DEFINED; a001817c: 03a0000b moveq r0, #11 <== NOT EXECUTED { Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; if ( !_TOD_Is_set ) a0018180: 0a000029 beq a001822c <== NOT EXECUTED return RTEMS_NOT_DEFINED; if ( !_TOD_Validate( wall_time ) ) a0018184: e1a00001 mov r0, r1 <== NOT EXECUTED a0018188: ebfff53a bl a0015678 <_TOD_Validate> <== NOT EXECUTED a001818c: e3500000 cmp r0, #0 <== NOT EXECUTED a0018190: 0a000024 beq a0018228 <== NOT EXECUTED return RTEMS_INVALID_CLOCK; if ( !routine ) a0018194: e3550000 cmp r5, #0 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; a0018198: 03a00009 moveq r0, #9 <== NOT EXECUTED return RTEMS_NOT_DEFINED; if ( !_TOD_Validate( wall_time ) ) return RTEMS_INVALID_CLOCK; if ( !routine ) a001819c: 0a000022 beq a001822c <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; seconds = _TOD_To_seconds( wall_time ); a00181a0: e1a00006 mov r0, r6 <== NOT EXECUTED a00181a4: ebfff510 bl a00155ec <_TOD_To_seconds> <== NOT EXECUTED if ( seconds <= _TOD_Seconds_since_epoch() ) a00181a8: e59f7084 ldr r7, [pc, #132] ; a0018234 <== NOT EXECUTED return RTEMS_INVALID_CLOCK; if ( !routine ) return RTEMS_INVALID_ADDRESS; seconds = _TOD_To_seconds( wall_time ); a00181ac: e1a06000 mov r6, r0 <== NOT EXECUTED if ( seconds <= _TOD_Seconds_since_epoch() ) a00181b0: e5973000 ldr r3, [r7] <== NOT EXECUTED a00181b4: e1500003 cmp r0, r3 <== NOT EXECUTED a00181b8: 9a00001a bls a0018228 <== NOT EXECUTED a00181bc: e59f0074 ldr r0, [pc, #116] ; a0018238 <== NOT EXECUTED a00181c0: e1a01004 mov r1, r4 <== NOT EXECUTED a00181c4: e1a0200d mov r2, sp <== NOT EXECUTED a00181c8: eb000ab6 bl a001aca8 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_CLOCK; the_timer = _Timer_Get( id, &location ); switch ( location ) { a00181cc: e59da000 ldr sl, [sp] <== NOT EXECUTED a00181d0: e1a09000 mov r9, r0 <== NOT EXECUTED a00181d4: e35a0000 cmp sl, #0 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a00181d8: 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 ) { a00181dc: 1a000012 bne a001822c <== NOT EXECUTED case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); a00181e0: e289b010 add fp, r9, #16 <== NOT EXECUTED a00181e4: e1a0000b mov r0, fp <== NOT EXECUTED a00181e8: eb001211 bl a001ca34 <_Watchdog_Remove> <== NOT EXECUTED the_timer->the_class = TIMER_TIME_OF_DAY; a00181ec: e3a03002 mov r3, #2 <== NOT EXECUTED a00181f0: e5893038 str r3, [r9, #56] ; 0x38 <== NOT EXECUTED _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); _Watchdog_Insert_seconds( a00181f4: e5973000 ldr r3, [r7] <== NOT EXECUTED ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog ); a00181f8: e59f003c ldr r0, [pc, #60] ; a001823c <== NOT EXECUTED a00181fc: e1a0100b mov r1, fp <== NOT EXECUTED a0018200: e0636006 rsb r6, r3, r6 <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; a0018204: e589a018 str sl, [r9, #24] <== NOT EXECUTED the_watchdog->routine = routine; a0018208: e589502c str r5, [r9, #44] ; 0x2c <== NOT EXECUTED the_watchdog->id = id; a001820c: e5894030 str r4, [r9, #48] ; 0x30 <== NOT EXECUTED the_watchdog->user_data = user_data; a0018210: e5898034 str r8, [r9, #52] ; 0x34 <== NOT EXECUTED Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; a0018214: e589601c str r6, [r9, #28] <== NOT EXECUTED _Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog ); a0018218: eb0011ad bl a001c8d4 <_Watchdog_Insert> <== NOT EXECUTED &the_timer->Ticker, seconds - _TOD_Seconds_since_epoch() ); _Thread_Enable_dispatch(); a001821c: eb000dbf bl a001b920 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0018220: e1a0000a mov r0, sl <== NOT EXECUTED a0018224: ea000000 b a001822c <== NOT EXECUTED if ( !routine ) return RTEMS_INVALID_ADDRESS; seconds = _TOD_To_seconds( wall_time ); if ( seconds <= _TOD_Seconds_since_epoch() ) return RTEMS_INVALID_CLOCK; a0018228: e3a00014 mov r0, #20 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a001822c: e8bd8ff8 pop {r3, r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED =============================================================================== a0018240 : rtems_status_code rtems_timer_get_information( rtems_id id, rtems_timer_information *the_info ) { a0018240: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED Timer_Control *the_timer; Objects_Locations location; if ( !the_info ) a0018244: e2514000 subs r4, r1, #0 <== NOT EXECUTED rtems_status_code rtems_timer_get_information( rtems_id id, rtems_timer_information *the_info ) { a0018248: e1a03000 mov r3, r0 <== NOT EXECUTED Timer_Control *the_timer; Objects_Locations location; if ( !the_info ) return RTEMS_INVALID_ADDRESS; a001824c: 03a00009 moveq r0, #9 <== NOT EXECUTED ) { Timer_Control *the_timer; Objects_Locations location; if ( !the_info ) a0018250: 0a000011 beq a001829c <== NOT EXECUTED a0018254: e59f0044 ldr r0, [pc, #68] ; a00182a0 <== NOT EXECUTED a0018258: e1a01003 mov r1, r3 <== NOT EXECUTED a001825c: e1a0200d mov r2, sp <== NOT EXECUTED a0018260: eb000a90 bl a001aca8 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_timer = _Timer_Get( id, &location ); switch ( location ) { a0018264: e59d5000 ldr r5, [sp] <== NOT EXECUTED a0018268: e3550000 cmp r5, #0 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a001826c: 13a00004 movne r0, #4 <== NOT EXECUTED if ( !the_info ) return RTEMS_INVALID_ADDRESS; the_timer = _Timer_Get( id, &location ); switch ( location ) { a0018270: 1a000009 bne a001829c <== NOT EXECUTED case OBJECTS_LOCAL: the_info->the_class = the_timer->the_class; a0018274: e5903038 ldr r3, [r0, #56] ; 0x38 <== NOT EXECUTED a0018278: e5843000 str r3, [r4] <== NOT EXECUTED the_info->initial = the_timer->Ticker.initial; a001827c: e590301c ldr r3, [r0, #28] <== NOT EXECUTED a0018280: e5843004 str r3, [r4, #4] <== NOT EXECUTED the_info->start_time = the_timer->Ticker.start_time; a0018284: e5903024 ldr r3, [r0, #36] ; 0x24 <== NOT EXECUTED a0018288: e5843008 str r3, [r4, #8] <== NOT EXECUTED the_info->stop_time = the_timer->Ticker.stop_time; a001828c: e5903028 ldr r3, [r0, #40] ; 0x28 <== NOT EXECUTED a0018290: e584300c str r3, [r4, #12] <== NOT EXECUTED _Thread_Enable_dispatch(); a0018294: eb000da1 bl a001b920 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0018298: e1a00005 mov r0, r5 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a001829c: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED =============================================================================== a00182a4 : rtems_status_code rtems_timer_ident( rtems_name name, rtems_id *id ) { a00182a4: e1a02000 mov r2, r0 <== NOT EXECUTED a00182a8: e1a03001 mov r3, r1 <== NOT EXECUTED a00182ac: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( a00182b0: e1a01002 mov r1, r2 <== NOT EXECUTED a00182b4: e59f0010 ldr r0, [pc, #16] ; a00182cc <== NOT EXECUTED a00182b8: e3e02102 mvn r2, #-2147483648 ; 0x80000000 <== NOT EXECUTED a00182bc: eb000ac8 bl a001ade4 <_Objects_Name_to_id_u32> <== NOT EXECUTED OBJECTS_SEARCH_LOCAL_NODE, id ); return _Status_Object_name_errors_to_status[ status ]; } a00182c0: e59f3008 ldr r3, [pc, #8] ; a00182d0 <== NOT EXECUTED a00182c4: e7930100 ldr r0, [r3, r0, lsl #2] <== NOT EXECUTED a00182c8: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED =============================================================================== a00188c4 : rtems_status_code rtems_timer_initiate_server( uint32_t priority, uint32_t stack_size, rtems_attribute attribute_set ) { a00188c4: e92d41f7 push {r0, r1, r2, r4, r5, r6, r7, r8, lr} <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid ( rtems_task_priority the_priority ) { return ( ( the_priority >= RTEMS_MINIMUM_PRIORITY ) && a00188c8: e3500000 cmp r0, #0 <== NOT EXECUTED a00188cc: e1a06001 mov r6, r1 <== NOT EXECUTED a00188d0: e1a08002 mov r8, r2 <== NOT EXECUTED a00188d4: 01a07000 moveq r7, r0 <== NOT EXECUTED a00188d8: 0a000004 beq a00188f0 <== NOT EXECUTED ( the_priority <= RTEMS_MAXIMUM_PRIORITY ) ); a00188dc: e59f3124 ldr r3, [pc, #292] ; a0018a08 <== NOT EXECUTED a00188e0: e5d37000 ldrb r7, [r3] <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid ( rtems_task_priority the_priority ) { return ( ( the_priority >= RTEMS_MINIMUM_PRIORITY ) && a00188e4: e1500007 cmp r0, r7 <== NOT EXECUTED a00188e8: 83a07000 movhi r7, #0 <== NOT EXECUTED a00188ec: 93a07001 movls r7, #1 <== NOT EXECUTED * Make sure the requested priority is valid. The if is * 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 ) ) { a00188f0: e21770ff ands r7, r7, #255 ; 0xff <== NOT EXECUTED a00188f4: 1a000003 bne a0018908 <== NOT EXECUTED if ( priority != RTEMS_TIMER_SERVER_DEFAULT_PRIORITY ) a00188f8: e3700001 cmn r0, #1 <== NOT EXECUTED return RTEMS_INVALID_PRIORITY; a00188fc: 13a00013 movne r0, #19 <== 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 ) a0018900: 1a00003f bne a0018a04 <== NOT EXECUTED a0018904: ea000000 b a001890c <== NOT EXECUTED * Make sure the requested priority is valid. The if is * 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 ) ) { a0018908: e1a07000 mov r7, r0 <== NOT EXECUTED /* * Just to make sure this is only called once. */ _Thread_Disable_dispatch(); tmpInitialized = initialized; a001890c: e59f40f8 ldr r4, [pc, #248] ; a0018a0c <== NOT EXECUTED } /* * Just to make sure this is only called once. */ _Thread_Disable_dispatch(); a0018910: ebffff0b bl a0018544 <_Thread_Disable_dispatch> <== NOT EXECUTED tmpInitialized = initialized; a0018914: e5d45000 ldrb r5, [r4] <== NOT EXECUTED initialized = true; a0018918: e3a03001 mov r3, #1 <== NOT EXECUTED a001891c: e5c43000 strb r3, [r4] <== NOT EXECUTED _Thread_Enable_dispatch(); a0018920: eb000bfe bl a001b920 <_Thread_Enable_dispatch> <== NOT EXECUTED if ( tmpInitialized ) a0018924: e3550000 cmp r5, #0 <== NOT EXECUTED return RTEMS_INCORRECT_STATE; a0018928: 13a0000e movne r0, #14 <== NOT EXECUTED _Thread_Disable_dispatch(); tmpInitialized = initialized; initialized = true; _Thread_Enable_dispatch(); if ( tmpInitialized ) a001892c: 1a000034 bne a0018a04 <== 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( a0018930: e28d3008 add r3, sp, #8 <== NOT EXECUTED a0018934: e58d3004 str r3, [sp, #4] <== NOT EXECUTED a0018938: e3888902 orr r8, r8, #32768 ; 0x8000 <== NOT EXECUTED a001893c: e59f00cc ldr r0, [pc, #204] ; a0018a10 <== NOT EXECUTED a0018940: e1a01007 mov r1, r7 <== NOT EXECUTED a0018944: e1a02006 mov r2, r6 <== NOT EXECUTED a0018948: e3a03c01 mov r3, #256 ; 0x100 <== NOT EXECUTED a001894c: e58d8000 str r8, [sp] <== NOT EXECUTED a0018950: ebfffb49 bl a001767c <== 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) { a0018954: e3500000 cmp r0, #0 <== NOT EXECUTED initialized = false; a0018958: 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) { a001895c: 1a000028 bne a0018a04 <== NOT EXECUTED */ #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return NULL; #endif return information->local_table[ index ]; a0018960: e59f20ac ldr r2, [pc, #172] ; a0018a14 <== NOT EXECUTED a0018964: e1dd10b8 ldrh r1, [sp, #8] <== NOT EXECUTED a0018968: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED a001896c: e592201c ldr r2, [r2, #28] <== 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( a0018970: e7921101 ldr r1, [r2, r1, lsl #2] <== NOT EXECUTED a0018974: e1a02004 mov r2, r4 <== NOT EXECUTED { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); head->next = tail; head->previous = NULL; a0018978: e5840038 str r0, [r4, #56] ; 0x38 <== NOT EXECUTED a001897c: e5a21004 str r1, [r2, #4]! <== NOT EXECUTED ) { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); head->next = tail; a0018980: e2841038 add r1, r4, #56 ; 0x38 <== NOT EXECUTED a0018984: e5841034 str r1, [r4, #52] ; 0x34 <== NOT EXECUTED head->previous = NULL; tail->previous = head; a0018988: e2841034 add r1, r4, #52 ; 0x34 <== NOT EXECUTED a001898c: e584103c str r1, [r4, #60] ; 0x3c <== NOT EXECUTED ) { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); head->next = tail; a0018990: e2841070 add r1, r4, #112 ; 0x70 <== NOT EXECUTED a0018994: e584106c str r1, [r4, #108] ; 0x6c <== NOT EXECUTED head->previous = NULL; tail->previous = head; a0018998: e284106c add r1, r4, #108 ; 0x6c <== NOT EXECUTED a001899c: e5841074 str r1, [r4, #116] ; 0x74 <== NOT EXECUTED Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; a00189a0: e59f1070 ldr r1, [pc, #112] ; a0018a18 <== NOT EXECUTED { Chain_Node *head = _Chain_Head( the_chain ); Chain_Node *tail = _Chain_Tail( the_chain ); head->next = tail; head->previous = NULL; a00189a4: e5840070 str r0, [r4, #112] ; 0x70 <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; a00189a8: e5840014 str r0, [r4, #20] <== NOT EXECUTED the_watchdog->routine = routine; a00189ac: e5841028 str r1, [r4, #40] ; 0x28 <== NOT EXECUTED a00189b0: e5841060 str r1, [r4, #96] ; 0x60 <== 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; a00189b4: e59f1060 ldr r1, [pc, #96] ; a0018a1c <== NOT EXECUTED the_watchdog->id = id; the_watchdog->user_data = user_data; a00189b8: e5840030 str r0, [r4, #48] ; 0x30 <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; a00189bc: e584004c str r0, [r4, #76] ; 0x4c <== NOT EXECUTED a00189c0: e5841008 str r1, [r4, #8] <== NOT EXECUTED ts->Interval_watchdogs.last_snapshot = _Watchdog_Ticks_since_boot; a00189c4: e59f1054 ldr r1, [pc, #84] ; a0018a20 <== NOT EXECUTED the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data; a00189c8: e5840068 str r0, [r4, #104] ; 0x68 <== NOT EXECUTED void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; the_watchdog->id = id; a00189cc: e584302c str r3, [r4, #44] ; 0x2c <== NOT EXECUTED a00189d0: e5911000 ldr r1, [r1] <== NOT EXECUTED a00189d4: e5843064 str r3, [r4, #100] ; 0x64 <== NOT EXECUTED a00189d8: e5841040 str r1, [r4, #64] ; 0x40 <== NOT EXECUTED ts->TOD_watchdogs.last_snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); a00189dc: e59f1040 ldr r1, [pc, #64] ; a0018a24 <== NOT EXECUTED a00189e0: e5911000 ldr r1, [r1] <== NOT EXECUTED a00189e4: e5841078 str r1, [r4, #120] ; 0x78 <== NOT EXECUTED ts->active = false; /* * The default timer server is now available. */ _Timer_server = ts; a00189e8: e59f1038 ldr r1, [pc, #56] ; a0018a28 <== NOT EXECUTED ts->schedule_operation = _Timer_server_Schedule_operation_method; ts->Interval_watchdogs.last_snapshot = _Watchdog_Ticks_since_boot; ts->TOD_watchdogs.last_snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); ts->insert_chain = NULL; a00189ec: e584007c str r0, [r4, #124] ; 0x7c <== NOT EXECUTED ts->active = false; a00189f0: e5c40080 strb r0, [r4, #128] ; 0x80 <== NOT EXECUTED /* * The default timer server is now available. */ _Timer_server = ts; a00189f4: e5812000 str r2, [r1] <== NOT EXECUTED /* * Start the timer server */ status = rtems_task_start( a00189f8: e1a00003 mov r0, r3 <== NOT EXECUTED a00189fc: e59f1028 ldr r1, [pc, #40] ; a0018a2c <== NOT EXECUTED a0018a00: ebfffccf bl a0017d44 <== NOT EXECUTED initialized = false; } #endif return status; } a0018a04: e8bd81fe pop {r1, r2, r3, r4, r5, r6, r7, r8, pc} <== NOT EXECUTED =============================================================================== a00182d4 : */ rtems_status_code rtems_timer_reset( rtems_id id ) { a00182d4: e92d4071 push {r0, r4, r5, r6, lr} <== NOT EXECUTED a00182d8: e1a01000 mov r1, r0 <== NOT EXECUTED a00182dc: e1a0200d mov r2, sp <== NOT EXECUTED a00182e0: e59f0078 ldr r0, [pc, #120] ; a0018360 <== NOT EXECUTED a00182e4: eb000a6f bl a001aca8 <_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 ) { a00182e8: e59d5000 ldr r5, [sp] <== NOT EXECUTED a00182ec: e1a06000 mov r6, r0 <== NOT EXECUTED a00182f0: e3550000 cmp r5, #0 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a00182f4: 13a04004 movne r4, #4 <== NOT EXECUTED Timer_Control *the_timer; Objects_Locations location; rtems_status_code status = RTEMS_SUCCESSFUL; the_timer = _Timer_Get( id, &location ); switch ( location ) { a00182f8: 1a000016 bne a0018358 <== NOT EXECUTED case OBJECTS_LOCAL: if ( the_timer->the_class == TIMER_INTERVAL ) { a00182fc: e5904038 ldr r4, [r0, #56] ; 0x38 <== NOT EXECUTED a0018300: e3540000 cmp r4, #0 <== NOT EXECUTED a0018304: 1a000006 bne a0018324 <== NOT EXECUTED _Watchdog_Remove( &the_timer->Ticker ); a0018308: e2806010 add r6, r0, #16 <== NOT EXECUTED a001830c: e1a00006 mov r0, r6 <== NOT EXECUTED a0018310: eb0011c7 bl a001ca34 <_Watchdog_Remove> <== NOT EXECUTED _Watchdog_Insert( &_Watchdog_Ticks_chain, &the_timer->Ticker ); a0018314: e59f0048 ldr r0, [pc, #72] ; a0018364 <== NOT EXECUTED a0018318: e1a01006 mov r1, r6 <== NOT EXECUTED a001831c: eb00116c bl a001c8d4 <_Watchdog_Insert> <== NOT EXECUTED a0018320: ea00000b b a0018354 <== NOT EXECUTED } else if ( the_timer->the_class == TIMER_INTERVAL_ON_TASK ) { a0018324: e3540001 cmp r4, #1 <== NOT EXECUTED /* * Must be dormant or time of day timer (e.g. TIMER_DORMANT, * TIMER_TIME_OF_DAY, or TIMER_TIME_OF_DAY_ON_TASK). We * can only reset active interval timers. */ status = RTEMS_NOT_DEFINED; a0018328: 13a0400b movne r4, #11 <== NOT EXECUTED case OBJECTS_LOCAL: if ( the_timer->the_class == TIMER_INTERVAL ) { _Watchdog_Remove( &the_timer->Ticker ); _Watchdog_Insert( &_Watchdog_Ticks_chain, &the_timer->Ticker ); } else if ( the_timer->the_class == TIMER_INTERVAL_ON_TASK ) { a001832c: 1a000008 bne a0018354 <== NOT EXECUTED Timer_server_Control *timer_server = _Timer_server; a0018330: e59f3030 ldr r3, [pc, #48] ; a0018368 <== NOT EXECUTED if ( !timer_server ) { _Thread_Enable_dispatch(); return RTEMS_INCORRECT_STATE; } #endif _Watchdog_Remove( &the_timer->Ticker ); a0018334: 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; a0018338: e5934000 ldr r4, [r3] <== NOT EXECUTED if ( !timer_server ) { _Thread_Enable_dispatch(); return RTEMS_INCORRECT_STATE; } #endif _Watchdog_Remove( &the_timer->Ticker ); a001833c: eb0011bc bl a001ca34 <_Watchdog_Remove> <== NOT EXECUTED (*timer_server->schedule_operation)( timer_server, the_timer ); a0018340: e5943004 ldr r3, [r4, #4] <== NOT EXECUTED a0018344: e1a00004 mov r0, r4 <== NOT EXECUTED a0018348: e1a01006 mov r1, r6 <== NOT EXECUTED a001834c: e12fff33 blx r3 <== NOT EXECUTED rtems_id id ) { Timer_Control *the_timer; Objects_Locations location; rtems_status_code status = RTEMS_SUCCESSFUL; a0018350: e1a04005 mov r4, r5 <== NOT EXECUTED * TIMER_TIME_OF_DAY, or TIMER_TIME_OF_DAY_ON_TASK). We * can only reset active interval timers. */ status = RTEMS_NOT_DEFINED; } _Thread_Enable_dispatch(); a0018354: eb000d71 bl a001b920 <_Thread_Enable_dispatch> <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a0018358: e1a00004 mov r0, r4 <== NOT EXECUTED a001835c: e8bd8078 pop {r3, r4, r5, r6, pc} <== NOT EXECUTED =============================================================================== a001836c : rtems_id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { a001836c: e92d45f1 push {r0, r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED a0018370: e1a08003 mov r8, r3 <== NOT EXECUTED Timer_Control *the_timer; Objects_Locations location; ISR_Level level; Timer_server_Control *timer_server = _Timer_server; a0018374: e59f30b8 ldr r3, [pc, #184] ; a0018434 <== NOT EXECUTED rtems_id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { a0018378: e1a05000 mov r5, r0 <== NOT EXECUTED a001837c: e1a04001 mov r4, r1 <== NOT EXECUTED Timer_Control *the_timer; Objects_Locations location; ISR_Level level; Timer_server_Control *timer_server = _Timer_server; a0018380: e5937000 ldr r7, [r3] <== NOT EXECUTED rtems_id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { a0018384: e1a06002 mov r6, r2 <== NOT EXECUTED Timer_Control *the_timer; Objects_Locations location; ISR_Level level; Timer_server_Control *timer_server = _Timer_server; if ( !timer_server ) a0018388: e3570000 cmp r7, #0 <== NOT EXECUTED return RTEMS_INCORRECT_STATE; a001838c: 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 ) a0018390: 0a000026 beq a0018430 <== NOT EXECUTED return RTEMS_INCORRECT_STATE; if ( !routine ) a0018394: e3520000 cmp r2, #0 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; a0018398: 03a00009 moveq r0, #9 <== NOT EXECUTED Timer_server_Control *timer_server = _Timer_server; if ( !timer_server ) return RTEMS_INCORRECT_STATE; if ( !routine ) a001839c: 0a000023 beq a0018430 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( ticks == 0 ) a00183a0: e3510000 cmp r1, #0 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; a00183a4: 03a0000a moveq r0, #10 <== NOT EXECUTED return RTEMS_INCORRECT_STATE; if ( !routine ) return RTEMS_INVALID_ADDRESS; if ( ticks == 0 ) a00183a8: 0a000020 beq a0018430 <== NOT EXECUTED a00183ac: e59f0084 ldr r0, [pc, #132] ; a0018438 <== NOT EXECUTED a00183b0: e1a01005 mov r1, r5 <== NOT EXECUTED a00183b4: e1a0200d mov r2, sp <== NOT EXECUTED a00183b8: eb000a3a bl a001aca8 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_NUMBER; the_timer = _Timer_Get( id, &location ); switch ( location ) { a00183bc: e59d3000 ldr r3, [sp] <== NOT EXECUTED a00183c0: e1a0a000 mov sl, r0 <== NOT EXECUTED a00183c4: e3530000 cmp r3, #0 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a00183c8: 13a00004 movne r0, #4 <== NOT EXECUTED if ( ticks == 0 ) return RTEMS_INVALID_NUMBER; the_timer = _Timer_Get( id, &location ); switch ( location ) { a00183cc: 1a000017 bne a0018430 <== NOT EXECUTED case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); a00183d0: e28a0010 add r0, sl, #16 <== NOT EXECUTED a00183d4: eb001196 bl a001ca34 <_Watchdog_Remove> <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; __asm__ volatile ( a00183d8: e10f3000 mrs r3, CPSR <== NOT EXECUTED a00183dc: e3832080 orr r2, r3, #128 ; 0x80 <== NOT EXECUTED a00183e0: e129f002 msr CPSR_fc, r2 <== 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 ) { a00183e4: e59a2018 ldr r2, [sl, #24] <== NOT EXECUTED a00183e8: e3520000 cmp r2, #0 <== NOT EXECUTED a00183ec: 0a000001 beq a00183f8 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; __asm__ volatile ( a00183f0: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED a00183f4: ea00000b b a0018428 <== 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; a00183f8: e3a01001 mov r1, #1 <== NOT EXECUTED a00183fc: e58a1038 str r1, [sl, #56] ; 0x38 <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; a0018400: e58a2018 str r2, [sl, #24] <== NOT EXECUTED the_watchdog->routine = routine; a0018404: e58a602c str r6, [sl, #44] ; 0x2c <== NOT EXECUTED the_watchdog->id = id; a0018408: e58a5030 str r5, [sl, #48] ; 0x30 <== NOT EXECUTED the_watchdog->user_data = user_data; a001840c: e58a8034 str r8, [sl, #52] ; 0x34 <== NOT EXECUTED _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); the_timer->Ticker.initial = ticks; a0018410: e58a401c str r4, [sl, #28] <== NOT EXECUTED a0018414: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED _ISR_Enable( level ); (*timer_server->schedule_operation)( timer_server, the_timer ); a0018418: e5973004 ldr r3, [r7, #4] <== NOT EXECUTED a001841c: e1a00007 mov r0, r7 <== NOT EXECUTED a0018420: e1a0100a mov r1, sl <== NOT EXECUTED a0018424: e12fff33 blx r3 <== NOT EXECUTED _Thread_Enable_dispatch(); a0018428: eb000d3c bl a001b920 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a001842c: e3a00000 mov r0, #0 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a0018430: e8bd85f8 pop {r3, r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED =============================================================================== a001843c : rtems_id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) { a001843c: e92d4ff1 push {r0, r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED a0018440: e1a0a003 mov sl, r3 <== NOT EXECUTED Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; Timer_server_Control *timer_server = _Timer_server; a0018444: e59f30d8 ldr r3, [pc, #216] ; a0018524 <== NOT EXECUTED rtems_id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) { a0018448: e1a04000 mov r4, r0 <== NOT EXECUTED a001844c: e1a07001 mov r7, r1 <== NOT EXECUTED Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; Timer_server_Control *timer_server = _Timer_server; a0018450: e5936000 ldr r6, [r3] <== NOT EXECUTED rtems_id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) { a0018454: e1a05002 mov r5, r2 <== NOT EXECUTED Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; Timer_server_Control *timer_server = _Timer_server; if ( !timer_server ) a0018458: e3560000 cmp r6, #0 <== NOT EXECUTED return RTEMS_INCORRECT_STATE; a001845c: 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 ) a0018460: 0a00002e beq a0018520 <== NOT EXECUTED return RTEMS_INCORRECT_STATE; if ( !_TOD_Is_set ) a0018464: e59f30bc ldr r3, [pc, #188] ; a0018528 <== NOT EXECUTED a0018468: e5d33000 ldrb r3, [r3] <== NOT EXECUTED a001846c: e3530000 cmp r3, #0 <== NOT EXECUTED return RTEMS_NOT_DEFINED; a0018470: 03a0000b moveq r0, #11 <== NOT EXECUTED Timer_server_Control *timer_server = _Timer_server; if ( !timer_server ) return RTEMS_INCORRECT_STATE; if ( !_TOD_Is_set ) a0018474: 0a000029 beq a0018520 <== NOT EXECUTED return RTEMS_NOT_DEFINED; if ( !routine ) a0018478: e3520000 cmp r2, #0 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; a001847c: 03a00009 moveq r0, #9 <== NOT EXECUTED return RTEMS_INCORRECT_STATE; if ( !_TOD_Is_set ) return RTEMS_NOT_DEFINED; if ( !routine ) a0018480: 0a000026 beq a0018520 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !_TOD_Validate( wall_time ) ) a0018484: e1a00001 mov r0, r1 <== NOT EXECUTED a0018488: ebfff47a bl a0015678 <_TOD_Validate> <== NOT EXECUTED a001848c: e3500000 cmp r0, #0 <== NOT EXECUTED a0018490: 0a000021 beq a001851c <== NOT EXECUTED return RTEMS_INVALID_CLOCK; seconds = _TOD_To_seconds( wall_time ); a0018494: e1a00007 mov r0, r7 <== NOT EXECUTED a0018498: ebfff453 bl a00155ec <_TOD_To_seconds> <== NOT EXECUTED if ( seconds <= _TOD_Seconds_since_epoch() ) a001849c: e59f8088 ldr r8, [pc, #136] ; a001852c <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !_TOD_Validate( wall_time ) ) return RTEMS_INVALID_CLOCK; seconds = _TOD_To_seconds( wall_time ); a00184a0: e1a07000 mov r7, r0 <== NOT EXECUTED if ( seconds <= _TOD_Seconds_since_epoch() ) a00184a4: e5983000 ldr r3, [r8] <== NOT EXECUTED a00184a8: e1500003 cmp r0, r3 <== NOT EXECUTED a00184ac: 9a00001a bls a001851c <== NOT EXECUTED a00184b0: e59f0078 ldr r0, [pc, #120] ; a0018530 <== NOT EXECUTED a00184b4: e1a01004 mov r1, r4 <== NOT EXECUTED a00184b8: e1a0200d mov r2, sp <== NOT EXECUTED a00184bc: eb0009f9 bl a001aca8 <_Objects_Get> <== NOT EXECUTED return RTEMS_INVALID_CLOCK; the_timer = _Timer_Get( id, &location ); switch ( location ) { a00184c0: e59d9000 ldr r9, [sp] <== NOT EXECUTED a00184c4: e1a0b000 mov fp, r0 <== NOT EXECUTED a00184c8: e3590000 cmp r9, #0 <== NOT EXECUTED #endif case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; a00184cc: 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 ) { a00184d0: 1a000012 bne a0018520 <== NOT EXECUTED case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); a00184d4: e28b0010 add r0, fp, #16 <== NOT EXECUTED a00184d8: eb001155 bl a001ca34 <_Watchdog_Remove> <== NOT EXECUTED the_timer->the_class = TIMER_TIME_OF_DAY_ON_TASK; a00184dc: e3a03003 mov r3, #3 <== NOT EXECUTED a00184e0: e58b3038 str r3, [fp, #56] ; 0x38 <== NOT EXECUTED _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); the_timer->Ticker.initial = seconds - _TOD_Seconds_since_epoch(); a00184e4: e5983000 ldr r3, [r8] <== NOT EXECUTED (*timer_server->schedule_operation)( timer_server, the_timer ); a00184e8: e1a00006 mov r0, r6 <== NOT EXECUTED a00184ec: e1a0100b mov r1, fp <== 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(); a00184f0: e0637007 rsb r7, r3, r7 <== NOT EXECUTED Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; a00184f4: e58b9018 str r9, [fp, #24] <== NOT EXECUTED (*timer_server->schedule_operation)( timer_server, the_timer ); a00184f8: e5963004 ldr r3, [r6, #4] <== NOT EXECUTED the_watchdog->routine = routine; a00184fc: e58b502c str r5, [fp, #44] ; 0x2c <== NOT EXECUTED the_watchdog->id = id; a0018500: e58b4030 str r4, [fp, #48] ; 0x30 <== NOT EXECUTED the_watchdog->user_data = user_data; a0018504: e58ba034 str sl, [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(); a0018508: e58b701c str r7, [fp, #28] <== NOT EXECUTED (*timer_server->schedule_operation)( timer_server, the_timer ); a001850c: e12fff33 blx r3 <== NOT EXECUTED _Thread_Enable_dispatch(); a0018510: eb000d02 bl a001b920 <_Thread_Enable_dispatch> <== NOT EXECUTED return RTEMS_SUCCESSFUL; a0018514: e1a00009 mov r0, r9 <== NOT EXECUTED a0018518: ea000000 b a0018520 <== NOT EXECUTED if ( !_TOD_Validate( wall_time ) ) return RTEMS_INVALID_CLOCK; seconds = _TOD_To_seconds( wall_time ); if ( seconds <= _TOD_Seconds_since_epoch() ) return RTEMS_INVALID_CLOCK; a001851c: e3a00014 mov r0, #20 <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } a0018520: e8bd8ff8 pop {r3, r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED =============================================================================== a0009e68 : */ bool rtems_workspace_allocate( uintptr_t bytes, void **pointer ) { a0009e68: e92d4010 push {r4, lr} <== NOT EXECUTED void *ptr; /* * check the arguments */ if ( !pointer ) a0009e6c: e2514000 subs r4, r1, #0 <== NOT EXECUTED */ bool rtems_workspace_allocate( uintptr_t bytes, void **pointer ) { a0009e70: e1a03000 mov r3, r0 <== NOT EXECUTED void *ptr; /* * check the arguments */ if ( !pointer ) a0009e74: 0a00000c beq a0009eac <== NOT EXECUTED return false; if ( !bytes ) a0009e78: e3500000 cmp r0, #0 <== NOT EXECUTED return false; a0009e7c: 01a00000 moveq r0, r0 <== NOT EXECUTED * check the arguments */ if ( !pointer ) return false; if ( !bytes ) a0009e80: 0a00000b beq a0009eb4 <== 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 ); a0009e84: e3a02000 mov r2, #0 <== NOT EXECUTED a0009e88: e1a01003 mov r1, r3 <== NOT EXECUTED a0009e8c: e59f0024 ldr r0, [pc, #36] ; a0009eb8 <== NOT EXECUTED a0009e90: e1a03002 mov r3, r2 <== NOT EXECUTED a0009e94: eb00054a bl a000b3c4 <_Protected_heap_Allocate_aligned_with_boundary><== NOT EXECUTED /* * Allocate the memory */ ptr = _Protected_heap_Allocate( &_Workspace_Area, (intptr_t) bytes ); if (!ptr) a0009e98: e3500000 cmp r0, #0 <== NOT EXECUTED a0009e9c: 0a000004 beq a0009eb4 <== NOT EXECUTED return false; *pointer = ptr; a0009ea0: e5840000 str r0, [r4] <== NOT EXECUTED return true; a0009ea4: e3a00001 mov r0, #1 <== NOT EXECUTED a0009ea8: e8bd8010 pop {r4, pc} <== NOT EXECUTED /* * check the arguments */ if ( !pointer ) return false; a0009eac: e1a00004 mov r0, r4 <== NOT EXECUTED a0009eb0: e8bd8010 pop {r4, pc} <== NOT EXECUTED if (!ptr) return false; *pointer = ptr; return true; } a0009eb4: e8bd8010 pop {r4, pc} <== NOT EXECUTED =============================================================================== a0009ebc : * _Workspace_Allocate */ bool rtems_workspace_free( void *pointer ) { a0009ebc: e1a01000 mov r1, r0 <== NOT EXECUTED return _Protected_heap_Free( &_Workspace_Area, pointer ); a0009ec0: e59f0000 ldr r0, [pc, #0] ; a0009ec8 <== NOT EXECUTED a0009ec4: ea000551 b a000b410 <_Protected_heap_Free> <== NOT EXECUTED =============================================================================== a0009e54 : bool rtems_workspace_get_information( Heap_Information_block *the_info ) { if ( !the_info ) a0009e54: e2501000 subs r1, r0, #0 <== NOT EXECUTED a0009e58: 012fff1e bxeq lr <== NOT EXECUTED return false; return _Protected_heap_Get_information( &_Workspace_Area, the_info ); a0009e5c: e59f0000 ldr r0, [pc, #0] ; a0009e64 <== NOT EXECUTED a0009e60: ea000579 b a000b44c <_Protected_heap_Get_information> <== NOT EXECUTED