summaryrefslogtreecommitdiff
path: root/firmware/drivers
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2009-03-05 22:14:51 +0000
committerFrank Gevaerts <frank@gevaerts.be>2009-03-05 22:14:51 +0000
commitca41779fc67891abac4d052c2032dd886b5d7526 (patch)
tree5b551f9ece83b93853cd5f8ae7c8c3d76f1aac4a /firmware/drivers
parent7c93b5cb60b21e32000bd27572da1869df86487c (diff)
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
Diffstat (limited to 'firmware/drivers')
-rw-r--r--firmware/drivers/ata.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c
index 38face0aef..23f65b35c5 100644
--- a/firmware/drivers/ata.c
+++ b/firmware/drivers/ata.c
@@ -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;