summaryrefslogtreecommitdiffstats
path: root/arch/sparc/lib/libgcc.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@sunset.davemloft.net>2007-08-26 00:10:44 +0200
committerDavid S. Miller <davem@sunset.davemloft.net>2007-08-27 03:49:09 +0200
commit6cc0735d0dbf6a0e5f802f47d51e1e463466955c (patch)
tree62840e618992c257eff51c65bfe66a14f5942c9a /arch/sparc/lib/libgcc.h
parent[VIDEO]: Do not prom_halt() in cg3 and bw2 device probe. (diff)
downloadlinux-6cc0735d0dbf6a0e5f802f47d51e1e463466955c.tar.xz
linux-6cc0735d0dbf6a0e5f802f47d51e1e463466955c.zip
[SPARC32]: Add __cmpdi2() libcall implementation ala. MIPS.
Device mapper generates calls to this with recent versions of gcc. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/lib/libgcc.h')
-rw-r--r--arch/sparc/lib/libgcc.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/sparc/lib/libgcc.h b/arch/sparc/lib/libgcc.h
new file mode 100644
index 000000000000..b84fd797f3ea
--- /dev/null
+++ b/arch/sparc/lib/libgcc.h
@@ -0,0 +1,18 @@
+#ifndef __ASM_LIBGCC_H
+#define __ASM_LIBGCC_H
+
+#include <asm/byteorder.h>
+
+typedef int word_type __attribute__ ((mode (__word__)));
+
+struct DWstruct {
+ int high, low;
+};
+
+typedef union
+{
+ struct DWstruct s;
+ long long ll;
+} DWunion;
+
+#endif /* __ASM_LIBGCC_H */