tags 791928 + patch
thanks

Here is a patch to add ARM64 support to package st.

The patch adds the missing ARM64 architectural dependent stack and
context defines, so the package is able to build on ARM64 without any error.

The sp value is taken from arch/arm64/include/asm/processor.h.

Thanks,
Mak.
diff -urN st-1.9-/md.h st-1.9/md.h
--- st-1.9-/md.h	2015-09-28 22:40:31.420000000 +0000
+++ st-1.9/md.h	2015-09-28 23:14:01.930000000 +0000
@@ -427,6 +427,15 @@
 #error "ARM/Linux pre-glibc2 not supported yet"
 #endif /* defined(__GLIBC__) && __GLIBC__ >= 2 */
 
+#elif defined(__aarch64__)
+#define MD_STACK_GROWS_DOWN
+
+#if defined(__GLIBC__) && __GLIBC__ >= 2
+#define MD_GET_SP(_t) (_t)->context[0].__jmpbuf[11]
+#else
+#error "ARM64/Linux pre-glibc2 not supported yet"
+#endif /* defined(__GLIBC__) && __GLIBC__ >= 2 */
+
 #elif defined(__s390__)
 #define MD_STACK_GROWS_DOWN
 

Reply via email to