mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-16 14:08:45 +00:00
malloc: Output region when debugging
When DEBUG is set, output memory region used for malloc(). Signed-off-by: Thierry Reding <treding@nvidia.com> Acked-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
25026fa9f1
commit
868de51dde
1 changed files with 3 additions and 0 deletions
|
@ -1533,6 +1533,9 @@ void mem_malloc_init(ulong start, ulong size)
|
|||
mem_malloc_end = start + size;
|
||||
mem_malloc_brk = start;
|
||||
|
||||
debug("using memory %#lx-%#lx for malloc()\n", mem_malloc_start,
|
||||
mem_malloc_end);
|
||||
|
||||
memset((void *)mem_malloc_start, 0, size);
|
||||
|
||||
malloc_bin_reloc();
|
||||
|
|
Loading…
Add table
Reference in a new issue