public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* sparsemem usage
@ 2006-08-02 13:44 moreau francis
  2006-08-02 14:25 ` Andy Whitcroft
  2006-08-02 15:24 ` Alan Cox
  0 siblings, 2 replies; 8+ messages in thread
From: moreau francis @ 2006-08-02 13:44 UTC (permalink / raw)
  To: linux-kernel; +Cc: apw

My board has a really weird mem mapping.

MEM1: 0xc000 0000 - 32 Mo
MEM2: 0xd000 0000 - 8 Mo
MEM3: 0xd800 0000 - 128 Ko

MEM3 has interesting properties, such as speed and security,
and I really need to use it.

I think that sparsemem can deal with such mapping. But I
encounter an issue when choosing the section bit size. I choose
SECTION_SIZE_BITS = 17. Therefore the section size is
equal to the smallest size of my memories. But I get a
compilation error which is due to this:

#if (MAX_ORDER - 1 + PAGE_SHIFT) > SECTION_SIZE_BITS
#error Allocator MAX_ORDER exceeds SECTION_SIZE
#endif

I'm not sure to understand why there's such check. To fix this
I should change MAX_ORDER to 6.

Is it the only way to fix that ?

Thanks

Francis



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-08-03  9:56 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-02 13:44 sparsemem usage moreau francis
2006-08-02 14:25 ` Andy Whitcroft
2006-08-02 15:12   ` Re : " moreau francis
2006-08-02 15:36     ` Andy Whitcroft
2006-08-03  9:56       ` Re : " moreau francis
2006-08-02 15:24 ` Alan Cox
2006-08-02 15:33   ` Re : " moreau francis
2006-08-02 16:33     ` Alan Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox