1
0
Fork 0
forked from len0rd/rockbox

Remove sector 0 write protection from the ATA and MMC drivers. The one in the ATA driver makes it impossible to change sector 0 from within rockbox USB mode, and nobody reported having seen that sector 0 panic for a loong time. Afaik it dates back to when ATA and filesystem write support were developed.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16370 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2008-02-22 20:29:45 +00:00
parent 77970e4017
commit a0b5780e2d
2 changed files with 0 additions and 6 deletions

View file

@ -482,9 +482,6 @@ int ata_write_sectors(IF_MV2(int drive,)
int ret = 0;
long spinup_start;
if (start == 0)
panicf("Writing on sector 0\n");
#ifndef MAX_PHYS_SECTOR_SIZE
#ifdef HAVE_MULTIVOLUME
(void)drive; /* unused for now */

View file

@ -802,9 +802,6 @@ int ata_write_sectors(IF_MV2(int drive,)
int drive = current_card;
#endif
if (start == 0)
panicf("Writing on sector 0\n");
c_addr = start * SECTOR_SIZE;
c_end_addr = c_addr + count * SECTOR_SIZE;