diff --git a/lib/processor/xtensa/CMakeLists.txt b/lib/processor/xtensa/CMakeLists.txt new file mode 100644 index 00000000..13ce0230 --- /dev/null +++ b/lib/processor/xtensa/CMakeLists.txt @@ -0,0 +1,2 @@ +collect (PROJECT_LIB_HEADERS atomic.h) +collect (PROJECT_LIB_HEADERS cpu.h) diff --git a/lib/processor/xtensa/atomic.h b/lib/processor/xtensa/atomic.h new file mode 100644 index 00000000..03bcd097 --- /dev/null +++ b/lib/processor/xtensa/atomic.h @@ -0,0 +1,15 @@ +/* + * Copyright (c) 2015, Xiaomi Inc. and Contributors. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +/* + * @file xtensa/atomic.h + * @brief Xtensa specific atomic primitives for libmetal. + */ + +#ifndef __METAL_XTENSA_ATOMIC__H__ +#define __METAL_XTENSA_ATOMIC__H__ + +#endif /* __METAL_XTENSA_ATOMIC__H__ */ diff --git a/lib/processor/xtensa/cpu.h b/lib/processor/xtensa/cpu.h new file mode 100644 index 00000000..aec31343 --- /dev/null +++ b/lib/processor/xtensa/cpu.h @@ -0,0 +1,18 @@ +/* + * Copyright (c) 2015, Xiaomi Inc. and Contributors. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +/* + * @file cpu.h + * @brief CPU specific primatives + */ + +#ifndef __METAL_XTENSA_CPU__H__ +#define __METAL_XTENSA_CPU__H__ + +#define metal_cpu_yield() +#define __sync_synchronize() + +#endif /* __METAL_XTENSA_CPU__H__ */