From owner-svn-src-all@FreeBSD.ORG Wed Dec 9 08:09:25 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B072C106568F; Wed, 9 Dec 2009 08:09:25 +0000 (UTC) (envelope-from kmacy@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 9F4C28FC27; Wed, 9 Dec 2009 08:09:25 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id nB989PfV016124; Wed, 9 Dec 2009 08:09:25 GMT (envelope-from kmacy@svn.freebsd.org) Received: (from kmacy@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id nB989Pfu016123; Wed, 9 Dec 2009 08:09:25 GMT (envelope-from kmacy@svn.freebsd.org) Message-Id: <200912090809.nB989Pfu016123@svn.freebsd.org> From: Kip Macy Date: Wed, 9 Dec 2009 08:09:25 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r200288 - head/sys/i386/i386 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Dec 2009 08:09:25 -0000 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 /*