summaryrefslogtreecommitdiff
path: root/firmware/drivers
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2005-02-06 02:32:53 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2005-02-06 02:32:53 +0000
commit085032bf0237a4edf5763caf03faf307d45a5374 (patch)
tree8daa675a40f78d4311fa80c41114d81acddb2c40 /firmware/drivers
parent23756ed5e8ecb709d158edc5a6429b52bec615d2 (diff)
downloadrockbox-085032bf0237a4edf5763caf03faf307d45a5374.tar.gz
rockbox-085032bf0237a4edf5763caf03faf307d45a5374.zip
Aligned thread stack, correct CONTROL register for iRiver
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5802 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers')
-rw-r--r--firmware/drivers/ata.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c
index a92b7f700f..204edb524a 100644
--- a/firmware/drivers/ata.c
+++ b/firmware/drivers/ata.c
@@ -38,7 +38,7 @@
38 38
39#define ATA_IOBASE 0x20000000 39#define ATA_IOBASE 0x20000000
40#define ATA_DATA (*((volatile unsigned short*)(ATA_IOBASE + 0x20))) 40#define ATA_DATA (*((volatile unsigned short*)(ATA_IOBASE + 0x20)))
41#define ATA_CONTROL (*((volatile unsigned short*)(ATA_IOBASE + 0xe))) 41#define ATA_CONTROL (*((volatile unsigned short*)(ATA_IOBASE + 0x1c)))
42 42
43#define ATA_ERROR (*((volatile unsigned short*)(ATA_IOBASE + 0x22))) 43#define ATA_ERROR (*((volatile unsigned short*)(ATA_IOBASE + 0x22)))
44#define ATA_NSECTOR (*((volatile unsigned short*)(ATA_IOBASE + 0x24))) 44#define ATA_NSECTOR (*((volatile unsigned short*)(ATA_IOBASE + 0x24)))
@@ -247,7 +247,7 @@ static bool poweroff = false;
247#ifdef HAVE_ATA_POWER_OFF 247#ifdef HAVE_ATA_POWER_OFF
248static int poweroff_timeout = 2*HZ; 248static int poweroff_timeout = 2*HZ;
249#endif 249#endif
250static char ata_stack[DEFAULT_STACK_SIZE]; 250static long ata_stack[DEFAULT_STACK_SIZE/sizeof(long)];
251static const char ata_thread_name[] = "ata"; 251static const char ata_thread_name[] = "ata";
252static struct event_queue ata_queue; 252static struct event_queue ata_queue;
253static bool initialized = false; 253static bool initialized = false;