From: Tom Rini <trini@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 02/13] dm: Split the simple malloc() implementation into its own file
Date: Fri, 24 Oct 2014 15:05:38 -0400 [thread overview]
Message-ID: <20141024190538.GL25506@bill-the-cat> (raw)
In-Reply-To: <1414091770-26319-3-git-send-email-sjg@chromium.org>
On Thu, Oct 23, 2014 at 01:15:59PM -0600, Simon Glass wrote:
> The simple malloc() implementation is used when memory is tight. It provides
> a simple buffer with an incrementing pointer.
>
> At present the implementation is inside dlmalloc. Move it into its own file
> so that it is easier to find.
>
> Rather than using relocation as a signal that the full malloc() is
> available, add a special GD_FLG_FULL_MALLOC_INIT flag. This signals that the
> simple malloc() should no longer be used.
>
> In some cases, such as SPL, even the code space used by the full malloc() is
> wasteful. Add a CONFIG_SYS_MALLOC_SIMPLE option to provide only the simple
> malloc. In this case the full malloc is not available at all. It saves about
> 1KB of code space and about 0.5KB of data on Thumb 2.
>
> Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Tom Rini <trini@ti.com>
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20141024/8ca37bae/attachment.pgp>
next prev parent reply other threads:[~2014-10-24 19:05 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-23 19:15 [U-Boot] [PATCH v2 0/13] dm: Implement driver model support in SPL Simon Glass
2014-10-23 19:15 ` [U-Boot] [PATCH v2 01/13] dm: dts: Move omap device tree includes to correct place Simon Glass
2014-10-24 19:05 ` Tom Rini
2014-10-23 19:15 ` [U-Boot] [PATCH v2 02/13] dm: Split the simple malloc() implementation into its own file Simon Glass
2014-10-24 19:05 ` Tom Rini [this message]
2014-10-23 19:16 ` [U-Boot] [PATCH v2 03/13] dm: arm: spl: Allow simple malloc() in SPL Simon Glass
2014-10-23 19:16 ` [U-Boot] [PATCH v2 04/13] dm: spl: Make simple malloc() available when enabled Simon Glass
2014-10-24 18:59 ` Tom Rini
2014-10-28 0:07 ` Simon Glass
2014-10-23 19:16 ` [U-Boot] [PATCH v2 05/13] dm: spl: Allow driver model to be used Simon Glass
2014-10-24 19:06 ` Tom Rini
2014-10-23 19:16 ` [U-Boot] [PATCH v2 06/13] dm: Allow device removal features to be dropped Simon Glass
2014-10-23 19:16 ` [U-Boot] [PATCH v2 07/13] dm: Allow stdio registration " Simon Glass
2014-10-24 19:06 ` Tom Rini
2014-10-23 19:16 ` [U-Boot] [PATCH v2 08/13] dm: Disable dm_warn() in SPL Simon Glass
2014-10-24 19:07 ` Tom Rini
2014-10-23 19:16 ` [U-Boot] [PATCH v2 09/13] dm: tegra: Add platform data for the SPL uart Simon Glass
2014-10-23 19:16 ` [U-Boot] [PATCH v2 10/13] dm: tegra: Add platform data for the GPIO driver Simon Glass
2014-10-23 19:16 ` [U-Boot] [PATCH v2 11/13] dm: arm: spl: Make driver model linker lists available Simon Glass
2014-10-24 19:08 ` Tom Rini
2014-10-23 19:16 ` [U-Boot] [PATCH v2 12/13] dm: tegra: Enable driver model in SPL and adjust the GPIO driver Simon Glass
2014-10-23 19:16 ` [U-Boot] [PATCH v2 13/13] dm: Update documentation to include CONFIG_DM... options Simon Glass
2014-10-23 20:17 ` Masahiro YAMADA
2014-10-24 1:05 ` Simon Glass
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=20141024190538.GL25506@bill-the-cat \
--to=trini@ti.com \
--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.