Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Jun 2005 23:12:43 GMT
From:      Peter Wemm <peter@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 78827 for review
Message-ID:  <200506222312.j5MNChhL079825@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=78827

Change 78827 by peter@peter_melody on 2005/06/22 23:12:08

	Include a few more bits (dmesg etc) in the dump

Affected files ...

.. //depot/projects/hammer/sys/amd64/amd64/dump_machdep.c#15 edit

Differences ...

==== //depot/projects/hammer/sys/amd64/amd64/dump_machdep.c#15 (text+ko) ====

@@ -79,19 +79,30 @@
 		dump_avail[n].md_start = phys_avail[idx];
 		dump_avail[n].md_size = phys_avail[idx + 1] - phys_avail[idx];
 		if (dump_avail[n].md_start == kernphys[1]) {
+			/* Include the kernel, that would be helpful! */
 			dump_avail[n].md_start = kernphys[0];
 			dump_avail[n].md_size += kernphys[1] - kernphys[0];
 		}
 		if (dump_avail[n].md_start == PAGE_SIZE) {
+			/* Include page zero */
 			dump_avail[n].md_start = 0;
 			dump_avail[n].md_size += PAGE_SIZE;
 		}
+		if (dump_avail[n].md_start == 0 && dump_avail[n].md_size >= 0x98000) {
+			/* Include mpboot code and/or bios EBDA */
+			dump_avail[n].md_size = 0xA0000;
+		}
+		if (phys_avail[idx + 1] == avail_end) {
+			/* Include msgbuf, that would be helpful! */
+			dump_avail[n].md_size += (Maxmem << PAGE_SHIFT) - avail_end;
+		}
 	}
 }
 
 static struct md_pa *
 md_pa_first(void)
 {
+
 	return (&dump_avail[0]);
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200506222312.j5MNChhL079825>