RTEMS-6
Annotated Report
libdevnull
Sun Feb 28 22:35:43 2021

40004348 <null_initialize>:                                                               
rtems_device_driver null_initialize(                                                      
  rtems_device_major_number major,                                                        
  rtems_device_minor_number minor RTEMS_UNUSED,                                           
  void *pargp RTEMS_UNUSED                                                                
)                                                                                         
{                                                                                         
40004348:   9d e3 bf a0     save  %sp, -96, %sp                                           
  rtems_device_driver status;                                                             
                                                                                          
  if ( !initialized ) {                                                                   
4000434c:   03 10 00 52     sethi  %hi(0x40014800), %g1                                   
40004350:   c4 48 61 b8     ldsb  [ %g1 + 0x1b8 ], %g2  ! 400149b8 <initialized>          
40004354:   80 a0 a0 00     cmp  %g2, 0                                                   
40004358:   02 80 00 04     be  40004368 <null_initialize+0x20>                           
4000435c:   84 10 20 01     mov  1, %g2                                                   
                                                                                          
    NULL_major = major;                                                                   
  }                                                                                       
                                                                                          
  return RTEMS_SUCCESSFUL;                                                                
}                                                                                         
40004360:   81 c7 e0 08     ret                                                           
40004364:   91 e8 20 00     restore  %g0, 0, %o0                                          
    status = rtems_io_register_name(                                                      
40004368:   94 10 20 00     clr  %o2                                                      
    initialized = 1;                                                                      
4000436c:   c4 28 61 b8     stb  %g2, [ %g1 + 0x1b8 ]                                     
    status = rtems_io_register_name(                                                      
40004370:   92 10 00 18     mov  %i0, %o1                                                 
40004374:   11 10 00 3d     sethi  %hi(0x4000f400), %o0                                   
40004378:   7f ff ff e8     call  40004318 <rtems_io_register_name>                       
4000437c:   90 12 20 40     or  %o0, 0x40, %o0  ! 4000f440 <_rodata_start>                
    if (status != RTEMS_SUCCESSFUL)                                                       
40004380:   80 a2 20 00     cmp  %o0, 0                                                   
40004384:   12 80 00 05     bne  40004398 <null_initialize+0x50>                          
40004388:   03 10 00 52     sethi  %hi(0x40014800), %g1                                   
    NULL_major = major;                                                                   
4000438c:   f0 20 61 bc     st  %i0, [ %g1 + 0x1bc ]    ! 400149bc <NULL_major>           
}                                                                                         
40004390:   81 c7 e0 08     ret                                                           
40004394:   91 e8 20 00     restore  %g0, 0, %o0                                          
      rtems_fatal_error_occurred(status);                                                 
40004398:   40 00 00 74     call  40004568 <rtems_fatal_error_occurred>                   
4000439c:   01 00 00 00     nop                                                           
400043a0:   01 00 00 00     nop                                                           <== NOT EXECUTED