summaryrefslogtreecommitdiff
path: root/firmware/drivers/ata.c
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2002-11-12 20:02:23 +0000
committerBjörn Stenberg <bjorn@haxx.se>2002-11-12 20:02:23 +0000
commit099a6b58d1cca1fb052aa453cf1dec524d3ba35a (patch)
tree23f0446a151c3f8ca47e6c715256a27737532b3b /firmware/drivers/ata.c
parent5a7548afbaa216385639b224051de5ea28fbeafe (diff)
Added extra safety checks.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2839 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/ata.c')
-rw-r--r--firmware/drivers/ata.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c
index 7e1d2421d3..58349f69a6 100644
--- a/firmware/drivers/ata.c
+++ b/firmware/drivers/ata.c
@@ -292,6 +292,9 @@ int ata_write_sectors(unsigned long start,
last_disk_activity = current_tick;
+ if (start == 0)
+ panicf("Writing on sector 0\n");
+
mutex_lock(&ata_mtx);
if ( sleeping ) {