RTEMS 4.11
Annotated Report
Fri Oct 8 13:53:16 2010

30014c94 <_CORE_message_queue_Broadcast>:                             
{                                                                     
  Thread_Control          *the_thread;                                
  uint32_t                 number_broadcasted;                        
  Thread_Wait_information *waitp;                                     
                                                                      
  if ( size > the_message_queue->maximum_message_size ) {             
30014c94:	e590304c 	ldr	r3, [r0, #76]	; 0x4c                          
    Objects_Id                                 id __attribute__((unused)),
    CORE_message_queue_API_mp_support_callout  api_message_queue_mp_support __attribute__((unused)),
  #endif                                                              
  uint32_t                                  *count                    
)                                                                     
{                                                                     
30014c98:	e92d45f0 	push	{r4, r5, r6, r7, r8, sl, lr}                 
  Thread_Control          *the_thread;                                
  uint32_t                 number_broadcasted;                        
  Thread_Wait_information *waitp;                                     
                                                                      
  if ( size > the_message_queue->maximum_message_size ) {             
30014c9c:	e1520003 	cmp	r2, r3                                        
    Objects_Id                                 id __attribute__((unused)),
    CORE_message_queue_API_mp_support_callout  api_message_queue_mp_support __attribute__((unused)),
  #endif                                                              
  uint32_t                                  *count                    
)                                                                     
{                                                                     
30014ca0:	e1a06000 	mov	r6, r0                                        
30014ca4:	e1a0a001 	mov	sl, r1                                        
30014ca8:	e1a07002 	mov	r7, r2                                        
30014cac:	e59d8020 	ldr	r8, [sp, #32]                                 
  Thread_Control          *the_thread;                                
  uint32_t                 number_broadcasted;                        
  Thread_Wait_information *waitp;                                     
                                                                      
  if ( size > the_message_queue->maximum_message_size ) {             
30014cb0:	8a000013 	bhi	30014d04 <_CORE_message_queue_Broadcast+0x70> 
   *  NOTE: This check is critical because threads can block on       
   *        send and receive and this ensures that we are broadcasting
   *        the message to threads waiting to receive -- not to send. 
   */                                                                 
                                                                      
  if ( the_message_queue->number_of_pending_messages != 0 ) {         
30014cb4:	e5905048 	ldr	r5, [r0, #72]	; 0x48                          
30014cb8:	e3550000 	cmp	r5, #0                                        
    *count = 0;                                                       
30014cbc:	13a00000 	movne	r0, #0                                      
30014cc0:	15880000 	strne	r0, [r8]                                    
   *  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 ) {         
30014cc4:	0a000007 	beq	30014ce8 <_CORE_message_queue_Broadcast+0x54> 
30014cc8:	e8bd85f0 	pop	{r4, r5, r6, r7, r8, sl, pc}                  
  const void *source,                                                 
  void       *destination,                                            
  size_t      size                                                    
)                                                                     
{                                                                     
  memcpy(destination, source, size);                                  
30014ccc:	e594002c 	ldr	r0, [r4, #44]	; 0x2c                          
30014cd0:	e1a0100a 	mov	r1, sl                                        
30014cd4:	e1a02007 	mov	r2, r7                                        
30014cd8:	eb00222c 	bl	3001d590 <memcpy>                              
      buffer,                                                         
      waitp->return_argument_second.mutable_object,                   
      size                                                            
    );                                                                
                                                                      
    *(size_t *) the_thread->Wait.return_argument = size;              
30014cdc:	e5943028 	ldr	r3, [r4, #40]	; 0x28                          
   */                                                                 
  number_broadcasted = 0;                                             
  while ((the_thread =                                                
          _Thread_queue_Dequeue(&the_message_queue->Wait_queue))) {   
    waitp = &the_thread->Wait;                                        
    number_broadcasted += 1;                                          
30014ce0:	e2855001 	add	r5, r5, #1                                    
      buffer,                                                         
      waitp->return_argument_second.mutable_object,                   
      size                                                            
    );                                                                
                                                                      
    *(size_t *) the_thread->Wait.return_argument = size;              
30014ce4:	e5837000 	str	r7, [r3]                                      
  /*                                                                  
   *  There must be no pending messages if there is a thread waiting to
   *  receive a message.                                              
   */                                                                 
  number_broadcasted = 0;                                             
  while ((the_thread =                                                
30014ce8:	e1a00006 	mov	r0, r6                                        
30014cec:	eb0009df 	bl	30017470 <_Thread_queue_Dequeue>               
30014cf0:	e2504000 	subs	r4, r0, #0                                   
30014cf4:	1afffff4 	bne	30014ccc <_CORE_message_queue_Broadcast+0x38> 
      if ( !_Objects_Is_local_id( the_thread->Object.id ) )           
        (*api_message_queue_mp_support) ( the_thread, id );           
    #endif                                                            
                                                                      
  }                                                                   
  *count = number_broadcasted;                                        
30014cf8:	e5885000 	str	r5, [r8]                                      
  return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;                        
30014cfc:	e1a00004 	mov	r0, r4                                        
30014d00:	e8bd85f0 	pop	{r4, r5, r6, r7, r8, sl, pc}                  
  Thread_Control          *the_thread;                                
  uint32_t                 number_broadcasted;                        
  Thread_Wait_information *waitp;                                     
                                                                      
  if ( size > the_message_queue->maximum_message_size ) {             
    return CORE_MESSAGE_QUEUE_STATUS_INVALID_SIZE;                    
30014d04:	e3a00001 	mov	r0, #1                                        <== NOT EXECUTED
    #endif                                                            
                                                                      
  }                                                                   
  *count = number_broadcasted;                                        
  return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;                        
}                                                                     
30014d08:	e8bd85f0 	pop	{r4, r5, r6, r7, r8, sl, pc}                  <== NOT EXECUTED
                                                                      

30006df4 <_Heap_Walk>: bool _Heap_Walk( Heap_Control *heap, int source, bool dump ) {
30006df4:	e92d4ff0 	push	{r4, r5, r6, r7, r8, r9, sl, fp, lr}         
  uintptr_t const page_size = heap->page_size;                        
  uintptr_t const min_block_size = heap->min_block_size;              
30006df8:	e5903014 	ldr	r3, [r0, #20]                                 
bool _Heap_Walk(                                                      
  Heap_Control *heap,                                                 
  int source,                                                         
  bool dump                                                           
)                                                                     
{                                                                     
30006dfc:	e24dd030 	sub	sp, sp, #48	; 0x30                            
  uintptr_t const page_size = heap->page_size;                        
  uintptr_t const min_block_size = heap->min_block_size;              
30006e00:	e58d3024 	str	r3, [sp, #36]	; 0x24                          
  Heap_Block *const first_block = heap->first_block;                  
  Heap_Block *const last_block = heap->last_block;                    
30006e04:	e5903024 	ldr	r3, [r0, #36]	; 0x24                          
  Heap_Block *block = first_block;                                    
  Heap_Walk_printer printer = dump ?                                  
    _Heap_Walk_print : _Heap_Walk_print_nothing;                      
30006e08:	e59f4500 	ldr	r4, [pc, #1280]	; 30007310 <_Heap_Walk+0x51c> 
)                                                                     
{                                                                     
  uintptr_t const page_size = heap->page_size;                        
  uintptr_t const min_block_size = heap->min_block_size;              
  Heap_Block *const first_block = heap->first_block;                  
  Heap_Block *const last_block = heap->last_block;                    
30006e0c:	e58d3028 	str	r3, [sp, #40]	; 0x28                          
  Heap_Block *block = first_block;                                    
  Heap_Walk_printer printer = dump ?                                  
    _Heap_Walk_print : _Heap_Walk_print_nothing;                      
30006e10:	e59f34fc 	ldr	r3, [pc, #1276]	; 30007314 <_Heap_Walk+0x520> 
30006e14:	e31200ff 	tst	r2, #255	; 0xff                               
30006e18:	11a04003 	movne	r4, r3                                      
                                                                      
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
30006e1c:	e59f34f4 	ldr	r3, [pc, #1268]	; 30007318 <_Heap_Walk+0x524> 
  bool dump                                                           
)                                                                     
{                                                                     
  uintptr_t const page_size = heap->page_size;                        
  uintptr_t const min_block_size = heap->min_block_size;              
  Heap_Block *const first_block = heap->first_block;                  
30006e20:	e590c020 	ldr	ip, [r0, #32]                                 
  Heap_Block *const last_block = heap->last_block;                    
  Heap_Block *block = first_block;                                    
  Heap_Walk_printer printer = dump ?                                  
    _Heap_Walk_print : _Heap_Walk_print_nothing;                      
                                                                      
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
30006e24:	e5933000 	ldr	r3, [r3]                                      
bool _Heap_Walk(                                                      
  Heap_Control *heap,                                                 
  int source,                                                         
  bool dump                                                           
)                                                                     
{                                                                     
30006e28:	e1a06000 	mov	r6, r0                                        
  Heap_Block *const last_block = heap->last_block;                    
  Heap_Block *block = first_block;                                    
  Heap_Walk_printer printer = dump ?                                  
    _Heap_Walk_print : _Heap_Walk_print_nothing;                      
                                                                      
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
30006e2c:	e3530003 	cmp	r3, #3                                        
bool _Heap_Walk(                                                      
  Heap_Control *heap,                                                 
  int source,                                                         
  bool dump                                                           
)                                                                     
{                                                                     
30006e30:	e1a05001 	mov	r5, r1                                        
  uintptr_t const page_size = heap->page_size;                        
30006e34:	e5909010 	ldr	r9, [r0, #16]                                 
  uintptr_t const min_block_size = heap->min_block_size;              
  Heap_Block *const first_block = heap->first_block;                  
30006e38:	e58dc020 	str	ip, [sp, #32]                                 
  Heap_Block *const last_block = heap->last_block;                    
  Heap_Block *block = first_block;                                    
  Heap_Walk_printer printer = dump ?                                  
    _Heap_Walk_print : _Heap_Walk_print_nothing;                      
                                                                      
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
30006e3c:	1a000127 	bne	300072e0 <_Heap_Walk+0x4ec>                   
  Heap_Block *const first_free_block = _Heap_Free_list_first( heap ); 
  Heap_Block *const last_free_block = _Heap_Free_list_last( heap );   
  Heap_Block *const first_block = heap->first_block;                  
  Heap_Block *const last_block = heap->last_block;                    
                                                                      
  (*printer)(                                                         
30006e40:	e59dc024 	ldr	ip, [sp, #36]	; 0x24                          
30006e44:	e59d2020 	ldr	r2, [sp, #32]                                 
30006e48:	e58dc000 	str	ip, [sp]                                      
30006e4c:	e5903018 	ldr	r3, [r0, #24]                                 
30006e50:	e58d3004 	str	r3, [sp, #4]                                  
30006e54:	e590301c 	ldr	r3, [r0, #28]                                 
30006e58:	e58d200c 	str	r2, [sp, #12]                                 
30006e5c:	e58d3008 	str	r3, [sp, #8]                                  
30006e60:	e59d3028 	ldr	r3, [sp, #40]	; 0x28                          
30006e64:	e59f24b0 	ldr	r2, [pc, #1200]	; 3000731c <_Heap_Walk+0x528> 
30006e68:	e58d3010 	str	r3, [sp, #16]                                 
30006e6c:	e5903008 	ldr	r3, [r0, #8]                                  
30006e70:	e58d3014 	str	r3, [sp, #20]                                 
30006e74:	e590300c 	ldr	r3, [r0, #12]                                 
30006e78:	e1a00001 	mov	r0, r1                                        
30006e7c:	e58d3018 	str	r3, [sp, #24]                                 
30006e80:	e3a01000 	mov	r1, #0                                        
30006e84:	e1a03009 	mov	r3, r9                                        
30006e88:	e1a0e00f 	mov	lr, pc                                        
30006e8c:	e12fff14 	bx	r4                                             
    heap->area_begin, heap->area_end,                                 
    first_block, last_block,                                          
    first_free_block, last_free_block                                 
  );                                                                  
                                                                      
  if ( page_size == 0 ) {                                             
30006e90:	e3590000 	cmp	r9, #0                                        
30006e94:	1a000006 	bne	30006eb4 <_Heap_Walk+0xc0>                    
    (*printer)( source, true, "page size is zero\n" );                
30006e98:	e1a00005 	mov	r0, r5                                        
30006e9c:	e3a01001 	mov	r1, #1                                        
30006ea0:	e59f2478 	ldr	r2, [pc, #1144]	; 30007320 <_Heap_Walk+0x52c> 
30006ea4:	e1a0e00f 	mov	lr, pc                                        
30006ea8:	e12fff14 	bx	r4                                             
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
    return true;                                                      
  }                                                                   
                                                                      
  if ( !_Heap_Walk_check_control( source, printer, heap ) ) {         
    return false;                                                     
30006eac:	e1a08009 	mov	r8, r9                                        
30006eb0:	ea00010b 	b	300072e4 <_Heap_Walk+0x4f0>                     
    (*printer)( source, true, "page size is zero\n" );                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Addresses_Is_aligned( (void *) page_size ) ) {               
30006eb4:	e2198003 	ands	r8, r9, #3                                   
    (*printer)(                                                       
30006eb8:	11a00005 	movne	r0, r5                                      
30006ebc:	13a01001 	movne	r1, #1                                      
30006ec0:	159f245c 	ldrne	r2, [pc, #1116]	; 30007324 <_Heap_Walk+0x530>
30006ec4:	11a03009 	movne	r3, r9                                      
30006ec8:	1a00010c 	bne	30007300 <_Heap_Walk+0x50c>                   
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(                           
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return (value % alignment) == 0;                                    
30006ecc:	e59d0024 	ldr	r0, [sp, #36]	; 0x24                          
30006ed0:	e1a01009 	mov	r1, r9                                        
30006ed4:	ebffe730 	bl	30000b9c <__umodsi3>                           
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Is_aligned( min_block_size, page_size ) ) {             
30006ed8:	e250b000 	subs	fp, r0, #0                                   
30006edc:	0a000006 	beq	30006efc <_Heap_Walk+0x108>                   
    (*printer)(                                                       
30006ee0:	e1a00005 	mov	r0, r5                                        
30006ee4:	e3a01001 	mov	r1, #1                                        
30006ee8:	e59f2438 	ldr	r2, [pc, #1080]	; 30007328 <_Heap_Walk+0x534> 
30006eec:	e59d3024 	ldr	r3, [sp, #36]	; 0x24                          
30006ef0:	e1a0e00f 	mov	lr, pc                                        
30006ef4:	e12fff14 	bx	r4                                             
30006ef8:	ea0000f9 	b	300072e4 <_Heap_Walk+0x4f0>                     
30006efc:	e59dc020 	ldr	ip, [sp, #32]                                 
30006f00:	e1a01009 	mov	r1, r9                                        
30006f04:	e28c0008 	add	r0, ip, #8                                    
30006f08:	ebffe723 	bl	30000b9c <__umodsi3>                           
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if (                                                                
30006f0c:	e250a000 	subs	sl, r0, #0                                   
    !_Heap_Is_aligned( _Heap_Alloc_area_of_block( first_block ), page_size )
  ) {                                                                 
    (*printer)(                                                       
30006f10:	11a00005 	movne	r0, r5                                      
30006f14:	13a01001 	movne	r1, #1                                      
30006f18:	159f240c 	ldrne	r2, [pc, #1036]	; 3000732c <_Heap_Walk+0x538>
30006f1c:	159d3020 	ldrne	r3, [sp, #32]                               
30006f20:	1a0000cc 	bne	30007258 <_Heap_Walk+0x464>                   
  block->size_and_flag = size | flag;                                 
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & HEAP_PREV_BLOCK_USED;                 
30006f24:	e59d2020 	ldr	r2, [sp, #32]                                 
30006f28:	e5928004 	ldr	r8, [r2, #4]                                  
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Is_prev_used( first_block ) ) {                         
30006f2c:	e2188001 	ands	r8, r8, #1                                   
    (*printer)(                                                       
30006f30:	01a00005 	moveq	r0, r5                                      
30006f34:	03a01001 	moveq	r1, #1                                      
30006f38:	059f23f0 	ldreq	r2, [pc, #1008]	; 30007330 <_Heap_Walk+0x53c>
30006f3c:	0a000009 	beq	30006f68 <_Heap_Walk+0x174>                   
    - HEAP_BLOCK_HEADER_SIZE);                                        
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & ~HEAP_PREV_BLOCK_USED;                
30006f40:	e59d3028 	ldr	r3, [sp, #40]	; 0x28                          
30006f44:	e5937004 	ldr	r7, [r3, #4]                                  
30006f48:	e3c77001 	bic	r7, r7, #1                                    
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
30006f4c:	e0837007 	add	r7, r3, r7                                    
  block->size_and_flag = size | flag;                                 
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & HEAP_PREV_BLOCK_USED;                 
30006f50:	e5978004 	ldr	r8, [r7, #4]                                  
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( _Heap_Is_free( last_block ) ) {                                
30006f54:	e2188001 	ands	r8, r8, #1                                   
30006f58:	1a000005 	bne	30006f74 <_Heap_Walk+0x180>                   
    (*printer)(                                                       
30006f5c:	e59f23d0 	ldr	r2, [pc, #976]	; 30007334 <_Heap_Walk+0x540>  
30006f60:	e1a00005 	mov	r0, r5                                        
30006f64:	e3a01001 	mov	r1, #1                                        
30006f68:	e1a0e00f 	mov	lr, pc                                        
30006f6c:	e12fff14 	bx	r4                                             
30006f70:	ea0000db 	b	300072e4 <_Heap_Walk+0x4f0>                     
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if (                                                                
30006f74:	e59dc020 	ldr	ip, [sp, #32]                                 
30006f78:	e157000c 	cmp	r7, ip                                        
30006f7c:	0a000006 	beq	30006f9c <_Heap_Walk+0x1a8>                   
    _Heap_Block_at( last_block, _Heap_Block_size( last_block ) ) != first_block
  ) {                                                                 
    (*printer)(                                                       
30006f80:	e1a00005 	mov	r0, r5                                        <== NOT EXECUTED
30006f84:	e3a01001 	mov	r1, #1                                        <== NOT EXECUTED
30006f88:	e59f23a8 	ldr	r2, [pc, #936]	; 30007338 <_Heap_Walk+0x544>  <== NOT EXECUTED
30006f8c:	e1a0e00f 	mov	lr, pc                                        <== NOT EXECUTED
30006f90:	e12fff14 	bx	r4                                             <== NOT EXECUTED
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
    return true;                                                      
  }                                                                   
                                                                      
  if ( !_Heap_Walk_check_control( source, printer, heap ) ) {         
    return false;                                                     
30006f94:	e1a0800a 	mov	r8, sl                                        <== NOT EXECUTED
30006f98:	ea0000d1 	b	300072e4 <_Heap_Walk+0x4f0>                     <== NOT EXECUTED
  int source,                                                         
  Heap_Walk_printer printer,                                          
  Heap_Control *heap                                                  
)                                                                     
{                                                                     
  uintptr_t const page_size = heap->page_size;                        
30006f9c:	e596b010 	ldr	fp, [r6, #16]                                 
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
30006fa0:	e5968008 	ldr	r8, [r6, #8]                                  
  Heap_Walk_printer printer,                                          
  Heap_Control *heap                                                  
)                                                                     
{                                                                     
  uintptr_t const page_size = heap->page_size;                        
  const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );
30006fa4:	e1a0a006 	mov	sl, r6                                        
30006fa8:	ea000034 	b	30007080 <_Heap_Walk+0x28c>                     
  const Heap_Control *heap,                                           
  const Heap_Block *block                                             
)                                                                     
{                                                                     
  return (uintptr_t) block >= (uintptr_t) heap->first_block           
    && (uintptr_t) block <= (uintptr_t) heap->last_block;             
30006fac:	e5963020 	ldr	r3, [r6, #32]                                 
30006fb0:	e1530008 	cmp	r3, r8                                        
30006fb4:	83a0c000 	movhi	ip, #0                                      
30006fb8:	8a000003 	bhi	30006fcc <_Heap_Walk+0x1d8>                   
30006fbc:	e596c024 	ldr	ip, [r6, #36]	; 0x24                          
30006fc0:	e15c0008 	cmp	ip, r8                                        
30006fc4:	33a0c000 	movcc	ip, #0                                      
30006fc8:	23a0c001 	movcs	ip, #1                                      
  const Heap_Block *const first_free_block = _Heap_Free_list_first( heap );
  const Heap_Block *prev_block = free_list_tail;                      
  const Heap_Block *free_block = first_free_block;                    
                                                                      
  while ( free_block != free_list_tail ) {                            
    if ( !_Heap_Is_block_in_heap( heap, free_block ) ) {              
30006fcc:	e21cc0ff 	ands	ip, ip, #255	; 0xff                          
      (*printer)(                                                     
30006fd0:	01a00005 	moveq	r0, r5                                      
30006fd4:	03a01001 	moveq	r1, #1                                      
30006fd8:	059f235c 	ldreq	r2, [pc, #860]	; 3000733c <_Heap_Walk+0x548>
30006fdc:	0a000012 	beq	3000702c <_Heap_Walk+0x238>                   
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(                           
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return (value % alignment) == 0;                                    
30006fe0:	e2880008 	add	r0, r8, #8                                    
30006fe4:	e1a0100b 	mov	r1, fp                                        
30006fe8:	ebffe6eb 	bl	30000b9c <__umodsi3>                           
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if (                                                              
30006fec:	e250c000 	subs	ip, r0, #0                                   
      !_Heap_Is_aligned( _Heap_Alloc_area_of_block( free_block ), page_size )
    ) {                                                               
      (*printer)(                                                     
30006ff0:	11a00005 	movne	r0, r5                                      
30006ff4:	13a01001 	movne	r1, #1                                      
30006ff8:	159f2340 	ldrne	r2, [pc, #832]	; 30007340 <_Heap_Walk+0x54c>
30006ffc:	11a03008 	movne	r3, r8                                      
30007000:	1a0000be 	bne	30007300 <_Heap_Walk+0x50c>                   
    - HEAP_BLOCK_HEADER_SIZE);                                        
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & ~HEAP_PREV_BLOCK_USED;                
30007004:	e5983004 	ldr	r3, [r8, #4]                                  
30007008:	e3c33001 	bic	r3, r3, #1                                    
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
3000700c:	e0883003 	add	r3, r8, r3                                    
  block->size_and_flag = size | flag;                                 
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & HEAP_PREV_BLOCK_USED;                 
30007010:	e5933004 	ldr	r3, [r3, #4]                                  
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( _Heap_Is_used( free_block ) ) {                              
30007014:	e2133001 	ands	r3, r3, #1                                   
30007018:	e58d302c 	str	r3, [sp, #44]	; 0x2c                          
3000701c:	0a000009 	beq	30007048 <_Heap_Walk+0x254>                   
      (*printer)(                                                     
30007020:	e59f231c 	ldr	r2, [pc, #796]	; 30007344 <_Heap_Walk+0x550>  
30007024:	e1a00005 	mov	r0, r5                                        
30007028:	e3a01001 	mov	r1, #1                                        
3000702c:	e1a03008 	mov	r3, r8                                        
30007030:	e58dc01c 	str	ip, [sp, #28]                                 
30007034:	e1a0e00f 	mov	lr, pc                                        
30007038:	e12fff14 	bx	r4                                             
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
    return true;                                                      
  }                                                                   
                                                                      
  if ( !_Heap_Walk_check_control( source, printer, heap ) ) {         
    return false;                                                     
3000703c:	e59dc01c 	ldr	ip, [sp, #28]                                 
30007040:	e1a0800c 	mov	r8, ip                                        
30007044:	ea0000a6 	b	300072e4 <_Heap_Walk+0x4f0>                     
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( free_block->prev != prev_block ) {                           
30007048:	e598300c 	ldr	r3, [r8, #12]                                 
3000704c:	e153000a 	cmp	r3, sl                                        
30007050:	0a000008 	beq	30007078 <_Heap_Walk+0x284>                   
      (*printer)(                                                     
30007054:	e58d3000 	str	r3, [sp]                                      
30007058:	e1a00005 	mov	r0, r5                                        
3000705c:	e1a03008 	mov	r3, r8                                        
30007060:	e3a01001 	mov	r1, #1                                        
30007064:	e59f22dc 	ldr	r2, [pc, #732]	; 30007348 <_Heap_Walk+0x554>  
30007068:	e1a0e00f 	mov	lr, pc                                        
3000706c:	e12fff14 	bx	r4                                             
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
    return true;                                                      
  }                                                                   
                                                                      
  if ( !_Heap_Walk_check_control( source, printer, heap ) ) {         
    return false;                                                     
30007070:	e59d802c 	ldr	r8, [sp, #44]	; 0x2c                          
30007074:	ea00009a 	b	300072e4 <_Heap_Walk+0x4f0>                     
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    prev_block = free_block;                                          
    free_block = free_block->next;                                    
30007078:	e1a0a008 	mov	sl, r8                                        
3000707c:	e5988008 	ldr	r8, [r8, #8]                                  
  const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );
  const Heap_Block *const first_free_block = _Heap_Free_list_first( heap );
  const Heap_Block *prev_block = free_list_tail;                      
  const Heap_Block *free_block = first_free_block;                    
                                                                      
  while ( free_block != free_list_tail ) {                            
30007080:	e1580006 	cmp	r8, r6                                        
30007084:	1affffc8 	bne	30006fac <_Heap_Walk+0x1b8>                   
30007088:	ea000000 	b	30007090 <_Heap_Walk+0x29c>                     
        block->prev_size                                              
      );                                                              
    }                                                                 
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
3000708c:	e1a07008 	mov	r7, r8                                        
                                                                      
  return true;                                                        
}                                                                     
30007090:	e5973004 	ldr	r3, [r7, #4]                                  
  const Heap_Control *heap,                                           
  const Heap_Block *block                                             
)                                                                     
{                                                                     
  return (uintptr_t) block >= (uintptr_t) heap->first_block           
    && (uintptr_t) block <= (uintptr_t) heap->last_block;             
30007094:	e5962020 	ldr	r2, [r6, #32]                                 
    - HEAP_BLOCK_HEADER_SIZE);                                        
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & ~HEAP_PREV_BLOCK_USED;                
30007098:	e3c3a001 	bic	sl, r3, #1                                    
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
3000709c:	e087800a 	add	r8, r7, sl                                    
  const Heap_Control *heap,                                           
  const Heap_Block *block                                             
)                                                                     
{                                                                     
  return (uintptr_t) block >= (uintptr_t) heap->first_block           
    && (uintptr_t) block <= (uintptr_t) heap->last_block;             
300070a0:	e1520008 	cmp	r2, r8                                        
300070a4:	83a0b000 	movhi	fp, #0                                      
300070a8:	8a000003 	bhi	300070bc <_Heap_Walk+0x2c8>                   
300070ac:	e596b024 	ldr	fp, [r6, #36]	; 0x24                          
300070b0:	e15b0008 	cmp	fp, r8                                        
300070b4:	33a0b000 	movcc	fp, #0                                      
300070b8:	23a0b001 	movcs	fp, #1                                      
    bool const prev_used = _Heap_Is_prev_used( block );               
    Heap_Block *const next_block = _Heap_Block_at( block, block_size );
    uintptr_t const next_block_begin = (uintptr_t) next_block;        
    bool const is_not_last_block = block != last_block;               
                                                                      
    if ( !_Heap_Is_block_in_heap( heap, next_block ) ) {              
300070bc:	e21bb0ff 	ands	fp, fp, #255	; 0xff                          
300070c0:	1a000007 	bne	300070e4 <_Heap_Walk+0x2f0>                   
      (*printer)(                                                     
300070c4:	e58d8000 	str	r8, [sp]                                      
300070c8:	e1a00005 	mov	r0, r5                                        
300070cc:	e3a01001 	mov	r1, #1                                        
300070d0:	e59f2274 	ldr	r2, [pc, #628]	; 3000734c <_Heap_Walk+0x558>  
300070d4:	e1a03007 	mov	r3, r7                                        
300070d8:	e1a0e00f 	mov	lr, pc                                        
300070dc:	e12fff14 	bx	r4                                             
300070e0:	ea00005e 	b	30007260 <_Heap_Walk+0x46c>                     
    uintptr_t const block_begin = (uintptr_t) block;                  
    uintptr_t const block_size = _Heap_Block_size( block );           
    bool const prev_used = _Heap_Is_prev_used( block );               
    Heap_Block *const next_block = _Heap_Block_at( block, block_size );
    uintptr_t const next_block_begin = (uintptr_t) next_block;        
    bool const is_not_last_block = block != last_block;               
300070e4:	e59d2028 	ldr	r2, [sp, #40]	; 0x28                          
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(                           
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return (value % alignment) == 0;                                    
300070e8:	e1a0000a 	mov	r0, sl                                        
300070ec:	e1a01009 	mov	r1, r9                                        
300070f0:	e057b002 	subs	fp, r7, r2                                   
300070f4:	13a0b001 	movne	fp, #1                                      
300070f8:	e58d301c 	str	r3, [sp, #28]                                 
300070fc:	ebffe6a6 	bl	30000b9c <__umodsi3>                           
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( !_Heap_Is_aligned( block_size, page_size ) && is_not_last_block ) {
30007100:	e3500000 	cmp	r0, #0                                        
30007104:	e59d301c 	ldr	r3, [sp, #28]                                 
30007108:	0a000005 	beq	30007124 <_Heap_Walk+0x330>                   
3000710c:	e35b0000 	cmp	fp, #0                                        
      (*printer)(                                                     
30007110:	158da000 	strne	sl, [sp]                                    
30007114:	11a00005 	movne	r0, r5                                      
30007118:	13a01001 	movne	r1, #1                                      
3000711c:	159f222c 	ldrne	r2, [pc, #556]	; 30007350 <_Heap_Walk+0x55c>
30007120:	1a000014 	bne	30007178 <_Heap_Walk+0x384>                   
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( block_size < min_block_size && is_not_last_block ) {         
30007124:	e59dc024 	ldr	ip, [sp, #36]	; 0x24                          
30007128:	e15a000c 	cmp	sl, ip                                        
3000712c:	2a000009 	bcs	30007158 <_Heap_Walk+0x364>                   
30007130:	e35b0000 	cmp	fp, #0                                        
30007134:	0a000007 	beq	30007158 <_Heap_Walk+0x364>                   
      (*printer)(                                                     
30007138:	e88d1400 	stm	sp, {sl, ip}                                  
3000713c:	e1a00005 	mov	r0, r5                                        
30007140:	e3a01001 	mov	r1, #1                                        
30007144:	e59f2208 	ldr	r2, [pc, #520]	; 30007354 <_Heap_Walk+0x560>  
30007148:	e1a03007 	mov	r3, r7                                        
3000714c:	e1a0e00f 	mov	lr, pc                                        
30007150:	e12fff14 	bx	r4                                             
30007154:	ea00006b 	b	30007308 <_Heap_Walk+0x514>                     
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( next_block_begin <= block_begin && is_not_last_block ) {     
30007158:	e1580007 	cmp	r8, r7                                        
3000715c:	8a000009 	bhi	30007188 <_Heap_Walk+0x394>                   
30007160:	e35b0000 	cmp	fp, #0                                        
30007164:	0a000007 	beq	30007188 <_Heap_Walk+0x394>                   
      (*printer)(                                                     
30007168:	e59f21e8 	ldr	r2, [pc, #488]	; 30007358 <_Heap_Walk+0x564>  
3000716c:	e58d8000 	str	r8, [sp]                                      
30007170:	e1a00005 	mov	r0, r5                                        
30007174:	e3a01001 	mov	r1, #1                                        
30007178:	e1a03007 	mov	r3, r7                                        
3000717c:	e1a0e00f 	mov	lr, pc                                        
30007180:	e12fff14 	bx	r4                                             
30007184:	ea00005f 	b	30007308 <_Heap_Walk+0x514>                     
  block->size_and_flag = size | flag;                                 
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & HEAP_PREV_BLOCK_USED;                 
30007188:	e203b001 	and	fp, r3, #1                                    
3000718c:	e5983004 	ldr	r3, [r8, #4]                                  
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( !_Heap_Is_prev_used( next_block ) ) {                        
30007190:	e3130001 	tst	r3, #1                                        
30007194:	1a00003b 	bne	30007288 <_Heap_Walk+0x494>                   
    false,                                                            
    "block 0x%08x: size %u, prev 0x%08x%s, next 0x%08x%s\n",          
    block,                                                            
    block_size,                                                       
    block->prev,                                                      
    block->prev == first_free_block ?                                 
30007198:	e597200c 	ldr	r2, [r7, #12]                                 
  Heap_Block *const last_free_block = _Heap_Free_list_last( heap );   
  bool const prev_used = _Heap_Is_prev_used( block );                 
  uintptr_t const block_size = _Heap_Block_size( block );             
  Heap_Block *const next_block = _Heap_Block_at( block, block_size ); 
                                                                      
  (*printer)(                                                         
3000719c:	e5963008 	ldr	r3, [r6, #8]                                  
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
300071a0:	e596100c 	ldr	r1, [r6, #12]                                 
  Heap_Block *const last_free_block = _Heap_Free_list_last( heap );   
  bool const prev_used = _Heap_Is_prev_used( block );                 
  uintptr_t const block_size = _Heap_Block_size( block );             
  Heap_Block *const next_block = _Heap_Block_at( block, block_size ); 
                                                                      
  (*printer)(                                                         
300071a4:	e1520003 	cmp	r2, r3                                        
300071a8:	059f01ac 	ldreq	r0, [pc, #428]	; 3000735c <_Heap_Walk+0x568>
300071ac:	0a000003 	beq	300071c0 <_Heap_Walk+0x3cc>                   
    block,                                                            
    block_size,                                                       
    block->prev,                                                      
    block->prev == first_free_block ?                                 
      " (= first free)"                                               
        : (block->prev == free_list_head ? " (= head)" : ""),         
300071b0:	e59f31a8 	ldr	r3, [pc, #424]	; 30007360 <_Heap_Walk+0x56c>  
300071b4:	e1520006 	cmp	r2, r6                                        
300071b8:	e59f01a4 	ldr	r0, [pc, #420]	; 30007364 <_Heap_Walk+0x570>  
300071bc:	01a00003 	moveq	r0, r3                                      
    block->next,                                                      
    block->next == last_free_block ?                                  
300071c0:	e5973008 	ldr	r3, [r7, #8]                                  
  Heap_Block *const last_free_block = _Heap_Free_list_last( heap );   
  bool const prev_used = _Heap_Is_prev_used( block );                 
  uintptr_t const block_size = _Heap_Block_size( block );             
  Heap_Block *const next_block = _Heap_Block_at( block, block_size ); 
                                                                      
  (*printer)(                                                         
300071c4:	e1530001 	cmp	r3, r1                                        
300071c8:	059f1198 	ldreq	r1, [pc, #408]	; 30007368 <_Heap_Walk+0x574>
300071cc:	0a000003 	beq	300071e0 <_Heap_Walk+0x3ec>                   
      " (= first free)"                                               
        : (block->prev == free_list_head ? " (= head)" : ""),         
    block->next,                                                      
    block->next == last_free_block ?                                  
      " (= last free)"                                                
        : (block->next == free_list_tail ? " (= tail)" : "")          
300071d0:	e59fc194 	ldr	ip, [pc, #404]	; 3000736c <_Heap_Walk+0x578>  
300071d4:	e1530006 	cmp	r3, r6                                        
300071d8:	e59f1184 	ldr	r1, [pc, #388]	; 30007364 <_Heap_Walk+0x570>  
300071dc:	01a0100c 	moveq	r1, ip                                      
  Heap_Block *const last_free_block = _Heap_Free_list_last( heap );   
  bool const prev_used = _Heap_Is_prev_used( block );                 
  uintptr_t const block_size = _Heap_Block_size( block );             
  Heap_Block *const next_block = _Heap_Block_at( block, block_size ); 
                                                                      
  (*printer)(                                                         
300071e0:	e58d2004 	str	r2, [sp, #4]                                  
300071e4:	e58d0008 	str	r0, [sp, #8]                                  
300071e8:	e58d300c 	str	r3, [sp, #12]                                 
300071ec:	e58d1010 	str	r1, [sp, #16]                                 
300071f0:	e1a03007 	mov	r3, r7                                        
300071f4:	e58da000 	str	sl, [sp]                                      
300071f8:	e1a00005 	mov	r0, r5                                        
300071fc:	e3a01000 	mov	r1, #0                                        
30007200:	e59f2168 	ldr	r2, [pc, #360]	; 30007370 <_Heap_Walk+0x57c>  
30007204:	e1a0e00f 	mov	lr, pc                                        
30007208:	e12fff14 	bx	r4                                             
    block->next == last_free_block ?                                  
      " (= last free)"                                                
        : (block->next == free_list_tail ? " (= tail)" : "")          
  );                                                                  
                                                                      
  if ( block_size != next_block->prev_size ) {                        
3000720c:	e5983000 	ldr	r3, [r8]                                      
30007210:	e15a0003 	cmp	sl, r3                                        
30007214:	0a000009 	beq	30007240 <_Heap_Walk+0x44c>                   
    (*printer)(                                                       
30007218:	e58d3004 	str	r3, [sp, #4]                                  
3000721c:	e58da000 	str	sl, [sp]                                      
30007220:	e58d8008 	str	r8, [sp, #8]                                  
30007224:	e1a00005 	mov	r0, r5                                        
30007228:	e3a01001 	mov	r1, #1                                        
3000722c:	e59f2140 	ldr	r2, [pc, #320]	; 30007374 <_Heap_Walk+0x580>  
30007230:	e1a03007 	mov	r3, r7                                        
30007234:	e1a0e00f 	mov	lr, pc                                        
30007238:	e12fff14 	bx	r4                                             
3000723c:	ea000031 	b	30007308 <_Heap_Walk+0x514>                     
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !prev_used ) {                                                 
30007240:	e35b0000 	cmp	fp, #0                                        
30007244:	1a000007 	bne	30007268 <_Heap_Walk+0x474>                   
    (*printer)(                                                       
30007248:	e59f2128 	ldr	r2, [pc, #296]	; 30007378 <_Heap_Walk+0x584>  
3000724c:	e1a00005 	mov	r0, r5                                        
30007250:	e3a01001 	mov	r1, #1                                        
30007254:	e1a03007 	mov	r3, r7                                        
30007258:	e1a0e00f 	mov	lr, pc                                        
3000725c:	e12fff14 	bx	r4                                             
      return false;                                                   
    }                                                                 
                                                                      
    if ( !_Heap_Is_prev_used( next_block ) ) {                        
      if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) {
        return false;                                                 
30007260:	e1a0800b 	mov	r8, fp                                        
30007264:	ea00001e 	b	300072e4 <_Heap_Walk+0x4f0>                     
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
30007268:	e5963008 	ldr	r3, [r6, #8]                                  
3000726c:	ea000002 	b	3000727c <_Heap_Walk+0x488>                     
{                                                                     
  const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );
  const Heap_Block *free_block = _Heap_Free_list_first( heap );       
                                                                      
  while ( free_block != free_list_tail ) {                            
    if ( free_block == block ) {                                      
30007270:	e1530007 	cmp	r3, r7                                        
30007274:	0a000016 	beq	300072d4 <_Heap_Walk+0x4e0>                   
      return true;                                                    
    }                                                                 
    free_block = free_block->next;                                    
30007278:	e5933008 	ldr	r3, [r3, #8]                                  
)                                                                     
{                                                                     
  const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );
  const Heap_Block *free_block = _Heap_Free_list_first( heap );       
                                                                      
  while ( free_block != free_list_tail ) {                            
3000727c:	e1530006 	cmp	r3, r6                                        
30007280:	1afffffa 	bne	30007270 <_Heap_Walk+0x47c>                   
30007284:	ea000019 	b	300072f0 <_Heap_Walk+0x4fc>                     
                                                                      
    if ( !_Heap_Is_prev_used( next_block ) ) {                        
      if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) {
        return false;                                                 
      }                                                               
    } else if (prev_used) {                                           
30007288:	e35b0000 	cmp	fp, #0                                        
3000728c:	0a000007 	beq	300072b0 <_Heap_Walk+0x4bc>                   
      (*printer)(                                                     
30007290:	e58da000 	str	sl, [sp]                                      
30007294:	e1a00005 	mov	r0, r5                                        
30007298:	e3a01000 	mov	r1, #0                                        
3000729c:	e59f20d8 	ldr	r2, [pc, #216]	; 3000737c <_Heap_Walk+0x588>  
300072a0:	e1a03007 	mov	r3, r7                                        
300072a4:	e1a0e00f 	mov	lr, pc                                        
300072a8:	e12fff14 	bx	r4                                             
300072ac:	ea000008 	b	300072d4 <_Heap_Walk+0x4e0>                     
        "block 0x%08x: size %u\n",                                    
        block,                                                        
        block_size                                                    
      );                                                              
    } else {                                                          
      (*printer)(                                                     
300072b0:	e58da000 	str	sl, [sp]                                      
300072b4:	e5973000 	ldr	r3, [r7]                                      
300072b8:	e1a00005 	mov	r0, r5                                        
300072bc:	e58d3004 	str	r3, [sp, #4]                                  
300072c0:	e1a0100b 	mov	r1, fp                                        
300072c4:	e59f20b4 	ldr	r2, [pc, #180]	; 30007380 <_Heap_Walk+0x58c>  
300072c8:	e1a03007 	mov	r3, r7                                        
300072cc:	e1a0e00f 	mov	lr, pc                                        
300072d0:	e12fff14 	bx	r4                                             
        block->prev_size                                              
      );                                                              
    }                                                                 
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
300072d4:	e59d2020 	ldr	r2, [sp, #32]                                 
300072d8:	e1580002 	cmp	r8, r2                                        
300072dc:	1affff6a 	bne	3000708c <_Heap_Walk+0x298>                   
  Heap_Block *block = first_block;                                    
  Heap_Walk_printer printer = dump ?                                  
    _Heap_Walk_print : _Heap_Walk_print_nothing;                      
                                                                      
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
    return true;                                                      
300072e0:	e3a08001 	mov	r8, #1                                        
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
300072e4:	e1a00008 	mov	r0, r8                                        
300072e8:	e28dd030 	add	sp, sp, #48	; 0x30                            
300072ec:	e8bd8ff0 	pop	{r4, r5, r6, r7, r8, r9, sl, fp, pc}          
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Walk_is_in_free_list( heap, block ) ) {                 
    (*printer)(                                                       
300072f0:	e59f208c 	ldr	r2, [pc, #140]	; 30007384 <_Heap_Walk+0x590>  
300072f4:	e1a00005 	mov	r0, r5                                        
300072f8:	e3a01001 	mov	r1, #1                                        
300072fc:	e1a03007 	mov	r3, r7                                        
30007300:	e1a0e00f 	mov	lr, pc                                        
30007304:	e12fff14 	bx	r4                                             
      return false;                                                   
    }                                                                 
                                                                      
    if ( !_Heap_Is_prev_used( next_block ) ) {                        
      if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) {
        return false;                                                 
30007308:	e3a08000 	mov	r8, #0                                        
3000730c:	eafffff4 	b	300072e4 <_Heap_Walk+0x4f0>                     
                                                                      

30006214 <_Internal_error_Occurred>: bool is_internal, Internal_errors_t the_error ) { _Internal_errors_What_happened.the_source = the_source;
30006214:	e59f3038 	ldr	r3, [pc, #56]	; 30006254 <_Internal_error_Occurred+0x40>
void _Internal_error_Occurred(                                        
  Internal_errors_Source  the_source,                                 
  bool                    is_internal,                                
  Internal_errors_t       the_error                                   
)                                                                     
{                                                                     
30006218:	e20110ff 	and	r1, r1, #255	; 0xff                           
3000621c:	e52de004 	push	{lr}		; (str lr, [sp, #-4]!)                 
                                                                      
  _Internal_errors_What_happened.the_source  = the_source;            
30006220:	e5830000 	str	r0, [r3]                                      
  _Internal_errors_What_happened.is_internal = is_internal;           
30006224:	e5c31004 	strb	r1, [r3, #4]                                 
  _Internal_errors_What_happened.the_error   = the_error;             
30006228:	e5832008 	str	r2, [r3, #8]                                  
void _Internal_error_Occurred(                                        
  Internal_errors_Source  the_source,                                 
  bool                    is_internal,                                
  Internal_errors_t       the_error                                   
)                                                                     
{                                                                     
3000622c:	e1a04002 	mov	r4, r2                                        
                                                                      
  _Internal_errors_What_happened.the_source  = the_source;            
  _Internal_errors_What_happened.is_internal = is_internal;           
  _Internal_errors_What_happened.the_error   = the_error;             
                                                                      
  _User_extensions_Fatal( the_source, is_internal, the_error );       
30006230:	eb0006fa 	bl	30007e20 <_User_extensions_Fatal>              
                                                                      
RTEMS_INLINE_ROUTINE void _System_state_Set (                         
  System_state_Codes state                                            
)                                                                     
{                                                                     
  _System_state_Current = state;                                      
30006234:	e59f301c 	ldr	r3, [pc, #28]	; 30006258 <_Internal_error_Occurred+0x44><== NOT EXECUTED
30006238:	e3a02005 	mov	r2, #5                                        <== NOT EXECUTED
3000623c:	e5832000 	str	r2, [r3]                                      <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )                  
{                                                                     
  uint32_t arm_switch_reg;                                            
  uint32_t level;                                                     
                                                                      
  asm volatile (                                                      
30006240:	e10f2000 	mrs	r2, CPSR                                      <== NOT EXECUTED
30006244:	e3823080 	orr	r3, r2, #128	; 0x80                           <== NOT EXECUTED
30006248:	e129f003 	msr	CPSR_fc, r3                                   <== NOT EXECUTED
                                                                      
  _System_state_Set( SYSTEM_STATE_FAILED );                           
                                                                      
  _CPU_Fatal_halt( the_error );                                       
3000624c:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
30006250:	eafffffe 	b	30006250 <_Internal_error_Occurred+0x3c>        <== NOT EXECUTED
                                                                      

30020828 <_POSIX_signals_Unblock_thread>: bool _POSIX_signals_Unblock_thread( Thread_Control *the_thread, int signo, siginfo_t *info ) {
30020828:	e92d41f0 	push	{r4, r5, r6, r7, r8, lr}                     
                                                                      
  /*                                                                  
   *  Is the thread is specifically waiting for a signal?             
   */                                                                 
                                                                      
  if ( _States_Is_interruptible_signal( the_thread->current_state ) ) {
3002082c:	e5903010 	ldr	r3, [r0, #16]                                 
30020830:	e59f50f8 	ldr	r5, [pc, #248]	; 30020930 <_POSIX_signals_Unblock_thread+0x108>
30020834:	e59f80f4 	ldr	r8, [pc, #244]	; 30020930 <_POSIX_signals_Unblock_thread+0x108>
30020838:	e0035005 	and	r5, r3, r5                                    
3002083c:	e241c001 	sub	ip, r1, #1                                    
30020840:	e3a06001 	mov	r6, #1                                        
30020844:	e1550008 	cmp	r5, r8                                        
bool _POSIX_signals_Unblock_thread(                                   
  Thread_Control  *the_thread,                                        
  int              signo,                                             
  siginfo_t       *info                                               
)                                                                     
{                                                                     
30020848:	e1a04000 	mov	r4, r0                                        
  POSIX_API_Control  *api;                                            
  sigset_t            mask;                                           
  siginfo_t          *the_info = NULL;                                
                                                                      
  api = the_thread->API_Extensions[ THREAD_API_POSIX ];               
3002084c:	e5907108 	ldr	r7, [r0, #264]	; 0x108                        
30020850:	e1a0cc16 	lsl	ip, r6, ip                                    
                                                                      
  /*                                                                  
   *  Is the thread is specifically waiting for a signal?             
   */                                                                 
                                                                      
  if ( _States_Is_interruptible_signal( the_thread->current_state ) ) {
30020854:	1a000013 	bne	300208a8 <_POSIX_signals_Unblock_thread+0x80> 
                                                                      
    if ( (the_thread->Wait.option & mask) || (~api->signals_blocked & mask) ) {
30020858:	e5903030 	ldr	r3, [r0, #48]	; 0x30                          
3002085c:	e11c0003 	tst	ip, r3                                        
30020860:	1a000002 	bne	30020870 <_POSIX_signals_Unblock_thread+0x48> 
30020864:	e59750d0 	ldr	r5, [r7, #208]	; 0xd0                         
30020868:	e1dc5005 	bics	r5, ip, r5                                   
3002086c:	0a00002d 	beq	30020928 <_POSIX_signals_Unblock_thread+0x100>
      the_thread->Wait.return_code = EINTR;                           
30020870:	e3a03004 	mov	r3, #4                                        
30020874:	e5843034 	str	r3, [r4, #52]	; 0x34                          
                                                                      
      the_info = (siginfo_t *) the_thread->Wait.return_argument;      
30020878:	e5943028 	ldr	r3, [r4, #40]	; 0x28                          
                                                                      
      if ( !info ) {                                                  
3002087c:	e3520000 	cmp	r2, #0                                        
        the_info->si_signo = signo;                                   
30020880:	05831000 	streq	r1, [r3]                                    
        the_info->si_code = SI_USER;                                  
30020884:	03a01001 	moveq	r1, #1                                      
        the_info->si_value.sival_int = 0;                             
      } else {                                                        
        *the_info = *info;                                            
30020888:	18920007 	ldmne	r2, {r0, r1, r2}                            
                                                                      
      the_info = (siginfo_t *) the_thread->Wait.return_argument;      
                                                                      
      if ( !info ) {                                                  
        the_info->si_signo = signo;                                   
        the_info->si_code = SI_USER;                                  
3002088c:	05831004 	streq	r1, [r3, #4]                                
        the_info->si_value.sival_int = 0;                             
      } else {                                                        
        *the_info = *info;                                            
30020890:	18830007 	stmne	r3, {r0, r1, r2}                            
      the_info = (siginfo_t *) the_thread->Wait.return_argument;      
                                                                      
      if ( !info ) {                                                  
        the_info->si_signo = signo;                                   
        the_info->si_code = SI_USER;                                  
        the_info->si_value.sival_int = 0;                             
30020894:	05832008 	streq	r2, [r3, #8]                                
      } else {                                                        
        *the_info = *info;                                            
      }                                                               
                                                                      
      _Thread_queue_Extract_with_proxy( the_thread );                 
30020898:	e1a00004 	mov	r0, r4                                        
3002089c:	ebffaf72 	bl	3000c66c <_Thread_queue_Extract_with_proxy>    
      return true;                                                    
300208a0:	e3a05001 	mov	r5, #1                                        
300208a4:	ea00001f 	b	30020928 <_POSIX_signals_Unblock_thread+0x100>  
  }                                                                   
                                                                      
  /*                                                                  
   *  Thread is not waiting due to a sigwait.                         
   */                                                                 
  if ( ~api->signals_blocked & mask ) {                               
300208a8:	e59750d0 	ldr	r5, [r7, #208]	; 0xd0                         
300208ac:	e1dc5005 	bics	r5, ip, r5                                   
300208b0:	0a00001c 	beq	30020928 <_POSIX_signals_Unblock_thread+0x100>
     *      it is not blocked, THEN                                   
     *        we need to dispatch at the end of this ISR.             
     *    + Any other combination, do nothing.                        
     */                                                               
                                                                      
    if ( _States_Is_interruptible_by_signal( the_thread->current_state ) ) {
300208b4:	e2135201 	ands	r5, r3, #268435456	; 0x10000000              
300208b8:	0a000010 	beq	30020900 <_POSIX_signals_Unblock_thread+0xd8> 
 */                                                                   
RTEMS_INLINE_ROUTINE bool _States_Is_waiting_on_thread_queue (        
  States_Control the_states                                           
)                                                                     
{                                                                     
   return (the_states & STATES_WAITING_ON_THREAD_QUEUE);              
300208bc:	e59f5070 	ldr	r5, [pc, #112]	; 30020934 <_POSIX_signals_Unblock_thread+0x10c>
      the_thread->Wait.return_code = EINTR;                           
300208c0:	e3a02004 	mov	r2, #4                                        
300208c4:	e0035005 	and	r5, r3, r5                                    
      /*                                                              
       *  In pthread_cond_wait, a thread will be blocking on a thread 
       *  queue, but is also interruptible by a POSIX signal.         
       */                                                             
	if ( _States_Is_waiting_on_thread_queue(the_thread->current_state) ) 
300208c8:	e3550000 	cmp	r5, #0                                        
     *        we need to dispatch at the end of this ISR.             
     *    + Any other combination, do nothing.                        
     */                                                               
                                                                      
    if ( _States_Is_interruptible_by_signal( the_thread->current_state ) ) {
      the_thread->Wait.return_code = EINTR;                           
300208cc:	e5802034 	str	r2, [r0, #52]	; 0x34                          
      /*                                                              
       *  In pthread_cond_wait, a thread will be blocking on a thread 
       *  queue, but is also interruptible by a POSIX signal.         
       */                                                             
	if ( _States_Is_waiting_on_thread_queue(the_thread->current_state) ) 
300208d0:	0a000002 	beq	300208e0 <_POSIX_signals_Unblock_thread+0xb8> 
	  _Thread_queue_Extract_with_proxy( the_thread );                    
300208d4:	ebffaf64 	bl	3000c66c <_Thread_queue_Extract_with_proxy>    <== NOT EXECUTED
    } else if ( the_thread->current_state == STATES_READY ) {         
      if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
	_Thread_Dispatch_necessary = true;                                   
    }                                                                 
  }                                                                   
  return false;                                                       
300208d8:	e3a05000 	mov	r5, #0                                        <== NOT EXECUTED
300208dc:	ea000011 	b	30020928 <_POSIX_signals_Unblock_thread+0x100>  <== NOT EXECUTED
       *  In pthread_cond_wait, a thread will be blocking on a thread 
       *  queue, but is also interruptible by a POSIX signal.         
       */                                                             
	if ( _States_Is_waiting_on_thread_queue(the_thread->current_state) ) 
	  _Thread_queue_Extract_with_proxy( the_thread );                    
	else if ( _States_Is_delaying(the_thread->current_state) ) {         
300208e0:	e2133008 	ands	r3, r3, #8                                   
300208e4:	0a00000e 	beq	30020924 <_POSIX_signals_Unblock_thread+0xfc> 
	    (void) _Watchdog_Remove( &the_thread->Timer );                   
300208e8:	e2800048 	add	r0, r0, #72	; 0x48                            
300208ec:	ebffb1f9 	bl	3000d0d8 <_Watchdog_Remove>                    
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unblock (                           
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
  _Thread_Clear_state( the_thread, STATES_BLOCKED );                  
300208f0:	e1a00004 	mov	r0, r4                                        
300208f4:	e59f103c 	ldr	r1, [pc, #60]	; 30020938 <_POSIX_signals_Unblock_thread+0x110>
300208f8:	ebffacba 	bl	3000bbe8 <_Thread_Clear_state>                 
300208fc:	ea000009 	b	30020928 <_POSIX_signals_Unblock_thread+0x100>  
	    _Thread_Unblock( the_thread );                                   
	  }                                                                  
                                                                      
    } else if ( the_thread->current_state == STATES_READY ) {         
30020900:	e3530000 	cmp	r3, #0                                        
30020904:	1a000007 	bne	30020928 <_POSIX_signals_Unblock_thread+0x100>
      if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
30020908:	e59f202c 	ldr	r2, [pc, #44]	; 3002093c <_POSIX_signals_Unblock_thread+0x114>
3002090c:	e5925000 	ldr	r5, [r2]                                      
30020910:	e3550000 	cmp	r5, #0                                        
30020914:	0a000003 	beq	30020928 <_POSIX_signals_Unblock_thread+0x100>
30020918:	e5921004 	ldr	r1, [r2, #4]                                  
3002091c:	e1500001 	cmp	r0, r1                                        
	_Thread_Dispatch_necessary = true;                                   
30020920:	05c26010 	strbeq	r6, [r2, #16]                              
    }                                                                 
  }                                                                   
  return false;                                                       
30020924:	e1a05003 	mov	r5, r3                                        
}                                                                     
30020928:	e1a00005 	mov	r0, r5                                        
3002092c:	e8bd81f0 	pop	{r4, r5, r6, r7, r8, pc}                      
                                                                      

30014118 <_Timer_server_Body>: * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) {
30014118:	e92d4ff0 	push	{r4, r5, r6, r7, r8, r9, sl, fp, lr}         
3001411c:	e24dd018 	sub	sp, sp, #24                                   
30014120:	e28db00c 	add	fp, sp, #12                                   
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  the_chain->first          = _Chain_Tail(the_chain);                 
  the_chain->permanent_null = NULL;                                   
30014124:	e3a03000 	mov	r3, #0                                        
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
30014128:	e28ba004 	add	sl, fp, #4                                    
3001412c:	e28d7004 	add	r7, sp, #4                                    
30014130:	e1a04000 	mov	r4, r0                                        
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  the_chain->first          = _Chain_Tail(the_chain);                 
30014134:	e58da00c 	str	sl, [sp, #12]                                 
  the_chain->permanent_null = NULL;                                   
30014138:	e58d3010 	str	r3, [sp, #16]                                 
  the_chain->last           = _Chain_Head(the_chain);                 
3001413c:	e58db014 	str	fp, [sp, #20]                                 
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
   return (Chain_Node *) &the_chain->permanent_null;                  
30014140:	e1a0500d 	mov	r5, sp                                        
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  the_chain->first          = _Chain_Tail(the_chain);                 
30014144:	e58d7000 	str	r7, [sp]                                      
  the_chain->permanent_null = NULL;                                   
30014148:	e98d2008 	stmib	sp, {r3, sp}                                
   */                                                                 
  Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;      
                                                                      
  watchdogs->last_snapshot = snapshot;                                
                                                                      
  _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );  
3001414c:	e2809030 	add	r9, r0, #48	; 0x30                            
{                                                                     
  /*                                                                  
   *  Afterwards all timer inserts are directed to this chain and the interval
   *  and TOD chains will be no more modified by other parties.       
   */                                                                 
  ts->insert_chain = insert_chain;                                    
30014150:	e584b078 	str	fp, [r4, #120]	; 0x78                         
     /*                                                               
      *  The current TOD is before the last TOD which indicates that  
      *  TOD has been set backwards.                                  
      */                                                              
     delta = last_snapshot - snapshot;                                
     _Watchdog_Adjust( &watchdogs->Chain, WATCHDOG_BACKWARD, delta ); 
30014154:	e2848068 	add	r8, r4, #104	; 0x68                           
static void _Timer_server_Process_interval_watchdogs(                 
  Timer_server_Watchdogs *watchdogs,                                  
  Chain_Control *fire_chain                                           
)                                                                     
{                                                                     
  Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot;            
30014158:	e59f2150 	ldr	r2, [pc, #336]	; 300142b0 <_Timer_server_Body+0x198>
   */                                                                 
  Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;      
                                                                      
  watchdogs->last_snapshot = snapshot;                                
                                                                      
  _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );  
3001415c:	e1a00009 	mov	r0, r9                                        
static void _Timer_server_Process_interval_watchdogs(                 
  Timer_server_Watchdogs *watchdogs,                                  
  Chain_Control *fire_chain                                           
)                                                                     
{                                                                     
  Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot;            
30014160:	e5923000 	ldr	r3, [r2]                                      
                                                                      
  /*                                                                  
   *  We assume adequate unsigned arithmetic here.                    
   */                                                                 
  Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;      
30014164:	e594103c 	ldr	r1, [r4, #60]	; 0x3c                          
                                                                      
  watchdogs->last_snapshot = snapshot;                                
                                                                      
  _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );  
30014168:	e1a02005 	mov	r2, r5                                        
  /*                                                                  
   *  We assume adequate unsigned arithmetic here.                    
   */                                                                 
  Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;      
                                                                      
  watchdogs->last_snapshot = snapshot;                                
3001416c:	e584303c 	str	r3, [r4, #60]	; 0x3c                          
                                                                      
  _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );  
30014170:	e0611003 	rsb	r1, r1, r3                                    
30014174:	eb0010dd 	bl	300184f0 <_Watchdog_Adjust_to_chain>           
static void _Timer_server_Process_tod_watchdogs(                      
  Timer_server_Watchdogs *watchdogs,                                  
  Chain_Control *fire_chain                                           
)                                                                     
{                                                                     
  Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
30014178:	e59f3134 	ldr	r3, [pc, #308]	; 300142b4 <_Timer_server_Body+0x19c>
  Watchdog_Interval last_snapshot = watchdogs->last_snapshot;         
3001417c:	e5942074 	ldr	r2, [r4, #116]	; 0x74                         
static void _Timer_server_Process_tod_watchdogs(                      
  Timer_server_Watchdogs *watchdogs,                                  
  Chain_Control *fire_chain                                           
)                                                                     
{                                                                     
  Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
30014180:	e5936000 	ldr	r6, [r3]                                      
  /*                                                                  
   *  Process the seconds chain.  Start by checking that the Time     
   *  of Day (TOD) has not been set backwards.  If it has then        
   *  we want to adjust the watchdogs->Chain to indicate this.        
   */                                                                 
  if ( snapshot > last_snapshot ) {                                   
30014184:	e1560002 	cmp	r6, r2                                        
30014188:	9a000004 	bls	300141a0 <_Timer_server_Body+0x88>            
    /*                                                                
     *  This path is for normal forward movement and cases where the  
     *  TOD has been set forward.                                     
     */                                                               
    delta = snapshot - last_snapshot;                                 
    _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );
3001418c:	e0621006 	rsb	r1, r2, r6                                    
30014190:	e1a00008 	mov	r0, r8                                        
30014194:	e1a02005 	mov	r2, r5                                        
30014198:	eb0010d4 	bl	300184f0 <_Watchdog_Adjust_to_chain>           
3001419c:	ea000003 	b	300141b0 <_Timer_server_Body+0x98>              
     /*                                                               
      *  The current TOD is before the last TOD which indicates that  
      *  TOD has been set backwards.                                  
      */                                                              
     delta = last_snapshot - snapshot;                                
     _Watchdog_Adjust( &watchdogs->Chain, WATCHDOG_BACKWARD, delta ); 
300141a0:	31a00008 	movcc	r0, r8                                      
300141a4:	33a01001 	movcc	r1, #1                                      
300141a8:	30662002 	rsbcc	r2, r6, r2                                  
300141ac:	3b0010a7 	blcc	30018450 <_Watchdog_Adjust>                  
  }                                                                   
                                                                      
  watchdogs->last_snapshot = snapshot;                                
300141b0:	e5846074 	str	r6, [r4, #116]	; 0x74                         
}                                                                     
                                                                      
static void _Timer_server_Process_insertions( Timer_server_Control *ts )
{                                                                     
  while ( true ) {                                                    
    Timer_Control *timer = (Timer_Control *) _Chain_Get( ts->insert_chain );
300141b4:	e5940078 	ldr	r0, [r4, #120]	; 0x78                         
300141b8:	eb000298 	bl	30014c20 <_Chain_Get>                          
                                                                      
    if ( timer == NULL ) {                                            
300141bc:	e2506000 	subs	r6, r0, #0                                   
300141c0:	0a000009 	beq	300141ec <_Timer_server_Body+0xd4>            
static void _Timer_server_Insert_timer(                               
  Timer_server_Control *ts,                                           
  Timer_Control *timer                                                
)                                                                     
{                                                                     
  if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {                 
300141c4:	e5963038 	ldr	r3, [r6, #56]	; 0x38                          
300141c8:	e3530001 	cmp	r3, #1                                        
    _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
300141cc:	01a00009 	moveq	r0, r9                                      
static void _Timer_server_Insert_timer(                               
  Timer_server_Control *ts,                                           
  Timer_Control *timer                                                
)                                                                     
{                                                                     
  if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {                 
300141d0:	0a000002 	beq	300141e0 <_Timer_server_Body+0xc8>            
    _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
  } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) {       
300141d4:	e3530003 	cmp	r3, #3                                        
300141d8:	1afffff5 	bne	300141b4 <_Timer_server_Body+0x9c>            
    _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker );     
300141dc:	e1a00008 	mov	r0, r8                                        
300141e0:	e2861010 	add	r1, r6, #16                                   
300141e4:	eb0010ec 	bl	3001859c <_Watchdog_Insert>                    
300141e8:	eafffff1 	b	300141b4 <_Timer_server_Body+0x9c>              
     *  of zero it will be processed in the next iteration of the timer server
     *  body loop.                                                    
     */                                                               
    _Timer_server_Process_insertions( ts );                           
                                                                      
    _ISR_Disable( level );                                            
300141ec:	ebffff97 	bl	30014050 <arm_interrupt_disable>               
    if ( _Chain_Is_empty( insert_chain ) ) {                          
300141f0:	e59d300c 	ldr	r3, [sp, #12]                                 
300141f4:	e153000a 	cmp	r3, sl                                        
300141f8:	1a000006 	bne	30014218 <_Timer_server_Body+0x100>           
      ts->insert_chain = NULL;                                        
300141fc:	e5846078 	str	r6, [r4, #120]	; 0x78                         
30014200:	e129f000 	msr	CPSR_fc, r0                                   
  _Chain_Initialize_empty( &fire_chain );                             
                                                                      
  while ( true ) {                                                    
    _Timer_server_Get_watchdogs_that_fire_now( ts, &insert_chain, &fire_chain );
                                                                      
    if ( !_Chain_Is_empty( &fire_chain ) ) {                          
30014204:	e59d3000 	ldr	r3, [sp]                                      
30014208:	e1530007 	cmp	r3, r7                                        
)                                                                     
{                                                                     
  if ( !_Chain_Is_empty(the_chain))                                   
    return _Chain_Get_first_unprotected(the_chain);                   
  else                                                                
    return NULL;                                                      
3001420c:	13a06000 	movne	r6, #0                                      
30014210:	1a000002 	bne	30014220 <_Timer_server_Body+0x108>           
30014214:	ea000013 	b	30014268 <_Timer_server_Body+0x150>             
30014218:	e129f000 	msr	CPSR_fc, r0                                   <== NOT EXECUTED
3001421c:	eaffffcd 	b	30014158 <_Timer_server_Body+0x40>              <== NOT EXECUTED
                                                                      
        /*                                                            
         *  It is essential that interrupts are disable here since an interrupt
         *  service routine may remove a watchdog from the chain.     
         */                                                           
        _ISR_Disable( level );                                        
30014220:	ebffff8a 	bl	30014050 <arm_interrupt_disable>               
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return (the_chain->first == _Chain_Tail(the_chain));                
30014224:	e59d3000 	ldr	r3, [sp]                                      
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected(              
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  if ( !_Chain_Is_empty(the_chain))                                   
30014228:	e1530007 	cmp	r3, r7                                        
3001422c:	0a00000b 	beq	30014260 <_Timer_server_Body+0x148>           
{                                                                     
  Chain_Node  *return_node;                                           
  Chain_Node  *new_first;                                             
                                                                      
  return_node         = the_chain->first;                             
  new_first           = return_node->next;                            
30014230:	e5932000 	ldr	r2, [r3]                                      
        watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain );
        if ( watchdog != NULL ) {                                     
30014234:	e3530000 	cmp	r3, #0                                        
  the_chain->first    = new_first;                                    
30014238:	e58d2000 	str	r2, [sp]                                      
  new_first->previous = _Chain_Head(the_chain);                       
3001423c:	e5825004 	str	r5, [r2, #4]                                  
30014240:	0a000006 	beq	30014260 <_Timer_server_Body+0x148>           
          watchdog->state = WATCHDOG_INACTIVE;                        
30014244:	e5836008 	str	r6, [r3, #8]                                  
30014248:	e129f000 	msr	CPSR_fc, r0                                   
        /*                                                            
         *  The timer server may block here and wait for resources or time.
         *  The system watchdogs are inactive and will remain inactive since
         *  the active flag of the timer server is true.              
         */                                                           
        (*watchdog->routine)( watchdog->id, watchdog->user_data );    
3001424c:	e5930020 	ldr	r0, [r3, #32]                                 
30014250:	e5931024 	ldr	r1, [r3, #36]	; 0x24                          
30014254:	e1a0e00f 	mov	lr, pc                                        
30014258:	e593f01c 	ldr	pc, [r3, #28]                                 
      }                                                               
3001425c:	eaffffef 	b	30014220 <_Timer_server_Body+0x108>             
30014260:	e129f000 	msr	CPSR_fc, r0                                   
30014264:	eaffffb9 	b	30014150 <_Timer_server_Body+0x38>              
    } else {                                                          
      ts->active = false;                                             
30014268:	e3a03000 	mov	r3, #0                                        
3001426c:	e5c4307c 	strb	r3, [r4, #124]	; 0x7c                        
                                                                      
      /*                                                              
       *  Block until there is something to do.                       
       */                                                             
      _Thread_Disable_dispatch();                                     
30014270:	ebffff7a 	bl	30014060 <_Thread_Disable_dispatch>            
        _Thread_Set_state( ts->thread, STATES_DELAYING );             
30014274:	e3a01008 	mov	r1, #8                                        
30014278:	e5940000 	ldr	r0, [r4]                                      
3001427c:	eb000e22 	bl	30017b0c <_Thread_Set_state>                   
        _Timer_server_Reset_interval_system_watchdog( ts );           
30014280:	e1a00004 	mov	r0, r4                                        
30014284:	ebffff7b 	bl	30014078 <_Timer_server_Reset_interval_system_watchdog>
        _Timer_server_Reset_tod_system_watchdog( ts );                
30014288:	e1a00004 	mov	r0, r4                                        
3001428c:	ebffff8d 	bl	300140c8 <_Timer_server_Reset_tod_system_watchdog>
      _Thread_Enable_dispatch();                                      
30014290:	eb000ba1 	bl	3001711c <_Thread_Enable_dispatch>             
                                                                      
      ts->active = true;                                              
30014294:	e3a03001 	mov	r3, #1                                        
30014298:	e5c4307c 	strb	r3, [r4, #124]	; 0x7c                        
                                                                      
static void _Timer_server_Stop_interval_system_watchdog(              
  Timer_server_Control *ts                                            
)                                                                     
{                                                                     
  _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog );        
3001429c:	e2840008 	add	r0, r4, #8                                    
300142a0:	eb001113 	bl	300186f4 <_Watchdog_Remove>                    
                                                                      
static void _Timer_server_Stop_tod_system_watchdog(                   
  Timer_server_Control *ts                                            
)                                                                     
{                                                                     
  _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog );             
300142a4:	e2840040 	add	r0, r4, #64	; 0x40                            
300142a8:	eb001111 	bl	300186f4 <_Watchdog_Remove>                    
300142ac:	eaffffa7 	b	30014150 <_Timer_server_Body+0x38>              
                                                                      

30007e20 <_User_extensions_Fatal>: void _User_extensions_Fatal ( Internal_errors_Source the_source, bool is_internal, Internal_errors_t the_error ) {
30007e20:	e92d41f0 	push	{r4, r5, r6, r7, r8, lr}                     
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _User_extensions_List.last ;                       
30007e24:	e59f503c 	ldr	r5, [pc, #60]	; 30007e68 <_User_extensions_Fatal+0x48>
void _User_extensions_Fatal (                                         
  Internal_errors_Source  the_source,                                 
  bool                    is_internal,                                
  Internal_errors_t       the_error                                   
)                                                                     
{                                                                     
30007e28:	e1a08000 	mov	r8, r0                                        
30007e2c:	e1a07002 	mov	r7, r2                                        
30007e30:	e20160ff 	and	r6, r1, #255	; 0xff                           
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _User_extensions_List.last ;                       
30007e34:	e5954008 	ldr	r4, [r5, #8]                                  
30007e38:	ea000007 	b	30007e5c <_User_extensions_Fatal+0x3c>          
        !_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 )                      
30007e3c:	e5943030 	ldr	r3, [r4, #48]	; 0x30                          
30007e40:	e3530000 	cmp	r3, #0                                        
      (*the_extension->Callouts.fatal)( the_source, is_internal, the_error );
30007e44:	11a00008 	movne	r0, r8                                      
30007e48:	11a01006 	movne	r1, r6                                      
30007e4c:	11a02007 	movne	r2, r7                                      
30007e50:	11a0e00f 	movne	lr, pc                                      
30007e54:	112fff13 	bxne	r3                                           
  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 ) {                             
30007e58:	e5944004 	ldr	r4, [r4, #4]                                  
)                                                                     
{                                                                     
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _User_extensions_List.last ;                       
30007e5c:	e1540005 	cmp	r4, r5                                        
30007e60:	1afffff5 	bne	30007e3c <_User_extensions_Fatal+0x1c>        
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.fatal != NULL )                      
      (*the_extension->Callouts.fatal)( the_source, is_internal, the_error );
  }                                                                   
}                                                                     
30007e64:	e8bd81f0 	pop	{r4, r5, r6, r7, r8, pc}                      <== NOT EXECUTED
                                                                      

3000a354 <pthread_attr_setschedpolicy>: int pthread_attr_setschedpolicy( pthread_attr_t *attr, int policy ) { if ( !attr || !attr->is_initialized )
3000a354:	e3500000 	cmp	r0, #0                                        
3000a358:	0a00000b 	beq	3000a38c <pthread_attr_setschedpolicy+0x38>   
3000a35c:	e5903000 	ldr	r3, [r0]                                      
3000a360:	e3530000 	cmp	r3, #0                                        
3000a364:	0a000008 	beq	3000a38c <pthread_attr_setschedpolicy+0x38>   
    return EINVAL;                                                    
                                                                      
  switch ( policy ) {                                                 
3000a368:	e3510004 	cmp	r1, #4                                        
3000a36c:	8a000008 	bhi	3000a394 <pthread_attr_setschedpolicy+0x40>   
3000a370:	e3a03001 	mov	r3, #1                                        
3000a374:	e1a03113 	lsl	r3, r3, r1                                    
3000a378:	e3130017 	tst	r3, #23                                       
    case SCHED_OTHER:                                                 
    case SCHED_FIFO:                                                  
    case SCHED_RR:                                                    
    case SCHED_SPORADIC:                                              
      attr->schedpolicy = policy;                                     
3000a37c:	15801014 	strne	r1, [r0, #20]                               
      return 0;                                                       
3000a380:	13a00000 	movne	r0, #0                                      
)                                                                     
{                                                                     
  if ( !attr || !attr->is_initialized )                               
    return EINVAL;                                                    
                                                                      
  switch ( policy ) {                                                 
3000a384:	112fff1e 	bxne	lr                                           
3000a388:	ea000001 	b	3000a394 <pthread_attr_setschedpolicy+0x40>     <== NOT EXECUTED
  pthread_attr_t  *attr,                                              
  int              policy                                             
)                                                                     
{                                                                     
  if ( !attr || !attr->is_initialized )                               
    return EINVAL;                                                    
3000a38c:	e3a00016 	mov	r0, #22                                       
3000a390:	e12fff1e 	bx	lr                                             
    case SCHED_SPORADIC:                                              
      attr->schedpolicy = policy;                                     
      return 0;                                                       
                                                                      
    default:                                                          
      return ENOTSUP;                                                 
3000a394:	e3a00086 	mov	r0, #134	; 0x86                               
  }                                                                   
}                                                                     
3000a398:	e12fff1e 	bx	lr                                             
                                                                      

3000719c <pthread_mutexattr_setpshared>: int pthread_mutexattr_setpshared( pthread_mutexattr_t *attr, int pshared ) { if ( !attr || !attr->is_initialized )
3000719c:	e3500000 	cmp	r0, #0                                        
300071a0:	0a000007 	beq	300071c4 <pthread_mutexattr_setpshared+0x28>  
300071a4:	e5903000 	ldr	r3, [r0]                                      
300071a8:	e3530000 	cmp	r3, #0                                        
300071ac:	0a000004 	beq	300071c4 <pthread_mutexattr_setpshared+0x28>  
    return EINVAL;                                                    
                                                                      
  switch ( pshared ) {                                                
300071b0:	e3510001 	cmp	r1, #1                                        
    case PTHREAD_PROCESS_SHARED:                                      
    case PTHREAD_PROCESS_PRIVATE:                                     
      attr->process_shared = pshared;                                 
300071b4:	95801004 	strls	r1, [r0, #4]                                
      return 0;                                                       
300071b8:	93a00000 	movls	r0, #0                                      
)                                                                     
{                                                                     
  if ( !attr || !attr->is_initialized )                               
    return EINVAL;                                                    
                                                                      
  switch ( pshared ) {                                                
300071bc:	912fff1e 	bxls	lr                                           
300071c0:	ea000001 	b	300071cc <pthread_mutexattr_setpshared+0x30>    <== NOT EXECUTED
  pthread_mutexattr_t *attr,                                          
  int                  pshared                                        
)                                                                     
{                                                                     
  if ( !attr || !attr->is_initialized )                               
    return EINVAL;                                                    
300071c4:	e3a00016 	mov	r0, #22                                       
300071c8:	e12fff1e 	bx	lr                                             
    case PTHREAD_PROCESS_PRIVATE:                                     
      attr->process_shared = pshared;                                 
      return 0;                                                       
                                                                      
    default:                                                          
      return EINVAL;                                                  
300071cc:	e3a00016 	mov	r0, #22                                       <== NOT EXECUTED
  }                                                                   
}                                                                     
300071d0:	e12fff1e 	bx	lr                                             <== NOT EXECUTED
                                                                      

30006c08 <pthread_rwlockattr_setpshared>: int pthread_rwlockattr_setpshared( pthread_rwlockattr_t *attr, int pshared ) { if ( !attr )
30006c08:	e3500000 	cmp	r0, #0                                        
30006c0c:	0a000007 	beq	30006c30 <pthread_rwlockattr_setpshared+0x28> 
    return EINVAL;                                                    
                                                                      
  if ( !attr->is_initialized )                                        
30006c10:	e5903000 	ldr	r3, [r0]                                      
30006c14:	e3530000 	cmp	r3, #0                                        
30006c18:	0a000004 	beq	30006c30 <pthread_rwlockattr_setpshared+0x28> 
    return EINVAL;                                                    
                                                                      
  switch ( pshared ) {                                                
30006c1c:	e3510001 	cmp	r1, #1                                        
    case PTHREAD_PROCESS_SHARED:                                      
    case PTHREAD_PROCESS_PRIVATE:                                     
      attr->process_shared = pshared;                                 
30006c20:	95801004 	strls	r1, [r0, #4]                                
      return 0;                                                       
30006c24:	93a00000 	movls	r0, #0                                      
    return EINVAL;                                                    
                                                                      
  if ( !attr->is_initialized )                                        
    return EINVAL;                                                    
                                                                      
  switch ( pshared ) {                                                
30006c28:	912fff1e 	bxls	lr                                           
30006c2c:	ea000001 	b	30006c38 <pthread_rwlockattr_setpshared+0x30>   <== NOT EXECUTED
{                                                                     
  if ( !attr )                                                        
    return EINVAL;                                                    
                                                                      
  if ( !attr->is_initialized )                                        
    return EINVAL;                                                    
30006c30:	e3a00016 	mov	r0, #22                                       
30006c34:	e12fff1e 	bx	lr                                             
    case PTHREAD_PROCESS_PRIVATE:                                     
      attr->process_shared = pshared;                                 
      return 0;                                                       
                                                                      
    default:                                                          
      return EINVAL;                                                  
30006c38:	e3a00016 	mov	r0, #22                                       <== NOT EXECUTED
  }                                                                   
}                                                                     
30006c3c:	e12fff1e 	bx	lr                                             <== NOT EXECUTED
                                                                      

3000c620 <rtems_task_mode>: rtems_status_code rtems_task_mode( rtems_mode mode_set, rtems_mode mask, rtems_mode *previous_mode_set ) {
3000c620:	e92d47f0 	push	{r4, r5, r6, r7, r8, r9, sl, lr}             
  ASR_Information    *asr;                                            
  bool                is_asr_enabled = false;                         
  bool                needs_asr_dispatching = false;                  
  rtems_mode          old_mode;                                       
                                                                      
  if ( !previous_mode_set )                                           
3000c624:	e252a000 	subs	sl, r2, #0                                   
rtems_status_code rtems_task_mode(                                    
  rtems_mode  mode_set,                                               
  rtems_mode  mask,                                                   
  rtems_mode *previous_mode_set                                       
)                                                                     
{                                                                     
3000c628:	e1a04000 	mov	r4, r0                                        
3000c62c:	e1a05001 	mov	r5, r1                                        
  bool                is_asr_enabled = false;                         
  bool                needs_asr_dispatching = false;                  
  rtems_mode          old_mode;                                       
                                                                      
  if ( !previous_mode_set )                                           
    return RTEMS_INVALID_ADDRESS;                                     
3000c630:	03a00009 	moveq	r0, #9                                      
  ASR_Information    *asr;                                            
  bool                is_asr_enabled = false;                         
  bool                needs_asr_dispatching = false;                  
  rtems_mode          old_mode;                                       
                                                                      
  if ( !previous_mode_set )                                           
3000c634:	08bd87f0 	popeq	{r4, r5, r6, r7, r8, r9, sl, pc}            
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  executing     = _Thread_Executing;                                  
3000c638:	e59f313c 	ldr	r3, [pc, #316]	; 3000c77c <rtems_task_mode+0x15c>
3000c63c:	e5937004 	ldr	r7, [r3, #4]                                  
  api = executing->API_Extensions[ THREAD_API_RTEMS ];                
  asr = &api->Signal;                                                 
                                                                      
  old_mode  = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
3000c640:	e5d78074 	ldrb	r8, [r7, #116]	; 0x74                        
                                                                      
  if ( !previous_mode_set )                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  executing     = _Thread_Executing;                                  
  api = executing->API_Extensions[ THREAD_API_RTEMS ];                
3000c644:	e5976104 	ldr	r6, [r7, #260]	; 0x104                        
  asr = &api->Signal;                                                 
                                                                      
  old_mode  = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
                                                                      
  if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
3000c648:	e597307c 	ldr	r3, [r7, #124]	; 0x7c                         
                                                                      
  executing     = _Thread_Executing;                                  
  api = executing->API_Extensions[ THREAD_API_RTEMS ];                
  asr = &api->Signal;                                                 
                                                                      
  old_mode  = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
3000c64c:	e3580000 	cmp	r8, #0                                        
  if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
    old_mode |= RTEMS_NO_TIMESLICE;                                   
  else                                                                
    old_mode |= RTEMS_TIMESLICE;                                      
                                                                      
  old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR;           
3000c650:	e5d69008 	ldrb	r9, [r6, #8]                                 
                                                                      
  executing     = _Thread_Executing;                                  
  api = executing->API_Extensions[ THREAD_API_RTEMS ];                
  asr = &api->Signal;                                                 
                                                                      
  old_mode  = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
3000c654:	03a08c01 	moveq	r8, #256	; 0x100                            
3000c658:	13a08000 	movne	r8, #0                                      
                                                                      
  if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
3000c65c:	e3530000 	cmp	r3, #0                                        
    old_mode |= RTEMS_NO_TIMESLICE;                                   
  else                                                                
    old_mode |= RTEMS_TIMESLICE;                                      
3000c660:	13888c02 	orrne	r8, r8, #512	; 0x200                        
                                                                      
  old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR;           
3000c664:	e3590000 	cmp	r9, #0                                        
3000c668:	03a09b01 	moveq	r9, #1024	; 0x400                           
3000c66c:	13a09000 	movne	r9, #0                                      
  old_mode |= _ISR_Get_level();                                       
3000c670:	ebffeff8 	bl	30008658 <_CPU_ISR_Get_level>                  
  if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
    old_mode |= RTEMS_NO_TIMESLICE;                                   
  else                                                                
    old_mode |= RTEMS_TIMESLICE;                                      
                                                                      
  old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR;           
3000c674:	e1899000 	orr	r9, r9, r0                                    
  old_mode |= _ISR_Get_level();                                       
3000c678:	e1898008 	orr	r8, r9, r8                                    
  *previous_mode_set = old_mode;                                      
                                                                      
  /*                                                                  
   *  These are generic thread scheduling characteristics.            
   */                                                                 
  if ( mask & RTEMS_PREEMPT_MASK )                                    
3000c67c:	e3150c01 	tst	r5, #256	; 0x100                              
    old_mode |= RTEMS_TIMESLICE;                                      
                                                                      
  old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR;           
  old_mode |= _ISR_Get_level();                                       
                                                                      
  *previous_mode_set = old_mode;                                      
3000c680:	e58a8000 	str	r8, [sl]                                      
                                                                      
  /*                                                                  
   *  These are generic thread scheduling characteristics.            
   */                                                                 
  if ( mask & RTEMS_PREEMPT_MASK )                                    
3000c684:	0a000003 	beq	3000c698 <rtems_task_mode+0x78>               
    executing->is_preemptible = _Modes_Is_preempt(mode_set) ? true : false;
3000c688:	e3140c01 	tst	r4, #256	; 0x100                              
3000c68c:	13a03000 	movne	r3, #0                                      
3000c690:	03a03001 	moveq	r3, #1                                      
3000c694:	e5c73074 	strb	r3, [r7, #116]	; 0x74                        
                                                                      
  if ( mask & RTEMS_TIMESLICE_MASK ) {                                
3000c698:	e3150c02 	tst	r5, #512	; 0x200                              
3000c69c:	0a000006 	beq	3000c6bc <rtems_task_mode+0x9c>               
    if ( _Modes_Is_timeslice(mode_set) ) {                            
3000c6a0:	e2143c02 	ands	r3, r4, #512	; 0x200                         
      executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE;
3000c6a4:	13a03001 	movne	r3, #1                                      
3000c6a8:	1587307c 	strne	r3, [r7, #124]	; 0x7c                       
      executing->cpu_time_budget  = _Thread_Ticks_per_timeslice;      
3000c6ac:	159f30cc 	ldrne	r3, [pc, #204]	; 3000c780 <rtems_task_mode+0x160>
    } else                                                            
      executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE; 
3000c6b0:	0587307c 	streq	r3, [r7, #124]	; 0x7c                       
    executing->is_preemptible = _Modes_Is_preempt(mode_set) ? true : false;
                                                                      
  if ( mask & RTEMS_TIMESLICE_MASK ) {                                
    if ( _Modes_Is_timeslice(mode_set) ) {                            
      executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE;
      executing->cpu_time_budget  = _Thread_Ticks_per_timeslice;      
3000c6b4:	15933000 	ldrne	r3, [r3]                                    
3000c6b8:	15873078 	strne	r3, [r7, #120]	; 0x78                       
  }                                                                   
                                                                      
  /*                                                                  
   *  Set the new interrupt level                                     
   */                                                                 
  if ( mask & RTEMS_INTERRUPT_MASK )                                  
3000c6bc:	e3150080 	tst	r5, #128	; 0x80                               
3000c6c0:	0a000001 	beq	3000c6cc <rtems_task_mode+0xac>               
 */                                                                   
RTEMS_INLINE_ROUTINE void _Modes_Set_interrupt_level (                
  Modes_Control mode_set                                              
)                                                                     
{                                                                     
  _ISR_Set_level( _Modes_Get_interrupt_level( mode_set ) );           
3000c6c4:	e2040080 	and	r0, r4, #128	; 0x80                           
3000c6c8:	ebffefdd 	bl	30008644 <_CPU_ISR_Set_level>                  
   *  This is specific to the RTEMS API                               
   */                                                                 
  is_asr_enabled = false;                                             
  needs_asr_dispatching = false;                                      
                                                                      
  if ( mask & RTEMS_ASR_MASK ) {                                      
3000c6cc:	e2150b01 	ands	r0, r5, #1024	; 0x400                        
3000c6d0:	0a000013 	beq	3000c724 <rtems_task_mode+0x104>              
 *  Output:                                                           
 *    *previous_mode_set - previous mode set                          
 *     always return RTEMS_SUCCESSFUL;                                
 */                                                                   
                                                                      
rtems_status_code rtems_task_mode(                                    
3000c6d4:	e3140b01 	tst	r4, #1024	; 0x400                             
  is_asr_enabled = false;                                             
  needs_asr_dispatching = false;                                      
                                                                      
  if ( mask & RTEMS_ASR_MASK ) {                                      
    is_asr_enabled = _Modes_Is_asr_disabled( mode_set ) ? false : true;
    if ( is_asr_enabled != asr->is_enabled ) {                        
3000c6d8:	e5d62008 	ldrb	r2, [r6, #8]                                 
 *  Output:                                                           
 *    *previous_mode_set - previous mode set                          
 *     always return RTEMS_SUCCESSFUL;                                
 */                                                                   
                                                                      
rtems_status_code rtems_task_mode(                                    
3000c6dc:	13a03000 	movne	r3, #0                                      
3000c6e0:	03a03001 	moveq	r3, #1                                      
  is_asr_enabled = false;                                             
  needs_asr_dispatching = false;                                      
                                                                      
  if ( mask & RTEMS_ASR_MASK ) {                                      
    is_asr_enabled = _Modes_Is_asr_disabled( mode_set ) ? false : true;
    if ( is_asr_enabled != asr->is_enabled ) {                        
3000c6e4:	e1520003 	cmp	r2, r3                                        
                                                                      
  /*                                                                  
   *  This is specific to the RTEMS API                               
   */                                                                 
  is_asr_enabled = false;                                             
  needs_asr_dispatching = false;                                      
3000c6e8:	03a00000 	moveq	r0, #0                                      
                                                                      
  if ( mask & RTEMS_ASR_MASK ) {                                      
    is_asr_enabled = _Modes_Is_asr_disabled( mode_set ) ? false : true;
    if ( is_asr_enabled != asr->is_enabled ) {                        
3000c6ec:	0a00000c 	beq	3000c724 <rtems_task_mode+0x104>              
      asr->is_enabled = is_asr_enabled;                               
3000c6f0:	e5c63008 	strb	r3, [r6, #8]                                 
static inline uint32_t arm_interrupt_disable( void )                  
{                                                                     
  uint32_t arm_switch_reg;                                            
  uint32_t level;                                                     
                                                                      
  asm volatile (                                                      
3000c6f4:	e10f3000 	mrs	r3, CPSR                                      
3000c6f8:	e3832080 	orr	r2, r3, #128	; 0x80                           
3000c6fc:	e129f002 	msr	CPSR_fc, r2                                   
{                                                                     
  rtems_signal_set _signals;                                          
  ISR_Level        _level;                                            
                                                                      
  _ISR_Disable( _level );                                             
    _signals                     = information->signals_pending;      
3000c700:	e5962018 	ldr	r2, [r6, #24]                                 
    information->signals_pending = information->signals_posted;       
3000c704:	e5961014 	ldr	r1, [r6, #20]                                 
    information->signals_posted  = _signals;                          
3000c708:	e5862014 	str	r2, [r6, #20]                                 
  rtems_signal_set _signals;                                          
  ISR_Level        _level;                                            
                                                                      
  _ISR_Disable( _level );                                             
    _signals                     = information->signals_pending;      
    information->signals_pending = information->signals_posted;       
3000c70c:	e5861018 	str	r1, [r6, #24]                                 
                                                                      
static inline void arm_interrupt_enable( uint32_t level )             
{                                                                     
  ARM_SWITCH_REGISTERS;                                               
                                                                      
  asm volatile (                                                      
3000c710:	e129f003 	msr	CPSR_fc, r3                                   
      _ASR_Swap_signals( asr );                                       
      if ( _ASR_Are_signals_pending( asr ) ) {                        
3000c714:	e5960014 	ldr	r0, [r6, #20]                                 
                                                                      
  /*                                                                  
   *  This is specific to the RTEMS API                               
   */                                                                 
  is_asr_enabled = false;                                             
  needs_asr_dispatching = false;                                      
3000c718:	e3500000 	cmp	r0, #0                                        
3000c71c:	13a00001 	movne	r0, #1                                      
3000c720:	03a00000 	moveq	r0, #0                                      
        needs_asr_dispatching = true;                                 
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  if ( _System_state_Is_up( _System_state_Get() ) ) {                 
3000c724:	e59f3058 	ldr	r3, [pc, #88]	; 3000c784 <rtems_task_mode+0x164>
3000c728:	e5933000 	ldr	r3, [r3]                                      
3000c72c:	e3530003 	cmp	r3, #3                                        
3000c730:	1a00000f 	bne	3000c774 <rtems_task_mode+0x154>              
  bool are_signals_pending                                            
)                                                                     
{                                                                     
  Thread_Control     *executing;                                      
                                                                      
  executing = _Thread_Executing;                                      
3000c734:	e59f2040 	ldr	r2, [pc, #64]	; 3000c77c <rtems_task_mode+0x15c>
                                                                      
  if ( are_signals_pending ||                                         
3000c738:	e3500000 	cmp	r0, #0                                        
  bool are_signals_pending                                            
)                                                                     
{                                                                     
  Thread_Control     *executing;                                      
                                                                      
  executing = _Thread_Executing;                                      
3000c73c:	e5923004 	ldr	r3, [r2, #4]                                  
                                                                      
  if ( are_signals_pending ||                                         
3000c740:	1a000005 	bne	3000c75c <rtems_task_mode+0x13c>              
3000c744:	e5922008 	ldr	r2, [r2, #8]                                  
3000c748:	e1530002 	cmp	r3, r2                                        
3000c74c:	08bd87f0 	popeq	{r4, r5, r6, r7, r8, r9, sl, pc}            
       (!_Thread_Is_heir( executing ) && executing->is_preemptible) ) {
3000c750:	e5d33074 	ldrb	r3, [r3, #116]	; 0x74                        
3000c754:	e3530000 	cmp	r3, #0                                        
3000c758:	08bd87f0 	popeq	{r4, r5, r6, r7, r8, r9, sl, pc}            
    _Thread_Dispatch_necessary = true;                                
3000c75c:	e59f3018 	ldr	r3, [pc, #24]	; 3000c77c <rtems_task_mode+0x15c>
3000c760:	e3a02001 	mov	r2, #1                                        
3000c764:	e5c32010 	strb	r2, [r3, #16]                                
     if (_Thread_Evaluate_is_dispatch_needed( needs_asr_dispatching ) )
      _Thread_Dispatch();                                             
3000c768:	ebffe9c1 	bl	30006e74 <_Thread_Dispatch>                    
  }                                                                   
                                                                      
  return RTEMS_SUCCESSFUL;                                            
3000c76c:	e3a00000 	mov	r0, #0                                        
3000c770:	e8bd87f0 	pop	{r4, r5, r6, r7, r8, r9, sl, pc}              
3000c774:	e3a00000 	mov	r0, #0                                        <== NOT EXECUTED
}                                                                     
3000c778:	e8bd87f0 	pop	{r4, r5, r6, r7, r8, r9, sl, pc}              <== NOT EXECUTED
                                                                      

30005890 <sigaction>: struct sigaction *oact ) { ISR_Level level; if ( oact )
30005890:	e2523000 	subs	r3, r2, #0                                   
    *oact = _POSIX_signals_Vectors[ sig ];                            
30005894:	159f20b8 	ldrne	r2, [pc, #184]	; 30005954 <sigaction+0xc4>  
int sigaction(                                                        
  int                     sig,                                        
  const struct sigaction *act,                                        
  struct sigaction       *oact                                        
)                                                                     
{                                                                     
30005898:	e92d40f0 	push	{r4, r5, r6, r7, lr}                         
3000589c:	e1a05001 	mov	r5, r1                                        
  ISR_Level     level;                                                
                                                                      
  if ( oact )                                                         
    *oact = _POSIX_signals_Vectors[ sig ];                            
300058a0:	13a0100c 	movne	r1, #12                                     
300058a4:	10222091 	mlane	r2, r1, r0, r2                              
int sigaction(                                                        
  int                     sig,                                        
  const struct sigaction *act,                                        
  struct sigaction       *oact                                        
)                                                                     
{                                                                     
300058a8:	e1a04000 	mov	r4, r0                                        
  ISR_Level     level;                                                
                                                                      
  if ( oact )                                                         
    *oact = _POSIX_signals_Vectors[ sig ];                            
300058ac:	18920007 	ldmne	r2, {r0, r1, r2}                            
300058b0:	18830007 	stmne	r3, {r0, r1, r2}                            
                                                                      
  if ( !sig )                                                         
300058b4:	e3540000 	cmp	r4, #0                                        
300058b8:	0a000004 	beq	300058d0 <sigaction+0x40>                     
                                                                      
static inline bool is_valid_signo(                                    
  int signo                                                           
)                                                                     
{                                                                     
  return ((signo) >= 1 && (signo) <= 32 );                            
300058bc:	e2443001 	sub	r3, r4, #1                                    
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( !is_valid_signo(sig) )                                         
300058c0:	e353001f 	cmp	r3, #31                                       
300058c4:	8a000001 	bhi	300058d0 <sigaction+0x40>                     
   *                                                                  
   *  NOTE: Solaris documentation claims to "silently enforce" this which
   *        contradicts the POSIX specification.                      
   */                                                                 
                                                                      
  if ( sig == SIGKILL )                                               
300058c8:	e3540009 	cmp	r4, #9                                        
300058cc:	1a000004 	bne	300058e4 <sigaction+0x54>                     
    rtems_set_errno_and_return_minus_one( EINVAL );                   
300058d0:	eb002104 	bl	3000dce8 <__errno>                             
300058d4:	e3a03016 	mov	r3, #22                                       
300058d8:	e5803000 	str	r3, [r0]                                      
300058dc:	e3e00000 	mvn	r0, #0                                        
300058e0:	e8bd80f0 	pop	{r4, r5, r6, r7, pc}                          
  /*                                                                  
   *  Evaluate the new action structure and set the global signal vector
   *  appropriately.                                                  
   */                                                                 
                                                                      
  if ( act ) {                                                        
300058e4:	e3550000 	cmp	r5, #0                                        
300058e8:	0a000017 	beq	3000594c <sigaction+0xbc>                     
static inline uint32_t arm_interrupt_disable( void )                  
{                                                                     
  uint32_t arm_switch_reg;                                            
  uint32_t level;                                                     
                                                                      
  asm volatile (                                                      
300058ec:	e10f6000 	mrs	r6, CPSR                                      
300058f0:	e3863080 	orr	r3, r6, #128	; 0x80                           
300058f4:	e129f003 	msr	CPSR_fc, r3                                   
     *  Unless the user is installing the default signal actions, then
     *  we can just copy the provided sigaction structure into the vectors.
     */                                                               
                                                                      
    _ISR_Disable( level );                                            
      if ( act->sa_handler == SIG_DFL ) {                             
300058f8:	e5953008 	ldr	r3, [r5, #8]                                  
300058fc:	e59f7050 	ldr	r7, [pc, #80]	; 30005954 <sigaction+0xc4>     
30005900:	e3530000 	cmp	r3, #0                                        
30005904:	1a000007 	bne	30005928 <sigaction+0x98>                     
        _POSIX_signals_Vectors[ sig ] = _POSIX_signals_Default_vectors[ sig ];
30005908:	e283300c 	add	r3, r3, #12                                   
3000590c:	e0040493 	mul	r4, r3, r4                                    
30005910:	e59f2040 	ldr	r2, [pc, #64]	; 30005958 <sigaction+0xc8>     
30005914:	e0873004 	add	r3, r7, r4                                    
30005918:	e0824004 	add	r4, r2, r4                                    
3000591c:	e8940007 	ldm	r4, {r0, r1, r2}                              
30005920:	e8830007 	stm	r3, {r0, r1, r2}                              
30005924:	ea000005 	b	30005940 <sigaction+0xb0>                       
      } else {                                                        
         _POSIX_signals_Clear_process_signals( sig );                 
30005928:	e1a00004 	mov	r0, r4                                        
3000592c:	eb001575 	bl	3000af08 <_POSIX_signals_Clear_process_signals>
         _POSIX_signals_Vectors[ sig ] = *act;                        
30005930:	e8950007 	ldm	r5, {r0, r1, r2}                              
30005934:	e3a0300c 	mov	r3, #12                                       
30005938:	e0247493 	mla	r4, r3, r4, r7                                
3000593c:	e8840007 	stm	r4, {r0, r1, r2}                              
                                                                      
static inline void arm_interrupt_enable( uint32_t level )             
{                                                                     
  ARM_SWITCH_REGISTERS;                                               
                                                                      
  asm volatile (                                                      
30005940:	e129f006 	msr	CPSR_fc, r6                                   
   *      now (signals not posted when SIG_IGN).                      
   *    + If we are now ignoring a signal that was previously pending,
   *      we clear the pending signal indicator.                      
   */                                                                 
                                                                      
  return 0;                                                           
30005944:	e3a00000 	mov	r0, #0                                        
30005948:	e8bd80f0 	pop	{r4, r5, r6, r7, pc}                          
3000594c:	e1a00005 	mov	r0, r5                                        <== NOT EXECUTED
}                                                                     
30005950:	e8bd80f0 	pop	{r4, r5, r6, r7, pc}                          <== NOT EXECUTED
                                                                      

30007f08 <sigwait>: int sigwait( const sigset_t *set, int *sig ) {
30007f08:	e92d4010 	push	{r4, lr}                                     
30007f0c:	e1a04001 	mov	r4, r1                                        
  int status;                                                         
                                                                      
  status = sigtimedwait( set, NULL, NULL );                           
30007f10:	e3a01000 	mov	r1, #0                                        
30007f14:	e1a02001 	mov	r2, r1                                        
30007f18:	ebffff84 	bl	30007d30 <sigtimedwait>                        
                                                                      
  if ( status != -1 ) {                                               
30007f1c:	e3700001 	cmn	r0, #1                                        
30007f20:	0a000004 	beq	30007f38 <sigwait+0x30>                       
    if ( sig )                                                        
30007f24:	e3540000 	cmp	r4, #0                                        
      *sig = status;                                                  
30007f28:	15840000 	strne	r0, [r4]                                    
    return 0;                                                         
30007f2c:	13a00000 	movne	r0, #0                                      
  int status;                                                         
                                                                      
  status = sigtimedwait( set, NULL, NULL );                           
                                                                      
  if ( status != -1 ) {                                               
    if ( sig )                                                        
30007f30:	18bd8010 	popne	{r4, pc}                                    
30007f34:	ea000002 	b	30007f44 <sigwait+0x3c>                         <== NOT EXECUTED
      *sig = status;                                                  
    return 0;                                                         
  }                                                                   
                                                                      
  return errno;                                                       
30007f38:	eb002032 	bl	30010008 <__errno>                             
30007f3c:	e5900000 	ldr	r0, [r0]                                      
30007f40:	e8bd8010 	pop	{r4, pc}                                      
  status = sigtimedwait( set, NULL, NULL );                           
                                                                      
  if ( status != -1 ) {                                               
    if ( sig )                                                        
      *sig = status;                                                  
    return 0;                                                         
30007f44:	e1a00004 	mov	r0, r4                                        <== NOT EXECUTED
  }                                                                   
                                                                      
  return errno;                                                       
}                                                                     
30007f48:	e8bd8010 	pop	{r4, pc}                                      <== NOT EXECUTED