* [PATCH] ARM: mm: use virt_to_idmap to get phys_reset address
@ 2015-06-02 14:14 Vitaly Andrianov
2015-07-06 14:41 ` Russell King - ARM Linux
0 siblings, 1 reply; 2+ messages in thread
From: Vitaly Andrianov @ 2015-06-02 14:14 UTC (permalink / raw)
To: linux-arm-kernel
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>
---
arch/arm/kernel/reboot.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/kernel/reboot.c b/arch/arm/kernel/reboot.c
index 1a4d232..3826935 100644
--- a/arch/arm/kernel/reboot.c
+++ b/arch/arm/kernel/reboot.c
@@ -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. */
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] ARM: mm: use virt_to_idmap to get phys_reset address
2015-06-02 14:14 [PATCH] ARM: mm: use virt_to_idmap to get phys_reset address Vitaly Andrianov
@ 2015-07-06 14:41 ` Russell King - ARM Linux
0 siblings, 0 replies; 2+ messages in thread
From: Russell King - ARM Linux @ 2015-07-06 14:41 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, Jun 02, 2015 at 10:14:30AM -0400, Vitaly Andrianov wrote:
> 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>
Please send this to the patch system, thanks.
--
FTTC broadband for 0.8mile line: currently at 10.5Mbps down 400kbps up
according to speedtest.net.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-07-06 14:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-02 14:14 [PATCH] ARM: mm: use virt_to_idmap to get phys_reset address Vitaly Andrianov
2015-07-06 14:41 ` Russell King - ARM Linux
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).