Re: include/asm-arm/memory.h changes break zaurus sl-5500 boot

From: KAMEZAWA Hiroyuki
Date: Sun Apr 02 2006 - 20:07:15 EST


On Mon, 3 Apr 2006 00:23:14 +0200
Pavel Machek <pavel@xxxxxx> wrote:

> On Ne 02-04-06 23:08:07, Russell King wrote:
> > On Sun, Apr 02, 2006 at 11:00:03PM +0200, Pavel Machek wrote:
> > > This reverts this (and one more) patch, and fixes boot on
> > > collie. Without this patch, I get some fairly strange warnings about
> > > shift bigger than page size in pfn_to_page().
> >
> > Not surprising given this gem:
> >
> > > -#define arch_local_page_offset(pfn, nid) (LOCAL_MAP_NR((pfn) << PAGE_OFFSET))
> >
> > PAGE_OFFSET being 3GB - that's one hell of a shift value!
>
stupid...PAGE_OFFSET is offset.. not shift.

LOCAL_MAP_NR((pfn) << PAGE_SHIFT) ?? what does file include this ?
I'll look into.

- Kame

-
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/