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>
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user