1 #ifndef __ASM_SH_IRQFLAGS_32_H
2 #define __ASM_SH_IRQFLAGS_32_H
4 static inline void raw_local_irq_enable(void)
6 unsigned long __dummy0
, __dummy1
;
11 #ifdef CONFIG_CPU_HAS_SR_RB
16 : "=&r" (__dummy0
), "=r" (__dummy1
)
22 static inline void raw_local_irq_disable(void)
26 __asm__
__volatile__ (
36 static inline void set_bl_bit(void)
38 unsigned long __dummy0
, __dummy1
;
40 __asm__
__volatile__ (
45 : "=&r" (__dummy0
), "=r" (__dummy1
)
46 : "r" (0x10000000), "r" (0xffffff0f)
51 static inline void clear_bl_bit(void)
53 unsigned long __dummy0
, __dummy1
;
55 __asm__
__volatile__ (
59 : "=&r" (__dummy0
), "=r" (__dummy1
)
65 static inline unsigned long __raw_local_save_flags(void)
69 __asm__
__volatile__ (
80 static inline unsigned long __raw_local_irq_save(void)
82 unsigned long flags
, __dummy
;
84 __asm__
__volatile__ (
91 : "=&z" (flags
), "=&r" (__dummy
)
99 #endif /* __ASM_SH_IRQFLAGS_32_H */