From da4378681cac2876f9a21b912c242baefc355e92 Mon Sep 17 00:00:00 2001 From: Riku Voipio Date: Tue, 20 Aug 2013 16:44:04 +0300 Subject: meta-bigendian: fix strace patch --- .../strace/strace/strace-4.8-arm-be8.patch | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'meta-bigendian') diff --git a/meta-bigendian/recipes-devtools/strace/strace/strace-4.8-arm-be8.patch b/meta-bigendian/recipes-devtools/strace/strace/strace-4.8-arm-be8.patch index c0d4043d..d9cce72b 100644 --- a/meta-bigendian/recipes-devtools/strace/strace/strace-4.8-arm-be8.patch +++ b/meta-bigendian/recipes-devtools/strace/strace/strace-4.8-arm-be8.patch @@ -3,17 +3,17 @@ Index: strace-4.8/syscall.c --- strace-4.8.orig/syscall.c +++ strace-4.8/syscall.c @@ -1355,6 +1355,14 @@ get_scno(struct tcb *tcp) - if (errno) - return -1; + if (errno) + return -1; +#if defined(__ARMEB__) && defined(__ARM_ARCH_7A__) -+ /* We running big endian arm on ARMv7: instructions are -+ * in little endian form so we need to byteswap it. Note -+ * on older ARM like V5 Xscale code is in big endian form -+ * byte swap is not needed in this case. I.e be8 vs be32. -+ */ -+ scno = __builtin_bswap32(scno); ++ /* We running big endian arm on ARMv7: instructions are ++ * in little endian form so we need to byteswap it. Note ++ * on older ARM like V5 Xscale code is in big endian form ++ * byte swap is not needed in this case. I.e be8 vs be32. ++ */ ++ scno = __builtin_bswap32(scno); +#endif /* __ARMEB__ && __ARM_ARCH_7A__ */ - /* EABI syscall convention? */ - if (scno == 0xef000000) { - scno = arm_regs.ARM_r7; /* yes */ + /* EABI syscall convention? */ + if (scno == 0xef000000) { + scno = arm_regs.ARM_r7; /* yes */ -- cgit v1.2.3