4 #ifndef _ASM_IRQFLAGS_H
5 #define _ASM_IRQFLAGS_H
9 * Get definitions for raw_local_save_flags(x), etc.
11 #include <asm/hw_irq.h>
14 #ifdef CONFIG_TRACE_IRQFLAGS
16 * Most of the CPU's IRQ-state tracing is done from assembly code; we
17 * have to call a C function so call a wrapper that saves all the
18 * C-clobbered registers.
20 #define TRACE_ENABLE_INTS bl .trace_hardirqs_on
21 #define TRACE_DISABLE_INTS bl .trace_hardirqs_off
22 #define TRACE_AND_RESTORE_IRQ_PARTIAL(en,skip) \
25 stb en,PACASOFTIRQEN(r13); \
26 bl .trace_hardirqs_off; \
28 95: bl .trace_hardirqs_on; \
30 #define TRACE_AND_RESTORE_IRQ(en) \
31 TRACE_AND_RESTORE_IRQ_PARTIAL(en,96f); \
32 96: stb en,PACASOFTIRQEN(r13)
34 #define TRACE_ENABLE_INTS
35 #define TRACE_DISABLE_INTS
36 #define TRACE_AND_RESTORE_IRQ_PARTIAL(en,skip)
37 #define TRACE_AND_RESTORE_IRQ(en) \
38 stb en,PACASOFTIRQEN(r13)