18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci#ifndef _ASM_MICROBLAZE_ASM_COMPAT_H
38c2ecf20Sopenharmony_ci#define _ASM_MICROBLAZE_ASM_COMPAT_H
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci#include <asm/types.h>
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ci#ifdef __ASSEMBLY__
88c2ecf20Sopenharmony_ci#  define stringify_in_c(...)	__VA_ARGS__
98c2ecf20Sopenharmony_ci#  define ASM_CONST(x)		x
108c2ecf20Sopenharmony_ci#else
118c2ecf20Sopenharmony_ci/* This version of stringify will deal with commas... */
128c2ecf20Sopenharmony_ci#  define __stringify_in_c(...)	#__VA_ARGS__
138c2ecf20Sopenharmony_ci#  define stringify_in_c(...)	__stringify_in_c(__VA_ARGS__) " "
148c2ecf20Sopenharmony_ci#  define __ASM_CONST(x)	x##UL
158c2ecf20Sopenharmony_ci#  define ASM_CONST(x)		__ASM_CONST(x)
168c2ecf20Sopenharmony_ci#endif
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ci#endif /* _ASM_MICROBLAZE_ASM_COMPAT_H */
19