Date: Wed, 9 Dec 2009 08:09:25 +0000 (UTC) From: Kip Macy <kmacy@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r200288 - head/sys/i386/i386 Message-ID: <200912090809.nB989Pfu016123@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912090809.nB989Pfu016123>