RTEMS-6
Annotated Report
libstdthreads
Mon Mar 1 00:01:53 2021

00106eb0 <thrd_join>:                                                                     
}                                                                                         
                                                                                          
int                                                                                       
thrd_join(thrd_t thr, int *res)                                                           
{                                                                                         
  106eb0:   b510        push    {r4, lr}                                                  
  106eb2:   b082        sub sp, #8                                                        
  106eb4:   460c        mov r4, r1                                                        
    void *value_ptr;                                                                      
                                                                                          
    if (pthread_join(thr, &value_ptr) != 0)                                               
  106eb6:   a901        add r1, sp, #4                                                    
  106eb8:   f000 fd52   bl  107960 <pthread_join>                                         
  106ebc:   b930        cbnz    r0, 106ecc <thrd_join+0x1c>                               
        return (thrd_error);                                                              
    if (res != NULL)                                                                      
        *res = (intptr_t)value_ptr;                                                       
    return (thrd_success);                                                                
  106ebe:   2004        movs    r0, #4                                                    
    if (res != NULL)                                                                      
  106ec0:   b114        cbz r4, 106ec8 <thrd_join+0x18>                                   
        *res = (intptr_t)value_ptr;                                                       
  106ec2:   9b01        ldr r3, [sp, #4]                                                  
    return (thrd_success);                                                                
  106ec4:   2004        movs    r0, #4                                                    
        *res = (intptr_t)value_ptr;                                                       
  106ec6:   6023        str r3, [r4, #0]                                                  
}                                                                                         
  106ec8:   b002        add sp, #8                                                        
  106eca:   bd10        pop {r4, pc}                                                      
        return (thrd_error);                                                              
  106ecc:   2002        movs    r0, #2                                                    <== NOT EXECUTED
}                                                                                         
  106ece:   b002        add sp, #8                                                        <== NOT EXECUTED
  106ed0:   bd10        pop {r4, pc}                                                      <== NOT EXECUTED
  106ed2:   bf00        nop