Go to the documentation of this file.
4 #ifndef _ASM_IRQFLAGS_H
5 #define _ASM_IRQFLAGS_H
11 #include <asm/hw_irq.h>
14 #ifdef CONFIG_TRACE_IRQFLAGS
15 #ifdef CONFIG_IRQSOFF_TRACER
21 #define TRACE_WITH_FRAME_BUFFER(func) \
30 #define TRACE_WITH_FRAME_BUFFER(func) \
39 #define TRACE_ENABLE_INTS TRACE_WITH_FRAME_BUFFER(.trace_hardirqs_on)
40 #define TRACE_DISABLE_INTS TRACE_WITH_FRAME_BUFFER(.trace_hardirqs_off)
45 #define SOFT_DISABLE_INTS(__rA, __rB) \
46 lbz __rA,PACASOFTIRQEN(r13); \
47 lbz __rB,PACAIRQHAPPENED(r13); \
50 ori __rB,__rB,PACA_IRQ_HARD_DIS; \
51 stb __rB,PACAIRQHAPPENED(r13); \
53 stb __rA,PACASOFTIRQEN(r13); \
58 #define TRACE_ENABLE_INTS
59 #define TRACE_DISABLE_INTS
61 #define SOFT_DISABLE_INTS(__rA, __rB) \
62 lbz __rA,PACAIRQHAPPENED(r13); \
64 ori __rA,__rA,PACA_IRQ_HARD_DIS; \
65 stb __rB,PACASOFTIRQEN(r13); \
66 stb __rA,PACAIRQHAPPENED(r13)