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/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/endian.h')
-rw-r--r-- | extras/mini-os/include/endian.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/extras/mini-os/include/endian.h b/extras/mini-os/include/endian.h new file mode 100644 index 0000000000..cdf432bc43 --- /dev/null +++ b/extras/mini-os/include/endian.h @@ -0,0 +1,15 @@ +#ifndef _ENDIAN_H_ +#define _ENDIAN_H_ + +#define __LITTLE_ENDIAN 1234 +#define __BIG_ENDIAN 4321 +#define __PDP_ENDIAN 3412 + +#define ARCH_ENDIAN_H +/* This will define __BYTE_ORDER for the current arch */ +#include <arch_endian.h> +#undef ARCH_ENDIAN_H + +#include <arch_wordsize.h> + +#endif /* endian.h */ |