add ARM specific support for UST
authorJason Wessel <jason.wessel@windriver.com>
Tue, 22 Feb 2011 22:34:09 +0000 (17:34 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Tue, 22 Feb 2011 22:34:09 +0000 (17:34 -0500)
Add the link definition and the inline assembly required for User
Space Trace support on ARM.

[ edit: coding style cleanup ]

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
configure.ac
include/ust/processor.h

index e57b3562fe3beb355eb650eafae2a2b4d54c5507..5e58eab18f76ac0cbf8231f5c0243a995796ad45 100644 (file)
@@ -104,6 +104,7 @@ changequote([,])dnl
        ppc64) LIBFORMAT="elf64-powerpc" ;;
        s390) LIBFORMAT="elf32-s390" ;;
        s390x) LIBFORMAT="elf64-s390" ;;
+       arm) LIBFORMAT="elf32-littlearm" ;;
        *) AC_MSG_ERROR([unable to detect library format (unsupported architecture ($host_cpu)?)]) ;;
 esac
 AC_SUBST(LIBFORMAT)
index 6ee44ddde599f3bd8eb5e24d90295c800168e1be..35dcbb2eff33dc08c473741d368dda7b7d61711e 100644 (file)
@@ -476,4 +476,19 @@ static __inline__ int fls(unsigned int x)
 
 #endif
 
+#ifdef __arm__
+
+struct registers {
+};
+
+#define ARCH_COPY_ADDR(dst) "ldr "dst", =2b\n\t" \
+               "b 55f\n\t" \
+               ".ltorg\n\t" \
+               "55:\n\t"
+
+#define _ASM_PTR ".long "
+#define save_registers(a)
+
+#endif /* __arm__ */
+
 #endif /* UST_PROCESSOR_H */
This page took 0.025089 seconds and 4 git commands to generate.