mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
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>
16 lines
297 B
C
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 */
|