zephyr/arch/arc/core
Chuck Jordan ae15a26751 arc: add _tsc_read for 64-bit timestamp
This implementation of _tsc_read returns a 64-bit value that
is derived from the 64-bit tick count multiplied by hwcycles per tick,
and then it adds the current value from the 32-bit timer.
This produces a 64-bit time. There is a bunch of math here, which
could be avoided if the CPU is built with Real-Time-Clock option.
EM Starter Kit SOCs don't have this. I don't think Arduino 101 does
either.

See ZEP-1559

Change-Id: I9f846d170246556ac40fe2f45809e457c6375d8c
Signed-off-by: Chuck Jordan <cjordan@synopsys.com>
2017-02-15 05:55:09 +00:00
..
offsets license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
Makefile arc: add _tsc_read for 64-bit timestamp 2017-02-15 05:55:09 +00:00
atomic.S build: add _ASMLANGUAGE to all asm files 2017-01-24 13:34:51 +00:00
cache.c license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
cpu_idle.S build: add _ASMLANGUAGE to all asm files 2017-01-24 13:34:51 +00:00
fast_irq.S arc: enable gen_isr_tables mechanism 2017-02-15 04:54:47 +00:00
fatal.c license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
fault.c license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
fault_s.S build: add _ASMLANGUAGE to all asm files 2017-01-24 13:34:51 +00:00
irq_manage.c license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
irq_offload.c license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
isr_wrapper.S arc: enable gen_isr_tables mechanism 2017-02-15 04:54:47 +00:00
prep_c.c license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
regular_irq.S build: add _ASMLANGUAGE to all asm files 2017-01-24 13:34:51 +00:00
reset.S build: add _ASMLANGUAGE to all asm files 2017-01-24 13:34:51 +00:00
swap.S build: add _ASMLANGUAGE to all asm files 2017-01-24 13:34:51 +00:00
sys_fatal_error_handler.c license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
thread.c kernel: rename thread states symbols 2017-01-24 13:34:49 +00:00
thread_entry_wrapper.S build: add _ASMLANGUAGE to all asm files 2017-01-24 13:34:51 +00:00
timestamp.c arc: add _tsc_read for 64-bit timestamp 2017-02-15 05:55:09 +00:00
vector_table.c license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00