summaryrefslogtreecommitdiffstats
path: root/arch/m68k/mm
diff options
context:
space:
mode:
authorSam Creasey <sammy@sammy.net>2006-12-09 10:34:38 +0100
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-09 09:41:18 -0800
commita3a79bd7c75f0055df16540c7e9dbe270060ebe8 (patch)
tree6c115200e1c607a6f19007ae0953be67171ad39a /arch/m68k/mm
parent8e8858e932a81d827e194abf82faf32d02396f55 (diff)
downloadop-kernel-dev-a3a79bd7c75f0055df16540c7e9dbe270060ebe8.zip
op-kernel-dev-a3a79bd7c75f0055df16540c7e9dbe270060ebe8.tar.gz
[PATCH] Sun3: General updates
General compile fixes for 2.6.16 for sun3, and some updates to make the new bootloader work correctly. Tested on 3/50, 3/60, 3/80. Signed-off-by: Sam Creasey <sammy@sammy.net> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/m68k/mm')
-rw-r--r--arch/m68k/mm/sun3mmu.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/m68k/mm/sun3mmu.c b/arch/m68k/mm/sun3mmu.c
index ac6640a..6a6513a 100644
--- a/arch/m68k/mm/sun3mmu.c
+++ b/arch/m68k/mm/sun3mmu.c
@@ -49,7 +49,6 @@ void __init paging_init(void)
unsigned long zones_size[MAX_NR_ZONES] = { 0, };
unsigned long size;
-
#ifdef TEST_VERIFY_AREA
wp_works_ok = 0;
#endif
@@ -94,7 +93,11 @@ void __init paging_init(void)
/* memory sizing is a hack stolen from motorola.c.. hope it works for us */
zones_size[ZONE_DMA] = ((unsigned long)high_memory - PAGE_OFFSET) >> PAGE_SHIFT;
- free_area_init(zones_size);
+ /* I really wish I knew why the following change made things better... -- Sam */
+/* free_area_init(zones_size); */
+ free_area_init_node(0, NODE_DATA(0), zones_size,
+ (__pa(PAGE_OFFSET) >> PAGE_SHIFT) + 1, NULL);
+
}
OpenPOWER on IntegriCloud