ARM: LPAE: use 64-bit accessors for TTBR registers
authorCyril Chemparathy <cyril@ti.com>
Mon, 16 Jul 2012 21:20:17 +0000 (17:20 -0400)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 20:22:55 +0000 (13:22 -0700)
commit358f5834c9199877726d161e82762f801f3d26b5
treee61e99a628ea1ab328576ad6c2692690223e8d2d
parent9fd737aa85d02afbfbfffb57caea80fae78d39b8
ARM: LPAE: use 64-bit accessors for TTBR registers

This patch adds TTBR accessor macros, and modifies cpu_get_pgd() and
the LPAE version of cpu_set_reserved_ttbr0() to use these instead.

In the process, we also fix these functions to correctly handle cases
where the physical address lies beyond the 4G limit of 32-bit addressing.

Change-Id: Ibf41d42fe59af020e1eb00d623cc5d5a483657e3
Signed-off-by: Cyril Chemparathy <cyril@ti.com>
Signed-off-by: Vitaly Andrianov <vitalya@ti.com>
Acked-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Alex Van Brunt <avanbrunt@nvidia.com>
Reviewed-on: http://git-master/r/195673
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Adeel Raza <araza@nvidia.com>
arch/arm/include/asm/proc-fns.h
arch/arm/mm/context.c