summaryrefslogtreecommitdiff
path: root/arch/mips/lib/libgcc.h
diff options
context:
space:
mode:
authorTom Rini <trini@ti.com>2012-09-14 07:15:48 -0700
committerTom Rini <trini@ti.com>2012-09-14 07:15:48 -0700
commit8f082d78fafd94db3f21b503794e0875d3331e53 (patch)
tree1eef05dcd0fca58283eac2c5fff55ba53f5abc81 /arch/mips/lib/libgcc.h
parentf71d5cd56bee6e730fe46f5f2024f1b5106ab944 (diff)
parent748fd4a621a870d378e4e4f54df76a38fd5d3cba (diff)
Merge branch 'master' of git://git.denx.de/u-boot-mips
Diffstat (limited to 'arch/mips/lib/libgcc.h')
-rw-r--r--arch/mips/lib/libgcc.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/arch/mips/lib/libgcc.h b/arch/mips/lib/libgcc.h
new file mode 100644
index 0000000000..05909d58e2
--- /dev/null
+++ b/arch/mips/lib/libgcc.h
@@ -0,0 +1,25 @@
+#ifndef __ASM_LIBGCC_H
+#define __ASM_LIBGCC_H
+
+#include <asm/byteorder.h>
+
+typedef int word_type __attribute__ ((mode (__word__)));
+
+#ifdef __BIG_ENDIAN
+struct DWstruct {
+ int high, low;
+};
+#elif defined(__LITTLE_ENDIAN)
+struct DWstruct {
+ int low, high;
+};
+#else
+#error I feel sick.
+#endif
+
+typedef union {
+ struct DWstruct s;
+ long long ll;
+} DWunion;
+
+#endif /* __ASM_LIBGCC_H */