diff options
author | Dale Farnsworth <dale@farnsworth.org> | 2008-12-17 05:09:13 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-12-22 23:13:29 -0500 |
commit | ccdcef72c249c289898b164eada89a61855b9287 (patch) | |
tree | 4a60305aaaa89949b2f979226cc192d8d5a3eb2c /arch/powerpc/mm/pgtable_32.c | |
parent | 01695a9687e5a8d78589605037cc7828a5b67ac9 (diff) |
powerpc/32: Add the ability for a classic ppc kernel to be loaded at 32M
Add the ability for a classic ppc kernel to be loaded at an address
of 32MB. This done by fixing a few places that assume we are loaded
at address 0, and by changing several uses of KERNELBASE to use
PAGE_OFFSET, instead.
Signed-off-by: Dale Farnsworth <dale@farnsworth.org>
Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/mm/pgtable_32.c')
-rw-r--r-- | arch/powerpc/mm/pgtable_32.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/mm/pgtable_32.c b/arch/powerpc/mm/pgtable_32.c index cd5609759d44..8cba46fc9e3b 100644 --- a/arch/powerpc/mm/pgtable_32.c +++ b/arch/powerpc/mm/pgtable_32.c | |||
@@ -269,7 +269,7 @@ int map_page(unsigned long va, phys_addr_t pa, int flags) | |||
269 | } | 269 | } |
270 | 270 | ||
271 | /* | 271 | /* |
272 | * Map in a big chunk of physical memory starting at KERNELBASE. | 272 | * Map in a big chunk of physical memory starting at PAGE_OFFSET. |
273 | */ | 273 | */ |
274 | void __init mapin_ram(void) | 274 | void __init mapin_ram(void) |
275 | { | 275 | { |
@@ -278,7 +278,7 @@ void __init mapin_ram(void) | |||
278 | int ktext; | 278 | int ktext; |
279 | 279 | ||
280 | s = mmu_mapin_ram(); | 280 | s = mmu_mapin_ram(); |
281 | v = KERNELBASE + s; | 281 | v = PAGE_OFFSET + s; |
282 | p = memstart_addr + s; | 282 | p = memstart_addr + s; |
283 | for (; s < total_lowmem; s += PAGE_SIZE) { | 283 | for (; s < total_lowmem; s += PAGE_SIZE) { |
284 | ktext = ((char *) v >= _stext && (char *) v < etext); | 284 | ktext = ((char *) v >= _stext && (char *) v < etext); |