Re: Sparsemem on ep93xx

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


On Tue, Nov 25, 2008 at 09:13:17AM +0100, Marco Stornelli wrote:
> Hi Russell,
> 
> thank you very much for your response. Only some comments about your
> response:
> 
> Yes, I agree, but (at least in 2.6.27.7) the file
> arm/include/asm/sparsemem.h is:
> 
> #ifndef ASMARM_SPARSEMEM_H
> #define ASMARM_SPARSEMEM_H
> 
> #include <asm/memory.h>
> 
> #define MAX_PHYSADDR_BITS	32
> #define MAX_PHYSMEM_BITS	32
> #define SECTION_SIZE_BITS	NODE_MEM_SIZE_BITS
> 
> #endif
> 
> It includes asm/memory.h that includes the memory.h in the mach folder.
> So if I want to modify *only* the memory.h in the mach folder, I have to
> use NODE_MEM_SIZE_BITS to assign the right value (24 in my case as you
> said) to SECTION_SIZE_BITS.

That means that the kernel version you're looking at is too old and
doesn't support sparsemem properly on ARM.  Looking at the git history,
it was merged in the post 2.6.27 merge window, so 2.6.28 will be the
first kernel which correctly supports sparsemem.

-------------------------------------------------------------------
List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
FAQ:        http://www.arm.linux.org.uk/mailinglists/faq.php
Etiquette:  http://www.arm.linux.org.uk/mailinglists/etiquette.php

[Linux ARM]     [Linux ARM MSM]     [Linux ARM Kernel]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

Add to Google Follow linuxarm on Twitter