Home
last modified time | relevance | path

Searched refs:cntpct (Results 1 – 1 of 1) sorted by relevance

/external/u-boot/arch/arm/cpu/armv8/
Dgeneric_timer.c36 unsigned long cntpct; in timer_read_counter() local
40 asm volatile("mrs %0, cntpct_el0" : "=r" (cntpct)); in timer_read_counter()
42 while (temp != cntpct) { in timer_read_counter()
43 asm volatile("mrs %0, cntpct_el0" : "=r" (cntpct)); in timer_read_counter()
47 return cntpct; in timer_read_counter()
64 unsigned long cntpct; in timer_read_counter() local
68 asm volatile("mrs %0, cntpct_el0" : "=r" (cntpct)); in timer_read_counter()
69 } while (((cntpct + 1) & GENMASK(10, 0)) <= 1); in timer_read_counter()
71 return cntpct; in timer_read_counter()
79 unsigned long cntpct; in timer_read_counter() local
[all …]