Changeset 6e8ed225 in mainline for uspace/drv/block/ahci/ahci.c


Ignore:
Timestamp:
2013-05-20T18:43:13Z (12 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4a5a18be
Parents:
d242cb6 (diff), acdb5bac (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge: Replacement of BSD functions bzero, bcmp with C standard memset, memcmp.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/block/ahci/ahci.c

    rd242cb6 r6e8ed225  
    242242        }
    243243       
    244         bzero(buf, sata->block_size);
     244        memset(buf, 0, sata->block_size);
    245245       
    246246        fibril_mutex_lock(&sata->lock);
     
    444444        }
    445445       
    446         bzero(idata, SATA_IDENTIFY_DEVICE_BUFFER_LENGTH);
     446        memset(idata, 0, SATA_IDENTIFY_DEVICE_BUFFER_LENGTH);
    447447       
    448448        fibril_mutex_lock(&sata->lock);
     
    637637        }
    638638       
    639         bzero(idata, SATA_SET_FEATURE_BUFFER_LENGTH);
     639        memset(idata, 0, SATA_SET_FEATURE_BUFFER_LENGTH);
    640640       
    641641        fibril_mutex_lock(&sata->lock);
     
    954954                goto error_retfis;
    955955       
    956         bzero(virt_fb, size);
     956        memset(virt_fb, 0, size);
    957957        sata->port->pxfbu = HI(phys);
    958958        sata->port->pxfb = LO(phys);
     
    964964                goto error_cmd;
    965965       
    966         bzero(virt_cmd, size);
     966        memset(virt_cmd, 0, size);
    967967        sata->port->pxclbu = HI(phys);
    968968        sata->port->pxclb = LO(phys);
     
    975975                goto error_table;
    976976       
    977         bzero(virt_table, size);
     977        memset(virt_table, 0, size);
    978978        sata->cmd_header->cmdtableu = HI(phys);
    979979        sata->cmd_header->cmdtable = LO(phys);
     
    12871287{
    12881288        uint8_t model[40];
    1289         bzero(model, 40);
     1289        memset(model, 0, 40);
    12901290       
    12911291        for (unsigned int i = 0; i < 20; i++) {
Note: See TracChangeset for help on using the changeset viewer.