2015-04-28 01:40:11 +08:00
|
|
|
/* Inline assembler kernel functions and macros */
|
2015-04-11 07:44:37 +08:00
|
|
|
|
|
|
|
/*
|
2015-04-28 01:40:11 +08:00
|
|
|
* Copyright (c) 2015, Wind River Systems, Inc.
|
2015-04-11 07:44:37 +08:00
|
|
|
*
|
2017-01-19 09:01:01 +08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2015-04-11 07:44:37 +08:00
|
|
|
*/
|
|
|
|
|
2015-04-28 01:40:11 +08:00
|
|
|
#ifndef _ASM_INLINE_H
|
|
|
|
#define _ASM_INLINE_H
|
2015-04-11 07:44:37 +08:00
|
|
|
|
2015-06-17 23:16:57 +08:00
|
|
|
#if !defined(CONFIG_ARM) || !defined(CONFIG_CPU_CORTEX_M)
|
2015-08-21 04:46:11 +08:00
|
|
|
#error arch/arm/include/asm_inline.h is for ARM Cortex-M only
|
2015-04-28 01:40:11 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(__GNUC__)
|
2015-08-21 04:46:11 +08:00
|
|
|
#include <cortex_m/asm_inline_gcc.h>
|
2015-04-28 01:40:11 +08:00
|
|
|
#else
|
2015-08-21 04:46:11 +08:00
|
|
|
#include <cortex_m/asm_inline_other.h>
|
2015-04-28 01:40:11 +08:00
|
|
|
#endif /* __GNUC__ */
|
|
|
|
|
|
|
|
#endif /* _ASM_INLINE_H */
|