protocols.h 690 B

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