summaryrefslogtreecommitdiff
path: root/Kconfig
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-09-26 08:14:29 -0600
committerTom Rini <trini@konsulko.com>2023-10-06 14:38:12 -0400
commit5bcacd1ad5d9e7c85575d711fe7a93cb5cc6b250 (patch)
treeaff0427e20a150681062942a634ad8cd05e42905 /Kconfig
parent34bacebd0aa3bf22e107341c834b2ed798466138 (diff)
downloadu-boot-5bcacd1ad5d9e7c85575d711fe7a93cb5cc6b250.tar.gz
u-boot-5bcacd1ad5d9e7c85575d711fe7a93cb5cc6b250.tar.bz2
u-boot-5bcacd1ad5d9e7c85575d711fe7a93cb5cc6b250.zip
doc: Clean up SYS_MALLOC_SIMPLE
Move the useful help to Kconfig. Drop mention of CONFIG_SYS_MALLOC_SIMPLE since it doesn't exist. Correct a 'CONFIGSYS_MALLOC_F_LEN' typo Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'Kconfig')
-rw-r--r--Kconfig15
1 files changed, 11 insertions, 4 deletions
diff --git a/Kconfig b/Kconfig
index 068da61d84..7df91d789f 100644
--- a/Kconfig
+++ b/Kconfig
@@ -277,10 +277,17 @@ config SYS_MALLOC_F_LEN
default 0x10000 if ARCH_IMX8 || ARCH_IMX8M
default 0x2000
help
- Before relocation, memory is very limited on many platforms. Still,
- we can provide a small malloc() pool if needed. Driver model in
- particular needs this to operate, so that it can allocate the
- initial serial device and any others that are needed.
+ Size of the malloc() pool for use before relocation. If
+ this is defined, then a very simple malloc() implementation
+ will become available before relocation. The address is just
+ below the global data, and the stack is moved down to make
+ space.
+
+ This feature allocates regions with increasing addresses
+ within the region. calloc() is supported, but realloc()
+ is not available. free() is supported but does nothing.
+ The memory will be freed (or in fact just forgotten) when
+ U-Boot relocates itself.
config SYS_MALLOC_LEN
hex "Define memory for Dynamic allocation"