From 97e61198a5f549db9dc882a01b2b272292bd2805 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Fri, 11 Apr 2008 10:39:24 +0000 Subject: iPod Video 30Gig doesn't seem to need the ata locking hack so we'll just attempt to remove it for this one. Works for me on 5.5g. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17071 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/ata.c | 2 +- firmware/thread.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c index 57164c4..25eac26 100644 --- a/firmware/drivers/ata.c +++ b/firmware/drivers/ata.c @@ -66,7 +66,7 @@ #define ATA_POWER_OFF_TIMEOUT 2*HZ #endif -#ifdef MAX_PHYS_SECTOR_SIZE +#if defined(MAX_PHYS_SECTOR_SIZE) && MEM == 64 /* Hack - what's the deal with 5g? */ struct ata_lock { diff --git a/firmware/thread.c b/firmware/thread.c index 0049df3..a25a191 100644 --- a/firmware/thread.c +++ b/firmware/thread.c @@ -161,7 +161,7 @@ void switch_thread(void) * Processor-specific section */ -#ifdef MAX_PHYS_SECTOR_SIZE +#if defined(MAX_PHYS_SECTOR_SIZE) && MEM == 64 /* Support a special workaround object for large-sector disks */ #define IF_NO_SKIP_YIELD(...) __VA_ARGS__ #else -- cgit v1.1