summaryrefslogtreecommitdiff
path: root/firmware/target/arm/imx31/avic-imx31.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/imx31/avic-imx31.h')
-rw-r--r--firmware/target/arm/imx31/avic-imx31.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/target/arm/imx31/avic-imx31.h b/firmware/target/arm/imx31/avic-imx31.h
index 04a2856b50..ca48f85ba5 100644
--- a/firmware/target/arm/imx31/avic-imx31.h
+++ b/firmware/target/arm/imx31/avic-imx31.h
@@ -67,6 +67,11 @@ void avic_set_int_type(enum IMX31_INT_LIST ints, enum INT_TYPE intstype);
67#define AVIC_NIL_ENABLE (-1) 67#define AVIC_NIL_ENABLE (-1)
68void avic_set_ni_level(int level); 68void avic_set_ni_level(int level);
69 69
70static inline void avic_mask_int(enum IMX31_INT_LIST ints)
71 { AVIC_INTDISNUM = ints; }
72
73static inline void avic_unmask_int(enum IMX31_INT_LIST ints)
74 { AVIC_INTENNUM = ints; }
70 75
71/* Call a service routine while allowing preemption by interrupts of higher 76/* Call a service routine while allowing preemption by interrupts of higher
72 * priority. Avoid using any app or other SVC stack by doing it with a mini 77 * priority. Avoid using any app or other SVC stack by doing it with a mini