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:
parent
77970e4017
commit
a0b5780e2d
2 changed files with 0 additions and 6 deletions
|
|
@ -482,9 +482,6 @@ int ata_write_sectors(IF_MV2(int drive,)
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
long spinup_start;
|
long spinup_start;
|
||||||
|
|
||||||
if (start == 0)
|
|
||||||
panicf("Writing on sector 0\n");
|
|
||||||
|
|
||||||
#ifndef MAX_PHYS_SECTOR_SIZE
|
#ifndef MAX_PHYS_SECTOR_SIZE
|
||||||
#ifdef HAVE_MULTIVOLUME
|
#ifdef HAVE_MULTIVOLUME
|
||||||
(void)drive; /* unused for now */
|
(void)drive; /* unused for now */
|
||||||
|
|
|
||||||
|
|
@ -802,9 +802,6 @@ int ata_write_sectors(IF_MV2(int drive,)
|
||||||
int drive = current_card;
|
int drive = current_card;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (start == 0)
|
|
||||||
panicf("Writing on sector 0\n");
|
|
||||||
|
|
||||||
c_addr = start * SECTOR_SIZE;
|
c_addr = start * SECTOR_SIZE;
|
||||||
c_end_addr = c_addr + count * SECTOR_SIZE;
|
c_end_addr = c_addr + count * SECTOR_SIZE;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue