--- //depot/vendor/freebsd_6/src/sys/amd64/amd64/machdep.c 2006/07/31 12:28:34 +++ //depot/yahoo/ybsd_6/src/sys/amd64/amd64/machdep.c 2006/08/24 10:57:46 @@ -160,8 +160,10 @@ long Maxmem = 0; long realmem = 0; -vm_paddr_t phys_avail[20]; -vm_paddr_t dump_avail[20]; +#define PHYSMAP_SIZE (2 * 30) + +vm_paddr_t phys_avail[PHYSMAP_SIZE + 2]; +vm_paddr_t dump_avail[PHYSMAP_SIZE + 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) @@ -850,8 +852,6 @@ } #endif -#define PHYSMAP_SIZE (2 * 20) - u_int basemem; /* --- //depot/vendor/freebsd_6/src/sys/i386/i386/machdep.c 2006/08/22 10:28:26 +++ //depot/yahoo/ybsd_6/src/sys/i386/i386/machdep.c 2006/08/24 10:57:46 @@ -189,8 +190,10 @@ long Maxmem = 0; long realmem = 0; -vm_paddr_t phys_avail[10]; -vm_paddr_t dump_avail[10]; +#define PHYSMAP_SIZE (2 * 16) + +vm_paddr_t phys_avail[PHYSMAP_SIZE + 2]; +vm_paddr_t dump_avail[PHYSMAP_SIZE + 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) @@ -1613,8 +1625,6 @@ ssd->ssd_gran = sd->sd_gran; } -#define PHYSMAP_SIZE (2 * 8) - /* * Populate the (physmap) array with base/bound pairs describing the * available physical memory in the system, then test this memory and