Skip to content

Commit c1a5f4f

Browse files
author
Santosh Shilimkar
committed
ARM: mm: Move the idmap print to appropriate place in the code
Commit 9e9a367 {ARM: Section based HYP idmap} moved the address conversion inside identity_mapping_add() without respective print which carries useful idmap information. Move the print as well inside identity_mapping_add() to fix the same. Cc: Will Deacon <will.deacon@arm.com> Cc: Nicolas Pitre <nico@linaro.org> Cc: Russell King <linux@arm.linux.org.uk> Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
1 parent 4dc9a81 commit c1a5f4f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

arch/arm/mm/idmap.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ static void identity_mapping_add(pgd_t *pgd, const char *text_start,
7070

7171
addr = virt_to_idmap(text_start);
7272
end = virt_to_idmap(text_end);
73+
pr_info("Setting up static identity map for 0x%lx - 0x%lx\n", addr, end);
7374

7475
prot |= PMD_TYPE_SECT | PMD_SECT_AP_WRITE | PMD_SECT_AF;
7576

@@ -91,8 +92,6 @@ static int __init init_static_idmap(void)
9192
if (!idmap_pgd)
9293
return -ENOMEM;
9394

94-
pr_info("Setting up static identity map for 0x%p - 0x%p\n",
95-
__idmap_text_start, __idmap_text_end);
9695
identity_mapping_add(idmap_pgd, __idmap_text_start,
9796
__idmap_text_end, 0);
9897

0 commit comments

Comments
 (0)