aboutsummaryrefslogtreecommitdiffstats
path: root/extras/mini-os/include/endian.h
diff options
context:
space:
mode:
Diffstat (limited to 'extras/mini-os/include/endian.h')
-rw-r--r--extras/mini-os/include/endian.h15
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 */