RTEMS-6
Annotated Report
libdevnull
Sun Feb 28 23:23:37 2021

00104d60 <dev_zero_read>:                                                                 
rtems_device_driver dev_zero_read(                                                        
  rtems_device_major_number major RTEMS_UNUSED,                                           
  rtems_device_minor_number minor RTEMS_UNUSED,                                           
  void *arg RTEMS_UNUSED                                                                  
)                                                                                         
{                                                                                         
  104d60:   55                      push   %ebp                                           
  104d61:   89 e5                   mov    %esp,%ebp                                      
  104d63:   57                      push   %edi                                           
  104d64:   8b 45 10                mov    0x10(%ebp),%eax                                
  rtems_libio_rw_args_t *rw = arg;                                                        
                                                                                          
  rw->bytes_moved = rw->count;                                                            
  104d67:   8b 50 10                mov    0x10(%eax),%edx                                
  memset(rw->buffer, 0, rw->count);                                                       
  104d6a:   8b 78 0c                mov    0xc(%eax),%edi                                 
  rw->bytes_moved = rw->count;                                                            
  104d6d:   89 50 18                mov    %edx,0x18(%eax)                                
  memset(rw->buffer, 0, rw->count);                                                       
  104d70:   83 fa 08                cmp    $0x8,%edx                                      
  104d73:   73 2b                   jae    104da0 <dev_zero_read+0x40>                    <== NEVER TAKEN
  104d75:   f6 c2 04                test   $0x4,%dl                                       
  104d78:   74 09                   je     104d83 <dev_zero_read+0x23>                    <== ALWAYS TAKEN
  104d7a:   c7 07 00 00 00 00       movl   $0x0,(%edi)                                    <== NOT EXECUTED
  104d80:   83 c7 04                add    $0x4,%edi                                      <== NOT EXECUTED
  104d83:   f6 c2 02                test   $0x2,%dl                                       
  104d86:   74 08                   je     104d90 <dev_zero_read+0x30>                    <== ALWAYS TAKEN
  104d88:   66 c7 07 00 00          movw   $0x0,(%edi)                                    <== NOT EXECUTED
  104d8d:   83 c7 02                add    $0x2,%edi                                      <== NOT EXECUTED
  104d90:   f6 c2 01                test   $0x1,%dl                                       
  104d93:   74 03                   je     104d98 <dev_zero_read+0x38>                    <== NEVER TAKEN
  104d95:   c6 07 00                movb   $0x0,(%edi)                                    
                                                                                          
  return RTEMS_SUCCESSFUL;                                                                
}                                                                                         
  104d98:   5f                      pop    %edi                                           
  104d99:   31 c0                   xor    %eax,%eax                                      
  104d9b:   5d                      pop    %ebp                                           
  104d9c:   c3                      ret                                                   
  104d9d:   8d 76 00                lea    0x0(%esi),%esi                                 
  memset(rw->buffer, 0, rw->count);                                                       
  104da0:   f7 c7 01 00 00 00       test   $0x1,%edi                                      <== NOT EXECUTED
  104da6:   75 28                   jne    104dd0 <dev_zero_read+0x70>                    <== NOT EXECUTED
  104da8:   f7 c7 02 00 00 00       test   $0x2,%edi                                      <== NOT EXECUTED
  104dae:   75 30                   jne    104de0 <dev_zero_read+0x80>                    <== NOT EXECUTED
  104db0:   f7 c7 04 00 00 00       test   $0x4,%edi                                      <== NOT EXECUTED
  104db6:   75 38                   jne    104df0 <dev_zero_read+0x90>                    <== NOT EXECUTED
  104db8:   89 d1                   mov    %edx,%ecx                                      <== NOT EXECUTED
  104dba:   31 c0                   xor    %eax,%eax                                      <== NOT EXECUTED
  104dbc:   c1 e9 02                shr    $0x2,%ecx                                      <== NOT EXECUTED
  104dbf:   83 e2 03                and    $0x3,%edx                                      <== NOT EXECUTED
  104dc2:   f3 ab                   rep stos %eax,%es:(%edi)                              <== NOT EXECUTED
  104dc4:   eb af                   jmp    104d75 <dev_zero_read+0x15>                    <== NOT EXECUTED
  104dc6:   8d b4 26 00 00 00 00    lea    0x0(%esi,%eiz,1),%esi                          <== NOT EXECUTED
  104dcd:   8d 76 00                lea    0x0(%esi),%esi                                 <== NOT EXECUTED
  104dd0:   c6 07 00                movb   $0x0,(%edi)                                    <== NOT EXECUTED
  104dd3:   4a                      dec    %edx                                           <== NOT EXECUTED
  104dd4:   47                      inc    %edi                                           <== NOT EXECUTED
  104dd5:   eb d1                   jmp    104da8 <dev_zero_read+0x48>                    <== NOT EXECUTED
  104dd7:   8d b4 26 00 00 00 00    lea    0x0(%esi,%eiz,1),%esi                          <== NOT EXECUTED
  104dde:   66 90                   xchg   %ax,%ax                                        <== NOT EXECUTED
  104de0:   66 c7 07 00 00          movw   $0x0,(%edi)                                    <== NOT EXECUTED
  104de5:   83 ea 02                sub    $0x2,%edx                                      <== NOT EXECUTED
  104de8:   83 c7 02                add    $0x2,%edi                                      <== NOT EXECUTED
  104deb:   eb c3                   jmp    104db0 <dev_zero_read+0x50>                    <== NOT EXECUTED
  104ded:   8d 76 00                lea    0x0(%esi),%esi                                 <== NOT EXECUTED
  104df0:   c7 07 00 00 00 00       movl   $0x0,(%edi)                                    <== NOT EXECUTED
  104df6:   83 ea 04                sub    $0x4,%edx                                      <== NOT EXECUTED
  104df9:   83 c7 04                add    $0x4,%edi                                      <== NOT EXECUTED
  104dfc:   eb ba                   jmp    104db8 <dev_zero_read+0x58>                    <== NOT EXECUTED
  104dfe:   90                      nop                                                   
  104dff:   90                      nop