From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] cfi_flash: Make all flash access functions weak
Date: Mon, 17 Nov 2008 09:45:38 +0100 [thread overview]
Message-ID: <200811170945.38488.sr@denx.de> (raw)
In-Reply-To: <20081113091852.6dcef4cf@hskinnemo-gx745.norway.atmel.com>
On Thursday 13 November 2008, Haavard Skinnemoen wrote:
> Stefan Roese <sr@denx.de> wrote:
> > This patch defines all flash access functions as weak so that
> > they can be overridden by board specific versions.
> >
> > This will be used by the upcoming VCTH board support where the NOR
> > FLASH unfortunately can't be accessed memory-mapped. Special
> > accessor functions are needed here.
> >
> > Signed-off-by: Stefan Roese <sr@denx.de>
>
> How much overhead does this add? Those things used to be trivial
> inlines, but can't be if you turn them into weak aliases.
Here the difference for a PPC4xx board (Kilauea):
Old version without weak aliases:
text data bss dec hex filename
280964 20232 50788 351984 55ef0 ./u-boot
New version with weak aliases:
text data bss dec hex filename
280520 20232 50788 351540 55d34 ./u-boot
So the difference is 444 bytes (with gcc 4.2.2). I have to admit that this is
more than I thought. If necessary I could make this weak change conditionally
of course. I just didn't want to "pollute" to the source with more #ifdef's.
Any comments?
Best regards,
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:[~2008-11-17 8:45 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-12 12:31 [U-Boot] [PATCH] cfi_flash: Make all flash access functions weak Stefan Roese
2008-11-13 8:18 ` Haavard Skinnemoen
2008-11-17 8:45 ` Stefan Roese [this message]
2008-11-17 8:54 ` Stefan Roese
2008-11-17 9:01 ` Haavard Skinnemoen
2008-11-17 9:34 ` Stefan Roese
2008-11-17 9:40 ` Haavard Skinnemoen
2008-11-17 9:49 ` Stefan Roese
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=200811170945.38488.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.