summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/sh64/bits/endian.h
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-08-13 20:08:30 +0000
committerEric Andersen <andersen@codepoet.org>2003-08-13 20:08:30 +0000
commit533d76fbc420a8cdca389dbea0d86eb64e0e8096 (patch)
tree122e91e59f3b0d1b346a30c2b90320980db0935d /libc/sysdeps/linux/sh64/bits/endian.h
parentae3cf778c3155c085468fe72a47ddd696a1b5a00 (diff)
Patch from Paul Mundt adding uClibc sh64 support:
Here's a patch that implements the beginnings of a rudimentary sh64 port. So far, this only works static, as I haven't done any of the ldso work yet. I've also not touched the libpthread stuff yet either, so that's also disabled for now. This port was based off of some work that Sean McGoogan at SuperH did for his initial port, but the this patch doesn't carry over too much from there (basically the libc/sysdeps/linux/sh64/Makefile (or rather, parts of it), the setjmp/longjmp stuff (which I had to rewrite portions of it to work with the new toolchains), etc.). However, for static, everything appears to work correcly, at least in a hello world type application.
Diffstat (limited to 'libc/sysdeps/linux/sh64/bits/endian.h')
-rw-r--r--libc/sysdeps/linux/sh64/bits/endian.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/sh64/bits/endian.h b/libc/sysdeps/linux/sh64/bits/endian.h
new file mode 100644
index 000000000..ae7e3bb2d
--- /dev/null
+++ b/libc/sysdeps/linux/sh64/bits/endian.h
@@ -0,0 +1,20 @@
+/*
+ * libc/sysdeps/linux/sh64/bits/endian.h
+ *
+ * Copyright (C) 2003 Paul Mundt
+ *
+ * This file is subject to the terms and conditions of the GNU Lesser
+ * General Public License. See the file COPYING.LIB in the main
+ * directory of this archive for more details.
+ */
+
+#ifndef _ENDIAN_H
+# error "Never use <bits/endian.h> directly; include <endian.h> instead."
+#endif
+
+#ifdef __LITTLE_ENDIAN__
+# define __BYTE_ORDER __LITTLE_ENDIAN
+#else
+# define __BYTE_ORDER __BIG_ENDIAN
+#endif
+