All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v2 0/6] spl: full-featured heap cleanups
@ 2019-03-15 20:13 Simon Goldschmidt
  2019-03-15 20:13 ` [U-Boot] [PATCH v2 1/6] spl: add Kconfig option to clear bss early Simon Goldschmidt
                   ` (5 more replies)
  0 siblings, 6 replies; 16+ messages in thread
From: Simon Goldschmidt @ 2019-03-15 20:13 UTC (permalink / raw)
  To: u-boot

Some platforms cannot use simple malloc even in very early stages, e.g.
when using FAT before DRAM is available. Such platforms currently often
use non-Kconfig defines to initialize full malloc and rely on simple heap
before that.

This series makes some adjustments to ensure SPL behaves the same with
simple or full malloc: when CONFIG_SPL_SYS_MALLOC_F_LEN is != 0, both heap
types can be used (by changing CONFIG_SPL_SYS_MALLOC_SIMPLE), without
manually supplying an address range for the full heap.

Changes in v2:
- make CONFIG_SPL_CLEAR_BSS_F depend on ARM for now
- add CONFIG_SPL_CLEAR_BSS_F implementation for arm64 also

Simon Goldschmidt (6):
  spl: add Kconfig option to clear bss early
  spl: arm: implement SPL_CLEAR_BSS_F
  dlmalloc: fix malloc range at end of ram
  dlmalloc: be compatible to tiny printf
  spl: support using full malloc with SYS_MALLOC_F_LEN
  arm: socfpga: a10: move SPL stack size to Kconfig

 arch/arm/lib/crt0.S               | 22 ++++++++++++++++++++++
 arch/arm/lib/crt0_64.S            | 14 ++++++++++++++
 common/dlmalloc.c                 |  6 +++++-
 common/spl/Kconfig                | 12 ++++++++++++
 common/spl/spl.c                  |  5 +++++
 configs/socfpga_arria10_defconfig |  1 +
 include/configs/socfpga_common.h  | 14 --------------
 7 files changed, 59 insertions(+), 15 deletions(-)

-- 
2.17.1

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

end of thread, other threads:[~2019-03-30 20:03 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-15 20:13 [U-Boot] [PATCH v2 0/6] spl: full-featured heap cleanups Simon Goldschmidt
2019-03-15 20:13 ` [U-Boot] [PATCH v2 1/6] spl: add Kconfig option to clear bss early Simon Goldschmidt
2019-03-22  7:53   ` Simon Glass
2019-03-22  8:16     ` Simon Goldschmidt
2019-03-30 20:03       ` Simon Glass
2019-03-15 20:13 ` [U-Boot] [PATCH v2 2/6] spl: arm: implement SPL_CLEAR_BSS_F Simon Goldschmidt
2019-03-15 20:13 ` [U-Boot] [PATCH v2 3/6] dlmalloc: fix malloc range at end of ram Simon Goldschmidt
2019-03-15 20:13 ` [U-Boot] [PATCH v2 4/6] dlmalloc: be compatible to tiny printf Simon Goldschmidt
2019-03-15 20:13 ` [U-Boot] [PATCH v2 5/6] spl: support using full malloc with SYS_MALLOC_F_LEN Simon Goldschmidt
2019-03-22  7:53   ` Simon Glass
2019-03-22  8:08     ` Simon Goldschmidt
2019-03-15 20:13 ` [U-Boot] [PATCH v2 6/6] arm: socfpga: a10: move SPL stack size to Kconfig Simon Goldschmidt
2019-03-19 16:19   ` Chee, Tien Fong
2019-03-19 16:29     ` Simon Goldschmidt
2019-03-20  4:15       ` Chee, Tien Fong
2019-03-20  6:59         ` Simon Goldschmidt

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.