xref: /linux/arch/um/include/asm/irqflags.h (revision 712cba5d87a6c0e980ee5fad45734e189c4d7151)
1 #ifndef __UM_IRQFLAGS_H
2 #define __UM_IRQFLAGS_H
3 
4 extern int get_signals(void);
5 extern int set_signals(int enable);
6 extern void block_signals(void);
7 extern void unblock_signals(void);
8 
9 #define arch_local_save_flags arch_local_save_flags
10 static inline unsigned long arch_local_save_flags(void)
11 {
12 	return get_signals();
13 }
14 
15 #define arch_local_irq_restore arch_local_irq_restore
16 static inline void arch_local_irq_restore(unsigned long flags)
17 {
18 	set_signals(flags);
19 }
20 
21 #define arch_local_irq_enable arch_local_irq_enable
22 static inline void arch_local_irq_enable(void)
23 {
24 	unblock_signals();
25 }
26 
27 #define arch_local_irq_disable arch_local_irq_disable
28 static inline void arch_local_irq_disable(void)
29 {
30 	block_signals();
31 }
32 
33 #define ARCH_IRQ_DISABLED	0
34 #define ARCh_IRQ_ENABLED	(SIGIO|SIGVTALRM)
35 
36 #include <asm-generic/irqflags.h>
37 
38 #endif
39