diff options
author | Paul Mundt <lethal@linux-sh.org> | 2007-07-24 21:43:47 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2007-07-24 21:43:47 -0400 |
commit | f0b859e3d63a07995f0db294864c2f3c9228f1e4 (patch) | |
tree | 6490a317aa82f1492ae15603fc7bd2d8e3208c44 | |
parent | eb695dbf00d572a770358305dae4de2a0680db8f (diff) |
sh: Reclaim beginning of P3 space for vmalloc area.
The first 1MB of P3 space was reserved and used for page colouring,
as we've reworked that to use fixmaps, we can reclaim the space and
hand it back to VMALLOC_START.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
-rw-r--r-- | arch/sh/mm/cache-sh4.c | 3 | ||||
-rw-r--r-- | include/asm-sh/pgtable.h | 6 |
2 files changed, 1 insertions, 8 deletions
diff --git a/arch/sh/mm/cache-sh4.c b/arch/sh/mm/cache-sh4.c index 5d0f73a4fbbb..86486326ef1d 100644 --- a/arch/sh/mm/cache-sh4.c +++ b/arch/sh/mm/cache-sh4.c | |||
@@ -98,9 +98,6 @@ void __init p3_cache_init(void) | |||
98 | } | 98 | } |
99 | 99 | ||
100 | emit_cache_params(); | 100 | emit_cache_params(); |
101 | |||
102 | if (ioremap_page_range(P3SEG, P3SEG + (PAGE_SIZE * 4), 0, PAGE_KERNEL)) | ||
103 | panic("%s failed.", __FUNCTION__); | ||
104 | } | 101 | } |
105 | 102 | ||
106 | /* | 103 | /* |
diff --git a/include/asm-sh/pgtable.h b/include/asm-sh/pgtable.h index 22efffe45019..e3fae12c0e49 100644 --- a/include/asm-sh/pgtable.h +++ b/include/asm-sh/pgtable.h | |||
@@ -55,11 +55,7 @@ extern unsigned long empty_zero_page[PAGE_SIZE / sizeof(unsigned long)]; | |||
55 | 55 | ||
56 | #define PTE_PHYS_MASK (0x20000000 - PAGE_SIZE) | 56 | #define PTE_PHYS_MASK (0x20000000 - PAGE_SIZE) |
57 | 57 | ||
58 | /* | 58 | #define VMALLOC_START (P3SEG) |
59 | * First 1MB map is used by fixed purpose. | ||
60 | * Currently only 4-entry (16kB) is used (see arch/sh/mm/cache.c) | ||
61 | */ | ||
62 | #define VMALLOC_START (P3SEG+0x00100000) | ||
63 | #define VMALLOC_END (FIXADDR_START-2*PAGE_SIZE) | 59 | #define VMALLOC_END (FIXADDR_START-2*PAGE_SIZE) |
64 | 60 | ||
65 | /* | 61 | /* |