From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [RFC] PPC: post_word_{load/store} - eliminate redundant code
Date: Wed, 21 Apr 2010 15:51:00 +0200 [thread overview]
Message-ID: <201004211551.00797.sr@denx.de> (raw)
In-Reply-To: <x2h660c0f821004210624y32636405j7746304a059def4a@mail.gmail.com>
Hi Michael,
On Wednesday 21 April 2010 15:24:15 Michael Zaidman wrote:
> >> In order to eliminate redundant code for powerPC architecture when
> >> defining post_word_{load/store} routines I suggest moving them into
> >> the arch/ppc/lib/commproc.c file rather than adding them to every
> >> arch/ppc/cpu/XXXX.
> >
> > NAK. The commproc.* files are supposed to contain code dealing with
> > the PowerQUICC Communication Processor Modules. This is in no way the
> > right place for common code.
>
> Meanwhile the post_word_{load/store} are located in the commproc.c
> files for the following architectures:
> mpc8260,
> mpc85xx,
> mpc8xx,
> ppc4xx.
I just started looking into this as well.
> Looking for the way to add POST functionality for the mpc83xx family I
> realized that the post_word_{load/store} can be generalized for all
> ppc architectures.
Or a weak default version even for all architectures.
> Could you point please to the file where such kind of things - common
> for all CPU families of particular architecture should be located?
If done for all architectures, then "post/post.c" (already exists) or
"lib/post.c" (new file) comes to my mind.
Any comments on this? Other suggestions?
Thanks.
Cheers,
Stefan
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office at denx.de
next prev parent reply other threads:[~2010-04-21 13:51 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-19 16:44 [U-Boot] [RFC] PPC: post_word_{load/store} - eliminate redundant code Michael Zaidman
2010-04-20 19:55 ` Michael Zaidman
2010-04-20 21:39 ` Wolfgang Denk
2010-04-21 4:30 ` Stefan Roese
2010-04-21 7:05 ` Michael Zaidman
2010-04-21 13:24 ` Michael Zaidman
2010-04-21 13:51 ` Stefan Roese [this message]
2010-04-21 14:07 ` Michael Zaidman
2010-04-21 13:59 ` Wolfgang Denk
2010-04-21 14:29 ` Michael Zaidman
2010-04-21 21:40 ` Wolfgang Denk
2010-04-22 0:16 ` Mike Frysinger
2010-04-22 6:41 ` Michael Zaidman
2010-04-22 9:03 ` Wolfgang Denk
2010-04-22 9:27 ` Michael Zaidman
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=201004211551.00797.sr@denx.de \
--to=sr@denx.de \
--cc=u-boot@lists.denx.de \
/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.