diff options
author | Michael Sparmann <theseven@rockbox.org> | 2011-01-03 13:09:42 +0000 |
---|---|---|
committer | Michael Sparmann <theseven@rockbox.org> | 2011-01-03 13:09:42 +0000 |
commit | 80b50e75872fb18f427ff4fdd1f7c58406b8e2c3 (patch) | |
tree | 41fdb3d9ebc3ea6734befdd74e4a8126025d123e | |
parent | b23e51050f5cfc240ffeb33dbab402d92d6c9a81 (diff) | |
download | rockbox-80b50e75872fb18f427ff4fdd1f7c58406b8e2c3.tar.gz rockbox-80b50e75872fb18f427ff4fdd1f7c58406b8e2c3.zip |
Fix regression from r28950: ATA broken on MPIO and possibly other targets
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28957 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/drivers/ata.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c index b0c975efbb..50474475c3 100644 --- a/firmware/drivers/ata.c +++ b/firmware/drivers/ata.c | |||
@@ -765,10 +765,10 @@ static int check_registers(void) | |||
765 | ATA_OUT8(ATA_LCYL, TEST_PATTERN3); | 765 | ATA_OUT8(ATA_LCYL, TEST_PATTERN3); |
766 | ATA_OUT8(ATA_HCYL, TEST_PATTERN4); | 766 | ATA_OUT8(ATA_HCYL, TEST_PATTERN4); |
767 | 767 | ||
768 | if ((ATA_IN8(ATA_NSECTOR) == TEST_PATTERN1) && | 768 | if (((ATA_IN8(ATA_NSECTOR) & 0xff) == TEST_PATTERN1) && |
769 | (ATA_IN8(ATA_SECTOR) == TEST_PATTERN2) && | 769 | ((ATA_IN8(ATA_SECTOR) & 0xff) == TEST_PATTERN2) && |
770 | (ATA_IN8(ATA_LCYL) == TEST_PATTERN3) && | 770 | ((ATA_IN8(ATA_LCYL) & 0xff) == TEST_PATTERN3) && |
771 | (ATA_IN8(ATA_HCYL) == TEST_PATTERN4)) | 771 | ((ATA_IN8(ATA_HCYL) & 0xff) == TEST_PATTERN4)) |
772 | return 0; | 772 | return 0; |
773 | 773 | ||
774 | sleep(1); | 774 | sleep(1); |