summaryrefslogtreecommitdiffstats
path: root/firmware/target/mips/ingenic_jz47xx/system-target.h
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2008-12-04 21:35:47 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2008-12-04 21:35:47 +0000
commit9f76f23ca52ec48b5a006d74a7d424956a277ed3 (patch)
tree70d4fd8a7d510f456e8a1541cd1221b198a409b5 /firmware/target/mips/ingenic_jz47xx/system-target.h
parentcea285d64e34f8c2ecce676f6239b59608597019 (diff)
downloadrockbox-9f76f23ca52ec48b5a006d74a7d424956a277ed3.tar.gz
rockbox-9f76f23ca52ec48b5a006d74a7d424956a277ed3.tar.bz2
rockbox-9f76f23ca52ec48b5a006d74a7d424956a277ed3.zip
Oops, logic error! Interrupts enabled != in interrupt mode
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19336 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.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/system-target.h b/firmware/target/mips/ingenic_jz47xx/system-target.h
index eab517fa5d..a8133140fa 100644
--- a/firmware/target/mips/ingenic_jz47xx/system-target.h
+++ b/firmware/target/mips/ingenic_jz47xx/system-target.h
@@ -56,11 +56,6 @@ static inline void disable_interrupt(void)
clear_c0_status(ST0_IE);
}
-static inline bool in_interrupt_mode(void)
-{
- return (read_c0_status() & ST0_IE) ? true : false;
-}
-
#define disable_irq() \
disable_interrupt()
@@ -106,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