diff options
| author | Ilias Apalodimas <[email protected]> | 2025-02-20 15:54:38 +0200 |
|---|---|---|
| committer | Ilias Apalodimas <[email protected]> | 2025-03-14 13:30:12 +0200 |
| commit | e34ecf9d5ef15590c4681c651d508097ebf2b026 (patch) | |
| tree | 86dacf2d3f9c8a4a4ef6487f7e864d52d1e98c53 /cmd | |
| parent | 9805321dfdeb5225fe5c5e0721abf49c0875637e (diff) | |
meminfo: add memory details for armv8
Upcoming patches are mapping memory with RO, RW^X etc permsissions.
Fix the meminfo command to display them properly
Acked-by: Jerome Forissier <[email protected]>
Reviewed-by: Caleb Connolly <[email protected]>
Signed-off-by: Ilias Apalodimas <[email protected]>
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/meminfo.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd/meminfo.c b/cmd/meminfo.c index 5e83d61c2dd..acdb38dcba0 100644 --- a/cmd/meminfo.c +++ b/cmd/meminfo.c @@ -15,6 +15,10 @@ DECLARE_GLOBAL_DATA_PTR; +void __weak arch_dump_mem_attrs(void) +{ +} + static void print_region(const char *name, ulong base, ulong size, ulong *uptop) { ulong end = base + size; @@ -58,6 +62,8 @@ static int do_meminfo(struct cmd_tbl *cmdtp, int flag, int argc, if (!IS_ENABLED(CONFIG_CMD_MEMINFO_MAP)) return 0; + arch_dump_mem_attrs(); + printf("\n%-12s %8s %8s %8s %8s\n", "Region", "Base", "Size", "End", "Gap"); printf("------------------------------------------------\n"); |
