1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-10-27 22:58:05 +02:00
openwrt-xburst/target/linux/octeon/patches/001-handle_removal_h_constraint.patch
hcg 51c6d32fb3 Removed delay.h update from 001-handle_removal_h_constraint.patch
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16423 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-06-11 12:45:27 +00:00

26 lines
695 B
Diff

This is an incomplete proof of concept that I applied to be able to
build a 64 bit kernel with GCC-4.4. It doesn't handle the 32 bit case
or the R4000_WAR case.
Comments welcome.
Signed-off-by: David Daney <ddaney@caviumnetworks.com>
---
arch/mips/include/asm/compiler.h | 7 +++++++
2 files changed, 11 insertions(+), 0 deletions(-)
--- a/arch/mips/include/asm/compiler.h
+++ b/arch/mips/include/asm/compiler.h
@@ -26,4 +26,11 @@ typedef u64 uintx_t;
#endif
#endif
+#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)
+#define GCC_NO_H_CONSTRAINT
+#ifdef CONFIG_64BIT
+typedef unsigned int uint128_t __attribute__((mode(TI)));
+#endif
+#endif
+
#endif /* _ASM_COMPILER_H */