summaryrefslogtreecommitdiffstats
path: root/target/linux/octeon/patches-2.6.30/001-handle_removal_h_constraint.patch
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2010-02-04 10:10:45 +0000
committerFlorian Fainelli <florian@openwrt.org>2010-02-04 10:10:45 +0000
commit7b56fb6337756ff7cb07dec09420da7026d7d3e3 (patch)
treed45f59e7512a199eaadbb25303051dbb6f160d23 /target/linux/octeon/patches-2.6.30/001-handle_removal_h_constraint.patch
parentdc192096e9ac454520fd1aec7ab58a34fa42d02c (diff)
downloadmaster-31e0f0ae-7b56fb6337756ff7cb07dec09420da7026d7d3e3.tar.gz
master-31e0f0ae-7b56fb6337756ff7cb07dec09420da7026d7d3e3.tar.bz2
master-31e0f0ae-7b56fb6337756ff7cb07dec09420da7026d7d3e3.zip
move generic config and patches directory to be 2.6.30 specific
SVN-Revision: 19513
Diffstat (limited to 'target/linux/octeon/patches-2.6.30/001-handle_removal_h_constraint.patch')
-rw-r--r--target/linux/octeon/patches-2.6.30/001-handle_removal_h_constraint.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/target/linux/octeon/patches-2.6.30/001-handle_removal_h_constraint.patch b/target/linux/octeon/patches-2.6.30/001-handle_removal_h_constraint.patch
new file mode 100644
index 0000000000..ea19508ce7
--- /dev/null
+++ b/target/linux/octeon/patches-2.6.30/001-handle_removal_h_constraint.patch
@@ -0,0 +1,25 @@
+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
+@@ -16,4 +16,11 @@
+ #define GCC_REG_ACCUM "accum"
+ #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 */