Skip to contentSkip to conversation

polarssl: disable microblaze inline assembly

PATCH New Gustavo Zacarias 2 participants 3 messages Jul 30, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 polarssl: disable microblaze inline assembly

Fixes:
http://autobuild.buildroot.net/results/4d5/4d54958ded61a0d929d992e4ca0bb31c996953cb/

---
 .../polarssl/polarssl-02-disable-microblaze-asm.patch  | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 package/polarssl/polarssl-02-disable-microblaze-asm.patch
package/polarssl/polarssl-02-disable-microblaze-asm.patch new file +18 -0
new file mode 100644
index 0000000..e90e12d
@@ -0,0 +1,18 @@
+Microblaze assembly seems to be broken, fixes:
+
+http://autobuild.buildroot.net/results/4d5/4d54958ded61a0d929d992e4ca0bb31c996953cb/
+
+Signed-off-by: Gustavo Zacarias <[email protected]>
+
+diff -Nura polarssl-1.2.11.orig/include/polarssl/bn_mul.h polarssl-1.2.11/include/polarssl/bn_mul.h
+--- polarssl-1.2.11.orig/include/polarssl/bn_mul.h	2014-07-30 15:47:27.381658434 -0300
++++ polarssl-1.2.11/include/polarssl/bn_mul.h	2014-07-30 15:48:52.616543074 -0300
+@@ -480,7 +480,7 @@
+ 
+ #endif /* SPARCv8 */
+ 
+-#if defined(__microblaze__) || defined(microblaze)
++#if 0 && defined(__microblaze__) || defined(microblaze)
+ 
+ #define MULADDC_INIT                    \
+     asm(                                \
Signature · 1 line
1.8.5.5
#1 lore raw

PATCH 1/1 polarssl: disable microblaze inline assembly

Dear Gustavo Zacarias,

Quoted 8 lines · Gustavo Zacarias

Fixes:
http://autobuild.buildroot.net/results/4d5/4d54958ded61a0d929d992e4ca0bb31c996953cb/

---
 .../polarssl/polarssl-02-disable-microblaze-asm.patch  | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 package/polarssl/polarssl-02-disable-microblaze-asm.patch

Applied. But could you report this issue upstream so that it hopefully gets fixed in the future? They have a github issue tracker, so it should be pretty easy to do.

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#2 lore raw

PATCH 1/1 polarssl: disable microblaze inline assembly

Quoted 3 lines · Thomas Petazzoni

Applied. But could you report this issue upstream so that it hopefully gets fixed in the future? They have a github issue tracker, so it should be pretty easy to do.

Yes, i'm doing some more testing to see why/if it can be fixed but my microblaze assembly knowledge is close to NULL (i guess upstream is as well since they've disabled SPARC V9 assembly because of similar issues). Once that's exhausted i'll post an updated fix or just report the breakage upstream if it's beyond me.
Regards.