git.openpandora.org
/
pandora-u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0526d4
)
meminfo: correct "free" memory region size
author
Shiji Yang
<yangshiji66@outlook.com>
Sun, 27 Jul 2025 07:42:01 +0000
(15:42 +0800)
committer
Tom Rini
<trini@konsulko.com>
Thu, 7 Aug 2025 17:15:41 +0000
(11:15 -0600)
The size of free memory should be $lmb_base - $ram_base.
Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
cmd/meminfo.c
patch
|
blob
|
history
diff --git
a/cmd/meminfo.c
b/cmd/meminfo.c
index
acdb38d
..
aa3b5ba
100644
(file)
--- a/
cmd/meminfo.c
+++ b/
cmd/meminfo.c
@@
-93,7
+93,7
@@
static int do_meminfo(struct cmd_tbl *cmdtp, int flag, int argc,
print_region("stack", stk_bot, CONFIG_STACK_SIZE, &upto);
if (IS_ENABLED(CONFIG_LMB))
show_lmb(lmb_get(), &upto);
- print_region("free", gd->ram_base, upto, &upto);
+ print_region("free", gd->ram_base, upto
- gd->ram_base
, &upto);
return 0;
}