summaryrefslogtreecommitdiff
path: root/firmware/export/system.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/system.h')
-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 2523a72fb3..3db38c9c7b 100644
--- a/firmware/export/system.h
+++ b/firmware/export/system.h
@@ -314,8 +314,11 @@ static inline int set_irq_level(int level)
314 return (cpsr >> 7) & 1; 314 return (cpsr >> 7) & 1;
315} 315}
316 316
317static inline void enable_fiq(void) 317static inline void enable_fiq(void(*fiq_handler)(void))
318{ 318{
319 /* Install the FIQ handler */
320 *((unsigned int*)(15*4)) = (unsigned int)fiq_handler;
321
319 /* Clear FIQ disable bit */ 322 /* Clear FIQ disable bit */
320 asm volatile ( 323 asm volatile (
321 "mrs r0, cpsr \n"\ 324 "mrs r0, cpsr \n"\