X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2Fata.h;h=c6ad4b433c9db90ab6ad3a1ff927c464f4ac4bc5;hp=d79e0123662b7ddaadea3cbfc16ae0e1fa720ab3;hb=198151f1d58834ff7889389007232a3d250f51f1;hpb=6d3926e16dc1ba6ca0144e65b737e432c48aaa91 diff --git a/palacios/src/devices/ata.h b/palacios/src/devices/ata.h index d79e012..c6ad4b4 100644 --- a/palacios/src/devices/ata.h +++ b/palacios/src/devices/ata.h @@ -215,7 +215,7 @@ static int ata_get_lba_and_size(struct ide_internal * ide, struct ide_channel * // we are in CHS mode.... *lba = - (drive->cylinder * drive->num_heads + + ((uint64_t)drive->cylinder * drive->num_heads + channel->drive_head.head_num) * drive->num_sectors + // sector number is 1 based (drive->sector_num - 1);