From: Sascha Hauer <s.hauer@pengutronix.de>
To: Linuxppc-embedded <Linuxppc-embedded@ozlabs.org>
Subject: MPC5200 + LocalPlus Bus + memcpy
Date: Wed, 5 Apr 2006 13:38:26 +0200 [thread overview]
Message-ID: <20060405113825.GA9110@localhost.localdomain> (raw)
Hi all,
I try to use jffs2 on a flash device connected to the mpc5200
LocalPlus Bus. This bus does not allow misaligned accesses.
The jffs2 code uses memcpy to copy from a word aligned address to an
odd address. The ppc memcpy implementation first copies three bytes to get
the target address word aligned, but then the source address is on an
odd address. The following word accesses on this unaligned address fail
badly.
I have fixed my problem by modifying the physmap mtd driver, but some
day someone wants to connect SRAM to the LocalPlus Bus and I guess he
will expect memcpy to work.
(BTW the arm implementation of memcpy seems to work around this problem)
Sascha
next reply other threads:[~2006-04-05 11:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-05 11:38 Sascha Hauer [this message]
2006-04-06 14:21 ` MPC5200 + LocalPlus Bus + memcpy Andrey Volkov
2006-04-07 7:37 ` Sascha Hauer
2006-04-07 8:57 ` Re[2]: " Andrey Volkov
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=20060405113825.GA9110@localhost.localdomain \
--to=s.hauer@pengutronix.de \
--cc=Linuxppc-embedded@ozlabs.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.