2019-04-06 09:08:09 -04:00
|
|
|
/*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
2019-10-23 05:24:00 -07:00
|
|
|
#ifndef ZEPHYR_SUBSYS_TESTSUITE_ZTEST_INCLUDE_ARCH_CPU_H
|
|
|
|
#define ZEPHYR_SUBSYS_TESTSUITE_ZTEST_INCLUDE_ARCH_CPU_H
|
2019-04-06 09:08:09 -04:00
|
|
|
|
2016-08-22 15:03:46 +03:00
|
|
|
/* This file exists as a hack around Zephyr's dependencies */
|
2019-10-23 05:24:00 -07:00
|
|
|
|
2020-08-11 16:00:00 -05:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2019-10-25 00:08:21 +09:00
|
|
|
/* Architecture thread structure */
|
|
|
|
struct _callee_saved {
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef struct _callee_saved _callee_saved_t;
|
|
|
|
|
|
|
|
struct _thread_arch {
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef struct _thread_arch _thread_arch_t;
|
|
|
|
|
|
|
|
/* Architecture functions */
|
2020-05-27 11:26:57 -05:00
|
|
|
static inline uint32_t arch_k_cycle_get_32(void)
|
2019-10-23 05:24:00 -07:00
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2021-10-29 20:10:35 -04:00
|
|
|
static inline uint64_t arch_k_cycle_get_64(void)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2019-11-07 12:43:29 -08:00
|
|
|
static ALWAYS_INLINE unsigned int arch_irq_lock(void)
|
2019-10-23 05:24:00 -07:00
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2019-11-07 12:43:29 -08:00
|
|
|
static inline void arch_irq_unlock(unsigned int key)
|
2019-10-23 05:24:00 -07:00
|
|
|
{
|
|
|
|
ARG_UNUSED(key);
|
|
|
|
}
|
|
|
|
|
2019-11-07 12:43:29 -08:00
|
|
|
static inline bool arch_irq_unlocked(unsigned int key)
|
2019-10-23 05:24:00 -07:00
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2020-08-11 16:00:00 -05:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
2019-10-25 00:08:21 +09:00
|
|
|
#include <sys/arch_interface.h>
|
2019-10-23 05:24:00 -07:00
|
|
|
|
|
|
|
|
|
|
|
#endif /* ZEPHYR_SUBSYS_TESTSUITE_ZTEST_INCLUDE_ARCH_CPU_H */
|