[PATCH 300] Sun-3 bootmem

From: Geert Uytterhoeven
Date: Sun Sep 28 2003 - 08:14:49 EST


Sun-3: Use init_bootmem_node() instead of init_bootmem() for Sun-3, to avoid
setting min/max_low_pfn in init_bootmem(). This was screwing up SCSI, and the
new method is more like m68k/motorola. (from Sam Creasey)

--- linux-2.6.0-test6/arch/m68k/sun3/config.c Tue May 27 19:02:33 2003
+++ linux-m68k-2.6.0-test6/arch/m68k/sun3/config.c Mon Sep 1 13:50:04 2003
@@ -129,7 +129,7 @@
high_memory = (void *)memory_end;
availmem = memory_start;

- availmem += init_bootmem(start_page, num_pages);
+ availmem += init_bootmem_node(NODE_DATA(0), start_page, 0, num_pages);
availmem = (availmem + (PAGE_SIZE-1)) & PAGE_MASK;

free_bootmem(__pa(availmem), memory_end - (availmem));

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/