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

This commit is contained in:
Kip Macy 2009-12-09 08:09:25 +00:00
parent d9cf8753e3
commit 367bfeea1c
2 changed files with 7 additions and 0 deletions

View File

@ -182,7 +182,11 @@ cb_dumpdata(struct md_pa *mdp, int seqnr, void *arg)
}
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)

View File

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