2017-10-03 16:31:55 +02:00
|
|
|
/* Inline assembler kernel functions and macros */
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright (c) 2015, Wind River Systems, Inc.
|
|
|
|
* Copyright (c) 2017, Oticon A/S
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
2018-09-14 19:43:44 +02:00
|
|
|
#ifndef ZEPHYR_ARCH_POSIX_INCLUDE_ASM_INLINE_H_
|
|
|
|
#define ZEPHYR_ARCH_POSIX_INCLUDE_ASM_INLINE_H_
|
2017-10-03 16:31:55 +02:00
|
|
|
|
|
|
|
#if !defined(CONFIG_ARCH_POSIX)
|
|
|
|
#error The arch/posix/include/asm_inline.h is only for the POSIX architecture
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(__GNUC__)
|
|
|
|
#include <asm_inline_gcc.h> /* The empty one.. */
|
2022-05-06 10:49:15 +02:00
|
|
|
#include <zephyr/arch/posix/asm_inline_gcc.h>
|
2017-10-03 16:31:55 +02:00
|
|
|
#else
|
|
|
|
#include <asm_inline_other.h>
|
|
|
|
#endif /* __GNUC__ */
|
|
|
|
|
2018-09-14 19:43:44 +02:00
|
|
|
#endif /* ZEPHYR_ARCH_POSIX_INCLUDE_ASM_INLINE_H_ */
|