All of lore.kernel.org
 help / color / mirror / Atom feed
From: haohui.mai@gmail.com (Haohui Mai)
To: linux-arm-kernel@lists.infradead.org
Subject: Question about unaligned memory access on ARMv7
Date: Fri, 18 Nov 2011 14:32:55 -0600	[thread overview]
Message-ID: <4EC6C0F7.5040203@gmail.com> (raw)

Hi,

My linux kernel complained about the user space binaries doing unaligned
memory access.

Here is one of the log:

[ 1056.522396] Alignment trap: rsyslogd (1400) PC=0x4004450e
Instr=0xe8541f00 Address=0x409f84f5 FSR 0x001


$ echo "0xe8 0x54 0x1f 0x00"|/opt/local/ibos/bin/llvm-mc --disassemble
-triple=thumb-apple-darwin9
     strb    r0, [r5, r3]
     movs    r7, r3

I'm using the NVIDIA Harmony board, which has a Cortex-A9MP dual core
CPU. According to the specification, this instruction is legitimate and
shouldn't fault.

I checked in arch/arm/mm/alignment.c, the function
do_alignment_t32_to_handler will ignore this because the CPU should be
able to handle it.

I also checked with the newest version of arch/arm/mm/alignment and I
noticed no changes.

Am I missing some erratas that can possibly fix this bug?

PS: I'm using a sufficiently old (2.6.32.9) kernel and I'm unable to
update it because a bug in the bootloader. :-(

Any suggestions are appreciated.

Cheers,
Haohui

             reply	other threads:[~2011-11-18 20:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-18 20:32 Haohui Mai [this message]
2011-11-18 21:13 ` Question about unaligned memory access on ARMv7 Måns Rullgård

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=4EC6C0F7.5040203@gmail.com \
    --to=haohui.mai@gmail.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.