linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: viric@viric.name (Lluís Batlle i Rossell)
To: linux-arm-kernel@lists.infradead.org
Subject: Bad traps for unaligned access in STM instruction
Date: Sat, 15 Sep 2012 12:46:02 +0200	[thread overview]
Message-ID: <20120915104602.GY1943@vicerveza.homeunix.net> (raw)

Hello all,

I'm trying to diagnose a problem... on armv5tel, I have a userland software that runs an
STM instruction in those conditions:
r2             0xbeffeb95
r3             0x400000
r4             0x0

Instruction: stm     r2, {r3, r4}

After stepping the instruction, I get:
(gdb) x/xg $r2
0xbeffeb95:     0xd800000000004000

While it should be: 0x0000000000400000

What can be going wrong?        Linux 3.4.6 on armv5tel, gnueabi.
I know the kernel trap goes in, I told the kernel to report the unaligned
accesses, but I think it should fix them. From dmesg:

Alignment trap: mkfs.btrfs (28871) PC=0x00039ac0 Instr=0xe8820018
Address=0xbeffeb95 FSR 0x801

I'll start looking at the arm traps for unaligned accesses, but maybe someone
here can give a quick answer.

Regards,
Llu?s.

             reply	other threads:[~2012-09-15 10:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-15 10:46 Lluís Batlle i Rossell [this message]
2012-09-15 10:51 ` Bad traps for unaligned access in STM instruction Lluís Batlle i Rossell
2012-09-18 15:25   ` Dave Martin
2012-09-18 15:31     ` Lluís Batlle i Rossell
2012-09-18 15:44       ` Nicolas Pitre
2012-09-18 15:46         ` Lluís Batlle i Rossell
2012-09-18 19:07       ` 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=20120915104602.GY1943@vicerveza.homeunix.net \
    --to=viric@viric.name \
    --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).