From 984e5eb211a858be19f57d0186203b20758d846f Mon Sep 17 00:00:00 2001 From: Roman Yeryomin Date: Sat, 6 Jul 2013 14:22:13 +0300 Subject: 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 --- .../linux/realtek/patches-2.6.30/9996-string.h-fix.patch | 14 ++++++++------ 1 file 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; } -- cgit v1.2.3