mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-04-11 16:37:45 -04:00
Use total_sectors in ata_get_info() instead of calculating it all over again. This should fix LBA48 issues.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20208 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
7c93b5cb60
commit
ca41779fc6
1 changed files with 1 additions and 2 deletions
|
|
@ -1429,8 +1429,7 @@ void ata_get_info(struct storage_info *info)
|
|||
static char revision[4];
|
||||
int i;
|
||||
info->sector_size = SECTOR_SIZE;
|
||||
info->num_sectors= ((unsigned long)identify_info[61] << 16 | \
|
||||
(unsigned long)identify_info[60]);
|
||||
info->num_sectors= total_sectors;
|
||||
|
||||
src = (unsigned short*)&identify_info[27];
|
||||
dest = (unsigned short*)vendor;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue