[patch 3/6] x86: e820 unification: Extract shared comments

From: Christoph Lameter
Date: Fri May 09 2008 - 22:12:10 EST


The introductory comments are basically the same. Take the 64 bit version.

Signed-off-by: Christoph Lameter <clameter@xxxxxxx>

---
include/asm-x86/e820.h | 26 +++++++-------------------
1 file changed, 7 insertions(+), 19 deletions(-)

Index: linux-2.6/include/asm-x86/e820.h
===================================================================
--- linux-2.6.orig/include/asm-x86/e820.h 2008-05-06 11:46:45.000000000 -0700
+++ linux-2.6/include/asm-x86/e820.h 2008-05-06 11:48:09.000000000 -0700
@@ -29,20 +29,20 @@ struct e820map {
#define BIOS_END 0x00100000

#ifdef __KERNEL__
-#ifdef CONFIG_X86_32
+
/*
* structures and definitions for the int 15, ax=e820 memory map
* scheme.
*
- * In a nutshell, arch/i386/boot/setup.S populates a scratch table
- * in the empty_zero_block that contains a list of usable address/size
- * duples. In arch/i386/kernel/setup.c, this information is
- * transferred into the e820map, and in arch/i386/mm/init.c, that
- * new information is used to mark pages reserved or not.
- *
+ * In a nutshell, setup.S populates a scratch table in the
+ * empty_zero_block that contains a list of usable address/size
+ * duples. setup.c, this information is transferred into the e820map,
+ * and in init.c/numa.c, that new information is used to mark pages
+ * reserved or not.
*/
#include <linux/ioport.h>

+#ifdef CONFIG_X86_32
#define HIGH_MEMORY (1024*1024)

#ifndef __ASSEMBLY__
@@ -80,18 +80,6 @@ static inline void e820_mark_nosave_regi

#endif/*!__ASSEMBLY__*/
#else /* X86_32 */
-/*
- * structures and definitions for the int 15, ax=e820 memory map
- * scheme.
- *
- * In a nutshell, setup.S populates a scratch table in the
- * empty_zero_block that contains a list of usable address/size
- * duples. setup.c, this information is transferred into the e820map,
- * and in init.c/numa.c, that new information is used to mark pages
- * reserved or not.
- */
-#include <linux/ioport.h>
-
#ifndef __ASSEMBLY__
extern unsigned long find_e820_area(unsigned long start, unsigned long end,
unsigned long size, unsigned long align);

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