linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* Bad traps for unaligned access in STM instruction
@ 2012-09-15 10:46 Lluís Batlle i Rossell
  2012-09-15 10:51 ` Lluís Batlle i Rossell
  0 siblings, 1 reply; 7+ messages in thread
From: Lluís Batlle i Rossell @ 2012-09-15 10:46 UTC (permalink / raw)
  To: linux-arm-kernel

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.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-09-18 19:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-15 10:46 Bad traps for unaligned access in STM instruction Lluís Batlle i Rossell
2012-09-15 10:51 ` 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

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).