Skip to content

Commit

Permalink
Blackfin: add C define of trace_buffer_init()
Browse files Browse the repository at this point in the history
Have the C API trace funcs match the assembly API trace funcs.

Signed-off-by: Graf Yang <graf.yang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
  • Loading branch information
Graf Yang authored and Mike Frysinger committed Dec 15, 2009
1 parent d887a1c commit 46fe23a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/blackfin/include/asm/trace.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ extern unsigned long software_trace_buff[];

#ifdef CONFIG_DEBUG_BFIN_HWTRACE_ON

#define trace_buffer_init() bfin_write_TBUFCTL(BFIN_TRACE_INIT)

#define trace_buffer_save(x) \
do { \
(x) = bfin_read_TBUFCTL(); \
Expand Down

0 comments on commit 46fe23a

Please sign in to comment.