ARM: hotplug cpu: ensure that __enable_mmu is identity mapped
authorRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 4 Oct 2010 16:51:54 +0000 (17:51 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 8 Oct 2010 09:07:34 +0000 (10:07 +0100)
commit786f1b73f7d5cad5c88dc75a96d53a74160aa7d7
tree1a8004c1a1b74060f283d6b042fe3c1c495f22a8
parent80924ac595f3ca32ec0a80cc1217c7019d3519ff
ARM: hotplug cpu: ensure that __enable_mmu is identity mapped

__enable_mmu is required to be executed in an identity mapped region
to ensure that variances in CPUs do not cause a crash.  We currently
achieve this by assuming that it will be co-located with
__create_page_tables.  With hotplug CPU support, this assumption
becomes invalid.  Implement a better solution which ensures that
it will be appropriately mapped no matter where it is placed.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/head.S