mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-02 10:12:51 +00:00
I was half way through typing up my own one of these when I realized there was one already in the tree. Move it to a shared header. (FWIW: I really doubt that most architectures actually benefit from their own versions of these tools -- GCC's optimizer is really good, and custom assembly defeats optimization and factorizations of the expressions in context.) Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
43 lines
777 B
C
43 lines
777 B
C
/*
|
|
* Copyright (c) 2015, Wind River Systems, Inc.
|
|
* Copyright (c) 2017, Oticon A/S
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/*
|
|
* POSIX ARCH specific public inline "assembler" functions and macros
|
|
*/
|
|
|
|
/* Either public functions or macros or invoked by public functions */
|
|
|
|
#ifndef ZEPHYR_INCLUDE_ARCH_POSIX_ASM_INLINE_GCC_H_
|
|
#define ZEPHYR_INCLUDE_ARCH_POSIX_ASM_INLINE_GCC_H_
|
|
|
|
/*
|
|
* The file must not be included directly
|
|
* Include kernel.h instead
|
|
*/
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifndef _ASMLANGUAGE
|
|
|
|
#include <toolchain/common.h>
|
|
#include <zephyr/types.h>
|
|
#include <sys_io.h>
|
|
#include <arch/bits_portable.h>
|
|
#include "posix_soc_if.h"
|
|
|
|
|
|
#endif /* _ASMLANGUAGE */
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* ZEPHYR_INCLUDE_ARCH_POSIX_ASM_INLINE_GCC_H_ */
|