Commit df9de3c4 authored by Vitaly Andrianov's avatar Vitaly Andrianov Committed by Russell King

ARM: 8400/1: use virt_to_idmap to get phys_reset address

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: default avatarVitaly Andrianov <vitalya@ti.com>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent bc0195aa
...@@ -50,7 +50,7 @@ static void __soft_restart(void *addr) ...@@ -50,7 +50,7 @@ static void __soft_restart(void *addr)
flush_cache_all(); flush_cache_all();
/* Switch to the identity mapping. */ /* 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); phys_reset((unsigned long)addr);
/* Should never get here. */ /* Should never get here. */
......
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