diff options
author | Tom Rini <trini@konsulko.com> | 2025-03-14 09:31:36 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2025-03-14 09:31:36 -0600 |
commit | 973c366ce68d9a99e16bcbce3941a1c52492c097 (patch) | |
tree | 4551686cc38c7e419c833ebfeaf6bd6843124691 /cmd/meminfo.c | |
parent | bbfabe290138d76e78e0dac28fec93c32e3964eb (diff) | |
parent | fb553201b67aededdc794f3a0880e386771cbd58 (diff) |
Merge tag 'mmu-next-14032025' of https://source.denx.de/u-boot/custodians/u-boot-tpm into next
Up to now we configure the entire memory space for U-Boot as RWX.
For modern architectures and security requirements, it's better to
map the memory properly.
This pull request adds basics support for mapping the U-Boot binary with
proper (RO, RW, RW^X) memory permissions on aarch64 right after we
relocate U-Boot in the top of DRAM.
It's worrth noting that the linker script annotations are only added for
the aarch64 architecture. We can, in the future, try to unify the linker --
at least for the architectures that have enough in common and expand this
Diffstat (limited to 'cmd/meminfo.c')
-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"); |