mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
Blackfin: add C define of trace_buffer_init()
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>
This commit is contained in:
parent
d887a1ce28
commit
46fe23ac39
1 changed files with 2 additions and 0 deletions
|
@ -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(); \
|
||||
|
|
Loading…
Reference in a new issue