]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 7294/1: vectors: use gate_vma for vectors user mapping
authorWill Deacon <will.deacon@arm.com>
Fri, 20 Jan 2012 11:01:13 +0000 (12:01 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 24 Mar 2012 09:38:51 +0000 (09:38 +0000)
commit771959583d5f4abdbd00922101c95d0dad006a90
tree187d7bfa7ff0418f2762d38c9c553331e602faf1
parentd5db7f3eef003e6840cdcca1ed496e9927ebdb33
ARM: 7294/1: vectors: use gate_vma for vectors user mapping

The current user mapping for the vectors page is inserted as a `horrible
hack vma' into each task via arch_setup_additional_pages. This causes
problems with the MM subsystem and vm_normal_page, as described here:

https://lkml.org/lkml/2012/1/14/55

Following the suggestion from Hugh in the above thread, this patch uses
the gate_vma for the vectors user mapping, therefore consolidating
the horrible hack VMAs into one.

Acked-and-Tested-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/elf.h
arch/arm/include/asm/mmu_context.h
arch/arm/include/asm/page.h
arch/arm/kernel/process.c