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)
committerWill Deacon <will.deacon@arm.com>
Thu, 30 May 2013 15:02:07 +0000 (16:02 +0100)
commit1fc84ae84b5153e32a4b6ace507f9663e10b0cb2
tree05bcc087096f460c4944831437eb5e561d1b8ed4
parent13f659b0f363114282679d06094337c5efa12fa8
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.

Signed-off-by: Cyril Chemparathy <cyril@ti.com>
Signed-off-by: Vitaly Andrianov <vitalya@ti.com>
Acked-by: Nicolas Pitre <nico@linaro.org>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Tested-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Tested-by: Subash Patel <subash.rp@samsung.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm/include/asm/proc-fns.h
arch/arm/mm/context.c