diff options
author | Roman Yeryomin <roman@advem.lv> | 2013-07-06 14:22:13 +0300 |
---|---|---|
committer | Roman Yeryomin <roman@advem.lv> | 2013-07-06 14:22:13 +0300 |
commit | 984e5eb211a858be19f57d0186203b20758d846f (patch) | |
tree | 7ec0322406b1b07771b905714e4a0896400c475a | |
parent | 511cc9ae87e18c38bda84cfd916d8b5af1f81654 (diff) |
Fix strcmp and strncmp kernel implementation so it would work for both gcc 4.5-linaro and 4.6-linaro. References #18.
Signed-off-by: Roman Yeryomin <roman@advem.lv>
-rw-r--r-- | target/linux/realtek/patches-2.6.30/9996-string.h-fix.patch | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/target/linux/realtek/patches-2.6.30/9996-string.h-fix.patch b/target/linux/realtek/patches-2.6.30/9996-string.h-fix.patch index a525146c4..dad3fb4b3 100644 --- a/target/linux/realtek/patches-2.6.30/9996-string.h-fix.patch +++ b/target/linux/realtek/patches-2.6.30/9996-string.h-fix.patch @@ -1,20 +1,22 @@ ---- a/arch/rlx/include/asm/string.h 2013-02-04 03:15:32.687233694 +0200 -+++ b/arch/rlx/include/asm/string.h 2013-02-06 00:51:37.319166238 +0200 -@@ -90,7 +90,7 @@ +--- a/arch/rlx/include/asm/string.h 2013-07-05 11:57:03.546423601 +0300 ++++ b/arch/rlx/include/asm/string.h 2013-07-05 11:37:00.962520944 +0300 +@@ -90,7 +90,8 @@ "3:\t.set\tat\n\t" ".set\treorder" : "=r" (__cs), "=r" (__ct), "=r" (__res) - : "0" (__cs), "1" (__ct), "m" (*__cs), "m" (*__ct)); -+ : "0" (__cs), "1" (__ct)); ++ : "0" (__cs), "1" (__ct) ++ : "memory"); return __res; } -@@ -123,7 +123,7 @@ +@@ -123,7 +124,8 @@ ".set\tat\n\t" ".set\treorder" : "=r" (__cs), "=r" (__ct), "=r" (__count), "=r" (__res) - : "0" (__cs), "1" (__ct), "2" (__count), "m" (*__cs), "m" (*__ct)); -+ : "0" (__cs), "1" (__ct), "2" (__count)); ++ : "0" (__cs), "1" (__ct), "2" (__count) ++ : "memory"); return __res; } |