]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: Use the reserved TTBR0 if context switching to the init_mm
authorCatalin Marinas <catalin.marinas@arm.com>
Mon, 23 Mar 2015 15:06:50 +0000 (15:06 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 23 Mar 2015 18:42:23 +0000 (18:42 +0000)
commit3b51ee8133ed66cdcb7d5d266ee11d55732d7f9a
treecd0e64aa540516070de9227e40137b88072ed716
parent3409255769c2683ef21d8fb2452cc5bbd994ca29
arm64: Use the reserved TTBR0 if context switching to the init_mm

The idle_task_exit() function may call switch_mm() with next ==
&init_mm. On arm64, init_mm.pgd cannot be used for user mappings, so
this patch simply sets the reserved TTBR0.

Cc: <stable@vger.kernel.org>
Reported-by: Jon Medhurst (Tixy) <tixy@linaro.org>
Tested-by: Jon Medhurst (Tixy) <tixy@linaro.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/mmu_context.h