Commit c1a5f4f6 authored by Santosh Shilimkar's avatar Santosh Shilimkar

ARM: mm: Move the idmap print to appropriate place in the code

Commit 9e9a367c {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: default avatarSantosh Shilimkar <santosh.shilimkar@ti.com>
parent 4dc9a817
...@@ -70,6 +70,7 @@ static void identity_mapping_add(pgd_t *pgd, const char *text_start, ...@@ -70,6 +70,7 @@ static void identity_mapping_add(pgd_t *pgd, const char *text_start,
addr = virt_to_idmap(text_start); addr = virt_to_idmap(text_start);
end = virt_to_idmap(text_end); end = virt_to_idmap(text_end);
pr_info("Setting up static identity map for 0x%lx - 0x%lx\n", addr, end);
prot |= PMD_TYPE_SECT | PMD_SECT_AP_WRITE | PMD_SECT_AF; prot |= PMD_TYPE_SECT | PMD_SECT_AP_WRITE | PMD_SECT_AF;
...@@ -91,8 +92,6 @@ static int __init init_static_idmap(void) ...@@ -91,8 +92,6 @@ static int __init init_static_idmap(void)
if (!idmap_pgd) if (!idmap_pgd)
return -ENOMEM; return -ENOMEM;
pr_info("Setting up static identity map for 0x%p - 0x%p\n",
__idmap_text_start, __idmap_text_end);
identity_mapping_add(idmap_pgd, __idmap_text_start, identity_mapping_add(idmap_pgd, __idmap_text_start,
__idmap_text_end, 0); __idmap_text_end, 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment