diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-07-02 09:46:27 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-01-26 15:06:14 -0500 |
commit | de27c308223dc9bd48de9742c7c2b53a15c1b012 (patch) | |
tree | d32acbc71110b1e727abd80620f95f14565b6031 /arch/arm/mm/mm.h | |
parent | dcd6c92267155e70a94b3927bce681ce74b80d1f (diff) |
ARM: pgtable: move TOP_PTE address definitions to arch/arm/mm/mm.h
Move the TOP_PTE address definitions to one central place so that it's
easy to discover what they're being used for. This helps to ensure
that there are no overlaps.
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mm/mm.h')
-rw-r--r-- | arch/arm/mm/mm.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm/mm/mm.h b/arch/arm/mm/mm.h index 70f6d3ea4834..6ee1ff2c1da6 100644 --- a/arch/arm/mm/mm.h +++ b/arch/arm/mm/mm.h | |||
@@ -5,6 +5,19 @@ extern pmd_t *top_pmd; | |||
5 | 5 | ||
6 | #define TOP_PTE(x) pte_offset_kernel(top_pmd, x) | 6 | #define TOP_PTE(x) pte_offset_kernel(top_pmd, x) |
7 | 7 | ||
8 | /* | ||
9 | * 0xffff8000 to 0xffffffff is reserved for any ARM architecture | ||
10 | * specific hacks for copying pages efficiently, while 0xffff4000 | ||
11 | * is reserved for VIPT aliasing flushing by generic code. | ||
12 | * | ||
13 | * Note that we don't allow VIPT aliasing caches with SMP. | ||
14 | */ | ||
15 | #define COPYPAGE_MINICACHE 0xffff8000 | ||
16 | #define COPYPAGE_V6_FROM 0xffff8000 | ||
17 | #define COPYPAGE_V6_TO 0xffffc000 | ||
18 | /* PFN alias flushing, for VIPT caches */ | ||
19 | #define FLUSH_ALIAS_START 0xffff4000 | ||
20 | |||
8 | static inline pmd_t *pmd_off_k(unsigned long virt) | 21 | static inline pmd_t *pmd_off_k(unsigned long virt) |
9 | { | 22 | { |
10 | return pmd_offset(pud_offset(pgd_offset_k(virt), virt), virt); | 23 | return pmd_offset(pud_offset(pgd_offset_k(virt), virt), virt); |