1 /* asm_inline_gcc.h - ARC inline assembler and macros for public functions */
2 
3 /*
4  * Copyright (c) 2015 Intel Corporation.
5  *
6  * SPDX-License-Identifier: Apache-2.0
7  */
8 
9 #ifndef ZEPHYR_INCLUDE_ARCH_ARC_V2_ASM_INLINE_GCC_H_
10 #define ZEPHYR_INCLUDE_ARCH_ARC_V2_ASM_INLINE_GCC_H_
11 
12 #ifndef _ASMLANGUAGE
13 
14 #include <zephyr/types.h>
15 #include <stddef.h>
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
21 
22 /**
23  *  @brief read timestamp register (CPU frequency)
24  */
25 extern uint64_t z_tsc_read(void);
26 
27 #ifdef __cplusplus
28 }
29 #endif
30 
31 #endif /* _ASMLANGUAGE */
32 
33 #endif /* ZEPHYR_INCLUDE_ARCH_ARC_V2_ASM_INLINE_GCC_H_ */
34