arm64: Add function to create identity mappings
authorMark Salter <msalter@redhat.com>
Wed, 12 Mar 2014 16:28:06 +0000 (12:28 -0400)
committerMark Brown <broonie@linaro.org>
Wed, 23 Jul 2014 23:31:23 +0000 (00:31 +0100)
commit61c80b44d5fac78b1c319b3dd138fb0e0dc80907
tree9ba8654cb08fde1a728d01f5756e735f0c0c6c91
parent0c0ec28f520fb65ab9439d458cd4f2fab8753063
arm64: Add function to create identity mappings

At boot time, before switching to a virtual UEFI memory map, firmware
expects UEFI memory and IO regions to be identity mapped whenever
kernel makes runtime services calls. The existing early boot code
creates an identity map of kernel text/data but this is not sufficient
for UEFI. This patch adds a create_id_mapping() function which reuses
the core code of the existing create_mapping().

Signed-off-by: Mark Salter <msalter@redhat.com>
[ Fixed error message formatting (%pa). ]
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
(cherry picked from commit d7ecbddf4caefbac1b99478dd2b679f83dfc2545)
Signed-off-by: Mark Brown <broonie@linaro.org>
Conflicts:
arch/arm64/mm/mmu.c
arch/arm64/include/asm/mmu.h
arch/arm64/mm/mmu.c