|
@@ -32,9 +32,8 @@
|
|
#endif
|
|
#endif
|
|
|
|
|
|
/*
|
|
/*
|
|
- * Most of the CPU's IRQ-state tracing is done from assembly code; we
|
|
|
|
- * have to call a C function so call a wrapper that saves all the
|
|
|
|
- * C-clobbered registers.
|
|
|
|
|
|
+ * These are calls to C code, so the caller must be prepared for volatiles to
|
|
|
|
+ * be clobbered.
|
|
*/
|
|
*/
|
|
#define TRACE_ENABLE_INTS TRACE_WITH_FRAME_BUFFER(trace_hardirqs_on)
|
|
#define TRACE_ENABLE_INTS TRACE_WITH_FRAME_BUFFER(trace_hardirqs_on)
|
|
#define TRACE_DISABLE_INTS TRACE_WITH_FRAME_BUFFER(trace_hardirqs_off)
|
|
#define TRACE_DISABLE_INTS TRACE_WITH_FRAME_BUFFER(trace_hardirqs_off)
|
|
@@ -42,6 +41,9 @@
|
|
/*
|
|
/*
|
|
* This is used by assembly code to soft-disable interrupts first and
|
|
* This is used by assembly code to soft-disable interrupts first and
|
|
* reconcile irq state.
|
|
* reconcile irq state.
|
|
|
|
+ *
|
|
|
|
+ * NB: This may call C code, so the caller must be prepared for volatiles to
|
|
|
|
+ * be clobbered.
|
|
*/
|
|
*/
|
|
#define RECONCILE_IRQ_STATE(__rA, __rB) \
|
|
#define RECONCILE_IRQ_STATE(__rA, __rB) \
|
|
lbz __rA,PACASOFTIRQEN(r13); \
|
|
lbz __rA,PACASOFTIRQEN(r13); \
|