mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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:
1 parent
6378a4c240
commit
7afbbca21b
1 file changed
+4
@@ -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
|
||||
|
||||
|
||||