Files
xen/extras/mini-os/include/endian.h
T
Matthew Fioravante 7ab9bbf9f8 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>
2012-10-08 14:36:29 +01:00

16 lines
297 B
C

#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 */