diff options
| author | Linus Nielsen Feltzing <linus@haxx.se> | 2005-02-06 02:32:53 +0000 |
|---|---|---|
| committer | Linus Nielsen Feltzing <linus@haxx.se> | 2005-02-06 02:32:53 +0000 |
| commit | 085032bf0237a4edf5763caf03faf307d45a5374 (patch) | |
| tree | 8daa675a40f78d4311fa80c41114d81acddb2c40 | |
| parent | 23756ed5e8ecb709d158edc5a6429b52bec615d2 (diff) | |
| download | rockbox-085032bf0237a4edf5763caf03faf307d45a5374.zip rockbox-085032bf0237a4edf5763caf03faf307d45a5374.tar.gz rockbox-085032bf0237a4edf5763caf03faf307d45a5374.tar.bz2 rockbox-085032bf0237a4edf5763caf03faf307d45a5374.tar.xz | |
Aligned thread stack, correct CONTROL register for iRiver
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5802 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | firmware/drivers/ata.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c index a92b7f7..204edb5 100644 --- a/firmware/drivers/ata.c +++ b/firmware/drivers/ata.c @@ -38,7 +38,7 @@ #define ATA_IOBASE 0x20000000 #define ATA_DATA (*((volatile unsigned short*)(ATA_IOBASE + 0x20))) -#define ATA_CONTROL (*((volatile unsigned short*)(ATA_IOBASE + 0xe))) +#define ATA_CONTROL (*((volatile unsigned short*)(ATA_IOBASE + 0x1c))) #define ATA_ERROR (*((volatile unsigned short*)(ATA_IOBASE + 0x22))) #define ATA_NSECTOR (*((volatile unsigned short*)(ATA_IOBASE + 0x24))) @@ -247,7 +247,7 @@ static bool poweroff = false; #ifdef HAVE_ATA_POWER_OFF static int poweroff_timeout = 2*HZ; #endif -static char ata_stack[DEFAULT_STACK_SIZE]; +static long ata_stack[DEFAULT_STACK_SIZE/sizeof(long)]; static const char ata_thread_name[] = "ata"; static struct event_queue ata_queue; static bool initialized = false; |