Loading...
1#ifndef __UM_IRQFLAGS_H
2#define __UM_IRQFLAGS_H
3
4/* Empty for now */
5
6#endif
1#ifndef __UM_IRQFLAGS_H
2#define __UM_IRQFLAGS_H
3
4extern int get_signals(void);
5extern int set_signals(int enable);
6extern void block_signals(void);
7extern void unblock_signals(void);
8
9#define arch_local_save_flags arch_local_save_flags
10static 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
16static 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
22static inline void arch_local_irq_enable(void)
23{
24 unblock_signals();
25}
26
27#define arch_local_irq_disable arch_local_irq_disable
28static 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