master
h 25 lines 690 Bytes
Raw
1 /* SPDX-License-Identifier: MIT */
2 /******************************************************************************
3 * protocols.h
4 *
5 * Copyright (c) 2008, Keir Fraser
6 */
7
8 #ifndef __XEN_PROTOCOLS_H__
9 #define __XEN_PROTOCOLS_H__
10
11 #define XEN_IO_PROTO_ABI_X86_32 "x86_32-abi"
12 #define XEN_IO_PROTO_ABI_X86_64 "x86_64-abi"
13 #define XEN_IO_PROTO_ABI_ARM "arm-abi"
14
15 #if defined(__i386__)
16 # define XEN_IO_PROTO_ABI_NATIVE XEN_IO_PROTO_ABI_X86_32
17 #elif defined(__x86_64__)
18 # define XEN_IO_PROTO_ABI_NATIVE XEN_IO_PROTO_ABI_X86_64
19 #elif defined(__arm__) || defined(__aarch64__)
20 # define XEN_IO_PROTO_ABI_NATIVE XEN_IO_PROTO_ABI_ARM
21 #else
22 # error arch fixup needed here
23 #endif
24
25 #endif