1 #ifndef _ASM_SCORE_IRQFLAGS_H
2 #define _ASM_SCORE_IRQFLAGS_H
6 #include <linux/types.h>
8 static inline unsigned long arch_local_save_flags(void)
30 static inline unsigned long arch_local_irq_save(void)
36 " li r9, 0xfffffffe \n"
48 : "r8", "r9", "memory");
53 static inline void arch_local_irq_restore(unsigned long flags
)
68 : "r8", "r9", "memory");
71 static inline void arch_local_irq_enable(void)
89 static inline void arch_local_irq_disable(void)
108 static inline bool arch_irqs_disabled_flags(unsigned long flags
)
113 static inline bool arch_irqs_disabled(void)
115 return arch_irqs_disabled_flags(arch_local_save_flags());
118 #endif /* __ASSEMBLY__ */
120 #endif /* _ASM_SCORE_IRQFLAGS_H */