All of lore.kernel.org
 help / color / mirror / Atom feed
* MPC5200 + LocalPlus Bus + memcpy
@ 2006-04-05 11:38 Sascha Hauer
  2006-04-06 14:21 ` Andrey Volkov
  0 siblings, 1 reply; 4+ messages in thread
From: Sascha Hauer @ 2006-04-05 11:38 UTC (permalink / raw)
  To: Linuxppc-embedded

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

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

end of thread, other threads:[~2006-04-07  8:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-05 11:38 MPC5200 + LocalPlus Bus + memcpy Sascha Hauer
2006-04-06 14:21 ` Andrey Volkov
2006-04-07  7:37   ` Sascha Hauer
2006-04-07  8:57     ` Re[2]: " Andrey Volkov

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.