Skip to content

Commit

Permalink
ARM: 8400/1: use virt_to_idmap to get phys_reset address
Browse files Browse the repository at this point in the history
This patch is to get correct physical address of the reset function for
PAE systems, which use aliased physical memory for booting.

See the "ARM: mm: Introduce virt_to_idmap() with an arch hook" for details.

Signed-off-by: Vitaly Andrianov <vitalya@ti.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Vitaly Andrianov authored and Russell King committed Jul 17, 2015
1 parent bc0195a commit df9de3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/kernel/reboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ static void __soft_restart(void *addr)
flush_cache_all();

/* Switch to the identity mapping. */
phys_reset = (phys_reset_t)(unsigned long)virt_to_phys(cpu_reset);
phys_reset = (phys_reset_t)(unsigned long)virt_to_idmap(cpu_reset);
phys_reset((unsigned long)addr);

/* Should never get here. */
Expand Down

0 comments on commit df9de3c

Please sign in to comment.