summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/system.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/firmware/export/system.h b/firmware/export/system.h
index 3db38c9..66a2133 100644
--- a/firmware/export/system.h
+++ b/firmware/export/system.h
@@ -314,11 +314,14 @@ static inline int set_irq_level(int level)
return (cpsr >> 7) & 1;
}
-static inline void enable_fiq(void(*fiq_handler)(void))
+static inline void set_fiq_handler(void(*fiq_handler)(void))
{
/* Install the FIQ handler */
*((unsigned int*)(15*4)) = (unsigned int)fiq_handler;
+}
+static inline void enable_fiq(void)
+{
/* Clear FIQ disable bit */
asm volatile (
"mrs r0, cpsr \n"\