2006-06-04 16:51:43 +07:00
|
|
|
#ifndef __UM_IRQFLAGS_H
|
|
|
|
#define __UM_IRQFLAGS_H
|
|
|
|
|
2011-08-19 02:14:00 +07:00
|
|
|
extern int get_signals(void);
|
|
|
|
extern int set_signals(int enable);
|
|
|
|
extern void block_signals(void);
|
|
|
|
extern void unblock_signals(void);
|
|
|
|
|
2016-06-13 03:04:53 +07:00
|
|
|
#define arch_local_save_flags arch_local_save_flags
|
2011-08-19 02:14:00 +07:00
|
|
|
static inline unsigned long arch_local_save_flags(void)
|
|
|
|
{
|
|
|
|
return get_signals();
|
|
|
|
}
|
|
|
|
|
2016-06-13 03:04:53 +07:00
|
|
|
#define arch_local_irq_restore arch_local_irq_restore
|
2011-08-19 02:14:00 +07:00
|
|
|
static inline void arch_local_irq_restore(unsigned long flags)
|
|
|
|
{
|
|
|
|
set_signals(flags);
|
|
|
|
}
|
|
|
|
|
2016-06-13 03:04:53 +07:00
|
|
|
#define arch_local_irq_enable arch_local_irq_enable
|
2011-08-19 02:14:00 +07:00
|
|
|
static inline void arch_local_irq_enable(void)
|
|
|
|
{
|
|
|
|
unblock_signals();
|
|
|
|
}
|
|
|
|
|
2016-06-13 03:04:53 +07:00
|
|
|
#define arch_local_irq_disable arch_local_irq_disable
|
2011-08-19 02:14:00 +07:00
|
|
|
static inline void arch_local_irq_disable(void)
|
|
|
|
{
|
|
|
|
block_signals();
|
|
|
|
}
|
|
|
|
|
2016-06-13 03:04:53 +07:00
|
|
|
#define ARCH_IRQ_DISABLED 0
|
|
|
|
#define ARCh_IRQ_ENABLED (SIGIO|SIGVTALRM)
|
2011-08-19 02:14:00 +07:00
|
|
|
|
2016-06-13 03:04:53 +07:00
|
|
|
#include <asm-generic/irqflags.h>
|
2006-06-04 16:51:43 +07:00
|
|
|
|
|
|
|
#endif
|