1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_SCORE_IRQFLAGS_H
3 #define _ASM_SCORE_IRQFLAGS_H
7 #include <linux/types.h>
9 static inline unsigned long arch_local_save_flags(void)
31 static inline unsigned long arch_local_irq_save(void)
37 " li r9, 0xfffffffe \n"
49 : "r8", "r9", "memory");
54 static inline void arch_local_irq_restore(unsigned long flags
)
69 : "r8", "r9", "memory");
72 static inline void arch_local_irq_enable(void)
90 static inline void arch_local_irq_disable(void)
109 static inline bool arch_irqs_disabled_flags(unsigned long flags
)
114 static inline bool arch_irqs_disabled(void)
116 return arch_irqs_disabled_flags(arch_local_save_flags());
119 #endif /* __ASSEMBLY__ */
121 #endif /* _ASM_SCORE_IRQFLAGS_H */