Re: [patch 2/2] m68k: Discontinuous memory support

2007-05-29 Thread Andrew Morton
On Mon, 28 May 2007 21:16:32 +0200 Geert Uytterhoeven <[EMAIL PROTECTED]> wrote: > -#define __page_address(page) (PAGE_OFFSET + (((page) - mem_map) << > PAGE_SHIFT)) > -#define page_to_phys(page) virt_to_phys((void *)__page_address(page)) > +#ifdef CONFIG_SINGLE_MEMORY_CHUNK > +#define page_to_

Re: [patch 2/2] m68k: Discontinuous memory support

2007-05-29 Thread Andrew Morton
On Mon, 28 May 2007 21:16:32 +0200 Geert Uytterhoeven <[EMAIL PROTECTED]> wrote: > + for_each_online_pgdat(pgdat) { > + for (i = 0; i < pgdat->node_spanned_pages; i++) { > + struct page *page = pgdat->node_mem_map + i; > + total++; > +

[patch 2/2] m68k: Discontinuous memory support

2007-05-28 Thread Geert Uytterhoeven
From: Roman Zippel <[EMAIL PROTECTED]> Fix support for discontinuous memory Signed-off-by: Roman Zippel <[EMAIL PROTECTED]> Signed-off-by: Geert Uytterhoeven <[EMAIL PROTECTED]> --- arch/m68k/Kconfig | 13 +++ arch/m68k/kernel/module.c |3 arch/m68k/kernel/setu