diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-11-21 11:41:57 +0000 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-12-22 11:05:33 +0000 |
commit | 614dd0585f376a25c638abbed9c5fbd21d7baece (patch) | |
tree | 9bd2c8bb3523632901e3ddc3f9b1eba24e7671ab /arch/arm/include | |
parent | 26bbf0b57a0848932f725076bcb1245ca696e8d3 (diff) | |
download | op-kernel-dev-614dd0585f376a25c638abbed9c5fbd21d7baece.zip op-kernel-dev-614dd0585f376a25c638abbed9c5fbd21d7baece.tar.gz |
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')
-rw-r--r-- | arch/arm/include/asm/pgtable.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/include/asm/pgtable.h b/arch/arm/include/asm/pgtable.h index e582214..1e31af2 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) #define pgtable_cache_init() do { } while (0) +void identity_mapping_add(pgd_t *, unsigned long, unsigned long); +void identity_mapping_del(pgd_t *, unsigned long, unsigned long); + #endif /* !__ASSEMBLY__ */ #endif /* CONFIG_MMU */ |