| * Common header file for blackfin family of processors. |
| /* Trace Macros for C files */ |
| #define trace_buffer_save(x) \ |
| (x) = bfin_read_TBUFCTL(); \ |
| bfin_write_TBUFCTL((x) & ~TBUFEN); \ |
| #define trace_buffer_restore(x) \ |
| bfin_write_TBUFCTL((x)); \ |
| /* Trace Macros for Assembly files */ |
| #define TRACE_BUFFER_START(preg, dreg) trace_buffer_start(preg, dreg) |
| #define TRACE_BUFFER_STOP(preg, dreg) trace_buffer_stop(preg, dreg) |
| #define trace_buffer_stop(preg, dreg) \ |
| #define trace_buffer_start(preg, dreg) \ |
| #ifdef CONFIG_DEBUG_BFIN_NO_KERN_HWTRACE |
| # define DEBUG_START_HWTRACE(preg, dreg) trace_buffer_start(preg, dreg) |
| # define DEBUG_STOP_HWTRACE(preg, dreg) trace_buffer_stop(preg, dreg) |
| # define DEBUG_START_HWTRACE(preg, dreg) |
| # define DEBUG_STOP_HWTRACE(preg, dreg) |
| #endif /* __ASSEMBLY__ */ |
| #endif /* _BLACKFIN_TRACE_ */ |