mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-07 05:35:02 -05:00
ipod6g: Correct inverted sector shift for CE-ATA operations.
(sector needs to be scaled UP, not DOWN) Change-Id: I350c6c371b29c5e152d8d35852e55e3eda0d1090
This commit is contained in:
parent
f2be592215
commit
7511d7e514
1 changed files with 1 additions and 1 deletions
|
|
@ -799,7 +799,7 @@ static int ata_rw_chunk_internal(uint64_t sector, uint32_t cnt, void* buffer, bo
|
||||||
formatted with 4K logical sectors, so this will be safe.
|
formatted with 4K logical sectors, so this will be safe.
|
||||||
*/
|
*/
|
||||||
cnt <<= (identify_info[106] - 9);
|
cnt <<= (identify_info[106] - 9);
|
||||||
sector >>= (identify_info[106] - 9);
|
sector <<= (identify_info[106] - 9);
|
||||||
|
|
||||||
memset(ceata_taskfile, 0, 16);
|
memset(ceata_taskfile, 0, 16);
|
||||||
ceata_taskfile[0x2] = cnt >> 8;
|
ceata_taskfile[0x2] = cnt >> 8;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue