40007514 <_API_extensions_Run_postdriver>: * * _API_extensions_Run_postdriver */ void _API_extensions_Run_postdriver( void ) { 40007514: 9d e3 bf 98 save %sp, -104, %sp Chain_Node *the_node; API_extensions_Control *the_extension; for ( the_node = _API_extensions_List.first ; 40007518: 03 10 00 68 sethi %hi(0x4001a000), %g1 4000751c: e0 00 61 30 ld [ %g1 + 0x130 ], %l0 ! 4001a130 <_API_extensions_List> */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 40007520: 03 10 00 68 sethi %hi(0x4001a000), %g1 40007524: 10 80 00 08 b 40007544 <_API_extensions_Run_postdriver+0x30> 40007528: a2 10 61 34 or %g1, 0x134, %l1 ! 4001a134 <_API_extensions_List+0x4> !_Chain_Is_tail( &_API_extensions_List, the_node ) ; the_node = the_node->next ) { the_extension = (API_extensions_Control *) the_node; if ( the_extension->postdriver_hook ) 4000752c: 80 a0 60 00 cmp %g1, 0 40007530: 22 80 00 05 be,a 40007544 <_API_extensions_Run_postdriver+0x30> 40007534: e0 04 00 00 ld [ %l0 ], %l0 <== NOT EXECUTED (*the_extension->postdriver_hook)(); 40007538: 9f c0 40 00 call %g1 4000753c: 01 00 00 00 nop Chain_Node *the_node; API_extensions_Control *the_extension; for ( the_node = _API_extensions_List.first ; !_Chain_Is_tail( &_API_extensions_List, the_node ) ; the_node = the_node->next ) { 40007540: e0 04 00 00 ld [ %l0 ], %l0 { Chain_Node *the_node; API_extensions_Control *the_extension; for ( the_node = _API_extensions_List.first ; !_Chain_Is_tail( &_API_extensions_List, the_node ) ; 40007544: 80 a4 00 11 cmp %l0, %l1 40007548: 32 bf ff f9 bne,a 4000752c <_API_extensions_Run_postdriver+0x18> 4000754c: c2 04 20 0c ld [ %l0 + 0xc ], %g1 the_extension = (API_extensions_Control *) the_node; if ( the_extension->postdriver_hook ) (*the_extension->postdriver_hook)(); } } 40007550: 81 c7 e0 08 ret 40007554: 81 e8 00 00 restore 400075b8 <_API_extensions_Run_postswitch>: * * _API_extensions_Run_postswitch */ void _API_extensions_Run_postswitch( void ) { 400075b8: 9d e3 bf 98 save %sp, -104, %sp Chain_Node *the_node; API_extensions_Control *the_extension; for ( the_node = _API_extensions_List.first ; 400075bc: 03 10 00 68 sethi %hi(0x4001a000), %g1 400075c0: e0 00 61 30 ld [ %g1 + 0x130 ], %l0 ! 4001a130 <_API_extensions_List> the_node = the_node->next ) { the_extension = (API_extensions_Control *) the_node; if ( the_extension->postswitch_hook ) (*the_extension->postswitch_hook)( _Thread_Executing ); 400075c4: 23 10 00 67 sethi %hi(0x40019c00), %l1 400075c8: 03 10 00 68 sethi %hi(0x4001a000), %g1 400075cc: 10 80 00 08 b 400075ec <_API_extensions_Run_postswitch+0x34> 400075d0: a4 10 61 34 or %g1, 0x134, %l2 ! 4001a134 <_API_extensions_List+0x4> !_Chain_Is_tail( &_API_extensions_List, the_node ) ; the_node = the_node->next ) { the_extension = (API_extensions_Control *) the_node; if ( the_extension->postswitch_hook ) 400075d4: 80 a0 60 00 cmp %g1, 0 400075d8: 22 80 00 05 be,a 400075ec <_API_extensions_Run_postswitch+0x34> 400075dc: e0 04 00 00 ld [ %l0 ], %l0 <== NOT EXECUTED (*the_extension->postswitch_hook)( _Thread_Executing ); 400075e0: 9f c0 40 00 call %g1 400075e4: d0 04 63 7c ld [ %l1 + 0x37c ], %o0 Chain_Node *the_node; API_extensions_Control *the_extension; for ( the_node = _API_extensions_List.first ; !_Chain_Is_tail( &_API_extensions_List, the_node ) ; the_node = the_node->next ) { 400075e8: e0 04 00 00 ld [ %l0 ], %l0 { Chain_Node *the_node; API_extensions_Control *the_extension; for ( the_node = _API_extensions_List.first ; !_Chain_Is_tail( &_API_extensions_List, the_node ) ; 400075ec: 80 a4 00 12 cmp %l0, %l2 400075f0: 32 bf ff f9 bne,a 400075d4 <_API_extensions_Run_postswitch+0x1c> 400075f4: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 the_extension = (API_extensions_Control *) the_node; if ( the_extension->postswitch_hook ) (*the_extension->postswitch_hook)( _Thread_Executing ); } } 400075f8: 81 c7 e0 08 ret 400075fc: 81 e8 00 00 restore 40007574 <_API_extensions_Run_predriver>: * * _API_extensions_Run_predriver */ void _API_extensions_Run_predriver( void ) { 40007574: 9d e3 bf 98 save %sp, -104, %sp Chain_Node *the_node; API_extensions_Control *the_extension; for ( the_node = _API_extensions_List.first ; 40007578: 03 10 00 68 sethi %hi(0x4001a000), %g1 4000757c: e0 00 61 30 ld [ %g1 + 0x130 ], %l0 ! 4001a130 <_API_extensions_List> 40007580: 03 10 00 68 sethi %hi(0x4001a000), %g1 40007584: 10 80 00 08 b 400075a4 <_API_extensions_Run_predriver+0x30> 40007588: a2 10 61 34 or %g1, 0x134, %l1 ! 4001a134 <_API_extensions_List+0x4> !_Chain_Is_tail( &_API_extensions_List, the_node ) ; the_node = the_node->next ) { the_extension = (API_extensions_Control *) the_node; if ( the_extension->predriver_hook ) 4000758c: 80 a0 60 00 cmp %g1, 0 40007590: 22 80 00 05 be,a 400075a4 <_API_extensions_Run_predriver+0x30> 40007594: e0 04 00 00 ld [ %l0 ], %l0 (*the_extension->predriver_hook)(); 40007598: 9f c0 40 00 call %g1 <== NOT EXECUTED 4000759c: 01 00 00 00 nop <== NOT EXECUTED Chain_Node *the_node; API_extensions_Control *the_extension; for ( the_node = _API_extensions_List.first ; !_Chain_Is_tail( &_API_extensions_List, the_node ) ; the_node = the_node->next ) { 400075a0: e0 04 00 00 ld [ %l0 ], %l0 <== NOT EXECUTED { Chain_Node *the_node; API_extensions_Control *the_extension; for ( the_node = _API_extensions_List.first ; !_Chain_Is_tail( &_API_extensions_List, the_node ) ; 400075a4: 80 a4 00 11 cmp %l0, %l1 400075a8: 32 bf ff f9 bne,a 4000758c <_API_extensions_Run_predriver+0x18> 400075ac: c2 04 20 08 ld [ %l0 + 8 ], %g1 the_extension = (API_extensions_Control *) the_node; if ( the_extension->predriver_hook ) (*the_extension->predriver_hook)(); } } 400075b0: 81 c7 e0 08 ret 400075b4: 81 e8 00 00 restore 400142c0 <_CORE_message_queue_Broadcast>: size_t size, Objects_Id id, CORE_message_queue_API_mp_support_callout api_message_queue_mp_support, uint32_t *count ) { 400142c0: 9d e3 bf 98 save %sp, -104, %sp Thread_Control *the_thread; uint32_t number_broadcasted; Thread_Wait_information *waitp; if ( size > the_message_queue->maximum_message_size ) { 400142c4: c2 06 20 4c ld [ %i0 + 0x4c ], %g1 size_t size, Objects_Id id, CORE_message_queue_API_mp_support_callout api_message_queue_mp_support, uint32_t *count ) { 400142c8: a4 10 00 18 mov %i0, %l2 Thread_Control *the_thread; uint32_t number_broadcasted; Thread_Wait_information *waitp; if ( size > the_message_queue->maximum_message_size ) { 400142cc: 80 a6 80 01 cmp %i2, %g1 400142d0: 18 80 00 17 bgu 4001432c <_CORE_message_queue_Broadcast+0x6c> 400142d4: b0 10 20 01 mov 1, %i0 * 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 ) { 400142d8: c2 04 a0 48 ld [ %l2 + 0x48 ], %g1 400142dc: 80 a0 60 00 cmp %g1, 0 400142e0: 02 80 00 0a be 40014308 <_CORE_message_queue_Broadcast+0x48> 400142e4: a2 10 20 00 clr %l1 *count = 0; 400142e8: c0 27 40 00 clr [ %i5 ] <== NOT EXECUTED 400142ec: 81 c7 e0 08 ret <== NOT EXECUTED 400142f0: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED const void *source, void *destination, size_t size ) { memcpy(destination, source, size); 400142f4: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 400142f8: 40 00 20 07 call 4001c314 400142fc: a2 04 60 01 inc %l1 buffer, waitp->return_argument, size ); *(uint32_t *)the_thread->Wait.return_argument_1 = size; 40014300: c2 04 20 2c ld [ %l0 + 0x2c ], %g1 40014304: f4 20 40 00 st %i2, [ %g1 ] * There must be no pending messages if there is a thread waiting to * receive a message. */ number_broadcasted = 0; while ((the_thread = _Thread_queue_Dequeue(&the_message_queue->Wait_queue))) { 40014308: 40 00 0b 3f call 40017004 <_Thread_queue_Dequeue> 4001430c: 90 10 00 12 mov %l2, %o0 40014310: 92 10 00 19 mov %i1, %o1 40014314: a0 10 00 08 mov %o0, %l0 40014318: 80 a2 20 00 cmp %o0, 0 4001431c: 12 bf ff f6 bne 400142f4 <_CORE_message_queue_Broadcast+0x34> 40014320: 94 10 00 1a mov %i2, %o2 if ( !_Objects_Is_local_id( the_thread->Object.id ) ) (*api_message_queue_mp_support) ( the_thread, id ); #endif } *count = number_broadcasted; 40014324: e2 27 40 00 st %l1, [ %i5 ] 40014328: b0 10 20 00 clr %i0 return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; } 4001432c: 81 c7 e0 08 ret 40014330: 81 e8 00 00 restore 400143f0 <_CORE_message_queue_Initialize>: CORE_message_queue_Control *the_message_queue, CORE_message_queue_Attributes *the_message_queue_attributes, uint32_t maximum_pending_messages, uint32_t maximum_message_size ) { 400143f0: 9d e3 bf 98 save %sp, -104, %sp uint32_t message_buffering_required; uint32_t allocated_message_size; the_message_queue->maximum_pending_messages = maximum_pending_messages; the_message_queue->number_of_pending_messages = 0; 400143f4: c0 26 20 48 clr [ %i0 + 0x48 ] ) { uint32_t message_buffering_required; uint32_t allocated_message_size; the_message_queue->maximum_pending_messages = maximum_pending_messages; 400143f8: f4 26 20 44 st %i2, [ %i0 + 0x44 ] the_message_queue->number_of_pending_messages = 0; the_message_queue->maximum_message_size = maximum_message_size; 400143fc: f6 26 20 4c st %i3, [ %i0 + 0x4c ] CORE_message_queue_Control *the_message_queue, CORE_message_queue_Notify_Handler the_handler, void *the_argument ) { the_message_queue->notify_handler = the_handler; 40014400: c0 26 20 60 clr [ %i0 + 0x60 ] the_message_queue->notify_argument = the_argument; 40014404: c0 26 20 64 clr [ %i0 + 0x64 ] * 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)) { 40014408: 80 8e e0 03 btst 3, %i3 4001440c: 02 80 00 07 be 40014428 <_CORE_message_queue_Initialize+0x38> 40014410: a0 10 00 1b mov %i3, %l0 allocated_message_size += sizeof(uint32_t); 40014414: 82 06 e0 04 add %i3, 4, %g1 allocated_message_size &= ~(sizeof(uint32_t) - 1); 40014418: a0 08 7f fc and %g1, -4, %l0 } if (allocated_message_size < maximum_message_size) 4001441c: 80 a4 00 1b cmp %l0, %i3 40014420: 0a 80 00 24 bcs 400144b0 <_CORE_message_queue_Initialize+0xc0> 40014424: 01 00 00 00 nop /* * Calculate how much total memory is required for message buffering and * check for overflow on the multiplication. */ message_buffering_required = maximum_pending_messages * 40014428: b6 04 20 14 add %l0, 0x14, %i3 4001442c: 92 10 00 1a mov %i2, %o1 40014430: 40 00 40 8e call 40024668 <.umul> 40014434: 90 10 00 1b mov %i3, %o0 (allocated_message_size + sizeof(CORE_message_queue_Buffer_control)); if (message_buffering_required < allocated_message_size) 40014438: 80 a2 00 10 cmp %o0, %l0 4001443c: 0a 80 00 1d bcs 400144b0 <_CORE_message_queue_Initialize+0xc0> 40014440: 92 10 00 08 mov %o0, %o1 RTEMS_INLINE_ROUTINE void *_Workspace_Allocate( size_t size ) { return _Heap_Allocate( &_Workspace_Area, size ); 40014444: 11 10 00 cc sethi %hi(0x40033000), %o0 40014448: 40 00 02 20 call 40014cc8 <_Heap_Allocate> 4001444c: 90 12 22 dc or %o0, 0x2dc, %o0 ! 400332dc <_Workspace_Area> * Attempt to allocate the message memory */ the_message_queue->message_buffers = (CORE_message_queue_Buffer *) _Workspace_Allocate( message_buffering_required ); if (the_message_queue->message_buffers == 0) 40014450: 80 a2 20 00 cmp %o0, 0 40014454: 02 80 00 17 be 400144b0 <_CORE_message_queue_Initialize+0xc0> 40014458: d0 26 20 5c st %o0, [ %i0 + 0x5c ] /* * Initialize the pool of inactive messages, pending messages, * and set of waiting threads. */ _Chain_Initialize ( 4001445c: 92 10 00 08 mov %o0, %o1 40014460: 94 10 00 1a mov %i2, %o2 40014464: 90 06 20 68 add %i0, 0x68, %o0 40014468: 7f ff ff 88 call 40014288 <_Chain_Initialize> 4001446c: 96 10 00 1b mov %i3, %o3 allocated_message_size + sizeof( CORE_message_queue_Buffer_control ) ); _Chain_Initialize_empty( &the_message_queue->Pending_messages ); _Thread_queue_Initialize( 40014470: c2 06 40 00 ld [ %i1 ], %g1 RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 40014474: c0 26 20 54 clr [ %i0 + 0x54 ] 40014478: 82 18 60 01 xor %g1, 1, %g1 4001447c: 80 a0 00 01 cmp %g0, %g1 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 40014480: 82 06 20 54 add %i0, 0x54, %g1 40014484: c2 26 20 50 st %g1, [ %i0 + 0x50 ] the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 40014488: 82 06 20 50 add %i0, 0x50, %g1 4001448c: 90 10 00 18 mov %i0, %o0 40014490: c2 26 20 58 st %g1, [ %i0 + 0x58 ] 40014494: 92 60 3f ff subx %g0, -1, %o1 40014498: 94 10 20 80 mov 0x80, %o2 4001449c: 96 10 20 06 mov 6, %o3 400144a0: 40 00 0c 2e call 40017558 <_Thread_queue_Initialize> 400144a4: b0 10 20 01 mov 1, %i0 400144a8: 81 c7 e0 08 ret 400144ac: 81 e8 00 00 restore STATES_WAITING_FOR_MESSAGE, CORE_MESSAGE_QUEUE_STATUS_TIMEOUT ); return TRUE; } 400144b0: 81 c7 e0 08 ret <== NOT EXECUTED 400144b4: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 40016830 <_CORE_message_queue_Insert_message>: void _CORE_message_queue_Insert_message( CORE_message_queue_Control *the_message_queue, CORE_message_queue_Buffer_control *the_message, CORE_message_queue_Submit_types submit_type ) { 40016830: 9d e3 bf 98 save %sp, -104, %sp ISR_Level level; boolean notify = FALSE; the_message->priority = submit_type; switch ( submit_type ) { 40016834: 03 20 00 00 sethi %hi(0x80000000), %g1 40016838: 80 a6 80 01 cmp %i2, %g1 4001683c: 02 80 00 16 be 40016894 <_CORE_message_queue_Insert_message+0x64> 40016840: f4 26 60 08 st %i2, [ %i1 + 8 ] 40016844: 82 00 7c 00 add %g1, -1024, %g1 40016848: 82 10 63 ff or %g1, 0x3ff, %g1 4001684c: 80 a6 80 01 cmp %i2, %g1 40016850: 32 80 00 20 bne,a 400168d0 <_CORE_message_queue_Insert_message+0xa0> 40016854: e0 06 20 50 ld [ %i0 + 0x50 ], %l0 <== NOT EXECUTED case CORE_MESSAGE_QUEUE_SEND_REQUEST: _ISR_Disable( level ); 40016858: 7f ff af 80 call 40002658 4001685c: 01 00 00 00 nop Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 40016860: 82 06 20 54 add %i0, 0x54, %g1 if ( the_message_queue->number_of_pending_messages++ == 0 ) 40016864: c4 06 20 48 ld [ %i0 + 0x48 ], %g2 40016868: c2 26 40 00 st %g1, [ %i1 ] old_last_node = the_chain->last; 4001686c: c2 06 20 58 ld [ %i0 + 0x58 ], %g1 the_chain->last = the_node; 40016870: f2 26 20 58 st %i1, [ %i0 + 0x58 ] 40016874: 84 00 a0 01 inc %g2 old_last_node->next = the_node; the_node->previous = old_last_node; 40016878: c2 26 60 04 st %g1, [ %i1 + 4 ] Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); old_last_node = the_chain->last; the_chain->last = the_node; old_last_node->next = the_node; 4001687c: f2 20 40 00 st %i1, [ %g1 ] 40016880: c4 26 20 48 st %g2, [ %i0 + 0x48 ] 40016884: 82 18 a0 01 xor %g2, 1, %g1 40016888: 80 a0 00 01 cmp %g0, %g1 4001688c: a0 60 3f ff subx %g0, -1, %l0 notify = TRUE; _CORE_message_queue_Append_unprotected(the_message_queue, the_message); _ISR_Enable( level ); 40016890: 30 80 00 27 b,a 4001692c <_CORE_message_queue_Insert_message+0xfc> break; case CORE_MESSAGE_QUEUE_URGENT_REQUEST: _ISR_Disable( level ); 40016894: 7f ff af 71 call 40002658 40016898: 01 00 00 00 nop ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; 4001689c: c6 06 20 50 ld [ %i0 + 0x50 ], %g3 if ( the_message_queue->number_of_pending_messages++ == 0 ) 400168a0: c4 06 20 48 ld [ %i0 + 0x48 ], %g2 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Head( Chain_Control *the_chain ) { return (Chain_Node *) the_chain; 400168a4: 82 06 20 50 add %i0, 0x50, %g1 { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; after_node->next = the_node; 400168a8: f2 26 20 50 st %i1, [ %i0 + 0x50 ] Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; 400168ac: c2 26 60 04 st %g1, [ %i1 + 4 ] 400168b0: 84 00 a0 01 inc %g2 before_node = after_node->next; after_node->next = the_node; the_node->next = before_node; before_node->previous = the_node; 400168b4: f2 20 e0 04 st %i1, [ %g3 + 4 ] 400168b8: 82 18 a0 01 xor %g2, 1, %g1 Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; after_node->next = the_node; the_node->next = before_node; 400168bc: c6 26 40 00 st %g3, [ %i1 ] 400168c0: 80 a0 00 01 cmp %g0, %g1 400168c4: c4 26 20 48 st %g2, [ %i0 + 0x48 ] 400168c8: a0 60 3f ff subx %g0, -1, %l0 notify = TRUE; _CORE_message_queue_Prepend_unprotected(the_message_queue, the_message); _ISR_Enable( level ); 400168cc: 30 80 00 18 b,a 4001692c <_CORE_message_queue_Insert_message+0xfc> Chain_Node *the_node; Chain_Control *the_header; the_header = &the_message_queue->Pending_messages; the_node = the_header->first; while ( !_Chain_Is_tail( the_header, the_node ) ) { 400168d0: 10 80 00 06 b 400168e8 <_CORE_message_queue_Insert_message+0xb8> <== NOT EXECUTED 400168d4: 84 06 20 54 add %i0, 0x54, %g2 <== NOT EXECUTED this_message = (CORE_message_queue_Buffer_control *) the_node; if ( this_message->priority <= the_message->priority ) { 400168d8: 80 a0 40 1a cmp %g1, %i2 <== NOT EXECUTED 400168dc: 14 80 00 06 bg 400168f4 <_CORE_message_queue_Insert_message+0xc4> <== NOT EXECUTED 400168e0: 01 00 00 00 nop <== NOT EXECUTED the_node = the_node->next; 400168e4: e0 04 00 00 ld [ %l0 ], %l0 <== NOT EXECUTED Chain_Node *the_node; Chain_Control *the_header; the_header = &the_message_queue->Pending_messages; the_node = the_header->first; while ( !_Chain_Is_tail( the_header, the_node ) ) { 400168e8: 80 a4 00 02 cmp %l0, %g2 <== NOT EXECUTED 400168ec: 32 bf ff fb bne,a 400168d8 <_CORE_message_queue_Insert_message+0xa8> <== NOT EXECUTED 400168f0: c2 04 20 08 ld [ %l0 + 8 ], %g1 <== NOT EXECUTED continue; } break; } _ISR_Disable( level ); 400168f4: 7f ff af 59 call 40002658 <== NOT EXECUTED 400168f8: 01 00 00 00 nop <== NOT EXECUTED if ( the_message_queue->number_of_pending_messages++ == 0 ) notify = TRUE; _Chain_Insert_unprotected( the_node->previous, &the_message->Node ); 400168fc: c2 04 20 04 ld [ %l0 + 4 ], %g1 <== NOT EXECUTED } break; } _ISR_Disable( level ); if ( the_message_queue->number_of_pending_messages++ == 0 ) 40016900: c4 06 20 48 ld [ %i0 + 0x48 ], %g2 <== NOT EXECUTED ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; 40016904: c6 00 40 00 ld [ %g1 ], %g3 <== NOT EXECUTED Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; 40016908: c2 26 60 04 st %g1, [ %i1 + 4 ] <== NOT EXECUTED before_node = after_node->next; after_node->next = the_node; 4001690c: f2 20 40 00 st %i1, [ %g1 ] <== NOT EXECUTED 40016910: 84 00 a0 01 inc %g2 <== NOT EXECUTED the_node->next = before_node; before_node->previous = the_node; 40016914: f2 20 e0 04 st %i1, [ %g3 + 4 ] <== NOT EXECUTED 40016918: 82 18 a0 01 xor %g2, 1, %g1 <== 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; 4001691c: c6 26 40 00 st %g3, [ %i1 ] <== NOT EXECUTED 40016920: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED 40016924: c4 26 20 48 st %g2, [ %i0 + 0x48 ] <== NOT EXECUTED 40016928: a0 60 3f ff subx %g0, -1, %l0 <== NOT EXECUTED notify = TRUE; _Chain_Insert_unprotected( the_node->previous, &the_message->Node ); _ISR_Enable( level ); 4001692c: 7f ff af 4f call 40002668 40016930: 01 00 00 00 nop * According to POSIX, does this happen before or after the message * is actually enqueued. It is logical to think afterwards, because * the message is actually in the queue at this point. */ if ( notify && the_message_queue->notify_handler ) 40016934: 80 a4 20 00 cmp %l0, 0 40016938: 02 80 00 08 be 40016958 <_CORE_message_queue_Insert_message+0x128> 4001693c: 01 00 00 00 nop 40016940: c2 06 20 60 ld [ %i0 + 0x60 ], %g1 40016944: 80 a0 60 00 cmp %g1, 0 40016948: 02 80 00 04 be 40016958 <_CORE_message_queue_Insert_message+0x128> 4001694c: 01 00 00 00 nop (*the_message_queue->notify_handler)( the_message_queue->notify_argument ); 40016950: 9f c0 40 00 call %g1 <== NOT EXECUTED 40016954: d0 06 20 64 ld [ %i0 + 0x64 ], %o0 <== NOT EXECUTED 40016958: 81 c7 e0 08 ret 4001695c: 81 e8 00 00 restore 40013abc <_CORE_message_queue_Seize>: void *buffer, size_t *size, boolean wait, Watchdog_Interval timeout ) { 40013abc: 9d e3 bf 98 save %sp, -104, %sp ISR_Level level; CORE_message_queue_Buffer_control *the_message; Thread_Control *executing; Thread_Control *the_thread; executing = _Thread_Executing; 40013ac0: 03 10 00 a1 sethi %hi(0x40028400), %g1 40013ac4: e2 00 63 7c ld [ %g1 + 0x37c ], %l1 ! 4002877c <_Thread_Executing> void *buffer, size_t *size, boolean wait, Watchdog_Interval timeout ) { 40013ac8: a0 10 00 18 mov %i0, %l0 Thread_Control *executing; Thread_Control *the_thread; executing = _Thread_Executing; executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; _ISR_Disable( level ); 40013acc: 7f ff ba e3 call 40002658 40013ad0: c0 24 60 34 clr [ %l1 + 0x34 ] 40013ad4: 86 10 00 08 mov %o0, %g3 if ( the_message_queue->number_of_pending_messages != 0 ) { 40013ad8: c2 06 20 48 ld [ %i0 + 0x48 ], %g1 40013adc: 80 a0 60 00 cmp %g1, 0 40013ae0: 02 80 00 2a be 40013b88 <_CORE_message_queue_Seize+0xcc> 40013ae4: 80 a7 20 00 cmp %i4, 0 */ RTEMS_INLINE_ROUTINE boolean _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 40013ae8: f2 06 20 50 ld [ %i0 + 0x50 ], %i1 the_message_queue->number_of_pending_messages -= 1; 40013aec: 82 00 7f ff add %g1, -1, %g1 40013af0: c2 26 20 48 st %g1, [ %i0 + 0x48 ] */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected( Chain_Control *the_chain ) { if ( !_Chain_Is_empty(the_chain)) 40013af4: 82 06 20 54 add %i0, 0x54, %g1 40013af8: 80 a6 40 01 cmp %i1, %g1 40013afc: 32 80 00 04 bne,a 40013b0c <_CORE_message_queue_Seize+0x50> 40013b00: c2 06 40 00 ld [ %i1 ], %g1 40013b04: 10 80 00 05 b 40013b18 <_CORE_message_queue_Seize+0x5c> <== NOT EXECUTED 40013b08: b2 10 20 00 clr %i1 <== NOT EXECUTED Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; the_chain->first = new_first; new_first->previous = _Chain_Head(the_chain); 40013b0c: 84 06 20 50 add %i0, 0x50, %g2 Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; the_chain->first = new_first; 40013b10: c2 26 20 50 st %g1, [ %i0 + 0x50 ] new_first->previous = _Chain_Head(the_chain); 40013b14: c4 20 60 04 st %g2, [ %g1 + 4 ] the_message = _CORE_message_queue_Get_pending_message( the_message_queue ); _ISR_Enable( level ); 40013b18: 7f ff ba d4 call 40002668 40013b1c: 90 10 00 03 mov %g3, %o0 *size = the_message->Contents.size; 40013b20: d4 06 60 0c ld [ %i1 + 0xc ], %o2 _Thread_Executing->Wait.count = the_message->priority; 40013b24: 03 10 00 a1 sethi %hi(0x40028400), %g1 the_message_queue->number_of_pending_messages -= 1; the_message = _CORE_message_queue_Get_pending_message( the_message_queue ); _ISR_Enable( level ); *size = the_message->Contents.size; 40013b28: d4 26 c0 00 st %o2, [ %i3 ] _Thread_Executing->Wait.count = the_message->priority; 40013b2c: c4 00 63 7c ld [ %g1 + 0x37c ], %g2 40013b30: c2 06 60 08 ld [ %i1 + 8 ], %g1 _CORE_message_queue_Copy_buffer(the_message->Contents.buffer,buffer,*size); 40013b34: 92 10 00 1a mov %i2, %o1 the_message = _CORE_message_queue_Get_pending_message( the_message_queue ); _ISR_Enable( level ); *size = the_message->Contents.size; _Thread_Executing->Wait.count = the_message->priority; 40013b38: c2 20 a0 24 st %g1, [ %g2 + 0x24 ] _CORE_message_queue_Copy_buffer(the_message->Contents.buffer,buffer,*size); 40013b3c: a2 06 60 10 add %i1, 0x10, %l1 40013b40: 7f ff ff d8 call 40013aa0 <_CORE_message_queue_Copy_buffer> 40013b44: 90 10 00 11 mov %l1, %o0 * * NOTE: If we note that the queue was not full before this receive, * then we can avoid this dequeue. */ the_thread = _Thread_queue_Dequeue( &the_message_queue->Wait_queue ); 40013b48: 7f ff ea a2 call 4000e5d0 <_Thread_queue_Dequeue> 40013b4c: 90 10 00 10 mov %l0, %o0 if ( !the_thread ) { 40013b50: 82 92 20 00 orcc %o0, 0, %g1 40013b54: 32 80 00 04 bne,a 40013b64 <_CORE_message_queue_Seize+0xa8> 40013b58: d4 00 60 30 ld [ %g1 + 0x30 ], %o2 <== 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 ); 40013b5c: 7f ff e0 c0 call 4000be5c <_Chain_Append> 40013b60: 91 ec 20 68 restore %l0, 0x68, %o0 * waiting task. */ the_message->priority = the_thread->Wait.count; the_message->Contents.size = (uint32_t)the_thread->Wait.option; _CORE_message_queue_Copy_buffer( 40013b64: d0 00 60 28 ld [ %g1 + 0x28 ], %o0 <== NOT EXECUTED * There was a thread waiting to send a message. This code * puts the messages in the message queue on behalf of the * waiting task. */ the_message->priority = the_thread->Wait.count; 40013b68: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED the_message->Contents.size = (uint32_t)the_thread->Wait.option; 40013b6c: d4 26 60 0c st %o2, [ %i1 + 0xc ] <== NOT EXECUTED * There was a thread waiting to send a message. This code * puts the messages in the message queue on behalf of the * waiting task. */ the_message->priority = the_thread->Wait.count; 40013b70: c2 26 60 08 st %g1, [ %i1 + 8 ] <== NOT EXECUTED the_message->Contents.size = (uint32_t)the_thread->Wait.option; _CORE_message_queue_Copy_buffer( 40013b74: 7f ff ff cb call 40013aa0 <_CORE_message_queue_Copy_buffer> <== NOT EXECUTED 40013b78: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED the_thread->Wait.return_argument, the_message->Contents.buffer, the_message->Contents.size ); _CORE_message_queue_Insert_message( 40013b7c: f4 06 60 08 ld [ %i1 + 8 ], %i2 <== NOT EXECUTED 40013b80: 40 00 0b 2c call 40016830 <_CORE_message_queue_Insert_message> <== NOT EXECUTED 40013b84: 91 e8 00 10 restore %g0, %l0, %o0 <== NOT EXECUTED the_message->priority ); return; } if ( !wait ) { 40013b88: 12 80 00 08 bne 40013ba8 <_CORE_message_queue_Seize+0xec> 40013b8c: 82 10 20 01 mov 1, %g1 _ISR_Enable( level ); 40013b90: 7f ff ba b6 call 40002668 40013b94: 01 00 00 00 nop executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT; 40013b98: 82 10 20 04 mov 4, %g1 ! 4 40013b9c: c2 24 60 34 st %g1, [ %l1 + 0x34 ] executing->Wait.return_argument_1 = (void *)size; /* Wait.count will be filled in with the message priority */ _ISR_Enable( level ); _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); } 40013ba0: 81 c7 e0 08 ret 40013ba4: 81 e8 00 00 restore _Thread_queue_Enter_critical_section( &the_message_queue->Wait_queue ); executing->Wait.queue = &the_message_queue->Wait_queue; executing->Wait.id = id; executing->Wait.return_argument = buffer; executing->Wait.return_argument_1 = (void *)size; 40013ba8: f6 24 60 2c st %i3, [ %l1 + 0x2c ] 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; 40013bac: f0 24 60 44 st %i0, [ %l1 + 0x44 ] executing->Wait.id = id; 40013bb0: f2 24 60 20 st %i1, [ %l1 + 0x20 ] executing->Wait.return_argument = buffer; 40013bb4: f4 24 60 28 st %i2, [ %l1 + 0x28 ] RTEMS_INLINE_ROUTINE void _Thread_queue_Enter_critical_section ( Thread_queue_Control *the_thread_queue ) { the_thread_queue->sync_state = THREAD_QUEUE_NOTHING_HAPPENED; 40013bb8: c2 26 20 30 st %g1, [ %i0 + 0x30 ] executing->Wait.return_argument_1 = (void *)size; /* Wait.count will be filled in with the message priority */ _ISR_Enable( level ); 40013bbc: 7f ff ba ab call 40002668 40013bc0: 35 10 00 3b sethi %hi(0x4000ec00), %i2 _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); 40013bc4: b2 10 00 1d mov %i5, %i1 40013bc8: 7f ff ea f0 call 4000e788 <_Thread_queue_Enqueue_with_handler> 40013bcc: 95 ee a0 20 restore %i2, 0x20, %o2 40013bd0: 01 00 00 00 nop 40013bf0 <_CORE_message_queue_Submit>: CORE_message_queue_API_mp_support_callout api_message_queue_mp_support, CORE_message_queue_Submit_types submit_type, boolean wait, Watchdog_Interval timeout ) { 40013bf0: 9d e3 bf 98 save %sp, -104, %sp ISR_Level level; CORE_message_queue_Buffer_control *the_message; Thread_Control *the_thread; if ( size > the_message_queue->maximum_message_size ) { 40013bf4: c2 06 20 4c ld [ %i0 + 0x4c ], %g1 CORE_message_queue_API_mp_support_callout api_message_queue_mp_support, CORE_message_queue_Submit_types submit_type, boolean wait, Watchdog_Interval timeout ) { 40013bf8: a2 10 00 18 mov %i0, %l1 ISR_Level level; CORE_message_queue_Buffer_control *the_message; Thread_Control *the_thread; if ( size > the_message_queue->maximum_message_size ) { 40013bfc: 80 a6 80 01 cmp %i2, %g1 40013c00: 18 80 00 3f bgu 40013cfc <_CORE_message_queue_Submit+0x10c> 40013c04: b0 10 20 01 mov 1, %i0 /* * Is there a thread currently waiting on this message queue? */ if ( the_message_queue->number_of_pending_messages == 0 ) { 40013c08: c2 04 60 48 ld [ %l1 + 0x48 ], %g1 40013c0c: 80 a0 60 00 cmp %g1, 0 40013c10: 32 80 00 0f bne,a 40013c4c <_CORE_message_queue_Submit+0x5c> 40013c14: c4 04 60 48 ld [ %l1 + 0x48 ], %g2 the_thread = _Thread_queue_Dequeue( &the_message_queue->Wait_queue ); 40013c18: 7f ff ea 6e call 4000e5d0 <_Thread_queue_Dequeue> 40013c1c: 90 10 00 11 mov %l1, %o0 if ( the_thread ) { 40013c20: a0 92 20 00 orcc %o0, 0, %l0 40013c24: 02 80 00 09 be 40013c48 <_CORE_message_queue_Submit+0x58> 40013c28: 90 10 00 19 mov %i1, %o0 _CORE_message_queue_Copy_buffer( 40013c2c: d2 04 20 28 ld [ %l0 + 0x28 ], %o1 40013c30: 7f ff ff e9 call 40013bd4 <_CORE_message_queue_Copy_buffer> 40013c34: 94 10 00 1a mov %i2, %o2 buffer, the_thread->Wait.return_argument, size ); *(size_t *)the_thread->Wait.return_argument_1 = size; 40013c38: c2 04 20 2c ld [ %l0 + 0x2c ], %g1 the_thread->Wait.count = submit_type; 40013c3c: fa 24 20 24 st %i5, [ %l0 + 0x24 ] _CORE_message_queue_Copy_buffer( buffer, the_thread->Wait.return_argument, size ); *(size_t *)the_thread->Wait.return_argument_1 = size; 40013c40: 10 80 00 15 b 40013c94 <_CORE_message_queue_Submit+0xa4> 40013c44: f4 20 40 00 st %i2, [ %g1 ] /* * 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 < 40013c48: c4 04 60 48 ld [ %l1 + 0x48 ], %g2 40013c4c: c2 04 60 44 ld [ %l1 + 0x44 ], %g1 40013c50: 80 a0 80 01 cmp %g2, %g1 40013c54: 1a 80 00 12 bcc 40013c9c <_CORE_message_queue_Submit+0xac> 40013c58: c2 07 a0 5c ld [ %fp + 0x5c ], %g1 RTEMS_INLINE_ROUTINE CORE_message_queue_Buffer_control * _CORE_message_queue_Allocate_message_buffer ( CORE_message_queue_Control *the_message_queue ) { return (CORE_message_queue_Buffer_control *) 40013c5c: 7f ff e0 8c call 4000be8c <_Chain_Get> 40013c60: 90 04 60 68 add %l1, 0x68, %o0 /* * NOTE: If the system is consistent, this error should never occur. */ if ( !the_message ) { 40013c64: a0 92 20 00 orcc %o0, 0, %l0 40013c68: 02 80 00 27 be 40013d04 <_CORE_message_queue_Submit+0x114> 40013c6c: 90 10 00 19 mov %i1, %o0 return CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED; } _CORE_message_queue_Copy_buffer( 40013c70: 92 04 20 10 add %l0, 0x10, %o1 40013c74: 7f ff ff d8 call 40013bd4 <_CORE_message_queue_Copy_buffer> 40013c78: 94 10 00 1a mov %i2, %o2 size ); the_message->Contents.size = size; the_message->priority = submit_type; _CORE_message_queue_Insert_message( 40013c7c: 90 10 00 11 mov %l1, %o0 _CORE_message_queue_Copy_buffer( buffer, the_message->Contents.buffer, size ); the_message->Contents.size = size; 40013c80: f4 24 20 0c st %i2, [ %l0 + 0xc ] the_message->priority = submit_type; 40013c84: fa 24 20 08 st %i5, [ %l0 + 8 ] _CORE_message_queue_Insert_message( 40013c88: 92 10 00 10 mov %l0, %o1 40013c8c: 40 00 0a e9 call 40016830 <_CORE_message_queue_Insert_message> 40013c90: 94 10 00 1d mov %i5, %o2 40013c94: 81 c7 e0 08 ret 40013c98: 91 e8 20 00 restore %g0, 0, %o0 * No message buffers were available so we may need to return an * overflow error or block the sender until the message is placed * on the queue. */ if ( !wait ) { 40013c9c: 80 a0 60 00 cmp %g1, 0 40013ca0: 02 80 00 17 be 40013cfc <_CORE_message_queue_Submit+0x10c> 40013ca4: b0 10 20 02 mov 2, %i0 /* * Do NOT block on a send if the caller is in an ISR. It is * deadly to block in an ISR. */ if ( _ISR_Is_in_progress() ) { 40013ca8: 03 10 00 a1 sethi %hi(0x40028400), %g1 <== NOT EXECUTED 40013cac: c2 00 63 64 ld [ %g1 + 0x364 ], %g1 ! 40028764 <_ISR_Nest_level> <== NOT EXECUTED 40013cb0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40013cb4: 12 80 00 14 bne 40013d04 <_CORE_message_queue_Submit+0x114> <== NOT EXECUTED 40013cb8: 03 10 00 a1 sethi %hi(0x40028400), %g1 <== NOT EXECUTED */ { Thread_Control *executing = _Thread_Executing; _ISR_Disable( level ); 40013cbc: 7f ff ba 67 call 40002658 <== NOT EXECUTED 40013cc0: e0 00 63 7c ld [ %g1 + 0x37c ], %l0 ! 4002877c <_Thread_Executing> <== NOT EXECUTED 40013cc4: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED _Thread_queue_Enter_critical_section( &the_message_queue->Wait_queue ); executing->Wait.queue = &the_message_queue->Wait_queue; executing->Wait.id = id; executing->Wait.return_argument = buffer; executing->Wait.option = size; executing->Wait.count = submit_type; 40013cc8: fa 24 20 24 st %i5, [ %l0 + 0x24 ] <== NOT EXECUTED Thread_Control *executing = _Thread_Executing; _ISR_Disable( level ); _Thread_queue_Enter_critical_section( &the_message_queue->Wait_queue ); executing->Wait.queue = &the_message_queue->Wait_queue; executing->Wait.id = id; 40013ccc: f6 24 20 20 st %i3, [ %l0 + 0x20 ] <== NOT EXECUTED executing->Wait.return_argument = buffer; 40013cd0: f2 24 20 28 st %i1, [ %l0 + 0x28 ] <== NOT EXECUTED executing->Wait.option = size; 40013cd4: f4 24 20 30 st %i2, [ %l0 + 0x30 ] <== NOT EXECUTED { Thread_Control *executing = _Thread_Executing; _ISR_Disable( level ); _Thread_queue_Enter_critical_section( &the_message_queue->Wait_queue ); executing->Wait.queue = &the_message_queue->Wait_queue; 40013cd8: e2 24 20 44 st %l1, [ %l0 + 0x44 ] <== NOT EXECUTED 40013cdc: c2 24 60 30 st %g1, [ %l1 + 0x30 ] <== NOT EXECUTED executing->Wait.id = id; executing->Wait.return_argument = buffer; executing->Wait.option = size; executing->Wait.count = submit_type; _ISR_Enable( level ); 40013ce0: 7f ff ba 62 call 40002668 <== NOT EXECUTED 40013ce4: b0 10 20 07 mov 7, %i0 <== NOT EXECUTED _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); 40013ce8: d2 07 a0 60 ld [ %fp + 0x60 ], %o1 <== NOT EXECUTED 40013cec: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 40013cf0: 15 10 00 3b sethi %hi(0x4000ec00), %o2 <== NOT EXECUTED 40013cf4: 7f ff ea a5 call 4000e788 <_Thread_queue_Enqueue_with_handler> <== NOT EXECUTED 40013cf8: 94 12 a0 20 or %o2, 0x20, %o2 ! 4000ec20 <_Thread_queue_Timeout> <== NOT EXECUTED 40013cfc: 81 c7 e0 08 ret 40013d00: 81 e8 00 00 restore } return CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT; 40013d04: b0 10 20 03 mov 3, %i0 <== NOT EXECUTED } 40013d08: 81 c7 e0 08 ret <== NOT EXECUTED 40013d0c: 81 e8 00 00 restore <== NOT EXECUTED 40007738 <_CORE_mutex_Seize_interrupt_blocking>: void _CORE_mutex_Seize_interrupt_blocking( CORE_mutex_Control *the_mutex, Watchdog_Interval timeout ) { 40007738: 9d e3 bf 98 save %sp, -104, %sp Thread_Control *executing; executing = _Thread_Executing; if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ) { 4000773c: c2 06 20 48 ld [ %i0 + 0x48 ], %g1 40007740: 80 a0 60 02 cmp %g1, 2 Watchdog_Interval timeout ) { Thread_Control *executing; executing = _Thread_Executing; 40007744: 03 10 00 67 sethi %hi(0x40019c00), %g1 if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ) { 40007748: 12 80 00 0a bne 40007770 <_CORE_mutex_Seize_interrupt_blocking+0x38> 4000774c: d2 00 63 7c ld [ %g1 + 0x37c ], %o1 ! 40019f7c <_Thread_Executing> if ( the_mutex->holder->current_priority > executing->current_priority ) { 40007750: d0 06 20 5c ld [ %i0 + 0x5c ], %o0 40007754: d2 02 60 14 ld [ %o1 + 0x14 ], %o1 40007758: c2 02 20 14 ld [ %o0 + 0x14 ], %g1 4000775c: 80 a0 40 09 cmp %g1, %o1 40007760: 28 80 00 05 bleu,a 40007774 <_CORE_mutex_Seize_interrupt_blocking+0x3c> 40007764: c2 06 20 58 ld [ %i0 + 0x58 ], %g1 _Thread_Change_priority( 40007768: 40 00 07 47 call 40009484 <_Thread_Change_priority> 4000776c: 94 10 20 00 clr %o2 FALSE ); } } the_mutex->blocked_count++; 40007770: c2 06 20 58 ld [ %i0 + 0x58 ], %g1 _Thread_queue_Enqueue( &the_mutex->Wait_queue, timeout ); 40007774: 90 10 00 18 mov %i0, %o0 FALSE ); } } the_mutex->blocked_count++; 40007778: 82 00 60 01 inc %g1 _Thread_queue_Enqueue( &the_mutex->Wait_queue, timeout ); 4000777c: 92 10 00 19 mov %i1, %o1 FALSE ); } } the_mutex->blocked_count++; 40007780: c2 26 20 58 st %g1, [ %i0 + 0x58 ] _Thread_queue_Enqueue( &the_mutex->Wait_queue, timeout ); 40007784: 15 10 00 28 sethi %hi(0x4000a000), %o2 40007788: 40 00 09 d3 call 40009ed4 <_Thread_queue_Enqueue_with_handler> 4000778c: 94 12 a3 6c or %o2, 0x36c, %o2 ! 4000a36c <_Thread_queue_Timeout> #if ( CPU_INLINE_ENABLE_DISPATCH == TRUE ) RTEMS_INLINE_ROUTINE void _Thread_Enable_dispatch() { RTEMS_COMPILER_MEMORY_BARRIER(); if ( (--_Thread_Dispatch_disable_level) == 0 ) 40007790: 05 10 00 67 sethi %hi(0x40019c00), %g2 40007794: c2 00 a2 a0 ld [ %g2 + 0x2a0 ], %g1 ! 40019ea0 <_Thread_Dispatch_disable_level> 40007798: 82 00 7f ff add %g1, -1, %g1 4000779c: c2 20 a2 a0 st %g1, [ %g2 + 0x2a0 ] 400077a0: c2 00 a2 a0 ld [ %g2 + 0x2a0 ], %g1 400077a4: 80 a0 60 00 cmp %g1, 0 400077a8: 12 80 00 04 bne 400077b8 <_CORE_mutex_Seize_interrupt_blocking+0x80> 400077ac: 01 00 00 00 nop _Thread_Dispatch(); 400077b0: 40 00 08 61 call 40009934 <_Thread_Dispatch> 400077b4: 81 e8 00 00 restore 400077b8: 81 c7 e0 08 ret <== NOT EXECUTED 400077bc: 81 e8 00 00 restore <== NOT EXECUTED 400077c0 <_CORE_mutex_Surrender>: CORE_mutex_Status _CORE_mutex_Surrender( CORE_mutex_Control *the_mutex, Objects_Id id, CORE_mutex_API_mp_support_callout api_mutex_mp_support ) { 400077c0: 9d e3 bf 98 save %sp, -104, %sp * 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 ) { 400077c4: c2 06 20 44 ld [ %i0 + 0x44 ], %g1 400077c8: 80 a0 60 00 cmp %g1, 0 400077cc: 02 80 00 07 be 400077e8 <_CORE_mutex_Surrender+0x28> 400077d0: d0 06 20 5c ld [ %i0 + 0x5c ], %o0 if ( !_Thread_Is_executing( holder ) ) 400077d4: 03 10 00 67 sethi %hi(0x40019c00), %g1 400077d8: c2 00 63 7c ld [ %g1 + 0x37c ], %g1 ! 40019f7c <_Thread_Executing> 400077dc: 80 a2 00 01 cmp %o0, %g1 400077e0: 12 80 00 51 bne 40007924 <_CORE_mutex_Surrender+0x164> 400077e4: 84 10 20 03 mov 3, %g2 return CORE_MUTEX_STATUS_NOT_OWNER_OF_RESOURCE; } /* XXX already unlocked -- not right status */ if ( !the_mutex->nest_count ) 400077e8: c2 06 20 54 ld [ %i0 + 0x54 ], %g1 400077ec: 80 a0 60 00 cmp %g1, 0 400077f0: 02 80 00 4c be 40007920 <_CORE_mutex_Surrender+0x160> 400077f4: 82 00 7f ff add %g1, -1, %g1 return CORE_MUTEX_STATUS_SUCCESSFUL; the_mutex->nest_count--; if ( the_mutex->nest_count != 0 ) { 400077f8: 80 a0 60 00 cmp %g1, 0 400077fc: 02 80 00 09 be 40007820 <_CORE_mutex_Surrender+0x60> 40007800: c2 26 20 54 st %g1, [ %i0 + 0x54 ] switch ( the_mutex->Attributes.lock_nesting_behavior ) { 40007804: c2 06 20 40 ld [ %i0 + 0x40 ], %g1 40007808: 80 a0 60 00 cmp %g1, 0 4000780c: 02 80 00 46 be 40007924 <_CORE_mutex_Surrender+0x164> 40007810: 84 10 20 00 clr %g2 40007814: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 40007818: 02 80 00 43 be 40007924 <_CORE_mutex_Surrender+0x164> <== NOT EXECUTED 4000781c: 84 10 20 02 mov 2, %g2 <== NOT EXECUTED 40007820: c2 06 20 48 ld [ %i0 + 0x48 ], %g1 /* * Formally release the mutex before possibly transferring it to a * blocked thread. */ if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || 40007824: 80 a0 60 02 cmp %g1, 2 40007828: 22 80 00 06 be,a 40007840 <_CORE_mutex_Surrender+0x80> 4000782c: c2 02 20 1c ld [ %o0 + 0x1c ], %g1 40007830: 80 a0 60 03 cmp %g1, 3 40007834: 32 80 00 07 bne,a 40007850 <_CORE_mutex_Surrender+0x90> 40007838: c0 26 20 5c clr [ %i0 + 0x5c ] _CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) holder->resource_count--; 4000783c: c2 02 20 1c ld [ %o0 + 0x1c ], %g1 <== NOT EXECUTED 40007840: 82 00 7f ff add %g1, -1, %g1 40007844: c2 22 20 1c st %g1, [ %o0 + 0x1c ] 40007848: c2 06 20 48 ld [ %i0 + 0x48 ], %g1 the_mutex->holder = NULL; 4000784c: c0 26 20 5c clr [ %i0 + 0x5c ] /* * 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 ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || 40007850: 80 a0 60 02 cmp %g1, 2 40007854: 02 80 00 05 be 40007868 <_CORE_mutex_Surrender+0xa8> 40007858: c0 26 20 60 clr [ %i0 + 0x60 ] 4000785c: 80 a0 60 03 cmp %g1, 3 40007860: 12 80 00 0d bne 40007894 <_CORE_mutex_Surrender+0xd4> 40007864: 01 00 00 00 nop _CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { if ( holder->resource_count == 0 && 40007868: c2 02 20 1c ld [ %o0 + 0x1c ], %g1 4000786c: 80 a0 60 00 cmp %g1, 0 40007870: 12 80 00 09 bne 40007894 <_CORE_mutex_Surrender+0xd4> 40007874: 01 00 00 00 nop 40007878: d2 02 20 18 ld [ %o0 + 0x18 ], %o1 4000787c: c2 02 20 14 ld [ %o0 + 0x14 ], %g1 40007880: 80 a2 40 01 cmp %o1, %g1 40007884: 02 80 00 04 be 40007894 <_CORE_mutex_Surrender+0xd4> 40007888: 01 00 00 00 nop holder->real_priority != holder->current_priority ) { _Thread_Change_priority( holder, holder->real_priority, TRUE ); 4000788c: 40 00 06 fe call 40009484 <_Thread_Change_priority> 40007890: 94 10 20 01 mov 1, %o2 ! 1 /* * 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 ) ) ) { 40007894: 40 00 09 22 call 40009d1c <_Thread_queue_Dequeue> 40007898: 90 10 00 18 mov %i0, %o0 4000789c: 86 92 20 00 orcc %o0, 0, %g3 400078a0: 02 80 00 1f be 4000791c <_CORE_mutex_Surrender+0x15c> 400078a4: 82 10 20 01 mov 1, %g1 } else #endif { the_mutex->holder = the_thread; the_mutex->holder_id = the_thread->Object.id; 400078a8: c2 00 e0 08 ld [ %g3 + 8 ], %g1 the_mutex->nest_count = 1; switch ( the_mutex->Attributes.discipline ) { 400078ac: c4 06 20 48 ld [ %i0 + 0x48 ], %g2 } else #endif { the_mutex->holder = the_thread; the_mutex->holder_id = the_thread->Object.id; 400078b0: c2 26 20 60 st %g1, [ %i0 + 0x60 ] } else #endif { the_mutex->holder = the_thread; 400078b4: c6 26 20 5c st %g3, [ %i0 + 0x5c ] the_mutex->holder_id = the_thread->Object.id; the_mutex->nest_count = 1; 400078b8: 82 10 20 01 mov 1, %g1 switch ( the_mutex->Attributes.discipline ) { 400078bc: 80 a0 a0 02 cmp %g2, 2 400078c0: 02 80 00 07 be 400078dc <_CORE_mutex_Surrender+0x11c> 400078c4: c2 26 20 54 st %g1, [ %i0 + 0x54 ] 400078c8: 80 a0 a0 03 cmp %g2, 3 400078cc: 12 80 00 16 bne 40007924 <_CORE_mutex_Surrender+0x164> 400078d0: 84 10 20 00 clr %g2 break; case CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT: the_thread->resource_count++; break; case CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING: the_thread->resource_count++; 400078d4: 10 80 00 07 b 400078f0 <_CORE_mutex_Surrender+0x130> <== NOT EXECUTED 400078d8: c2 00 e0 1c ld [ %g3 + 0x1c ], %g1 <== NOT EXECUTED switch ( the_mutex->Attributes.discipline ) { case CORE_MUTEX_DISCIPLINES_FIFO: case CORE_MUTEX_DISCIPLINES_PRIORITY: break; case CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT: the_thread->resource_count++; 400078dc: c2 00 e0 1c ld [ %g3 + 0x1c ], %g1 400078e0: 84 10 20 00 clr %g2 400078e4: 82 00 60 01 inc %g1 400078e8: 10 80 00 0f b 40007924 <_CORE_mutex_Surrender+0x164> 400078ec: c2 20 e0 1c st %g1, [ %g3 + 0x1c ] break; case CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING: the_thread->resource_count++; if (the_mutex->Attributes.priority_ceiling < 400078f0: c4 00 e0 14 ld [ %g3 + 0x14 ], %g2 <== NOT EXECUTED break; case CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT: the_thread->resource_count++; break; case CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING: the_thread->resource_count++; 400078f4: 82 00 60 01 inc %g1 <== NOT EXECUTED 400078f8: c2 20 e0 1c st %g1, [ %g3 + 0x1c ] <== NOT EXECUTED if (the_mutex->Attributes.priority_ceiling < 400078fc: d2 06 20 4c ld [ %i0 + 0x4c ], %o1 <== NOT EXECUTED 40007900: 80 a2 40 02 cmp %o1, %g2 <== NOT EXECUTED 40007904: 3a 80 00 08 bcc,a 40007924 <_CORE_mutex_Surrender+0x164> <== NOT EXECUTED 40007908: 84 10 20 00 clr %g2 <== NOT EXECUTED the_thread->current_priority){ _Thread_Change_priority( 4000790c: 40 00 06 de call 40009484 <_Thread_Change_priority> <== NOT EXECUTED 40007910: 94 10 20 00 clr %o2 <== NOT EXECUTED } break; } } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; 40007914: 10 80 00 04 b 40007924 <_CORE_mutex_Surrender+0x164> <== NOT EXECUTED 40007918: 84 10 20 00 clr %g2 <== NOT EXECUTED 4000791c: c2 26 20 50 st %g1, [ %i0 + 0x50 ] 40007920: 84 10 20 00 clr %g2 return CORE_MUTEX_STATUS_SUCCESSFUL; } 40007924: 81 c7 e0 08 ret 40007928: 91 e8 00 02 restore %g0, %g2, %o0 4000cf98 <_Debug_Is_enabled>: */ boolean _Debug_Is_enabled( rtems_debug_control level ) { 4000cf98: 03 10 00 67 sethi %hi(0x40019c00), %g1 <== NOT EXECUTED 4000cf9c: c2 00 63 80 ld [ %g1 + 0x380 ], %g1 ! 40019f80 <_Debug_Level> <== NOT EXECUTED 4000cfa0: 90 0a 00 01 and %o0, %g1, %o0 <== NOT EXECUTED return (_Debug_Level & level) ? TRUE : FALSE; } 4000cfa4: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED 4000cfa8: 81 c3 e0 08 retl <== NOT EXECUTED 4000cfac: 90 40 20 00 addx %g0, 0, %o0 <== NOT EXECUTED 40005f00 <_Event_Seize>: rtems_event_set event_in, rtems_option option_set, rtems_interval ticks, rtems_event_set *event_out ) { 40005f00: 9d e3 bf 98 save %sp, -104, %sp rtems_event_set pending_events; ISR_Level level; RTEMS_API_Control *api; Event_Sync_states sync_state; executing = _Thread_Executing; 40005f04: 03 10 00 67 sethi %hi(0x40019c00), %g1 40005f08: e0 00 63 7c ld [ %g1 + 0x37c ], %l0 ! 40019f7c <_Thread_Executing> executing->Wait.return_code = RTEMS_SUCCESSFUL; 40005f0c: c0 24 20 34 clr [ %l0 + 0x34 ] api = executing->API_Extensions[ THREAD_API_RTEMS ]; _ISR_Disable( level ); 40005f10: 7f ff ef e8 call 40001eb0 40005f14: e4 04 21 6c ld [ %l0 + 0x16c ], %l2 40005f18: 84 10 00 08 mov %o0, %g2 pending_events = api->pending_events; 40005f1c: c2 04 a0 40 ld [ %l2 + 0x40 ], %g1 seized_events = _Event_sets_Get( pending_events, event_in ); if ( !_Event_sets_Is_empty( seized_events ) && 40005f20: a2 8e 00 01 andcc %i0, %g1, %l1 40005f24: 02 80 00 0e be 40005f5c <_Event_Seize+0x5c> 40005f28: 80 8e 60 01 btst 1, %i1 40005f2c: 80 a4 40 18 cmp %l1, %i0 40005f30: 02 80 00 04 be 40005f40 <_Event_Seize+0x40> 40005f34: 80 8e 60 02 btst 2, %i1 40005f38: 02 80 00 09 be 40005f5c <_Event_Seize+0x5c> 40005f3c: 80 8e 60 01 btst 1, %i1 (seized_events == event_in || _Options_Is_any( option_set )) ) { api->pending_events = 40005f40: 82 28 40 11 andn %g1, %l1, %g1 40005f44: c2 24 a0 40 st %g1, [ %l2 + 0x40 ] _Event_sets_Clear( pending_events, seized_events ); _ISR_Enable( level ); 40005f48: 7f ff ef de call 40001ec0 40005f4c: 01 00 00 00 nop 40005f50: e2 26 c0 00 st %l1, [ %i3 ] 40005f54: 81 c7 e0 08 ret 40005f58: 81 e8 00 00 restore *event_out = seized_events; return; } if ( _Options_Is_no_wait( option_set ) ) { 40005f5c: 22 80 00 09 be,a 40005f80 <_Event_Seize+0x80> 40005f60: 23 10 00 68 sethi %hi(0x4001a000), %l1 _ISR_Enable( level ); 40005f64: 7f ff ef d7 call 40001ec0 40005f68: 90 10 00 02 mov %g2, %o0 executing->Wait.return_code = RTEMS_UNSATISFIED; 40005f6c: 82 10 20 0d mov 0xd, %g1 40005f70: c2 24 20 34 st %g1, [ %l0 + 0x34 ] *event_out = seized_events; 40005f74: e2 26 c0 00 st %l1, [ %i3 ] 40005f78: 81 c7 e0 08 ret 40005f7c: 81 e8 00 00 restore return; } _Event_Sync_state = EVENT_SYNC_NOTHING_HAPPENED; 40005f80: 82 10 20 01 mov 1, %g1 executing->Wait.option = (uint32_t ) option_set; 40005f84: f2 24 20 30 st %i1, [ %l0 + 0x30 ] executing->Wait.count = (uint32_t ) event_in; 40005f88: f0 24 20 24 st %i0, [ %l0 + 0x24 ] executing->Wait.return_argument = event_out; 40005f8c: f6 24 20 28 st %i3, [ %l0 + 0x28 ] executing->Wait.return_code = RTEMS_UNSATISFIED; *event_out = seized_events; return; } _Event_Sync_state = EVENT_SYNC_NOTHING_HAPPENED; 40005f90: c2 24 61 b4 st %g1, [ %l1 + 0x1b4 ] executing->Wait.option = (uint32_t ) option_set; executing->Wait.count = (uint32_t ) event_in; executing->Wait.return_argument = event_out; _ISR_Enable( level ); 40005f94: 7f ff ef cb call 40001ec0 40005f98: 90 10 00 02 mov %g2, %o0 if ( ticks ) { 40005f9c: 80 a6 a0 00 cmp %i2, 0 40005fa0: 02 80 00 0f be 40005fdc <_Event_Seize+0xdc> 40005fa4: 90 10 00 10 mov %l0, %o0 _Watchdog_Initialize( 40005fa8: c2 04 20 08 ld [ %l0 + 8 ], %g1 ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 40005fac: 11 10 00 67 sethi %hi(0x40019c00), %o0 void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; the_watchdog->id = id; 40005fb0: c2 24 20 68 st %g1, [ %l0 + 0x68 ] Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 40005fb4: 03 10 00 18 sethi %hi(0x40006000), %g1 40005fb8: 82 10 62 88 or %g1, 0x288, %g1 ! 40006288 <_Event_Timeout> Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 40005fbc: f4 24 20 54 st %i2, [ %l0 + 0x54 ] Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 40005fc0: c0 24 20 50 clr [ %l0 + 0x50 ] the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data; 40005fc4: c0 24 20 6c clr [ %l0 + 0x6c ] Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 40005fc8: c2 24 20 64 st %g1, [ %l0 + 0x64 ] ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 40005fcc: 90 12 23 9c or %o0, 0x39c, %o0 40005fd0: 40 00 13 36 call 4000aca8 <_Watchdog_Insert> 40005fd4: 92 04 20 48 add %l0, 0x48, %o1 NULL ); _Watchdog_Insert_ticks( &executing->Timer, ticks ); } _Thread_Set_state( executing, STATES_WAITING_FOR_EVENT ); 40005fd8: 90 10 00 10 mov %l0, %o0 40005fdc: 40 00 11 3c call 4000a4cc <_Thread_Set_state> 40005fe0: 92 10 21 00 mov 0x100, %o1 _ISR_Disable( level ); 40005fe4: 7f ff ef b3 call 40001eb0 40005fe8: 01 00 00 00 nop 40005fec: b0 10 00 08 mov %o0, %i0 sync_state = _Event_Sync_state; 40005ff0: c4 04 61 b4 ld [ %l1 + 0x1b4 ], %g2 _Event_Sync_state = EVENT_SYNC_SYNCHRONIZED; 40005ff4: c0 24 61 b4 clr [ %l1 + 0x1b4 ] switch ( sync_state ) { 40005ff8: 80 a0 a0 02 cmp %g2, 2 40005ffc: 02 80 00 08 be 4000601c <_Event_Seize+0x11c> 40006000: 80 a0 a0 03 cmp %g2, 3 40006004: 02 80 00 09 be 40006028 <_Event_Seize+0x128> 40006008: 80 a0 a0 01 cmp %g2, 1 4000600c: 12 80 00 15 bne 40006060 <_Event_Seize+0x160> 40006010: 01 00 00 00 nop * enter the synchronization states above. */ return; case EVENT_SYNC_NOTHING_HAPPENED: _ISR_Enable( level ); 40006014: 7f ff ef ab call 40001ec0 40006018: 81 e8 00 00 restore return; case EVENT_SYNC_TIMEOUT: executing->Wait.return_code = RTEMS_TIMEOUT; 4000601c: 82 10 20 06 mov 6, %g1 <== NOT EXECUTED 40006020: c2 24 20 34 st %g1, [ %l0 + 0x34 ] <== NOT EXECUTED _ISR_Enable( level ); 40006024: 30 80 00 0b b,a 40006050 <_Event_Seize+0x150> <== NOT EXECUTED _Thread_Unblock( executing ); return; case EVENT_SYNC_SATISFIED: if ( _Watchdog_Is_active( &executing->Timer ) ) { 40006028: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 <== NOT EXECUTED 4000602c: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 40006030: 12 80 00 08 bne 40006050 <_Event_Seize+0x150> <== NOT EXECUTED 40006034: 01 00 00 00 nop <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_REMOVE_IT; 40006038: c4 24 20 50 st %g2, [ %l0 + 0x50 ] <== NOT EXECUTED _Watchdog_Deactivate( &executing->Timer ); _ISR_Enable( level ); 4000603c: 7f ff ef a1 call 40001ec0 <== NOT EXECUTED 40006040: b0 10 00 10 mov %l0, %i0 <== NOT EXECUTED (void) _Watchdog_Remove( &executing->Timer ); 40006044: 40 00 13 71 call 4000ae08 <_Watchdog_Remove> <== NOT EXECUTED 40006048: 90 04 20 48 add %l0, 0x48, %o0 <== NOT EXECUTED 4000604c: 30 80 00 03 b,a 40006058 <_Event_Seize+0x158> <== NOT EXECUTED } else _ISR_Enable( level ); 40006050: 7f ff ef 9c call 40001ec0 <== NOT EXECUTED 40006054: b0 10 00 10 mov %l0, %i0 <== NOT EXECUTED _Thread_Unblock( executing ); 40006058: 7f ff ff a4 call 40005ee8 <_Thread_Unblock> <== NOT EXECUTED 4000605c: 81 e8 00 00 restore <== NOT EXECUTED 40006060: 81 c7 e0 08 ret <== NOT EXECUTED 40006064: 81 e8 00 00 restore <== NOT EXECUTED 40006180 <_Event_Surrender>: */ void _Event_Surrender( Thread_Control *the_thread ) { 40006180: 9d e3 bf 98 save %sp, -104, %sp 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 ]; 40006184: e2 06 21 6c ld [ %i0 + 0x16c ], %l1 option_set = (rtems_option) the_thread->Wait.option; 40006188: e6 06 20 30 ld [ %i0 + 0x30 ], %l3 _ISR_Disable( level ); 4000618c: 7f ff ef 49 call 40001eb0 40006190: a0 10 00 18 mov %i0, %l0 40006194: a4 10 00 08 mov %o0, %l2 pending_events = api->pending_events; 40006198: c8 04 60 40 ld [ %l1 + 0x40 ], %g4 event_condition = (rtems_event_set) the_thread->Wait.count; 4000619c: c4 06 20 24 ld [ %i0 + 0x24 ], %g2 seized_events = _Event_sets_Get( pending_events, event_condition ); if ( !_Event_sets_Is_empty( seized_events ) ) { 400061a0: 86 88 80 04 andcc %g2, %g4, %g3 400061a4: 02 80 00 36 be 4000627c <_Event_Surrender+0xfc> 400061a8: 01 00 00 00 nop if ( _States_Is_waiting_for_event( the_thread->current_state ) ) { 400061ac: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 400061b0: 80 88 61 00 btst 0x100, %g1 400061b4: 02 80 00 1e be 4000622c <_Event_Surrender+0xac> 400061b8: 1b 10 00 68 sethi %hi(0x4001a000), %o5 if ( seized_events == event_condition || _Options_Is_any( option_set ) ) { 400061bc: 80 a0 c0 02 cmp %g3, %g2 400061c0: 02 80 00 04 be 400061d0 <_Event_Surrender+0x50> 400061c4: 80 8c e0 02 btst 2, %l3 400061c8: 02 80 00 19 be 4000622c <_Event_Surrender+0xac> 400061cc: 01 00 00 00 nop api->pending_events = 400061d0: 82 29 00 03 andn %g4, %g3, %g1 400061d4: c2 24 60 40 st %g1, [ %l1 + 0x40 ] _Event_sets_Clear( pending_events, seized_events ); the_thread->Wait.count = 0; *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; 400061d8: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 if ( !_Event_sets_Is_empty( seized_events ) ) { if ( _States_Is_waiting_for_event( the_thread->current_state ) ) { if ( seized_events == event_condition || _Options_Is_any( option_set ) ) { api->pending_events = _Event_sets_Clear( pending_events, seized_events ); the_thread->Wait.count = 0; 400061dc: c0 24 20 24 clr [ %l0 + 0x24 ] *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; 400061e0: c6 20 40 00 st %g3, [ %g1 ] _ISR_Flash( level ); 400061e4: 7f ff ef 37 call 40001ec0 400061e8: 01 00 00 00 nop 400061ec: 7f ff ef 31 call 40001eb0 400061f0: 01 00 00 00 nop if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { 400061f4: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 400061f8: 80 a0 60 02 cmp %g1, 2 400061fc: 02 80 00 05 be 40006210 <_Event_Surrender+0x90> 40006200: 82 10 20 03 mov 3, %g1 _ISR_Enable( level ); 40006204: 7f ff ef 2f call 40001ec0 40006208: 90 10 00 12 mov %l2, %o0 4000620c: 30 80 00 06 b,a 40006224 <_Event_Surrender+0xa4> 40006210: c2 24 20 50 st %g1, [ %l0 + 0x50 ] _Thread_Unblock( the_thread ); } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); 40006214: 7f ff ef 2b call 40001ec0 40006218: 90 10 00 12 mov %l2, %o0 (void) _Watchdog_Remove( &the_thread->Timer ); 4000621c: 40 00 12 fb call 4000ae08 <_Watchdog_Remove> 40006220: 90 04 20 48 add %l0, 0x48, %o0 _Thread_Unblock( the_thread ); 40006224: 7f ff ff d1 call 40006168 <_Thread_Unblock> 40006228: 81 e8 00 00 restore } return; } } switch ( _Event_Sync_state ) { 4000622c: c2 03 61 b4 ld [ %o5 + 0x1b4 ], %g1 <== NOT EXECUTED 40006230: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 40006234: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 40006238: 18 80 00 11 bgu 4000627c <_Event_Surrender+0xfc> <== NOT EXECUTED 4000623c: 03 10 00 67 sethi %hi(0x40019c00), %g1 <== NOT EXECUTED case EVENT_SYNC_SATISFIED: break; case EVENT_SYNC_NOTHING_HAPPENED: case EVENT_SYNC_TIMEOUT: if ( !_Thread_Is_executing( the_thread ) ) 40006240: c2 00 63 7c ld [ %g1 + 0x37c ], %g1 ! 40019f7c <_Thread_Executing> <== NOT EXECUTED 40006244: 80 a4 00 01 cmp %l0, %g1 <== NOT EXECUTED 40006248: 12 80 00 0d bne 4000627c <_Event_Surrender+0xfc> <== NOT EXECUTED 4000624c: 80 a0 c0 02 cmp %g3, %g2 <== NOT EXECUTED break; if ( seized_events == event_condition || _Options_Is_any(option_set) ) { 40006250: 02 80 00 04 be 40006260 <_Event_Surrender+0xe0> <== NOT EXECUTED 40006254: 80 8c e0 02 btst 2, %l3 <== NOT EXECUTED 40006258: 02 80 00 09 be 4000627c <_Event_Surrender+0xfc> <== NOT EXECUTED 4000625c: 01 00 00 00 nop <== NOT EXECUTED api->pending_events = 40006260: 82 29 00 03 andn %g4, %g3, %g1 <== NOT EXECUTED 40006264: c2 24 60 40 st %g1, [ %l1 + 0x40 ] <== NOT EXECUTED _Event_sets_Clear( pending_events,seized_events ); the_thread->Wait.count = 0; *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; 40006268: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED break; if ( seized_events == event_condition || _Options_Is_any(option_set) ) { api->pending_events = _Event_sets_Clear( pending_events,seized_events ); the_thread->Wait.count = 0; 4000626c: c0 24 20 24 clr [ %l0 + 0x24 ] <== NOT EXECUTED *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; 40006270: c6 20 40 00 st %g3, [ %g1 ] <== NOT EXECUTED _Event_Sync_state = EVENT_SYNC_SATISFIED; 40006274: 82 10 20 03 mov 3, %g1 <== NOT EXECUTED 40006278: c2 23 61 b4 st %g1, [ %o5 + 0x1b4 ] <== NOT EXECUTED } break; } } _ISR_Enable( level ); 4000627c: 7f ff ef 11 call 40001ec0 40006280: 91 e8 00 12 restore %g0, %l2, %o0 40006284: 01 00 00 00 nop 40006288 <_Event_Timeout>: void _Event_Timeout( Objects_Id id, void *ignored ) { 40006288: 9d e3 bf 90 save %sp, -112, %sp uint32_t the_api; uint32_t the_class; Objects_Information *information; Thread_Control *tp = (Thread_Control *) 0; if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ) { 4000628c: 92 96 20 00 orcc %i0, 0, %o1 40006290: 12 80 00 0a bne 400062b8 <_Event_Timeout+0x30> 40006294: 83 32 60 18 srl %o1, 0x18, %g1 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 40006298: 03 10 00 67 sethi %hi(0x40019c00), %g1 <== NOT EXECUTED 4000629c: c4 00 62 a0 ld [ %g1 + 0x2a0 ], %g2 ! 40019ea0 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 400062a0: 84 00 a0 01 inc %g2 <== NOT EXECUTED 400062a4: c4 20 62 a0 st %g2, [ %g1 + 0x2a0 ] <== NOT EXECUTED Thread_Control *tp = (Thread_Control *) 0; if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ) { _Thread_Disable_dispatch(); *location = OBJECTS_LOCAL; tp = _Thread_Executing; 400062a8: 03 10 00 67 sethi %hi(0x40019c00), %g1 <== NOT EXECUTED 400062ac: f0 00 63 7c ld [ %g1 + 0x37c ], %i0 ! 40019f7c <_Thread_Executing> <== 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; 400062b0: 10 80 00 18 b 40006310 <_Event_Timeout+0x88> <== NOT EXECUTED 400062b4: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED 400062b8: 84 08 60 07 and %g1, 7, %g2 tp = _Thread_Executing; goto done; } the_api = _Objects_Get_API( id ); if ( the_api && the_api > OBJECTS_APIS_LAST ) { 400062bc: 80 a0 a0 04 cmp %g2, 4 400062c0: 18 80 00 0e bgu 400062f8 <_Event_Timeout+0x70> 400062c4: 82 10 20 02 mov 2, %g1 *location = OBJECTS_ERROR; goto done; } the_class = _Objects_Get_class( id ); if ( the_class != 1 ) { /* threads are always first class :) */ 400062c8: 83 32 60 1b srl %o1, 0x1b, %g1 400062cc: 80 a0 60 01 cmp %g1, 1 400062d0: 12 80 00 0a bne 400062f8 <_Event_Timeout+0x70> 400062d4: 82 10 20 02 mov 2, %g1 *location = OBJECTS_ERROR; goto done; } information = _Objects_Information_table[ the_api ][ the_class ]; 400062d8: 83 28 a0 02 sll %g2, 2, %g1 400062dc: 05 10 00 67 sethi %hi(0x40019c00), %g2 400062e0: 84 10 a2 00 or %g2, 0x200, %g2 ! 40019e00 <_Objects_Information_table> 400062e4: c2 00 80 01 ld [ %g2 + %g1 ], %g1 400062e8: d0 00 60 04 ld [ %g1 + 4 ], %o0 if ( !information ) { 400062ec: 80 a2 20 00 cmp %o0, 0 400062f0: 12 80 00 05 bne 40006304 <_Event_Timeout+0x7c> 400062f4: 82 10 20 02 mov 2, %g1 *location = OBJECTS_ERROR; 400062f8: b0 10 20 00 clr %i0 <== NOT EXECUTED 400062fc: 10 80 00 05 b 40006310 <_Event_Timeout+0x88> <== NOT EXECUTED 40006300: c2 27 bf f4 st %g1, [ %fp + -12 ] <== NOT EXECUTED goto done; } tp = (Thread_Control *) _Objects_Get( information, id, location ); 40006304: 40 00 08 98 call 40008564 <_Objects_Get> 40006308: 94 07 bf f4 add %fp, -12, %o2 4000630c: b0 10 00 08 mov %o0, %i0 Thread_Control *the_thread; Objects_Locations location; ISR_Level level; the_thread = _Thread_Get( id, &location ); switch ( location ) { 40006310: c2 07 bf f4 ld [ %fp + -12 ], %g1 40006314: 80 a0 60 00 cmp %g1, 0 40006318: 12 80 00 27 bne 400063b4 <_Event_Timeout+0x12c> 4000631c: 01 00 00 00 nop * If it is not satisfied, then it is "nothing happened" and * this is the "timeout" transition. After a request is satisfied, * a timeout is not allowed to occur. */ _ISR_Disable( level ); 40006320: 7f ff ee e4 call 40001eb0 40006324: 01 00 00 00 nop 40006328: 86 10 00 08 mov %o0, %g3 if ( the_thread->Wait.count ) { /* verify thread is waiting */ 4000632c: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 40006330: 80 a0 60 00 cmp %g1, 0 40006334: 02 80 00 1a be 4000639c <_Event_Timeout+0x114> 40006338: 05 10 00 68 sethi %hi(0x4001a000), %g2 the_thread->Wait.count = 0; if ( _Event_Sync_state != EVENT_SYNC_SYNCHRONIZED && 4000633c: c2 00 a1 b4 ld [ %g2 + 0x1b4 ], %g1 ! 4001a1b4 <_Event_Sync_state> 40006340: 80 a0 60 00 cmp %g1, 0 40006344: 02 80 00 0d be 40006378 <_Event_Timeout+0xf0> 40006348: c0 26 20 24 clr [ %i0 + 0x24 ] 4000634c: 03 10 00 67 sethi %hi(0x40019c00), %g1 <== NOT EXECUTED 40006350: c2 00 63 7c ld [ %g1 + 0x37c ], %g1 ! 40019f7c <_Thread_Executing> <== NOT EXECUTED 40006354: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED 40006358: 12 80 00 09 bne 4000637c <_Event_Timeout+0xf4> <== NOT EXECUTED 4000635c: 82 10 20 06 mov 6, %g1 <== NOT EXECUTED _Thread_Is_executing( the_thread ) ) { if ( _Event_Sync_state != EVENT_SYNC_SATISFIED ) { 40006360: c2 00 a1 b4 ld [ %g2 + 0x1b4 ], %g1 <== NOT EXECUTED 40006364: 80 a0 60 03 cmp %g1, 3 <== NOT EXECUTED 40006368: 02 80 00 03 be 40006374 <_Event_Timeout+0xec> <== NOT EXECUTED 4000636c: 82 10 20 02 mov 2, %g1 <== NOT EXECUTED _Event_Sync_state = EVENT_SYNC_TIMEOUT; 40006370: c2 20 a1 b4 st %g1, [ %g2 + 0x1b4 ] <== NOT EXECUTED } _ISR_Enable( level ); 40006374: 30 80 00 0a b,a 4000639c <_Event_Timeout+0x114> <== NOT EXECUTED } else { the_thread->Wait.return_code = RTEMS_TIMEOUT; 40006378: 82 10 20 06 mov 6, %g1 4000637c: c2 26 20 34 st %g1, [ %i0 + 0x34 ] _ISR_Enable( level ); 40006380: 7f ff ee d0 call 40001ec0 40006384: 90 10 00 03 mov %g3, %o0 RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 40006388: 90 10 00 18 mov %i0, %o0 4000638c: 13 04 00 ff sethi %hi(0x1003fc00), %o1 40006390: 40 00 0c af call 4000964c <_Thread_Clear_state> 40006394: 92 12 63 f8 or %o1, 0x3f8, %o1 ! 1003fff8 40006398: 30 80 00 03 b,a 400063a4 <_Event_Timeout+0x11c> _Thread_Unblock( the_thread ); } } else { _ISR_Enable( level ); 4000639c: 7f ff ee c9 call 40001ec0 <== NOT EXECUTED 400063a0: 01 00 00 00 nop <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; 400063a4: 05 10 00 67 sethi %hi(0x40019c00), %g2 400063a8: c2 00 a2 a0 ld [ %g2 + 0x2a0 ], %g1 ! 40019ea0 <_Thread_Dispatch_disable_level> 400063ac: 82 00 7f ff add %g1, -1, %g1 400063b0: c2 20 a2 a0 st %g1, [ %g2 + 0x2a0 ] 400063b4: 81 c7 e0 08 ret 400063b8: 81 e8 00 00 restore 40007d88 <_Heap_Calc_block_size>: */ size_t _Heap_Calc_block_size( size_t size, uint32_t page_size, uint32_t min_size) { 40007d88: 9d e3 bf 90 save %sp, -112, %sp uint32_t block_size = size + HEAP_BLOCK_USED_OVERHEAD; 40007d8c: 82 06 20 04 add %i0, 4, %g1 _Heap_Align_up(&block_size, page_size); 40007d90: 92 10 00 19 mov %i1, %o1 size_t _Heap_Calc_block_size( size_t size, uint32_t page_size, uint32_t min_size) { uint32_t block_size = size + HEAP_BLOCK_USED_OVERHEAD; 40007d94: c2 27 bf f4 st %g1, [ %fp + -12 ] _Heap_Align_up(&block_size, page_size); 40007d98: 7f ff ff f0 call 40007d58 <_Heap_Align_up> 40007d9c: 90 07 bf f4 add %fp, -12, %o0 if (block_size < min_size) block_size = min_size; 40007da0: c2 07 bf f4 ld [ %fp + -12 ], %g1 40007da4: 80 a0 40 1a cmp %g1, %i2 40007da8: 1a 80 00 04 bcc 40007db8 <_Heap_Calc_block_size+0x30> 40007dac: a0 10 00 18 mov %i0, %l0 40007db0: f4 27 bf f4 st %i2, [ %fp + -12 ] <== NOT EXECUTED /* 'block_size' becomes <= 'size' if and only if overflow occured. */ return (block_size > size) ? block_size : 0; 40007db4: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 40007db8: 80 a0 40 10 cmp %g1, %l0 40007dbc: 08 80 00 03 bleu 40007dc8 <_Heap_Calc_block_size+0x40> 40007dc0: b0 10 20 00 clr %i0 40007dc4: b0 10 00 01 mov %g1, %i0 } 40007dc8: 81 c7 e0 08 ret 40007dcc: 81 e8 00 00 restore 40019664 <_Heap_Get_free_information>: */ RTEMS_INLINE_ROUTINE Heap_Block *_Heap_First ( Heap_Control *the_heap ) { return _Heap_Head(the_heap)->next; 40019664: da 02 20 08 ld [ %o0 + 8 ], %o5 <== NOT EXECUTED ) { Heap_Block *the_block; Heap_Block *const tail = _Heap_Tail(the_heap); info->number = 0; 40019668: c0 22 40 00 clr [ %o1 ] <== NOT EXECUTED info->largest = 0; 4001966c: c0 22 60 04 clr [ %o1 + 4 ] <== NOT EXECUTED info->total = 0; 40019670: 10 80 00 0e b 400196a8 <_Heap_Get_free_information+0x44> <== NOT EXECUTED 40019674: c0 22 60 08 clr [ %o1 + 8 ] <== 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++; 40019678: c2 02 40 00 ld [ %o1 ], %g1 <== NOT EXECUTED info->total += the_size; 4001967c: c4 02 60 08 ld [ %o1 + 8 ], %g2 <== NOT EXECUTED if ( info->largest < the_size ) 40019680: c8 02 60 04 ld [ %o1 + 4 ], %g4 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE uint32_t _Heap_Block_size ( Heap_Block *the_block ) { return (the_block->size & ~HEAP_PREV_USED); 40019684: 86 08 ff fe and %g3, -2, %g3 <== 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++; 40019688: 82 00 60 01 inc %g1 <== NOT EXECUTED info->total += the_size; 4001968c: 84 00 80 03 add %g2, %g3, %g2 <== 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++; 40019690: c2 22 40 00 st %g1, [ %o1 ] <== NOT EXECUTED info->total += the_size; if ( info->largest < the_size ) 40019694: 80 a1 00 03 cmp %g4, %g3 <== NOT EXECUTED 40019698: 1a 80 00 03 bcc 400196a4 <_Heap_Get_free_information+0x40> <== NOT EXECUTED 4001969c: c4 22 60 08 st %g2, [ %o1 + 8 ] <== NOT EXECUTED info->largest = the_size; 400196a0: c6 22 60 04 st %g3, [ %o1 + 4 ] <== NOT EXECUTED info->largest = 0; info->total = 0; for(the_block = _Heap_First(the_heap); the_block != tail; the_block = the_block->next) 400196a4: da 03 60 08 ld [ %o5 + 8 ], %o5 <== NOT EXECUTED info->number = 0; info->largest = 0; info->total = 0; for(the_block = _Heap_First(the_heap); the_block != tail; 400196a8: 80 a3 40 08 cmp %o5, %o0 <== NOT EXECUTED 400196ac: 32 bf ff f3 bne,a 40019678 <_Heap_Get_free_information+0x14> <== NOT EXECUTED 400196b0: c6 03 60 04 ld [ %o5 + 4 ], %g3 <== NOT EXECUTED info->number++; info->total += the_size; if ( info->largest < the_size ) info->largest = the_size; } } 400196b4: 81 c3 e0 08 retl <== NOT EXECUTED 400196b8: 01 00 00 00 nop 40007e78 <_Heap_Initialize>: Heap_Control *the_heap, void *starting_address, size_t size, uint32_t page_size ) { 40007e78: 9d e3 bf 98 save %sp, -104, %sp _H_uptr_t start; _H_uptr_t aligned_start; uint32_t overhead; Heap_Statistics *const stats = &the_heap->stats; if (page_size == 0) 40007e7c: 80 a6 e0 00 cmp %i3, 0 40007e80: 12 80 00 05 bne 40007e94 <_Heap_Initialize+0x1c> 40007e84: f6 27 a0 50 st %i3, [ %fp + 0x50 ] page_size = CPU_ALIGNMENT; 40007e88: 82 10 20 08 mov 8, %g1 <== NOT EXECUTED 40007e8c: 10 80 00 05 b 40007ea0 <_Heap_Initialize+0x28> <== NOT EXECUTED 40007e90: c2 27 a0 50 st %g1, [ %fp + 0x50 ] <== NOT EXECUTED else _Heap_Align_up( &page_size, CPU_ALIGNMENT ); 40007e94: 90 07 a0 50 add %fp, 0x50, %o0 40007e98: 7f ff ff b0 call 40007d58 <_Heap_Align_up> 40007e9c: 92 10 20 08 mov 8, %o1 /* Calculate aligned_start so that aligned_start + HEAP_BLOCK_USER_OFFSET (value of user pointer) is aligned on 'page_size' boundary. Make sure resulting 'aligned_start' is not below 'starting_address'. */ start = _H_p2u(starting_address); aligned_start = start + HEAP_BLOCK_USER_OFFSET; _Heap_Align_up_uptr ( &aligned_start, page_size ); 40007ea0: e0 07 a0 50 ld [ %fp + 0x50 ], %l0 /* Calculate aligned_start so that aligned_start + HEAP_BLOCK_USER_OFFSET (value of user pointer) is aligned on 'page_size' boundary. Make sure resulting 'aligned_start' is not below 'starting_address'. */ start = _H_p2u(starting_address); aligned_start = start + HEAP_BLOCK_USER_OFFSET; 40007ea4: a4 06 60 08 add %i1, 8, %l2 uint32_t alignment ) { _H_uptr_t v = *value; uint32_t a = alignment; _H_uptr_t r = v % a; 40007ea8: 92 10 00 10 mov %l0, %o1 40007eac: 40 00 36 34 call 4001577c <.urem> 40007eb0: 90 10 00 12 mov %l2, %o0 *value = r ? v - r + a : v; 40007eb4: 80 a2 20 00 cmp %o0, 0 40007eb8: 02 80 00 05 be 40007ecc <_Heap_Initialize+0x54> 40007ebc: 82 10 20 10 mov 0x10, %g1 40007ec0: 82 04 80 10 add %l2, %l0, %g1 40007ec4: a4 20 40 08 sub %g1, %o0, %l2 _Heap_Align_up_uptr ( &aligned_start, page_size ); aligned_start -= HEAP_BLOCK_USER_OFFSET; /* Calculate 'min_block_size'. It's HEAP_MIN_BLOCK_SIZE aligned up to the nearest multiple of 'page_size'. */ the_heap->min_block_size = HEAP_MIN_BLOCK_SIZE; 40007ec8: 82 10 20 10 mov 0x10, %g1 _Heap_Align_up ( &the_heap->min_block_size, page_size ); 40007ecc: 92 10 00 10 mov %l0, %o1 _Heap_Align_up_uptr ( &aligned_start, page_size ); aligned_start -= HEAP_BLOCK_USER_OFFSET; /* Calculate 'min_block_size'. It's HEAP_MIN_BLOCK_SIZE aligned up to the nearest multiple of 'page_size'. */ the_heap->min_block_size = HEAP_MIN_BLOCK_SIZE; 40007ed0: c2 26 20 14 st %g1, [ %i0 + 0x14 ] _Heap_Align_up ( &the_heap->min_block_size, page_size ); 40007ed4: 7f ff ff a1 call 40007d58 <_Heap_Align_up> 40007ed8: 90 06 20 14 add %i0, 0x14, %o0 (value of user pointer) is aligned on 'page_size' boundary. Make sure resulting 'aligned_start' is not below 'starting_address'. */ start = _H_p2u(starting_address); aligned_start = start + HEAP_BLOCK_USER_OFFSET; _Heap_Align_up_uptr ( &aligned_start, page_size ); aligned_start -= HEAP_BLOCK_USER_OFFSET; 40007edc: b6 04 bf f8 add %l2, -8, %i3 /* Calculate 'the_size' -- size of the first block so that there is enough space at the end for the permanent last block. It is equal to 'size' minus total overhead aligned down to the nearest multiple of 'page_size'. */ overhead = HEAP_OVERHEAD + (aligned_start - start); 40007ee0: 82 26 c0 19 sub %i3, %i1, %g1 40007ee4: 82 00 60 08 add %g1, 8, %g1 if ( size < overhead ) 40007ee8: 80 a6 80 01 cmp %i2, %g1 40007eec: 0a 80 00 2b bcs 40007f98 <_Heap_Initialize+0x120> 40007ef0: e2 07 a0 50 ld [ %fp + 0x50 ], %l1 return 0; /* Too small area for the heap */ the_size = size - overhead; 40007ef4: a0 26 80 01 sub %i2, %g1, %l0 uint32_t *value, uint32_t alignment ) { uint32_t v = *value; *value = v - (v % alignment); 40007ef8: 92 10 00 11 mov %l1, %o1 40007efc: 40 00 36 20 call 4001577c <.urem> 40007f00: 90 10 00 10 mov %l0, %o0 _Heap_Align_down ( &the_size, page_size ); if ( the_size == 0 ) 40007f04: a0 a4 00 08 subcc %l0, %o0, %l0 40007f08: 02 80 00 24 be 40007f98 <_Heap_Initialize+0x120> 40007f0c: 07 10 00 67 sethi %hi(0x40019c00), %g3 return 0; /* Too small area for the heap */ the_heap->page_size = page_size; 40007f10: e2 26 20 10 st %l1, [ %i0 + 0x10 ] the_heap->begin = starting_address; the_heap->end = starting_address + size; the_block = (Heap_Block *) aligned_start; the_block->prev_size = page_size; 40007f14: e2 24 bf f8 st %l1, [ %l2 + -8 ] the_block->size = the_size | HEAP_PREV_USED; 40007f18: 82 14 20 01 or %l0, 1, %g1 stats->max_search = 0; stats->allocs = 0; stats->searches = 0; stats->frees = 0; stats->resizes = 0; stats->instance = instance++; 40007f1c: c4 00 e0 7c ld [ %g3 + 0x7c ], %g2 the_heap->end = starting_address + size; the_block = (Heap_Block *) aligned_start; the_block->prev_size = page_size; the_block->size = the_size | HEAP_PREV_USED; 40007f20: c2 26 e0 04 st %g1, [ %i3 + 4 ] _HAssert(_Heap_Is_aligned(the_heap->min_block_size, page_size)); _HAssert(_Heap_Is_aligned_ptr(_Heap_User_area(the_block), page_size)); the_block = _Heap_Block_at( the_block, the_size ); the_heap->final = the_block; /* Permanent final block of the heap */ the_block->prev_size = the_size; /* Previous block is free */ 40007f24: e0 26 c0 10 st %l0, [ %i3 + %l0 ] RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( void *base, uint32_t offset ) { return (Heap_Block *) _Addresses_Add_offset( base, offset ); 40007f28: 88 06 c0 10 add %i3, %l0, %g4 the_block->size = page_size; 40007f2c: e2 21 20 04 st %l1, [ %g4 + 4 ] the_block = (Heap_Block *) aligned_start; the_block->prev_size = page_size; the_block->size = the_size | HEAP_PREV_USED; the_block->next = _Heap_Tail( the_heap ); 40007f30: f0 26 e0 08 st %i0, [ %i3 + 8 ] the_block->prev = _Heap_Head( the_heap ); 40007f34: f0 26 e0 0c st %i0, [ %i3 + 0xc ] stats->max_search = 0; stats->allocs = 0; stats->searches = 0; stats->frees = 0; stats->resizes = 0; stats->instance = instance++; 40007f38: c4 26 20 28 st %g2, [ %i0 + 0x28 ] the_block->size = page_size; stats->size = size; stats->free_size = the_size; stats->min_free_size = the_size; stats->free_blocks = 1; 40007f3c: 82 10 20 01 mov 1, %g1 the_block = _Heap_Block_at( the_block, the_size ); the_heap->final = the_block; /* Permanent final block of the heap */ the_block->prev_size = the_size; /* Previous block is free */ the_block->size = page_size; stats->size = size; 40007f40: f4 26 20 2c st %i2, [ %i0 + 0x2c ] stats->free_size = the_size; stats->min_free_size = the_size; stats->free_blocks = 1; stats->max_free_blocks = 1; 40007f44: c2 26 20 3c st %g1, [ %i0 + 0x3c ] the_block->size = page_size; stats->size = size; stats->free_size = the_size; stats->min_free_size = the_size; stats->free_blocks = 1; 40007f48: c2 26 20 38 st %g1, [ %i0 + 0x38 ] the_heap->final = the_block; /* Permanent final block of the heap */ the_block->prev_size = the_size; /* Previous block is free */ the_block->size = page_size; stats->size = size; stats->free_size = the_size; 40007f4c: e0 26 20 30 st %l0, [ %i0 + 0x30 ] stats->min_free_size = the_size; 40007f50: e0 26 20 34 st %l0, [ %i0 + 0x34 ] stats->free_blocks = 1; stats->max_free_blocks = 1; stats->used_blocks = 0; 40007f54: c0 26 20 40 clr [ %i0 + 0x40 ] stats->max_search = 0; 40007f58: c0 26 20 44 clr [ %i0 + 0x44 ] stats->allocs = 0; 40007f5c: c0 26 20 48 clr [ %i0 + 0x48 ] stats->searches = 0; 40007f60: c0 26 20 4c clr [ %i0 + 0x4c ] stats->frees = 0; 40007f64: c0 26 20 50 clr [ %i0 + 0x50 ] stats->resizes = 0; 40007f68: c0 26 20 54 clr [ %i0 + 0x54 ] if ( the_size == 0 ) return 0; /* Too small area for the heap */ the_heap->page_size = page_size; the_heap->begin = starting_address; the_heap->end = starting_address + size; 40007f6c: 82 06 40 1a add %i1, %i2, %g1 stats->max_search = 0; stats->allocs = 0; stats->searches = 0; stats->frees = 0; stats->resizes = 0; stats->instance = instance++; 40007f70: 84 00 a0 01 inc %g2 if ( the_size == 0 ) return 0; /* Too small area for the heap */ the_heap->page_size = page_size; the_heap->begin = starting_address; the_heap->end = starting_address + size; 40007f74: c2 26 20 1c st %g1, [ %i0 + 0x1c ] _Heap_Align_down ( &the_size, page_size ); if ( the_size == 0 ) return 0; /* Too small area for the heap */ the_heap->page_size = page_size; the_heap->begin = starting_address; 40007f78: f2 26 20 18 st %i1, [ %i0 + 0x18 ] the_block->prev_size = page_size; the_block->size = the_size | HEAP_PREV_USED; the_block->next = _Heap_Tail( the_heap ); the_block->prev = _Heap_Head( the_heap ); _Heap_Head(the_heap)->next = the_block; 40007f7c: f6 26 20 08 st %i3, [ %i0 + 8 ] _Heap_Tail(the_heap)->prev = the_block; 40007f80: f6 26 20 0c st %i3, [ %i0 + 0xc ] the_heap->start = the_block; 40007f84: f6 26 20 20 st %i3, [ %i0 + 0x20 ] _HAssert(_Heap_Is_aligned(the_heap->page_size, CPU_ALIGNMENT)); _HAssert(_Heap_Is_aligned(the_heap->min_block_size, page_size)); _HAssert(_Heap_Is_aligned_ptr(_Heap_User_area(the_block), page_size)); the_block = _Heap_Block_at( the_block, the_size ); the_heap->final = the_block; /* Permanent final block of the heap */ 40007f88: c8 26 20 24 st %g4, [ %i0 + 0x24 ] stats->max_search = 0; stats->allocs = 0; stats->searches = 0; stats->frees = 0; stats->resizes = 0; stats->instance = instance++; 40007f8c: c4 20 e0 7c st %g2, [ %g3 + 0x7c ] return ( the_size - HEAP_BLOCK_USED_OVERHEAD ); 40007f90: 81 c7 e0 08 ret 40007f94: 91 ec 3f fc restore %l0, -4, %o0 } 40007f98: 81 c7 e0 08 ret 40007f9c: 91 e8 20 00 restore %g0, 0, %o0 4000d198 <_Heap_Resize_block>: void *starting_address, size_t size, uint32_t *old_mem_size, uint32_t *avail_mem_size ) { 4000d198: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED uint32_t old_block_size; uint32_t old_user_size; uint32_t prev_used_flag; Heap_Statistics *const stats = &the_heap->stats; uint32_t const min_block_size = the_heap->min_block_size; uint32_t const page_size = the_heap->page_size; 4000d19c: e6 06 20 10 ld [ %i0 + 0x10 ], %l3 <== NOT EXECUTED Heap_Block *next_next_block; uint32_t old_block_size; uint32_t old_user_size; uint32_t prev_used_flag; Heap_Statistics *const stats = &the_heap->stats; uint32_t const min_block_size = the_heap->min_block_size; 4000d1a0: ea 06 20 14 ld [ %i0 + 0x14 ], %l5 <== NOT EXECUTED uint32_t const page_size = the_heap->page_size; *old_mem_size = 0; 4000d1a4: c0 26 c0 00 clr [ %i3 ] <== NOT EXECUTED *avail_mem_size = 0; 4000d1a8: c0 27 00 00 clr [ %i4 ] <== NOT EXECUTED /* The address passed could be greater than the block address plus * HEAP_BLOCK_USER_OFFSET as _Heap_Allocate_aligned() may produce such user * pointers. To get rid of this offset we need to align the address down * to the nearest 'page_size' boundary. */ _Heap_Align_down_uptr ( &addr, the_heap->page_size ); *the_block = (Heap_Block *)(addr - HEAP_BLOCK_USER_OFFSET); 4000d1ac: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 4000d1b0: 40 00 21 73 call 4001577c <.urem> <== NOT EXECUTED 4000d1b4: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED RTEMS_INLINE_ROUTINE boolean _Heap_Is_block_in ( Heap_Control *the_heap, Heap_Block *the_block ) { return _Addresses_Is_in_range( the_block, the_heap->start, the_heap->final ); 4000d1b8: c2 06 20 20 ld [ %i0 + 0x20 ], %g1 <== NOT EXECUTED /* The address passed could be greater than the block address plus * HEAP_BLOCK_USER_OFFSET as _Heap_Allocate_aligned() may produce such user * pointers. To get rid of this offset we need to align the address down * to the nearest 'page_size' boundary. */ _Heap_Align_down_uptr ( &addr, the_heap->page_size ); *the_block = (Heap_Block *)(addr - HEAP_BLOCK_USER_OFFSET); 4000d1bc: 90 26 40 08 sub %i1, %o0, %o0 <== NOT EXECUTED 4000d1c0: a4 02 3f f8 add %o0, -8, %l2 <== NOT EXECUTED _Heap_Start_of_block(the_heap, starting_address, &the_block); _HAssert(_Heap_Is_block_in(the_heap, the_block)); if (!_Heap_Is_block_in(the_heap, the_block)) 4000d1c4: 80 a4 80 01 cmp %l2, %g1 <== NOT EXECUTED 4000d1c8: 0a 80 00 78 bcs 4000d3a8 <_Heap_Resize_block+0x210> <== NOT EXECUTED 4000d1cc: c4 06 20 24 ld [ %i0 + 0x24 ], %g2 <== NOT EXECUTED 4000d1d0: 80 a4 80 02 cmp %l2, %g2 <== NOT EXECUTED 4000d1d4: 38 80 00 78 bgu,a 4000d3b4 <_Heap_Resize_block+0x21c> <== NOT EXECUTED 4000d1d8: 84 10 20 02 mov 2, %g2 <== NOT EXECUTED return HEAP_RESIZE_FATAL_ERROR; prev_used_flag = the_block->size & HEAP_PREV_USED; 4000d1dc: c6 04 a0 04 ld [ %l2 + 4 ], %g3 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE uint32_t _Heap_Block_size ( Heap_Block *the_block ) { return (the_block->size & ~HEAP_PREV_USED); 4000d1e0: ae 08 ff fe and %g3, -2, %l7 <== NOT EXECUTED RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( void *base, uint32_t offset ) { return (Heap_Block *) _Addresses_Add_offset( base, offset ); 4000d1e4: a2 04 80 17 add %l2, %l7, %l1 <== NOT EXECUTED old_block_size = _Heap_Block_size(the_block); next_block = _Heap_Block_at(the_block, old_block_size); _HAssert(_Heap_Is_block_in(the_heap, next_block)); _HAssert(_Heap_Is_prev_used(next_block)); if ( !_Heap_Is_block_in(the_heap, next_block) || 4000d1e8: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED 4000d1ec: 2a 80 00 72 bcs,a 4000d3b4 <_Heap_Resize_block+0x21c> <== NOT EXECUTED 4000d1f0: 84 10 20 02 mov 2, %g2 <== NOT EXECUTED 4000d1f4: 80 a4 40 02 cmp %l1, %g2 <== NOT EXECUTED 4000d1f8: 38 80 00 6f bgu,a 4000d3b4 <_Heap_Resize_block+0x21c> <== NOT EXECUTED 4000d1fc: 84 10 20 02 mov 2, %g2 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE boolean _Heap_Is_prev_used ( Heap_Block *the_block ) { return (the_block->size & HEAP_PREV_USED); 4000d200: c2 04 60 04 ld [ %l1 + 4 ], %g1 <== NOT EXECUTED 4000d204: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 4000d208: 02 80 00 68 be 4000d3a8 <_Heap_Resize_block+0x210> <== NOT EXECUTED 4000d20c: a8 08 7f fe and %g1, -2, %l4 <== NOT EXECUTED !_Heap_Is_prev_used(next_block)) return HEAP_RESIZE_FATAL_ERROR; next_block_size = _Heap_Block_size(next_block); next_next_block = _Heap_Block_at(next_block, next_block_size); next_is_used = (next_block == the_heap->final) || 4000d210: 80 a4 40 02 cmp %l1, %g2 <== NOT EXECUTED 4000d214: ac 10 20 01 mov 1, %l6 <== NOT EXECUTED 4000d218: 02 80 00 04 be 4000d228 <_Heap_Resize_block+0x90> <== NOT EXECUTED 4000d21c: ba 04 40 14 add %l1, %l4, %i5 <== NOT EXECUTED 4000d220: c2 07 60 04 ld [ %i5 + 4 ], %g1 <== NOT EXECUTED 4000d224: ac 08 60 01 and %g1, 1, %l6 <== NOT EXECUTED _Heap_Is_prev_used(next_next_block); /* See _Heap_Size_of_user_area() source for explanations */ old_user_size = _Addresses_Subtract(next_block, starting_address) 4000d228: 82 24 40 19 sub %l1, %i1, %g1 <== NOT EXECUTED 4000d22c: 82 00 60 04 add %g1, 4, %g1 <== NOT EXECUTED + HEAP_BLOCK_HEADER_OFFSET; *old_mem_size = old_user_size; 4000d230: c2 26 c0 00 st %g1, [ %i3 ] <== NOT EXECUTED if (size > old_user_size) { 4000d234: 80 a6 80 01 cmp %i2, %g1 <== NOT EXECUTED 4000d238: 08 80 00 1f bleu 4000d2b4 <_Heap_Resize_block+0x11c> <== NOT EXECUTED 4000d23c: b6 08 e0 01 and %g3, 1, %i3 <== NOT EXECUTED /* Need to extend the block: allocate part of the next block and then merge 'the_block' and allocated block together. */ if (next_is_used) /* Next block is in use, -- no way to extend */ 4000d240: 80 a5 a0 00 cmp %l6, 0 <== NOT EXECUTED 4000d244: 12 80 00 5b bne 4000d3b0 <_Heap_Resize_block+0x218> <== NOT EXECUTED 4000d248: a0 26 80 01 sub %i2, %g1, %l0 <== NOT EXECUTED uint32_t alignment ) { uint32_t v = *value; uint32_t a = alignment; uint32_t r = v % a; 4000d24c: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED 4000d250: 40 00 21 4b call 4001577c <.urem> <== NOT EXECUTED 4000d254: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED *value = r ? v - r + a : v; 4000d258: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 4000d25c: 02 80 00 05 be 4000d270 <_Heap_Resize_block+0xd8> <== NOT EXECUTED 4000d260: 80 a4 00 15 cmp %l0, %l5 <== NOT EXECUTED 4000d264: 82 04 00 13 add %l0, %l3, %g1 <== NOT EXECUTED 4000d268: a0 20 40 08 sub %g1, %o0, %l0 <== NOT EXECUTED 4000d26c: 80 a4 00 15 cmp %l0, %l5 <== NOT EXECUTED 4000d270: 1a 80 00 03 bcc 4000d27c <_Heap_Resize_block+0xe4> <== NOT EXECUTED 4000d274: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 4000d278: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED else { uint32_t add_block_size = size - old_user_size; _Heap_Align_up(&add_block_size, page_size); if (add_block_size < min_block_size) add_block_size = min_block_size; if (add_block_size > next_block_size) 4000d27c: 80 a2 00 14 cmp %o0, %l4 <== NOT EXECUTED 4000d280: 38 80 00 4d bgu,a 4000d3b4 <_Heap_Resize_block+0x21c> <== NOT EXECUTED 4000d284: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED return HEAP_RESIZE_UNSATISFIED; /* Next block is too small or none. */ add_block_size = 4000d288: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED 4000d28c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED 4000d290: 7f ff ea d0 call 40007dd0 <_Heap_Block_allocate> <== NOT EXECUTED 4000d294: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED _Heap_Block_allocate(the_heap, next_block, add_block_size); /* Merge two subsequent blocks */ the_block->size = (old_block_size + add_block_size) | prev_used_flag; 4000d298: 90 02 00 17 add %o0, %l7, %o0 <== NOT EXECUTED 4000d29c: 90 12 00 1b or %o0, %i3, %o0 <== NOT EXECUTED 4000d2a0: d0 24 a0 04 st %o0, [ %l2 + 4 ] <== NOT EXECUTED --stats->used_blocks; 4000d2a4: c2 06 20 40 ld [ %i0 + 0x40 ], %g1 <== NOT EXECUTED 4000d2a8: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 4000d2ac: 10 80 00 3a b 4000d394 <_Heap_Resize_block+0x1fc> <== NOT EXECUTED 4000d2b0: c2 26 20 40 st %g1, [ %i0 + 0x40 ] <== NOT EXECUTED } } else { /* Calculate how much memory we could free */ uint32_t free_block_size = old_user_size - size; 4000d2b4: a0 20 40 1a sub %g1, %i2, %l0 <== NOT EXECUTED uint32_t *value, uint32_t alignment ) { uint32_t v = *value; *value = v - (v % alignment); 4000d2b8: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED 4000d2bc: 40 00 21 30 call 4001577c <.urem> <== NOT EXECUTED 4000d2c0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED _Heap_Align_down(&free_block_size, page_size); if (free_block_size > 0) { 4000d2c4: a0 a4 00 08 subcc %l0, %o0, %l0 <== NOT EXECUTED 4000d2c8: 22 80 00 34 be,a 4000d398 <_Heap_Resize_block+0x200> <== NOT EXECUTED 4000d2cc: c2 06 20 54 ld [ %i0 + 0x54 ], %g1 <== NOT EXECUTED /* To free some memory the block should be shortened so that it can can hold 'size' user bytes and still remain not shorter than 'min_block_size'. */ uint32_t new_block_size = old_block_size - free_block_size; 4000d2d0: 84 25 c0 10 sub %l7, %l0, %g2 <== NOT EXECUTED if (new_block_size < min_block_size) { 4000d2d4: 80 a0 80 15 cmp %g2, %l5 <== NOT EXECUTED 4000d2d8: 1a 80 00 08 bcc 4000d2f8 <_Heap_Resize_block+0x160> <== NOT EXECUTED 4000d2dc: 80 a5 a0 00 cmp %l6, 0 <== NOT EXECUTED uint32_t delta = min_block_size - new_block_size; 4000d2e0: 82 25 40 02 sub %l5, %g2, %g1 <== NOT EXECUTED _HAssert(free_block_size >= delta); free_block_size -= delta; if (free_block_size == 0) { 4000d2e4: a0 a4 00 01 subcc %l0, %g1, %l0 <== NOT EXECUTED 4000d2e8: 22 80 00 2c be,a 4000d398 <_Heap_Resize_block+0x200> <== NOT EXECUTED 4000d2ec: c2 06 20 54 ld [ %i0 + 0x54 ], %g1 <== NOT EXECUTED ++stats->resizes; return HEAP_RESIZE_SUCCESSFUL; } new_block_size += delta; 4000d2f0: 84 00 80 01 add %g2, %g1, %g2 <== NOT EXECUTED _HAssert(new_block_size >= min_block_size); _HAssert(new_block_size + free_block_size == old_block_size); _HAssert(_Heap_Is_aligned(new_block_size, page_size)); _HAssert(_Heap_Is_aligned(free_block_size, page_size)); if (!next_is_used) { 4000d2f4: 80 a5 a0 00 cmp %l6, 0 <== NOT EXECUTED 4000d2f8: 12 80 00 15 bne 4000d34c <_Heap_Resize_block+0x1b4> <== NOT EXECUTED 4000d2fc: 80 a4 00 15 cmp %l0, %l5 <== NOT EXECUTED Heap_Block *const new_next_block = _Heap_Block_at(the_block, new_block_size); uint32_t const new_next_block_size = next_block_size + free_block_size; _HAssert(_Heap_Is_block_in(the_heap, next_next_block)); the_block->size = new_block_size | prev_used_flag; 4000d300: 82 10 80 1b or %g2, %i3, %g1 <== NOT EXECUTED if (!next_is_used) { /* Extend the next block to the low addresses by 'free_block_size' */ Heap_Block *const new_next_block = _Heap_Block_at(the_block, new_block_size); uint32_t const new_next_block_size = next_block_size + free_block_size; 4000d304: 86 04 00 14 add %l0, %l4, %g3 <== NOT EXECUTED _HAssert(_Heap_Is_block_in(the_heap, next_next_block)); the_block->size = new_block_size | prev_used_flag; 4000d308: c2 24 a0 04 st %g1, [ %l2 + 4 ] <== NOT EXECUTED new_next_block->size = new_next_block_size | HEAP_PREV_USED; 4000d30c: 82 10 e0 01 or %g3, 1, %g1 <== NOT EXECUTED RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( void *base, uint32_t offset ) { return (Heap_Block *) _Addresses_Add_offset( base, offset ); 4000d310: 84 04 80 02 add %l2, %g2, %g2 <== NOT EXECUTED next_next_block->prev_size = new_next_block_size; 4000d314: c6 27 40 00 st %g3, [ %i5 ] <== NOT EXECUTED Heap_Block *new_block ) { Heap_Block *block = old_block; Heap_Block *next = block->next; Heap_Block *prev = block->prev; 4000d318: da 04 60 0c ld [ %l1 + 0xc ], %o5 <== NOT EXECUTED Heap_Block *old_block, Heap_Block *new_block ) { Heap_Block *block = old_block; Heap_Block *next = block->next; 4000d31c: c8 04 60 08 ld [ %l1 + 8 ], %g4 <== NOT EXECUTED _Heap_Block_at(the_block, new_block_size); uint32_t const new_next_block_size = next_block_size + free_block_size; _HAssert(_Heap_Is_block_in(the_heap, next_next_block)); the_block->size = new_block_size | prev_used_flag; new_next_block->size = new_next_block_size | HEAP_PREV_USED; 4000d320: c2 20 a0 04 st %g1, [ %g2 + 4 ] <== NOT EXECUTED next_next_block->prev_size = new_next_block_size; _Heap_Block_replace(next_block, new_next_block); the_heap->stats.free_size += free_block_size; 4000d324: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 <== NOT EXECUTED Heap_Block *prev = block->prev; block = new_block; block->next = next; 4000d328: c8 20 a0 08 st %g4, [ %g2 + 8 ] <== NOT EXECUTED 4000d32c: 82 00 40 10 add %g1, %l0, %g1 <== NOT EXECUTED block->prev = prev; 4000d330: da 20 a0 0c st %o5, [ %g2 + 0xc ] <== NOT EXECUTED 4000d334: c2 26 20 30 st %g1, [ %i0 + 0x30 ] <== NOT EXECUTED *avail_mem_size = new_next_block_size - HEAP_BLOCK_USED_OVERHEAD; 4000d338: 86 00 ff fc add %g3, -4, %g3 <== NOT EXECUTED next->prev = prev->next = block; 4000d33c: c4 21 20 0c st %g2, [ %g4 + 0xc ] <== NOT EXECUTED 4000d340: c4 23 60 08 st %g2, [ %o5 + 8 ] <== NOT EXECUTED 4000d344: 10 80 00 14 b 4000d394 <_Heap_Resize_block+0x1fc> <== NOT EXECUTED 4000d348: c6 27 00 00 st %g3, [ %i4 ] <== NOT EXECUTED } else if (free_block_size >= min_block_size) { 4000d34c: 2a 80 00 13 bcs,a 4000d398 <_Heap_Resize_block+0x200> <== NOT EXECUTED 4000d350: c2 06 20 54 ld [ %i0 + 0x54 ], %g1 <== NOT EXECUTED /* Split the block into 2 used parts, then free the second one. */ the_block->size = new_block_size | prev_used_flag; 4000d354: 82 10 80 1b or %g2, %i3, %g1 <== NOT EXECUTED 4000d358: c2 24 a0 04 st %g1, [ %l2 + 4 ] <== NOT EXECUTED next_block = _Heap_Block_at(the_block, new_block_size); next_block->size = free_block_size | HEAP_PREV_USED; 4000d35c: 82 14 20 01 or %l0, 1, %g1 <== NOT EXECUTED RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( void *base, uint32_t offset ) { return (Heap_Block *) _Addresses_Add_offset( base, offset ); 4000d360: 92 04 80 02 add %l2, %g2, %o1 <== NOT EXECUTED 4000d364: c2 22 60 04 st %g1, [ %o1 + 4 ] <== NOT EXECUTED ++stats->used_blocks; /* We have created used block */ 4000d368: c2 06 20 40 ld [ %i0 + 0x40 ], %g1 <== NOT EXECUTED --stats->frees; /* Don't count next call in stats */ 4000d36c: c4 06 20 50 ld [ %i0 + 0x50 ], %g2 <== NOT EXECUTED } else if (free_block_size >= min_block_size) { /* Split the block into 2 used parts, then free the second one. */ the_block->size = new_block_size | prev_used_flag; next_block = _Heap_Block_at(the_block, new_block_size); next_block->size = free_block_size | HEAP_PREV_USED; ++stats->used_blocks; /* We have created used block */ 4000d370: 82 00 60 01 inc %g1 <== NOT EXECUTED --stats->frees; /* Don't count next call in stats */ 4000d374: 84 00 bf ff add %g2, -1, %g2 <== NOT EXECUTED } else if (free_block_size >= min_block_size) { /* Split the block into 2 used parts, then free the second one. */ the_block->size = new_block_size | prev_used_flag; next_block = _Heap_Block_at(the_block, new_block_size); next_block->size = free_block_size | HEAP_PREV_USED; ++stats->used_blocks; /* We have created used block */ 4000d378: c2 26 20 40 st %g1, [ %i0 + 0x40 ] <== NOT EXECUTED --stats->frees; /* Don't count next call in stats */ 4000d37c: c4 26 20 50 st %g2, [ %i0 + 0x50 ] <== NOT EXECUTED _Heap_Free(the_heap, _Heap_User_area(next_block)); 4000d380: 92 02 60 08 add %o1, 8, %o1 <== NOT EXECUTED 4000d384: 7f ff ea 03 call 40007b90 <_Heap_Free> <== NOT EXECUTED 4000d388: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED *avail_mem_size = free_block_size - HEAP_BLOCK_USED_OVERHEAD; 4000d38c: 82 04 3f fc add %l0, -4, %g1 <== NOT EXECUTED 4000d390: c2 27 00 00 st %g1, [ %i4 ] <== NOT EXECUTED } } } ++stats->resizes; 4000d394: c2 06 20 54 ld [ %i0 + 0x54 ], %g1 <== NOT EXECUTED 4000d398: 84 10 20 00 clr %g2 <== NOT EXECUTED 4000d39c: 82 00 60 01 inc %g1 <== NOT EXECUTED 4000d3a0: 10 80 00 05 b 4000d3b4 <_Heap_Resize_block+0x21c> <== NOT EXECUTED 4000d3a4: c2 26 20 54 st %g1, [ %i0 + 0x54 ] <== NOT EXECUTED return HEAP_RESIZE_SUCCESSFUL; 4000d3a8: 10 80 00 03 b 4000d3b4 <_Heap_Resize_block+0x21c> <== NOT EXECUTED 4000d3ac: 84 10 20 02 mov 2, %g2 <== NOT EXECUTED 4000d3b0: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED } 4000d3b4: 81 c7 e0 08 ret <== NOT EXECUTED 4000d3b8: 91 e8 00 02 restore %g0, %g2, %o0 <== NOT EXECUTED 4000d3bc <_Heap_Size_of_user_area>: boolean _Heap_Size_of_user_area( Heap_Control *the_heap, void *starting_address, size_t *size ) { 4000d3bc: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED Heap_Block *the_block; Heap_Block *next_block; uint32_t the_size; if ( !_Addresses_Is_in_range( 4000d3c0: e2 06 20 20 ld [ %i0 + 0x20 ], %l1 <== NOT EXECUTED 4000d3c4: 80 a6 40 11 cmp %i1, %l1 <== NOT EXECUTED 4000d3c8: 0a 80 00 1f bcs 4000d444 <_Heap_Size_of_user_area+0x88> <== NOT EXECUTED 4000d3cc: e0 06 20 24 ld [ %i0 + 0x24 ], %l0 <== NOT EXECUTED 4000d3d0: 80 a6 40 10 cmp %i1, %l0 <== NOT EXECUTED 4000d3d4: 18 80 00 1c bgu 4000d444 <_Heap_Size_of_user_area+0x88> <== NOT EXECUTED 4000d3d8: 01 00 00 00 nop <== NOT EXECUTED /* The address passed could be greater than the block address plus * HEAP_BLOCK_USER_OFFSET as _Heap_Allocate_aligned() may produce such user * pointers. To get rid of this offset we need to align the address down * to the nearest 'page_size' boundary. */ _Heap_Align_down_uptr ( &addr, the_heap->page_size ); *the_block = (Heap_Block *)(addr - HEAP_BLOCK_USER_OFFSET); 4000d3dc: d2 06 20 10 ld [ %i0 + 0x10 ], %o1 <== NOT EXECUTED 4000d3e0: 40 00 20 e7 call 4001577c <.urem> <== NOT EXECUTED 4000d3e4: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 4000d3e8: 90 26 40 08 sub %i1, %o0, %o0 <== NOT EXECUTED 4000d3ec: 90 02 3f f8 add %o0, -8, %o0 <== NOT EXECUTED return( FALSE ); _Heap_Start_of_block( the_heap, starting_address, &the_block ); _HAssert(_Heap_Is_block_in( the_heap, the_block )); if ( !_Heap_Is_block_in( the_heap, the_block ) ) 4000d3f0: 80 a2 00 11 cmp %o0, %l1 <== NOT EXECUTED 4000d3f4: 0a 80 00 14 bcs 4000d444 <_Heap_Size_of_user_area+0x88> <== NOT EXECUTED 4000d3f8: 80 a2 00 10 cmp %o0, %l0 <== NOT EXECUTED 4000d3fc: 18 80 00 12 bgu 4000d444 <_Heap_Size_of_user_area+0x88> <== NOT EXECUTED 4000d400: 01 00 00 00 nop <== NOT EXECUTED RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( void *base, uint32_t offset ) { return (Heap_Block *) _Addresses_Add_offset( base, offset ); 4000d404: c2 02 20 04 ld [ %o0 + 4 ], %g1 <== NOT EXECUTED 4000d408: 82 08 7f fe and %g1, -2, %g1 <== NOT EXECUTED 4000d40c: 90 02 00 01 add %o0, %g1, %o0 <== NOT EXECUTED the_size = _Heap_Block_size( the_block ); next_block = _Heap_Block_at( the_block, the_size ); _HAssert(_Heap_Is_block_in( the_heap, next_block )); _HAssert(_Heap_Is_prev_used( next_block )); if ( 4000d410: 80 a2 00 11 cmp %o0, %l1 <== NOT EXECUTED 4000d414: 0a 80 00 0c bcs 4000d444 <_Heap_Size_of_user_area+0x88> <== NOT EXECUTED 4000d418: 80 a2 00 10 cmp %o0, %l0 <== NOT EXECUTED 4000d41c: 18 80 00 0a bgu 4000d444 <_Heap_Size_of_user_area+0x88> <== NOT EXECUTED 4000d420: 01 00 00 00 nop <== NOT EXECUTED 4000d424: c2 02 20 04 ld [ %o0 + 4 ], %g1 <== NOT EXECUTED 4000d428: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED 4000d42c: 02 80 00 06 be 4000d444 <_Heap_Size_of_user_area+0x88> <== NOT EXECUTED 4000d430: 82 22 00 19 sub %o0, %i1, %g1 <== NOT EXECUTED and then add correction equal to the offset of the 'size' field of the 'Heap_Block' structure. The correction is due to the fact that 'prev_size' field of the next block is actually used as user accessible area of 'the_block'. */ *size = _Addresses_Subtract ( next_block, starting_address ) 4000d434: 82 00 60 04 add %g1, 4, %g1 <== NOT EXECUTED 4000d438: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED 4000d43c: 81 c7 e0 08 ret <== NOT EXECUTED 4000d440: 91 e8 20 01 restore %g0, 1, %o0 <== NOT EXECUTED + HEAP_BLOCK_HEADER_OFFSET; return( TRUE ); } 4000d444: 81 c7 e0 08 ret <== NOT EXECUTED 4000d448: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 400073f8 <_IO_Manager_initialization>: void _IO_Manager_initialization( rtems_driver_address_table *driver_table, uint32_t drivers_in_table, uint32_t number_of_drivers ) { 400073f8: 9d e3 bf 98 save %sp, -104, %sp 400073fc: 23 10 00 68 sethi %hi(0x4001a000), %l1 /* * If the user claims there are less drivers than are actually in * the table, then let's just go with the table's count. */ if ( number_of_drivers <= drivers_in_table ) 40007400: 80 a6 80 19 cmp %i2, %i1 40007404: 18 80 00 06 bgu 4000741c <_IO_Manager_initialization+0x24> 40007408: 25 10 00 68 sethi %hi(0x4001a000), %l2 * If the maximum number of driver is the same as the number in the * table, then we do not have to copy the driver table. They can't * register any dynamically. */ if ( number_of_drivers == drivers_in_table ) { _IO_Driver_address_table = driver_table; 4000740c: f0 24 62 08 st %i0, [ %l1 + 0x208 ] _IO_Number_of_drivers = number_of_drivers; 40007410: f2 24 a2 04 st %i1, [ %l2 + 0x204 ] 40007414: 81 c7 e0 08 ret 40007418: 81 e8 00 00 restore /* * The application requested extra slots in the driver table, so we * have to allocate a new driver table and copy theirs to it. */ _IO_Driver_address_table = (rtems_driver_address_table *) 4000741c: 83 2e a0 03 sll %i2, 3, %g1 <== NOT EXECUTED 40007420: a1 2e a0 05 sll %i2, 5, %l0 <== NOT EXECUTED 40007424: a0 24 00 01 sub %l0, %g1, %l0 <== NOT EXECUTED 40007428: 40 00 0e cb call 4000af54 <_Workspace_Allocate_or_fatal_error> <== NOT EXECUTED 4000742c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED _Workspace_Allocate_or_fatal_error( sizeof( rtems_driver_address_table ) * ( number_of_drivers ) ); _IO_Number_of_drivers = number_of_drivers; memset( 40007430: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED _IO_Driver_address_table = (rtems_driver_address_table *) _Workspace_Allocate_or_fatal_error( sizeof( rtems_driver_address_table ) * ( number_of_drivers ) ); _IO_Number_of_drivers = number_of_drivers; 40007434: f4 24 a2 04 st %i2, [ %l2 + 0x204 ] <== NOT EXECUTED /* * The application requested extra slots in the driver table, so we * have to allocate a new driver table and copy theirs to it. */ _IO_Driver_address_table = (rtems_driver_address_table *) 40007438: d0 24 62 08 st %o0, [ %l1 + 0x208 ] <== NOT EXECUTED _Workspace_Allocate_or_fatal_error( sizeof( rtems_driver_address_table ) * ( number_of_drivers ) ); _IO_Number_of_drivers = number_of_drivers; memset( 4000743c: 40 00 1d fd call 4000ec30 <== NOT EXECUTED 40007440: 92 10 20 00 clr %o1 <== NOT EXECUTED _IO_Driver_address_table, 0, sizeof( rtems_driver_address_table ) * ( number_of_drivers ) ); for ( index = 0 ; index < drivers_in_table ; index++ ) _IO_Driver_address_table[index] = driver_table[index]; 40007444: e2 04 62 08 ld [ %l1 + 0x208 ], %l1 <== NOT EXECUTED 40007448: b4 10 20 00 clr %i2 <== NOT EXECUTED 4000744c: 10 80 00 07 b 40007468 <_IO_Manager_initialization+0x70> <== NOT EXECUTED 40007450: a0 10 20 00 clr %l0 <== NOT EXECUTED 40007454: 92 04 00 18 add %l0, %i0, %o1 <== NOT EXECUTED memset( _IO_Driver_address_table, 0, sizeof( rtems_driver_address_table ) * ( number_of_drivers ) ); for ( index = 0 ; index < drivers_in_table ; index++ ) 40007458: b4 06 a0 01 inc %i2 <== NOT EXECUTED 4000745c: a0 04 20 18 add %l0, 0x18, %l0 <== NOT EXECUTED _IO_Driver_address_table[index] = driver_table[index]; 40007460: 40 00 1d c7 call 4000eb7c <== NOT EXECUTED 40007464: 94 10 20 18 mov 0x18, %o2 <== NOT EXECUTED memset( _IO_Driver_address_table, 0, sizeof( rtems_driver_address_table ) * ( number_of_drivers ) ); for ( index = 0 ; index < drivers_in_table ; index++ ) 40007468: 80 a6 80 19 cmp %i2, %i1 <== NOT EXECUTED 4000746c: 12 bf ff fa bne 40007454 <_IO_Manager_initialization+0x5c> <== NOT EXECUTED 40007470: 90 04 00 11 add %l0, %l1, %o0 <== NOT EXECUTED 40007474: 81 c7 e0 08 ret <== NOT EXECUTED 40007478: 81 e8 00 00 restore <== NOT EXECUTED 40007fe0 <_ISR_Handler_initialization>: * * Output parameters: NONE */ void _ISR_Handler_initialization( void ) { 40007fe0: 9d e3 bf 98 save %sp, -104, %sp _ISR_Signals_to_thread_executing = FALSE; 40007fe4: 03 10 00 68 sethi %hi(0x4001a000), %g1 40007fe8: c0 20 60 28 clr [ %g1 + 0x28 ] ! 4001a028 <_ISR_Signals_to_thread_executing> _ISR_Nest_level = 0; 40007fec: 03 10 00 67 sethi %hi(0x40019c00), %g1 _ISR_Vector_table = _Workspace_Allocate_or_fatal_error( 40007ff0: 90 10 24 00 mov 0x400, %o0 void _ISR_Handler_initialization( void ) { _ISR_Signals_to_thread_executing = FALSE; _ISR_Nest_level = 0; 40007ff4: c0 20 63 64 clr [ %g1 + 0x364 ] _ISR_Vector_table = _Workspace_Allocate_or_fatal_error( 40007ff8: 40 00 0b d7 call 4000af54 <_Workspace_Allocate_or_fatal_error> 40007ffc: 01 00 00 00 nop _CPU_Initialize_vectors(); #if ( CPU_ALLOCATE_INTERRUPT_STACK == TRUE ) if ( _CPU_Table.interrupt_stack_size < STACK_MINIMUM_SIZE ) 40008000: 03 10 00 67 sethi %hi(0x40019c00), %g1 40008004: a0 10 62 b4 or %g1, 0x2b4, %l0 ! 40019eb4 <_CPU_Table> 40008008: c4 04 20 18 ld [ %l0 + 0x18 ], %g2 { _ISR_Signals_to_thread_executing = FALSE; _ISR_Nest_level = 0; _ISR_Vector_table = _Workspace_Allocate_or_fatal_error( 4000800c: 03 10 00 67 sethi %hi(0x40019c00), %g1 _CPU_Initialize_vectors(); #if ( CPU_ALLOCATE_INTERRUPT_STACK == TRUE ) if ( _CPU_Table.interrupt_stack_size < STACK_MINIMUM_SIZE ) 40008010: 80 a0 af ff cmp %g2, 0xfff 40008014: 18 80 00 06 bgu 4000802c <_ISR_Handler_initialization+0x4c> 40008018: d0 20 63 44 st %o0, [ %g1 + 0x344 ] _Internal_error_Occurred( 4000801c: 90 10 20 00 clr %o0 <== NOT EXECUTED 40008020: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 40008024: 7f ff ff df call 40007fa0 <_Internal_error_Occurred> <== NOT EXECUTED 40008028: 94 10 20 05 mov 5, %o2 <== NOT EXECUTED INTERNAL_ERROR_CORE, TRUE, INTERNAL_ERROR_INTERRUPT_STACK_TOO_SMALL ); _CPU_Interrupt_stack_low = 4000802c: 40 00 0b ca call 4000af54 <_Workspace_Allocate_or_fatal_error> 40008030: d0 04 20 18 ld [ %l0 + 0x18 ], %o0 _Workspace_Allocate_or_fatal_error( _CPU_Table.interrupt_stack_size ); _CPU_Interrupt_stack_high = _Addresses_Add_offset( 40008034: c4 04 20 18 ld [ %l0 + 0x18 ], %g2 INTERNAL_ERROR_CORE, TRUE, INTERNAL_ERROR_INTERRUPT_STACK_TOO_SMALL ); _CPU_Interrupt_stack_low = 40008038: 03 10 00 67 sethi %hi(0x40019c00), %g1 _Workspace_Allocate_or_fatal_error( _CPU_Table.interrupt_stack_size ); _CPU_Interrupt_stack_high = _Addresses_Add_offset( 4000803c: 84 02 00 02 add %o0, %g2, %g2 INTERNAL_ERROR_CORE, TRUE, INTERNAL_ERROR_INTERRUPT_STACK_TOO_SMALL ); _CPU_Interrupt_stack_low = 40008040: d0 20 62 b0 st %o0, [ %g1 + 0x2b0 ] _Workspace_Allocate_or_fatal_error( _CPU_Table.interrupt_stack_size ); _CPU_Interrupt_stack_high = _Addresses_Add_offset( 40008044: 03 10 00 67 sethi %hi(0x40019c00), %g1 40008048: c4 20 61 fc st %g2, [ %g1 + 0x1fc ] ! 40019dfc <_CPU_Interrupt_stack_high> #if ( CPU_HAS_HARDWARE_INTERRUPT_STACK == TRUE ) _CPU_Install_interrupt_stack(); #endif } 4000804c: 81 c7 e0 08 ret 40008050: 81 e8 00 00 restore 4000d45c <_Objects_Compare_name_string>: boolean _Objects_Compare_name_string( void *name_1, void *name_2, uint16_t length ) { 4000d45c: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED if ( !strncmp( name_1, name_2, length ) ) 4000d460: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 4000d464: 95 2e a0 10 sll %i2, 0x10, %o2 <== NOT EXECUTED 4000d468: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 4000d46c: 40 00 08 ed call 4000f820 <== NOT EXECUTED 4000d470: 95 32 a0 10 srl %o2, 0x10, %o2 <== NOT EXECUTED return TRUE; return FALSE; } 4000d474: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED 4000d478: b0 60 3f ff subx %g0, -1, %i0 <== NOT EXECUTED 4000d47c: 81 c7 e0 08 ret <== NOT EXECUTED 4000d480: 81 e8 00 00 restore <== NOT EXECUTED 40016960 <_Objects_Copy_name_raw>: const size_t length ) { uint32_t *source_p = (uint32_t *) source; uint32_t *destination_p = (uint32_t *) destination; size_t tmp_length = length / OBJECTS_NAME_ALIGNMENT; 40016960: 10 80 00 05 b 40016974 <_Objects_Copy_name_raw+0x14> <== NOT EXECUTED 40016964: 95 32 a0 02 srl %o2, 2, %o2 <== NOT EXECUTED while ( tmp_length-- ) *destination_p++ = *source_p++; 40016968: 90 02 20 04 add %o0, 4, %o0 <== NOT EXECUTED 4001696c: c2 22 40 00 st %g1, [ %o1 ] <== NOT EXECUTED 40016970: 92 02 60 04 add %o1, 4, %o1 <== NOT EXECUTED { uint32_t *source_p = (uint32_t *) source; uint32_t *destination_p = (uint32_t *) destination; size_t tmp_length = length / OBJECTS_NAME_ALIGNMENT; while ( tmp_length-- ) 40016974: 94 02 bf ff add %o2, -1, %o2 <== NOT EXECUTED 40016978: 80 a2 bf ff cmp %o2, -1 <== NOT EXECUTED 4001697c: 32 bf ff fb bne,a 40016968 <_Objects_Copy_name_raw+0x8> <== NOT EXECUTED 40016980: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED *destination_p++ = *source_p++; } 40016984: 81 c3 e0 08 retl <== NOT EXECUTED 40016988: 01 00 00 00 nop 40008130 <_Objects_Extend_information>: */ void _Objects_Extend_information( Objects_Information *information ) { 40008130: 9d e3 bf 88 save %sp, -120, %sp */ RTEMS_INLINE_ROUTINE uint32_t _Objects_Get_index( Objects_Id id ) { return (id >> OBJECTS_INDEX_START_BIT) & OBJECTS_INDEX_VALID_BITS; 40008134: c4 06 20 08 ld [ %i0 + 8 ], %g2 minimum_index = _Objects_Get_index( information->minimum_id ); index_base = minimum_index; block = 0; if ( information->maximum < minimum_index ) 40008138: e0 16 20 10 lduh [ %i0 + 0x10 ], %l0 4000813c: 03 00 00 3f sethi %hi(0xfc00), %g1 40008140: 82 10 63 ff or %g1, 0x3ff, %g1 ! ffff 40008144: a2 08 80 01 and %g2, %g1, %l1 40008148: 80 a4 00 11 cmp %l0, %l1 4000814c: 3a 80 00 06 bcc,a 40008164 <_Objects_Extend_information+0x34> 40008150: e4 06 20 18 ld [ %i0 + 0x18 ], %l2 40008154: ac 10 00 11 mov %l1, %l6 40008158: 90 10 20 00 clr %o0 4000815c: 10 80 00 12 b 400081a4 <_Objects_Extend_information+0x74> 40008160: b8 10 20 00 clr %i4 block_count = 0; else { block_count = information->maximum / information->allocation_size; 40008164: 90 10 00 10 mov %l0, %o0 40008168: 92 10 00 12 mov %l2, %o1 4000816c: 40 00 34 d8 call 400154cc <.udiv> 40008170: ac 10 00 11 mov %l1, %l6 40008174: 10 80 00 09 b 40008198 <_Objects_Extend_information+0x68> 40008178: b8 10 20 00 clr %i4 for ( ; block < block_count; block++ ) { if ( information->object_blocks[ block ] == NULL ) 4000817c: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 40008180: c2 00 40 02 ld [ %g1 + %g2 ], %g1 40008184: 80 a0 60 00 cmp %g1, 0 40008188: 02 80 00 08 be 400081a8 <_Objects_Extend_information+0x78> 4000818c: 80 a5 80 10 cmp %l6, %l0 break; else index_base += information->allocation_size; 40008190: ac 05 80 12 add %l6, %l2, %l6 if ( information->maximum < minimum_index ) block_count = 0; else { block_count = information->maximum / information->allocation_size; for ( ; block < block_count; block++ ) { 40008194: b8 07 20 01 inc %i4 40008198: 80 a7 00 08 cmp %i4, %o0 4000819c: 12 bf ff f8 bne 4000817c <_Objects_Extend_information+0x4c> 400081a0: 85 2f 20 02 sll %i4, 2, %g2 /* * If the index_base is the maximum we need to grow the tables. */ if (index_base >= information->maximum ) { 400081a4: 80 a5 80 10 cmp %l6, %l0 400081a8: 2a 80 00 63 bcs,a 40008334 <_Objects_Extend_information+0x204> 400081ac: c2 06 20 14 ld [ %i0 + 0x14 ], %g1 * Up the block count and maximum */ block_count++; maximum = information->maximum + information->allocation_size; 400081b0: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 /* * Allocate the tables and break it up. */ if ( information->auto_extend ) { 400081b4: c4 06 20 14 ld [ %i0 + 0x14 ], %g2 * Up the block count and maximum */ block_count++; maximum = information->maximum + information->allocation_size; 400081b8: ae 04 00 01 add %l0, %g1, %l7 /* * Allocate the tables and break it up. */ if ( information->auto_extend ) { 400081bc: 80 a0 a0 00 cmp %g2, 0 /* * Up the block count and maximum */ block_count++; 400081c0: a0 02 20 01 add %o0, 1, %l0 400081c4: 82 05 c0 11 add %l7, %l1, %g1 /* * Allocate the tables and break it up. */ if ( information->auto_extend ) { 400081c8: 02 80 00 0b be 400081f4 <_Objects_Extend_information+0xc4> 400081cc: 91 2c 20 01 sll %l0, 1, %o0 object_blocks = (void**) 400081d0: 90 02 00 10 add %o0, %l0, %o0 400081d4: 90 00 40 08 add %g1, %o0, %o0 400081d8: 7f ff ff cf call 40008114 <_Workspace_Allocate> 400081dc: 91 2a 20 02 sll %o0, 2, %o0 block_count * (sizeof(void *) + sizeof(uint32_t ) + sizeof(Objects_Name *)) + ((maximum + minimum_index) * sizeof(Objects_Control *)) ); if ( !object_blocks ) 400081e0: a4 92 20 00 orcc %o0, 0, %l2 400081e4: 32 80 00 0a bne,a 4000820c <_Objects_Extend_information+0xdc> 400081e8: c2 16 20 10 lduh [ %i0 + 0x10 ], %g1 400081ec: 81 c7 e0 08 ret <== NOT EXECUTED 400081f0: 81 e8 00 00 restore <== NOT EXECUTED return; } else { object_blocks = (void**) 400081f4: 90 02 00 10 add %o0, %l0, %o0 400081f8: 90 00 40 08 add %g1, %o0, %o0 400081fc: 40 00 0b 56 call 4000af54 <_Workspace_Allocate_or_fatal_error> 40008200: 91 2a 20 02 sll %o0, 2, %o0 40008204: a4 10 00 08 mov %o0, %l2 * in the copies. */ block_count--; if ( information->maximum > minimum_index ) { 40008208: c2 16 20 10 lduh [ %i0 + 0x10 ], %g1 /* * Take the block count down. Saves all the (block_count - 1) * in the copies. */ block_count--; 4000820c: ba 04 3f ff add %l0, -1, %i5 if ( information->maximum > minimum_index ) { 40008210: 80 a0 40 11 cmp %g1, %l1 40008214: 84 10 20 00 clr %g2 40008218: 83 2c 20 02 sll %l0, 2, %g1 /* * Break the block into the various sections. * */ inactive_per_block = (uint32_t *) _Addresses_Add_offset( 4000821c: a8 04 80 01 add %l2, %g1, %l4 object_blocks, block_count * sizeof(void*) ); name_table = (Objects_Name *) _Addresses_Add_offset( 40008220: aa 05 00 01 add %l4, %g1, %l5 * in the copies. */ block_count--; if ( information->maximum > minimum_index ) { 40008224: 08 80 00 19 bleu 40008288 <_Objects_Extend_information+0x158> 40008228: a6 05 40 01 add %l5, %g1, %l3 /* * 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, 4000822c: d2 06 20 3c ld [ %i0 + 0x3c ], %o1 40008230: a1 2f 60 02 sll %i5, 2, %l0 40008234: 90 10 00 12 mov %l2, %o0 40008238: 40 00 1a 51 call 4000eb7c 4000823c: 94 10 00 10 mov %l0, %o2 information->object_blocks, block_count * sizeof(void*) ); memcpy( inactive_per_block, 40008240: d2 06 20 38 ld [ %i0 + 0x38 ], %o1 40008244: 94 10 00 10 mov %l0, %o2 40008248: 40 00 1a 4d call 4000eb7c 4000824c: 90 10 00 14 mov %l4, %o0 information->inactive_per_block, block_count * sizeof(uint32_t ) ); memcpy( name_table, 40008250: d2 06 20 24 ld [ %i0 + 0x24 ], %o1 40008254: 94 10 00 10 mov %l0, %o2 40008258: 40 00 1a 49 call 4000eb7c 4000825c: 90 10 00 15 mov %l5, %o0 information->name_table, block_count * sizeof(Objects_Name *) ); memcpy( local_table, 40008260: d4 16 20 10 lduh [ %i0 + 0x10 ], %o2 40008264: d2 06 20 20 ld [ %i0 + 0x20 ], %o1 40008268: 94 02 80 11 add %o2, %l1, %o2 4000826c: 90 10 00 13 mov %l3, %o0 40008270: 40 00 1a 43 call 4000eb7c 40008274: 95 2a a0 02 sll %o2, 2, %o2 /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; 40008278: 10 80 00 08 b 40008298 <_Objects_Extend_information+0x168> 4000827c: 83 2f 60 02 sll %i5, 2, %g1 else { /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { 40008280: 84 00 a0 01 inc %g2 local_table[ index ] = NULL; 40008284: c0 20 40 13 clr [ %g1 + %l3 ] else { /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { 40008288: 80 a0 80 11 cmp %g2, %l1 4000828c: 32 bf ff fd bne,a 40008280 <_Objects_Extend_information+0x150> 40008290: 83 28 a0 02 sll %g2, 2, %g1 /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; 40008294: 83 2f 60 02 sll %i5, 2, %g1 inactive_per_block[block_count] = 0; 40008298: c0 25 00 01 clr [ %l4 + %g1 ] /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; 4000829c: c0 24 80 01 clr [ %l2 + %g1 ] inactive_per_block[block_count] = 0; name_table[block_count] = NULL; for ( index=index_base ; index < ( information->allocation_size + index_base ); 400082a0: c4 06 20 18 ld [ %i0 + 0x18 ], %g2 * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; name_table[block_count] = NULL; 400082a4: c0 25 40 01 clr [ %l5 + %g1 ] for ( index=index_base ; index < ( information->allocation_size + index_base ); 400082a8: 83 2d a0 02 sll %l6, 2, %g1 400082ac: 86 05 80 02 add %l6, %g2, %g3 400082b0: 84 04 c0 01 add %l3, %g1, %g2 400082b4: 10 80 00 04 b 400082c4 <_Objects_Extend_information+0x194> 400082b8: 82 10 00 16 mov %l6, %g1 index++ ) { local_table[ index ] = NULL; 400082bc: c0 20 bf fc clr [ %g2 + -4 ] inactive_per_block[block_count] = 0; name_table[block_count] = NULL; for ( index=index_base ; index < ( information->allocation_size + index_base ); index++ ) { 400082c0: 82 00 60 01 inc %g1 object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; name_table[block_count] = NULL; for ( index=index_base ; index < ( information->allocation_size + index_base ); 400082c4: 80 a0 40 03 cmp %g1, %g3 400082c8: 0a bf ff fd bcs 400082bc <_Objects_Extend_information+0x18c> 400082cc: 84 00 a0 04 add %g2, 4, %g2 index++ ) { local_table[ index ] = NULL; } _ISR_Disable( level ); 400082d0: 7f ff e6 f8 call 40001eb0 400082d4: 01 00 00 00 nop 400082d8: a0 10 00 08 mov %o0, %l0 information->object_blocks = object_blocks; information->inactive_per_block = inactive_per_block; information->name_table = name_table; information->local_table = local_table; information->maximum = maximum; information->maximum_id = _Objects_Build_id( 400082dc: d0 06 00 00 ld [ %i0 ], %o0 400082e0: d2 16 20 04 lduh [ %i0 + 4 ], %o1 _ISR_Disable( level ); old_tables = information->object_blocks; information->object_blocks = object_blocks; information->inactive_per_block = inactive_per_block; 400082e4: e8 26 20 38 st %l4, [ %i0 + 0x38 ] information->name_table = name_table; 400082e8: ea 26 20 24 st %l5, [ %i0 + 0x24 ] information->local_table = local_table; 400082ec: e6 26 20 20 st %l3, [ %i0 + 0x20 ] information->maximum = maximum; 400082f0: ee 36 20 10 sth %l7, [ %i0 + 0x10 ] information->maximum_id = _Objects_Build_id( 400082f4: 97 2d e0 10 sll %l7, 0x10, %o3 local_table[ index ] = NULL; } _ISR_Disable( level ); old_tables = information->object_blocks; 400082f8: e2 06 20 3c ld [ %i0 + 0x3c ], %l1 information->object_blocks = object_blocks; information->inactive_per_block = inactive_per_block; information->name_table = name_table; information->local_table = local_table; information->maximum = maximum; information->maximum_id = _Objects_Build_id( 400082fc: 97 32 e0 10 srl %o3, 0x10, %o3 _ISR_Disable( level ); old_tables = information->object_blocks; information->object_blocks = object_blocks; 40008300: e4 26 20 3c st %l2, [ %i0 + 0x3c ] information->inactive_per_block = inactive_per_block; information->name_table = name_table; information->local_table = local_table; information->maximum = maximum; information->maximum_id = _Objects_Build_id( 40008304: 7f ff ff 7d call 400080f8 <_Objects_Build_id> 40008308: 94 10 20 01 mov 1, %o2 4000830c: d0 26 20 0c st %o0, [ %i0 + 0xc ] information->the_class, _Objects_Local_node, information->maximum ); _ISR_Enable( level ); 40008310: 7f ff e6 ec call 40001ec0 40008314: 90 10 00 10 mov %l0, %o0 if ( old_tables ) 40008318: 80 a4 60 00 cmp %l1, 0 4000831c: 02 80 00 05 be 40008330 <_Objects_Extend_information+0x200> 40008320: 11 10 00 67 sethi %hi(0x40019c00), %o0 RTEMS_INLINE_ROUTINE boolean _Workspace_Free( void *block ) { return _Heap_Free( &_Workspace_Area, block ); 40008324: 92 10 00 11 mov %l1, %o1 40008328: 7f ff fe 1a call 40007b90 <_Heap_Free> 4000832c: 90 12 22 ec or %o0, 0x2ec, %o0 /* * Allocate the name table, and the objects */ if ( information->auto_extend ) { 40008330: c2 06 20 14 ld [ %i0 + 0x14 ], %g1 40008334: e2 06 20 3c ld [ %i0 + 0x3c ], %l1 40008338: 80 a0 60 00 cmp %g1, 0 4000833c: a1 2f 20 02 sll %i4, 2, %l0 40008340: d0 16 20 44 lduh [ %i0 + 0x44 ], %o0 40008344: 02 80 00 11 be 40008388 <_Objects_Extend_information+0x258> 40008348: c2 06 20 1c ld [ %i0 + 0x1c ], %g1 information->object_blocks[ block ] = 4000834c: d2 06 20 18 ld [ %i0 + 0x18 ], %o1 40008350: 91 2a 20 10 sll %o0, 0x10, %o0 40008354: 91 32 20 10 srl %o0, 0x10, %o0 40008358: 40 00 34 23 call 400153e4 <.umul> 4000835c: 90 02 00 01 add %o0, %g1, %o0 40008360: 7f ff ff 6d call 40008114 <_Workspace_Allocate> 40008364: 01 00 00 00 nop _Workspace_Allocate( (information->allocation_size * information->name_length) + (information->allocation_size * information->size) ); if ( !information->object_blocks[ block ] ) 40008368: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 /* * Allocate the name table, and the objects */ if ( information->auto_extend ) { information->object_blocks[ block ] = 4000836c: d0 24 00 11 st %o0, [ %l0 + %l1 ] _Workspace_Allocate( (information->allocation_size * information->name_length) + (information->allocation_size * information->size) ); if ( !information->object_blocks[ block ] ) 40008370: c2 00 40 10 ld [ %g1 + %l0 ], %g1 40008374: 80 a0 60 00 cmp %g1, 0 40008378: 32 80 00 0d bne,a 400083ac <_Objects_Extend_information+0x27c> 4000837c: d2 06 20 18 ld [ %i0 + 0x18 ], %o1 40008380: 81 c7 e0 08 ret <== NOT EXECUTED 40008384: 81 e8 00 00 restore <== NOT EXECUTED return; } else { information->object_blocks[ block ] = 40008388: d2 06 20 18 ld [ %i0 + 0x18 ], %o1 4000838c: 91 2a 20 10 sll %o0, 0x10, %o0 40008390: 91 32 20 10 srl %o0, 0x10, %o0 40008394: 40 00 34 14 call 400153e4 <.umul> 40008398: 90 02 00 01 add %o0, %g1, %o0 4000839c: 40 00 0a ee call 4000af54 <_Workspace_Allocate_or_fatal_error> 400083a0: 01 00 00 00 nop 400083a4: d0 24 00 11 st %o0, [ %l0 + %l1 ] 400083a8: d2 06 20 18 ld [ %i0 + 0x18 ], %o1 400083ac: d0 06 20 1c ld [ %i0 + 0x1c ], %o0 400083b0: 40 00 34 0d call 400153e4 <.umul> 400083b4: e0 06 20 3c ld [ %i0 + 0x3c ], %l0 (information->allocation_size * information->name_length) + (information->allocation_size * information->size) ); } name_area = (Objects_Name *) _Addresses_Add_offset( 400083b8: a7 2f 20 02 sll %i4, 2, %l3 information->object_blocks[ block ], (information->allocation_size * information->size) ); information->name_table[ block ] = name_area; 400083bc: c4 06 20 24 ld [ %i0 + 0x24 ], %g2 400083c0: c2 04 00 13 ld [ %l0 + %l3 ], %g1 /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( 400083c4: d4 06 20 18 ld [ %i0 + 0x18 ], %o2 400083c8: a2 02 00 01 add %o0, %g1, %l1 400083cc: d6 06 20 1c ld [ %i0 + 0x1c ], %o3 name_area = (Objects_Name *) _Addresses_Add_offset( information->object_blocks[ block ], (information->allocation_size * information->size) ); information->name_table[ block ] = name_area; 400083d0: e2 20 80 13 st %l1, [ %g2 + %l3 ] /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( 400083d4: d2 04 00 13 ld [ %l0 + %l3 ], %o1 400083d8: 90 07 bf ec add %fp, -20, %o0 400083dc: a4 10 00 16 mov %l6, %l2 * Move from the local chain, initialise, then append to the inactive chain */ index = index_base; while ( (the_object = (Objects_Control *) _Chain_Get( &Inactive ) ) != NULL ) { 400083e0: aa 10 00 08 mov %o0, %l5 /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( 400083e4: 40 00 13 15 call 4000d038 <_Chain_Initialize> 400083e8: a8 06 20 28 add %i0, 0x28, %l4 400083ec: 30 80 00 0c b,a 4000841c <_Objects_Extend_information+0x2ec> index = index_base; while ( (the_object = (Objects_Control *) _Chain_Get( &Inactive ) ) != NULL ) { the_object->id = _Objects_Build_id( 400083f0: d2 16 20 04 lduh [ %i0 + 4 ], %o1 400083f4: d0 06 00 00 ld [ %i0 ], %o0 400083f8: 7f ff ff 40 call 400080f8 <_Objects_Build_id> 400083fc: a4 04 a0 01 inc %l2 40008400: c2 16 20 44 lduh [ %i0 + 0x44 ], %g1 40008404: d0 24 20 08 st %o0, [ %l0 + 8 ] information->the_class, _Objects_Local_node, index ); the_object->name = (void *) name_area; 40008408: e2 24 20 0c st %l1, [ %l0 + 0xc ] name_area = _Addresses_Add_offset( name_area, information->name_length ); _Chain_Append( &information->Inactive, &the_object->Node ); 4000840c: 92 10 00 10 mov %l0, %o1 40008410: a2 04 40 01 add %l1, %g1, %l1 40008414: 7f ff fc 7b call 40007600 <_Chain_Append> 40008418: 90 10 00 14 mov %l4, %o0 * Move from the local chain, initialise, then append to the inactive chain */ index = index_base; while ( (the_object = (Objects_Control *) _Chain_Get( &Inactive ) ) != NULL ) { 4000841c: 7f ff fc 85 call 40007630 <_Chain_Get> 40008420: 90 10 00 15 mov %l5, %o0 the_object->id = _Objects_Build_id( 40008424: 96 10 00 12 mov %l2, %o3 * Move from the local chain, initialise, then append to the inactive chain */ index = index_base; while ( (the_object = (Objects_Control *) _Chain_Get( &Inactive ) ) != NULL ) { 40008428: a0 10 00 08 mov %o0, %l0 4000842c: 80 a2 20 00 cmp %o0, 0 40008430: 12 bf ff f0 bne 400083f0 <_Objects_Extend_information+0x2c0> 40008434: 94 10 20 01 mov 1, %o2 _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; 40008438: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 4000843c: c4 06 20 38 ld [ %i0 + 0x38 ], %g2 information->inactive += information->allocation_size; 40008440: c6 16 20 34 lduh [ %i0 + 0x34 ], %g3 _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; 40008444: c2 20 80 13 st %g1, [ %g2 + %l3 ] information->inactive += information->allocation_size; 40008448: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 4000844c: 82 00 40 03 add %g1, %g3, %g1 40008450: c2 36 20 34 sth %g1, [ %i0 + 0x34 ] 40008454: 81 c7 e0 08 ret 40008458: 81 e8 00 00 restore 400084ec <_Objects_Get_isr_disable>: Objects_Information *information, Objects_Id id, Objects_Locations *location, ISR_Level *level_p ) { 400084ec: 9d e3 bf 98 save %sp, -104, %sp Objects_Control *the_object; uint32_t index; ISR_Level level; index = id - information->minimum_id + 1; 400084f0: c2 06 20 08 ld [ %i0 + 8 ], %g1 _ISR_Disable( level ); 400084f4: 7f ff e6 6f call 40001eb0 400084f8: b2 26 40 01 sub %i1, %g1, %i1 { Objects_Control *the_object; uint32_t index; ISR_Level level; index = id - information->minimum_id + 1; 400084fc: b2 06 60 01 inc %i1 _ISR_Disable( level ); if ( information->maximum >= index ) { 40008500: c2 16 20 10 lduh [ %i0 + 0x10 ], %g1 40008504: 80 a0 40 19 cmp %g1, %i1 40008508: 0a 80 00 11 bcs 4000854c <_Objects_Get_isr_disable+0x60> 4000850c: 83 2e 60 02 sll %i1, 2, %g1 if ( (the_object = information->local_table[ index ]) != NULL ) { 40008510: c4 06 20 20 ld [ %i0 + 0x20 ], %g2 40008514: f0 00 80 01 ld [ %g2 + %g1 ], %i0 40008518: 80 a6 20 00 cmp %i0, 0 4000851c: 02 80 00 06 be 40008534 <_Objects_Get_isr_disable+0x48> 40008520: 01 00 00 00 nop *location = OBJECTS_LOCAL; *level_p = level; 40008524: d0 26 c0 00 st %o0, [ %i3 ] index = id - information->minimum_id + 1; _ISR_Disable( level ); if ( information->maximum >= index ) { if ( (the_object = information->local_table[ index ]) != NULL ) { *location = OBJECTS_LOCAL; 40008528: c0 26 80 00 clr [ %i2 ] 4000852c: 81 c7 e0 08 ret 40008530: 81 e8 00 00 restore *level_p = level; return the_object; } _ISR_Enable( level ); 40008534: 7f ff e6 63 call 40001ec0 <== NOT EXECUTED 40008538: 01 00 00 00 nop <== NOT EXECUTED *location = OBJECTS_ERROR; 4000853c: 82 10 20 02 mov 2, %g1 ! 2 <== NOT EXECUTED 40008540: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED 40008544: 81 c7 e0 08 ret <== NOT EXECUTED 40008548: 81 e8 00 00 restore <== NOT EXECUTED return NULL; } _ISR_Enable( level ); 4000854c: 7f ff e6 5d call 40001ec0 40008550: b0 10 20 00 clr %i0 *location = OBJECTS_ERROR; 40008554: 82 10 20 02 mov 2, %g1 40008558: c2 26 80 00 st %g1, [ %i2 ] _Objects_MP_Is_remote( information, id, location, &the_object ); return the_object; #else return NULL; #endif } 4000855c: 81 c7 e0 08 ret 40008560: 81 e8 00 00 restore 40009fb8 <_Objects_Get_name_as_string>: char *_Objects_Get_name_as_string( Objects_Id id, size_t length, char *name ) { 40009fb8: 9d e3 bf 88 save %sp, -120, %sp 40009fbc: 92 10 00 18 mov %i0, %o1 uint32_t i; char lname[5]; Objects_Control *the_object; Objects_Locations location; if ( length == 0 ) 40009fc0: 80 a6 60 00 cmp %i1, 0 40009fc4: 02 80 00 43 be 4000a0d0 <_Objects_Get_name_as_string+0x118> 40009fc8: b0 10 00 1a mov %i2, %i0 return NULL; if ( name == NULL ) 40009fcc: 80 a6 a0 00 cmp %i2, 0 40009fd0: 02 80 00 3e be 4000a0c8 <_Objects_Get_name_as_string+0x110> 40009fd4: 85 32 60 16 srl %o1, 0x16, %g2 if ( !_Objects_Is_class_valid( the_class ) ) return NULL; the_api = _Objects_Get_API( id ); return _Objects_Information_table[ the_api ][ the_class ]; 40009fd8: 03 10 00 98 sethi %hi(0x40026000), %g1 40009fdc: 84 08 a0 1c and %g2, 0x1c, %g2 40009fe0: 82 10 63 10 or %g1, 0x310, %g1 40009fe4: c4 00 40 02 ld [ %g1 + %g2 ], %g2 40009fe8: 83 32 60 1b srl %o1, 0x1b, %g1 40009fec: 83 28 60 02 sll %g1, 2, %g1 40009ff0: e0 00 80 01 ld [ %g2 + %g1 ], %l0 return NULL; information = _Objects_Get_information( id ); if ( !information ) 40009ff4: 80 a4 20 00 cmp %l0, 0 40009ff8: 22 80 00 34 be,a 4000a0c8 <_Objects_Get_name_as_string+0x110> 40009ffc: b0 10 20 00 clr %i0 <== NOT EXECUTED return NULL; the_object = _Objects_Get( information, id, &location ); 4000a000: 90 10 00 10 mov %l0, %o0 4000a004: 40 00 00 36 call 4000a0dc <_Objects_Get> 4000a008: 94 07 bf f4 add %fp, -12, %o2 switch ( location ) { 4000a00c: c2 07 bf f4 ld [ %fp + -12 ], %g1 4000a010: 80 a0 60 00 cmp %g1, 0 4000a014: 32 80 00 2d bne,a 4000a0c8 <_Objects_Get_name_as_string+0x110> 4000a018: b0 10 20 00 clr %i0 <== NOT EXECUTED case OBJECTS_ERROR: return NULL; case OBJECTS_LOCAL: if ( information->is_string ) { 4000a01c: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 4000a020: 80 a0 60 00 cmp %g1, 0 4000a024: 12 80 00 0b bne 4000a050 <_Objects_Get_name_as_string+0x98> 4000a028: d0 02 20 0c ld [ %o0 + 0xc ], %o0 s = the_object->name; } else { uint32_t u32_name = (uint32_t) the_object->name; lname[ 0 ] = (u32_name >> 24) & 0xff; 4000a02c: 83 32 20 18 srl %o0, 0x18, %g1 4000a030: c2 2f bf ef stb %g1, [ %fp + -17 ] lname[ 1 ] = (u32_name >> 16) & 0xff; 4000a034: 83 32 20 10 srl %o0, 0x10, %g1 lname[ 2 ] = (u32_name >> 8) & 0xff; lname[ 3 ] = (u32_name >> 0) & 0xff; 4000a038: d0 2f bf f2 stb %o0, [ %fp + -14 ] s = the_object->name; } else { uint32_t u32_name = (uint32_t) the_object->name; lname[ 0 ] = (u32_name >> 24) & 0xff; lname[ 1 ] = (u32_name >> 16) & 0xff; 4000a03c: c2 2f bf f0 stb %g1, [ %fp + -16 ] lname[ 2 ] = (u32_name >> 8) & 0xff; lname[ 3 ] = (u32_name >> 0) & 0xff; lname[ 4 ] = '\0'; 4000a040: c0 2f bf f3 clrb [ %fp + -13 ] } else { uint32_t u32_name = (uint32_t) the_object->name; lname[ 0 ] = (u32_name >> 24) & 0xff; lname[ 1 ] = (u32_name >> 16) & 0xff; lname[ 2 ] = (u32_name >> 8) & 0xff; 4000a044: 83 32 20 08 srl %o0, 8, %g1 lname[ 3 ] = (u32_name >> 0) & 0xff; lname[ 4 ] = '\0'; 4000a048: 90 07 bf ef add %fp, -17, %o0 } else { uint32_t u32_name = (uint32_t) the_object->name; lname[ 0 ] = (u32_name >> 24) & 0xff; lname[ 1 ] = (u32_name >> 16) & 0xff; lname[ 2 ] = (u32_name >> 8) & 0xff; 4000a04c: c2 2f bf f1 stb %g1, [ %fp + -15 ] lname[ 3 ] = (u32_name >> 0) & 0xff; lname[ 4 ] = '\0'; 4000a050: 84 10 00 18 mov %i0, %g2 4000a054: 88 10 20 01 mov 1, %g4 s = lname; } for ( i=0, d=name ; i<(length-1) && *s ; i++, s++, d++ ) { *d = (!isprint(*s)) ? '*' : *s; 4000a058: 10 80 00 09 b 4000a07c <_Objects_Get_name_as_string+0xc4> 4000a05c: 19 10 00 77 sethi %hi(0x4001dc00), %o4 4000a060: c2 03 20 88 ld [ %o4 + 0x88 ], %g1 ! 4001dc88 <__ctype_ptr> 4000a064: c2 48 40 03 ldsb [ %g1 + %g3 ], %g1 4000a068: 80 88 60 97 btst 0x97, %g1 4000a06c: 22 80 00 02 be,a 4000a074 <_Objects_Get_name_as_string+0xbc> 4000a070: 9a 10 20 2a mov 0x2a, %o5 <== NOT EXECUTED 4000a074: da 28 80 00 stb %o5, [ %g2 ] lname[ 3 ] = (u32_name >> 0) & 0xff; lname[ 4 ] = '\0'; s = lname; } for ( i=0, d=name ; i<(length-1) && *s ; i++, s++, d++ ) { 4000a078: 84 00 a0 01 inc %g2 4000a07c: 80 a1 00 19 cmp %g4, %i1 4000a080: 02 80 00 07 be 4000a09c <_Objects_Get_name_as_string+0xe4> 4000a084: 82 02 00 04 add %o0, %g4, %g1 4000a088: c6 48 7f ff ldsb [ %g1 + -1 ], %g3 4000a08c: 88 01 20 01 inc %g4 4000a090: 80 a0 e0 00 cmp %g3, 0 4000a094: 12 bf ff f3 bne 4000a060 <_Objects_Get_name_as_string+0xa8> 4000a098: da 08 7f ff ldub [ %g1 + -1 ], %o5 *d = (!isprint(*s)) ? '*' : *s; } *d = '\0'; 4000a09c: c0 28 80 00 clrb [ %g2 ] #if ( CPU_INLINE_ENABLE_DISPATCH == TRUE ) RTEMS_INLINE_ROUTINE void _Thread_Enable_dispatch() { RTEMS_COMPILER_MEMORY_BARRIER(); if ( (--_Thread_Dispatch_disable_level) == 0 ) 4000a0a0: 03 10 00 98 sethi %hi(0x40026000), %g1 4000a0a4: c4 00 63 b0 ld [ %g1 + 0x3b0 ], %g2 ! 400263b0 <_Thread_Dispatch_disable_level> 4000a0a8: 84 00 bf ff add %g2, -1, %g2 4000a0ac: c4 20 63 b0 st %g2, [ %g1 + 0x3b0 ] 4000a0b0: c2 00 63 b0 ld [ %g1 + 0x3b0 ], %g1 4000a0b4: 80 a0 60 00 cmp %g1, 0 4000a0b8: 12 80 00 07 bne 4000a0d4 <_Objects_Get_name_as_string+0x11c> 4000a0bc: 01 00 00 00 nop _Thread_Dispatch(); 4000a0c0: 40 00 04 bc call 4000b3b0 <_Thread_Dispatch> 4000a0c4: 01 00 00 00 nop 4000a0c8: 81 c7 e0 08 ret 4000a0cc: 81 e8 00 00 restore 4000a0d0: b0 10 20 00 clr %i0 <== NOT EXECUTED _Thread_Enable_dispatch(); return name; } return NULL; /* unreachable path */ } 4000a0d4: 81 c7 e0 08 ret <== NOT EXECUTED 4000a0d8: 81 e8 00 00 restore <== NOT EXECUTED 4001698c <_Objects_Get_next>: Objects_Information *information, Objects_Id id, Objects_Locations *location_p, Objects_Id *next_id_p ) { 4001698c: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED Objects_Control *object; Objects_Id next_id; if (_Objects_Get_index(id) == OBJECTS_ID_INITIAL_INDEX) 40016990: 03 00 00 3f sethi %hi(0xfc00), %g1 <== NOT EXECUTED 40016994: 82 10 63 ff or %g1, 0x3ff, %g1 ! ffff <== NOT EXECUTED 40016998: 80 8e 40 01 btst %i1, %g1 <== NOT EXECUTED 4001699c: 22 80 00 02 be,a 400169a4 <_Objects_Get_next+0x18> <== NOT EXECUTED 400169a0: f2 06 20 08 ld [ %i0 + 8 ], %i1 <== NOT EXECUTED else next_id = id; do { /* walked off end of list? */ if (_Objects_Get_index(next_id) > information->maximum) 400169a4: 03 00 00 3f sethi %hi(0xfc00), %g1 <== NOT EXECUTED 400169a8: a0 10 63 ff or %g1, 0x3ff, %l0 ! ffff <== NOT EXECUTED 400169ac: c4 16 20 10 lduh [ %i0 + 0x10 ], %g2 <== NOT EXECUTED 400169b0: 82 0e 40 10 and %i1, %l0, %g1 <== NOT EXECUTED *location_p = OBJECTS_ERROR; goto final; } /* try to grab one */ object = _Objects_Get(information, next_id, location_p); 400169b4: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 400169b8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED else next_id = id; do { /* walked off end of list? */ if (_Objects_Get_index(next_id) > information->maximum) 400169bc: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 400169c0: 18 80 00 0a bgu 400169e8 <_Objects_Get_next+0x5c> <== NOT EXECUTED 400169c4: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED *location_p = OBJECTS_ERROR; goto final; } /* try to grab one */ object = _Objects_Get(information, next_id, location_p); 400169c8: 7f ff d8 fe call 4000cdc0 <_Objects_Get> <== NOT EXECUTED 400169cc: b2 06 60 01 inc %i1 <== NOT EXECUTED next_id++; } while (*location_p != OBJECTS_LOCAL); 400169d0: c2 06 80 00 ld [ %i2 ], %g1 <== NOT EXECUTED 400169d4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 400169d8: 32 bf ff f6 bne,a 400169b0 <_Objects_Get_next+0x24> <== NOT EXECUTED 400169dc: c4 16 20 10 lduh [ %i0 + 0x10 ], %g2 <== NOT EXECUTED *next_id_p = next_id; 400169e0: 10 80 00 07 b 400169fc <_Objects_Get_next+0x70> <== NOT EXECUTED 400169e4: f2 26 c0 00 st %i1, [ %i3 ] <== NOT EXECUTED do { /* walked off end of list? */ if (_Objects_Get_index(next_id) > information->maximum) { *location_p = OBJECTS_ERROR; 400169e8: 82 10 20 02 mov 2, %g1 <== NOT EXECUTED *next_id_p = next_id; return object; final: *next_id_p = OBJECTS_ID_FINAL; 400169ec: 90 10 20 00 clr %o0 <== NOT EXECUTED do { /* walked off end of list? */ if (_Objects_Get_index(next_id) > information->maximum) { *location_p = OBJECTS_ERROR; 400169f0: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED *next_id_p = next_id; return object; final: *next_id_p = OBJECTS_ID_FINAL; 400169f4: 82 10 3f ff mov -1, %g1 <== NOT EXECUTED 400169f8: c2 26 c0 00 st %g1, [ %i3 ] <== NOT EXECUTED return 0; } 400169fc: 81 c7 e0 08 ret <== NOT EXECUTED 40016a00: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED 400157fc <_Objects_Get_no_protection>: ) { Objects_Control *the_object; uint32_t index; index = id - information->minimum_id + 1; 400157fc: c2 02 20 08 ld [ %o0 + 8 ], %g1 if ( information->maximum >= index ) { 40015800: c4 12 20 10 lduh [ %o0 + 0x10 ], %g2 ) { Objects_Control *the_object; uint32_t index; index = id - information->minimum_id + 1; 40015804: 92 22 40 01 sub %o1, %g1, %o1 40015808: 82 02 60 01 add %o1, 1, %g1 if ( information->maximum >= index ) { 4001580c: 80 a0 80 01 cmp %g2, %g1 40015810: 0a 80 00 0b bcs 4001583c <_Objects_Get_no_protection+0x40> 40015814: 83 28 60 02 sll %g1, 2, %g1 if ( (the_object = information->local_table[ index ]) != NULL ) { 40015818: c4 02 20 20 ld [ %o0 + 0x20 ], %g2 4001581c: d0 00 80 01 ld [ %g2 + %g1 ], %o0 40015820: 80 a2 20 00 cmp %o0, 0 40015824: 02 80 00 04 be 40015834 <_Objects_Get_no_protection+0x38> 40015828: 82 10 20 02 mov 2, %g1 *location = OBJECTS_LOCAL; 4001582c: 81 c3 e0 08 retl 40015830: c0 22 80 00 clr [ %o2 ] return the_object; } *location = OBJECTS_ERROR; 40015834: 81 c3 e0 08 retl <== NOT EXECUTED 40015838: c2 22 80 00 st %g1, [ %o2 ] <== NOT EXECUTED return NULL; } *location = OBJECTS_ERROR; 4001583c: 82 10 20 02 mov 2, %g1 40015840: 90 10 20 00 clr %o0 /* * Not supported for multiprocessing */ return NULL; } 40015844: 81 c3 e0 08 retl 40015848: c2 22 80 00 st %g1, [ %o2 ] 400087c8 <_Objects_Handler_initialization>: uint32_t node, uint32_t maximum_nodes, uint32_t maximum_global_objects ) { if ( node < 1 || node > maximum_nodes ) 400087c8: 80 a2 20 00 cmp %o0, 0 400087cc: 22 80 00 05 be,a 400087e0 <_Objects_Handler_initialization+0x18> 400087d0: 90 10 20 00 clr %o0 <== NOT EXECUTED 400087d4: 80 a2 00 09 cmp %o0, %o1 400087d8: 08 80 00 07 bleu 400087f4 <_Objects_Handler_initialization+0x2c> 400087dc: 90 10 20 00 clr %o0 _Internal_error_Occurred( 400087e0: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 400087e4: 94 10 20 08 mov 8, %o2 <== NOT EXECUTED 400087e8: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 400087ec: 7f ff fd ed call 40007fa0 <_Internal_error_Occurred> <== NOT EXECUTED 400087f0: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 400087f4: 81 c3 e0 08 retl 400087f8: 01 00 00 00 nop 40009c0c <_Objects_Id_to_name>: Objects_Name_or_id_lookup_errors _Objects_Id_to_name ( Objects_Id id, Objects_Name *name ) { 40009c0c: 9d e3 bf 90 save %sp, -112, %sp 40009c10: 92 10 00 18 mov %i0, %o1 uint32_t the_class; Objects_Information *information; Objects_Control *the_object = (Objects_Control *) 0; Objects_Locations ignored_location; if ( !name ) 40009c14: 80 a6 60 00 cmp %i1, 0 40009c18: 02 80 00 26 be 40009cb0 <_Objects_Id_to_name+0xa4> 40009c1c: b0 10 20 01 mov 1, %i0 */ RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API( Objects_Id id ) { return (Objects_APIs) ((id >> OBJECTS_API_START_BIT) & OBJECTS_API_VALID_BITS); 40009c20: 83 32 60 18 srl %o1, 0x18, %g1 40009c24: 82 08 60 07 and %g1, 7, %g1 return OBJECTS_INVALID_NAME; the_api = _Objects_Get_API( id ); if ( the_api && the_api > OBJECTS_APIS_LAST ) 40009c28: 80 a0 60 04 cmp %g1, 4 40009c2c: 18 80 00 23 bgu 40009cb8 <_Objects_Id_to_name+0xac> 40009c30: 85 28 60 02 sll %g1, 2, %g2 return OBJECTS_INVALID_ID; the_class = _Objects_Get_class( id ); information = _Objects_Information_table[ the_api ][ the_class ]; 40009c34: 03 10 00 78 sethi %hi(0x4001e000), %g1 40009c38: 82 10 62 10 or %g1, 0x210, %g1 ! 4001e210 <_Objects_Information_table> 40009c3c: c4 00 40 02 ld [ %g1 + %g2 ], %g2 40009c40: 83 32 60 1b srl %o1, 0x1b, %g1 40009c44: 83 28 60 02 sll %g1, 2, %g1 40009c48: d0 00 80 01 ld [ %g2 + %g1 ], %o0 if ( !information ) 40009c4c: 80 a2 20 00 cmp %o0, 0 40009c50: 02 80 00 18 be 40009cb0 <_Objects_Id_to_name+0xa4> 40009c54: b0 10 20 03 mov 3, %i0 return OBJECTS_INVALID_ID; if ( information->is_string ) 40009c58: c2 02 20 40 ld [ %o0 + 0x40 ], %g1 40009c5c: 80 a0 60 00 cmp %g1, 0 40009c60: 12 80 00 17 bne 40009cbc <_Objects_Id_to_name+0xb0> 40009c64: 01 00 00 00 nop return OBJECTS_INVALID_ID; the_object = _Objects_Get( information, id, &ignored_location ); 40009c68: 7f ff ff c4 call 40009b78 <_Objects_Get> 40009c6c: 94 07 bf f4 add %fp, -12, %o2 if ( !the_object ) 40009c70: 80 a2 20 00 cmp %o0, 0 40009c74: 02 80 00 0f be 40009cb0 <_Objects_Id_to_name+0xa4> 40009c78: b0 10 20 03 mov 3, %i0 return OBJECTS_INVALID_ID; *name = the_object->name; 40009c7c: c2 02 20 0c ld [ %o0 + 0xc ], %g1 40009c80: c2 26 40 00 st %g1, [ %i1 ] #if ( CPU_INLINE_ENABLE_DISPATCH == TRUE ) RTEMS_INLINE_ROUTINE void _Thread_Enable_dispatch() { RTEMS_COMPILER_MEMORY_BARRIER(); if ( (--_Thread_Dispatch_disable_level) == 0 ) 40009c84: 05 10 00 78 sethi %hi(0x4001e000), %g2 40009c88: c2 00 a2 b0 ld [ %g2 + 0x2b0 ], %g1 ! 4001e2b0 <_Thread_Dispatch_disable_level> 40009c8c: b0 10 20 00 clr %i0 40009c90: 82 00 7f ff add %g1, -1, %g1 40009c94: c2 20 a2 b0 st %g1, [ %g2 + 0x2b0 ] 40009c98: c2 00 a2 b0 ld [ %g2 + 0x2b0 ], %g1 40009c9c: 80 a0 60 00 cmp %g1, 0 40009ca0: 12 80 00 07 bne 40009cbc <_Objects_Id_to_name+0xb0> 40009ca4: 01 00 00 00 nop _Thread_Dispatch(); 40009ca8: 40 00 04 d6 call 4000b000 <_Thread_Dispatch> 40009cac: 01 00 00 00 nop 40009cb0: 81 c7 e0 08 ret 40009cb4: 81 e8 00 00 restore 40009cb8: b0 10 20 03 mov 3, %i0 <== NOT EXECUTED _Thread_Enable_dispatch(); return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL; } 40009cbc: 81 c7 e0 08 ret <== NOT EXECUTED 40009cc0: 81 e8 00 00 restore <== NOT EXECUTED 400085f8 <_Objects_Initialize_information>: , boolean supports_global, Objects_Thread_queue_Extract_callout extract #endif ) { 400085f8: 9d e3 bf 98 save %sp, -104, %sp /* * Set the entry in the object information table. */ _Objects_Information_table[ the_api ][ the_class ] = information; 400085fc: 03 10 00 67 sethi %hi(0x40019c00), %g1 40008600: 85 2e 60 02 sll %i1, 2, %g2 40008604: 82 10 62 00 or %g1, 0x200, %g1 40008608: c2 00 40 02 ld [ %g1 + %g2 ], %g1 */ if ( maximum == 0 ) minimum_index = 0; else minimum_index = 1; information->minimum_id = 4000860c: 89 2e a0 1b sll %i2, 0x1b, %g4 #if defined(RTEMS_MULTIPROCESSING) uint32_t index; #endif information->the_api = the_api; information->the_class = the_class; 40008610: f4 36 20 04 sth %i2, [ %i0 + 4 ] /* * Set the entry in the object information table. */ _Objects_Information_table[ the_api ][ the_class ] = information; 40008614: b5 2e a0 02 sll %i2, 2, %i2 40008618: f0 20 40 1a st %i0, [ %g1 + %i2 ] /* * Are we operating in unlimited, or auto-extend mode */ information->auto_extend = (maximum & OBJECTS_UNLIMITED_OBJECTS) ? TRUE : FALSE; 4000861c: 83 36 e0 1f srl %i3, 0x1f, %g1 40008620: c2 26 20 14 st %g1, [ %i0 + 0x14 ] maximum &= ~OBJECTS_UNLIMITED_OBJECTS; 40008624: 03 20 00 00 sethi %hi(0x80000000), %g1 , boolean supports_global, Objects_Thread_queue_Extract_callout extract #endif ) { 40008628: de 07 a0 5c ld [ %fp + 0x5c ], %o7 uint32_t index; #endif information->the_api = the_api; information->the_class = the_class; information->is_string = is_string; 4000862c: fa 26 20 40 st %i5, [ %i0 + 0x40 ] /* * Are we operating in unlimited, or auto-extend mode */ information->auto_extend = (maximum & OBJECTS_UNLIMITED_OBJECTS) ? TRUE : FALSE; maximum &= ~OBJECTS_UNLIMITED_OBJECTS; 40008630: ba 2e c0 01 andn %i3, %g1, %i5 /* * Provide a null local table entry for the case of any empty table. */ information->local_table = &null_local_table; 40008634: 03 10 00 67 sethi %hi(0x40019c00), %g1 40008638: 82 10 60 80 or %g1, 0x80, %g1 ! 40019c80 */ if ( maximum == 0 ) minimum_index = 0; else minimum_index = 1; information->minimum_id = 4000863c: 80 a0 00 1d cmp %g0, %i5 /* * Set the size of the object */ information->size = size; 40008640: b9 2f 20 10 sll %i4, 0x10, %i4 */ if ( maximum == 0 ) minimum_index = 0; else minimum_index = 1; information->minimum_id = 40008644: 86 40 20 00 addx %g0, 0, %g3 40008648: 85 2e 60 18 sll %i1, 0x18, %g2 /* * Set the size of the object */ information->size = size; 4000864c: b9 37 20 10 srl %i4, 0x10, %i4 /* * Provide a null local table entry for the case of any empty table. */ information->local_table = &null_local_table; 40008650: c2 26 20 20 st %g1, [ %i0 + 0x20 ] /* * Set the size of the object */ information->size = size; 40008654: f8 26 20 1c st %i4, [ %i0 + 0x1c ] */ if ( maximum == 0 ) minimum_index = 0; else minimum_index = 1; information->minimum_id = 40008658: 03 00 00 40 sethi %hi(0x10000), %g1 uint32_t name_length; #if defined(RTEMS_MULTIPROCESSING) uint32_t index; #endif information->the_api = the_api; 4000865c: f2 26 00 00 st %i1, [ %i0 ] */ if ( maximum == 0 ) minimum_index = 0; else minimum_index = 1; information->minimum_id = 40008660: 84 10 80 01 or %g2, %g1, %g2 information->the_api = the_api; information->the_class = the_class; information->is_string = is_string; information->local_table = 0; information->name_table = 0; 40008664: c0 26 20 24 clr [ %i0 + 0x24 ] */ if ( maximum == 0 ) minimum_index = 0; else minimum_index = 1; information->minimum_id = 40008668: 84 10 80 04 or %g2, %g4, %g2 information->the_class = the_class; information->is_string = is_string; information->local_table = 0; information->name_table = 0; information->inactive_per_block = 0; 4000866c: c0 26 20 38 clr [ %i0 + 0x38 ] */ if ( maximum == 0 ) minimum_index = 0; else minimum_index = 1; information->minimum_id = 40008670: 84 10 80 03 or %g2, %g3, %g2 information->is_string = is_string; information->local_table = 0; information->name_table = 0; information->inactive_per_block = 0; information->object_blocks = 0; 40008674: c0 26 20 3c clr [ %i0 + 0x3c ] information->inactive = 0; 40008678: c0 36 20 34 clrh [ %i0 + 0x34 ] /* * The allocation unit is the maximum value */ information->allocation_size = maximum; 4000867c: fa 26 20 18 st %i5, [ %i0 + 0x18 ] */ if ( maximum == 0 ) minimum_index = 0; else minimum_index = 1; information->minimum_id = 40008680: c4 26 20 08 st %g2, [ %i0 + 8 ] * Calculate the maximum name length */ name_length = maximum_name_length; if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) ) 40008684: 80 8b e0 03 btst 3, %o7 40008688: 02 80 00 04 be 40008698 <_Objects_Initialize_information+0xa0> 4000868c: 82 10 00 0f mov %o7, %g1 name_length = (name_length + OBJECTS_NAME_ALIGNMENT) & 40008690: 82 03 e0 04 add %o7, 4, %g1 <== NOT EXECUTED 40008694: 82 08 7f fc and %g1, -4, %g1 <== NOT EXECUTED ~(OBJECTS_NAME_ALIGNMENT-1); information->name_length = name_length; 40008698: c2 36 20 44 sth %g1, [ %i0 + 0x44 ] */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 4000869c: 82 06 20 2c add %i0, 0x2c, %g1 the_chain->permanent_null = NULL; 400086a0: c0 26 20 2c clr [ %i0 + 0x2c ] */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 400086a4: c2 26 20 28 st %g1, [ %i0 + 0x28 ] the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 400086a8: 82 06 20 28 add %i0, 0x28, %g1 /* * Initialize objects .. if there are any */ if ( maximum ) { 400086ac: 80 a7 60 00 cmp %i5, 0 400086b0: 02 80 00 05 be 400086c4 <_Objects_Initialize_information+0xcc> 400086b4: c2 26 20 30 st %g1, [ %i0 + 0x30 ] /* * Reset the maximum value. It will be updated when the information is * extended. */ information->maximum = 0; 400086b8: c0 36 20 10 clrh [ %i0 + 0x10 ] * Always have the maximum size available so the current performance * figures are create are met. If the user moves past the maximum * number then a performance hit is taken. */ _Objects_Extend_information( information ); 400086bc: 7f ff fe 9d call 40008130 <_Objects_Extend_information> 400086c0: 81 e8 00 00 restore 400086c4: 81 c7 e0 08 ret 400086c8: 81 e8 00 00 restore 400086cc <_Objects_Name_to_id>: Objects_Information *information, Objects_Name name, uint32_t node, Objects_Id *id ) { 400086cc: 9d e3 bf 98 save %sp, -104, %sp 400086d0: a2 10 00 18 mov %i0, %l1 Objects_Control *the_object; uint32_t index; uint32_t name_length; Objects_Name_comparators compare_them; if ( !id ) 400086d4: 80 a6 e0 00 cmp %i3, 0 400086d8: 02 80 00 3a be 400087c0 <_Objects_Name_to_id+0xf4> 400086dc: b0 10 20 02 mov 2, %i0 return OBJECTS_INVALID_ADDRESS; if ( name == 0 ) 400086e0: 80 a6 60 00 cmp %i1, 0 400086e4: 02 80 00 2d be 40008798 <_Objects_Name_to_id+0xcc> 400086e8: 01 00 00 00 nop return OBJECTS_INVALID_NAME; search_local_node = FALSE; if ( information->maximum != 0 && 400086ec: c2 14 60 10 lduh [ %l1 + 0x10 ], %g1 400086f0: 80 a0 60 00 cmp %g1, 0 400086f4: 02 80 00 29 be 40008798 <_Objects_Name_to_id+0xcc> 400086f8: 80 a6 a0 00 cmp %i2, 0 400086fc: 22 80 00 2a be,a 400087a4 <_Objects_Name_to_id+0xd8> 40008700: c2 04 60 40 ld [ %l1 + 0x40 ], %g1 40008704: 03 1f ff ff sethi %hi(0x7ffffc00), %g1 40008708: 82 10 63 ff or %g1, 0x3ff, %g1 ! 7fffffff 4000870c: 80 a6 80 01 cmp %i2, %g1 40008710: 02 80 00 24 be 400087a0 <_Objects_Name_to_id+0xd4> 40008714: 80 a6 a0 01 cmp %i2, 1 40008718: 22 80 00 23 be,a 400087a4 <_Objects_Name_to_id+0xd8> 4000871c: c2 04 60 40 ld [ %l1 + 0x40 ], %g1 name_length = information->name_length; if ( information->is_string ) compare_them = _Objects_Compare_name_string; else compare_them = _Objects_Compare_name_raw; for ( index = 1; index <= information->maximum; index++ ) { 40008720: 81 c7 e0 08 ret 40008724: 91 e8 20 01 restore %g0, 1, %o0 if ( name == 0 ) return OBJECTS_INVALID_NAME; search_local_node = FALSE; if ( information->maximum != 0 && 40008728: a4 10 60 5c or %g1, 0x5c, %l2 <== NOT EXECUTED for ( index = 1; index <= information->maximum; index++ ) { the_object = information->local_table[ index ]; if ( !the_object || !the_object->name ) continue; if ( (*compare_them)( name, the_object->name, name_length ) ) { 4000872c: 83 28 a0 10 sll %g2, 0x10, %g1 if ( name == 0 ) return OBJECTS_INVALID_NAME; search_local_node = FALSE; if ( information->maximum != 0 && 40008730: a0 10 20 01 mov 1, %l0 for ( index = 1; index <= information->maximum; index++ ) { the_object = information->local_table[ index ]; if ( !the_object || !the_object->name ) continue; if ( (*compare_them)( name, the_object->name, name_length ) ) { 40008734: 10 80 00 15 b 40008788 <_Objects_Name_to_id+0xbc> 40008738: b1 30 60 10 srl %g1, 0x10, %i0 if ( information->is_string ) compare_them = _Objects_Compare_name_string; else compare_them = _Objects_Compare_name_raw; for ( index = 1; index <= information->maximum; index++ ) { the_object = information->local_table[ index ]; 4000873c: c2 04 60 20 ld [ %l1 + 0x20 ], %g1 name_length = information->name_length; if ( information->is_string ) compare_them = _Objects_Compare_name_string; else compare_them = _Objects_Compare_name_raw; for ( index = 1; index <= information->maximum; index++ ) { 40008740: a0 04 20 01 inc %l0 the_object = information->local_table[ index ]; 40008744: f4 00 40 02 ld [ %g1 + %g2 ], %i2 if ( !the_object || !the_object->name ) 40008748: 80 a6 a0 00 cmp %i2, 0 4000874c: 02 80 00 0f be 40008788 <_Objects_Name_to_id+0xbc> 40008750: 90 10 00 19 mov %i1, %o0 40008754: d2 06 a0 0c ld [ %i2 + 0xc ], %o1 40008758: 80 a2 60 00 cmp %o1, 0 4000875c: 02 80 00 0b be 40008788 <_Objects_Name_to_id+0xbc> 40008760: 94 10 00 18 mov %i0, %o2 continue; if ( (*compare_them)( name, the_object->name, name_length ) ) { 40008764: 9f c4 80 00 call %l2 40008768: 01 00 00 00 nop 4000876c: 80 a2 20 00 cmp %o0, 0 40008770: 22 80 00 07 be,a 4000878c <_Objects_Name_to_id+0xc0> 40008774: c2 14 60 10 lduh [ %l1 + 0x10 ], %g1 *id = the_object->id; 40008778: c2 06 a0 08 ld [ %i2 + 8 ], %g1 4000877c: c2 26 c0 00 st %g1, [ %i3 ] 40008780: 81 c7 e0 08 ret 40008784: 91 e8 20 00 restore %g0, 0, %o0 name_length = information->name_length; if ( information->is_string ) compare_them = _Objects_Compare_name_string; else compare_them = _Objects_Compare_name_raw; for ( index = 1; index <= information->maximum; index++ ) { 40008788: c2 14 60 10 lduh [ %l1 + 0x10 ], %g1 4000878c: 80 a4 00 01 cmp %l0, %g1 40008790: 08 bf ff eb bleu 4000873c <_Objects_Name_to_id+0x70> 40008794: 85 2c 20 02 sll %l0, 2, %g2 40008798: 81 c7 e0 08 ret 4000879c: 91 e8 20 01 restore %g0, 1, %o0 search_local_node = TRUE; if ( search_local_node ) { name_length = information->name_length; if ( information->is_string ) compare_them = _Objects_Compare_name_string; 400087a0: c2 04 60 40 ld [ %l1 + 0x40 ], %g1 _Objects_Is_local_node( node ) )) search_local_node = TRUE; if ( search_local_node ) { name_length = information->name_length; 400087a4: c4 14 60 44 lduh [ %l1 + 0x44 ], %g2 if ( information->is_string ) compare_them = _Objects_Compare_name_string; 400087a8: 80 a0 60 00 cmp %g1, 0 400087ac: 03 10 00 35 sethi %hi(0x4000d400), %g1 400087b0: 02 bf ff df be 4000872c <_Objects_Name_to_id+0x60> 400087b4: a4 10 60 4c or %g1, 0x4c, %l2 ! 4000d44c <_Objects_Compare_name_raw> if ( name == 0 ) return OBJECTS_INVALID_NAME; search_local_node = FALSE; if ( information->maximum != 0 && 400087b8: 10 bf ff dc b 40008728 <_Objects_Name_to_id+0x5c> <== NOT EXECUTED 400087bc: 03 10 00 35 sethi %hi(0x4000d400), %g1 <== NOT EXECUTED return ( _Objects_MP_Global_name_search( information, name, node, id ) ); #else return OBJECTS_INVALID_NAME; #endif } 400087c0: 81 c7 e0 08 ret <== NOT EXECUTED 400087c4: 81 e8 00 00 restore <== NOT EXECUTED 400087fc <_Objects_Shrink_information>: */ void _Objects_Shrink_information( Objects_Information *information ) { 400087fc: 9d e3 bf 98 save %sp, -104, %sp 40008800: c4 06 20 08 ld [ %i0 + 8 ], %g2 /* * Search the list to find block or chunnk with all objects inactive. */ index_base = _Objects_Get_index( information->minimum_id ); block_count = ( information->maximum - index_base ) / information->allocation_size; 40008804: e0 06 20 18 ld [ %i0 + 0x18 ], %l0 40008808: d0 16 20 10 lduh [ %i0 + 0x10 ], %o0 4000880c: 03 00 00 3f sethi %hi(0xfc00), %g1 40008810: 82 10 63 ff or %g1, 0x3ff, %g1 ! ffff 40008814: 92 10 00 10 mov %l0, %o1 40008818: a2 08 80 01 and %g2, %g1, %l1 4000881c: 40 00 33 2c call 400154cc <.udiv> 40008820: 90 22 00 11 sub %o0, %l1, %o0 40008824: 86 10 20 00 clr %g3 40008828: 10 80 00 33 b 400088f4 <_Objects_Shrink_information+0xf8> 4000882c: a4 10 20 00 clr %l2 for ( block = 0; block < block_count; block++ ) { 40008830: 86 00 e0 01 inc %g3 if ( information->inactive_per_block[ block ] == information->allocation_size ) { 40008834: c2 00 40 12 ld [ %g1 + %l2 ], %g1 40008838: 80 a0 40 10 cmp %g1, %l0 4000883c: 12 80 00 2c bne 400088ec <_Objects_Shrink_information+0xf0> 40008840: 84 04 a0 04 add %l2, 4, %g2 /* * XXX - Not to sure how to use a chain where you need to iterate and * and remove elements. */ the_object = (Objects_Control *) information->Inactive.first; 40008844: e0 06 20 28 ld [ %i0 + 0x28 ], %l0 40008848: 03 00 00 3f sethi %hi(0xfc00), %g1 4000884c: a6 10 63 ff or %g1, 0x3ff, %l3 ! ffff 40008850: c2 04 20 08 ld [ %l0 + 8 ], %g1 40008854: 84 08 40 13 and %g1, %l3, %g2 */ do { index = _Objects_Get_index( the_object->id ); if ((index >= index_base) && 40008858: 80 a0 80 11 cmp %g2, %l1 4000885c: 2a 80 00 0c bcs,a 4000888c <_Objects_Shrink_information+0x90> 40008860: e0 04 00 00 ld [ %l0 ], %l0 40008864: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 40008868: 82 04 40 01 add %l1, %g1, %g1 4000886c: 80 a0 80 01 cmp %g2, %g1 40008870: 1a 80 00 06 bcc 40008888 <_Objects_Shrink_information+0x8c> 40008874: 90 10 00 10 mov %l0, %o0 if ( !_Chain_Is_last( &the_object->Node ) ) the_object = (Objects_Control *) the_object->Node.next; else the_object = NULL; _Chain_Extract( &extract_me->Node ); 40008878: 40 00 11 e6 call 4000d010 <_Chain_Extract> 4000887c: e0 04 00 00 ld [ %l0 ], %l0 } else { the_object = (Objects_Control *) the_object->Node.next; } } while ( the_object && !_Chain_Is_last( &the_object->Node ) ); 40008880: 10 80 00 04 b 40008890 <_Objects_Shrink_information+0x94> 40008884: 80 a4 20 00 cmp %l0, 0 the_object = NULL; _Chain_Extract( &extract_me->Node ); } else { the_object = (Objects_Control *) the_object->Node.next; 40008888: e0 04 00 00 ld [ %l0 ], %l0 } } while ( the_object && !_Chain_Is_last( &the_object->Node ) ); 4000888c: 80 a4 20 00 cmp %l0, 0 40008890: 22 80 00 07 be,a 400088ac <_Objects_Shrink_information+0xb0> 40008894: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 <== NOT EXECUTED 40008898: c2 04 00 00 ld [ %l0 ], %g1 4000889c: 80 a0 60 00 cmp %g1, 0 400088a0: 32 bf ff ed bne,a 40008854 <_Objects_Shrink_information+0x58> 400088a4: c2 04 20 08 ld [ %l0 + 8 ], %g1 400088a8: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 400088ac: 11 10 00 67 sethi %hi(0x40019c00), %o0 400088b0: d2 00 40 12 ld [ %g1 + %l2 ], %o1 400088b4: 7f ff fc b7 call 40007b90 <_Heap_Free> 400088b8: 90 12 22 ec or %o0, 0x2ec, %o0 */ _Workspace_Free( information->object_blocks[ block ] ); information->name_table[ block ] = NULL; information->object_blocks[ block ] = NULL; information->inactive_per_block[ block ] = 0; 400088bc: c2 06 20 38 ld [ %i0 + 0x38 ], %g1 /* * Free the memory and reset the structures in the object' information */ _Workspace_Free( information->object_blocks[ block ] ); information->name_table[ block ] = NULL; 400088c0: c6 06 20 24 ld [ %i0 + 0x24 ], %g3 information->object_blocks[ block ] = NULL; information->inactive_per_block[ block ] = 0; 400088c4: c0 20 40 12 clr [ %g1 + %l2 ] * Free the memory and reset the structures in the object' information */ _Workspace_Free( information->object_blocks[ block ] ); information->name_table[ block ] = NULL; information->object_blocks[ block ] = NULL; 400088c8: c8 06 20 3c ld [ %i0 + 0x3c ], %g4 information->inactive_per_block[ block ] = 0; information->inactive -= information->allocation_size; 400088cc: c2 16 20 34 lduh [ %i0 + 0x34 ], %g1 400088d0: c4 06 20 18 ld [ %i0 + 0x18 ], %g2 /* * Free the memory and reset the structures in the object' information */ _Workspace_Free( information->object_blocks[ block ] ); information->name_table[ block ] = NULL; 400088d4: c0 20 c0 12 clr [ %g3 + %l2 ] information->object_blocks[ block ] = NULL; information->inactive_per_block[ block ] = 0; information->inactive -= information->allocation_size; 400088d8: 82 20 40 02 sub %g1, %g2, %g1 * Free the memory and reset the structures in the object' information */ _Workspace_Free( information->object_blocks[ block ] ); information->name_table[ block ] = NULL; information->object_blocks[ block ] = NULL; 400088dc: c0 21 00 12 clr [ %g4 + %l2 ] information->inactive_per_block[ block ] = 0; information->inactive -= information->allocation_size; 400088e0: c2 36 20 34 sth %g1, [ %i0 + 0x34 ] 400088e4: 81 c7 e0 08 ret 400088e8: 81 e8 00 00 restore return; } index_base += information->allocation_size; 400088ec: a2 04 40 10 add %l1, %l0, %l1 */ index_base = _Objects_Get_index( information->minimum_id ); block_count = ( information->maximum - index_base ) / information->allocation_size; for ( block = 0; block < block_count; block++ ) { 400088f0: a4 10 00 02 mov %g2, %l2 400088f4: 80 a0 c0 08 cmp %g3, %o0 400088f8: 32 bf ff ce bne,a 40008830 <_Objects_Shrink_information+0x34> 400088fc: c2 06 20 38 ld [ %i0 + 0x38 ], %g1 40008900: 81 c7 e0 08 ret 40008904: 81 e8 00 00 restore 4000893c <_Protected_heap_Allocate>: void *_Protected_heap_Allocate( Heap_Control *the_heap, size_t size ) { 4000893c: 9d e3 bf 98 save %sp, -104, %sp void *p; _RTEMS_Lock_allocator(); 40008940: 7f ff e5 5c call 40001eb0 40008944: 01 00 00 00 nop 40008948: a2 10 00 08 mov %o0, %l1 4000894c: 03 10 00 67 sethi %hi(0x40019c00), %g1 40008950: c2 00 62 a0 ld [ %g1 + 0x2a0 ], %g1 ! 40019ea0 <_Thread_Dispatch_disable_level> 40008954: 80 a0 60 00 cmp %g1, 0 40008958: 02 80 00 0b be 40008984 <_Protected_heap_Allocate+0x48> 4000895c: 03 10 00 67 sethi %hi(0x40019c00), %g1 40008960: 03 10 00 68 sethi %hi(0x4001a000), %g1 40008964: c2 00 60 80 ld [ %g1 + 0x80 ], %g1 ! 4001a080 <_System_state_Current> 40008968: 80 a0 60 01 cmp %g1, 1 4000896c: 08 80 00 05 bleu 40008980 <_Protected_heap_Allocate+0x44> 40008970: 90 10 20 00 clr %o0 40008974: 92 10 20 00 clr %o1 <== NOT EXECUTED 40008978: 7f ff fd 8a call 40007fa0 <_Internal_error_Occurred> <== NOT EXECUTED 4000897c: 94 10 20 12 mov 0x12, %o2 <== NOT EXECUTED 40008980: 03 10 00 67 sethi %hi(0x40019c00), %g1 40008984: e0 00 63 74 ld [ %g1 + 0x374 ], %l0 ! 40019f74 <_RTEMS_Allocator_Mutex> Thread_Control *executing; ISR_Level level = *level_p; /* disabled when you get here */ executing = _Thread_Executing; 40008988: 03 10 00 67 sethi %hi(0x40019c00), %g1 4000898c: c4 00 63 7c ld [ %g1 + 0x37c ], %g2 ! 40019f7c <_Thread_Executing> executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; 40008990: c0 20 a0 34 clr [ %g2 + 0x34 ] if ( !_CORE_mutex_Is_locked( the_mutex ) ) { 40008994: c2 04 20 60 ld [ %l0 + 0x60 ], %g1 40008998: 80 a0 60 00 cmp %g1, 0 4000899c: 22 80 00 33 be,a 40008a68 <_Protected_heap_Allocate+0x12c> 400089a0: c2 04 20 6c ld [ %l0 + 0x6c ], %g1 <== NOT EXECUTED the_mutex->lock = CORE_MUTEX_LOCKED; 400089a4: c0 24 20 60 clr [ %l0 + 0x60 ] the_mutex->holder = executing; the_mutex->holder_id = executing->Object.id; 400089a8: c2 00 a0 08 ld [ %g2 + 8 ], %g1 */ RTEMS_INLINE_ROUTINE boolean _CORE_mutex_Is_inherit_priority( CORE_mutex_Attributes *the_attribute ) { return the_attribute->discipline == CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; 400089ac: c6 04 20 58 ld [ %l0 + 0x58 ], %g3 executing = _Thread_Executing; executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; if ( !_CORE_mutex_Is_locked( the_mutex ) ) { the_mutex->lock = CORE_MUTEX_LOCKED; the_mutex->holder = executing; the_mutex->holder_id = executing->Object.id; 400089b0: c2 24 20 70 st %g1, [ %l0 + 0x70 ] 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; 400089b4: c4 24 20 6c st %g2, [ %l0 + 0x6c ] the_mutex->holder_id = executing->Object.id; the_mutex->nest_count = 1; 400089b8: 82 10 20 01 mov 1, %g1 if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || 400089bc: 80 a0 e0 02 cmp %g3, 2 400089c0: 02 80 00 05 be 400089d4 <_Protected_heap_Allocate+0x98> 400089c4: c2 24 20 64 st %g1, [ %l0 + 0x64 ] 400089c8: 80 a0 e0 03 cmp %g3, 3 <== NOT EXECUTED 400089cc: 32 80 00 06 bne,a 400089e4 <_Protected_heap_Allocate+0xa8> <== NOT EXECUTED 400089d0: c2 04 20 58 ld [ %l0 + 0x58 ], %g1 <== NOT EXECUTED _CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) executing->resource_count++; 400089d4: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 400089d8: 82 00 60 01 inc %g1 400089dc: c2 20 a0 1c st %g1, [ %g2 + 0x1c ] if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { 400089e0: c2 04 20 58 ld [ %l0 + 0x58 ], %g1 400089e4: 80 a0 60 03 cmp %g1, 3 400089e8: 22 80 00 03 be,a 400089f4 <_Protected_heap_Allocate+0xb8> 400089ec: c6 04 20 5c ld [ %l0 + 0x5c ], %g3 <== NOT EXECUTED _ISR_Enable( level ); 400089f0: 30 80 00 2c b,a 40008aa0 <_Protected_heap_Allocate+0x164> { Priority_Control ceiling; Priority_Control current; ceiling = the_mutex->Attributes.priority_ceiling; current = executing->current_priority; 400089f4: c2 00 a0 14 ld [ %g2 + 0x14 ], %g1 <== NOT EXECUTED if ( current == ceiling ) { 400089f8: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 400089fc: 12 80 00 03 bne 40008a08 <_Protected_heap_Allocate+0xcc> <== NOT EXECUTED 40008a00: 01 00 00 00 nop <== NOT EXECUTED _ISR_Enable( level ); 40008a04: 30 80 00 27 b,a 40008aa0 <_Protected_heap_Allocate+0x164> <== NOT EXECUTED return 0; } if ( current > ceiling ) { 40008a08: 08 80 00 10 bleu 40008a48 <_Protected_heap_Allocate+0x10c> <== NOT EXECUTED 40008a0c: 82 10 20 06 mov 6, %g1 <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 40008a10: 05 10 00 67 sethi %hi(0x40019c00), %g2 <== NOT EXECUTED 40008a14: c2 00 a2 a0 ld [ %g2 + 0x2a0 ], %g1 ! 40019ea0 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 40008a18: 82 00 60 01 inc %g1 <== NOT EXECUTED 40008a1c: c2 20 a2 a0 st %g1, [ %g2 + 0x2a0 ] <== NOT EXECUTED _Thread_Disable_dispatch(); _ISR_Enable( level ); 40008a20: 7f ff e5 28 call 40001ec0 <== NOT EXECUTED 40008a24: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED _Thread_Change_priority( 40008a28: d2 04 20 5c ld [ %l0 + 0x5c ], %o1 <== NOT EXECUTED 40008a2c: d0 04 20 6c ld [ %l0 + 0x6c ], %o0 <== NOT EXECUTED 40008a30: 40 00 02 95 call 40009484 <_Thread_Change_priority> <== NOT EXECUTED 40008a34: 94 10 20 00 clr %o2 <== NOT EXECUTED the_mutex->holder, the_mutex->Attributes.priority_ceiling, FALSE ); _Thread_Enable_dispatch(); 40008a38: 7f ff ff b4 call 40008908 <_Thread_Enable_dispatch> <== NOT EXECUTED 40008a3c: 01 00 00 00 nop <== NOT EXECUTED p = _Heap_Allocate( the_heap, size ); 40008a40: 10 80 00 32 b 40008b08 <_Protected_heap_Allocate+0x1cc> <== NOT EXECUTED 40008a44: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED return 0; } /* if ( current < ceiling ) */ { executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED; 40008a48: c2 20 a0 34 st %g1, [ %g2 + 0x34 ] <== NOT EXECUTED the_mutex->lock = CORE_MUTEX_UNLOCKED; 40008a4c: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED the_mutex->nest_count = 0; /* undo locking above */ 40008a50: c0 24 20 64 clr [ %l0 + 0x64 ] <== NOT EXECUTED _Thread_Enable_dispatch(); return 0; } /* if ( current < ceiling ) */ { executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED; the_mutex->lock = CORE_MUTEX_UNLOCKED; 40008a54: c2 24 20 60 st %g1, [ %l0 + 0x60 ] <== NOT EXECUTED the_mutex->nest_count = 0; /* undo locking above */ executing->resource_count--; /* undo locking above */ 40008a58: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 40008a5c: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 40008a60: c2 20 a0 1c st %g1, [ %g2 + 0x1c ] <== NOT EXECUTED _ISR_Enable( level ); 40008a64: 30 80 00 0f b,a 40008aa0 <_Protected_heap_Allocate+0x164> <== 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 ) ) { 40008a68: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 40008a6c: 32 80 00 13 bne,a 40008ab8 <_Protected_heap_Allocate+0x17c> <== NOT EXECUTED 40008a70: 21 10 00 67 sethi %hi(0x40019c00), %l0 <== NOT EXECUTED switch ( the_mutex->Attributes.lock_nesting_behavior ) { 40008a74: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 ! 40019c50 <== NOT EXECUTED 40008a78: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40008a7c: 22 80 00 07 be,a 40008a98 <_Protected_heap_Allocate+0x15c> <== NOT EXECUTED 40008a80: c2 04 20 64 ld [ %l0 + 0x64 ], %g1 <== NOT EXECUTED 40008a84: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 40008a88: 32 80 00 0c bne,a 40008ab8 <_Protected_heap_Allocate+0x17c> <== NOT EXECUTED 40008a8c: 21 10 00 67 sethi %hi(0x40019c00), %l0 <== NOT EXECUTED case CORE_MUTEX_NESTING_ACQUIRES: the_mutex->nest_count++; _ISR_Enable( level ); return 0; case CORE_MUTEX_NESTING_IS_ERROR: executing->Wait.return_code = CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED; 40008a90: 10 80 00 08 b 40008ab0 <_Protected_heap_Allocate+0x174> <== NOT EXECUTED 40008a94: 82 10 20 02 mov 2, %g1 <== NOT EXECUTED * to nest access. */ if ( _Thread_Is_executing( the_mutex->holder ) ) { switch ( the_mutex->Attributes.lock_nesting_behavior ) { case CORE_MUTEX_NESTING_ACQUIRES: the_mutex->nest_count++; 40008a98: 82 00 60 01 inc %g1 <== NOT EXECUTED 40008a9c: c2 24 20 64 st %g1, [ %l0 + 0x64 ] <== NOT EXECUTED _ISR_Enable( level ); 40008aa0: 7f ff e5 08 call 40001ec0 40008aa4: 90 10 00 11 mov %l1, %o0 40008aa8: 10 80 00 18 b 40008b08 <_Protected_heap_Allocate+0x1cc> 40008aac: 90 10 00 18 mov %i0, %o0 return 0; case CORE_MUTEX_NESTING_IS_ERROR: executing->Wait.return_code = CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED; 40008ab0: c2 20 a0 34 st %g1, [ %g2 + 0x34 ] <== NOT EXECUTED _ISR_Enable( level ); 40008ab4: 30 bf ff fb b,a 40008aa0 <_Protected_heap_Allocate+0x164> <== NOT EXECUTED size_t size ) { void *p; _RTEMS_Lock_allocator(); 40008ab8: c6 04 23 74 ld [ %l0 + 0x374 ], %g3 <== NOT EXECUTED 40008abc: 03 10 00 67 sethi %hi(0x40019c00), %g1 <== NOT EXECUTED 40008ac0: da 00 e0 08 ld [ %g3 + 8 ], %o5 <== NOT EXECUTED 40008ac4: c8 00 63 7c ld [ %g1 + 0x37c ], %g4 <== NOT EXECUTED 40008ac8: 05 10 00 67 sethi %hi(0x40019c00), %g2 <== NOT EXECUTED 40008acc: c2 00 a2 a0 ld [ %g2 + 0x2a0 ], %g1 ! 40019ea0 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 40008ad0: da 21 20 20 st %o5, [ %g4 + 0x20 ] <== NOT EXECUTED 40008ad4: 82 00 60 01 inc %g1 <== NOT EXECUTED 40008ad8: c2 20 a2 a0 st %g1, [ %g2 + 0x2a0 ] <== NOT EXECUTED 40008adc: 82 00 e0 10 add %g3, 0x10, %g1 <== NOT EXECUTED 40008ae0: c2 21 20 44 st %g1, [ %g4 + 0x44 ] <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Thread_queue_Enter_critical_section ( Thread_queue_Control *the_thread_queue ) { the_thread_queue->sync_state = THREAD_QUEUE_NOTHING_HAPPENED; 40008ae4: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 40008ae8: c2 20 e0 40 st %g1, [ %g3 + 0x40 ] <== NOT EXECUTED 40008aec: 7f ff e4 f5 call 40001ec0 <== NOT EXECUTED 40008af0: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 40008af4: d0 04 23 74 ld [ %l0 + 0x374 ], %o0 <== NOT EXECUTED 40008af8: 92 10 20 00 clr %o1 <== NOT EXECUTED 40008afc: 7f ff fb 0f call 40007738 <_CORE_mutex_Seize_interrupt_blocking> <== NOT EXECUTED 40008b00: 90 02 20 10 add %o0, 0x10, %o0 <== NOT EXECUTED p = _Heap_Allocate( the_heap, size ); 40008b04: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 40008b08: 7f ff fb fb call 40007af4 <_Heap_Allocate> 40008b0c: 92 10 00 19 mov %i1, %o1 40008b10: 05 10 00 67 sethi %hi(0x40019c00), %g2 40008b14: c2 00 a2 a0 ld [ %g2 + 0x2a0 ], %g1 ! 40019ea0 <_Thread_Dispatch_disable_level> 40008b18: b0 10 00 08 mov %o0, %i0 40008b1c: 82 00 60 01 inc %g1 40008b20: c2 20 a2 a0 st %g1, [ %g2 + 0x2a0 ] _RTEMS_Unlock_allocator(); 40008b24: 03 10 00 67 sethi %hi(0x40019c00), %g1 40008b28: d0 00 63 74 ld [ %g1 + 0x374 ], %o0 ! 40019f74 <_RTEMS_Allocator_Mutex> 40008b2c: 94 10 20 00 clr %o2 40008b30: d2 02 20 08 ld [ %o0 + 8 ], %o1 40008b34: 7f ff fb 23 call 400077c0 <_CORE_mutex_Surrender> 40008b38: 90 02 20 10 add %o0, 0x10, %o0 40008b3c: 7f ff ff 73 call 40008908 <_Thread_Enable_dispatch> 40008b40: 01 00 00 00 nop return p; } 40008b44: 81 c7 e0 08 ret 40008b48: 81 e8 00 00 restore 40008b80 <_Protected_heap_Extend>: boolean _Protected_heap_Extend( Heap_Control *the_heap, void *starting_address, size_t size ) { 40008b80: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED Heap_Extend_status status; uint32_t amount_extended; _RTEMS_Lock_allocator(); 40008b84: 7f ff e4 cb call 40001eb0 <== NOT EXECUTED 40008b88: 01 00 00 00 nop <== NOT EXECUTED 40008b8c: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED 40008b90: 03 10 00 67 sethi %hi(0x40019c00), %g1 <== NOT EXECUTED 40008b94: c2 00 62 a0 ld [ %g1 + 0x2a0 ], %g1 ! 40019ea0 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 40008b98: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40008b9c: 02 80 00 0b be 40008bc8 <_Protected_heap_Extend+0x48> <== NOT EXECUTED 40008ba0: 03 10 00 67 sethi %hi(0x40019c00), %g1 <== NOT EXECUTED 40008ba4: 03 10 00 68 sethi %hi(0x4001a000), %g1 <== NOT EXECUTED 40008ba8: c2 00 60 80 ld [ %g1 + 0x80 ], %g1 ! 4001a080 <_System_state_Current> <== NOT EXECUTED 40008bac: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 40008bb0: 08 80 00 05 bleu 40008bc4 <_Protected_heap_Extend+0x44> <== NOT EXECUTED 40008bb4: 90 10 20 00 clr %o0 <== NOT EXECUTED 40008bb8: 92 10 20 00 clr %o1 <== NOT EXECUTED 40008bbc: 7f ff fc f9 call 40007fa0 <_Internal_error_Occurred> <== NOT EXECUTED 40008bc0: 94 10 20 12 mov 0x12, %o2 <== NOT EXECUTED 40008bc4: 03 10 00 67 sethi %hi(0x40019c00), %g1 <== NOT EXECUTED 40008bc8: e0 00 63 74 ld [ %g1 + 0x374 ], %l0 ! 40019f74 <_RTEMS_Allocator_Mutex> <== NOT EXECUTED Thread_Control *executing; ISR_Level level = *level_p; /* disabled when you get here */ executing = _Thread_Executing; 40008bcc: 03 10 00 67 sethi %hi(0x40019c00), %g1 <== NOT EXECUTED 40008bd0: c4 00 63 7c ld [ %g1 + 0x37c ], %g2 ! 40019f7c <_Thread_Executing> <== NOT EXECUTED executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; 40008bd4: c0 20 a0 34 clr [ %g2 + 0x34 ] <== NOT EXECUTED if ( !_CORE_mutex_Is_locked( the_mutex ) ) { 40008bd8: c2 04 20 60 ld [ %l0 + 0x60 ], %g1 <== NOT EXECUTED 40008bdc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40008be0: 22 80 00 33 be,a 40008cac <_Protected_heap_Extend+0x12c> <== NOT EXECUTED 40008be4: c2 04 20 6c ld [ %l0 + 0x6c ], %g1 <== NOT EXECUTED the_mutex->lock = CORE_MUTEX_LOCKED; 40008be8: c0 24 20 60 clr [ %l0 + 0x60 ] <== NOT EXECUTED the_mutex->holder = executing; the_mutex->holder_id = executing->Object.id; 40008bec: c2 00 a0 08 ld [ %g2 + 8 ], %g1 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE boolean _CORE_mutex_Is_inherit_priority( CORE_mutex_Attributes *the_attribute ) { return the_attribute->discipline == CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; 40008bf0: c6 04 20 58 ld [ %l0 + 0x58 ], %g3 <== NOT EXECUTED executing = _Thread_Executing; executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; if ( !_CORE_mutex_Is_locked( the_mutex ) ) { the_mutex->lock = CORE_MUTEX_LOCKED; the_mutex->holder = executing; the_mutex->holder_id = executing->Object.id; 40008bf4: c2 24 20 70 st %g1, [ %l0 + 0x70 ] <== NOT EXECUTED 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; 40008bf8: c4 24 20 6c st %g2, [ %l0 + 0x6c ] <== NOT EXECUTED the_mutex->holder_id = executing->Object.id; the_mutex->nest_count = 1; 40008bfc: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || 40008c00: 80 a0 e0 02 cmp %g3, 2 <== NOT EXECUTED 40008c04: 02 80 00 05 be 40008c18 <_Protected_heap_Extend+0x98> <== NOT EXECUTED 40008c08: c2 24 20 64 st %g1, [ %l0 + 0x64 ] <== NOT EXECUTED 40008c0c: 80 a0 e0 03 cmp %g3, 3 <== NOT EXECUTED 40008c10: 32 80 00 06 bne,a 40008c28 <_Protected_heap_Extend+0xa8> <== NOT EXECUTED 40008c14: c2 04 20 58 ld [ %l0 + 0x58 ], %g1 <== NOT EXECUTED _CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) executing->resource_count++; 40008c18: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 40008c1c: 82 00 60 01 inc %g1 <== NOT EXECUTED 40008c20: c2 20 a0 1c st %g1, [ %g2 + 0x1c ] <== NOT EXECUTED if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { 40008c24: c2 04 20 58 ld [ %l0 + 0x58 ], %g1 <== NOT EXECUTED 40008c28: 80 a0 60 03 cmp %g1, 3 <== NOT EXECUTED 40008c2c: 22 80 00 03 be,a 40008c38 <_Protected_heap_Extend+0xb8> <== NOT EXECUTED 40008c30: c6 04 20 5c ld [ %l0 + 0x5c ], %g3 <== NOT EXECUTED _ISR_Enable( level ); 40008c34: 30 80 00 2c b,a 40008ce4 <_Protected_heap_Extend+0x164> <== NOT EXECUTED { Priority_Control ceiling; Priority_Control current; ceiling = the_mutex->Attributes.priority_ceiling; current = executing->current_priority; 40008c38: c2 00 a0 14 ld [ %g2 + 0x14 ], %g1 <== NOT EXECUTED if ( current == ceiling ) { 40008c3c: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 40008c40: 12 80 00 03 bne 40008c4c <_Protected_heap_Extend+0xcc> <== NOT EXECUTED 40008c44: 01 00 00 00 nop <== NOT EXECUTED _ISR_Enable( level ); 40008c48: 30 80 00 27 b,a 40008ce4 <_Protected_heap_Extend+0x164> <== NOT EXECUTED return 0; } if ( current > ceiling ) { 40008c4c: 08 80 00 10 bleu 40008c8c <_Protected_heap_Extend+0x10c> <== NOT EXECUTED 40008c50: 82 10 20 06 mov 6, %g1 <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 40008c54: 05 10 00 67 sethi %hi(0x40019c00), %g2 <== NOT EXECUTED 40008c58: c2 00 a2 a0 ld [ %g2 + 0x2a0 ], %g1 ! 40019ea0 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 40008c5c: 82 00 60 01 inc %g1 <== NOT EXECUTED 40008c60: c2 20 a2 a0 st %g1, [ %g2 + 0x2a0 ] <== NOT EXECUTED _Thread_Disable_dispatch(); _ISR_Enable( level ); 40008c64: 7f ff e4 97 call 40001ec0 <== NOT EXECUTED 40008c68: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED _Thread_Change_priority( 40008c6c: d2 04 20 5c ld [ %l0 + 0x5c ], %o1 <== NOT EXECUTED 40008c70: d0 04 20 6c ld [ %l0 + 0x6c ], %o0 <== NOT EXECUTED 40008c74: 40 00 02 04 call 40009484 <_Thread_Change_priority> <== NOT EXECUTED 40008c78: 94 10 20 00 clr %o2 <== NOT EXECUTED the_mutex->holder, the_mutex->Attributes.priority_ceiling, FALSE ); _Thread_Enable_dispatch(); 40008c7c: 7f ff ff b4 call 40008b4c <_Thread_Enable_dispatch> <== NOT EXECUTED 40008c80: 01 00 00 00 nop <== NOT EXECUTED status = _Heap_Extend(the_heap, starting_address, size, &amount_extended); 40008c84: 10 80 00 32 b 40008d4c <_Protected_heap_Extend+0x1cc> <== NOT EXECUTED 40008c88: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED return 0; } /* if ( current < ceiling ) */ { executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED; 40008c8c: c2 20 a0 34 st %g1, [ %g2 + 0x34 ] <== NOT EXECUTED the_mutex->lock = CORE_MUTEX_UNLOCKED; 40008c90: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED the_mutex->nest_count = 0; /* undo locking above */ 40008c94: c0 24 20 64 clr [ %l0 + 0x64 ] <== NOT EXECUTED _Thread_Enable_dispatch(); return 0; } /* if ( current < ceiling ) */ { executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED; the_mutex->lock = CORE_MUTEX_UNLOCKED; 40008c98: c2 24 20 60 st %g1, [ %l0 + 0x60 ] <== NOT EXECUTED the_mutex->nest_count = 0; /* undo locking above */ executing->resource_count--; /* undo locking above */ 40008c9c: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 40008ca0: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 40008ca4: c2 20 a0 1c st %g1, [ %g2 + 0x1c ] <== NOT EXECUTED _ISR_Enable( level ); 40008ca8: 30 80 00 0f b,a 40008ce4 <_Protected_heap_Extend+0x164> <== 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 ) ) { 40008cac: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 40008cb0: 32 80 00 13 bne,a 40008cfc <_Protected_heap_Extend+0x17c> <== NOT EXECUTED 40008cb4: 21 10 00 67 sethi %hi(0x40019c00), %l0 <== NOT EXECUTED switch ( the_mutex->Attributes.lock_nesting_behavior ) { 40008cb8: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 ! 40019c50 <== NOT EXECUTED 40008cbc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40008cc0: 22 80 00 07 be,a 40008cdc <_Protected_heap_Extend+0x15c> <== NOT EXECUTED 40008cc4: c2 04 20 64 ld [ %l0 + 0x64 ], %g1 <== NOT EXECUTED 40008cc8: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 40008ccc: 12 80 00 0c bne 40008cfc <_Protected_heap_Extend+0x17c> <== NOT EXECUTED 40008cd0: 21 10 00 67 sethi %hi(0x40019c00), %l0 <== NOT EXECUTED case CORE_MUTEX_NESTING_ACQUIRES: the_mutex->nest_count++; _ISR_Enable( level ); return 0; case CORE_MUTEX_NESTING_IS_ERROR: executing->Wait.return_code = CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED; 40008cd4: 10 80 00 08 b 40008cf4 <_Protected_heap_Extend+0x174> <== NOT EXECUTED 40008cd8: 82 10 20 02 mov 2, %g1 <== NOT EXECUTED * to nest access. */ if ( _Thread_Is_executing( the_mutex->holder ) ) { switch ( the_mutex->Attributes.lock_nesting_behavior ) { case CORE_MUTEX_NESTING_ACQUIRES: the_mutex->nest_count++; 40008cdc: 82 00 60 01 inc %g1 <== NOT EXECUTED 40008ce0: c2 24 20 64 st %g1, [ %l0 + 0x64 ] <== NOT EXECUTED _ISR_Enable( level ); 40008ce4: 7f ff e4 77 call 40001ec0 <== NOT EXECUTED 40008ce8: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 40008cec: 10 80 00 18 b 40008d4c <_Protected_heap_Extend+0x1cc> <== NOT EXECUTED 40008cf0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED return 0; case CORE_MUTEX_NESTING_IS_ERROR: executing->Wait.return_code = CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED; 40008cf4: c2 20 a0 34 st %g1, [ %g2 + 0x34 ] <== NOT EXECUTED _ISR_Enable( level ); 40008cf8: 30 bf ff fb b,a 40008ce4 <_Protected_heap_Extend+0x164> <== NOT EXECUTED ) { Heap_Extend_status status; uint32_t amount_extended; _RTEMS_Lock_allocator(); 40008cfc: c6 04 23 74 ld [ %l0 + 0x374 ], %g3 <== NOT EXECUTED 40008d00: 03 10 00 67 sethi %hi(0x40019c00), %g1 <== NOT EXECUTED 40008d04: da 00 e0 08 ld [ %g3 + 8 ], %o5 <== NOT EXECUTED 40008d08: c8 00 63 7c ld [ %g1 + 0x37c ], %g4 <== NOT EXECUTED 40008d0c: 05 10 00 67 sethi %hi(0x40019c00), %g2 <== NOT EXECUTED 40008d10: c2 00 a2 a0 ld [ %g2 + 0x2a0 ], %g1 ! 40019ea0 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 40008d14: da 21 20 20 st %o5, [ %g4 + 0x20 ] <== NOT EXECUTED 40008d18: 82 00 60 01 inc %g1 <== NOT EXECUTED 40008d1c: c2 20 a2 a0 st %g1, [ %g2 + 0x2a0 ] <== NOT EXECUTED 40008d20: 82 00 e0 10 add %g3, 0x10, %g1 <== NOT EXECUTED 40008d24: c2 21 20 44 st %g1, [ %g4 + 0x44 ] <== NOT EXECUTED 40008d28: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 40008d2c: c2 20 e0 40 st %g1, [ %g3 + 0x40 ] <== NOT EXECUTED 40008d30: 7f ff e4 64 call 40001ec0 <== NOT EXECUTED 40008d34: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 40008d38: d0 04 23 74 ld [ %l0 + 0x374 ], %o0 <== NOT EXECUTED 40008d3c: 92 10 20 00 clr %o1 <== NOT EXECUTED 40008d40: 7f ff fa 7e call 40007738 <_CORE_mutex_Seize_interrupt_blocking> <== NOT EXECUTED 40008d44: 90 02 20 10 add %o0, 0x10, %o0 <== NOT EXECUTED status = _Heap_Extend(the_heap, starting_address, size, &amount_extended); 40008d48: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 40008d4c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 40008d50: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED 40008d54: 40 00 10 e0 call 4000d0d4 <_Heap_Extend> <== NOT EXECUTED 40008d58: 96 07 bf f4 add %fp, -12, %o3 <== NOT EXECUTED 40008d5c: 05 10 00 67 sethi %hi(0x40019c00), %g2 <== NOT EXECUTED 40008d60: c2 00 a2 a0 ld [ %g2 + 0x2a0 ], %g1 ! 40019ea0 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 40008d64: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED 40008d68: 82 00 60 01 inc %g1 <== NOT EXECUTED 40008d6c: c2 20 a2 a0 st %g1, [ %g2 + 0x2a0 ] <== NOT EXECUTED _RTEMS_Unlock_allocator(); 40008d70: 03 10 00 67 sethi %hi(0x40019c00), %g1 <== NOT EXECUTED 40008d74: d0 00 63 74 ld [ %g1 + 0x374 ], %o0 ! 40019f74 <_RTEMS_Allocator_Mutex> <== NOT EXECUTED 40008d78: 94 10 20 00 clr %o2 <== NOT EXECUTED 40008d7c: d2 02 20 08 ld [ %o0 + 8 ], %o1 <== NOT EXECUTED 40008d80: 7f ff fa 90 call 400077c0 <_CORE_mutex_Surrender> <== NOT EXECUTED 40008d84: 90 02 20 10 add %o0, 0x10, %o0 <== NOT EXECUTED 40008d88: 7f ff ff 71 call 40008b4c <_Thread_Enable_dispatch> <== NOT EXECUTED 40008d8c: 01 00 00 00 nop <== NOT EXECUTED return (status == HEAP_EXTEND_SUCCESSFUL); } 40008d90: 80 a0 00 10 cmp %g0, %l0 <== NOT EXECUTED 40008d94: b0 60 3f ff subx %g0, -1, %i0 <== NOT EXECUTED 40008d98: 81 c7 e0 08 ret <== NOT EXECUTED 40008d9c: 81 e8 00 00 restore <== NOT EXECUTED 40008dd4 <_Protected_heap_Free>: boolean _Protected_heap_Free( Heap_Control *the_heap, void *start_address ) { 40008dd4: 9d e3 bf 98 save %sp, -104, %sp boolean status; _RTEMS_Lock_allocator(); 40008dd8: 7f ff e4 36 call 40001eb0 40008ddc: 01 00 00 00 nop 40008de0: a2 10 00 08 mov %o0, %l1 40008de4: 03 10 00 67 sethi %hi(0x40019c00), %g1 40008de8: c2 00 62 a0 ld [ %g1 + 0x2a0 ], %g1 ! 40019ea0 <_Thread_Dispatch_disable_level> 40008dec: 80 a0 60 00 cmp %g1, 0 40008df0: 02 80 00 0b be 40008e1c <_Protected_heap_Free+0x48> 40008df4: 03 10 00 67 sethi %hi(0x40019c00), %g1 40008df8: 03 10 00 68 sethi %hi(0x4001a000), %g1 <== NOT EXECUTED 40008dfc: c2 00 60 80 ld [ %g1 + 0x80 ], %g1 ! 4001a080 <_System_state_Current> <== NOT EXECUTED 40008e00: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 40008e04: 08 80 00 05 bleu 40008e18 <_Protected_heap_Free+0x44> <== NOT EXECUTED 40008e08: 90 10 20 00 clr %o0 <== NOT EXECUTED 40008e0c: 92 10 20 00 clr %o1 <== NOT EXECUTED 40008e10: 7f ff fc 64 call 40007fa0 <_Internal_error_Occurred> <== NOT EXECUTED 40008e14: 94 10 20 12 mov 0x12, %o2 <== NOT EXECUTED 40008e18: 03 10 00 67 sethi %hi(0x40019c00), %g1 <== NOT EXECUTED 40008e1c: e0 00 63 74 ld [ %g1 + 0x374 ], %l0 ! 40019f74 <_RTEMS_Allocator_Mutex> Thread_Control *executing; ISR_Level level = *level_p; /* disabled when you get here */ executing = _Thread_Executing; 40008e20: 03 10 00 67 sethi %hi(0x40019c00), %g1 40008e24: c4 00 63 7c ld [ %g1 + 0x37c ], %g2 ! 40019f7c <_Thread_Executing> executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; 40008e28: c0 20 a0 34 clr [ %g2 + 0x34 ] if ( !_CORE_mutex_Is_locked( the_mutex ) ) { 40008e2c: c2 04 20 60 ld [ %l0 + 0x60 ], %g1 40008e30: 80 a0 60 00 cmp %g1, 0 40008e34: 22 80 00 33 be,a 40008f00 <_Protected_heap_Free+0x12c> 40008e38: c2 04 20 6c ld [ %l0 + 0x6c ], %g1 <== NOT EXECUTED the_mutex->lock = CORE_MUTEX_LOCKED; 40008e3c: c0 24 20 60 clr [ %l0 + 0x60 ] the_mutex->holder = executing; the_mutex->holder_id = executing->Object.id; 40008e40: c2 00 a0 08 ld [ %g2 + 8 ], %g1 */ RTEMS_INLINE_ROUTINE boolean _CORE_mutex_Is_inherit_priority( CORE_mutex_Attributes *the_attribute ) { return the_attribute->discipline == CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; 40008e44: c6 04 20 58 ld [ %l0 + 0x58 ], %g3 executing = _Thread_Executing; executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; if ( !_CORE_mutex_Is_locked( the_mutex ) ) { the_mutex->lock = CORE_MUTEX_LOCKED; the_mutex->holder = executing; the_mutex->holder_id = executing->Object.id; 40008e48: c2 24 20 70 st %g1, [ %l0 + 0x70 ] 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; 40008e4c: c4 24 20 6c st %g2, [ %l0 + 0x6c ] the_mutex->holder_id = executing->Object.id; the_mutex->nest_count = 1; 40008e50: 82 10 20 01 mov 1, %g1 if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || 40008e54: 80 a0 e0 02 cmp %g3, 2 40008e58: 02 80 00 05 be 40008e6c <_Protected_heap_Free+0x98> 40008e5c: c2 24 20 64 st %g1, [ %l0 + 0x64 ] 40008e60: 80 a0 e0 03 cmp %g3, 3 <== NOT EXECUTED 40008e64: 32 80 00 06 bne,a 40008e7c <_Protected_heap_Free+0xa8> <== NOT EXECUTED 40008e68: c2 04 20 58 ld [ %l0 + 0x58 ], %g1 <== NOT EXECUTED _CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) executing->resource_count++; 40008e6c: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 40008e70: 82 00 60 01 inc %g1 40008e74: c2 20 a0 1c st %g1, [ %g2 + 0x1c ] if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { 40008e78: c2 04 20 58 ld [ %l0 + 0x58 ], %g1 40008e7c: 80 a0 60 03 cmp %g1, 3 40008e80: 22 80 00 03 be,a 40008e8c <_Protected_heap_Free+0xb8> 40008e84: c6 04 20 5c ld [ %l0 + 0x5c ], %g3 <== NOT EXECUTED _ISR_Enable( level ); 40008e88: 30 80 00 2c b,a 40008f38 <_Protected_heap_Free+0x164> { Priority_Control ceiling; Priority_Control current; ceiling = the_mutex->Attributes.priority_ceiling; current = executing->current_priority; 40008e8c: c2 00 a0 14 ld [ %g2 + 0x14 ], %g1 <== NOT EXECUTED if ( current == ceiling ) { 40008e90: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 40008e94: 12 80 00 03 bne 40008ea0 <_Protected_heap_Free+0xcc> <== NOT EXECUTED 40008e98: 01 00 00 00 nop <== NOT EXECUTED _ISR_Enable( level ); 40008e9c: 30 80 00 27 b,a 40008f38 <_Protected_heap_Free+0x164> <== NOT EXECUTED return 0; } if ( current > ceiling ) { 40008ea0: 08 80 00 10 bleu 40008ee0 <_Protected_heap_Free+0x10c> <== NOT EXECUTED 40008ea4: 82 10 20 06 mov 6, %g1 <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 40008ea8: 05 10 00 67 sethi %hi(0x40019c00), %g2 <== NOT EXECUTED 40008eac: c2 00 a2 a0 ld [ %g2 + 0x2a0 ], %g1 ! 40019ea0 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 40008eb0: 82 00 60 01 inc %g1 <== NOT EXECUTED 40008eb4: c2 20 a2 a0 st %g1, [ %g2 + 0x2a0 ] <== NOT EXECUTED _Thread_Disable_dispatch(); _ISR_Enable( level ); 40008eb8: 7f ff e4 02 call 40001ec0 <== NOT EXECUTED 40008ebc: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED _Thread_Change_priority( 40008ec0: d2 04 20 5c ld [ %l0 + 0x5c ], %o1 <== NOT EXECUTED 40008ec4: d0 04 20 6c ld [ %l0 + 0x6c ], %o0 <== NOT EXECUTED 40008ec8: 40 00 01 6f call 40009484 <_Thread_Change_priority> <== NOT EXECUTED 40008ecc: 94 10 20 00 clr %o2 <== NOT EXECUTED the_mutex->holder, the_mutex->Attributes.priority_ceiling, FALSE ); _Thread_Enable_dispatch(); 40008ed0: 7f ff ff b4 call 40008da0 <_Thread_Enable_dispatch> <== NOT EXECUTED 40008ed4: 01 00 00 00 nop <== NOT EXECUTED status = _Heap_Free( the_heap, start_address ); 40008ed8: 10 80 00 32 b 40008fa0 <_Protected_heap_Free+0x1cc> <== NOT EXECUTED 40008edc: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED return 0; } /* if ( current < ceiling ) */ { executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED; 40008ee0: c2 20 a0 34 st %g1, [ %g2 + 0x34 ] <== NOT EXECUTED the_mutex->lock = CORE_MUTEX_UNLOCKED; 40008ee4: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED the_mutex->nest_count = 0; /* undo locking above */ 40008ee8: c0 24 20 64 clr [ %l0 + 0x64 ] <== NOT EXECUTED _Thread_Enable_dispatch(); return 0; } /* if ( current < ceiling ) */ { executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED; the_mutex->lock = CORE_MUTEX_UNLOCKED; 40008eec: c2 24 20 60 st %g1, [ %l0 + 0x60 ] <== NOT EXECUTED the_mutex->nest_count = 0; /* undo locking above */ executing->resource_count--; /* undo locking above */ 40008ef0: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 40008ef4: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 40008ef8: c2 20 a0 1c st %g1, [ %g2 + 0x1c ] <== NOT EXECUTED _ISR_Enable( level ); 40008efc: 30 80 00 0f b,a 40008f38 <_Protected_heap_Free+0x164> <== 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 ) ) { 40008f00: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 40008f04: 32 80 00 13 bne,a 40008f50 <_Protected_heap_Free+0x17c> <== NOT EXECUTED 40008f08: 21 10 00 67 sethi %hi(0x40019c00), %l0 <== NOT EXECUTED switch ( the_mutex->Attributes.lock_nesting_behavior ) { 40008f0c: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 ! 40019c50 <== NOT EXECUTED 40008f10: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40008f14: 22 80 00 07 be,a 40008f30 <_Protected_heap_Free+0x15c> <== NOT EXECUTED 40008f18: c2 04 20 64 ld [ %l0 + 0x64 ], %g1 <== NOT EXECUTED 40008f1c: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 40008f20: 32 80 00 0c bne,a 40008f50 <_Protected_heap_Free+0x17c> <== NOT EXECUTED 40008f24: 21 10 00 67 sethi %hi(0x40019c00), %l0 <== NOT EXECUTED case CORE_MUTEX_NESTING_ACQUIRES: the_mutex->nest_count++; _ISR_Enable( level ); return 0; case CORE_MUTEX_NESTING_IS_ERROR: executing->Wait.return_code = CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED; 40008f28: 10 80 00 08 b 40008f48 <_Protected_heap_Free+0x174> <== NOT EXECUTED 40008f2c: 82 10 20 02 mov 2, %g1 <== NOT EXECUTED * to nest access. */ if ( _Thread_Is_executing( the_mutex->holder ) ) { switch ( the_mutex->Attributes.lock_nesting_behavior ) { case CORE_MUTEX_NESTING_ACQUIRES: the_mutex->nest_count++; 40008f30: 82 00 60 01 inc %g1 <== NOT EXECUTED 40008f34: c2 24 20 64 st %g1, [ %l0 + 0x64 ] <== NOT EXECUTED _ISR_Enable( level ); 40008f38: 7f ff e3 e2 call 40001ec0 40008f3c: 90 10 00 11 mov %l1, %o0 40008f40: 10 80 00 18 b 40008fa0 <_Protected_heap_Free+0x1cc> 40008f44: 90 10 00 18 mov %i0, %o0 return 0; case CORE_MUTEX_NESTING_IS_ERROR: executing->Wait.return_code = CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED; 40008f48: c2 20 a0 34 st %g1, [ %g2 + 0x34 ] <== NOT EXECUTED _ISR_Enable( level ); 40008f4c: 30 bf ff fb b,a 40008f38 <_Protected_heap_Free+0x164> <== NOT EXECUTED void *start_address ) { boolean status; _RTEMS_Lock_allocator(); 40008f50: c6 04 23 74 ld [ %l0 + 0x374 ], %g3 <== NOT EXECUTED 40008f54: 03 10 00 67 sethi %hi(0x40019c00), %g1 <== NOT EXECUTED 40008f58: da 00 e0 08 ld [ %g3 + 8 ], %o5 <== NOT EXECUTED 40008f5c: c8 00 63 7c ld [ %g1 + 0x37c ], %g4 <== NOT EXECUTED 40008f60: 05 10 00 67 sethi %hi(0x40019c00), %g2 <== NOT EXECUTED 40008f64: c2 00 a2 a0 ld [ %g2 + 0x2a0 ], %g1 ! 40019ea0 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 40008f68: da 21 20 20 st %o5, [ %g4 + 0x20 ] <== NOT EXECUTED 40008f6c: 82 00 60 01 inc %g1 <== NOT EXECUTED 40008f70: c2 20 a2 a0 st %g1, [ %g2 + 0x2a0 ] <== NOT EXECUTED 40008f74: 82 00 e0 10 add %g3, 0x10, %g1 <== NOT EXECUTED 40008f78: c2 21 20 44 st %g1, [ %g4 + 0x44 ] <== NOT EXECUTED 40008f7c: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 40008f80: c2 20 e0 40 st %g1, [ %g3 + 0x40 ] <== NOT EXECUTED 40008f84: 7f ff e3 cf call 40001ec0 <== NOT EXECUTED 40008f88: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 40008f8c: d0 04 23 74 ld [ %l0 + 0x374 ], %o0 <== NOT EXECUTED 40008f90: 92 10 20 00 clr %o1 <== NOT EXECUTED 40008f94: 7f ff f9 e9 call 40007738 <_CORE_mutex_Seize_interrupt_blocking> <== NOT EXECUTED 40008f98: 90 02 20 10 add %o0, 0x10, %o0 <== NOT EXECUTED status = _Heap_Free( the_heap, start_address ); 40008f9c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 40008fa0: 7f ff fa fc call 40007b90 <_Heap_Free> 40008fa4: 92 10 00 19 mov %i1, %o1 40008fa8: 05 10 00 67 sethi %hi(0x40019c00), %g2 40008fac: c2 00 a2 a0 ld [ %g2 + 0x2a0 ], %g1 ! 40019ea0 <_Thread_Dispatch_disable_level> 40008fb0: b0 10 00 08 mov %o0, %i0 40008fb4: 82 00 60 01 inc %g1 40008fb8: c2 20 a2 a0 st %g1, [ %g2 + 0x2a0 ] _RTEMS_Unlock_allocator(); 40008fbc: 03 10 00 67 sethi %hi(0x40019c00), %g1 40008fc0: d0 00 63 74 ld [ %g1 + 0x374 ], %o0 ! 40019f74 <_RTEMS_Allocator_Mutex> 40008fc4: 94 10 20 00 clr %o2 40008fc8: d2 02 20 08 ld [ %o0 + 8 ], %o1 40008fcc: 7f ff f9 fd call 400077c0 <_CORE_mutex_Surrender> 40008fd0: 90 02 20 10 add %o0, 0x10, %o0 40008fd4: 7f ff ff 73 call 40008da0 <_Thread_Enable_dispatch> 40008fd8: 01 00 00 00 nop return status; } 40008fdc: 81 c7 e0 08 ret 40008fe0: 81 e8 00 00 restore 40009018 <_Protected_heap_Get_block_size>: boolean _Protected_heap_Get_block_size( Heap_Control *the_heap, void *starting_address, size_t *size ) { 40009018: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED boolean status; _RTEMS_Lock_allocator(); 4000901c: 7f ff e3 a5 call 40001eb0 <== NOT EXECUTED 40009020: 01 00 00 00 nop <== NOT EXECUTED 40009024: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED 40009028: 03 10 00 67 sethi %hi(0x40019c00), %g1 <== NOT EXECUTED 4000902c: c2 00 62 a0 ld [ %g1 + 0x2a0 ], %g1 ! 40019ea0 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 40009030: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40009034: 02 80 00 0b be 40009060 <_Protected_heap_Get_block_size+0x48> <== NOT EXECUTED 40009038: 03 10 00 67 sethi %hi(0x40019c00), %g1 <== NOT EXECUTED 4000903c: 03 10 00 68 sethi %hi(0x4001a000), %g1 <== NOT EXECUTED 40009040: c2 00 60 80 ld [ %g1 + 0x80 ], %g1 ! 4001a080 <_System_state_Current> <== NOT EXECUTED 40009044: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 40009048: 08 80 00 05 bleu 4000905c <_Protected_heap_Get_block_size+0x44> <== NOT EXECUTED 4000904c: 90 10 20 00 clr %o0 <== NOT EXECUTED 40009050: 92 10 20 00 clr %o1 <== NOT EXECUTED 40009054: 7f ff fb d3 call 40007fa0 <_Internal_error_Occurred> <== NOT EXECUTED 40009058: 94 10 20 12 mov 0x12, %o2 <== NOT EXECUTED 4000905c: 03 10 00 67 sethi %hi(0x40019c00), %g1 <== NOT EXECUTED 40009060: e0 00 63 74 ld [ %g1 + 0x374 ], %l0 ! 40019f74 <_RTEMS_Allocator_Mutex> <== NOT EXECUTED Thread_Control *executing; ISR_Level level = *level_p; /* disabled when you get here */ executing = _Thread_Executing; 40009064: 03 10 00 67 sethi %hi(0x40019c00), %g1 <== NOT EXECUTED 40009068: c4 00 63 7c ld [ %g1 + 0x37c ], %g2 ! 40019f7c <_Thread_Executing> <== NOT EXECUTED executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; 4000906c: c0 20 a0 34 clr [ %g2 + 0x34 ] <== NOT EXECUTED if ( !_CORE_mutex_Is_locked( the_mutex ) ) { 40009070: c2 04 20 60 ld [ %l0 + 0x60 ], %g1 <== NOT EXECUTED 40009074: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40009078: 22 80 00 33 be,a 40009144 <_Protected_heap_Get_block_size+0x12c> <== NOT EXECUTED 4000907c: c2 04 20 6c ld [ %l0 + 0x6c ], %g1 <== NOT EXECUTED the_mutex->lock = CORE_MUTEX_LOCKED; 40009080: c0 24 20 60 clr [ %l0 + 0x60 ] <== NOT EXECUTED the_mutex->holder = executing; the_mutex->holder_id = executing->Object.id; 40009084: c2 00 a0 08 ld [ %g2 + 8 ], %g1 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE boolean _CORE_mutex_Is_inherit_priority( CORE_mutex_Attributes *the_attribute ) { return the_attribute->discipline == CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; 40009088: c6 04 20 58 ld [ %l0 + 0x58 ], %g3 <== NOT EXECUTED executing = _Thread_Executing; executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; if ( !_CORE_mutex_Is_locked( the_mutex ) ) { the_mutex->lock = CORE_MUTEX_LOCKED; the_mutex->holder = executing; the_mutex->holder_id = executing->Object.id; 4000908c: c2 24 20 70 st %g1, [ %l0 + 0x70 ] <== NOT EXECUTED 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; 40009090: c4 24 20 6c st %g2, [ %l0 + 0x6c ] <== NOT EXECUTED the_mutex->holder_id = executing->Object.id; the_mutex->nest_count = 1; 40009094: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || 40009098: 80 a0 e0 02 cmp %g3, 2 <== NOT EXECUTED 4000909c: 02 80 00 05 be 400090b0 <_Protected_heap_Get_block_size+0x98> <== NOT EXECUTED 400090a0: c2 24 20 64 st %g1, [ %l0 + 0x64 ] <== NOT EXECUTED 400090a4: 80 a0 e0 03 cmp %g3, 3 <== NOT EXECUTED 400090a8: 32 80 00 06 bne,a 400090c0 <_Protected_heap_Get_block_size+0xa8> <== NOT EXECUTED 400090ac: c2 04 20 58 ld [ %l0 + 0x58 ], %g1 <== NOT EXECUTED _CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) executing->resource_count++; 400090b0: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 400090b4: 82 00 60 01 inc %g1 <== NOT EXECUTED 400090b8: c2 20 a0 1c st %g1, [ %g2 + 0x1c ] <== NOT EXECUTED if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { 400090bc: c2 04 20 58 ld [ %l0 + 0x58 ], %g1 <== NOT EXECUTED 400090c0: 80 a0 60 03 cmp %g1, 3 <== NOT EXECUTED 400090c4: 22 80 00 03 be,a 400090d0 <_Protected_heap_Get_block_size+0xb8> <== NOT EXECUTED 400090c8: c6 04 20 5c ld [ %l0 + 0x5c ], %g3 <== NOT EXECUTED _ISR_Enable( level ); 400090cc: 30 80 00 2c b,a 4000917c <_Protected_heap_Get_block_size+0x164> <== NOT EXECUTED { Priority_Control ceiling; Priority_Control current; ceiling = the_mutex->Attributes.priority_ceiling; current = executing->current_priority; 400090d0: c2 00 a0 14 ld [ %g2 + 0x14 ], %g1 <== NOT EXECUTED if ( current == ceiling ) { 400090d4: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 400090d8: 12 80 00 03 bne 400090e4 <_Protected_heap_Get_block_size+0xcc> <== NOT EXECUTED 400090dc: 01 00 00 00 nop <== NOT EXECUTED _ISR_Enable( level ); 400090e0: 30 80 00 27 b,a 4000917c <_Protected_heap_Get_block_size+0x164> <== NOT EXECUTED return 0; } if ( current > ceiling ) { 400090e4: 08 80 00 10 bleu 40009124 <_Protected_heap_Get_block_size+0x10c> <== NOT EXECUTED 400090e8: 82 10 20 06 mov 6, %g1 <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 400090ec: 05 10 00 67 sethi %hi(0x40019c00), %g2 <== NOT EXECUTED 400090f0: c2 00 a2 a0 ld [ %g2 + 0x2a0 ], %g1 ! 40019ea0 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 400090f4: 82 00 60 01 inc %g1 <== NOT EXECUTED 400090f8: c2 20 a2 a0 st %g1, [ %g2 + 0x2a0 ] <== NOT EXECUTED _Thread_Disable_dispatch(); _ISR_Enable( level ); 400090fc: 7f ff e3 71 call 40001ec0 <== NOT EXECUTED 40009100: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED _Thread_Change_priority( 40009104: d2 04 20 5c ld [ %l0 + 0x5c ], %o1 <== NOT EXECUTED 40009108: d0 04 20 6c ld [ %l0 + 0x6c ], %o0 <== NOT EXECUTED 4000910c: 40 00 00 de call 40009484 <_Thread_Change_priority> <== NOT EXECUTED 40009110: 94 10 20 00 clr %o2 <== NOT EXECUTED the_mutex->holder, the_mutex->Attributes.priority_ceiling, FALSE ); _Thread_Enable_dispatch(); 40009114: 7f ff ff b4 call 40008fe4 <_Thread_Enable_dispatch> <== NOT EXECUTED 40009118: 01 00 00 00 nop <== NOT EXECUTED status = _Heap_Size_of_user_area( the_heap, starting_address, size ); 4000911c: 10 80 00 32 b 400091e4 <_Protected_heap_Get_block_size+0x1cc> <== NOT EXECUTED 40009120: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED return 0; } /* if ( current < ceiling ) */ { executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED; 40009124: c2 20 a0 34 st %g1, [ %g2 + 0x34 ] <== NOT EXECUTED the_mutex->lock = CORE_MUTEX_UNLOCKED; 40009128: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED the_mutex->nest_count = 0; /* undo locking above */ 4000912c: c0 24 20 64 clr [ %l0 + 0x64 ] <== NOT EXECUTED _Thread_Enable_dispatch(); return 0; } /* if ( current < ceiling ) */ { executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED; the_mutex->lock = CORE_MUTEX_UNLOCKED; 40009130: c2 24 20 60 st %g1, [ %l0 + 0x60 ] <== NOT EXECUTED the_mutex->nest_count = 0; /* undo locking above */ executing->resource_count--; /* undo locking above */ 40009134: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 40009138: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 4000913c: c2 20 a0 1c st %g1, [ %g2 + 0x1c ] <== NOT EXECUTED _ISR_Enable( level ); 40009140: 30 80 00 0f b,a 4000917c <_Protected_heap_Get_block_size+0x164> <== 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 ) ) { 40009144: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 40009148: 32 80 00 13 bne,a 40009194 <_Protected_heap_Get_block_size+0x17c> <== NOT EXECUTED 4000914c: 21 10 00 67 sethi %hi(0x40019c00), %l0 <== NOT EXECUTED switch ( the_mutex->Attributes.lock_nesting_behavior ) { 40009150: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 ! 40019c50 <== NOT EXECUTED 40009154: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40009158: 22 80 00 07 be,a 40009174 <_Protected_heap_Get_block_size+0x15c> <== NOT EXECUTED 4000915c: c2 04 20 64 ld [ %l0 + 0x64 ], %g1 <== NOT EXECUTED 40009160: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 40009164: 32 80 00 0c bne,a 40009194 <_Protected_heap_Get_block_size+0x17c> <== NOT EXECUTED 40009168: 21 10 00 67 sethi %hi(0x40019c00), %l0 <== NOT EXECUTED case CORE_MUTEX_NESTING_ACQUIRES: the_mutex->nest_count++; _ISR_Enable( level ); return 0; case CORE_MUTEX_NESTING_IS_ERROR: executing->Wait.return_code = CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED; 4000916c: 10 80 00 08 b 4000918c <_Protected_heap_Get_block_size+0x174> <== NOT EXECUTED 40009170: 82 10 20 02 mov 2, %g1 <== NOT EXECUTED * to nest access. */ if ( _Thread_Is_executing( the_mutex->holder ) ) { switch ( the_mutex->Attributes.lock_nesting_behavior ) { case CORE_MUTEX_NESTING_ACQUIRES: the_mutex->nest_count++; 40009174: 82 00 60 01 inc %g1 <== NOT EXECUTED 40009178: c2 24 20 64 st %g1, [ %l0 + 0x64 ] <== NOT EXECUTED _ISR_Enable( level ); 4000917c: 7f ff e3 51 call 40001ec0 <== NOT EXECUTED 40009180: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 40009184: 10 80 00 18 b 400091e4 <_Protected_heap_Get_block_size+0x1cc> <== NOT EXECUTED 40009188: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED return 0; case CORE_MUTEX_NESTING_IS_ERROR: executing->Wait.return_code = CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED; 4000918c: c2 20 a0 34 st %g1, [ %g2 + 0x34 ] <== NOT EXECUTED _ISR_Enable( level ); 40009190: 30 bf ff fb b,a 4000917c <_Protected_heap_Get_block_size+0x164> <== NOT EXECUTED size_t *size ) { boolean status; _RTEMS_Lock_allocator(); 40009194: c6 04 23 74 ld [ %l0 + 0x374 ], %g3 <== NOT EXECUTED 40009198: 03 10 00 67 sethi %hi(0x40019c00), %g1 <== NOT EXECUTED 4000919c: da 00 e0 08 ld [ %g3 + 8 ], %o5 <== NOT EXECUTED 400091a0: c8 00 63 7c ld [ %g1 + 0x37c ], %g4 <== NOT EXECUTED 400091a4: 05 10 00 67 sethi %hi(0x40019c00), %g2 <== NOT EXECUTED 400091a8: c2 00 a2 a0 ld [ %g2 + 0x2a0 ], %g1 ! 40019ea0 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 400091ac: da 21 20 20 st %o5, [ %g4 + 0x20 ] <== NOT EXECUTED 400091b0: 82 00 60 01 inc %g1 <== NOT EXECUTED 400091b4: c2 20 a2 a0 st %g1, [ %g2 + 0x2a0 ] <== NOT EXECUTED 400091b8: 82 00 e0 10 add %g3, 0x10, %g1 <== NOT EXECUTED 400091bc: c2 21 20 44 st %g1, [ %g4 + 0x44 ] <== NOT EXECUTED 400091c0: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 400091c4: c2 20 e0 40 st %g1, [ %g3 + 0x40 ] <== NOT EXECUTED 400091c8: 7f ff e3 3e call 40001ec0 <== NOT EXECUTED 400091cc: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 400091d0: d0 04 23 74 ld [ %l0 + 0x374 ], %o0 <== NOT EXECUTED 400091d4: 92 10 20 00 clr %o1 <== NOT EXECUTED 400091d8: 7f ff f9 58 call 40007738 <_CORE_mutex_Seize_interrupt_blocking> <== NOT EXECUTED 400091dc: 90 02 20 10 add %o0, 0x10, %o0 <== NOT EXECUTED status = _Heap_Size_of_user_area( the_heap, starting_address, size ); 400091e0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 400091e4: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 400091e8: 40 00 10 75 call 4000d3bc <_Heap_Size_of_user_area> <== NOT EXECUTED 400091ec: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED 400091f0: 05 10 00 67 sethi %hi(0x40019c00), %g2 <== NOT EXECUTED 400091f4: c2 00 a2 a0 ld [ %g2 + 0x2a0 ], %g1 ! 40019ea0 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 400091f8: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 400091fc: 82 00 60 01 inc %g1 <== NOT EXECUTED 40009200: c2 20 a2 a0 st %g1, [ %g2 + 0x2a0 ] <== NOT EXECUTED _RTEMS_Unlock_allocator(); 40009204: 03 10 00 67 sethi %hi(0x40019c00), %g1 <== NOT EXECUTED 40009208: d0 00 63 74 ld [ %g1 + 0x374 ], %o0 ! 40019f74 <_RTEMS_Allocator_Mutex> <== NOT EXECUTED 4000920c: 94 10 20 00 clr %o2 <== NOT EXECUTED 40009210: d2 02 20 08 ld [ %o0 + 8 ], %o1 <== NOT EXECUTED 40009214: 7f ff f9 6b call 400077c0 <_CORE_mutex_Surrender> <== NOT EXECUTED 40009218: 90 02 20 10 add %o0, 0x10, %o0 <== NOT EXECUTED 4000921c: 7f ff ff 72 call 40008fe4 <_Thread_Enable_dispatch> <== NOT EXECUTED 40009220: 01 00 00 00 nop <== NOT EXECUTED return status; } 40009224: 81 c7 e0 08 ret <== NOT EXECUTED 40009228: 81 e8 00 00 restore <== NOT EXECUTED 4000c7e0 <_Protected_heap_Get_free_information>: void _Protected_heap_Get_free_information( Heap_Control *the_heap, Heap_Information *info ) { 4000c7e0: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED _RTEMS_Lock_allocator(); 4000c7e4: 7f ff dd 4b call 40003d10 <== NOT EXECUTED 4000c7e8: 01 00 00 00 nop <== NOT EXECUTED 4000c7ec: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED 4000c7f0: 03 10 00 e9 sethi %hi(0x4003a400), %g1 <== NOT EXECUTED 4000c7f4: c2 00 63 60 ld [ %g1 + 0x360 ], %g1 ! 4003a760 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 4000c7f8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000c7fc: 02 80 00 0b be 4000c828 <_Protected_heap_Get_free_information+0x48> <== NOT EXECUTED 4000c800: 03 10 00 ea sethi %hi(0x4003a800), %g1 <== NOT EXECUTED 4000c804: 03 10 00 ea sethi %hi(0x4003a800), %g1 <== NOT EXECUTED 4000c808: c2 00 61 40 ld [ %g1 + 0x140 ], %g1 ! 4003a940 <_System_state_Current> <== NOT EXECUTED 4000c80c: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 4000c810: 08 80 00 05 bleu 4000c824 <_Protected_heap_Get_free_information+0x44> <== NOT EXECUTED 4000c814: 90 10 20 00 clr %o0 <== NOT EXECUTED 4000c818: 92 10 20 00 clr %o1 <== NOT EXECUTED 4000c81c: 7f ff fb 80 call 4000b61c <_Internal_error_Occurred> <== NOT EXECUTED 4000c820: 94 10 20 12 mov 0x12, %o2 <== NOT EXECUTED 4000c824: 03 10 00 ea sethi %hi(0x4003a800), %g1 <== NOT EXECUTED 4000c828: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 ! 4003a834 <_RTEMS_Allocator_Mutex> <== NOT EXECUTED Thread_Control *executing; ISR_Level level = *level_p; /* disabled when you get here */ executing = _Thread_Executing; 4000c82c: 03 10 00 ea sethi %hi(0x4003a800), %g1 <== NOT EXECUTED 4000c830: c4 00 60 3c ld [ %g1 + 0x3c ], %g2 ! 4003a83c <_Thread_Executing> <== NOT EXECUTED executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; 4000c834: c0 20 a0 34 clr [ %g2 + 0x34 ] <== NOT EXECUTED if ( !_CORE_mutex_Is_locked( the_mutex ) ) { 4000c838: c2 04 20 60 ld [ %l0 + 0x60 ], %g1 <== NOT EXECUTED 4000c83c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000c840: 22 80 00 33 be,a 4000c90c <_Protected_heap_Get_free_information+0x12c> <== NOT EXECUTED 4000c844: c2 04 20 6c ld [ %l0 + 0x6c ], %g1 <== NOT EXECUTED the_mutex->lock = CORE_MUTEX_LOCKED; 4000c848: c0 24 20 60 clr [ %l0 + 0x60 ] <== NOT EXECUTED the_mutex->holder = executing; the_mutex->holder_id = executing->Object.id; 4000c84c: c2 00 a0 08 ld [ %g2 + 8 ], %g1 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE boolean _CORE_mutex_Is_inherit_priority( CORE_mutex_Attributes *the_attribute ) { return the_attribute->discipline == CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; 4000c850: c6 04 20 58 ld [ %l0 + 0x58 ], %g3 <== NOT EXECUTED executing = _Thread_Executing; executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; if ( !_CORE_mutex_Is_locked( the_mutex ) ) { the_mutex->lock = CORE_MUTEX_LOCKED; the_mutex->holder = executing; the_mutex->holder_id = executing->Object.id; 4000c854: c2 24 20 70 st %g1, [ %l0 + 0x70 ] <== NOT EXECUTED 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; 4000c858: c4 24 20 6c st %g2, [ %l0 + 0x6c ] <== NOT EXECUTED the_mutex->holder_id = executing->Object.id; the_mutex->nest_count = 1; 4000c85c: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || 4000c860: 80 a0 e0 02 cmp %g3, 2 <== NOT EXECUTED 4000c864: 02 80 00 05 be 4000c878 <_Protected_heap_Get_free_information+0x98> <== NOT EXECUTED 4000c868: c2 24 20 64 st %g1, [ %l0 + 0x64 ] <== NOT EXECUTED 4000c86c: 80 a0 e0 03 cmp %g3, 3 <== NOT EXECUTED 4000c870: 32 80 00 06 bne,a 4000c888 <_Protected_heap_Get_free_information+0xa8> <== NOT EXECUTED 4000c874: c2 04 20 58 ld [ %l0 + 0x58 ], %g1 <== NOT EXECUTED _CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) executing->resource_count++; 4000c878: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 4000c87c: 82 00 60 01 inc %g1 <== NOT EXECUTED 4000c880: c2 20 a0 1c st %g1, [ %g2 + 0x1c ] <== NOT EXECUTED if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { 4000c884: c2 04 20 58 ld [ %l0 + 0x58 ], %g1 <== NOT EXECUTED 4000c888: 80 a0 60 03 cmp %g1, 3 <== NOT EXECUTED 4000c88c: 22 80 00 03 be,a 4000c898 <_Protected_heap_Get_free_information+0xb8> <== NOT EXECUTED 4000c890: c6 04 20 5c ld [ %l0 + 0x5c ], %g3 <== NOT EXECUTED _ISR_Enable( level ); 4000c894: 30 80 00 2c b,a 4000c944 <_Protected_heap_Get_free_information+0x164> <== NOT EXECUTED { Priority_Control ceiling; Priority_Control current; ceiling = the_mutex->Attributes.priority_ceiling; current = executing->current_priority; 4000c898: c2 00 a0 14 ld [ %g2 + 0x14 ], %g1 <== NOT EXECUTED if ( current == ceiling ) { 4000c89c: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 4000c8a0: 12 80 00 03 bne 4000c8ac <_Protected_heap_Get_free_information+0xcc> <== NOT EXECUTED 4000c8a4: 01 00 00 00 nop <== NOT EXECUTED _ISR_Enable( level ); 4000c8a8: 30 80 00 27 b,a 4000c944 <_Protected_heap_Get_free_information+0x164> <== NOT EXECUTED return 0; } if ( current > ceiling ) { 4000c8ac: 08 80 00 10 bleu 4000c8ec <_Protected_heap_Get_free_information+0x10c> <== NOT EXECUTED 4000c8b0: 82 10 20 06 mov 6, %g1 <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 4000c8b4: 05 10 00 e9 sethi %hi(0x4003a400), %g2 <== NOT EXECUTED 4000c8b8: c2 00 a3 60 ld [ %g2 + 0x360 ], %g1 ! 4003a760 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 4000c8bc: 82 00 60 01 inc %g1 <== NOT EXECUTED 4000c8c0: c2 20 a3 60 st %g1, [ %g2 + 0x360 ] <== NOT EXECUTED _Thread_Disable_dispatch(); _ISR_Enable( level ); 4000c8c4: 7f ff dd 17 call 40003d20 <== NOT EXECUTED 4000c8c8: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED _Thread_Change_priority( 4000c8cc: d2 04 20 5c ld [ %l0 + 0x5c ], %o1 <== NOT EXECUTED 4000c8d0: d0 04 20 6c ld [ %l0 + 0x6c ], %o0 <== NOT EXECUTED 4000c8d4: 40 00 00 db call 4000cc40 <_Thread_Change_priority> <== NOT EXECUTED 4000c8d8: 94 10 20 00 clr %o2 <== NOT EXECUTED the_mutex->holder, the_mutex->Attributes.priority_ceiling, FALSE ); _Thread_Enable_dispatch(); 4000c8dc: 7f ff ff b4 call 4000c7ac <_Thread_Enable_dispatch> <== NOT EXECUTED 4000c8e0: 01 00 00 00 nop <== NOT EXECUTED _Heap_Get_free_information( the_heap, info ); 4000c8e4: 10 80 00 32 b 4000c9ac <_Protected_heap_Get_free_information+0x1cc> <== NOT EXECUTED 4000c8e8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED return 0; } /* if ( current < ceiling ) */ { executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED; 4000c8ec: c2 20 a0 34 st %g1, [ %g2 + 0x34 ] <== NOT EXECUTED the_mutex->lock = CORE_MUTEX_UNLOCKED; 4000c8f0: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED the_mutex->nest_count = 0; /* undo locking above */ 4000c8f4: c0 24 20 64 clr [ %l0 + 0x64 ] <== NOT EXECUTED _Thread_Enable_dispatch(); return 0; } /* if ( current < ceiling ) */ { executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED; the_mutex->lock = CORE_MUTEX_UNLOCKED; 4000c8f8: c2 24 20 60 st %g1, [ %l0 + 0x60 ] <== NOT EXECUTED the_mutex->nest_count = 0; /* undo locking above */ executing->resource_count--; /* undo locking above */ 4000c8fc: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 4000c900: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 4000c904: c2 20 a0 1c st %g1, [ %g2 + 0x1c ] <== NOT EXECUTED _ISR_Enable( level ); 4000c908: 30 80 00 0f b,a 4000c944 <_Protected_heap_Get_free_information+0x164> <== 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 ) ) { 4000c90c: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 4000c910: 32 80 00 13 bne,a 4000c95c <_Protected_heap_Get_free_information+0x17c> <== NOT EXECUTED 4000c914: 21 10 00 ea sethi %hi(0x4003a800), %l0 <== NOT EXECUTED switch ( the_mutex->Attributes.lock_nesting_behavior ) { 4000c918: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 ! 4003a850 <_Watchdog_Seconds_chain> <== NOT EXECUTED 4000c91c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000c920: 22 80 00 07 be,a 4000c93c <_Protected_heap_Get_free_information+0x15c> <== NOT EXECUTED 4000c924: c2 04 20 64 ld [ %l0 + 0x64 ], %g1 <== NOT EXECUTED 4000c928: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 4000c92c: 32 80 00 0c bne,a 4000c95c <_Protected_heap_Get_free_information+0x17c> <== NOT EXECUTED 4000c930: 21 10 00 ea sethi %hi(0x4003a800), %l0 <== NOT EXECUTED case CORE_MUTEX_NESTING_ACQUIRES: the_mutex->nest_count++; _ISR_Enable( level ); return 0; case CORE_MUTEX_NESTING_IS_ERROR: executing->Wait.return_code = CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED; 4000c934: 10 80 00 08 b 4000c954 <_Protected_heap_Get_free_information+0x174> <== NOT EXECUTED 4000c938: 82 10 20 02 mov 2, %g1 <== NOT EXECUTED * to nest access. */ if ( _Thread_Is_executing( the_mutex->holder ) ) { switch ( the_mutex->Attributes.lock_nesting_behavior ) { case CORE_MUTEX_NESTING_ACQUIRES: the_mutex->nest_count++; 4000c93c: 82 00 60 01 inc %g1 <== NOT EXECUTED 4000c940: c2 24 20 64 st %g1, [ %l0 + 0x64 ] <== NOT EXECUTED _ISR_Enable( level ); 4000c944: 7f ff dc f7 call 40003d20 <== NOT EXECUTED 4000c948: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 4000c94c: 10 80 00 18 b 4000c9ac <_Protected_heap_Get_free_information+0x1cc> <== NOT EXECUTED 4000c950: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED return 0; case CORE_MUTEX_NESTING_IS_ERROR: executing->Wait.return_code = CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED; 4000c954: c2 20 a0 34 st %g1, [ %g2 + 0x34 ] <== NOT EXECUTED _ISR_Enable( level ); 4000c958: 30 bf ff fb b,a 4000c944 <_Protected_heap_Get_free_information+0x164> <== NOT EXECUTED void _Protected_heap_Get_free_information( Heap_Control *the_heap, Heap_Information *info ) { _RTEMS_Lock_allocator(); 4000c95c: c6 04 20 34 ld [ %l0 + 0x34 ], %g3 <== NOT EXECUTED 4000c960: 03 10 00 ea sethi %hi(0x4003a800), %g1 <== NOT EXECUTED 4000c964: da 00 e0 08 ld [ %g3 + 8 ], %o5 <== NOT EXECUTED 4000c968: c8 00 60 3c ld [ %g1 + 0x3c ], %g4 <== NOT EXECUTED 4000c96c: 05 10 00 e9 sethi %hi(0x4003a400), %g2 <== NOT EXECUTED 4000c970: c2 00 a3 60 ld [ %g2 + 0x360 ], %g1 ! 4003a760 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 4000c974: da 21 20 20 st %o5, [ %g4 + 0x20 ] <== NOT EXECUTED 4000c978: 82 00 60 01 inc %g1 <== NOT EXECUTED 4000c97c: c2 20 a3 60 st %g1, [ %g2 + 0x360 ] <== NOT EXECUTED 4000c980: 82 00 e0 10 add %g3, 0x10, %g1 <== NOT EXECUTED 4000c984: c2 21 20 44 st %g1, [ %g4 + 0x44 ] <== NOT EXECUTED 4000c988: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 4000c98c: c2 20 e0 40 st %g1, [ %g3 + 0x40 ] <== NOT EXECUTED 4000c990: 7f ff dc e4 call 40003d20 <== NOT EXECUTED 4000c994: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 4000c998: d0 04 20 34 ld [ %l0 + 0x34 ], %o0 <== NOT EXECUTED 4000c99c: 92 10 20 00 clr %o1 <== NOT EXECUTED 4000c9a0: 7f ff f9 05 call 4000adb4 <_CORE_mutex_Seize_interrupt_blocking> <== NOT EXECUTED 4000c9a4: 90 02 20 10 add %o0, 0x10, %o0 <== NOT EXECUTED _Heap_Get_free_information( the_heap, info ); 4000c9a8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 4000c9ac: 40 00 33 2e call 40019664 <_Heap_Get_free_information> <== NOT EXECUTED 4000c9b0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 4000c9b4: 05 10 00 e9 sethi %hi(0x4003a400), %g2 <== NOT EXECUTED 4000c9b8: c2 00 a3 60 ld [ %g2 + 0x360 ], %g1 ! 4003a760 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 4000c9bc: 82 00 60 01 inc %g1 <== NOT EXECUTED 4000c9c0: c2 20 a3 60 st %g1, [ %g2 + 0x360 ] <== NOT EXECUTED _RTEMS_Unlock_allocator(); 4000c9c4: 03 10 00 ea sethi %hi(0x4003a800), %g1 <== NOT EXECUTED 4000c9c8: d0 00 60 34 ld [ %g1 + 0x34 ], %o0 ! 4003a834 <_RTEMS_Allocator_Mutex> <== NOT EXECUTED 4000c9cc: 94 10 20 00 clr %o2 <== NOT EXECUTED 4000c9d0: d2 02 20 08 ld [ %o0 + 8 ], %o1 <== NOT EXECUTED 4000c9d4: 7f ff f9 1a call 4000ae3c <_CORE_mutex_Surrender> <== NOT EXECUTED 4000c9d8: 90 02 20 10 add %o0, 0x10, %o0 <== NOT EXECUTED 4000c9dc: 7f ff ff 74 call 4000c7ac <_Thread_Enable_dispatch> <== NOT EXECUTED 4000c9e0: 81 e8 00 00 restore <== NOT EXECUTED 4000c9e4: 01 00 00 00 nop 40009260 <_Protected_heap_Resize_block>: boolean _Protected_heap_Resize_block( Heap_Control *the_heap, void *starting_address, size_t size ) { 40009260: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED Heap_Resize_status status; uint32_t old_mem_size; uint32_t avail_mem_size; _RTEMS_Lock_allocator(); 40009264: 7f ff e3 13 call 40001eb0 <== NOT EXECUTED 40009268: 01 00 00 00 nop <== NOT EXECUTED 4000926c: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED 40009270: 03 10 00 67 sethi %hi(0x40019c00), %g1 <== NOT EXECUTED 40009274: c2 00 62 a0 ld [ %g1 + 0x2a0 ], %g1 ! 40019ea0 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 40009278: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000927c: 02 80 00 0b be 400092a8 <_Protected_heap_Resize_block+0x48> <== NOT EXECUTED 40009280: 03 10 00 67 sethi %hi(0x40019c00), %g1 <== NOT EXECUTED 40009284: 03 10 00 68 sethi %hi(0x4001a000), %g1 <== NOT EXECUTED 40009288: c2 00 60 80 ld [ %g1 + 0x80 ], %g1 ! 4001a080 <_System_state_Current> <== NOT EXECUTED 4000928c: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 40009290: 08 80 00 05 bleu 400092a4 <_Protected_heap_Resize_block+0x44> <== NOT EXECUTED 40009294: 90 10 20 00 clr %o0 <== NOT EXECUTED 40009298: 92 10 20 00 clr %o1 <== NOT EXECUTED 4000929c: 7f ff fb 41 call 40007fa0 <_Internal_error_Occurred> <== NOT EXECUTED 400092a0: 94 10 20 12 mov 0x12, %o2 <== NOT EXECUTED 400092a4: 03 10 00 67 sethi %hi(0x40019c00), %g1 <== NOT EXECUTED 400092a8: e0 00 63 74 ld [ %g1 + 0x374 ], %l0 ! 40019f74 <_RTEMS_Allocator_Mutex> <== NOT EXECUTED Thread_Control *executing; ISR_Level level = *level_p; /* disabled when you get here */ executing = _Thread_Executing; 400092ac: 03 10 00 67 sethi %hi(0x40019c00), %g1 <== NOT EXECUTED 400092b0: c4 00 63 7c ld [ %g1 + 0x37c ], %g2 ! 40019f7c <_Thread_Executing> <== NOT EXECUTED executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; 400092b4: c0 20 a0 34 clr [ %g2 + 0x34 ] <== NOT EXECUTED if ( !_CORE_mutex_Is_locked( the_mutex ) ) { 400092b8: c2 04 20 60 ld [ %l0 + 0x60 ], %g1 <== NOT EXECUTED 400092bc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 400092c0: 22 80 00 33 be,a 4000938c <_Protected_heap_Resize_block+0x12c> <== NOT EXECUTED 400092c4: c2 04 20 6c ld [ %l0 + 0x6c ], %g1 <== NOT EXECUTED the_mutex->lock = CORE_MUTEX_LOCKED; 400092c8: c0 24 20 60 clr [ %l0 + 0x60 ] <== NOT EXECUTED the_mutex->holder = executing; the_mutex->holder_id = executing->Object.id; 400092cc: c2 00 a0 08 ld [ %g2 + 8 ], %g1 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE boolean _CORE_mutex_Is_inherit_priority( CORE_mutex_Attributes *the_attribute ) { return the_attribute->discipline == CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; 400092d0: c6 04 20 58 ld [ %l0 + 0x58 ], %g3 <== NOT EXECUTED executing = _Thread_Executing; executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; if ( !_CORE_mutex_Is_locked( the_mutex ) ) { the_mutex->lock = CORE_MUTEX_LOCKED; the_mutex->holder = executing; the_mutex->holder_id = executing->Object.id; 400092d4: c2 24 20 70 st %g1, [ %l0 + 0x70 ] <== NOT EXECUTED 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; 400092d8: c4 24 20 6c st %g2, [ %l0 + 0x6c ] <== NOT EXECUTED the_mutex->holder_id = executing->Object.id; the_mutex->nest_count = 1; 400092dc: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || 400092e0: 80 a0 e0 02 cmp %g3, 2 <== NOT EXECUTED 400092e4: 02 80 00 05 be 400092f8 <_Protected_heap_Resize_block+0x98> <== NOT EXECUTED 400092e8: c2 24 20 64 st %g1, [ %l0 + 0x64 ] <== NOT EXECUTED 400092ec: 80 a0 e0 03 cmp %g3, 3 <== NOT EXECUTED 400092f0: 32 80 00 06 bne,a 40009308 <_Protected_heap_Resize_block+0xa8> <== NOT EXECUTED 400092f4: c2 04 20 58 ld [ %l0 + 0x58 ], %g1 <== NOT EXECUTED _CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) executing->resource_count++; 400092f8: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 400092fc: 82 00 60 01 inc %g1 <== NOT EXECUTED 40009300: c2 20 a0 1c st %g1, [ %g2 + 0x1c ] <== NOT EXECUTED if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { 40009304: c2 04 20 58 ld [ %l0 + 0x58 ], %g1 <== NOT EXECUTED 40009308: 80 a0 60 03 cmp %g1, 3 <== NOT EXECUTED 4000930c: 22 80 00 03 be,a 40009318 <_Protected_heap_Resize_block+0xb8> <== NOT EXECUTED 40009310: c6 04 20 5c ld [ %l0 + 0x5c ], %g3 <== NOT EXECUTED _ISR_Enable( level ); 40009314: 30 80 00 2c b,a 400093c4 <_Protected_heap_Resize_block+0x164> <== NOT EXECUTED { Priority_Control ceiling; Priority_Control current; ceiling = the_mutex->Attributes.priority_ceiling; current = executing->current_priority; 40009318: c2 00 a0 14 ld [ %g2 + 0x14 ], %g1 <== NOT EXECUTED if ( current == ceiling ) { 4000931c: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 40009320: 12 80 00 03 bne 4000932c <_Protected_heap_Resize_block+0xcc> <== NOT EXECUTED 40009324: 01 00 00 00 nop <== NOT EXECUTED _ISR_Enable( level ); 40009328: 30 80 00 27 b,a 400093c4 <_Protected_heap_Resize_block+0x164> <== NOT EXECUTED return 0; } if ( current > ceiling ) { 4000932c: 08 80 00 10 bleu 4000936c <_Protected_heap_Resize_block+0x10c> <== NOT EXECUTED 40009330: 82 10 20 06 mov 6, %g1 <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 40009334: 05 10 00 67 sethi %hi(0x40019c00), %g2 <== NOT EXECUTED 40009338: c2 00 a2 a0 ld [ %g2 + 0x2a0 ], %g1 ! 40019ea0 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 4000933c: 82 00 60 01 inc %g1 <== NOT EXECUTED 40009340: c2 20 a2 a0 st %g1, [ %g2 + 0x2a0 ] <== NOT EXECUTED _Thread_Disable_dispatch(); _ISR_Enable( level ); 40009344: 7f ff e2 df call 40001ec0 <== NOT EXECUTED 40009348: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED _Thread_Change_priority( 4000934c: d2 04 20 5c ld [ %l0 + 0x5c ], %o1 <== NOT EXECUTED 40009350: d0 04 20 6c ld [ %l0 + 0x6c ], %o0 <== NOT EXECUTED 40009354: 40 00 00 4c call 40009484 <_Thread_Change_priority> <== NOT EXECUTED 40009358: 94 10 20 00 clr %o2 <== NOT EXECUTED the_mutex->holder, the_mutex->Attributes.priority_ceiling, FALSE ); _Thread_Enable_dispatch(); 4000935c: 7f ff ff b4 call 4000922c <_Thread_Enable_dispatch> <== NOT EXECUTED 40009360: 01 00 00 00 nop <== NOT EXECUTED status = _Heap_Resize_block( 40009364: 10 80 00 32 b 4000942c <_Protected_heap_Resize_block+0x1cc> <== NOT EXECUTED 40009368: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED return 0; } /* if ( current < ceiling ) */ { executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED; 4000936c: c2 20 a0 34 st %g1, [ %g2 + 0x34 ] <== NOT EXECUTED the_mutex->lock = CORE_MUTEX_UNLOCKED; 40009370: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED the_mutex->nest_count = 0; /* undo locking above */ 40009374: c0 24 20 64 clr [ %l0 + 0x64 ] <== NOT EXECUTED _Thread_Enable_dispatch(); return 0; } /* if ( current < ceiling ) */ { executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED; the_mutex->lock = CORE_MUTEX_UNLOCKED; 40009378: c2 24 20 60 st %g1, [ %l0 + 0x60 ] <== NOT EXECUTED the_mutex->nest_count = 0; /* undo locking above */ executing->resource_count--; /* undo locking above */ 4000937c: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 40009380: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 40009384: c2 20 a0 1c st %g1, [ %g2 + 0x1c ] <== NOT EXECUTED _ISR_Enable( level ); 40009388: 30 80 00 0f b,a 400093c4 <_Protected_heap_Resize_block+0x164> <== 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 ) ) { 4000938c: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 40009390: 32 80 00 13 bne,a 400093dc <_Protected_heap_Resize_block+0x17c> <== NOT EXECUTED 40009394: 21 10 00 67 sethi %hi(0x40019c00), %l0 <== NOT EXECUTED switch ( the_mutex->Attributes.lock_nesting_behavior ) { 40009398: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 ! 40019c50 <== NOT EXECUTED 4000939c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 400093a0: 22 80 00 07 be,a 400093bc <_Protected_heap_Resize_block+0x15c> <== NOT EXECUTED 400093a4: c2 04 20 64 ld [ %l0 + 0x64 ], %g1 <== NOT EXECUTED 400093a8: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 400093ac: 12 80 00 0c bne 400093dc <_Protected_heap_Resize_block+0x17c> <== NOT EXECUTED 400093b0: 21 10 00 67 sethi %hi(0x40019c00), %l0 <== NOT EXECUTED case CORE_MUTEX_NESTING_ACQUIRES: the_mutex->nest_count++; _ISR_Enable( level ); return 0; case CORE_MUTEX_NESTING_IS_ERROR: executing->Wait.return_code = CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED; 400093b4: 10 80 00 08 b 400093d4 <_Protected_heap_Resize_block+0x174> <== NOT EXECUTED 400093b8: 82 10 20 02 mov 2, %g1 <== NOT EXECUTED * to nest access. */ if ( _Thread_Is_executing( the_mutex->holder ) ) { switch ( the_mutex->Attributes.lock_nesting_behavior ) { case CORE_MUTEX_NESTING_ACQUIRES: the_mutex->nest_count++; 400093bc: 82 00 60 01 inc %g1 <== NOT EXECUTED 400093c0: c2 24 20 64 st %g1, [ %l0 + 0x64 ] <== NOT EXECUTED _ISR_Enable( level ); 400093c4: 7f ff e2 bf call 40001ec0 <== NOT EXECUTED 400093c8: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 400093cc: 10 80 00 18 b 4000942c <_Protected_heap_Resize_block+0x1cc> <== NOT EXECUTED 400093d0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED return 0; case CORE_MUTEX_NESTING_IS_ERROR: executing->Wait.return_code = CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED; 400093d4: c2 20 a0 34 st %g1, [ %g2 + 0x34 ] <== NOT EXECUTED _ISR_Enable( level ); 400093d8: 30 bf ff fb b,a 400093c4 <_Protected_heap_Resize_block+0x164> <== NOT EXECUTED { Heap_Resize_status status; uint32_t old_mem_size; uint32_t avail_mem_size; _RTEMS_Lock_allocator(); 400093dc: c6 04 23 74 ld [ %l0 + 0x374 ], %g3 <== NOT EXECUTED 400093e0: 03 10 00 67 sethi %hi(0x40019c00), %g1 <== NOT EXECUTED 400093e4: da 00 e0 08 ld [ %g3 + 8 ], %o5 <== NOT EXECUTED 400093e8: c8 00 63 7c ld [ %g1 + 0x37c ], %g4 <== NOT EXECUTED 400093ec: 05 10 00 67 sethi %hi(0x40019c00), %g2 <== NOT EXECUTED 400093f0: c2 00 a2 a0 ld [ %g2 + 0x2a0 ], %g1 ! 40019ea0 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 400093f4: da 21 20 20 st %o5, [ %g4 + 0x20 ] <== NOT EXECUTED 400093f8: 82 00 60 01 inc %g1 <== NOT EXECUTED 400093fc: c2 20 a2 a0 st %g1, [ %g2 + 0x2a0 ] <== NOT EXECUTED 40009400: 82 00 e0 10 add %g3, 0x10, %g1 <== NOT EXECUTED 40009404: c2 21 20 44 st %g1, [ %g4 + 0x44 ] <== NOT EXECUTED 40009408: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 4000940c: c2 20 e0 40 st %g1, [ %g3 + 0x40 ] <== NOT EXECUTED 40009410: 7f ff e2 ac call 40001ec0 <== NOT EXECUTED 40009414: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 40009418: d0 04 23 74 ld [ %l0 + 0x374 ], %o0 <== NOT EXECUTED 4000941c: 92 10 20 00 clr %o1 <== NOT EXECUTED 40009420: 7f ff f8 c6 call 40007738 <_CORE_mutex_Seize_interrupt_blocking> <== NOT EXECUTED 40009424: 90 02 20 10 add %o0, 0x10, %o0 <== NOT EXECUTED status = _Heap_Resize_block( 40009428: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED 4000942c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 40009430: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED 40009434: 96 07 bf f4 add %fp, -12, %o3 <== NOT EXECUTED 40009438: 40 00 0f 58 call 4000d198 <_Heap_Resize_block> <== NOT EXECUTED 4000943c: 98 07 bf f0 add %fp, -16, %o4 <== NOT EXECUTED 40009440: 05 10 00 67 sethi %hi(0x40019c00), %g2 <== NOT EXECUTED 40009444: c2 00 a2 a0 ld [ %g2 + 0x2a0 ], %g1 ! 40019ea0 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 40009448: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED 4000944c: 82 00 60 01 inc %g1 <== NOT EXECUTED 40009450: c2 20 a2 a0 st %g1, [ %g2 + 0x2a0 ] <== NOT EXECUTED the_heap, starting_address, size, &old_mem_size, &avail_mem_size ); _RTEMS_Unlock_allocator(); 40009454: 03 10 00 67 sethi %hi(0x40019c00), %g1 <== NOT EXECUTED 40009458: d0 00 63 74 ld [ %g1 + 0x374 ], %o0 ! 40019f74 <_RTEMS_Allocator_Mutex> <== NOT EXECUTED 4000945c: 94 10 20 00 clr %o2 <== NOT EXECUTED 40009460: d2 02 20 08 ld [ %o0 + 8 ], %o1 <== NOT EXECUTED 40009464: 7f ff f8 d7 call 400077c0 <_CORE_mutex_Surrender> <== NOT EXECUTED 40009468: 90 02 20 10 add %o0, 0x10, %o0 <== NOT EXECUTED 4000946c: 7f ff ff 70 call 4000922c <_Thread_Enable_dispatch> <== NOT EXECUTED 40009470: 01 00 00 00 nop <== NOT EXECUTED return (status == HEAP_RESIZE_SUCCESSFUL); } 40009474: 80 a0 00 10 cmp %g0, %l0 <== NOT EXECUTED 40009478: b0 60 3f ff subx %g0, -1, %i0 <== NOT EXECUTED 4000947c: 81 c7 e0 08 ret <== NOT EXECUTED 40009480: 81 e8 00 00 restore <== NOT EXECUTED 4000ce78 <_RTEMS_tasks_Delete_extension>: User_extensions_routine _RTEMS_tasks_Delete_extension( Thread_Control *executing, Thread_Control *deleted ) { 4000ce78: 9d e3 bf 98 save %sp, -104, %sp /* * Free per task variable memory */ tvp = deleted->task_variables; 4000ce7c: e0 06 61 7c ld [ %i1 + 0x17c ], %l0 deleted->task_variables = NULL; while (tvp) { next = (rtems_task_variable_t *)tvp->next; if (_Thread_Is_executing(deleted)) { 4000ce80: 25 10 00 67 sethi %hi(0x40019c00), %l2 /* * Free per task variable memory */ tvp = deleted->task_variables; deleted->task_variables = NULL; 4000ce84: 10 80 00 18 b 4000cee4 <_RTEMS_tasks_Delete_extension+0x6c> 4000ce88: c0 26 61 7c clr [ %i1 + 0x17c ] 4000ce8c: c4 04 20 10 ld [ %l0 + 0x10 ], %g2 <== NOT EXECUTED while (tvp) { next = (rtems_task_variable_t *)tvp->next; if (_Thread_Is_executing(deleted)) { 4000ce90: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED 4000ce94: 12 80 00 0c bne 4000cec4 <_RTEMS_tasks_Delete_extension+0x4c> <== NOT EXECUTED 4000ce98: e2 04 00 00 ld [ %l0 ], %l1 <== NOT EXECUTED if (tvp->dtor) 4000ce9c: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 4000cea0: 22 80 00 06 be,a 4000ceb8 <_RTEMS_tasks_Delete_extension+0x40> <== NOT EXECUTED 4000cea4: c4 04 20 04 ld [ %l0 + 4 ], %g2 <== NOT EXECUTED (*tvp->dtor)(*tvp->ptr); 4000cea8: c2 04 20 04 ld [ %l0 + 4 ], %g1 <== NOT EXECUTED 4000ceac: 9f c0 80 00 call %g2 <== NOT EXECUTED 4000ceb0: d0 00 40 00 ld [ %g1 ], %o0 <== NOT EXECUTED *tvp->ptr = tvp->gval; 4000ceb4: c4 04 20 04 ld [ %l0 + 4 ], %g2 <== NOT EXECUTED 4000ceb8: c2 04 20 08 ld [ %l0 + 8 ], %g1 <== NOT EXECUTED 4000cebc: 10 80 00 07 b 4000ced8 <_RTEMS_tasks_Delete_extension+0x60> <== NOT EXECUTED 4000cec0: c2 20 80 00 st %g1, [ %g2 ] <== NOT EXECUTED } else { if (tvp->dtor) 4000cec4: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 4000cec8: 02 80 00 05 be 4000cedc <_RTEMS_tasks_Delete_extension+0x64> <== NOT EXECUTED 4000cecc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED (*tvp->dtor)(tvp->tval); 4000ced0: 9f c0 80 00 call %g2 <== NOT EXECUTED 4000ced4: d0 04 20 0c ld [ %l0 + 0xc ], %o0 <== NOT EXECUTED } _Workspace_Free( tvp ); 4000ced8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 4000cedc: 7f ff ff e0 call 4000ce5c <_Workspace_Free> <== NOT EXECUTED 4000cee0: a0 10 00 11 mov %l1, %l0 <== NOT EXECUTED * Free per task variable memory */ tvp = deleted->task_variables; deleted->task_variables = NULL; while (tvp) { 4000cee4: 80 a4 20 00 cmp %l0, 0 4000cee8: 12 bf ff e9 bne 4000ce8c <_RTEMS_tasks_Delete_extension+0x14> 4000ceec: c2 04 a3 7c ld [ %l2 + 0x37c ], %g1 /* * Free API specific memory */ (void) _Workspace_Free( deleted->API_Extensions[ THREAD_API_RTEMS ] ); 4000cef0: 7f ff ff db call 4000ce5c <_Workspace_Free> 4000cef4: d0 06 61 6c ld [ %i1 + 0x16c ], %o0 deleted->API_Extensions[ THREAD_API_RTEMS ] = NULL; 4000cef8: c0 26 61 6c clr [ %i1 + 0x16c ] } 4000cefc: 81 c7 e0 08 ret 4000cf00: 81 e8 00 00 restore 40006ebc <_RTEMS_tasks_Initialize_user_tasks_body>: * * Output parameters: NONE */ void _RTEMS_tasks_Initialize_user_tasks_body( void ) { 40006ebc: 9d e3 bf 90 save %sp, -112, %sp rtems_status_code return_value; rtems_initialization_tasks_table *user_tasks; rtems_api_configuration_table *api_configuration; api_configuration = _Configuration_Table->RTEMS_api_configuration; 40006ec0: 03 10 00 67 sethi %hi(0x40019c00), %g1 40006ec4: c2 00 63 60 ld [ %g1 + 0x360 ], %g1 ! 40019f60 <_Configuration_Table> 40006ec8: c2 00 60 2c ld [ %g1 + 0x2c ], %g1 /* * NOTE: This is slightly different from the Ada implementation. */ user_tasks = api_configuration->User_initialization_tasks_table; 40006ecc: d0 00 60 28 ld [ %g1 + 0x28 ], %o0 maximum = api_configuration->number_of_initialization_tasks; if ( !user_tasks || maximum == 0 ) 40006ed0: 80 a2 20 00 cmp %o0, 0 40006ed4: 02 80 00 25 be 40006f68 <_RTEMS_tasks_Initialize_user_tasks_body+0xac> 40006ed8: e4 00 60 24 ld [ %g1 + 0x24 ], %l2 40006edc: 80 a4 a0 00 cmp %l2, 0 40006ee0: 02 80 00 22 be 40006f68 <_RTEMS_tasks_Initialize_user_tasks_body+0xac> 40006ee4: a0 10 00 08 mov %o0, %l0 return; 40006ee8: a2 10 20 00 clr %l1 for ( index=0 ; index < maximum ; index++ ) { return_value = rtems_task_create( 40006eec: 10 80 00 1c b 40006f5c <_RTEMS_tasks_Initialize_user_tasks_body+0xa0> 40006ef0: a6 07 bf f4 add %fp, -12, %l3 40006ef4: d6 04 20 14 ld [ %l0 + 0x14 ], %o3 40006ef8: d8 04 20 0c ld [ %l0 + 0xc ], %o4 40006efc: d2 04 20 08 ld [ %l0 + 8 ], %o1 40006f00: d4 04 20 04 ld [ %l0 + 4 ], %o2 40006f04: d0 04 00 00 ld [ %l0 ], %o0 40006f08: 7f ff ff 34 call 40006bd8 40006f0c: a2 04 60 01 inc %l1 user_tasks[ index ].mode_set, user_tasks[ index ].attribute_set, &id ); if ( !rtems_is_status_successful( return_value ) ) 40006f10: 80 a2 20 00 cmp %o0, 0 40006f14: 22 80 00 07 be,a 40006f30 <_RTEMS_tasks_Initialize_user_tasks_body+0x74> 40006f18: d2 04 20 10 ld [ %l0 + 0x10 ], %o1 _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, TRUE, return_value ); 40006f1c: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED 40006f20: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 40006f24: 40 00 04 1f call 40007fa0 <_Internal_error_Occurred> <== NOT EXECUTED 40006f28: 90 10 20 01 mov 1, %o0 <== NOT EXECUTED return_value = rtems_task_start( 40006f2c: d2 04 20 10 ld [ %l0 + 0x10 ], %o1 <== NOT EXECUTED 40006f30: d4 04 20 18 ld [ %l0 + 0x18 ], %o2 40006f34: d0 07 bf f4 ld [ %fp + -12 ], %o0 40006f38: 40 00 00 1b call 40006fa4 40006f3c: a0 04 20 1c add %l0, 0x1c, %l0 id, user_tasks[ index ].entry_point, user_tasks[ index ].argument ); if ( !rtems_is_status_successful( return_value ) ) 40006f40: 80 a2 20 00 cmp %o0, 0 40006f44: 02 80 00 07 be 40006f60 <_RTEMS_tasks_Initialize_user_tasks_body+0xa4> 40006f48: 80 a4 40 12 cmp %l1, %l2 _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, TRUE, return_value ); 40006f4c: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED 40006f50: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 40006f54: 40 00 04 13 call 40007fa0 <_Internal_error_Occurred> <== NOT EXECUTED 40006f58: 90 10 20 01 mov 1, %o0 <== NOT EXECUTED maximum = api_configuration->number_of_initialization_tasks; if ( !user_tasks || maximum == 0 ) return; for ( index=0 ; index < maximum ; index++ ) { 40006f5c: 80 a4 40 12 cmp %l1, %l2 40006f60: 12 bf ff e5 bne 40006ef4 <_RTEMS_tasks_Initialize_user_tasks_body+0x38> 40006f64: 9a 10 00 13 mov %l3, %o5 40006f68: 81 c7 e0 08 ret 40006f6c: 81 e8 00 00 restore 40007acc <_Rate_monotonic_Timeout>: void _Rate_monotonic_Timeout( Objects_Id id, void *ignored ) { 40007acc: 9d e3 bf 90 save %sp, -112, %sp 40007ad0: 11 10 00 78 sethi %hi(0x4001e000), %o0 40007ad4: 92 10 00 18 mov %i0, %o1 40007ad8: 90 12 23 fc or %o0, 0x3fc, %o0 40007adc: 40 00 09 38 call 40009fbc <_Objects_Get> 40007ae0: 94 07 bf f4 add %fp, -12, %o2 * 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 ) { 40007ae4: c2 07 bf f4 ld [ %fp + -12 ], %g1 40007ae8: 80 a0 60 00 cmp %g1, 0 40007aec: 12 80 00 20 bne 40007b6c <_Rate_monotonic_Timeout+0xa0> 40007af0: b0 10 00 08 mov %o0, %i0 case OBJECTS_REMOTE: /* impossible */ case OBJECTS_ERROR: break; case OBJECTS_LOCAL: the_thread = the_period->owner; 40007af4: d0 02 20 50 ld [ %o0 + 0x50 ], %o0 if ( _States_Is_waiting_for_period( the_thread->current_state ) && 40007af8: 03 00 00 10 sethi %hi(0x4000), %g1 40007afc: c4 02 20 10 ld [ %o0 + 0x10 ], %g2 40007b00: 80 88 80 01 btst %g2, %g1 40007b04: 22 80 00 0c be,a 40007b34 <_Rate_monotonic_Timeout+0x68> 40007b08: c2 06 20 38 ld [ %i0 + 0x38 ], %g1 40007b0c: c4 02 20 20 ld [ %o0 + 0x20 ], %g2 40007b10: c2 06 20 08 ld [ %i0 + 8 ], %g1 40007b14: 80 a0 80 01 cmp %g2, %g1 40007b18: 32 80 00 07 bne,a 40007b34 <_Rate_monotonic_Timeout+0x68> 40007b1c: c2 06 20 38 ld [ %i0 + 0x38 ], %g1 <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 40007b20: 13 04 00 ff sethi %hi(0x1003fc00), %o1 40007b24: 40 00 0d 60 call 4000b0a4 <_Thread_Clear_state> 40007b28: 92 12 63 f8 or %o1, 0x3f8, %o1 ! 1003fff8 the_thread->Wait.id == the_period->Object.id ) { _Thread_Unblock( the_thread ); _Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length ); 40007b2c: 10 80 00 08 b 40007b4c <_Rate_monotonic_Timeout+0x80> 40007b30: d2 06 20 4c ld [ %i0 + 0x4c ], %o1 } else if ( the_period->state == RATE_MONOTONIC_OWNER_IS_BLOCKING ) { 40007b34: 80 a0 60 01 cmp %g1, 1 40007b38: 12 80 00 08 bne 40007b58 <_Rate_monotonic_Timeout+0x8c> 40007b3c: 82 10 20 04 mov 4, %g1 the_period->state = RATE_MONOTONIC_EXPIRED_WHILE_BLOCKING; _Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length ); 40007b40: d2 06 20 4c ld [ %i0 + 0x4c ], %o1 <== NOT EXECUTED the_thread->Wait.id == the_period->Object.id ) { _Thread_Unblock( the_thread ); _Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length ); } else if ( the_period->state == RATE_MONOTONIC_OWNER_IS_BLOCKING ) { the_period->state = RATE_MONOTONIC_EXPIRED_WHILE_BLOCKING; 40007b44: 82 10 20 03 mov 3, %g1 <== NOT EXECUTED 40007b48: c2 26 20 38 st %g1, [ %i0 + 0x38 ] <== NOT EXECUTED _Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length ); 40007b4c: 7f ff ff d8 call 40007aac <_Watchdog_Insert_ticks> 40007b50: 90 06 20 10 add %i0, 0x10, %o0 40007b54: 30 80 00 02 b,a 40007b5c <_Rate_monotonic_Timeout+0x90> } else the_period->state = RATE_MONOTONIC_EXPIRED; 40007b58: c2 26 20 38 st %g1, [ %i0 + 0x38 ] */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; 40007b5c: 05 10 00 79 sethi %hi(0x4001e400), %g2 40007b60: c2 00 a1 90 ld [ %g2 + 0x190 ], %g1 ! 4001e590 <_Thread_Dispatch_disable_level> 40007b64: 82 00 7f ff add %g1, -1, %g1 40007b68: c2 20 a1 90 st %g1, [ %g2 + 0x190 ] 40007b6c: 81 c7 e0 08 ret 40007b70: 81 e8 00 00 restore 400093a4 <_TOD_Set>: */ void _TOD_Set( const struct timespec *time ) { 400093a4: 9d e3 bf 98 save %sp, -104, %sp rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 400093a8: 03 10 00 98 sethi %hi(0x40026000), %g1 400093ac: c4 00 63 b0 ld [ %g1 + 0x3b0 ], %g2 ! 400263b0 <_Thread_Dispatch_disable_level> 400093b0: 84 00 a0 01 inc %g2 400093b4: c4 20 63 b0 st %g2, [ %g1 + 0x3b0 ] _Thread_Disable_dispatch(); _TOD_Deactivate(); if ( time->tv_sec < _TOD_Seconds_since_epoch ) 400093b8: 03 10 00 99 sethi %hi(0x40026400), %g1 400093bc: d2 06 00 00 ld [ %i0 ], %o1 400093c0: c2 00 60 68 ld [ %g1 + 0x68 ], %g1 400093c4: 80 a2 40 01 cmp %o1, %g1 400093c8: 36 80 00 05 bge,a 400093dc <_TOD_Set+0x38> 400093cc: 92 22 40 01 sub %o1, %g1, %o1 _Watchdog_Adjust_seconds( WATCHDOG_BACKWARD, 400093d0: 92 20 40 09 sub %g1, %o1, %o1 400093d4: 10 80 00 03 b 400093e0 <_TOD_Set+0x3c> 400093d8: 90 10 20 01 mov 1, %o0 _TOD_Seconds_since_epoch - time->tv_sec ); else _Watchdog_Adjust_seconds( WATCHDOG_FORWARD, 400093dc: 90 10 20 00 clr %o0 400093e0: 7f ff ff e9 call 40009384 <_Watchdog_Adjust_seconds> 400093e4: 01 00 00 00 nop time->tv_sec - _TOD_Seconds_since_epoch ); /* POSIX format TOD (timespec) */ _TOD_Now = *time; 400093e8: c4 06 00 00 ld [ %i0 ], %g2 400093ec: 03 10 00 99 sethi %hi(0x40026400), %g1 400093f0: c4 20 60 68 st %g2, [ %g1 + 0x68 ] ! 40026468 <_TOD_Now> 400093f4: c4 06 20 04 ld [ %i0 + 4 ], %g2 400093f8: 82 10 60 68 or %g1, 0x68, %g1 400093fc: c4 20 60 04 st %g2, [ %g1 + 4 ] _TOD_Is_set = TRUE; 40009400: 84 10 20 01 mov 1, %g2 40009404: 03 10 00 98 sethi %hi(0x40026000), %g1 40009408: c4 20 63 ec st %g2, [ %g1 + 0x3ec ] ! 400263ec <_TOD_Is_set> #if ( CPU_INLINE_ENABLE_DISPATCH == TRUE ) RTEMS_INLINE_ROUTINE void _Thread_Enable_dispatch() { RTEMS_COMPILER_MEMORY_BARRIER(); if ( (--_Thread_Dispatch_disable_level) == 0 ) 4000940c: 05 10 00 98 sethi %hi(0x40026000), %g2 40009410: c2 00 a3 b0 ld [ %g2 + 0x3b0 ], %g1 ! 400263b0 <_Thread_Dispatch_disable_level> 40009414: 82 00 7f ff add %g1, -1, %g1 40009418: c2 20 a3 b0 st %g1, [ %g2 + 0x3b0 ] 4000941c: c2 00 a3 b0 ld [ %g2 + 0x3b0 ], %g1 40009420: 80 a0 60 00 cmp %g1, 0 40009424: 12 80 00 04 bne 40009434 <_TOD_Set+0x90> 40009428: 01 00 00 00 nop _Thread_Dispatch(); 4000942c: 40 00 07 e1 call 4000b3b0 <_Thread_Dispatch> <== NOT EXECUTED 40009430: 81 e8 00 00 restore <== NOT EXECUTED 40009434: 81 c7 e0 08 ret 40009438: 81 e8 00 00 restore 400097c4 <_Thread_Create_idle>: */ const char *_Thread_Idle_name = "IDLE"; void _Thread_Create_idle( void ) { 400097c4: 9d e3 bf 80 save %sp, -128, %sp * This routine allocates an internal thread. */ RTEMS_INLINE_ROUTINE Thread_Control *_Thread_Internal_allocate( void ) { return (Thread_Control *) _Objects_Allocate( &_Thread_Internal_information ); 400097c8: 11 10 00 68 sethi %hi(0x4001a000), %o0 400097cc: 7f ff fa 22 call 40008054 <_Objects_Allocate> 400097d0: 90 12 20 30 or %o0, 0x30, %o0 ! 4001a030 <_Thread_Internal_information> idle = (void *) _CPU_Thread_Idle_body; #else idle = (void *) _Thread_Idle_body; #endif if ( _CPU_Table.idle_task ) 400097d4: 03 10 00 67 sethi %hi(0x40019c00), %g1 400097d8: c4 00 62 c0 ld [ %g1 + 0x2c0 ], %g2 ! 40019ec0 <_CPU_Table+0xc> * The entire workspace is zeroed during its initialization. Thus, all * fields not explicitly assigned were explicitly zeroed by * _Workspace_Initialization. */ _Thread_Idle = _Thread_Internal_allocate(); 400097dc: 03 10 00 68 sethi %hi(0x4001a000), %g1 400097e0: d0 20 60 88 st %o0, [ %g1 + 0x88 ] ! 4001a088 <_Thread_Idle> idle = (void *) _CPU_Thread_Idle_body; #else idle = (void *) _Thread_Idle_body; #endif if ( _CPU_Table.idle_task ) 400097e4: 80 a0 a0 00 cmp %g2, 0 400097e8: 03 10 00 26 sethi %hi(0x40009800), %g1 400097ec: 02 80 00 03 be 400097f8 <_Thread_Create_idle+0x34> 400097f0: b4 10 62 74 or %g1, 0x274, %i2 ! 40009a74 <_Thread_Idle_body> idle = _CPU_Table.idle_task; 400097f4: b4 10 00 02 mov %g2, %i2 <== NOT EXECUTED idle_task_stack_size = _CPU_Table.idle_task_stack_size; 400097f8: 03 10 00 67 sethi %hi(0x40019c00), %g1 400097fc: d6 00 62 c8 ld [ %g1 + 0x2c8 ], %o3 ! 40019ec8 <_CPU_Table+0x14> if ( idle_task_stack_size < STACK_MINIMUM_SIZE ) 40009800: 80 a2 ef ff cmp %o3, 0xfff 40009804: 28 80 00 02 bleu,a 4000980c <_Thread_Create_idle+0x48> 40009808: 17 00 00 04 sethi %hi(0x1000), %o3 idle_task_stack_size = STACK_MINIMUM_SIZE; _Thread_Initialize( 4000980c: 03 10 00 64 sethi %hi(0x40019000), %g1 40009810: c2 00 62 a8 ld [ %g1 + 0x2a8 ], %g1 ! 400192a8 <_Thread_Idle_name> 40009814: 92 10 00 08 mov %o0, %o1 40009818: c2 23 a0 6c st %g1, [ %sp + 0x6c ] 4000981c: 82 10 20 01 mov 1, %g1 40009820: c0 23 a0 60 clr [ %sp + 0x60 ] 40009824: c2 23 a0 5c st %g1, [ %sp + 0x5c ] 40009828: c0 23 a0 64 clr [ %sp + 0x64 ] 4000982c: c0 23 a0 68 clr [ %sp + 0x68 ] 40009830: 11 10 00 68 sethi %hi(0x4001a000), %o0 40009834: 94 10 20 00 clr %o2 40009838: 90 12 20 30 or %o0, 0x30, %o0 4000983c: 98 10 20 00 clr %o4 40009840: 40 00 00 8e call 40009a78 <_Thread_Initialize> 40009844: 9a 10 20 ff mov 0xff, %o5 /* * WARNING!!! This is necessary to "kick" start the system and * MUST be done before _Thread_Start is invoked. */ _Thread_Heir = 40009848: 03 10 00 68 sethi %hi(0x4001a000), %g1 4000984c: c4 00 60 88 ld [ %g1 + 0x88 ], %g2 ! 4001a088 <_Thread_Idle> 40009850: 03 10 00 67 sethi %hi(0x40019c00), %g1 40009854: c4 20 63 7c st %g2, [ %g1 + 0x37c ] ! 40019f7c <_Thread_Executing> 40009858: 03 10 00 67 sethi %hi(0x40019c00), %g1 _Thread_Executing = _Thread_Idle; _Thread_Start( 4000985c: b0 10 00 02 mov %g2, %i0 /* * WARNING!!! This is necessary to "kick" start the system and * MUST be done before _Thread_Start is invoked. */ _Thread_Heir = 40009860: c4 20 63 54 st %g2, [ %g1 + 0x354 ] _Thread_Executing = _Thread_Idle; _Thread_Start( 40009864: b2 10 20 00 clr %i1 40009868: b6 10 20 00 clr %i3 4000986c: 40 00 03 d8 call 4000a7cc <_Thread_Start> 40009870: 99 e8 20 00 restore %g0, 0, %o4 40009874: 01 00 00 00 nop 40009878 <_Thread_Delay_ended>: void _Thread_Delay_ended( Objects_Id id, void *ignored ) { 40009878: 9d e3 bf 90 save %sp, -112, %sp uint32_t the_api; uint32_t the_class; Objects_Information *information; Thread_Control *tp = (Thread_Control *) 0; if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ) { 4000987c: 92 96 20 00 orcc %i0, 0, %o1 40009880: 12 80 00 0a bne 400098a8 <_Thread_Delay_ended+0x30> 40009884: 83 32 60 18 srl %o1, 0x18, %g1 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 40009888: 03 10 00 67 sethi %hi(0x40019c00), %g1 <== NOT EXECUTED 4000988c: c4 00 62 a0 ld [ %g1 + 0x2a0 ], %g2 ! 40019ea0 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 40009890: 84 00 a0 01 inc %g2 <== NOT EXECUTED 40009894: c4 20 62 a0 st %g2, [ %g1 + 0x2a0 ] <== NOT EXECUTED Thread_Control *tp = (Thread_Control *) 0; if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ) { _Thread_Disable_dispatch(); *location = OBJECTS_LOCAL; tp = _Thread_Executing; 40009898: 03 10 00 67 sethi %hi(0x40019c00), %g1 <== NOT EXECUTED 4000989c: d0 00 63 7c ld [ %g1 + 0x37c ], %o0 ! 40019f7c <_Thread_Executing> <== 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; 400098a0: 10 80 00 19 b 40009904 <_Thread_Delay_ended+0x8c> <== NOT EXECUTED 400098a4: c0 27 bf f4 clr [ %fp + -12 ] <== 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); 400098a8: 84 08 60 07 and %g1, 7, %g2 tp = _Thread_Executing; goto done; } the_api = _Objects_Get_API( id ); if ( the_api && the_api > OBJECTS_APIS_LAST ) { 400098ac: 80 a0 a0 04 cmp %g2, 4 400098b0: 18 80 00 06 bgu 400098c8 <_Thread_Delay_ended+0x50> 400098b4: 82 10 20 02 mov 2, %g1 *location = OBJECTS_ERROR; goto done; } the_class = _Objects_Get_class( id ); if ( the_class != 1 ) { /* threads are always first class :) */ 400098b8: 83 32 60 1b srl %o1, 0x1b, %g1 400098bc: 80 a0 60 01 cmp %g1, 1 400098c0: 02 80 00 05 be 400098d4 <_Thread_Delay_ended+0x5c> 400098c4: 82 10 20 02 mov 2, %g1 *location = OBJECTS_ERROR; 400098c8: 90 10 20 00 clr %o0 <== NOT EXECUTED 400098cc: 10 80 00 0e b 40009904 <_Thread_Delay_ended+0x8c> <== NOT EXECUTED 400098d0: c2 27 bf f4 st %g1, [ %fp + -12 ] <== NOT EXECUTED goto done; } information = _Objects_Information_table[ the_api ][ the_class ]; 400098d4: 83 28 a0 02 sll %g2, 2, %g1 400098d8: 05 10 00 67 sethi %hi(0x40019c00), %g2 400098dc: 84 10 a2 00 or %g2, 0x200, %g2 ! 40019e00 <_Objects_Information_table> 400098e0: c2 00 80 01 ld [ %g2 + %g1 ], %g1 400098e4: d0 00 60 04 ld [ %g1 + 4 ], %o0 if ( !information ) { 400098e8: 80 a2 20 00 cmp %o0, 0 400098ec: 12 80 00 04 bne 400098fc <_Thread_Delay_ended+0x84> 400098f0: 82 10 20 02 mov 2, %g1 *location = OBJECTS_ERROR; 400098f4: 10 80 00 04 b 40009904 <_Thread_Delay_ended+0x8c> <== NOT EXECUTED 400098f8: c2 27 bf f4 st %g1, [ %fp + -12 ] <== NOT EXECUTED goto done; } tp = (Thread_Control *) _Objects_Get( information, id, location ); 400098fc: 7f ff fb 1a call 40008564 <_Objects_Get> 40009900: 94 07 bf f4 add %fp, -12, %o2 Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); switch ( location ) { 40009904: c2 07 bf f4 ld [ %fp + -12 ], %g1 40009908: 80 a0 60 00 cmp %g1, 0 4000990c: 12 80 00 08 bne 4000992c <_Thread_Delay_ended+0xb4> 40009910: 13 04 00 ff sethi %hi(0x1003fc00), %o1 RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 40009914: 7f ff ff 4e call 4000964c <_Thread_Clear_state> 40009918: 92 12 63 f8 or %o1, 0x3f8, %o1 ! 1003fff8 */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; 4000991c: 05 10 00 67 sethi %hi(0x40019c00), %g2 40009920: c2 00 a2 a0 ld [ %g2 + 0x2a0 ], %g1 ! 40019ea0 <_Thread_Dispatch_disable_level> 40009924: 82 00 7f ff add %g1, -1, %g1 40009928: c2 20 a2 a0 st %g1, [ %g2 + 0x2a0 ] 4000992c: 81 c7 e0 08 ret 40009930: 81 e8 00 00 restore 4000e1c8 <_Thread_Evaluate_mode>: boolean _Thread_Evaluate_mode( void ) { Thread_Control *executing; executing = _Thread_Executing; 4000e1c8: 03 10 00 67 sethi %hi(0x40019c00), %g1 4000e1cc: c4 00 63 7c ld [ %g1 + 0x37c ], %g2 ! 40019f7c <_Thread_Executing> if ( !_States_Is_ready( executing->current_state ) || 4000e1d0: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1 4000e1d4: 80 a0 60 00 cmp %g1, 0 4000e1d8: 32 80 00 0b bne,a 4000e204 <_Thread_Evaluate_mode+0x3c> 4000e1dc: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED 4000e1e0: 03 10 00 67 sethi %hi(0x40019c00), %g1 4000e1e4: c2 00 63 54 ld [ %g1 + 0x354 ], %g1 ! 40019f54 <_Thread_Heir> 4000e1e8: 80 a0 80 01 cmp %g2, %g1 4000e1ec: 02 80 00 0b be 4000e218 <_Thread_Evaluate_mode+0x50> 4000e1f0: 01 00 00 00 nop 4000e1f4: c2 00 a0 7c ld [ %g2 + 0x7c ], %g1 4000e1f8: 80 a0 60 00 cmp %g1, 0 4000e1fc: 02 80 00 07 be 4000e218 <_Thread_Evaluate_mode+0x50> 4000e200: 84 10 20 01 mov 1, %g2 ( !_Thread_Is_heir( executing ) && executing->is_preemptible ) ) { _Context_Switch_necessary = TRUE; 4000e204: 03 10 00 67 sethi %hi(0x40019c00), %g1 4000e208: 90 10 20 01 mov 1, %o0 4000e20c: c4 20 63 8c st %g2, [ %g1 + 0x38c ] 4000e210: 81 c3 e0 08 retl 4000e214: 01 00 00 00 nop return TRUE; } return FALSE; } 4000e218: 81 c3 e0 08 retl 4000e21c: 90 10 20 00 clr %o0 ! 0 4000e220 <_Thread_Handler>: * * Output parameters: NONE */ void _Thread_Handler( void ) { 4000e220: 9d e3 bf 98 save %sp, -104, %sp #endif #if defined(__USE__MAIN__) extern void _main(void); #endif executing = _Thread_Executing; 4000e224: 03 10 00 67 sethi %hi(0x40019c00), %g1 4000e228: f4 00 63 7c ld [ %g1 + 0x37c ], %i2 ! 40019f7c <_Thread_Executing> /* * Some CPUs need to tinker with the call frame or registers when the * thread actually begins to execute for the first time. This is a * hook point where the port gets a shot at doing whatever it requires. */ _Context_Initialization_at_thread_begin(); 4000e22c: 3f 10 00 38 sethi %hi(0x4000e000), %i7 4000e230: be 17 e2 20 or %i7, 0x220, %i7 ! 4000e220 <_Thread_Handler> * have to put level into a register for those cpu's that use * inline asm here */ level = executing->Start.isr_level; _ISR_Set_level(level); 4000e234: d0 06 a0 c4 ld [ %i2 + 0xc4 ], %o0 4000e238: 7f ff cf 22 call 40001ec0 4000e23c: 91 2a 20 08 sll %o0, 8, %o0 #if defined(__USE_INIT_FINI__) || defined(__USE__MAIN__) doneCons = doneConstructors; 4000e240: 05 10 00 67 sethi %hi(0x40019c00), %g2 doneConstructors = 1; 4000e244: 82 10 20 01 mov 1, %g1 level = executing->Start.isr_level; _ISR_Set_level(level); #if defined(__USE_INIT_FINI__) || defined(__USE__MAIN__) doneCons = doneConstructors; 4000e248: f2 08 a0 c0 ldub [ %g2 + 0xc0 ], %i1 * Take care that 'begin' extensions get to complete before * 'switch' extensions can run. This means must keep dispatch * disabled until all 'begin' extensions complete. */ _User_extensions_Thread_begin( executing ); 4000e24c: 90 10 00 1a mov %i2, %o0 4000e250: 7f ff f2 17 call 4000aaac <_User_extensions_Thread_begin> 4000e254: c2 28 a0 c0 stb %g1, [ %g2 + 0xc0 ] #if ( CPU_INLINE_ENABLE_DISPATCH == TRUE ) RTEMS_INLINE_ROUTINE void _Thread_Enable_dispatch() { RTEMS_COMPILER_MEMORY_BARRIER(); if ( (--_Thread_Dispatch_disable_level) == 0 ) 4000e258: 05 10 00 67 sethi %hi(0x40019c00), %g2 4000e25c: c2 00 a2 a0 ld [ %g2 + 0x2a0 ], %g1 ! 40019ea0 <_Thread_Dispatch_disable_level> 4000e260: 82 00 7f ff add %g1, -1, %g1 4000e264: c2 20 a2 a0 st %g1, [ %g2 + 0x2a0 ] 4000e268: c2 00 a2 a0 ld [ %g2 + 0x2a0 ], %g1 4000e26c: 80 a0 60 00 cmp %g1, 0 4000e270: 12 80 00 05 bne 4000e284 <_Thread_Handler+0x64> 4000e274: 83 2e 60 18 sll %i1, 0x18, %g1 _Thread_Dispatch(); 4000e278: 7f ff ed af call 40009934 <_Thread_Dispatch> 4000e27c: 01 00 00 00 nop /* * _init could be a weak symbol and we SHOULD test it but it isn't * in any configuration I know of and it generates a warning on every * RTEMS target configuration. --joel (12 May 2007) */ if (!doneCons) /* && (volatile void *)_init) */ 4000e280: 83 2e 60 18 sll %i1, 0x18, %g1 4000e284: 80 a0 60 00 cmp %g1, 0 4000e288: 32 80 00 05 bne,a 4000e29c <_Thread_Handler+0x7c> 4000e28c: c2 06 a0 ac ld [ %i2 + 0xac ], %g1 _init (); 4000e290: 40 00 2a 9e call 40018d08 <_init> 4000e294: 01 00 00 00 nop #if defined(__USE__MAIN__) if (!doneCons && _main) __main (); #endif switch ( executing->Start.prototype ) { 4000e298: c2 06 a0 ac ld [ %i2 + 0xac ], %g1 4000e29c: 80 a0 60 01 cmp %g1, 1 4000e2a0: 22 80 00 0d be,a 4000e2d4 <_Thread_Handler+0xb4> 4000e2a4: c2 06 a0 a8 ld [ %i2 + 0xa8 ], %g1 <== NOT EXECUTED 4000e2a8: 2a 80 00 09 bcs,a 4000e2cc <_Thread_Handler+0xac> 4000e2ac: c2 06 a0 a8 ld [ %i2 + 0xa8 ], %g1 4000e2b0: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 4000e2b4: 02 80 00 0d be 4000e2e8 <_Thread_Handler+0xc8> <== NOT EXECUTED 4000e2b8: 80 a0 60 03 cmp %g1, 3 <== NOT EXECUTED 4000e2bc: 12 80 00 14 bne 4000e30c <_Thread_Handler+0xec> <== NOT EXECUTED 4000e2c0: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED executing->Start.pointer_argument, executing->Start.numeric_argument ); break; case THREAD_START_BOTH_NUMERIC_FIRST: executing->Wait.return_argument = 4000e2c4: 10 80 00 0c b 4000e2f4 <_Thread_Handler+0xd4> <== NOT EXECUTED 4000e2c8: c2 06 a0 a8 ld [ %i2 + 0xa8 ], %g1 <== NOT EXECUTED __main (); #endif switch ( executing->Start.prototype ) { case THREAD_START_NUMERIC: executing->Wait.return_argument = 4000e2cc: 10 80 00 03 b 4000e2d8 <_Thread_Handler+0xb8> 4000e2d0: d0 06 a0 b4 ld [ %i2 + 0xb4 ], %o0 (*(Thread_Entry_numeric) executing->Start.entry_point)( executing->Start.numeric_argument ); break; case THREAD_START_POINTER: executing->Wait.return_argument = 4000e2d4: d0 06 a0 b0 ld [ %i2 + 0xb0 ], %o0 <== NOT EXECUTED 4000e2d8: 9f c0 40 00 call %g1 4000e2dc: 01 00 00 00 nop executing->Start.pointer_argument, executing->Start.numeric_argument ); break; case THREAD_START_BOTH_NUMERIC_FIRST: executing->Wait.return_argument = 4000e2e0: 10 80 00 0a b 4000e308 <_Thread_Handler+0xe8> 4000e2e4: d0 26 a0 28 st %o0, [ %i2 + 0x28 ] (*(Thread_Entry_pointer) executing->Start.entry_point)( executing->Start.pointer_argument ); break; case THREAD_START_BOTH_POINTER_FIRST: executing->Wait.return_argument = 4000e2e8: c2 06 a0 a8 ld [ %i2 + 0xa8 ], %g1 <== NOT EXECUTED 4000e2ec: 10 80 00 04 b 4000e2fc <_Thread_Handler+0xdc> <== NOT EXECUTED 4000e2f0: d0 1e a0 b0 ldd [ %i2 + 0xb0 ], %o0 <== NOT EXECUTED executing->Start.pointer_argument, executing->Start.numeric_argument ); break; case THREAD_START_BOTH_NUMERIC_FIRST: executing->Wait.return_argument = 4000e2f4: d0 06 a0 b4 ld [ %i2 + 0xb4 ], %o0 <== NOT EXECUTED 4000e2f8: d2 06 a0 b0 ld [ %i2 + 0xb0 ], %o1 <== NOT EXECUTED 4000e2fc: 9f c0 40 00 call %g1 <== NOT EXECUTED 4000e300: 01 00 00 00 nop <== NOT EXECUTED 4000e304: d0 26 a0 28 st %o0, [ %i2 + 0x28 ] <== NOT EXECUTED * was placed in return_argument. This assumed that if it returned * anything (which is not supporting in all APIs), then it would be * able to fit in a (void *). */ _User_extensions_Thread_exitted( executing ); 4000e308: 90 10 00 1a mov %i2, %o0 4000e30c: 7f ff f2 0b call 4000ab38 <_User_extensions_Thread_exitted> 4000e310: b0 10 20 00 clr %i0 _Internal_error_Occurred( 4000e314: b2 10 20 01 mov 1, %i1 4000e318: 7f ff e7 22 call 40007fa0 <_Internal_error_Occurred> 4000e31c: 95 e8 20 06 restore %g0, 6, %o2 4000e320: 01 00 00 00 nop 40009c34 <_Thread_Handler_initialization>: void _Thread_Handler_initialization( uint32_t ticks_per_timeslice, uint32_t maximum_extensions, uint32_t maximum_proxies ) { 40009c34: 9d e3 bf 90 save %sp, -112, %sp /* * BOTH stacks hooks must be set or both must be NULL. * Do not allow mixture. */ if ( !( ( _CPU_Table.stack_allocate_hook == 0 ) 40009c38: 03 10 00 67 sethi %hi(0x40019c00), %g1 40009c3c: 82 10 62 b4 or %g1, 0x2b4, %g1 ! 40019eb4 <_CPU_Table> 40009c40: c4 00 60 20 ld [ %g1 + 0x20 ], %g2 40009c44: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 40009c48: 80 a0 00 02 cmp %g0, %g2 40009c4c: 84 60 3f ff subx %g0, -1, %g2 40009c50: 80 a0 00 01 cmp %g0, %g1 40009c54: 82 60 3f ff subx %g0, -1, %g1 40009c58: 80 a0 80 01 cmp %g2, %g1 40009c5c: 02 80 00 07 be 40009c78 <_Thread_Handler_initialization+0x44> 40009c60: 03 10 00 67 sethi %hi(0x40019c00), %g1 == ( _CPU_Table.stack_free_hook == 0 ) ) ) _Internal_error_Occurred( 40009c64: 90 10 20 00 clr %o0 <== NOT EXECUTED 40009c68: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 40009c6c: 7f ff f8 cd call 40007fa0 <_Internal_error_Occurred> <== NOT EXECUTED 40009c70: 94 10 20 0f mov 0xf, %o2 <== NOT EXECUTED INTERNAL_ERROR_CORE, TRUE, INTERNAL_ERROR_BAD_STACK_HOOK ); _Context_Switch_necessary = FALSE; 40009c74: 03 10 00 67 sethi %hi(0x40019c00), %g1 <== NOT EXECUTED 40009c78: c0 20 63 8c clr [ %g1 + 0x38c ] ! 40019f8c <_Context_Switch_necessary> _Thread_Executing = NULL; 40009c7c: 03 10 00 67 sethi %hi(0x40019c00), %g1 40009c80: c0 20 63 7c clr [ %g1 + 0x37c ] ! 40019f7c <_Thread_Executing> _Thread_Heir = NULL; 40009c84: 03 10 00 67 sethi %hi(0x40019c00), %g1 40009c88: c0 20 63 54 clr [ %g1 + 0x354 ] ! 40019f54 <_Thread_Heir> #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) _Thread_Allocated_fp = NULL; #endif _Thread_Do_post_task_switch_extension = 0; 40009c8c: 03 10 00 67 sethi %hi(0x40019c00), %g1 40009c90: c0 20 63 6c clr [ %g1 + 0x36c ] ! 40019f6c <_Thread_Do_post_task_switch_extension> _Thread_Maximum_extensions = maximum_extensions; 40009c94: 03 10 00 67 sethi %hi(0x40019c00), %g1 40009c98: f2 20 63 68 st %i1, [ %g1 + 0x368 ] ! 40019f68 <_Thread_Maximum_extensions> _Thread_Ticks_per_timeslice = ticks_per_timeslice; 40009c9c: 03 10 00 67 sethi %hi(0x40019c00), %g1 _Thread_Ready_chain = (Chain_Control *) _Workspace_Allocate_or_fatal_error( 40009ca0: 90 10 2c 00 mov 0xc00, %o0 40009ca4: 40 00 04 ac call 4000af54 <_Workspace_Allocate_or_fatal_error> 40009ca8: f0 20 61 f8 st %i0, [ %g1 + 0x1f8 ] 40009cac: 03 10 00 67 sethi %hi(0x40019c00), %g1 40009cb0: 84 10 00 08 mov %o0, %g2 40009cb4: d0 20 61 f4 st %o0, [ %g1 + 0x1f4 ] (PRIORITY_MAXIMUM + 1) * sizeof(Chain_Control) ); for ( index=0; index <= PRIORITY_MAXIMUM ; index++ ) 40009cb8: 86 02 2c 00 add %o0, 0xc00, %g3 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 40009cbc: 82 00 a0 04 add %g2, 4, %g1 the_chain->permanent_null = NULL; 40009cc0: c0 20 a0 04 clr [ %g2 + 4 ] the_chain->last = _Chain_Head(the_chain); 40009cc4: c4 20 a0 08 st %g2, [ %g2 + 8 ] */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 40009cc8: c2 20 80 00 st %g1, [ %g2 ] the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 40009ccc: 84 00 a0 0c add %g2, 0xc, %g2 40009cd0: 80 a0 80 03 cmp %g2, %g3 40009cd4: 12 bf ff fb bne 40009cc0 <_Thread_Handler_initialization+0x8c> 40009cd8: 82 00 a0 04 add %g2, 4, %g1 /* * Initialize this class of objects. */ _Objects_Initialize_information( 40009cdc: 03 10 00 67 sethi %hi(0x40019c00), %g1 40009ce0: c2 00 63 a8 ld [ %g1 + 0x3a8 ], %g1 ! 40019fa8 <_System_state_Is_multiprocessing> 40009ce4: 96 10 20 02 mov 2, %o3 40009ce8: 80 a0 00 01 cmp %g0, %g1 40009cec: 82 10 20 08 mov 8, %g1 40009cf0: 96 42 ff ff addx %o3, -1, %o3 40009cf4: c2 23 a0 5c st %g1, [ %sp + 0x5c ] 40009cf8: 11 10 00 68 sethi %hi(0x4001a000), %o0 40009cfc: 92 10 20 01 mov 1, %o1 40009d00: 90 12 20 30 or %o0, 0x30, %o0 40009d04: 94 10 20 01 mov 1, %o2 40009d08: 98 10 21 80 mov 0x180, %o4 40009d0c: 7f ff fa 3b call 400085f8 <_Objects_Initialize_information> 40009d10: 9a 10 20 01 mov 1, %o5 FALSE, /* TRUE if this is a global object class */ NULL /* Proxy extraction support callout */ #endif ); } 40009d14: 81 c7 e0 08 ret 40009d18: 81 e8 00 00 restore 40009a78 <_Thread_Initialize>: Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, Objects_Name name ) { 40009a78: 9d e3 bf 98 save %sp, -104, %sp /* * Initialize the Ada self pointer */ the_thread->rtems_ada_self = NULL; 40009a7c: c0 26 60 80 clr [ %i1 + 0x80 ] /* * Allocate and Initialize the stack for this thread. */ if ( !stack_area ) { 40009a80: 80 a6 a0 00 cmp %i2, 0 40009a84: 12 80 00 10 bne 40009ac4 <_Thread_Initialize+0x4c> 40009a88: e0 07 a0 60 ld [ %fp + 0x60 ], %l0 if ( !_Stack_Is_enough( stack_size ) ) 40009a8c: 80 a6 ef ff cmp %i3, 0xfff 40009a90: 08 80 00 03 bleu 40009a9c <_Thread_Initialize+0x24> 40009a94: 13 00 00 04 sethi %hi(0x1000), %o1 40009a98: 92 10 00 1b mov %i3, %o1 actual_stack_size = STACK_MINIMUM_SIZE; else actual_stack_size = stack_size; actual_stack_size = _Thread_Stack_Allocate( the_thread, actual_stack_size ); 40009a9c: 40 00 03 13 call 4000a6e8 <_Thread_Stack_Allocate> 40009aa0: 90 10 00 19 mov %i1, %o0 if ( !actual_stack_size || actual_stack_size < stack_size ) 40009aa4: 80 a2 20 00 cmp %o0, 0 40009aa8: 02 80 00 1f be 40009b24 <_Thread_Initialize+0xac> 40009aac: 80 a2 00 1b cmp %o0, %i3 40009ab0: 0a 80 00 1d bcs 40009b24 <_Thread_Initialize+0xac> 40009ab4: 82 10 20 01 mov 1, %g1 return FALSE; /* stack allocation failed */ stack = the_thread->Start.stack; 40009ab8: f4 06 60 d8 ld [ %i1 + 0xd8 ], %i2 the_thread->Start.core_allocated_stack = TRUE; 40009abc: 10 80 00 04 b 40009acc <_Thread_Initialize+0x54> 40009ac0: c2 26 60 cc st %g1, [ %i1 + 0xcc ] } else { stack = stack_area; actual_stack_size = stack_size; the_thread->Start.core_allocated_stack = FALSE; 40009ac4: c0 26 60 cc clr [ %i1 + 0xcc ] <== NOT EXECUTED 40009ac8: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { 40009acc: 03 10 00 67 sethi %hi(0x40019c00), %g1 40009ad0: d2 00 63 68 ld [ %g1 + 0x368 ], %o1 ! 40019f68 <_Thread_Maximum_extensions> Stack_Control *the_stack, void *starting_address, size_t size ) { the_stack->area = starting_address; 40009ad4: f4 26 60 d4 st %i2, [ %i1 + 0xd4 ] the_stack->size = size; 40009ad8: d0 26 60 d0 st %o0, [ %i1 + 0xd0 ] Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 40009adc: c0 26 60 50 clr [ %i1 + 0x50 ] the_watchdog->routine = routine; 40009ae0: c0 26 60 64 clr [ %i1 + 0x64 ] the_watchdog->id = id; 40009ae4: c0 26 60 68 clr [ %i1 + 0x68 ] the_watchdog->user_data = user_data; 40009ae8: c0 26 60 6c clr [ %i1 + 0x6c ] /* * Clear the libc reent hook. */ the_thread->libc_reent = NULL; 40009aec: c0 26 61 68 clr [ %i1 + 0x168 ] /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { 40009af0: 80 a2 60 00 cmp %o1, 0 40009af4: 02 80 00 0e be 40009b2c <_Thread_Initialize+0xb4> 40009af8: b6 10 20 00 clr %i3 RTEMS_INLINE_ROUTINE void *_Workspace_Allocate( size_t size ) { return _Heap_Allocate( &_Workspace_Area, size ); 40009afc: 92 02 60 01 inc %o1 40009b00: 11 10 00 67 sethi %hi(0x40019c00), %o0 40009b04: 93 2a 60 02 sll %o1, 2, %o1 40009b08: 7f ff f7 fb call 40007af4 <_Heap_Allocate> 40009b0c: 90 12 22 ec or %o0, 0x2ec, %o0 extensions_area = _Workspace_Allocate( (_Thread_Maximum_extensions + 1) * sizeof( void * ) ); if ( !extensions_area ) { 40009b10: b6 92 20 00 orcc %o0, 0, %i3 40009b14: 12 80 00 07 bne 40009b30 <_Thread_Initialize+0xb8> 40009b18: 80 a6 e0 00 cmp %i3, 0 #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( fp_area ) (void) _Workspace_Free( fp_area ); #endif _Thread_Stack_Free( the_thread ); 40009b1c: 40 00 03 0a call 4000a744 <_Thread_Stack_Free> <== NOT EXECUTED 40009b20: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 40009b24: 81 c7 e0 08 ret 40009b28: 91 e8 20 00 restore %g0, 0, %o0 * create the extension long after tasks have been created * so they cannot rely on the thread create user extension * call. */ if ( the_thread->extensions ) { 40009b2c: 80 a6 e0 00 cmp %i3, 0 40009b30: 02 80 00 0d be 40009b64 <_Thread_Initialize+0xec> 40009b34: f6 26 61 78 st %i3, [ %i1 + 0x178 ] int i; for ( i = 0; i < (_Thread_Maximum_extensions + 1); i++ ) 40009b38: 03 10 00 67 sethi %hi(0x40019c00), %g1 40009b3c: c2 00 63 68 ld [ %g1 + 0x368 ], %g1 ! 40019f68 <_Thread_Maximum_extensions> 40009b40: 86 10 20 00 clr %g3 40009b44: 10 80 00 05 b 40009b58 <_Thread_Initialize+0xe0> 40009b48: 88 00 60 01 add %g1, 1, %g4 the_thread->extensions[i] = NULL; 40009b4c: 83 28 e0 02 sll %g3, 2, %g1 * call. */ if ( the_thread->extensions ) { int i; for ( i = 0; i < (_Thread_Maximum_extensions + 1); i++ ) 40009b50: 86 00 e0 01 inc %g3 the_thread->extensions[i] = NULL; 40009b54: c0 20 80 01 clr [ %g2 + %g1 ] * call. */ if ( the_thread->extensions ) { int i; for ( i = 0; i < (_Thread_Maximum_extensions + 1); i++ ) 40009b58: 80 a0 c0 04 cmp %g3, %g4 40009b5c: 32 bf ff fc bne,a 40009b4c <_Thread_Initialize+0xd4> 40009b60: c4 06 61 78 ld [ %i1 + 0x178 ], %g2 /* * General initialization */ the_thread->Start.is_preemptible = is_preemptible; 40009b64: c2 07 a0 5c ld [ %fp + 0x5c ], %g1 the_thread->Start.budget_algorithm = budget_algorithm; 40009b68: e0 26 60 bc st %l0, [ %i1 + 0xbc ] /* * General initialization */ the_thread->Start.is_preemptible = is_preemptible; 40009b6c: c2 26 60 b8 st %g1, [ %i1 + 0xb8 ] the_thread->Start.budget_algorithm = budget_algorithm; the_thread->Start.budget_callout = budget_callout; 40009b70: c2 07 a0 64 ld [ %fp + 0x64 ], %g1 switch ( budget_algorithm ) { 40009b74: 80 a4 20 02 cmp %l0, 2 40009b78: 12 80 00 05 bne 40009b8c <_Thread_Initialize+0x114> 40009b7c: c2 26 60 c0 st %g1, [ %i1 + 0xc0 ] case THREAD_CPU_BUDGET_ALGORITHM_NONE: case THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE: break; case THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE: the_thread->cpu_time_budget = _Thread_Ticks_per_timeslice; 40009b80: 03 10 00 67 sethi %hi(0x40019c00), %g1 <== NOT EXECUTED 40009b84: c2 00 61 f8 ld [ %g1 + 0x1f8 ], %g1 ! 40019df8 <_Thread_Ticks_per_timeslice> <== NOT EXECUTED 40009b88: c2 26 60 84 st %g1, [ %i1 + 0x84 ] <== NOT EXECUTED break; case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT: break; } the_thread->Start.isr_level = isr_level; 40009b8c: c2 07 a0 68 ld [ %fp + 0x68 ], %g1 the_thread->current_state = STATES_DORMANT; the_thread->Wait.queue = NULL; 40009b90: c0 26 60 44 clr [ %i1 + 0x44 ] break; case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT: break; } the_thread->Start.isr_level = isr_level; 40009b94: c2 26 60 c4 st %g1, [ %i1 + 0xc4 ] the_thread->current_state = STATES_DORMANT; 40009b98: 82 10 20 01 mov 1, %g1 the_thread->Wait.queue = NULL; the_thread->resource_count = 0; 40009b9c: c0 26 60 1c clr [ %i1 + 0x1c ] break; } the_thread->Start.isr_level = isr_level; the_thread->current_state = STATES_DORMANT; 40009ba0: c2 26 60 10 st %g1, [ %i1 + 0x10 ] the_thread->Wait.queue = NULL; the_thread->resource_count = 0; the_thread->suspend_count = 0; 40009ba4: c0 26 60 70 clr [ %i1 + 0x70 ] the_thread->real_priority = priority; 40009ba8: fa 26 60 18 st %i5, [ %i1 + 0x18 ] the_thread->Start.initial_priority = priority; 40009bac: fa 26 60 c8 st %i5, [ %i1 + 0xc8 ] _Thread_Set_priority( the_thread, priority ); 40009bb0: 92 10 00 1d mov %i5, %o1 40009bb4: 40 00 02 2c call 4000a464 <_Thread_Set_priority> 40009bb8: 90 10 00 19 mov %i1, %o0 ) { uint32_t index; index = _Objects_Get_index( the_object->id ); _Objects_Set_local_object( information, index, the_object ); 40009bbc: c4 06 60 08 ld [ %i1 + 8 ], %g2 Objects_Information *information, uint16_t index, Objects_Control *the_object ) { if ( index <= information->maximum ) 40009bc0: c6 16 20 10 lduh [ %i0 + 0x10 ], %g3 /* * Initialize the CPU usage statistics */ #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS the_thread->cpu_time_used.tv_sec = 0; 40009bc4: c0 26 60 90 clr [ %i1 + 0x90 ] 40009bc8: 03 00 00 3f sethi %hi(0xfc00), %g1 40009bcc: 82 10 63 ff or %g1, 0x3ff, %g1 ! ffff 40009bd0: 82 08 80 01 and %g2, %g1, %g1 40009bd4: 80 a0 40 03 cmp %g1, %g3 40009bd8: 18 80 00 05 bgu 40009bec <_Thread_Initialize+0x174> 40009bdc: c0 26 60 94 clr [ %i1 + 0x94 ] information->local_table[ index ] = the_object; 40009be0: c4 06 20 20 ld [ %i0 + 0x20 ], %g2 40009be4: 83 28 60 02 sll %g1, 2, %g1 40009be8: f2 20 80 01 st %i1, [ %g2 + %g1 ] if ( information->is_string ) /* _Objects_Copy_name_string( name, the_object->name ); */ the_object->name = name; else /* _Objects_Copy_name_raw( name, the_object->name, information->name_length ); */ the_object->name = name; 40009bec: c2 07 a0 6c ld [ %fp + 0x6c ], %g1 /* * Invoke create extensions */ if ( !_User_extensions_Thread_create( the_thread ) ) { 40009bf0: 90 10 00 19 mov %i1, %o0 40009bf4: c2 26 60 0c st %g1, [ %i1 + 0xc ] 40009bf8: 40 00 03 e1 call 4000ab7c <_User_extensions_Thread_create> 40009bfc: b0 10 20 01 mov 1, %i0 40009c00: 80 a2 20 00 cmp %o0, 0 40009c04: 12 80 00 0a bne 40009c2c <_Thread_Initialize+0x1b4> 40009c08: 80 a6 e0 00 cmp %i3, 0 if ( extensions_area ) 40009c0c: 02 80 00 05 be 40009c20 <_Thread_Initialize+0x1a8> 40009c10: 11 10 00 67 sethi %hi(0x40019c00), %o0 RTEMS_INLINE_ROUTINE boolean _Workspace_Free( void *block ) { return _Heap_Free( &_Workspace_Area, block ); 40009c14: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED 40009c18: 7f ff f7 de call 40007b90 <_Heap_Free> <== NOT EXECUTED 40009c1c: 90 12 22 ec or %o0, 0x2ec, %o0 <== NOT EXECUTED #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( fp_area ) (void) _Workspace_Free( fp_area ); #endif _Thread_Stack_Free( the_thread ); 40009c20: 90 10 00 19 mov %i1, %o0 40009c24: 40 00 02 c8 call 4000a744 <_Thread_Stack_Free> 40009c28: b0 10 20 00 clr %i0 return FALSE; } return TRUE; } 40009c2c: 81 c7 e0 08 ret 40009c30: 81 e8 00 00 restore 4000e708 <_Thread_Reset>: void _Thread_Reset( Thread_Control *the_thread, void *pointer_argument, uint32_t numeric_argument ) { 4000e708: 9d e3 bf 98 save %sp, -104, %sp the_thread->resource_count = 0; the_thread->suspend_count = 0; the_thread->is_preemptible = the_thread->Start.is_preemptible; 4000e70c: c2 06 20 b8 ld [ %i0 + 0xb8 ], %g1 the_thread->budget_algorithm = the_thread->Start.budget_algorithm; 4000e710: c4 06 20 bc ld [ %i0 + 0xbc ], %g2 the_thread->budget_callout = the_thread->Start.budget_callout; 4000e714: c6 06 20 c0 ld [ %i0 + 0xc0 ], %g3 uint32_t numeric_argument ) { the_thread->resource_count = 0; the_thread->suspend_count = 0; the_thread->is_preemptible = the_thread->Start.is_preemptible; 4000e718: c2 26 20 7c st %g1, [ %i0 + 0x7c ] the_thread->budget_algorithm = the_thread->Start.budget_algorithm; the_thread->budget_callout = the_thread->Start.budget_callout; 4000e71c: c4 3e 20 88 std %g2, [ %i0 + 0x88 ] the_thread->Start.pointer_argument = pointer_argument; 4000e720: f2 26 20 b0 st %i1, [ %i0 + 0xb0 ] the_thread->Start.numeric_argument = numeric_argument; 4000e724: f4 26 20 b4 st %i2, [ %i0 + 0xb4 ] Thread_Control *the_thread, void *pointer_argument, uint32_t numeric_argument ) { the_thread->resource_count = 0; 4000e728: c0 26 20 1c clr [ %i0 + 0x1c ] the_thread->suspend_count = 0; 4000e72c: c0 26 20 70 clr [ %i0 + 0x70 ] the_thread->budget_callout = the_thread->Start.budget_callout; the_thread->Start.pointer_argument = pointer_argument; the_thread->Start.numeric_argument = numeric_argument; if ( !_Thread_queue_Extract_with_proxy( the_thread ) ) { 4000e730: 7f ff f1 f4 call 4000af00 <_Thread_queue_Extract_with_proxy> 4000e734: 90 10 00 18 mov %i0, %o0 4000e738: 80 a2 20 00 cmp %o0, 0 4000e73c: 32 80 00 09 bne,a 4000e760 <_Thread_Reset+0x58> 4000e740: f2 06 20 c8 ld [ %i0 + 0xc8 ], %i1 if ( _Watchdog_Is_active( &the_thread->Timer ) ) 4000e744: c2 06 20 50 ld [ %i0 + 0x50 ], %g1 4000e748: 80 a0 60 02 cmp %g1, 2 4000e74c: 32 80 00 05 bne,a 4000e760 <_Thread_Reset+0x58> 4000e750: f2 06 20 c8 ld [ %i0 + 0xc8 ], %i1 (void) _Watchdog_Remove( &the_thread->Timer ); 4000e754: 7f ff f5 2c call 4000bc04 <_Watchdog_Remove> <== NOT EXECUTED 4000e758: 90 06 20 48 add %i0, 0x48, %o0 <== NOT EXECUTED } if ( the_thread->current_priority != the_thread->Start.initial_priority ) { 4000e75c: f2 06 20 c8 ld [ %i0 + 0xc8 ], %i1 <== NOT EXECUTED 4000e760: c2 06 20 14 ld [ %i0 + 0x14 ], %g1 4000e764: 80 a0 40 19 cmp %g1, %i1 4000e768: 02 80 00 05 be 4000e77c <_Thread_Reset+0x74> 4000e76c: 01 00 00 00 nop the_thread->real_priority = the_thread->Start.initial_priority; 4000e770: f2 26 20 18 st %i1, [ %i0 + 0x18 ] _Thread_Set_priority( the_thread, the_thread->Start.initial_priority ); 4000e774: 7f ff f2 a9 call 4000b218 <_Thread_Set_priority> 4000e778: 81 e8 00 00 restore 4000e77c: 81 c7 e0 08 ret 4000e780: 81 e8 00 00 restore 4000d8b8 <_Thread_Reset_timeslice>: * ready chain * select heir */ void _Thread_Reset_timeslice( void ) { 4000d8b8: 9d e3 bf 98 save %sp, -104, %sp ISR_Level level; Thread_Control *executing; Chain_Control *ready; executing = _Thread_Executing; 4000d8bc: 03 10 00 67 sethi %hi(0x40019c00), %g1 4000d8c0: e0 00 63 7c ld [ %g1 + 0x37c ], %l0 ! 40019f7c <_Thread_Executing> ready = executing->ready; _ISR_Disable( level ); 4000d8c4: 7f ff d1 7b call 40001eb0 4000d8c8: e2 04 20 98 ld [ %l0 + 0x98 ], %l1 4000d8cc: b0 10 00 08 mov %o0, %i0 if ( _Chain_Has_only_one_node( ready ) ) { 4000d8d0: c4 04 40 00 ld [ %l1 ], %g2 4000d8d4: c2 04 60 08 ld [ %l1 + 8 ], %g1 4000d8d8: 80 a0 80 01 cmp %g2, %g1 4000d8dc: 32 80 00 03 bne,a 4000d8e8 <_Thread_Reset_timeslice+0x30> 4000d8e0: c6 04 00 00 ld [ %l0 ], %g3 _ISR_Enable( level ); 4000d8e4: 30 80 00 18 b,a 4000d944 <_Thread_Reset_timeslice+0x8c> { Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; 4000d8e8: c4 04 20 04 ld [ %l0 + 4 ], %g2 Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 4000d8ec: 82 04 60 04 add %l1, 4, %g1 Chain_Node *previous; next = the_node->next; previous = the_node->previous; next->previous = previous; previous->next = next; 4000d8f0: c6 20 80 00 st %g3, [ %g2 ] Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 4000d8f4: c2 24 00 00 st %g1, [ %l0 ] Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; next->previous = previous; 4000d8f8: c4 20 e0 04 st %g2, [ %g3 + 4 ] ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); old_last_node = the_chain->last; 4000d8fc: c2 04 60 08 ld [ %l1 + 8 ], %g1 the_chain->last = the_node; 4000d900: e0 24 60 08 st %l0, [ %l1 + 8 ] old_last_node->next = the_node; the_node->previous = old_last_node; 4000d904: c2 24 20 04 st %g1, [ %l0 + 4 ] Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); old_last_node = the_chain->last; the_chain->last = the_node; old_last_node->next = the_node; 4000d908: e0 20 40 00 st %l0, [ %g1 ] return; } _Chain_Extract_unprotected( &executing->Object.Node ); _Chain_Append_unprotected( ready, &executing->Object.Node ); _ISR_Flash( level ); 4000d90c: 7f ff d1 6d call 40001ec0 4000d910: 01 00 00 00 nop 4000d914: 7f ff d1 67 call 40001eb0 4000d918: 01 00 00 00 nop if ( _Thread_Is_heir( executing ) ) 4000d91c: 05 10 00 67 sethi %hi(0x40019c00), %g2 4000d920: c2 00 a3 54 ld [ %g2 + 0x354 ], %g1 ! 40019f54 <_Thread_Heir> 4000d924: 80 a4 00 01 cmp %l0, %g1 4000d928: 32 80 00 05 bne,a 4000d93c <_Thread_Reset_timeslice+0x84> 4000d92c: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED _Thread_Heir = (Thread_Control *) ready->first; 4000d930: c2 04 40 00 ld [ %l1 ], %g1 4000d934: c2 20 a3 54 st %g1, [ %g2 + 0x354 ] _Context_Switch_necessary = TRUE; 4000d938: 84 10 20 01 mov 1, %g2 4000d93c: 03 10 00 67 sethi %hi(0x40019c00), %g1 4000d940: c4 20 63 8c st %g2, [ %g1 + 0x38c ] ! 40019f8c <_Context_Switch_necessary> _ISR_Enable( level ); 4000d944: 7f ff d1 5f call 40001ec0 4000d948: 81 e8 00 00 restore 4000d94c: 01 00 00 00 nop 4000bf38 <_Thread_Resume>: void _Thread_Resume( Thread_Control *the_thread, boolean force ) { 4000bf38: 9d e3 bf 98 save %sp, -104, %sp ISR_Level level; States_Control current_state; _ISR_Disable( level ); 4000bf3c: 7f ff db 26 call 40002bd4 4000bf40: 01 00 00 00 nop 4000bf44: a0 10 00 08 mov %o0, %l0 if ( force == TRUE ) 4000bf48: 80 a6 60 01 cmp %i1, 1 4000bf4c: 32 80 00 04 bne,a 4000bf5c <_Thread_Resume+0x24> 4000bf50: c2 06 20 70 ld [ %i0 + 0x70 ], %g1 <== NOT EXECUTED the_thread->suspend_count = 0; 4000bf54: 10 80 00 04 b 4000bf64 <_Thread_Resume+0x2c> 4000bf58: c0 26 20 70 clr [ %i0 + 0x70 ] else the_thread->suspend_count--; 4000bf5c: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 4000bf60: c2 26 20 70 st %g1, [ %i0 + 0x70 ] <== NOT EXECUTED if ( the_thread->suspend_count > 0 ) { 4000bf64: c2 06 20 70 ld [ %i0 + 0x70 ], %g1 4000bf68: 80 a0 60 00 cmp %g1, 0 4000bf6c: 22 80 00 03 be,a 4000bf78 <_Thread_Resume+0x40> 4000bf70: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 _ISR_Enable( level ); 4000bf74: 30 80 00 2e b,a 4000c02c <_Thread_Resume+0xf4> <== NOT EXECUTED return; } current_state = the_thread->current_state; if ( current_state & STATES_SUSPENDED ) { 4000bf78: 80 88 60 02 btst 2, %g1 4000bf7c: 02 80 00 2c be 4000c02c <_Thread_Resume+0xf4> 4000bf80: 82 08 7f fd and %g1, -3, %g1 current_state = the_thread->current_state = _States_Clear(STATES_SUSPENDED, current_state); if ( _States_Is_ready( current_state ) ) { 4000bf84: 80 a0 60 00 cmp %g1, 0 4000bf88: 12 80 00 29 bne 4000c02c <_Thread_Resume+0xf4> 4000bf8c: c2 26 20 10 st %g1, [ %i0 + 0x10 ] RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map ( Priority_Information *the_priority_map ) { *the_priority_map->minor |= the_priority_map->ready_minor; 4000bf90: c8 06 20 9c ld [ %i0 + 0x9c ], %g4 4000bf94: c4 16 20 a2 lduh [ %i0 + 0xa2 ], %g2 4000bf98: c2 11 00 00 lduh [ %g4 ], %g1 _Priority_Add_to_bit_map( &the_thread->Priority_map ); _Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node); 4000bf9c: c6 06 20 98 ld [ %i0 + 0x98 ], %g3 4000bfa0: 82 10 40 02 or %g1, %g2, %g1 4000bfa4: c2 31 00 00 sth %g1, [ %g4 ] Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 4000bfa8: 82 00 e0 04 add %g3, 4, %g1 _Priority_Major_bit_map |= the_priority_map->ready_major; 4000bfac: 09 10 00 99 sethi %hi(0x40026400), %g4 4000bfb0: c2 26 00 00 st %g1, [ %i0 ] 4000bfb4: da 16 20 a0 lduh [ %i0 + 0xa0 ], %o5 old_last_node = the_chain->last; 4000bfb8: c2 00 e0 08 ld [ %g3 + 8 ], %g1 4000bfbc: c4 11 20 80 lduh [ %g4 + 0x80 ], %g2 the_chain->last = the_node; 4000bfc0: f0 20 e0 08 st %i0, [ %g3 + 8 ] 4000bfc4: 84 10 80 0d or %g2, %o5, %g2 old_last_node->next = the_node; the_node->previous = old_last_node; 4000bfc8: c2 26 20 04 st %g1, [ %i0 + 4 ] 4000bfcc: c4 31 20 80 sth %g2, [ %g4 + 0x80 ] Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); old_last_node = the_chain->last; the_chain->last = the_node; old_last_node->next = the_node; 4000bfd0: f0 20 40 00 st %i0, [ %g1 ] _ISR_Flash( level ); 4000bfd4: 7f ff db 04 call 40002be4 4000bfd8: 90 10 00 10 mov %l0, %o0 4000bfdc: 7f ff da fe call 40002bd4 4000bfe0: 01 00 00 00 nop if ( the_thread->current_priority < _Thread_Heir->current_priority ) { 4000bfe4: 07 10 00 99 sethi %hi(0x40026400), %g3 4000bfe8: c2 00 e0 64 ld [ %g3 + 0x64 ], %g1 ! 40026464 <_Thread_Heir> 4000bfec: c4 06 20 14 ld [ %i0 + 0x14 ], %g2 4000bff0: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 4000bff4: 80 a0 80 01 cmp %g2, %g1 4000bff8: 1a 80 00 0d bcc 4000c02c <_Thread_Resume+0xf4> 4000bffc: 03 10 00 99 sethi %hi(0x40026400), %g1 _Thread_Heir = the_thread; if ( _Thread_Executing->is_preemptible || 4000c000: c2 00 60 8c ld [ %g1 + 0x8c ], %g1 ! 4002648c <_Thread_Executing> _Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node); _ISR_Flash( level ); if ( the_thread->current_priority < _Thread_Heir->current_priority ) { _Thread_Heir = the_thread; 4000c004: f0 20 e0 64 st %i0, [ %g3 + 0x64 ] if ( _Thread_Executing->is_preemptible || 4000c008: c2 00 60 7c ld [ %g1 + 0x7c ], %g1 4000c00c: 80 a0 60 00 cmp %g1, 0 4000c010: 32 80 00 05 bne,a 4000c024 <_Thread_Resume+0xec> 4000c014: 84 10 20 01 mov 1, %g2 4000c018: 80 a0 a0 00 cmp %g2, 0 4000c01c: 12 80 00 04 bne 4000c02c <_Thread_Resume+0xf4> 4000c020: 84 10 20 01 mov 1, %g2 the_thread->current_priority == 0 ) _Context_Switch_necessary = TRUE; 4000c024: 03 10 00 99 sethi %hi(0x40026400), %g1 4000c028: c4 20 60 9c st %g2, [ %g1 + 0x9c ] ! 4002649c <_Context_Switch_necessary> } } } _ISR_Enable( level ); 4000c02c: 7f ff da ee call 40002be4 4000c030: 91 e8 00 10 restore %g0, %l0, %o0 4000c034: 01 00 00 00 nop 4000a6e8 <_Thread_Stack_Allocate>: size_t _Thread_Stack_Allocate( Thread_Control *the_thread, size_t stack_size ) { 4000a6e8: 9d e3 bf 98 save %sp, -104, %sp void *stack_addr = 0; size_t the_stack_size = stack_size; if ( !_Stack_Is_enough( the_stack_size ) ) 4000a6ec: 80 a6 6f ff cmp %i1, 0xfff 4000a6f0: 28 80 00 02 bleu,a 4000a6f8 <_Thread_Stack_Allocate+0x10> 4000a6f4: 33 00 00 04 sethi %hi(0x1000), %i1 <== NOT EXECUTED * Call ONLY the CPU table stack allocate hook, _or_ the * the RTEMS workspace allocate. This is so the stack free * routine can call the correct deallocation routine. */ if ( _CPU_Table.stack_allocate_hook ) { 4000a6f8: 03 10 00 67 sethi %hi(0x40019c00), %g1 4000a6fc: c2 00 62 d4 ld [ %g1 + 0x2d4 ], %g1 ! 40019ed4 <_CPU_Table+0x20> 4000a700: 80 a0 60 00 cmp %g1, 0 4000a704: 02 80 00 06 be 4000a71c <_Thread_Stack_Allocate+0x34> 4000a708: 92 06 60 10 add %i1, 0x10, %o1 stack_addr = (*_CPU_Table.stack_allocate_hook)( the_stack_size ); 4000a70c: 9f c0 40 00 call %g1 <== NOT EXECUTED 4000a710: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED } if ( !stack_addr ) the_stack_size = 0; the_thread->Start.stack = stack_addr; 4000a714: 10 80 00 07 b 4000a730 <_Thread_Stack_Allocate+0x48> <== NOT EXECUTED 4000a718: d0 26 20 d8 st %o0, [ %i0 + 0xd8 ] <== NOT EXECUTED RTEMS_INLINE_ROUTINE void *_Workspace_Allocate( size_t size ) { return _Heap_Allocate( &_Workspace_Area, size ); 4000a71c: 11 10 00 67 sethi %hi(0x40019c00), %o0 4000a720: b2 10 00 09 mov %o1, %i1 4000a724: 7f ff f4 f4 call 40007af4 <_Heap_Allocate> 4000a728: 90 12 22 ec or %o0, 0x2ec, %o0 4000a72c: d0 26 20 d8 st %o0, [ %i0 + 0xd8 ] the_stack_size = _Stack_Adjust_size( the_stack_size ); stack_addr = _Workspace_Allocate( the_stack_size ); } if ( !stack_addr ) 4000a730: 80 a0 00 08 cmp %g0, %o0 4000a734: b0 60 20 00 subx %g0, 0, %i0 the_stack_size = 0; the_thread->Start.stack = stack_addr; return the_stack_size; } 4000a738: b0 0e 40 18 and %i1, %i0, %i0 4000a73c: 81 c7 e0 08 ret 4000a740: 81 e8 00 00 restore 4000a744 <_Thread_Stack_Free>: */ void _Thread_Stack_Free( Thread_Control *the_thread ) { 4000a744: 9d e3 bf 98 save %sp, -104, %sp /* * If the API provided the stack space, then don't free it. */ if ( !the_thread->Start.core_allocated_stack ) 4000a748: c2 06 20 cc ld [ %i0 + 0xcc ], %g1 4000a74c: 80 a0 60 00 cmp %g1, 0 4000a750: 02 80 00 08 be 4000a770 <_Thread_Stack_Free+0x2c> 4000a754: 03 10 00 67 sethi %hi(0x40019c00), %g1 * 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 ( _CPU_Table.stack_free_hook ) 4000a758: c2 00 62 d8 ld [ %g1 + 0x2d8 ], %g1 ! 40019ed8 <_CPU_Table+0x24> 4000a75c: 80 a0 60 00 cmp %g1, 0 4000a760: 02 80 00 06 be 4000a778 <_Thread_Stack_Free+0x34> 4000a764: d0 06 20 d4 ld [ %i0 + 0xd4 ], %o0 (*_CPU_Table.stack_free_hook)( the_thread->Start.Initial_stack.area ); 4000a768: 9f c0 40 00 call %g1 <== NOT EXECUTED 4000a76c: 01 00 00 00 nop <== NOT EXECUTED 4000a770: 81 c7 e0 08 ret <== NOT EXECUTED 4000a774: 81 e8 00 00 restore <== NOT EXECUTED RTEMS_INLINE_ROUTINE boolean _Workspace_Free( void *block ) { return _Heap_Free( &_Workspace_Area, block ); 4000a778: 31 10 00 67 sethi %hi(0x40019c00), %i0 4000a77c: b2 10 00 08 mov %o0, %i1 4000a780: 7f ff f5 04 call 40007b90 <_Heap_Free> 4000a784: 91 ee 22 ec restore %i0, 0x2ec, %o0 4000a788: 01 00 00 00 nop 4000a814 <_Thread_Tickle_timeslice>: * * Output parameters: NONE */ void _Thread_Tickle_timeslice( void ) { 4000a814: 9d e3 bf 98 save %sp, -104, %sp Thread_Control *executing; executing = _Thread_Executing; 4000a818: 03 10 00 67 sethi %hi(0x40019c00), %g1 4000a81c: e0 00 63 7c ld [ %g1 + 0x37c ], %l0 ! 40019f7c <_Thread_Executing> /* * If the thread is not preemptible or is not ready, then * just return. */ if ( !executing->is_preemptible ) 4000a820: c2 04 20 7c ld [ %l0 + 0x7c ], %g1 4000a824: 80 a0 60 00 cmp %g1, 0 4000a828: 02 80 00 23 be 4000a8b4 <_Thread_Tickle_timeslice+0xa0> 4000a82c: 01 00 00 00 nop return; if ( !_States_Is_ready( executing->current_state ) ) 4000a830: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 4000a834: 80 a0 60 00 cmp %g1, 0 4000a838: 12 80 00 1f bne 4000a8b4 <_Thread_Tickle_timeslice+0xa0> 4000a83c: 01 00 00 00 nop /* * The cpu budget algorithm determines what happens next. */ switch ( executing->budget_algorithm ) { 4000a840: c2 04 20 88 ld [ %l0 + 0x88 ], %g1 4000a844: 80 a0 60 01 cmp %g1, 1 4000a848: 0a 80 00 12 bcs 4000a890 <_Thread_Tickle_timeslice+0x7c> 4000a84c: 80 a0 60 02 cmp %g1, 2 4000a850: 28 80 00 07 bleu,a 4000a86c <_Thread_Tickle_timeslice+0x58> 4000a854: c2 04 20 84 ld [ %l0 + 0x84 ], %g1 4000a858: 80 a0 60 03 cmp %g1, 3 <== NOT EXECUTED 4000a85c: 12 80 00 16 bne 4000a8b4 <_Thread_Tickle_timeslice+0xa0> <== NOT EXECUTED 4000a860: 01 00 00 00 nop <== NOT EXECUTED executing->cpu_time_budget = _Thread_Ticks_per_timeslice; } break; case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT: if ( --executing->cpu_time_budget == 0 ) 4000a864: 10 80 00 0d b 4000a898 <_Thread_Tickle_timeslice+0x84> <== NOT EXECUTED 4000a868: c2 04 20 84 ld [ %l0 + 0x84 ], %g1 <== NOT EXECUTED case THREAD_CPU_BUDGET_ALGORITHM_NONE: break; case THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE: case THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE: if ( (int)(--executing->cpu_time_budget) <= 0 ) { 4000a86c: 82 00 7f ff add %g1, -1, %g1 4000a870: 80 a0 60 00 cmp %g1, 0 4000a874: 14 80 00 07 bg 4000a890 <_Thread_Tickle_timeslice+0x7c> 4000a878: c2 24 20 84 st %g1, [ %l0 + 0x84 ] _Thread_Reset_timeslice(); 4000a87c: 40 00 0c 0f call 4000d8b8 <_Thread_Reset_timeslice> 4000a880: 01 00 00 00 nop executing->cpu_time_budget = _Thread_Ticks_per_timeslice; 4000a884: 03 10 00 67 sethi %hi(0x40019c00), %g1 4000a888: c2 00 61 f8 ld [ %g1 + 0x1f8 ], %g1 ! 40019df8 <_Thread_Ticks_per_timeslice> 4000a88c: c2 24 20 84 st %g1, [ %l0 + 0x84 ] 4000a890: 81 c7 e0 08 ret 4000a894: 81 e8 00 00 restore } break; case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT: if ( --executing->cpu_time_budget == 0 ) 4000a898: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 4000a89c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000a8a0: 12 bf ff fc bne 4000a890 <_Thread_Tickle_timeslice+0x7c> <== NOT EXECUTED 4000a8a4: c2 24 20 84 st %g1, [ %l0 + 0x84 ] <== NOT EXECUTED (*executing->budget_callout)( executing ); 4000a8a8: c2 04 20 8c ld [ %l0 + 0x8c ], %g1 <== NOT EXECUTED 4000a8ac: 9f c0 40 00 call %g1 <== NOT EXECUTED 4000a8b0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED 4000a8b4: 81 c7 e0 08 ret 4000a8b8: 81 e8 00 00 restore 40009d1c <_Thread_queue_Dequeue>: Thread_queue_Control *the_thread_queue ) { Thread_Control *the_thread; switch ( the_thread_queue->discipline ) { 40009d1c: c2 02 20 34 ld [ %o0 + 0x34 ], %g1 40009d20: 80 a0 60 00 cmp %g1, 0 40009d24: 02 80 00 05 be 40009d38 <_Thread_queue_Dequeue+0x1c> 40009d28: 80 a0 60 01 cmp %g1, 1 40009d2c: 12 80 00 09 bne 40009d50 <_Thread_queue_Dequeue+0x34> 40009d30: 01 00 00 00 nop 40009d34: 30 80 00 04 b,a 40009d44 <_Thread_queue_Dequeue+0x28> case THREAD_QUEUE_DISCIPLINE_FIFO: the_thread = _Thread_queue_Dequeue_fifo( the_thread_queue ); 40009d38: 82 13 c0 00 mov %o7, %g1 40009d3c: 40 00 0d e9 call 4000d4e0 <_Thread_queue_Dequeue_fifo> 40009d40: 9e 10 40 00 mov %g1, %o7 break; case THREAD_QUEUE_DISCIPLINE_PRIORITY: the_thread = _Thread_queue_Dequeue_priority( the_thread_queue ); 40009d44: 82 13 c0 00 mov %o7, %g1 40009d48: 40 00 00 0a call 40009d70 <_Thread_queue_Dequeue_priority> 40009d4c: 9e 10 40 00 mov %g1, %o7 the_thread = NULL; break; } return( the_thread ); } 40009d50: 81 c3 e0 08 retl <== NOT EXECUTED 40009d54: 90 10 20 00 clr %o0 <== NOT EXECUTED 4000d4e0 <_Thread_queue_Dequeue_fifo>: */ Thread_Control *_Thread_queue_Dequeue_fifo( Thread_queue_Control *the_thread_queue ) { 4000d4e0: 9d e3 bf 98 save %sp, -104, %sp ISR_Level level; Thread_Control *the_thread; _ISR_Disable( level ); 4000d4e4: 7f ff d2 73 call 40001eb0 4000d4e8: a0 10 00 18 mov %i0, %l0 4000d4ec: 84 10 00 08 mov %o0, %g2 */ RTEMS_INLINE_ROUTINE boolean _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 4000d4f0: f0 06 00 00 ld [ %i0 ], %i0 if ( !_Chain_Is_empty( &the_thread_queue->Queues.Fifo ) ) { 4000d4f4: 82 04 20 04 add %l0, 4, %g1 4000d4f8: 80 a6 00 01 cmp %i0, %g1 4000d4fc: 22 80 00 16 be,a 4000d554 <_Thread_queue_Dequeue_fifo+0x74> 4000d500: c2 04 20 30 ld [ %l0 + 0x30 ], %g1 { Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; 4000d504: c2 06 00 00 ld [ %i0 ], %g1 the_chain->first = new_first; 4000d508: c2 24 00 00 st %g1, [ %l0 ] the_thread = (Thread_Control *) _Chain_Get_first_unprotected( &the_thread_queue->Queues.Fifo ); the_thread->Wait.queue = NULL; if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { 4000d50c: c4 06 20 50 ld [ %i0 + 0x50 ], %g2 new_first->previous = _Chain_Head(the_chain); 4000d510: e0 20 60 04 st %l0, [ %g1 + 4 ] 4000d514: 80 a0 a0 02 cmp %g2, 2 4000d518: 02 80 00 05 be 4000d52c <_Thread_queue_Dequeue_fifo+0x4c> 4000d51c: c0 26 20 44 clr [ %i0 + 0x44 ] _ISR_Enable( level ); 4000d520: 7f ff d2 68 call 40001ec0 4000d524: 01 00 00 00 nop 4000d528: 30 80 00 07 b,a 4000d544 <_Thread_queue_Dequeue_fifo+0x64> RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_REMOVE_IT; 4000d52c: 82 10 20 03 mov 3, %g1 ! 3 4000d530: c2 26 20 50 st %g1, [ %i0 + 0x50 ] _Thread_Unblock( the_thread ); } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); 4000d534: 7f ff d2 63 call 40001ec0 4000d538: 01 00 00 00 nop (void) _Watchdog_Remove( &the_thread->Timer ); 4000d53c: 7f ff f6 33 call 4000ae08 <_Watchdog_Remove> 4000d540: 90 06 20 48 add %i0, 0x48, %o0 _Thread_Unblock( the_thread ); 4000d544: 7f ff ff e1 call 4000d4c8 <_Thread_Unblock> 4000d548: 90 10 00 18 mov %i0, %o0 4000d54c: 81 c7 e0 08 ret 4000d550: 81 e8 00 00 restore #endif return the_thread; } switch ( the_thread_queue->sync_state ) { 4000d554: 80 a0 60 02 cmp %g1, 2 4000d558: 18 80 00 06 bgu 4000d570 <_Thread_queue_Dequeue_fifo+0x90> 4000d55c: 80 a0 60 03 cmp %g1, 3 4000d560: 80 a0 60 01 cmp %g1, 1 4000d564: 1a 80 00 0a bcc 4000d58c <_Thread_queue_Dequeue_fifo+0xac> 4000d568: 82 10 20 03 mov 3, %g1 4000d56c: 30 80 00 03 b,a 4000d578 <_Thread_queue_Dequeue_fifo+0x98> 4000d570: 12 bf ff f7 bne 4000d54c <_Thread_queue_Dequeue_fifo+0x6c> <== NOT EXECUTED 4000d574: b0 10 20 00 clr %i0 <== NOT EXECUTED case THREAD_QUEUE_SYNCHRONIZED: case THREAD_QUEUE_SATISFIED: _ISR_Enable( level ); 4000d578: b0 10 20 00 clr %i0 4000d57c: 7f ff d2 51 call 40001ec0 4000d580: 90 10 00 02 mov %g2, %o0 4000d584: 81 c7 e0 08 ret 4000d588: 81 e8 00 00 restore return NULL; case THREAD_QUEUE_NOTHING_HAPPENED: case THREAD_QUEUE_TIMEOUT: the_thread_queue->sync_state = THREAD_QUEUE_SATISFIED; 4000d58c: c2 24 20 30 st %g1, [ %l0 + 0x30 ] <== NOT EXECUTED _ISR_Enable( level ); 4000d590: 7f ff d2 4c call 40001ec0 <== NOT EXECUTED 4000d594: 01 00 00 00 nop <== NOT EXECUTED return _Thread_Executing; 4000d598: 03 10 00 67 sethi %hi(0x40019c00), %g1 <== NOT EXECUTED 4000d59c: f0 00 63 7c ld [ %g1 + 0x37c ], %i0 ! 40019f7c <_Thread_Executing> <== NOT EXECUTED } return NULL; /* this is only to prevent warnings */ } 4000d5a0: 81 c7 e0 08 ret <== NOT EXECUTED 4000d5a4: 81 e8 00 00 restore <== NOT EXECUTED 40009d70 <_Thread_queue_Dequeue_priority>: */ Thread_Control *_Thread_queue_Dequeue_priority( Thread_queue_Control *the_thread_queue ) { 40009d70: 9d e3 bf 98 save %sp, -104, %sp Chain_Node *new_second_node; Chain_Node *last_node; Chain_Node *next_node; Chain_Node *previous_node; _ISR_Disable( level ); 40009d74: 7f ff e0 4f call 40001eb0 40009d78: 01 00 00 00 nop 40009d7c: 98 10 00 08 mov %o0, %o4 40009d80: 86 10 20 00 clr %g3 40009d84: 88 10 20 00 clr %g4 */ RTEMS_INLINE_ROUTINE boolean _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 40009d88: d0 01 00 18 ld [ %g4 + %i0 ], %o0 for( index=0 ; index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ; index++ ) { if ( !_Chain_Is_empty( &the_thread_queue->Queues.Priority[ index ] ) ) { 40009d8c: 85 28 e0 02 sll %g3, 2, %g2 40009d90: 83 28 e0 04 sll %g3, 4, %g1 40009d94: 82 20 40 02 sub %g1, %g2, %g1 40009d98: 82 06 00 01 add %i0, %g1, %g1 40009d9c: 82 00 60 04 add %g1, 4, %g1 40009da0: 80 a2 00 01 cmp %o0, %g1 40009da4: 02 80 00 04 be 40009db4 <_Thread_queue_Dequeue_priority+0x44> 40009da8: 88 01 20 0c add %g4, 0xc, %g4 the_thread = (Thread_Control *) 40009dac: 10 80 00 1c b 40009e1c <_Thread_queue_Dequeue_priority+0xac> 40009db0: b0 10 00 08 mov %o0, %i0 Chain_Node *previous_node; _ISR_Disable( level ); for( index=0 ; index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ; index++ ) { 40009db4: 86 00 e0 01 inc %g3 Chain_Node *next_node; Chain_Node *previous_node; _ISR_Disable( level ); for( index=0 ; index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ; 40009db8: 80 a0 e0 04 cmp %g3, 4 40009dbc: 32 bf ff f4 bne,a 40009d8c <_Thread_queue_Dequeue_priority+0x1c> 40009dc0: d0 01 00 18 ld [ %g4 + %i0 ], %o0 the_thread_queue->Queues.Priority[ index ].first; goto dequeue; } } switch ( the_thread_queue->sync_state ) { 40009dc4: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 40009dc8: 80 a0 60 02 cmp %g1, 2 40009dcc: 18 80 00 06 bgu 40009de4 <_Thread_queue_Dequeue_priority+0x74> 40009dd0: 80 a0 60 03 cmp %g1, 3 40009dd4: 80 a0 60 01 cmp %g1, 1 40009dd8: 1a 80 00 0a bcc 40009e00 <_Thread_queue_Dequeue_priority+0x90> 40009ddc: 82 10 20 03 mov 3, %g1 40009de0: 30 80 00 03 b,a 40009dec <_Thread_queue_Dequeue_priority+0x7c> 40009de4: 12 80 00 0e bne 40009e1c <_Thread_queue_Dequeue_priority+0xac> <== NOT EXECUTED 40009de8: b0 10 20 00 clr %i0 <== NOT EXECUTED case THREAD_QUEUE_SYNCHRONIZED: case THREAD_QUEUE_SATISFIED: _ISR_Enable( level ); 40009dec: b0 10 20 00 clr %i0 40009df0: 7f ff e0 34 call 40001ec0 40009df4: 90 10 00 0c mov %o4, %o0 40009df8: 81 c7 e0 08 ret 40009dfc: 81 e8 00 00 restore return NULL; case THREAD_QUEUE_NOTHING_HAPPENED: case THREAD_QUEUE_TIMEOUT: the_thread_queue->sync_state = THREAD_QUEUE_SATISFIED; 40009e00: c2 26 20 30 st %g1, [ %i0 + 0x30 ] <== NOT EXECUTED _ISR_Enable( level ); 40009e04: 7f ff e0 2f call 40001ec0 <== NOT EXECUTED 40009e08: 90 10 00 0c mov %o4, %o0 <== NOT EXECUTED return _Thread_Executing; 40009e0c: 03 10 00 67 sethi %hi(0x40019c00), %g1 <== NOT EXECUTED 40009e10: f0 00 63 7c ld [ %g1 + 0x37c ], %i0 ! 40019f7c <_Thread_Executing> <== NOT EXECUTED 40009e14: 81 c7 e0 08 ret <== NOT EXECUTED 40009e18: 81 e8 00 00 restore <== NOT EXECUTED } dequeue: the_thread->Wait.queue = NULL; new_first_node = the_thread->Wait.Block2n.first; 40009e1c: c6 06 20 38 ld [ %i0 + 0x38 ], %g3 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 ) ) { 40009e20: 82 06 20 3c add %i0, 0x3c, %g1 _ISR_Enable( level ); return _Thread_Executing; } dequeue: the_thread->Wait.queue = NULL; 40009e24: c0 26 20 44 clr [ %i0 + 0x44 ] new_first_node = the_thread->Wait.Block2n.first; new_first_thread = (Thread_Control *) new_first_node; next_node = the_thread->Object.Node.next; previous_node = the_thread->Object.Node.previous; if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) { 40009e28: 80 a0 c0 01 cmp %g3, %g1 dequeue: the_thread->Wait.queue = NULL; new_first_node = the_thread->Wait.Block2n.first; new_first_thread = (Thread_Control *) new_first_node; next_node = the_thread->Object.Node.next; 40009e2c: c4 06 00 00 ld [ %i0 ], %g2 previous_node = the_thread->Object.Node.previous; if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) { 40009e30: 02 80 00 14 be 40009e80 <_Thread_queue_Dequeue_priority+0x110> 40009e34: c2 06 20 04 ld [ %i0 + 4 ], %g1 last_node = the_thread->Wait.Block2n.last; 40009e38: da 06 20 40 ld [ %i0 + 0x40 ], %o5 new_second_node = new_first_node->next; 40009e3c: c8 00 c0 00 ld [ %g3 ], %g4 previous_node->next = new_first_node; next_node->previous = new_first_node; 40009e40: c6 20 a0 04 st %g3, [ %g2 + 4 ] if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) { last_node = the_thread->Wait.Block2n.last; new_second_node = new_first_node->next; previous_node->next = new_first_node; 40009e44: c6 20 40 00 st %g3, [ %g1 ] next_node->previous = new_first_node; new_first_node->next = next_node; 40009e48: c4 20 c0 00 st %g2, [ %g3 ] new_first_node->previous = previous_node; 40009e4c: c2 20 e0 04 st %g1, [ %g3 + 4 ] if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) { 40009e50: c4 06 20 38 ld [ %i0 + 0x38 ], %g2 40009e54: c2 06 20 40 ld [ %i0 + 0x40 ], %g1 40009e58: 80 a0 80 01 cmp %g2, %g1 40009e5c: 22 80 00 0c be,a 40009e8c <_Thread_queue_Dequeue_priority+0x11c> 40009e60: c2 06 20 50 ld [ %i0 + 0x50 ], %g1 /* > two threads on 2-n */ new_second_node->previous = 40009e64: 82 00 e0 38 add %g3, 0x38, %g1 40009e68: c2 21 20 04 st %g1, [ %g4 + 4 ] _Chain_Head( &new_first_thread->Wait.Block2n ); new_first_thread->Wait.Block2n.first = new_second_node; 40009e6c: c8 20 e0 38 st %g4, [ %g3 + 0x38 ] new_first_thread->Wait.Block2n.last = last_node; 40009e70: da 20 e0 40 st %o5, [ %g3 + 0x40 ] last_node->next = _Chain_Tail( &new_first_thread->Wait.Block2n ); 40009e74: 82 00 e0 3c add %g3, 0x3c, %g1 40009e78: 10 80 00 04 b 40009e88 <_Thread_queue_Dequeue_priority+0x118> 40009e7c: c2 23 40 00 st %g1, [ %o5 ] } } else { previous_node->next = next_node; next_node->previous = previous_node; 40009e80: c2 20 a0 04 st %g1, [ %g2 + 4 ] new_first_thread->Wait.Block2n.last = last_node; last_node->next = _Chain_Tail( &new_first_thread->Wait.Block2n ); } } else { previous_node->next = next_node; 40009e84: c4 20 40 00 st %g2, [ %g1 ] next_node->previous = previous_node; } if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { 40009e88: c2 06 20 50 ld [ %i0 + 0x50 ], %g1 40009e8c: 80 a0 60 02 cmp %g1, 2 40009e90: 02 80 00 08 be 40009eb0 <_Thread_queue_Dequeue_priority+0x140> 40009e94: 82 10 20 03 mov 3, %g1 _ISR_Enable( level ); 40009e98: 7f ff e0 0a call 40001ec0 40009e9c: 90 10 00 0c mov %o4, %o0 _Thread_Unblock( the_thread ); 40009ea0: 7f ff ff ae call 40009d58 <_Thread_Unblock> 40009ea4: 90 10 00 18 mov %i0, %o0 40009ea8: 81 c7 e0 08 ret 40009eac: 81 e8 00 00 restore RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_REMOVE_IT; 40009eb0: c2 26 20 50 st %g1, [ %i0 + 0x50 ] } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); 40009eb4: 7f ff e0 03 call 40001ec0 40009eb8: 90 10 00 0c mov %o4, %o0 (void) _Watchdog_Remove( &the_thread->Timer ); 40009ebc: 40 00 03 d3 call 4000ae08 <_Watchdog_Remove> 40009ec0: 90 06 20 48 add %i0, 0x48, %o0 _Thread_Unblock( the_thread ); 40009ec4: 7f ff ff a5 call 40009d58 <_Thread_Unblock> 40009ec8: 90 10 00 18 mov %i0, %o0 #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif return( the_thread ); } 40009ecc: 81 c7 e0 08 ret 40009ed0: 81 e8 00 00 restore 4000d5a8 <_Thread_queue_Enqueue_fifo>: void _Thread_queue_Enqueue_fifo ( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) { 4000d5a8: 9d e3 bf 98 save %sp, -104, %sp ISR_Level level; Thread_queue_States sync_state; _ISR_Disable( level ); 4000d5ac: 7f ff d2 41 call 40001eb0 4000d5b0: a0 10 00 18 mov %i0, %l0 void _Thread_queue_Enqueue_fifo ( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) { 4000d5b4: b0 10 00 19 mov %i1, %i0 ISR_Level level; Thread_queue_States sync_state; _ISR_Disable( level ); sync_state = the_thread_queue->sync_state; 4000d5b8: c4 04 20 30 ld [ %l0 + 0x30 ], %g2 the_thread_queue->sync_state = THREAD_QUEUE_SYNCHRONIZED; switch ( sync_state ) { 4000d5bc: 80 a0 a0 02 cmp %g2, 2 4000d5c0: 02 80 00 10 be 4000d600 <_Thread_queue_Enqueue_fifo+0x58> 4000d5c4: c0 24 20 30 clr [ %l0 + 0x30 ] 4000d5c8: 80 a0 a0 03 cmp %g2, 3 4000d5cc: 02 80 00 12 be 4000d614 <_Thread_queue_Enqueue_fifo+0x6c> 4000d5d0: 80 a0 a0 01 cmp %g2, 1 4000d5d4: 32 80 00 1e bne,a 4000d64c <_Thread_queue_Enqueue_fifo+0xa4> 4000d5d8: 33 04 00 ff sethi %hi(0x1003fc00), %i1 <== NOT EXECUTED Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 4000d5dc: 82 04 20 04 add %l0, 4, %g1 4000d5e0: c2 26 40 00 st %g1, [ %i1 ] old_last_node = the_chain->last; 4000d5e4: c2 04 20 08 ld [ %l0 + 8 ], %g1 the_chain->last = the_node; 4000d5e8: f2 24 20 08 st %i1, [ %l0 + 8 ] case THREAD_QUEUE_NOTHING_HAPPENED: _Chain_Append_unprotected( &the_thread_queue->Queues.Fifo, &the_thread->Object.Node ); the_thread->Wait.queue = the_thread_queue; 4000d5ec: e0 26 60 44 st %l0, [ %i1 + 0x44 ] old_last_node->next = the_node; the_node->previous = old_last_node; 4000d5f0: c2 26 60 04 st %g1, [ %i1 + 4 ] Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); old_last_node = the_chain->last; the_chain->last = the_node; old_last_node->next = the_node; 4000d5f4: f2 20 40 00 st %i1, [ %g1 ] _ISR_Enable( level ); 4000d5f8: 7f ff d2 32 call 40001ec0 4000d5fc: 91 e8 00 08 restore %g0, %o0, %o0 return; case THREAD_QUEUE_TIMEOUT: the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status; 4000d600: c2 06 60 44 ld [ %i1 + 0x44 ], %g1 <== NOT EXECUTED the_thread->Wait.queue = NULL; 4000d604: c0 26 60 44 clr [ %i1 + 0x44 ] <== NOT EXECUTED the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); return; case THREAD_QUEUE_TIMEOUT: the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status; 4000d608: c2 00 60 3c ld [ %g1 + 0x3c ], %g1 <== NOT EXECUTED 4000d60c: c2 26 60 34 st %g1, [ %i1 + 0x34 ] <== NOT EXECUTED the_thread->Wait.queue = NULL; _ISR_Enable( level ); 4000d610: 30 80 00 0d b,a 4000d644 <_Thread_queue_Enqueue_fifo+0x9c> <== NOT EXECUTED break; case THREAD_QUEUE_SATISFIED: if ( _Watchdog_Is_active( &the_thread->Timer ) ) { 4000d614: c2 06 60 50 ld [ %i1 + 0x50 ], %g1 <== NOT EXECUTED 4000d618: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 4000d61c: 12 80 00 0a bne 4000d644 <_Thread_queue_Enqueue_fifo+0x9c> <== NOT EXECUTED 4000d620: 01 00 00 00 nop <== NOT EXECUTED 4000d624: c4 26 60 50 st %g2, [ %i1 + 0x50 ] <== NOT EXECUTED _Watchdog_Deactivate( &the_thread->Timer ); the_thread->Wait.queue = NULL; 4000d628: c0 26 60 44 clr [ %i1 + 0x44 ] <== NOT EXECUTED _ISR_Enable( level ); 4000d62c: 7f ff d2 25 call 40001ec0 <== NOT EXECUTED 4000d630: 01 00 00 00 nop <== NOT EXECUTED (void) _Watchdog_Remove( &the_thread->Timer ); 4000d634: 7f ff f5 f5 call 4000ae08 <_Watchdog_Remove> <== NOT EXECUTED 4000d638: 90 06 60 48 add %i1, 0x48, %o0 <== NOT EXECUTED 4000d63c: 10 80 00 04 b 4000d64c <_Thread_queue_Enqueue_fifo+0xa4> <== NOT EXECUTED 4000d640: 33 04 00 ff sethi %hi(0x1003fc00), %i1 <== NOT EXECUTED } else _ISR_Enable( level ); 4000d644: 7f ff d2 1f call 40001ec0 <== NOT EXECUTED 4000d648: 33 04 00 ff sethi %hi(0x1003fc00), %i1 <== NOT EXECUTED 4000d64c: b2 16 63 f8 or %i1, 0x3f8, %i1 ! 1003fff8 <== NOT EXECUTED 4000d650: 7f ff ef ff call 4000964c <_Thread_Clear_state> <== NOT EXECUTED 4000d654: 81 e8 00 00 restore <== NOT EXECUTED 4000d658: 01 00 00 00 nop 40009f58 <_Thread_queue_Enqueue_priority>: void _Thread_queue_Enqueue_priority( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) { 40009f58: 9d e3 bf 98 save %sp, -104, %sp States_Control block_state; Thread_queue_States sync_state; _Chain_Initialize_empty( &the_thread->Wait.Block2n ); priority = the_thread->current_priority; 40009f5c: e4 06 60 14 ld [ %i1 + 0x14 ], %l2 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 40009f60: 82 06 60 3c add %i1, 0x3c, %g1 the_chain->permanent_null = NULL; 40009f64: c0 26 60 3c clr [ %i1 + 0x3c ] */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 40009f68: c2 26 60 38 st %g1, [ %i1 + 0x38 ] the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 40009f6c: 82 06 60 38 add %i1, 0x38, %g1 40009f70: c2 26 60 40 st %g1, [ %i1 + 0x40 ] 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 ) ) 40009f74: 80 8c a0 20 btst 0x20, %l2 RTEMS_INLINE_ROUTINE uint32_t _Thread_queue_Header_number ( Priority_Control the_priority ) { return (the_priority / TASK_QUEUE_DATA_PRIORITIES_PER_HEADER); 40009f78: 85 34 a0 06 srl %l2, 6, %g2 40009f7c: 12 80 00 34 bne 4000a04c <_Thread_queue_Enqueue_priority+0xf4> 40009f80: ec 06 20 38 ld [ %i0 + 0x38 ], %l6 goto restart_reverse_search; restart_forward_search: search_priority = PRIORITY_MINIMUM - 1; _ISR_Disable( level ); search_thread = (Thread_Control *) header->first; 40009f84: 83 28 a0 04 sll %g2, 4, %g1 40009f88: 85 28 a0 02 sll %g2, 2, %g2 40009f8c: aa 20 40 02 sub %g1, %g2, %l5 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 40009f90: 82 06 00 15 add %i0, %l5, %g1 40009f94: a8 00 60 04 add %g1, 4, %l4 if ( _Thread_queue_Is_reverse_search( priority ) ) goto restart_reverse_search; restart_forward_search: search_priority = PRIORITY_MINIMUM - 1; _ISR_Disable( level ); 40009f98: 7f ff df c6 call 40001eb0 40009f9c: 01 00 00 00 nop 40009fa0: a2 10 00 08 mov %o0, %l1 search_thread = (Thread_Control *) header->first; 40009fa4: e0 06 00 15 ld [ %i0 + %l5 ], %l0 40009fa8: 10 80 00 18 b 4000a008 <_Thread_queue_Enqueue_priority+0xb0> 40009fac: a6 10 3f ff mov -1, %l3 while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) { search_priority = search_thread->current_priority; if ( priority <= search_priority ) 40009fb0: 80 a4 80 13 cmp %l2, %l3 40009fb4: 28 80 00 19 bleu,a 4000a018 <_Thread_queue_Enqueue_priority+0xc0> 40009fb8: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 break; #if ( CPU_UNROLL_ENQUEUE_PRIORITY == TRUE ) search_thread = (Thread_Control *) search_thread->Object.Node.next; 40009fbc: e0 04 00 00 ld [ %l0 ], %l0 if ( _Chain_Is_tail( header, (Chain_Node *)search_thread ) ) 40009fc0: 80 a4 00 14 cmp %l0, %l4 40009fc4: 22 80 00 15 be,a 4000a018 <_Thread_queue_Enqueue_priority+0xc0> 40009fc8: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 break; search_priority = search_thread->current_priority; 40009fcc: e6 04 20 14 ld [ %l0 + 0x14 ], %l3 if ( priority <= search_priority ) 40009fd0: 80 a4 80 13 cmp %l2, %l3 40009fd4: 28 80 00 11 bleu,a 4000a018 <_Thread_queue_Enqueue_priority+0xc0> 40009fd8: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 break; #endif _ISR_Flash( level ); 40009fdc: 7f ff df b9 call 40001ec0 40009fe0: 90 10 00 11 mov %l1, %o0 40009fe4: 7f ff df b3 call 40001eb0 40009fe8: 01 00 00 00 nop if ( !_States_Are_set( search_thread->current_state, block_state) ) { 40009fec: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 40009ff0: 80 8d 80 01 btst %l6, %g1 40009ff4: 32 80 00 05 bne,a 4000a008 <_Thread_queue_Enqueue_priority+0xb0> 40009ff8: e0 04 00 00 ld [ %l0 ], %l0 _ISR_Enable( level ); 40009ffc: 7f ff df b1 call 40001ec0 <== NOT EXECUTED 4000a000: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 4000a004: 30 bf ff e5 b,a 40009f98 <_Thread_queue_Enqueue_priority+0x40> <== NOT EXECUTED restart_forward_search: search_priority = PRIORITY_MINIMUM - 1; _ISR_Disable( level ); search_thread = (Thread_Control *) header->first; while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) { 4000a008: 80 a4 00 14 cmp %l0, %l4 4000a00c: 32 bf ff e9 bne,a 40009fb0 <_Thread_queue_Enqueue_priority+0x58> 4000a010: e6 04 20 14 ld [ %l0 + 0x14 ], %l3 } search_thread = (Thread_Control *)search_thread->Object.Node.next; } if ( the_thread_queue->sync_state != THREAD_QUEUE_NOTHING_HAPPENED ) 4000a014: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 4000a018: 80 a0 60 01 cmp %g1, 1 4000a01c: 32 80 00 47 bne,a 4000a138 <_Thread_queue_Enqueue_priority+0x1e0> 4000a020: c4 06 20 30 ld [ %i0 + 0x30 ], %g2 <== NOT EXECUTED goto synchronize; the_thread_queue->sync_state = THREAD_QUEUE_SYNCHRONIZED; if ( priority == search_priority ) 4000a024: 80 a4 80 13 cmp %l2, %l3 4000a028: 02 80 00 3c be 4000a118 <_Thread_queue_Enqueue_priority+0x1c0> 4000a02c: c0 26 20 30 clr [ %i0 + 0x30 ] goto equal_priority; search_node = (Chain_Node *) search_thread; previous_node = search_node->previous; 4000a030: c2 04 20 04 ld [ %l0 + 4 ], %g1 the_node = (Chain_Node *) the_thread; the_node->next = search_node; 4000a034: e0 26 40 00 st %l0, [ %i1 ] the_node->previous = previous_node; 4000a038: c2 26 60 04 st %g1, [ %i1 + 4 ] previous_node->next = the_node; search_node->previous = the_node; the_thread->Wait.queue = the_thread_queue; 4000a03c: f0 26 60 44 st %i0, [ %i1 + 0x44 ] previous_node = search_node->previous; the_node = (Chain_Node *) the_thread; the_node->next = search_node; the_node->previous = previous_node; previous_node->next = the_node; 4000a040: f2 20 40 00 st %i1, [ %g1 ] search_node->previous = the_node; 4000a044: f2 24 20 04 st %i1, [ %l0 + 4 ] the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); 4000a048: 30 80 00 32 b,a 4000a110 <_Thread_queue_Enqueue_priority+0x1b8> restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; _ISR_Disable( level ); search_thread = (Thread_Control *) header->last; 4000a04c: 83 28 a0 04 sll %g2, 4, %g1 4000a050: 85 28 a0 02 sll %g2, 2, %g2 4000a054: 82 20 40 02 sub %g1, %g2, %g1 4000a058: a6 00 40 18 add %g1, %i0, %l3 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Head( Chain_Control *the_chain ) { return (Chain_Node *) the_chain; 4000a05c: aa 10 00 13 mov %l3, %l5 return; restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; _ISR_Disable( level ); 4000a060: 7f ff df 94 call 40001eb0 4000a064: 01 00 00 00 nop 4000a068: a2 10 00 08 mov %o0, %l1 search_thread = (Thread_Control *) header->last; 4000a06c: e0 05 60 08 ld [ %l5 + 8 ], %l0 4000a070: 10 80 00 18 b 4000a0d0 <_Thread_queue_Enqueue_priority+0x178> 4000a074: a8 10 21 00 mov 0x100, %l4 while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) { search_priority = search_thread->current_priority; if ( priority >= search_priority ) 4000a078: 80 a4 80 14 cmp %l2, %l4 4000a07c: 3a 80 00 19 bcc,a 4000a0e0 <_Thread_queue_Enqueue_priority+0x188> 4000a080: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 break; #if ( CPU_UNROLL_ENQUEUE_PRIORITY == TRUE ) search_thread = (Thread_Control *) search_thread->Object.Node.previous; 4000a084: e0 04 20 04 ld [ %l0 + 4 ], %l0 if ( _Chain_Is_head( header, (Chain_Node *)search_thread ) ) 4000a088: 80 a4 00 13 cmp %l0, %l3 4000a08c: 22 80 00 15 be,a 4000a0e0 <_Thread_queue_Enqueue_priority+0x188> 4000a090: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 break; search_priority = search_thread->current_priority; 4000a094: e8 04 20 14 ld [ %l0 + 0x14 ], %l4 if ( priority >= search_priority ) 4000a098: 80 a4 80 14 cmp %l2, %l4 4000a09c: 3a 80 00 11 bcc,a 4000a0e0 <_Thread_queue_Enqueue_priority+0x188> 4000a0a0: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 <== NOT EXECUTED break; #endif _ISR_Flash( level ); 4000a0a4: 7f ff df 87 call 40001ec0 4000a0a8: 90 10 00 11 mov %l1, %o0 4000a0ac: 7f ff df 81 call 40001eb0 4000a0b0: 01 00 00 00 nop if ( !_States_Are_set( search_thread->current_state, block_state) ) { 4000a0b4: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 4000a0b8: 80 8d 80 01 btst %l6, %g1 4000a0bc: 32 80 00 05 bne,a 4000a0d0 <_Thread_queue_Enqueue_priority+0x178> 4000a0c0: e0 04 20 04 ld [ %l0 + 4 ], %l0 _ISR_Enable( level ); 4000a0c4: 7f ff df 7f call 40001ec0 <== NOT EXECUTED 4000a0c8: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 4000a0cc: 30 bf ff e5 b,a 4000a060 <_Thread_queue_Enqueue_priority+0x108> <== NOT EXECUTED restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; _ISR_Disable( level ); search_thread = (Thread_Control *) header->last; while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) { 4000a0d0: 80 a4 00 13 cmp %l0, %l3 4000a0d4: 32 bf ff e9 bne,a 4000a078 <_Thread_queue_Enqueue_priority+0x120> 4000a0d8: e8 04 20 14 ld [ %l0 + 0x14 ], %l4 } search_thread = (Thread_Control *) search_thread->Object.Node.previous; } if ( the_thread_queue->sync_state != THREAD_QUEUE_NOTHING_HAPPENED ) 4000a0dc: c2 06 20 30 ld [ %i0 + 0x30 ], %g1 4000a0e0: 80 a0 60 01 cmp %g1, 1 4000a0e4: 32 80 00 15 bne,a 4000a138 <_Thread_queue_Enqueue_priority+0x1e0> 4000a0e8: c4 06 20 30 ld [ %i0 + 0x30 ], %g2 <== NOT EXECUTED goto synchronize; the_thread_queue->sync_state = THREAD_QUEUE_SYNCHRONIZED; if ( priority == search_priority ) 4000a0ec: 80 a4 80 14 cmp %l2, %l4 4000a0f0: 02 80 00 0a be 4000a118 <_Thread_queue_Enqueue_priority+0x1c0> 4000a0f4: c0 26 20 30 clr [ %i0 + 0x30 ] goto equal_priority; search_node = (Chain_Node *) search_thread; next_node = search_node->next; 4000a0f8: c2 04 00 00 ld [ %l0 ], %g1 the_node = (Chain_Node *) the_thread; the_node->next = next_node; the_node->previous = search_node; 4000a0fc: e0 26 60 04 st %l0, [ %i1 + 4 ] search_node = (Chain_Node *) search_thread; next_node = search_node->next; the_node = (Chain_Node *) the_thread; the_node->next = next_node; 4000a100: c2 26 40 00 st %g1, [ %i1 ] the_node->previous = search_node; search_node->next = the_node; next_node->previous = the_node; the_thread->Wait.queue = the_thread_queue; 4000a104: f0 26 60 44 st %i0, [ %i1 + 0x44 ] 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; 4000a108: f2 24 00 00 st %i1, [ %l0 ] next_node->previous = the_node; 4000a10c: f2 20 60 04 st %i1, [ %g1 + 4 ] the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); 4000a110: 7f ff df 6c call 40001ec0 4000a114: 91 e8 00 11 restore %g0, %l1, %o0 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 4000a118: 82 04 20 3c add %l0, 0x3c, %g1 return; equal_priority: /* add at end of priority group */ search_node = _Chain_Tail( &search_thread->Wait.Block2n ); previous_node = search_node->previous; 4000a11c: c4 00 60 04 ld [ %g1 + 4 ], %g2 the_node = (Chain_Node *) the_thread; the_node->next = search_node; 4000a120: c2 26 40 00 st %g1, [ %i1 ] the_node->previous = previous_node; 4000a124: c4 26 60 04 st %g2, [ %i1 + 4 ] previous_node->next = the_node; search_node->previous = the_node; the_thread->Wait.queue = the_thread_queue; 4000a128: f0 26 60 44 st %i0, [ %i1 + 0x44 ] previous_node = search_node->previous; the_node = (Chain_Node *) the_thread; the_node->next = search_node; the_node->previous = previous_node; previous_node->next = the_node; 4000a12c: f2 20 80 00 st %i1, [ %g2 ] search_node->previous = the_node; 4000a130: f2 20 60 04 st %i1, [ %g1 + 4 ] the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); 4000a134: 30 bf ff f7 b,a 4000a110 <_Thread_queue_Enqueue_priority+0x1b8> synchronize: sync_state = the_thread_queue->sync_state; the_thread_queue->sync_state = THREAD_QUEUE_SYNCHRONIZED; switch ( sync_state ) { 4000a138: 80 a0 a0 02 cmp %g2, 2 <== NOT EXECUTED 4000a13c: 02 80 00 07 be 4000a158 <_Thread_queue_Enqueue_priority+0x200> <== NOT EXECUTED 4000a140: c0 26 20 30 clr [ %i0 + 0x30 ] <== NOT EXECUTED 4000a144: 80 a0 a0 03 cmp %g2, 3 <== NOT EXECUTED 4000a148: 12 80 00 17 bne 4000a1a4 <_Thread_queue_Enqueue_priority+0x24c> <== NOT EXECUTED 4000a14c: b0 10 00 19 mov %i1, %i0 <== NOT EXECUTED the_thread->Wait.queue = NULL; _ISR_Enable( level ); break; case THREAD_QUEUE_SATISFIED: if ( _Watchdog_Is_active( &the_thread->Timer ) ) { 4000a150: 10 80 00 07 b 4000a16c <_Thread_queue_Enqueue_priority+0x214> <== NOT EXECUTED 4000a154: c2 06 60 50 ld [ %i1 + 0x50 ], %g1 <== NOT EXECUTED * This should never happen. All of this was dealt with above. */ break; case THREAD_QUEUE_TIMEOUT: the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status; 4000a158: c2 06 60 44 ld [ %i1 + 0x44 ], %g1 <== NOT EXECUTED the_thread->Wait.queue = NULL; 4000a15c: c0 26 60 44 clr [ %i1 + 0x44 ] <== NOT EXECUTED * This should never happen. All of this was dealt with above. */ break; case THREAD_QUEUE_TIMEOUT: the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status; 4000a160: c2 00 60 3c ld [ %g1 + 0x3c ], %g1 <== NOT EXECUTED 4000a164: c2 26 60 34 st %g1, [ %i1 + 0x34 ] <== NOT EXECUTED the_thread->Wait.queue = NULL; _ISR_Enable( level ); 4000a168: 30 80 00 0c b,a 4000a198 <_Thread_queue_Enqueue_priority+0x240> <== NOT EXECUTED break; case THREAD_QUEUE_SATISFIED: if ( _Watchdog_Is_active( &the_thread->Timer ) ) { 4000a16c: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 4000a170: 12 80 00 0a bne 4000a198 <_Thread_queue_Enqueue_priority+0x240> <== NOT EXECUTED 4000a174: 01 00 00 00 nop <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_REMOVE_IT; 4000a178: c4 26 60 50 st %g2, [ %i1 + 0x50 ] <== NOT EXECUTED _Watchdog_Deactivate( &the_thread->Timer ); the_thread->Wait.queue = NULL; 4000a17c: c0 26 60 44 clr [ %i1 + 0x44 ] <== NOT EXECUTED _ISR_Enable( level ); 4000a180: 7f ff df 50 call 40001ec0 <== NOT EXECUTED 4000a184: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED (void) _Watchdog_Remove( &the_thread->Timer ); 4000a188: 40 00 03 20 call 4000ae08 <_Watchdog_Remove> <== NOT EXECUTED 4000a18c: 90 06 60 48 add %i1, 0x48, %o0 <== NOT EXECUTED 4000a190: 10 80 00 05 b 4000a1a4 <_Thread_queue_Enqueue_priority+0x24c> <== NOT EXECUTED 4000a194: b0 10 00 19 mov %i1, %i0 <== NOT EXECUTED } else _ISR_Enable( level ); 4000a198: 7f ff df 4a call 40001ec0 <== NOT EXECUTED 4000a19c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 4000a1a0: b0 10 00 19 mov %i1, %i0 <== NOT EXECUTED 4000a1a4: 33 04 00 ff sethi %hi(0x1003fc00), %i1 <== NOT EXECUTED 4000a1a8: b2 16 63 f8 or %i1, 0x3f8, %i1 ! 1003fff8 <== NOT EXECUTED 4000a1ac: 7f ff fd 28 call 4000964c <_Thread_Clear_state> <== NOT EXECUTED 4000a1b0: 81 e8 00 00 restore <== NOT EXECUTED 4000a1b4: 01 00 00 00 nop 40009ed4 <_Thread_queue_Enqueue_with_handler>: void _Thread_queue_Enqueue_with_handler( Thread_queue_Control *the_thread_queue, Watchdog_Interval timeout, Thread_queue_Timeout_callout handler ) { 40009ed4: 9d e3 bf 98 save %sp, -104, %sp Thread_Control *the_thread; the_thread = _Thread_Executing; 40009ed8: 03 10 00 67 sethi %hi(0x40019c00), %g1 else #endif /* * Set the blocking state for this thread queue in the thread. */ _Thread_Set_state( the_thread, the_thread_queue->state ); 40009edc: d2 06 20 38 ld [ %i0 + 0x38 ], %o1 Thread_queue_Timeout_callout handler ) { Thread_Control *the_thread; the_thread = _Thread_Executing; 40009ee0: e0 00 63 7c ld [ %g1 + 0x37c ], %l0 void _Thread_queue_Enqueue_with_handler( Thread_queue_Control *the_thread_queue, Watchdog_Interval timeout, Thread_queue_Timeout_callout handler ) { 40009ee4: a2 10 00 18 mov %i0, %l1 else #endif /* * Set the blocking state for this thread queue in the thread. */ _Thread_Set_state( the_thread, the_thread_queue->state ); 40009ee8: 40 00 01 79 call 4000a4cc <_Thread_Set_state> 40009eec: 90 10 00 10 mov %l0, %o0 /* * If the thread wants to timeout, then schedule its timer. */ if ( timeout ) { 40009ef0: 80 a6 60 00 cmp %i1, 0 40009ef4: 22 80 00 0d be,a 40009f28 <_Thread_queue_Enqueue_with_handler+0x54> 40009ef8: c2 04 60 34 ld [ %l1 + 0x34 ], %g1 _Watchdog_Initialize( 40009efc: c2 04 20 08 ld [ %l0 + 8 ], %g1 ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 40009f00: 11 10 00 67 sethi %hi(0x40019c00), %o0 Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 40009f04: f4 24 20 64 st %i2, [ %l0 + 0x64 ] the_watchdog->id = id; 40009f08: c2 24 20 68 st %g1, [ %l0 + 0x68 ] Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 40009f0c: f2 24 20 54 st %i1, [ %l0 + 0x54 ] Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 40009f10: c0 24 20 50 clr [ %l0 + 0x50 ] the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data; 40009f14: c0 24 20 6c clr [ %l0 + 0x6c ] ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 40009f18: 90 12 23 9c or %o0, 0x39c, %o0 40009f1c: 40 00 03 63 call 4000aca8 <_Watchdog_Insert> 40009f20: 92 04 20 48 add %l0, 0x48, %o1 } /* * Now enqueue the thread per the discipline for this thread queue. */ switch( the_thread_queue->discipline ) { 40009f24: c2 04 60 34 ld [ %l1 + 0x34 ], %g1 40009f28: 80 a0 60 00 cmp %g1, 0 40009f2c: 02 80 00 05 be 40009f40 <_Thread_queue_Enqueue_with_handler+0x6c> 40009f30: 80 a0 60 01 cmp %g1, 1 40009f34: 12 80 00 07 bne 40009f50 <_Thread_queue_Enqueue_with_handler+0x7c> 40009f38: 01 00 00 00 nop 40009f3c: 30 80 00 03 b,a 40009f48 <_Thread_queue_Enqueue_with_handler+0x74> case THREAD_QUEUE_DISCIPLINE_FIFO: _Thread_queue_Enqueue_fifo( the_thread_queue, the_thread ); 40009f40: 40 00 0d 9a call 4000d5a8 <_Thread_queue_Enqueue_fifo> 40009f44: 93 e8 00 10 restore %g0, %l0, %o1 break; case THREAD_QUEUE_DISCIPLINE_PRIORITY: _Thread_queue_Enqueue_priority( the_thread_queue, the_thread ); 40009f48: 40 00 00 04 call 40009f58 <_Thread_queue_Enqueue_priority> 40009f4c: 93 e8 00 10 restore %g0, %l0, %o1 40009f50: 81 c7 e0 08 ret <== NOT EXECUTED 40009f54: 81 e8 00 00 restore <== NOT EXECUTED 4000d65c <_Thread_queue_Extract>: void _Thread_queue_Extract( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) { switch ( the_thread_queue->discipline ) { 4000d65c: c2 02 20 34 ld [ %o0 + 0x34 ], %g1 4000d660: 80 a0 60 00 cmp %g1, 0 4000d664: 02 80 00 05 be 4000d678 <_Thread_queue_Extract+0x1c> 4000d668: 80 a0 60 01 cmp %g1, 1 4000d66c: 12 80 00 09 bne 4000d690 <_Thread_queue_Extract+0x34> 4000d670: 94 10 20 00 clr %o2 4000d674: 30 80 00 04 b,a 4000d684 <_Thread_queue_Extract+0x28> case THREAD_QUEUE_DISCIPLINE_FIFO: _Thread_queue_Extract_fifo( the_thread_queue, the_thread ); 4000d678: 82 13 c0 00 mov %o7, %g1 4000d67c: 40 00 03 2a call 4000e324 <_Thread_queue_Extract_fifo> 4000d680: 9e 10 40 00 mov %g1, %o7 break; case THREAD_QUEUE_DISCIPLINE_PRIORITY: _Thread_queue_Extract_priority( the_thread_queue, the_thread ); 4000d684: 82 13 c0 00 mov %o7, %g1 4000d688: 40 00 00 04 call 4000d698 <_Thread_queue_Extract_priority_helper> 4000d68c: 9e 10 40 00 mov %g1, %o7 4000d690: 81 c3 e0 08 retl <== NOT EXECUTED 4000d694: 01 00 00 00 nop 4000e324 <_Thread_queue_Extract_fifo>: void _Thread_queue_Extract_fifo( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) { 4000e324: 9d e3 bf 98 save %sp, -104, %sp ISR_Level level; _ISR_Disable( level ); 4000e328: 7f ff ce e2 call 40001eb0 4000e32c: b0 10 00 19 mov %i1, %i0 if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { 4000e330: c4 06 60 10 ld [ %i1 + 0x10 ], %g2 4000e334: 03 00 00 ef sethi %hi(0x3bc00), %g1 4000e338: 82 10 62 e0 or %g1, 0x2e0, %g1 ! 3bee0 4000e33c: 80 88 80 01 btst %g2, %g1 4000e340: 32 80 00 04 bne,a 4000e350 <_Thread_queue_Extract_fifo+0x2c> 4000e344: c2 06 40 00 ld [ %i1 ], %g1 _ISR_Enable( level ); 4000e348: 7f ff ce de call 40001ec0 <== NOT EXECUTED 4000e34c: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED { Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; 4000e350: c4 06 60 04 ld [ %i1 + 4 ], %g2 _Chain_Extract_unprotected( &the_thread->Object.Node ); the_thread->Wait.queue = NULL; if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { 4000e354: c6 06 60 50 ld [ %i1 + 0x50 ], %g3 next->previous = previous; previous->next = next; 4000e358: c2 20 80 00 st %g1, [ %g2 ] Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; next->previous = previous; 4000e35c: c4 20 60 04 st %g2, [ %g1 + 4 ] 4000e360: 80 a0 e0 02 cmp %g3, 2 4000e364: 02 80 00 06 be 4000e37c <_Thread_queue_Extract_fifo+0x58> 4000e368: c0 26 60 44 clr [ %i1 + 0x44 ] _ISR_Enable( level ); 4000e36c: 7f ff ce d5 call 40001ec0 4000e370: 33 04 00 ff sethi %hi(0x1003fc00), %i1 RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 4000e374: 10 80 00 0a b 4000e39c <_Thread_queue_Extract_fifo+0x78> 4000e378: b2 16 63 f8 or %i1, 0x3f8, %i1 ! 1003fff8 4000e37c: 82 10 20 03 mov 3, %g1 4000e380: c2 26 60 50 st %g1, [ %i1 + 0x50 ] } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); 4000e384: 7f ff ce cf call 40001ec0 4000e388: 01 00 00 00 nop (void) _Watchdog_Remove( &the_thread->Timer ); 4000e38c: 7f ff f2 9f call 4000ae08 <_Watchdog_Remove> 4000e390: 90 06 60 48 add %i1, 0x48, %o0 4000e394: 33 04 00 ff sethi %hi(0x1003fc00), %i1 4000e398: b2 16 63 f8 or %i1, 0x3f8, %i1 ! 1003fff8 4000e39c: 7f ff ec ac call 4000964c <_Thread_Clear_state> 4000e3a0: 81 e8 00 00 restore 4000e3a4: 01 00 00 00 nop 4000d698 <_Thread_queue_Extract_priority_helper>: void _Thread_queue_Extract_priority_helper( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread, boolean requeuing ) { 4000d698: 9d e3 bf 98 save %sp, -104, %sp Chain_Node *new_first_node; Chain_Node *new_second_node; Chain_Node *last_node; the_node = (Chain_Node *) the_thread; _ISR_Disable( level ); 4000d69c: 7f ff d2 05 call 40001eb0 4000d6a0: b0 10 00 19 mov %i1, %i0 if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { 4000d6a4: c4 06 60 10 ld [ %i1 + 0x10 ], %g2 4000d6a8: 03 00 00 ef sethi %hi(0x3bc00), %g1 4000d6ac: 82 10 62 e0 or %g1, 0x2e0, %g1 ! 3bee0 4000d6b0: 80 88 80 01 btst %g2, %g1 4000d6b4: 32 80 00 03 bne,a 4000d6c0 <_Thread_queue_Extract_priority_helper+0x28> 4000d6b8: c6 06 60 38 ld [ %i1 + 0x38 ], %g3 _ISR_Enable( level ); 4000d6bc: 30 80 00 1d b,a 4000d730 <_Thread_queue_Extract_priority_helper+0x98> <== NOT EXECUTED */ next_node = the_node->next; previous_node = the_node->previous; if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) { 4000d6c0: 82 06 60 3c add %i1, 0x3c, %g1 /* * The thread was actually waiting on a thread queue so let's remove it. */ next_node = the_node->next; 4000d6c4: c4 06 40 00 ld [ %i1 ], %g2 previous_node = the_node->previous; if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) { 4000d6c8: 80 a0 c0 01 cmp %g3, %g1 4000d6cc: 02 80 00 14 be 4000d71c <_Thread_queue_Extract_priority_helper+0x84> 4000d6d0: c2 06 60 04 ld [ %i1 + 4 ], %g1 new_first_node = the_thread->Wait.Block2n.first; new_first_thread = (Thread_Control *) new_first_node; last_node = the_thread->Wait.Block2n.last; 4000d6d4: da 06 60 40 ld [ %i1 + 0x40 ], %o5 new_second_node = new_first_node->next; 4000d6d8: c8 00 c0 00 ld [ %g3 ], %g4 previous_node->next = new_first_node; next_node->previous = new_first_node; 4000d6dc: c6 20 a0 04 st %g3, [ %g2 + 4 ] new_first_node = the_thread->Wait.Block2n.first; new_first_thread = (Thread_Control *) new_first_node; last_node = the_thread->Wait.Block2n.last; new_second_node = new_first_node->next; previous_node->next = new_first_node; 4000d6e0: c6 20 40 00 st %g3, [ %g1 ] next_node->previous = new_first_node; new_first_node->next = next_node; 4000d6e4: c4 20 c0 00 st %g2, [ %g3 ] new_first_node->previous = previous_node; 4000d6e8: c2 20 e0 04 st %g1, [ %g3 + 4 ] if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) { 4000d6ec: c4 06 60 38 ld [ %i1 + 0x38 ], %g2 4000d6f0: c2 06 60 40 ld [ %i1 + 0x40 ], %g1 4000d6f4: 80 a0 80 01 cmp %g2, %g1 4000d6f8: 02 80 00 0c be 4000d728 <_Thread_queue_Extract_priority_helper+0x90> 4000d6fc: 80 a6 a0 00 cmp %i2, 0 /* > two threads on 2-n */ new_second_node->previous = 4000d700: 82 00 e0 38 add %g3, 0x38, %g1 <== NOT EXECUTED 4000d704: c2 21 20 04 st %g1, [ %g4 + 4 ] <== NOT EXECUTED _Chain_Head( &new_first_thread->Wait.Block2n ); new_first_thread->Wait.Block2n.first = new_second_node; 4000d708: c8 20 e0 38 st %g4, [ %g3 + 0x38 ] <== NOT EXECUTED new_first_thread->Wait.Block2n.last = last_node; 4000d70c: da 20 e0 40 st %o5, [ %g3 + 0x40 ] <== NOT EXECUTED last_node->next = _Chain_Tail( &new_first_thread->Wait.Block2n ); 4000d710: 82 00 e0 3c add %g3, 0x3c, %g1 <== NOT EXECUTED 4000d714: 10 80 00 05 b 4000d728 <_Thread_queue_Extract_priority_helper+0x90> <== NOT EXECUTED 4000d718: c2 23 40 00 st %g1, [ %o5 ] <== NOT EXECUTED } } else { previous_node->next = next_node; next_node->previous = previous_node; 4000d71c: c2 20 a0 04 st %g1, [ %g2 + 4 ] new_first_thread->Wait.Block2n.last = last_node; last_node->next = _Chain_Tail( &new_first_thread->Wait.Block2n ); } } else { previous_node->next = next_node; 4000d720: c4 20 40 00 st %g2, [ %g1 ] /* * If we are not supposed to touch timers or the thread's state, return. */ if ( requeuing ) { 4000d724: 80 a6 a0 00 cmp %i2, 0 4000d728: 22 80 00 04 be,a 4000d738 <_Thread_queue_Extract_priority_helper+0xa0> 4000d72c: c2 06 20 50 ld [ %i0 + 0x50 ], %g1 _ISR_Enable( level ); 4000d730: 7f ff d1 e4 call 40001ec0 4000d734: 91 e8 00 08 restore %g0, %o0, %o0 return; } if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { 4000d738: 80 a0 60 02 cmp %g1, 2 4000d73c: 02 80 00 06 be 4000d754 <_Thread_queue_Extract_priority_helper+0xbc> 4000d740: 82 10 20 03 mov 3, %g1 _ISR_Enable( level ); 4000d744: 7f ff d1 df call 40001ec0 4000d748: 33 04 00 ff sethi %hi(0x1003fc00), %i1 4000d74c: 10 80 00 08 b 4000d76c <_Thread_queue_Extract_priority_helper+0xd4> 4000d750: b2 16 63 f8 or %i1, 0x3f8, %i1 ! 1003fff8 4000d754: c2 26 20 50 st %g1, [ %i0 + 0x50 ] <== NOT EXECUTED } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); 4000d758: 7f ff d1 da call 40001ec0 <== NOT EXECUTED 4000d75c: 33 04 00 ff sethi %hi(0x1003fc00), %i1 <== NOT EXECUTED (void) _Watchdog_Remove( &the_thread->Timer ); 4000d760: 7f ff f5 aa call 4000ae08 <_Watchdog_Remove> <== NOT EXECUTED 4000d764: 90 06 20 48 add %i0, 0x48, %o0 <== NOT EXECUTED 4000d768: b2 16 63 f8 or %i1, 0x3f8, %i1 <== NOT EXECUTED 4000d76c: 7f ff ef b8 call 4000964c <_Thread_Clear_state> 4000d770: 81 e8 00 00 restore 4000d774: 01 00 00 00 nop 4000a1b8 <_Thread_queue_Extract_with_proxy>: */ boolean _Thread_queue_Extract_with_proxy( Thread_Control *the_thread ) { 4000a1b8: 9d e3 bf 98 save %sp, -104, %sp States_Control state; Objects_Information *the_information; Objects_Thread_queue_Extract_callout proxy_extract_callout; state = the_thread->current_state; 4000a1bc: c4 06 20 10 ld [ %i0 + 0x10 ], %g2 */ boolean _Thread_queue_Extract_with_proxy( Thread_Control *the_thread ) { 4000a1c0: a0 10 00 18 mov %i0, %l0 Objects_Information *the_information; Objects_Thread_queue_Extract_callout proxy_extract_callout; state = the_thread->current_state; if ( _States_Is_waiting_on_thread_queue( state ) ) { 4000a1c4: 03 00 00 ef sethi %hi(0x3bc00), %g1 4000a1c8: 82 10 62 e0 or %g1, 0x2e0, %g1 ! 3bee0 4000a1cc: 80 88 80 01 btst %g2, %g1 4000a1d0: 02 80 00 1e be 4000a248 <_Thread_queue_Extract_with_proxy+0x90> 4000a1d4: b0 10 20 00 clr %i0 if ( _States_Is_waiting_for_rpc_reply( state ) && 4000a1d8: 03 00 00 08 sethi %hi(0x2000), %g1 4000a1dc: 80 88 80 01 btst %g2, %g1 4000a1e0: 22 80 00 17 be,a 4000a23c <_Thread_queue_Extract_with_proxy+0x84> 4000a1e4: d0 04 20 44 ld [ %l0 + 0x44 ], %o0 4000a1e8: 03 00 00 e7 sethi %hi(0x39c00), %g1 <== NOT EXECUTED 4000a1ec: 82 10 62 e0 or %g1, 0x2e0, %g1 ! 39ee0 <== NOT EXECUTED 4000a1f0: 80 88 80 01 btst %g2, %g1 <== NOT EXECUTED 4000a1f4: 22 80 00 12 be,a 4000a23c <_Thread_queue_Extract_with_proxy+0x84> <== NOT EXECUTED 4000a1f8: d0 04 20 44 ld [ %l0 + 0x44 ], %o0 <== NOT EXECUTED _States_Is_locally_blocked( state ) ) { the_information = _Objects_Get_information( the_thread->Wait.id ); 4000a1fc: c6 04 20 20 ld [ %l0 + 0x20 ], %g3 <== NOT EXECUTED proxy_extract_callout = 4000a200: 03 10 00 67 sethi %hi(0x40019c00), %g1 <== NOT EXECUTED 4000a204: 85 30 e0 16 srl %g3, 0x16, %g2 <== NOT EXECUTED 4000a208: 82 10 62 00 or %g1, 0x200, %g1 <== NOT EXECUTED 4000a20c: 84 08 a0 1c and %g2, 0x1c, %g2 <== NOT EXECUTED 4000a210: c2 00 40 02 ld [ %g1 + %g2 ], %g1 <== NOT EXECUTED 4000a214: 87 30 e0 1b srl %g3, 0x1b, %g3 <== NOT EXECUTED 4000a218: 87 28 e0 02 sll %g3, 2, %g3 <== NOT EXECUTED 4000a21c: c2 00 40 03 ld [ %g1 + %g3 ], %g1 <== NOT EXECUTED 4000a220: c2 00 60 48 ld [ %g1 + 0x48 ], %g1 <== NOT EXECUTED (Objects_Thread_queue_Extract_callout) the_information->extract; if ( proxy_extract_callout ) 4000a224: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000a228: 22 80 00 05 be,a 4000a23c <_Thread_queue_Extract_with_proxy+0x84> <== NOT EXECUTED 4000a22c: d0 04 20 44 ld [ %l0 + 0x44 ], %o0 <== NOT EXECUTED (*proxy_extract_callout)( the_thread ); 4000a230: 9f c0 40 00 call %g1 <== NOT EXECUTED 4000a234: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED } _Thread_queue_Extract( the_thread->Wait.queue, the_thread ); 4000a238: d0 04 20 44 ld [ %l0 + 0x44 ], %o0 <== NOT EXECUTED 4000a23c: 92 10 00 10 mov %l0, %o1 4000a240: 40 00 0d 07 call 4000d65c <_Thread_queue_Extract> 4000a244: b0 10 20 01 mov 1, %i0 return TRUE; } return FALSE; } 4000a248: 81 c7 e0 08 ret 4000a24c: 81 e8 00 00 restore 4001af80 <_Thread_queue_First>: Thread_queue_Control *the_thread_queue ) { Thread_Control *the_thread; switch ( the_thread_queue->discipline ) { 4001af80: c2 02 20 34 ld [ %o0 + 0x34 ], %g1 4001af84: 80 a0 60 00 cmp %g1, 0 4001af88: 02 80 00 05 be 4001af9c <_Thread_queue_First+0x1c> 4001af8c: 80 a0 60 01 cmp %g1, 1 4001af90: 12 80 00 09 bne 4001afb4 <_Thread_queue_First+0x34> 4001af94: 01 00 00 00 nop 4001af98: 30 80 00 04 b,a 4001afa8 <_Thread_queue_First+0x28> case THREAD_QUEUE_DISCIPLINE_FIFO: the_thread = _Thread_queue_First_fifo( the_thread_queue ); 4001af9c: 82 13 c0 00 mov %o7, %g1 4001afa0: 40 00 02 da call 4001bb08 <_Thread_queue_First_fifo> 4001afa4: 9e 10 40 00 mov %g1, %o7 break; case THREAD_QUEUE_DISCIPLINE_PRIORITY: the_thread = _Thread_queue_First_priority( the_thread_queue ); 4001afa8: 82 13 c0 00 mov %o7, %g1 4001afac: 40 00 00 04 call 4001afbc <_Thread_queue_First_priority> 4001afb0: 9e 10 40 00 mov %g1, %o7 the_thread = NULL; break; } return the_thread; } 4001afb4: 81 c3 e0 08 retl <== NOT EXECUTED 4001afb8: 90 10 20 00 clr %o0 <== NOT EXECUTED 4000a2fc <_Thread_queue_Requeue>: void _Thread_queue_Requeue( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) { 4000a2fc: 9d e3 bf 98 save %sp, -104, %sp /* just in case the thread really wasn't blocked here */ if ( !the_thread_queue ) { 4000a300: 80 a6 20 00 cmp %i0, 0 4000a304: 02 80 00 18 be 4000a364 <_Thread_queue_Requeue+0x68> 4000a308: 01 00 00 00 nop return; } switch ( the_thread_queue->discipline ) { 4000a30c: e0 06 20 34 ld [ %i0 + 0x34 ], %l0 4000a310: 80 a4 20 01 cmp %l0, 1 4000a314: 12 80 00 14 bne 4000a364 <_Thread_queue_Requeue+0x68> 4000a318: 01 00 00 00 nop break; case THREAD_QUEUE_DISCIPLINE_PRIORITY: { Thread_queue_Control *tq = the_thread_queue; ISR_Level level; _ISR_Disable( level ); 4000a31c: 7f ff de e5 call 40001eb0 4000a320: 01 00 00 00 nop 4000a324: a2 10 00 08 mov %o0, %l1 if ( _States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { 4000a328: c4 06 60 10 ld [ %i1 + 0x10 ], %g2 4000a32c: 03 00 00 ef sethi %hi(0x3bc00), %g1 4000a330: 82 10 62 e0 or %g1, 0x2e0, %g1 ! 3bee0 4000a334: 80 88 80 01 btst %g2, %g1 4000a338: 02 80 00 09 be 4000a35c <_Thread_queue_Requeue+0x60> 4000a33c: 90 10 00 18 mov %i0, %o0 _Thread_queue_Enter_critical_section( tq ); _Thread_queue_Extract_priority_helper( tq, the_thread, TRUE ); 4000a340: 92 10 00 19 mov %i1, %o1 4000a344: 94 10 20 01 mov 1, %o2 4000a348: 40 00 0c d4 call 4000d698 <_Thread_queue_Extract_priority_helper> 4000a34c: e0 26 20 30 st %l0, [ %i0 + 0x30 ] _Thread_queue_Enqueue_priority( tq, the_thread ); 4000a350: 90 10 00 18 mov %i0, %o0 4000a354: 7f ff ff 01 call 40009f58 <_Thread_queue_Enqueue_priority> 4000a358: 92 10 00 19 mov %i1, %o1 } _ISR_Enable( level ); 4000a35c: 7f ff de d9 call 40001ec0 4000a360: 91 e8 00 11 restore %g0, %l1, %o0 4000a364: 81 c7 e0 08 ret <== NOT EXECUTED 4000a368: 81 e8 00 00 restore <== NOT EXECUTED 4000a36c <_Thread_queue_Timeout>: void _Thread_queue_Timeout( Objects_Id id, void *ignored ) { 4000a36c: 9d e3 bf 90 save %sp, -112, %sp uint32_t the_api; uint32_t the_class; Objects_Information *information; Thread_Control *tp = (Thread_Control *) 0; if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ) { 4000a370: 92 96 20 00 orcc %i0, 0, %o1 4000a374: 12 80 00 0a bne 4000a39c <_Thread_queue_Timeout+0x30> 4000a378: 83 32 60 18 srl %o1, 0x18, %g1 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 4000a37c: 03 10 00 67 sethi %hi(0x40019c00), %g1 <== NOT EXECUTED 4000a380: c4 00 62 a0 ld [ %g1 + 0x2a0 ], %g2 ! 40019ea0 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 4000a384: 84 00 a0 01 inc %g2 <== NOT EXECUTED 4000a388: c4 20 62 a0 st %g2, [ %g1 + 0x2a0 ] <== NOT EXECUTED Thread_Control *tp = (Thread_Control *) 0; if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ) { _Thread_Disable_dispatch(); *location = OBJECTS_LOCAL; tp = _Thread_Executing; 4000a38c: 03 10 00 67 sethi %hi(0x40019c00), %g1 <== NOT EXECUTED 4000a390: d2 00 63 7c ld [ %g1 + 0x37c ], %o1 ! 40019f7c <_Thread_Executing> <== 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; 4000a394: 10 80 00 18 b 4000a3f4 <_Thread_queue_Timeout+0x88> <== NOT EXECUTED 4000a398: c0 27 bf f4 clr [ %fp + -12 ] <== 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); 4000a39c: 84 08 60 07 and %g1, 7, %g2 tp = _Thread_Executing; goto done; } the_api = _Objects_Get_API( id ); if ( the_api && the_api > OBJECTS_APIS_LAST ) { 4000a3a0: 80 a0 a0 04 cmp %g2, 4 4000a3a4: 18 80 00 0e bgu 4000a3dc <_Thread_queue_Timeout+0x70> 4000a3a8: 82 10 20 02 mov 2, %g1 *location = OBJECTS_ERROR; goto done; } the_class = _Objects_Get_class( id ); if ( the_class != 1 ) { /* threads are always first class :) */ 4000a3ac: 83 32 60 1b srl %o1, 0x1b, %g1 4000a3b0: 80 a0 60 01 cmp %g1, 1 4000a3b4: 12 80 00 0a bne 4000a3dc <_Thread_queue_Timeout+0x70> 4000a3b8: 82 10 20 02 mov 2, %g1 *location = OBJECTS_ERROR; goto done; } information = _Objects_Information_table[ the_api ][ the_class ]; 4000a3bc: 83 28 a0 02 sll %g2, 2, %g1 4000a3c0: 05 10 00 67 sethi %hi(0x40019c00), %g2 4000a3c4: 84 10 a2 00 or %g2, 0x200, %g2 ! 40019e00 <_Objects_Information_table> 4000a3c8: c2 00 80 01 ld [ %g2 + %g1 ], %g1 4000a3cc: d0 00 60 04 ld [ %g1 + 4 ], %o0 if ( !information ) { 4000a3d0: 80 a2 20 00 cmp %o0, 0 4000a3d4: 12 80 00 05 bne 4000a3e8 <_Thread_queue_Timeout+0x7c> 4000a3d8: 82 10 20 02 mov 2, %g1 *location = OBJECTS_ERROR; 4000a3dc: 92 10 20 00 clr %o1 <== NOT EXECUTED 4000a3e0: 10 80 00 05 b 4000a3f4 <_Thread_queue_Timeout+0x88> <== NOT EXECUTED 4000a3e4: c2 27 bf f4 st %g1, [ %fp + -12 ] <== NOT EXECUTED goto done; } tp = (Thread_Control *) _Objects_Get( information, id, location ); 4000a3e8: 7f ff f8 5f call 40008564 <_Objects_Get> 4000a3ec: 94 07 bf f4 add %fp, -12, %o2 4000a3f0: 92 10 00 08 mov %o0, %o1 Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); switch ( location ) { 4000a3f4: c2 07 bf f4 ld [ %fp + -12 ], %g1 4000a3f8: 80 a0 60 00 cmp %g1, 0 4000a3fc: 12 80 00 18 bne 4000a45c <_Thread_queue_Timeout+0xf0> 4000a400: 01 00 00 00 nop */ static inline void _Thread_queue_Process_timeout( Thread_Control *the_thread ) { Thread_queue_Control *the_thread_queue = the_thread->Wait.queue; 4000a404: c4 02 60 44 ld [ %o1 + 0x44 ], %g2 * 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_QUEUE_SYNCHRONIZED && 4000a408: c6 00 a0 30 ld [ %g2 + 0x30 ], %g3 4000a40c: 80 a0 e0 00 cmp %g3, 0 4000a410: 02 80 00 0b be 4000a43c <_Thread_queue_Timeout+0xd0> 4000a414: 03 10 00 67 sethi %hi(0x40019c00), %g1 4000a418: c2 00 63 7c ld [ %g1 + 0x37c ], %g1 ! 40019f7c <_Thread_Executing> <== NOT EXECUTED 4000a41c: 80 a2 40 01 cmp %o1, %g1 <== NOT EXECUTED 4000a420: 32 80 00 08 bne,a 4000a440 <_Thread_queue_Timeout+0xd4> <== NOT EXECUTED 4000a424: c2 00 a0 3c ld [ %g2 + 0x3c ], %g1 <== NOT EXECUTED _Thread_Is_executing( the_thread ) ) { if ( the_thread_queue->sync_state != THREAD_QUEUE_SATISFIED ) 4000a428: 80 a0 e0 03 cmp %g3, 3 <== NOT EXECUTED 4000a42c: 02 80 00 08 be 4000a44c <_Thread_queue_Timeout+0xe0> <== NOT EXECUTED 4000a430: 82 10 20 02 mov 2, %g1 <== NOT EXECUTED the_thread_queue->sync_state = THREAD_QUEUE_TIMEOUT; 4000a434: 10 80 00 06 b 4000a44c <_Thread_queue_Timeout+0xe0> <== NOT EXECUTED 4000a438: c2 20 a0 30 st %g1, [ %g2 + 0x30 ] <== NOT EXECUTED } else { the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status; 4000a43c: c2 00 a0 3c ld [ %g2 + 0x3c ], %g1 _Thread_queue_Extract( the_thread->Wait.queue, the_thread ); 4000a440: d0 02 60 44 ld [ %o1 + 0x44 ], %o0 4000a444: 40 00 0c 86 call 4000d65c <_Thread_queue_Extract> 4000a448: c2 22 60 34 st %g1, [ %o1 + 0x34 ] */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; 4000a44c: 05 10 00 67 sethi %hi(0x40019c00), %g2 4000a450: c2 00 a2 a0 ld [ %g2 + 0x2a0 ], %g1 ! 40019ea0 <_Thread_Dispatch_disable_level> 4000a454: 82 00 7f ff add %g1, -1, %g1 4000a458: c2 20 a2 a0 st %g1, [ %g2 + 0x2a0 ] 4000a45c: 81 c7 e0 08 ret 4000a460: 81 e8 00 00 restore 4001386c <_Timer_Server_body>: */ Thread _Timer_Server_body( uint32_t ignored ) { 4001386c: 9d e3 bf 98 save %sp, -104, %sp /* * Initialize the "last time" markers to indicate the timer that * the server was initiated. */ _Timer_Server_ticks_last_time = _Watchdog_Ticks_since_boot; 40013870: 03 10 00 cd sethi %hi(0x40033400), %g1 40013874: c8 00 60 14 ld [ %g1 + 0x14 ], %g4 ! 40033414 <_Watchdog_Ticks_since_boot> _Timer_Server_seconds_last_time = _TOD_Seconds_since_epoch; 40013878: 03 10 00 cc sethi %hi(0x40033000), %g1 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 4001387c: 07 10 00 cc sethi %hi(0x40033000), %g3 40013880: da 00 63 48 ld [ %g1 + 0x348 ], %o5 40013884: c2 00 e2 90 ld [ %g3 + 0x290 ], %g1 /* * Initialize the "last time" markers to indicate the timer that * the server was initiated. */ _Timer_Server_ticks_last_time = _Watchdog_Ticks_since_boot; 40013888: 05 10 00 cc sethi %hi(0x40033000), %g2 4001388c: 82 00 60 01 inc %g1 40013890: c8 20 a1 9c st %g4, [ %g2 + 0x19c ] 40013894: c2 20 e2 90 st %g1, [ %g3 + 0x290 ] _Timer_Server_seconds_last_time = _TOD_Seconds_since_epoch; 40013898: 03 10 00 cc sethi %hi(0x40033000), %g1 4001389c: da 20 61 98 st %o5, [ %g1 + 0x198 ] ! 40033198 <_Timer_Server_seconds_last_time> ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 400138a0: 03 10 00 cc sethi %hi(0x40033000), %g1 */ RTEMS_INLINE_ROUTINE boolean _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 400138a4: 27 10 00 cc sethi %hi(0x40033000), %l3 400138a8: ba 10 63 8c or %g1, 0x38c, %i5 400138ac: 82 14 e1 8c or %l3, 0x18c, %g1 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 400138b0: ae 00 60 04 add %g1, 4, %l7 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 400138b4: 03 10 00 cc sethi %hi(0x40033000), %g1 */ RTEMS_INLINE_ROUTINE boolean _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 400138b8: 25 10 00 cc sethi %hi(0x40033000), %l2 400138bc: a2 10 61 ac or %g1, 0x1ac, %l1 400138c0: 82 14 a1 a0 or %l2, 0x1a0, %g1 400138c4: a8 10 00 03 mov %g3, %l4 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 400138c8: ac 00 60 04 add %g1, 4, %l6 /* * Block until there is something to do. */ _Thread_Set_state( _Timer_Server, STATES_DELAYING ); 400138cc: 21 10 00 cd sethi %hi(0x40033400), %l0 _Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog ); 400138d0: 03 10 00 cc sethi %hi(0x40033000), %g1 400138d4: aa 10 63 80 or %g1, 0x380, %l5 ! 40033380 <_Watchdog_Seconds_chain> 400138d8: d0 04 22 48 ld [ %l0 + 0x248 ], %o0 400138dc: 40 00 10 11 call 40017920 <_Thread_Set_state> 400138e0: 92 10 20 08 mov 8, %o1 */ RTEMS_INLINE_ROUTINE boolean _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 400138e4: c2 04 e1 8c ld [ %l3 + 0x18c ], %g1 _Timer_Server_reset_ticks_timer(); 400138e8: 80 a0 40 17 cmp %g1, %l7 400138ec: 22 80 00 09 be,a 40013910 <_Timer_Server_body+0xa4> 400138f0: c2 04 a1 a0 ld [ %l2 + 0x1a0 ], %g1 400138f4: d2 04 22 48 ld [ %l0 + 0x248 ], %o1 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 400138f8: c2 00 60 10 ld [ %g1 + 0x10 ], %g1 _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 400138fc: 90 10 00 1d mov %i5, %o0 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 40013900: c2 22 60 54 st %g1, [ %o1 + 0x54 ] _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 40013904: 40 00 12 c0 call 40018404 <_Watchdog_Insert> 40013908: 92 02 60 48 add %o1, 0x48, %o1 4001390c: c2 04 a1 a0 ld [ %l2 + 0x1a0 ], %g1 _Timer_Server_reset_seconds_timer(); 40013910: 80 a0 40 16 cmp %g1, %l6 40013914: 02 80 00 06 be 4001392c <_Timer_Server_body+0xc0> 40013918: 92 10 00 11 mov %l1, %o1 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 4001391c: c2 00 60 10 ld [ %g1 + 0x10 ], %g1 <== NOT EXECUTED 40013920: c2 24 60 0c st %g1, [ %l1 + 0xc ] <== NOT EXECUTED _Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog ); 40013924: 40 00 12 b8 call 40018404 <_Watchdog_Insert> <== NOT EXECUTED 40013928: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED _Thread_Enable_dispatch(); 4001392c: 7f ff ff c3 call 40013838 <_Thread_Enable_dispatch> 40013930: 01 00 00 00 nop * At this point, at least one of the timers this task relies * upon has fired. Stop them both while we process any outstanding * timers. Before we block, we will restart them. */ _Timer_Server_stop_ticks_timer(); 40013934: d0 04 22 48 ld [ %l0 + 0x248 ], %o0 40013938: 40 00 13 0b call 40018564 <_Watchdog_Remove> 4001393c: 90 02 20 48 add %o0, 0x48, %o0 _Timer_Server_stop_seconds_timer(); 40013940: 40 00 13 09 call 40018564 <_Watchdog_Remove> 40013944: 90 10 00 11 mov %l1, %o0 40013948: c2 05 22 90 ld [ %l4 + 0x290 ], %g1 4001394c: 82 00 60 01 inc %g1 40013950: c2 25 22 90 st %g1, [ %l4 + 0x290 ] * This ensures that the primary difference is that _ISR_Nest_level * is 0 for task-based timers and non-zero for the others. */ _Thread_Disable_dispatch(); _Timer_Server_process_ticks_chain(); 40013954: 7f ff ff a7 call 400137f0 <_Timer_Server_process_ticks_chain> 40013958: 01 00 00 00 nop _Timer_Server_process_seconds_chain(); 4001395c: 7f ff ff 8d call 40013790 <_Timer_Server_process_seconds_chain> 40013960: 01 00 00 00 nop /* * Block until there is something to do. */ _Thread_Set_state( _Timer_Server, STATES_DELAYING ); 40013964: 10 bf ff de b 400138dc <_Timer_Server_body+0x70> 40013968: d0 04 22 48 ld [ %l0 + 0x248 ], %o0 400137f0 <_Timer_Server_process_ticks_chain>: void _Timer_Server_process_ticks_chain(void) { Watchdog_Interval snapshot; Watchdog_Interval ticks; snapshot = _Watchdog_Ticks_since_boot; 400137f0: 03 10 00 cd sethi %hi(0x40033400), %g1 400137f4: c4 00 60 14 ld [ %g1 + 0x14 ], %g2 ! 40033414 <_Watchdog_Ticks_since_boot> if ( snapshot >= _Timer_Server_ticks_last_time ) 400137f8: 03 10 00 cc sethi %hi(0x40033000), %g1 400137fc: c2 00 61 9c ld [ %g1 + 0x19c ], %g1 ! 4003319c <_Timer_Server_ticks_last_time> 40013800: 80 a0 80 01 cmp %g2, %g1 40013804: 1a 80 00 04 bcc 40013814 <_Timer_Server_process_ticks_chain+0x24> 40013808: 94 20 80 01 sub %g2, %g1, %o2 ticks = snapshot - _Timer_Server_ticks_last_time; else ticks = (0xFFFFFFFF - _Timer_Server_ticks_last_time) + snapshot; 4001380c: 82 38 00 01 xnor %g0, %g1, %g1 <== NOT EXECUTED 40013810: 94 00 40 02 add %g1, %g2, %o2 <== NOT EXECUTED _Timer_Server_ticks_last_time = snapshot; 40013814: 03 10 00 cc sethi %hi(0x40033000), %g1 _Watchdog_Adjust( &_Timer_Ticks_chain, WATCHDOG_FORWARD, ticks ); 40013818: 11 10 00 cc sethi %hi(0x40033000), %o0 if ( snapshot >= _Timer_Server_ticks_last_time ) ticks = snapshot - _Timer_Server_ticks_last_time; else ticks = (0xFFFFFFFF - _Timer_Server_ticks_last_time) + snapshot; _Timer_Server_ticks_last_time = snapshot; 4001381c: c4 20 61 9c st %g2, [ %g1 + 0x19c ] _Watchdog_Adjust( &_Timer_Ticks_chain, WATCHDOG_FORWARD, ticks ); 40013820: 90 12 21 8c or %o0, 0x18c, %o0 40013824: 92 10 20 00 clr %o1 40013828: 82 13 c0 00 mov %o7, %g1 4001382c: 40 00 12 ce call 40018364 <_Watchdog_Adjust> 40013830: 9e 10 40 00 mov %g1, %o7 40013834: 01 00 00 00 nop 4000c72c <_Timespec_Divide>: const struct timespec *lhs, const struct timespec *rhs, uint32_t *ival_percentage, uint32_t *fval_percentage ) { 4000c72c: 9d e3 bf 98 save %sp, -104, %sp * 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; 4000c730: c2 06 40 00 ld [ %i1 ], %g1 /* * 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; 4000c734: de 06 20 04 ld [ %i0 + 4 ], %o7 right = rhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; 4000c738: 96 10 00 01 mov %g1, %o3 4000c73c: 95 38 60 1f sra %g1, 0x1f, %o2 4000c740: 83 30 60 1d srl %g1, 0x1d, %g1 4000c744: 9b 2a e0 03 sll %o3, 3, %o5 4000c748: 99 2a a0 03 sll %o2, 3, %o4 4000c74c: 98 10 40 0c or %g1, %o4, %o4 4000c750: 83 33 60 1b srl %o5, 0x1b, %g1 4000c754: 85 2b 20 05 sll %o4, 5, %g2 4000c758: 87 2b 60 05 sll %o5, 5, %g3 4000c75c: 84 10 40 02 or %g1, %g2, %g2 4000c760: 86 a0 c0 0d subcc %g3, %o5, %g3 4000c764: 83 30 e0 1a srl %g3, 0x1a, %g1 4000c768: 84 60 80 0c subx %g2, %o4, %g2 4000c76c: 9b 28 e0 06 sll %g3, 6, %o5 4000c770: 99 28 a0 06 sll %g2, 6, %o4 4000c774: 9a a3 40 03 subcc %o5, %g3, %o5 4000c778: 98 10 40 0c or %g1, %o4, %o4 4000c77c: 98 63 00 02 subx %o4, %g2, %o4 4000c780: 9a 83 40 0b addcc %o5, %o3, %o5 4000c784: 83 33 60 1e srl %o5, 0x1e, %g1 4000c788: 98 43 00 0a addx %o4, %o2, %o4 4000c78c: 87 2b 60 02 sll %o5, 2, %g3 4000c790: 85 2b 20 02 sll %o4, 2, %g2 4000c794: 9a 83 40 03 addcc %o5, %g3, %o5 4000c798: 84 10 40 02 or %g1, %g2, %g2 4000c79c: 83 33 60 1e srl %o5, 0x1e, %g1 4000c7a0: 98 43 00 02 addx %o4, %g2, %o4 4000c7a4: 87 2b 60 02 sll %o5, 2, %g3 4000c7a8: 85 2b 20 02 sll %o4, 2, %g2 4000c7ac: 9a 83 40 03 addcc %o5, %g3, %o5 4000c7b0: 84 10 40 02 or %g1, %g2, %g2 4000c7b4: 83 33 60 1e srl %o5, 0x1e, %g1 4000c7b8: 98 43 00 02 addx %o4, %g2, %o4 4000c7bc: 85 2b 20 02 sll %o4, 2, %g2 4000c7c0: 84 10 40 02 or %g1, %g2, %g2 right += rhs->tv_nsec; 4000c7c4: c2 06 60 04 ld [ %i1 + 4 ], %g1 * 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; 4000c7c8: 87 2b 60 02 sll %o5, 2, %g3 4000c7cc: 9a 83 40 03 addcc %o5, %g3, %o5 right += rhs->tv_nsec; 4000c7d0: 95 38 60 1f sra %g1, 0x1f, %o2 * 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; 4000c7d4: 98 43 00 02 addx %o4, %g2, %o4 4000c7d8: 89 33 60 17 srl %o5, 0x17, %g4 4000c7dc: 85 2b 20 09 sll %o4, 9, %g2 4000c7e0: 87 2b 60 09 sll %o5, 9, %g3 4000c7e4: 84 11 00 02 or %g4, %g2, %g2 right += rhs->tv_nsec; 4000c7e8: 96 80 c0 01 addcc %g3, %g1, %o3 4000c7ec: 94 40 80 0a addx %g2, %o2, %o2 if ( right == 0 ) { 4000c7f0: 80 92 80 0b orcc %o2, %o3, %g0 4000c7f4: 12 80 00 06 bne 4000c80c <_Timespec_Divide+0xe0> 4000c7f8: f0 06 00 00 ld [ %i0 ], %i0 *ival_percentage = 0; 4000c7fc: c0 26 80 00 clr [ %i2 ] <== NOT EXECUTED *fval_percentage = 0; 4000c800: c0 26 c0 00 clr [ %i3 ] <== NOT EXECUTED 4000c804: 81 c7 e0 08 ret <== NOT EXECUTED 4000c808: 81 e8 00 00 restore <== 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; 4000c80c: 83 36 20 1d srl %i0, 0x1d, %g1 4000c810: 9b 2e 20 03 sll %i0, 3, %o5 4000c814: 91 3e 20 1f sra %i0, 0x1f, %o0 4000c818: 99 2a 20 03 sll %o0, 3, %o4 4000c81c: 98 10 40 0c or %g1, %o4, %o4 4000c820: 83 33 60 1b srl %o5, 0x1b, %g1 4000c824: 85 2b 20 05 sll %o4, 5, %g2 4000c828: 87 2b 60 05 sll %o5, 5, %g3 4000c82c: 84 10 40 02 or %g1, %g2, %g2 4000c830: 86 a0 c0 0d subcc %g3, %o5, %g3 4000c834: 83 30 e0 1a srl %g3, 0x1a, %g1 4000c838: 84 60 80 0c subx %g2, %o4, %g2 4000c83c: 9b 28 e0 06 sll %g3, 6, %o5 4000c840: 99 28 a0 06 sll %g2, 6, %o4 4000c844: 9a a3 40 03 subcc %o5, %g3, %o5 4000c848: 98 10 40 0c or %g1, %o4, %o4 4000c84c: 98 63 00 02 subx %o4, %g2, %o4 4000c850: 9a 83 40 18 addcc %o5, %i0, %o5 4000c854: 83 33 60 1e srl %o5, 0x1e, %g1 4000c858: 98 43 00 08 addx %o4, %o0, %o4 4000c85c: 87 2b 60 02 sll %o5, 2, %g3 4000c860: 85 2b 20 02 sll %o4, 2, %g2 4000c864: 9a 83 40 03 addcc %o5, %g3, %o5 4000c868: 84 10 40 02 or %g1, %g2, %g2 4000c86c: 83 33 60 1e srl %o5, 0x1e, %g1 4000c870: 98 43 00 02 addx %o4, %g2, %o4 4000c874: 87 2b 60 02 sll %o5, 2, %g3 4000c878: 85 2b 20 02 sll %o4, 2, %g2 4000c87c: 9a 83 40 03 addcc %o5, %g3, %o5 4000c880: 84 10 40 02 or %g1, %g2, %g2 4000c884: 83 33 60 1e srl %o5, 0x1e, %g1 4000c888: 98 43 00 02 addx %o4, %g2, %o4 4000c88c: 87 2b 60 02 sll %o5, 2, %g3 4000c890: 85 2b 20 02 sll %o4, 2, %g2 4000c894: 9a 83 40 03 addcc %o5, %g3, %o5 4000c898: 84 10 40 02 or %g1, %g2, %g2 4000c89c: 83 33 60 17 srl %o5, 0x17, %g1 4000c8a0: 98 43 00 02 addx %o4, %g2, %o4 4000c8a4: 93 2b 60 09 sll %o5, 9, %o1 4000c8a8: 91 2b 20 09 sll %o4, 9, %o0 * Put it back in the timespec result. * * TODO: Rounding on the last digit of the fval. */ answer = (left * 100000) / right; 4000c8ac: 92 82 40 0f addcc %o1, %o7, %o1 /* * For math simplicity just convert the timespec to nanoseconds * in a 64-bit integer. */ left = lhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; 4000c8b0: 90 10 40 08 or %g1, %o0, %o0 * Put it back in the timespec result. * * TODO: Rounding on the last digit of the fval. */ answer = (left * 100000) / right; 4000c8b4: 83 32 60 1e srl %o1, 0x1e, %g1 4000c8b8: a1 3b e0 1f sra %o7, 0x1f, %l0 4000c8bc: 87 2a 60 02 sll %o1, 2, %g3 4000c8c0: 90 42 00 10 addx %o0, %l0, %o0 4000c8c4: 85 2a 20 02 sll %o0, 2, %g2 4000c8c8: 84 10 40 02 or %g1, %g2, %g2 4000c8cc: 83 30 e0 1b srl %g3, 0x1b, %g1 4000c8d0: 99 28 a0 05 sll %g2, 5, %o4 4000c8d4: 9b 28 e0 05 sll %g3, 5, %o5 4000c8d8: 98 10 40 0c or %g1, %o4, %o4 4000c8dc: 9a a3 40 03 subcc %o5, %g3, %o5 4000c8e0: 98 63 00 02 subx %o4, %g2, %o4 4000c8e4: 9a 83 40 09 addcc %o5, %o1, %o5 4000c8e8: 83 33 60 1e srl %o5, 0x1e, %g1 4000c8ec: 98 43 00 08 addx %o4, %o0, %o4 4000c8f0: 87 2b 60 02 sll %o5, 2, %g3 4000c8f4: 85 2b 20 02 sll %o4, 2, %g2 4000c8f8: 9a 83 40 03 addcc %o5, %g3, %o5 4000c8fc: 84 10 40 02 or %g1, %g2, %g2 4000c900: 83 33 60 1e srl %o5, 0x1e, %g1 4000c904: 87 2b 60 02 sll %o5, 2, %g3 4000c908: 98 43 00 02 addx %o4, %g2, %o4 4000c90c: 9a 83 40 03 addcc %o5, %g3, %o5 4000c910: 85 2b 20 02 sll %o4, 2, %g2 4000c914: 84 10 40 02 or %g1, %g2, %g2 4000c918: 83 33 60 1b srl %o5, 0x1b, %g1 4000c91c: 98 43 00 02 addx %o4, %g2, %o4 4000c920: 93 2b 60 05 sll %o5, 5, %o1 4000c924: 91 2b 20 05 sll %o4, 5, %o0 4000c928: 40 00 32 59 call 4001928c <__udivdi3> 4000c92c: 90 10 40 08 or %g1, %o0, %o0 *ival_percentage = answer / 1000; 4000c930: 94 10 20 00 clr %o2 * Put it back in the timespec result. * * TODO: Rounding on the last digit of the fval. */ answer = (left * 100000) / right; 4000c934: a0 10 00 08 mov %o0, %l0 4000c938: a2 10 00 09 mov %o1, %l1 *ival_percentage = answer / 1000; 4000c93c: 96 10 23 e8 mov 0x3e8, %o3 4000c940: 40 00 32 53 call 4001928c <__udivdi3> 4000c944: 90 10 00 10 mov %l0, %o0 *fval_percentage = answer % 1000; 4000c948: 90 10 00 10 mov %l0, %o0 * TODO: Rounding on the last digit of the fval. */ answer = (left * 100000) / right; *ival_percentage = answer / 1000; 4000c94c: d2 26 80 00 st %o1, [ %i2 ] *fval_percentage = answer % 1000; 4000c950: 94 10 20 00 clr %o2 4000c954: 92 10 00 11 mov %l1, %o1 4000c958: 40 00 33 2c call 40019608 <__umoddi3> 4000c95c: 96 10 23 e8 mov 0x3e8, %o3 4000c960: d2 26 c0 00 st %o1, [ %i3 ] 4000c964: 81 c7 e0 08 ret 4000c968: 81 e8 00 00 restore 400145f0 <_Timespec_From_ticks>: void _Timespec_From_ticks( uint32_t ticks, struct timespec *time ) { 400145f0: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED uint32_t usecs; usecs = ticks * _TOD_Microseconds_per_tick; 400145f4: 03 10 00 a2 sethi %hi(0x40028800), %g1 <== NOT EXECUTED 400145f8: d2 00 60 7c ld [ %g1 + 0x7c ], %o1 ! 4002887c <_TOD_Microseconds_per_tick> <== NOT EXECUTED 400145fc: 40 00 2e e8 call 4002019c <.umul> <== NOT EXECUTED 40014600: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED time->tv_sec = usecs / TOD_MICROSECONDS_PER_SECOND; 40014604: 21 00 03 d0 sethi %hi(0xf4000), %l0 <== NOT EXECUTED struct timespec *time ) { uint32_t usecs; usecs = ticks * _TOD_Microseconds_per_tick; 40014608: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED time->tv_sec = usecs / TOD_MICROSECONDS_PER_SECOND; 4001460c: 7f ff b4 5b call 40001778 <.udiv> <== NOT EXECUTED 40014610: 92 14 22 40 or %l0, 0x240, %o1 <== NOT EXECUTED time->tv_nsec = (usecs % TOD_MICROSECONDS_PER_SECOND) * 40014614: 92 14 22 40 or %l0, 0x240, %o1 <== NOT EXECUTED { uint32_t usecs; usecs = ticks * _TOD_Microseconds_per_tick; time->tv_sec = usecs / TOD_MICROSECONDS_PER_SECOND; 40014618: d0 26 40 00 st %o0, [ %i1 ] <== NOT EXECUTED time->tv_nsec = (usecs % TOD_MICROSECONDS_PER_SECOND) * 4001461c: 40 00 2f 1a call 40020284 <.urem> <== NOT EXECUTED 40014620: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 40014624: 85 2a 20 02 sll %o0, 2, %g2 <== NOT EXECUTED 40014628: 83 2a 20 07 sll %o0, 7, %g1 <== NOT EXECUTED 4001462c: 82 20 40 02 sub %g1, %g2, %g1 <== NOT EXECUTED 40014630: 82 00 40 08 add %g1, %o0, %g1 <== NOT EXECUTED 40014634: 83 28 60 03 sll %g1, 3, %g1 <== NOT EXECUTED 40014638: c2 26 60 04 st %g1, [ %i1 + 4 ] <== NOT EXECUTED TOD_NANOSECONDS_PER_MICROSECOND; } 4001463c: 81 c7 e0 08 ret <== NOT EXECUTED 40014640: 81 e8 00 00 restore <== NOT EXECUTED 40014644 <_Timespec_Is_valid>: boolean _Timespec_Is_valid( const struct timespec *time ) { if ( !time ) 40014644: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 40014648: 02 80 00 0e be 40014680 <_Timespec_Is_valid+0x3c> <== NOT EXECUTED 4001464c: 01 00 00 00 nop <== NOT EXECUTED return FALSE; if ( time->tv_sec < 0 ) 40014650: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED 40014654: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40014658: 06 80 00 0a bl 40014680 <_Timespec_Is_valid+0x3c> <== NOT EXECUTED 4001465c: 01 00 00 00 nop <== NOT EXECUTED return FALSE; if ( time->tv_nsec < 0 ) 40014660: d0 02 20 04 ld [ %o0 + 4 ], %o0 <== NOT EXECUTED 40014664: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 40014668: 06 80 00 06 bl 40014680 <_Timespec_Is_valid+0x3c> <== NOT EXECUTED 4001466c: 03 0e e6 b2 sethi %hi(0x3b9ac800), %g1 <== NOT EXECUTED 40014670: 82 10 61 ff or %g1, 0x1ff, %g1 ! 3b9ac9ff <== NOT EXECUTED 40014674: 80 a0 40 08 cmp %g1, %o0 <== NOT EXECUTED 40014678: 81 c3 e0 08 retl <== NOT EXECUTED 4001467c: 90 60 3f ff subx %g0, -1, %o0 <== NOT EXECUTED if ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) return FALSE; return TRUE; } 40014680: 81 c3 e0 08 retl <== NOT EXECUTED 40014684: 90 10 20 00 clr %o0 <== NOT EXECUTED 40014688 <_Timespec_To_ticks>: */ uint32_t _Timespec_To_ticks( const struct timespec *time ) { 40014688: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED uint32_t ticks; if ( (time->tv_sec == 0) && (time->tv_nsec == 0) ) 4001468c: e0 06 00 00 ld [ %i0 ], %l0 <== NOT EXECUTED 40014690: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED 40014694: 12 80 00 06 bne 400146ac <_Timespec_To_ticks+0x24> <== NOT EXECUTED 40014698: a4 10 00 18 mov %i0, %l2 <== NOT EXECUTED 4001469c: c2 06 20 04 ld [ %i0 + 4 ], %g1 <== NOT EXECUTED 400146a0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 400146a4: 02 80 00 13 be 400146f0 <_Timespec_To_ticks+0x68> <== NOT EXECUTED 400146a8: b0 10 20 00 clr %i0 <== NOT EXECUTED return 0; ticks = time->tv_sec * TOD_TICKS_PER_SECOND; 400146ac: 03 10 00 a2 sethi %hi(0x40028800), %g1 <== NOT EXECUTED 400146b0: e2 00 60 7c ld [ %g1 + 0x7c ], %l1 ! 4002887c <_TOD_Microseconds_per_tick> <== NOT EXECUTED 400146b4: 11 00 03 d0 sethi %hi(0xf4000), %o0 <== NOT EXECUTED 400146b8: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED 400146bc: 7f ff b4 2f call 40001778 <.udiv> <== NOT EXECUTED 400146c0: 90 12 22 40 or %o0, 0x240, %o0 <== NOT EXECUTED 400146c4: 40 00 2e b6 call 4002019c <.umul> <== NOT EXECUTED 400146c8: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 400146cc: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED ticks += (time->tv_nsec / TOD_NANOSECONDS_PER_MICROSECOND) / 400146d0: d0 04 a0 04 ld [ %l2 + 4 ], %o0 <== NOT EXECUTED 400146d4: 7f ff b4 29 call 40001778 <.udiv> <== NOT EXECUTED 400146d8: 92 10 23 e8 mov 0x3e8, %o1 <== NOT EXECUTED 400146dc: 7f ff b4 27 call 40001778 <.udiv> <== NOT EXECUTED 400146e0: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED _TOD_Microseconds_per_tick; if (ticks) 400146e4: b0 82 00 10 addcc %o0, %l0, %i0 <== NOT EXECUTED 400146e8: 22 80 00 02 be,a 400146f0 <_Timespec_To_ticks+0x68> <== NOT EXECUTED 400146ec: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED return ticks; return 1; } 400146f0: 81 c7 e0 08 ret <== NOT EXECUTED 400146f4: 81 e8 00 00 restore <== NOT EXECUTED 4000d950 <_User_extensions_Add_API_set>: */ void _User_extensions_Add_API_set ( User_extensions_Control *the_extension ) { 4000d950: 9d e3 bf 98 save %sp, -104, %sp _Chain_Append( &_User_extensions_List, &the_extension->Node ); 4000d954: 11 10 00 68 sethi %hi(0x4001a000), %o0 4000d958: 92 10 00 18 mov %i0, %o1 4000d95c: 7f ff e7 29 call 40007600 <_Chain_Append> 4000d960: 90 12 21 24 or %o0, 0x124, %o0 /* * If a switch handler is present, append it to the switch chain. */ if ( the_extension->Callouts.thread_switch != NULL ) { 4000d964: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 4000d968: 80 a0 60 00 cmp %g1, 0 4000d96c: 02 80 00 06 be 4000d984 <_User_extensions_Add_API_set+0x34> 4000d970: b2 06 20 08 add %i0, 8, %i1 the_extension->Switch.thread_switch = the_extension->Callouts.thread_switch; 4000d974: c2 26 20 10 st %g1, [ %i0 + 0x10 ] _Chain_Append( 4000d978: 31 10 00 67 sethi %hi(0x40019c00), %i0 4000d97c: 7f ff e7 21 call 40007600 <_Chain_Append> 4000d980: 91 ee 22 a4 restore %i0, 0x2a4, %o0 4000d984: 81 c7 e0 08 ret <== NOT EXECUTED 4000d988: 81 e8 00 00 restore <== NOT EXECUTED 4000aaf0 <_User_extensions_Fatal>: void _User_extensions_Fatal ( Internal_errors_Source the_source, boolean is_internal, uint32_t the_error ) { 4000aaf0: 9d e3 bf 98 save %sp, -104, %sp Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; 4000aaf4: 03 10 00 68 sethi %hi(0x4001a000), %g1 4000aaf8: 82 10 61 24 or %g1, 0x124, %g1 ! 4001a124 <_User_extensions_List> 4000aafc: e0 00 60 08 ld [ %g1 + 8 ], %l0 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Head( Chain_Control *the_chain ) { return (Chain_Node *) the_chain; 4000ab00: 10 80 00 09 b 4000ab24 <_User_extensions_Fatal+0x34> 4000ab04: a2 10 00 01 mov %g1, %l1 !_Chain_Is_head( &_User_extensions_List, the_node ) ; the_node = the_node->previous ) { the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.fatal != NULL ) 4000ab08: 80 a0 60 00 cmp %g1, 0 4000ab0c: 02 80 00 05 be 4000ab20 <_User_extensions_Fatal+0x30> 4000ab10: 90 10 00 18 mov %i0, %o0 (*the_extension->Callouts.fatal)( the_source, is_internal, the_error ); 4000ab14: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED 4000ab18: 9f c0 40 00 call %g1 <== NOT EXECUTED 4000ab1c: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; !_Chain_Is_head( &_User_extensions_List, the_node ) ; the_node = the_node->previous ) { 4000ab20: e0 04 20 04 ld [ %l0 + 4 ], %l0 { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; !_Chain_Is_head( &_User_extensions_List, the_node ) ; 4000ab24: 80 a4 00 11 cmp %l0, %l1 4000ab28: 32 bf ff f8 bne,a 4000ab08 <_User_extensions_Fatal+0x18> 4000ab2c: c2 04 20 30 ld [ %l0 + 0x30 ], %g1 the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.fatal != NULL ) (*the_extension->Callouts.fatal)( the_source, is_internal, the_error ); } } 4000ab30: 81 c7 e0 08 ret 4000ab34: 81 e8 00 00 restore 4000f3ac <_User_extensions_Remove_set>: */ void _User_extensions_Remove_set ( User_extensions_Control *the_extension ) { 4000f3ac: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED _Chain_Extract( &the_extension->Node ); 4000f3b0: 40 00 11 7e call 400139a8 <_Chain_Extract> <== NOT EXECUTED 4000f3b4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED /* * If a switch handler is present, remove it. */ if ( the_extension->Callouts.thread_switch != NULL ) 4000f3b8: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 <== NOT EXECUTED 4000f3bc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000f3c0: 02 80 00 04 be 4000f3d0 <_User_extensions_Remove_set+0x24> <== NOT EXECUTED 4000f3c4: 01 00 00 00 nop <== NOT EXECUTED _Chain_Extract( &the_extension->Switch.Node ); 4000f3c8: 40 00 11 78 call 400139a8 <_Chain_Extract> <== NOT EXECUTED 4000f3cc: 91 ee 20 08 restore %i0, 8, %o0 <== NOT EXECUTED 4000f3d0: 81 c7 e0 08 ret <== NOT EXECUTED 4000f3d4: 81 e8 00 00 restore <== NOT EXECUTED 4000aca8 <_Watchdog_Insert>: void _Watchdog_Insert( Chain_Control *header, Watchdog_Control *the_watchdog ) { 4000aca8: 9d e3 bf 98 save %sp, -104, %sp Watchdog_Control *after; uint32_t insert_isr_nest_level; Watchdog_Interval delta_interval; insert_isr_nest_level = _ISR_Nest_level; 4000acac: 03 10 00 67 sethi %hi(0x40019c00), %g1 void _Watchdog_Insert( Chain_Control *header, Watchdog_Control *the_watchdog ) { 4000acb0: aa 10 00 18 mov %i0, %l5 Watchdog_Control *after; uint32_t insert_isr_nest_level; Watchdog_Interval delta_interval; insert_isr_nest_level = _ISR_Nest_level; 4000acb4: e6 00 63 64 ld [ %g1 + 0x364 ], %l3 _ISR_Disable( level ); 4000acb8: 7f ff dc 7e call 40001eb0 4000acbc: 01 00 00 00 nop 4000acc0: b0 10 00 08 mov %o0, %i0 /* * 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 ) { 4000acc4: c2 06 60 08 ld [ %i1 + 8 ], %g1 4000acc8: 80 a0 60 00 cmp %g1, 0 4000accc: 02 80 00 03 be 4000acd8 <_Watchdog_Insert+0x30> 4000acd0: 03 10 00 68 sethi %hi(0x4001a000), %g1 _ISR_Enable( level ); 4000acd4: 30 80 00 37 b,a 4000adb0 <_Watchdog_Insert+0x108> <== NOT EXECUTED return; } the_watchdog->state = WATCHDOG_BEING_INSERTED; _Watchdog_Sync_count++; 4000acd8: c4 00 60 20 ld [ %g1 + 0x20 ], %g2 ! 4001a020 <_Watchdog_Sync_count> if ( the_watchdog->state != WATCHDOG_INACTIVE ) { _ISR_Enable( level ); return; } the_watchdog->state = WATCHDOG_BEING_INSERTED; 4000acdc: 86 10 20 01 mov 1, %g3 _Watchdog_Sync_count++; 4000ace0: 84 00 a0 01 inc %g2 if ( the_watchdog->state != WATCHDOG_INACTIVE ) { _ISR_Enable( level ); return; } the_watchdog->state = WATCHDOG_BEING_INSERTED; 4000ace4: c6 26 60 08 st %g3, [ %i1 + 8 ] _Watchdog_Sync_count++; 4000ace8: c4 20 60 20 st %g2, [ %g1 + 0x20 ] if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) { goto exit_insert; } if ( _Watchdog_Sync_level > insert_isr_nest_level ) { 4000acec: 29 10 00 67 sethi %hi(0x40019c00), %l4 the_watchdog->state = WATCHDOG_BEING_INSERTED; _Watchdog_Sync_count++; restart: delta_interval = the_watchdog->initial; 4000acf0: e4 06 60 0c ld [ %i1 + 0xc ], %l2 * cache *header!! * * Till Straumann, 7/2003 (gcc-3.2.2 -O4 on powerpc) * */ for ( after = (Watchdog_Control *) ((volatile Chain_Control *)header)->first ; 4000acf4: e2 05 40 00 ld [ %l5 ], %l1 ; after = _Watchdog_Next( after ) ) { if ( delta_interval == 0 || !_Watchdog_Next( after ) ) 4000acf8: 80 a4 a0 00 cmp %l2, 0 4000acfc: 22 80 00 1c be,a 4000ad6c <_Watchdog_Insert+0xc4> 4000ad00: c4 04 60 04 ld [ %l1 + 4 ], %g2 RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_Next( Watchdog_Control *the_watchdog ) { return ( (Watchdog_Control *) the_watchdog->Node.next ); 4000ad04: c2 04 40 00 ld [ %l1 ], %g1 4000ad08: 80 a0 60 00 cmp %g1, 0 4000ad0c: 22 80 00 18 be,a 4000ad6c <_Watchdog_Insert+0xc4> 4000ad10: c4 04 60 04 ld [ %l1 + 4 ], %g2 break; if ( delta_interval < after->delta_interval ) { 4000ad14: e0 04 60 10 ld [ %l1 + 0x10 ], %l0 4000ad18: 80 a4 80 10 cmp %l2, %l0 4000ad1c: 1a 80 00 04 bcc 4000ad2c <_Watchdog_Insert+0x84> 4000ad20: 82 24 00 12 sub %l0, %l2, %g1 after->delta_interval -= delta_interval; 4000ad24: 10 80 00 11 b 4000ad68 <_Watchdog_Insert+0xc0> 4000ad28: c2 24 60 10 st %g1, [ %l1 + 0x10 ] * used around this flash point allowed interrupts to execute * which violated the design assumptions. The critical section * mechanism used here WAS redesigned to address this. */ _ISR_Flash( level ); 4000ad2c: 7f ff dc 65 call 40001ec0 4000ad30: 90 10 00 18 mov %i0, %o0 4000ad34: 7f ff dc 5f call 40001eb0 4000ad38: 01 00 00 00 nop if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) { 4000ad3c: c2 06 60 08 ld [ %i1 + 8 ], %g1 4000ad40: 80 a0 60 01 cmp %g1, 1 4000ad44: 12 80 00 15 bne 4000ad98 <_Watchdog_Insert+0xf0> 4000ad48: a4 24 80 10 sub %l2, %l0, %l2 goto exit_insert; } if ( _Watchdog_Sync_level > insert_isr_nest_level ) { 4000ad4c: c2 05 23 78 ld [ %l4 + 0x378 ], %g1 4000ad50: 80 a0 40 13 cmp %g1, %l3 4000ad54: 28 bf ff e9 bleu,a 4000acf8 <_Watchdog_Insert+0x50> 4000ad58: e2 04 40 00 ld [ %l1 ], %l1 _Watchdog_Sync_level = insert_isr_nest_level; 4000ad5c: e6 25 23 78 st %l3, [ %l4 + 0x378 ] the_watchdog->state = WATCHDOG_BEING_INSERTED; _Watchdog_Sync_count++; restart: delta_interval = the_watchdog->initial; 4000ad60: 10 bf ff e5 b 4000acf4 <_Watchdog_Insert+0x4c> 4000ad64: e4 06 60 0c ld [ %i1 + 0xc ], %l2 _Watchdog_Activate( the_watchdog ); the_watchdog->delta_interval = delta_interval; _Chain_Insert_unprotected( after->Node.previous, &the_watchdog->Node ); 4000ad68: c4 04 60 04 ld [ %l1 + 4 ], %g2 the_watchdog->start_time = _Watchdog_Ticks_since_boot; 4000ad6c: 03 10 00 68 sethi %hi(0x4001a000), %g1 ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; 4000ad70: c6 00 80 00 ld [ %g2 ], %g3 4000ad74: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 after_node->next = the_node; 4000ad78: f2 20 80 00 st %i1, [ %g2 ] Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; 4000ad7c: c4 26 60 04 st %g2, [ %i1 + 4 ] 4000ad80: c2 26 60 14 st %g1, [ %i1 + 0x14 ] } } _Watchdog_Activate( the_watchdog ); the_watchdog->delta_interval = delta_interval; 4000ad84: e4 26 60 10 st %l2, [ %i1 + 0x10 ] RTEMS_INLINE_ROUTINE void _Watchdog_Activate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_ACTIVE; 4000ad88: 82 10 20 02 mov 2, %g1 before_node = after_node->next; after_node->next = the_node; the_node->next = before_node; before_node->previous = the_node; 4000ad8c: f2 20 e0 04 st %i1, [ %g3 + 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; 4000ad90: c6 26 40 00 st %g3, [ %i1 ] 4000ad94: c2 26 60 08 st %g1, [ %i1 + 8 ] _Chain_Insert_unprotected( after->Node.previous, &the_watchdog->Node ); the_watchdog->start_time = _Watchdog_Ticks_since_boot; exit_insert: _Watchdog_Sync_level = insert_isr_nest_level; 4000ad98: 03 10 00 67 sethi %hi(0x40019c00), %g1 _Watchdog_Sync_count--; 4000ad9c: 05 10 00 68 sethi %hi(0x4001a000), %g2 _Chain_Insert_unprotected( after->Node.previous, &the_watchdog->Node ); the_watchdog->start_time = _Watchdog_Ticks_since_boot; exit_insert: _Watchdog_Sync_level = insert_isr_nest_level; 4000ada0: e6 20 63 78 st %l3, [ %g1 + 0x378 ] _Watchdog_Sync_count--; 4000ada4: c2 00 a0 20 ld [ %g2 + 0x20 ], %g1 4000ada8: 82 00 7f ff add %g1, -1, %g1 4000adac: c2 20 a0 20 st %g1, [ %g2 + 0x20 ] _ISR_Enable( level ); 4000adb0: 7f ff dc 44 call 40001ec0 4000adb4: 81 e8 00 00 restore 4000adb8: 01 00 00 00 nop 4000ae08 <_Watchdog_Remove>: */ Watchdog_States _Watchdog_Remove( Watchdog_Control *the_watchdog ) { 4000ae08: 9d e3 bf 98 save %sp, -104, %sp ISR_Level level; Watchdog_States previous_state; Watchdog_Control *next_watchdog; _ISR_Disable( level ); 4000ae0c: 7f ff dc 29 call 40001eb0 4000ae10: 01 00 00 00 nop previous_state = the_watchdog->state; 4000ae14: e0 06 20 08 ld [ %i0 + 8 ], %l0 switch ( previous_state ) { 4000ae18: 80 a4 20 01 cmp %l0, 1 4000ae1c: 22 80 00 1e be,a 4000ae94 <_Watchdog_Remove+0x8c> 4000ae20: c0 26 20 08 clr [ %i0 + 8 ] <== NOT EXECUTED 4000ae24: 0a 80 00 1d bcs 4000ae98 <_Watchdog_Remove+0x90> 4000ae28: 03 10 00 68 sethi %hi(0x4001a000), %g1 4000ae2c: 80 a4 20 03 cmp %l0, 3 4000ae30: 18 80 00 1a bgu 4000ae98 <_Watchdog_Remove+0x90> 4000ae34: 01 00 00 00 nop 4000ae38: c6 06 00 00 ld [ %i0 ], %g3 break; case WATCHDOG_ACTIVE: case WATCHDOG_REMOVE_IT: the_watchdog->state = WATCHDOG_INACTIVE; 4000ae3c: c0 26 20 08 clr [ %i0 + 8 ] next_watchdog = _Watchdog_Next( the_watchdog ); if ( _Watchdog_Next(next_watchdog) ) 4000ae40: c2 00 c0 00 ld [ %g3 ], %g1 4000ae44: 80 a0 60 00 cmp %g1, 0 4000ae48: 02 80 00 07 be 4000ae64 <_Watchdog_Remove+0x5c> 4000ae4c: 03 10 00 68 sethi %hi(0x4001a000), %g1 next_watchdog->delta_interval += the_watchdog->delta_interval; 4000ae50: c2 00 e0 10 ld [ %g3 + 0x10 ], %g1 4000ae54: c4 06 20 10 ld [ %i0 + 0x10 ], %g2 4000ae58: 82 00 40 02 add %g1, %g2, %g1 4000ae5c: c2 20 e0 10 st %g1, [ %g3 + 0x10 ] if ( _Watchdog_Sync_count ) 4000ae60: 03 10 00 68 sethi %hi(0x4001a000), %g1 4000ae64: c2 00 60 20 ld [ %g1 + 0x20 ], %g1 ! 4001a020 <_Watchdog_Sync_count> 4000ae68: 80 a0 60 00 cmp %g1, 0 4000ae6c: 22 80 00 07 be,a 4000ae88 <_Watchdog_Remove+0x80> 4000ae70: c4 06 00 00 ld [ %i0 ], %g2 _Watchdog_Sync_level = _ISR_Nest_level; 4000ae74: 03 10 00 67 sethi %hi(0x40019c00), %g1 <== NOT EXECUTED 4000ae78: c4 00 63 64 ld [ %g1 + 0x364 ], %g2 ! 40019f64 <_ISR_Nest_level> <== NOT EXECUTED 4000ae7c: 03 10 00 67 sethi %hi(0x40019c00), %g1 <== NOT EXECUTED 4000ae80: c4 20 63 78 st %g2, [ %g1 + 0x378 ] ! 40019f78 <_Watchdog_Sync_level> <== NOT EXECUTED ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; 4000ae84: c4 06 00 00 ld [ %i0 ], %g2 <== NOT EXECUTED previous = the_node->previous; 4000ae88: c2 06 20 04 ld [ %i0 + 4 ], %g1 next->previous = previous; previous->next = next; 4000ae8c: c4 20 40 00 st %g2, [ %g1 ] Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; next->previous = previous; 4000ae90: c2 20 a0 04 st %g1, [ %g2 + 4 ] _Chain_Extract_unprotected( &the_watchdog->Node ); break; } the_watchdog->stop_time = _Watchdog_Ticks_since_boot; 4000ae94: 03 10 00 68 sethi %hi(0x4001a000), %g1 4000ae98: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 ! 4001a024 <_Watchdog_Ticks_since_boot> 4000ae9c: c2 26 20 18 st %g1, [ %i0 + 0x18 ] _ISR_Enable( level ); 4000aea0: 7f ff dc 08 call 40001ec0 4000aea4: b0 10 00 10 mov %l0, %i0 return( previous_state ); } 4000aea8: 81 c7 e0 08 ret 4000aeac: 81 e8 00 00 restore 4000af54 <_Workspace_Allocate_or_fatal_error>: */ void *_Workspace_Allocate_or_fatal_error( size_t size ) { 4000af54: 9d e3 bf 98 save %sp, -104, %sp RTEMS_INLINE_ROUTINE void *_Workspace_Allocate( size_t size ) { return _Heap_Allocate( &_Workspace_Area, size ); 4000af58: 11 10 00 67 sethi %hi(0x40019c00), %o0 4000af5c: 92 10 00 18 mov %i0, %o1 4000af60: 7f ff f2 e5 call 40007af4 <_Heap_Allocate> 4000af64: 90 12 22 ec or %o0, 0x2ec, %o0 void *memory; memory = _Workspace_Allocate( size ); if ( memory == NULL ) 4000af68: b0 92 20 00 orcc %o0, 0, %i0 4000af6c: 12 80 00 04 bne 4000af7c <_Workspace_Allocate_or_fatal_error+0x28> 4000af70: 92 10 20 01 mov 1, %o1 _Internal_error_Occurred( 4000af74: 7f ff f4 0b call 40007fa0 <_Internal_error_Occurred> <== NOT EXECUTED 4000af78: 94 10 20 04 mov 4, %o2 <== NOT EXECUTED TRUE, INTERNAL_ERROR_WORKSPACE_ALLOCATION ); return memory; } 4000af7c: 81 c7 e0 08 ret 4000af80: 81 e8 00 00 restore 4000af84 <_Workspace_Handler_initialization>: void _Workspace_Handler_initialization( void *starting_address, size_t size ) { 4000af84: 9d e3 bf 98 save %sp, -104, %sp uint32_t *zero_out_array; uint32_t index; uint32_t memory_available; if ( !starting_address || !_Addresses_Is_aligned( starting_address ) ) 4000af88: 80 a6 20 00 cmp %i0, 0 4000af8c: 02 80 00 04 be 4000af9c <_Workspace_Handler_initialization+0x18> 4000af90: 80 8e 20 07 btst 7, %i0 4000af94: 02 80 00 07 be 4000afb0 <_Workspace_Handler_initialization+0x2c> 4000af98: 03 10 00 67 sethi %hi(0x40019c00), %g1 _Internal_error_Occurred( 4000af9c: 90 10 20 00 clr %o0 <== NOT EXECUTED 4000afa0: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 4000afa4: 7f ff f3 ff call 40007fa0 <_Internal_error_Occurred> <== NOT EXECUTED 4000afa8: 94 10 20 02 mov 2, %o2 <== NOT EXECUTED INTERNAL_ERROR_CORE, TRUE, INTERNAL_ERROR_INVALID_WORKSPACE_ADDRESS ); if ( _CPU_Table.do_zero_of_workspace ) { 4000afac: 03 10 00 67 sethi %hi(0x40019c00), %g1 <== NOT EXECUTED 4000afb0: c2 00 62 c4 ld [ %g1 + 0x2c4 ], %g1 ! 40019ec4 <_CPU_Table+0x10> 4000afb4: 84 10 20 00 clr %g2 4000afb8: 80 a0 60 00 cmp %g1, 0 4000afbc: 12 80 00 06 bne 4000afd4 <_Workspace_Handler_initialization+0x50> 4000afc0: 87 36 60 02 srl %i1, 2, %g3 index < size / sizeof( uint32_t ) ; index++ ) zero_out_array[ index ] = 0; } memory_available = _Heap_Initialize( 4000afc4: 10 80 00 08 b 4000afe4 <_Workspace_Handler_initialization+0x60> 4000afc8: 92 10 00 18 mov %i0, %o1 ); if ( _CPU_Table.do_zero_of_workspace ) { for( zero_out_array = (uint32_t *) starting_address, index = 0 ; index < size / sizeof( uint32_t ) ; index++ ) 4000afcc: 84 00 a0 01 inc %g2 <== NOT EXECUTED zero_out_array[ index ] = 0; 4000afd0: c0 20 40 18 clr [ %g1 + %i0 ] <== NOT EXECUTED INTERNAL_ERROR_INVALID_WORKSPACE_ADDRESS ); if ( _CPU_Table.do_zero_of_workspace ) { for( zero_out_array = (uint32_t *) starting_address, index = 0 ; index < size / sizeof( uint32_t ) ; 4000afd4: 80 a0 80 03 cmp %g2, %g3 <== NOT EXECUTED 4000afd8: 0a bf ff fd bcs 4000afcc <_Workspace_Handler_initialization+0x48> <== NOT EXECUTED 4000afdc: 83 28 a0 02 sll %g2, 2, %g1 <== NOT EXECUTED index++ ) zero_out_array[ index ] = 0; } memory_available = _Heap_Initialize( 4000afe0: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 4000afe4: 94 10 00 19 mov %i1, %o2 4000afe8: 11 10 00 67 sethi %hi(0x40019c00), %o0 4000afec: 96 10 20 08 mov 8, %o3 4000aff0: 7f ff f3 a2 call 40007e78 <_Heap_Initialize> 4000aff4: 90 12 22 ec or %o0, 0x2ec, %o0 starting_address, size, CPU_HEAP_ALIGNMENT ); if ( memory_available == 0 ) 4000aff8: 80 a2 20 00 cmp %o0, 0 4000affc: 12 80 00 05 bne 4000b010 <_Workspace_Handler_initialization+0x8c> 4000b000: b0 10 20 00 clr %i0 _Internal_error_Occurred( 4000b004: b2 10 20 01 mov 1, %i1 <== NOT EXECUTED 4000b008: 7f ff f3 e6 call 40007fa0 <_Internal_error_Occurred> <== NOT EXECUTED 4000b00c: 95 e8 20 03 restore %g0, 3, %o2 <== NOT EXECUTED 4000b010: 81 c7 e0 08 ret 4000b014: 81 e8 00 00 restore 40006b8c : rtems_name name, rtems_attribute attribute_set, uint32_t maximum_waiters, rtems_id *id ) { 40006b8c: 9d e3 bf 90 save %sp, -112, %sp Barrier_Control *the_barrier; CORE_barrier_Attributes the_attributes; if ( !rtems_is_name_valid( name ) ) 40006b90: a2 96 20 00 orcc %i0, 0, %l1 40006b94: 02 80 00 1b be 40006c00 40006b98: b0 10 20 03 mov 3, %i0 return RTEMS_INVALID_NAME; if ( !id ) 40006b9c: 80 a6 e0 00 cmp %i3, 0 40006ba0: 02 80 00 18 be 40006c00 40006ba4: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; /* Initialize core barrier attributes */ if ( _Attributes_Is_barrier_automatic( attribute_set ) ) { 40006ba8: 80 8e 60 10 btst 0x10, %i1 40006bac: 02 80 00 06 be 40006bc4 40006bb0: 80 a6 a0 00 cmp %i2, 0 the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE; if ( maximum_waiters == 0 ) 40006bb4: 02 80 00 13 be 40006c00 40006bb8: b0 10 20 0a mov 0xa, %i0 if ( !id ) return RTEMS_INVALID_ADDRESS; /* Initialize core barrier attributes */ if ( _Attributes_Is_barrier_automatic( attribute_set ) ) { the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE; 40006bbc: 10 80 00 04 b 40006bcc 40006bc0: c0 27 bf f0 clr [ %fp + -16 ] if ( maximum_waiters == 0 ) return RTEMS_INVALID_NUMBER; } else the_attributes.discipline = CORE_BARRIER_MANUAL_RELEASE; 40006bc4: 82 10 20 01 mov 1, %g1 40006bc8: c2 27 bf f0 st %g1, [ %fp + -16 ] rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 40006bcc: 05 10 00 77 sethi %hi(0x4001dc00), %g2 40006bd0: c2 00 a1 c0 ld [ %g2 + 0x1c0 ], %g1 ! 4001ddc0 <_Thread_Dispatch_disable_level> the_attributes.maximum_count = maximum_waiters; 40006bd4: f4 27 bf f4 st %i2, [ %fp + -12 ] 40006bd8: 82 00 60 01 inc %g1 40006bdc: c2 20 a1 c0 st %g1, [ %g2 + 0x1c0 ] * 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 ); 40006be0: 21 10 00 77 sethi %hi(0x4001dc00), %l0 40006be4: 40 00 09 d5 call 40009338 <_Objects_Allocate> 40006be8: 90 14 20 28 or %l0, 0x28, %o0 ! 4001dc28 <_Barrier_Information> _Thread_Disable_dispatch(); /* prevents deletion */ the_barrier = _Barrier_Allocate(); if ( !the_barrier ) { 40006bec: b4 92 20 00 orcc %o0, 0, %i2 40006bf0: 12 80 00 06 bne 40006c08 40006bf4: 90 06 a0 14 add %i2, 0x14, %o0 _Thread_Enable_dispatch(); 40006bf8: 7f ff ff d8 call 40006b58 <_Thread_Enable_dispatch> 40006bfc: b0 10 20 05 mov 5, %i0 40006c00: 81 c7 e0 08 ret 40006c04: 81 e8 00 00 restore return RTEMS_TOO_MANY; } the_barrier->attribute_set = attribute_set; 40006c08: f2 26 a0 10 st %i1, [ %i2 + 0x10 ] _CORE_barrier_Initialize( &the_barrier->Barrier, &the_attributes ); 40006c0c: 40 00 07 17 call 40008868 <_CORE_barrier_Initialize> 40006c10: 92 07 bf f0 add %fp, -16, %o1 Objects_Information *information, uint16_t index, Objects_Control *the_object ) { if ( index <= information->maximum ) 40006c14: 90 14 20 28 or %l0, 0x28, %o0 Objects_Name name ) { uint32_t index; index = _Objects_Get_index( the_object->id ); 40006c18: c6 06 a0 08 ld [ %i2 + 8 ], %g3 Objects_Information *information, uint16_t index, Objects_Control *the_object ) { if ( index <= information->maximum ) 40006c1c: c4 12 20 10 lduh [ %o0 + 0x10 ], %g2 40006c20: 03 00 00 3f sethi %hi(0xfc00), %g1 40006c24: 82 10 63 ff or %g1, 0x3ff, %g1 ! ffff 40006c28: 82 08 c0 01 and %g3, %g1, %g1 40006c2c: 80 a0 40 02 cmp %g1, %g2 40006c30: 38 80 00 06 bgu,a 40006c48 40006c34: e2 26 a0 0c st %l1, [ %i2 + 0xc ] <== NOT EXECUTED information->local_table[ index ] = the_object; 40006c38: c4 02 20 20 ld [ %o0 + 0x20 ], %g2 40006c3c: 83 28 60 02 sll %g1, 2, %g1 40006c40: f4 20 80 01 st %i2, [ %g2 + %g1 ] if ( information->is_string ) /* _Objects_Copy_name_string( name, the_object->name ); */ the_object->name = name; else /* _Objects_Copy_name_raw( name, the_object->name, information->name_length ); */ the_object->name = name; 40006c44: e2 26 a0 0c st %l1, [ %i2 + 0xc ] &_Barrier_Information, &the_barrier->Object, (Objects_Name) name ); *id = the_barrier->Object.id; 40006c48: c6 26 c0 00 st %g3, [ %i3 ] _Thread_Enable_dispatch(); 40006c4c: 7f ff ff c3 call 40006b58 <_Thread_Enable_dispatch> 40006c50: b0 10 20 00 clr %i0 return RTEMS_SUCCESSFUL; } 40006c54: 81 c7 e0 08 ret 40006c58: 81 e8 00 00 restore 40006c5c : */ rtems_status_code rtems_barrier_delete( rtems_id id ) { 40006c5c: 9d e3 bf 90 save %sp, -112, %sp RTEMS_INLINE_ROUTINE Barrier_Control *_Barrier_Get ( Objects_Id id, Objects_Locations *location ) { return (Barrier_Control *) 40006c60: 21 10 00 77 sethi %hi(0x4001dc00), %l0 40006c64: 92 10 00 18 mov %i0, %o1 40006c68: 94 07 bf f4 add %fp, -12, %o2 40006c6c: 40 00 0a f7 call 40009848 <_Objects_Get> 40006c70: 90 14 20 28 or %l0, 0x28, %o0 Barrier_Control *the_barrier; Objects_Locations location; the_barrier = _Barrier_Get( id, &location ); switch ( location ) { 40006c74: c2 07 bf f4 ld [ %fp + -12 ], %g1 40006c78: 80 a0 60 00 cmp %g1, 0 40006c7c: 02 80 00 07 be 40006c98 40006c80: b0 10 00 08 mov %o0, %i0 40006c84: 80 a0 60 02 cmp %g1, 2 40006c88: 08 80 00 22 bleu 40006d10 40006c8c: b0 10 20 04 mov 4, %i0 40006c90: 81 c7 e0 08 ret <== NOT EXECUTED 40006c94: 91 e8 20 19 restore %g0, 0x19, %o0 <== NOT EXECUTED case OBJECTS_REMOTE: case OBJECTS_ERROR: return RTEMS_INVALID_ID; case OBJECTS_LOCAL: _CORE_barrier_Flush( 40006c98: 90 02 20 14 add %o0, 0x14, %o0 40006c9c: 92 10 20 00 clr %o1 40006ca0: 40 00 12 25 call 4000b534 <_Thread_queue_Flush> 40006ca4: 94 10 20 02 mov 2, %o2 Objects_Information *information, uint16_t index, Objects_Control *the_object ) { if ( index <= information->maximum ) 40006ca8: 90 14 20 28 or %l0, 0x28, %o0 ) { uint32_t index; index = _Objects_Get_index( the_object->id ); _Objects_Set_local_object( information, index, NULL ); 40006cac: c2 06 20 08 ld [ %i0 + 8 ], %g1 Objects_Information *information, uint16_t index, Objects_Control *the_object ) { if ( index <= information->maximum ) 40006cb0: c6 12 20 10 lduh [ %o0 + 0x10 ], %g3 40006cb4: 05 00 00 3f sethi %hi(0xfc00), %g2 40006cb8: 84 10 a3 ff or %g2, 0x3ff, %g2 ! ffff 40006cbc: 82 08 40 02 and %g1, %g2, %g1 40006cc0: 80 a0 40 03 cmp %g1, %g3 40006cc4: 38 80 00 06 bgu,a 40006cdc 40006cc8: c0 26 20 0c clr [ %i0 + 0xc ] <== NOT EXECUTED information->local_table[ index ] = the_object; 40006ccc: c4 02 20 20 ld [ %o0 + 0x20 ], %g2 40006cd0: 83 28 60 02 sll %g1, 2, %g1 40006cd4: c0 20 80 01 clr [ %g2 + %g1 ] uint32_t index; index = _Objects_Get_index( the_object->id ); _Objects_Set_local_object( information, index, NULL ); /* _Objects_Clear_name( the_object->name, information->name_length ); */ the_object->name = 0; 40006cd8: c0 26 20 0c clr [ %i0 + 0xc ] */ RTEMS_INLINE_ROUTINE void _Barrier_Free ( Barrier_Control *the_barrier ) { _Objects_Free( &_Barrier_Information, &the_barrier->Object ); 40006cdc: 40 00 0a 99 call 40009740 <_Objects_Free> 40006ce0: 92 10 00 18 mov %i0, %o1 #if ( CPU_INLINE_ENABLE_DISPATCH == TRUE ) RTEMS_INLINE_ROUTINE void _Thread_Enable_dispatch() { RTEMS_COMPILER_MEMORY_BARRIER(); if ( (--_Thread_Dispatch_disable_level) == 0 ) 40006ce4: 03 10 00 77 sethi %hi(0x4001dc00), %g1 40006ce8: c4 00 61 c0 ld [ %g1 + 0x1c0 ], %g2 ! 4001ddc0 <_Thread_Dispatch_disable_level> 40006cec: b0 10 20 00 clr %i0 40006cf0: 84 00 bf ff add %g2, -1, %g2 40006cf4: c4 20 61 c0 st %g2, [ %g1 + 0x1c0 ] 40006cf8: c2 00 61 c0 ld [ %g1 + 0x1c0 ], %g1 40006cfc: 80 a0 60 00 cmp %g1, 0 40006d00: 12 80 00 04 bne 40006d10 40006d04: 01 00 00 00 nop _Thread_Dispatch(); 40006d08: 40 00 0f c4 call 4000ac18 <_Thread_Dispatch> 40006d0c: 01 00 00 00 nop _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } return RTEMS_INTERNAL_ERROR; /* unreached - only to remove warnings */ } 40006d10: 81 c7 e0 08 ret 40006d14: 81 e8 00 00 restore 40006d50 : rtems_status_code rtems_barrier_release( rtems_id id, uint32_t *released ) { 40006d50: 9d e3 bf 90 save %sp, -112, %sp 40006d54: a0 10 00 18 mov %i0, %l0 Barrier_Control *the_barrier; Objects_Locations location; if ( !released ) 40006d58: 80 a6 60 00 cmp %i1, 0 40006d5c: 02 80 00 1f be 40006dd8 40006d60: b0 10 20 09 mov 9, %i0 RTEMS_INLINE_ROUTINE Barrier_Control *_Barrier_Get ( Objects_Id id, Objects_Locations *location ) { return (Barrier_Control *) 40006d64: 11 10 00 77 sethi %hi(0x4001dc00), %o0 40006d68: 92 10 00 10 mov %l0, %o1 40006d6c: 90 12 20 28 or %o0, 0x28, %o0 40006d70: 40 00 0a b6 call 40009848 <_Objects_Get> 40006d74: 94 07 bf f4 add %fp, -12, %o2 return RTEMS_INVALID_ADDRESS; the_barrier = _Barrier_Get( id, &location ); switch ( location ) { 40006d78: c2 07 bf f4 ld [ %fp + -12 ], %g1 40006d7c: 80 a0 60 00 cmp %g1, 0 40006d80: 02 80 00 07 be 40006d9c 40006d84: 92 10 00 10 mov %l0, %o1 40006d88: 80 a0 60 02 cmp %g1, 2 40006d8c: 08 80 00 13 bleu 40006dd8 40006d90: b0 10 20 04 mov 4, %i0 40006d94: 81 c7 e0 08 ret <== NOT EXECUTED 40006d98: 91 e8 20 19 restore %g0, 0x19, %o0 <== NOT EXECUTED case OBJECTS_REMOTE: case OBJECTS_ERROR: return RTEMS_INVALID_ID; case OBJECTS_LOCAL: *released = _CORE_barrier_Release( &the_barrier->Barrier, id, NULL ); 40006d9c: 94 10 20 00 clr %o2 40006da0: 40 00 06 be call 40008898 <_CORE_barrier_Release> 40006da4: 90 02 20 14 add %o0, 0x14, %o0 40006da8: d0 26 40 00 st %o0, [ %i1 ] #if ( CPU_INLINE_ENABLE_DISPATCH == TRUE ) RTEMS_INLINE_ROUTINE void _Thread_Enable_dispatch() { RTEMS_COMPILER_MEMORY_BARRIER(); if ( (--_Thread_Dispatch_disable_level) == 0 ) 40006dac: 03 10 00 77 sethi %hi(0x4001dc00), %g1 40006db0: c4 00 61 c0 ld [ %g1 + 0x1c0 ], %g2 ! 4001ddc0 <_Thread_Dispatch_disable_level> 40006db4: b0 10 20 00 clr %i0 40006db8: 84 00 bf ff add %g2, -1, %g2 40006dbc: c4 20 61 c0 st %g2, [ %g1 + 0x1c0 ] 40006dc0: c2 00 61 c0 ld [ %g1 + 0x1c0 ], %g1 40006dc4: 80 a0 60 00 cmp %g1, 0 40006dc8: 12 80 00 04 bne 40006dd8 40006dcc: 01 00 00 00 nop _Thread_Dispatch(); 40006dd0: 40 00 0f 92 call 4000ac18 <_Thread_Dispatch> 40006dd4: 01 00 00 00 nop return RTEMS_SUCCESSFUL; } return RTEMS_INTERNAL_ERROR; /* unreached - only to remove warnings */ } 40006dd8: 81 c7 e0 08 ret 40006ddc: 81 e8 00 00 restore 40006de0 : rtems_status_code rtems_barrier_wait( rtems_id id, rtems_interval timeout ) { 40006de0: 9d e3 bf 90 save %sp, -112, %sp 40006de4: 11 10 00 77 sethi %hi(0x4001dc00), %o0 40006de8: 92 10 00 18 mov %i0, %o1 40006dec: 90 12 20 28 or %o0, 0x28, %o0 40006df0: 40 00 0a 96 call 40009848 <_Objects_Get> 40006df4: 94 07 bf f4 add %fp, -12, %o2 Barrier_Control *the_barrier; Objects_Locations location; the_barrier = _Barrier_Get( id, &location ); switch ( location ) { 40006df8: c2 07 bf f4 ld [ %fp + -12 ], %g1 40006dfc: 80 a0 60 00 cmp %g1, 0 40006e00: 02 80 00 07 be 40006e1c 40006e04: 96 10 00 19 mov %i1, %o3 40006e08: 80 a0 60 02 cmp %g1, 2 40006e0c: 08 80 00 17 bleu 40006e68 40006e10: 90 10 20 04 mov 4, %o0 40006e14: 10 80 00 15 b 40006e68 <== NOT EXECUTED 40006e18: 90 10 20 19 mov 0x19, %o0 <== NOT EXECUTED case OBJECTS_REMOTE: case OBJECTS_ERROR: return RTEMS_INVALID_ID; case OBJECTS_LOCAL: _CORE_barrier_Wait( 40006e1c: 90 02 20 14 add %o0, 0x14, %o0 40006e20: 92 10 00 18 mov %i0, %o1 40006e24: 94 10 20 01 mov 1, %o2 40006e28: 40 00 06 a7 call 400088c4 <_CORE_barrier_Wait> 40006e2c: 98 10 20 00 clr %o4 #if ( CPU_INLINE_ENABLE_DISPATCH == TRUE ) RTEMS_INLINE_ROUTINE void _Thread_Enable_dispatch() { RTEMS_COMPILER_MEMORY_BARRIER(); if ( (--_Thread_Dispatch_disable_level) == 0 ) 40006e30: 03 10 00 77 sethi %hi(0x4001dc00), %g1 40006e34: c4 00 61 c0 ld [ %g1 + 0x1c0 ], %g2 ! 4001ddc0 <_Thread_Dispatch_disable_level> 40006e38: 84 00 bf ff add %g2, -1, %g2 40006e3c: c4 20 61 c0 st %g2, [ %g1 + 0x1c0 ] 40006e40: c2 00 61 c0 ld [ %g1 + 0x1c0 ], %g1 40006e44: 80 a0 60 00 cmp %g1, 0 40006e48: 12 80 00 05 bne 40006e5c 40006e4c: 03 10 00 77 sethi %hi(0x4001dc00), %g1 _Thread_Dispatch(); 40006e50: 40 00 0f 72 call 4000ac18 <_Thread_Dispatch> 40006e54: 01 00 00 00 nop TRUE, timeout, NULL ); _Thread_Enable_dispatch(); return _Barrier_Translate_core_barrier_return_code( 40006e58: 03 10 00 77 sethi %hi(0x4001dc00), %g1 40006e5c: c2 00 62 9c ld [ %g1 + 0x29c ], %g1 ! 4001de9c <_Thread_Executing> 40006e60: 40 00 1c 23 call 4000deec <_Barrier_Translate_core_barrier_return_code> 40006e64: d0 00 60 34 ld [ %g1 + 0x34 ], %o0 _Thread_Executing->Wait.return_code ); } return RTEMS_INTERNAL_ERROR; /* unreached - only to remove warnings */ } 40006e68: 81 c7 e0 08 ret 40006e6c: 91 e8 00 08 restore %g0, %o0, %o0 40005cb4 : rtems_status_code rtems_clock_get( rtems_clock_get_options option, void *time_buffer ) { 40005cb4: 9d e3 bf 68 save %sp, -152, %sp 40005cb8: 82 10 00 18 mov %i0, %g1 if ( !time_buffer ) 40005cbc: 80 a6 60 00 cmp %i1, 0 40005cc0: 02 80 00 47 be 40005ddc 40005cc4: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; switch ( option ) { 40005cc8: 80 a0 60 04 cmp %g1, 4 40005ccc: 18 80 00 44 bgu 40005ddc 40005cd0: b0 10 20 19 mov 0x19, %i0 40005cd4: 83 28 60 02 sll %g1, 2, %g1 40005cd8: 05 10 00 17 sethi %hi(0x40005c00), %g2 40005cdc: 84 10 a0 60 or %g2, 0x60, %g2 ! 40005c60 40005ce0: c2 00 80 01 ld [ %g2 + %g1 ], %g1 40005ce4: 81 c0 40 00 jmp %g1 40005ce8: 01 00 00 00 nop case RTEMS_CLOCK_GET_TOD: { struct tm time; struct timeval now; rtems_time_of_day *tmbuf = (rtems_time_of_day *)time_buffer; if ( !_TOD_Is_set ) 40005cec: 03 10 00 67 sethi %hi(0x40019c00), %g1 40005cf0: c2 00 62 dc ld [ %g1 + 0x2dc ], %g1 ! 40019edc <_TOD_Is_set> 40005cf4: 80 a0 60 00 cmp %g1, 0 40005cf8: 22 80 00 39 be,a 40005ddc 40005cfc: b0 10 20 0b mov 0xb, %i0 return RTEMS_NOT_DEFINED; /* Obtain the current time */ _TOD_Get_timeval( &now ); 40005d00: a0 07 bf f0 add %fp, -16, %l0 40005d04: 7f ff ff dc call 40005c74 <_TOD_Get_timeval> 40005d08: 90 10 00 10 mov %l0, %o0 /* Split it into a closer format */ gmtime_r( &now.tv_sec, &time ); 40005d0c: 92 07 bf cc add %fp, -52, %o1 40005d10: 40 00 23 96 call 4000eb68 40005d14: 90 10 00 10 mov %l0, %o0 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 / _TOD_Microseconds_per_tick; 40005d18: 03 10 00 68 sethi %hi(0x4001a000), %g1 40005d1c: d2 00 60 7c ld [ %g1 + 0x7c ], %o1 ! 4001a07c <_TOD_Microseconds_per_tick> gmtime_r( &now.tv_sec, &time ); /* Now adjust it to the RTEMS format */ tmbuf->year = time.tm_year + 1900; tmbuf->month = time.tm_mon + 1; tmbuf->day = time.tm_mday; 40005d20: c2 07 bf d8 ld [ %fp + -40 ], %g1 tmbuf->hour = time.tm_hour; tmbuf->minute = time.tm_min; tmbuf->second = time.tm_sec; tmbuf->ticks = now.tv_usec / _TOD_Microseconds_per_tick; 40005d24: d0 07 bf f4 ld [ %fp + -12 ], %o0 gmtime_r( &now.tv_sec, &time ); /* Now adjust it to the RTEMS format */ tmbuf->year = time.tm_year + 1900; tmbuf->month = time.tm_mon + 1; tmbuf->day = time.tm_mday; 40005d28: c2 26 60 08 st %g1, [ %i1 + 8 ] tmbuf->hour = time.tm_hour; 40005d2c: c2 07 bf d4 ld [ %fp + -44 ], %g1 40005d30: c2 26 60 0c st %g1, [ %i1 + 0xc ] tmbuf->minute = time.tm_min; 40005d34: c2 07 bf d0 ld [ %fp + -48 ], %g1 40005d38: c2 26 60 10 st %g1, [ %i1 + 0x10 ] tmbuf->second = time.tm_sec; 40005d3c: c2 07 bf cc ld [ %fp + -52 ], %g1 40005d40: c2 26 60 14 st %g1, [ %i1 + 0x14 ] /* 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; 40005d44: c2 07 bf e0 ld [ %fp + -32 ], %g1 40005d48: 82 00 67 6c add %g1, 0x76c, %g1 40005d4c: c2 26 40 00 st %g1, [ %i1 ] tmbuf->month = time.tm_mon + 1; 40005d50: c2 07 bf dc ld [ %fp + -36 ], %g1 40005d54: 82 00 60 01 inc %g1 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 / _TOD_Microseconds_per_tick; 40005d58: 40 00 3d dd call 400154cc <.udiv> 40005d5c: c2 26 60 04 st %g1, [ %i1 + 4 ] 40005d60: 10 80 00 1c b 40005dd0 40005d64: d0 26 60 18 st %o0, [ %i1 + 0x18 ] return RTEMS_SUCCESSFUL; } case RTEMS_CLOCK_GET_SECONDS_SINCE_EPOCH: { rtems_interval *interval = (rtems_interval *)time_buffer; if ( !_TOD_Is_set ) 40005d68: 03 10 00 67 sethi %hi(0x40019c00), %g1 40005d6c: c2 00 62 dc ld [ %g1 + 0x2dc ], %g1 ! 40019edc <_TOD_Is_set> 40005d70: 80 a0 60 00 cmp %g1, 0 40005d74: 02 80 00 19 be 40005dd8 40005d78: 03 10 00 67 sethi %hi(0x40019c00), %g1 return RTEMS_NOT_DEFINED; *interval = _TOD_Seconds_since_epoch; 40005d7c: 10 80 00 04 b 40005d8c 40005d80: c2 00 63 58 ld [ %g1 + 0x358 ], %g1 ! 40019f58 <_TOD_Now> } case RTEMS_CLOCK_GET_TICKS_SINCE_BOOT: { rtems_interval *interval = (rtems_interval *)time_buffer; *interval = _Watchdog_Ticks_since_boot; 40005d84: 03 10 00 68 sethi %hi(0x4001a000), %g1 40005d88: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 ! 4001a024 <_Watchdog_Ticks_since_boot> 40005d8c: c2 26 40 00 st %g1, [ %i1 ] 40005d90: 81 c7 e0 08 ret 40005d94: 91 e8 20 00 restore %g0, 0, %o0 } case RTEMS_CLOCK_GET_TICKS_PER_SECOND: { rtems_interval *interval = (rtems_interval *)time_buffer; *interval = TOD_MICROSECONDS_PER_SECOND / _TOD_Microseconds_per_tick; 40005d98: 03 10 00 68 sethi %hi(0x4001a000), %g1 40005d9c: d2 00 60 7c ld [ %g1 + 0x7c ], %o1 ! 4001a07c <_TOD_Microseconds_per_tick> 40005da0: 11 00 03 d0 sethi %hi(0xf4000), %o0 40005da4: 40 00 3d ca call 400154cc <.udiv> 40005da8: 90 12 22 40 or %o0, 0x240, %o0 ! f4240 40005dac: 10 80 00 09 b 40005dd0 40005db0: d0 26 40 00 st %o0, [ %i1 ] } case RTEMS_CLOCK_GET_TIME_VALUE: { struct timeval *time = (struct timeval *)time_buffer; if ( !_TOD_Is_set ) 40005db4: 03 10 00 67 sethi %hi(0x40019c00), %g1 <== NOT EXECUTED 40005db8: c2 00 62 dc ld [ %g1 + 0x2dc ], %g1 ! 40019edc <_TOD_Is_set> <== NOT EXECUTED 40005dbc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40005dc0: 22 80 00 07 be,a 40005ddc <== NOT EXECUTED 40005dc4: b0 10 20 0b mov 0xb, %i0 <== NOT EXECUTED return RTEMS_NOT_DEFINED; _TOD_Get_timeval( time ); 40005dc8: 7f ff ff ab call 40005c74 <_TOD_Get_timeval> <== NOT EXECUTED 40005dcc: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED 40005dd0: 81 c7 e0 08 ret 40005dd4: 91 e8 20 00 restore %g0, 0, %o0 return RTEMS_SUCCESSFUL; 40005dd8: b0 10 20 0b mov 0xb, %i0 <== NOT EXECUTED } } return RTEMS_INTERNAL_ERROR; /* should never get here */ } 40005ddc: 81 c7 e0 08 ret 40005de0: 81 e8 00 00 restore 40005e04 : * * NOTE: This routine only works for leap-years through 2099. */ rtems_status_code rtems_clock_tick( void ) { 40005e04: 9d e3 bf 98 save %sp, -104, %sp _TOD_Tickle_ticks(); 40005e08: 40 00 07 19 call 40007a6c <_TOD_Tickle_ticks> 40005e0c: 01 00 00 00 nop */ RTEMS_INLINE_ROUTINE void _Watchdog_Tickle_ticks( void ) { _Watchdog_Tickle( &_Watchdog_Ticks_chain ); 40005e10: 11 10 00 67 sethi %hi(0x40019c00), %o0 40005e14: 40 00 14 27 call 4000aeb0 <_Watchdog_Tickle> 40005e18: 90 12 23 9c or %o0, 0x39c, %o0 ! 40019f9c <_Watchdog_Ticks_chain> _Watchdog_Tickle_ticks(); _Thread_Tickle_timeslice(); 40005e1c: 40 00 12 7e call 4000a814 <_Thread_Tickle_timeslice> 40005e20: 01 00 00 00 nop * otherwise. */ RTEMS_INLINE_ROUTINE boolean _Thread_Is_context_switch_necessary( void ) { return ( _Context_Switch_necessary ); 40005e24: 03 10 00 67 sethi %hi(0x40019c00), %g1 40005e28: c2 00 63 8c ld [ %g1 + 0x38c ], %g1 ! 40019f8c <_Context_Switch_necessary> if ( _Thread_Is_context_switch_necessary() && 40005e2c: 80 a0 60 00 cmp %g1, 0 40005e30: 02 80 00 08 be 40005e50 40005e34: 03 10 00 67 sethi %hi(0x40019c00), %g1 * otherwise. */ RTEMS_INLINE_ROUTINE boolean _Thread_Is_dispatching_enabled( void ) { return ( _Thread_Dispatch_disable_level == 0 ); 40005e38: c2 00 62 a0 ld [ %g1 + 0x2a0 ], %g1 ! 40019ea0 <_Thread_Dispatch_disable_level> 40005e3c: 80 a0 60 00 cmp %g1, 0 40005e40: 12 80 00 04 bne 40005e50 40005e44: 01 00 00 00 nop _Thread_Is_dispatching_enabled() ) _Thread_Dispatch(); 40005e48: 40 00 0e bb call 40009934 <_Thread_Dispatch> <== NOT EXECUTED 40005e4c: 01 00 00 00 nop <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 40005e50: 81 c7 e0 08 ret 40005e54: 91 e8 20 00 restore %g0, 0, %o0 40006068 : rtems_status_code rtems_event_send( Objects_Id id, rtems_event_set event_in ) { 40006068: 9d e3 bf 90 save %sp, -112, %sp uint32_t the_api; uint32_t the_class; Objects_Information *information; Thread_Control *tp = (Thread_Control *) 0; if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ) { 4000606c: 92 96 20 00 orcc %i0, 0, %o1 40006070: 12 80 00 0a bne 40006098 40006074: 83 32 60 18 srl %o1, 0x18, %g1 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 40006078: 03 10 00 67 sethi %hi(0x40019c00), %g1 4000607c: c4 00 62 a0 ld [ %g1 + 0x2a0 ], %g2 ! 40019ea0 <_Thread_Dispatch_disable_level> 40006080: 84 00 a0 01 inc %g2 40006084: c4 20 62 a0 st %g2, [ %g1 + 0x2a0 ] Thread_Control *tp = (Thread_Control *) 0; if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ) { _Thread_Disable_dispatch(); *location = OBJECTS_LOCAL; tp = _Thread_Executing; 40006088: 03 10 00 67 sethi %hi(0x40019c00), %g1 4000608c: f0 00 63 7c ld [ %g1 + 0x37c ], %i0 ! 40019f7c <_Thread_Executing> 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; 40006090: 10 80 00 18 b 400060f0 40006094: c0 27 bf f4 clr [ %fp + -12 ] */ RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API( Objects_Id id ) { return (Objects_APIs) ((id >> OBJECTS_API_START_BIT) & OBJECTS_API_VALID_BITS); 40006098: 84 08 60 07 and %g1, 7, %g2 tp = _Thread_Executing; goto done; } the_api = _Objects_Get_API( id ); if ( the_api && the_api > OBJECTS_APIS_LAST ) { 4000609c: 80 a0 a0 04 cmp %g2, 4 400060a0: 18 80 00 0e bgu 400060d8 400060a4: 82 10 20 02 mov 2, %g1 *location = OBJECTS_ERROR; goto done; } the_class = _Objects_Get_class( id ); if ( the_class != 1 ) { /* threads are always first class :) */ 400060a8: 83 32 60 1b srl %o1, 0x1b, %g1 400060ac: 80 a0 60 01 cmp %g1, 1 400060b0: 12 80 00 0a bne 400060d8 400060b4: 82 10 20 02 mov 2, %g1 *location = OBJECTS_ERROR; goto done; } information = _Objects_Information_table[ the_api ][ the_class ]; 400060b8: 83 28 a0 02 sll %g2, 2, %g1 400060bc: 05 10 00 67 sethi %hi(0x40019c00), %g2 400060c0: 84 10 a2 00 or %g2, 0x200, %g2 ! 40019e00 <_Objects_Information_table> 400060c4: c2 00 80 01 ld [ %g2 + %g1 ], %g1 400060c8: d0 00 60 04 ld [ %g1 + 4 ], %o0 if ( !information ) { 400060cc: 80 a2 20 00 cmp %o0, 0 400060d0: 12 80 00 05 bne 400060e4 400060d4: 82 10 20 02 mov 2, %g1 *location = OBJECTS_ERROR; 400060d8: b0 10 20 00 clr %i0 400060dc: 10 80 00 05 b 400060f0 400060e0: c2 27 bf f4 st %g1, [ %fp + -12 ] goto done; } tp = (Thread_Control *) _Objects_Get( information, id, location ); 400060e4: 40 00 09 20 call 40008564 <_Objects_Get> 400060e8: 94 07 bf f4 add %fp, -12, %o2 400060ec: b0 10 00 08 mov %o0, %i0 register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; the_thread = _Thread_Get( id, &location ); switch ( location ) { 400060f0: c2 07 bf f4 ld [ %fp + -12 ], %g1 400060f4: 80 a0 60 00 cmp %g1, 0 400060f8: 02 80 00 06 be 40006110 400060fc: 80 a0 60 02 cmp %g1, 2 40006100: 08 80 00 18 bleu 40006160 40006104: b0 10 20 04 mov 4, %i0 40006108: 81 c7 e0 08 ret <== NOT EXECUTED 4000610c: 91 e8 20 19 restore %g0, 0x19, %o0 <== NOT EXECUTED rtems_event_set *the_event_set ) { ISR_Level level; _ISR_Disable( level ); 40006110: 7f ff ef 68 call 40001eb0 40006114: e0 06 21 6c ld [ %i0 + 0x16c ], %l0 *the_event_set |= the_new_events; 40006118: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 4000611c: 82 10 40 19 or %g1, %i1, %g1 40006120: c2 24 20 40 st %g1, [ %l0 + 0x40 ] _ISR_Enable( level ); 40006124: 7f ff ef 67 call 40001ec0 40006128: 01 00 00 00 nop case OBJECTS_ERROR: return RTEMS_INVALID_ID; case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; _Event_sets_Post( event_in, &api->pending_events ); _Event_Surrender( the_thread ); 4000612c: 40 00 00 15 call 40006180 <_Event_Surrender> 40006130: 90 10 00 18 mov %i0, %o0 #if ( CPU_INLINE_ENABLE_DISPATCH == TRUE ) RTEMS_INLINE_ROUTINE void _Thread_Enable_dispatch() { RTEMS_COMPILER_MEMORY_BARRIER(); if ( (--_Thread_Dispatch_disable_level) == 0 ) 40006134: 05 10 00 67 sethi %hi(0x40019c00), %g2 40006138: c2 00 a2 a0 ld [ %g2 + 0x2a0 ], %g1 ! 40019ea0 <_Thread_Dispatch_disable_level> 4000613c: b0 10 20 00 clr %i0 40006140: 82 00 7f ff add %g1, -1, %g1 40006144: c2 20 a2 a0 st %g1, [ %g2 + 0x2a0 ] 40006148: c2 00 a2 a0 ld [ %g2 + 0x2a0 ], %g1 4000614c: 80 a0 60 00 cmp %g1, 0 40006150: 12 80 00 04 bne 40006160 40006154: 01 00 00 00 nop _Thread_Dispatch(); 40006158: 40 00 0d f7 call 40009934 <_Thread_Dispatch> 4000615c: 01 00 00 00 nop _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } return RTEMS_INTERNAL_ERROR; /* unreached - only to remove warnings */ } 40006160: 81 c7 e0 08 ret 40006164: 81 e8 00 00 restore 4000ba70 : rtems_status_code rtems_extension_create( rtems_name name, rtems_extensions_table *extension_table, Objects_Id *id ) { 4000ba70: 9d e3 bf 98 save %sp, -104, %sp Extension_Control *the_extension; if ( !rtems_is_name_valid( name ) ) 4000ba74: a4 96 20 00 orcc %i0, 0, %l2 4000ba78: 02 80 00 0e be 4000bab0 4000ba7c: b0 10 20 03 mov 3, %i0 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 4000ba80: 05 10 00 a1 sethi %hi(0x40028400), %g2 4000ba84: c2 00 a2 a0 ld [ %g2 + 0x2a0 ], %g1 ! 400286a0 <_Thread_Dispatch_disable_level> 4000ba88: 82 00 60 01 inc %g1 4000ba8c: c2 20 a2 a0 st %g1, [ %g2 + 0x2a0 ] * the inactive chain of free extension control blocks. */ RTEMS_INLINE_ROUTINE Extension_Control *_Extension_Allocate( void ) { return (Extension_Control *) _Objects_Allocate( &_Extension_Information ); 4000ba90: 23 10 00 a2 sethi %hi(0x40028800), %l1 4000ba94: 40 00 03 87 call 4000c8b0 <_Objects_Allocate> 4000ba98: 90 14 61 3c or %l1, 0x13c, %o0 ! 4002893c <_Extension_Information> _Thread_Disable_dispatch(); /* to prevent deletion */ the_extension = _Extension_Allocate(); if ( !the_extension ) { 4000ba9c: a0 92 20 00 orcc %o0, 0, %l0 4000baa0: 12 80 00 06 bne 4000bab8 4000baa4: 90 04 20 10 add %l0, 0x10, %o0 _Thread_Enable_dispatch(); 4000baa8: 7f ff ff e5 call 4000ba3c <_Thread_Enable_dispatch> <== NOT EXECUTED 4000baac: b0 10 20 05 mov 5, %i0 <== NOT EXECUTED 4000bab0: 81 c7 e0 08 ret <== NOT EXECUTED 4000bab4: 81 e8 00 00 restore <== NOT EXECUTED return RTEMS_TOO_MANY; } _User_extensions_Add_set( &the_extension->Extension, extension_table ); 4000bab8: 40 00 0e 03 call 4000f2c4 <_User_extensions_Add_set> 4000babc: 92 10 00 19 mov %i1, %o1 Objects_Information *information, uint16_t index, Objects_Control *the_object ) { if ( index <= information->maximum ) 4000bac0: 90 14 61 3c or %l1, 0x13c, %o0 ) { uint32_t index; index = _Objects_Get_index( the_object->id ); _Objects_Set_local_object( information, index, the_object ); 4000bac4: c2 04 20 08 ld [ %l0 + 8 ], %g1 Objects_Information *information, uint16_t index, Objects_Control *the_object ) { if ( index <= information->maximum ) 4000bac8: c6 12 20 10 lduh [ %o0 + 0x10 ], %g3 4000bacc: 05 00 00 3f sethi %hi(0xfc00), %g2 4000bad0: 84 10 a3 ff or %g2, 0x3ff, %g2 ! ffff 4000bad4: 82 08 40 02 and %g1, %g2, %g1 4000bad8: 80 a0 40 03 cmp %g1, %g3 4000badc: 38 80 00 06 bgu,a 4000baf4 4000bae0: c2 04 20 08 ld [ %l0 + 8 ], %g1 <== NOT EXECUTED information->local_table[ index ] = the_object; 4000bae4: c4 02 20 20 ld [ %o0 + 0x20 ], %g2 4000bae8: 83 28 60 02 sll %g1, 2, %g1 4000baec: e0 20 80 01 st %l0, [ %g2 + %g1 ] &_Extension_Information, &the_extension->Object, (Objects_Name) name ); *id = the_extension->Object.id; 4000baf0: c2 04 20 08 ld [ %l0 + 8 ], %g1 if ( information->is_string ) /* _Objects_Copy_name_string( name, the_object->name ); */ the_object->name = name; else /* _Objects_Copy_name_raw( name, the_object->name, information->name_length ); */ the_object->name = name; 4000baf4: e4 24 20 0c st %l2, [ %l0 + 0xc ] 4000baf8: c2 26 80 00 st %g1, [ %i2 ] _Thread_Enable_dispatch(); 4000bafc: 7f ff ff d0 call 4000ba3c <_Thread_Enable_dispatch> 4000bb00: b0 10 20 00 clr %i0 return RTEMS_SUCCESSFUL; } 4000bb04: 81 c7 e0 08 ret 4000bb08: 81 e8 00 00 restore 4000bb0c : */ rtems_status_code rtems_extension_delete( Objects_Id id ) { 4000bb0c: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED RTEMS_INLINE_ROUTINE Extension_Control *_Extension_Get ( Objects_Id id, Objects_Locations *location ) { return (Extension_Control *) 4000bb10: 21 10 00 a2 sethi %hi(0x40028800), %l0 <== NOT EXECUTED 4000bb14: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 4000bb18: 94 07 bf f4 add %fp, -12, %o2 <== NOT EXECUTED 4000bb1c: 40 00 04 a9 call 4000cdc0 <_Objects_Get> <== NOT EXECUTED 4000bb20: 90 14 21 3c or %l0, 0x13c, %o0 <== NOT EXECUTED Extension_Control *the_extension; Objects_Locations location; the_extension = _Extension_Get( id, &location ); switch ( location ) { 4000bb24: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 4000bb28: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000bb2c: 02 80 00 07 be 4000bb48 <== NOT EXECUTED 4000bb30: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED 4000bb34: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 4000bb38: 08 80 00 20 bleu 4000bbb8 <== NOT EXECUTED 4000bb3c: b0 10 20 04 mov 4, %i0 <== NOT EXECUTED 4000bb40: 81 c7 e0 08 ret <== NOT EXECUTED 4000bb44: 91 e8 20 19 restore %g0, 0x19, %o0 <== NOT EXECUTED case OBJECTS_ERROR: case OBJECTS_REMOTE: /* should never return this */ return RTEMS_INVALID_ID; case OBJECTS_LOCAL: _User_extensions_Remove_set( &the_extension->Extension ); 4000bb48: 40 00 0e 19 call 4000f3ac <_User_extensions_Remove_set> <== NOT EXECUTED 4000bb4c: 90 02 20 10 add %o0, 0x10, %o0 <== NOT EXECUTED Objects_Information *information, uint16_t index, Objects_Control *the_object ) { if ( index <= information->maximum ) 4000bb50: 90 14 21 3c or %l0, 0x13c, %o0 <== NOT EXECUTED ) { uint32_t index; index = _Objects_Get_index( the_object->id ); _Objects_Set_local_object( information, index, NULL ); 4000bb54: c2 06 20 08 ld [ %i0 + 8 ], %g1 <== NOT EXECUTED Objects_Information *information, uint16_t index, Objects_Control *the_object ) { if ( index <= information->maximum ) 4000bb58: c6 12 20 10 lduh [ %o0 + 0x10 ], %g3 <== NOT EXECUTED 4000bb5c: 05 00 00 3f sethi %hi(0xfc00), %g2 <== NOT EXECUTED 4000bb60: 84 10 a3 ff or %g2, 0x3ff, %g2 ! ffff <== NOT EXECUTED 4000bb64: 82 08 40 02 and %g1, %g2, %g1 <== NOT EXECUTED 4000bb68: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 4000bb6c: 38 80 00 06 bgu,a 4000bb84 <== NOT EXECUTED 4000bb70: c0 26 20 0c clr [ %i0 + 0xc ] <== NOT EXECUTED information->local_table[ index ] = the_object; 4000bb74: c4 02 20 20 ld [ %o0 + 0x20 ], %g2 <== NOT EXECUTED 4000bb78: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED 4000bb7c: c0 20 80 01 clr [ %g2 + %g1 ] <== NOT EXECUTED uint32_t index; index = _Objects_Get_index( the_object->id ); _Objects_Set_local_object( information, index, NULL ); /* _Objects_Clear_name( the_object->name, information->name_length ); */ the_object->name = 0; 4000bb80: c0 26 20 0c clr [ %i0 + 0xc ] <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Extension_Free ( Extension_Control *the_extension ) { _Objects_Free( &_Extension_Information, &the_extension->Object ); 4000bb84: 40 00 04 4d call 4000ccb8 <_Objects_Free> <== NOT EXECUTED 4000bb88: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED #if ( CPU_INLINE_ENABLE_DISPATCH == TRUE ) RTEMS_INLINE_ROUTINE void _Thread_Enable_dispatch() { RTEMS_COMPILER_MEMORY_BARRIER(); if ( (--_Thread_Dispatch_disable_level) == 0 ) 4000bb8c: 03 10 00 a1 sethi %hi(0x40028400), %g1 <== NOT EXECUTED 4000bb90: c4 00 62 a0 ld [ %g1 + 0x2a0 ], %g2 ! 400286a0 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 4000bb94: b0 10 20 00 clr %i0 <== NOT EXECUTED 4000bb98: 84 00 bf ff add %g2, -1, %g2 <== NOT EXECUTED 4000bb9c: c4 20 62 a0 st %g2, [ %g1 + 0x2a0 ] <== NOT EXECUTED 4000bba0: c2 00 62 a0 ld [ %g1 + 0x2a0 ], %g1 <== NOT EXECUTED 4000bba4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4000bba8: 12 80 00 04 bne 4000bbb8 <== NOT EXECUTED 4000bbac: 01 00 00 00 nop <== NOT EXECUTED _Thread_Dispatch(); 4000bbb0: 40 00 09 78 call 4000e190 <_Thread_Dispatch> <== NOT EXECUTED 4000bbb4: 01 00 00 00 nop <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } return RTEMS_INTERNAL_ERROR; /* unreached - only to remove warnings */ } 4000bbb8: 81 c7 e0 08 ret <== NOT EXECUTED 4000bbbc: 81 e8 00 00 restore <== NOT EXECUTED 40007398 : */ void rtems_fatal_error_occurred( uint32_t the_error ) { 40007398: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, FALSE, the_error ); 4000739c: 92 10 20 00 clr %o1 <== NOT EXECUTED 400073a0: 90 10 20 01 mov 1, %o0 <== NOT EXECUTED 400073a4: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED 400073a8: 40 00 02 fe call 40007fa0 <_Internal_error_Occurred> <== NOT EXECUTED 400073ac: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED 400073b0: 01 00 00 00 nop 400073b4 : #include const char *rtems_get_version_string(void) { return _RTEMS_version; } 400073b4: 11 10 00 63 sethi %hi(0x40018c00), %o0 <== NOT EXECUTED 400073b8: 81 c3 e0 08 retl <== NOT EXECUTED 400073bc: 90 12 20 e0 or %o0, 0xe0, %o0 ! 40018ce0 <_RTEMS_version> <== NOT EXECUTED 4000715c : rtems_interrupt_level rtems_initialize_executive_early( rtems_configuration_table *configuration_table, rtems_cpu_table *cpu_table ) { 4000715c: 9d e3 bf 80 save %sp, -128, %sp * Dispatching and interrupts are disabled until the end of the * initialization sequence. This prevents an inadvertent context * switch before the executive is initialized. */ _ISR_Disable( bsp_level ); 40007160: 7f ff eb 54 call 40001eb0 40007164: 01 00 00 00 nop 40007168: a4 10 00 08 mov %o0, %l2 if ( configuration_table == NULL ) 4000716c: 80 a6 20 00 cmp %i0, 0 40007170: 12 80 00 07 bne 4000718c 40007174: 03 10 00 68 sethi %hi(0x4001a000), %g1 _Internal_error_Occurred( 40007178: 90 10 20 00 clr %o0 <== NOT EXECUTED 4000717c: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED 40007180: 40 00 03 88 call 40007fa0 <_Internal_error_Occurred> <== NOT EXECUTED 40007184: 94 10 20 00 clr %o2 <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _System_state_Handler_initialization ( boolean is_multiprocessing ) { _System_state_Current = SYSTEM_STATE_BEFORE_INITIALIZATION; 40007188: 03 10 00 68 sethi %hi(0x4001a000), %g1 <== NOT EXECUTED 4000718c: c0 20 60 80 clr [ %g1 + 0x80 ] ! 4001a080 <_System_state_Current> _System_state_Is_multiprocessing = is_multiprocessing; 40007190: 03 10 00 67 sethi %hi(0x40019c00), %g1 /* * Grab our own copy of the user's CPU table. */ _CPU_Table = *cpu_table; 40007194: 94 10 20 28 mov 0x28, %o2 40007198: 92 10 00 19 mov %i1, %o1 4000719c: c0 20 63 a8 clr [ %g1 + 0x3a8 ] 400071a0: 11 10 00 67 sethi %hi(0x40019c00), %o0 400071a4: 40 00 1e 76 call 4000eb7c 400071a8: 90 12 22 b4 or %o0, 0x2b4, %o0 ! 40019eb4 <_CPU_Table> /* * Provided just for user convenience. */ _Configuration_Table = configuration_table; 400071ac: 03 10 00 67 sethi %hi(0x40019c00), %g1 INTERNAL_ERROR_CORE, TRUE, INTERNAL_ERROR_NO_CPU_TABLE ); _CPU_Initialize( cpu_table, _Thread_Dispatch ); 400071b0: 90 10 00 19 mov %i1, %o0 400071b4: 13 10 00 26 sethi %hi(0x40009800), %o1 400071b8: 92 12 61 34 or %o1, 0x134, %o1 ! 40009934 <_Thread_Dispatch> 400071bc: 40 00 10 9c call 4000b42c <_CPU_Initialize> 400071c0: f0 20 63 60 st %i0, [ %g1 + 0x360 ] /* * Do this as early as possible to insure no debugging output * is even attempted to be printed. */ _Debug_Manager_initialization(); 400071c4: 40 00 17 7b call 4000cfb0 <_Debug_Manager_initialization> 400071c8: 01 00 00 00 nop _API_extensions_Initialization(); 400071cc: 40 00 00 cb call 400074f8 <_API_extensions_Initialization> 400071d0: 01 00 00 00 nop _Thread_Dispatch_initialization(); _Workspace_Handler_initialization( 400071d4: d2 06 20 04 ld [ %i0 + 4 ], %o1 400071d8: d0 06 00 00 ld [ %i0 ], %o0 * This routine initializes the thread dispatching subsystem. */ RTEMS_INLINE_ROUTINE void _Thread_Dispatch_initialization( void ) { _Thread_Dispatch_disable_level = 1; 400071dc: 84 10 20 01 mov 1, %g2 400071e0: 03 10 00 67 sethi %hi(0x40019c00), %g1 400071e4: c4 20 62 a0 st %g2, [ %g1 + 0x2a0 ] ! 40019ea0 <_Thread_Dispatch_disable_level> 400071e8: 40 00 0f 67 call 4000af84 <_Workspace_Handler_initialization> 400071ec: 23 10 00 67 sethi %hi(0x40019c00), %l1 (void *)configuration_table->work_space_start, configuration_table->work_space_size ); _User_extensions_Handler_initialization( 400071f0: d0 06 20 20 ld [ %i0 + 0x20 ], %o0 400071f4: 40 00 0e 07 call 4000aa10 <_User_extensions_Handler_initialization> 400071f8: d2 06 20 24 ld [ %i0 + 0x24 ], %o1 configuration_table->number_of_initial_extensions, configuration_table->User_extension_table ); _ISR_Handler_initialization(); 400071fc: 40 00 03 79 call 40007fe0 <_ISR_Handler_initialization> 40007200: a0 07 bf e8 add %fp, -24, %l0 _Objects_Handler_initialization( 40007204: 90 10 20 01 mov 1, %o0 40007208: 92 10 20 01 mov 1, %o1 4000720c: 40 00 05 6f call 400087c8 <_Objects_Handler_initialization> 40007210: 94 10 20 00 clr %o2 multiprocessing_table->node, multiprocessing_table->maximum_nodes, multiprocessing_table->maximum_global_objects ); _Objects_Information_table[OBJECTS_INTERNAL_API] = _Internal_Objects; 40007214: 05 10 00 67 sethi %hi(0x40019c00), %g2 /* * Initialize the internal allocator Mutex */ _API_Mutex_Initialization( 1 ); 40007218: c0 23 a0 5c clr [ %sp + 0x5c ] multiprocessing_table->node, multiprocessing_table->maximum_nodes, multiprocessing_table->maximum_global_objects ); _Objects_Information_table[OBJECTS_INTERNAL_API] = _Internal_Objects; 4000721c: 03 10 00 67 sethi %hi(0x40019c00), %g1 40007220: 82 10 62 e0 or %g1, 0x2e0, %g1 ! 40019ee0 <_Internal_Objects> /* * Initialize the internal allocator Mutex */ _API_Mutex_Initialization( 1 ); 40007224: 96 10 20 01 mov 1, %o3 multiprocessing_table->node, multiprocessing_table->maximum_nodes, multiprocessing_table->maximum_global_objects ); _Objects_Information_table[OBJECTS_INTERNAL_API] = _Internal_Objects; 40007228: c2 20 a2 04 st %g1, [ %g2 + 0x204 ] /* * Initialize the internal allocator Mutex */ _API_Mutex_Initialization( 1 ); 4000722c: 98 10 20 74 mov 0x74, %o4 40007230: 9a 10 20 00 clr %o5 40007234: 90 14 63 ac or %l1, 0x3ac, %o0 40007238: 92 10 20 01 mov 1, %o1 4000723c: 40 00 04 ef call 400085f8 <_Objects_Initialize_information> 40007240: 94 10 20 02 mov 2, %o2 _API_Mutex_Allocate( _RTEMS_Allocator_Mutex ); 40007244: 94 10 20 10 mov 0x10, %o2 40007248: 13 10 00 61 sethi %hi(0x40018400), %o1 4000724c: 90 10 00 10 mov %l0, %o0 40007250: 40 00 1e 4b call 4000eb7c 40007254: 92 12 60 78 or %o1, 0x78, %o1 40007258: 40 00 03 7f call 40008054 <_Objects_Allocate> 4000725c: 90 14 63 ac or %l1, 0x3ac, %o0 40007260: 03 10 00 67 sethi %hi(0x40019c00), %g1 40007264: 84 10 00 08 mov %o0, %g2 40007268: 92 10 00 10 mov %l0, %o1 4000726c: c4 20 63 74 st %g2, [ %g1 + 0x374 ] 40007270: 90 02 20 10 add %o0, 0x10, %o0 40007274: 40 00 01 03 call 40007680 <_CORE_mutex_Initialize> 40007278: 94 10 20 01 mov 1, %o2 RTEMS_INLINE_ROUTINE void _Priority_Handler_initialization( void ) { size_t index; _Priority_Major_bit_map = 0; 4000727c: 03 10 00 67 sethi %hi(0x40019c00), %g1 40007280: 84 10 20 00 clr %g2 40007284: c0 30 63 70 clrh [ %g1 + 0x370 ] for ( index=0 ; index <16 ; index++ ) _Priority_Bit_map[ index ] = 0; 40007288: 03 10 00 68 sethi %hi(0x4001a000), %g1 4000728c: 82 10 60 00 mov %g1, %g1 ! 4001a000 <_Priority_Bit_map> 40007290: c0 30 80 01 clrh [ %g2 + %g1 ] 40007294: 84 00 a0 02 add %g2, 2, %g2 RTEMS_INLINE_ROUTINE void _Priority_Handler_initialization( void ) { size_t index; _Priority_Major_bit_map = 0; for ( index=0 ; index <16 ; index++ ) 40007298: 80 a0 a0 20 cmp %g2, 0x20 4000729c: 32 bf ff fe bne,a 40007294 400072a0: c0 30 80 01 clrh [ %g2 + %g1 ] _Priority_Handler_initialization(); _Watchdog_Handler_initialization(); 400072a4: 40 00 0e c6 call 4000adbc <_Watchdog_Handler_initialization> 400072a8: 01 00 00 00 nop _TOD_Handler_initialization( configuration_table->microseconds_per_tick ); 400072ac: 40 00 01 e1 call 40007a30 <_TOD_Handler_initialization> 400072b0: d0 06 20 0c ld [ %i0 + 0xc ], %o0 _Thread_Handler_initialization( 400072b4: d2 06 20 08 ld [ %i0 + 8 ], %o1 400072b8: d0 06 20 10 ld [ %i0 + 0x10 ], %o0 400072bc: 40 00 0a 5e call 40009c34 <_Thread_Handler_initialization> 400072c0: 94 10 20 00 clr %o2 ); #endif /* MANAGERS */ _RTEMS_API_Initialize( configuration_table ); 400072c4: 40 00 00 6e call 4000747c <_RTEMS_API_Initialize> 400072c8: 90 10 00 18 mov %i0, %o0 _Extension_Manager_initialization( configuration_table->maximum_extensions ); 400072cc: 40 00 00 26 call 40007364 <_Extension_Manager_initialization> 400072d0: d0 06 20 08 ld [ %i0 + 8 ], %o0 _IO_Manager_initialization( 400072d4: d0 06 20 1c ld [ %i0 + 0x1c ], %o0 400072d8: d4 06 20 14 ld [ %i0 + 0x14 ], %o2 400072dc: 40 00 00 47 call 400073f8 <_IO_Manager_initialization> 400072e0: d2 06 20 18 ld [ %i0 + 0x18 ], %o1 RTEMS_INLINE_ROUTINE void _System_state_Set ( System_state_Codes state ) { _System_state_Current = state; 400072e4: 84 10 20 01 mov 1, %g2 400072e8: 03 10 00 68 sethi %hi(0x4001a000), %g1 * * At this point all API extensions are in place. After the call to * _Thread_Create_idle() _Thread_Executing and _Thread_Heir will be set. */ _Thread_Create_idle(); 400072ec: 40 00 09 36 call 400097c4 <_Thread_Create_idle> 400072f0: c4 20 60 80 st %g2, [ %g1 + 0x80 ] ! 4001a080 <_System_state_Current> /* * Scheduling can properly occur now as long as we avoid dispatching. */ if ( cpu_table->pretasking_hook ) 400072f4: d0 06 40 00 ld [ %i1 ], %o0 400072f8: 80 a2 20 00 cmp %o0, 0 400072fc: 02 80 00 04 be 4000730c 40007300: 01 00 00 00 nop (*cpu_table->pretasking_hook)(); 40007304: 9f c2 00 00 call %o0 40007308: 01 00 00 00 nop /* * Run the API and BSPs predriver hook. */ _API_extensions_Run_predriver(); 4000730c: 40 00 00 9a call 40007574 <_API_extensions_Run_predriver> 40007310: 01 00 00 00 nop if ( _CPU_Table.predriver_hook ) 40007314: 03 10 00 67 sethi %hi(0x40019c00), %g1 40007318: a0 10 62 b4 or %g1, 0x2b4, %l0 ! 40019eb4 <_CPU_Table> 4000731c: c2 04 20 04 ld [ %l0 + 4 ], %g1 40007320: 80 a0 60 00 cmp %g1, 0 40007324: 02 80 00 04 be 40007334 40007328: 01 00 00 00 nop (*_CPU_Table.predriver_hook)(); 4000732c: 9f c0 40 00 call %g1 40007330: 01 00 00 00 nop * Initialize all the device drivers and initialize the MPCI layer. * * NOTE: The MPCI may be build upon a device driver. */ _IO_Initialize_all_drivers(); 40007334: 40 00 00 23 call 400073c0 <_IO_Initialize_all_drivers> 40007338: 01 00 00 00 nop * Run the APIs and BSPs postdriver hooks. * * The API extensions are supposed to create user initialization tasks. */ _API_extensions_Run_postdriver(); 4000733c: 40 00 00 76 call 40007514 <_API_extensions_Run_postdriver> 40007340: 01 00 00 00 nop if ( _CPU_Table.postdriver_hook ) 40007344: c2 04 20 08 ld [ %l0 + 8 ], %g1 40007348: 80 a0 60 00 cmp %g1, 0 4000734c: 02 80 00 04 be 4000735c 40007350: 01 00 00 00 nop (*_CPU_Table.postdriver_hook)(); 40007354: 9f c0 40 00 call %g1 40007358: 01 00 00 00 nop return bsp_level; } 4000735c: 81 c7 e0 08 ret 40007360: 91 e8 00 12 restore %g0, %l2, %o0 40008454 : rtems_status_code rtems_io_register_driver( rtems_device_major_number major, rtems_driver_address_table *driver_table, rtems_device_major_number *registered_major ) { 40008454: 9d e3 bf 98 save %sp, -104, %sp /* * Validate the pointer data and contents passed in */ if ( !driver_table ) 40008458: 92 96 60 00 orcc %i1, 0, %o1 4000845c: 02 80 00 40 be 4000855c 40008460: 80 a6 a0 00 cmp %i2, 0 return RTEMS_INVALID_ADDRESS; if ( !registered_major ) 40008464: 02 80 00 41 be 40008568 40008468: 82 10 20 09 mov 9, %g1 return RTEMS_INVALID_ADDRESS; if ( !driver_table->initialization_entry && !driver_table->open_entry ) 4000846c: c2 02 40 00 ld [ %o1 ], %g1 40008470: 80 a0 60 00 cmp %g1, 0 40008474: 12 80 00 07 bne 40008490 40008478: 03 10 00 77 sethi %hi(0x4001dc00), %g1 4000847c: c2 02 60 04 ld [ %o1 + 4 ], %g1 40008480: 80 a0 60 00 cmp %g1, 0 40008484: 22 80 00 39 be,a 40008568 40008488: 82 10 20 09 mov 9, %g1 *registered_major = 0; /* * The requested major number is higher than what is configured. */ if ( major >= _IO_Number_of_drivers ) 4000848c: 03 10 00 77 sethi %hi(0x4001dc00), %g1 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !driver_table->initialization_entry && !driver_table->open_entry ) return RTEMS_INVALID_ADDRESS; *registered_major = 0; 40008490: c0 26 80 00 clr [ %i2 ] /* * The requested major number is higher than what is configured. */ if ( major >= _IO_Number_of_drivers ) 40008494: c8 00 60 dc ld [ %g1 + 0xdc ], %g4 40008498: 80 a6 00 04 cmp %i0, %g4 4000849c: 1a 80 00 33 bcc 40008568 400084a0: 82 10 20 0a mov 0xa, %g1 /* * Test for initialise/open being present to indicate the driver slot is * in use. */ if ( major == 0 ) { 400084a4: 80 a6 20 00 cmp %i0, 0 400084a8: 12 80 00 18 bne 40008508 400084ac: 03 10 00 77 sethi %hi(0x4001dc00), %g1 boolean found = FALSE; for ( major = _IO_Number_of_drivers - 1 ; major ; major-- ) { 400084b0: c6 00 60 e0 ld [ %g1 + 0xe0 ], %g3 ! 4001dce0 <_IO_Driver_address_table> 400084b4: 85 29 20 03 sll %g4, 3, %g2 400084b8: 83 29 20 05 sll %g4, 5, %g1 400084bc: b0 01 3f ff add %g4, -1, %i0 400084c0: 82 20 40 02 sub %g1, %g2, %g1 400084c4: 82 00 7f e8 add %g1, -24, %g1 400084c8: 10 80 00 0b b 400084f4 400084cc: 84 00 40 03 add %g1, %g3, %g2 if ( !_IO_Driver_address_table[major].initialization_entry && 400084d0: 80 a0 60 00 cmp %g1, 0 400084d4: 32 80 00 07 bne,a 400084f0 400084d8: b0 06 3f ff add %i0, -1, %i0 400084dc: c2 00 a0 04 ld [ %g2 + 4 ], %g1 400084e0: 80 a0 60 00 cmp %g1, 0 400084e4: 02 80 00 09 be 40008508 400084e8: 03 10 00 77 sethi %hi(0x4001dc00), %g1 * in use. */ if ( major == 0 ) { boolean found = FALSE; for ( major = _IO_Number_of_drivers - 1 ; major ; major-- ) { 400084ec: b0 06 3f ff add %i0, -1, %i0 <== NOT EXECUTED 400084f0: 84 00 bf e8 add %g2, -24, %g2 400084f4: 80 a6 20 00 cmp %i0, 0 400084f8: 32 bf ff f6 bne,a 400084d0 400084fc: c2 00 80 00 ld [ %g2 ], %g1 40008500: 10 80 00 1a b 40008568 40008504: 82 10 20 05 mov 5, %g1 if ( !found ) return RTEMS_TOO_MANY; } if ( _IO_Driver_address_table[major].initialization_entry || 40008508: c6 00 60 e0 ld [ %g1 + 0xe0 ], %g3 4000850c: 85 2e 20 03 sll %i0, 3, %g2 40008510: 83 2e 20 05 sll %i0, 5, %g1 40008514: 82 20 40 02 sub %g1, %g2, %g1 40008518: c4 00 40 03 ld [ %g1 + %g3 ], %g2 4000851c: 80 a0 a0 00 cmp %g2, 0 40008520: 12 80 00 11 bne 40008564 40008524: 90 00 40 03 add %g1, %g3, %o0 40008528: c2 02 20 04 ld [ %o0 + 4 ], %g1 4000852c: 80 a0 60 00 cmp %g1, 0 40008530: 32 80 00 0e bne,a 40008568 40008534: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED _IO_Driver_address_table[major].open_entry ) return RTEMS_RESOURCE_IN_USE; _IO_Driver_address_table[major] = *driver_table; 40008538: 40 00 1d 52 call 4000fa80 4000853c: 94 10 20 18 mov 0x18, %o2 *registered_major = major; rtems_io_initialize( major, 0, NULL ); 40008540: 90 10 00 18 mov %i0, %o0 _IO_Driver_address_table[major].open_entry ) return RTEMS_RESOURCE_IN_USE; _IO_Driver_address_table[major] = *driver_table; *registered_major = major; 40008544: f0 26 80 00 st %i0, [ %i2 ] rtems_io_initialize( major, 0, NULL ); 40008548: 92 10 20 00 clr %o1 4000854c: 7f ff ff 52 call 40008294 40008550: 94 10 20 00 clr %o2 40008554: 10 80 00 05 b 40008568 40008558: 82 10 20 00 clr %g1 return RTEMS_SUCCESSFUL; 4000855c: 10 80 00 03 b 40008568 40008560: 82 10 20 09 mov 9, %g1 40008564: 82 10 20 0c mov 0xc, %g1 } 40008568: 81 c7 e0 08 ret 4000856c: 91 e8 00 01 restore %g0, %g1, %o0 40009a24 : #include #include void rtems_iterate_over_all_threads(rtems_per_thread_routine routine) { 40009a24: 9d e3 bf 98 save %sp, -104, %sp uint32_t i; uint32_t api_index; Thread_Control *the_thread; Objects_Information *information; if ( !routine ) 40009a28: 80 a6 20 00 cmp %i0, 0 40009a2c: 02 80 00 1d be 40009aa0 40009a30: 03 10 00 98 sethi %hi(0x40026000), %g1 return; 40009a34: a4 10 63 14 or %g1, 0x314, %l2 ! 40026314 <_Objects_Information_table+0x4> for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; 40009a38: a6 04 a0 10 add %l2, 0x10, %l3 api_index++ ) { if ( !_Objects_Information_table[ api_index ] ) 40009a3c: c2 04 80 00 ld [ %l2 ], %g1 40009a40: 80 a0 60 00 cmp %g1, 0 40009a44: 22 80 00 14 be,a 40009a94 40009a48: a4 04 a0 04 add %l2, 4, %l2 continue; information = _Objects_Information_table[ api_index ][ 1 ]; 40009a4c: e0 00 60 04 ld [ %g1 + 4 ], %l0 if ( information ) { 40009a50: 80 a4 20 00 cmp %l0, 0 40009a54: 12 80 00 0b bne 40009a80 40009a58: a2 10 20 01 mov 1, %l1 for ( i=1 ; i <= information->maximum ; i++ ) { 40009a5c: 10 80 00 0e b 40009a94 <== NOT EXECUTED 40009a60: a4 04 a0 04 add %l2, 4, %l2 <== NOT EXECUTED the_thread = (Thread_Control *)information->local_table[ i ]; 40009a64: c2 04 20 20 ld [ %l0 + 0x20 ], %g1 40009a68: d0 00 40 08 ld [ %g1 + %o0 ], %o0 if ( !the_thread ) 40009a6c: 80 a2 20 00 cmp %o0, 0 40009a70: 02 80 00 04 be 40009a80 40009a74: a2 04 60 01 inc %l1 continue; (*routine)(the_thread); 40009a78: 9f c6 00 00 call %i0 40009a7c: 01 00 00 00 nop api_index++ ) { if ( !_Objects_Information_table[ api_index ] ) continue; information = _Objects_Information_table[ api_index ][ 1 ]; if ( information ) { for ( i=1 ; i <= information->maximum ; i++ ) { 40009a80: c2 14 20 10 lduh [ %l0 + 0x10 ], %g1 40009a84: 80 a4 40 01 cmp %l1, %g1 40009a88: 08 bf ff f7 bleu 40009a64 40009a8c: 91 2c 60 02 sll %l1, 2, %o0 40009a90: a4 04 a0 04 add %l2, 4, %l2 if ( !routine ) return; for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; 40009a94: 80 a4 80 13 cmp %l2, %l3 40009a98: 32 bf ff ea bne,a 40009a40 40009a9c: c2 04 80 00 ld [ %l2 ], %g1 40009aa0: 81 c7 e0 08 ret 40009aa4: 81 e8 00 00 restore 4000f608 : Objects_Id id, void *buffer, size_t size, uint32_t *count ) { 4000f608: 9d e3 bf 90 save %sp, -112, %sp register Message_queue_Control *the_message_queue; Objects_Locations location; CORE_message_queue_Status core_status; if ( !buffer ) 4000f60c: 80 a6 60 00 cmp %i1, 0 4000f610: 02 80 00 26 be 4000f6a8 4000f614: 80 a6 e0 00 cmp %i3, 0 return RTEMS_INVALID_ADDRESS; if ( !count ) 4000f618: 02 80 00 24 be 4000f6a8 4000f61c: 11 10 00 cd sethi %hi(0x40033400), %o0 RTEMS_INLINE_ROUTINE Message_queue_Control *_Message_queue_Get ( Objects_Id id, Objects_Locations *location ) { return (Message_queue_Control *) 4000f620: 92 10 00 18 mov %i0, %o1 4000f624: 90 12 21 b0 or %o0, 0x1b0, %o0 4000f628: 40 00 18 89 call 4001584c <_Objects_Get> 4000f62c: 94 07 bf f4 add %fp, -12, %o2 return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { 4000f630: c2 07 bf f4 ld [ %fp + -12 ], %g1 4000f634: 80 a0 60 00 cmp %g1, 0 4000f638: 02 80 00 07 be 4000f654 4000f63c: 9a 10 00 1b mov %i3, %o5 4000f640: 80 a0 60 02 cmp %g1, 2 4000f644: 08 80 00 1a bleu 4000f6ac 4000f648: 90 10 20 04 mov 4, %o0 4000f64c: 10 80 00 18 b 4000f6ac <== NOT EXECUTED 4000f650: 90 10 20 19 mov 0x19, %o0 <== NOT EXECUTED case OBJECTS_ERROR: return RTEMS_INVALID_ID; case OBJECTS_LOCAL: core_status = _CORE_message_queue_Broadcast( 4000f654: 92 10 00 19 mov %i1, %o1 4000f658: 94 10 00 1a mov %i2, %o2 4000f65c: 96 10 00 18 mov %i0, %o3 4000f660: 98 10 20 00 clr %o4 4000f664: 40 00 13 17 call 400142c0 <_CORE_message_queue_Broadcast> 4000f668: 90 02 20 14 add %o0, 0x14, %o0 4000f66c: b6 10 00 08 mov %o0, %i3 #if ( CPU_INLINE_ENABLE_DISPATCH == TRUE ) RTEMS_INLINE_ROUTINE void _Thread_Enable_dispatch() { RTEMS_COMPILER_MEMORY_BARRIER(); if ( (--_Thread_Dispatch_disable_level) == 0 ) 4000f670: 03 10 00 cc sethi %hi(0x40033000), %g1 4000f674: c4 00 62 90 ld [ %g1 + 0x290 ], %g2 ! 40033290 <_Thread_Dispatch_disable_level> 4000f678: 84 00 bf ff add %g2, -1, %g2 4000f67c: c4 20 62 90 st %g2, [ %g1 + 0x290 ] 4000f680: c2 00 62 90 ld [ %g1 + 0x290 ], %g1 4000f684: 80 a0 60 00 cmp %g1, 0 4000f688: 12 80 00 04 bne 4000f698 4000f68c: 01 00 00 00 nop _Thread_Dispatch(); 4000f690: 40 00 1d 63 call 40016c1c <_Thread_Dispatch> 4000f694: 01 00 00 00 nop #endif count ); _Thread_Enable_dispatch(); return 4000f698: 40 00 01 2e call 4000fb50 <_Message_queue_Translate_core_message_queue_return_code> 4000f69c: 90 10 00 1b mov %i3, %o0 _Message_queue_Translate_core_message_queue_return_code( core_status ); } return RTEMS_INTERNAL_ERROR; /* unreached - only to remove warnings */ } 4000f6a0: 81 c7 e0 08 ret 4000f6a4: 91 e8 00 08 restore %g0, %o0, %o0 #endif count ); _Thread_Enable_dispatch(); return 4000f6a8: 90 10 20 09 mov 9, %o0 <== NOT EXECUTED _Message_queue_Translate_core_message_queue_return_code( core_status ); } return RTEMS_INTERNAL_ERROR; /* unreached - only to remove warnings */ } 4000f6ac: b0 10 00 08 mov %o0, %i0 4000f6b0: 81 c7 e0 08 ret 4000f6b4: 81 e8 00 00 restore 4000f6ec : uint32_t count, uint32_t max_message_size, rtems_attribute attribute_set, Objects_Id *id ) { 4000f6ec: 9d e3 bf 90 save %sp, -112, %sp CORE_message_queue_Attributes the_msgq_attributes; #if defined(RTEMS_MULTIPROCESSING) boolean is_global; #endif if ( !rtems_is_name_valid( name ) ) 4000f6f0: a2 96 20 00 orcc %i0, 0, %l1 4000f6f4: 02 80 00 17 be 4000f750 4000f6f8: b0 10 20 03 mov 3, %i0 return RTEMS_INVALID_NAME; if ( !id ) 4000f6fc: 80 a7 20 00 cmp %i4, 0 4000f700: 02 80 00 14 be 4000f750 4000f704: b0 10 20 09 mov 9, %i0 if ( (is_global = _Attributes_Is_global( attribute_set ) ) && !_System_state_Is_multiprocessing ) return RTEMS_MP_NOT_CONFIGURED; #endif if ( count == 0 ) 4000f708: 80 a6 60 00 cmp %i1, 0 4000f70c: 02 80 00 11 be 4000f750 4000f710: b0 10 20 0a mov 0xa, %i0 return RTEMS_INVALID_NUMBER; if ( max_message_size == 0 ) 4000f714: 80 a6 a0 00 cmp %i2, 0 4000f718: 02 80 00 0e be 4000f750 4000f71c: b0 10 20 08 mov 8, %i0 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 4000f720: 05 10 00 cc sethi %hi(0x40033000), %g2 4000f724: c2 00 a2 90 ld [ %g2 + 0x290 ], %g1 ! 40033290 <_Thread_Dispatch_disable_level> 4000f728: 82 00 60 01 inc %g1 4000f72c: c2 20 a2 90 st %g1, [ %g2 + 0x290 ] #endif #endif _Thread_Disable_dispatch(); /* protects object pointer */ the_message_queue = _Message_queue_Allocate( count, max_message_size ); 4000f730: 90 10 00 19 mov %i1, %o0 4000f734: 40 00 2b 2c call 4001a3e4 <_Message_queue_Allocate> 4000f738: 92 10 00 1a mov %i2, %o1 if ( !the_message_queue ) { 4000f73c: a0 92 20 00 orcc %o0, 0, %l0 4000f740: 12 80 00 06 bne 4000f758 4000f744: 80 8e e0 04 btst 4, %i3 _Thread_Enable_dispatch(); 4000f748: 7f ff ff dc call 4000f6b8 <_Thread_Enable_dispatch> 4000f74c: b0 10 20 05 mov 5, %i0 4000f750: 81 c7 e0 08 ret 4000f754: 81 e8 00 00 restore } #endif the_message_queue->attribute_set = attribute_set; if (_Attributes_Is_priority( attribute_set ) ) 4000f758: 02 80 00 05 be 4000f76c 4000f75c: f6 24 20 10 st %i3, [ %l0 + 0x10 ] the_msgq_attributes.discipline = CORE_MESSAGE_QUEUE_DISCIPLINES_PRIORITY; 4000f760: 82 10 20 01 mov 1, %g1 4000f764: 10 80 00 03 b 4000f770 4000f768: c2 27 bf f4 st %g1, [ %fp + -12 ] else the_msgq_attributes.discipline = CORE_MESSAGE_QUEUE_DISCIPLINES_FIFO; 4000f76c: c0 27 bf f4 clr [ %fp + -12 ] if ( ! _CORE_message_queue_Initialize( 4000f770: 94 10 00 19 mov %i1, %o2 4000f774: 96 10 00 1a mov %i2, %o3 4000f778: 90 04 20 14 add %l0, 0x14, %o0 4000f77c: 40 00 13 1d call 400143f0 <_CORE_message_queue_Initialize> 4000f780: 92 07 bf f4 add %fp, -12, %o1 4000f784: 80 a2 20 00 cmp %o0, 0 4000f788: 12 80 00 0a bne 4000f7b0 4000f78c: 11 10 00 cd sethi %hi(0x40033400), %o0 RTEMS_INLINE_ROUTINE void _Message_queue_Free ( Message_queue_Control *the_message_queue ) { _Objects_Free( &_Message_queue_Information, &the_message_queue->Object ); 4000f790: 90 12 21 b0 or %o0, 0x1b0, %o0 ! 400335b0 <_Message_queue_Information> <== NOT EXECUTED 4000f794: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED 4000f798: 40 00 17 d7 call 400156f4 <_Objects_Free> <== NOT EXECUTED 4000f79c: b0 10 20 0d mov 0xd, %i0 <== NOT EXECUTED _Objects_MP_Close( &_Message_queue_Information, the_message_queue->Object.id); #endif _Message_queue_Free( the_message_queue ); _Thread_Enable_dispatch(); 4000f7a0: 7f ff ff c6 call 4000f6b8 <_Thread_Enable_dispatch> <== NOT EXECUTED 4000f7a4: 01 00 00 00 nop <== NOT EXECUTED 4000f7a8: 81 c7 e0 08 ret <== NOT EXECUTED 4000f7ac: 81 e8 00 00 restore <== NOT EXECUTED Objects_Information *information, uint16_t index, Objects_Control *the_object ) { if ( index <= information->maximum ) 4000f7b0: 90 12 21 b0 or %o0, 0x1b0, %o0 ) { uint32_t index; index = _Objects_Get_index( the_object->id ); _Objects_Set_local_object( information, index, the_object ); 4000f7b4: c2 04 20 08 ld [ %l0 + 8 ], %g1 Objects_Information *information, uint16_t index, Objects_Control *the_object ) { if ( index <= information->maximum ) 4000f7b8: c6 12 20 10 lduh [ %o0 + 0x10 ], %g3 4000f7bc: 05 00 00 3f sethi %hi(0xfc00), %g2 4000f7c0: 84 10 a3 ff or %g2, 0x3ff, %g2 ! ffff 4000f7c4: 82 08 40 02 and %g1, %g2, %g1 4000f7c8: 80 a0 40 03 cmp %g1, %g3 4000f7cc: 38 80 00 06 bgu,a 4000f7e4 4000f7d0: c2 04 20 08 ld [ %l0 + 8 ], %g1 <== NOT EXECUTED information->local_table[ index ] = the_object; 4000f7d4: c4 02 20 20 ld [ %o0 + 0x20 ], %g2 4000f7d8: 83 28 60 02 sll %g1, 2, %g1 4000f7dc: e0 20 80 01 st %l0, [ %g2 + %g1 ] &_Message_queue_Information, &the_message_queue->Object, (Objects_Name) name ); *id = the_message_queue->Object.id; 4000f7e0: c2 04 20 08 ld [ %l0 + 8 ], %g1 if ( information->is_string ) /* _Objects_Copy_name_string( name, the_object->name ); */ the_object->name = name; else /* _Objects_Copy_name_raw( name, the_object->name, information->name_length ); */ the_object->name = name; 4000f7e4: e2 24 20 0c st %l1, [ %l0 + 0xc ] 4000f7e8: c2 27 00 00 st %g1, [ %i4 ] name, 0 ); #endif _Thread_Enable_dispatch(); 4000f7ec: 7f ff ff b3 call 4000f6b8 <_Thread_Enable_dispatch> 4000f7f0: b0 10 20 00 clr %i0 return RTEMS_SUCCESSFUL; } 4000f7f4: 81 c7 e0 08 ret 4000f7f8: 81 e8 00 00 restore 4001331c : */ rtems_status_code rtems_message_queue_delete( Objects_Id id ) { 4001331c: 9d e3 bf 90 save %sp, -112, %sp RTEMS_INLINE_ROUTINE Message_queue_Control *_Message_queue_Get ( Objects_Id id, Objects_Locations *location ) { return (Message_queue_Control *) 40013320: 21 10 00 a2 sethi %hi(0x40028800), %l0 40013324: 92 10 00 18 mov %i0, %o1 40013328: 94 07 bf f4 add %fp, -12, %o2 4001332c: 7f ff e6 a5 call 4000cdc0 <_Objects_Get> 40013330: 90 14 22 3c or %l0, 0x23c, %o0 register Message_queue_Control *the_message_queue; Objects_Locations location; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { 40013334: c2 07 bf f4 ld [ %fp + -12 ], %g1 40013338: 80 a0 60 00 cmp %g1, 0 4001333c: 02 80 00 07 be 40013358 40013340: b0 10 00 08 mov %o0, %i0 40013344: 80 a0 60 02 cmp %g1, 2 40013348: 08 80 00 22 bleu 400133d0 4001334c: b0 10 20 04 mov 4, %i0 40013350: 81 c7 e0 08 ret <== NOT EXECUTED 40013354: 91 e8 20 19 restore %g0, 0x19, %o0 <== NOT EXECUTED Objects_Information *information, uint16_t index, Objects_Control *the_object ) { if ( index <= information->maximum ) 40013358: a0 14 22 3c or %l0, 0x23c, %l0 ) { uint32_t index; index = _Objects_Get_index( the_object->id ); _Objects_Set_local_object( information, index, NULL ); 4001335c: c2 02 20 08 ld [ %o0 + 8 ], %g1 Objects_Information *information, uint16_t index, Objects_Control *the_object ) { if ( index <= information->maximum ) 40013360: c6 14 20 10 lduh [ %l0 + 0x10 ], %g3 40013364: 05 00 00 3f sethi %hi(0xfc00), %g2 40013368: 84 10 a3 ff or %g2, 0x3ff, %g2 ! ffff 4001336c: 82 08 40 02 and %g1, %g2, %g1 40013370: 80 a0 40 03 cmp %g1, %g3 40013374: 18 80 00 05 bgu 40013388 40013378: 94 10 20 05 mov 5, %o2 information->local_table[ index ] = the_object; 4001337c: c4 04 20 20 ld [ %l0 + 0x20 ], %g2 40013380: 83 28 60 02 sll %g1, 2, %g1 40013384: c0 20 80 01 clr [ %g2 + %g1 ] case OBJECTS_LOCAL: _Objects_Close( &_Message_queue_Information, &the_message_queue->Object ); _CORE_message_queue_Close( 40013388: 90 06 20 14 add %i0, 0x14, %o0 uint32_t index; index = _Objects_Get_index( the_object->id ); _Objects_Set_local_object( information, index, NULL ); /* _Objects_Clear_name( the_object->name, information->name_length ); */ the_object->name = 0; 4001338c: c0 26 20 0c clr [ %i0 + 0xc ] 40013390: 40 00 01 9e call 40013a08 <_CORE_message_queue_Close> 40013394: 92 10 20 00 clr %o1 RTEMS_INLINE_ROUTINE void _Message_queue_Free ( Message_queue_Control *the_message_queue ) { _Objects_Free( &_Message_queue_Information, &the_message_queue->Object ); 40013398: 90 10 00 10 mov %l0, %o0 4001339c: 7f ff e6 47 call 4000ccb8 <_Objects_Free> 400133a0: 92 10 00 18 mov %i0, %o1 #if ( CPU_INLINE_ENABLE_DISPATCH == TRUE ) RTEMS_INLINE_ROUTINE void _Thread_Enable_dispatch() { RTEMS_COMPILER_MEMORY_BARRIER(); if ( (--_Thread_Dispatch_disable_level) == 0 ) 400133a4: 03 10 00 a1 sethi %hi(0x40028400), %g1 400133a8: c4 00 62 a0 ld [ %g1 + 0x2a0 ], %g2 ! 400286a0 <_Thread_Dispatch_disable_level> 400133ac: b0 10 20 00 clr %i0 400133b0: 84 00 bf ff add %g2, -1, %g2 400133b4: c4 20 62 a0 st %g2, [ %g1 + 0x2a0 ] 400133b8: c2 00 62 a0 ld [ %g1 + 0x2a0 ], %g1 400133bc: 80 a0 60 00 cmp %g1, 0 400133c0: 12 80 00 04 bne 400133d0 400133c4: 01 00 00 00 nop _Thread_Dispatch(); 400133c8: 7f ff eb 72 call 4000e190 <_Thread_Dispatch> 400133cc: 01 00 00 00 nop _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } return RTEMS_INTERNAL_ERROR; /* unreached - only to remove warnings */ } 400133d0: 81 c7 e0 08 ret 400133d4: 81 e8 00 00 restore 4000f8b8 : rtems_status_code rtems_message_queue_flush( Objects_Id id, uint32_t *count ) { 4000f8b8: 9d e3 bf 90 save %sp, -112, %sp 4000f8bc: 92 10 00 18 mov %i0, %o1 register Message_queue_Control *the_message_queue; Objects_Locations location; if ( !count ) 4000f8c0: 80 a6 60 00 cmp %i1, 0 4000f8c4: 02 80 00 1c be 4000f934 4000f8c8: b0 10 20 09 mov 9, %i0 RTEMS_INLINE_ROUTINE Message_queue_Control *_Message_queue_Get ( Objects_Id id, Objects_Locations *location ) { return (Message_queue_Control *) 4000f8cc: 11 10 00 cd sethi %hi(0x40033400), %o0 4000f8d0: 94 07 bf f4 add %fp, -12, %o2 4000f8d4: 40 00 17 de call 4001584c <_Objects_Get> 4000f8d8: 90 12 21 b0 or %o0, 0x1b0, %o0 return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { 4000f8dc: c2 07 bf f4 ld [ %fp + -12 ], %g1 4000f8e0: 80 a0 60 00 cmp %g1, 0 4000f8e4: 02 80 00 06 be 4000f8fc 4000f8e8: 80 a0 60 02 cmp %g1, 2 4000f8ec: 08 80 00 12 bleu 4000f934 4000f8f0: b0 10 20 04 mov 4, %i0 4000f8f4: 81 c7 e0 08 ret <== NOT EXECUTED 4000f8f8: 91 e8 20 19 restore %g0, 0x19, %o0 <== NOT EXECUTED case OBJECTS_ERROR: return RTEMS_INVALID_ID; case OBJECTS_LOCAL: *count = _CORE_message_queue_Flush( &the_message_queue->message_queue ); 4000f8fc: 40 00 12 9e call 40014374 <_CORE_message_queue_Flush> 4000f900: 90 02 20 14 add %o0, 0x14, %o0 4000f904: d0 26 40 00 st %o0, [ %i1 ] #if ( CPU_INLINE_ENABLE_DISPATCH == TRUE ) RTEMS_INLINE_ROUTINE void _Thread_Enable_dispatch() { RTEMS_COMPILER_MEMORY_BARRIER(); if ( (--_Thread_Dispatch_disable_level) == 0 ) 4000f908: 03 10 00 cc sethi %hi(0x40033000), %g1 4000f90c: c4 00 62 90 ld [ %g1 + 0x290 ], %g2 ! 40033290 <_Thread_Dispatch_disable_level> 4000f910: b0 10 20 00 clr %i0 4000f914: 84 00 bf ff add %g2, -1, %g2 4000f918: c4 20 62 90 st %g2, [ %g1 + 0x290 ] 4000f91c: c2 00 62 90 ld [ %g1 + 0x290 ], %g1 4000f920: 80 a0 60 00 cmp %g1, 0 4000f924: 12 80 00 04 bne 4000f934 4000f928: 01 00 00 00 nop _Thread_Dispatch(); 4000f92c: 40 00 1c bc call 40016c1c <_Thread_Dispatch> 4000f930: 01 00 00 00 nop _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } return RTEMS_INTERNAL_ERROR; /* unreached - only to remove warnings */ } 4000f934: 81 c7 e0 08 ret 4000f938: 81 e8 00 00 restore 4000f93c : rtems_status_code rtems_message_queue_get_number_pending( Objects_Id id, uint32_t *count ) { 4000f93c: 9d e3 bf 90 save %sp, -112, %sp 4000f940: 92 10 00 18 mov %i0, %o1 register Message_queue_Control *the_message_queue; Objects_Locations location; if ( !count ) 4000f944: 80 a6 60 00 cmp %i1, 0 4000f948: 02 80 00 1b be 4000f9b4 4000f94c: b0 10 20 09 mov 9, %i0 4000f950: 11 10 00 cd sethi %hi(0x40033400), %o0 4000f954: 94 07 bf f4 add %fp, -12, %o2 4000f958: 40 00 17 bd call 4001584c <_Objects_Get> 4000f95c: 90 12 21 b0 or %o0, 0x1b0, %o0 return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { 4000f960: c2 07 bf f4 ld [ %fp + -12 ], %g1 4000f964: 80 a0 60 00 cmp %g1, 0 4000f968: 22 80 00 07 be,a 4000f984 4000f96c: c2 02 20 5c ld [ %o0 + 0x5c ], %g1 4000f970: 80 a0 60 02 cmp %g1, 2 4000f974: 08 80 00 10 bleu 4000f9b4 4000f978: b0 10 20 04 mov 4, %i0 4000f97c: 81 c7 e0 08 ret <== NOT EXECUTED 4000f980: 91 e8 20 19 restore %g0, 0x19, %o0 <== NOT EXECUTED case OBJECTS_ERROR: return RTEMS_INVALID_ID; case OBJECTS_LOCAL: *count = the_message_queue->message_queue.number_of_pending_messages; 4000f984: c2 26 40 00 st %g1, [ %i1 ] #if ( CPU_INLINE_ENABLE_DISPATCH == TRUE ) RTEMS_INLINE_ROUTINE void _Thread_Enable_dispatch() { RTEMS_COMPILER_MEMORY_BARRIER(); if ( (--_Thread_Dispatch_disable_level) == 0 ) 4000f988: 05 10 00 cc sethi %hi(0x40033000), %g2 4000f98c: c2 00 a2 90 ld [ %g2 + 0x290 ], %g1 ! 40033290 <_Thread_Dispatch_disable_level> 4000f990: b0 10 20 00 clr %i0 4000f994: 82 00 7f ff add %g1, -1, %g1 4000f998: c2 20 a2 90 st %g1, [ %g2 + 0x290 ] 4000f99c: c2 00 a2 90 ld [ %g2 + 0x290 ], %g1 4000f9a0: 80 a0 60 00 cmp %g1, 0 4000f9a4: 12 80 00 04 bne 4000f9b4 4000f9a8: 01 00 00 00 nop _Thread_Dispatch(); 4000f9ac: 40 00 1c 9c call 40016c1c <_Thread_Dispatch> 4000f9b0: 01 00 00 00 nop _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } return RTEMS_INTERNAL_ERROR; /* unreached - only to remove warnings */ } 4000f9b4: 81 c7 e0 08 ret 4000f9b8: 81 e8 00 00 restore 4001340c : void *buffer, size_t *size, uint32_t option_set, rtems_interval timeout ) { 4001340c: 9d e3 bf 90 save %sp, -112, %sp register Message_queue_Control *the_message_queue; Objects_Locations location; boolean wait; if ( !buffer ) 40013410: 80 a6 60 00 cmp %i1, 0 40013414: 02 80 00 28 be 400134b4 40013418: 92 10 00 18 mov %i0, %o1 return RTEMS_INVALID_ADDRESS; if ( !size ) 4001341c: 80 a6 a0 00 cmp %i2, 0 40013420: 02 80 00 25 be 400134b4 40013424: 11 10 00 a2 sethi %hi(0x40028800), %o0 RTEMS_INLINE_ROUTINE Message_queue_Control *_Message_queue_Get ( Objects_Id id, Objects_Locations *location ) { return (Message_queue_Control *) 40013428: 94 07 bf f4 add %fp, -12, %o2 4001342c: 7f ff e6 65 call 4000cdc0 <_Objects_Get> 40013430: 90 12 22 3c or %o0, 0x23c, %o0 return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { 40013434: c2 07 bf f4 ld [ %fp + -12 ], %g1 40013438: 80 a0 60 00 cmp %g1, 0 4001343c: 22 80 00 07 be,a 40013458 40013440: d2 02 20 08 ld [ %o0 + 8 ], %o1 40013444: 80 a0 60 02 cmp %g1, 2 40013448: 08 80 00 1c bleu 400134b8 4001344c: 90 10 20 04 mov 4, %o0 40013450: 10 80 00 1a b 400134b8 <== NOT EXECUTED 40013454: 90 10 20 19 mov 0x19, %o0 <== NOT EXECUTED 40013458: 98 0e e0 01 and %i3, 1, %o4 if ( _Options_Is_no_wait( option_set ) ) wait = FALSE; else wait = TRUE; _CORE_message_queue_Seize( 4001345c: 94 10 00 19 mov %i1, %o2 40013460: 96 10 00 1a mov %i2, %o3 40013464: 98 1b 20 01 xor %o4, 1, %o4 40013468: 9a 10 00 1c mov %i4, %o5 4001346c: 40 00 01 94 call 40013abc <_CORE_message_queue_Seize> 40013470: 90 02 20 14 add %o0, 0x14, %o0 #if ( CPU_INLINE_ENABLE_DISPATCH == TRUE ) RTEMS_INLINE_ROUTINE void _Thread_Enable_dispatch() { RTEMS_COMPILER_MEMORY_BARRIER(); if ( (--_Thread_Dispatch_disable_level) == 0 ) 40013474: 05 10 00 a1 sethi %hi(0x40028400), %g2 40013478: c2 00 a2 a0 ld [ %g2 + 0x2a0 ], %g1 ! 400286a0 <_Thread_Dispatch_disable_level> 4001347c: 82 00 7f ff add %g1, -1, %g1 40013480: c2 20 a2 a0 st %g1, [ %g2 + 0x2a0 ] 40013484: c2 00 a2 a0 ld [ %g2 + 0x2a0 ], %g1 40013488: 80 a0 60 00 cmp %g1, 0 4001348c: 12 80 00 05 bne 400134a0 40013490: 03 10 00 a1 sethi %hi(0x40028400), %g1 _Thread_Dispatch(); 40013494: 7f ff eb 3f call 4000e190 <_Thread_Dispatch> 40013498: 01 00 00 00 nop size, wait, timeout ); _Thread_Enable_dispatch(); return _Message_queue_Translate_core_message_queue_return_code( 4001349c: 03 10 00 a1 sethi %hi(0x40028400), %g1 400134a0: c2 00 63 7c ld [ %g1 + 0x37c ], %g1 ! 4002877c <_Thread_Executing> 400134a4: 40 00 00 32 call 4001356c <_Message_queue_Translate_core_message_queue_return_code> 400134a8: d0 00 60 34 ld [ %g1 + 0x34 ], %o0 ); } return RTEMS_INTERNAL_ERROR; /* unreached - only to remove warnings */ } 400134ac: 81 c7 e0 08 ret 400134b0: 91 e8 00 08 restore %g0, %o0, %o0 size, wait, timeout ); _Thread_Enable_dispatch(); return _Message_queue_Translate_core_message_queue_return_code( 400134b4: 90 10 20 09 mov 9, %o0 <== NOT EXECUTED ); } return RTEMS_INTERNAL_ERROR; /* unreached - only to remove warnings */ } 400134b8: b0 10 00 08 mov %o0, %i0 400134bc: 81 c7 e0 08 ret 400134c0: 81 e8 00 00 restore 400134c4 : rtems_status_code rtems_message_queue_send( Objects_Id id, void *buffer, size_t size ) { 400134c4: 9d e3 bf 88 save %sp, -120, %sp register Message_queue_Control *the_message_queue; Objects_Locations location; CORE_message_queue_Status status; if ( !buffer ) 400134c8: 80 a6 60 00 cmp %i1, 0 400134cc: 02 80 00 26 be 40013564 400134d0: 90 10 20 09 mov 9, %o0 400134d4: 11 10 00 a2 sethi %hi(0x40028800), %o0 400134d8: 92 10 00 18 mov %i0, %o1 400134dc: 90 12 22 3c or %o0, 0x23c, %o0 400134e0: 7f ff e6 38 call 4000cdc0 <_Objects_Get> 400134e4: 94 07 bf f4 add %fp, -12, %o2 return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) 400134e8: c2 07 bf f4 ld [ %fp + -12 ], %g1 400134ec: 80 a0 60 00 cmp %g1, 0 400134f0: 22 80 00 07 be,a 4001350c 400134f4: 94 10 00 1a mov %i2, %o2 400134f8: 80 a0 60 02 cmp %g1, 2 400134fc: 08 80 00 1a bleu 40013564 40013500: 90 10 20 04 mov 4, %o0 40013504: 10 80 00 18 b 40013564 <== NOT EXECUTED 40013508: 90 10 20 19 mov 0x19, %o0 <== NOT EXECUTED CORE_message_queue_API_mp_support_callout api_message_queue_mp_support, boolean wait, Watchdog_Interval timeout ) { return _CORE_message_queue_Submit( 4001350c: c0 23 a0 5c clr [ %sp + 0x5c ] 40013510: c0 23 a0 60 clr [ %sp + 0x60 ] 40013514: 92 10 00 19 mov %i1, %o1 40013518: 96 10 00 18 mov %i0, %o3 4001351c: 98 10 20 00 clr %o4 40013520: 90 02 20 14 add %o0, 0x14, %o0 40013524: 1b 1f ff ff sethi %hi(0x7ffffc00), %o5 40013528: 40 00 01 b2 call 40013bf0 <_CORE_message_queue_Submit> 4001352c: 9a 13 63 ff or %o5, 0x3ff, %o5 ! 7fffffff 40013530: b4 10 00 08 mov %o0, %i2 #if ( CPU_INLINE_ENABLE_DISPATCH == TRUE ) RTEMS_INLINE_ROUTINE void _Thread_Enable_dispatch() { RTEMS_COMPILER_MEMORY_BARRIER(); if ( (--_Thread_Dispatch_disable_level) == 0 ) 40013534: 05 10 00 a1 sethi %hi(0x40028400), %g2 40013538: c2 00 a2 a0 ld [ %g2 + 0x2a0 ], %g1 ! 400286a0 <_Thread_Dispatch_disable_level> 4001353c: 82 00 7f ff add %g1, -1, %g1 40013540: c2 20 a2 a0 st %g1, [ %g2 + 0x2a0 ] 40013544: c2 00 a2 a0 ld [ %g2 + 0x2a0 ], %g1 40013548: 80 a0 60 00 cmp %g1, 0 4001354c: 12 80 00 04 bne 4001355c 40013550: 01 00 00 00 nop _Thread_Dispatch(); 40013554: 7f ff eb 0f call 4000e190 <_Thread_Dispatch> 40013558: 01 00 00 00 nop /* * 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); 4001355c: 40 00 00 04 call 4001356c <_Message_queue_Translate_core_message_queue_return_code> 40013560: 90 10 00 1a mov %i2, %o0 } return RTEMS_INTERNAL_ERROR; /* unreached - only to remove warnings */ } 40013564: 81 c7 e0 08 ret 40013568: 91 e8 00 08 restore %g0, %o0, %o0 4000914c : rtems_status_code rtems_message_queue_urgent( Objects_Id id, void *buffer, size_t size ) { 4000914c: 9d e3 bf 88 save %sp, -120, %sp register Message_queue_Control *the_message_queue; Objects_Locations location; CORE_message_queue_Status status; if ( !buffer ) 40009150: 80 a6 60 00 cmp %i1, 0 40009154: 02 80 00 25 be 400091e8 40009158: 90 10 20 09 mov 9, %o0 4000915c: 11 10 00 86 sethi %hi(0x40021800), %o0 40009160: 92 10 00 18 mov %i0, %o1 40009164: 90 12 21 a8 or %o0, 0x1a8, %o0 40009168: 40 00 09 de call 4000b8e0 <_Objects_Get> 4000916c: 94 07 bf f4 add %fp, -12, %o2 return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) 40009170: c2 07 bf f4 ld [ %fp + -12 ], %g1 40009174: 80 a0 60 00 cmp %g1, 0 40009178: 22 80 00 07 be,a 40009194 4000917c: 94 10 00 1a mov %i2, %o2 40009180: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 40009184: 08 80 00 19 bleu 400091e8 <== NOT EXECUTED 40009188: 90 10 20 04 mov 4, %o0 <== NOT EXECUTED 4000918c: 10 80 00 17 b 400091e8 <== NOT EXECUTED 40009190: 90 10 20 19 mov 0x19, %o0 <== NOT EXECUTED CORE_message_queue_API_mp_support_callout api_message_queue_mp_support, boolean wait, Watchdog_Interval timeout ) { return _CORE_message_queue_Submit( 40009194: c0 23 a0 5c clr [ %sp + 0x5c ] 40009198: c0 23 a0 60 clr [ %sp + 0x60 ] 4000919c: 92 10 00 19 mov %i1, %o1 400091a0: 96 10 00 18 mov %i0, %o3 400091a4: 98 10 20 00 clr %o4 400091a8: 1b 20 00 00 sethi %hi(0x80000000), %o5 400091ac: 40 00 05 c8 call 4000a8cc <_CORE_message_queue_Submit> 400091b0: 90 02 20 14 add %o0, 0x14, %o0 400091b4: b4 10 00 08 mov %o0, %i2 #if ( CPU_INLINE_ENABLE_DISPATCH == TRUE ) RTEMS_INLINE_ROUTINE void _Thread_Enable_dispatch() { RTEMS_COMPILER_MEMORY_BARRIER(); if ( (--_Thread_Dispatch_disable_level) == 0 ) 400091b8: 03 10 00 85 sethi %hi(0x40021400), %g1 400091bc: c4 00 62 90 ld [ %g1 + 0x290 ], %g2 ! 40021690 <_Thread_Dispatch_disable_level> 400091c0: 84 00 bf ff add %g2, -1, %g2 400091c4: c4 20 62 90 st %g2, [ %g1 + 0x290 ] 400091c8: c2 00 62 90 ld [ %g1 + 0x290 ], %g1 400091cc: 80 a0 60 00 cmp %g1, 0 400091d0: 12 80 00 04 bne 400091e0 400091d4: 01 00 00 00 nop _Thread_Dispatch(); 400091d8: 40 00 0e b6 call 4000ccb0 <_Thread_Dispatch> 400091dc: 01 00 00 00 nop /* * 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); 400091e0: 7f ff ff d1 call 40009124 <_Message_queue_Translate_core_message_queue_return_code> 400091e4: 90 10 00 1a mov %i2, %o0 } return RTEMS_INTERNAL_ERROR; /* unreached - only to remove warnings */ } 400091e8: 81 c7 e0 08 ret 400091ec: 91 e8 00 08 restore %g0, %o0, %o0 4000fbac : uint32_t length, uint32_t buffer_size, rtems_attribute attribute_set, Objects_Id *id ) { 4000fbac: 9d e3 bf 98 save %sp, -104, %sp register Partition_Control *the_partition; if ( !rtems_is_name_valid( name ) ) 4000fbb0: a6 96 20 00 orcc %i0, 0, %l3 4000fbb4: 02 80 00 1e be 4000fc2c 4000fbb8: b0 10 20 03 mov 3, %i0 return RTEMS_INVALID_NAME; if ( !starting_address ) 4000fbbc: 80 a6 60 00 cmp %i1, 0 4000fbc0: 02 80 00 3d be 4000fcb4 4000fbc4: 80 a7 60 00 cmp %i5, 0 return RTEMS_INVALID_ADDRESS; if ( !id ) 4000fbc8: 02 80 00 3b be 4000fcb4 4000fbcc: 80 a6 a0 00 cmp %i2, 0 return RTEMS_INVALID_ADDRESS; if ( length == 0 || buffer_size == 0 || length < buffer_size || 4000fbd0: 22 80 00 17 be,a 4000fc2c 4000fbd4: b0 10 20 08 mov 8, %i0 4000fbd8: 80 a6 e0 00 cmp %i3, 0 4000fbdc: 22 80 00 14 be,a 4000fc2c 4000fbe0: b0 10 20 08 mov 8, %i0 4000fbe4: 80 a6 80 1b cmp %i2, %i3 4000fbe8: 0a 80 00 35 bcs 4000fcbc 4000fbec: 80 8e e0 07 btst 7, %i3 4000fbf0: 12 80 00 33 bne 4000fcbc 4000fbf4: 80 8e 60 07 btst 7, %i1 !_Partition_Is_buffer_size_aligned( buffer_size ) ) return RTEMS_INVALID_SIZE; if ( !_Addresses_Is_aligned( starting_address ) ) 4000fbf8: 12 80 00 2f bne 4000fcb4 4000fbfc: 05 10 00 cc sethi %hi(0x40033000), %g2 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 4000fc00: c2 00 a2 90 ld [ %g2 + 0x290 ], %g1 ! 40033290 <_Thread_Dispatch_disable_level> 4000fc04: 82 00 60 01 inc %g1 4000fc08: c2 20 a2 90 st %g1, [ %g2 + 0x290 ] * the inactive chain of free partition control blocks. */ RTEMS_INLINE_ROUTINE Partition_Control *_Partition_Allocate ( void ) { return (Partition_Control *) _Objects_Allocate( &_Partition_Information ); 4000fc0c: 25 10 00 cc sethi %hi(0x40033000), %l2 4000fc10: 40 00 15 b7 call 400152ec <_Objects_Allocate> 4000fc14: 90 14 a0 10 or %l2, 0x10, %o0 ! 40033010 <_Partition_Information> _Thread_Disable_dispatch(); /* prevents deletion */ the_partition = _Partition_Allocate(); if ( !the_partition ) { 4000fc18: a2 92 20 00 orcc %o0, 0, %l1 4000fc1c: 12 80 00 06 bne 4000fc34 4000fc20: 92 10 00 1b mov %i3, %o1 _Thread_Enable_dispatch(); 4000fc24: 7f ff ff d5 call 4000fb78 <_Thread_Enable_dispatch> 4000fc28: b0 10 20 05 mov 5, %i0 4000fc2c: 81 c7 e0 08 ret 4000fc30: 81 e8 00 00 restore #endif the_partition->starting_address = starting_address; the_partition->length = length; the_partition->buffer_size = buffer_size; the_partition->attribute_set = attribute_set; 4000fc34: f8 24 60 1c st %i4, [ %l1 + 0x1c ] _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } #endif the_partition->starting_address = starting_address; 4000fc38: f2 24 60 10 st %i1, [ %l1 + 0x10 ] the_partition->length = length; 4000fc3c: f4 24 60 14 st %i2, [ %l1 + 0x14 ] the_partition->buffer_size = buffer_size; 4000fc40: f6 24 60 18 st %i3, [ %l1 + 0x18 ] the_partition->attribute_set = attribute_set; the_partition->number_of_used_blocks = 0; 4000fc44: c0 24 60 20 clr [ %l1 + 0x20 ] _Chain_Initialize( &the_partition->Memory, starting_address, 4000fc48: 40 00 52 c2 call 40024750 <.udiv> 4000fc4c: 90 10 00 1a mov %i2, %o0 4000fc50: a0 04 60 24 add %l1, 0x24, %l0 4000fc54: 94 10 00 08 mov %o0, %o2 4000fc58: 92 10 00 19 mov %i1, %o1 4000fc5c: 90 10 00 10 mov %l0, %o0 4000fc60: 40 00 11 8a call 40014288 <_Chain_Initialize> 4000fc64: 96 10 00 1b mov %i3, %o3 Objects_Information *information, uint16_t index, Objects_Control *the_object ) { if ( index <= information->maximum ) 4000fc68: 90 14 a0 10 or %l2, 0x10, %o0 ) { uint32_t index; index = _Objects_Get_index( the_object->id ); _Objects_Set_local_object( information, index, the_object ); 4000fc6c: c4 04 60 08 ld [ %l1 + 8 ], %g2 Objects_Information *information, uint16_t index, Objects_Control *the_object ) { if ( index <= information->maximum ) 4000fc70: c6 12 20 10 lduh [ %o0 + 0x10 ], %g3 4000fc74: 03 00 00 3f sethi %hi(0xfc00), %g1 4000fc78: 82 10 63 ff or %g1, 0x3ff, %g1 ! ffff 4000fc7c: 82 08 80 01 and %g2, %g1, %g1 4000fc80: 80 a0 40 03 cmp %g1, %g3 4000fc84: 38 80 00 06 bgu,a 4000fc9c 4000fc88: c2 04 60 08 ld [ %l1 + 8 ], %g1 <== NOT EXECUTED information->local_table[ index ] = the_object; 4000fc8c: c4 02 20 20 ld [ %o0 + 0x20 ], %g2 4000fc90: 83 28 60 02 sll %g1, 2, %g1 4000fc94: e2 20 80 01 st %l1, [ %g2 + %g1 ] &_Partition_Information, &the_partition->Object, (Objects_Name) name ); *id = the_partition->Object.id; 4000fc98: c2 04 60 08 ld [ %l1 + 8 ], %g1 if ( information->is_string ) /* _Objects_Copy_name_string( name, the_object->name ); */ the_object->name = name; else /* _Objects_Copy_name_raw( name, the_object->name, information->name_length ); */ the_object->name = name; 4000fc9c: e6 24 60 0c st %l3, [ %l1 + 0xc ] 4000fca0: c2 27 40 00 st %g1, [ %i5 ] name, 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); 4000fca4: 7f ff ff b5 call 4000fb78 <_Thread_Enable_dispatch> 4000fca8: b0 10 20 00 clr %i0 4000fcac: 81 c7 e0 08 ret 4000fcb0: 81 e8 00 00 restore return RTEMS_SUCCESSFUL; 4000fcb4: 81 c7 e0 08 ret 4000fcb8: 91 e8 20 09 restore %g0, 9, %o0 4000fcbc: b0 10 20 08 mov 8, %i0 } 4000fcc0: 81 c7 e0 08 ret 4000fcc4: 81 e8 00 00 restore 4000fcfc : */ rtems_status_code rtems_partition_delete( Objects_Id id ) { 4000fcfc: 9d e3 bf 90 save %sp, -112, %sp RTEMS_INLINE_ROUTINE Partition_Control *_Partition_Get ( Objects_Id id, Objects_Locations *location ) { return (Partition_Control *) 4000fd00: 92 10 00 18 mov %i0, %o1 4000fd04: 94 07 bf f4 add %fp, -12, %o2 4000fd08: 31 10 00 cc sethi %hi(0x40033000), %i0 4000fd0c: 40 00 16 d0 call 4001584c <_Objects_Get> 4000fd10: 90 16 20 10 or %i0, 0x10, %o0 ! 40033010 <_Partition_Information> register Partition_Control *the_partition; Objects_Locations location; the_partition = _Partition_Get( id, &location ); switch ( location ) { 4000fd14: c2 07 bf f4 ld [ %fp + -12 ], %g1 4000fd18: 80 a0 60 00 cmp %g1, 0 4000fd1c: 02 80 00 07 be 4000fd38 4000fd20: 88 10 00 08 mov %o0, %g4 4000fd24: 80 a0 60 02 cmp %g1, 2 4000fd28: 08 80 00 18 bleu 4000fd88 4000fd2c: b0 10 20 04 mov 4, %i0 4000fd30: 81 c7 e0 08 ret <== NOT EXECUTED 4000fd34: 91 e8 20 19 restore %g0, 0x19, %o0 <== NOT EXECUTED case OBJECTS_ERROR: return RTEMS_INVALID_ID; case OBJECTS_LOCAL: if ( the_partition->number_of_used_blocks == 0 ) { 4000fd38: c2 02 20 20 ld [ %o0 + 0x20 ], %g1 4000fd3c: 80 a0 60 00 cmp %g1, 0 4000fd40: 12 80 00 14 bne 4000fd90 4000fd44: 90 16 20 10 or %i0, 0x10, %o0 ) { uint32_t index; index = _Objects_Get_index( the_object->id ); _Objects_Set_local_object( information, index, NULL ); 4000fd48: c2 01 20 08 ld [ %g4 + 8 ], %g1 Objects_Information *information, uint16_t index, Objects_Control *the_object ) { if ( index <= information->maximum ) 4000fd4c: c6 12 20 10 lduh [ %o0 + 0x10 ], %g3 4000fd50: 05 00 00 3f sethi %hi(0xfc00), %g2 4000fd54: 84 10 a3 ff or %g2, 0x3ff, %g2 ! ffff 4000fd58: 82 08 40 02 and %g1, %g2, %g1 4000fd5c: 80 a0 40 03 cmp %g1, %g3 4000fd60: 18 80 00 05 bgu 4000fd74 4000fd64: 92 10 00 04 mov %g4, %o1 information->local_table[ index ] = the_object; 4000fd68: c4 02 20 20 ld [ %o0 + 0x20 ], %g2 4000fd6c: 83 28 60 02 sll %g1, 2, %g1 4000fd70: c0 20 80 01 clr [ %g2 + %g1 ] uint32_t index; index = _Objects_Get_index( the_object->id ); _Objects_Set_local_object( information, index, NULL ); /* _Objects_Clear_name( the_object->name, information->name_length ); */ the_object->name = 0; 4000fd74: c0 21 20 0c clr [ %g4 + 0xc ] RTEMS_INLINE_ROUTINE void _Partition_Free ( Partition_Control *the_partition ) { _Objects_Free( &_Partition_Information, &the_partition->Object ); 4000fd78: 40 00 16 5f call 400156f4 <_Objects_Free> 4000fd7c: b0 10 20 00 clr %i0 0 /* Not used */ ); } #endif _Thread_Enable_dispatch(); 4000fd80: 7f ff ff d2 call 4000fcc8 <_Thread_Enable_dispatch> 4000fd84: 01 00 00 00 nop 4000fd88: 81 c7 e0 08 ret 4000fd8c: 81 e8 00 00 restore return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 4000fd90: 7f ff ff ce call 4000fcc8 <_Thread_Enable_dispatch> 4000fd94: b0 10 20 0c mov 0xc, %i0 return RTEMS_RESOURCE_IN_USE; } return RTEMS_INTERNAL_ERROR; /* unreached - only to remove warnings */ } 4000fd98: 81 c7 e0 08 ret 4000fd9c: 81 e8 00 00 restore 4000fdd4 : rtems_status_code rtems_partition_get_buffer( Objects_Id id, void **buffer ) { 4000fdd4: 9d e3 bf 90 save %sp, -112, %sp 4000fdd8: 92 10 00 18 mov %i0, %o1 register Partition_Control *the_partition; Objects_Locations location; void *the_buffer; if ( !buffer ) 4000fddc: 80 a6 60 00 cmp %i1, 0 4000fde0: 02 80 00 1a be 4000fe48 4000fde4: b0 10 20 09 mov 9, %i0 RTEMS_INLINE_ROUTINE Partition_Control *_Partition_Get ( Objects_Id id, Objects_Locations *location ) { return (Partition_Control *) 4000fde8: 11 10 00 cc sethi %hi(0x40033000), %o0 4000fdec: 94 07 bf f4 add %fp, -12, %o2 4000fdf0: 40 00 16 97 call 4001584c <_Objects_Get> 4000fdf4: 90 12 20 10 or %o0, 0x10, %o0 return RTEMS_INVALID_ADDRESS; the_partition = _Partition_Get( id, &location ); switch ( location ) { 4000fdf8: c2 07 bf f4 ld [ %fp + -12 ], %g1 4000fdfc: 80 a0 60 00 cmp %g1, 0 4000fe00: 02 80 00 07 be 4000fe1c 4000fe04: b0 10 00 08 mov %o0, %i0 4000fe08: 80 a0 60 02 cmp %g1, 2 4000fe0c: 08 80 00 0f bleu 4000fe48 4000fe10: b0 10 20 04 mov 4, %i0 4000fe14: 81 c7 e0 08 ret <== NOT EXECUTED 4000fe18: 91 e8 20 19 restore %g0, 0x19, %o0 <== NOT EXECUTED RTEMS_INLINE_ROUTINE void *_Partition_Allocate_buffer ( Partition_Control *the_partition ) { return _Chain_Get( &the_partition->Memory ); 4000fe1c: 40 00 11 0b call 40014248 <_Chain_Get> 4000fe20: 90 02 20 24 add %o0, 0x24, %o0 case OBJECTS_ERROR: return RTEMS_INVALID_ID; case OBJECTS_LOCAL: the_buffer = _Partition_Allocate_buffer( the_partition ); if ( the_buffer ) { 4000fe24: a0 92 20 00 orcc %o0, 0, %l0 4000fe28: 02 80 00 0a be 4000fe50 4000fe2c: 01 00 00 00 nop the_partition->number_of_used_blocks += 1; 4000fe30: c2 06 20 20 ld [ %i0 + 0x20 ], %g1 4000fe34: 82 00 60 01 inc %g1 4000fe38: c2 26 20 20 st %g1, [ %i0 + 0x20 ] _Thread_Enable_dispatch(); 4000fe3c: 7f ff ff d9 call 4000fda0 <_Thread_Enable_dispatch> 4000fe40: b0 10 20 00 clr %i0 *buffer = the_buffer; 4000fe44: e0 26 40 00 st %l0, [ %i1 ] 4000fe48: 81 c7 e0 08 ret 4000fe4c: 81 e8 00 00 restore return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 4000fe50: 7f ff ff d4 call 4000fda0 <_Thread_Enable_dispatch> 4000fe54: b0 10 20 0d mov 0xd, %i0 return RTEMS_UNSATISFIED; } return RTEMS_INTERNAL_ERROR; /* unreached - only to remove warnings */ } 4000fe58: 81 c7 e0 08 ret 4000fe5c: 81 e8 00 00 restore 4000fec8 : rtems_status_code rtems_partition_return_buffer( Objects_Id id, void *buffer ) { 4000fec8: 9d e3 bf 90 save %sp, -112, %sp RTEMS_INLINE_ROUTINE Partition_Control *_Partition_Get ( Objects_Id id, Objects_Locations *location ) { return (Partition_Control *) 4000fecc: 11 10 00 cc sethi %hi(0x40033000), %o0 4000fed0: 92 10 00 18 mov %i0, %o1 4000fed4: 90 12 20 10 or %o0, 0x10, %o0 4000fed8: 40 00 16 5d call 4001584c <_Objects_Get> 4000fedc: 94 07 bf f4 add %fp, -12, %o2 register Partition_Control *the_partition; Objects_Locations location; the_partition = _Partition_Get( id, &location ); switch ( location ) { 4000fee0: c2 07 bf f4 ld [ %fp + -12 ], %g1 4000fee4: 80 a0 60 00 cmp %g1, 0 4000fee8: 02 80 00 07 be 4000ff04 4000feec: b0 10 00 08 mov %o0, %i0 4000fef0: 80 a0 60 02 cmp %g1, 2 4000fef4: 08 80 00 1a bleu 4000ff5c 4000fef8: b0 10 20 04 mov 4, %i0 4000fefc: 81 c7 e0 08 ret <== NOT EXECUTED 4000ff00: 91 e8 20 19 restore %g0, 0x19, %o0 <== NOT EXECUTED ) { void *starting; void *ending; starting = the_partition->starting_address; 4000ff04: c4 02 20 10 ld [ %o0 + 0x10 ], %g2 ending = _Addresses_Add_offset( starting, the_partition->length ); return ( 4000ff08: 80 a6 40 02 cmp %i1, %g2 4000ff0c: 0a 80 00 16 bcs 4000ff64 4000ff10: 01 00 00 00 nop 4000ff14: c2 02 20 14 ld [ %o0 + 0x14 ], %g1 4000ff18: 82 00 80 01 add %g2, %g1, %g1 4000ff1c: 80 a6 40 01 cmp %i1, %g1 4000ff20: 18 80 00 11 bgu 4000ff64 4000ff24: 01 00 00 00 nop 4000ff28: d2 02 20 18 ld [ %o0 + 0x18 ], %o1 4000ff2c: 40 00 52 b5 call 40024a00 <.urem> 4000ff30: 90 26 40 02 sub %i1, %g2, %o0 4000ff34: 80 a2 20 00 cmp %o0, 0 4000ff38: 12 80 00 0b bne 4000ff64 4000ff3c: 90 06 20 24 add %i0, 0x24, %o0 RTEMS_INLINE_ROUTINE void _Partition_Free_buffer ( Partition_Control *the_partition, Chain_Node *the_buffer ) { _Chain_Append( &the_partition->Memory, the_buffer ); 4000ff40: 40 00 10 b6 call 40014218 <_Chain_Append> 4000ff44: 92 10 00 19 mov %i1, %o1 return RTEMS_INVALID_ID; case OBJECTS_LOCAL: if ( _Partition_Is_buffer_valid( buffer, the_partition ) ) { _Partition_Free_buffer( the_partition, buffer ); the_partition->number_of_used_blocks -= 1; 4000ff48: c2 06 20 20 ld [ %i0 + 0x20 ], %g1 4000ff4c: 82 00 7f ff add %g1, -1, %g1 4000ff50: c2 26 20 20 st %g1, [ %i0 + 0x20 ] _Thread_Enable_dispatch(); 4000ff54: 7f ff ff d0 call 4000fe94 <_Thread_Enable_dispatch> 4000ff58: b0 10 20 00 clr %i0 4000ff5c: 81 c7 e0 08 ret 4000ff60: 81 e8 00 00 restore return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 4000ff64: 7f ff ff cc call 4000fe94 <_Thread_Enable_dispatch> 4000ff68: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; } return RTEMS_INTERNAL_ERROR; /* unreached - only to remove warnings */ } 4000ff6c: 81 c7 e0 08 ret 4000ff70: 81 e8 00 00 restore 4000ed70 : void *internal_start, void *external_start, uint32_t length, Objects_Id *id ) { 4000ed70: 9d e3 bf 98 save %sp, -104, %sp register Dual_ported_memory_Control *the_port; if ( !rtems_is_name_valid( name) ) 4000ed74: a2 96 20 00 orcc %i0, 0, %l1 4000ed78: 02 80 00 15 be 4000edcc 4000ed7c: b0 10 20 03 mov 3, %i0 return RTEMS_INVALID_NAME; if ( !id ) 4000ed80: 80 a7 20 00 cmp %i4, 0 4000ed84: 02 80 00 29 be 4000ee28 4000ed88: 80 8e 60 07 btst 7, %i1 return RTEMS_INVALID_ADDRESS; if ( !_Addresses_Is_aligned( internal_start ) || 4000ed8c: 12 80 00 27 bne 4000ee28 4000ed90: 80 8e a0 07 btst 7, %i2 4000ed94: 32 80 00 0e bne,a 4000edcc 4000ed98: b0 10 20 09 mov 9, %i0 <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 4000ed9c: 05 10 00 cc sethi %hi(0x40033000), %g2 4000eda0: c2 00 a2 90 ld [ %g2 + 0x290 ], %g1 ! 40033290 <_Thread_Dispatch_disable_level> 4000eda4: 82 00 60 01 inc %g1 4000eda8: c2 20 a2 90 st %g1, [ %g2 + 0x290 ] */ RTEMS_INLINE_ROUTINE Dual_ported_memory_Control *_Dual_ported_memory_Allocate ( void ) { return (Dual_ported_memory_Control *) 4000edac: 21 10 00 cb sethi %hi(0x40032c00), %l0 4000edb0: 40 00 19 4f call 400152ec <_Objects_Allocate> 4000edb4: 90 14 23 c4 or %l0, 0x3c4, %o0 ! 40032fc4 <_Dual_ported_memory_Information> _Thread_Disable_dispatch(); /* to prevent deletion */ the_port = _Dual_ported_memory_Allocate(); if ( !the_port ) { 4000edb8: 80 a2 20 00 cmp %o0, 0 4000edbc: 12 80 00 06 bne 4000edd4 4000edc0: 88 14 23 c4 or %l0, 0x3c4, %g4 _Thread_Enable_dispatch(); 4000edc4: 7f ff ff de call 4000ed3c <_Thread_Enable_dispatch> 4000edc8: b0 10 20 05 mov 5, %i0 4000edcc: 81 c7 e0 08 ret 4000edd0: 81 e8 00 00 restore ) { uint32_t index; index = _Objects_Get_index( the_object->id ); _Objects_Set_local_object( information, index, the_object ); 4000edd4: c4 02 20 08 ld [ %o0 + 8 ], %g2 Objects_Information *information, uint16_t index, Objects_Control *the_object ) { if ( index <= information->maximum ) 4000edd8: c6 11 20 10 lduh [ %g4 + 0x10 ], %g3 return RTEMS_TOO_MANY; } the_port->internal_base = internal_start; the_port->external_base = external_start; the_port->length = length - 1; 4000eddc: 82 06 ff ff add %i3, -1, %g1 if ( !the_port ) { _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } the_port->internal_base = internal_start; 4000ede0: f2 22 20 10 st %i1, [ %o0 + 0x10 ] the_port->external_base = external_start; the_port->length = length - 1; 4000ede4: c2 22 20 18 st %g1, [ %o0 + 0x18 ] 4000ede8: 03 00 00 3f sethi %hi(0xfc00), %g1 4000edec: 82 10 63 ff or %g1, 0x3ff, %g1 ! ffff 4000edf0: 82 08 80 01 and %g2, %g1, %g1 4000edf4: 80 a0 40 03 cmp %g1, %g3 4000edf8: 18 80 00 05 bgu 4000ee0c 4000edfc: f4 22 20 14 st %i2, [ %o0 + 0x14 ] information->local_table[ index ] = the_object; 4000ee00: c4 01 20 20 ld [ %g4 + 0x20 ], %g2 4000ee04: 83 28 60 02 sll %g1, 2, %g1 4000ee08: d0 20 80 01 st %o0, [ %g2 + %g1 ] &_Dual_ported_memory_Information, &the_port->Object, (Objects_Name) name ); *id = the_port->Object.id; 4000ee0c: c2 02 20 08 ld [ %o0 + 8 ], %g1 if ( information->is_string ) /* _Objects_Copy_name_string( name, the_object->name ); */ the_object->name = name; else /* _Objects_Copy_name_raw( name, the_object->name, information->name_length ); */ the_object->name = name; 4000ee10: e2 22 20 0c st %l1, [ %o0 + 0xc ] 4000ee14: c2 27 00 00 st %g1, [ %i4 ] _Thread_Enable_dispatch(); 4000ee18: 7f ff ff c9 call 4000ed3c <_Thread_Enable_dispatch> 4000ee1c: b0 10 20 00 clr %i0 4000ee20: 81 c7 e0 08 ret 4000ee24: 81 e8 00 00 restore return RTEMS_SUCCESSFUL; 4000ee28: b0 10 20 09 mov 9, %i0 } 4000ee2c: 81 c7 e0 08 ret 4000ee30: 81 e8 00 00 restore 40007278 : rtems_status_code rtems_rate_monotonic_create( rtems_name name, Objects_Id *id ) { 40007278: 9d e3 bf 98 save %sp, -104, %sp Rate_monotonic_Control *the_period; if ( !rtems_is_name_valid( name ) ) 4000727c: a4 96 20 00 orcc %i0, 0, %l2 40007280: 02 80 00 11 be 400072c4 40007284: b0 10 20 03 mov 3, %i0 return RTEMS_INVALID_NAME; if ( !id ) 40007288: 80 a6 60 00 cmp %i1, 0 4000728c: 02 80 00 0e be 400072c4 40007290: b0 10 20 09 mov 9, %i0 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 40007294: 05 10 00 79 sethi %hi(0x4001e400), %g2 40007298: c2 00 a1 90 ld [ %g2 + 0x190 ], %g1 ! 4001e590 <_Thread_Dispatch_disable_level> 4000729c: 82 00 60 01 inc %g1 400072a0: c2 20 a1 90 st %g1, [ %g2 + 0x190 ] * the inactive chain of free period control blocks. */ RTEMS_INLINE_ROUTINE Rate_monotonic_Control *_Rate_monotonic_Allocate( void ) { return (Rate_monotonic_Control *) 400072a4: 23 10 00 78 sethi %hi(0x4001e000), %l1 400072a8: 40 00 09 b8 call 40009988 <_Objects_Allocate> 400072ac: 90 14 63 fc or %l1, 0x3fc, %o0 ! 4001e3fc <_Rate_monotonic_Information> _Thread_Disable_dispatch(); /* to prevent deletion */ the_period = _Rate_monotonic_Allocate(); if ( !the_period ) { 400072b0: a0 92 20 00 orcc %o0, 0, %l0 400072b4: 12 80 00 06 bne 400072cc 400072b8: 03 10 00 79 sethi %hi(0x4001e400), %g1 _Thread_Enable_dispatch(); 400072bc: 7f ff ff e2 call 40007244 <_Thread_Enable_dispatch> 400072c0: b0 10 20 05 mov 5, %i0 400072c4: 81 c7 e0 08 ret 400072c8: 81 e8 00 00 restore return RTEMS_TOO_MANY; } the_period->owner = _Thread_Executing; 400072cc: c2 00 62 6c ld [ %g1 + 0x26c ], %g1 the_period->state = RATE_MONOTONIC_INACTIVE; 400072d0: c0 24 20 38 clr [ %l0 + 0x38 ] if ( !the_period ) { _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } the_period->owner = _Thread_Executing; 400072d4: c2 24 20 50 st %g1, [ %l0 + 0x50 ] Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 400072d8: c0 24 20 18 clr [ %l0 + 0x18 ] the_watchdog->routine = routine; 400072dc: c0 24 20 2c clr [ %l0 + 0x2c ] the_watchdog->id = id; 400072e0: c0 24 20 30 clr [ %l0 + 0x30 ] the_watchdog->user_data = user_data; 400072e4: c0 24 20 34 clr [ %l0 + 0x34 ] the_period->state = RATE_MONOTONIC_INACTIVE; _Watchdog_Initialize( &the_period->Timer, NULL, 0, NULL ); _Rate_monotonic_Reset_statistics( the_period ); 400072e8: 90 04 20 54 add %l0, 0x54, %o0 400072ec: 92 10 20 00 clr %o1 400072f0: 40 00 25 52 call 40010838 400072f4: 94 10 20 38 mov 0x38, %o2 Objects_Information *information, uint16_t index, Objects_Control *the_object ) { if ( index <= information->maximum ) 400072f8: 90 14 63 fc or %l1, 0x3fc, %o0 ) { uint32_t index; index = _Objects_Get_index( the_object->id ); _Objects_Set_local_object( information, index, the_object ); 400072fc: c4 04 20 08 ld [ %l0 + 8 ], %g2 Objects_Information *information, uint16_t index, Objects_Control *the_object ) { if ( index <= information->maximum ) 40007300: c6 12 20 10 lduh [ %o0 + 0x10 ], %g3 40007304: 03 1f ff ff sethi %hi(0x7ffffc00), %g1 40007308: 82 10 63 ff or %g1, 0x3ff, %g1 ! 7fffffff 4000730c: c2 24 20 78 st %g1, [ %l0 + 0x78 ] 40007310: c2 24 20 5c st %g1, [ %l0 + 0x5c ] 40007314: c2 24 20 60 st %g1, [ %l0 + 0x60 ] 40007318: c2 24 20 74 st %g1, [ %l0 + 0x74 ] 4000731c: 03 00 00 3f sethi %hi(0xfc00), %g1 40007320: 82 10 63 ff or %g1, 0x3ff, %g1 ! ffff 40007324: 82 08 80 01 and %g2, %g1, %g1 40007328: 80 a0 40 03 cmp %g1, %g3 4000732c: 38 80 00 06 bgu,a 40007344 40007330: c2 04 20 08 ld [ %l0 + 8 ], %g1 <== NOT EXECUTED information->local_table[ index ] = the_object; 40007334: c4 02 20 20 ld [ %o0 + 0x20 ], %g2 40007338: 83 28 60 02 sll %g1, 2, %g1 4000733c: e0 20 80 01 st %l0, [ %g2 + %g1 ] &_Rate_monotonic_Information, &the_period->Object, (Objects_Name) name ); *id = the_period->Object.id; 40007340: c2 04 20 08 ld [ %l0 + 8 ], %g1 if ( information->is_string ) /* _Objects_Copy_name_string( name, the_object->name ); */ the_object->name = name; else /* _Objects_Copy_name_raw( name, the_object->name, information->name_length ); */ the_object->name = name; 40007344: e4 24 20 0c st %l2, [ %l0 + 0xc ] 40007348: c2 26 40 00 st %g1, [ %i1 ] _Thread_Enable_dispatch(); 4000734c: 7f ff ff be call 40007244 <_Thread_Enable_dispatch> 40007350: b0 10 20 00 clr %i0 return RTEMS_SUCCESSFUL; } 40007354: 81 c7 e0 08 ret 40007358: 81 e8 00 00 restore 40010144 : */ rtems_status_code rtems_rate_monotonic_delete( Objects_Id id ) { 40010144: 9d e3 bf 90 save %sp, -112, %sp RTEMS_INLINE_ROUTINE Rate_monotonic_Control *_Rate_monotonic_Get ( Objects_Id id, Objects_Locations *location ) { return (Rate_monotonic_Control *) 40010148: 21 10 00 cc sethi %hi(0x40033000), %l0 4001014c: 92 10 00 18 mov %i0, %o1 40010150: 94 07 bf f4 add %fp, -12, %o2 40010154: 40 00 15 be call 4001584c <_Objects_Get> 40010158: 90 14 20 5c or %l0, 0x5c, %o0 Rate_monotonic_Control *the_period; Objects_Locations location; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { 4001015c: c2 07 bf f4 ld [ %fp + -12 ], %g1 40010160: 80 a0 60 00 cmp %g1, 0 40010164: 02 80 00 08 be 40010184 40010168: b0 10 00 08 mov %o0, %i0 4001016c: 82 18 60 02 xor %g1, 2, %g1 40010170: 80 a0 00 01 cmp %g0, %g1 40010174: 82 60 20 00 subx %g0, 0, %g1 40010178: b0 08 60 15 and %g1, 0x15, %i0 4001017c: 81 c7 e0 08 ret 40010180: 91 ee 20 04 restore %i0, 4, %o0 Objects_Information *information, uint16_t index, Objects_Control *the_object ) { if ( index <= information->maximum ) 40010184: a0 14 20 5c or %l0, 0x5c, %l0 ) { uint32_t index; index = _Objects_Get_index( the_object->id ); _Objects_Set_local_object( information, index, NULL ); 40010188: c2 02 20 08 ld [ %o0 + 8 ], %g1 Objects_Information *information, uint16_t index, Objects_Control *the_object ) { if ( index <= information->maximum ) 4001018c: c6 14 20 10 lduh [ %l0 + 0x10 ], %g3 40010190: 05 00 00 3f sethi %hi(0xfc00), %g2 40010194: 84 10 a3 ff or %g2, 0x3ff, %g2 ! ffff 40010198: 82 08 40 02 and %g1, %g2, %g1 4001019c: 80 a0 40 03 cmp %g1, %g3 400101a0: 38 80 00 06 bgu,a 400101b8 400101a4: c0 26 20 0c clr [ %i0 + 0xc ] <== NOT EXECUTED information->local_table[ index ] = the_object; 400101a8: c4 04 20 20 ld [ %l0 + 0x20 ], %g2 400101ac: 83 28 60 02 sll %g1, 2, %g1 400101b0: c0 20 80 01 clr [ %g2 + %g1 ] uint32_t index; index = _Objects_Get_index( the_object->id ); _Objects_Set_local_object( information, index, NULL ); /* _Objects_Clear_name( the_object->name, information->name_length ); */ the_object->name = 0; 400101b4: c0 26 20 0c clr [ %i0 + 0xc ] case OBJECTS_ERROR: return RTEMS_INVALID_ID; case OBJECTS_LOCAL: _Objects_Close( &_Rate_monotonic_Information, &the_period->Object ); (void) _Watchdog_Remove( &the_period->Timer ); 400101b8: 40 00 20 eb call 40018564 <_Watchdog_Remove> 400101bc: 90 06 20 10 add %i0, 0x10, %o0 RTEMS_INLINE_ROUTINE void _Rate_monotonic_Free ( Rate_monotonic_Control *the_period ) { _Objects_Free( &_Rate_monotonic_Information, &the_period->Object ); 400101c0: 90 10 00 10 mov %l0, %o0 the_period->state = RATE_MONOTONIC_INACTIVE; 400101c4: c0 26 20 38 clr [ %i0 + 0x38 ] 400101c8: 40 00 15 4b call 400156f4 <_Objects_Free> 400101cc: 92 10 00 18 mov %i0, %o1 #if ( CPU_INLINE_ENABLE_DISPATCH == TRUE ) RTEMS_INLINE_ROUTINE void _Thread_Enable_dispatch() { RTEMS_COMPILER_MEMORY_BARRIER(); if ( (--_Thread_Dispatch_disable_level) == 0 ) 400101d0: 03 10 00 cc sethi %hi(0x40033000), %g1 400101d4: c4 00 62 90 ld [ %g1 + 0x290 ], %g2 ! 40033290 <_Thread_Dispatch_disable_level> 400101d8: b0 10 20 00 clr %i0 400101dc: 84 00 bf ff add %g2, -1, %g2 400101e0: c4 20 62 90 st %g2, [ %g1 + 0x290 ] 400101e4: c2 00 62 90 ld [ %g1 + 0x290 ], %g1 400101e8: 80 a0 60 00 cmp %g1, 0 400101ec: 12 80 00 04 bne 400101fc 400101f0: 01 00 00 00 nop _Thread_Dispatch(); 400101f4: 40 00 1a 8a call 40016c1c <_Thread_Dispatch> 400101f8: 01 00 00 00 nop _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } return RTEMS_INTERNAL_ERROR; /* unreached - only to remove warnings */ } 400101fc: 81 c7 e0 08 ret 40010200: 81 e8 00 00 restore 4000e950 : rtems_status_code rtems_rate_monotonic_get_status( Objects_Id id, rtems_rate_monotonic_period_status *status ) { 4000e950: 9d e3 bf 88 save %sp, -120, %sp 4000e954: 92 10 00 18 mov %i0, %o1 Objects_Locations location; Rate_monotonic_Control *the_period; if ( !status ) 4000e958: 80 a6 60 00 cmp %i1, 0 4000e95c: 02 80 00 36 be 4000ea34 4000e960: b0 10 20 09 mov 9, %i0 4000e964: 11 10 00 78 sethi %hi(0x4001e000), %o0 4000e968: 94 07 bf f4 add %fp, -12, %o2 4000e96c: 7f ff ed 94 call 40009fbc <_Objects_Get> 4000e970: 90 12 23 fc or %o0, 0x3fc, %o0 return RTEMS_INVALID_ADDRESS; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { 4000e974: c2 07 bf f4 ld [ %fp + -12 ], %g1 4000e978: 80 a0 60 00 cmp %g1, 0 4000e97c: 02 80 00 08 be 4000e99c 4000e980: b0 10 00 08 mov %o0, %i0 4000e984: 82 18 60 02 xor %g1, 2, %g1 <== NOT EXECUTED 4000e988: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED 4000e98c: 82 60 20 00 subx %g0, 0, %g1 <== NOT EXECUTED 4000e990: b0 08 60 15 and %g1, 0x15, %i0 <== NOT EXECUTED 4000e994: 81 c7 e0 08 ret <== NOT EXECUTED 4000e998: 91 ee 20 04 restore %i0, 4, %o0 <== NOT EXECUTED case OBJECTS_ERROR: return RTEMS_INVALID_ID; case OBJECTS_LOCAL: status->owner = ((the_period->owner) ? the_period->owner->Object.id : 0); 4000e99c: c2 02 20 50 ld [ %o0 + 0x50 ], %g1 4000e9a0: 80 a0 60 00 cmp %g1, 0 4000e9a4: 02 80 00 03 be 4000e9b0 4000e9a8: 84 10 20 00 clr %g2 4000e9ac: c4 00 60 08 ld [ %g1 + 8 ], %g2 status->state = the_period->state; 4000e9b0: c2 06 20 38 ld [ %i0 + 0x38 ], %g1 case OBJECTS_ERROR: return RTEMS_INVALID_ID; case OBJECTS_LOCAL: status->owner = ((the_period->owner) ? the_period->owner->Object.id : 0); 4000e9b4: c4 26 40 00 st %g2, [ %i1 ] status->state = the_period->state; if ( status->state == RATE_MONOTONIC_INACTIVE ) { 4000e9b8: 80 a0 60 00 cmp %g1, 0 4000e9bc: 12 80 00 07 bne 4000e9d8 4000e9c0: c2 26 60 04 st %g1, [ %i1 + 4 ] #else status->ticks_since_last_period = 0; #endif #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS status->executed_since_last_period.tv_sec = 0; status->executed_since_last_period.tv_nsec = 0; 4000e9c4: c0 26 60 14 clr [ %i1 + 0x14 ] <== NOT EXECUTED status->owner = ((the_period->owner) ? the_period->owner->Object.id : 0); status->state = the_period->state; if ( status->state == RATE_MONOTONIC_INACTIVE ) { #ifdef RTEMS_ENABLE_NANOSECOND_RATE_MONOTONIC_STATISTICS status->since_last_period.tv_sec = 0; 4000e9c8: c0 26 60 08 clr [ %i1 + 8 ] <== NOT EXECUTED status->since_last_period.tv_nsec = 0; 4000e9cc: c0 26 60 0c clr [ %i1 + 0xc ] <== NOT EXECUTED #else status->ticks_since_last_period = 0; #endif #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS status->executed_since_last_period.tv_sec = 0; 4000e9d0: 10 80 00 0e b 4000ea08 <== NOT EXECUTED 4000e9d4: c0 26 60 10 clr [ %i1 + 0x10 ] <== NOT EXECUTED * This lets them share one single invocation of _TOD_Get_uptime(). */ #if defined(RTEMS_ENABLE_NANOSECOND_RATE_MONOTONIC_STATISTICS) || \ defined(RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS) struct timespec uptime; _TOD_Get_uptime( &uptime ); 4000e9d8: a0 07 bf ec add %fp, -20, %l0 4000e9dc: 7f ff ea 49 call 40009300 <_TOD_Get_uptime> 4000e9e0: 90 10 00 10 mov %l0, %o0 #endif #ifdef RTEMS_ENABLE_NANOSECOND_RATE_MONOTONIC_STATISTICS _Timespec_Subtract( 4000e9e4: 90 06 20 44 add %i0, 0x44, %o0 4000e9e8: 92 10 00 10 mov %l0, %o1 4000e9ec: 7f ff f6 ea call 4000c594 <_Timespec_Subtract> 4000e9f0: 94 06 60 08 add %i1, 8, %o2 status->ticks_since_last_period = _Watchdog_Ticks_since_boot - the_period->time_at_period; #endif #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS _Timespec_Subtract( 4000e9f4: 11 10 00 79 sethi %hi(0x4001e400), %o0 4000e9f8: 92 10 00 10 mov %l0, %o1 4000e9fc: 94 06 60 10 add %i1, 0x10, %o2 4000ea00: 7f ff f6 e5 call 4000c594 <_Timespec_Subtract> 4000ea04: 90 12 22 74 or %o0, 0x274, %o0 #if ( CPU_INLINE_ENABLE_DISPATCH == TRUE ) RTEMS_INLINE_ROUTINE void _Thread_Enable_dispatch() { RTEMS_COMPILER_MEMORY_BARRIER(); if ( (--_Thread_Dispatch_disable_level) == 0 ) 4000ea08: 03 10 00 79 sethi %hi(0x4001e400), %g1 4000ea0c: c4 00 61 90 ld [ %g1 + 0x190 ], %g2 ! 4001e590 <_Thread_Dispatch_disable_level> 4000ea10: b0 10 20 00 clr %i0 4000ea14: 84 00 bf ff add %g2, -1, %g2 4000ea18: c4 20 61 90 st %g2, [ %g1 + 0x190 ] 4000ea1c: c2 00 61 90 ld [ %g1 + 0x190 ], %g1 4000ea20: 80 a0 60 00 cmp %g1, 0 4000ea24: 12 80 00 04 bne 4000ea34 4000ea28: 01 00 00 00 nop _Thread_Dispatch(); 4000ea2c: 7f ff f2 58 call 4000b38c <_Thread_Dispatch> 4000ea30: 01 00 00 00 nop _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } return RTEMS_INTERNAL_ERROR; /* unreached - only to remove warnings */ } 4000ea34: 81 c7 e0 08 ret 4000ea38: 81 e8 00 00 restore 40007564 : rtems_status_code rtems_rate_monotonic_period( Objects_Id id, rtems_interval length ) { 40007564: 9d e3 bf 80 save %sp, -128, %sp RTEMS_INLINE_ROUTINE Rate_monotonic_Control *_Rate_monotonic_Get ( Objects_Id id, Objects_Locations *location ) { return (Rate_monotonic_Control *) 40007568: 11 10 00 78 sethi %hi(0x4001e000), %o0 4000756c: 92 10 00 18 mov %i0, %o1 40007570: 90 12 23 fc or %o0, 0x3fc, %o0 40007574: 40 00 0a 92 call 40009fbc <_Objects_Get> 40007578: 94 07 bf f4 add %fp, -12, %o2 rtems_status_code return_value; rtems_rate_monotonic_period_states local_state; ISR_Level level; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { 4000757c: c2 07 bf f4 ld [ %fp + -12 ], %g1 40007580: 80 a0 60 00 cmp %g1, 0 40007584: 02 80 00 07 be 400075a0 40007588: a2 10 00 08 mov %o0, %l1 4000758c: 80 a0 60 02 cmp %g1, 2 40007590: 02 80 00 0c be 400075c0 40007594: b0 10 20 04 mov 4, %i0 the_period->state = RATE_MONOTONIC_ACTIVE; the_period->next_length = length; _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); return RTEMS_TIMEOUT; 40007598: 81 c7 e0 08 ret <== NOT EXECUTED 4000759c: 91 e8 20 19 restore %g0, 0x19, %o0 <== NOT EXECUTED case OBJECTS_ERROR: return RTEMS_INVALID_ID; case OBJECTS_LOCAL: if ( !_Thread_Is_executing( the_period->owner ) ) { 400075a0: 27 10 00 79 sethi %hi(0x4001e400), %l3 400075a4: c4 02 20 50 ld [ %o0 + 0x50 ], %g2 400075a8: c2 04 e2 6c ld [ %l3 + 0x26c ], %g1 400075ac: 80 a0 80 01 cmp %g2, %g1 400075b0: 02 80 00 06 be 400075c8 400075b4: 80 a6 60 00 cmp %i1, 0 _Thread_Enable_dispatch(); 400075b8: 7f ff ff 7f call 400073b4 <_Thread_Enable_dispatch> 400075bc: b0 10 20 17 mov 0x17, %i0 400075c0: 81 c7 e0 08 ret 400075c4: 81 e8 00 00 restore return RTEMS_NOT_OWNER_OF_RESOURCE; } if ( length == RTEMS_PERIOD_STATUS ) { 400075c8: 12 80 00 11 bne 4000760c 400075cc: 01 00 00 00 nop switch ( the_period->state ) { 400075d0: d0 02 20 38 ld [ %o0 + 0x38 ], %o0 400075d4: 80 a2 20 02 cmp %o0, 2 400075d8: 02 80 00 09 be 400075fc 400075dc: b0 10 20 00 clr %i0 400075e0: 80 a2 20 04 cmp %o0, 4 400075e4: 02 80 00 06 be 400075fc 400075e8: b0 10 20 06 mov 6, %i0 400075ec: 80 a2 20 00 cmp %o0, 0 400075f0: 02 80 00 03 be 400075fc 400075f4: b0 10 20 0b mov 0xb, %i0 400075f8: b0 10 20 19 mov 0x19, %i0 <== NOT EXECUTED break; default: /* unreached -- only to remove warnings */ return_value = RTEMS_INTERNAL_ERROR; break; } _Thread_Enable_dispatch(); 400075fc: 7f ff ff 6e call 400073b4 <_Thread_Enable_dispatch> 40007600: 01 00 00 00 nop 40007604: 81 c7 e0 08 ret 40007608: 81 e8 00 00 restore return( return_value ); } _ISR_Disable( level ); 4000760c: 7f ff ed 0b call 40002a38 40007610: 01 00 00 00 nop 40007614: a0 10 00 08 mov %o0, %l0 switch ( the_period->state ) { 40007618: e4 04 60 38 ld [ %l1 + 0x38 ], %l2 4000761c: 80 a4 a0 02 cmp %l2, 2 40007620: 02 80 00 29 be 400076c4 40007624: 80 a4 a0 04 cmp %l2, 4 40007628: 02 80 00 43 be 40007734 4000762c: 80 a4 a0 00 cmp %l2, 0 40007630: 32 bf ff e4 bne,a 400075c0 40007634: b0 10 20 19 mov 0x19, %i0 <== NOT EXECUTED /* * No need to update statistics -- there are not a period active */ _ISR_Enable( level ); 40007638: 7f ff ed 04 call 40002a48 4000763c: a0 07 bf ec add %fp, -20, %l0 #if defined(RTEMS_ENABLE_NANOSECOND_RATE_MONOTONIC_STATISTICS) || \ defined(RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS) _TOD_Get_uptime( &uptime ); 40007640: 40 00 07 30 call 40009300 <_TOD_Get_uptime> 40007644: 90 10 00 10 mov %l0, %o0 #ifdef RTEMS_ENABLE_NANOSECOND_RATE_MONOTONIC_STATISTICS /* * Since the statistics didn't update the starting time, * we do it here. */ the_period->time_at_period = uptime; 40007648: c2 07 bf ec ld [ %fp + -20 ], %g1 #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS { struct timespec ran; the_period->owner_executed_at_period = 4000764c: c4 04 e2 6c ld [ %l3 + 0x26c ], %g2 #ifdef RTEMS_ENABLE_NANOSECOND_RATE_MONOTONIC_STATISTICS /* * Since the statistics didn't update the starting time, * we do it here. */ the_period->time_at_period = uptime; 40007650: c2 24 60 44 st %g1, [ %l1 + 0x44 ] 40007654: c2 07 bf f0 ld [ %fp + -16 ], %g1 the_period->owner_executed_at_period = _Thread_Executing->cpu_time_used; /* How much time time since last context switch */ _Timespec_Subtract( 40007658: 92 10 00 10 mov %l0, %o1 #ifdef RTEMS_ENABLE_NANOSECOND_RATE_MONOTONIC_STATISTICS /* * Since the statistics didn't update the starting time, * we do it here. */ the_period->time_at_period = uptime; 4000765c: c2 24 60 48 st %g1, [ %l1 + 0x48 ] #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS { struct timespec ran; the_period->owner_executed_at_period = 40007660: c2 00 a0 90 ld [ %g2 + 0x90 ], %g1 _Thread_Executing->cpu_time_used; /* How much time time since last context switch */ _Timespec_Subtract( 40007664: a0 07 bf e4 add %fp, -28, %l0 #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS { struct timespec ran; the_period->owner_executed_at_period = 40007668: c2 24 60 3c st %g1, [ %l1 + 0x3c ] 4000766c: c2 00 a0 94 ld [ %g2 + 0x94 ], %g1 _Thread_Executing->cpu_time_used; /* How much time time since last context switch */ _Timespec_Subtract( 40007670: 94 10 00 10 mov %l0, %o2 #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS { struct timespec ran; the_period->owner_executed_at_period = 40007674: c2 24 60 40 st %g1, [ %l1 + 0x40 ] _Thread_Executing->cpu_time_used; /* How much time time since last context switch */ _Timespec_Subtract( 40007678: 11 10 00 79 sethi %hi(0x4001e400), %o0 4000767c: 40 00 13 c6 call 4000c594 <_Timespec_Subtract> 40007680: 90 12 22 74 or %o0, 0x274, %o0 ! 4001e674 <_Thread_Time_of_last_context_switch> /* The thread had executed before the last context switch also. * * the_period->owner_executed_at_period += ran */ _Timespec_Add_to( &the_period->owner_executed_at_period, &ran ); 40007684: 92 10 00 10 mov %l0, %o1 40007688: 40 00 13 62 call 4000c410 <_Timespec_Add_to> 4000768c: 90 04 60 3c add %l1, 0x3c, %o0 #else the_period->owner_ticks_executed_at_period = _Thread_Executing->ticks_executed; #endif the_period->state = RATE_MONOTONIC_ACTIVE; 40007690: 82 10 20 02 mov 2, %g1 40007694: c2 24 60 38 st %g1, [ %l1 + 0x38 ] Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 40007698: 03 10 00 1e sethi %hi(0x40007800), %g1 4000769c: 82 10 62 cc or %g1, 0x2cc, %g1 ! 40007acc <_Rate_monotonic_Timeout> NULL ); the_period->next_length = length; _Watchdog_Insert_ticks( &the_period->Timer, length ); 400076a0: 90 04 60 10 add %l1, 0x10, %o0 400076a4: 92 10 00 19 mov %i1, %o1 the_watchdog->id = id; 400076a8: f0 24 60 30 st %i0, [ %l1 + 0x30 ] Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 400076ac: c0 24 60 18 clr [ %l1 + 0x18 ] the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data; 400076b0: c0 24 60 34 clr [ %l1 + 0x34 ] _Rate_monotonic_Timeout, id, NULL ); the_period->next_length = length; 400076b4: f2 24 60 4c st %i1, [ %l1 + 0x4c ] _Watchdog_Insert_ticks( &the_period->Timer, length ); 400076b8: 7f ff ff 37 call 40007394 <_Watchdog_Insert_ticks> 400076bc: c2 24 60 2c st %g1, [ %l1 + 0x2c ] 400076c0: 30 80 00 19 b,a 40007724 case RATE_MONOTONIC_ACTIVE: /* * Update statistics from the concluding period */ _Rate_monotonic_Update_statistics( the_period ); 400076c4: 7f ff ff 49 call 400073e8 <_Rate_monotonic_Update_statistics> 400076c8: 90 10 00 11 mov %l1, %o0 * 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; 400076cc: 82 10 20 01 mov 1, %g1 the_period->next_length = length; 400076d0: f2 24 60 4c st %i1, [ %l1 + 0x4c ] * 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; 400076d4: c2 24 60 38 st %g1, [ %l1 + 0x38 ] the_period->next_length = length; _ISR_Enable( level ); 400076d8: 7f ff ec dc call 40002a48 400076dc: 90 10 00 10 mov %l0, %o0 _Thread_Executing->Wait.id = the_period->Object.id; 400076e0: c2 04 e2 6c ld [ %l3 + 0x26c ], %g1 400076e4: c4 04 60 08 ld [ %l1 + 8 ], %g2 _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); 400076e8: 90 10 00 01 mov %g1, %o0 the_period->state = RATE_MONOTONIC_OWNER_IS_BLOCKING; the_period->next_length = length; _ISR_Enable( level ); _Thread_Executing->Wait.id = the_period->Object.id; 400076ec: c4 20 60 20 st %g2, [ %g1 + 0x20 ] _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); 400076f0: 40 00 12 23 call 4000bf7c <_Thread_Set_state> 400076f4: 13 00 00 10 sethi %hi(0x4000), %o1 /* * Did the watchdog timer expire while we were actually blocking * on it? */ _ISR_Disable( level ); 400076f8: 7f ff ec d0 call 40002a38 400076fc: 01 00 00 00 nop local_state = the_period->state; 40007700: e0 04 60 38 ld [ %l1 + 0x38 ], %l0 the_period->state = RATE_MONOTONIC_ACTIVE; 40007704: e4 24 60 38 st %l2, [ %l1 + 0x38 ] _ISR_Enable( level ); 40007708: 7f ff ec d0 call 40002a48 4000770c: 01 00 00 00 nop /* * 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 ) 40007710: 80 a4 20 03 cmp %l0, 3 40007714: 12 80 00 04 bne 40007724 40007718: d0 04 e2 6c ld [ %l3 + 0x26c ], %o0 _Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); 4000771c: 40 00 0e 62 call 4000b0a4 <_Thread_Clear_state> <== NOT EXECUTED 40007720: 13 00 00 10 sethi %hi(0x4000), %o1 <== NOT EXECUTED _Thread_Enable_dispatch(); 40007724: 7f ff ff 24 call 400073b4 <_Thread_Enable_dispatch> 40007728: b0 10 20 00 clr %i0 4000772c: 81 c7 e0 08 ret 40007730: 81 e8 00 00 restore case RATE_MONOTONIC_EXPIRED: /* * Update statistics from the concluding period */ _Rate_monotonic_Update_statistics( the_period ); 40007734: 7f ff ff 2d call 400073e8 <_Rate_monotonic_Update_statistics> 40007738: 90 10 00 11 mov %l1, %o0 _ISR_Enable( level ); 4000773c: 7f ff ec c3 call 40002a48 40007740: 90 10 00 10 mov %l0, %o0 the_period->state = RATE_MONOTONIC_ACTIVE; 40007744: 82 10 20 02 mov 2, %g1 the_period->next_length = length; _Watchdog_Insert_ticks( &the_period->Timer, length ); 40007748: 90 04 60 10 add %l1, 0x10, %o0 4000774c: 92 10 00 19 mov %i1, %o1 */ _Rate_monotonic_Update_statistics( the_period ); _ISR_Enable( level ); the_period->state = RATE_MONOTONIC_ACTIVE; 40007750: c2 24 60 38 st %g1, [ %l1 + 0x38 ] the_period->next_length = length; 40007754: f2 24 60 4c st %i1, [ %l1 + 0x4c ] _Watchdog_Insert_ticks( &the_period->Timer, length ); 40007758: 7f ff ff 0f call 40007394 <_Watchdog_Insert_ticks> 4000775c: b0 10 20 06 mov 6, %i0 _Thread_Enable_dispatch(); 40007760: 7f ff ff 15 call 400073b4 <_Thread_Enable_dispatch> 40007764: 01 00 00 00 nop 40007768: 81 c7 e0 08 ret 4000776c: 81 e8 00 00 restore break; } } return RTEMS_INTERNAL_ERROR; /* unreached - only to remove warnings */ } 40007770: 81 c7 e0 08 ret <== NOT EXECUTED 40007774: 81 e8 00 00 restore <== NOT EXECUTED 40007778 : */ void rtems_rate_monotonic_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) { 40007778: 9d e3 bf 30 save %sp, -208, %sp rtems_id id; rtems_rate_monotonic_period_statistics the_stats; rtems_rate_monotonic_period_status the_status; char name[5]; if ( !print ) 4000777c: 80 a6 60 00 cmp %i1, 0 40007780: 02 80 00 7f be 4000797c 40007784: 90 10 00 18 mov %i0, %o0 return; (*print)( context, "Period information by period\n" ); 40007788: 13 10 00 6f sethi %hi(0x4001bc00), %o1 4000778c: 9f c6 40 00 call %i1 40007790: 92 12 61 c8 or %o1, 0x1c8, %o1 ! 4001bdc8 #if defined(RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS) (*print)( context, "--- CPU times are in seconds ---\n" ); 40007794: 90 10 00 18 mov %i0, %o0 40007798: 13 10 00 6f sethi %hi(0x4001bc00), %o1 4000779c: 9f c6 40 00 call %i1 400077a0: 92 12 61 e8 or %o1, 0x1e8, %o1 ! 4001bde8 #endif #if defined(RTEMS_ENABLE_NANOSECOND_RATE_MONOTONIC_STATISTICS) (*print)( context, "--- Wall times are in seconds ---\n" ); 400077a4: 90 10 00 18 mov %i0, %o0 400077a8: 13 10 00 6f sethi %hi(0x4001bc00), %o1 400077ac: 9f c6 40 00 call %i1 400077b0: 92 12 62 10 or %o1, 0x210, %o1 ! 4001be10 Be sure to test the various cases. (*print)( context,"\ 1234567890123456789012345678901234567890123456789012345678901234567890123456789\ \n"); */ (*print)( context, " ID OWNER COUNT MISSED " 400077b4: 90 10 00 18 mov %i0, %o0 400077b8: 13 10 00 6f sethi %hi(0x4001bc00), %o1 400077bc: 9f c6 40 00 call %i1 400077c0: 92 12 62 38 or %o1, 0x238, %o1 ! 4001be38 #ifdef RTEMS_ENABLE_NANOSECOND_RATE_MONOTONIC_STATISTICS " " #endif " WALL TIME\n" ); (*print)( context, " " 400077c4: 90 10 00 18 mov %i0, %o0 400077c8: 13 10 00 6f sethi %hi(0x4001bc00), %o1 400077cc: 9f c6 40 00 call %i1 400077d0: 92 12 62 88 or %o1, 0x288, %o1 ! 4001be88 /* * 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 ; 400077d4: 03 10 00 78 sethi %hi(0x4001e000), %g1 400077d8: 82 10 63 fc or %g1, 0x3fc, %g1 ! 4001e3fc <_Rate_monotonic_Information> 400077dc: e4 00 60 08 ld [ %g1 + 8 ], %l2 _Timespec_Divide_by_integer( &the_stats.total_cpu_time, the_stats.count, &cpu_average ); (*print)( context, 400077e0: 03 10 00 6f sethi %hi(0x4001bc00), %g1 400077e4: b4 10 62 f0 or %g1, 0x2f0, %i2 ! 4001bef0 _Timespec_Divide_by_integer( &the_stats.total_wall_time, the_stats.count, &wall_average ); (*print)( context, 400077e8: 03 10 00 6f sethi %hi(0x4001bc00), %g1 * 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 ); 400077ec: ba 07 bf 98 add %fp, -104, %i5 _Timespec_Divide_by_integer( &the_stats.total_wall_time, the_stats.count, &wall_average ); (*print)( context, 400077f0: b6 10 63 10 or %g1, 0x310, %i3 status = rtems_rate_monotonic_get_statistics( id, &the_stats ); if ( status != RTEMS_SUCCESSFUL ) continue; /* If the above passed, so should this but check it anyway */ status = rtems_rate_monotonic_get_status( id, &the_status ); 400077f4: ae 07 bf d0 add %fp, -48, %l7 /* * If the count is zero, don't print statistics */ if (the_stats.count == 0) { (*print)( context, "\n" ); 400077f8: 03 10 00 6f sethi %hi(0x4001bc00), %g1 /* * Print part of report line that is not dependent on granularity */ (*print)( context, 400077fc: a8 07 bf f3 add %fp, -13, %l4 /* * If the count is zero, don't print statistics */ if (the_stats.count == 0) { (*print)( context, "\n" ); 40007800: b8 10 62 08 or %g1, 0x208, %i4 */ { #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS struct timespec cpu_average; _Timespec_Divide_by_integer( 40007804: ac 07 bf b0 add %fp, -80, %l6 40007808: a6 07 bf e8 add %fp, -24, %l3 * print Wall time part of statistics */ { #ifdef RTEMS_ENABLE_NANOSECOND_RATE_MONOTONIC_STATISTICS struct timespec wall_average; _Timespec_Divide_by_integer( 4000780c: 10 80 00 56 b 40007964 40007810: aa 07 bf c8 add %fp, -56, %l5 * 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 ); 40007814: 40 00 1c 2b call 4000e8c0 40007818: 92 10 00 1d mov %i5, %o1 if ( status != RTEMS_SUCCESSFUL ) 4000781c: 80 a2 20 00 cmp %o0, 0 40007820: 32 80 00 51 bne,a 40007964 40007824: a4 04 a0 01 inc %l2 continue; /* If the above passed, so should this but check it anyway */ status = rtems_rate_monotonic_get_status( id, &the_status ); 40007828: 92 10 00 17 mov %l7, %o1 4000782c: 40 00 1c 49 call 4000e950 40007830: 90 10 00 12 mov %l2, %o0 if ( status != RTEMS_SUCCESSFUL ) 40007834: 80 a2 20 00 cmp %o0, 0 40007838: 32 80 00 4b bne,a 40007964 4000783c: a4 04 a0 01 inc %l2 <== NOT EXECUTED continue; name[ 0 ] = '\0'; if ( the_status.owner ) { 40007840: d0 07 bf d0 ld [ %fp + -48 ], %o0 40007844: 80 a2 20 00 cmp %o0, 0 40007848: 02 80 00 05 be 4000785c 4000784c: c0 2f bf f3 clrb [ %fp + -13 ] rtems_object_get_name( the_status.owner, sizeof(name), name ); 40007850: 94 10 00 14 mov %l4, %o2 40007854: 40 00 00 c8 call 40007b74 40007858: 92 10 20 05 mov 5, %o1 /* * Print part of report line that is not dependent on granularity */ (*print)( context, 4000785c: d8 1f bf 98 ldd [ %fp + -104 ], %o4 40007860: 94 10 00 12 mov %l2, %o2 40007864: 96 10 00 14 mov %l4, %o3 40007868: 13 10 00 6f sethi %hi(0x4001bc00), %o1 4000786c: 90 10 00 18 mov %i0, %o0 40007870: 9f c6 40 00 call %i1 40007874: 92 12 62 d8 or %o1, 0x2d8, %o1 /* * If the count is zero, don't print statistics */ if (the_stats.count == 0) { 40007878: c2 07 bf 98 ld [ %fp + -104 ], %g1 */ { #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS struct timespec cpu_average; _Timespec_Divide_by_integer( 4000787c: 94 10 00 13 mov %l3, %o2 40007880: 90 10 00 16 mov %l6, %o0 /* * If the count is zero, don't print statistics */ if (the_stats.count == 0) { 40007884: 80 a0 60 00 cmp %g1, 0 40007888: 12 80 00 06 bne 400078a0 4000788c: 92 10 00 1c mov %i4, %o1 (*print)( context, "\n" ); 40007890: 9f c6 40 00 call %i1 40007894: 90 10 00 18 mov %i0, %o0 * 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++ ) { 40007898: 10 80 00 33 b 40007964 4000789c: a4 04 a0 01 inc %l2 */ { #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS struct timespec cpu_average; _Timespec_Divide_by_integer( 400078a0: 40 00 12 f4 call 4000c470 <_Timespec_Divide_by_integer> 400078a4: 92 10 00 01 mov %g1, %o1 &the_stats.total_cpu_time, the_stats.count, &cpu_average ); (*print)( context, 400078a8: d0 07 bf a4 ld [ %fp + -92 ], %o0 400078ac: 40 00 44 c7 call 40018bc8 <.div> 400078b0: 92 10 23 e8 mov 0x3e8, %o1 400078b4: a2 10 00 08 mov %o0, %l1 400078b8: d0 07 bf ac ld [ %fp + -84 ], %o0 400078bc: 40 00 44 c3 call 40018bc8 <.div> 400078c0: 92 10 23 e8 mov 0x3e8, %o1 400078c4: c2 07 bf e8 ld [ %fp + -24 ], %g1 400078c8: a0 10 00 08 mov %o0, %l0 400078cc: d0 07 bf ec ld [ %fp + -20 ], %o0 400078d0: c2 23 a0 5c st %g1, [ %sp + 0x5c ] 400078d4: 40 00 44 bd call 40018bc8 <.div> 400078d8: 92 10 23 e8 mov 0x3e8, %o1 400078dc: d8 07 bf a8 ld [ %fp + -88 ], %o4 400078e0: d4 07 bf a0 ld [ %fp + -96 ], %o2 400078e4: 96 10 00 11 mov %l1, %o3 400078e8: 9a 10 00 10 mov %l0, %o5 400078ec: d0 23 a0 60 st %o0, [ %sp + 0x60 ] 400078f0: 92 10 00 1a mov %i2, %o1 400078f4: 9f c6 40 00 call %i1 400078f8: 90 10 00 18 mov %i0, %o0 * print Wall time part of statistics */ { #ifdef RTEMS_ENABLE_NANOSECOND_RATE_MONOTONIC_STATISTICS struct timespec wall_average; _Timespec_Divide_by_integer( 400078fc: d2 07 bf 98 ld [ %fp + -104 ], %o1 40007900: 94 10 00 13 mov %l3, %o2 40007904: 40 00 12 db call 4000c470 <_Timespec_Divide_by_integer> 40007908: 90 10 00 15 mov %l5, %o0 &the_stats.total_wall_time, the_stats.count, &wall_average ); (*print)( context, 4000790c: d0 07 bf bc ld [ %fp + -68 ], %o0 40007910: 40 00 44 ae call 40018bc8 <.div> 40007914: 92 10 23 e8 mov 0x3e8, %o1 40007918: a2 10 00 08 mov %o0, %l1 4000791c: d0 07 bf c4 ld [ %fp + -60 ], %o0 40007920: 40 00 44 aa call 40018bc8 <.div> 40007924: 92 10 23 e8 mov 0x3e8, %o1 40007928: c2 07 bf e8 ld [ %fp + -24 ], %g1 4000792c: a0 10 00 08 mov %o0, %l0 40007930: d0 07 bf ec ld [ %fp + -20 ], %o0 40007934: 92 10 23 e8 mov 0x3e8, %o1 40007938: 40 00 44 a4 call 40018bc8 <.div> 4000793c: c2 23 a0 5c st %g1, [ %sp + 0x5c ] 40007940: d4 07 bf b8 ld [ %fp + -72 ], %o2 40007944: d8 07 bf c0 ld [ %fp + -64 ], %o4 40007948: d0 23 a0 60 st %o0, [ %sp + 0x60 ] 4000794c: 96 10 00 11 mov %l1, %o3 40007950: 9a 10 00 10 mov %l0, %o5 40007954: 90 10 00 18 mov %i0, %o0 40007958: 9f c6 40 00 call %i1 4000795c: 92 10 00 1b mov %i3, %o1 * 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++ ) { 40007960: a4 04 a0 01 inc %l2 /* * 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 ; 40007964: 05 10 00 78 sethi %hi(0x4001e000), %g2 40007968: 84 10 a3 fc or %g2, 0x3fc, %g2 ! 4001e3fc <_Rate_monotonic_Information> 4000796c: c2 00 a0 0c ld [ %g2 + 0xc ], %g1 40007970: 80 a4 80 01 cmp %l2, %g1 40007974: 08 bf ff a8 bleu 40007814 40007978: 90 10 00 12 mov %l2, %o0 4000797c: 81 c7 e0 08 ret 40007980: 81 e8 00 00 restore 400079a0 : /* * rtems_rate_monotonic_reset_all_statistics */ void rtems_rate_monotonic_reset_all_statistics( void ) { 400079a0: 9d e3 bf 98 save %sp, -104, %sp rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 400079a4: 03 10 00 79 sethi %hi(0x4001e400), %g1 400079a8: c4 00 61 90 ld [ %g1 + 0x190 ], %g2 ! 4001e590 <_Thread_Dispatch_disable_level> 400079ac: 84 00 a0 01 inc %g2 400079b0: c4 20 61 90 st %g2, [ %g1 + 0x190 ] /* * 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 ; 400079b4: 03 10 00 78 sethi %hi(0x4001e000), %g1 400079b8: 82 10 63 fc or %g1, 0x3fc, %g1 ! 4001e3fc <_Rate_monotonic_Information> 400079bc: e0 00 60 08 ld [ %g1 + 8 ], %l0 id <= _Rate_monotonic_Information.maximum_id ; 400079c0: 10 80 00 04 b 400079d0 400079c4: a2 10 00 01 mov %g1, %l1 id++ ) { status = rtems_rate_monotonic_reset_statistics( id ); 400079c8: 40 00 00 12 call 40007a10 400079cc: a0 04 20 01 inc %l0 /* * 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 ; 400079d0: c2 04 60 0c ld [ %l1 + 0xc ], %g1 400079d4: 80 a4 00 01 cmp %l0, %g1 400079d8: 08 bf ff fc bleu 400079c8 400079dc: 90 10 00 10 mov %l0, %o0 #if ( CPU_INLINE_ENABLE_DISPATCH == TRUE ) RTEMS_INLINE_ROUTINE void _Thread_Enable_dispatch() { RTEMS_COMPILER_MEMORY_BARRIER(); if ( (--_Thread_Dispatch_disable_level) == 0 ) 400079e0: 03 10 00 79 sethi %hi(0x4001e400), %g1 400079e4: c4 00 61 90 ld [ %g1 + 0x190 ], %g2 ! 4001e590 <_Thread_Dispatch_disable_level> 400079e8: 84 00 bf ff add %g2, -1, %g2 400079ec: c4 20 61 90 st %g2, [ %g1 + 0x190 ] 400079f0: c2 00 61 90 ld [ %g1 + 0x190 ], %g1 400079f4: 80 a0 60 00 cmp %g1, 0 400079f8: 12 80 00 04 bne 40007a08 400079fc: 01 00 00 00 nop _Thread_Dispatch(); 40007a00: 40 00 0e 63 call 4000b38c <_Thread_Dispatch> 40007a04: 81 e8 00 00 restore 40007a08: 81 c7 e0 08 ret <== NOT EXECUTED 40007a0c: 81 e8 00 00 restore <== NOT EXECUTED 4001071c : uint32_t length, uint32_t page_size, rtems_attribute attribute_set, Objects_Id *id ) { 4001071c: 9d e3 bf 98 save %sp, -104, %sp Region_Control *the_region; if ( !rtems_is_name_valid( name ) ) 40010720: a4 96 20 00 orcc %i0, 0, %l2 40010724: 02 80 00 87 be 40010940 40010728: b0 10 20 03 mov 3, %i0 return RTEMS_INVALID_NAME; if ( !starting_address ) 4001072c: 80 a6 60 00 cmp %i1, 0 40010730: 02 80 00 c7 be 40010a4c 40010734: 80 a7 60 00 cmp %i5, 0 return RTEMS_INVALID_ADDRESS; if ( !id ) 40010738: 02 80 00 c5 be 40010a4c 4001073c: 80 8e 60 07 btst 7, %i1 return RTEMS_INVALID_ADDRESS; if ( !_Addresses_Is_aligned( starting_address ) ) 40010740: 32 80 00 80 bne,a 40010940 40010744: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); /* to prevent deletion */ 40010748: 7f ff e8 53 call 4000a894 4001074c: 01 00 00 00 nop 40010750: a2 10 00 08 mov %o0, %l1 40010754: 03 10 00 cc sethi %hi(0x40033000), %g1 40010758: c2 00 62 90 ld [ %g1 + 0x290 ], %g1 ! 40033290 <_Thread_Dispatch_disable_level> 4001075c: 80 a0 60 00 cmp %g1, 0 40010760: 02 80 00 0b be 4001078c 40010764: 03 10 00 cc sethi %hi(0x40033000), %g1 40010768: 03 10 00 cd sethi %hi(0x40033400), %g1 <== NOT EXECUTED 4001076c: c2 00 60 70 ld [ %g1 + 0x70 ], %g1 ! 40033470 <_System_state_Current> <== NOT EXECUTED 40010770: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 40010774: 08 80 00 05 bleu 40010788 <== NOT EXECUTED 40010778: 90 10 20 00 clr %o0 <== NOT EXECUTED 4001077c: 92 10 20 00 clr %o1 <== NOT EXECUTED 40010780: 40 00 12 ae call 40015238 <_Internal_error_Occurred> <== NOT EXECUTED 40010784: 94 10 20 12 mov 0x12, %o2 <== NOT EXECUTED 40010788: 03 10 00 cc sethi %hi(0x40033000), %g1 <== NOT EXECUTED 4001078c: e0 00 63 64 ld [ %g1 + 0x364 ], %l0 ! 40033364 <_RTEMS_Allocator_Mutex> Thread_Control *executing; ISR_Level level = *level_p; /* disabled when you get here */ executing = _Thread_Executing; 40010790: 03 10 00 cc sethi %hi(0x40033000), %g1 40010794: c4 00 63 6c ld [ %g1 + 0x36c ], %g2 ! 4003336c <_Thread_Executing> executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; 40010798: c0 20 a0 34 clr [ %g2 + 0x34 ] if ( !_CORE_mutex_Is_locked( the_mutex ) ) { 4001079c: c2 04 20 60 ld [ %l0 + 0x60 ], %g1 400107a0: 80 a0 60 00 cmp %g1, 0 400107a4: 22 80 00 30 be,a 40010864 400107a8: c2 04 20 6c ld [ %l0 + 0x6c ], %g1 <== NOT EXECUTED the_mutex->lock = CORE_MUTEX_LOCKED; 400107ac: c0 24 20 60 clr [ %l0 + 0x60 ] the_mutex->holder = executing; the_mutex->holder_id = executing->Object.id; 400107b0: c2 00 a0 08 ld [ %g2 + 8 ], %g1 */ RTEMS_INLINE_ROUTINE boolean _CORE_mutex_Is_inherit_priority( CORE_mutex_Attributes *the_attribute ) { return the_attribute->discipline == CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; 400107b4: c6 04 20 58 ld [ %l0 + 0x58 ], %g3 executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; if ( !_CORE_mutex_Is_locked( the_mutex ) ) { the_mutex->lock = CORE_MUTEX_LOCKED; the_mutex->holder = executing; the_mutex->holder_id = executing->Object.id; the_mutex->nest_count = 1; 400107b8: 88 10 20 01 mov 1, %g4 executing = _Thread_Executing; executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; if ( !_CORE_mutex_Is_locked( the_mutex ) ) { the_mutex->lock = CORE_MUTEX_LOCKED; the_mutex->holder = executing; the_mutex->holder_id = executing->Object.id; 400107bc: c2 24 20 70 st %g1, [ %l0 + 0x70 ] 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; 400107c0: c4 24 20 6c st %g2, [ %l0 + 0x6c ] the_mutex->holder_id = executing->Object.id; the_mutex->nest_count = 1; if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || 400107c4: 80 a0 e0 02 cmp %g3, 2 400107c8: 02 80 00 05 be 400107dc 400107cc: c8 24 20 64 st %g4, [ %l0 + 0x64 ] 400107d0: 80 a0 e0 03 cmp %g3, 3 <== NOT EXECUTED 400107d4: 12 80 00 07 bne 400107f0 <== NOT EXECUTED 400107d8: 01 00 00 00 nop <== NOT EXECUTED _CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) executing->resource_count++; 400107dc: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { 400107e0: 80 a0 e0 03 cmp %g3, 3 the_mutex->holder = executing; the_mutex->holder_id = executing->Object.id; the_mutex->nest_count = 1; if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || _CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) executing->resource_count++; 400107e4: 82 00 60 01 inc %g1 if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { 400107e8: 02 80 00 03 be 400107f4 400107ec: c2 20 a0 1c st %g1, [ %g2 + 0x1c ] _ISR_Enable( level ); 400107f0: 30 80 00 2b b,a 4001089c */ { Priority_Control ceiling; Priority_Control current; ceiling = the_mutex->Attributes.priority_ceiling; 400107f4: c6 04 20 5c ld [ %l0 + 0x5c ], %g3 <== NOT EXECUTED current = executing->current_priority; 400107f8: c2 00 a0 14 ld [ %g2 + 0x14 ], %g1 <== NOT EXECUTED if ( current == ceiling ) { 400107fc: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 40010800: 12 80 00 03 bne 4001080c <== NOT EXECUTED 40010804: 01 00 00 00 nop <== NOT EXECUTED _ISR_Enable( level ); 40010808: 30 80 00 25 b,a 4001089c <== NOT EXECUTED return 0; } if ( current > ceiling ) { 4001080c: 08 80 00 0f bleu 40010848 <== NOT EXECUTED 40010810: 82 10 20 06 mov 6, %g1 <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 40010814: 05 10 00 cc sethi %hi(0x40033000), %g2 <== NOT EXECUTED 40010818: c2 00 a2 90 ld [ %g2 + 0x290 ], %g1 ! 40033290 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 4001081c: 82 00 60 01 inc %g1 <== NOT EXECUTED 40010820: c2 20 a2 90 st %g1, [ %g2 + 0x290 ] <== NOT EXECUTED _Thread_Disable_dispatch(); _ISR_Enable( level ); 40010824: 7f ff e8 20 call 4000a8a4 <== NOT EXECUTED 40010828: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED _Thread_Change_priority( 4001082c: d2 04 20 5c ld [ %l0 + 0x5c ], %o1 <== NOT EXECUTED 40010830: d0 04 20 6c ld [ %l0 + 0x6c ], %o0 <== NOT EXECUTED 40010834: 40 00 17 ce call 4001676c <_Thread_Change_priority> <== NOT EXECUTED 40010838: 94 10 20 00 clr %o2 <== NOT EXECUTED the_mutex->holder, the_mutex->Attributes.priority_ceiling, FALSE ); _Thread_Enable_dispatch(); 4001083c: 7f ff ff ab call 400106e8 <_Thread_Enable_dispatch> <== NOT EXECUTED 40010840: 23 10 00 cc sethi %hi(0x40033000), %l1 <== NOT EXECUTED 40010844: 30 80 00 2f b,a 40010900 <== NOT EXECUTED return 0; } /* if ( current < ceiling ) */ { executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED; 40010848: c2 20 a0 34 st %g1, [ %g2 + 0x34 ] <== NOT EXECUTED the_mutex->lock = CORE_MUTEX_UNLOCKED; 4001084c: c8 24 20 60 st %g4, [ %l0 + 0x60 ] <== NOT EXECUTED the_mutex->nest_count = 0; /* undo locking above */ 40010850: c0 24 20 64 clr [ %l0 + 0x64 ] <== NOT EXECUTED executing->resource_count--; /* undo locking above */ 40010854: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 40010858: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 4001085c: c2 20 a0 1c st %g1, [ %g2 + 0x1c ] <== NOT EXECUTED _ISR_Enable( level ); 40010860: 30 80 00 0f b,a 4001089c <== 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 ) ) { 40010864: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 40010868: 12 80 00 13 bne 400108b4 <== NOT EXECUTED 4001086c: 03 10 00 cc sethi %hi(0x40033000), %g1 <== NOT EXECUTED switch ( the_mutex->Attributes.lock_nesting_behavior ) { 40010870: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 <== NOT EXECUTED 40010874: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40010878: 22 80 00 07 be,a 40010894 <== NOT EXECUTED 4001087c: c2 04 20 64 ld [ %l0 + 0x64 ], %g1 <== NOT EXECUTED 40010880: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 40010884: 32 80 00 0c bne,a 400108b4 <== NOT EXECUTED 40010888: 03 10 00 cc sethi %hi(0x40033000), %g1 <== NOT EXECUTED case CORE_MUTEX_NESTING_ACQUIRES: the_mutex->nest_count++; _ISR_Enable( level ); return 0; case CORE_MUTEX_NESTING_IS_ERROR: executing->Wait.return_code = CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED; 4001088c: 10 80 00 08 b 400108ac <== NOT EXECUTED 40010890: 82 10 20 02 mov 2, %g1 <== NOT EXECUTED * to nest access. */ if ( _Thread_Is_executing( the_mutex->holder ) ) { switch ( the_mutex->Attributes.lock_nesting_behavior ) { case CORE_MUTEX_NESTING_ACQUIRES: the_mutex->nest_count++; 40010894: 82 00 60 01 inc %g1 <== NOT EXECUTED 40010898: c2 24 20 64 st %g1, [ %l0 + 0x64 ] <== NOT EXECUTED _ISR_Enable( level ); 4001089c: 7f ff e8 02 call 4000a8a4 400108a0: 90 10 00 11 mov %l1, %o0 * the inactive chain of free region control blocks. */ RTEMS_INLINE_ROUTINE Region_Control *_Region_Allocate( void ) { return (Region_Control *) _Objects_Allocate( &_Region_Information ); 400108a4: 10 80 00 17 b 40010900 400108a8: 23 10 00 cc sethi %hi(0x40033000), %l1 return 0; case CORE_MUTEX_NESTING_IS_ERROR: executing->Wait.return_code = CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED; 400108ac: c2 20 a0 34 st %g1, [ %g2 + 0x34 ] <== NOT EXECUTED _ISR_Enable( level ); 400108b0: 30 bf ff fb b,a 4001089c <== NOT EXECUTED 400108b4: c6 04 20 08 ld [ %l0 + 8 ], %g3 <== NOT EXECUTED 400108b8: c8 00 63 6c ld [ %g1 + 0x36c ], %g4 <== NOT EXECUTED 400108bc: 05 10 00 cc sethi %hi(0x40033000), %g2 <== NOT EXECUTED 400108c0: c2 00 a2 90 ld [ %g2 + 0x290 ], %g1 ! 40033290 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 400108c4: c6 21 20 20 st %g3, [ %g4 + 0x20 ] <== NOT EXECUTED 400108c8: 82 00 60 01 inc %g1 <== NOT EXECUTED 400108cc: c2 20 a2 90 st %g1, [ %g2 + 0x290 ] <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Thread_queue_Enter_critical_section ( Thread_queue_Control *the_thread_queue ) { the_thread_queue->sync_state = THREAD_QUEUE_NOTHING_HAPPENED; 400108d0: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 400108d4: c2 24 20 40 st %g1, [ %l0 + 0x40 ] <== NOT EXECUTED 400108d8: 82 04 20 10 add %l0, 0x10, %g1 <== NOT EXECUTED 400108dc: c2 21 20 44 st %g1, [ %g4 + 0x44 ] <== NOT EXECUTED 400108e0: 7f ff e7 f1 call 4000a8a4 <== NOT EXECUTED 400108e4: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 400108e8: 03 10 00 cc sethi %hi(0x40033000), %g1 <== NOT EXECUTED 400108ec: d0 00 63 64 ld [ %g1 + 0x364 ], %o0 ! 40033364 <_RTEMS_Allocator_Mutex> <== NOT EXECUTED 400108f0: 92 10 20 00 clr %o1 <== NOT EXECUTED 400108f4: 40 00 0f bf call 400147f0 <_CORE_mutex_Seize_interrupt_blocking> <== NOT EXECUTED 400108f8: 90 02 20 10 add %o0, 0x10, %o0 <== NOT EXECUTED 400108fc: 23 10 00 cc sethi %hi(0x40033000), %l1 <== NOT EXECUTED 40010900: 40 00 12 7b call 400152ec <_Objects_Allocate> 40010904: 90 14 60 a8 or %l1, 0xa8, %o0 ! 400330a8 <_Region_Information> the_region = _Region_Allocate(); if ( !the_region ) { 40010908: a0 92 20 00 orcc %o0, 0, %l0 4001090c: 12 80 00 0f bne 40010948 40010910: 05 10 00 cc sethi %hi(0x40033000), %g2 40010914: c2 00 a2 90 ld [ %g2 + 0x290 ], %g1 ! 40033290 <_Thread_Dispatch_disable_level> 40010918: 82 00 60 01 inc %g1 4001091c: c2 20 a2 90 st %g1, [ %g2 + 0x290 ] _RTEMS_Unlock_allocator(); 40010920: 03 10 00 cc sethi %hi(0x40033000), %g1 40010924: d0 00 63 64 ld [ %g1 + 0x364 ], %o0 ! 40033364 <_RTEMS_Allocator_Mutex> 40010928: 94 10 20 00 clr %o2 4001092c: d2 02 20 08 ld [ %o0 + 8 ], %o1 40010930: 40 00 0f d2 call 40014878 <_CORE_mutex_Surrender> 40010934: 90 02 20 10 add %o0, 0x10, %o0 40010938: 7f ff ff 6c call 400106e8 <_Thread_Enable_dispatch> 4001093c: b0 10 20 05 mov 5, %i0 40010940: 81 c7 e0 08 ret 40010944: 81 e8 00 00 restore return RTEMS_TOO_MANY; } the_region->maximum_segment_size = 40010948: 90 04 20 68 add %l0, 0x68, %o0 4001094c: 92 10 00 19 mov %i1, %o1 40010950: 94 10 00 1a mov %i2, %o2 40010954: 40 00 11 ef call 40015110 <_Heap_Initialize> 40010958: 96 10 00 1b mov %i3, %o3 _Heap_Initialize(&the_region->Memory, starting_address, length, page_size); if ( !the_region->maximum_segment_size ) { 4001095c: 80 a2 20 00 cmp %o0, 0 40010960: 12 80 00 13 bne 400109ac 40010964: d0 24 20 5c st %o0, [ %l0 + 0x5c ] RTEMS_INLINE_ROUTINE void _Region_Free ( Region_Control *the_region ) { _Objects_Free( &_Region_Information, &the_region->Object ); 40010968: 90 14 60 a8 or %l1, 0xa8, %o0 4001096c: 40 00 13 62 call 400156f4 <_Objects_Free> 40010970: 92 10 00 10 mov %l0, %o1 40010974: 05 10 00 cc sethi %hi(0x40033000), %g2 40010978: c2 00 a2 90 ld [ %g2 + 0x290 ], %g1 ! 40033290 <_Thread_Dispatch_disable_level> 4001097c: 82 00 60 01 inc %g1 40010980: c2 20 a2 90 st %g1, [ %g2 + 0x290 ] _Region_Free( the_region ); _RTEMS_Unlock_allocator(); 40010984: 03 10 00 cc sethi %hi(0x40033000), %g1 40010988: d0 00 63 64 ld [ %g1 + 0x364 ], %o0 ! 40033364 <_RTEMS_Allocator_Mutex> 4001098c: 94 10 20 00 clr %o2 40010990: d2 02 20 08 ld [ %o0 + 8 ], %o1 40010994: 40 00 0f b9 call 40014878 <_CORE_mutex_Surrender> 40010998: 90 02 20 10 add %o0, 0x10, %o0 4001099c: 7f ff ff 53 call 400106e8 <_Thread_Enable_dispatch> 400109a0: b0 10 20 08 mov 8, %i0 400109a4: 81 c7 e0 08 ret 400109a8: 81 e8 00 00 restore 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( 400109ac: 90 04 20 10 add %l0, 0x10, %o0 _Region_Free( the_region ); _RTEMS_Unlock_allocator(); return RTEMS_INVALID_SIZE; } the_region->starting_address = starting_address; 400109b0: f2 24 20 50 st %i1, [ %l0 + 0x50 ] the_region->length = length; 400109b4: f4 24 20 54 st %i2, [ %l0 + 0x54 ] the_region->page_size = page_size; 400109b8: f6 24 20 58 st %i3, [ %l0 + 0x58 ] the_region->attribute_set = attribute_set; 400109bc: f8 24 20 60 st %i4, [ %l0 + 0x60 ] the_region->number_of_used_blocks = 0; 400109c0: c0 24 20 64 clr [ %l0 + 0x64 ] _Thread_queue_Initialize( 400109c4: 93 37 20 02 srl %i4, 2, %o1 400109c8: 94 10 20 40 mov 0x40, %o2 400109cc: 92 0a 60 01 and %o1, 1, %o1 400109d0: 40 00 1a e2 call 40017558 <_Thread_queue_Initialize> 400109d4: 96 10 20 06 mov 6, %o3 Objects_Information *information, uint16_t index, Objects_Control *the_object ) { if ( index <= information->maximum ) 400109d8: 90 14 60 a8 or %l1, 0xa8, %o0 ) { uint32_t index; index = _Objects_Get_index( the_object->id ); _Objects_Set_local_object( information, index, the_object ); 400109dc: c4 04 20 08 ld [ %l0 + 8 ], %g2 Objects_Information *information, uint16_t index, Objects_Control *the_object ) { if ( index <= information->maximum ) 400109e0: c6 12 20 10 lduh [ %o0 + 0x10 ], %g3 400109e4: 03 00 00 3f sethi %hi(0xfc00), %g1 400109e8: 82 10 63 ff or %g1, 0x3ff, %g1 ! ffff 400109ec: 82 08 80 01 and %g2, %g1, %g1 400109f0: 80 a0 40 03 cmp %g1, %g3 400109f4: 38 80 00 06 bgu,a 40010a0c 400109f8: c2 04 20 08 ld [ %l0 + 8 ], %g1 <== NOT EXECUTED information->local_table[ index ] = the_object; 400109fc: c4 02 20 20 ld [ %o0 + 0x20 ], %g2 40010a00: 83 28 60 02 sll %g1, 2, %g1 40010a04: e0 20 80 01 st %l0, [ %g2 + %g1 ] &_Region_Information, &the_region->Object, (Objects_Name) name ); *id = the_region->Object.id; 40010a08: c2 04 20 08 ld [ %l0 + 8 ], %g1 40010a0c: 05 10 00 cc sethi %hi(0x40033000), %g2 40010a10: c2 27 40 00 st %g1, [ %i5 ] 40010a14: c2 00 a2 90 ld [ %g2 + 0x290 ], %g1 if ( information->is_string ) /* _Objects_Copy_name_string( name, the_object->name ); */ the_object->name = name; else /* _Objects_Copy_name_raw( name, the_object->name, information->name_length ); */ the_object->name = name; 40010a18: e4 24 20 0c st %l2, [ %l0 + 0xc ] 40010a1c: 82 00 60 01 inc %g1 40010a20: c2 20 a2 90 st %g1, [ %g2 + 0x290 ] _RTEMS_Unlock_allocator(); 40010a24: 03 10 00 cc sethi %hi(0x40033000), %g1 40010a28: d0 00 63 64 ld [ %g1 + 0x364 ], %o0 ! 40033364 <_RTEMS_Allocator_Mutex> 40010a2c: 94 10 20 00 clr %o2 40010a30: d2 02 20 08 ld [ %o0 + 8 ], %o1 40010a34: 40 00 0f 91 call 40014878 <_CORE_mutex_Surrender> 40010a38: 90 02 20 10 add %o0, 0x10, %o0 40010a3c: 7f ff ff 2b call 400106e8 <_Thread_Enable_dispatch> 40010a40: b0 10 20 00 clr %i0 40010a44: 81 c7 e0 08 ret 40010a48: 81 e8 00 00 restore return RTEMS_SUCCESSFUL; 40010a4c: b0 10 20 09 mov 9, %i0 <== NOT EXECUTED } 40010a50: 81 c7 e0 08 ret <== NOT EXECUTED 40010a54: 81 e8 00 00 restore <== NOT EXECUTED 40010a8c : */ rtems_status_code rtems_region_delete( Objects_Id id ) { 40010a8c: 9d e3 bf 90 save %sp, -112, %sp register Region_Control *the_region; Objects_Locations location; _RTEMS_Lock_allocator(); 40010a90: 7f ff e7 81 call 4000a894 40010a94: 01 00 00 00 nop 40010a98: a2 10 00 08 mov %o0, %l1 40010a9c: 03 10 00 cc sethi %hi(0x40033000), %g1 40010aa0: c2 00 62 90 ld [ %g1 + 0x290 ], %g1 ! 40033290 <_Thread_Dispatch_disable_level> 40010aa4: 80 a0 60 00 cmp %g1, 0 40010aa8: 02 80 00 0b be 40010ad4 40010aac: 03 10 00 cc sethi %hi(0x40033000), %g1 40010ab0: 03 10 00 cd sethi %hi(0x40033400), %g1 <== NOT EXECUTED 40010ab4: c2 00 60 70 ld [ %g1 + 0x70 ], %g1 ! 40033470 <_System_state_Current> <== NOT EXECUTED 40010ab8: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 40010abc: 08 80 00 05 bleu 40010ad0 <== NOT EXECUTED 40010ac0: 90 10 20 00 clr %o0 <== NOT EXECUTED 40010ac4: 92 10 20 00 clr %o1 <== NOT EXECUTED 40010ac8: 40 00 11 dc call 40015238 <_Internal_error_Occurred> <== NOT EXECUTED 40010acc: 94 10 20 12 mov 0x12, %o2 <== NOT EXECUTED 40010ad0: 03 10 00 cc sethi %hi(0x40033000), %g1 <== NOT EXECUTED 40010ad4: e0 00 63 64 ld [ %g1 + 0x364 ], %l0 ! 40033364 <_RTEMS_Allocator_Mutex> Thread_Control *executing; ISR_Level level = *level_p; /* disabled when you get here */ executing = _Thread_Executing; 40010ad8: 03 10 00 cc sethi %hi(0x40033000), %g1 40010adc: c4 00 63 6c ld [ %g1 + 0x36c ], %g2 ! 4003336c <_Thread_Executing> executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; 40010ae0: c0 20 a0 34 clr [ %g2 + 0x34 ] if ( !_CORE_mutex_Is_locked( the_mutex ) ) { 40010ae4: c2 04 20 60 ld [ %l0 + 0x60 ], %g1 40010ae8: 80 a0 60 00 cmp %g1, 0 40010aec: 22 80 00 33 be,a 40010bb8 40010af0: c2 04 20 6c ld [ %l0 + 0x6c ], %g1 <== NOT EXECUTED the_mutex->lock = CORE_MUTEX_LOCKED; 40010af4: c0 24 20 60 clr [ %l0 + 0x60 ] the_mutex->holder = executing; the_mutex->holder_id = executing->Object.id; 40010af8: c2 00 a0 08 ld [ %g2 + 8 ], %g1 */ RTEMS_INLINE_ROUTINE boolean _CORE_mutex_Is_inherit_priority( CORE_mutex_Attributes *the_attribute ) { return the_attribute->discipline == CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; 40010afc: c6 04 20 58 ld [ %l0 + 0x58 ], %g3 executing = _Thread_Executing; executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; if ( !_CORE_mutex_Is_locked( the_mutex ) ) { the_mutex->lock = CORE_MUTEX_LOCKED; the_mutex->holder = executing; the_mutex->holder_id = executing->Object.id; 40010b00: c2 24 20 70 st %g1, [ %l0 + 0x70 ] 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; 40010b04: c4 24 20 6c st %g2, [ %l0 + 0x6c ] the_mutex->holder_id = executing->Object.id; the_mutex->nest_count = 1; 40010b08: 82 10 20 01 mov 1, %g1 if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || 40010b0c: 80 a0 e0 02 cmp %g3, 2 40010b10: 02 80 00 05 be 40010b24 40010b14: c2 24 20 64 st %g1, [ %l0 + 0x64 ] 40010b18: 80 a0 e0 03 cmp %g3, 3 <== NOT EXECUTED 40010b1c: 32 80 00 06 bne,a 40010b34 <== NOT EXECUTED 40010b20: c2 04 20 58 ld [ %l0 + 0x58 ], %g1 <== NOT EXECUTED _CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) executing->resource_count++; 40010b24: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 40010b28: 82 00 60 01 inc %g1 40010b2c: c2 20 a0 1c st %g1, [ %g2 + 0x1c ] if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { 40010b30: c2 04 20 58 ld [ %l0 + 0x58 ], %g1 40010b34: 80 a0 60 03 cmp %g1, 3 40010b38: 22 80 00 03 be,a 40010b44 40010b3c: c6 04 20 5c ld [ %l0 + 0x5c ], %g3 <== NOT EXECUTED _ISR_Enable( level ); 40010b40: 30 80 00 2c b,a 40010bf0 { Priority_Control ceiling; Priority_Control current; ceiling = the_mutex->Attributes.priority_ceiling; current = executing->current_priority; 40010b44: c2 00 a0 14 ld [ %g2 + 0x14 ], %g1 <== NOT EXECUTED if ( current == ceiling ) { 40010b48: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 40010b4c: 12 80 00 03 bne 40010b58 <== NOT EXECUTED 40010b50: 01 00 00 00 nop <== NOT EXECUTED _ISR_Enable( level ); 40010b54: 30 80 00 27 b,a 40010bf0 <== NOT EXECUTED return 0; } if ( current > ceiling ) { 40010b58: 08 80 00 10 bleu 40010b98 <== NOT EXECUTED 40010b5c: 82 10 20 06 mov 6, %g1 <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 40010b60: 05 10 00 cc sethi %hi(0x40033000), %g2 <== NOT EXECUTED 40010b64: c2 00 a2 90 ld [ %g2 + 0x290 ], %g1 ! 40033290 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 40010b68: 82 00 60 01 inc %g1 <== NOT EXECUTED 40010b6c: c2 20 a2 90 st %g1, [ %g2 + 0x290 ] <== NOT EXECUTED _Thread_Disable_dispatch(); _ISR_Enable( level ); 40010b70: 7f ff e7 4d call 4000a8a4 <== NOT EXECUTED 40010b74: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED _Thread_Change_priority( 40010b78: d2 04 20 5c ld [ %l0 + 0x5c ], %o1 <== NOT EXECUTED 40010b7c: d0 04 20 6c ld [ %l0 + 0x6c ], %o0 <== NOT EXECUTED 40010b80: 40 00 16 fb call 4001676c <_Thread_Change_priority> <== NOT EXECUTED 40010b84: 94 10 20 00 clr %o2 <== NOT EXECUTED the_mutex->holder, the_mutex->Attributes.priority_ceiling, FALSE ); _Thread_Enable_dispatch(); 40010b88: 7f ff ff b4 call 40010a58 <_Thread_Enable_dispatch> <== NOT EXECUTED 40010b8c: 01 00 00 00 nop <== NOT EXECUTED RTEMS_INLINE_ROUTINE Region_Control *_Region_Get ( Objects_Id id, Objects_Locations *location ) { return (Region_Control *) 40010b90: 10 80 00 32 b 40010c58 <== NOT EXECUTED 40010b94: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED return 0; } /* if ( current < ceiling ) */ { executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED; 40010b98: c2 20 a0 34 st %g1, [ %g2 + 0x34 ] <== NOT EXECUTED the_mutex->lock = CORE_MUTEX_UNLOCKED; 40010b9c: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED the_mutex->nest_count = 0; /* undo locking above */ 40010ba0: c0 24 20 64 clr [ %l0 + 0x64 ] <== NOT EXECUTED _Thread_Enable_dispatch(); return 0; } /* if ( current < ceiling ) */ { executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED; the_mutex->lock = CORE_MUTEX_UNLOCKED; 40010ba4: c2 24 20 60 st %g1, [ %l0 + 0x60 ] <== NOT EXECUTED the_mutex->nest_count = 0; /* undo locking above */ executing->resource_count--; /* undo locking above */ 40010ba8: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 40010bac: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 40010bb0: c2 20 a0 1c st %g1, [ %g2 + 0x1c ] <== NOT EXECUTED _ISR_Enable( level ); 40010bb4: 30 80 00 0f b,a 40010bf0 <== 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 ) ) { 40010bb8: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 40010bbc: 32 80 00 13 bne,a 40010c08 <== NOT EXECUTED 40010bc0: 21 10 00 cc sethi %hi(0x40033000), %l0 <== NOT EXECUTED switch ( the_mutex->Attributes.lock_nesting_behavior ) { 40010bc4: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 ! 40033050 <_Partition_Information+0x40> <== NOT EXECUTED 40010bc8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40010bcc: 22 80 00 07 be,a 40010be8 <== NOT EXECUTED 40010bd0: c2 04 20 64 ld [ %l0 + 0x64 ], %g1 <== NOT EXECUTED 40010bd4: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 40010bd8: 12 80 00 0c bne 40010c08 <== NOT EXECUTED 40010bdc: 21 10 00 cc sethi %hi(0x40033000), %l0 <== NOT EXECUTED case CORE_MUTEX_NESTING_ACQUIRES: the_mutex->nest_count++; _ISR_Enable( level ); return 0; case CORE_MUTEX_NESTING_IS_ERROR: executing->Wait.return_code = CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED; 40010be0: 10 80 00 08 b 40010c00 <== NOT EXECUTED 40010be4: 82 10 20 02 mov 2, %g1 <== NOT EXECUTED * to nest access. */ if ( _Thread_Is_executing( the_mutex->holder ) ) { switch ( the_mutex->Attributes.lock_nesting_behavior ) { case CORE_MUTEX_NESTING_ACQUIRES: the_mutex->nest_count++; 40010be8: 82 00 60 01 inc %g1 <== NOT EXECUTED 40010bec: c2 24 20 64 st %g1, [ %l0 + 0x64 ] <== NOT EXECUTED _ISR_Enable( level ); 40010bf0: 7f ff e7 2d call 4000a8a4 40010bf4: 90 10 00 11 mov %l1, %o0 40010bf8: 10 80 00 18 b 40010c58 40010bfc: 92 10 00 18 mov %i0, %o1 return 0; case CORE_MUTEX_NESTING_IS_ERROR: executing->Wait.return_code = CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED; 40010c00: c2 20 a0 34 st %g1, [ %g2 + 0x34 ] <== NOT EXECUTED _ISR_Enable( level ); 40010c04: 30 bf ff fb b,a 40010bf0 <== NOT EXECUTED 40010c08: c6 04 23 64 ld [ %l0 + 0x364 ], %g3 <== NOT EXECUTED 40010c0c: 03 10 00 cc sethi %hi(0x40033000), %g1 <== NOT EXECUTED 40010c10: da 00 e0 08 ld [ %g3 + 8 ], %o5 <== NOT EXECUTED 40010c14: c8 00 63 6c ld [ %g1 + 0x36c ], %g4 <== NOT EXECUTED 40010c18: 05 10 00 cc sethi %hi(0x40033000), %g2 <== NOT EXECUTED 40010c1c: c2 00 a2 90 ld [ %g2 + 0x290 ], %g1 ! 40033290 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 40010c20: da 21 20 20 st %o5, [ %g4 + 0x20 ] <== NOT EXECUTED 40010c24: 82 00 60 01 inc %g1 <== NOT EXECUTED 40010c28: c2 20 a2 90 st %g1, [ %g2 + 0x290 ] <== NOT EXECUTED 40010c2c: 82 00 e0 10 add %g3, 0x10, %g1 <== NOT EXECUTED 40010c30: c2 21 20 44 st %g1, [ %g4 + 0x44 ] <== NOT EXECUTED 40010c34: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 40010c38: c2 20 e0 40 st %g1, [ %g3 + 0x40 ] <== NOT EXECUTED 40010c3c: 7f ff e7 1a call 4000a8a4 <== NOT EXECUTED 40010c40: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 40010c44: d0 04 23 64 ld [ %l0 + 0x364 ], %o0 <== NOT EXECUTED 40010c48: 92 10 20 00 clr %o1 <== NOT EXECUTED 40010c4c: 40 00 0e e9 call 400147f0 <_CORE_mutex_Seize_interrupt_blocking> <== NOT EXECUTED 40010c50: 90 02 20 10 add %o0, 0x10, %o0 <== NOT EXECUTED 40010c54: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 40010c58: 21 10 00 cc sethi %hi(0x40033000), %l0 40010c5c: 94 07 bf f4 add %fp, -12, %o2 40010c60: 40 00 12 e7 call 400157fc <_Objects_Get_no_protection> 40010c64: 90 14 20 a8 or %l0, 0xa8, %o0 the_region = _Region_Get( id, &location ); switch ( location ) { 40010c68: c2 07 bf f4 ld [ %fp + -12 ], %g1 40010c6c: 80 a0 60 01 cmp %g1, 1 40010c70: 02 80 00 0a be 40010c98 40010c74: 92 10 00 08 mov %o0, %o1 40010c78: 80 a0 60 01 cmp %g1, 1 40010c7c: 2a 80 00 22 bcs,a 40010d04 40010c80: c2 02 20 64 ld [ %o0 + 0x64 ], %g1 40010c84: 80 a0 60 02 cmp %g1, 2 40010c88: 12 80 00 10 bne 40010cc8 40010c8c: b0 10 20 19 mov 0x19, %i0 40010c90: 10 80 00 10 b 40010cd0 40010c94: 05 10 00 cc sethi %hi(0x40033000), %g2 case OBJECTS_REMOTE: /* this error cannot be returned */ _RTEMS_Unlock_allocator(); 40010c98: 05 10 00 cc sethi %hi(0x40033000), %g2 <== NOT EXECUTED 40010c9c: c2 00 a2 90 ld [ %g2 + 0x290 ], %g1 ! 40033290 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 40010ca0: 82 00 60 01 inc %g1 <== NOT EXECUTED 40010ca4: c2 20 a2 90 st %g1, [ %g2 + 0x290 ] <== NOT EXECUTED 40010ca8: 03 10 00 cc sethi %hi(0x40033000), %g1 <== NOT EXECUTED 40010cac: d0 00 63 64 ld [ %g1 + 0x364 ], %o0 ! 40033364 <_RTEMS_Allocator_Mutex> <== NOT EXECUTED 40010cb0: 94 10 20 00 clr %o2 <== NOT EXECUTED 40010cb4: d2 02 20 08 ld [ %o0 + 8 ], %o1 <== NOT EXECUTED 40010cb8: 40 00 0e f0 call 40014878 <_CORE_mutex_Surrender> <== NOT EXECUTED 40010cbc: 90 02 20 10 add %o0, 0x10, %o0 <== NOT EXECUTED 40010cc0: 7f ff ff 66 call 40010a58 <_Thread_Enable_dispatch> <== NOT EXECUTED 40010cc4: b0 10 20 19 mov 0x19, %i0 <== NOT EXECUTED 40010cc8: 81 c7 e0 08 ret <== NOT EXECUTED 40010ccc: 81 e8 00 00 restore <== NOT EXECUTED 40010cd0: c2 00 a2 90 ld [ %g2 + 0x290 ], %g1 40010cd4: 82 00 60 01 inc %g1 40010cd8: c2 20 a2 90 st %g1, [ %g2 + 0x290 ] return RTEMS_INTERNAL_ERROR; case OBJECTS_ERROR: _RTEMS_Unlock_allocator(); 40010cdc: 03 10 00 cc sethi %hi(0x40033000), %g1 40010ce0: d0 00 63 64 ld [ %g1 + 0x364 ], %o0 ! 40033364 <_RTEMS_Allocator_Mutex> 40010ce4: 94 10 20 00 clr %o2 40010ce8: d2 02 20 08 ld [ %o0 + 8 ], %o1 40010cec: 40 00 0e e3 call 40014878 <_CORE_mutex_Surrender> 40010cf0: 90 02 20 10 add %o0, 0x10, %o0 40010cf4: 7f ff ff 59 call 40010a58 <_Thread_Enable_dispatch> 40010cf8: b0 10 20 04 mov 4, %i0 40010cfc: 81 c7 e0 08 ret 40010d00: 81 e8 00 00 restore return RTEMS_INVALID_ID; case OBJECTS_LOCAL: _Region_Debug_Walk( the_region, 5 ); if ( the_region->number_of_used_blocks == 0 ) { 40010d04: 80 a0 60 00 cmp %g1, 0 40010d08: 12 80 00 1d bne 40010d7c 40010d0c: 05 10 00 cc sethi %hi(0x40033000), %g2 Objects_Information *information, uint16_t index, Objects_Control *the_object ) { if ( index <= information->maximum ) 40010d10: 90 14 20 a8 or %l0, 0xa8, %o0 ) { uint32_t index; index = _Objects_Get_index( the_object->id ); _Objects_Set_local_object( information, index, NULL ); 40010d14: c2 02 60 08 ld [ %o1 + 8 ], %g1 Objects_Information *information, uint16_t index, Objects_Control *the_object ) { if ( index <= information->maximum ) 40010d18: c6 12 20 10 lduh [ %o0 + 0x10 ], %g3 40010d1c: 05 00 00 3f sethi %hi(0xfc00), %g2 40010d20: 84 10 a3 ff or %g2, 0x3ff, %g2 ! ffff 40010d24: 82 08 40 02 and %g1, %g2, %g1 40010d28: 80 a0 40 03 cmp %g1, %g3 40010d2c: 18 80 00 04 bgu 40010d3c 40010d30: 83 28 60 02 sll %g1, 2, %g1 information->local_table[ index ] = the_object; 40010d34: c4 02 20 20 ld [ %o0 + 0x20 ], %g2 40010d38: c0 20 80 01 clr [ %g2 + %g1 ] RTEMS_INLINE_ROUTINE void _Region_Free ( Region_Control *the_region ) { _Objects_Free( &_Region_Information, &the_region->Object ); 40010d3c: 40 00 12 6e call 400156f4 <_Objects_Free> 40010d40: c0 22 60 0c clr [ %o1 + 0xc ] 40010d44: 05 10 00 cc sethi %hi(0x40033000), %g2 40010d48: c2 00 a2 90 ld [ %g2 + 0x290 ], %g1 ! 40033290 <_Thread_Dispatch_disable_level> 40010d4c: 82 00 60 01 inc %g1 40010d50: c2 20 a2 90 st %g1, [ %g2 + 0x290 ] _Objects_Close( &_Region_Information, &the_region->Object ); _Region_Free( the_region ); _RTEMS_Unlock_allocator(); 40010d54: 03 10 00 cc sethi %hi(0x40033000), %g1 40010d58: d0 00 63 64 ld [ %g1 + 0x364 ], %o0 ! 40033364 <_RTEMS_Allocator_Mutex> 40010d5c: 94 10 20 00 clr %o2 40010d60: d2 02 20 08 ld [ %o0 + 8 ], %o1 40010d64: 40 00 0e c5 call 40014878 <_CORE_mutex_Surrender> 40010d68: 90 02 20 10 add %o0, 0x10, %o0 40010d6c: 7f ff ff 3b call 40010a58 <_Thread_Enable_dispatch> 40010d70: b0 10 20 00 clr %i0 40010d74: 81 c7 e0 08 ret 40010d78: 81 e8 00 00 restore 40010d7c: c2 00 a2 90 ld [ %g2 + 0x290 ], %g1 40010d80: 82 00 60 01 inc %g1 40010d84: c2 20 a2 90 st %g1, [ %g2 + 0x290 ] return RTEMS_SUCCESSFUL; } _RTEMS_Unlock_allocator(); 40010d88: 03 10 00 cc sethi %hi(0x40033000), %g1 40010d8c: d0 00 63 64 ld [ %g1 + 0x364 ], %o0 ! 40033364 <_RTEMS_Allocator_Mutex> 40010d90: 94 10 20 00 clr %o2 40010d94: d2 02 20 08 ld [ %o0 + 8 ], %o1 40010d98: 40 00 0e b8 call 40014878 <_CORE_mutex_Surrender> 40010d9c: 90 02 20 10 add %o0, 0x10, %o0 40010da0: 7f ff ff 2e call 40010a58 <_Thread_Enable_dispatch> 40010da4: b0 10 20 0c mov 0xc, %i0 return RTEMS_RESOURCE_IN_USE; } return RTEMS_INTERNAL_ERROR; /* unreached - only to remove warnings */ } 40010da8: 81 c7 e0 08 ret 40010dac: 81 e8 00 00 restore 40010de4 : rtems_status_code rtems_region_extend( Objects_Id id, void *starting_address, uint32_t length ) { 40010de4: 9d e3 bf 90 save %sp, -112, %sp 40010de8: a4 10 00 18 mov %i0, %l2 Objects_Locations location; uint32_t amount_extended; Heap_Extend_status heap_status; rtems_status_code status; if ( !starting_address ) 40010dec: 80 a6 60 00 cmp %i1, 0 40010df0: 02 80 00 90 be 40011030 40010df4: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; status = RTEMS_SUCCESSFUL; _RTEMS_Lock_allocator(); /* to prevent deletion */ 40010df8: 7f ff e6 a7 call 4000a894 40010dfc: 01 00 00 00 nop 40010e00: a2 10 00 08 mov %o0, %l1 40010e04: 03 10 00 cc sethi %hi(0x40033000), %g1 40010e08: c2 00 62 90 ld [ %g1 + 0x290 ], %g1 ! 40033290 <_Thread_Dispatch_disable_level> 40010e0c: 80 a0 60 00 cmp %g1, 0 40010e10: 02 80 00 0b be 40010e3c 40010e14: 03 10 00 cc sethi %hi(0x40033000), %g1 40010e18: 03 10 00 cd sethi %hi(0x40033400), %g1 <== NOT EXECUTED 40010e1c: c2 00 60 70 ld [ %g1 + 0x70 ], %g1 ! 40033470 <_System_state_Current> <== NOT EXECUTED 40010e20: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 40010e24: 08 80 00 05 bleu 40010e38 <== NOT EXECUTED 40010e28: 90 10 20 00 clr %o0 <== NOT EXECUTED 40010e2c: 92 10 20 00 clr %o1 <== NOT EXECUTED 40010e30: 40 00 11 02 call 40015238 <_Internal_error_Occurred> <== NOT EXECUTED 40010e34: 94 10 20 12 mov 0x12, %o2 <== NOT EXECUTED 40010e38: 03 10 00 cc sethi %hi(0x40033000), %g1 <== NOT EXECUTED 40010e3c: e0 00 63 64 ld [ %g1 + 0x364 ], %l0 ! 40033364 <_RTEMS_Allocator_Mutex> Thread_Control *executing; ISR_Level level = *level_p; /* disabled when you get here */ executing = _Thread_Executing; 40010e40: 03 10 00 cc sethi %hi(0x40033000), %g1 40010e44: c4 00 63 6c ld [ %g1 + 0x36c ], %g2 ! 4003336c <_Thread_Executing> executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; 40010e48: c0 20 a0 34 clr [ %g2 + 0x34 ] if ( !_CORE_mutex_Is_locked( the_mutex ) ) { 40010e4c: c2 04 20 60 ld [ %l0 + 0x60 ], %g1 40010e50: 80 a0 60 00 cmp %g1, 0 40010e54: 22 80 00 33 be,a 40010f20 40010e58: c2 04 20 6c ld [ %l0 + 0x6c ], %g1 <== NOT EXECUTED the_mutex->lock = CORE_MUTEX_LOCKED; 40010e5c: c0 24 20 60 clr [ %l0 + 0x60 ] the_mutex->holder = executing; the_mutex->holder_id = executing->Object.id; 40010e60: c2 00 a0 08 ld [ %g2 + 8 ], %g1 */ RTEMS_INLINE_ROUTINE boolean _CORE_mutex_Is_inherit_priority( CORE_mutex_Attributes *the_attribute ) { return the_attribute->discipline == CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; 40010e64: c6 04 20 58 ld [ %l0 + 0x58 ], %g3 executing = _Thread_Executing; executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; if ( !_CORE_mutex_Is_locked( the_mutex ) ) { the_mutex->lock = CORE_MUTEX_LOCKED; the_mutex->holder = executing; the_mutex->holder_id = executing->Object.id; 40010e68: c2 24 20 70 st %g1, [ %l0 + 0x70 ] 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; 40010e6c: c4 24 20 6c st %g2, [ %l0 + 0x6c ] the_mutex->holder_id = executing->Object.id; the_mutex->nest_count = 1; 40010e70: 82 10 20 01 mov 1, %g1 if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || 40010e74: 80 a0 e0 02 cmp %g3, 2 40010e78: 02 80 00 05 be 40010e8c 40010e7c: c2 24 20 64 st %g1, [ %l0 + 0x64 ] 40010e80: 80 a0 e0 03 cmp %g3, 3 <== NOT EXECUTED 40010e84: 32 80 00 06 bne,a 40010e9c <== NOT EXECUTED 40010e88: c2 04 20 58 ld [ %l0 + 0x58 ], %g1 <== NOT EXECUTED _CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) executing->resource_count++; 40010e8c: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 40010e90: 82 00 60 01 inc %g1 40010e94: c2 20 a0 1c st %g1, [ %g2 + 0x1c ] if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { 40010e98: c2 04 20 58 ld [ %l0 + 0x58 ], %g1 40010e9c: 80 a0 60 03 cmp %g1, 3 40010ea0: 22 80 00 03 be,a 40010eac 40010ea4: c6 04 20 5c ld [ %l0 + 0x5c ], %g3 <== NOT EXECUTED _ISR_Enable( level ); 40010ea8: 30 80 00 2c b,a 40010f58 { Priority_Control ceiling; Priority_Control current; ceiling = the_mutex->Attributes.priority_ceiling; current = executing->current_priority; 40010eac: c2 00 a0 14 ld [ %g2 + 0x14 ], %g1 <== NOT EXECUTED if ( current == ceiling ) { 40010eb0: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 40010eb4: 12 80 00 03 bne 40010ec0 <== NOT EXECUTED 40010eb8: 01 00 00 00 nop <== NOT EXECUTED _ISR_Enable( level ); 40010ebc: 30 80 00 27 b,a 40010f58 <== NOT EXECUTED return 0; } if ( current > ceiling ) { 40010ec0: 08 80 00 10 bleu 40010f00 <== NOT EXECUTED 40010ec4: 82 10 20 06 mov 6, %g1 <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 40010ec8: 05 10 00 cc sethi %hi(0x40033000), %g2 <== NOT EXECUTED 40010ecc: c2 00 a2 90 ld [ %g2 + 0x290 ], %g1 ! 40033290 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 40010ed0: 82 00 60 01 inc %g1 <== NOT EXECUTED 40010ed4: c2 20 a2 90 st %g1, [ %g2 + 0x290 ] <== NOT EXECUTED _Thread_Disable_dispatch(); _ISR_Enable( level ); 40010ed8: 7f ff e6 73 call 4000a8a4 <== NOT EXECUTED 40010edc: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED _Thread_Change_priority( 40010ee0: d2 04 20 5c ld [ %l0 + 0x5c ], %o1 <== NOT EXECUTED 40010ee4: d0 04 20 6c ld [ %l0 + 0x6c ], %o0 <== NOT EXECUTED 40010ee8: 40 00 16 21 call 4001676c <_Thread_Change_priority> <== NOT EXECUTED 40010eec: 94 10 20 00 clr %o2 <== NOT EXECUTED the_mutex->holder, the_mutex->Attributes.priority_ceiling, FALSE ); _Thread_Enable_dispatch(); 40010ef0: 7f ff ff b0 call 40010db0 <_Thread_Enable_dispatch> <== NOT EXECUTED 40010ef4: 01 00 00 00 nop <== NOT EXECUTED RTEMS_INLINE_ROUTINE Region_Control *_Region_Get ( Objects_Id id, Objects_Locations *location ) { return (Region_Control *) 40010ef8: 10 80 00 32 b 40010fc0 <== NOT EXECUTED 40010efc: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED return 0; } /* if ( current < ceiling ) */ { executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED; 40010f00: c2 20 a0 34 st %g1, [ %g2 + 0x34 ] <== NOT EXECUTED the_mutex->lock = CORE_MUTEX_UNLOCKED; 40010f04: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED the_mutex->nest_count = 0; /* undo locking above */ 40010f08: c0 24 20 64 clr [ %l0 + 0x64 ] <== NOT EXECUTED _Thread_Enable_dispatch(); return 0; } /* if ( current < ceiling ) */ { executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED; the_mutex->lock = CORE_MUTEX_UNLOCKED; 40010f0c: c2 24 20 60 st %g1, [ %l0 + 0x60 ] <== NOT EXECUTED the_mutex->nest_count = 0; /* undo locking above */ executing->resource_count--; /* undo locking above */ 40010f10: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 40010f14: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 40010f18: c2 20 a0 1c st %g1, [ %g2 + 0x1c ] <== NOT EXECUTED _ISR_Enable( level ); 40010f1c: 30 80 00 0f b,a 40010f58 <== 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 ) ) { 40010f20: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 40010f24: 32 80 00 13 bne,a 40010f70 <== NOT EXECUTED 40010f28: 21 10 00 cc sethi %hi(0x40033000), %l0 <== NOT EXECUTED switch ( the_mutex->Attributes.lock_nesting_behavior ) { 40010f2c: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 ! 40033050 <_Partition_Information+0x40> <== NOT EXECUTED 40010f30: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40010f34: 22 80 00 07 be,a 40010f50 <== NOT EXECUTED 40010f38: c2 04 20 64 ld [ %l0 + 0x64 ], %g1 <== NOT EXECUTED 40010f3c: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 40010f40: 12 80 00 0c bne 40010f70 <== NOT EXECUTED 40010f44: 21 10 00 cc sethi %hi(0x40033000), %l0 <== NOT EXECUTED case CORE_MUTEX_NESTING_ACQUIRES: the_mutex->nest_count++; _ISR_Enable( level ); return 0; case CORE_MUTEX_NESTING_IS_ERROR: executing->Wait.return_code = CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED; 40010f48: 10 80 00 08 b 40010f68 <== NOT EXECUTED 40010f4c: 82 10 20 02 mov 2, %g1 <== NOT EXECUTED * to nest access. */ if ( _Thread_Is_executing( the_mutex->holder ) ) { switch ( the_mutex->Attributes.lock_nesting_behavior ) { case CORE_MUTEX_NESTING_ACQUIRES: the_mutex->nest_count++; 40010f50: 82 00 60 01 inc %g1 <== NOT EXECUTED 40010f54: c2 24 20 64 st %g1, [ %l0 + 0x64 ] <== NOT EXECUTED _ISR_Enable( level ); 40010f58: 7f ff e6 53 call 4000a8a4 40010f5c: 90 10 00 11 mov %l1, %o0 40010f60: 10 80 00 18 b 40010fc0 40010f64: 92 10 00 12 mov %l2, %o1 return 0; case CORE_MUTEX_NESTING_IS_ERROR: executing->Wait.return_code = CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED; 40010f68: c2 20 a0 34 st %g1, [ %g2 + 0x34 ] <== NOT EXECUTED _ISR_Enable( level ); 40010f6c: 30 bf ff fb b,a 40010f58 <== NOT EXECUTED 40010f70: c6 04 23 64 ld [ %l0 + 0x364 ], %g3 <== NOT EXECUTED 40010f74: 03 10 00 cc sethi %hi(0x40033000), %g1 <== NOT EXECUTED 40010f78: da 00 e0 08 ld [ %g3 + 8 ], %o5 <== NOT EXECUTED 40010f7c: c8 00 63 6c ld [ %g1 + 0x36c ], %g4 <== NOT EXECUTED 40010f80: 05 10 00 cc sethi %hi(0x40033000), %g2 <== NOT EXECUTED 40010f84: c2 00 a2 90 ld [ %g2 + 0x290 ], %g1 ! 40033290 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 40010f88: da 21 20 20 st %o5, [ %g4 + 0x20 ] <== NOT EXECUTED 40010f8c: 82 00 60 01 inc %g1 <== NOT EXECUTED 40010f90: c2 20 a2 90 st %g1, [ %g2 + 0x290 ] <== NOT EXECUTED 40010f94: 82 00 e0 10 add %g3, 0x10, %g1 <== NOT EXECUTED 40010f98: c2 21 20 44 st %g1, [ %g4 + 0x44 ] <== NOT EXECUTED 40010f9c: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 40010fa0: c2 20 e0 40 st %g1, [ %g3 + 0x40 ] <== NOT EXECUTED 40010fa4: 7f ff e6 40 call 4000a8a4 <== NOT EXECUTED 40010fa8: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 40010fac: d0 04 23 64 ld [ %l0 + 0x364 ], %o0 <== NOT EXECUTED 40010fb0: 92 10 20 00 clr %o1 <== NOT EXECUTED 40010fb4: 40 00 0e 0f call 400147f0 <_CORE_mutex_Seize_interrupt_blocking> <== NOT EXECUTED 40010fb8: 90 02 20 10 add %o0, 0x10, %o0 <== NOT EXECUTED 40010fbc: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED 40010fc0: 11 10 00 cc sethi %hi(0x40033000), %o0 40010fc4: 94 07 bf f4 add %fp, -12, %o2 40010fc8: 40 00 12 0d call 400157fc <_Objects_Get_no_protection> 40010fcc: 90 12 20 a8 or %o0, 0xa8, %o0 the_region = _Region_Get( id, &location ); switch ( location ) { 40010fd0: c2 07 bf f4 ld [ %fp + -12 ], %g1 40010fd4: 80 a0 60 01 cmp %g1, 1 40010fd8: 02 80 00 0a be 40011000 40010fdc: a0 10 00 08 mov %o0, %l0 40010fe0: 80 a0 60 01 cmp %g1, 1 40010fe4: 0a 80 00 22 bcs 4001106c 40010fe8: 92 10 00 19 mov %i1, %o1 40010fec: 80 a0 60 02 cmp %g1, 2 40010ff0: 12 80 00 10 bne 40011030 40010ff4: b0 10 20 19 mov 0x19, %i0 40010ff8: 10 80 00 10 b 40011038 40010ffc: 05 10 00 cc sethi %hi(0x40033000), %g2 case OBJECTS_REMOTE: /* this error cannot be returned */ _RTEMS_Unlock_allocator(); 40011000: 05 10 00 cc sethi %hi(0x40033000), %g2 <== NOT EXECUTED 40011004: c2 00 a2 90 ld [ %g2 + 0x290 ], %g1 ! 40033290 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 40011008: 82 00 60 01 inc %g1 <== NOT EXECUTED 4001100c: c2 20 a2 90 st %g1, [ %g2 + 0x290 ] <== NOT EXECUTED 40011010: 03 10 00 cc sethi %hi(0x40033000), %g1 <== NOT EXECUTED 40011014: d0 00 63 64 ld [ %g1 + 0x364 ], %o0 ! 40033364 <_RTEMS_Allocator_Mutex> <== NOT EXECUTED 40011018: 94 10 20 00 clr %o2 <== NOT EXECUTED 4001101c: d2 02 20 08 ld [ %o0 + 8 ], %o1 <== NOT EXECUTED 40011020: 40 00 0e 16 call 40014878 <_CORE_mutex_Surrender> <== NOT EXECUTED 40011024: 90 02 20 10 add %o0, 0x10, %o0 <== NOT EXECUTED 40011028: 7f ff ff 62 call 40010db0 <_Thread_Enable_dispatch> <== NOT EXECUTED 4001102c: b0 10 20 19 mov 0x19, %i0 <== NOT EXECUTED 40011030: 81 c7 e0 08 ret <== NOT EXECUTED 40011034: 81 e8 00 00 restore <== NOT EXECUTED 40011038: c2 00 a2 90 ld [ %g2 + 0x290 ], %g1 4001103c: 82 00 60 01 inc %g1 40011040: c2 20 a2 90 st %g1, [ %g2 + 0x290 ] return RTEMS_INTERNAL_ERROR; case OBJECTS_ERROR: _RTEMS_Unlock_allocator(); 40011044: 03 10 00 cc sethi %hi(0x40033000), %g1 40011048: d0 00 63 64 ld [ %g1 + 0x364 ], %o0 ! 40033364 <_RTEMS_Allocator_Mutex> 4001104c: 94 10 20 00 clr %o2 40011050: d2 02 20 08 ld [ %o0 + 8 ], %o1 40011054: 40 00 0e 09 call 40014878 <_CORE_mutex_Surrender> 40011058: 90 02 20 10 add %o0, 0x10, %o0 4001105c: 7f ff ff 55 call 40010db0 <_Thread_Enable_dispatch> 40011060: b0 10 20 04 mov 4, %i0 40011064: 81 c7 e0 08 ret 40011068: 81 e8 00 00 restore return RTEMS_INVALID_ID; case OBJECTS_LOCAL: heap_status = _Heap_Extend( 4001106c: 94 10 00 1a mov %i2, %o2 40011070: 90 02 20 68 add %o0, 0x68, %o0 40011074: 96 07 bf f0 add %fp, -16, %o3 40011078: 40 00 0f 3b call 40014d64 <_Heap_Extend> 4001107c: b0 10 20 09 mov 9, %i0 starting_address, length, &amount_extended ); switch ( heap_status ) { 40011080: 80 a2 20 01 cmp %o0, 1 40011084: 02 80 00 12 be 400110cc 40011088: 05 10 00 cc sethi %hi(0x40033000), %g2 4001108c: 0a 80 00 08 bcs 400110ac 40011090: c6 07 bf f0 ld [ %fp + -16 ], %g3 40011094: 82 1a 20 02 xor %o0, 2, %g1 40011098: 80 a0 00 01 cmp %g0, %g1 4001109c: 82 60 20 00 subx %g0, 0, %g1 400110a0: b0 08 7f e8 and %g1, -24, %i0 400110a4: 10 80 00 0a b 400110cc 400110a8: b0 06 20 18 add %i0, 0x18, %i0 case HEAP_EXTEND_SUCCESSFUL: the_region->length += amount_extended; 400110ac: c4 04 20 54 ld [ %l0 + 0x54 ], %g2 the_region->maximum_segment_size += amount_extended; 400110b0: c2 04 20 5c ld [ %l0 + 0x5c ], %g1 &amount_extended ); switch ( heap_status ) { case HEAP_EXTEND_SUCCESSFUL: the_region->length += amount_extended; 400110b4: 84 00 80 03 add %g2, %g3, %g2 the_region->maximum_segment_size += amount_extended; 400110b8: 82 00 40 03 add %g1, %g3, %g1 &amount_extended ); switch ( heap_status ) { case HEAP_EXTEND_SUCCESSFUL: the_region->length += amount_extended; 400110bc: c4 24 20 54 st %g2, [ %l0 + 0x54 ] the_region->maximum_segment_size += amount_extended; 400110c0: c2 24 20 5c st %g1, [ %l0 + 0x5c ] 400110c4: b0 10 20 00 clr %i0 400110c8: 05 10 00 cc sethi %hi(0x40033000), %g2 400110cc: c2 00 a2 90 ld [ %g2 + 0x290 ], %g1 ! 40033290 <_Thread_Dispatch_disable_level> 400110d0: 82 00 60 01 inc %g1 400110d4: c2 20 a2 90 st %g1, [ %g2 + 0x290 ] break; case HEAP_EXTEND_NOT_IMPLEMENTED: status = RTEMS_NOT_IMPLEMENTED; break; } _RTEMS_Unlock_allocator(); 400110d8: 03 10 00 cc sethi %hi(0x40033000), %g1 400110dc: d0 00 63 64 ld [ %g1 + 0x364 ], %o0 ! 40033364 <_RTEMS_Allocator_Mutex> 400110e0: 94 10 20 00 clr %o2 400110e4: d2 02 20 08 ld [ %o0 + 8 ], %o1 400110e8: 40 00 0d e4 call 40014878 <_CORE_mutex_Surrender> 400110ec: 90 02 20 10 add %o0, 0x10, %o0 400110f0: 7f ff ff 30 call 40010db0 <_Thread_Enable_dispatch> 400110f4: 01 00 00 00 nop return( status ); } return RTEMS_INTERNAL_ERROR; /* unreached - only to remove warnings */ } 400110f8: 81 c7 e0 08 ret 400110fc: 81 e8 00 00 restore 40011134 : uint32_t size, rtems_option option_set, rtems_interval timeout, void **segment ) { 40011134: 9d e3 bf 90 save %sp, -112, %sp 40011138: a4 10 00 18 mov %i0, %l2 register Region_Control *the_region; Objects_Locations location; Thread_Control *executing; void *the_segment; if ( !segment ) 4001113c: 80 a7 20 00 cmp %i4, 0 40011140: 02 80 00 96 be 40011398 40011144: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; *segment = NULL; 40011148: c0 27 00 00 clr [ %i4 ] if ( size == 0 ) 4001114c: 80 a6 60 00 cmp %i1, 0 40011150: 02 80 00 92 be 40011398 40011154: b0 10 20 08 mov 8, %i0 return RTEMS_INVALID_SIZE; _RTEMS_Lock_allocator(); 40011158: 7f ff e5 cf call 4000a894 4001115c: 01 00 00 00 nop 40011160: a2 10 00 08 mov %o0, %l1 40011164: 03 10 00 cc sethi %hi(0x40033000), %g1 40011168: c2 00 62 90 ld [ %g1 + 0x290 ], %g1 ! 40033290 <_Thread_Dispatch_disable_level> 4001116c: 80 a0 60 00 cmp %g1, 0 40011170: 02 80 00 0b be 4001119c 40011174: 03 10 00 cc sethi %hi(0x40033000), %g1 40011178: 03 10 00 cd sethi %hi(0x40033400), %g1 <== NOT EXECUTED 4001117c: c2 00 60 70 ld [ %g1 + 0x70 ], %g1 ! 40033470 <_System_state_Current> <== NOT EXECUTED 40011180: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 40011184: 08 80 00 05 bleu 40011198 <== NOT EXECUTED 40011188: 90 10 20 00 clr %o0 <== NOT EXECUTED 4001118c: 92 10 20 00 clr %o1 <== NOT EXECUTED 40011190: 40 00 10 2a call 40015238 <_Internal_error_Occurred> <== NOT EXECUTED 40011194: 94 10 20 12 mov 0x12, %o2 <== NOT EXECUTED 40011198: 03 10 00 cc sethi %hi(0x40033000), %g1 <== NOT EXECUTED 4001119c: e0 00 63 64 ld [ %g1 + 0x364 ], %l0 ! 40033364 <_RTEMS_Allocator_Mutex> Thread_Control *executing; ISR_Level level = *level_p; /* disabled when you get here */ executing = _Thread_Executing; 400111a0: 03 10 00 cc sethi %hi(0x40033000), %g1 400111a4: c4 00 63 6c ld [ %g1 + 0x36c ], %g2 ! 4003336c <_Thread_Executing> executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; 400111a8: c0 20 a0 34 clr [ %g2 + 0x34 ] if ( !_CORE_mutex_Is_locked( the_mutex ) ) { 400111ac: c2 04 20 60 ld [ %l0 + 0x60 ], %g1 400111b0: 80 a0 60 00 cmp %g1, 0 400111b4: 22 80 00 33 be,a 40011280 400111b8: c2 04 20 6c ld [ %l0 + 0x6c ], %g1 <== NOT EXECUTED the_mutex->lock = CORE_MUTEX_LOCKED; 400111bc: c0 24 20 60 clr [ %l0 + 0x60 ] the_mutex->holder = executing; the_mutex->holder_id = executing->Object.id; 400111c0: c2 00 a0 08 ld [ %g2 + 8 ], %g1 */ RTEMS_INLINE_ROUTINE boolean _CORE_mutex_Is_inherit_priority( CORE_mutex_Attributes *the_attribute ) { return the_attribute->discipline == CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; 400111c4: c6 04 20 58 ld [ %l0 + 0x58 ], %g3 executing = _Thread_Executing; executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; if ( !_CORE_mutex_Is_locked( the_mutex ) ) { the_mutex->lock = CORE_MUTEX_LOCKED; the_mutex->holder = executing; the_mutex->holder_id = executing->Object.id; 400111c8: c2 24 20 70 st %g1, [ %l0 + 0x70 ] 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; 400111cc: c4 24 20 6c st %g2, [ %l0 + 0x6c ] the_mutex->holder_id = executing->Object.id; the_mutex->nest_count = 1; 400111d0: 82 10 20 01 mov 1, %g1 if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || 400111d4: 80 a0 e0 02 cmp %g3, 2 400111d8: 02 80 00 05 be 400111ec 400111dc: c2 24 20 64 st %g1, [ %l0 + 0x64 ] 400111e0: 80 a0 e0 03 cmp %g3, 3 <== NOT EXECUTED 400111e4: 32 80 00 06 bne,a 400111fc <== NOT EXECUTED 400111e8: c2 04 20 58 ld [ %l0 + 0x58 ], %g1 <== NOT EXECUTED _CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) executing->resource_count++; 400111ec: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 400111f0: 82 00 60 01 inc %g1 400111f4: c2 20 a0 1c st %g1, [ %g2 + 0x1c ] if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { 400111f8: c2 04 20 58 ld [ %l0 + 0x58 ], %g1 400111fc: 80 a0 60 03 cmp %g1, 3 40011200: 22 80 00 03 be,a 4001120c 40011204: c6 04 20 5c ld [ %l0 + 0x5c ], %g3 <== NOT EXECUTED _ISR_Enable( level ); 40011208: 30 80 00 2c b,a 400112b8 { Priority_Control ceiling; Priority_Control current; ceiling = the_mutex->Attributes.priority_ceiling; current = executing->current_priority; 4001120c: c2 00 a0 14 ld [ %g2 + 0x14 ], %g1 <== NOT EXECUTED if ( current == ceiling ) { 40011210: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 40011214: 12 80 00 03 bne 40011220 <== NOT EXECUTED 40011218: 01 00 00 00 nop <== NOT EXECUTED _ISR_Enable( level ); 4001121c: 30 80 00 27 b,a 400112b8 <== NOT EXECUTED return 0; } if ( current > ceiling ) { 40011220: 28 80 00 10 bleu,a 40011260 <== NOT EXECUTED 40011224: 82 10 20 06 mov 6, %g1 <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 40011228: 05 10 00 cc sethi %hi(0x40033000), %g2 <== NOT EXECUTED 4001122c: c2 00 a2 90 ld [ %g2 + 0x290 ], %g1 ! 40033290 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 40011230: 82 00 60 01 inc %g1 <== NOT EXECUTED 40011234: c2 20 a2 90 st %g1, [ %g2 + 0x290 ] <== NOT EXECUTED _Thread_Disable_dispatch(); _ISR_Enable( level ); 40011238: 7f ff e5 9b call 4000a8a4 <== NOT EXECUTED 4001123c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED _Thread_Change_priority( 40011240: d2 04 20 5c ld [ %l0 + 0x5c ], %o1 <== NOT EXECUTED 40011244: d0 04 20 6c ld [ %l0 + 0x6c ], %o0 <== NOT EXECUTED 40011248: 40 00 15 49 call 4001676c <_Thread_Change_priority> <== NOT EXECUTED 4001124c: 94 10 20 00 clr %o2 <== NOT EXECUTED the_mutex->holder, the_mutex->Attributes.priority_ceiling, FALSE ); _Thread_Enable_dispatch(); 40011250: 7f ff ff ac call 40011100 <_Thread_Enable_dispatch> <== NOT EXECUTED 40011254: 01 00 00 00 nop <== NOT EXECUTED executing = _Thread_Executing; 40011258: 10 80 00 32 b 40011320 <== NOT EXECUTED 4001125c: 03 10 00 cc sethi %hi(0x40033000), %g1 <== NOT EXECUTED return 0; } /* if ( current < ceiling ) */ { executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED; 40011260: c2 20 a0 34 st %g1, [ %g2 + 0x34 ] <== NOT EXECUTED the_mutex->lock = CORE_MUTEX_UNLOCKED; 40011264: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED the_mutex->nest_count = 0; /* undo locking above */ 40011268: c0 24 20 64 clr [ %l0 + 0x64 ] <== NOT EXECUTED _Thread_Enable_dispatch(); return 0; } /* if ( current < ceiling ) */ { executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED; the_mutex->lock = CORE_MUTEX_UNLOCKED; 4001126c: c2 24 20 60 st %g1, [ %l0 + 0x60 ] <== NOT EXECUTED the_mutex->nest_count = 0; /* undo locking above */ executing->resource_count--; /* undo locking above */ 40011270: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 40011274: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 40011278: c2 20 a0 1c st %g1, [ %g2 + 0x1c ] <== NOT EXECUTED _ISR_Enable( level ); 4001127c: 30 80 00 0f b,a 400112b8 <== 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 ) ) { 40011280: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 40011284: 32 80 00 13 bne,a 400112d0 <== NOT EXECUTED 40011288: 21 10 00 cc sethi %hi(0x40033000), %l0 <== NOT EXECUTED switch ( the_mutex->Attributes.lock_nesting_behavior ) { 4001128c: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 ! 40033050 <_Partition_Information+0x40> <== NOT EXECUTED 40011290: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 40011294: 22 80 00 07 be,a 400112b0 <== NOT EXECUTED 40011298: c2 04 20 64 ld [ %l0 + 0x64 ], %g1 <== NOT EXECUTED 4001129c: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 400112a0: 12 80 00 0c bne 400112d0 <== NOT EXECUTED 400112a4: 21 10 00 cc sethi %hi(0x40033000), %l0 <== NOT EXECUTED case CORE_MUTEX_NESTING_ACQUIRES: the_mutex->nest_count++; _ISR_Enable( level ); return 0; case CORE_MUTEX_NESTING_IS_ERROR: executing->Wait.return_code = CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED; 400112a8: 10 80 00 08 b 400112c8 <== NOT EXECUTED 400112ac: 82 10 20 02 mov 2, %g1 <== NOT EXECUTED * to nest access. */ if ( _Thread_Is_executing( the_mutex->holder ) ) { switch ( the_mutex->Attributes.lock_nesting_behavior ) { case CORE_MUTEX_NESTING_ACQUIRES: the_mutex->nest_count++; 400112b0: 82 00 60 01 inc %g1 <== NOT EXECUTED 400112b4: c2 24 20 64 st %g1, [ %l0 + 0x64 ] <== NOT EXECUTED _ISR_Enable( level ); 400112b8: 7f ff e5 7b call 4000a8a4 400112bc: 90 10 00 11 mov %l1, %o0 400112c0: 10 80 00 18 b 40011320 400112c4: 03 10 00 cc sethi %hi(0x40033000), %g1 return 0; case CORE_MUTEX_NESTING_IS_ERROR: executing->Wait.return_code = CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED; 400112c8: c2 20 a0 34 st %g1, [ %g2 + 0x34 ] <== NOT EXECUTED _ISR_Enable( level ); 400112cc: 30 bf ff fb b,a 400112b8 <== NOT EXECUTED *segment = NULL; if ( size == 0 ) return RTEMS_INVALID_SIZE; _RTEMS_Lock_allocator(); 400112d0: c6 04 23 64 ld [ %l0 + 0x364 ], %g3 <== NOT EXECUTED 400112d4: 03 10 00 cc sethi %hi(0x40033000), %g1 <== NOT EXECUTED 400112d8: da 00 e0 08 ld [ %g3 + 8 ], %o5 <== NOT EXECUTED 400112dc: c8 00 63 6c ld [ %g1 + 0x36c ], %g4 <== NOT EXECUTED 400112e0: 05 10 00 cc sethi %hi(0x40033000), %g2 <== NOT EXECUTED 400112e4: c2 00 a2 90 ld [ %g2 + 0x290 ], %g1 ! 40033290 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 400112e8: da 21 20 20 st %o5, [ %g4 + 0x20 ] <== NOT EXECUTED 400112ec: 82 00 60 01 inc %g1 <== NOT EXECUTED 400112f0: c2 20 a2 90 st %g1, [ %g2 + 0x290 ] <== NOT EXECUTED 400112f4: 82 00 e0 10 add %g3, 0x10, %g1 <== NOT EXECUTED 400112f8: c2 21 20 44 st %g1, [ %g4 + 0x44 ] <== NOT EXECUTED 400112fc: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 40011300: c2 20 e0 40 st %g1, [ %g3 + 0x40 ] <== NOT EXECUTED 40011304: 7f ff e5 68 call 4000a8a4 <== NOT EXECUTED 40011308: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 4001130c: d0 04 23 64 ld [ %l0 + 0x364 ], %o0 <== NOT EXECUTED 40011310: 92 10 20 00 clr %o1 <== NOT EXECUTED 40011314: 40 00 0d 37 call 400147f0 <_CORE_mutex_Seize_interrupt_blocking> <== NOT EXECUTED 40011318: 90 02 20 10 add %o0, 0x10, %o0 <== NOT EXECUTED executing = _Thread_Executing; 4001131c: 03 10 00 cc sethi %hi(0x40033000), %g1 <== NOT EXECUTED 40011320: 11 10 00 cc sethi %hi(0x40033000), %o0 40011324: f0 00 63 6c ld [ %g1 + 0x36c ], %i0 40011328: 90 12 20 a8 or %o0, 0xa8, %o0 4001132c: 92 10 00 12 mov %l2, %o1 40011330: 40 00 11 33 call 400157fc <_Objects_Get_no_protection> 40011334: 94 07 bf f4 add %fp, -12, %o2 the_region = _Region_Get( id, &location ); switch ( location ) { 40011338: c2 07 bf f4 ld [ %fp + -12 ], %g1 4001133c: 80 a0 60 01 cmp %g1, 1 40011340: 02 80 00 0a be 40011368 40011344: a0 10 00 08 mov %o0, %l0 40011348: 80 a0 60 01 cmp %g1, 1 4001134c: 2a 80 00 22 bcs,a 400113d4 40011350: c2 02 20 5c ld [ %o0 + 0x5c ], %g1 40011354: 80 a0 60 02 cmp %g1, 2 40011358: 12 80 00 10 bne 40011398 4001135c: b0 10 20 19 mov 0x19, %i0 40011360: 10 80 00 10 b 400113a0 40011364: 05 10 00 cc sethi %hi(0x40033000), %g2 case OBJECTS_REMOTE: /* this error cannot be returned */ _RTEMS_Unlock_allocator(); 40011368: 05 10 00 cc sethi %hi(0x40033000), %g2 <== NOT EXECUTED 4001136c: c2 00 a2 90 ld [ %g2 + 0x290 ], %g1 ! 40033290 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 40011370: 82 00 60 01 inc %g1 <== NOT EXECUTED 40011374: c2 20 a2 90 st %g1, [ %g2 + 0x290 ] <== NOT EXECUTED 40011378: 03 10 00 cc sethi %hi(0x40033000), %g1 <== NOT EXECUTED 4001137c: d0 00 63 64 ld [ %g1 + 0x364 ], %o0 ! 40033364 <_RTEMS_Allocator_Mutex> <== NOT EXECUTED 40011380: 94 10 20 00 clr %o2 <== NOT EXECUTED 40011384: d2 02 20 08 ld [ %o0 + 8 ], %o1 <== NOT EXECUTED 40011388: 40 00 0d 3c call 40014878 <_CORE_mutex_Surrender> <== NOT EXECUTED 4001138c: 90 02 20 10 add %o0, 0x10, %o0 <== NOT EXECUTED 40011390: 7f ff ff 5c call 40011100 <_Thread_Enable_dispatch> <== NOT EXECUTED 40011394: b0 10 20 19 mov 0x19, %i0 <== NOT EXECUTED 40011398: 81 c7 e0 08 ret <== NOT EXECUTED 4001139c: 81 e8 00 00 restore <== NOT EXECUTED 400113a0: c2 00 a2 90 ld [ %g2 + 0x290 ], %g1 400113a4: 82 00 60 01 inc %g1 400113a8: c2 20 a2 90 st %g1, [ %g2 + 0x290 ] return RTEMS_INTERNAL_ERROR; case OBJECTS_ERROR: _RTEMS_Unlock_allocator(); 400113ac: 03 10 00 cc sethi %hi(0x40033000), %g1 400113b0: d0 00 63 64 ld [ %g1 + 0x364 ], %o0 ! 40033364 <_RTEMS_Allocator_Mutex> 400113b4: 94 10 20 00 clr %o2 400113b8: d2 02 20 08 ld [ %o0 + 8 ], %o1 400113bc: 40 00 0d 2f call 40014878 <_CORE_mutex_Surrender> 400113c0: 90 02 20 10 add %o0, 0x10, %o0 400113c4: 7f ff ff 4f call 40011100 <_Thread_Enable_dispatch> 400113c8: b0 10 20 04 mov 4, %i0 400113cc: 81 c7 e0 08 ret 400113d0: 81 e8 00 00 restore return RTEMS_INVALID_ID; case OBJECTS_LOCAL: if ( size > the_region->maximum_segment_size ) { 400113d4: 80 a6 40 01 cmp %i1, %g1 400113d8: 08 80 00 0f bleu 40011414 400113dc: 05 10 00 cc sethi %hi(0x40033000), %g2 400113e0: c2 00 a2 90 ld [ %g2 + 0x290 ], %g1 ! 40033290 <_Thread_Dispatch_disable_level> 400113e4: 82 00 60 01 inc %g1 400113e8: c2 20 a2 90 st %g1, [ %g2 + 0x290 ] _RTEMS_Unlock_allocator(); 400113ec: 03 10 00 cc sethi %hi(0x40033000), %g1 400113f0: d0 00 63 64 ld [ %g1 + 0x364 ], %o0 ! 40033364 <_RTEMS_Allocator_Mutex> 400113f4: 94 10 20 00 clr %o2 400113f8: d2 02 20 08 ld [ %o0 + 8 ], %o1 400113fc: 40 00 0d 1f call 40014878 <_CORE_mutex_Surrender> 40011400: 90 02 20 10 add %o0, 0x10, %o0 40011404: 7f ff ff 3f call 40011100 <_Thread_Enable_dispatch> 40011408: b0 10 20 08 mov 8, %i0 4001140c: 81 c7 e0 08 ret 40011410: 81 e8 00 00 restore RTEMS_INLINE_ROUTINE void *_Region_Allocate_segment ( Region_Control *the_region, uint32_t size ) { return _Heap_Allocate( &the_region->Memory, size ); 40011414: 90 02 20 68 add %o0, 0x68, %o0 40011418: 40 00 0e 2c call 40014cc8 <_Heap_Allocate> 4001141c: 92 10 00 19 mov %i1, %o1 the_segment = _Region_Allocate_segment( the_region, size ); _Region_Debug_Walk( the_region, 2 ); if ( the_segment ) { 40011420: a2 92 20 00 orcc %o0, 0, %l1 40011424: 02 80 00 13 be 40011470 40011428: 07 10 00 cc sethi %hi(0x40033000), %g3 the_region->number_of_used_blocks += 1; 4001142c: c2 04 20 64 ld [ %l0 + 0x64 ], %g1 40011430: c4 00 e2 90 ld [ %g3 + 0x290 ], %g2 40011434: 82 00 60 01 inc %g1 40011438: c2 24 20 64 st %g1, [ %l0 + 0x64 ] 4001143c: 84 00 a0 01 inc %g2 40011440: c4 20 e2 90 st %g2, [ %g3 + 0x290 ] _RTEMS_Unlock_allocator(); 40011444: 03 10 00 cc sethi %hi(0x40033000), %g1 40011448: d0 00 63 64 ld [ %g1 + 0x364 ], %o0 ! 40033364 <_RTEMS_Allocator_Mutex> 4001144c: 94 10 20 00 clr %o2 40011450: d2 02 20 08 ld [ %o0 + 8 ], %o1 40011454: 40 00 0d 09 call 40014878 <_CORE_mutex_Surrender> 40011458: 90 02 20 10 add %o0, 0x10, %o0 4001145c: 7f ff ff 29 call 40011100 <_Thread_Enable_dispatch> 40011460: b0 10 20 00 clr %i0 *segment = the_segment; 40011464: e2 27 00 00 st %l1, [ %i4 ] 40011468: 81 c7 e0 08 ret 4001146c: 81 e8 00 00 restore return RTEMS_SUCCESSFUL; } if ( _Options_Is_no_wait( option_set ) ) { 40011470: 80 8e a0 01 btst 1, %i2 40011474: 05 10 00 cc sethi %hi(0x40033000), %g2 40011478: 02 80 00 0e be 400114b0 4001147c: 07 10 00 cc sethi %hi(0x40033000), %g3 40011480: c2 00 a2 90 ld [ %g2 + 0x290 ], %g1 40011484: 82 00 60 01 inc %g1 40011488: c2 20 a2 90 st %g1, [ %g2 + 0x290 ] _RTEMS_Unlock_allocator(); 4001148c: d0 00 e3 64 ld [ %g3 + 0x364 ], %o0 40011490: 94 10 20 00 clr %o2 40011494: d2 02 20 08 ld [ %o0 + 8 ], %o1 40011498: 40 00 0c f8 call 40014878 <_CORE_mutex_Surrender> 4001149c: 90 02 20 10 add %o0, 0x10, %o0 400114a0: 7f ff ff 18 call 40011100 <_Thread_Enable_dispatch> 400114a4: b0 10 20 0d mov 0xd, %i0 400114a8: 81 c7 e0 08 ret 400114ac: 81 e8 00 00 restore 400114b0: c2 00 a2 90 ld [ %g2 + 0x290 ], %g1 400114b4: 82 00 60 01 inc %g1 400114b8: c2 20 a2 90 st %g1, [ %g2 + 0x290 ] 400114bc: c2 00 a2 90 ld [ %g2 + 0x290 ], %g1 400114c0: 82 00 60 01 inc %g1 400114c4: c2 20 a2 90 st %g1, [ %g2 + 0x290 ] * 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(); 400114c8: d0 00 e3 64 ld [ %g3 + 0x364 ], %o0 400114cc: 94 10 20 00 clr %o2 400114d0: d2 02 20 08 ld [ %o0 + 8 ], %o1 400114d4: 40 00 0c e9 call 40014878 <_CORE_mutex_Surrender> 400114d8: 90 02 20 10 add %o0, 0x10, %o0 400114dc: 7f ff ff 09 call 40011100 <_Thread_Enable_dispatch> 400114e0: 01 00 00 00 nop executing->Wait.queue = &the_region->Wait_queue; 400114e4: 82 04 20 10 add %l0, 0x10, %g1 executing->Wait.count = size; executing->Wait.return_argument = segment; _Thread_queue_Enter_critical_section( &the_region->Wait_queue ); _Thread_queue_Enqueue( &the_region->Wait_queue, timeout ); 400114e8: 92 10 00 1b mov %i3, %o1 400114ec: 90 10 00 01 mov %g1, %o0 * because this thread is going to block. */ _Thread_Disable_dispatch(); _RTEMS_Unlock_allocator(); executing->Wait.queue = &the_region->Wait_queue; 400114f0: c2 26 20 44 st %g1, [ %i0 + 0x44 ] executing->Wait.count = size; executing->Wait.return_argument = segment; _Thread_queue_Enter_critical_section( &the_region->Wait_queue ); _Thread_queue_Enqueue( &the_region->Wait_queue, timeout ); 400114f4: 15 10 00 5d sethi %hi(0x40017400), %o2 400114f8: 82 10 20 01 mov 1, %g1 400114fc: 94 12 a2 54 or %o2, 0x254, %o2 */ _Thread_Disable_dispatch(); _RTEMS_Unlock_allocator(); executing->Wait.queue = &the_region->Wait_queue; executing->Wait.id = id; 40011500: e4 26 20 20 st %l2, [ %i0 + 0x20 ] executing->Wait.count = size; 40011504: f2 26 20 24 st %i1, [ %i0 + 0x24 ] executing->Wait.return_argument = segment; 40011508: f8 26 20 28 st %i4, [ %i0 + 0x28 ] _Thread_queue_Enter_critical_section( &the_region->Wait_queue ); _Thread_queue_Enqueue( &the_region->Wait_queue, timeout ); 4001150c: 40 00 17 2c call 400171bc <_Thread_queue_Enqueue_with_handler> 40011510: c2 24 20 40 st %g1, [ %l0 + 0x40 ] _Thread_Enable_dispatch(); 40011514: 7f ff fe fb call 40011100 <_Thread_Enable_dispatch> 40011518: 01 00 00 00 nop return (rtems_status_code) executing->Wait.return_code; 4001151c: f0 06 20 34 ld [ %i0 + 0x34 ], %i0 } return RTEMS_INTERNAL_ERROR; /* unreached - only to remove warnings */ } 40011520: 81 c7 e0 08 ret 40011524: 81 e8 00 00 restore 40011594 : rtems_status_code rtems_region_return_segment( Objects_Id id, void *segment ) { 40011594: 9d e3 bf 90 save %sp, -112, %sp #ifdef RTEMS_REGION_FREE_SHRED_PATTERN uint32_t size; #endif int status; _RTEMS_Lock_allocator(); 40011598: 7f ff e4 bf call 4000a894 4001159c: 01 00 00 00 nop 400115a0: a2 10 00 08 mov %o0, %l1 400115a4: 03 10 00 cc sethi %hi(0x40033000), %g1 400115a8: c2 00 62 90 ld [ %g1 + 0x290 ], %g1 ! 40033290 <_Thread_Dispatch_disable_level> 400115ac: 80 a0 60 00 cmp %g1, 0 400115b0: 02 80 00 0b be 400115dc 400115b4: 03 10 00 cc sethi %hi(0x40033000), %g1 400115b8: 03 10 00 cd sethi %hi(0x40033400), %g1 <== NOT EXECUTED 400115bc: c2 00 60 70 ld [ %g1 + 0x70 ], %g1 ! 40033470 <_System_state_Current> <== NOT EXECUTED 400115c0: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 400115c4: 08 80 00 05 bleu 400115d8 <== NOT EXECUTED 400115c8: 90 10 20 00 clr %o0 <== NOT EXECUTED 400115cc: 92 10 20 00 clr %o1 <== NOT EXECUTED 400115d0: 40 00 0f 1a call 40015238 <_Internal_error_Occurred> <== NOT EXECUTED 400115d4: 94 10 20 12 mov 0x12, %o2 <== NOT EXECUTED 400115d8: 03 10 00 cc sethi %hi(0x40033000), %g1 <== NOT EXECUTED 400115dc: e0 00 63 64 ld [ %g1 + 0x364 ], %l0 ! 40033364 <_RTEMS_Allocator_Mutex> Thread_Control *executing; ISR_Level level = *level_p; /* disabled when you get here */ executing = _Thread_Executing; 400115e0: 03 10 00 cc sethi %hi(0x40033000), %g1 400115e4: c4 00 63 6c ld [ %g1 + 0x36c ], %g2 ! 4003336c <_Thread_Executing> executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; 400115e8: c0 20 a0 34 clr [ %g2 + 0x34 ] if ( !_CORE_mutex_Is_locked( the_mutex ) ) { 400115ec: c2 04 20 60 ld [ %l0 + 0x60 ], %g1 400115f0: 80 a0 60 00 cmp %g1, 0 400115f4: 22 80 00 33 be,a 400116c0 400115f8: c2 04 20 6c ld [ %l0 + 0x6c ], %g1 <== NOT EXECUTED the_mutex->lock = CORE_MUTEX_LOCKED; 400115fc: c0 24 20 60 clr [ %l0 + 0x60 ] the_mutex->holder = executing; the_mutex->holder_id = executing->Object.id; 40011600: c2 00 a0 08 ld [ %g2 + 8 ], %g1 */ RTEMS_INLINE_ROUTINE boolean _CORE_mutex_Is_inherit_priority( CORE_mutex_Attributes *the_attribute ) { return the_attribute->discipline == CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; 40011604: c6 04 20 58 ld [ %l0 + 0x58 ], %g3 executing = _Thread_Executing; executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; if ( !_CORE_mutex_Is_locked( the_mutex ) ) { the_mutex->lock = CORE_MUTEX_LOCKED; the_mutex->holder = executing; the_mutex->holder_id = executing->Object.id; 40011608: c2 24 20 70 st %g1, [ %l0 + 0x70 ] 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; 4001160c: c4 24 20 6c st %g2, [ %l0 + 0x6c ] the_mutex->holder_id = executing->Object.id; the_mutex->nest_count = 1; 40011610: 82 10 20 01 mov 1, %g1 if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || 40011614: 80 a0 e0 02 cmp %g3, 2 40011618: 02 80 00 05 be 4001162c 4001161c: c2 24 20 64 st %g1, [ %l0 + 0x64 ] 40011620: 80 a0 e0 03 cmp %g3, 3 <== NOT EXECUTED 40011624: 32 80 00 06 bne,a 4001163c <== NOT EXECUTED 40011628: c2 04 20 58 ld [ %l0 + 0x58 ], %g1 <== NOT EXECUTED _CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) executing->resource_count++; 4001162c: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 40011630: 82 00 60 01 inc %g1 40011634: c2 20 a0 1c st %g1, [ %g2 + 0x1c ] if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { 40011638: c2 04 20 58 ld [ %l0 + 0x58 ], %g1 4001163c: 80 a0 60 03 cmp %g1, 3 40011640: 22 80 00 03 be,a 4001164c 40011644: c6 04 20 5c ld [ %l0 + 0x5c ], %g3 <== NOT EXECUTED _ISR_Enable( level ); 40011648: 30 80 00 2c b,a 400116f8 { Priority_Control ceiling; Priority_Control current; ceiling = the_mutex->Attributes.priority_ceiling; current = executing->current_priority; 4001164c: c2 00 a0 14 ld [ %g2 + 0x14 ], %g1 <== NOT EXECUTED if ( current == ceiling ) { 40011650: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 40011654: 12 80 00 03 bne 40011660 <== NOT EXECUTED 40011658: 01 00 00 00 nop <== NOT EXECUTED _ISR_Enable( level ); 4001165c: 30 80 00 27 b,a 400116f8 <== NOT EXECUTED return 0; } if ( current > ceiling ) { 40011660: 08 80 00 10 bleu 400116a0 <== NOT EXECUTED 40011664: 82 10 20 06 mov 6, %g1 <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 40011668: 05 10 00 cc sethi %hi(0x40033000), %g2 <== NOT EXECUTED 4001166c: c2 00 a2 90 ld [ %g2 + 0x290 ], %g1 ! 40033290 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 40011670: 82 00 60 01 inc %g1 <== NOT EXECUTED 40011674: c2 20 a2 90 st %g1, [ %g2 + 0x290 ] <== NOT EXECUTED _Thread_Disable_dispatch(); _ISR_Enable( level ); 40011678: 7f ff e4 8b call 4000a8a4 <== NOT EXECUTED 4001167c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED _Thread_Change_priority( 40011680: d2 04 20 5c ld [ %l0 + 0x5c ], %o1 <== NOT EXECUTED 40011684: d0 04 20 6c ld [ %l0 + 0x6c ], %o0 <== NOT EXECUTED 40011688: 40 00 14 39 call 4001676c <_Thread_Change_priority> <== NOT EXECUTED 4001168c: 94 10 20 00 clr %o2 <== NOT EXECUTED the_mutex->holder, the_mutex->Attributes.priority_ceiling, FALSE ); _Thread_Enable_dispatch(); 40011690: 7f ff ff b4 call 40011560 <_Thread_Enable_dispatch> <== NOT EXECUTED 40011694: 01 00 00 00 nop <== NOT EXECUTED RTEMS_INLINE_ROUTINE Region_Control *_Region_Get ( Objects_Id id, Objects_Locations *location ) { return (Region_Control *) 40011698: 10 80 00 32 b 40011760 <== NOT EXECUTED 4001169c: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED return 0; } /* if ( current < ceiling ) */ { executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED; 400116a0: c2 20 a0 34 st %g1, [ %g2 + 0x34 ] <== NOT EXECUTED the_mutex->lock = CORE_MUTEX_UNLOCKED; 400116a4: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED the_mutex->nest_count = 0; /* undo locking above */ 400116a8: c0 24 20 64 clr [ %l0 + 0x64 ] <== NOT EXECUTED _Thread_Enable_dispatch(); return 0; } /* if ( current < ceiling ) */ { executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED; the_mutex->lock = CORE_MUTEX_UNLOCKED; 400116ac: c2 24 20 60 st %g1, [ %l0 + 0x60 ] <== NOT EXECUTED the_mutex->nest_count = 0; /* undo locking above */ executing->resource_count--; /* undo locking above */ 400116b0: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 400116b4: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 400116b8: c2 20 a0 1c st %g1, [ %g2 + 0x1c ] <== NOT EXECUTED _ISR_Enable( level ); 400116bc: 30 80 00 0f b,a 400116f8 <== 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 ) ) { 400116c0: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED 400116c4: 32 80 00 13 bne,a 40011710 <== NOT EXECUTED 400116c8: 21 10 00 cc sethi %hi(0x40033000), %l0 <== NOT EXECUTED switch ( the_mutex->Attributes.lock_nesting_behavior ) { 400116cc: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 ! 40033050 <_Partition_Information+0x40> <== NOT EXECUTED 400116d0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 400116d4: 22 80 00 07 be,a 400116f0 <== NOT EXECUTED 400116d8: c2 04 20 64 ld [ %l0 + 0x64 ], %g1 <== NOT EXECUTED 400116dc: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 400116e0: 12 80 00 0c bne 40011710 <== NOT EXECUTED 400116e4: 21 10 00 cc sethi %hi(0x40033000), %l0 <== NOT EXECUTED case CORE_MUTEX_NESTING_ACQUIRES: the_mutex->nest_count++; _ISR_Enable( level ); return 0; case CORE_MUTEX_NESTING_IS_ERROR: executing->Wait.return_code = CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED; 400116e8: 10 80 00 08 b 40011708 <== NOT EXECUTED 400116ec: 82 10 20 02 mov 2, %g1 <== NOT EXECUTED * to nest access. */ if ( _Thread_Is_executing( the_mutex->holder ) ) { switch ( the_mutex->Attributes.lock_nesting_behavior ) { case CORE_MUTEX_NESTING_ACQUIRES: the_mutex->nest_count++; 400116f0: 82 00 60 01 inc %g1 <== NOT EXECUTED 400116f4: c2 24 20 64 st %g1, [ %l0 + 0x64 ] <== NOT EXECUTED _ISR_Enable( level ); 400116f8: 7f ff e4 6b call 4000a8a4 400116fc: 90 10 00 11 mov %l1, %o0 40011700: 10 80 00 18 b 40011760 40011704: 92 10 00 18 mov %i0, %o1 return 0; case CORE_MUTEX_NESTING_IS_ERROR: executing->Wait.return_code = CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED; 40011708: c2 20 a0 34 st %g1, [ %g2 + 0x34 ] <== NOT EXECUTED _ISR_Enable( level ); 4001170c: 30 bf ff fb b,a 400116f8 <== NOT EXECUTED 40011710: c6 04 23 64 ld [ %l0 + 0x364 ], %g3 <== NOT EXECUTED 40011714: 03 10 00 cc sethi %hi(0x40033000), %g1 <== NOT EXECUTED 40011718: da 00 e0 08 ld [ %g3 + 8 ], %o5 <== NOT EXECUTED 4001171c: c8 00 63 6c ld [ %g1 + 0x36c ], %g4 <== NOT EXECUTED 40011720: 05 10 00 cc sethi %hi(0x40033000), %g2 <== NOT EXECUTED 40011724: c2 00 a2 90 ld [ %g2 + 0x290 ], %g1 ! 40033290 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 40011728: da 21 20 20 st %o5, [ %g4 + 0x20 ] <== NOT EXECUTED 4001172c: 82 00 60 01 inc %g1 <== NOT EXECUTED 40011730: c2 20 a2 90 st %g1, [ %g2 + 0x290 ] <== NOT EXECUTED 40011734: 82 00 e0 10 add %g3, 0x10, %g1 <== NOT EXECUTED 40011738: c2 21 20 44 st %g1, [ %g4 + 0x44 ] <== NOT EXECUTED 4001173c: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED 40011740: c2 20 e0 40 st %g1, [ %g3 + 0x40 ] <== NOT EXECUTED 40011744: 7f ff e4 58 call 4000a8a4 <== NOT EXECUTED 40011748: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED 4001174c: d0 04 23 64 ld [ %l0 + 0x364 ], %o0 <== NOT EXECUTED 40011750: 92 10 20 00 clr %o1 <== NOT EXECUTED 40011754: 40 00 0c 27 call 400147f0 <_CORE_mutex_Seize_interrupt_blocking> <== NOT EXECUTED 40011758: 90 02 20 10 add %o0, 0x10, %o0 <== NOT EXECUTED 4001175c: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 40011760: 11 10 00 cc sethi %hi(0x40033000), %o0 40011764: 94 07 bf f4 add %fp, -12, %o2 40011768: 40 00 10 25 call 400157fc <_Objects_Get_no_protection> 4001176c: 90 12 20 a8 or %o0, 0xa8, %o0 the_region = _Region_Get( id, &location ); switch ( location ) { 40011770: c2 07 bf f4 ld [ %fp + -12 ], %g1 40011774: 80 a0 60 01 cmp %g1, 1 40011778: 02 80 00 0a be 400117a0 4001177c: a0 10 00 08 mov %o0, %l0 40011780: 80 a0 60 01 cmp %g1, 1 40011784: 0a 80 00 22 bcs 4001180c 40011788: 92 10 00 19 mov %i1, %o1 4001178c: 80 a0 60 02 cmp %g1, 2 40011790: 12 80 00 10 bne 400117d0 40011794: b0 10 20 19 mov 0x19, %i0 40011798: 10 80 00 10 b 400117d8 4001179c: 05 10 00 cc sethi %hi(0x40033000), %g2 case OBJECTS_REMOTE: /* this error cannot be returned */ _RTEMS_Unlock_allocator(); 400117a0: 05 10 00 cc sethi %hi(0x40033000), %g2 <== NOT EXECUTED 400117a4: c2 00 a2 90 ld [ %g2 + 0x290 ], %g1 ! 40033290 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 400117a8: 82 00 60 01 inc %g1 <== NOT EXECUTED 400117ac: c2 20 a2 90 st %g1, [ %g2 + 0x290 ] <== NOT EXECUTED 400117b0: 03 10 00 cc sethi %hi(0x40033000), %g1 <== NOT EXECUTED 400117b4: d0 00 63 64 ld [ %g1 + 0x364 ], %o0 ! 40033364 <_RTEMS_Allocator_Mutex> <== NOT EXECUTED 400117b8: 94 10 20 00 clr %o2 <== NOT EXECUTED 400117bc: d2 02 20 08 ld [ %o0 + 8 ], %o1 <== NOT EXECUTED 400117c0: 40 00 0c 2e call 40014878 <_CORE_mutex_Surrender> <== NOT EXECUTED 400117c4: 90 02 20 10 add %o0, 0x10, %o0 <== NOT EXECUTED 400117c8: 7f ff ff 66 call 40011560 <_Thread_Enable_dispatch> <== NOT EXECUTED 400117cc: b0 10 20 19 mov 0x19, %i0 <== NOT EXECUTED 400117d0: 81 c7 e0 08 ret <== NOT EXECUTED 400117d4: 81 e8 00 00 restore <== NOT EXECUTED 400117d8: c2 00 a2 90 ld [ %g2 + 0x290 ], %g1 400117dc: 82 00 60 01 inc %g1 400117e0: c2 20 a2 90 st %g1, [ %g2 + 0x290 ] return RTEMS_INTERNAL_ERROR; case OBJECTS_ERROR: _RTEMS_Unlock_allocator(); 400117e4: 03 10 00 cc sethi %hi(0x40033000), %g1 400117e8: d0 00 63 64 ld [ %g1 + 0x364 ], %o0 ! 40033364 <_RTEMS_Allocator_Mutex> 400117ec: 94 10 20 00 clr %o2 400117f0: d2 02 20 08 ld [ %o0 + 8 ], %o1 400117f4: 40 00 0c 21 call 40014878 <_CORE_mutex_Surrender> 400117f8: 90 02 20 10 add %o0, 0x10, %o0 400117fc: 7f ff ff 59 call 40011560 <_Thread_Enable_dispatch> 40011800: b0 10 20 04 mov 4, %i0 40011804: 81 c7 e0 08 ret 40011808: 81 e8 00 00 restore RTEMS_INLINE_ROUTINE boolean _Region_Free_segment ( Region_Control *the_region, void *the_segment ) { return _Heap_Free( &the_region->Memory, the_segment ); 4001180c: 40 00 0d 87 call 40014e28 <_Heap_Free> 40011810: 90 02 20 68 add %o0, 0x68, %o0 status = _Region_Free_segment( the_region, segment ); _Region_Debug_Walk( the_region, 4 ); if ( !status ) { 40011814: 80 a2 20 00 cmp %o0, 0 40011818: 12 80 00 0f bne 40011854 4001181c: 05 10 00 cc sethi %hi(0x40033000), %g2 40011820: c2 00 a2 90 ld [ %g2 + 0x290 ], %g1 ! 40033290 <_Thread_Dispatch_disable_level> 40011824: 82 00 60 01 inc %g1 40011828: c2 20 a2 90 st %g1, [ %g2 + 0x290 ] _RTEMS_Unlock_allocator(); 4001182c: 03 10 00 cc sethi %hi(0x40033000), %g1 40011830: d0 00 63 64 ld [ %g1 + 0x364 ], %o0 ! 40033364 <_RTEMS_Allocator_Mutex> 40011834: 94 10 20 00 clr %o2 40011838: d2 02 20 08 ld [ %o0 + 8 ], %o1 4001183c: 40 00 0c 0f call 40014878 <_CORE_mutex_Surrender> 40011840: 90 02 20 10 add %o0, 0x10, %o0 40011844: 7f ff ff 47 call 40011560 <_Thread_Enable_dispatch> 40011848: b0 10 20 09 mov 9, %i0 4001184c: 81 c7 e0 08 ret 40011850: 81 e8 00 00 restore return RTEMS_INVALID_ADDRESS; } the_region->number_of_used_blocks -= 1; 40011854: c2 04 20 64 ld [ %l0 + 0x64 ], %g1 _Region_Process_queue(the_region); /* unlocks allocator internally */ 40011858: 90 10 00 10 mov %l0, %o0 if ( !status ) { _RTEMS_Unlock_allocator(); return RTEMS_INVALID_ADDRESS; } the_region->number_of_used_blocks -= 1; 4001185c: 82 00 7f ff add %g1, -1, %g1 _Region_Process_queue(the_region); /* unlocks allocator internally */ 40011860: b0 10 20 00 clr %i0 40011864: 40 00 23 1a call 4001a4cc <_Region_Process_queue> 40011868: c2 24 20 64 st %g1, [ %l0 + 0x64 ] return RTEMS_SUCCESSFUL; } return RTEMS_INTERNAL_ERROR; /* unreached - only to remove warnings */ } 4001186c: 81 c7 e0 08 ret 40011870: 81 e8 00 00 restore 4000643c : uint32_t count, rtems_attribute attribute_set, rtems_task_priority priority_ceiling, rtems_id *id ) { 4000643c: 9d e3 bf 80 save %sp, -128, %sp register Semaphore_Control *the_semaphore; CORE_mutex_Attributes the_mutex_attributes; CORE_semaphore_Attributes the_semaphore_attributes; if ( !rtems_is_name_valid( name ) ) 40006440: a8 96 20 00 orcc %i0, 0, %l4 40006444: 02 80 00 2c be 400064f4 40006448: b0 10 20 03 mov 3, %i0 return RTEMS_INVALID_NAME; if ( !id ) 4000644c: 80 a7 20 00 cmp %i4, 0 40006450: 02 80 00 29 be 400064f4 40006454: b0 10 20 09 mov 9, %i0 return RTEMS_NOT_DEFINED; } else #endif if ( _Attributes_Is_inherit_priority( attribute_set ) || 40006458: a4 8e a0 40 andcc %i2, 0x40, %l2 4000645c: 12 80 00 06 bne 40006474 40006460: 82 0e a0 30 and %i2, 0x30, %g1 40006464: 80 8e a0 80 btst 0x80, %i2 40006468: 02 80 00 10 be 400064a8 4000646c: a6 0e a0 30 and %i2, 0x30, %l3 RTEMS_INLINE_ROUTINE boolean _Attributes_Is_binary_semaphore( rtems_attribute attribute_set ) { return ((attribute_set & RTEMS_SEMAPHORE_CLASS) == RTEMS_BINARY_SEMAPHORE); 40006470: 82 0e a0 30 and %i2, 0x30, %g1 _Attributes_Is_priority_ceiling( attribute_set ) ) { if ( ! ( (_Attributes_Is_binary_semaphore( attribute_set ) || 40006474: 80 a0 60 10 cmp %g1, 0x10 40006478: 02 80 00 05 be 4000648c 4000647c: 80 8e a0 04 btst 4, %i2 40006480: 80 a0 60 20 cmp %g1, 0x20 40006484: 12 80 00 71 bne 40006648 40006488: 80 8e a0 04 btst 4, %i2 4000648c: 02 80 00 6f be 40006648 40006490: 80 a4 a0 00 cmp %l2, 0 _Attributes_Is_priority( attribute_set ) ) ) return RTEMS_NOT_DEFINED; } if ( _Attributes_Is_inherit_priority( attribute_set ) && 40006494: 02 80 00 04 be 400064a4 40006498: 80 8e a0 80 btst 0x80, %i2 4000649c: 32 80 00 16 bne,a 400064f4 400064a0: b0 10 20 0b mov 0xb, %i0 RTEMS_INLINE_ROUTINE boolean _Attributes_Is_counting_semaphore( rtems_attribute attribute_set ) { return ((attribute_set & RTEMS_SEMAPHORE_CLASS) == RTEMS_COUNTING_SEMAPHORE); 400064a4: a6 0e a0 30 and %i2, 0x30, %l3 400064a8: 80 a0 00 13 cmp %g0, %l3 400064ac: a2 60 3f ff subx %g0, -1, %l1 _Attributes_Is_priority_ceiling( attribute_set ) ) return RTEMS_NOT_DEFINED; if ( !_Attributes_Is_counting_semaphore( attribute_set ) && ( count > 1 ) ) 400064b0: 80 a4 60 00 cmp %l1, 0 400064b4: 12 80 00 04 bne 400064c4 400064b8: 80 a6 60 01 cmp %i1, 1 400064bc: 18 80 00 0e bgu 400064f4 400064c0: b0 10 20 0a mov 0xa, %i0 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 400064c4: 03 10 00 67 sethi %hi(0x40019c00), %g1 400064c8: c4 00 62 a0 ld [ %g1 + 0x2a0 ], %g2 ! 40019ea0 <_Thread_Dispatch_disable_level> 400064cc: 84 00 a0 01 inc %g2 400064d0: c4 20 62 a0 st %g2, [ %g1 + 0x2a0 ] * the inactive chain of free semaphore control blocks. */ RTEMS_INLINE_ROUTINE Semaphore_Control *_Semaphore_Allocate( void ) { return (Semaphore_Control *) _Objects_Allocate( &_Semaphore_Information ); 400064d4: 11 10 00 67 sethi %hi(0x40019c00), %o0 400064d8: 40 00 06 df call 40008054 <_Objects_Allocate> 400064dc: 90 12 21 58 or %o0, 0x158, %o0 ! 40019d58 <_Semaphore_Information> _Thread_Disable_dispatch(); /* prevents deletion */ the_semaphore = _Semaphore_Allocate(); if ( !the_semaphore ) { 400064e0: a0 92 20 00 orcc %o0, 0, %l0 400064e4: 12 80 00 06 bne 400064fc 400064e8: 80 a4 60 00 cmp %l1, 0 _Thread_Enable_dispatch(); 400064ec: 7f ff ff c7 call 40006408 <_Thread_Enable_dispatch> 400064f0: b0 10 20 05 mov 5, %i0 400064f4: 81 c7 e0 08 ret 400064f8: 81 e8 00 00 restore * If it is not a counting semaphore, then it is either a * simple binary semaphore or a more powerful mutex style binary * semaphore. */ if ( !_Attributes_Is_counting_semaphore( attribute_set ) ) { 400064fc: 12 80 00 32 bne 400065c4 40006500: f4 24 20 10 st %i2, [ %l0 + 0x10 ] CORE_mutex_Status mutex_status; if ( _Attributes_Is_inherit_priority( attribute_set ) ) 40006504: 80 a4 a0 00 cmp %l2, 0 40006508: 12 80 00 06 bne 40006520 4000650c: 82 10 20 02 mov 2, %g1 the_mutex_attributes.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; else if ( _Attributes_Is_priority_ceiling( attribute_set ) ) 40006510: 80 8e a0 80 btst 0x80, %i2 40006514: 02 80 00 05 be 40006528 40006518: 80 8e a0 04 btst 4, %i2 the_mutex_attributes.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING; 4000651c: 82 10 20 03 mov 3, %g1 <== NOT EXECUTED 40006520: 10 80 00 05 b 40006534 40006524: c2 27 bf e8 st %g1, [ %fp + -24 ] else if ( _Attributes_Is_priority( attribute_set ) ) 40006528: 12 bf ff fe bne 40006520 4000652c: 82 10 20 01 mov 1, %g1 the_mutex_attributes.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY; else the_mutex_attributes.discipline = CORE_MUTEX_DISCIPLINES_FIFO; 40006530: c0 27 bf e8 clr [ %fp + -24 ] if ( _Attributes_Is_binary_semaphore( attribute_set ) ) { 40006534: 80 a4 e0 10 cmp %l3, 0x10 40006538: 12 80 00 0f bne 40006574 4000653c: 82 10 20 02 mov 2, %g1 the_mutex_attributes.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; switch ( the_mutex_attributes.discipline ) { 40006540: c2 07 bf e8 ld [ %fp + -24 ], %g1 40006544: 80 a0 60 01 cmp %g1, 1 40006548: 08 80 00 07 bleu 40006564 4000654c: c0 27 bf e0 clr [ %fp + -32 ] 40006550: 80 a0 60 03 cmp %g1, 3 40006554: 38 80 00 0b bgu,a 40006580 40006558: 82 1e 60 01 xor %i1, 1, %g1 <== NOT EXECUTED case CORE_MUTEX_DISCIPLINES_PRIORITY: the_mutex_attributes.only_owner_release = FALSE; break; case CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING: case CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT: the_mutex_attributes.only_owner_release = TRUE; 4000655c: 10 80 00 04 b 4000656c 40006560: 82 10 20 01 mov 1, %g1 the_mutex_attributes.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; switch ( the_mutex_attributes.discipline ) { case CORE_MUTEX_DISCIPLINES_FIFO: case CORE_MUTEX_DISCIPLINES_PRIORITY: the_mutex_attributes.only_owner_release = FALSE; 40006564: 10 80 00 06 b 4000657c 40006568: c0 27 bf e4 clr [ %fp + -28 ] break; case CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING: case CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT: the_mutex_attributes.only_owner_release = TRUE; 4000656c: 10 80 00 04 b 4000657c 40006570: c2 27 bf e4 st %g1, [ %fp + -28 ] break; } } else { the_mutex_attributes.lock_nesting_behavior = CORE_MUTEX_NESTING_BLOCKS; the_mutex_attributes.only_owner_release = FALSE; 40006574: c0 27 bf e4 clr [ %fp + -28 ] case CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT: the_mutex_attributes.only_owner_release = TRUE; break; } } else { the_mutex_attributes.lock_nesting_behavior = CORE_MUTEX_NESTING_BLOCKS; 40006578: c2 27 bf e0 st %g1, [ %fp + -32 ] the_mutex_attributes.only_owner_release = FALSE; } the_mutex_attributes.priority_ceiling = priority_ceiling; mutex_status = _CORE_mutex_Initialize( 4000657c: 82 1e 60 01 xor %i1, 1, %g1 40006580: 80 a0 00 01 cmp %g0, %g1 } else { the_mutex_attributes.lock_nesting_behavior = CORE_MUTEX_NESTING_BLOCKS; the_mutex_attributes.only_owner_release = FALSE; } the_mutex_attributes.priority_ceiling = priority_ceiling; 40006584: f6 27 bf ec st %i3, [ %fp + -20 ] mutex_status = _CORE_mutex_Initialize( 40006588: 94 60 3f ff subx %g0, -1, %o2 4000658c: 90 04 20 14 add %l0, 0x14, %o0 40006590: 40 00 04 3c call 40007680 <_CORE_mutex_Initialize> 40006594: 92 07 bf e0 add %fp, -32, %o1 &the_semaphore->Core_control.mutex, &the_mutex_attributes, (count == 1) ? CORE_MUTEX_UNLOCKED : CORE_MUTEX_LOCKED ); if ( mutex_status == CORE_MUTEX_STATUS_CEILING_VIOLATED ) { 40006598: 80 a2 20 06 cmp %o0, 6 4000659c: 12 80 00 17 bne 400065f8 400065a0: 92 10 00 10 mov %l0, %o1 RTEMS_INLINE_ROUTINE void _Semaphore_Free ( Semaphore_Control *the_semaphore ) { _Objects_Free( &_Semaphore_Information, &the_semaphore->Object ); 400065a4: 11 10 00 67 sethi %hi(0x40019c00), %o0 <== NOT EXECUTED 400065a8: 90 12 21 58 or %o0, 0x158, %o0 ! 40019d58 <_Semaphore_Information> <== NOT EXECUTED 400065ac: 40 00 07 ac call 4000845c <_Objects_Free> <== NOT EXECUTED 400065b0: b0 10 20 13 mov 0x13, %i0 <== NOT EXECUTED _Semaphore_Free( the_semaphore ); _Thread_Enable_dispatch(); 400065b4: 7f ff ff 95 call 40006408 <_Thread_Enable_dispatch> <== NOT EXECUTED 400065b8: 01 00 00 00 nop <== NOT EXECUTED 400065bc: 81 c7 e0 08 ret <== NOT EXECUTED 400065c0: 81 e8 00 00 restore <== NOT EXECUTED return RTEMS_INVALID_PRIORITY; } } else { if ( _Attributes_Is_priority( attribute_set ) ) 400065c4: 80 8e a0 04 btst 4, %i2 400065c8: 22 80 00 04 be,a 400065d8 400065cc: c0 27 bf f4 clr [ %fp + -12 ] the_semaphore_attributes.discipline = CORE_SEMAPHORE_DISCIPLINES_PRIORITY; 400065d0: 82 10 20 01 mov 1, %g1 400065d4: c2 27 bf f4 st %g1, [ %fp + -12 ] /* * This effectively disables limit checking. */ the_semaphore_attributes.maximum_count = 0xFFFFFFFF; 400065d8: 82 10 3f ff mov -1, %g1 /* * The following are just to make Purify happy. */ the_mutex_attributes.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; 400065dc: c0 27 bf e0 clr [ %fp + -32 ] the_mutex_attributes.priority_ceiling = PRIORITY_MINIMUM; 400065e0: c0 27 bf ec clr [ %fp + -20 ] _CORE_semaphore_Initialize( 400065e4: 94 10 00 19 mov %i1, %o2 /* * This effectively disables limit checking. */ the_semaphore_attributes.maximum_count = 0xFFFFFFFF; 400065e8: c2 27 bf f0 st %g1, [ %fp + -16 ] */ the_mutex_attributes.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; the_mutex_attributes.priority_ceiling = PRIORITY_MINIMUM; _CORE_semaphore_Initialize( 400065ec: 90 04 20 14 add %l0, 0x14, %o0 400065f0: 40 00 04 d3 call 4000793c <_CORE_semaphore_Initialize> 400065f4: 92 07 bf f0 add %fp, -16, %o1 Objects_Information *information, uint16_t index, Objects_Control *the_object ) { if ( index <= information->maximum ) 400065f8: 03 10 00 67 sethi %hi(0x40019c00), %g1 ) { uint32_t index; index = _Objects_Get_index( the_object->id ); _Objects_Set_local_object( information, index, the_object ); 400065fc: c6 04 20 08 ld [ %l0 + 8 ], %g3 Objects_Information *information, uint16_t index, Objects_Control *the_object ) { if ( index <= information->maximum ) 40006600: 88 10 61 58 or %g1, 0x158, %g4 40006604: c4 11 20 10 lduh [ %g4 + 0x10 ], %g2 40006608: 03 00 00 3f sethi %hi(0xfc00), %g1 4000660c: 82 10 63 ff or %g1, 0x3ff, %g1 ! ffff 40006610: 82 08 c0 01 and %g3, %g1, %g1 40006614: 80 a0 40 02 cmp %g1, %g2 40006618: 38 80 00 06 bgu,a 40006630 4000661c: c2 04 20 08 ld [ %l0 + 8 ], %g1 <== NOT EXECUTED information->local_table[ index ] = the_object; 40006620: c4 01 20 20 ld [ %g4 + 0x20 ], %g2 40006624: 83 28 60 02 sll %g1, 2, %g1 40006628: e0 20 80 01 st %l0, [ %g2 + %g1 ] &_Semaphore_Information, &the_semaphore->Object, (Objects_Name) name ); *id = the_semaphore->Object.id; 4000662c: c2 04 20 08 ld [ %l0 + 8 ], %g1 if ( information->is_string ) /* _Objects_Copy_name_string( name, the_object->name ); */ the_object->name = name; else /* _Objects_Copy_name_raw( name, the_object->name, information->name_length ); */ the_object->name = name; 40006630: e8 24 20 0c st %l4, [ %l0 + 0xc ] 40006634: c2 27 00 00 st %g1, [ %i4 ] the_semaphore->Object.id, name, 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); 40006638: 7f ff ff 74 call 40006408 <_Thread_Enable_dispatch> 4000663c: b0 10 20 00 clr %i0 40006640: 81 c7 e0 08 ret 40006644: 81 e8 00 00 restore return RTEMS_SUCCESSFUL; 40006648: b0 10 20 0b mov 0xb, %i0 } 4000664c: 81 c7 e0 08 ret 40006650: 81 e8 00 00 restore 40006688 : #endif rtems_status_code rtems_semaphore_delete( rtems_id id ) { 40006688: 9d e3 bf 90 save %sp, -112, %sp RTEMS_INLINE_ROUTINE Semaphore_Control *_Semaphore_Get ( Objects_Id id, Objects_Locations *location ) { return (Semaphore_Control *) 4000668c: 11 10 00 67 sethi %hi(0x40019c00), %o0 40006690: 92 10 00 18 mov %i0, %o1 40006694: 90 12 21 58 or %o0, 0x158, %o0 40006698: 40 00 07 b3 call 40008564 <_Objects_Get> 4000669c: 94 07 bf f4 add %fp, -12, %o2 register Semaphore_Control *the_semaphore; Objects_Locations location; the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) { 400066a0: c2 07 bf f4 ld [ %fp + -12 ], %g1 400066a4: 80 a0 60 00 cmp %g1, 0 400066a8: 02 80 00 07 be 400066c4 400066ac: b0 10 00 08 mov %o0, %i0 400066b0: 80 a0 60 02 cmp %g1, 2 400066b4: 08 80 00 10 bleu 400066f4 400066b8: b0 10 20 04 mov 4, %i0 400066bc: 81 c7 e0 08 ret <== NOT EXECUTED 400066c0: 91 e8 20 19 restore %g0, 0x19, %o0 <== NOT EXECUTED 400066c4: c2 02 20 10 ld [ %o0 + 0x10 ], %g1 case OBJECTS_ERROR: return RTEMS_INVALID_ID; case OBJECTS_LOCAL: if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) { 400066c8: 84 88 60 30 andcc %g1, 0x30, %g2 400066cc: 22 80 00 12 be,a 40006714 400066d0: 90 02 20 14 add %o0, 0x14, %o0 if ( _CORE_mutex_Is_locked( &the_semaphore->Core_control.mutex ) && 400066d4: c2 02 20 64 ld [ %o0 + 0x64 ], %g1 400066d8: 80 a0 60 00 cmp %g1, 0 400066dc: 12 80 00 08 bne 400066fc 400066e0: 80 a0 a0 20 cmp %g2, 0x20 400066e4: 02 80 00 07 be 40006700 400066e8: 90 06 20 14 add %i0, 0x14, %o0 !_Attributes_Is_simple_binary_semaphore( the_semaphore->attribute_set ) ) { _Thread_Enable_dispatch(); 400066ec: 7f ff ff da call 40006654 <_Thread_Enable_dispatch> 400066f0: b0 10 20 0c mov 0xc, %i0 400066f4: 81 c7 e0 08 ret 400066f8: 81 e8 00 00 restore return RTEMS_RESOURCE_IN_USE; } _CORE_mutex_Flush( 400066fc: 90 06 20 14 add %i0, 0x14, %o0 40006700: 92 10 20 00 clr %o1 40006704: 40 00 03 db call 40007670 <_CORE_mutex_Flush> 40006708: 94 10 20 04 mov 4, %o2 Objects_Information *information, uint16_t index, Objects_Control *the_object ) { if ( index <= information->maximum ) 4000670c: 10 80 00 06 b 40006724 40006710: 03 10 00 67 sethi %hi(0x40019c00), %g1 &the_semaphore->Core_control.mutex, SEMAPHORE_MP_OBJECT_WAS_DELETED, CORE_MUTEX_WAS_DELETED ); } else { _CORE_semaphore_Flush( 40006714: 92 10 20 00 clr %o1 40006718: 40 00 04 85 call 4000792c <_CORE_semaphore_Flush> 4000671c: 94 10 20 02 mov 2, %o2 40006720: 03 10 00 67 sethi %hi(0x40019c00), %g1 ) { uint32_t index; index = _Objects_Get_index( the_object->id ); _Objects_Set_local_object( information, index, NULL ); 40006724: c6 06 20 08 ld [ %i0 + 8 ], %g3 Objects_Information *information, uint16_t index, Objects_Control *the_object ) { if ( index <= information->maximum ) 40006728: 90 10 61 58 or %g1, 0x158, %o0 4000672c: c4 12 20 10 lduh [ %o0 + 0x10 ], %g2 40006730: 03 00 00 3f sethi %hi(0xfc00), %g1 40006734: 82 10 63 ff or %g1, 0x3ff, %g1 ! ffff 40006738: 82 08 c0 01 and %g3, %g1, %g1 4000673c: 80 a0 40 02 cmp %g1, %g2 40006740: 18 80 00 05 bgu 40006754 40006744: 92 10 00 18 mov %i0, %o1 information->local_table[ index ] = the_object; 40006748: c4 02 20 20 ld [ %o0 + 0x20 ], %g2 4000674c: 83 28 60 02 sll %g1, 2, %g1 40006750: c0 20 80 01 clr [ %g2 + %g1 ] uint32_t index; index = _Objects_Get_index( the_object->id ); _Objects_Set_local_object( information, index, NULL ); /* _Objects_Clear_name( the_object->name, information->name_length ); */ the_object->name = 0; 40006754: c0 26 20 0c clr [ %i0 + 0xc ] RTEMS_INLINE_ROUTINE void _Semaphore_Free ( Semaphore_Control *the_semaphore ) { _Objects_Free( &_Semaphore_Information, &the_semaphore->Object ); 40006758: 40 00 07 41 call 4000845c <_Objects_Free> 4000675c: b0 10 20 00 clr %i0 0, /* Not used */ 0 /* Not used */ ); } #endif _Thread_Enable_dispatch(); 40006760: 7f ff ff bd call 40006654 <_Thread_Enable_dispatch> 40006764: 01 00 00 00 nop return RTEMS_SUCCESSFUL; } return RTEMS_INTERNAL_ERROR; /* unreached - only to remove warnings */ } 40006768: 81 c7 e0 08 ret 4000676c: 81 e8 00 00 restore 40006bcc : #endif rtems_status_code rtems_semaphore_flush( rtems_id id ) { 40006bcc: 9d e3 bf 90 save %sp, -112, %sp RTEMS_INLINE_ROUTINE Semaphore_Control *_Semaphore_Get ( Objects_Id id, Objects_Locations *location ) { return (Semaphore_Control *) 40006bd0: 11 10 00 6e sethi %hi(0x4001b800), %o0 40006bd4: 92 10 00 18 mov %i0, %o1 40006bd8: 90 12 20 10 or %o0, 0x10, %o0 40006bdc: 40 00 08 30 call 40008c9c <_Objects_Get> 40006be0: 94 07 bf f4 add %fp, -12, %o2 register Semaphore_Control *the_semaphore; Objects_Locations location; the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) { 40006be4: c2 07 bf f4 ld [ %fp + -12 ], %g1 40006be8: 80 a0 60 00 cmp %g1, 0 40006bec: 22 80 00 07 be,a 40006c08 40006bf0: c2 02 20 10 ld [ %o0 + 0x10 ], %g1 40006bf4: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 40006bf8: 08 80 00 19 bleu 40006c5c <== NOT EXECUTED 40006bfc: b0 10 20 04 mov 4, %i0 <== NOT EXECUTED 40006c00: 81 c7 e0 08 ret <== NOT EXECUTED 40006c04: 91 e8 20 19 restore %g0, 0x19, %o0 <== NOT EXECUTED case OBJECTS_ERROR: return RTEMS_INVALID_ID; case OBJECTS_LOCAL: if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) { 40006c08: 80 88 60 30 btst 0x30, %g1 40006c0c: 02 80 00 06 be 40006c24 40006c10: 90 02 20 14 add %o0, 0x14, %o0 _CORE_mutex_Flush( 40006c14: 92 10 20 00 clr %o1 40006c18: 40 00 04 64 call 40007da8 <_CORE_mutex_Flush> 40006c1c: 94 10 20 01 mov 1, %o2 40006c20: 30 80 00 04 b,a 40006c30 &the_semaphore->Core_control.mutex, SEND_OBJECT_WAS_DELETED, CORE_MUTEX_STATUS_UNSATISFIED_NOWAIT ); } else { _CORE_semaphore_Flush( 40006c24: 92 10 20 00 clr %o1 <== NOT EXECUTED 40006c28: 40 00 05 0f call 40008064 <_CORE_semaphore_Flush> <== NOT EXECUTED 40006c2c: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED #if ( CPU_INLINE_ENABLE_DISPATCH == TRUE ) RTEMS_INLINE_ROUTINE void _Thread_Enable_dispatch() { RTEMS_COMPILER_MEMORY_BARRIER(); if ( (--_Thread_Dispatch_disable_level) == 0 ) 40006c30: 03 10 00 6e sethi %hi(0x4001b800), %g1 40006c34: c4 00 61 60 ld [ %g1 + 0x160 ], %g2 ! 4001b960 <_Thread_Dispatch_disable_level> 40006c38: b0 10 20 00 clr %i0 40006c3c: 84 00 bf ff add %g2, -1, %g2 40006c40: c4 20 61 60 st %g2, [ %g1 + 0x160 ] 40006c44: c2 00 61 60 ld [ %g1 + 0x160 ], %g1 40006c48: 80 a0 60 00 cmp %g1, 0 40006c4c: 12 80 00 04 bne 40006c5c 40006c50: 01 00 00 00 nop _Thread_Dispatch(); 40006c54: 40 00 0c c7 call 40009f70 <_Thread_Dispatch> 40006c58: 01 00 00 00 nop _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } return RTEMS_INTERNAL_ERROR; /* unreached - only to remove warnings */ } 40006c5c: 81 c7 e0 08 ret 40006c60: 81 e8 00 00 restore 400067a4 : rtems_status_code rtems_semaphore_obtain( rtems_id id, uint32_t option_set, rtems_interval timeout ) { 400067a4: 9d e3 bf 90 save %sp, -112, %sp Objects_Id id, Objects_Locations *location, ISR_Level *level ) { return (Semaphore_Control *) 400067a8: 11 10 00 67 sethi %hi(0x40019c00), %o0 400067ac: 92 10 00 18 mov %i0, %o1 400067b0: 90 12 21 58 or %o0, 0x158, %o0 400067b4: 94 07 bf f4 add %fp, -12, %o2 400067b8: 40 00 07 4d call 400084ec <_Objects_Get_isr_disable> 400067bc: 96 07 bf f0 add %fp, -16, %o3 register Semaphore_Control *the_semaphore; Objects_Locations location; ISR_Level level; the_semaphore = _Semaphore_Get_interrupt_disable( id, &location, &level ); switch ( location ) { 400067c0: c2 07 bf f4 ld [ %fp + -12 ], %g1 400067c4: 80 a0 60 00 cmp %g1, 0 400067c8: 02 80 00 07 be 400067e4 400067cc: a0 10 00 08 mov %o0, %l0 400067d0: 80 a0 60 02 cmp %g1, 2 400067d4: 08 80 00 ab bleu 40006a80 400067d8: 90 10 20 04 mov 4, %o0 400067dc: 10 80 00 a9 b 40006a80 <== NOT EXECUTED 400067e0: 90 10 20 19 mov 0x19, %o0 <== NOT EXECUTED case OBJECTS_ERROR: return RTEMS_INVALID_ID; case OBJECTS_LOCAL: if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) { 400067e4: c2 02 20 10 ld [ %o0 + 0x10 ], %g1 400067e8: 80 88 60 30 btst 0x30, %g1 400067ec: 02 80 00 7c be 400069dc 400067f0: 03 10 00 67 sethi %hi(0x40019c00), %g1 _CORE_mutex_Seize( 400067f4: 03 10 00 67 sethi %hi(0x40019c00), %g1 400067f8: c2 00 62 a0 ld [ %g1 + 0x2a0 ], %g1 ! 40019ea0 <_Thread_Dispatch_disable_level> 400067fc: 80 a0 60 00 cmp %g1, 0 40006800: 02 80 00 0e be 40006838 40006804: 03 10 00 67 sethi %hi(0x40019c00), %g1 40006808: 80 8e 60 01 btst 1, %i1 4000680c: 12 80 00 0c bne 4000683c 40006810: c4 00 63 7c ld [ %g1 + 0x37c ], %g2 40006814: 03 10 00 68 sethi %hi(0x4001a000), %g1 40006818: c2 00 60 80 ld [ %g1 + 0x80 ], %g1 ! 4001a080 <_System_state_Current> 4000681c: 80 a0 60 01 cmp %g1, 1 40006820: 08 80 00 05 bleu 40006834 40006824: 90 10 20 00 clr %o0 40006828: 92 10 20 00 clr %o1 <== NOT EXECUTED 4000682c: 40 00 05 dd call 40007fa0 <_Internal_error_Occurred> <== NOT EXECUTED 40006830: 94 10 20 12 mov 0x12, %o2 <== NOT EXECUTED Thread_Control *executing; ISR_Level level = *level_p; /* disabled when you get here */ executing = _Thread_Executing; 40006834: 03 10 00 67 sethi %hi(0x40019c00), %g1 40006838: c4 00 63 7c ld [ %g1 + 0x37c ], %g2 ! 40019f7c <_Thread_Executing> CORE_mutex_Control *the_mutex, ISR_Level *level_p ) { Thread_Control *executing; ISR_Level level = *level_p; 4000683c: d0 07 bf f0 ld [ %fp + -16 ], %o0 /* disabled when you get here */ executing = _Thread_Executing; executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; 40006840: c0 20 a0 34 clr [ %g2 + 0x34 ] if ( !_CORE_mutex_Is_locked( the_mutex ) ) { 40006844: c2 04 20 64 ld [ %l0 + 0x64 ], %g1 40006848: 80 a0 60 00 cmp %g1, 0 4000684c: 22 80 00 33 be,a 40006918 40006850: c2 04 20 70 ld [ %l0 + 0x70 ], %g1 the_mutex->lock = CORE_MUTEX_LOCKED; 40006854: c0 24 20 64 clr [ %l0 + 0x64 ] the_mutex->holder = executing; 40006858: c4 24 20 70 st %g2, [ %l0 + 0x70 ] the_mutex->holder_id = executing->Object.id; 4000685c: c2 00 a0 08 ld [ %g2 + 8 ], %g1 */ RTEMS_INLINE_ROUTINE boolean _CORE_mutex_Is_inherit_priority( CORE_mutex_Attributes *the_attribute ) { return the_attribute->discipline == CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; 40006860: c6 04 20 5c ld [ %l0 + 0x5c ], %g3 executing = _Thread_Executing; executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; if ( !_CORE_mutex_Is_locked( the_mutex ) ) { the_mutex->lock = CORE_MUTEX_LOCKED; the_mutex->holder = executing; the_mutex->holder_id = executing->Object.id; 40006864: c2 24 20 74 st %g1, [ %l0 + 0x74 ] the_mutex->nest_count = 1; 40006868: 82 10 20 01 mov 1, %g1 if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || 4000686c: 80 a0 e0 02 cmp %g3, 2 40006870: 02 80 00 05 be 40006884 40006874: c2 24 20 68 st %g1, [ %l0 + 0x68 ] 40006878: 80 a0 e0 03 cmp %g3, 3 <== NOT EXECUTED 4000687c: 32 80 00 06 bne,a 40006894 <== NOT EXECUTED 40006880: c2 04 20 5c ld [ %l0 + 0x5c ], %g1 <== NOT EXECUTED _CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) executing->resource_count++; 40006884: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 40006888: 82 00 60 01 inc %g1 4000688c: c2 20 a0 1c st %g1, [ %g2 + 0x1c ] if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { 40006890: c2 04 20 5c ld [ %l0 + 0x5c ], %g1 40006894: 80 a0 60 03 cmp %g1, 3 40006898: 22 80 00 03 be,a 400068a4 4000689c: c6 04 20 60 ld [ %l0 + 0x60 ], %g3 <== NOT EXECUTED _ISR_Enable( level ); 400068a0: 30 80 00 2e b,a 40006958 { Priority_Control ceiling; Priority_Control current; ceiling = the_mutex->Attributes.priority_ceiling; current = executing->current_priority; 400068a4: c2 00 a0 14 ld [ %g2 + 0x14 ], %g1 <== NOT EXECUTED if ( current == ceiling ) { 400068a8: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED 400068ac: 12 80 00 03 bne 400068b8 <== NOT EXECUTED 400068b0: 01 00 00 00 nop <== NOT EXECUTED _ISR_Enable( level ); 400068b4: 30 80 00 29 b,a 40006958 <== NOT EXECUTED return 0; } if ( current > ceiling ) { 400068b8: 28 80 00 10 bleu,a 400068f8 <== NOT EXECUTED 400068bc: 82 10 20 06 mov 6, %g1 <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 400068c0: 05 10 00 67 sethi %hi(0x40019c00), %g2 <== NOT EXECUTED 400068c4: c2 00 a2 a0 ld [ %g2 + 0x2a0 ], %g1 ! 40019ea0 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 400068c8: 82 00 60 01 inc %g1 <== NOT EXECUTED 400068cc: c2 20 a2 a0 st %g1, [ %g2 + 0x2a0 ] <== NOT EXECUTED _Thread_Disable_dispatch(); _ISR_Enable( level ); 400068d0: 7f ff ed 7c call 40001ec0 <== NOT EXECUTED 400068d4: 01 00 00 00 nop <== NOT EXECUTED _Thread_Change_priority( 400068d8: d2 04 20 60 ld [ %l0 + 0x60 ], %o1 <== NOT EXECUTED 400068dc: d0 04 20 70 ld [ %l0 + 0x70 ], %o0 <== NOT EXECUTED 400068e0: 40 00 0a e9 call 40009484 <_Thread_Change_priority> <== NOT EXECUTED 400068e4: 94 10 20 00 clr %o2 <== NOT EXECUTED the_mutex->holder, the_mutex->Attributes.priority_ceiling, FALSE ); _Thread_Enable_dispatch(); 400068e8: 7f ff ff a2 call 40006770 <_Thread_Enable_dispatch> <== NOT EXECUTED 400068ec: 01 00 00 00 nop <== NOT EXECUTED id, ((_Options_Is_no_wait( option_set )) ? FALSE : TRUE), timeout, level ); return _Semaphore_Translate_core_mutex_return_code( 400068f0: 10 80 00 36 b 400069c8 <== NOT EXECUTED 400068f4: 03 10 00 67 sethi %hi(0x40019c00), %g1 <== NOT EXECUTED return 0; } /* if ( current < ceiling ) */ { executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED; 400068f8: c2 20 a0 34 st %g1, [ %g2 + 0x34 ] <== NOT EXECUTED the_mutex->lock = CORE_MUTEX_UNLOCKED; 400068fc: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED the_mutex->nest_count = 0; /* undo locking above */ 40006900: c0 24 20 68 clr [ %l0 + 0x68 ] <== NOT EXECUTED _Thread_Enable_dispatch(); return 0; } /* if ( current < ceiling ) */ { executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED; the_mutex->lock = CORE_MUTEX_UNLOCKED; 40006904: c2 24 20 64 st %g1, [ %l0 + 0x64 ] <== NOT EXECUTED the_mutex->nest_count = 0; /* undo locking above */ executing->resource_count--; /* undo locking above */ 40006908: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED 4000690c: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED 40006910: c2 20 a0 1c st %g1, [ %g2 + 0x1c ] <== NOT EXECUTED _ISR_Enable( level ); 40006914: 30 80 00 11 b,a 40006958 <== 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 ) ) { 40006918: 80 a0 40 02 cmp %g1, %g2 4000691c: 12 80 00 13 bne 40006968 40006920: 80 8e 60 01 btst 1, %i1 switch ( the_mutex->Attributes.lock_nesting_behavior ) { 40006924: c2 04 20 54 ld [ %l0 + 0x54 ], %g1 40006928: 80 a0 60 00 cmp %g1, 0 4000692c: 22 80 00 07 be,a 40006948 40006930: c2 04 20 68 ld [ %l0 + 0x68 ], %g1 40006934: 80 a0 60 01 cmp %g1, 1 40006938: 12 80 00 0c bne 40006968 4000693c: 80 8e 60 01 btst 1, %i1 case CORE_MUTEX_NESTING_ACQUIRES: the_mutex->nest_count++; _ISR_Enable( level ); return 0; case CORE_MUTEX_NESTING_IS_ERROR: executing->Wait.return_code = CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED; 40006940: 10 80 00 05 b 40006954 <== NOT EXECUTED 40006944: 82 10 20 02 mov 2, %g1 <== NOT EXECUTED * to nest access. */ if ( _Thread_Is_executing( the_mutex->holder ) ) { switch ( the_mutex->Attributes.lock_nesting_behavior ) { case CORE_MUTEX_NESTING_ACQUIRES: the_mutex->nest_count++; 40006948: 82 00 60 01 inc %g1 4000694c: c2 24 20 68 st %g1, [ %l0 + 0x68 ] _ISR_Enable( level ); 40006950: 30 80 00 02 b,a 40006958 return 0; case CORE_MUTEX_NESTING_IS_ERROR: executing->Wait.return_code = CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED; 40006954: c2 20 a0 34 st %g1, [ %g2 + 0x34 ] <== NOT EXECUTED _ISR_Enable( level ); 40006958: 7f ff ed 5a call 40001ec0 4000695c: 01 00 00 00 nop 40006960: 10 80 00 1a b 400069c8 40006964: 03 10 00 67 sethi %hi(0x40019c00), %g1 case OBJECTS_ERROR: return RTEMS_INVALID_ID; case OBJECTS_LOCAL: if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) { _CORE_mutex_Seize( 40006968: 02 80 00 08 be 40006988 4000696c: 23 10 00 67 sethi %hi(0x40019c00), %l1 40006970: 7f ff ed 54 call 40001ec0 40006974: d0 07 bf f0 ld [ %fp + -16 ], %o0 40006978: c4 04 63 7c ld [ %l1 + 0x37c ], %g2 4000697c: 82 10 20 01 mov 1, %g1 40006980: 10 80 00 11 b 400069c4 40006984: c2 20 a0 34 st %g1, [ %g2 + 0x34 ] 40006988: c6 04 63 7c ld [ %l1 + 0x37c ], %g3 RTEMS_INLINE_ROUTINE void _Thread_queue_Enter_critical_section ( Thread_queue_Control *the_thread_queue ) { the_thread_queue->sync_state = THREAD_QUEUE_NOTHING_HAPPENED; 4000698c: 82 10 20 01 mov 1, %g1 40006990: 05 10 00 67 sethi %hi(0x40019c00), %g2 40006994: c2 24 20 44 st %g1, [ %l0 + 0x44 ] 40006998: c2 00 a2 a0 ld [ %g2 + 0x2a0 ], %g1 4000699c: f0 20 e0 20 st %i0, [ %g3 + 0x20 ] 400069a0: 82 00 60 01 inc %g1 400069a4: a0 04 20 14 add %l0, 0x14, %l0 400069a8: c2 20 a2 a0 st %g1, [ %g2 + 0x2a0 ] 400069ac: e0 20 e0 44 st %l0, [ %g3 + 0x44 ] 400069b0: 7f ff ed 44 call 40001ec0 400069b4: d0 07 bf f0 ld [ %fp + -16 ], %o0 400069b8: 90 10 00 10 mov %l0, %o0 400069bc: 40 00 03 5f call 40007738 <_CORE_mutex_Seize_interrupt_blocking> 400069c0: 92 10 00 1a mov %i2, %o1 id, ((_Options_Is_no_wait( option_set )) ? FALSE : TRUE), timeout, level ); return _Semaphore_Translate_core_mutex_return_code( 400069c4: 03 10 00 67 sethi %hi(0x40019c00), %g1 400069c8: c2 00 63 7c ld [ %g1 + 0x37c ], %g1 ! 40019f7c <_Thread_Executing> 400069cc: 40 00 00 62 call 40006b54 <_Semaphore_Translate_core_mutex_return_code> 400069d0: d0 00 60 34 ld [ %g1 + 0x34 ], %o0 return _Semaphore_Translate_core_semaphore_return_code( _Thread_Executing->Wait.return_code ); } return RTEMS_INTERNAL_ERROR; /* unreached - only to remove warnings */ } 400069d4: 81 c7 e0 08 ret 400069d8: 91 e8 00 08 restore %g0, %o0, %o0 Thread_Control *executing; ISR_Level level = *level_p; /* disabled when you get here */ executing = _Thread_Executing; 400069dc: e2 00 63 7c ld [ %g1 + 0x37c ], %l1 Watchdog_Interval timeout, ISR_Level *level_p ) { Thread_Control *executing; ISR_Level level = *level_p; 400069e0: d0 07 bf f0 ld [ %fp + -16 ], %o0 /* disabled when you get here */ executing = _Thread_Executing; executing->Wait.return_code = CORE_SEMAPHORE_STATUS_SUCCESSFUL; 400069e4: c0 24 60 34 clr [ %l1 + 0x34 ] if ( the_semaphore->count != 0 ) { 400069e8: c2 04 20 5c ld [ %l0 + 0x5c ], %g1 400069ec: 80 a0 60 00 cmp %g1, 0 400069f0: 02 80 00 08 be 40006a10 400069f4: 80 8e 60 01 btst 1, %i1 the_semaphore->count -= 1; 400069f8: 82 00 7f ff add %g1, -1, %g1 400069fc: c2 24 20 5c st %g1, [ %l0 + 0x5c ] _ISR_Enable( level ); 40006a00: 7f ff ed 30 call 40001ec0 40006a04: 01 00 00 00 nop id, ((_Options_Is_no_wait( option_set )) ? FALSE : TRUE), timeout, &level ); return _Semaphore_Translate_core_semaphore_return_code( 40006a08: 10 80 00 1b b 40006a74 40006a0c: 03 10 00 67 sethi %hi(0x40019c00), %g1 return; } if ( !wait ) { 40006a10: 02 80 00 07 be 40006a2c 40006a14: 05 10 00 67 sethi %hi(0x40019c00), %g2 _ISR_Enable( level ); 40006a18: 7f ff ed 2a call 40001ec0 40006a1c: 01 00 00 00 nop executing->Wait.return_code = CORE_SEMAPHORE_STATUS_UNSATISFIED_NOWAIT; 40006a20: 82 10 20 01 mov 1, %g1 ! 1 40006a24: 10 80 00 13 b 40006a70 40006a28: c2 24 60 34 st %g1, [ %l1 + 0x34 ] 40006a2c: c2 00 a2 a0 ld [ %g2 + 0x2a0 ], %g1 40006a30: 82 00 60 01 inc %g1 40006a34: c2 20 a2 a0 st %g1, [ %g2 + 0x2a0 ] 40006a38: 82 10 20 01 mov 1, %g1 40006a3c: c2 24 20 44 st %g1, [ %l0 + 0x44 ] } _Thread_Disable_dispatch(); _Thread_queue_Enter_critical_section( &the_semaphore->Wait_queue ); executing->Wait.queue = &the_semaphore->Wait_queue; executing->Wait.id = id; 40006a40: f0 24 60 20 st %i0, [ %l1 + 0x20 ] return; } _Thread_Disable_dispatch(); _Thread_queue_Enter_critical_section( &the_semaphore->Wait_queue ); executing->Wait.queue = &the_semaphore->Wait_queue; 40006a44: a0 04 20 14 add %l0, 0x14, %l0 40006a48: e0 24 60 44 st %l0, [ %l1 + 0x44 ] executing->Wait.id = id; _ISR_Enable( level ); 40006a4c: 7f ff ed 1d call 40001ec0 40006a50: 01 00 00 00 nop _Thread_queue_Enqueue( &the_semaphore->Wait_queue, timeout ); 40006a54: 90 10 00 10 mov %l0, %o0 40006a58: 92 10 00 1a mov %i2, %o1 40006a5c: 15 10 00 28 sethi %hi(0x4000a000), %o2 40006a60: 40 00 0d 1d call 40009ed4 <_Thread_queue_Enqueue_with_handler> 40006a64: 94 12 a3 6c or %o2, 0x36c, %o2 ! 4000a36c <_Thread_queue_Timeout> _Thread_Enable_dispatch(); 40006a68: 7f ff ff 42 call 40006770 <_Thread_Enable_dispatch> 40006a6c: 01 00 00 00 nop 40006a70: 03 10 00 67 sethi %hi(0x40019c00), %g1 40006a74: c2 00 63 7c ld [ %g1 + 0x37c ], %g1 ! 40019f7c <_Thread_Executing> 40006a78: 40 00 00 41 call 40006b7c <_Semaphore_Translate_core_semaphore_return_code> 40006a7c: d0 00 60 34 ld [ %g1 + 0x34 ], %o0 _Thread_Executing->Wait.return_code ); } return RTEMS_INTERNAL_ERROR; /* unreached - only to remove warnings */ } 40006a80: b0 10 00 08 mov %o0, %i0 40006a84: 81 c7 e0 08 ret 40006a88: 81 e8 00 00 restore 40006ac0 : #endif rtems_status_code rtems_semaphore_release( rtems_id id ) { 40006ac0: 9d e3 bf 90 save %sp, -112, %sp RTEMS_INLINE_ROUTINE Semaphore_Control *_Semaphore_Get ( Objects_Id id, Objects_Locations *location ) { return (Semaphore_Control *) 40006ac4: 11 10 00 67 sethi %hi(0x40019c00), %o0 40006ac8: 92 10 00 18 mov %i0, %o1 40006acc: 90 12 21 58 or %o0, 0x158, %o0 40006ad0: 40 00 06 a5 call 40008564 <_Objects_Get> 40006ad4: 94 07 bf f4 add %fp, -12, %o2 Objects_Locations location; CORE_mutex_Status mutex_status; CORE_semaphore_Status semaphore_status; the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) { 40006ad8: c2 07 bf f4 ld [ %fp + -12 ], %g1 40006adc: 80 a0 60 00 cmp %g1, 0 40006ae0: 22 80 00 07 be,a 40006afc 40006ae4: c2 02 20 10 ld [ %o0 + 0x10 ], %g1 40006ae8: 80 a0 60 02 cmp %g1, 2 40006aec: 08 80 00 17 bleu 40006b48 40006af0: 90 10 20 04 mov 4, %o0 40006af4: 10 80 00 15 b 40006b48 <== NOT EXECUTED 40006af8: 90 10 20 19 mov 0x19, %o0 <== NOT EXECUTED case OBJECTS_ERROR: return RTEMS_INVALID_ID; case OBJECTS_LOCAL: if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) { 40006afc: 80 88 60 30 btst 0x30, %g1 40006b00: 02 80 00 0b be 40006b2c 40006b04: 90 02 20 14 add %o0, 0x14, %o0 mutex_status = _CORE_mutex_Surrender( 40006b08: 92 10 00 18 mov %i0, %o1 40006b0c: 40 00 03 2d call 400077c0 <_CORE_mutex_Surrender> 40006b10: 94 10 20 00 clr %o2 &the_semaphore->Core_control.mutex, id, MUTEX_MP_SUPPORT ); _Thread_Enable_dispatch(); 40006b14: 7f ff ff de call 40006a8c <_Thread_Enable_dispatch> 40006b18: a0 10 00 08 mov %o0, %l0 return _Semaphore_Translate_core_mutex_return_code( mutex_status ); 40006b1c: 40 00 00 0e call 40006b54 <_Semaphore_Translate_core_mutex_return_code> 40006b20: 90 10 00 10 mov %l0, %o0 _Semaphore_Translate_core_semaphore_return_code( semaphore_status ); } } return RTEMS_INTERNAL_ERROR; /* unreached - only to remove warnings */ } 40006b24: 81 c7 e0 08 ret 40006b28: 91 e8 00 08 restore %g0, %o0, %o0 MUTEX_MP_SUPPORT ); _Thread_Enable_dispatch(); return _Semaphore_Translate_core_mutex_return_code( mutex_status ); } else { semaphore_status = _CORE_semaphore_Surrender( 40006b2c: 92 10 00 18 mov %i0, %o1 40006b30: 40 00 03 92 call 40007978 <_CORE_semaphore_Surrender> 40006b34: 94 10 20 00 clr %o2 &the_semaphore->Core_control.semaphore, id, MUTEX_MP_SUPPORT ); _Thread_Enable_dispatch(); 40006b38: 7f ff ff d5 call 40006a8c <_Thread_Enable_dispatch> 40006b3c: a0 10 00 08 mov %o0, %l0 return 40006b40: 40 00 00 0f call 40006b7c <_Semaphore_Translate_core_semaphore_return_code> 40006b44: 90 10 00 10 mov %l0, %o0 _Semaphore_Translate_core_semaphore_return_code( semaphore_status ); } } return RTEMS_INTERNAL_ERROR; /* unreached - only to remove warnings */ } 40006b48: b0 10 00 08 mov %o0, %i0 40006b4c: 81 c7 e0 08 ret 40006b50: 81 e8 00 00 restore 40017abc : */ void rtems_shutdown_executive( uint32_t result ) { 40017abc: 9d e3 bf 98 save %sp, -104, %sp if ( _System_state_Current != SYSTEM_STATE_SHUTDOWN ) { 40017ac0: 33 10 00 68 sethi %hi(0x4001a000), %i1 40017ac4: c2 06 60 80 ld [ %i1 + 0x80 ], %g1 ! 4001a080 <_System_state_Current> 40017ac8: 80 a0 60 04 cmp %g1, 4 40017acc: 02 80 00 0c be 40017afc 40017ad0: 11 10 00 63 sethi %hi(0x40018c00), %o0 #if defined(__USE_INIT_FINI__) extern void _fini( void ); atexit( _fini ); 40017ad4: 7f ff da 4d call 4000e408 40017ad8: 90 12 21 24 or %o0, 0x124, %o0 ! 40018d24 <_fini> * routine which initialized the system. */ RTEMS_INLINE_ROUTINE void _Thread_Stop_multitasking( void ) { _Context_Switch( &_Thread_Executing->Registers, &_Thread_BSP_context ); 40017adc: 03 10 00 67 sethi %hi(0x40019c00), %g1 40017ae0: f0 00 63 7c ld [ %g1 + 0x37c ], %i0 ! 40019f7c <_Thread_Executing> 40017ae4: 82 10 20 04 mov 4, %g1 40017ae8: b0 06 20 e0 add %i0, 0xe0, %i0 40017aec: c2 26 60 80 st %g1, [ %i1 + 0x80 ] 40017af0: 33 10 00 67 sethi %hi(0x40019c00), %i1 40017af4: 7f ff cd 49 call 4000b018 <_CPU_Context_switch> 40017af8: 93 ee 62 18 restore %i1, 0x218, %o1 40017afc: 81 c7 e0 08 ret <== NOT EXECUTED 40017b00: 81 e8 00 00 restore <== NOT EXECUTED 4001209c : rtems_status_code rtems_signal_send( Objects_Id id, rtems_signal_set signal_set ) { 4001209c: 9d e3 bf 90 save %sp, -112, %sp 400120a0: 92 10 00 18 mov %i0, %o1 register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; ASR_Information *asr; if ( !signal_set ) 400120a4: 80 a6 60 00 cmp %i1, 0 400120a8: 02 80 00 47 be 400121c4 400120ac: b0 10 20 0a mov 0xa, %i0 uint32_t the_api; uint32_t the_class; Objects_Information *information; Thread_Control *tp = (Thread_Control *) 0; if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ) { 400120b0: 80 a2 60 00 cmp %o1, 0 400120b4: 12 80 00 0a bne 400120dc 400120b8: 83 32 60 18 srl %o1, 0x18, %g1 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 400120bc: 03 10 00 cc sethi %hi(0x40033000), %g1 400120c0: c4 00 62 90 ld [ %g1 + 0x290 ], %g2 ! 40033290 <_Thread_Dispatch_disable_level> 400120c4: 84 00 a0 01 inc %g2 400120c8: c4 20 62 90 st %g2, [ %g1 + 0x290 ] Thread_Control *tp = (Thread_Control *) 0; if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ) { _Thread_Disable_dispatch(); *location = OBJECTS_LOCAL; tp = _Thread_Executing; 400120cc: 03 10 00 cc sethi %hi(0x40033000), %g1 400120d0: f0 00 63 6c ld [ %g1 + 0x36c ], %i0 ! 4003336c <_Thread_Executing> 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; 400120d4: 10 80 00 18 b 40012134 400120d8: c0 27 bf f4 clr [ %fp + -12 ] */ RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API( Objects_Id id ) { return (Objects_APIs) ((id >> OBJECTS_API_START_BIT) & OBJECTS_API_VALID_BITS); 400120dc: 84 08 60 07 and %g1, 7, %g2 tp = _Thread_Executing; goto done; } the_api = _Objects_Get_API( id ); if ( the_api && the_api > OBJECTS_APIS_LAST ) { 400120e0: 80 a0 a0 04 cmp %g2, 4 400120e4: 18 80 00 0e bgu 4001211c 400120e8: 82 10 20 02 mov 2, %g1 *location = OBJECTS_ERROR; goto done; } the_class = _Objects_Get_class( id ); if ( the_class != 1 ) { /* threads are always first class :) */ 400120ec: 83 32 60 1b srl %o1, 0x1b, %g1 400120f0: 80 a0 60 01 cmp %g1, 1 400120f4: 12 80 00 0a bne 4001211c 400120f8: 82 10 20 02 mov 2, %g1 *location = OBJECTS_ERROR; goto done; } information = _Objects_Information_table[ the_api ][ the_class ]; 400120fc: 83 28 a0 02 sll %g2, 2, %g1 40012100: 05 10 00 cc sethi %hi(0x40033000), %g2 40012104: 84 10 a1 f0 or %g2, 0x1f0, %g2 ! 400331f0 <_Objects_Information_table> 40012108: c2 00 80 01 ld [ %g2 + %g1 ], %g1 4001210c: d0 00 60 04 ld [ %g1 + 4 ], %o0 if ( !information ) { 40012110: 80 a2 20 00 cmp %o0, 0 40012114: 12 80 00 05 bne 40012128 40012118: 82 10 20 02 mov 2, %g1 *location = OBJECTS_ERROR; 4001211c: b0 10 20 00 clr %i0 40012120: 10 80 00 05 b 40012134 40012124: c2 27 bf f4 st %g1, [ %fp + -12 ] goto done; } tp = (Thread_Control *) _Objects_Get( information, id, location ); 40012128: 40 00 0d c9 call 4001584c <_Objects_Get> 4001212c: 94 07 bf f4 add %fp, -12, %o2 40012130: b0 10 00 08 mov %o0, %i0 return RTEMS_INVALID_NUMBER; the_thread = _Thread_Get( id, &location ); switch ( location ) { 40012134: c2 07 bf f4 ld [ %fp + -12 ], %g1 40012138: 80 a0 60 00 cmp %g1, 0 4001213c: 22 80 00 07 be,a 40012158 40012140: d2 06 21 6c ld [ %i0 + 0x16c ], %o1 40012144: 80 a0 60 02 cmp %g1, 2 40012148: 08 80 00 1f bleu 400121c4 4001214c: b0 10 20 04 mov 4, %i0 40012150: 81 c7 e0 08 ret <== NOT EXECUTED 40012154: 91 e8 20 19 restore %g0, 0x19, %o0 <== NOT EXECUTED case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; asr = &api->Signal; if ( ! _ASR_Is_null_handler( asr->handler ) ) { 40012158: c2 02 60 4c ld [ %o1 + 0x4c ], %g1 4001215c: 80 a0 60 00 cmp %g1, 0 40012160: 02 80 00 1b be 400121cc 40012164: 01 00 00 00 nop if ( asr->is_enabled ) { 40012168: c2 02 60 48 ld [ %o1 + 0x48 ], %g1 4001216c: 80 a0 60 00 cmp %g1, 0 40012170: 02 80 00 11 be 400121b4 40012174: 90 10 00 19 mov %i1, %o0 _ASR_Post_signals( signal_set, &asr->signals_posted ); 40012178: 7f ff ff b3 call 40012044 <_ASR_Post_signals> 4001217c: 92 02 60 54 add %o1, 0x54, %o1 the_thread->do_post_task_switch_extension = TRUE; if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) ) 40012180: 03 10 00 cc sethi %hi(0x40033000), %g1 40012184: c2 00 63 54 ld [ %g1 + 0x354 ], %g1 ! 40033354 <_ISR_Nest_level> if ( ! _ASR_Is_null_handler( asr->handler ) ) { if ( asr->is_enabled ) { _ASR_Post_signals( signal_set, &asr->signals_posted ); the_thread->do_post_task_switch_extension = TRUE; 40012188: 84 10 20 01 mov 1, %g2 if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) ) 4001218c: 80 a0 60 00 cmp %g1, 0 40012190: 02 80 00 0b be 400121bc 40012194: c4 26 20 78 st %g2, [ %i0 + 0x78 ] 40012198: 03 10 00 cc sethi %hi(0x40033000), %g1 <== NOT EXECUTED 4001219c: c2 00 63 6c ld [ %g1 + 0x36c ], %g1 ! 4003336c <_Thread_Executing> <== NOT EXECUTED 400121a0: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED 400121a4: 12 80 00 06 bne 400121bc <== NOT EXECUTED 400121a8: 03 10 00 cd sethi %hi(0x40033400), %g1 <== NOT EXECUTED _ISR_Signals_to_thread_executing = TRUE; 400121ac: 10 80 00 04 b 400121bc <== NOT EXECUTED 400121b0: c4 20 60 18 st %g2, [ %g1 + 0x18 ] ! 40033418 <_ISR_Signals_to_thread_executing> <== NOT EXECUTED } else { _ASR_Post_signals( signal_set, &asr->signals_pending ); 400121b4: 7f ff ff a4 call 40012044 <_ASR_Post_signals> 400121b8: 92 02 60 58 add %o1, 0x58, %o1 } _Thread_Enable_dispatch(); 400121bc: 7f ff ff ab call 40012068 <_Thread_Enable_dispatch> 400121c0: b0 10 20 00 clr %i0 400121c4: 81 c7 e0 08 ret 400121c8: 81 e8 00 00 restore return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 400121cc: 7f ff ff a7 call 40012068 <_Thread_Enable_dispatch> 400121d0: b0 10 20 0b mov 0xb, %i0 return RTEMS_NOT_DEFINED; } return RTEMS_INTERNAL_ERROR; /* unreached - only to remove warnings */ } 400121d4: 81 c7 e0 08 ret 400121d8: 81 e8 00 00 restore 40006d64 : */ rtems_status_code rtems_task_delete( Objects_Id id ) { 40006d64: 9d e3 bf 90 save %sp, -112, %sp uint32_t the_api; uint32_t the_class; Objects_Information *information; Thread_Control *tp = (Thread_Control *) 0; if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ) { 40006d68: 92 96 20 00 orcc %i0, 0, %o1 40006d6c: 12 80 00 0a bne 40006d94 40006d70: 83 32 60 18 srl %o1, 0x18, %g1 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 40006d74: 03 10 00 67 sethi %hi(0x40019c00), %g1 40006d78: c4 00 62 a0 ld [ %g1 + 0x2a0 ], %g2 ! 40019ea0 <_Thread_Dispatch_disable_level> 40006d7c: 84 00 a0 01 inc %g2 40006d80: c4 20 62 a0 st %g2, [ %g1 + 0x2a0 ] Thread_Control *tp = (Thread_Control *) 0; if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ) { _Thread_Disable_dispatch(); *location = OBJECTS_LOCAL; tp = _Thread_Executing; 40006d84: 03 10 00 67 sethi %hi(0x40019c00), %g1 40006d88: f0 00 63 7c ld [ %g1 + 0x37c ], %i0 ! 40019f7c <_Thread_Executing> 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; 40006d8c: 10 80 00 18 b 40006dec 40006d90: c0 27 bf f4 clr [ %fp + -12 ] */ RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API( Objects_Id id ) { return (Objects_APIs) ((id >> OBJECTS_API_START_BIT) & OBJECTS_API_VALID_BITS); 40006d94: 84 08 60 07 and %g1, 7, %g2 tp = _Thread_Executing; goto done; } the_api = _Objects_Get_API( id ); if ( the_api && the_api > OBJECTS_APIS_LAST ) { 40006d98: 80 a0 a0 04 cmp %g2, 4 40006d9c: 18 80 00 0e bgu 40006dd4 40006da0: 82 10 20 02 mov 2, %g1 *location = OBJECTS_ERROR; goto done; } the_class = _Objects_Get_class( id ); if ( the_class != 1 ) { /* threads are always first class :) */ 40006da4: 83 32 60 1b srl %o1, 0x1b, %g1 40006da8: 80 a0 60 01 cmp %g1, 1 40006dac: 12 80 00 0a bne 40006dd4 40006db0: 82 10 20 02 mov 2, %g1 *location = OBJECTS_ERROR; goto done; } information = _Objects_Information_table[ the_api ][ the_class ]; 40006db4: 83 28 a0 02 sll %g2, 2, %g1 40006db8: 05 10 00 67 sethi %hi(0x40019c00), %g2 40006dbc: 84 10 a2 00 or %g2, 0x200, %g2 ! 40019e00 <_Objects_Information_table> 40006dc0: c2 00 80 01 ld [ %g2 + %g1 ], %g1 40006dc4: d0 00 60 04 ld [ %g1 + 4 ], %o0 if ( !information ) { 40006dc8: 80 a2 20 00 cmp %o0, 0 40006dcc: 12 80 00 05 bne 40006de0 40006dd0: 82 10 20 02 mov 2, %g1 *location = OBJECTS_ERROR; 40006dd4: b0 10 20 00 clr %i0 40006dd8: 10 80 00 05 b 40006dec 40006ddc: c2 27 bf f4 st %g1, [ %fp + -12 ] goto done; } tp = (Thread_Control *) _Objects_Get( information, id, location ); 40006de0: 40 00 05 e1 call 40008564 <_Objects_Get> 40006de4: 94 07 bf f4 add %fp, -12, %o2 40006de8: b0 10 00 08 mov %o0, %i0 register Thread_Control *the_thread; Objects_Locations location; Objects_Information *the_information; the_thread = _Thread_Get( id, &location ); switch ( location ) { 40006dec: c2 07 bf f4 ld [ %fp + -12 ], %g1 40006df0: 80 a0 60 00 cmp %g1, 0 40006df4: 02 80 00 06 be 40006e0c 40006df8: 80 a0 60 02 cmp %g1, 2 40006dfc: 08 80 00 0b bleu 40006e28 40006e00: b0 10 20 04 mov 4, %i0 40006e04: 81 c7 e0 08 ret <== NOT EXECUTED 40006e08: 91 e8 20 19 restore %g0, 0x19, %o0 <== NOT EXECUTED case OBJECTS_ERROR: return RTEMS_INVALID_ID; case OBJECTS_LOCAL: the_information = _Objects_Get_information( the_thread->Object.id ); 40006e0c: 7f ff ff c0 call 40006d0c <_Objects_Get_information> 40006e10: d0 06 20 08 ld [ %i0 + 8 ], %o0 if ( !the_information ) { 40006e14: 80 a2 20 00 cmp %o0, 0 40006e18: 12 80 00 06 bne 40006e30 40006e1c: 01 00 00 00 nop _Thread_Enable_dispatch(); 40006e20: 7f ff ff c4 call 40006d30 <_Thread_Enable_dispatch> <== NOT EXECUTED 40006e24: b0 10 20 04 mov 4, %i0 ! 4 <== NOT EXECUTED 40006e28: 81 c7 e0 08 ret 40006e2c: 81 e8 00 00 restore return RTEMS_INVALID_ID; /* This should never happen if _Thread_Get() works right */ } _Thread_Close( the_information, the_thread ); 40006e30: 40 00 0a 3c call 40009720 <_Thread_Close> 40006e34: 92 10 00 18 mov %i0, %o1 40006e38: 7f ff ff b5 call 40006d0c <_Objects_Get_information> 40006e3c: d0 06 20 08 ld [ %i0 + 8 ], %o0 40006e40: 92 10 00 18 mov %i0, %o1 40006e44: 40 00 05 86 call 4000845c <_Objects_Free> 40006e48: b0 10 20 00 clr %i0 0 /* Not used */ ); } #endif _Thread_Enable_dispatch(); 40006e4c: 7f ff ff b9 call 40006d30 <_Thread_Enable_dispatch> 40006e50: 01 00 00 00 nop return RTEMS_SUCCESSFUL; } return RTEMS_INTERNAL_ERROR; /* unreached - only to remove warnings */ } 40006e54: 81 c7 e0 08 ret 40006e58: 81 e8 00 00 restore 40008670 : rtems_status_code rtems_task_get_note( Objects_Id id, uint32_t notepad, uint32_t *note ) { 40008670: 9d e3 bf 90 save %sp, -112, %sp 40008674: 92 10 00 18 mov %i0, %o1 register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; if ( !note ) 40008678: 80 a6 a0 00 cmp %i2, 0 4000867c: 02 80 00 43 be 40008788 40008680: b0 10 20 09 mov 9, %i0 /* * 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 ) 40008684: 80 a6 60 0f cmp %i1, 0xf 40008688: 18 80 00 40 bgu 40008788 4000868c: b0 10 20 0a mov 0xa, %i0 /* * Optimize the most likely case to avoid the Thread_Dispatch. */ if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) || 40008690: 80 a2 60 00 cmp %o1, 0 40008694: 02 80 00 08 be 400086b4 40008698: 03 10 00 7c sethi %hi(0x4001f000), %g1 4000869c: c2 00 62 0c ld [ %g1 + 0x20c ], %g1 ! 4001f20c <_Thread_Executing> 400086a0: c2 00 60 08 ld [ %g1 + 8 ], %g1 400086a4: 80 a2 40 01 cmp %o1, %g1 400086a8: 12 80 00 0a bne 400086d0 400086ac: 83 32 60 18 srl %o1, 0x18, %g1 _Objects_Are_ids_equal( id, _Thread_Executing->Object.id ) ) { api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ]; *note = api->Notepads[ notepad ]; 400086b0: 03 10 00 7c sethi %hi(0x4001f000), %g1 <== NOT EXECUTED 400086b4: c2 00 62 0c ld [ %g1 + 0x20c ], %g1 ! 4001f20c <_Thread_Executing> 400086b8: 85 2e 60 02 sll %i1, 2, %g2 400086bc: c2 00 61 6c ld [ %g1 + 0x16c ], %g1 400086c0: c2 00 40 02 ld [ %g1 + %g2 ], %g1 400086c4: c2 26 80 00 st %g1, [ %i2 ] 400086c8: 81 c7 e0 08 ret 400086cc: 91 e8 20 00 restore %g0, 0, %o0 400086d0: 84 08 60 07 and %g1, 7, %g2 tp = _Thread_Executing; goto done; } the_api = _Objects_Get_API( id ); if ( the_api && the_api > OBJECTS_APIS_LAST ) { 400086d4: 80 a0 a0 04 cmp %g2, 4 400086d8: 18 80 00 06 bgu 400086f0 400086dc: 82 10 20 02 mov 2, %g1 *location = OBJECTS_ERROR; goto done; } the_class = _Objects_Get_class( id ); if ( the_class != 1 ) { /* threads are always first class :) */ 400086e0: 83 32 60 1b srl %o1, 0x1b, %g1 400086e4: 80 a0 60 01 cmp %g1, 1 400086e8: 02 80 00 05 be 400086fc 400086ec: 82 10 20 02 mov 2, %g1 *location = OBJECTS_ERROR; 400086f0: 90 10 20 00 clr %o0 400086f4: 10 80 00 0e b 4000872c 400086f8: c2 27 bf f4 st %g1, [ %fp + -12 ] goto done; } information = _Objects_Information_table[ the_api ][ the_class ]; 400086fc: 83 28 a0 02 sll %g2, 2, %g1 40008700: 05 10 00 7c sethi %hi(0x4001f000), %g2 40008704: 84 10 a0 90 or %g2, 0x90, %g2 ! 4001f090 <_Objects_Information_table> 40008708: c2 00 80 01 ld [ %g2 + %g1 ], %g1 4000870c: d0 00 60 04 ld [ %g1 + 4 ], %o0 if ( !information ) { 40008710: 80 a2 20 00 cmp %o0, 0 40008714: 12 80 00 04 bne 40008724 40008718: 82 10 20 02 mov 2, %g1 *location = OBJECTS_ERROR; 4000871c: 10 80 00 04 b 4000872c <== NOT EXECUTED 40008720: c2 27 bf f4 st %g1, [ %fp + -12 ] <== NOT EXECUTED goto done; } tp = (Thread_Control *) _Objects_Get( information, id, location ); 40008724: 40 00 07 2b call 4000a3d0 <_Objects_Get> 40008728: 94 07 bf f4 add %fp, -12, %o2 return RTEMS_SUCCESSFUL; } the_thread = _Thread_Get( id, &location ); switch ( location ) { 4000872c: c2 07 bf f4 ld [ %fp + -12 ], %g1 40008730: 80 a0 60 00 cmp %g1, 0 40008734: 22 80 00 07 be,a 40008750 40008738: c4 02 21 6c ld [ %o0 + 0x16c ], %g2 4000873c: 80 a0 60 02 cmp %g1, 2 40008740: 08 80 00 12 bleu 40008788 40008744: b0 10 20 04 mov 4, %i0 40008748: 81 c7 e0 08 ret <== NOT EXECUTED 4000874c: 91 e8 20 19 restore %g0, 0x19, %o0 <== NOT EXECUTED case OBJECTS_ERROR: return RTEMS_INVALID_ID; case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; *note = api->Notepads[ notepad ]; 40008750: 83 2e 60 02 sll %i1, 2, %g1 40008754: c2 00 80 01 ld [ %g2 + %g1 ], %g1 40008758: c2 26 80 00 st %g1, [ %i2 ] #if ( CPU_INLINE_ENABLE_DISPATCH == TRUE ) RTEMS_INLINE_ROUTINE void _Thread_Enable_dispatch() { RTEMS_COMPILER_MEMORY_BARRIER(); if ( (--_Thread_Dispatch_disable_level) == 0 ) 4000875c: 05 10 00 7c sethi %hi(0x4001f000), %g2 40008760: c2 00 a1 30 ld [ %g2 + 0x130 ], %g1 ! 4001f130 <_Thread_Dispatch_disable_level> 40008764: b0 10 20 00 clr %i0 40008768: 82 00 7f ff add %g1, -1, %g1 4000876c: c2 20 a1 30 st %g1, [ %g2 + 0x130 ] 40008770: c2 00 a1 30 ld [ %g2 + 0x130 ], %g1 40008774: 80 a0 60 00 cmp %g1, 0 40008778: 12 80 00 04 bne 40008788 4000877c: 01 00 00 00 nop _Thread_Dispatch(); 40008780: 40 00 0b c9 call 4000b6a4 <_Thread_Dispatch> 40008784: 01 00 00 00 nop _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } return RTEMS_INTERNAL_ERROR; /* unreached - only to remove warnings */ } 40008788: 81 c7 e0 08 ret 4000878c: 81 e8 00 00 restore 400074f0 : */ rtems_status_code rtems_task_is_suspended( Objects_Id id ) { 400074f0: 9d e3 bf 90 save %sp, -112, %sp uint32_t the_api; uint32_t the_class; Objects_Information *information; Thread_Control *tp = (Thread_Control *) 0; if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ) { 400074f4: 92 96 20 00 orcc %i0, 0, %o1 400074f8: 12 80 00 0a bne 40007520 400074fc: 83 32 60 18 srl %o1, 0x18, %g1 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 40007500: 03 10 00 73 sethi %hi(0x4001cc00), %g1 <== NOT EXECUTED 40007504: c4 00 63 40 ld [ %g1 + 0x340 ], %g2 ! 4001cf40 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 40007508: 84 00 a0 01 inc %g2 <== NOT EXECUTED 4000750c: c4 20 63 40 st %g2, [ %g1 + 0x340 ] <== NOT EXECUTED Thread_Control *tp = (Thread_Control *) 0; if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ) { _Thread_Disable_dispatch(); *location = OBJECTS_LOCAL; tp = _Thread_Executing; 40007510: 03 10 00 74 sethi %hi(0x4001d000), %g1 <== NOT EXECUTED 40007514: d0 00 60 1c ld [ %g1 + 0x1c ], %o0 ! 4001d01c <_Thread_Executing> <== 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; 40007518: 10 80 00 19 b 4000757c <== NOT EXECUTED 4000751c: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED 40007520: 84 08 60 07 and %g1, 7, %g2 tp = _Thread_Executing; goto done; } the_api = _Objects_Get_API( id ); if ( the_api && the_api > OBJECTS_APIS_LAST ) { 40007524: 80 a0 a0 04 cmp %g2, 4 40007528: 18 80 00 06 bgu 40007540 4000752c: 82 10 20 02 mov 2, %g1 *location = OBJECTS_ERROR; goto done; } the_class = _Objects_Get_class( id ); if ( the_class != 1 ) { /* threads are always first class :) */ 40007530: 83 32 60 1b srl %o1, 0x1b, %g1 40007534: 80 a0 60 01 cmp %g1, 1 40007538: 02 80 00 05 be 4000754c 4000753c: 82 10 20 02 mov 2, %g1 *location = OBJECTS_ERROR; 40007540: 90 10 20 00 clr %o0 <== NOT EXECUTED 40007544: 10 80 00 0e b 4000757c <== NOT EXECUTED 40007548: c2 27 bf f4 st %g1, [ %fp + -12 ] <== NOT EXECUTED goto done; } information = _Objects_Information_table[ the_api ][ the_class ]; 4000754c: 83 28 a0 02 sll %g2, 2, %g1 40007550: 05 10 00 73 sethi %hi(0x4001cc00), %g2 40007554: 84 10 a2 a0 or %g2, 0x2a0, %g2 ! 4001cea0 <_Objects_Information_table> 40007558: c2 00 80 01 ld [ %g2 + %g1 ], %g1 4000755c: d0 00 60 04 ld [ %g1 + 4 ], %o0 if ( !information ) { 40007560: 80 a2 20 00 cmp %o0, 0 40007564: 12 80 00 04 bne 40007574 40007568: 82 10 20 02 mov 2, %g1 *location = OBJECTS_ERROR; 4000756c: 10 80 00 04 b 4000757c <== NOT EXECUTED 40007570: c2 27 bf f4 st %g1, [ %fp + -12 ] <== NOT EXECUTED goto done; } tp = (Thread_Control *) _Objects_Get( information, id, location ); 40007574: 40 00 06 31 call 40008e38 <_Objects_Get> 40007578: 94 07 bf f4 add %fp, -12, %o2 register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); switch ( location ) { 4000757c: c2 07 bf f4 ld [ %fp + -12 ], %g1 40007580: 80 a0 60 00 cmp %g1, 0 40007584: 22 80 00 07 be,a 400075a0 40007588: c2 02 20 10 ld [ %o0 + 0x10 ], %g1 4000758c: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 40007590: 08 80 00 09 bleu 400075b4 <== NOT EXECUTED 40007594: b0 10 20 04 mov 4, %i0 <== NOT EXECUTED 40007598: 81 c7 e0 08 ret <== NOT EXECUTED 4000759c: 91 e8 20 19 restore %g0, 0x19, %o0 <== NOT EXECUTED case OBJECTS_ERROR: return RTEMS_INVALID_ID; case OBJECTS_LOCAL: if ( !_States_Is_suspended( the_thread->current_state ) ) { 400075a0: 80 88 60 02 btst 2, %g1 400075a4: 12 80 00 06 bne 400075bc 400075a8: 01 00 00 00 nop _Thread_Enable_dispatch(); 400075ac: 7f ff ff c4 call 400074bc <_Thread_Enable_dispatch> 400075b0: b0 10 20 00 clr %i0 ! 0 400075b4: 81 c7 e0 08 ret 400075b8: 81 e8 00 00 restore return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 400075bc: 7f ff ff c0 call 400074bc <_Thread_Enable_dispatch> 400075c0: b0 10 20 0f mov 0xf, %i0 return RTEMS_ALREADY_SUSPENDED; } return RTEMS_INTERNAL_ERROR; /* unreached - only to remove warnings */ } 400075c4: 81 c7 e0 08 ret 400075c8: 81 e8 00 00 restore 40007b44 : rtems_status_code rtems_task_restart( Objects_Id id, uint32_t argument ) { 40007b44: 9d e3 bf 90 save %sp, -112, %sp uint32_t the_api; uint32_t the_class; Objects_Information *information; Thread_Control *tp = (Thread_Control *) 0; if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ) { 40007b48: 92 96 20 00 orcc %i0, 0, %o1 40007b4c: 12 80 00 0a bne 40007b74 40007b50: 83 32 60 18 srl %o1, 0x18, %g1 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 40007b54: 03 10 00 75 sethi %hi(0x4001d400), %g1 40007b58: c4 00 60 60 ld [ %g1 + 0x60 ], %g2 ! 4001d460 <_Thread_Dispatch_disable_level> 40007b5c: 84 00 a0 01 inc %g2 40007b60: c4 20 60 60 st %g2, [ %g1 + 0x60 ] Thread_Control *tp = (Thread_Control *) 0; if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ) { _Thread_Disable_dispatch(); *location = OBJECTS_LOCAL; tp = _Thread_Executing; 40007b64: 03 10 00 75 sethi %hi(0x4001d400), %g1 40007b68: d0 00 61 3c ld [ %g1 + 0x13c ], %o0 ! 4001d53c <_Thread_Executing> 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; 40007b6c: 10 80 00 19 b 40007bd0 40007b70: c0 27 bf f4 clr [ %fp + -12 ] 40007b74: 84 08 60 07 and %g1, 7, %g2 tp = _Thread_Executing; goto done; } the_api = _Objects_Get_API( id ); if ( the_api && the_api > OBJECTS_APIS_LAST ) { 40007b78: 80 a0 a0 04 cmp %g2, 4 40007b7c: 18 80 00 06 bgu 40007b94 40007b80: 82 10 20 02 mov 2, %g1 *location = OBJECTS_ERROR; goto done; } the_class = _Objects_Get_class( id ); if ( the_class != 1 ) { /* threads are always first class :) */ 40007b84: 83 32 60 1b srl %o1, 0x1b, %g1 40007b88: 80 a0 60 01 cmp %g1, 1 40007b8c: 02 80 00 05 be 40007ba0 40007b90: 82 10 20 02 mov 2, %g1 *location = OBJECTS_ERROR; 40007b94: 90 10 20 00 clr %o0 40007b98: 10 80 00 0e b 40007bd0 40007b9c: c2 27 bf f4 st %g1, [ %fp + -12 ] goto done; } information = _Objects_Information_table[ the_api ][ the_class ]; 40007ba0: 83 28 a0 02 sll %g2, 2, %g1 40007ba4: 05 10 00 74 sethi %hi(0x4001d000), %g2 40007ba8: 84 10 a3 c0 or %g2, 0x3c0, %g2 ! 4001d3c0 <_Objects_Information_table> 40007bac: c2 00 80 01 ld [ %g2 + %g1 ], %g1 40007bb0: d0 00 60 04 ld [ %g1 + 4 ], %o0 if ( !information ) { 40007bb4: 80 a2 20 00 cmp %o0, 0 40007bb8: 12 80 00 04 bne 40007bc8 40007bbc: 82 10 20 02 mov 2, %g1 *location = OBJECTS_ERROR; 40007bc0: 10 80 00 04 b 40007bd0 <== NOT EXECUTED 40007bc4: c2 27 bf f4 st %g1, [ %fp + -12 ] <== NOT EXECUTED goto done; } tp = (Thread_Control *) _Objects_Get( information, id, location ); 40007bc8: 40 00 05 f8 call 400093a8 <_Objects_Get> 40007bcc: 94 07 bf f4 add %fp, -12, %o2 register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); switch ( location ) { 40007bd0: c2 07 bf f4 ld [ %fp + -12 ], %g1 40007bd4: 80 a0 60 00 cmp %g1, 0 40007bd8: 22 80 00 07 be,a 40007bf4 40007bdc: 94 10 00 19 mov %i1, %o2 40007be0: 80 a0 60 02 cmp %g1, 2 40007be4: 08 80 00 0b bleu 40007c10 40007be8: b0 10 20 04 mov 4, %i0 40007bec: 81 c7 e0 08 ret <== NOT EXECUTED 40007bf0: 91 e8 20 19 restore %g0, 0x19, %o0 <== NOT EXECUTED case OBJECTS_ERROR: return RTEMS_INVALID_ID; case OBJECTS_LOCAL: if ( _Thread_Restart( the_thread, NULL, argument ) ) { 40007bf4: 40 00 0d 6e call 4000b1ac <_Thread_Restart> 40007bf8: 92 10 20 00 clr %o1 40007bfc: 80 a2 20 00 cmp %o0, 0 40007c00: 02 80 00 06 be 40007c18 40007c04: 01 00 00 00 nop _Thread_Enable_dispatch(); 40007c08: 7f ff ff c2 call 40007b10 <_Thread_Enable_dispatch> 40007c0c: b0 10 20 00 clr %i0 ! 0 40007c10: 81 c7 e0 08 ret 40007c14: 81 e8 00 00 restore return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 40007c18: 7f ff ff be call 40007b10 <_Thread_Enable_dispatch> 40007c1c: b0 10 20 0e mov 0xe, %i0 return RTEMS_INCORRECT_STATE; } return RTEMS_INTERNAL_ERROR; /* unreached - only to remove warnings */ } 40007c20: 81 c7 e0 08 ret 40007c24: 81 e8 00 00 restore 40008510 : */ rtems_status_code rtems_task_resume( Objects_Id id ) { 40008510: 9d e3 bf 90 save %sp, -112, %sp uint32_t the_api; uint32_t the_class; Objects_Information *information; Thread_Control *tp = (Thread_Control *) 0; if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ) { 40008514: 92 96 20 00 orcc %i0, 0, %o1 40008518: 12 80 00 0a bne 40008540 4000851c: 83 32 60 18 srl %o1, 0x18, %g1 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 40008520: 03 10 00 98 sethi %hi(0x40026000), %g1 40008524: c4 00 63 b0 ld [ %g1 + 0x3b0 ], %g2 ! 400263b0 <_Thread_Dispatch_disable_level> 40008528: 84 00 a0 01 inc %g2 4000852c: c4 20 63 b0 st %g2, [ %g1 + 0x3b0 ] Thread_Control *tp = (Thread_Control *) 0; if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ) { _Thread_Disable_dispatch(); *location = OBJECTS_LOCAL; tp = _Thread_Executing; 40008530: 03 10 00 99 sethi %hi(0x40026400), %g1 40008534: d0 00 60 8c ld [ %g1 + 0x8c ], %o0 ! 4002648c <_Thread_Executing> 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; 40008538: 10 80 00 19 b 4000859c 4000853c: c0 27 bf f4 clr [ %fp + -12 ] 40008540: 84 08 60 07 and %g1, 7, %g2 tp = _Thread_Executing; goto done; } the_api = _Objects_Get_API( id ); if ( the_api && the_api > OBJECTS_APIS_LAST ) { 40008544: 80 a0 a0 04 cmp %g2, 4 40008548: 18 80 00 06 bgu 40008560 4000854c: 82 10 20 02 mov 2, %g1 *location = OBJECTS_ERROR; goto done; } the_class = _Objects_Get_class( id ); if ( the_class != 1 ) { /* threads are always first class :) */ 40008550: 83 32 60 1b srl %o1, 0x1b, %g1 40008554: 80 a0 60 01 cmp %g1, 1 40008558: 02 80 00 05 be 4000856c 4000855c: 82 10 20 02 mov 2, %g1 *location = OBJECTS_ERROR; 40008560: 90 10 20 00 clr %o0 40008564: 10 80 00 0e b 4000859c 40008568: c2 27 bf f4 st %g1, [ %fp + -12 ] goto done; } information = _Objects_Information_table[ the_api ][ the_class ]; 4000856c: 83 28 a0 02 sll %g2, 2, %g1 40008570: 05 10 00 98 sethi %hi(0x40026000), %g2 40008574: 84 10 a3 10 or %g2, 0x310, %g2 ! 40026310 <_Objects_Information_table> 40008578: c2 00 80 01 ld [ %g2 + %g1 ], %g1 4000857c: d0 00 60 04 ld [ %g1 + 4 ], %o0 if ( !information ) { 40008580: 80 a2 20 00 cmp %o0, 0 40008584: 12 80 00 04 bne 40008594 40008588: 82 10 20 02 mov 2, %g1 *location = OBJECTS_ERROR; 4000858c: 10 80 00 04 b 4000859c <== NOT EXECUTED 40008590: c2 27 bf f4 st %g1, [ %fp + -12 ] <== NOT EXECUTED goto done; } tp = (Thread_Control *) _Objects_Get( information, id, location ); 40008594: 40 00 06 d2 call 4000a0dc <_Objects_Get> 40008598: 94 07 bf f4 add %fp, -12, %o2 register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); switch ( location ) { 4000859c: c2 07 bf f4 ld [ %fp + -12 ], %g1 400085a0: 80 a0 60 00 cmp %g1, 0 400085a4: 22 80 00 07 be,a 400085c0 400085a8: c2 02 20 10 ld [ %o0 + 0x10 ], %g1 400085ac: 80 a0 60 02 cmp %g1, 2 400085b0: 08 80 00 0b bleu 400085dc 400085b4: b0 10 20 04 mov 4, %i0 400085b8: 81 c7 e0 08 ret <== NOT EXECUTED 400085bc: 91 e8 20 19 restore %g0, 0x19, %o0 <== NOT EXECUTED case OBJECTS_ERROR: return RTEMS_INVALID_ID; case OBJECTS_LOCAL: if ( _States_Is_suspended( the_thread->current_state ) ) { 400085c0: 80 88 60 02 btst 2, %g1 400085c4: 02 80 00 08 be 400085e4 400085c8: 92 10 20 01 mov 1, %o1 _Thread_Resume( the_thread, TRUE ); 400085cc: 40 00 0e 5b call 4000bf38 <_Thread_Resume> 400085d0: b0 10 20 00 clr %i0 _Thread_Enable_dispatch(); 400085d4: 7f ff ff c2 call 400084dc <_Thread_Enable_dispatch> 400085d8: 01 00 00 00 nop 400085dc: 81 c7 e0 08 ret 400085e0: 81 e8 00 00 restore return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 400085e4: 7f ff ff be call 400084dc <_Thread_Enable_dispatch> 400085e8: b0 10 20 0e mov 0xe, %i0 return RTEMS_INCORRECT_STATE; } return RTEMS_INTERNAL_ERROR; /* unreached - only to remove warnings */ } 400085ec: 81 c7 e0 08 ret 400085f0: 81 e8 00 00 restore 4000895c : rtems_status_code rtems_task_set_note( Objects_Id id, uint32_t notepad, uint32_t note ) { 4000895c: 9d e3 bf 90 save %sp, -112, %sp 40008960: 92 10 00 18 mov %i0, %o1 /* * 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 ) 40008964: 80 a6 60 0f cmp %i1, 0xf 40008968: 18 80 00 3e bgu 40008a60 4000896c: b0 10 20 0a mov 0xa, %i0 /* * Optimize the most likely case to avoid the Thread_Dispatch. */ if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) || 40008970: 80 a2 60 00 cmp %o1, 0 40008974: 02 80 00 08 be 40008994 40008978: 03 10 00 7c sethi %hi(0x4001f000), %g1 4000897c: c2 00 62 0c ld [ %g1 + 0x20c ], %g1 ! 4001f20c <_Thread_Executing> 40008980: c2 00 60 08 ld [ %g1 + 8 ], %g1 40008984: 80 a2 40 01 cmp %o1, %g1 40008988: 12 80 00 09 bne 400089ac 4000898c: 83 32 60 18 srl %o1, 0x18, %g1 _Objects_Are_ids_equal( id, _Thread_Executing->Object.id ) ) { api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ]; api->Notepads[ notepad ] = note; 40008990: 03 10 00 7c sethi %hi(0x4001f000), %g1 <== NOT EXECUTED 40008994: c2 00 62 0c ld [ %g1 + 0x20c ], %g1 ! 4001f20c <_Thread_Executing> <== NOT EXECUTED 40008998: 85 2e 60 02 sll %i1, 2, %g2 <== NOT EXECUTED 4000899c: c2 00 61 6c ld [ %g1 + 0x16c ], %g1 <== NOT EXECUTED 400089a0: f4 20 40 02 st %i2, [ %g1 + %g2 ] <== NOT EXECUTED 400089a4: 81 c7 e0 08 ret <== NOT EXECUTED 400089a8: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED 400089ac: 84 08 60 07 and %g1, 7, %g2 tp = _Thread_Executing; goto done; } the_api = _Objects_Get_API( id ); if ( the_api && the_api > OBJECTS_APIS_LAST ) { 400089b0: 80 a0 a0 04 cmp %g2, 4 400089b4: 18 80 00 06 bgu 400089cc 400089b8: 82 10 20 02 mov 2, %g1 *location = OBJECTS_ERROR; goto done; } the_class = _Objects_Get_class( id ); if ( the_class != 1 ) { /* threads are always first class :) */ 400089bc: 83 32 60 1b srl %o1, 0x1b, %g1 400089c0: 80 a0 60 01 cmp %g1, 1 400089c4: 02 80 00 05 be 400089d8 400089c8: 82 10 20 02 mov 2, %g1 *location = OBJECTS_ERROR; 400089cc: 90 10 20 00 clr %o0 400089d0: 10 80 00 0e b 40008a08 400089d4: c2 27 bf f4 st %g1, [ %fp + -12 ] goto done; } information = _Objects_Information_table[ the_api ][ the_class ]; 400089d8: 83 28 a0 02 sll %g2, 2, %g1 400089dc: 05 10 00 7c sethi %hi(0x4001f000), %g2 400089e0: 84 10 a0 90 or %g2, 0x90, %g2 ! 4001f090 <_Objects_Information_table> 400089e4: c2 00 80 01 ld [ %g2 + %g1 ], %g1 400089e8: d0 00 60 04 ld [ %g1 + 4 ], %o0 if ( !information ) { 400089ec: 80 a2 20 00 cmp %o0, 0 400089f0: 12 80 00 04 bne 40008a00 400089f4: 82 10 20 02 mov 2, %g1 *location = OBJECTS_ERROR; 400089f8: 10 80 00 04 b 40008a08 <== NOT EXECUTED 400089fc: c2 27 bf f4 st %g1, [ %fp + -12 ] <== NOT EXECUTED goto done; } tp = (Thread_Control *) _Objects_Get( information, id, location ); 40008a00: 40 00 06 74 call 4000a3d0 <_Objects_Get> 40008a04: 94 07 bf f4 add %fp, -12, %o2 return RTEMS_SUCCESSFUL; } the_thread = _Thread_Get( id, &location ); switch ( location ) { 40008a08: c2 07 bf f4 ld [ %fp + -12 ], %g1 40008a0c: 80 a0 60 00 cmp %g1, 0 40008a10: 22 80 00 07 be,a 40008a2c 40008a14: c4 02 21 6c ld [ %o0 + 0x16c ], %g2 40008a18: 80 a0 60 02 cmp %g1, 2 40008a1c: 08 80 00 11 bleu 40008a60 40008a20: b0 10 20 04 mov 4, %i0 40008a24: 81 c7 e0 08 ret <== NOT EXECUTED 40008a28: 91 e8 20 19 restore %g0, 0x19, %o0 <== NOT EXECUTED case OBJECTS_ERROR: return RTEMS_INVALID_ID; case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; api->Notepads[ notepad ] = note; 40008a2c: 83 2e 60 02 sll %i1, 2, %g1 40008a30: f4 20 80 01 st %i2, [ %g2 + %g1 ] #if ( CPU_INLINE_ENABLE_DISPATCH == TRUE ) RTEMS_INLINE_ROUTINE void _Thread_Enable_dispatch() { RTEMS_COMPILER_MEMORY_BARRIER(); if ( (--_Thread_Dispatch_disable_level) == 0 ) 40008a34: 05 10 00 7c sethi %hi(0x4001f000), %g2 40008a38: c2 00 a1 30 ld [ %g2 + 0x130 ], %g1 ! 4001f130 <_Thread_Dispatch_disable_level> 40008a3c: b0 10 20 00 clr %i0 40008a40: 82 00 7f ff add %g1, -1, %g1 40008a44: c2 20 a1 30 st %g1, [ %g2 + 0x130 ] 40008a48: c2 00 a1 30 ld [ %g2 + 0x130 ], %g1 40008a4c: 80 a0 60 00 cmp %g1, 0 40008a50: 12 80 00 04 bne 40008a60 40008a54: 01 00 00 00 nop _Thread_Dispatch(); 40008a58: 40 00 0b 13 call 4000b6a4 <_Thread_Dispatch> 40008a5c: 01 00 00 00 nop _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } return RTEMS_INTERNAL_ERROR; /* unreached - only to remove warnings */ } 40008a60: 81 c7 e0 08 ret 40008a64: 81 e8 00 00 restore 4000b4bc : rtems_status_code rtems_task_set_priority( Objects_Id id, rtems_task_priority new_priority, rtems_task_priority *old_priority ) { 4000b4bc: 9d e3 bf 90 save %sp, -112, %sp register Thread_Control *the_thread; Objects_Locations location; if ( new_priority != RTEMS_CURRENT_PRIORITY && 4000b4c0: 80 a6 60 00 cmp %i1, 0 4000b4c4: 02 80 00 06 be 4000b4dc 4000b4c8: 92 10 00 18 mov %i0, %o1 4000b4cc: 82 06 7f ff add %i1, -1, %g1 4000b4d0: 80 a0 60 fe cmp %g1, 0xfe 4000b4d4: 18 80 00 49 bgu 4000b5f8 4000b4d8: b0 10 20 13 mov 0x13, %i0 !_RTEMS_tasks_Priority_is_valid( new_priority ) ) return RTEMS_INVALID_PRIORITY; if ( !old_priority ) 4000b4dc: 80 a6 a0 00 cmp %i2, 0 4000b4e0: 02 80 00 46 be 4000b5f8 4000b4e4: b0 10 20 09 mov 9, %i0 uint32_t the_api; uint32_t the_class; Objects_Information *information; Thread_Control *tp = (Thread_Control *) 0; if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ) { 4000b4e8: 80 a2 60 00 cmp %o1, 0 4000b4ec: 12 80 00 0a bne 4000b514 4000b4f0: 83 32 60 18 srl %o1, 0x18, %g1 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 4000b4f4: 03 10 00 a1 sethi %hi(0x40028400), %g1 4000b4f8: c4 00 62 a0 ld [ %g1 + 0x2a0 ], %g2 ! 400286a0 <_Thread_Dispatch_disable_level> 4000b4fc: 84 00 a0 01 inc %g2 4000b500: c4 20 62 a0 st %g2, [ %g1 + 0x2a0 ] Thread_Control *tp = (Thread_Control *) 0; if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ) { _Thread_Disable_dispatch(); *location = OBJECTS_LOCAL; tp = _Thread_Executing; 4000b504: 03 10 00 a1 sethi %hi(0x40028400), %g1 4000b508: d0 00 63 7c ld [ %g1 + 0x37c ], %o0 ! 4002877c <_Thread_Executing> 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; 4000b50c: 10 80 00 19 b 4000b570 4000b510: c0 27 bf f4 clr [ %fp + -12 ] 4000b514: 84 08 60 07 and %g1, 7, %g2 tp = _Thread_Executing; goto done; } the_api = _Objects_Get_API( id ); if ( the_api && the_api > OBJECTS_APIS_LAST ) { 4000b518: 80 a0 a0 04 cmp %g2, 4 4000b51c: 18 80 00 06 bgu 4000b534 4000b520: 82 10 20 02 mov 2, %g1 *location = OBJECTS_ERROR; goto done; } the_class = _Objects_Get_class( id ); if ( the_class != 1 ) { /* threads are always first class :) */ 4000b524: 83 32 60 1b srl %o1, 0x1b, %g1 4000b528: 80 a0 60 01 cmp %g1, 1 4000b52c: 02 80 00 05 be 4000b540 4000b530: 82 10 20 02 mov 2, %g1 *location = OBJECTS_ERROR; 4000b534: 90 10 20 00 clr %o0 4000b538: 10 80 00 0e b 4000b570 4000b53c: c2 27 bf f4 st %g1, [ %fp + -12 ] goto done; } information = _Objects_Information_table[ the_api ][ the_class ]; 4000b540: 83 28 a0 02 sll %g2, 2, %g1 4000b544: 05 10 00 a1 sethi %hi(0x40028400), %g2 4000b548: 84 10 a2 00 or %g2, 0x200, %g2 ! 40028600 <_Objects_Information_table> 4000b54c: c2 00 80 01 ld [ %g2 + %g1 ], %g1 4000b550: d0 00 60 04 ld [ %g1 + 4 ], %o0 if ( !information ) { 4000b554: 80 a2 20 00 cmp %o0, 0 4000b558: 12 80 00 04 bne 4000b568 4000b55c: 82 10 20 02 mov 2, %g1 *location = OBJECTS_ERROR; 4000b560: 10 80 00 04 b 4000b570 <== NOT EXECUTED 4000b564: c2 27 bf f4 st %g1, [ %fp + -12 ] <== NOT EXECUTED goto done; } tp = (Thread_Control *) _Objects_Get( information, id, location ); 4000b568: 40 00 06 16 call 4000cdc0 <_Objects_Get> 4000b56c: 94 07 bf f4 add %fp, -12, %o2 return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get( id, &location ); switch ( location ) { 4000b570: c2 07 bf f4 ld [ %fp + -12 ], %g1 4000b574: 80 a0 60 00 cmp %g1, 0 4000b578: 22 80 00 07 be,a 4000b594 4000b57c: c2 02 20 14 ld [ %o0 + 0x14 ], %g1 4000b580: 80 a0 60 02 cmp %g1, 2 4000b584: 08 80 00 1d bleu 4000b5f8 4000b588: b0 10 20 04 mov 4, %i0 4000b58c: 81 c7 e0 08 ret <== NOT EXECUTED 4000b590: 91 e8 20 19 restore %g0, 0x19, %o0 <== NOT EXECUTED return RTEMS_INVALID_ID; case OBJECTS_LOCAL: /* XXX convert from core priority */ *old_priority = the_thread->current_priority; if ( new_priority != RTEMS_CURRENT_PRIORITY ) { 4000b594: 80 a6 60 00 cmp %i1, 0 4000b598: 02 80 00 0d be 4000b5cc 4000b59c: c2 26 80 00 st %g1, [ %i2 ] the_thread->real_priority = new_priority; if ( the_thread->resource_count == 0 || 4000b5a0: c2 02 20 1c ld [ %o0 + 0x1c ], %g1 4000b5a4: 80 a0 60 00 cmp %g1, 0 4000b5a8: 02 80 00 06 be 4000b5c0 4000b5ac: f2 22 20 18 st %i1, [ %o0 + 0x18 ] 4000b5b0: c2 02 20 14 ld [ %o0 + 0x14 ], %g1 4000b5b4: 80 a0 40 19 cmp %g1, %i1 4000b5b8: 08 80 00 05 bleu 4000b5cc 4000b5bc: 01 00 00 00 nop the_thread->current_priority > new_priority ) _Thread_Change_priority( the_thread, new_priority, FALSE ); 4000b5c0: 92 10 00 19 mov %i1, %o1 4000b5c4: 40 00 09 c7 call 4000dce0 <_Thread_Change_priority> 4000b5c8: 94 10 20 00 clr %o2 #if ( CPU_INLINE_ENABLE_DISPATCH == TRUE ) RTEMS_INLINE_ROUTINE void _Thread_Enable_dispatch() { RTEMS_COMPILER_MEMORY_BARRIER(); if ( (--_Thread_Dispatch_disable_level) == 0 ) 4000b5cc: 03 10 00 a1 sethi %hi(0x40028400), %g1 4000b5d0: c4 00 62 a0 ld [ %g1 + 0x2a0 ], %g2 ! 400286a0 <_Thread_Dispatch_disable_level> 4000b5d4: b0 10 20 00 clr %i0 4000b5d8: 84 00 bf ff add %g2, -1, %g2 4000b5dc: c4 20 62 a0 st %g2, [ %g1 + 0x2a0 ] 4000b5e0: c2 00 62 a0 ld [ %g1 + 0x2a0 ], %g1 4000b5e4: 80 a0 60 00 cmp %g1, 0 4000b5e8: 12 80 00 04 bne 4000b5f8 4000b5ec: 01 00 00 00 nop _Thread_Dispatch(); 4000b5f0: 40 00 0a e8 call 4000e190 <_Thread_Dispatch> 4000b5f4: 01 00 00 00 nop _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } return RTEMS_INTERNAL_ERROR; /* unreached - only to remove warnings */ } 4000b5f8: 81 c7 e0 08 ret 4000b5fc: 81 e8 00 00 restore 40006fa4 : rtems_status_code rtems_task_start( rtems_id id, rtems_task_entry entry_point, rtems_task_argument argument ) { 40006fa4: 9d e3 bf 90 save %sp, -112, %sp 40006fa8: 92 10 00 18 mov %i0, %o1 register Thread_Control *the_thread; Objects_Locations location; if ( entry_point == NULL ) 40006fac: 80 a6 60 00 cmp %i1, 0 40006fb0: 02 80 00 36 be 40007088 40006fb4: b0 10 20 09 mov 9, %i0 uint32_t the_api; uint32_t the_class; Objects_Information *information; Thread_Control *tp = (Thread_Control *) 0; if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ) { 40006fb8: 80 a2 60 00 cmp %o1, 0 40006fbc: 12 80 00 0a bne 40006fe4 40006fc0: 83 32 60 18 srl %o1, 0x18, %g1 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 40006fc4: 03 10 00 67 sethi %hi(0x40019c00), %g1 40006fc8: c4 00 62 a0 ld [ %g1 + 0x2a0 ], %g2 ! 40019ea0 <_Thread_Dispatch_disable_level> 40006fcc: 84 00 a0 01 inc %g2 40006fd0: c4 20 62 a0 st %g2, [ %g1 + 0x2a0 ] Thread_Control *tp = (Thread_Control *) 0; if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ) { _Thread_Disable_dispatch(); *location = OBJECTS_LOCAL; tp = _Thread_Executing; 40006fd4: 03 10 00 67 sethi %hi(0x40019c00), %g1 40006fd8: d0 00 63 7c ld [ %g1 + 0x37c ], %o0 ! 40019f7c <_Thread_Executing> 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; 40006fdc: 10 80 00 19 b 40007040 40006fe0: c0 27 bf f4 clr [ %fp + -12 ] 40006fe4: 84 08 60 07 and %g1, 7, %g2 tp = _Thread_Executing; goto done; } the_api = _Objects_Get_API( id ); if ( the_api && the_api > OBJECTS_APIS_LAST ) { 40006fe8: 80 a0 a0 04 cmp %g2, 4 40006fec: 18 80 00 06 bgu 40007004 40006ff0: 82 10 20 02 mov 2, %g1 *location = OBJECTS_ERROR; goto done; } the_class = _Objects_Get_class( id ); if ( the_class != 1 ) { /* threads are always first class :) */ 40006ff4: 83 32 60 1b srl %o1, 0x1b, %g1 40006ff8: 80 a0 60 01 cmp %g1, 1 40006ffc: 02 80 00 05 be 40007010 40007000: 82 10 20 02 mov 2, %g1 *location = OBJECTS_ERROR; 40007004: 90 10 20 00 clr %o0 40007008: 10 80 00 0e b 40007040 4000700c: c2 27 bf f4 st %g1, [ %fp + -12 ] goto done; } information = _Objects_Information_table[ the_api ][ the_class ]; 40007010: 83 28 a0 02 sll %g2, 2, %g1 40007014: 05 10 00 67 sethi %hi(0x40019c00), %g2 40007018: 84 10 a2 00 or %g2, 0x200, %g2 ! 40019e00 <_Objects_Information_table> 4000701c: c2 00 80 01 ld [ %g2 + %g1 ], %g1 40007020: d0 00 60 04 ld [ %g1 + 4 ], %o0 if ( !information ) { 40007024: 80 a2 20 00 cmp %o0, 0 40007028: 12 80 00 04 bne 40007038 4000702c: 82 10 20 02 mov 2, %g1 *location = OBJECTS_ERROR; 40007030: 10 80 00 04 b 40007040 <== NOT EXECUTED 40007034: c2 27 bf f4 st %g1, [ %fp + -12 ] <== NOT EXECUTED goto done; } tp = (Thread_Control *) _Objects_Get( information, id, location ); 40007038: 40 00 05 4b call 40008564 <_Objects_Get> 4000703c: 94 07 bf f4 add %fp, -12, %o2 return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get( id, &location ); switch ( location ) { 40007040: c2 07 bf f4 ld [ %fp + -12 ], %g1 40007044: 80 a0 60 00 cmp %g1, 0 40007048: 22 80 00 07 be,a 40007064 4000704c: 94 10 00 19 mov %i1, %o2 40007050: 80 a0 60 02 cmp %g1, 2 40007054: 08 80 00 0d bleu 40007088 40007058: b0 10 20 04 mov 4, %i0 4000705c: 81 c7 e0 08 ret <== NOT EXECUTED 40007060: 91 e8 20 19 restore %g0, 0x19, %o0 <== NOT EXECUTED case OBJECTS_ERROR: return RTEMS_INVALID_ID; case OBJECTS_LOCAL: if ( _Thread_Start( 40007064: 98 10 00 1a mov %i2, %o4 40007068: 92 10 20 00 clr %o1 4000706c: 40 00 0d d8 call 4000a7cc <_Thread_Start> 40007070: 96 10 20 00 clr %o3 40007074: 80 a2 20 00 cmp %o0, 0 40007078: 02 80 00 06 be 40007090 4000707c: 01 00 00 00 nop the_thread, THREAD_START_NUMERIC, entry_point, NULL, argument ) ) { _Thread_Enable_dispatch(); 40007080: 7f ff ff bc call 40006f70 <_Thread_Enable_dispatch> 40007084: b0 10 20 00 clr %i0 ! 0 40007088: 81 c7 e0 08 ret 4000708c: 81 e8 00 00 restore return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 40007090: 7f ff ff b8 call 40006f70 <_Thread_Enable_dispatch> 40007094: b0 10 20 0e mov 0xe, %i0 return RTEMS_INCORRECT_STATE; } return RTEMS_INTERNAL_ERROR; /* unreached - only to remove warnings */ } 40007098: 81 c7 e0 08 ret 4000709c: 81 e8 00 00 restore 40008758 : */ rtems_status_code rtems_task_suspend( Objects_Id id ) { 40008758: 9d e3 bf 90 save %sp, -112, %sp uint32_t the_api; uint32_t the_class; Objects_Information *information; Thread_Control *tp = (Thread_Control *) 0; if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ) { 4000875c: 92 96 20 00 orcc %i0, 0, %o1 40008760: 12 80 00 0a bne 40008788 40008764: 83 32 60 18 srl %o1, 0x18, %g1 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 40008768: 03 10 00 98 sethi %hi(0x40026000), %g1 4000876c: c4 00 63 b0 ld [ %g1 + 0x3b0 ], %g2 ! 400263b0 <_Thread_Dispatch_disable_level> 40008770: 84 00 a0 01 inc %g2 40008774: c4 20 63 b0 st %g2, [ %g1 + 0x3b0 ] Thread_Control *tp = (Thread_Control *) 0; if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ) { _Thread_Disable_dispatch(); *location = OBJECTS_LOCAL; tp = _Thread_Executing; 40008778: 03 10 00 99 sethi %hi(0x40026400), %g1 4000877c: d0 00 60 8c ld [ %g1 + 0x8c ], %o0 ! 4002648c <_Thread_Executing> 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; 40008780: 10 80 00 19 b 400087e4 40008784: c0 27 bf f4 clr [ %fp + -12 ] 40008788: 84 08 60 07 and %g1, 7, %g2 tp = _Thread_Executing; goto done; } the_api = _Objects_Get_API( id ); if ( the_api && the_api > OBJECTS_APIS_LAST ) { 4000878c: 80 a0 a0 04 cmp %g2, 4 40008790: 18 80 00 06 bgu 400087a8 40008794: 82 10 20 02 mov 2, %g1 *location = OBJECTS_ERROR; goto done; } the_class = _Objects_Get_class( id ); if ( the_class != 1 ) { /* threads are always first class :) */ 40008798: 83 32 60 1b srl %o1, 0x1b, %g1 4000879c: 80 a0 60 01 cmp %g1, 1 400087a0: 02 80 00 05 be 400087b4 400087a4: 82 10 20 02 mov 2, %g1 *location = OBJECTS_ERROR; 400087a8: 90 10 20 00 clr %o0 400087ac: 10 80 00 0e b 400087e4 400087b0: c2 27 bf f4 st %g1, [ %fp + -12 ] goto done; } information = _Objects_Information_table[ the_api ][ the_class ]; 400087b4: 83 28 a0 02 sll %g2, 2, %g1 400087b8: 05 10 00 98 sethi %hi(0x40026000), %g2 400087bc: 84 10 a3 10 or %g2, 0x310, %g2 ! 40026310 <_Objects_Information_table> 400087c0: c2 00 80 01 ld [ %g2 + %g1 ], %g1 400087c4: d0 00 60 04 ld [ %g1 + 4 ], %o0 if ( !information ) { 400087c8: 80 a2 20 00 cmp %o0, 0 400087cc: 12 80 00 04 bne 400087dc 400087d0: 82 10 20 02 mov 2, %g1 *location = OBJECTS_ERROR; 400087d4: 10 80 00 04 b 400087e4 <== NOT EXECUTED 400087d8: c2 27 bf f4 st %g1, [ %fp + -12 ] <== NOT EXECUTED goto done; } tp = (Thread_Control *) _Objects_Get( information, id, location ); 400087dc: 40 00 06 40 call 4000a0dc <_Objects_Get> 400087e0: 94 07 bf f4 add %fp, -12, %o2 register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); switch ( location ) { 400087e4: c2 07 bf f4 ld [ %fp + -12 ], %g1 400087e8: 80 a0 60 00 cmp %g1, 0 400087ec: 22 80 00 07 be,a 40008808 400087f0: c2 02 20 10 ld [ %o0 + 0x10 ], %g1 400087f4: 80 a0 60 02 cmp %g1, 2 400087f8: 08 80 00 0b bleu 40008824 400087fc: b0 10 20 04 mov 4, %i0 40008800: 81 c7 e0 08 ret <== NOT EXECUTED 40008804: 91 e8 20 19 restore %g0, 0x19, %o0 <== NOT EXECUTED case OBJECTS_ERROR: return RTEMS_INVALID_ID; case OBJECTS_LOCAL: if ( !_States_Is_suspended( the_thread->current_state ) ) { 40008808: 80 88 60 02 btst 2, %g1 4000880c: 12 80 00 08 bne 4000882c 40008810: 01 00 00 00 nop _Thread_Suspend( the_thread ); 40008814: 40 00 0e f5 call 4000c3e8 <_Thread_Suspend> 40008818: b0 10 20 00 clr %i0 ! 0 _Thread_Enable_dispatch(); 4000881c: 7f ff ff c2 call 40008724 <_Thread_Enable_dispatch> 40008820: 01 00 00 00 nop 40008824: 81 c7 e0 08 ret 40008828: 81 e8 00 00 restore return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 4000882c: 7f ff ff be call 40008724 <_Thread_Enable_dispatch> 40008830: b0 10 20 0f mov 0xf, %i0 return RTEMS_ALREADY_SUSPENDED; } return RTEMS_INTERNAL_ERROR; /* unreached - only to remove warnings */ } 40008834: 81 c7 e0 08 ret 40008838: 81 e8 00 00 restore 40018fc4 : rtems_status_code rtems_task_variable_add( rtems_id tid, void **ptr, void (*dtor)(void *) ) { 40018fc4: 9d e3 bf 90 save %sp, -112, %sp 40018fc8: 92 10 00 18 mov %i0, %o1 Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp, *new; if ( !ptr ) 40018fcc: 80 a6 60 00 cmp %i1, 0 40018fd0: 02 80 00 32 be 40019098 40018fd4: b0 10 20 09 mov 9, %i0 uint32_t the_api; uint32_t the_class; Objects_Information *information; Thread_Control *tp = (Thread_Control *) 0; if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ) { 40018fd8: 80 a2 60 00 cmp %o1, 0 40018fdc: 12 80 00 0a bne 40019004 40018fe0: 83 32 60 18 srl %o1, 0x18, %g1 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 40018fe4: 03 10 00 e9 sethi %hi(0x4003a400), %g1 40018fe8: c4 00 63 60 ld [ %g1 + 0x360 ], %g2 ! 4003a760 <_Thread_Dispatch_disable_level> 40018fec: 84 00 a0 01 inc %g2 40018ff0: c4 20 63 60 st %g2, [ %g1 + 0x360 ] Thread_Control *tp = (Thread_Control *) 0; if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ) { _Thread_Disable_dispatch(); *location = OBJECTS_LOCAL; tp = _Thread_Executing; 40018ff4: 03 10 00 ea sethi %hi(0x4003a800), %g1 40018ff8: f0 00 60 3c ld [ %g1 + 0x3c ], %i0 ! 4003a83c <_Thread_Executing> 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; 40018ffc: 10 80 00 18 b 4001905c 40019000: c0 27 bf f4 clr [ %fp + -12 ] 40019004: 84 08 60 07 and %g1, 7, %g2 <== NOT EXECUTED tp = _Thread_Executing; goto done; } the_api = _Objects_Get_API( id ); if ( the_api && the_api > OBJECTS_APIS_LAST ) { 40019008: 80 a0 a0 04 cmp %g2, 4 <== NOT EXECUTED 4001900c: 18 80 00 0e bgu 40019044 <== NOT EXECUTED 40019010: 82 10 20 02 mov 2, %g1 <== NOT EXECUTED *location = OBJECTS_ERROR; goto done; } the_class = _Objects_Get_class( id ); if ( the_class != 1 ) { /* threads are always first class :) */ 40019014: 83 32 60 1b srl %o1, 0x1b, %g1 <== NOT EXECUTED 40019018: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 4001901c: 12 80 00 0a bne 40019044 <== NOT EXECUTED 40019020: 82 10 20 02 mov 2, %g1 <== NOT EXECUTED *location = OBJECTS_ERROR; goto done; } information = _Objects_Information_table[ the_api ][ the_class ]; 40019024: 83 28 a0 02 sll %g2, 2, %g1 <== NOT EXECUTED 40019028: 05 10 00 e9 sethi %hi(0x4003a400), %g2 <== NOT EXECUTED 4001902c: 84 10 a2 c0 or %g2, 0x2c0, %g2 ! 4003a6c0 <_Objects_Information_table> <== NOT EXECUTED 40019030: c2 00 80 01 ld [ %g2 + %g1 ], %g1 <== NOT EXECUTED 40019034: d0 00 60 04 ld [ %g1 + 4 ], %o0 <== NOT EXECUTED if ( !information ) { 40019038: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 4001903c: 12 80 00 05 bne 40019050 <== NOT EXECUTED 40019040: 82 10 20 02 mov 2, %g1 <== NOT EXECUTED *location = OBJECTS_ERROR; 40019044: b0 10 20 00 clr %i0 <== NOT EXECUTED 40019048: 10 80 00 05 b 4001905c <== NOT EXECUTED 4001904c: c2 27 bf f4 st %g1, [ %fp + -12 ] <== NOT EXECUTED goto done; } tp = (Thread_Control *) _Objects_Get( information, id, location ); 40019050: 7f ff ca e4 call 4000bbe0 <_Objects_Get> <== NOT EXECUTED 40019054: 94 07 bf f4 add %fp, -12, %o2 <== NOT EXECUTED 40019058: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get (tid, &location); switch (location) { 4001905c: c2 07 bf f4 ld [ %fp + -12 ], %g1 40019060: 80 a0 60 00 cmp %g1, 0 40019064: 22 80 00 0f be,a 400190a0 40019068: c4 06 21 7c ld [ %i0 + 0x17c ], %g2 4001906c: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 40019070: 08 80 00 0a bleu 40019098 <== NOT EXECUTED 40019074: b0 10 20 04 mov 4, %i0 <== NOT EXECUTED 40019078: 81 c7 e0 08 ret <== NOT EXECUTED 4001907c: 91 e8 20 19 restore %g0, 0x19, %o0 <== 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) { 40019080: 80 a0 40 19 cmp %g1, %i1 <== NOT EXECUTED 40019084: 32 80 00 07 bne,a 400190a0 <== NOT EXECUTED 40019088: c4 00 80 00 ld [ %g2 ], %g2 <== NOT EXECUTED tvp->dtor = dtor; 4001908c: f4 20 a0 10 st %i2, [ %g2 + 0x10 ] <== NOT EXECUTED _Thread_Enable_dispatch(); 40019090: 7f ff ff c0 call 40018f90 <_Thread_Enable_dispatch> <== NOT EXECUTED 40019094: b0 10 20 00 clr %i0 <== NOT EXECUTED 40019098: 81 c7 e0 08 ret <== NOT EXECUTED 4001909c: 81 e8 00 00 restore <== NOT EXECUTED /* * Figure out if the variable is already in this task's list. */ tvp = the_thread->task_variables; while (tvp) { 400190a0: 80 a0 a0 00 cmp %g2, 0 400190a4: 32 bf ff f7 bne,a 40019080 400190a8: c2 00 a0 04 ld [ %g2 + 4 ], %g1 <== NOT EXECUTED 400190ac: 11 10 00 e9 sethi %hi(0x4003a400), %o0 400190b0: 92 10 20 14 mov 0x14, %o1 400190b4: 7f ff c8 2f call 4000b170 <_Heap_Allocate> 400190b8: 90 12 23 ac or %o0, 0x3ac, %o0 * Now allocate memory for this task variable. */ new = (rtems_task_variable_t *) _Workspace_Allocate(sizeof(rtems_task_variable_t)); if (new == NULL) { 400190bc: 80 a2 20 00 cmp %o0, 0 400190c0: 32 80 00 06 bne,a 400190d8 400190c4: c4 06 21 7c ld [ %i0 + 0x17c ], %g2 _Thread_Enable_dispatch(); 400190c8: 7f ff ff b2 call 40018f90 <_Thread_Enable_dispatch> <== NOT EXECUTED 400190cc: b0 10 20 1a mov 0x1a, %i0 <== NOT EXECUTED 400190d0: 81 c7 e0 08 ret <== NOT EXECUTED 400190d4: 81 e8 00 00 restore <== NOT EXECUTED return RTEMS_NO_MEMORY; } new->gval = *ptr; 400190d8: c2 06 40 00 ld [ %i1 ], %g1 new->ptr = ptr; new->dtor = dtor; new->next = (struct rtems_task_variable_tt *)the_thread->task_variables; the_thread->task_variables = new; 400190dc: d0 26 21 7c st %o0, [ %i0 + 0x17c ] _Workspace_Allocate(sizeof(rtems_task_variable_t)); if (new == NULL) { _Thread_Enable_dispatch(); return RTEMS_NO_MEMORY; } new->gval = *ptr; 400190e0: c2 22 20 08 st %g1, [ %o0 + 8 ] new->ptr = ptr; 400190e4: f2 22 20 04 st %i1, [ %o0 + 4 ] new->dtor = dtor; 400190e8: f4 22 20 10 st %i2, [ %o0 + 0x10 ] new->next = (struct rtems_task_variable_tt *)the_thread->task_variables; 400190ec: c4 22 00 00 st %g2, [ %o0 ] the_thread->task_variables = new; _Thread_Enable_dispatch(); 400190f0: 7f ff ff a8 call 40018f90 <_Thread_Enable_dispatch> 400190f4: b0 10 20 00 clr %i0 return RTEMS_SUCCESSFUL; } return RTEMS_INTERNAL_ERROR; /* unreached - only to remove warnings */ } 400190f8: 81 c7 e0 08 ret 400190fc: 81 e8 00 00 restore 40019134 : rtems_status_code rtems_task_variable_delete( rtems_id tid, void **ptr ) { 40019134: 9d e3 bf 90 save %sp, -112, %sp 40019138: 92 10 00 18 mov %i0, %o1 Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp, *prev; if ( !ptr ) 4001913c: 80 a6 60 00 cmp %i1, 0 40019140: 02 80 00 52 be 40019288 40019144: b0 10 20 09 mov 9, %i0 uint32_t the_api; uint32_t the_class; Objects_Information *information; Thread_Control *tp = (Thread_Control *) 0; if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ) { 40019148: 80 a2 60 00 cmp %o1, 0 4001914c: 12 80 00 0a bne 40019174 40019150: 83 32 60 18 srl %o1, 0x18, %g1 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 40019154: 03 10 00 e9 sethi %hi(0x4003a400), %g1 40019158: c4 00 63 60 ld [ %g1 + 0x360 ], %g2 ! 4003a760 <_Thread_Dispatch_disable_level> 4001915c: 84 00 a0 01 inc %g2 40019160: c4 20 63 60 st %g2, [ %g1 + 0x360 ] Thread_Control *tp = (Thread_Control *) 0; if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ) { _Thread_Disable_dispatch(); *location = OBJECTS_LOCAL; tp = _Thread_Executing; 40019164: 03 10 00 ea sethi %hi(0x4003a800), %g1 40019168: d0 00 60 3c ld [ %g1 + 0x3c ], %o0 ! 4003a83c <_Thread_Executing> 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; 4001916c: 10 80 00 19 b 400191d0 40019170: c0 27 bf f4 clr [ %fp + -12 ] 40019174: 84 08 60 07 and %g1, 7, %g2 <== NOT EXECUTED tp = _Thread_Executing; goto done; } the_api = _Objects_Get_API( id ); if ( the_api && the_api > OBJECTS_APIS_LAST ) { 40019178: 80 a0 a0 04 cmp %g2, 4 <== NOT EXECUTED 4001917c: 18 80 00 06 bgu 40019194 <== NOT EXECUTED 40019180: 82 10 20 02 mov 2, %g1 <== NOT EXECUTED *location = OBJECTS_ERROR; goto done; } the_class = _Objects_Get_class( id ); if ( the_class != 1 ) { /* threads are always first class :) */ 40019184: 83 32 60 1b srl %o1, 0x1b, %g1 <== NOT EXECUTED 40019188: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 4001918c: 02 80 00 05 be 400191a0 <== NOT EXECUTED 40019190: 82 10 20 02 mov 2, %g1 <== NOT EXECUTED *location = OBJECTS_ERROR; 40019194: 90 10 20 00 clr %o0 <== NOT EXECUTED 40019198: 10 80 00 0e b 400191d0 <== NOT EXECUTED 4001919c: c2 27 bf f4 st %g1, [ %fp + -12 ] <== NOT EXECUTED goto done; } information = _Objects_Information_table[ the_api ][ the_class ]; 400191a0: 83 28 a0 02 sll %g2, 2, %g1 <== NOT EXECUTED 400191a4: 05 10 00 e9 sethi %hi(0x4003a400), %g2 <== NOT EXECUTED 400191a8: 84 10 a2 c0 or %g2, 0x2c0, %g2 ! 4003a6c0 <_Objects_Information_table> <== NOT EXECUTED 400191ac: c2 00 80 01 ld [ %g2 + %g1 ], %g1 <== NOT EXECUTED 400191b0: d0 00 60 04 ld [ %g1 + 4 ], %o0 <== NOT EXECUTED if ( !information ) { 400191b4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 400191b8: 12 80 00 04 bne 400191c8 <== NOT EXECUTED 400191bc: 82 10 20 02 mov 2, %g1 <== NOT EXECUTED *location = OBJECTS_ERROR; 400191c0: 10 80 00 04 b 400191d0 <== NOT EXECUTED 400191c4: c2 27 bf f4 st %g1, [ %fp + -12 ] <== NOT EXECUTED goto done; } tp = (Thread_Control *) _Objects_Get( information, id, location ); 400191c8: 7f ff ca 86 call 4000bbe0 <_Objects_Get> <== NOT EXECUTED 400191cc: 94 07 bf f4 add %fp, -12, %o2 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; prev = NULL; the_thread = _Thread_Get (tid, &location); switch (location) { 400191d0: c2 07 bf f4 ld [ %fp + -12 ], %g1 400191d4: 80 a0 60 00 cmp %g1, 0 400191d8: 22 80 00 07 be,a 400191f4 400191dc: f0 02 21 7c ld [ %o0 + 0x17c ], %i0 400191e0: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 400191e4: 08 80 00 29 bleu 40019288 <== NOT EXECUTED 400191e8: b0 10 20 04 mov 4, %i0 <== NOT EXECUTED 400191ec: 81 c7 e0 08 ret <== NOT EXECUTED 400191f0: 91 e8 20 19 restore %g0, 0x19, %o0 <== NOT EXECUTED default: return RTEMS_INTERNAL_ERROR; case OBJECTS_LOCAL: tvp = the_thread->task_variables; 400191f4: 10 80 00 28 b 40019294 400191f8: 84 10 20 00 clr %g2 while (tvp) { if (tvp->ptr == ptr) { 400191fc: 80 a0 40 19 cmp %g1, %i1 40019200: 32 80 00 24 bne,a 40019290 40019204: 84 10 00 18 mov %i0, %g2 <== NOT EXECUTED if (prev) 40019208: 80 a0 a0 00 cmp %g2, 0 4001920c: 02 80 00 04 be 4001921c 40019210: c2 06 00 00 ld [ %i0 ], %g1 prev->next = tvp->next; 40019214: 10 80 00 03 b 40019220 <== NOT EXECUTED 40019218: c2 20 80 00 st %g1, [ %g2 ] <== NOT EXECUTED else the_thread->task_variables = (rtems_task_variable_t *)tvp->next; 4001921c: c2 22 21 7c st %g1, [ %o0 + 0x17c ] if (_Thread_Is_executing(the_thread)) { 40019220: 03 10 00 ea sethi %hi(0x4003a800), %g1 40019224: c2 00 60 3c ld [ %g1 + 0x3c ], %g1 ! 4003a83c <_Thread_Executing> 40019228: 80 a2 00 01 cmp %o0, %g1 4001922c: 12 80 00 0c bne 4001925c 40019230: c4 06 20 10 ld [ %i0 + 0x10 ], %g2 if (tvp->dtor) 40019234: 80 a0 a0 00 cmp %g2, 0 40019238: 22 80 00 06 be,a 40019250 4001923c: c4 06 20 04 ld [ %i0 + 4 ], %g2 (*tvp->dtor)(*tvp->ptr); 40019240: c2 06 20 04 ld [ %i0 + 4 ], %g1 <== NOT EXECUTED 40019244: 9f c0 80 00 call %g2 <== NOT EXECUTED 40019248: d0 00 40 00 ld [ %g1 ], %o0 <== NOT EXECUTED *tvp->ptr = tvp->gval; 4001924c: c4 06 20 04 ld [ %i0 + 4 ], %g2 <== NOT EXECUTED 40019250: c2 06 20 08 ld [ %i0 + 8 ], %g1 40019254: 10 80 00 07 b 40019270 40019258: c2 20 80 00 st %g1, [ %g2 ] } else { if (tvp->dtor) 4001925c: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED 40019260: 02 80 00 05 be 40019274 <== NOT EXECUTED 40019264: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED (*tvp->dtor)(tvp->tval); 40019268: 9f c0 80 00 call %g2 <== NOT EXECUTED 4001926c: d0 06 20 0c ld [ %i0 + 0xc ], %o0 <== NOT EXECUTED RTEMS_INLINE_ROUTINE boolean _Workspace_Free( void *block ) { return _Heap_Free( &_Workspace_Area, block ); 40019270: 92 10 00 18 mov %i0, %o1 40019274: 11 10 00 e9 sethi %hi(0x4003a400), %o0 40019278: 7f ff c7 e5 call 4000b20c <_Heap_Free> 4001927c: 90 12 23 ac or %o0, 0x3ac, %o0 ! 4003a7ac <_Workspace_Area> } _Workspace_Free(tvp); _Thread_Enable_dispatch(); 40019280: 7f ff ff a0 call 40019100 <_Thread_Enable_dispatch> 40019284: b0 10 20 00 clr %i0 40019288: 81 c7 e0 08 ret 4001928c: 81 e8 00 00 restore return RTEMS_SUCCESSFUL; } prev = tvp; tvp = (rtems_task_variable_t *)tvp->next; 40019290: f0 06 00 00 ld [ %i0 ], %i0 <== NOT EXECUTED default: return RTEMS_INTERNAL_ERROR; case OBJECTS_LOCAL: tvp = the_thread->task_variables; while (tvp) { 40019294: 80 a6 20 00 cmp %i0, 0 40019298: 32 bf ff d9 bne,a 400191fc 4001929c: c2 06 20 04 ld [ %i0 + 4 ], %g1 return RTEMS_SUCCESSFUL; } prev = tvp; tvp = (rtems_task_variable_t *)tvp->next; } _Thread_Enable_dispatch(); 400192a0: 7f ff ff 98 call 40019100 <_Thread_Enable_dispatch> <== NOT EXECUTED 400192a4: b0 10 20 09 mov 9, %i0 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; } return RTEMS_INTERNAL_ERROR; /* unreached - only to remove warnings */ } 400192a8: 81 c7 e0 08 ret <== NOT EXECUTED 400192ac: 81 e8 00 00 restore <== NOT EXECUTED 400192e4 : rtems_status_code rtems_task_variable_get( rtems_id tid, void **ptr, void **result ) { 400192e4: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp; if ( !ptr ) 400192e8: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED 400192ec: 02 80 00 3f be 400193e8 <== NOT EXECUTED 400192f0: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !result ) 400192f4: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED 400192f8: 02 80 00 3c be 400193e8 <== NOT EXECUTED 400192fc: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED uint32_t the_api; uint32_t the_class; Objects_Information *information; Thread_Control *tp = (Thread_Control *) 0; if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ) { 40019300: 12 80 00 0a bne 40019328 <== NOT EXECUTED 40019304: 83 36 20 18 srl %i0, 0x18, %g1 <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 40019308: 03 10 00 e9 sethi %hi(0x4003a400), %g1 <== NOT EXECUTED 4001930c: c4 00 63 60 ld [ %g1 + 0x360 ], %g2 ! 4003a760 <_Thread_Dispatch_disable_level> <== NOT EXECUTED 40019310: 84 00 a0 01 inc %g2 <== NOT EXECUTED 40019314: c4 20 63 60 st %g2, [ %g1 + 0x360 ] <== NOT EXECUTED Thread_Control *tp = (Thread_Control *) 0; if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ) { _Thread_Disable_dispatch(); *location = OBJECTS_LOCAL; tp = _Thread_Executing; 40019318: 03 10 00 ea sethi %hi(0x4003a800), %g1 <== NOT EXECUTED 4001931c: d0 00 60 3c ld [ %g1 + 0x3c ], %o0 ! 4003a83c <_Thread_Executing> <== 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; 40019320: 10 80 00 19 b 40019384 <== NOT EXECUTED 40019324: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED 40019328: 84 08 60 07 and %g1, 7, %g2 <== NOT EXECUTED tp = _Thread_Executing; goto done; } the_api = _Objects_Get_API( id ); if ( the_api && the_api > OBJECTS_APIS_LAST ) { 4001932c: 80 a0 a0 04 cmp %g2, 4 <== NOT EXECUTED 40019330: 18 80 00 06 bgu 40019348 <== NOT EXECUTED 40019334: 82 10 20 02 mov 2, %g1 <== NOT EXECUTED *location = OBJECTS_ERROR; goto done; } the_class = _Objects_Get_class( id ); if ( the_class != 1 ) { /* threads are always first class :) */ 40019338: 83 36 20 1b srl %i0, 0x1b, %g1 <== NOT EXECUTED 4001933c: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED 40019340: 02 80 00 05 be 40019354 <== NOT EXECUTED 40019344: 82 10 20 02 mov 2, %g1 <== NOT EXECUTED *location = OBJECTS_ERROR; 40019348: 90 10 20 00 clr %o0 <== NOT EXECUTED 4001934c: 10 80 00 0e b 40019384 <== NOT EXECUTED 40019350: c2 27 bf f4 st %g1, [ %fp + -12 ] <== NOT EXECUTED goto done; } information = _Objects_Information_table[ the_api ][ the_class ]; 40019354: 83 28 a0 02 sll %g2, 2, %g1 <== NOT EXECUTED 40019358: 05 10 00 e9 sethi %hi(0x4003a400), %g2 <== NOT EXECUTED 4001935c: 84 10 a2 c0 or %g2, 0x2c0, %g2 ! 4003a6c0 <_Objects_Information_table> <== NOT EXECUTED 40019360: c2 00 80 01 ld [ %g2 + %g1 ], %g1 <== NOT EXECUTED 40019364: d0 00 60 04 ld [ %g1 + 4 ], %o0 <== NOT EXECUTED if ( !information ) { 40019368: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 4001936c: 12 80 00 04 bne 4001937c <== NOT EXECUTED 40019370: 82 10 20 02 mov 2, %g1 <== NOT EXECUTED *location = OBJECTS_ERROR; 40019374: 10 80 00 04 b 40019384 <== NOT EXECUTED 40019378: c2 27 bf f4 st %g1, [ %fp + -12 ] <== NOT EXECUTED goto done; } tp = (Thread_Control *) _Objects_Get( information, id, location ); 4001937c: 7f ff ca 19 call 4000bbe0 <_Objects_Get> <== NOT EXECUTED 40019380: 94 07 bf f4 add %fp, -12, %o2 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get (tid, &location); switch (location) { 40019384: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED 40019388: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED 4001938c: 22 80 00 10 be,a 400193cc <== NOT EXECUTED 40019390: d0 02 21 7c ld [ %o0 + 0x17c ], %o0 <== NOT EXECUTED 40019394: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED 40019398: 08 80 00 0b bleu 400193c4 <== NOT EXECUTED 4001939c: b0 10 20 04 mov 4, %i0 <== NOT EXECUTED 400193a0: 81 c7 e0 08 ret <== NOT EXECUTED 400193a4: 91 e8 20 19 restore %g0, 0x19, %o0 <== NOT EXECUTED * Figure out if the variable is in this task's list. */ tvp = the_thread->task_variables; while (tvp) { if (tvp->ptr == ptr) { 400193a8: 80 a0 40 19 cmp %g1, %i1 <== NOT EXECUTED 400193ac: 32 80 00 08 bne,a 400193cc <== NOT EXECUTED 400193b0: d0 02 00 00 ld [ %o0 ], %o0 <== NOT EXECUTED /* * Should this return the current (i.e not the * saved) value if `tid' is the current task? */ *result = tvp->tval; 400193b4: c2 02 20 0c ld [ %o0 + 0xc ], %g1 <== NOT EXECUTED _Thread_Enable_dispatch(); 400193b8: b0 10 20 00 clr %i0 <== NOT EXECUTED 400193bc: 7f ff ff bd call 400192b0 <_Thread_Enable_dispatch> <== NOT EXECUTED 400193c0: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED 400193c4: 81 c7 e0 08 ret <== NOT EXECUTED 400193c8: 81 e8 00 00 restore <== NOT EXECUTED /* * Figure out if the variable is in this task's list. */ tvp = the_thread->task_variables; while (tvp) { 400193cc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED 400193d0: 32 bf ff f6 bne,a 400193a8 <== NOT EXECUTED 400193d4: c2 02 20 04 ld [ %o0 + 4 ], %g1 <== NOT EXECUTED _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } tvp = (rtems_task_variable_t *)tvp->next; } _Thread_Enable_dispatch(); 400193d8: 7f ff ff b6 call 400192b0 <_Thread_Enable_dispatch> <== NOT EXECUTED 400193dc: b0 10 20 09 mov 9, %i0 <== NOT EXECUTED 400193e0: 81 c7 e0 08 ret <== NOT EXECUTED 400193e4: 81 e8 00 00 restore <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; 400193e8: b0 10 20 09 mov 9, %i0 <== NOT EXECUTED } return RTEMS_INTERNAL_ERROR; /* unreached - only to remove warnings */ } 400193ec: 81 c7 e0 08 ret <== NOT EXECUTED 400193f0: 81 e8 00 00 restore <== NOT EXECUTED 4001308c : */ rtems_status_code rtems_timer_delete( Objects_Id id ) { 4001308c: 9d e3 bf 90 save %sp, -112, %sp RTEMS_INLINE_ROUTINE Timer_Control *_Timer_Get ( Objects_Id id, Objects_Locations *location ) { return (Timer_Control *) 40013090: 21 10 00 cd sethi %hi(0x40033400), %l0 40013094: 92 10 00 18 mov %i0, %o1 40013098: 94 07 bf f4 add %fp, -12, %o2 4001309c: 40 00 09 ec call 4001584c <_Objects_Get> 400130a0: 90 14 21 fc or %l0, 0x1fc, %o0 Timer_Control *the_timer; Objects_Locations location; the_timer = _Timer_Get( id, &location ); switch ( location ) { 400130a4: c2 07 bf f4 ld [ %fp + -12 ], %g1 400130a8: 80 a0 60 00 cmp %g1, 0 400130ac: 02 80 00 08 be 400130cc 400130b0: b0 10 00 08 mov %o0, %i0 400130b4: 82 18 60 02 xor %g1, 2, %g1 400130b8: 80 a0 00 01 cmp %g0, %g1 400130bc: 82 60 20 00 subx %g0, 0, %g1 400130c0: b0 08 60 15 and %g1, 0x15, %i0 400130c4: 81 c7 e0 08 ret 400130c8: 91 ee 20 04 restore %i0, 4, %o0 Objects_Information *information, uint16_t index, Objects_Control *the_object ) { if ( index <= information->maximum ) 400130cc: a0 14 21 fc or %l0, 0x1fc, %l0 ) { uint32_t index; index = _Objects_Get_index( the_object->id ); _Objects_Set_local_object( information, index, NULL ); 400130d0: c2 02 20 08 ld [ %o0 + 8 ], %g1 Objects_Information *information, uint16_t index, Objects_Control *the_object ) { if ( index <= information->maximum ) 400130d4: c6 14 20 10 lduh [ %l0 + 0x10 ], %g3 400130d8: 05 00 00 3f sethi %hi(0xfc00), %g2 400130dc: 84 10 a3 ff or %g2, 0x3ff, %g2 ! ffff 400130e0: 82 08 40 02 and %g1, %g2, %g1 400130e4: 80 a0 40 03 cmp %g1, %g3 400130e8: 38 80 00 06 bgu,a 40013100 400130ec: c0 26 20 0c clr [ %i0 + 0xc ] <== NOT EXECUTED information->local_table[ index ] = the_object; 400130f0: c4 04 20 20 ld [ %l0 + 0x20 ], %g2 400130f4: 83 28 60 02 sll %g1, 2, %g1 400130f8: c0 20 80 01 clr [ %g2 + %g1 ] uint32_t index; index = _Objects_Get_index( the_object->id ); _Objects_Set_local_object( information, index, NULL ); /* _Objects_Clear_name( the_object->name, information->name_length ); */ the_object->name = 0; 400130fc: c0 26 20 0c clr [ %i0 + 0xc ] case OBJECTS_ERROR: return RTEMS_INVALID_ID; case OBJECTS_LOCAL: _Objects_Close( &_Timer_Information, &the_timer->Object ); (void) _Watchdog_Remove( &the_timer->Ticker ); 40013100: 40 00 15 19 call 40018564 <_Watchdog_Remove> 40013104: 90 06 20 10 add %i0, 0x10, %o0 RTEMS_INLINE_ROUTINE void _Timer_Free ( Timer_Control *the_timer ) { _Objects_Free( &_Timer_Information, &the_timer->Object ); 40013108: 90 10 00 10 mov %l0, %o0 4001310c: 40 00 09 7a call 400156f4 <_Objects_Free> 40013110: 92 10 00 18 mov %i0, %o1 #if ( CPU_INLINE_ENABLE_DISPATCH == TRUE ) RTEMS_INLINE_ROUTINE void _Thread_Enable_dispatch() { RTEMS_COMPILER_MEMORY_BARRIER(); if ( (--_Thread_Dispatch_disable_level) == 0 ) 40013114: 03 10 00 cc sethi %hi(0x40033000), %g1 40013118: c4 00 62 90 ld [ %g1 + 0x290 ], %g2 ! 40033290 <_Thread_Dispatch_disable_level> 4001311c: b0 10 20 00 clr %i0 40013120: 84 00 bf ff add %g2, -1, %g2 40013124: c4 20 62 90 st %g2, [ %g1 + 0x290 ] 40013128: c2 00 62 90 ld [ %g1 + 0x290 ], %g1 4001312c: 80 a0 60 00 cmp %g1, 0 40013130: 12 80 00 04 bne 40013140 40013134: 01 00 00 00 nop _Thread_Dispatch(); 40013138: 40 00 0e b9 call 40016c1c <_Thread_Dispatch> 4001313c: 01 00 00 00 nop _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } return RTEMS_INTERNAL_ERROR; /* unreached - only to remove warnings */ } 40013140: 81 c7 e0 08 ret 40013144: 81 e8 00 00 restore 4001317c : Objects_Id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { 4001317c: 9d e3 bf 90 save %sp, -112, %sp 40013180: a4 10 00 18 mov %i0, %l2 Timer_Control *the_timer; Objects_Locations location; ISR_Level level; if ( ticks == 0 ) 40013184: 80 a6 60 00 cmp %i1, 0 40013188: 02 80 00 21 be 4001320c 4001318c: b0 10 20 0a mov 0xa, %i0 return RTEMS_INVALID_NUMBER; if ( !routine ) 40013190: 80 a6 a0 00 cmp %i2, 0 40013194: 02 80 00 1e be 4001320c 40013198: b0 10 20 09 mov 9, %i0 RTEMS_INLINE_ROUTINE Timer_Control *_Timer_Get ( Objects_Id id, Objects_Locations *location ) { return (Timer_Control *) 4001319c: 11 10 00 cd sethi %hi(0x40033400), %o0 400131a0: 92 10 00 12 mov %l2, %o1 400131a4: 90 12 21 fc or %o0, 0x1fc, %o0 400131a8: 40 00 09 a9 call 4001584c <_Objects_Get> 400131ac: 94 07 bf f4 add %fp, -12, %o2 return RTEMS_INVALID_ADDRESS; the_timer = _Timer_Get( id, &location ); switch ( location ) { 400131b0: c2 07 bf f4 ld [ %fp + -12 ], %g1 400131b4: 80 a0 60 00 cmp %g1, 0 400131b8: 02 80 00 08 be 400131d8 400131bc: a0 10 00 08 mov %o0, %l0 400131c0: 82 18 60 02 xor %g1, 2, %g1 400131c4: 80 a0 00 01 cmp %g0, %g1 400131c8: 82 60 20 00 subx %g0, 0, %g1 400131cc: b0 08 60 15 and %g1, 0x15, %i0 400131d0: 81 c7 e0 08 ret 400131d4: 91 ee 20 04 restore %i0, 4, %o0 case OBJECTS_ERROR: return RTEMS_INVALID_ID; case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); 400131d8: a2 02 20 10 add %o0, 0x10, %l1 400131dc: 40 00 14 e2 call 40018564 <_Watchdog_Remove> 400131e0: 90 10 00 11 mov %l1, %o0 _ISR_Disable( level ); 400131e4: 7f ff dd ac call 4000a894 400131e8: 01 00 00 00 nop /* * 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 ) { 400131ec: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 400131f0: 80 a0 60 00 cmp %g1, 0 400131f4: 22 80 00 08 be,a 40013214 400131f8: f4 24 20 2c st %i2, [ %l0 + 0x2c ] _ISR_Enable( level ); 400131fc: 7f ff dd aa call 4000a8a4 <== NOT EXECUTED 40013200: b0 10 20 00 clr %i0 <== NOT EXECUTED _Thread_Enable_dispatch(); 40013204: 7f ff ff d1 call 40013148 <_Thread_Enable_dispatch> <== NOT EXECUTED 40013208: 01 00 00 00 nop <== NOT EXECUTED 4001320c: 81 c7 e0 08 ret 40013210: 81 e8 00 00 restore 40013214: e4 24 20 30 st %l2, [ %l0 + 0x30 ] the_watchdog->user_data = user_data; 40013218: f6 24 20 34 st %i3, [ %l0 + 0x34 ] /* * 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; 4001321c: c0 24 20 38 clr [ %l0 + 0x38 ] Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 40013220: c0 24 20 18 clr [ %l0 + 0x18 ] _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); _ISR_Enable( level ); 40013224: 7f ff dd a0 call 4000a8a4 40013228: b0 10 20 00 clr %i0 ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 4001322c: 92 10 00 11 mov %l1, %o1 40013230: 11 10 00 cc sethi %hi(0x40033000), %o0 40013234: 90 12 23 8c or %o0, 0x38c, %o0 ! 4003338c <_Watchdog_Ticks_chain> 40013238: 40 00 14 73 call 40018404 <_Watchdog_Insert> 4001323c: f2 24 20 1c st %i1, [ %l0 + 0x1c ] _Watchdog_Insert_ticks( &the_timer->Ticker, ticks ); _Thread_Enable_dispatch(); 40013240: 7f ff ff c2 call 40013148 <_Thread_Enable_dispatch> 40013244: 01 00 00 00 nop return RTEMS_SUCCESSFUL; } return RTEMS_INTERNAL_ERROR; /* unreached - only to remove warnings */ } 40013248: 81 c7 e0 08 ret 4001324c: 81 e8 00 00 restore 40008ee4 : rtems_status_code rtems_timer_get_information( Objects_Id id, rtems_timer_information *the_info ) { 40008ee4: 9d e3 bf 90 save %sp, -112, %sp 40008ee8: 92 10 00 18 mov %i0, %o1 Timer_Control *the_timer; Objects_Locations location; if ( !the_info ) 40008eec: 80 a6 60 00 cmp %i1, 0 40008ef0: 02 80 00 22 be 40008f78 40008ef4: b0 10 20 09 mov 9, %i0 RTEMS_INLINE_ROUTINE Timer_Control *_Timer_Get ( Objects_Id id, Objects_Locations *location ) { return (Timer_Control *) 40008ef8: 11 10 00 7d sethi %hi(0x4001f400), %o0 40008efc: 94 07 bf f4 add %fp, -12, %o2 40008f00: 40 00 07 3f call 4000abfc <_Objects_Get> 40008f04: 90 12 21 c8 or %o0, 0x1c8, %o0 return RTEMS_INVALID_ADDRESS; the_timer = _Timer_Get( id, &location ); switch ( location ) { 40008f08: c2 07 bf f4 ld [ %fp + -12 ], %g1 40008f0c: 80 a0 60 00 cmp %g1, 0 40008f10: 22 80 00 08 be,a 40008f30 40008f14: c2 02 20 1c ld [ %o0 + 0x1c ], %g1 40008f18: 82 18 60 02 xor %g1, 2, %g1 <== NOT EXECUTED 40008f1c: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED 40008f20: 82 60 20 00 subx %g0, 0, %g1 <== NOT EXECUTED 40008f24: b0 08 60 15 and %g1, 0x15, %i0 <== NOT EXECUTED 40008f28: 81 c7 e0 08 ret <== NOT EXECUTED 40008f2c: 91 ee 20 04 restore %i0, 4, %o0 <== NOT EXECUTED case OBJECTS_ERROR: return RTEMS_INVALID_ID; case OBJECTS_LOCAL: the_info->the_class = the_timer->the_class; 40008f30: c4 02 20 38 ld [ %o0 + 0x38 ], %g2 the_info->initial = the_timer->Ticker.initial; 40008f34: c2 26 60 04 st %g1, [ %i1 + 4 ] the_info->start_time = the_timer->Ticker.start_time; 40008f38: c2 02 20 24 ld [ %o0 + 0x24 ], %g1 case OBJECTS_ERROR: return RTEMS_INVALID_ID; case OBJECTS_LOCAL: the_info->the_class = the_timer->the_class; 40008f3c: c4 26 40 00 st %g2, [ %i1 ] the_info->initial = the_timer->Ticker.initial; the_info->start_time = the_timer->Ticker.start_time; 40008f40: c2 26 60 08 st %g1, [ %i1 + 8 ] the_info->stop_time = the_timer->Ticker.stop_time; 40008f44: c2 02 20 28 ld [ %o0 + 0x28 ], %g1 40008f48: c2 26 60 0c st %g1, [ %i1 + 0xc ] #if ( CPU_INLINE_ENABLE_DISPATCH == TRUE ) RTEMS_INLINE_ROUTINE void _Thread_Enable_dispatch() { RTEMS_COMPILER_MEMORY_BARRIER(); if ( (--_Thread_Dispatch_disable_level) == 0 ) 40008f4c: 05 10 00 7d sethi %hi(0x4001f400), %g2 40008f50: c2 00 a3 b0 ld [ %g2 + 0x3b0 ], %g1 ! 4001f7b0 <_Thread_Dispatch_disable_level> 40008f54: b0 10 20 00 clr %i0 40008f58: 82 00 7f ff add %g1, -1, %g1 40008f5c: c2 20 a3 b0 st %g1, [ %g2 + 0x3b0 ] 40008f60: c2 00 a3 b0 ld [ %g2 + 0x3b0 ], %g1 40008f64: 80 a0 60 00 cmp %g1, 0 40008f68: 12 80 00 04 bne 40008f78 40008f6c: 01 00 00 00 nop _Thread_Dispatch(); 40008f70: 40 00 0c 17 call 4000bfcc <_Thread_Dispatch> 40008f74: 01 00 00 00 nop _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } return RTEMS_INTERNAL_ERROR; /* unreached - only to remove warnings */ } 40008f78: 81 c7 e0 08 ret 40008f7c: 81 e8 00 00 restore 4001396c : rtems_status_code rtems_timer_initiate_server( uint32_t priority, uint32_t stack_size, rtems_attribute attribute_set ) { 4001396c: 9d e3 bf 90 save %sp, -112, %sp /* * Make sure the requested priority is valid. */ _priority = priority; if ( priority == RTEMS_TIMER_SERVER_DEFAULT_PRIORITY ) 40013970: 92 10 20 00 clr %o1 40013974: 80 a6 3f ff cmp %i0, -1 40013978: 02 80 00 07 be 40013994 4001397c: 94 10 00 19 mov %i1, %o2 _priority = 0; else if ( !_RTEMS_tasks_Priority_is_valid( priority ) ) 40013980: 82 06 3f ff add %i0, -1, %g1 40013984: 80 a0 60 fe cmp %g1, 0xfe 40013988: 18 80 00 48 bgu 40013aa8 4001398c: a0 10 20 13 mov 0x13, %l0 40013990: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED 40013994: 05 10 00 cc sethi %hi(0x40033000), %g2 40013998: c2 00 a2 90 ld [ %g2 + 0x290 ], %g1 ! 40033290 <_Thread_Dispatch_disable_level> 4001399c: 82 00 60 01 inc %g1 400139a0: c2 20 a2 90 st %g1, [ %g2 + 0x290 ] * Just to make sure the test versus create/start operation are atomic. */ _Thread_Disable_dispatch(); if ( _Timer_Server ) { 400139a4: 03 10 00 cd sethi %hi(0x40033400), %g1 400139a8: c2 00 62 48 ld [ %g1 + 0x248 ], %g1 ! 40033648 <_Timer_Server> 400139ac: 80 a0 60 00 cmp %g1, 0 400139b0: 02 80 00 06 be 400139c8 400139b4: 19 00 00 20 sethi %hi(0x8000), %o4 _Thread_Enable_dispatch(); 400139b8: 7f ff ff a0 call 40013838 <_Thread_Enable_dispatch> <== NOT EXECUTED 400139bc: a0 10 20 0e mov 0xe, %l0 <== NOT EXECUTED _Watchdog_Initialize( &_Timer_Server->Timer, _Thread_Delay_ended, id, NULL ); _Watchdog_Initialize( &_Timer_Seconds_timer, _Thread_Delay_ended, id, NULL ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 400139c0: 81 c7 e0 08 ret <== NOT EXECUTED 400139c4: 91 e8 00 10 restore %g0, %l0, %o0 <== NOT EXECUTED * 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( 400139c8: 11 15 12 53 sethi %hi(0x54494c00), %o0 400139cc: 98 16 80 0c or %i2, %o4, %o4 400139d0: 90 12 21 45 or %o0, 0x145, %o0 400139d4: 96 10 21 00 mov 0x100, %o3 400139d8: 7f ff fa 0e call 40012210 400139dc: 9a 07 bf f4 add %fp, -12, %o5 /* 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) { 400139e0: a0 92 20 00 orcc %o0, 0, %l0 400139e4: 12 80 00 2f bne 40013aa0 400139e8: d0 07 bf f4 ld [ %fp + -12 ], %o0 _Thread_Enable_dispatch(); return status; } status = rtems_task_start( 400139ec: 13 10 00 4e sethi %hi(0x40013800), %o1 400139f0: 94 10 20 00 clr %o2 400139f4: 7f ff fc 62 call 40012b7c 400139f8: 92 12 60 6c or %o1, 0x6c, %o1 id, /* the id from create */ (rtems_task_entry) _Timer_Server_body, /* the timer server entry point */ 0 /* there is no argument */ ); if (status) { 400139fc: a0 92 20 00 orcc %o0, 0, %l0 40013a00: 12 80 00 28 bne 40013aa0 40013a04: 03 10 00 cc sethi %hi(0x40033000), %g1 * * NOTE: Setting the pointer to the Timer Server TCB to a value other than * NULL indicates that task-based timer support is initialized. */ _Timer_Server = (Thread_Control *)_Objects_Get_local_object( 40013a08: c8 07 bf f4 ld [ %fp + -12 ], %g4 RTEMS_INLINE_ROUTINE Objects_Control *_Objects_Get_local_object( Objects_Information *information, uint16_t index ) { if ( index > information->maximum ) 40013a0c: 9a 10 61 40 or %g1, 0x140, %o5 40013a10: c4 13 60 10 lduh [ %o5 + 0x10 ], %g2 40013a14: 03 00 00 3f sethi %hi(0xfc00), %g1 40013a18: 82 10 63 ff or %g1, 0x3ff, %g1 ! ffff 40013a1c: 82 09 00 01 and %g4, %g1, %g1 40013a20: 80 a0 40 02 cmp %g1, %g2 40013a24: 18 80 00 05 bgu 40013a38 40013a28: 86 10 20 00 clr %g3 return NULL; return information->local_table[ index ]; 40013a2c: c4 03 60 20 ld [ %o5 + 0x20 ], %g2 40013a30: 83 28 60 02 sll %g1, 2, %g1 40013a34: c6 00 80 01 ld [ %g2 + %g1 ], %g3 40013a38: 03 10 00 cd sethi %hi(0x40033400), %g1 40013a3c: c6 20 62 48 st %g3, [ %g1 + 0x248 ] ! 40033648 <_Timer_Server> */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 40013a40: 03 10 00 cc sethi %hi(0x40033000), %g1 40013a44: 82 10 61 90 or %g1, 0x190, %g1 ! 40033190 <_Timer_Ticks_chain+0x4> */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 40013a48: c2 20 7f fc st %g1, [ %g1 + -4 ] 40013a4c: 82 00 7f fc add %g1, -4, %g1 ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data; 40013a50: c0 20 e0 6c clr [ %g3 + 0x6c ] Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 40013a54: c0 20 e0 50 clr [ %g3 + 0x50 ] the_watchdog->routine = routine; the_watchdog->id = id; 40013a58: c8 20 e0 68 st %g4, [ %g3 + 0x68 ] Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 40013a5c: 05 10 00 5a sethi %hi(0x40016800), %g2 the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 40013a60: c2 20 60 08 st %g1, [ %g1 + 8 ] 40013a64: 84 10 a3 60 or %g2, 0x360, %g2 RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 40013a68: c0 20 60 04 clr [ %g1 + 4 ] 40013a6c: c4 20 e0 64 st %g2, [ %g3 + 0x64 ] */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 40013a70: 03 10 00 cc sethi %hi(0x40033000), %g1 40013a74: 82 10 61 a4 or %g1, 0x1a4, %g1 ! 400331a4 <_Timer_Seconds_chain+0x4> */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 40013a78: c2 20 7f fc st %g1, [ %g1 + -4 ] 40013a7c: 82 00 7f fc add %g1, -4, %g1 the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 40013a80: c2 20 60 08 st %g1, [ %g1 + 8 ] RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 40013a84: c0 20 60 04 clr [ %g1 + 4 ] Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 40013a88: 03 10 00 cc sethi %hi(0x40033000), %g1 40013a8c: 82 10 61 ac or %g1, 0x1ac, %g1 ! 400331ac <_Timer_Seconds_timer> the_watchdog->routine = routine; 40013a90: c4 20 60 1c st %g2, [ %g1 + 0x1c ] the_watchdog->id = id; 40013a94: c8 20 60 20 st %g4, [ %g1 + 0x20 ] the_watchdog->user_data = user_data; 40013a98: c0 20 60 24 clr [ %g1 + 0x24 ] Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 40013a9c: c0 20 60 08 clr [ %g1 + 8 ] */ _Watchdog_Initialize( &_Timer_Server->Timer, _Thread_Delay_ended, id, NULL ); _Watchdog_Initialize( &_Timer_Seconds_timer, _Thread_Delay_ended, id, NULL ); _Thread_Enable_dispatch(); 40013aa0: 7f ff ff 66 call 40013838 <_Thread_Enable_dispatch> 40013aa4: 01 00 00 00 nop return RTEMS_SUCCESSFUL; } 40013aa8: b0 10 00 10 mov %l0, %i0 40013aac: 81 c7 e0 08 ret 40013ab0: 81 e8 00 00 restore 400134fc : Objects_Id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { 400134fc: 9d e3 bf 90 save %sp, -112, %sp Timer_Control *the_timer; Objects_Locations location; ISR_Level level; if ( !_Timer_Server ) 40013500: 25 10 00 cd sethi %hi(0x40033400), %l2 40013504: c2 04 a2 48 ld [ %l2 + 0x248 ], %g1 ! 40033648 <_Timer_Server> Objects_Id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { 40013508: a6 10 00 18 mov %i0, %l3 Timer_Control *the_timer; Objects_Locations location; ISR_Level level; if ( !_Timer_Server ) 4001350c: 80 a0 60 00 cmp %g1, 0 40013510: 02 80 00 24 be 400135a0 40013514: b0 10 20 0e mov 0xe, %i0 return RTEMS_INCORRECT_STATE; if ( !routine ) 40013518: 80 a6 a0 00 cmp %i2, 0 4001351c: 02 80 00 21 be 400135a0 40013520: b0 10 20 09 mov 9, %i0 return RTEMS_INVALID_ADDRESS; if ( ticks == 0 ) 40013524: 80 a6 60 00 cmp %i1, 0 40013528: 02 80 00 1e be 400135a0 4001352c: b0 10 20 0a mov 0xa, %i0 40013530: 11 10 00 cd sethi %hi(0x40033400), %o0 40013534: 92 10 00 13 mov %l3, %o1 40013538: 90 12 21 fc or %o0, 0x1fc, %o0 4001353c: 40 00 08 c4 call 4001584c <_Objects_Get> 40013540: 94 07 bf f4 add %fp, -12, %o2 return RTEMS_INVALID_NUMBER; the_timer = _Timer_Get( id, &location ); switch ( location ) { 40013544: c2 07 bf f4 ld [ %fp + -12 ], %g1 40013548: 80 a0 60 00 cmp %g1, 0 4001354c: 02 80 00 08 be 4001356c 40013550: a0 10 00 08 mov %o0, %l0 40013554: 82 18 60 02 xor %g1, 2, %g1 40013558: 80 a0 00 01 cmp %g0, %g1 4001355c: 82 60 20 00 subx %g0, 0, %g1 40013560: b0 08 60 15 and %g1, 0x15, %i0 40013564: 81 c7 e0 08 ret 40013568: 91 ee 20 04 restore %i0, 4, %o0 case OBJECTS_ERROR: return RTEMS_INVALID_ID; case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); 4001356c: a2 02 20 10 add %o0, 0x10, %l1 40013570: 40 00 13 fd call 40018564 <_Watchdog_Remove> 40013574: 90 10 00 11 mov %l1, %o0 _ISR_Disable( level ); 40013578: 7f ff dc c7 call 4000a894 4001357c: 01 00 00 00 nop /* * 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 ) { 40013580: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 40013584: 80 a0 60 00 cmp %g1, 0 40013588: 02 80 00 08 be 400135a8 4001358c: 82 10 20 01 mov 1, %g1 _ISR_Enable( level ); 40013590: 7f ff dc c5 call 4000a8a4 <== NOT EXECUTED 40013594: b0 10 20 00 clr %i0 <== NOT EXECUTED _Thread_Enable_dispatch(); 40013598: 7f ff ff cc call 400134c8 <_Thread_Enable_dispatch> <== NOT EXECUTED 4001359c: 01 00 00 00 nop <== NOT EXECUTED 400135a0: 81 c7 e0 08 ret 400135a4: 81 e8 00 00 restore * so we can atomically initialize it as in use. */ the_timer->the_class = TIMER_INTERVAL_ON_TASK; _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); the_timer->Ticker.initial = ticks; 400135a8: f2 24 20 1c st %i1, [ %l0 + 0x1c ] Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; 400135ac: f4 24 20 2c st %i2, [ %l0 + 0x2c ] the_watchdog->id = id; 400135b0: e6 24 20 30 st %l3, [ %l0 + 0x30 ] the_watchdog->user_data = user_data; 400135b4: f6 24 20 34 st %i3, [ %l0 + 0x34 ] Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 400135b8: c0 24 20 18 clr [ %l0 + 0x18 ] /* * 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; 400135bc: c2 24 20 38 st %g1, [ %l0 + 0x38 ] _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); the_timer->Ticker.initial = ticks; _ISR_Enable( level ); 400135c0: 7f ff dc b9 call 4000a8a4 400135c4: 21 10 00 cc sethi %hi(0x40033000), %l0 _Timer_Server_stop_ticks_timer(); 400135c8: d0 04 a2 48 ld [ %l2 + 0x248 ], %o0 400135cc: 40 00 13 e6 call 40018564 <_Watchdog_Remove> 400135d0: 90 02 20 48 add %o0, 0x48, %o0 _Timer_Server_process_ticks_chain(); 400135d4: 40 00 00 87 call 400137f0 <_Timer_Server_process_ticks_chain> 400135d8: 01 00 00 00 nop _Watchdog_Insert( &_Timer_Ticks_chain, &the_timer->Ticker ); 400135dc: 90 14 21 8c or %l0, 0x18c, %o0 400135e0: 40 00 13 89 call 40018404 <_Watchdog_Insert> 400135e4: 92 10 00 11 mov %l1, %o1 */ RTEMS_INLINE_ROUTINE boolean _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 400135e8: c4 04 21 8c ld [ %l0 + 0x18c ], %g2 400135ec: a0 14 21 8c or %l0, 0x18c, %l0 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 400135f0: a0 04 20 04 add %l0, 4, %l0 _Timer_Server_reset_ticks_timer(); 400135f4: 80 a0 80 10 cmp %g2, %l0 400135f8: 02 80 00 08 be 40013618 400135fc: c2 04 a2 48 ld [ %l2 + 0x248 ], %g1 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 40013600: c4 00 a0 10 ld [ %g2 + 0x10 ], %g2 _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 40013604: 11 10 00 cc sethi %hi(0x40033000), %o0 40013608: 92 00 60 48 add %g1, 0x48, %o1 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 4001360c: c4 20 60 54 st %g2, [ %g1 + 0x54 ] _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 40013610: 40 00 13 7d call 40018404 <_Watchdog_Insert> 40013614: 90 12 23 8c or %o0, 0x38c, %o0 _Thread_Enable_dispatch(); 40013618: 7f ff ff ac call 400134c8 <_Thread_Enable_dispatch> 4001361c: b0 10 20 00 clr %i0 return RTEMS_SUCCESSFUL; } return RTEMS_INTERNAL_ERROR; /* unreached - only to remove warnings */ } 40013620: 81 c7 e0 08 ret 40013624: 81 e8 00 00 restore