Messages in this thread | | | Subject | Re: [PATCH] microblaze: Fix pfn_valid() for noMMU | From | liqin.chen@sunplusc ... | Date | Wed, 18 Nov 2009 09:37:50 +0800 |
| |
"Steven J. Magnani" <steve@digidescorp.com> 写于 2009-11-17 22:27:54:
> On Mon, 2009-11-16 at 14:14 -0800, Andrew Morton wrote: > > On Fri, 13 Nov 2009 16:08:29 -0600 > > steve@digidescorp.com wrote: > > > > > Configuring DEBUG_SLAB causes a noMMU kernel to die during initialization > > > with an invalid virtual address panic in kfree_debugcheck(). > > > The panic is due to an improper definition of pfn_valid(). > > > > > > ... > > Is arch/score/include/asm/page.h buggy also? > > > > I don't believe so, but only because MEMORY_START is defined as zero for > that arch, making min_low_pfn zero. >
Yes, it's right because MEMORY_START is defined as 0, make min_low_pfn to zero and max_mapnr equal max_low_pfn.
We will fix it to make code more clear.
liqin
| |