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
        
        /*
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to