summaryrefslogtreecommitdiffstats
path: root/firmware/target/mips/ingenic_jz47xx/system-target.h
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2008-12-03 00:20:24 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2008-12-03 00:20:24 +0000
commit815998c6693998b7d7a3a523058ff0988e735d27 (patch)
tree1ad06d79a90b946362f79d5c73dbe77d8f101ba4 /firmware/target/mips/ingenic_jz47xx/system-target.h
parent0e97b1a1ebf205f33e80266f06d75bf71aa73de7 (diff)
downloadrockbox-815998c6693998b7d7a3a523058ff0988e735d27.tar.gz
rockbox-815998c6693998b7d7a3a523058ff0988e735d27.tar.bz2
rockbox-815998c6693998b7d7a3a523058ff0988e735d27.zip
Jz4740 targets: make sure you don't yield when in interrupt mode
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19309 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/mips/ingenic_jz47xx/system-target.h')
-rw-r--r--firmware/target/mips/ingenic_jz47xx/system-target.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/system-target.h b/firmware/target/mips/ingenic_jz47xx/system-target.h
index 39bf35bba6..6ab5d02135 100644
--- a/firmware/target/mips/ingenic_jz47xx/system-target.h
+++ b/firmware/target/mips/ingenic_jz47xx/system-target.h
@@ -67,7 +67,7 @@ static inline int disable_interrupt_save(int mask)
unsigned int oldstatus;
oldstatus = read_c0_status();
- write_c0_status(oldstatus | mask);
+ write_c0_status(oldstatus & ~mask);
return oldstatus;
}
@@ -101,6 +101,7 @@ void udelay(unsigned int usec);
void mdelay(unsigned int msec);
void power_off(void);
void system_reboot(void);
+bool in_interrupt_mode(void);
#define DMA_LCD_CHANNEL 0
#define DMA_NAND_CHANNEL 1