mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-11 09:42:59 +00:00
Before introducing the code for ARM64 (AArch64) we need to relocate the current ARM code to a new AArch32 sub-directory. For now we can assume that no code is shared between ARM and ARM64. There are no functional changes. The code is moved to the new location and the file paths are fixed to reflect this change. Signed-off-by: Carlo Caione <ccaione@baylibre.com>
41 lines
663 B
C
41 lines
663 B
C
/*
|
|
* Copyright (c) 2013-2014 Wind River Systems, Inc.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/**
|
|
* @file
|
|
* @brief Cortex-M public kernel miscellaneous
|
|
*
|
|
* ARM-specific kernel miscellaneous interface. Included by arm/arch.h.
|
|
*/
|
|
|
|
#ifndef ZEPHYR_INCLUDE_ARCH_ARM_MISC_H_
|
|
#define ZEPHYR_INCLUDE_ARCH_ARM_MISC_H_
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifndef _ASMLANGUAGE
|
|
extern u32_t z_timer_cycle_get_32(void);
|
|
|
|
static inline u32_t arch_k_cycle_get_32(void)
|
|
{
|
|
return z_timer_cycle_get_32();
|
|
}
|
|
|
|
static ALWAYS_INLINE void arch_nop(void)
|
|
{
|
|
__asm__ volatile("nop");
|
|
}
|
|
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* ZEPHYR_INCLUDE_ARCH_ARM_MISC_H_ */
|