Skip to contentSkip to conversation

i386-sparsemem-compile-with-DMA32

2.6.13-mm2 KAMEZAWA Hiroyuki 1 participant 1 message Sep 9, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Because 2.6.13-mm2 adds new zone DMA32, ZONES_SHIFT becomes 3. So, flags bits reserved for (SECTION | NODE | ZONE) should be increase.

-- Kame
==
ZONE_SHIFT is increased, FLAGS_RESERVED should be.

Signed-off-by Kamezawa Hiroyuki <[email protected]>

include/linux/mmzone.h +3 -2
Index: linux-2.6.13-mm2/include/linux/mmzone.h
===================================================================
@@ -458,10 +458,11 @@ extern struct pglist_data contig_page_da
 #if BITS_PER_LONG == 32 || defined(ARCH_HAS_ATOMIC_UNSIGNED)
 /*
  * with 32 bit page->flags field, we reserve 8 bits for node/zone info.
- * there are 3 zones (2 bits) and this leaves 8-2=6 bits for nodes.
+ * there are 4 zones (3 bits) and this leaves 8-2=6 bits for nodes.
+ * +6bits for sections if CONFIG_SPARSEMEM
  */
 
-#define FLAGS_RESERVED		8
+#define FLAGS_RESERVED		9
 
 #elif BITS_PER_LONG == 64
 /*