Changeset acdb5bac in mainline for uspace/drv/block/ahci/ahci.c
- Timestamp:
- 2013-05-20T18:42:25Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6e8ed225
- Parents:
- 44ecf89
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/block/ahci/ahci.c
r44ecf89 racdb5bac 242 242 } 243 243 244 bzero(buf, sata->block_size);244 memset(buf, 0, sata->block_size); 245 245 246 246 fibril_mutex_lock(&sata->lock); … … 444 444 } 445 445 446 bzero(idata, SATA_IDENTIFY_DEVICE_BUFFER_LENGTH);446 memset(idata, 0, SATA_IDENTIFY_DEVICE_BUFFER_LENGTH); 447 447 448 448 fibril_mutex_lock(&sata->lock); … … 637 637 } 638 638 639 bzero(idata, SATA_SET_FEATURE_BUFFER_LENGTH);639 memset(idata, 0, SATA_SET_FEATURE_BUFFER_LENGTH); 640 640 641 641 fibril_mutex_lock(&sata->lock); … … 954 954 goto error_retfis; 955 955 956 bzero(virt_fb, size);956 memset(virt_fb, 0, size); 957 957 sata->port->pxfbu = HI(phys); 958 958 sata->port->pxfb = LO(phys); … … 964 964 goto error_cmd; 965 965 966 bzero(virt_cmd, size);966 memset(virt_cmd, 0, size); 967 967 sata->port->pxclbu = HI(phys); 968 968 sata->port->pxclb = LO(phys); … … 975 975 goto error_table; 976 976 977 bzero(virt_table, size);977 memset(virt_table, 0, size); 978 978 sata->cmd_header->cmdtableu = HI(phys); 979 979 sata->cmd_header->cmdtable = LO(phys); … … 1287 1287 { 1288 1288 uint8_t model[40]; 1289 bzero(model, 40);1289 memset(model, 0, 40); 1290 1290 1291 1291 for (unsigned int i = 0; i < 20; i++) {
Note:
See TracChangeset
for help on using the changeset viewer.