diff options
author | Matthew Fioravante <matthew.fioravante@jhuapl.edu> | 2012-10-08 14:36:29 +0100 |
---|---|---|
committer | Matthew Fioravante <matthew.fioravante@jhuapl.edu> | 2012-10-08 14:36:29 +0100 |
commit | 7ab9bbf9f8b922a25eb3d37ff5fd9b6a730bf85c (patch) | |
tree | 4edde95b2a64b63bfce840fe45243c977436b6aa /extras/mini-os/include/x86/arch_endian.h | |
parent | 5691487f3100c5176da4f0acbbb39b09b6180e05 (diff) | |
download | xen-7ab9bbf9f8b922a25eb3d37ff5fd9b6a730bf85c.tar.gz xen-7ab9bbf9f8b922a25eb3d37ff5fd9b6a730bf85c.tar.bz2 xen-7ab9bbf9f8b922a25eb3d37ff5fd9b6a730bf85c.zip |
minios: Add endian, byteswap, and wordsize macros to mini-os
This patch addes byte swapping macros and endian support to mini-os.
Signed-off-by: Matthew Fioravante <matthew.fioravante@jhuapl.edu>
Acked-by: Samuel Thibault <samuel.thibault@ens-lyons.org>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'extras/mini-os/include/x86/arch_endian.h')
-rw-r--r-- | extras/mini-os/include/x86/arch_endian.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/extras/mini-os/include/x86/arch_endian.h b/extras/mini-os/include/x86/arch_endian.h new file mode 100644 index 0000000000..07716837e4 --- /dev/null +++ b/extras/mini-os/include/x86/arch_endian.h @@ -0,0 +1,7 @@ +#ifndef ARCH_ENDIAN_H +#error "Do not include arch_endian by itself, include endian.h" +#else + +#define __BYTE_ORDER __LITTLE_ENDIAN + +#endif |