ARM: mpu: Complete initialisation of the MPU after reaching the C-world
authorJonathan Austin <jonathan.austin@arm.com>
Thu, 28 Feb 2013 17:51:05 +0000 (17:51 +0000)
committerJonathan Austin <jonathan.austin@arm.com>
Fri, 7 Jun 2013 16:02:53 +0000 (17:02 +0100)
commit9a271567fe9980a7e7ded0c6250d56200c3678ee
tree98a7687dcfabcd9d51858d227e23374926054b10
parent5ad7dcbe40ae52bee67d7ed61efb6a3fccb6dc2b
ARM: mpu: Complete initialisation of the MPU after reaching the C-world

Much like with the MMU, MPU initialisation is performed in two stages; the
first in the pre-C world and the 'real' initialisation during arch setup.

This patch wires in previously added MPU initialisation functions so that
the whole of memory is mapped with the appropriate region properties for
'normal' RAM (the appropriate properties depend on whether the system is
SMP).

Stub initialisation functions are added for the case that there MPU support
is not configured in to the kernel.

Signed-off-by: Jonathan Austin <jonathan.austin@arm.com>
Reviewed-by: Will Deacon <will.deacon@arm.com>
CC: Hyok S. Choi <hyok.choi@samsung.com>
arch/arm/mm/nommu.c