svn commit: r200288 - head/sys/i386/i386

Kip Macy kmacy at FreeBSD.org
Wed Dec 9 00:09:25 PST 2009


Author: kmacy
Date: Wed Dec  9 08:09:25 2009
New Revision: 200288
URL: http://svn.freebsd.org/changeset/base/200288

Log:
  make PV core dump actually dump memory - still need to fix program header initialization

Modified:
  head/sys/i386/i386/dump_machdep.c
  head/sys/i386/i386/machdep.c

Modified: head/sys/i386/i386/dump_machdep.c
==============================================================================
--- head/sys/i386/i386/dump_machdep.c	Tue Dec  8 23:43:50 2009	(r200287)
+++ head/sys/i386/i386/dump_machdep.c	Wed Dec  9 08:09:25 2009	(r200288)
@@ -182,7 +182,11 @@ cb_dumpdata(struct md_pa *mdp, int seqnr
 		}
 		for (i = 0; i < chunk; i++) {
 			a = pa + i * PAGE_SIZE;
+#ifdef XEN
+			va = pmap_kenter_temporary(xpmap_ptom(trunc_page(a)), i);
+#else			
 			va = pmap_kenter_temporary(trunc_page(a), i);
+#endif			
 		}
 		error = dump_write(di, va, 0, dumplo, sz);
 		if (error)

Modified: head/sys/i386/i386/machdep.c
==============================================================================
--- head/sys/i386/i386/machdep.c	Tue Dec  8 23:43:50 2009	(r200287)
+++ head/sys/i386/i386/machdep.c	Wed Dec  9 08:09:25 2009	(r200288)
@@ -2432,6 +2432,9 @@ do_next:
 #else
 	phys_avail[0] = physfree;
 	phys_avail[1] = xen_start_info->nr_pages*PAGE_SIZE;
+	dump_avail[0] = 0;	
+	dump_avail[1] = xen_start_info->nr_pages*PAGE_SIZE;
+	
 #endif
 	
 	/*


More information about the svn-src-all mailing list