arm64: Add function to create identity mappings
authorMark Salter <msalter@redhat.com>
Wed, 12 Mar 2014 16:28:06 +0000 (12:28 -0400)
committerMatt Fleming <matt.fleming@intel.com>
Wed, 30 Apr 2014 18:49:52 +0000 (19:49 +0100)
commitd7ecbddf4caefbac1b99478dd2b679f83dfc2545
tree891461182b7dc468662b8913cba8702cf671570a
parent0302f71c0aa59571ac306f93068fbbfe65ea349b
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>
arch/arm64/include/asm/mmu.h
arch/arm64/mm/mmu.c
This page took 0.044718 seconds and 5 git commands to generate.