diff options
author | Jens Arnold <amiconn@rockbox.org> | 2008-02-22 20:29:45 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2008-02-22 20:29:45 +0000 |
commit | a0b5780e2d7731eb06c9882d103f87ae9064f2eb (patch) | |
tree | bf92127c9af47625a3495fc38c38ba66c0910dbf | |
parent | 77970e4017074427144cd600edc432972b77999e (diff) |
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
-rw-r--r-- | firmware/drivers/ata.c | 3 | ||||
-rw-r--r-- | firmware/drivers/ata_mmc.c | 3 |
2 files changed, 0 insertions, 6 deletions
diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c index 94a785c46a..549a7bf920 100644 --- a/firmware/drivers/ata.c +++ b/firmware/drivers/ata.c @@ -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 */ diff --git a/firmware/drivers/ata_mmc.c b/firmware/drivers/ata_mmc.c index 6d69501deb..fdd091248f 100644 --- a/firmware/drivers/ata_mmc.c +++ b/firmware/drivers/ata_mmc.c @@ -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; |