diff options
author | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2008-08-06 20:39:02 +0000 |
---|---|---|
committer | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2008-08-06 20:39:02 +0000 |
commit | 88ae9024e4a1fec45e867f6a1f6cbea0ae0455bb (patch) | |
tree | 67fd77d2267eeda80987db55692886546a457e59 /firmware/thread.c | |
parent | 496e1f7e85f929c487eb89f85ff0fc7edfcf3a27 (diff) | |
download | rockbox-88ae9024e4a1fec45e867f6a1f6cbea0ae0455bb.tar.gz rockbox-88ae9024e4a1fec45e867f6a1f6cbea0ae0455bb.zip |
* Add basic (non-working) support for NAND flash
* Add panicf() handling
* Add not-yet-enabled dma acceleration
* Other (minor) fixes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18203 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/thread.c')
-rw-r--r-- | firmware/thread.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/firmware/thread.c b/firmware/thread.c index 5c404b1196..f70eb5af7f 100644 --- a/firmware/thread.c +++ b/firmware/thread.c @@ -1128,10 +1128,18 @@ static inline void core_sleep(void) REG_CPM_LCR &= ~CPM_LCR_LPM_MASK; REG_CPM_LCR |= CPM_LCR_LPM_SLEEP; */ - asm volatile(".set mips3 \n" - "wait \n" - ".set mips0 \n" + #if 0 + asm volatile(".set mips32 \n" + "mfc0 t0, 12 \n" + "move t1, t0 \n" + "ori t0, t0, 0x8000000 \n" /* Enable reduced power mode */ + "mtc0 t0, 12 \n" + "wait \n" + "mtc0 t1, 12 \n" + ".set mips0 \n" + ::: "t0", "t1" ); + #endif /* REG_CPM_LCR &= ~CPM_LCR_LPM_MASK; REG_CPM_LCR |= CPM_LCR_LPM_IDLE; |