xen/arm: Allow insn.h to be called from assembly

A follow-up patch will require to include insn.h from assembly code. So
we need to protect any C-specific definition to avoid compilation
errors when used in assembly code.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Release-acked-by: Juergen Gross <jgross@suse.com>
This commit is contained in:
Julien Grall committed 2019-11-01 14:32:38 +00:00
1 parent 6378a4c240
commit 7afbbca21b
1 file changed
+4
+4
View File
@@ -1,6 +1,8 @@
#ifndef __ARCH_ARM_INSN
#define __ARCH_ARM_INSN
#ifndef __ASSEMBLY__
#include <xen/types.h>
#if defined(CONFIG_ARM_64)
@@ -11,6 +13,8 @@
# error "unknown ARM variant"
#endif
#endif /* __ASSEMBLY__ */
/* On ARM32,64 instructions are always 4 bytes long. */
#define ARCH_PATCH_INSN_SIZE 4
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.