Keith, 

   Here is a small patch for the x86_64 to allow the kdbm_pg module
to compile successfully.

Using the following:

kdb-v4.4-2.6.8-common-1
kdb-v4.4-2.6.8-x86-64-1
linux-2.6.8.1.tar

  scott

$ diff -Nu /tmp/kdbm_pg.c kdb/modules/kdbm_pg.c
--- /tmp/kdbm_pg.c      2004-09-17 07:57:20.087444744 -0700
+++ kdb/modules/kdbm_pg.c       2004-09-17 07:57:03.324993024 -0700
@@ -463,7 +463,7 @@
 
 
 
-#ifdef CONFIG_X86
+#if defined(CONFIG_X86) && !defined(CONFIG_X86_64)
 /* According to Steve Lord, this code is ix86 specific.  Patches to extend it to
  * other architectures will be greatefully accepted.
  */
@@ -528,7 +528,7 @@
        kdb_printf("  high page count:  %6d\n", page_counts[8]);
        return 0;
 }
-#endif /* CONFIG_X86 */
+#endif /* CONFIG_X86 && !CONFIG_X86_64 */
 
 static int __init kdbm_pg_init(void)
 {
@@ -541,7 +541,7 @@
        kdb_register("inode_pages", kdbm_inode_pages, "<inode *>", "Display pages in 
an inode", 0);
        kdb_register("req", kdbm_request, "<vaddr>", "dump request struct", 0);
        kdb_register("rqueue", kdbm_rqueue, "<vaddr>", "dump request queue", 0);
-#ifdef CONFIG_X86 
+#if defined(CONFIG_X86) && !defined(CONFIG_X86_64)
        kdb_register("memmap", kdbm_memmap, "", "page table summary", 0);
 #endif
        return 0;
@@ -559,7 +559,7 @@
        kdb_unregister("inode_pages");
        kdb_unregister("req");
        kdb_unregister("rqueue");
-#ifdef CONFIG_X86
+#if defined(CONFIG_X86) && !defined(CONFIG_X86_64)
        kdb_unregister("memmap");
 #endif
 }

---------------------------
Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe.

Reply via email to