]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: earlier initialization of vectors page
authorRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 18 Jan 2012 15:32:49 +0000 (15:32 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 23 Jan 2012 10:24:11 +0000 (10:24 +0000)
commita2bc6ecddcf7aed5210bceaea319e3a0eaf41950
treefb809876ee6b193489bbca6767c04df346466f1c
parent03fa535d2faf6d3203e1e3404e0e47083a8e2b64
ARM: earlier initialization of vectors page

Initialize the contents of the vectors page immediately after we
allocate the page, but before we map it.  This avoids any possible
aliases with other mappings which may need to be flushed after the
page has been mapped irrespective of the cache type.

We follow this later with a flush_cache_all() after all static memory
mappings have been initialized, which ensures that this is safe from
any cache effects.

Tested-by: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/traps.h
arch/arm/kernel/setup.c
arch/arm/kernel/traps.c
arch/arm/mm/mmu.c