ARM: 6619/1: nommu: avoid mapping vectors page when !CONFIG_MMU
authorWill Deacon <will.deacon@arm.com>
Tue, 11 Jan 2011 13:04:36 +0000 (14:04 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 11 Jan 2011 17:32:24 +0000 (17:32 +0000)
commit6cde6d4217ff01422c093d3f7ff550b7a324e96e
tree2542d21d333bbbb1dd1deed655acabc834465c0f
parentedc4d272551594729f63ca4cde1612608494091f
ARM: 6619/1: nommu: avoid mapping vectors page when !CONFIG_MMU

When running without an MMU, we do not need to install a mapping for the
vectors page. Attempting to do so causes a compile-time error because
install_special_mapping is not defined.

This patch adds compile-time guards to the vector mapping functions
so that we can build nommu configurations once more.

Acked-by: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/process.c