aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2010-11-21 06:41:57 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2010-12-22 06:05:33 -0500
commit614dd0585f376a25c638abbed9c5fbd21d7baece (patch)
tree9bd2c8bb3523632901e3ddc3f9b1eba24e7671ab /arch/arm/include/asm
parent26bbf0b57a0848932f725076bcb1245ca696e8d3 (diff)
ARM: pgtable: collect up identity mapping functions
We have two places where we create identity mappings - one when we bring secondary CPUs online, and one where we setup some mappings for soft- reboot. Combine these two into a single implementation. Also collect the identity mapping deletion function. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/include/asm')
-rw-r--r--arch/arm/include/asm/pgtable.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/include/asm/pgtable.h b/arch/arm/include/asm/pgtable.h
index e582214b00df..1e31af232a36 100644
--- a/arch/arm/include/asm/pgtable.h
+++ b/arch/arm/include/asm/pgtable.h
@@ -474,6 +474,9 @@ static inline pte_t pte_modify(pte_t pte, pgprot_t newprot)
474 474
475#define pgtable_cache_init() do { } while (0) 475#define pgtable_cache_init() do { } while (0)
476 476
477void identity_mapping_add(pgd_t *, unsigned long, unsigned long);
478void identity_mapping_del(pgd_t *, unsigned long, unsigned long);
479
477#endif /* !__ASSEMBLY__ */ 480#endif /* !__ASSEMBLY__ */
478 481
479#endif /* CONFIG_MMU */ 482#endif /* CONFIG_MMU */