diff options
author | Simon Glass <sjg@chromium.org> | 2023-07-15 21:38:53 -0600 |
---|---|---|
committer | Bin Meng <bmeng@tinylab.org> | 2023-07-17 17:12:21 +0800 |
commit | 0be0f205b974abb7b464e5b2819db47bbc6d5f1f (patch) | |
tree | 3ac91ea1c4be56aae610d6f1d81c9114c6f0051b /cmd | |
parent | 8f015d37813b398c9f2bde9bbf531278a399ad88 (diff) | |
download | u-boot-0be0f205b974abb7b464e5b2819db47bbc6d5f1f.zip u-boot-0be0f205b974abb7b464e5b2819db47bbc6d5f1f.tar.gz u-boot-0be0f205b974abb7b464e5b2819db47bbc6d5f1f.tar.bz2 |
bdinfo: Show the malloc base with the bdinfo command
It is useful to see the base of the malloc region. This is visible when
debugging but not in normal usage.
Add it to the global data so that it can be shown.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Nikhil M Jain <n-jain1@ti.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Nikhil M Jain <n-jain1@ti.com>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/bdinfo.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index 44e6d6a..1fe13ca 100644 --- a/cmd/bdinfo.c +++ b/cmd/bdinfo.c @@ -176,6 +176,7 @@ int do_bdinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) if (IS_ENABLED(CONFIG_CMD_BDINFO_EXTRA)) { bdinfo_print_num_ll("stack ptr", (ulong)&bd); bdinfo_print_num_ll("ram_top ptr", (ulong)gd->ram_top); + bdinfo_print_num_l("malloc base", gd_malloc_start()); } arch_print_bdinfo(); |