Skip to content
Snippets Groups Projects
Commit d81d1763 authored by Simon Glass's avatar Simon Glass
Browse files

arm: Support trace on armv8


Use the notrace attribute so that timer functions can be used when
tracing. This is required to avoid infinite loops when recording a trace.

Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
parent 33c60a38
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,7 @@ DECLARE_GLOBAL_DATA_PTR;
/*
* Generic timer implementation of get_tbclk()
*/
unsigned long get_tbclk(void)
unsigned long notrace get_tbclk(void)
{
unsigned long cntfrq;
asm volatile("mrs %0, cntfrq_el0" : "=r" (cntfrq));
......@@ -78,7 +78,7 @@ unsigned long timer_read_counter(void)
/*
* timer_read_counter() using the Arm Generic Timer (aka arch timer).
*/
unsigned long timer_read_counter(void)
unsigned long notrace timer_read_counter(void)
{
unsigned long cntpct;
......@@ -89,7 +89,7 @@ unsigned long timer_read_counter(void)
}
#endif
uint64_t get_ticks(void)
uint64_t notrace get_ticks(void)
{
unsigned long ticks = timer_read_counter();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment