PERFORCE change 78827 for review
Peter Wemm
peter at FreeBSD.org
Wed Jun 22 23:12:44 GMT 2005
http://perforce.freebsd.org/chv.cgi?CH=78827
Change 78827 by peter at 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]);
}
More information about the p4-projects
mailing list