linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: victor.kamensky@linaro.org (Victor Kamensky)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3 0/1] ARM: signal: sigreturn_codes should be endian neutral to work in BE8
Date: Tue, 27 Aug 2013 22:41:56 -0700	[thread overview]
Message-ID: <1377668517-3722-1-git-send-email-victor.kamensky@linaro.org> (raw)

This is third version of patch that fixes rt_sig* ltp failures
in case of big endian V7 kernel. It make sigreturn_codes snippets
endian neutral. In this version of the patch problem is fixed by
using separate .S file with snippets written with regular asm
mnemonic. With such change compiler/linker take care of all needed
byteswaps in case of BE8 mode.

This approach was suggested on the following thread:

  http://lists.infradead.org/pipermail/linux-arm-kernel/2013-August/191543.html

Changes were tested on V7 in both BE and LE modes

Changes from v2:
  Incorporated Dave's comments that he gave on
    http://lists.infradead.org/pipermail/linux-arm-kernel/2013-August/191879.html

  Added comment that explains why sigreturn_codes size is 7 words

  Note I could not implemented defensive snippet, that Dave suggested, in
  asm that asserts sigreturn_codes size in asm wrt one that declared in 
  C file. The issue is in gas handling movs instruction, please see above 
  thread for details. So we should rely on comment in the code to make
  sure that code maintained correctly further. Note it was not functional 
  piece anyway. I think it is OK to omit it.

Changes from v1:
  Use separate .S file rather than <asm/opcodes.h> instruction
  byteswaping macros

Victor Kamensky (1):
  ARM: signal: sigreturn_codes should be endian neutral to work in BE8

 arch/arm/kernel/Makefile          |  3 +-
 arch/arm/kernel/signal.c          | 24 +-------------
 arch/arm/kernel/sigreturn_codes.S | 69 +++++++++++++++++++++++++++++++++++++++
 3 files changed, 72 insertions(+), 24 deletions(-)
 create mode 100644 arch/arm/kernel/sigreturn_codes.S

-- 
1.8.1.4

             reply	other threads:[~2013-08-28  5:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-28  5:41 Victor Kamensky [this message]
2013-08-28  5:41 ` [PATCH v3 1/1] ARM: signal: sigreturn_codes should be endian neutral to work in BE8 Victor Kamensky
2013-08-30 14:00   ` Dave Martin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1377668517-3722-1-git-send-email-victor.kamensky@linaro.org \
    --to=victor.kamensky@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).