1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-19 10:53:58 +00:00

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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=200288
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 @@ getmemsize(int first)
#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
/*