]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: ensure C page table setup code follows assembly code
authorRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 27 May 2014 19:34:28 +0000 (20:34 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 2 Jun 2014 08:23:54 +0000 (09:23 +0100)
commita34a9f9886c91b4fc034e357e3f8c1e88b991115
tree6f6800bbf78f1b81a1d6bb73d84f380e08113c17
parent08629de7f1d9f44524d0af9b51f0a942bd9ae061
ARM: ensure C page table setup code follows assembly code

Fix a long standing bug where, for ARMv6+, we don't fully ensure that
the C code sets the same cache policy as the assembly code.  This was
introduced partially by commit 41832fce382b ([ARM] 4497/1: Only allow
safe cache configurations on ARMv6 and later) and also by adding SMP
support.

This patch sets the default cache policy based on the flags used by the
assembly code, and then ensures that when a cache policy command line
argument is used, we verify that on ARMv6, it matches the initial setup.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/setup.c
arch/arm/mm/mmu.c