| /* GCC specific test inline assembler functions and macros */ |
| * Copyright (c) 2015, Wind River Systems, Inc. |
| * SPDX-License-Identifier: Apache-2.0 |
| #ifndef _TEST_ASM_INLINE_GCC_H |
| #define _TEST_ASM_INLINE_GCC_H |
| #error test_asm_inline_gcc.h goes only with GCC |
| static inline void timestamp_serialize(void) |
| __asm__ __volatile__ (/* serialize */ |
| : "%eax", "%ebx", "%ecx", "%edx"); |
| #elif defined(CONFIG_CPU_CORTEX_M) |
| #include <arch/arm/cortex_m/cmsis.h> |
| static inline void timestamp_serialize(void) |
| /* isb is avaialble in all Cortex-M */ |
| #elif defined(CONFIG_CPU_ARCV2) |
| #define timestamp_serialize() |
| #error implementation of timestamp_serialize() not provided for your CPU target |
| #endif /* _TEST_ASM_INLINE_GCC_H */ |