diff options
| -rw-r--r-- | firmware/drivers/ata.c | 2 | ||||
| -rw-r--r-- | 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 |