]> git.karo-electronics.de Git - linux-beck.git/commit
ARM: Section based HYP idmap
authorChristoffer Dall <c.dall@virtualopensystems.com>
Sun, 20 Jan 2013 23:43:10 +0000 (18:43 -0500)
committerChristoffer Dall <c.dall@virtualopensystems.com>
Wed, 23 Jan 2013 18:29:09 +0000 (13:29 -0500)
commit9e9a367c29cebd25a356d53414612e115efdadcf
treecca8b98c33597179e5cbc50118b1cf86e6299ed0
parentcc577c26e2e9740b046591a72e77213c556bff19
ARM: Section based HYP idmap

Add a method (hyp_idmap_setup) to populate a hyp pgd with an
identity mapping of the code contained in the .hyp.idmap.text
section.

Offer a method to drop this identity mapping through
hyp_idmap_teardown.

Make all the above depend on CONFIG_ARM_VIRT_EXT and CONFIG_ARM_LPAE.

Reviewed-by: Will Deacon <will.deacon@arm.com>
Reviewed-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <c.dall@virtualopensystems.com>
arch/arm/include/asm/idmap.h
arch/arm/include/asm/pgtable-3level-hwdef.h
arch/arm/kernel/vmlinux.lds.S
arch/arm/mm/idmap.c