From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [U-Boot, v3, 18/21] sandbox: Use malloc() and free() from os layer
Date: Mon, 26 Nov 2018 13:44:40 -0500 [thread overview]
Message-ID: <20181126184440.GU11247@bill-the-cat> (raw)
In-Reply-To: <20181116014409.147279-19-sjg@chromium.org>
On Thu, Nov 15, 2018 at 06:44:06PM -0700, Simon Glass wrote:
> At present sandbox calls malloc() from various places in the OS layer and
> this results in calls to U-Boot's malloc() implementation. It is better to
> use the on in the OS layer, since it does not mix allocations with the
> main U-Boot code.
>
> Fix this by replacing calls with malloc() to os_malloc(), etc.
>
> Signed-off-by: Simon Glass <sjg@chromium.org>
> Reviewed-by: Joe Hershberger <joe.hershberger@ni.com>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20181126/689f6518/attachment.sig>
next prev parent reply other threads:[~2018-11-26 18:44 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-16 1:43 [U-Boot] [PATCH v3 00/21] spl: Add features for passing info from SPL to U-Boot proper Simon Glass
2018-11-16 1:43 ` [U-Boot] [PATCH v3 01/21] spl: Add support for logging in SPL and TPL Simon Glass
2018-11-26 18:43 ` [U-Boot] [U-Boot, v3, " Tom Rini
2018-11-16 1:43 ` [U-Boot] [PATCH v3 02/21] Add core support for a bloblist to convey data from SPL Simon Glass
2018-11-26 18:43 ` [U-Boot] [U-Boot, v3, " Tom Rini
2018-11-16 1:43 ` [U-Boot] [PATCH v3 03/21] spl: Set up the bloblist in SPL Simon Glass
2018-11-26 18:43 ` [U-Boot] [U-Boot,v3,03/21] " Tom Rini
2018-11-16 1:43 ` [U-Boot] [PATCH v3 04/21] bloblist: Locate bloblist in U-Boot Simon Glass
2018-11-26 18:43 ` [U-Boot] [U-Boot,v3,04/21] " Tom Rini
2018-11-16 1:43 ` [U-Boot] [PATCH v3 05/21] test: Add a simple test for bloblist Simon Glass
2018-11-26 18:43 ` [U-Boot] [U-Boot, v3, " Tom Rini
2018-11-16 1:43 ` [U-Boot] [PATCH v3 06/21] Add bloblist documentation Simon Glass
2018-11-26 18:43 ` [U-Boot] [U-Boot,v3,06/21] " Tom Rini
2018-11-16 1:43 ` [U-Boot] [PATCH v3 07/21] spl: Support hash, input, pch, pci, rtc, tpm in SPL Simon Glass
2018-11-26 18:43 ` [U-Boot] [U-Boot, v3, " Tom Rini
2018-11-16 1:43 ` [U-Boot] [PATCH v3 08/21] spl: Add a define for SPL_TPL_PROMPT Simon Glass
2018-11-26 18:44 ` [U-Boot] [U-Boot, v3, " Tom Rini
2018-11-16 1:43 ` [U-Boot] [PATCH v3 09/21] spl: Make SPL_DISABLE_BANNER_PRINT a positive option Simon Glass
2018-11-26 18:44 ` [U-Boot] [U-Boot, v3, " Tom Rini
2018-11-16 1:43 ` [U-Boot] [PATCH v3 10/21] spl: Add a comment to spl_set_bd() Simon Glass
2018-11-26 18:44 ` [U-Boot] [U-Boot,v3,10/21] " Tom Rini
2018-11-16 1:43 ` [U-Boot] [PATCH v3 11/21] sandbox: Add a memory map to the sandbox README Simon Glass
2018-11-26 18:44 ` [U-Boot] [U-Boot, v3, " Tom Rini
2018-11-16 1:44 ` [U-Boot] [PATCH v3 12/21] test/py: Add a way to pass flags to sandbox Simon Glass
2018-11-26 18:44 ` [U-Boot] [U-Boot, v3, " Tom Rini
2018-11-16 1:44 ` [U-Boot] [PATCH v3 13/21] sandbox: Add an option to display of-platdata in SPL Simon Glass
2018-11-26 18:44 ` [U-Boot] [U-Boot, v3, " Tom Rini
2018-11-16 1:44 ` [U-Boot] [PATCH v3 14/21] sandbox: Drop the deprecated 'sb' command Simon Glass
2018-11-26 18:44 ` [U-Boot] [U-Boot, v3, " Tom Rini
2018-11-16 1:44 ` [U-Boot] [PATCH v3 15/21] sandbox: Add a new " Simon Glass
2018-11-26 18:44 ` [U-Boot] [U-Boot,v3,15/21] " Tom Rini
2018-11-16 1:44 ` [U-Boot] [PATCH v3 16/21] sandbox: Allow puts() output before global_data is set up Simon Glass
2018-11-26 18:44 ` [U-Boot] [U-Boot, v3, " Tom Rini
2018-11-16 1:44 ` [U-Boot] [PATCH v3 17/21] sandbox: Refactor code to create os_jump_to_file() Simon Glass
2018-11-26 18:44 ` [U-Boot] [U-Boot, v3, " Tom Rini
2018-11-16 1:44 ` [U-Boot] [PATCH v3 18/21] sandbox: Use malloc() and free() from os layer Simon Glass
2018-11-26 18:44 ` Tom Rini [this message]
2018-11-16 1:44 ` [U-Boot] [PATCH v3 19/21] sandbox: Filter arguments when starting U-Boot Simon Glass
2018-11-26 18:44 ` [U-Boot] [U-Boot, v3, " Tom Rini
2018-11-16 1:44 ` [U-Boot] [PATCH v3 20/21] sandbox: Boot in U-Boot through the standard call Simon Glass
2018-11-26 18:44 ` [U-Boot] [U-Boot, v3, " Tom Rini
2018-11-16 1:44 ` [U-Boot] [PATCH v3 21/21] spl: Add support for passing handoff info to U-Boot proper Simon Glass
2018-11-26 18:44 ` [U-Boot] [U-Boot, v3, " Tom Rini
2018-11-27 0:08 ` 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=20181126184440.GU11247@bill-the-cat \
--to=trini@konsulko.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox