Changeset 6e8ed225 in mainline for uspace/drv/block/ahci/ahci.c
- Timestamp:
- 2013-05-20T18:43:13Z (12 years ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/block/ahci/ahci.c
rd242cb6 r6e8ed225 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.