PERFORCE change 79101 for review
Paul Saab
ps at FreeBSD.org
Tue Jun 28 19:39:02 GMT 2005
http://perforce.freebsd.org/chv.cgi?CH=79101
Change 79101 by ps at butter.corp on 2005/06/28 19:38:37
kernphys is no longer useful to export so nuke it.
Affected files ...
.. //depot/projects/hammer/sys/amd64/amd64/machdep.c#135 edit
.. //depot/projects/hammer/sys/i386/i386/machdep.c#60 edit
Differences ...
==== //depot/projects/hammer/sys/amd64/amd64/machdep.c#135 (text+ko) ====
@@ -850,8 +850,6 @@
u_int basemem;
-static vm_paddr_t kernphys[2];
-
/*
* Populate the (physmap) array with base/bound pairs describing the
* available physical memory in the system, then test this memory and
@@ -996,12 +994,6 @@
dcons_addr = 0;
/*
- * Keep track of where the kernel lives for crash dumps.
- */
- kernphys[0] = 0x100000;
- kernphys[1] = first;
-
- /*
* physmap is in bytes, so when converting to page boundaries,
* round up the start address and round down the end address.
*/
@@ -1019,7 +1011,7 @@
/*
* block out kernel memory as not available.
*/
- if (pa >= kernphys[0] && pa < kernphys[1])
+ if (pa >= 0x100000 && pa < first)
goto do_dump_avail;
/*
==== //depot/projects/hammer/sys/i386/i386/machdep.c#60 (text+ko) ====
@@ -186,7 +186,6 @@
vm_paddr_t phys_avail[10];
vm_paddr_t dump_avail[10];
-static vm_paddr_t kernphys[2];
/* must be 2 less so 0 0 can signal end of chunks */
#define PHYS_AVAIL_ARRAY_END ((sizeof(phys_avail) / sizeof(phys_avail[0])) - 2)
@@ -1885,12 +1884,6 @@
dcons_addr = 0;
/*
- * Keep track of where the kernel lives for crash dumps.
- */
- kernphys[0] = KERNLOAD;
- kernphys[1] = first;
-
- /*
* physmap is in bytes, so when converting to page boundaries,
* round up the start address and round down the end address.
*/
@@ -1908,7 +1901,7 @@
/*
* block out kernel memory as not available.
*/
- if (pa >= kernphys[0] && pa < kernphys[1])
+ if (pa >= KERNLOAD && pa < first)
goto do_dump_avail;
/*
More information about the p4-projects
mailing list